Makefile.in: Move ravenscar-thread.c from SFILES to ALLDEPFILES.
[binutils-gdb.git] / gdb / ChangeLog
1 2012-12-16 Joel Brobecker <brobecker@adacore.com>
2
3 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
4 (ALLDEPFILES): ... to there.
5
6 2012-12-15 Joel Brobecker <brobecker@adacore.com>
7
8 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
9
10 2012-12-15 Joel Brobecker <brobecker@adacore.com>
11
12 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
13 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
14 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
15 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
16 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
17 to gdb_target_obs for every target that uses rs6000-tdep.o.
18 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
19 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
20 or register_ppc_ravenscar_ops.
21
22 2012-12-15 Joel Brobecker <brobecker@adacore.com>
23
24 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
25 RAVENSCAR_SPARC_THREAD_H.
26 * sparc-ravenscar-thread.c: Rename all global entities
27 whose name is uses "ravenscar_sparc" as the prefix to use
28 "sparc_ravenscar" instead.
29
30 2012-12-15 Joel Brobecker <brobecker@adacore.com>
31
32 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
33 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
34 Adjust sparc-ravenscar-thread.h #include.
35 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
36 accordingly.
37 * Makefile.in: Replace ravenscar-sparc-thread with
38 sparc-ravenscar-thread throughout.
39 * configure.tgt: Likewise.
40
41 2012-12-15 Joel Brobecker <brobecker@adacore.com>
42
43 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
44 declaration.
45 (ravenscar_ops): New gdbarch variable.
46 * gdbarch.h, gdbarch.c: Regenerate.
47 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
48 * ravenscar-thread.c (current_arch_ops): Delete.
49 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
50 from the gdbarch.
51 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
52 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
53 (ravenscar_register_arch_ops): Delete.
54 * ravenscar-sparc-thread.h: New file.
55 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
56 (ravenscar_sparc_ops): Define value statically.
57 (_initialize_ravenscar_sparc): Delete.
58 (register_sparc_ravenscar_ops): New function.
59 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
60 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
61 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
62 ravenscar-sparc-thread.o.
63 (SFILES): Add ravenscar-thread.c.
64 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
65 (ALLDEPFILES): ravenscar-sparc-thread.c.
66 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
67 to gdb_target_obs
68 for all the targets that use sparc-tdep.o.
69
70 2012-12-15 Joel Brobecker <brobecker@adacore.com>
71
72 * ravenscar-thread.c (ravenscar_is_open): Delete.
73 (ravenscar_initialize): Move most of the code from here...
74 (ravenscar_inferior_created): ... to there. Invert logic.
75 (ravenscar_close): Delete.
76 (init_ravenscar_thread_ops): Remove setting of
77 ravenscar_ops.to_close.
78
79 2012-12-15 Joel Brobecker <brobecker@adacore.com>
80
81 * objfiles.c (init_entry_point_info): Move function from here...
82 * symfile.c (init_entry_point_info): ... to there. Make static.
83 * objfiles.h (objfiles.h): Delete declaration.
84
85 2012-12-15 Joel Brobecker <brobecker@adacore.com>
86
87 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
88 Remove call to init_entry_point_info. Add OBJFILE's
89 section_offsets and num_sections initialization. Add note
90 about entry info in the function documentation.
91 (syms_from_objfile): New function.
92 * coffread.c (coff_symfile_init): Remove call to
93 init_entry_point_info.
94 * machoread.c (macho_symfile_init): Likewise.
95 * xcoffread.c(xcoff_symfile_init): Likewise.
96
97 2012-12-15 Yao Qi <yao@codesourcery.com>
98
99 * remote-notif.c (_initialize_notif): Add new commands
100 'set debug notification' and 'show debug notification'.
101 * NEWS: Mention these new commands.
102
103 2012-12-15 Yao Qi <yao@codesourcery.com>
104
105 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
106 (SFILES): Add "remote-notif.c".
107 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
108 * remote-notif.c: New. Factored out from remote.c.
109 * remote-notif.h: New.
110 * remote.c: Include "remote-notif.h".
111 (stop_reply_xmalloc, do_stop_reply_xfree):
112 (remote_parse_stop_reply, remote_get_pending_stop_replies):
113 (remote_async_get_pending_events_handler): Remove declarations.
114 (remote_parse_stop_reply): Declare.
115 (pending_stop_reply): Remove.
116 (remote_async_get_pending_events_token): Move to
117 remote-notif.c.
118 (remote_close): Replace 'delete_async_event_handler' with
119 remote_notif_unregister_async_event_handler.
120 Don't call discard_pending_stop_replies.
121 (remote_start_remote): Replace code with remote_notif_parse
122 and remote_notif_get_pending_replies.
123 (remote_open_1): Replace 'create_async_event_handler' with
124 remote_notif_register_async_event_handler.
125 (extended_remote_attach_1): Call remote_notif_parse and
126 notif_stop_reply_push.
127 (struct stop_reply) <next>: Remove.
128 <base>: New field.
129 Callers update.
130 (stop_reply_queue): Change its type.
131 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
132 (remote_notif_remove_all): New.
133 (discard_pending_stop_replies): Update.
134 (remote_notif_stop_ack, stop_reply_dtr): New.
135 (remote_notif_stop_alloc_event): New.
136 (notif_client_stop): New variable.
137 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
138 (queued_stop_reply, peek_stop_reply): Adjust.
139 (remote_get_pending_stop_replies): Rename to
140 remote_notif_get_pending_events.
141 (handle_notification): Move to remote-notif.c.
142 (remote_async_get_pending_events_handler): Likewise.
143 (remote_wait_as): Adjust to call remote_notif_parse.
144 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
145 Return minus_one_ptid early if gets a notification.
146 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
147 (_initialize_remote): Call QUEUE_alloc. Update caller.
148 (remote_resume): Call 'remote_notif_process' in all-stop mode.
149 * remote.h: Include "remote-notif.h".
150 (remote_notif_get_pending_replies): Declare.
151
152 2012-12-15 Yao Qi <yao@codesourcery.com>
153
154 * remote.c (discard_pending_stop_replies): Update declaration.
155 (remote_detach_1, extended_remote_mourn_1): Likewise.
156 (discard_pending_stop_replies): Change parameter from PID to
157 INF.
158 (remote_close): Update caller.
159 (_initialize_remote): Attach discard_pending_stop_replies to
160 inferior_exit observer.
161
162 2012-12-15 Yao Qi <yao@codesourcery.com>
163
164 * remote.c (getpkt_or_notif_sane): Add one more argument in
165 its declaration.
166 (getpkt_or_notif_sane_1): Add one more argument.
167 (getpkt_sane): Update caller.
168 (getpkt_or_notif_sane): Likewise. Update call
169 togetpkt_or_notif_sane_1.
170 (remote_wait_ns): Update caller.
171
172 2012-12-15 Yao Qi <yao@codesourcery.com>
173 Doug Evans <dje@google.com>
174
175 * common/queue.h: New.
176
177 2012-12-15 Yao Qi <yao@codesourcery.com>
178
179 * breakpoint.c (print_one_breakpoint_location): Display the
180 state of 'installed' of each non-pending location of a tracepoint
181 in both CLI and MI.
182 (download_tracepoint_locations): Notify 'breakpoint-modified'
183 observer if any tracepoint location is downloaded.
184 * tracepoint.c (start_tracing): Likewise.
185 (merge_uploaded_tracepoints): Record all modified
186 tracepoints and notify 'breakpoint-modified' observer for them.
187
188 * NEWS: Mention the change for CLI and MI.
189
190 2012-12-15 Yao Qi <yao@codesourcery.com>
191
192 * breakpoint.c (download_tracepoint_locations): Iterate over
193 ALL_TRACEPOINTS first and then iterate over locations of
194 each tracepoint.
195
196 2012-12-14 Pierre Muller <muller@sourceware.org>
197 Pedro Alves <palves@redhat.com>
198
199 * solib-target.c (solib_target_current_sos): Remove 'const'
200 qualifier from type of library_document local variable to be
201 able to free it and avoid a memory leak.
202 Use cleanup chain to avoid leak even if exceptino is generated.
203
204 2012-12-14 Tom Tromey <tromey@redhat.com>
205
206 PR c++/8888:
207 * symtab.c (lookup_symbol_aux): If constructor is found, consider
208 returning the type instead.
209 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
210 found.
211
212 2012-12-14 Tom Tromey <tromey@redhat.com>
213
214 Partial fix for PR c++/14160:
215 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
216 * dwarf2read.c (dwarf2_is_constructor): New function.
217 (dwarf2_add_member_fn): Use it.
218 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
219 TYPE_FN_FIELD_CONSTRUCTOR.
220 * jv-typeprint.c (java_type_print_base): Use
221 TYPE_FN_FIELD_CONSTRUCTOR.
222 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
223 <dummy>: Shrink.
224 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
225
226 2012-12-14 Tom Tromey <tromey@redhat.com>
227
228 * c-exp.y (block, variable, name_not_typename, lex_one_token,
229 classify_name): Update.
230 * c-valprint.c (c_val_print): Update.
231 * f-exp.y (yylex): Update.
232 * go-exp.y (package_name_p, classify_packaged_name)
233 (classify_name): Update.
234 * jv-exp.y (push_variable): Update.
235 * m2-exp.y (variable): Update.
236 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
237 * p-exp.y (block, variable, yylex): Update.
238 * p-valprint.c (pascal_val_print): Update.
239 * parse.c (write_dollar_variable): Update.
240 * printcmd.c (address_info): Update.
241 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
242 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
243 (lookup_symbol): Change type of 'is_a_field_of_this'.
244 (check_field): Add 'is_a_field_of_this' argument.
245 * symtab.h (struct field_of_this_result): New.
246 (lookup_symbol, lookup_symbol_in_language): Update.
247
248 2012-12-14 Tom Tromey <tromey@redhat.com>
249
250 * symtab.c (check_field): Now static. Move from...
251 * valops.c (check_field): ... here. Remove.
252 * value.h (check_field): Don't declare.
253
254 2012-12-14 Tom Tromey <tromey@redhat.com>
255
256 * NEWS: Mention "info proc" and core files.
257 * corelow.c (core_info_proc): New function.
258 (init_core_ops): Set to_info_proc.
259 * gdbarch.c, gdbarch.h: Rebuild.
260 * gdbarch.sh (core_info_proc): New method.
261 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
262 * linux-tdep.c (linux_core_info_proc_mappings)
263 (linux_core_info_proc): New functions.
264 (linux_find_memory_region_ftype): New typedef.
265 (linux_find_memory_regions_full): New function, from
266 linux_find_memory_regions.
267 (struct linux_find_memory_regions_data): New.
268 (linux_find_memory_regions_thunk): New function.
269 (linux_find_memory_regions): Rewrite.
270 (struct linux_make_mappings_data): New.
271 (linux_make_mappings_callback)
272 (linux_make_mappings_corefile_notes): New functions.
273 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
274 (linux_init_abi): Call set_gdbarch_core_info_proc.
275 * target.c (target_info_proc): Return 'int'.
276 * target.h (target_info_proc): Update.
277
278 2012-12-14 Pierre Muller <muller@sourceware.org>
279
280 * windows-nat.c (windows_xfer_shared_libraries): Avoid
281 memory leak when OFFSET >= LEN_AVAIL.
282
283 2012-12-13 Tom Tromey <tromey@redhat.com>
284
285 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
286
287 2012-12-13 Tom Tromey <tromey@redhat.com>
288
289 * acinclude.m4 (CY_AC_C_WORKS): Remove.
290
291 2012-12-13 Pierre Muller <muller@sourceware.org>
292
293 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
294 local variable and zero terminate it to avoid possible problems
295 in strcmp.
296
297 2012-12-13 Pedro Alves <palves@redhat.com>
298
299 * coff-pe-read.c: Include coff/internal.h.
300 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
301 Null terminate buffer explicitly instead of memset the whole
302 buffer.
303
304 2012-12-13 Pierre Muller <muller@sourceware.org>
305
306 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
307 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
308 for already defined macros.
309
310 2012-12-13 Pierre Muller <muller@sourceware.org>
311
312 * coff-pe-read.h (pe_text_section_offset): Declare new function.
313 * coff-pe-read.c (debug_coff_pe_read): New static variable.
314 (struct read_pe_section_data): Add section_name field.
315 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
316 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
317 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
318 (get_pe_section_index): New function.
319 (struct pe_sections_info): New type.
320 (get_section_vmas): Use new struct pe_sections_info.
321 (add_pe_exported_sym): Handle unnamed exported function.
322 (add_pe_forwarded_sym): New function.
323 (read_pe_truncate_name): Truncate at last dot.
324 (pe_as16): New function.
325 (read_pe_exported_syms): Use ordinal of function to
326 retrieve correct RVA address of function and handle
327 forwarded symbol.
328 (pe_text_section_offset): New function.
329 (show_debug_coff_pe_read): New function.
330 (_initialize_coff_pe_read): New function adding
331 'set/show debug coff_pe_read' commands.
332
333 * windows-tdep.c (windows_xfer_shared_library): Use
334 pe_text_section_offset function instead of possibly wrong
335 0x1000 constant for .text sextion offset.
336
337 2012-12-13 Pedro Alves <palves@redhat.com>
338
339 * gdbarch.sh (do_read): Set IFS to blank.
340
341 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
342
343 * NEWS: Mention the -catch-load/-catch-unload MI commands.
344
345 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
346
347 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
348 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
349 * breakpoint.c (add_solib_catchpoint): New function that
350 can be used by both CLI and MI, factored out from
351 catch_load_or_unload.
352 (catch_load_or_unload): Strip it down and make it use the
353 new add_solib_catchpoint.
354 * breakpoint.h (add_solib_catchpoint): Declare it.
355 * mi/mi-cmd-break.h: New file.
356 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
357 (setup_breakpoint_reporting): New function used for both
358 catchpoints and breakpoints.
359 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
360 * mi/mi-cmd-catch.c: New file.
361 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
362 and -catch-unload.
363 * mi/mi-cmds.h: Declare the handlers for -catch-load and
364 -catch-unload.
365
366 2012-11-28 Tom Tromey <tromey@redhat.com>
367
368 * dbxread.c (read_dbx_symtab): Update.
369 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
370 (read_ofile_symtab): Add 'objfile' argument.
371 * dwarf2read.c (process_psymtab_comp_unit_reader)
372 (build_type_psymtabs_reader): Update.
373 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
374 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
375 argument.
376 (parse_procedure, parse_partial_symbols): Update.
377 (psymtab_to_symtab_1): Add 'objfile' argument.
378 * psympriv.h (struct partial_symtab) <objfile>: Remove.
379 <read_symtab>: Add 'objfile' argument.
380 (sort_pst_symbols, discard_psymtab): Update.
381 * psymtab.c (partial_map_expand_apply): Update.
382 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
383 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
384 (find_pc_sect_psymbol): Add 'objfile' argument.
385 (lookup_symbol_aux_psymtabs): Update.
386 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
387 Add 'objfile' argument.
388 (find_last_source_symtab_from_partial, dump_psymtab)
389 (dump_psymtabs_for_objfile, read_symtabs_for_function)
390 (expand_partial_symbol_tables, read_psymtabs_with_filename)
391 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
392 (expand_symtabs_matching_via_partial): Update.
393 (sort_pst_symbols): Add 'objfile' argument.
394 (allocate_psymtab): Update.
395 (discard_psymtab): Add 'objfile' argument.
396 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
397 * stabsread.h (end_psymtab): Update.
398 * xcoffread.c (this_symtab_objfile): New global.
399 (process_linenos, enter_line_range, xcoff_next_symbol_text):
400 Update.
401 (read_xcoff_symtab): Add 'objfile' argument.
402 (read_symbol, read_symbol_lineno): Update.
403 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
404 (xcoff_end_psymtab): Add 'objfile' argument.
405 (scan_xcoff_symtab): Update.
406
407 2012-12-12 Paul Koning <paul_koning@dell.com>
408
409 Add support for Python 3.
410 * NEWS: Mention Python 3 support.
411 * varobj.c (value_get_print_value): Use
412 python_string_to_target_string.
413 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
414 of type objects.
415 * python/py-breakpoint.c: Ditto.
416 * python/py-cmd.c: Ditto.
417 * python/py-event.c: Ditto.
418 * python/py-event.h: Ditto.
419 * python/py-evtregistry.c: Ditto.
420 * python/py-finishbreakpoint.c: Ditto.
421 * python/py-frame.c: Ditto.
422 * python/py-function.c: Ditto.
423 * python/py-infthread.c: Ditto.
424 * python/py-lazy-string.c: Ditto.
425 * python/py-progspace.c: Ditto.
426 * /python/py-symbol.c: Ditto.
427 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
428 initialization for Python 3.
429 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
430 of type objects.
431 (infpy_read_memory): Return memoryview object if Python 3.
432 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
433 (infpy_search_memory): Ditto.
434 (get_buffer): New function for Python 3.
435 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
436 of type objects.
437 (objfpy_dealloc): Use Py_TYPE to call tp_free.
438 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
439 of type objects.
440 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
441 (set_attr): Ditto.
442 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
443 instead of PyString methods if Python 3.
444 (print_children): Skip push_dummy_python_frame call if Python 3.
445 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
446 of type objects.
447 (salpy_dealloc): Use Py_TYPE to call tp_free.
448 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
449 of type objects.
450 (field_dealloc): Use Py_TYPE to call tp_free.
451 (typy_dealloc): Ditto.
452 (type_object_as_number): Adjust struct initializations for
453 differences in layout for Python 2 vs. Python 3.
454 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
455 string case for Python 3.
456 (unicode_to_encoded_python_string): Shorten code (no functional
457 change).
458 (python_string_to_target_python_string): Comment that in Python 3
459 returned value is a Python "bytes" type.
460 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
461 (gdb_py_object_from_longest): Omit non-long integer case in Python
462 3.
463 (gdb_py_object_from_ulongest): Ditto.
464 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
465 of type objects.
466 (valpy_dealloc): Use Py_TYPE to call tp_free.
467 (valpy_int): Omit function if Python 3.
468 (convert_value_from_python): Use "%S" format (Python object as a
469 string) if Python 3.
470 (value_object_as_number): Adjust struct initializations for
471 differences in layout for Python 2 vs. Python 3.
472 * python/python-config.py: Adjust syntax for Python 3
473 compatibility.
474 Include "sys.abiflags" string as part of python library name, if
475 that attribute exists (Python 3).
476 * python/python-internal.h (IS_PY3): Define if Python 3.
477 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
478 placeholder value if Python 3.
479 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
480 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
481 analogous Python 3 API function if Python 3.
482 (PyVarObject_HEAD_INIT): Define if not already defined.
483 (Py_TYPE): Ditto.
484 * python/python.c (eval_python_command): Omit Py_FlushLine call if
485 Python 3.
486 Check return values of all Python API calls for error.
487 Supply dummy "python" and "python-interactive" commands if Python
488 initialization failed.
489 (_initialize_python): Convert argc to wchar_t** if Python 3.
490 Add module initialization for Python 3.
491 (finish_python_initialization): Pass wchar_t * argument to
492 PySys_SetPath if Python 3.
493 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
494 (_GdbFile): New class for common output file behavior.
495 (GdbOutFile): Subclass from _GdbFile.
496 (GdbOutputErrorFile): Ditto.
497 (auto_load_packages): Adjust syntax for Python 3 compatibility.
498 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
499 * python/lib/gdb/prompt.py: Use sorted() function rather than
500 sort() method.
501 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
502 Adjust syntax for Python 3 compatibility.
503 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
504 rather than sort() method.
505 Adjust syntax for Python 3 compatibility.
506 * python/lib/gdb/command/type_printers.py: Ditto.
507 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
508 value is a memoryview object if Python 3.
509
510 2012-12-12 Tom Tromey <tromey@redhat.com>
511
512 * coffread.c (coff_objfile_data_key): New global.
513 (coff_symfile_init): Use set_objfile_data.
514 (coff_symfile_read): Use objfile_data.
515 (coff_symfile_finish): Don't free deprecated_sym_private.
516 (coff_free_info): New function.
517 (_initialize_coffread): Initialize coff_objfile_data_key.
518 * mdebugread.c (pending_list): Update comment.
519 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
520 * symfile.c (reread_symbols): Don't mention
521 deprecated_sym_private.
522 * xcoffread.c (xcoff_objfile_data_key): New global.
523 (XCOFF_DATA): New macro.
524 (process_linenos, enter_line_range, xcoff_next_symbol_text)
525 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
526 XCOFF_DATA.
527 (xcoff_new_init) Use set_objfile_data.
528 (xcoff_symfile_finish): Don't free deprecated_sym_private.
529 (init_stringtab, swap_sym, scan_xcoff_symtab)
530 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
531 (xcoff_free_info): New function.
532 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
533
534 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
535
536 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
537
538 2012-12-12 Tom Tromey <tromey@redhat.com>
539
540 * coffread.c (coff_symfile_init): Use set_objfile_data.
541 (coff_symfile_read): Use DBX_SYMFILE_INFO.
542 * dbxread.c (dbx_objfile_data_key): New global.
543 (dbx_symfile_init): Use set_objfile_data.
544 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
545 (dbx_free_symfile_info): New function.
546 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
547 DBX_SYMFILE_INFO.
548 (stabsect_build_psymtabs): Use set_objfile_data.
549 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
550 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
551 set_objfile_data.
552 (free_elfinfo): Use DBX_SYMFILE_INFO.
553 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
554 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
555 * gdb-stabs.h (dbx_objfile_data_key): Declare.
556 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
557 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
558 * somread.c (som_symfile_finish): Don't free
559 deprecated_sym_stab_info.
560
561 2012-12-12 Joel Brobecker <brobecker@adacore.com>
562
563 * gdbarch.sh (software_single_step): Remove trailing space in
564 comment (gdbarch.h is already correct).
565
566 2012-12-11 Tom Tromey <tromey@redhat.com>
567
568 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
569
570 2012-12-11 Tom Tromey <tromey@redhat.com>
571
572 * dsrec.c (report_transfer_performance): Don't declare.
573 (load_srec): Use gettimeofday, print_transfer_performance.
574 * symfile.c (report_transfer_performance): Remove.
575
576 2012-12-11 Pedro Alves <pedro@codesourcery.com>
577 Pedro Alves <palves@redhat.com>
578
579 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
580 NT_PSTATUS note.
581 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
582 differently from LWP IDs.
583
584 2012-12-11 Pedro Alves <palves@redhat.com>
585
586 * configure.ac (detect type of /proc): Remove Unixware handling.
587 * configure: Regenerate.
588 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
589 (ioctl_table) [PCRESET]: Remove entry.
590 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
591 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
592 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
593 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
594 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
595 Unixware in comments throughout.
596 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
597 and remove mention of Unixware.
598
599 2012-12-10 Doug Evans <dje@google.com>
600
601 * dwarf2read.c (dwarf2_cu): Enhance comment.
602 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
603 the DWO file.
604 (dwarf2_record_block_ranges): Ditto.
605
606 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
607
608 * symtab.c (find_pc_sect_symtab): Add comment.
609
610 2012-12-10 Tom Tromey <tromey@redhat.com>
611
612 * defs.h: Don't check for definition of LONGEST.
613 (min, max): Remove duplicates.
614
615 2012-12-10 Tom Tromey <tromey@redhat.com>
616
617 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
618 (dwarf2_fetch_die_loc_cu_off): Rename from
619 dwarf2_fetch_die_location_block. Rewrite to use
620 dwarf2_fetch_die_loc_sect_off.
621 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
622 (dwarf2_fetch_die_loc_cu_off): Rename.
623 * dwarf2loc.c (indirect_pieced_value): Use
624 dwarf2_fetch_die_loc_sect_off.
625 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
626 comment.
627 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
628 * dwarf2expr.c (add_piece): Update.
629 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
630
631 2012-12-10 Tom Tromey <tromey@redhat.com>
632
633 * buildsym.c (struct pending_block): Move from buildsym.h.
634 (pending_blocks): Likewise; now static.
635 (pending_block_obstack): New global.
636 (free_pending_blocks): Free blocks.
637 (record_pending_block): Use pending_block_obstack.
638 * buildsym.h (struct pending_block): Move definition to
639 buildsym.c.
640 (pending_blocks): Don't declare.
641
642 2012-12-10 Pedro Alves <palves@redhat.com>
643
644 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
645 dead SCO code, and adjust function description comment.
646
647 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
650 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
651 CC_HAS_LONG_LONG.
652 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
653 * dwarf2read.c (extract_cu_value): Remove the function.
654 (create_cus_from_index_list): Make the return type void, inline the
655 extract_cu_value caller, include new gdb_static_assert.
656 (create_cus_from_index): Make the return type void, update the function
657 comment, update the create_cus_from_index_list caller.
658 (create_signatured_type_table_from_index): Make the return type void,
659 inline the extract_cu_value caller, include new gdb_static_assert.
660 (dwarf2_read_index): Update the create_cus_from_index and
661 create_signatured_type_table_from_index caller.
662 * printcmd.c (ui_printf): Remove conditionalizations for
663 CC_HAS_LONG_LONG.
664 * config.in: Regenerate.
665 * configure: Regenerate.
666
667 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
668
669 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
670 Update the comment for checked_producer.
671 (check_producer): New forward declaration.
672 (producer_is_gcc_lt_4_3): New function.
673 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
674 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
675
676 2012-12-07 Tom Tromey <tromey@redhat.com>
677
678 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
679 argument, assertion.
680 * c-exp.y (typebase): Add completion productions.
681 * completer.c (expression_completer): Handle tag completion.
682 * expression.h (parse_expression_for_completion): Add argument.
683 * f-lang.c (f_make_symbol_completion_list): Add 'code'
684 argument.
685 * language.h (struct language_defn)
686 <la_make_symbol_completion_list>: Add 'code' argument.
687 * parse.c (expout_tag_completion_type, expout_completion_name):
688 New globals.
689 (mark_struct_expression): Add assertion.
690 (mark_completion_tag): New function.
691 (parse_exp_in_context): Initialize new globals.
692 (parse_expression_for_completion): Add 'code' argument. Handle
693 tag completion.
694 * parser-defs.h (mark_completion_tag): Declare.
695 * symtab.c (default_make_symbol_completion_list_break_on): Add
696 'code' argument. Update.
697 (default_make_symbol_completion_list): Add 'code' argument.
698 (make_symbol_completion_list): Update.
699 (make_symbol_completion_type): New function.
700 * symtab.h (default_make_symbol_completion_list_break_on)
701 (default_make_symbol_completion_list): Update.
702 (make_symbol_completion_type): Declare.
703
704 2012-12-07 Tom Tromey <tromey@redhat.com>
705
706 * expression.h (parse_expression_for_completion): Rename
707 from parse_field_expression.
708 (parse_completion): Rename from in_parse_field.
709 * c-exp.y (lex_one_token): Update.
710 * completer.c (expression_completer): Update.
711 * go-exp.y (lex_one_token): Update.
712 * p-exp.y (yylex): Update.
713 * parse.c (parse_completion): Rename from in_parse_field.
714 (parse_exp_in_context): Update.
715 (parse_expression_for_completion): Rename from
716 parse_field_expression. Update.
717
718 2012-12-07 Tom Tromey <tromey@redhat.com>
719
720 * typeprint.c (_initialize_typeprint): Set completer
721 for "whatis" and "ptype".
722
723 2012-12-07 Joel Brobecker <brobecker@adacore.com>
724
725 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
726 "sim/common/cgen-fpu.h". Remove invalid entries
727 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
728 which actually have an FSF copyright header.
729
730 2012-12-07 Joel Brobecker <brobecker@adacore.com>
731
732 * osf-share/AT386/cma_thread_io.h: Delete.
733 * osf-share/HP800/cma_thread_io.h: Delete.
734 * osf-share/README: Delete.
735 * osf-share/RIOS/cma_thread_io.h: Delete.
736 * osf-share/cma_attr.h: Delete.
737 * osf-share/cma_deb_core.h: Delete.
738 * osf-share/cma_debug_client.h: Delete.
739 * osf-share/cma_errors.h: Delete.
740 * osf-share/cma_handle.h: Delete.
741 * osf-share/cma_init.h: Delete.
742 * osf-share/cma_list.h: Delete.
743 * osf-share/cma_mutex.h: Delete.
744 * osf-share/cma_sched.h: Delete.
745 * osf-share/cma_semaphore_defs.h: Delete.
746 * osf-share/cma_sequence.h: Delete.
747 * osf-share/cma_stack.h: Delete.
748 * osf-share/cma_stack_int.h: Delete.
749 * osf-share/cma_tcb_defs.h: Delete.
750 * osf-share/cma_util.h: Delete.
751 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
752 in osf-share.
753 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
754 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
755 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
756
757 2012-12-06 Pedro Alves <palves@redhat.com>
758 Tom Tromey <tromey@redhat.com>
759
760 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
761
762 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
763
764 PR mi/14741:
765 * mi/mi-cmd-var.c (varobj_update_one): Take value of
766 attribute "dynamic" and "displayhint" from printed child,
767 not the root variable.
768
769 2012-12-06 Joel Brobecker <brobecker@adacore.com>
770
771 * aix-thread.c (getthrds): Fix type of 4th parameter.
772 (get_signaled_thread): Change type of variable ktid to tid_t.
773
774 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
775
776 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
777 value of get_frame_block.
778
779 2012-12-05 Pierre Muller <muller@sourceware.org>
780
781 Avoid memory leaks on struct cmd_list_element.doc field.
782 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
783 if flags contains DOC_ALLOCATED.
784 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
785 flags.
786 (delete_cmd): Handle DOC_ALLOCATED flag.
787 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
788 in flags filed of struct cmd_list_element.
789 (struct cmd_list_element): Document new flag item.
790
791 2012-12-04 Doug Evans <dje@google.com>
792
793 * symmisc.c: Whitespace fixes.
794
795 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
796
797 * i386-tdep.c (i386_skip_prologue): Using symbol table
798 to find the end of prologue for clang compiled binaries.
799 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
800 to find the end of prologue for clang compiled binaries.
801
802 2012-12-03 Doug Evans <dje@google.com>
803
804 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
805 (dw2_find_symbol_file): Delete unused local file_data.
806
807 2012-12-03 Tom Tromey <tromey@redhat.com>
808
809 * ada-exp.y (write_object_renaming, write_var_or_type)
810 (write_ambiguous_var, write_var_from_sym): Make blocks const.
811 * ada-lang.c (replace_operator_with_call)
812 (find_old_style_renaming_symbol): Make blocks const.
813 * ada-lang.h (ada_find_renaming_symbol): Update.
814 (struct ada_symbol_info) <block>: Now const.
815 * breakpoint.c (watch_command_1): Update.
816 * breakpoint.h (struct watchpoint) <exp_valid_block,
817 cond_exp_valid_block>: Now const.
818 * c-exp.y (classify_inner_name, classify_name): Make block
819 argument const.
820 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
821 const.
822 * expression.h (innermost_block, parse_exp_1): Update.
823 (union exp_element) <block>: Now const.
824 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
825 (lookup_struct): Make block argument const.
826 * gdbtypes.h (lookup_template_type): Update.
827 * go-exp.y (classify_name, classify_packaged_name)
828 (package_name_p): Make block argument const.
829 * objc-lang.c (lookup_struct_typedef): Make block argument const.
830 * objc-lang.h (lookup_struct_typedef): Update.
831 * parse.c (parse_exp_in_context, parse_exp_1)
832 (write_exp_elt_block): Make block arguments const.
833 (expression_context_block, innermost_block): Now const.
834 * parser-defs.h (write_exp_elt_block): Update.
835 (expression_context_block, innermost_block, block_found): Now
836 const.
837 * printcmd.c (struct display) <block>: Now const.
838 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
839 * valops.c (address_of_variable): Make block argument const.
840 * value.h (value_of_variable): Update.
841 * varobj.c (struct varobj_root) <valid_block>: Now const.
842
843 2012-11-30 Yao Qi <yao@codesourcery.com>
844
845 * breakpoint.c (print_one_breakpoint_location): Indent code.
846
847 2012-11-30 Yao Qi <yao@codesourcery.com>
848
849 * breakpoint.c (print_one_breakpoint_location): Combine two
850 blocks handling 'hit count' together.
851
852 2012-11-30 Yao Qi <yao@codesourcery.com>
853
854 * infrun.c (error_is_running, ensure_not_running): Move them
855 to ...
856 * infcmd.c (error_is_running, ensure_not_running): ... here.
857 Make them 'static'.
858 * inferior.h: Remove declarations of error_is_running and
859 ensure_not_running.
860
861 2012-11-30 Yao Qi <yao@codesourcery.com>
862
863 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
864 check REGNUM >= 0.
865
866 2012-11-30 Yao Qi <yao@codesourcery.com>
867
868 * infrun.c: Make the declaration of 'init_infwait_state'
869 static.
870 (init_infwait_state): Make it 'static'.
871
872 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
873
874 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
875 return value to void to avoid compiler warning.
876
877 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
878
879 * opencl-lang.c (opencl_print_type): New function.
880 (opencl_language_arch_info): Install it.
881
882 2012-11-29 Tom Tromey <tromey@redhat.com>
883
884 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
885 xvasprintf.
886 * common/common-utils.c (xasprintf, xvasprintf): Remove.
887 * common/common-utils.h (xasprintf, xvasprintf): Remove.
888
889 2012-11-29 Jerome Guitton <guitton@adacore.com>
890
891 * ada-lang.c (ada_is_interface_tag): New function.
892 (ada_is_ignored_field): Add interface tags to the list
893 of ignored fields.
894
895 2012-11-29 Jerome Guitton <guitton@adacore.com>
896
897 * ada-lang.h (ada_tag_value_at_base_address): New function
898 declaration.
899 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
900 New functions.
901 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
902 relocate the class-wide value if need be.
903 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
904 Let ada_tag_value_at_base_address relocate the class-wide access/ref
905 before dereferencing it.
906 * ada-valprint.c (ada_val_print_1): Relocate to base address
907 before displaying the content of an interface-wide ref.
908
909 2012-11-29 Jerome Guitton <guitton@adacore.com>
910
911 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
912
913 2012-11-29 Joel Brobecker <brobecker@adacore.com>
914
915 GDB 7.5.1 released.
916
917 2012-11-29 Yao Qi <yao@codesourcery.com>
918 Tom Tromey <tromey@redhat.com>
919
920 * eval.c (evaluate_subexp_standard): Get the correct pointer
921 type for TYPE_CODE_MEMBERPTR.
922
923 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
924
925 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
926 since now it is being done by binutils' powerpc_init_dialect().
927
928 2012-11-28 Tom Tromey <tromey@redhat.com>
929
930 PR gdb/14290:
931 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
932 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
933 Use it.
934 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
935 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
936 (gdb_bfd_openr_next_archived_file): Use it.
937
938 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
939
940 * configure.ac: Check for linux/perf_event.h.
941 * config.in: Regenerated.
942 * configure: Regenerated.
943
944 2012-11-28 Yao Qi <yao@codesourcery.com>
945
946 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
947 abbreviate 'delete tracepoints' to 'delete tr'.
948 * corefile.c (_initialize_core): Call add_alias_cmd to
949 abbreviate 'set gnutarget' to 'set g'.
950 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
951 'show convenience' to 'show conv'.
952
953 2012-11-27 Joel Brobecker <brobecker@adacore.com>
954
955 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
956 call to sparc_supply_fpregset.
957 (fill_fpregset): Fix first parameter in call to
958 sparc_collect_fpregset.
959
960 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
961 Kazu Hirata <kazu@codesourcery.com>
962 Yao Qi <yao@codesourcery.com>
963
964 * objfiles.c (init_entry_point_info): Call
965 gdbarch_convert_from_func_ptr_addr and
966 gdbarch_addr_bits_remove here ...
967 (entry_point_address_query): ... instead of here.
968 * solib-svr4.c (exec_entry_point): Call
969 gdbarch_addr_bits_remove.
970 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
971 the entry address.
972
973 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
974 Yao Qi <yao@codesourcery.com>
975
976 * eval.c (evaluate_subexp_standard): Add handling of
977 TYPE_CODE_MEMBERPTR when calling functions. Correct the
978 result of ptype for calling a TYPE_CODE_METHODPTR.
979
980 2012-11-27 Yao Qi <yao@codesourcery.com>
981
982 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
983 warning.
984 Add i18n markup.
985
986 2012-11-26 Alexander Larsson <alexl@redhat.com>
987 Jan Kratochvil <jan.kratochvil@redhat.com>
988 Tom Tromey <tromey@redhat.com>
989
990 * NEWS: Mention mini debuginfo feature.
991 * minidebug.c: New file.
992 * configure.ac: Check for lzma.
993 * configure, config.in: Rebuild.
994 * Makefile.in (LIBLZMA): New variable.
995 (CLIBS): Include LIBLZMA.
996 (SFILES): Mention minidebug.c.
997 (COMMON_OBS): Mention minidebug.o.
998 * symfile.c (read_symbols): New function.
999 (syms_from_objfile, reread_symbols): Call it.
1000 * symfile.h (find_separate_debug_file_in_section): Declare.
1001
1002 2012-11-26 Keith Seitz <keiths@redhat.com>
1003
1004 * exec.c (exec_file_attach): Move cleanup after verifying that
1005 memory has in fact been allocated.
1006
1007 2012-11-26 Tom Tromey <tromey@redhat.com>
1008
1009 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1010 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1011 SYMBOL_SYMTAB.
1012 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1013
1014 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1015 Pedro Alves <palves@redhat.com>
1016
1017 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1018 size parameter passed to readlink by one byte.
1019 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1020 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1021 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1022 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1023 size by one byte.
1024
1025 2012-11-26 Yao Qi <yao@codesourcery.com>
1026
1027 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1028 extraneous parentheses.
1029
1030 2012-11-26 Yao Qi <yao@codesourcery.com>
1031
1032 * remote.c (remote_start_remote): Typo fix.
1033
1034 2012-11-23 David S. Miller <davem@davemloft.net>
1035
1036 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1037 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1038 sparc32_sol2_fpregset): Declare new globals.
1039 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1040 'fpregset' argument.
1041 * sparc64-tdep.h (sparc64_supply_fpregset,
1042 sparc64_collect_fpregset): Likewise.
1043 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1044 globals.
1045 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1046 (sparc_fpregset): Declare new global.
1047 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1048 'fpregset' argument.
1049 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1050 into handler.
1051 (fill_fpregset): Likewise.
1052 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1053 sparc32_bsd_fpregset.
1054 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1055 sparc32_bsd_fpregset down into handler.
1056 (sparc32_linux_collect_core_fpregset): Likewise.
1057 * sparc-nat.c (sparc_fpregset): Define.
1058 (sparc_supply_fpregset): Add 'fpregset' argument.
1059 (sparc_collect_fpregset): Likewise.
1060 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1061 into fpregset handler.
1062 (sparc_store_inferior_registers): Likewise.
1063 (_initialize_sparc_nat): Set sparc_fpregset to
1064 sparc32_sunos4_fpregset if NULL.
1065 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1066 down into handler.
1067 (fill_fpregset): Likewise.
1068 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1069 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1070 use it to compute offsets.
1071 (sparc32_collect_fpregset): Likewise.
1072 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1073 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1074 down into handler.
1075 (fill_fpregset): Likewise.
1076 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1077 Likewise.
1078 (sparc64_linux_collect_core_fpregset): Likewise.
1079 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1080 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1081 use it to compute offsets.
1082 (sparc64_collect_fpregset): Likewise.
1083 (sparc64_bsd_fpregset): Define.
1084 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1085 sparc64_bsd_fpregset down into handler.
1086 (sparc64fbsd_collect_fpregset): Likewise.
1087 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1088 and pass sparc{32,64}_bsd_fpregset down into handler.
1089 (sparc64nbsd_collect_fpregset): Likewise.
1090 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1091 sparc64_bsd_fpregset down into handler.
1092 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1093 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1094 to sparc32_bsd_fpregset.
1095 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1096 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1097 (sparc32nbsd_supply_fpregset): Likewise.
1098
1099 2012-11-21 Tom Tromey <tromey@redhat.com>
1100
1101 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1102 field.
1103 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1104 Remove.
1105 * c-typeprint.c (c_type_print_base): Update.
1106
1107 2012-11-21 Yao Qi <yao@codesourcery.com>
1108
1109 PR tdep/7438
1110 * gdbarch.sh (smash_text_address): Remove.
1111 * gdbarch.c, gdbarch.h: Regenerate.
1112 * arm-tdep.c (arm_smash_text_address): Remove.
1113 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1114 * hppa-tdep.c (hppa_smash_text_address): Remove.
1115 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1116 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1117 Caller update.
1118 * coffread.c (coff_symtab_read): Caller update.
1119 * dbxread.c (process_one_symbol): Likewise.
1120 * elfread.c (record_minimal_symbol): Likewise.
1121 * somread.c (som_symtab_read): Likewise.
1122
1123 2012-11-20 Pierre Muller <muller@sourceware.org>
1124
1125 ARI fixes: sprintf rule.
1126 Replace sprintf function calls for char arrays by
1127 calls to xsnprintf calls.
1128 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1129 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1130 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1131 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1132 * breakpoint.c (condition_completer): Ditto.
1133 (create_tracepoint_from_upload): Ditto.
1134 * dwarf2read.c (file_full_name): Ditto.
1135 * gcore.c (gcore_command): Ditto.
1136 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1137 * go32-nat.c (go32_sysinfo): Ditto.
1138 * interps.c (interp_set): Ditto.
1139 * m32c-tdep.c (make_types): Ditto.
1140 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1141 * remote-m32r-sdi.c (m32r_open): Ditto.
1142 * sol-thread.c (td_err_string): Ditto.
1143 (td_state_string, solaris_pid_to_str): Ditto.
1144 * symtab.c (gdb_mangle_name): Ditto.
1145 * cli/cli-script.c (execute_control_command): Ditto.
1146 (define_command, document_command): Ditto.
1147 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1148 * tui/tui-stack.c (tui_make_status_line): Ditto.
1149 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1150
1151 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1152
1153 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1154 it when looking at ptr->func.
1155 * command.h (complete_on_cmdlist): Add a fourth arg.
1156 * completer.c (complete_line_internal): Add local ignore_help_classes,
1157 and set it to 1 when reason is not handle_help. Pass this down to
1158 lookup_cmd_1 and complete_on_cmdlist.
1159
1160 2012-11-20 Tom Tromey <tromey@redhat.com>
1161
1162 * completer.c (count_struct_fields): Remove.
1163 (expression_completer): Don't call count_struct_fields.
1164
1165 2012-11-20 Pedro Alves <palves@redhat.com>
1166
1167 * annotate.c (breakpoints_changed): Rename to ...
1168 (annotate_breakpoints_changed): ... this.
1169 (annotate_stopped, breakpoint_changed): Adjust caller.
1170 * annotate.h (breakpoints_changed): Rename to ...
1171 (annotate_breakpoints_changed): ... this.
1172 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1173 (do_map_commands_command, init_raw_breakpoint, clear_command)
1174 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1175
1176 2012-11-20 David S. Miller <davem@davemloft.net>
1177
1178 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1179 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1180 sysconf.
1181 (get_cores_used_by_process): Update comment.
1182
1183 2012-11-20 Yao Qi <yao@codesourcery.com>
1184
1185 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1186
1187 2012-11-20 Yao Qi <yao@codesourcery.com>
1188
1189 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1190 to deprecated_context_hook.
1191
1192 2012-11-19 Yao Qi <yao@codesourcery.com>
1193
1194 * infrun.c (infwait_state): Add static.
1195
1196 2012-11-16 Keith Seitz <keiths@redhat.com>
1197
1198 PR c++/13615
1199 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1200 parameter and pass it to lookup_symbol_file.
1201 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1202 to search base classes.
1203 (cp_lookup_symbol_namespace): Likewise.
1204 (lookup_namespace_scope): Likewise.
1205 (lookup_symbol_file): Add SEARCH parameter.
1206 If SEARCH is non-zero and no symbol is found, lookup the class
1207 and call cp_lookup_nested_symbol.
1208 (find_symbol_in_baseclass): New function.
1209 (cp_lookup_nested_symbol): Do not let
1210 cp_lookup_symbol_in_namespace search through base classes.
1211 Do that later when there is no global symbol match.
1212
1213 2012-11-16 Doug Evans <dje@google.com>
1214
1215 * main.c (gdb_datadir_provided): New static global.
1216 (get_init_files): If --data-directory is provided,
1217 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1218 * NEWS: Mention it.
1219
1220 2012-11-15 Pierre Muller <muller@sourceware.org>
1221
1222 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1223 * gdb_stat.h: Delete. Moved to common directory.
1224 * common/gdb_stat.h: New file.
1225 * gdb_wait.h: Delete. Moved to common directory.
1226 * common/gdb_wait.h: New file.
1227 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1228 location.
1229 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1230 location.
1231 (stat.h rule): Adapt to new gdb_stat.h location.
1232 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1233 <sys/stat.h> header.
1234 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1235 <sys/wait.h> header.
1236
1237 2012-11-15 Pierre Muller <muller@sourceware.org>
1238
1239 * configure.ac (AC_HEADER_STAT): Remove.
1240 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1241 and corresponding code.
1242 * configure: Regenerate.
1243 * config.in: Regenerate.
1244
1245 2012-11-15 Pierre Muller <muller@sourceware.org>
1246
1247 ARI xasprintf rule fixes.
1248 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1249 instead of xasprintf.
1250 (open_and_init_dwp_file): Ditto.
1251
1252 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1253
1254 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1255 target types.
1256
1257 2012-11-14 Tom Tromey <tromey@redhat.com>
1258
1259 * configure, config.in: Rebuild.
1260 * configure.ac: Don't check for ctype.h, time.h.
1261 * expprint.c: Don't use HAVE_CTYPE_H.
1262
1263 2012-11-13 Tom Tromey <tromey@redhat.com>
1264
1265 * gdbarch.h, gdbarch.c: Rebuild.
1266 * gdbarch.sh (set_target_gdbarch): Rename from
1267 deprecated_target_gdbarch_select_hack.
1268 * arch-utils.c (gdbarch_update_p): Update.
1269 (set_gdbarch_from_file): Update.
1270
1271 2012-11-14 Pierre Muller <muller@sourceware.org>
1272
1273 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1274 as responsible of contrib/ari directory.
1275
1276 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1277 Yao Qi <yao@codesourcery.com>
1278
1279 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1280 bit of EXC_RETURN.
1281 (arm_m_exception_cache, arm_m_exception_this_id)
1282 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1283 (arm_m_exception_unwind): New.
1284 (arm_gdbarch_init): Register arm_m_exception_unwind.
1285
1286 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1287
1288 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1289 parameter COUNT, for pattern filling of memory regions.
1290 * NEWS: Mention it.
1291
1292 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1293
1294 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1295 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1296 to print_source_lines ().
1297 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1298 flag.
1299 * source.c (print_source_lines_base): Prefix source line with
1300 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1301
1302 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1303
1304 * symtab.h (print_source_lines_flags): New enum.
1305 * source.c (print_source_lines_base): Change noerror to flags.
1306 (print_source_lines): Change noerror to flags.
1307
1308 2012-11-13 Pierre Muller <muller@sourceware.org>
1309
1310 ARI fixes: Avoid sprintf function use rule.
1311 * charset.c (convert_between_encodings): Use xsnprintf.
1312 * cli-out.c (cli_field_int): Likewise.
1313 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1314 * expprint.c (op_name_standard): Likewise.
1315 * frv-tdep.c (set_variant_num_gprs): Likewise.
1316 (set_variant_num_fprs): Likewise.
1317 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1318 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1319 (nto_init_solib_absolute_prefix): Likewise.
1320 * source.c (init_source_path): Likewise.
1321 (print_source_lines_base): Likewise.
1322 * valprint.c (print_wchar): Likewise.
1323 * mi/mi-out.c (mi_field_int): Likewise.
1324 windows-nat.c (windows_pid_to_exec_file): Likewise.
1325 (windows_create_inferior): Likewise.
1326 (_initialize_check_for_gdb_ini): Likewise.
1327
1328 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1329
1330 * frame.h (deprecated_frame_register_read): Renames
1331 frame_register_read.
1332 * frame.c (deprecated_frame_register_read): Renames
1333 frame_register_read. Update all callers.
1334 * i386-tdep.c: Update all callers of frame_register_read.
1335 * infcmd.c: Likewise.
1336 * jit.c: Likewise.
1337 * mips-tdep.c: Likewise.
1338 * mt-tdep.c: Likewise.
1339 * sh64-tdep.c: Likewise.
1340
1341 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1342
1343 * frame.h (frame_register_read): Remove FIXME comment.
1344 * frame.c (frame_register_read): Add suggestion explaining
1345 which function to use in place of this one.
1346
1347 2012-11-12 Tom Tromey <tromey@redhat.com>
1348
1349 * python/python.c (start_type_printers): Initialize 'result_obj'.
1350
1351 2012-11-12 Tom Tromey <tromey@redhat.com>
1352
1353 * NEWS: Update.
1354 * data-directory/Makefile.in (PYTHON_FILES): Add
1355 type_printers.py.
1356 * python/lib/gdb/command/type_printers.py: New file.
1357 * python/lib/gdb/command/types.py (TypePrinter): New class.
1358 (_get_some_type_recognizers, get_type_recognizers,
1359 apply_type_recognizers, register_type_printer): New
1360 functions.
1361 * python/py-objfile.c (objfile_object) <type_printers>: New
1362 field.
1363 (objfpy_dealloc): Decref new field.
1364 (objfpy_new): Set new field.
1365 (objfpy_get_type_printers, objfpy_set_type_printers): New
1366 functions.
1367 (objfile_to_objfile_object): Set new field.
1368 (objfile_getset): Add "type_printers".
1369 * python/py-progspace.c (pspace_object) <type_printers>: New
1370 field.
1371 (pspy_dealloc): Decref new field.
1372 (pspy_new): Set new field.
1373 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1374 (pspace_to_pspace_object): Set new field.
1375 (pspace_getset): Add "type_printers".
1376 * python/python.c (start_type_printers, apply_type_printers,
1377 free_type_printers): New functions.
1378 (_initialize_python): Set gdb.type_printers.
1379 * python/python.h (start_type_printers, apply_type_printers,
1380 free_type_printers): Declare.
1381 * typeprint.c (type_print_raw_options, default_ptype_flags):
1382 Update for new fields.
1383 (do_free_global_table, create_global_typedef_table,
1384 find_global_typedef): New functions.
1385 (find_typedef_in_hash): Use find_global_typedef.
1386 (whatis_exp): Use create_global_typedef_table. Change cleanup
1387 handling.
1388 * typeprint.h (struct type_print_options) <global_typedefs,
1389 global_printers>: New fields.
1390
1391 2012-11-12 Tom Tromey <tromey@redhat.com>
1392
1393 * c-typeprint.c (find_typedef_for_canonicalize,
1394 print_name_maybe_canonical): New functions.
1395 (c_print_type): Look up type name.
1396 (cp_type_print_derivation_info): Add flags argument. Use
1397 print_name_maybe_canonical.
1398 (cp_type_print_method_args): Add wrapping.
1399 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1400 (c_type_print_template_args): New function.
1401 (c_type_print_base): Change wrapping. Use
1402 print_name_maybe_canonical.
1403 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1404 type name lookups.
1405 * gdbtypes.c (types_equal): No longer static.
1406 * gdbtypes.h (types_equal): Declare.
1407 * typeprint.c (type_print_raw_options, default_ptype_flags):
1408 Update.
1409 (struct typedef_hash_table): New.
1410 (hash_typedef_field, eq_typedef_field,
1411 recursively_update_typedef_hash, add_template_parameters,
1412 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1413 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1414 copy_typedef_hash, find_typedef_in_hash): New functions.
1415 * typeprint.h (struct type_print_options) <local_typedefs>:
1416 New field.
1417 (recursively_update_typedef_hash, add_template_parameters,
1418 create_typedef_hash, free_typedef_hash,
1419 make_cleanup_free_typedef_hash, copy_typedef_hash,
1420 find_typedef_in_hash): Declare.
1421
1422 2012-11-12 Tom Tromey <tromey@redhat.com>
1423
1424 * cp-support.c (inspect_type,
1425 replace_typedefs_qualified_name, replace_typedefs): Add
1426 finder, data arguments. Call as needed.
1427 (cp_canonicalize_string_full): New function.
1428 (cp_canonicalize_string_no_typedefs): Rewrite.
1429 * cp-support.h (canonicalization_ftype): New typedef.
1430 (cp_canonicalize_string_full): Declare.
1431
1432 2012-11-12 Tom Tromey <tromey@redhat.com>
1433
1434 * NEWS: Update.
1435 * c-typeprint.c (c_type_print_base): Handle print_method and
1436 print_typedefs flags.
1437 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1438 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1439 options.
1440 * typeprint.c (type_print_raw_options, default_ptype_flags):
1441 Update for new field.s
1442 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1443 (setprinttypelist, showprinttypelist, print_methods,
1444 print_typedefs): New globals.
1445 (set_print_type, show_print_type, set_print_type_methods,
1446 show_print_type_methods, set_print_type_typedefs,
1447 show_print_type_typedefs): New functions.
1448 (_initialize_typeprint): Update documentation. Add "print
1449 type methods" and "print type typedefs" parameters.
1450 * typeprint.h (struct type_print_options) <print_methods,
1451 print_typedefs>: New fields.
1452
1453 2012-11-12 Tom Tromey <tromey@redhat.com>
1454
1455 * c-typeprint.c (cp_type_print_method_args): Add flags
1456 argument. Call c_print_type, not type_print.
1457 (c_type_print_base): Call c_print_type, not type_print.
1458 Update.
1459
1460 2012-11-12 Tom Tromey <tromey@redhat.com>
1461
1462 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1463 to type-printing functions.
1464 * ada-lang.h (ada_print_type): Add argument.
1465 * ada-typeprint.c (print_array_type, print_variant_clauses,
1466 print_variant_part, print_selected_record_field_types,
1467 print_record_field_types, print_unchecked_union_type,
1468 print_func_type, ada_print_type): Add flags argument.
1469 (ada_print_typedef): Update.
1470 * c-exp.y (OPERATOR conversion_type_id): Update.
1471 * c-lang.h (c_print_type, c_type_print_base): Update.
1472 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1473 c_type_print_modifier, c_type_print_args,
1474 c_type_print_varspec_suffix, c_type_print_base): Add flags
1475 argument.
1476 * cp-valprint.c (cp_print_class_member): Update.
1477 * dwarf2read.c (dwarf2_compute_name): Update.
1478 * f-lang.h (f_print_type): Add argument.
1479 * f-typeprint.c (f_print_type): Add flags argument.
1480 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1481 * go-lang.h (go_print_type): Add argument.
1482 * go-typeprint.c (go_print_type): Add flags argument.
1483 * jv-lang.h (java_print_type): Add argument.
1484 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1485 flags argument.
1486 * language.c (unk_lang_print_type): Add flags argument.
1487 * language.h (struct language_defn) <la_print_type>: Add flags
1488 argument.
1489 (LA_PRINT_TYPE): Likewise.
1490 * m2-lang.h (m2_print_type): Add argument.
1491 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1492 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1493 m2_unbounded_array, m2_record_fields): Add flags argument.
1494 * p-lang.h (pascal_print_type, pascal_type_print_base,
1495 pascal_type_print_varspec_prefix): Add argument.
1496 * p-typeprint.c (pascal_print_type,
1497 pascal_type_print_varspec_prefix, pascal_print_func_args,
1498 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1499 flags argument.
1500 * symmisc.c (print_symbol): Update.
1501 * typeprint.c (type_print_raw_options, default_ptype_flags):
1502 New globals.
1503 (type_print): Update.
1504 * typeprint.h (struct type_print_options): New.
1505 (type_print_raw_options): Declare.
1506 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1507
1508 2012-11-10 Keith Seitz <keiths@redhat.com>
1509
1510 * breakpoint.c (clear_command): Add cleanup for
1511 sals.sals if an argument is given.
1512
1513 * linespec.c (parse_linespec): Do cleanups after
1514 parsing a convenience variable.
1515
1516 2012-11-10 Keith Seitz <keiths@redhat.com>
1517
1518 PR gdb/14288
1519 * c-valprint.c (c_val_print): For character arrays
1520 with "print null" option on, print ellipses if
1521 the output is truncated and the next character is not \000.
1522 * valprint.c (MAX_WCHARS): Define.
1523 (WCHAR_BUFLEN): Likewise.
1524 (WCHAR_BUFLEN_MAX): Likewise.
1525 (struct converted_character): New structure.
1526 (count_next_character): New function.
1527 (print_converted_chars_to_obstack): New function.
1528 (generic_printstr): Rewrite using count_next_character
1529 and print_converted_chars_to_obstack.
1530
1531 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1532
1533 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1534 while executing the gdb command.
1535 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1536 are called from prompt_for_continue.
1537 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1538
1539 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1540
1541 PR tui/9584
1542
1543 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1544 but insert the command to execute in readline's buffer.
1545
1546 2012-11-09 Tom Tromey <tromey@redhat.com>
1547
1548 * gdbarch.sh (target_gdbarch): Remove macro.
1549 (get_target_gdbarch): Rename to target_gdbarch.
1550 * gdbarch.c, gdbarch.h: Rebuild.
1551 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1552 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1553 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1554 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1555 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1556 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1557 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1558 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1559 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1560 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1561 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1562 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1563 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1564 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1565 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1566 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1567 target-descriptions.c, target.c, target.h, tracepoint.c,
1568 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1569 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1570 python/py-inferior.c, python/python.c: Update.
1571
1572 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1573
1574 * source.c (print_source_lines_base): Add fullname field giving
1575 full path to file in mi output.
1576 * NEWS: Mention the new fullname field.
1577
1578 2012-11-09 Yao Qi <yao@codesourcery.com>
1579
1580 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1581
1582 2012-11-09 Pedro Alves <palves@redhat.com>
1583
1584 PR gdb/14306
1585
1586 * infrun.c: Include target-descriptions.h.
1587 (follow_exec): Fetch new target description.
1588
1589 2012-11-09 Yao Qi <yao@codesourcery.com>
1590
1591 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1592 0x8d (lea).
1593
1594 2012-11-09 Yao Qi <yao@codesourcery.com>
1595
1596 * breakpoint.c: Declare set_tracepoint_count.
1597 (install_breakpoint): Call set_tracepoint_count if B is a
1598 tracepoint.
1599 (trace_command): Don't call set_tracepoint_count. Re-indent.
1600 (strace_command, ftrace_command):
1601 (create_tracepoint_from_upload): Likewise.
1602
1603 2012-11-09 Pedro Alves <palves@redhat.com>
1604
1605 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1606 (get_target_gdbarch) <gdbarch.h>: New function.
1607 (startup_gdbarch) <gdbarch.h>: Declare.
1608 <gdbarch.c> (target_gdbarch): Delete.
1609 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1610 current inferior's gdbarch.
1611 <gdbarch.c> (get_target_gdbarch): New function.
1612 * inferior.c: Include target-descriptions.h.
1613 (free_inferior): Free target description info.
1614 (add_inferior_with_spaces): Set the inferior's initial
1615 architecture.
1616 (clone_inferior_command): Copy the original inferior's target
1617 description if it was user specified.
1618 (initialize_inferiors): Add comment.
1619 * inferior.h (struct target_desc_info): Forward declare.
1620 (struct inferior) <gdbarch>: New field.
1621 * linux-nat.c: Include target-descriptions.h.
1622 (linux_child_follow_fork): Copy the parent's architecture and
1623 target description to the child.
1624 * target-descriptions.c: Include inferior.h.
1625 (struct target_desc_info): New structure, holding the equivalents
1626 of ...
1627 (target_desc_fetched, current_target_desc)
1628 (target_description_filename): ... these removed globals.
1629 (get_tdesc_info, target_desc_info_from_user_p)
1630 (copy_inferior_target_desc_info, target_desc_info_free): New.
1631 (target_desc_fetched, current_target_desc)
1632 (target_description_filename): Reimplemented as convenience
1633 macros.
1634 (tdesc_filename_cmd_string): New global.
1635 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1636 tdescs filename ..." commands to the per-inferior equivalent.
1637 (show_tdesc_filename_cmd): Get the value to show from the
1638 per-inferior description filename.
1639 (_initilize_target_descriptions): Change the "set/show tdesc
1640 filename" commands' variable.
1641 * target-descriptions.h (struct target_desc, struct target_desc_info)
1642 (struct inferior): Forward declare.
1643 (target_find_description, target_clear_description)
1644 (target_current_description): Adjust comments.
1645 (copy_inferior_target_desc_info, target_desc_info_free)
1646 (target_desc_info_from_user_p). Declare.
1647
1648 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1649
1650 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1651 (tui_target_wait_hook): Remove.
1652 (tui_install_hooks): Install the about_to_proceed observer.
1653 (tui_remove_hooks): And remove it here.
1654
1655 2012-11-08 Tom Tromey <tromey@redhat.com>
1656
1657 * linux-tdep.c (linux_make_siginfo_note): New function.
1658 (linux_make_corefile_notes): Use it.
1659 * corelow.c (get_core_siginfo): New function.
1660 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1661
1662 2012-11-08 Tom Tromey <tromey@redhat.com>
1663
1664 PR gdb/14704:
1665 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1666 (zlib_decompress_section): Remove.
1667 (gdb_bfd_map_section): Only check for compressed section
1668 in mmap case. Use bfd_get_full_section_contents.
1669 * osabi.c (check_note): Add 'sectsize' argument. Read
1670 section data.
1671 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1672 section data. Update for check_note change.
1673 * xcoffread.c (xcoff_initial_scan): Use
1674 bfd_get_full_section_contents.
1675 * py-auto-load.c (auto_load_section_scripts): Use
1676 bfd_get_full_section_contents.
1677 * contrib/cc-with-tweaks.sh: Add -Z option.
1678
1679 2012-11-08 Tom Tromey <tromey@redhat.com>
1680
1681 * python/py-bpevent.c: Include defs.h.
1682 * python/py-continueevent.c: Include defs.h.
1683 * python/py-event.c: Include defs.h.
1684 * python/py-event.h: Don't include defs.h.
1685 * python/py-events.h: Don't include defs.h.
1686 * python/py-evts.c: Include defs.h.
1687 * python/py-exitedevent.c: Include defs.h.
1688 * python/py-newobjfileevent.c: Include defs.h.
1689 * python/py-signalevent.c: Include defs.h.
1690 * python/py-stopevent.c: Include defs.h.
1691 * python/py-threadevent.c: Include defs.h.
1692
1693 2012-11-08 Pierre Muller <muller@sourceware.org>
1694
1695 * update-web-ari.sh (print_heading): Add number of files
1696 checked.
1697 (nb_files): New variable counting the number of sources
1698 files found by gdb_find.sh script.
1699 (debug_awk): New variable to allow extra debug output.
1700 (indexes): Add more information if DEBUG_AWK is set.
1701
1702 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1703
1704 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1705 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1706 following the change in PLT call stubs on linker.
1707
1708 2012-11-08 Pierre Muller <muller@sourceware.org>
1709
1710 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1711 as default language.
1712 (AWK): Use = instead of == for sh test to avoid warning.
1713 (Linux rule): Correct [:digit] into [[:digit:]].
1714 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1715 (vasprintf rule): Adapt to common subdirectory moves.
1716 (xasprintf rule): Idem.
1717 (xvasprintf rule): Idem.
1718 (var_boolean rule): Accept occurence in == or != test.
1719
1720 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1721
1722 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1723
1724 * tui/tui-hooks.c (tui_inferior_exit): New function.
1725 (tui_detach_hook): Remove.
1726 (tui_install_hooks): Install the inferior exit observer.
1727 (tui_remove_hooks): Remove it.
1728
1729 2012-11-08 Yao Qi <yao@codesourcery.com>
1730
1731 PR gdb/14777.
1732 * source.c (_initialize_source): Call add_com_alias to abbreviate
1733 'forward-search' as 'fo'.
1734
1735 2012-11-07 Pedro Alves <palves@redhat.com>
1736
1737 * arm-tdep.c: Make defs.h be the first include.
1738 * coff-pe-read.c: Ditto.
1739 * gnu-nat.c: Ditto.
1740 * go32-nat.c: Ditto.
1741 * i386-nat.c: Ditto.
1742 * ppcnbsd-nat.c: Ditto.
1743 * ada-varobj.h: Don't include defs.h.
1744 * i386-darwin-tdep.h: Ditto.
1745 * i386-nat.h: Ditto.
1746
1747 2012-11-07 Pedro Alves <palves@redhat.com>
1748
1749 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1750 Committee.
1751
1752 2012-11-07 Pierre Muller <muller@sourceware.org>
1753
1754 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1755 File already uses "gdb_dirent.h" header.
1756
1757 2012-11-07 Yao Qi <yao@codesourcery.com>
1758
1759 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1760 tracepoint_count'.
1761
1762 2012-11-06 Tom Tromey <tromey@redhat.com>
1763
1764 * target.h (inferior_has_forked, inferior_has_vforked)
1765 (inferior_has_execd, inferior_has_called_syscall): Remove
1766 declarations.
1767
1768 2012-11-06 Pierre Muller <muller@sourceware.org>
1769
1770 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1771 add missing internalization markup.
1772
1773 2012-11-06 Pedro Alves <palves@redhat.com>
1774
1775 PR gdb/14810
1776
1777 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1778
1779 2012-11-06 Pierre Muller <muller@sourceware.org>
1780
1781 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1782 is not executable.
1783
1784 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1785
1786 * gnulib/update-gnulib.sh: New script.
1787
1788 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1789
1790 * MAINTAINERS: Update my email address.
1791
1792 2012-11-05 Tom Tromey <tromey@redhat.com>
1793
1794 * frame.c (put_frame_register): Don't use temporary buffer.
1795
1796 2012-11-05 Pedro Alves <palves@redhat.com>
1797
1798 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1799 child. Clear 'pending_detach'.
1800 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1801 'pending_detach' in the vfork parent.
1802
1803 2012-11-05 Doug Evans <dje@google.com>
1804
1805 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1806 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1807 * dwarf2read.c: #include "elf-bfd.h".
1808 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1809 (dwop_section_names): Renamed from dwo_section names. All uses
1810 updated. Add entries for .debug_cu_index, .debug_tu_index.
1811 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1812 All uses updated.
1813 (struct dwp_sections): New type.
1814 (struct virtual_dwo_sections): New type.
1815 (struct dwp_hash_table): New type.
1816 (struct dwp_file): New type.
1817 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1818 read in. Handle DWOs coming from DWP files.
1819 (lookup_dwo_file_slot): New function.
1820 (dwarf2_locate_dwo_sections): Move definition closer to use.
1821 (create_dwo_debug_info_hash_table_reader): Renamed from
1822 create_debug_info_hash_table_reader. All callers updated.
1823 (create_dwo_debug_info_hash_table): Renamed from
1824 create_debug_info_hash_table. All callers updated.
1825 (create_dwp_hash_table): New function.
1826 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1827 (lookup_dwo_in_dwp): New function.
1828 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1829 is_dwp. All callers updated.
1830 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1831 (open_and_init_dwo_file): Renamed from init_dwo_file.
1832 All callers updated.
1833 (lookup_dwo_file): Delete.
1834 (dwarf2_locate_dwp_sections): New function.
1835 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1836 (allocate_dwp_loaded_cutus_table): New function.
1837 (open_and_init_dwp_file): New function.
1838 (lookup_dwo_cutu): New function.
1839 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1840
1841 2012-11-03 Yao Qi <yao@codesourcery.com>
1842
1843 Fix PR gdb/14617.
1844 * breakpoint.c (trace_pass_set_count): Call
1845 observer_notify_breakpoint_modified instead of
1846 observer_notify_tracepoint_modified.
1847 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1848
1849 2012-11-02 Tom Tromey <tromey@redhat.com>
1850
1851 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1852 argument to complete_on_enum.
1853
1854 2012-11-02 Tom Tromey <tromey@redhat.com>
1855
1856 * configure: Rebuild.
1857 * configure.ac (build_warnings): Add -Wempty-body.
1858 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1859 * remote.c (handle_notification): Use braces for empty 'else' body.
1860 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1861 'else' body.
1862 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1863 'else' body.
1864 * solib-som.c (som_relocate_section_addresses): Use braces
1865 for empty 'else' body.
1866 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1867 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1868
1869 2012-11-02 Pedro Alves <palves@redhat.com>
1870
1871 PR gdb/14766
1872
1873 * infrun.c (handle_inferior_event)
1874 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1875 null_ptid before handling a vfork child exec or exit. Switch to
1876 the event ptid afterwards.
1877
1878 2012-11-02 Yao Qi <yao@codesourcery.com>
1879
1880 * std-operator.def: Remove OP_LABELED.
1881 * eval.c: Remove the declaration of 'get_label'.
1882 (get_label): Remove.
1883 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1884 Update comment.
1885 Remove local variable 'variantno' and related code.
1886 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1887 with 'fieldno'.
1888 * expprint.c (print_subexp_standard): Likewise.
1889 (dump_subexp_body_standard): Likewise.
1890 * parse.c (operator_length_standard): Likewise.
1891
1892 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1893
1894 Incorporate ARI web page generator into GDB sources.
1895 * contrib/ari/create-web-ari-in-src.sh: New file.
1896 * contrib/ari/gdb_ari.sh: New file.
1897 * contrib/ari/gdb_find.sh: New file.
1898 * contrib/ari/update-web-ari.sh: New file.
1899
1900 2012-10-31 Tom Tromey <tromey@redhat.com>
1901
1902 * gdbarch.c: Rebuild.
1903 * gdbarch.sh: Remove references to gdbarch_swap.
1904 * corelow.c (core_open): Remove obsolete comment.
1905
1906 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1907
1908 PR cli/14772
1909 * c-typeprint.c (c_print_type): Don't print a space for vector
1910 types, this is handled within the suffix.
1911 (c_type_print_varspec_suffix): Add a space to vector suffix.
1912
1913 2012-10-26 Pedro Alves <palves@redhat.com>
1914
1915 * amd64-tdep.c (amd64_relocate_instruction): Use
1916 store_unsigned_integer instead of memcpy.
1917 * i386-tdep.c (i386_relocate_instruction): Ditto.
1918
1919 2012-10-26 Pedro Alves <palves@redhat.com>
1920
1921 * infrun.c (handle_inferior_event): Merge handling of
1922 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1923 switch case.
1924
1925 2012-10-26 Pedro Alves <palves@redhat.com>
1926
1927 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1928 Remove comment.
1929
1930 2012-10-26 Pedro Alves <palves@redhat.com>
1931
1932 * target.c (target_waitstatus_to_string): Handle
1933 TARGET_WAITKIND_VFORK_DONE.
1934
1935 2012-10-26 Pedro Alves <palves@redhat.com>
1936
1937 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1938 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1939
1940 2012-10-24 Tristan Gingold <gingold@adacore.com>
1941
1942 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1943 Add comments.
1944
1945 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1946
1947 * ravenscar-thread.c (ravenscar_wait): Only update the list
1948 of threads and inferior_ptid if the inferior is still alive.
1949
1950 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1951
1952 * ada-lang.c (is_known_support_routine): Use lbasename when
1953 matching the symtab's filename against
1954 known_runtime_file_name_patterns.
1955
1956 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1957
1958 * ada-lang.c (ada_same_array_size_p): New function.
1959 (ada_promote_array_of_integrals): New function.
1960 (coerce_for_assign): Add handling of arrays where the elements
1961 are integrals of a smaller size than the size of the target
1962 array element type.
1963
1964 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1965
1966 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1967 against maximum exponent value.
1968
1969 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1970
1971 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1972 "unwind-seh.c".
1973
1974 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1975
1976 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1977 strip typedef layer when computing the fixed type's field type,
1978 only when computing its size.
1979
1980 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1981
1982 PR gdb/12783
1983 * i386-tdep.c (i386_return_value): Handle complex double and long
1984 double.
1985
1986 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1987
1988 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1989 New local variable args_len.
1990 Quote the name of the executable when computing the command line.
1991
1992 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1993
1994 PR gdb/12796
1995 PR gdb/12798
1996 PR gdb/12800
1997 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1998 AMD64_FTAG_REGNUM.
1999 * amd64-tdep.c (amd64_classify): Classify complex types.
2000 (amd64_return_value): Handle the COMPLEX_X87 class.
2001
2002 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2003
2004 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2005 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2006
2007 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2008
2009 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2010 function.
2011 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2012 to amd64_windows_auto_wide_charset.
2013
2014 2012-10-23 Yao Qi <yao@codesourcery.com>
2015
2016 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2017 * event-top.h: Remove its declaration.
2018 (async_request_quit): Call mark_async_signal_handler instead of
2019 mark_async_signal_handler_wrapper.
2020 (async_do_nothing, async_disconnect): Likewise.
2021 (async_stop_sig): Likewise.
2022 * remote.c (handle_remote_sigint): Likewise.
2023 (handle_remote_sigint_twice): Likewise.
2024
2025 2012-10-23 Yao Qi <yao@codesourcery.com>
2026
2027 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2028 with 'static struct async_signal_handler *'.
2029 (sighup_token, sigquit_token, sigstp_token): Likewise.
2030
2031 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2032
2033 * gdbarch.sh (function_list): Use 'pstring' when printing
2034 a variable which could return NULL.
2035 * gdbarch.c: Regenerate.
2036
2037 2012-10-10 Joel Brobecker <brobecker@adacore.com>
2038 Tom Tromey <tromey@redhat.com>
2039
2040 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2041 inneffective if condition by gdb assertion. Add function
2042 description comment.
2043
2044 2012-10-19 Joel Brobecker <brobecker@adacore.com>
2045
2046 * parser-defs.h (struct exp_descriptor): Document constraint
2047 on return value for "op_name" callbacks.
2048
2049 2012-10-18 Tom Tromey <tromey@redhat.com>
2050
2051 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2052 * symtab.c (iterate_over_some_symtabs): Constify.
2053 * source.h (symtab_to_fullname): Return 'const char *'.
2054 * source.c (symtab_to_fullname): Return 'const char *'.
2055 * python/py-symtab.c (stpy_fullname): Constify.
2056 * cli/cli-cmds.c (edit_command): Constify.
2057 * breakpoint.c (print_breakpoint_location)
2058 (update_static_tracepoint): Constify.
2059
2060 2012-10-18 Tom Tromey <tromey@redhat.com>
2061
2062 * breakpoint.c (compare_breakpoints): Fix comparison.
2063
2064 2012-10-18 Tom Tromey <tromey@redhat.com>
2065
2066 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2067 gdb_wchar_t to convert_between_encodings.
2068
2069 2012-10-17 Yao Qi <yao@codesourcery.com>
2070
2071 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2072 more parameter 'inferior'.
2073 * corefile.c (write_memory_with_notification): Caller update.
2074
2075 * mi/mi-cmd-var.c: Include "mi-main.h".
2076 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2077 to 1 and restore it later.
2078 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2079 and "data-write-memory-bytes.
2080 * mi/mi-interp.c: Include objfiles.h.
2081 (mi_interpreter_init): Call observer_attach_memory_changed.
2082 (mi_memory_changed): New.
2083 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2084 New field.
2085
2086 * NEWS: Mention new MI notification "memory-changed".
2087
2088 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2089
2090 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2091
2092 2012-10-15 Doug Evans <dje@google.com>
2093
2094 New option -nh: inhibit loading of ~/.gdbinit.
2095 * NEWS: Mention -nh.
2096 * main.c (captured_main): Recognize and process -nh.
2097 (print_gdb_help): Mention -nh.
2098 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2099
2100 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2101
2102 PR backtrace/14646
2103 PR gdb/14647
2104 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2105 pc_regnum_from_eax.
2106 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2107 nor pc_regnum_from_eax.
2108 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2109 nor pc_regnum_from_eax.
2110
2111 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2112
2113 Fix entry values resolving in inlined frames.
2114 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2115 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2116 entries of FRAME.
2117
2118 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2119
2120 * configure.ac: Build with -DMS_WIN64 if building with Python
2121 enabled using GCC on amd64-windows.
2122 * configure: Regenerate.
2123
2124 2012-10-15 Tom Tromey <tromey@redhat.com>
2125
2126 PR python/14635:
2127 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2128 to Py_None.
2129
2130 2012-10-15 Tom Tromey <tromey@redhat.com>
2131
2132 PR python/14634:
2133 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2134
2135 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2136
2137 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2138 reset thread numbering back to 1.
2139
2140 2012-10-11 Doug Evans <dje@google.com>
2141
2142 PR breakpoints/14643.
2143 * linespec.c (struct ls_parser): New member keyword_ok.
2144 (linespec_lexer_lex_string): Add comment.
2145 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2146 for one.
2147 (parse_linespec): Set keyword_ok.
2148
2149 2012-10-10 Doug Evans <dje@google.com>
2150
2151 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2152 "0x" prefix on address in log message.
2153
2154 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2155 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2156 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2157 (lookup_dwo_file): Add const to dwo_name parameter.
2158 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2159
2160 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2161
2162 Fix crash during stepping on ppc32.
2163 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2164 SYM.
2165
2166 2012-10-03 Doug Evans <dje@google.com>
2167
2168 PR symtab/14601
2169 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2170
2171 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2172
2173 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2174 output and use uint32_t not long to ensure 4 byte size.
2175
2176 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2177
2178 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2179 unref'ed it.
2180
2181 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2182
2183 * target.c (simple_search_memory): Include access length in
2184 warning message.
2185
2186 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2187 Edjunior Machado <emachado@linux.vnet.ibm.com>
2188
2189 PR gdb/13989
2190 * solib.c (solib_find): Prevent GDB from loading native libraries when
2191 debugging a cross-target corefile.
2192
2193 2012-09-28 selven <pcthegreat@gmail.com>
2194
2195 Make definition match declaration.
2196
2197 * regcache.c (regcache_register_status): Change return type to
2198 enum register_status.
2199
2200 2012-09-28 Yao Qi <yao@codesourcery.com>
2201
2202 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2203 write_memory_with_notification instead of write_memory.
2204 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2205 instead of target_write_memory.
2206
2207 2012-09-28 Yao Qi <yao@codesourcery.com>
2208
2209 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2210 when the length of content is not an even number.
2211
2212 2012-09-27 Tom Tromey <tromey@redhat.com>
2213
2214 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2215 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2216
2217 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2218
2219 * sol-thread.c (sol_thread_fetch_registers)
2220 (sol_thread_store_registers): Delete commented out code.
2221
2222 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2223
2224 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2225 Move these functions to sparc-sol-thread.c.
2226 * sparc-sol-thread.c: New file.
2227 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2228 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2229 configurations.
2230 * configure: Regenerate.
2231
2232 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2233
2234 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2235 Remove commented-out code.
2236
2237 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2238
2239 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2240 Enable this code for sparc hosts only.
2241
2242 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2243
2244 * procfs.h (procfs_find_LDT_entry): Add declaration.
2245 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2246 function procfs_find_LDT_entry.
2247
2248 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2249
2250 * procfs.c (proc_get_LDT_entry): Make static.
2251
2252 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2253
2254 * procfs.c (proc_find_memory_regions): Fix declaration.
2255
2256 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2257
2258 * amd64-tdep.c (amd64_return_value): Revert previous change
2259 that used TYPE_LENGTH directly.
2260 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2261 (bfin_store_return_value): Likewise.
2262 * cris-tdep.c (cris_store_return_value): Likewise.
2263 (cris_extract_return_value): Likewise.
2264 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2265 * hppa-tdep.c (hppa64_return_value): Likewise.
2266 * lm32-tdep.c (lm32_store_return_value): Likewise.
2267 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2268 * spu-tdep.c (spu_value_from_register): Likewise.
2269 * vax-tdep.c (vax_return_value): Likewise.
2270
2271 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2272
2273 * gdbtypes.c (lookup_array_range_type): Expand parameters
2274 LOW_BOUND and HIGH_BOUND to LONGEST.
2275 (lookup_string_range_type): Likewise.
2276 * gdbtypes.h (lookup_array_range_type): Likewise.
2277 (lookup_string_range_type): Likewise.
2278 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2279 Expand HIGHBOUND to ssize_t.
2280 (value_string): Likewise.
2281 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2282 (value_string): Likewise.
2283
2284 2012-09-27 Yao Qi <yao@codesourcery.com>
2285
2286 PR breakpoints/13898
2287 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2288 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2289 per breakpoint type.
2290
2291 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2292
2293 * procfs.c: Add gdb_bfd header.
2294 * rs6000-nat.c: Likewise.
2295 * solib-pa64.c: Likewise.
2296 * spu-linux-nat.c: Likewise.
2297 * windows-nat.c: Likewise.
2298
2299 2012-09-26 Tom Tromey <tromey@redhat.com>
2300
2301 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2302
2303 2012-09-26 Tom Tromey <tromey@redhat.com>
2304
2305 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2306 (read_common_block): Handle child DIEs with
2307 DW_AT_data_member_location.
2308 (new_symbol_full): Add special case for common blocks.
2309
2310 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2311 Tom Tromey <tromey@redhat.com>
2312
2313 * dwarf2read.c (read_common_block): Rewrite.
2314 (new_symbol_full): Handle DW_TAG_common_block.
2315 * f-lang.c (head_common_list, find_common_for_function):
2316 Remove.
2317 * f-lang.h (struct common_entry, struct saved_f77_common,
2318 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2319 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2320 BLANK_COMMON_NAME_LOCAL): Remove.
2321 (struct common_block): New.
2322 * f-valprint.c (list_all_visible_commons): Remove.
2323 (info_common_command_for_block): New function.
2324 (info_common_command): Use it.
2325 * stack.c (iterate_over_block_locals): Special case for
2326 COMMON_BLOCK_DOMAIN.
2327 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2328 constant.
2329 (struct general_symbol_info) <value.common_block>: New field.
2330 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2331
2332 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2333 Tom Tromey <tromey@redhat.com>
2334
2335 * f-lang.c (allocate_saved_bf_node,
2336 allocate_saved_function_node, allocate_saved_f77_common_node,
2337 allocate_common_entry_node, tail_common_list, current_common,
2338 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2339 tmp_bf_ptr, add_common_block, add_common_entry,
2340 find_first_common_named, patch_common_entries,
2341 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2342 global_remote_debug, get_bf_for_fcn, saved_function_list,
2343 saved_function_list_end, clear_function_list, struct saved_fcn,
2344 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2345 SAVED_BF, SAVED_BF_PTR): Remove.
2346 * f-lang.h (tail_common_list, current_common,
2347 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2348 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2349 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2350 real_main_c_value): Remove.
2351 * f-valprint.c (there_is_a_visible_common_named): Remove.
2352
2353 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2354
2355 * breakpoint.c (update_global_location_list): Ignore previous
2356 duplicate status of a breakpoint when starting a new scan for
2357 duplicate breakpoints.
2358
2359 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2360 PR breakpoints/14419
2361 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2362 support LLVM compiler.
2363
2364 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2365
2366 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2367 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2368 (bfin_store_return_value): Likewise.
2369 * cris-tdep.c (cris_store_return_value): Likewise.
2370 (cris_extract_return_value): Likewise.
2371 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2372 * hppa-tdep.c (hppa64_return_value): Likewise.
2373 * lm32-tdep.c (lm32_store_return_value): Likewise.
2374 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2375 * spu-tdep.c (spu_value_from_register): Likewise.
2376 * vax-tdep.c (vax_return_value): Likewise.
2377
2378 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2379
2380 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2381 parameter LEN to ssize_t.
2382
2383 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2384
2385 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2386 variable LEN.
2387 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2388 directly.
2389 (alpha_store_return_value): Likewise.
2390 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2391 (amd64_push_arguments): Likewise.
2392 * ax-gdb.c (gen_trace_static_fields): Likewise.
2393 (gen_traced_pop): Likewise.
2394 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2395 * breakpoint.c (update_watchpoint): Likewise.
2396 * findcmd.c (parse_find_args): Use local variable for type
2397 instead of length.
2398 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2399 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2400 (h8300_store_return_value): Likewise.
2401 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2402 Use i386_darwin_arg_type_alignment directly.
2403 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2404 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2405 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2406 (m68hc11_extract_return_value): Likewise.
2407 * mep-tdep.c (mep_push_dummy_call): Likewise.
2408 * printcmd.c (float_type_from_length): Likewise.
2409 * s390-tdep.c (s390_value_from_register): Likewise.
2410 * stack.c (read_frame_arg): Likewise.
2411 * tracepoint.c (encode_actions_1): Likewise.
2412 * valops.c (value_fetch_lazy): Use local variable for type
2413 instead of length. Use TYPE_LENGTH directly.
2414 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2415
2416 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2417
2418 * symtab.c (skip_prologue_sal): Fix typo in comment.
2419
2420 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2421
2422 * linespec.c (create_sals_line_offset): Fix typo in comment.
2423
2424 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2425
2426 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2427 use plongest to print the array size.
2428
2429 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2430
2431 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2432 * p-valprint.c (pascal_type_print_base): Likewise.
2433
2434 2012-09-22 Yao Qi <yao@codesourcery.com>
2435
2436 * remote.c (remote_get_trace_status): Remove setting default
2437 values of fields of 'ts'.
2438
2439 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2440
2441 Fix internal error on canonicalization of clang types.
2442 * cp-name-parser.y (operator): New comment at make_operator call for
2443 new, delete, new[] and delete[].
2444 (exp): Use "sizeof ". Add new comment at make_operator call.
2445
2446 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2447
2448 Fix disassemble without parameters in tailcall frame.
2449 * cli/cli-cmds.c (disassemble_current_function): Use
2450 get_frame_address_in_block.
2451
2452 2012-09-21 Tom Tromey <tromey@redhat.com>
2453
2454 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2455 TYPE_CODE_UNION>: Unify, removing a goto.
2456
2457 2012-09-21 Tom Tromey <tromey@redhat.com>
2458
2459 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2460
2461 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2462
2463 * findvar.c (read_frame_register_value): Mark the result value as
2464 optimized out if any of the input registers have been optimized out.
2465
2466 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2467
2468 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2469
2470 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2471
2472 * eval.c (evaluate_subexp_standard): Eliminate single-use
2473 variable LOWER.
2474
2475 2012-09-21 Yao Qi <yao@codesourcery.com>
2476
2477 * mi/mi-interp.c: Declare mi_record_changed.
2478 (mi_interpreter_init): Call observer_attach_record_changed.
2479 (mi_record_changed): New.
2480 * record.c (record_open): Call observer_notify_record_changed.
2481 (cmd_record_stop): Call observer_notify_record_changed.
2482 * NEWS: Mention it.
2483
2484 2012-09-20 Tom Tromey <tromey@redhat.com>
2485
2486 * NEWS: Update.
2487 * python/python.c (finalize_python): New function.
2488 (_initialize_python): Make a final cleanup.
2489
2490 2012-09-19 Doug Evans <dje@google.com>
2491
2492 * buildsym.h (param_symbols): Delete, unused.
2493 (context_stack): Delete member "params", unused.
2494 * buildsym.c (push_context): Update.
2495 * dwarf2read.c (read_func_scope): Update.
2496
2497 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2498
2499 * sh-tdep.c (sh_register_convert_to_virtual)
2500 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2501 all callers. Just do a memcpy if not the little-endian case.
2502
2503 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2504 set_gdbarch_double_format and set_gdbarch_long_double_format.
2505 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2506 set_gdbarch_double_format.
2507 * sh-tdep.c (sh_gdbarch_init): Likewise.
2508
2509 * NEWS: Document the removal of SH's 'regs' command.
2510 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2511 command.
2512
2513 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2514
2515 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2516 `jump'.
2517
2518 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2519
2520 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2521 language when iterating over symbols.
2522
2523 2012-09-18 Yao Qi <yao@codesourcery.com>
2524
2525 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2526 (mi_interpreter_init): Call observer_attach_tsv_created and
2527 observer_attach_tsv_deleted.
2528 (mi_tsv_created, mi_tsv_deleted): New.
2529 * tracepoint.c (delete_trace_state_variable): Call
2530 observer_notify_tsv_deleted.
2531 (trace_variable_command): Call observer_notify_tsv_created.
2532 (delete_trace_variable_command): Call
2533 observer_notify_tsv_deleted.
2534 (create_tsv_from_upload): Call observer_notify_tsv_created.
2535 * NEWS: Mention it.
2536
2537 2012-09-18 Yao Qi <yao@codesourcery.com>
2538
2539 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2540 if traceframe changed.
2541 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2542 "trace-find".
2543 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2544 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2545 'traceframe_changed'.
2546 (mi_traceframe_changed): New.
2547 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2548 New field.
2549 * NEWS: Mention the new MI notification.
2550
2551 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2552
2553 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2554
2555 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2556
2557 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2558 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2559 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2560 Extend code also for PaX support. Convert all gdb_assert to warning
2561 calls.
2562
2563 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2564
2565 Implement auto-load user conveniences suggested by Doug Evans.
2566 * auto-load.c: Include top.h.
2567 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2568 (_initialize_auto_load): New variable scripts_directory_help. Mention
2569 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2570 scripts-directory. Document in online help one can use also files for
2571 set auto-load safe-path.
2572 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2573 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2574
2575 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2576
2577 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2578 of LEN.
2579
2580 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2581
2582 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2583 ELTLEN and use TYPE_LENGTH directly.
2584 (m2_val_print): Likewise.
2585 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2586 variable LEN and use TYPE_LENGTH directly.
2587 (m68k_svr4_store_return_value): Likewise.
2588 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2589 ARGLEN and use TYPE_LENGTH directly.
2590 (mips_o64_push_dummy_call): Likewise.
2591 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2592 variable LENGTH and use TYPE_LENGTH directly.
2593 (s390_function_arg_float): Likewise.
2594 (s390_function_arg_integer): Likewise.
2595 (s390_push_dummy_call): Likewise.
2596 (s390_return_value_convention): Likewise.
2597 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2598 TYPE_LENGTH directly.
2599
2600 2012-09-17 Yao Qi <yao@codesourcery.com>
2601
2602 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2603 Update comment to add_setshow_integer_cmd.
2604 * cli/cli-setshow.c (do_set_command): Handle case
2605 'var_zuinteger_unlimited'.
2606 (do_show_command): Likewise.
2607 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2608 for command 'remotetimeout'.
2609 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2610 to var_integer.
2611 * source.c (_initialize_source): Call
2612 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2613
2614 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2615
2616 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2617 variable LEN.
2618
2619 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2620
2621 PR 14119
2622 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2623 (frame_pop): Drop also TAILCALL_FRAME frames.
2624 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2625
2626 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2627 Pedro Alves <palves@redhat.com>
2628
2629 PR 14548
2630 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2631 function start if we are already at function start. Both for
2632 reverse-next and for reverse-step into function without line number
2633 info.
2634
2635 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2636
2637 Code cleanup - rename 'inline' depth to 'artificial' depth.
2638 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2639 frame_id_artificial_p, extend the comment.
2640 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2641 * frame.c (fprint_frame_id): Rename at a user, change debug output
2642 text to "artificial=".
2643 (skip_inlined_frames): Rename to ...
2644 (skip_artificial_frames): ... here. Extend the comment.
2645 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2646 (frame_id_inlined_p): Rename to ...
2647 (frame_id_artificial_p): ... here. Rename at a user.
2648 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2649 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2650 at a user.
2651 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2652 Extend the comment.
2653 (frame_id_inlined_p): Rename to ...
2654 (frame_id_artificial_p): ... here.
2655 * inline-frame.c (inline_frame_this_id): Rename at a user.
2656
2657 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2658
2659 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2660 vector variables using vector_size syntax rather than array
2661 syntax.
2662
2663 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2664
2665 * valarith.c (value_concat): Replace unsafe ALLOCA with
2666 XMALLOC/XFREE.
2667
2668 2012-09-14 Pedro Alves <palves@redhat.com>
2669
2670 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2671
2672 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2673
2674 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2675 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2676 data-directory as appropriate.
2677
2678 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2679
2680 * printcmd.c (ui_printf): Eliminate single-use variable
2681 PARAM_LEN.
2682
2683 2012-09-14 Yao Qi <yao@codesourcery.com>
2684 Pedro Alves <palves@redhat.com>
2685
2686 * valops.c (value_assign): Move observer_notify_target_changed
2687 below to replace reinit_frame_cache.
2688
2689 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2690
2691 Refactor Python "gdb" module into a proper Python package, by
2692 introducing a new "_gdb" module for code implemented in C, and
2693 using reload/__import__ instead of exec.
2694 * python/lib/gdb/__init__.py: Import * from _gdb.
2695 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2696 prompt_hook, sys.argv): Moved from finish_python_initialization.
2697 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2698 (packages, auto_load_packages): New list and function replacing
2699 module_dict and auto-loading code, using __file__ instead of
2700 gdb.PYTHONDIR and reload/__import__ instead of exec.
2701 (GdbSetPythonDirectory): Replacing function of the same name
2702 from finish_python_initialization, using reload/__import__ instead
2703 of exec, as well as call auto_load_packages.
2704 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2705 gdb_python_module and not gdb_module.
2706 * python/python-internal.h (gdb_python_module): Declare.
2707 * python/python.c (gdb_python_module): New global.
2708 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2709 (_initialize_python): Rename gdb module to _gdb.
2710 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2711 (finish_python_initialization): Move Python code to
2712 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2713 __main__.
2714
2715 2012-09-13 Pedro Alves <palves@redhat.com>
2716
2717 * Makefile.in (COMMON_OBS): Add registry.o.
2718 * registry.c: New file.
2719 * registry.h (struct registry_container): Declare.
2720 (registry_data_callback): New typedef.
2721 (struct registry_data, struct registry_data_registration, struct
2722 registry_data_registry): New type.
2723 (register_data_with_cleanup, registry_alloc_data)
2724 (registry_callback_adaptor, registry_clear_data)
2725 (registry_container_free_data, registry_set_data, registry_data):
2726 Declare.
2727 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2728 the new common structures and functions.
2729 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2730 callback typedefs.
2731
2732 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2733
2734 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2735 there is an error inserting hardware breakpoints and use the
2736 error message from the target.
2737
2738 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2739 Catch this exception and print the error message contained within.
2740 Do not print the default hardware error breakpoint message in this
2741 case.
2742
2743 2012-09-12 Doug Evans <dje@google.com>
2744
2745 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2746 cu == NULL.
2747
2748 2012-09-11 Doug Evans <dje@google.com>
2749
2750 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2751 .gdb_index symbol attributes if there are none.
2752
2753 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2754
2755 * symtab.h (struct minimal_symbol) [has_size]: New field.
2756 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2757 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2758 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2759 minimal symbols if the symbol's size is actually known.
2760 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2761 of msymbol's size field. Add comment.
2762 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2763 SET_MSYMBOL_SIZE to set the minimal symbol size.
2764
2765 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2766
2767 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2768 minimal_symbol struct object, rather than setting some of its
2769 fields one by one.
2770
2771 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2772
2773 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2774 passed_a_ptr flag when displaying typedef types.
2775
2776 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2777
2778 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2779 the optimized_out flag is preserved.
2780
2781 2012-09-10 Anthony Green <green@moxielogic.com>
2782
2783 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2784 prologue changes in GCC.
2785
2786 2012-09-10 Keith Seitz <keiths@redhat.com>
2787
2788 PR gdb/13483
2789 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2790 (BOOL_CONVERSION_BADNESS): ... this.
2791 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2792 (rank_one_type): Allow all boolean conversions
2793 permitted by the standard.
2794
2795 2012-09-06 Tom Tromey <tromey@redhat.com>
2796
2797 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2798 Don't decref py_objfile.
2799
2800 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2801
2802 Do not enable -lmcheck by default when Python is enabled with
2803 threading support.
2804 * configure.ac: (python_has_threads) New variable, by testing
2805 if WITH_THREAD is defined in Python.h.
2806 Move --enable-lmcheck after --with-python.
2807 Do not enable -lmcheck by default if python_has_threads=yes.
2808 Warn if --enable-lmcheck and python_has_threads=yes.
2809 * configure: Regenerate.
2810
2811 2012-08-31 Yao Qi <yao@codesourcery.com>
2812
2813 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2814 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2815 Update some commands.
2816 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2817 * mi/mi-main.c (mi_cmd_execute): Set
2818 '*parse->cmd->suppress_notification' to 1.
2819
2820 2012-08-31 Yao Qi <yao@codesourcery.com>
2821
2822 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2823
2824 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2825
2826 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2827
2828 2012-08-29 Doug Evans <dje@google.com>
2829
2830 * main.c (print_gdb_help): Remove reference to
2831 --use-deprecated-index-sections.
2832
2833 2012-08-28 Yao Qi <yao@codesourcery.com>
2834
2835 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2836 (init_cmds): Call add_setshow_uinteger_cmd for command
2837 'max-user-call-depth'.
2838 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2839 declaration of 'max_user_call_depth'.
2840 * frame.c (backtrace_limit): Add 'unsigned'.
2841 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2842 'limit'.
2843 * remote.c (remoteaddresssize): Add 'unsigned'.
2844 (remote_address_masked): Change local var 'address_size' to
2845 'unsigned'.
2846 (_initialize_remote): Call add_setshow_uinteger_cmd for
2847 'remoteaddresssize'.
2848 * top.c (history_size): Add 'unsigned'.
2849 (show_commands): Change local variables to 'unsigned'.
2850 (set_history_size_command): Don't check history_size is negative.
2851 Adjust the condition to call unstifle_history and set history_size
2852 to UNIT_MAX.
2853
2854 2012-08-28 Pedro Alves <palves@redhat.com>
2855
2856 PR gdb/14428
2857
2858 * infcmd.c (default_print_one_register_info): New, factored out
2859 from default_print_registers_info.
2860 (default_print_registers_info): Use it. Mark value unavailable if
2861 necessary.
2862 (registers_info): Print user registers with
2863 default_print_one_register_info.
2864
2865 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2866
2867 PR tui/14486
2868 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2869 is not NULL before referencing it.
2870
2871 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2872
2873 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2874 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2875 original PC for it.
2876
2877 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2878 Jan Kratochvil <jan.kratochvil@redhat.com>
2879
2880 * auto-load.c (auto_load_objfile_script): Rename to ...
2881 (auto_load_objfile_script_1): ... here, change variable realname to
2882 parameter realname, document it, add return value, add variable retval.
2883 (auto_load_objfile_script): New function.
2884
2885 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2886
2887 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2888 followed by a whitespace.
2889
2890 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2891
2892 PR gdb/14494.
2893 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2894 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2895 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2896 here.
2897
2898 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2899
2900 * memattr.c (create_mem_region): Fix memory region overlapping
2901 checking.
2902
2903 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2904
2905 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2906 with xmalloc/cleanup.
2907 * mt-tdep.c (mt_push_dummy_call): Likewise.
2908 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2909 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2910
2911 2012-08-24 Yao Qi <yao@codesourcery.com>
2912
2913 * jv-exp.y (push_expression_name): Add "." at the end of error
2914 message.
2915
2916 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2917
2918 Document how to return from "python-interactive" to GDB.
2919 * python/python.c (_initialize_python): Update documentation.
2920
2921 2012-08-23 Pedro Alves <palves@redhat.com>
2922
2923 * infrun.c (_initialize_infrun) <handle command help text>:
2924 Mention that multiple signals are supported.
2925
2926 2012-08-23 Pedro Alves <palves@redhat.com>
2927
2928 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2929 string.
2930
2931 2012-08-23 Yao Qi <yao@codesourcery.com>
2932
2933 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2934 (tfind_1): Don't call registers_changed, set_traceframe_num,
2935 and clear_traceframe_info.
2936 Call set_current_traceframe.
2937 (set_current_traceframe): call set_traceframe_num.
2938
2939 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2940
2941 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2942 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2943
2944 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2945
2946 Enable readline in Python in a GDB-specific way and block the
2947 standard Python readline module to prevent conflicts with GDB.
2948 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2949 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2950 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2951 * python/py-gdb-readline.c: New file.
2952 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2953 prototype.
2954 * python/python.c (_initialize_python): Call
2955 gdbpy_initialize_gdb_readline.
2956
2957 2012-08-22 Keith Seitz <keiths@redhat.com>
2958
2959 * defs.h: Include build-gnulib/config.h
2960
2961 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2962
2963 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2964 and blx pc.
2965
2966 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2967
2968 Add a new "python-interactive" command that starts a standard
2969 Python interactive prompt with "pi" as alias, and add "py" as
2970 an alias to "python".
2971 * NEWS: Mention the new commands.
2972 * python/python.c (eval_python_command): New function.
2973 (python_interactive_command): For "python-interactive" with
2974 arguments, call eval_python_command. For "python-interactive"
2975 without arguments, call PyRun_InteractiveLoop.
2976 (_initialize_python): Add "python-interactive" command with
2977 "pi" as alias, and add "py" as an alias to "python".
2978
2979 2012-08-22 Tom Tromey <tromey@redhat.com>
2980
2981 * defs.h (quit_flag): Don't declare.
2982 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2983 (QUIT): Use new functions.
2984 * event-top.c (command_handler): Use clear_quit_flag.
2985 (handle_sigint): Use set_quit_flag.
2986 (async_request_quit): Use check_quit_flag. Don't check
2987 immediate_quit.
2988 * exceptions.c (throw_exception): Use clear_quit_flag.
2989 * main.c (captured_main): Use clear_quit_flag.
2990 * python/python.c (clear_quit_flag, set_quit_flag)
2991 (check_quit_flag): New functions.
2992 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2993 clear_quit_flag.
2994 * remote.c (remote_wait_as): Use check_quit_flag,
2995 clear_quit_flag.
2996 (remote_start_remote): Call QUIT.
2997 * symfile.c (load_progress): Use check_quit_flag.
2998 * top.c (command_loop): Use clear_quit_flag.
2999 (command_line_input): Call QUIT.
3000 * utils.c (quit_flag): Conditionally define.
3001 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3002 functions.
3003 (prompt_for_continue): Call QUIT. Use quit, not
3004 async_request_quit.
3005 * remote-mips.c (mips_expect_timeout): Call QUIT.
3006 * monitor.c (monitor_expect): Call QUIT.
3007
3008 2012-08-22 Tom Tromey <tromey@redhat.com>
3009
3010 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3011 (async_init_signals): Update.
3012 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3013 (SIGWINCH_HANDLER_BODY): Remove.
3014
3015 2012-08-22 Tom Tromey <tromey@redhat.com>
3016
3017 * jit.c (jit_object_close_impl): Don't malloc the objfile
3018 name.
3019 * objfiles.c (allocate_objfile): Don't malloc the objfile
3020 name.
3021 (free_objfile): Don't free the objfile name.
3022 * objfiles.h (struct objfile) <name>: Update comment.
3023 * symfile.c (reread_symbols): Fix reference counting. Don't
3024 malloc objfile name.
3025
3026 2012-08-22 Tom Tromey <tromey@redhat.com>
3027
3028 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3029 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3030 (symfile_bfd_open): Likewise.
3031 (generic_load): Likewise.
3032 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3033 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3034 gdb_bfd_open.
3035 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3036 Use gdb_bfd_open.
3037 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3038 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3039 (pmon_load_fast): Likewise.
3040 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3041 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3042 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3043 (macho_check_dsym): Likewise.
3044 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3045 (m32r_upload_command): Likewise.
3046 * gdb_bfd.h (gdb_bfd_cache): Declare.
3047 * gdb_bfd.c (struct gdb_bfd_data): New.
3048 (gdb_bfd_cache): New global.
3049 (struct gdb_bfd_cache_search): New.
3050 (hash_bfd): New function.
3051 (eq_bfd): Likewise.
3052 (gdb_bfd_open): Likewise.
3053 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3054 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3055 gdb_bfd_data.
3056 * exec.c (exec_file_attach): Use gdb_bfd_open.
3057 * dsrec.c (load_srec): Use gdb_bfd_open.
3058
3059 2012-08-22 Tom Tromey <tromey@redhat.com>
3060
3061 * dwarf2read.c (macro_start_file): Update.
3062 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3063 (free_objfile_per_bfd_storage): Destroy macro_cache.
3064 (allocate_objfile, free_objfile): Update.
3065 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3066 New field.
3067 (struct objfile) <macro_cache>: Remove.
3068 * symfile.c (reread_symbols): Update.
3069 * symmisc.c (print_symbol_bcache_statistics): Update.
3070 (print_objfile_statistics): Update.
3071
3072 2012-08-22 Tom Tromey <tromey@redhat.com>
3073
3074 * elfread.c (elf_symtab_read): Update.
3075 * objfiles.c (objfiles_bfd_data): New global.
3076 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3077 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3078 (allocate_objfile, free_objfile): Update.
3079 (_initialize_objfiles): Initialize objfiles_bfd_data.
3080 * objfiles.h (struct objfile_per_bfd_storage): New.
3081 (struct objfile) <per_bfd>: New field.
3082 <filename_cache>: Remove.
3083 (set_objfile_per_bfd): Declare.
3084 * symfile.c (reread_symbols): Update. Call
3085 set_objfile_per_bfd.
3086 (allocate_symtab): Update.
3087 * symmisc.c (print_symbol_bcache_statistics): Update.
3088 (print_objfile_statistics): Print the size of the BFD obstack.
3089
3090 2012-08-22 Tom Tromey <tromey@redhat.com>
3091
3092 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3093 * gdb_bfd.c: Use DEFINE_REGISTRY.
3094 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3095 (gdb_bfd_ref): Call bfd_alloc_data.
3096 (gdb_bfd_unref): Call bfd_free_data.
3097
3098 2012-08-22 Tom Tromey <tromey@redhat.com>
3099
3100 * registry.h (struct registry_fields): New.
3101 (REGISTRY_FIELDS): Redefine.
3102 (REGISTRY_ACCESS_FIELD): New macro.
3103 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3104 functions.
3105
3106 2012-08-22 Tom Tromey <tromey@redhat.com>
3107
3108 * auto-load.c (_initialize_auto_load): Update.
3109 * solib-svr4.c (_initialize_svr4_solib): Update
3110 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3111 * solib-darwin.c (_initialize_darwin_solib): Update.
3112 * registry.h: New file.
3113 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3114 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3115 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3116 (register_program_space_data_with_cleanup)
3117 (register_program_space_data, program_space_alloc_data)
3118 (clear_program_space_data, set_program_space_data)
3119 (program_space_data): Don't declare.
3120 * progspace.c: Use DEFINE_REGISTRY.
3121 (struct program_space_data, struct
3122 program_space_data_registration, struct
3123 program_space_data_registry, program_space_data_registry)
3124 (register_program_space_data_with_cleanup)
3125 (register_program_space_data, program_space_alloc_data)
3126 (program_space_free_data, clear_program_space_data)
3127 (set_program_space_data, program_space_data): Remove.
3128 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3129 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3130 (register_objfile_data_with_cleanup, register_objfile_data)
3131 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3132 declare.
3133 * objfiles.c: Use DEFINE_REGISTRY.
3134 (struct objfile_data, struct objfile_data_registration, struct
3135 objfile_data_registry, objfile_data_registry)
3136 (register_objfile_data_with_cleanup, register_objfile_data)
3137 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3138 (set_objfile_data, objfile_data): Remove.
3139 (_initialize_objfiles): Update.
3140 * jit.c (_initialize_jit): Update.
3141 * inflow.c (_initialize_inflow): Update.
3142 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3143 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3144 (register_inferior_data_with_cleanup, register_inferior_data)
3145 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3146 declare.
3147 * inferior.c: Use DEFINE_REGISTRY.
3148 (struct inferior_data, struct inferior_data_registration, struct
3149 inferior_data_registry, inferior_data_registry)
3150 (register_inferior_data_with_cleanup, register_inferior_data)
3151 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3152 (set_inferior_data, inferior_data): Remove.
3153 * auxv.c (_initialize_auxv): Update.
3154 * ada-lang.c (_initialize_ada_language): Update.
3155 * breakpoint.c (_initialize_breakpoint): Update.
3156 * i386-nat.c (i386_use_watchpoints): Update.
3157
3158 2012-08-22 Tom Tromey <tromey@redhat.com>
3159
3160 * exec.c (exec_close, exec_file_attach): Update.
3161 (add_to_section_table): Initialize 'key' field.
3162 (add_target_sections, remove_target_sections): Add 'key' argument.
3163 * exec.h (add_target_sections, remove_target_sections): Add
3164 'key' argument.
3165 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3166 (reload_shared_libraries_1): Update.
3167 * target.h (struct target_section) <key>: New field.
3168
3169 2012-08-22 Tom Tromey <tromey@redhat.com>
3170
3171 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3172
3173 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3174
3175 * symfile.c (allocate_symtab): Use host_address_to_string
3176 function instead of cast of pointer to long which is not
3177 compatible with x86_64-w64-mingw32 build.
3178
3179 2012-08-19 Andrew Pinski <apinski@cavium.com>
3180
3181 * mips-tdep.c (is_octeon): New function.
3182 (is_octeon_bbit_op): New function.
3183 (mips32_next_pc): Handle Octeon's bbit instructions.
3184 (mips32_instruction_has_delay_slot): Likewise.
3185
3186 2012-08-19 Andrew Pinski <apinski@cavium.com>
3187
3188 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3189 before the function.
3190
3191 2012-08-19 Andrew Pinski <apinski@cavium.com>
3192
3193 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3194
3195 2012-08-19 Keith Seitz <keiths@redhat.com>
3196
3197 PR c++/14365
3198 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3199 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3200
3201 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3202
3203 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3204 The typo broke "make TAGS".
3205
3206 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3207
3208 GDB 7.5 released.
3209
3210 2012-08-17 Keith Seitz <keiths@redhat.com>
3211
3212 PR c++/13356
3213 * gdbtypes.c (strict_type_checking): New variable.
3214 (show_strict_type_checking): New function.
3215 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3216 if strict type checking is disabled.
3217 (_initialize_gdbtypes): Add "check type" subcommand.
3218 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3219
3220 2012-08-17 Keith Seitz <keiths@redhat.com>
3221
3222 * language.h (type_mode): Remove.
3223 (type_check): Remove.
3224 (struct language_defn): Remove la_type_check.
3225 (STRICT_TYPE): Remove unused macro.
3226 (type_error): Remove.
3227 * language.c (set_type_range_case): Renamed to ...
3228 (set_range_case): ... this. Update all callers.
3229 Remove type_mode/type_check.
3230 (type_mode): Remove.
3231 (type_check): Remove.
3232 (show_type_command): Remove.
3233 (set_type_command): Remove.
3234 (language_info): Remove type checking output.
3235 (type_error): Remove unused function.
3236 (range_error): Update comment.
3237 (unknown_language_defn): Remove la_type_check.
3238 (auto_language_defn): Likewise.
3239 (local_language_defn): Likewise.
3240 (_initialize_language): Remove "check type" subcommand.
3241 * ada-lang.c (ada_language_defn): Remove la_type_check.
3242 * c-lang.c (c_language_defn): Likewise.
3243 (cplus_language_defn): Likewise.
3244 (asm_language_defn): Likewise.
3245 (minimal_language_defn): Likewise.
3246 * d-lang.c (d_language_defn): Likewise.
3247 * f-lang.c (f_language_defn): Likewise.
3248 * go-lang.c (go_language_defn): Likewise.
3249 * jv-lang.c (java_language_defn): Likewise.
3250 * m2-lang.c (m2_language_defn): Likewise.
3251 * objc-lang.c (objc_language_defn): Likewise.
3252 * opencl-lang.c (opencl_language_defn): Likewise.
3253 * p-lang.c (pascal_language_defn): Likewise.
3254
3255 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3256
3257 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3258
3259 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3260
3261 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3262 New function.
3263 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3264 using the regache. Use ia64_hpux_get_register_from_save_state_t
3265 to access the bsp and bspstore registers if not.
3266
3267 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3268
3269 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3270 * breakpoint.c (detach_breakpoints): Change pid parameter into
3271 a ptid. Adjust code accordingly.
3272 * infrun.c (handle_inferior_event): Delete variable child_pid.
3273 Update call to detach_breakpoints to pass the child ptid for
3274 fork events.
3275 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3276 assert that inferior_ptid's lwp is zero.
3277 (linux_handle_extended_wait): Update call to detach_breakpoints.
3278 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3279 detach_breakpoints.
3280
3281 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3282
3283 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3284 parent, only call detach_breakpoints if tts.tts_event ==
3285 TTEVT_VFORK.
3286
3287 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3288
3289 * dwarf2-frame.c (dwarf2_frame_cache): Use
3290 get_frame_address_in_block instead of get_frame_pc as
3291 the bound for executing the frame's FDE.
3292
3293 2012-08-16 Yao Qi <yao@codesourcery.com>
3294
3295 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3296 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3297 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3298 (c_type_print_varspec_suffix): Likewise.
3299 * eval.c (evaluate_subexp_standard): Likewise.
3300 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3301 (f_type_print_varspec_suffix): Likewise.
3302 * gdbtypes.c (is_scalar_type): Likewise.
3303 (recursive_dump_type): Likewise.
3304 * infcall.c (value_arg_coerce): Likewise.
3305 * m2-valprint.c (m2_val_print): Likewise.
3306 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3307 (pascal_type_print_varspec_suffix): Likewise.
3308 (pascal_type_print_base): Likewise.
3309 * p-valprint.c (pascal_val_print): Likewise.
3310 (pascal_val_print): Likewise.
3311 * valops.c (value_slice): Likewise.
3312 * valprint.c (scalar_type_p): Likewise.
3313 * valarith.c (value_bitstring_subscript): Remove.
3314 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3315 Remove comment on TYPE_CODE_BITSTRING.
3316
3317 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3318 TYPE_CODE_BITSTRING.
3319
3320 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3321 slot 0.
3322
3323 2012-08-16 Yao Qi <yao@codesourcery.com>
3324
3325 * tracepoint.c (trace_find_none_command): Remove.
3326 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3327
3328 2012-08-16 Yao Qi <yao@codesourcery.com>
3329
3330 * remote.c (handle_notification): Remove parameter 'length'.
3331 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3332
3333 2012-08-15 Keith Seitz <keiths@redhat.com>
3334
3335 * gdbtypes.c (opaque_type_resolution): Make static.
3336 Add missing comment.
3337 (overload_debug): Add missing comment.
3338 (show_opaque_type_resolution): Likewise.
3339 (show_overload_debug): Likewise.
3340 (print_bit_vector): Remove unnecessary forward declaration.
3341 (print_arg_types): Likewise.
3342 (dump_fn_fieldlists): Likewise.
3343 (print_cplus_stuff): Likewise.
3344
3345 2012-08-15 Tom Tromey <tromey@redhat.com>
3346
3347 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3348 (gdb_bfd_ref): Initialize new field.
3349 (gdb_bfd_unref): Unref the archive BFD.
3350 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3351 parent archive.
3352
3353 2012-08-15 Tom Tromey <tromey@redhat.com>
3354
3355 PR python/14387:
3356 * python/py-bpevent.c (create_breakpoint_event_object): Update
3357 comment.
3358 * python/py-event.c (evpy_add_attribute): Update comment.
3359 * python/py-exitedevent.c (create_exited_event_object): Fix
3360 reference counting and error handling.
3361 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3362 Fix reference counting.
3363 * python/py-signalevent.c (create_signal_event_object): Fix
3364 reference counting and error handling.
3365 * python/py-stopevent.c (emit_stop_event): Fix reference
3366 counting.
3367 * python/py-threadevent.c (get_event_thread): Return a
3368 borrowed reference.
3369 * python/py-type.c (convert_field): Fix reference counting.
3370
3371 2012-08-15 Tom Tromey <tromey@redhat.com>
3372
3373 * dwarf2read.c (dwarf_decode_macro_bytes)
3374 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3375 as hash key.
3376
3377 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3378
3379 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3380 stepi, nexti, finish, next, step, jump, and continue commands.
3381 * infrun.c (_initialize_infrun): Update help text for the handle
3382 command.
3383
3384 2012-08-14 Doug Evans <dje@google.com>
3385
3386 * gdbtypes.c (struct extra): Delete, unused.
3387
3388 * gdbtypes.c: Whitespace cleanup.
3389 (address_space_name_to_int): Remove "extern" from definition.
3390 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3391
3392 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3393 TYPE_POINTER_TYPE (type).
3394
3395 2012-08-14 Gary Benson <gbenson@redhat.com>
3396
3397 * solib-svr4.c (svr4_free_library_list): Use free_so.
3398
3399 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3400
3401 * .gitignore: Add go-exp.c.
3402
3403 2012-08-13 Doug Evans <dje@google.com>
3404
3405 * value.c (show_convenience): Tweak comment.
3406 (_initialize_values): Mention convenience functions in the help text
3407 for "show convenience".
3408
3409 2012-08-13 Yao Qi <yao@codesourcery.com>
3410
3411 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3412 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3413 TERNOP_SLICE_COUNT.
3414 * eval.c (evaluate_subexp_standard): Likewise.
3415 * expprint.c (print_subexp_standard): Likewise.
3416 (dump_subexp_body_standard): Likewise.
3417 * parse.c (operator_length_standard): Likewise.
3418
3419 2012-08-13 Yao Qi <yao@codesourcery.com>
3420
3421 * std-operator.def: Remove OP_BITSTRING.
3422 * breakpoint.c (watchpoint_exp_is_const): Update.
3423 * eval.c (evaluate_subexp_standard): Remove handling to
3424 OP_BITSTRING.
3425 * expprint.c (print_subexp_standard): Likewise.
3426 (dump_subexp_body_standard): Likewise.
3427 * parse.c (operator_length_standard): Likewise.
3428 * valops.c (value_bitstring): Remove.
3429 * value.h: Remove the declaration of 'value_bitstring'.
3430
3431 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3432
3433 * linespec.c (find_methods): Remove unused variables `i1' and
3434 `name_len'.
3435 (decode_line_full): Likewise for `arg_start'.
3436
3437 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3438
3439 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3440 (zlib_decompress_section): Likewise for `section_data'.
3441 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3442
3443 2012-08-10 Doug Evans <dje@google.com>
3444
3445 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3446 * NEWS: Document them.
3447 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3448 function/strfns.py.
3449 * python/py-type.c (typy_array_1): New function.
3450 (typy_array): Call it.
3451 (typy_vector): New function.
3452 (type_object_methods): Add "vector".
3453 * python/lib/gdb/function/__init__.py: New file.
3454 * python/lib/gdb/function/strfns.py: New file.
3455
3456 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3457
3458 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3459 for TYPE_FIELD_BITPOS.
3460 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3461
3462 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3463
3464 PR cli/10436:
3465 * common/vec.h (VEC_merge): Define.
3466 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3467 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3468 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3469 * completer.c: Include gdb_signals.h.
3470 (signal_completer): Define.
3471 * completer.h (signal_completer): Add prototype.
3472 * infcmd.c (_initialize_infcmd): Assign the command
3473 completer for "signal" to handle_completer.
3474 * infrun.c: Include completer.h.
3475 (handle_completer): Define.
3476 (_initialize_infrun): Declare a new local variable c. Store the
3477 result of add_com("handle") to it. Assign the command
3478 completer for "handle" to handle_completer.
3479
3480 2012-08-09 Yao Qi <yao@codesourcery.com>
3481
3482 * cli/cli-decode.c (set_cmd_prefix): New.
3483 (lookup_cmd_for_prefixlist): New.
3484 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3485 of each cmd_list_element in *prefixlist.
3486 (add_setshow_cmd_full): set_cmd_prefix.
3487 (add_alias_cmd): Likewise.
3488 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3489 Declare 'auto_boolean_enums'.
3490 * cli/cli-setshow.c: Include "observer.h".
3491 (notify_command_param_changed_p): New.
3492 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3493 Remove 'static'.
3494 (do_setshow_command): Split it to ...
3495 (do_set_command, do_show_command): ... them. New.
3496 (do_set_command): Call observer_notify_command_param_changed if
3497 notify_command_param_changed_p returns true.
3498 (cmd_show_list): Caller update.
3499 * auto-load.c (set_auto_load_cmd): Likewise.
3500 * remote.c (show_remote_cmd): Likewise.
3501 * cli/cli-setshow.h: Update declarations.
3502 * top.c (execute_command): Call do_set_command and do_show_command.
3503
3504 * NEWS: Mention new MI notification.
3505 * mi/mi-interp.c: Declare mi_command_param_changed.
3506 (mi_interpreter_init): Attach mi_command_param_changed to
3507 observer command_param_changed.
3508 (mi_command_param_changed): New.
3509 Remove mi_suppress_breakpoint_notifications.
3510 Define global variable mi_suppress_notification.
3511 (mi_breakpoint_created): Update.
3512 (mi_breakpoint_deleted): Likewise.
3513 (mi_breakpoint_modified): Likewise.
3514 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3515 'gdb-set' and set mi_suppress_notification.
3516 * mi/mi-main.h: (mi_suppress_notification): New struct.
3517
3518 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3519 Jan Kratochvil <jan.kratochvil@redhat.com>
3520
3521 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3522
3523 2012-08-09 Yao Qi <yao@codesourcery.com>
3524
3525 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3526 (skiplist): Move it to skip.c.
3527 (init_cmd_lists): Remove code setting enablebreaklist and
3528 skiplist to NULL.
3529 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3530 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3531 skiplist.
3532 * gdbcmd.h: Likewise.
3533 * skip.c (_initialize_step_skip): Move 'skiplist' from
3534 cli/cli-cmds.c.
3535
3536 2012-08-09 Yao Qi <yao@codesourcery.com>
3537
3538 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3539 * gnu-nat.c, symfile.c: Likewise.
3540
3541 2012-08-08 Aaron Gamble <agamble@google.com>
3542
3543 * utils.c (prompt_for_continue_wait_time): New static global.
3544 (make_command_stats_cleanup): Initialize it.
3545 (report_command_stats): Subtract time waiting for user.
3546 (prompt_for_continue): Track time waiting for user.
3547 (defaulted_query): Track time waiting for user.
3548
3549 2012-08-08 Doug Evans <dje@google.com>
3550
3551 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3552 UNOP_MEMVAL_TYPE.
3553 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3554 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3555 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3556 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3557 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3558 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3559 elt.
3560 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3561 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3562 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3563 (dump_prefix_expression): Handle OP_TYPE.
3564
3565 2012-08-08 Keith Seitz <keiths@redhat.com>
3566
3567 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3568 addr_start.
3569
3570 2012-08-08 Doug Evans <dje@google.com>
3571
3572 * linux-thread-db.c: #include "gdb_vecs.h".
3573 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3574 updated.
3575 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3576 (thread_db_load_search): Use a vector to iterate over path elements.
3577 Handle text appearing after "$pdir".
3578
3579 * gdb_string.h: Moved to ...
3580 * common/gdb_string.h: ... here.
3581 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3582 gdb_string.h and gdb_assert.h.
3583
3584 2012-08-08 Yao Qi <yao@codesourcery.com>
3585
3586 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3587 (tic6x_value_to_register): Likewise.
3588 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3589 and set_gdbarch_value_to_register.
3590
3591 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3592 Jean-Marc Saffroy <saffroy@gmail.com>
3593
3594 PR 11804
3595 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3596 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3597 * gcore.c (gcore_create_callback): New function comment. Add modified
3598 parameter. Only write modified regions. Set SEC_READONLY exactly
3599 according to MODIFIED.
3600 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3601 the passed modified value to FUNC.
3602 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3603 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3604 first. New variables modified and has_anonymous. Parse the lines of
3605 smaps file. Add the passed MODIFIED value to FUNC.
3606 * procfs.c (find_memory_regions_callback): Add the passed modified
3607 value.
3608
3609 2012-08-06 Tom Tromey <tromey@redhat.com>
3610
3611 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3612 (dwarf2_frame_cache): Use it.
3613 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3614 cache initialization constraint.
3615
3616 2012-08-06 Tom Tromey <tromey@redhat.com>
3617
3618 PR python/14386:
3619 * varobj.c (update_dynamic_varobj_children): Don't call
3620 PyIter_Check.
3621
3622 2012-08-06 Tom Tromey <tromey@redhat.com>
3623
3624 PR cli/14392:
3625 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3626
3627 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3628
3629 * NEWS: New entry for 'cd' default parameters.
3630 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3631
3632 2012-08-03 Tom Tromey <tromey@redhat.com>
3633
3634 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3635 return.
3636
3637 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3638
3639 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3640 to attempting lseek/write.
3641 (inf_child_fileio_pread): Likewise for pread.
3642
3643 2012-08-02 Yao Qi <yao@codesourcery.com>
3644
3645 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3646 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3647 add_setshow_zinteger_cmd.
3648 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3649 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3650 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3651 instead of add_setshow_zinteger_cmd.
3652 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3653 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3654 instead of add_setshow_zinteger_cmd.
3655 * frame.c (frame_debug): Add 'unsigned'.
3656 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3657 add_setshow_zinteger_cmd.
3658 * frame.h: Update the declaration of 'frame_debug'.
3659 * gdbtypes.c (overload_debug): Add 'unsigned'.
3660 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3661 add_setshow_zinteger_cmd.
3662 * inferior.h: Update declaration of 'debug_infrun'.
3663 * infrun.c (debug_infrun): Add 'unsigned'.
3664 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3665 add_setshow_zinteger_cmd.
3666 * jit.c (jit_debug): Add 'unsigned'.
3667 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3668 add_setshow_zinteger_cmd.
3669 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3670 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3671 instead of add_setshow_zinteger_cmd.
3672 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3673 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3674 add_setshow_zinteger_cmd.
3675 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3676 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3677 instead of add_setshow_zinteger_cmd.
3678 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3679 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3680 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3681 intead of add_setshow_zinteger_cmd.
3682 * mips-tdep.c (mips_debug): Add 'unsigned'.
3683 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3684 instead of add_setshow_zinteger_cmd.
3685 * monitor.c (monitor_debug): Add 'unsigned'.
3686 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3687 add_setshow_zinteger_cmd.
3688 * observer.c (observer_debug): Add 'unsigned'.
3689 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3690 add_setshow_zinteger_cmd.
3691 * parse.c (expressiondebug): Add 'unsigned'.
3692 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3693 add_setshow_zinteger_cmd.
3694 * record.c (record_debug): Add 'unsigned'.
3695 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3696 add_setshow_zinteger_cmd.
3697 * record.h: Update the declaration of 'record_debug'.
3698 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3699 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3700 add_setshow_zinteger_cmd.
3701 * serial.c (global_serial_debug_p): Add 'unsigned'.
3702 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3703 add_setshow_zinteger_cmd.
3704 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3705 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3706 add_setshow_zinteger_cmd.
3707 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3708 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3709 add_setshow_zinteger_cmd.
3710 * target.c (targetdebug): Add 'unsigned'.
3711 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3712 add_setshow_zinteger_cmd.
3713 * valops.c (overload_debug): Add 'unsigned'.
3714 * varobj.c (varobjdebug): Add 'unsigned'.
3715 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3716 add_setshow_zinteger_cmd.
3717 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3718 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3719 instead of add_setshow_zinteger_cmd.
3720
3721 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3722 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3723 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3724 instead of add_setshow_zinteger_cmd.
3725 * gdbarch.c, gdbarch.h: Re-generated.
3726
3727 2012-08-02 Yao Qi <yao@codesourcery.com>
3728
3729 * nto-tdep.c: Don't include cli/cli-decode.h and
3730 cli/cli-cmds.h.
3731 (_initialize_nto_tdep): Remove.
3732 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3733 Remove field.
3734 Remove macro nto_internal_debugging.
3735
3736 2012-08-01 Richard Henderson <rth@redhat.com>
3737
3738 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3739 (mep-*-*) [gdb_target_obs]: Likewise.
3740
3741 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3742
3743 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3744 linux_get_siginfo_type.
3745
3746 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3747
3748 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3749 AT_ENTRY_POINT.
3750 (call_function_by_hand) <ON_STACK>: Call write_memory with
3751 gdbarch_breakpoint_from_pc, if possible.
3752 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3753 here.
3754
3755 2012-07-31 Yao Qi <yao@codesourcery.com>
3756
3757 * tracepoint.c: Add 'static' for some variables.
3758
3759 2012-07-31 Yao Qi <yao@codesourcery.com>
3760
3761 * go32-nat.c: Declare _initialize_go32_nat.
3762 * ser-go32.c: Declare _initialize_ser_dos.
3763 * top.c (do_chdir_cleanup): Add 'static'.
3764
3765 2012-07-30 Keith Seitz <keiths@redhat.com>
3766
3767 * linespec.c (linespec_lex_number): A number followed
3768 by quotes is a valid number, too.
3769
3770 2012-07-30 Tom Tromey <tromey@redhat.com>
3771
3772 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3773
3774 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3775
3776 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3777 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3778
3779 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3780
3781 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3782 invalid or reevaluated to prevent prevent references to possibly
3783 delete'd type objects being left in the varobj.
3784
3785 2012-07-27 Tom Tromey <tromey@redhat.com>
3786 Jan Kratochvil <jan.kratochvil@redhat.com>
3787
3788 * copying.awk: Print buffer-read-only and vi ro markers.
3789 * copying.c: Rebuild.
3790 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3791 * gdbarch.c, gdbarch.h: Rebuild.
3792 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3793 buffer-read-only and vi ro markers.
3794 * features/arm-with-iwmmxt.c: Rebuild.
3795 * features/arm-with-m-fpa-layout.c: Rebuild.
3796 * features/arm-with-m-vfp-d16.c: Rebuild.
3797 * features/arm-with-m.c: Rebuild.
3798 * features/arm-with-neon.c: Rebuild.
3799 * features/arm-with-vfpv2.c: Rebuild.
3800 * features/arm-with-vfpv3.c: Rebuild.
3801 * features/i386/amd64-avx-linux.c: Rebuild.
3802 * features/i386/amd64-avx.c: Rebuild.
3803 * features/i386/amd64-linux.c: Rebuild.
3804 * features/i386/amd64.c: Rebuild.
3805 * features/i386/i386-avx-linux.c: Rebuild.
3806 * features/i386/i386-avx.c: Rebuild.
3807 * features/i386/i386-linux.c: Rebuild.
3808 * features/i386/i386-mmx-linux.c: Rebuild.
3809 * features/i386/i386-mmx.c: Rebuild.
3810 * features/i386/i386.c: Rebuild.
3811 * features/i386/x32-avx-linux.c: Rebuild.
3812 * features/i386/x32-avx.c: Rebuild.
3813 * features/i386/x32-linux.c: Rebuild.
3814 * features/i386/x32.c: Rebuild.
3815 * features/mips-dsp-linux.c: Rebuild.
3816 * features/mips-linux.c: Rebuild.
3817 * features/mips64-dsp-linux.c: Rebuild.
3818 * features/mips64-linux.c: Rebuild.
3819 * features/rs6000/powerpc-32.c: Rebuild.
3820 * features/rs6000/powerpc-32l.c: Rebuild.
3821 * features/rs6000/powerpc-403.c: Rebuild.
3822 * features/rs6000/powerpc-403gc.c: Rebuild.
3823 * features/rs6000/powerpc-405.c: Rebuild.
3824 * features/rs6000/powerpc-505.c: Rebuild.
3825 * features/rs6000/powerpc-601.c: Rebuild.
3826 * features/rs6000/powerpc-602.c: Rebuild.
3827 * features/rs6000/powerpc-603.c: Rebuild.
3828 * features/rs6000/powerpc-604.c: Rebuild.
3829 * features/rs6000/powerpc-64.c: Rebuild.
3830 * features/rs6000/powerpc-64l.c: Rebuild.
3831 * features/rs6000/powerpc-7400.c: Rebuild.
3832 * features/rs6000/powerpc-750.c: Rebuild.
3833 * features/rs6000/powerpc-860.c: Rebuild.
3834 * features/rs6000/powerpc-altivec32.c: Rebuild.
3835 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3836 * features/rs6000/powerpc-altivec64.c: Rebuild.
3837 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3838 * features/rs6000/powerpc-cell32l.c: Rebuild.
3839 * features/rs6000/powerpc-cell64l.c: Rebuild.
3840 * features/rs6000/powerpc-e500.c: Rebuild.
3841 * features/rs6000/powerpc-e500l.c: Rebuild.
3842 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3843 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3844 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3845 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3846 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3847 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3848 * features/rs6000/powerpc-vsx32.c: Rebuild.
3849 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3850 * features/rs6000/powerpc-vsx64.c: Rebuild.
3851 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3852 * features/rs6000/rs6000.c: Rebuild.
3853 * features/s390-linux32.c: Rebuild.
3854 * features/s390-linux32v1.c: Rebuild.
3855 * features/s390-linux32v2.c: Rebuild.
3856 * features/s390-linux64.c: Rebuild.
3857 * features/s390-linux64v1.c: Rebuild.
3858 * features/s390-linux64v2.c: Rebuild.
3859 * features/s390x-linux64.c: Rebuild.
3860 * features/s390x-linux64v1.c: Rebuild.
3861 * features/s390x-linux64v2.c: Rebuild.
3862 * features/tic6x-c62x-linux.c: Rebuild.
3863 * features/tic6x-c62x.c: Rebuild.
3864 * features/tic6x-c64x-linux.c: Rebuild.
3865 * features/tic6x-c64x.c: Rebuild.
3866 * features/tic6x-c64xp-linux.c: Rebuild.
3867 * features/tic6x-c64xp.c: Rebuild.
3868
3869 2012-07-27 Tom Tromey <tromey@redhat.com>
3870
3871 * c-exp.y (classify_name): Avoid assignment in condition.
3872
3873 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3874
3875 * amd64-windows-tdep.c: Include "frame.h".
3876 (amd64_windows_skip_trampoline_code): New function.
3877 (amd64_windows_init_abi): Add trampoline registration.
3878
3879 2012-07-27 Yao Qi <yao@codesourcery.com>
3880
3881 * tracepoint.c (cur_traceframe_number): Remove.
3882 (set_tfile_traceframe): Remove.
3883 (tfile_trace_find, tfile_fetch_registers): Update callers.
3884 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3885 (tfile_open, tfile_trace_find): Likewise.
3886
3887 2012-07-27 Yao Qi <yao@codesourcery.com>
3888
3889 * thread.c (switch_to_thread): Don't call registers_changed.
3890
3891 2012-07-26 Tom Tromey <tromey@redhat.com>
3892
3893 * Makefile.in (SFILES): Remove objc-exp.y.
3894 (YYFILES): Remove objc-exp.c.
3895 (YYOBJ): Remove objc-exp.o.
3896 (local-maintainer-clean): Don't mention objc-exp.c.
3897 * c-exp.y: Include objc-lang.h.
3898 (%union) <class>: New field.
3899 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3900 (exp): Clone subscript production for OBJC_LBRAC. Add various
3901 Objective C productions.
3902 (msglist, msgarglist, msgarg): New productions.
3903 (array_mod, func_mod, operator): Clone productions for
3904 OBJC_LBRAC.
3905 (parse_string_or_char): Handle '@' strings.
3906 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3907 (classify_name): Check la_name_of_this. Recognize ObjC class
3908 names.
3909 * objc-exp.y: Remove.
3910 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3911 * objc-lang.h (objc_parse, objc_error): Don't declare.
3912
3913 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3914
3915 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3916
3917 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3918
3919 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3920 and decrement.
3921
3922 2012-07-26 Tom Tromey <tromey@redhat.com>
3923
3924 * copying.c: Rebuild.
3925 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3926 'no_class'.
3927
3928 2012-07-26 Tom Tromey <tromey@redhat.com>
3929
3930 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3931 immediate_quit.
3932 (print_objfile_statistics): Likewise.
3933 (maintenance_print_symbols): Likewise.
3934 (maintenance_print_msymbols): Likewise.
3935 (maintenance_print_objfiles): Likewise.
3936 * psymtab.c (print_partial_symbols): Call QUIT.
3937 (maintenance_print_psymbols): Likewise. Don't modify
3938 immediate_quit.
3939 * copying.c (show_copying_command): Don't modify immediate_quit.
3940 (show_warranty_command): Likewise.
3941 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3942
3943 2012-07-26 Keith Seitz <keiths@redhat.com>
3944
3945 * linespec.c (linespec_lexer_lex_number): The input
3946 is also a valid number if the next character is a comma
3947 or colon.
3948
3949 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3950
3951 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3952 configure options.
3953
3954 2012-07-26 Tristan Gingold <gingold@adacore.com>
3955
3956 * machoread.c: Include gdb_bfd.h.
3957
3958 2012-07-26 Tristan Gingold <gingold@adacore.com>
3959
3960 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3961 offset.
3962
3963 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3964
3965 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3966 SIZE to size_t.
3967 (dwarf2_evaluate_loc_desc): Likewise.
3968 (dwarf2_loc_desc_needs_frame): Likewise.
3969 (locexpr_describe_location_1): Likewise.
3970 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3971 size_t.
3972 (struct dwarf2_loclist_baton): Likewise.
3973 * dwarf2read.c (struct dwarf_block): Likewise.
3974 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3975 (decode_locdesc): Expand SIZE and I to size_t.
3976
3977 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3978
3979 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3980
3981 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3982
3983 * doublest.c (convert_doublest_to_floatformat): If the exponent
3984 is too small, treat the value as zero. If the exponent is too
3985 large, treat the value as infinity.
3986
3987 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3988
3989 * configure.ac: Add --enable-lmcheck configure option.
3990 * configure: Regenerate.
3991
3992 2012-07-25 Tom Tromey <tromey@redhat.com>
3993
3994 * NEWS: Mention maint info bfds.
3995 * gdb_bfd.c (all_bfds): New global.
3996 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3997 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3998 New functions.
3999
4000 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
4001
4002 * configure.tgt: Add v850*-*-rtems*.
4003
4004 2012-07-25 Tom Tromey <tromey@redhat.com>
4005
4006 * macrotab.c (macro_bcache_str): Remove cast.
4007
4008 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
4009
4010 * linespec.c (linespec_lexer_lex_number): Update comments,
4011 change the return and add check to make sure the input is
4012 the decimal numbers.
4013 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4014 false, call linespec_lexer_lex_string.
4015
4016 2012-07-24 Tom Tromey <tromey@redhat.com>
4017
4018 * symfile.c (symbol_file_add): Don't open BFD twice.
4019
4020 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
4021
4022 * breakpoint.c (create_breakpoint): Store condition for pending
4023 breakpoints.
4024
4025 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4026
4027 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4028 (m68k_return_value): Handle complex types like structures.
4029 (m68k_svr4_return_value): Likewise.
4030
4031 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4032
4033 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4034 parameters to bfd_get_section_name.
4035
4036 2012-07-24 Yao Qi <yao@codesourcery.com>
4037
4038 * cli/cli-setshow.c: Handle case 'var_uinteger'
4039 and 'var_zuninteger' together. Handle case 'var_integer' and
4040 'var_zinteger' together.
4041
4042 2012-07-23 Keith Seitz <keiths@redhat.com>
4043
4044 * linespec.c (convert_linespec_to_sal): Don't add
4045 any symbols to the result vector if symbol_to_sal
4046 returns zero.
4047
4048 2012-07-23 Keith Seitz <keiths@redhat.com>
4049
4050 * linespec.c (decode_objc): Record the function name
4051 in the linespec.
4052
4053 2012-07-23 Tom Tromey <tromey@redhat.com>
4054
4055 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4056 counting.
4057 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4058 (map_vmap): Acquire a reference to the BFD.
4059
4060 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4061
4062 * p-valprint.c (pascal_object_print_value): Replace potentially
4063 unsafe alloca with xmalloc/xfree.
4064 * valops.c (search_struct_method): Likewise.
4065
4066 2012-07-23 Tom Tromey <tromey@redhat.com>
4067
4068 * solib-svr4.c (enable_break): Update.
4069 * bfd-target.h (target_bfd_reopen): Update documentation.
4070
4071 2012-07-23 Tom Tromey <tromey@redhat.com>
4072
4073 * symfile.c (separate_debug_file_exists): Update.
4074 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4075 (reread_symbols): Update.
4076 * elfread.c (build_id_verify): Update.
4077 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4078 bfd_open_maybe_remote.
4079
4080 2012-07-23 Tom Tromey <tromey@redhat.com>
4081
4082 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4083
4084 2012-07-23 Tom Tromey <tromey@redhat.com>
4085
4086 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4087 and 'abfd'.
4088 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4089 and 'abfd'.
4090 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4091 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4092 'abfd'.
4093 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4094 * objfiles.c (allocate_objfile): Acquire a new reference.
4095 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4096 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4097 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4098 a cleanup for 'nbfd'.
4099 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4100 for 'nbfd'.
4101 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4102 make a cleanup for 'abfd'.
4103 (symbol_file_add): Make a BFD cleanup.
4104
4105 2012-07-23 Tom Tromey <tromey@redhat.com>
4106
4107 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4108 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4109 * corelow.c (core_open): Use gdb_bfd_fopen.
4110 * dsrec.c (load_srec): Use gdb_bfd_openr.
4111 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4112 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4113 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4114 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4115 (gdb_bfd_fdopenr): New functions.
4116 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4117 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4118 (gdb_bfd_fdopenr): Declare.
4119 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4120 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4121 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4122 gdb_bfd_openr_next_archived_file.
4123 (macho_check_dsym): Use gdb_bfd_openr.
4124 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4125 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4126 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4127 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4128 gdb_bfd_openr.
4129 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4130 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4131 gdb_bfd_openr_next_archived_file.
4132 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4133 Use gdb_bfd_openr.
4134 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4135 gdb_bfd_openr.
4136 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4137 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4138 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4139 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4140 (symfile_bfd_open): Use gdb_bfd_fopen.
4141 (generic_load): Use gdb_bfd_openr.
4142 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4143
4144 2012-07-23 Tom Tromey <tromey@redhat.com>
4145
4146 * bfd-target.c (target_bfd_reopen): Update.
4147 * cli/cli-dump.c (bfd_openr_with_cleanup)
4148 (bfd_openw_with_cleanup): Update.
4149 * corelow.c (core_open): Update.
4150 * dsrec.c (load_srec): Update.
4151 * exec.c (exec_file_attach): Update.
4152 * gcore.c (create_gcore_bfd): Update.
4153 * gdb_bfd.c (gdb_bfd_ref): Return void.
4154 (gdb_bfd_open): Update.
4155 * gdb_bfd.h (gdb_bfd_ref): Return void.
4156 Update comments.
4157 * jit.c (jit_bfd_try_read_symtab): Update.
4158 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4159 * machoread.c (macho_symfile_read_all_oso): Update.
4160 (macho_check_dsym): Update.
4161 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4162 * remote-m32r-sdi.c (m32r_load): Update.
4163 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4164 * rs6000-nat.c (add_vmap): Update.
4165 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4166 Update.
4167 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4168 * solib-spu.c (spu_bfd_open): Update.
4169 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4170 * spu-linux-nat.c (spu_bfd_open): Update.
4171 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4172 (generic_load): Update.
4173 * windows-nat.c (windows_make_so): Update.
4174
4175 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4176
4177 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4178
4179 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4180
4181 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4182 SIGTRAMP_FRAME unwinding.
4183
4184 2012-07-20 Doug Evans <dje@google.com>
4185
4186 * NEWS: Document new options "set/show use-deprecated-index-sections",
4187 and delete reference to --use-deprecated-index-sections.
4188 * symfile.h (use_deprecated_index_sections): Delete.
4189 * dwarf2read.c (use_deprecated_index_sections): Make static.
4190 (read_index_from_section): Update wording of how to load
4191 deprecated index sections.
4192 (_initialize_dwarf2_read): New options
4193 "set/show use-deprecated-index-sections".
4194 * main.c (captured_main): Delete --use-deprecated-index-sections.
4195
4196 2012-07-20 Pedro Alves <palves@redhat.com>
4197
4198 PR threads/11692
4199 PR gdb/12203
4200
4201 * infrun.c (handle_inferior_event) <new thread>: Don't special
4202 case minus_one_ptid.
4203 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4204 * linux-thread-db.c (thread_get_info_callback): Don't return early
4205 if the thread is zombie.
4206 (thread_from_lwp): Change return type to void. Rewrite stale
4207 comment.
4208 (attach_thread): Don't return early if the thread is zombie,
4209 instead set its "dying" flag.
4210 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4211 (find_new_threads_callback): Don't return early if the thread is
4212 zombie.
4213
4214 2012-07-20 Pedro Alves <palves@redhat.com>
4215
4216 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4217 * target.c (target_wait): Likewise.
4218 (str_comma_list_concat_elem, do_option, target_options_to_string):
4219 New functions.
4220 * target.h (target_options_to_string): Declare.
4221
4222 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4223 Tom Tromey <tromey@redhat.com>
4224
4225 * dwarf2read.c (dwarf_decode_macros)
4226 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4227 DW_MACRO_GNU_transparent_include_alt>: New cases.
4228 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4229 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4230
4231 2012-07-20 Tom Tromey <tromey@redhat.com>
4232
4233 * dwarf2read.c (try_open_dwo_file): Don't call
4234 gdb_bfd_stash_filename.
4235
4236 2012-07-20 Pedro Alves <palves@redhat.com>
4237
4238 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4239 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4240 (i386_process_record): Tweak description comments.
4241
4242 2012-07-20 Pedro Alves <palves@redhat.com>
4243
4244 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4245 (i386_process_record): Use record_read_memory.
4246 * record.c (record_read_memory): New function.
4247 (record_arch_list_add_mem, record_exec_insn): Use
4248 record_read_memory.
4249 * record.h (record_read_memory): Declare.
4250
4251 2012-07-20 Yao Qi <yao@codesourcery.com>
4252
4253 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4254 NULL for xfree.
4255
4256 2012-07-19 Pedro Alves <palves@redhat.com>
4257
4258 * record.c (record_resume): Ask the target beneath to report all
4259 signals.
4260
4261 2012-07-19 Doug Evans <dje@google.com>
4262
4263 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4264 there's no section at address zero.
4265 (dwarf2_record_block_ranges): Ditto.
4266
4267 2012-07-19 Yao Qi <yao@codesourcery.com>
4268
4269 * command.h, remote.c: Fix a typo in comment.
4270
4271 2012-07-19 Tom Tromey <tromey@redhat.com>
4272
4273 PR exp/13206:
4274 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4275 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4276 OP_DECLTYPE>: New cases.
4277 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4278 (type_exp): Add new productions.
4279 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4280 and decltype.
4281 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4282 New case.
4283 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4284 OP_DECLTYPE>: New case.
4285 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4286 New case.
4287 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4288 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4289
4290 2012-07-19 Tom Tromey <tromey@redhat.com>
4291
4292 * c-exp.y (enum token_flags): New.
4293 (struct token) <cxx_only>: Remove.
4294 <flags>: New field.
4295 (tokentab3, tokentab2, ident_tokens): Update.
4296 (lex_one_token): Update. Handle FLAG_SHADOW.
4297
4298 2012-07-19 Tom Tromey <tromey@redhat.com>
4299
4300 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4301 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4302 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4303 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4304 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4305 type_exp production where appropriate.
4306 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4307 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4308 <UNOP_MEMVAL_TYPE>: New case.
4309 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4310 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4311 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4312 <UNOP_MEMVAL_TYPE>: New case.
4313 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4314 UNOP_REINTERPRET_CAST>: Update.
4315 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4316 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4317 UNOP_REINTERPRET_CAST>: Update.
4318 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4319 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4320 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4321 constants.
4322
4323 2012-07-19 Yao Qi <yao@codesourcery.com>
4324 Jan Kratochvil <jan.kratochvil@redhat.com>
4325
4326 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4327 and case 'var_optional_filename' together.
4328 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4329 instead of add_setshow_optional_filename_cmd for setshow command
4330 'args'. Set completer for 'set args'.
4331
4332 2012-07-18 Doug Evans <dje@google.com>
4333
4334 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4335 * common/gdb_vecs.c: New file, contents from utils.c.
4336 * common/host-defs.h: New file, contents from defs.h.
4337 * utils.h: New file, contents from defs.h.
4338 * defs.h: Move all declarations of objects defined in utils.c
4339 to utils.h (except QUIT() and related).
4340 #include "utils.h", "host-defs.h".
4341 * probe.h (probe_p): Move here from gdb_vecs.h.
4342 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4343 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4344 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4345 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4346 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4347 (COMMON_OBS): Add gdb_vecs.o.
4348 (gdb_vecs.o): New rule.
4349
4350 2012-07-18 Keith Seitz <keiths@redhat.com>
4351
4352 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4353 parameter. If non-zero, use SYMNAME as the canonical name
4354 for the SaL.
4355 Update all callers.
4356 (convert_linespec_to_sals): Use add_sal_to_sals for
4357 expressions, too.
4358 (decode_line_full): No need to "fill in missing canonical names"
4359 anymore. Simply make cleanups for the allocated names.
4360
4361 2012-07-18 Keith Seitz <keiths@redhat.com>
4362
4363 * linespec.c (struct linespec): Constify expression,
4364 source_filename, function_name, and label_name.
4365 (symbol_not_found_error): Make all parameters const.
4366 (linespec_parser_delete): No need to check for NULL
4367 when using xfree. Cast const char * to char * for xfree.
4368
4369 2012-07-18 Keith Seitz <keiths@redhat.com>
4370
4371 * breakpoint.c (invalid_thread_id_error): New function.
4372 (find_condition_and_thread): Use invalid_thread_id_error.
4373 (watch_command_1): Likewise.
4374
4375 2012-07-18 Tom Tromey <tromey@redhat.com>
4376
4377 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4378 * contrib/cc-with-tweaks.sh: New file.
4379
4380 2012-07-18 Tom Tromey <tromey@redhat.com>
4381
4382 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4383 (locate_dwz_sections): Recognize .gdb_index.
4384 (create_cus_from_index_list): New function.
4385 (create_cus_from_index): Use it. Handle .dwz data.
4386 (read_index_from_section): New function, extracted from
4387 dwarf2_read_index.
4388 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4389 if needed.
4390
4391 2012-07-18 Tom Tromey <tromey@redhat.com>
4392
4393 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4394 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4395 <is_dwz>: New field.
4396 (struct dwz_file): New.
4397 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4398 (locate_dwz_sections, dwarf2_get_dwz_file)
4399 (get_abbrev_section_for_cu): New functions.
4400 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4401 (read_and_check_type_unit_head): Add abbrev_section argument.
4402 (create_debug_types_hash_table): Update.
4403 (init_cutu_and_read_dies): Use proper abbrev section.
4404 (init_cutu_and_read_dies_no_follow): Likewise.
4405 (set_partial_user): Do nothing if PST==NULL.
4406 (read_comp_units_from_section): New function.
4407 (create_all_comp_units): Use it.
4408 (scan_partial_symbols, partial_die_parent_scope): Update.
4409 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4410 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4411 (find_partial_die): Add offset_in_dwz argument. Update.
4412 (guess_partial_die_structure_name, fixup_partial_die): Update.
4413 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4414 DW_FORM_GNU_strp_alt.
4415 (read_indirect_string_from_dwz): New function.
4416 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4417 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4418 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4419 (follow_die_offset): Add offset_in_dwz argument.
4420 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4421 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4422 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4423 Handle new macro forms.
4424 (dwarf_decode_macros): Update.
4425 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4426 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4427 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4428 (create_debug_types_hash_table): Use correct abbrev section.
4429 (get_debug_line_section): New function.
4430 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4431 (process_full_comp_unit): Pass 'required' argument to
4432 end_symtab_get_static_block.
4433 * buildsym.h (end_symtab_get_static_block): Update.
4434 * buildsym.c (end_symtab_get_static_block): Add 'required'
4435 argument.
4436 (end_symtab, end_expandable_symtab): Update.
4437
4438 2012-07-18 Tom Tromey <tromey@redhat.com>
4439
4440 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4441 (pagesize): Remove.
4442 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4443 (zlib_decompress_section): Remove.
4444 (dwarf2_read_section): Use gdb_bfd_map_section.
4445 (munmap_section_buffer): Remove.
4446 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4447 munmap_section_buffer.
4448 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4449 (struct gdb_bfd_section_data): New.
4450 (free_one_bfd_section): New function.
4451 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4452 (get_section_descriptor, zlib_decompress_section)
4453 (gdb_bfd_map_section): New functions.
4454 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4455
4456 2012-07-18 Tom Tromey <tromey@redhat.com>
4457
4458 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4459
4460 2012-07-18 Tom Tromey <tromey@redhat.com>
4461
4462 * gdb_bfd.c (struct gdb_bfd_data): New.
4463 (gdb_bfd_cache): New global.
4464 (struct gdb_bfd_cache_search): New.
4465 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4466 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4467 * gdb_bfd.h (gdb_bfd_open): Declare.
4468
4469 2012-07-18 Tom Tromey <tromey@redhat.com>
4470
4471 * utils.c (make_cleanup_bfd_unref): Rename from
4472 make_cleanup_bfd_close.
4473 * defs.h (make_cleanup_bfd_unref): Rename from
4474 make_cleanup_bfd_close.
4475 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4476 (bfd_openw_with_cleanup): Update.
4477 * corelow.c (core_open): Update.
4478 * dsrec.c (load_srec): Update.
4479 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4480 * remote-m32r-sdi.c (m32r_load): Update.
4481 * remote-mips.c (mips_load_srec): Update.
4482 (pmon_load_fast): Update.
4483 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4484 Update.
4485 (darwin_bfd_open): Update.
4486 * solib.c (solib_bfd_fopen): Update.
4487 * symfile-mem.c (symbol_file_add_from_memory): Update.
4488 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4489 (symfile_bfd_open): Update.
4490 (generic_load): Update.
4491
4492 2012-07-18 Tom Tromey <tromey@redhat.com>
4493
4494 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4495 (pmon_load_fast): Likewise.
4496 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4497 (m32r_upload_command): Likewise.
4498 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4499 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4500 Use make_cleanup_bfd_close.
4501
4502 2012-07-18 Tom Tromey <tromey@redhat.com>
4503
4504 * symfile.c (symfile_bfd_open): Don't copy name. Call
4505 gdb_bfd_stash_filename.
4506 (load_command): Open the new BFD before freeing the old.
4507 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4508 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4509 Call gdb_bfd_stash_filename.
4510 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4511 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4512 gdb_bfd_stash_filename.
4513 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4514 Free found_pathname.
4515 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4516 gdb_bfd_stash_filename.
4517 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4518 * machoread.c (macho_add_oso_symfile): Call
4519 gdb_bfd_stash_filename.
4520 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4521 gdb_bfd_stash_filename.
4522 (macho_check_dsym): Don't copy filename. Call
4523 gdb_bfd_stash_filename.
4524 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4525 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4526 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4527 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4528 * exec.c (exec_close): Don't free the BFD's filename.
4529 (exec_file_attach): Don't copy the filename. Call
4530 gdb_bfd_stash_filename.
4531 * corelow.c (core_close): Don't free the BFD's filename.
4532 (core_open): Call gdb_bfd_stash_filename.
4533 * corefile.c (reopen_exec_file): Remove #if 0 code.
4534 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4535 pathname.
4536 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4537
4538 2012-07-18 Tom Tromey <tromey@redhat.com>
4539
4540 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4541 gdb_bfd_unref.
4542 (free_dwo_file): Use gdb_bfd_unref.
4543 * cli/cli-dump.c: Include gdb_bfd.h.
4544 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4545 (bfd_openr_with_cleanup): Likewise.
4546 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4547 gdb_bfd_unref.
4548 * utils.c: Include gdb_bfd.h.
4549 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4550 * symfile.c: Include gdb_bfd.h.
4551 (separate_debug_file_exists): Use gdb_bfd_unref.
4552 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4553 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4554 (generic_load): Use gdb_bfd_ref.
4555 (reread_symbols): Use gdb_bfd_unref.
4556 * symfile-mem.c: Include gdb_bfd.h.
4557 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4558 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4559 * solib.c: Include gdb_bfd.h.
4560 (solib_bfd_fopen): Use gdb_bfd_ref.
4561 (solib_bfd_open): Use gdb_bfd_unref.
4562 (free_so_symbols): Use gdb_bfd_unref.
4563 (reload_shared_libraries_1): Use gdb_bfd_unref.
4564 * solib-spu.c: Include gdb_bfd.h.
4565 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4566 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4567 gdb_bfd_unref.
4568 * solib-frv.c: Include gdb_bfd.h.
4569 (enable_break2): Use gdb_bfd_unref.
4570 * solib-dsbt.c: Include gdb_bfd.h.
4571 (enable_break2): Use gdb_bfd_unref.
4572 * solib-darwin.c: Include gdb_bfd.h.
4573 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4574 gdb_bfd_unref.
4575 (darwin_bfd_open): Use gdb_bfd_unref.
4576 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4577 * remote-mips.c: Include gdb_bfd.h.
4578 (mips_load_srec): Use gdb_bfd_ref.
4579 (pmon_load_fast): Use gdb_bfd_ref.
4580 * remote-m32r-sdi.c: Include gdb_bfd.h.
4581 (m32r_load): Use gdb_bfd_ref.
4582 * record.c: Include gdb_bfd.h.
4583 (record_save_cleanups): Use gdb_bfd_unref.
4584 (cmd_record_save): Use gdb_bfd_unref.
4585 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4586 gdb_bfd_unref.
4587 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4588 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4589 * objfiles.c: Include gdb_bfd.h.
4590 (free_objfile): Use gdb_bfd_unref.
4591 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4592 gdb_bfd.c.
4593 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4594 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4595 (macho_check_dsym): Likewise.
4596 * m32r-rom.c: Include gdb_bfd.h.
4597 (m32r_load): Use gdb_bfd_ref.
4598 (m32r_upload_command): Use gdb_bfd_ref.
4599 * jit.c: Include gdb_bfd.h.
4600 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4601 * gdb_bfd.h: New file.
4602 * gdb_bfd.c: New file.
4603 * gcore.c: Include gdb_bfd.h.
4604 (create_gcore_bfd): Use gdb_bfd_ref.
4605 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4606 (gcore_command): Use gdb_bfd_unref.
4607 * exec.c: Include gdb_bfd.h.
4608 (exec_close): Use gdb_bfd_unref.
4609 (exec_close_1): Use gdb_bfd_unref.
4610 (exec_file_attach): Use gdb_bfd_ref.
4611 * elfread.c: Include gdb_bfd.h.
4612 (build_id_verify): Use gdb_bfd_unref.
4613 * dsrec.c: Include gdb_bfd.h.
4614 (load_srec): Use gdb_bfd_ref.
4615 * corelow.c: Include gdb_bfd.h.
4616 (core_close): Use gdb_bfd_unref.
4617 (core_open): Use gdb_bfd_ref.
4618 * bfd-target.c: Include gdb_bfd.h.
4619 (target_bfd_xclose): Use gdb_bfd_unref.
4620 (target_bfd_reopen): Use gdb_bfd_ref.
4621 * Makefile.in (SFILES): Add gdb_bfd.c.
4622 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4623 (COMMON_OBS): Add gdb_bfd.o.
4624
4625 2012-07-18 Keith Seitz <keiths@redhat.com>
4626
4627 * breakpoint.c (find_condition_and_thread): Initialize
4628 TASK and REST.
4629 (create_breakpiont): find_condition_and_thread will now
4630 initialize COND_STRING, THREAD, and REST (and TASK).
4631 (addr_string_to_sals): Likewise.
4632
4633 2012-07-18 Pedro Alves <palves@redhat.com>
4634
4635 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4636 Pull the single step breakpoints out of the target.
4637
4638 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4639
4640 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4641 * stap-probe.c (compile_probe_arg): Likewise.
4642
4643 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4644
4645 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4646 (elf_compile_to_ax): Likewise.
4647 * infrun.c (insert_exception_resume_from_probe): Likewise.
4648 (check_exception_resume): Remove `objfile' variable.
4649 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4650 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4651 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4652 (compare_entries): Rename to...
4653 (compare_probes): ...this. Adjust function to work with
4654 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4655 respectively.
4656 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4657 `VEC (probe_p) *'.
4658 (print_ui_out_info): Adjust argument to be `struct probe *'.
4659 (info_probes_for_ops): Adjust internal computations to use
4660 `VEC (probe_p) *'.
4661 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4662 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4663 gen_info_probes_table_values>: Remove `objfile' argument.
4664 (struct probe) <objfile>: New field.
4665 (find_probe_by_pc): Remove `objfile' argument.
4666 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4667 (stap_get_probe_argument_count): Likewise.
4668 (stap_get_arg): Likewise.
4669 (stap_evaluate_probe_argument): Likewise.
4670 (stap_compile_to_ax): Likewise.
4671 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4672 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4673 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4674 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4675 sym_compile_to_ax>: Likewise.
4676
4677 2012-07-18 Terry Guo <terry.guo@arm.com>
4678
4679 PR 14329
4680 * defs.h (GDB_MI_MSG_WIDTH): New.
4681 * ser_base (ser_base_read_error_fd): New function.
4682 (do_ser_base_readchar): Poll error file descriptor as well as
4683 standard output.
4684 (generic_readchar): Refactor error handling.
4685
4686 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4687
4688 * NEWS: Create a new section for the next release branch.
4689 Rename the section of the current branch, now that it has
4690 been cut.
4691
4692 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4693
4694 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4695 * version.in: Bump version to 7.5.50.20120718-cvs.
4696
4697 2012-07-17 Keith Seitz <keiths@redhat.com>
4698
4699 * linespec.c (linespec_parse_line_offset): Make parameter
4700 const.
4701
4702 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4703
4704 PR 11914
4705 * f-valprint.c (info_common_command): New variable frame_id.
4706 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4707 * printcmd.c (print_variable_and_value): Extend function comment.
4708 Add comment for invalidated FRAME.
4709 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4710 FI form FRAME_ID after each print_frame_local_vars.
4711 (struct print_variable_and_value_data): Change frame to frame_id.
4712 (do_print_variable_and_value): New variable frame, initialize it from
4713 p->frame_id. Add comment for invalidated FRAME.
4714 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4715 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4716 for invalidated FRAME.
4717
4718 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4719 Pedro Alves <palves@redhat.com>
4720
4721 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4722 loop.
4723
4724 2012-07-16 Tom Tromey <tromey@redhat.com>
4725
4726 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4727
4728 2012-07-15 Doug Evans <dje@google.com>
4729
4730 * dwarf2read.c (stmt_list_hash): New struct.
4731 (type_unit_group): Embed "per_cu" member, remove pointer.
4732 New union member "t", move member "tus" into it, all uses updated.
4733 New member "hash", replaces member "line_offset, all uses updated.
4734 (quick_file_names): Replace member "offset" with "hash", all uses
4735 updated.
4736 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4737 (hash_file_name_entry, eq_file_name_entry): Call them.
4738 (hash_type_unit_group, eq_type_unit_group): Ditto.
4739 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4740 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4741 (dw2_get_file_names): Update.
4742 (create_type_unit_group): Replace "per_cu" arg with "cu".
4743 All callers updated. Fix "quick" (.gdb_index) handling.
4744 (get_type_unit_group): Replace "per_cu" arg with "cu".
4745 All callers updated.
4746 (build_type_unit_groups): Don't reset tu_stats.
4747
4748 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4749 "tab_cur_size". Change member "tab" to be a htab_t.
4750 (create_filename_seen_cache): Update.
4751 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4752 (filename_seen): Update.
4753
4754 2012-07-13 Doug Evans <dje@google.com>
4755
4756 * symtab.c (filename_seen): Update comment.
4757
4758 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4759 Doug Evans <dje@google.com>
4760
4761 * buildsym.c (end_symtab_1): Split it to ...
4762 (end_symtab_get_static_block): ... this ...
4763 (end_symtab_from_static_block): ... and this function.
4764 (end_symtab, end_expandable_symtab): Call them.
4765 * buildsym.h (end_symtab_get_static_block)
4766 (end_symtab_from_static_block): New declarations.
4767 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4768 Set its valid CU ranges.
4769
4770 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4771
4772 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4773 DW_OP_GNU_parameter_ref.
4774
4775 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4776
4777 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4778 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4779
4780 2012-07-13 Doug Evans <dje@google.com>
4781
4782 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4783 (filename_seen_cache): New struct.
4784 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4785 (create_filename_seen_cache): New function.
4786 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4787 (filename_seen): Delete arg "first". New arg "cache". All callers
4788 updated.
4789 (output_source_filename_data): New struct.
4790 (output_source_filename): Delete arg "first". New arg "data".
4791 All callers updated.
4792 (sources_info): Delete local "first". New locals "data", "cleanups".
4793 Rewrite to use filename_seen_cache.
4794 (add_partial_filename_data): Delete member "first". New member
4795 "filename_seen_cache". All uses updated.
4796 (make_source_files_completion_list): Rewrite to use
4797 filename_seen_cache.
4798
4799 2012-07-12 Doug Evans <dje@google.com>
4800
4801 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4802
4803 2012-07-10 Doug Evans <dje@google.com>
4804
4805 PR gdb/13498
4806 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4807 all_type_unit_groups, type_unit_groups, tu_stats.
4808 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4809 All uses updated. Add type_unit_group to union "s".
4810 (type_unit_group): New struct.
4811 (IS_TYPE_UNIT_GROUP): New macro.
4812 (abbrev_table): Delete unused member "section".
4813 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4814 (dw2_get_cu): Assert not used with type_unit_group.
4815 (dw2_get_primary_cu): New function.
4816 (dw2_build_type_unit_groups_reader): New function.
4817 (dw2_build_type_unit_groups): New function.
4818 (dw2_get_file_names): Assert not called on type units.
4819 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4820 Redo loop to iterate over type unit groups instead of type units.
4821 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4822 (read_abbrev_offset): New function.
4823 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4824 updated.
4825 (create_partial_symtab): New function.
4826 (process_psymtab_comp_unit_reader): Assert not used with type units.
4827 Call create_partial_symtab.
4828 (process_psymtab_type_unit): Delete.
4829 (hash_type_unit_group, eq_type_unit_group): New functions.
4830 (allocate_type_unit_groups_table): New function.
4831 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4832 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4833 (create_type_unit_group, get_type_unit_group): New functions.
4834 (tu_abbrev_offset): New struct.
4835 (sort_tu_by_abbrev_offset): New function.
4836 (add_type_unit_group_to_table): New function.
4837 (build_type_unit_groups): New function.
4838 (build_type_psymtabs_reader): New function.
4839 (build_type_psymtab_dependencies): New function.
4840 (build_type_psymtabs): Rewrite.
4841 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4842 is seen in a type unit.
4843 (process_queue): Move symtab expansion debugging printfs here.
4844 Call process_full_type_unit for type units.
4845 (compute_symtab_includes): Assert not called for type units.
4846 (process_cu_includes): Don't call compute_symtab_includes for
4847 type units.
4848 (process_full_type_unit): New function.
4849 (process_imported_unit_die): Flag an error if called for type units.
4850 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4851 updated. Assert not called for type units.
4852 (read_file_scope): Call dwarf2_start_symtab.
4853 (setup_type_unit_groups): New function.
4854 (read_type_unit_scope): Rewrite.
4855 (abbrev_table_read_table): Initialize abbrev_table->offset.
4856 (abbrev_table_free_cleanup): New function.
4857 (dwarf2_start_symtab): New function.
4858 (load_full_type_unit): Assert not called for type unit groups.
4859 * buildsym.c (finish_block_internal): New arg "expandable".
4860 All callers updated.
4861 (start_symtab): Move most contents to ...
4862 (restart_symtab): ... here. New function.
4863 (reset_symtab_globals): New function.
4864 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4865 Call reset_symtab_globals.
4866 (end_symtab, end_expandable_symtab): New functions.
4867 (set_missing_symtab, augment_type_symtab): New functions.
4868 * buildsym.h (end_expandable_symtab): Declare.
4869 (augment_type_symtab, restart_symtab): Declare.
4870 * psympriv.h (struct partial_symtab): New member "anonymous".
4871 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4872 anonymous psymtabs.
4873 (read_psymtabs_with_filename): Ditto.
4874 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4875 (expand_symtabs_matching_via_partial): Ditto.
4876 (dump_psymtab): Update.
4877 * dictionary.c (dict_add_pending): New function.
4878 * dictionary.h (dict_add_pending): Declare.
4879
4880 2012-07-09 Doug Evans <dje@google.com>
4881
4882 * buildsym.c (start_subfile): Remove unnecessary check for
4883 name == NULL.
4884
4885 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4886
4887 * dwarf2read.c (load_full_type_unit): Simplify.
4888
4889 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4890 to struct signatured_type **. All uses updated.
4891
4892 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4893 All callers updated.
4894
4895 2012-07-09 Tom Tromey <tromey@redhat.com>
4896
4897 * c-exp.y (check_parameter_typelist): New function.
4898 (parameter_typelist): Call it.
4899 * eval.c (make_params): Handle '(void)' case.
4900 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4901 '(void)' case.
4902
4903 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4904
4905 * common/linux-ptrace.c: Include gdb_assert.h.
4906 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4907 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4908 stdint.h.
4909 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4910 functions.
4911 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4912 * linux-nat.c (linux_child_post_attach)
4913 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4914
4915 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4916
4917 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4918 nptl <2.7 bug workaround for core files.
4919
4920 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4921
4922 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4923 clearing.
4924 (save_siginfo): Remove.
4925 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4926 call.
4927 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4928 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4929 * linux-nat.h (struct lwp_info): Remove field siginfo.
4930
4931 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4932
4933 Code cleanup for the next patch.
4934 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4935 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4936 call for it.
4937 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4938 (ia64_linux_stopped_data_address):
4939 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4940 the return value.
4941 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4942 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4943 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4944 call for it.
4945
4946 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4947
4948 PR 14321
4949 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4950 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4951
4952 2012-07-06 Tom Tromey <tromey@redhat.com>
4953
4954 * c-exp.y (DOTDOTDOT): New token.
4955 (func_mod, exp): Use parameter_typelist.
4956 (parameter_typelist): New production.
4957 (tokentab3): Add "..." token.
4958 * eval.c (make_params): Handle varargs.
4959 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4960 varargs.
4961
4962 2012-07-06 Tom Tromey <tromey@redhat.com>
4963
4964 PR exp/9608:
4965 * c-exp.y (%union) <tvec>: Change type.
4966 (func_mod): Now uses <tvec> type.
4967 (exp): Update for tvec change.
4968 (direct_abs_decl): Push the typelist.
4969 (func_mod): Return a typelist.
4970 (nonempty_typelist): Update for tvec change.
4971 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4972 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4973 * parse.c (pop_type_list): New function.
4974 (push_typelist): New function.
4975 (follow_types): Handle tp_function_with_arguments.
4976 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4977 (enum type_pieces) <tp_function_with_arguments>: New constant.
4978 (union type_stack_elt) <typelist_val>: New field.
4979 (push_typelist): Declare.
4980
4981 2012-07-06 Tom Tromey <tromey@redhat.com>
4982
4983 * c-exp.y (%union) <type_stack>: New field.
4984 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4985 (ptr_operator_ts): New production.
4986 (ptype): Update.
4987 * parse.c (type_stack_reserve): New function.
4988 (check_type_stack_depth): Use it.
4989 (pop_type_stack, append_type_stack, push_type_stack)
4990 (get_type_stack, type_stack_cleanup): New functions.
4991 (follow_types): Handle tp_type_stack.
4992 (_initialize_parse): Simplify initialization.
4993 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4994 constant.
4995 (union type_stack_elt) <stack_val>: New field.
4996 (get_type_stack, append_type_stack, push_type_stack)
4997 (type_stack_cleanup): Declare.
4998
4999 2012-07-06 Tom Tromey <tromey@redhat.com>
5000
5001 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5002 Remove.
5003 (struct type_stack): New.
5004 * parse.c (type_stack, type_stack_size, type_stack_depth):
5005 Remove.
5006 (type_stack): New global.
5007 (parse_exp_in_context, check_type_stack_depth)
5008 (insert_into_type_stack, insert_type, push_type, push_type_int)
5009 (insert_type_address_space, pop_type, pop_type_int)
5010 (_initialize_parse): Update.
5011
5012 2012-07-06 Tom Tromey <tromey@redhat.com>
5013
5014 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5015 Remove %type.
5016
5017 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5018
5019 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5020
5021 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5022 Jan Kratochvil <jan.kratochvil@redhat.com>
5023
5024 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5025 alloca with xmalloc/xfree.
5026
5027 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5028
5029 * MAINTAINERS (Write After Approval): Add myself to the list.
5030
5031 2012-07-05 Doug Evans <dje@google.com>
5032
5033 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5034
5035 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5036
5037 * ax-gdb.c (cli/cli-utils.h): New include.
5038 (linespec.h): Ditto.
5039 (agent_eval_command_one): New function.
5040 (agent_command_1): Ditto.
5041 (agent_command): Call function agent_command_1.
5042 (agent_eval_command): Ditto.
5043 (_initialize_ax_gdb): Change help for "maint agent"
5044 and "maint agent-eval".
5045
5046 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5047
5048 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5049 * cli/cli-utils.c (check_for_argument): New function.
5050 * cli/cli-utils.h (check_for_argument): Ditto.
5051
5052 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5053
5054 * NEWS: Mention x32 ABI support.
5055
5056 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5057
5058 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5059 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5060
5061 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5062 and pc_regnum_from_eax to -1. Update SP regnum from
5063 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5064 needed.
5065
5066 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5067 pc_regnum_from_eax.
5068
5069 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5070
5071 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5072 * dwarf2expr.h: Include gdbtypes.h.
5073 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5074 these forward declarations.
5075 (cu_offset, sect_offset): Move these ...
5076 * gdbtypes.h: Remove include dwarf2expr.h.
5077 (cu_offset, sect_offset): ... here.
5078
5079 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5080
5081 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5082 (amd64_linux_sigtramp_code): This.
5083 (amd64_x32_linux_sigtramp_code): New.
5084 (LINUX_SIGTRAMP_LEN): Updated.
5085 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5086
5087 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5088
5089 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5090
5091 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5092
5093 * config.in: Regenerate.
5094 * configure: Regenerate.
5095 * configure.ac: Remove check for gnu/libc-version.h.
5096 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5097 gnu/libc-version.h.
5098 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5099 variables libc_version, libc_major and libc_minor. Replace sscanf by
5100 inferior_has_bug. Extend the comment.
5101
5102 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5103
5104 * linux-thread-db.c (inferior_has_bug): New function.
5105 (thread_db_find_new_threads_silently): Return boolean as checked by
5106 inferior_has_bug, describe it in the comments.
5107 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5108 earlier. Abort the initialization if it returned non-zero.
5109 (thread_db_new_objfile): Exclude debug files.
5110 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5111 if UNTIL_NO_NEW,
5112
5113 2012-07-02 Doug Evans <dje@google.com>
5114
5115 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5116 related to queue management.
5117
5118 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5119 instead of "debug dwarf2-die" in debugging printfs.
5120 (create_debug_info_hash_table_reader): Ditto.
5121 (create_debug_info_hash_table): Ditto.
5122 (init_dwo_file): Ditto.
5123 (init_cutu_and_read_dies): Add debugging printf.
5124 (init_cutu_and_read_dies_no_follow): Ditto.
5125 (process_psymtab_comp_unit_reader): Ditto.
5126
5127 2012-07-02 Stan Shebs <stan@codesourcery.com>
5128
5129 Add target-side support for dynamic printf.
5130 * NEWS: Mention the additional style.
5131 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5132 (struct bp_location): New field cmd_bytecode.
5133 * breakpoint.c: Include format.h.
5134 (disconnected_dprintf): New global.
5135 (parse_cmd_to_aexpr): New function.
5136 (build_target_command_list): New function.
5137 (insert_bp_location): Call it.
5138 (remove_breakpoints_pid): Skip dprintf breakpoints.
5139 (print_one_breakpoint_location): Ditto.
5140 (dprintf_style_agent): New global.
5141 (dprintf_style_enums): Add dprintf_style_agent.
5142 (update_dprintf_command_list): Add agent case.
5143 (agent_printf_command): New function.
5144 (_initialize_breakpoint): Add new commands.
5145 * common/ax.def (printf): New bytecode.
5146 * ax.h (ax_string): Declare.
5147 * ax-gdb.h (gen_printf): Declare.
5148 * ax-gdb.c: Include cli-utils.h, format.h.
5149 (gen_printf): New function.
5150 (maint_agent_print_command): New function.
5151 (_initialize_ax_gdb): Add maint agent-printf command.
5152 * ax-general.c (ax_string): New function.
5153 (ax_print): Add printf disassembly.
5154 * Makefile.in (SFILES): Add format.c
5155 (COMMON_OBS): Add format.o.
5156 * common/format.h: New file.
5157 * common/format.c: New file.
5158 * printcmd.c: Include format.h.
5159 (ui_printf): Call parse_format_string.
5160 * remote.c (remote_state): New field breakpoint_commands.
5161 (PACKET_BreakpointCommands): New enum.
5162 (remote_breakpoint_commands_feature): New function.
5163 (remote_protocol_features): Add new BreakpointCommands entry.
5164 (remote_can_run_breakpoint_commands): New function.
5165 (remote_add_target_side_commands): New function.
5166 (remote_insert_breakpoint): Call it.
5167 (remote_insert_hw_breakpoint): Ditto.
5168 (_initialize_remote): Add new packet configuration for
5169 target-side breakpoint commands.
5170 * target.h (struct target_ops): New field
5171 to_can_run_breakpoint_commands.
5172 (target_can_run_breakpoint_commands): New macro.
5173 * target.c (update_current_target): Handle
5174 to_can_run_breakpoint_commands.
5175
5176 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5177
5178 Execute -ix and -iex only after system and user gdbinit files.
5179 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5180 processing down after gdbinit files.
5181
5182 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5183
5184 Add fnmatch-gnu module.
5185 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5186 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5187 * gnulib/aclocal.m4: Regenerate.
5188 * gnulib/config.in: Regenerate.
5189 * gnulib/configure: Regenerate.
5190 * gnulib/import/dummy.c: Remove.
5191 * gnulib/import/Makefile.am: Regenerate.
5192 * gnulib/import/Makefile.in: Likewise.
5193 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5194 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5195 * gnulib/import/alloca.c: New file.
5196 * gnulib/import/alloca.in.h: Likewise.
5197 * gnulib/import/config.charset: Likewise.
5198 * gnulib/import/fnmatch.c: Likewise.
5199 * gnulib/import/fnmatch.in.h: Likewise.
5200 * gnulib/import/fnmatch_loop.c: Likewise.
5201 * gnulib/import/localcharset.c: Likewise.
5202 * gnulib/import/localcharset.h: Likewise.
5203 * gnulib/import/m4/alloca.m4: Likewise.
5204 * gnulib/import/m4/codeset.m4: Likewise.
5205 * gnulib/import/m4/configmake.m4: Likewise.
5206 * gnulib/import/m4/fcntl-o.m4: Likewise.
5207 * gnulib/import/m4/fnmatch.m4: Likewise.
5208 * gnulib/import/m4/glibc21.m4: Likewise.
5209 * gnulib/import/m4/localcharset.m4: Likewise.
5210 * gnulib/import/m4/locale-fr.m4: Likewise.
5211 * gnulib/import/m4/locale-ja.m4: Likewise.
5212 * gnulib/import/m4/locale-zh.m4: Likewise.
5213 * gnulib/import/m4/mbrtowc.m4: Likewise.
5214 * gnulib/import/m4/mbsinit.m4: Likewise.
5215 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5216 * gnulib/import/m4/mbstate_t.m4: Likewise.
5217 * gnulib/import/m4/stdbool.m4: Likewise.
5218 * gnulib/import/m4/wchar_h.m4: Likewise.
5219 * gnulib/import/m4/wctype_h.m4: Likewise.
5220 * gnulib/import/m4/wint_t.m4: Likewise.
5221 * gnulib/import/mbrtowc.c: Likewise.
5222 * gnulib/import/mbsinit.c: Likewise.
5223 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5224 * gnulib/import/mbsrtowcs-state.c: Likewise.
5225 * gnulib/import/mbsrtowcs.c: Likewise.
5226 * gnulib/import/ref-add.sin: Likewise.
5227 * gnulib/import/ref-del.sin: Likewise.
5228 * gnulib/import/stdbool.in.h: Likewise.
5229 * gnulib/import/streq.h: Likewise.
5230 * gnulib/import/strnlen1.c: Likewise.
5231 * gnulib/import/strnlen1.h: Likewise.
5232 * gnulib/import/verify.h: Likewise.
5233 * gnulib/import/wchar.in.h: Likewise.
5234 * gnulib/import/wctype.in.h: Likewise.
5235
5236 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5237
5238 Support shell wildcards for 'set auto-load safe-path'.
5239 * auto-load.c: Include fnmatch.h.
5240 (filename_is_in_dir): Rename to ...
5241 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5242 it. Update function comment. Rename dir_len to pattern_len. New
5243 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5244 messages. Use gdb_filename_fnmatch.
5245 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5246 pattern.
5247 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5248 * defs.h (gdb_filename_fnmatch): New declaration.
5249 * utils.c: Include fnmatch.h.
5250 (gdb_filename_fnmatch): New function.
5251
5252 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5253
5254 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5255 `-probe' and `-probe-stap' options.
5256
5257 2012-07-01 Yao Qi <yao@codesourcery.com>
5258
5259 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5260 always_inserted_off, and always_inserted_enums.
5261 Change always_inserted_mode's type to 'enum auto_boolean'.
5262 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5263 callers.
5264 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5265 of add_setshow_enum_cmd.
5266 * infrun.c: Remove can_use_displaced_stepping_auto,
5267 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5268 can_use_displaced_stepping_enum.
5269 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5270 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5271 callers.
5272 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5273 add_setshow_enum_cmd.
5274
5275 2012-06-30 Doug Evans <dje@google.com>
5276
5277 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5278 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5279 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5280
5281 2012-06-29 Doug Evans <dje@google.com>
5282
5283 * linespec.c: #include "stack.h".
5284 (decode_line_with_current_source): Moved here from symtab.c and
5285 renamed from decode_line_spec. All callers updated.
5286 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5287 renamed from decode_line_spec_1. All callers updated.
5288 * linespec.h (decode_line_with_current_source): Move declaration here
5289 from symtab.h and renamed from decode_line_spec.
5290 (decode_line_with_last_displayed): Move declaration here from symtab.h
5291 and renamed from decode_line_spec_1.
5292 * macrocmd.c: #include "linespec.h".
5293 * symtab.c: Remove #include "linespec.h".
5294
5295 2012-06-28 Doug Evans <dje@google.com>
5296
5297 * dwarf2read.c (get_cu_length): New function.
5298 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5299 (create_debug_types_hash_table): Ditto.
5300 (init_cutu_and_read_dies): Ditto.
5301 (init_cutu_and_read_dies_no_follow): Ditto.
5302
5303 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5304
5305 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5306 (struct abbrev_table): Define.
5307 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5308 abbrev_table.
5309 (init_cutu_and_read_dies): Update.
5310 (abbrev_table_alloc_abbrev): New function. Replaces
5311 dwarf_alloc_abbrev. All callers updated.
5312 (abbrev_table_add_abbrev): New function.
5313 (abbrev_table_lookup_abbrev): New function. Replaces
5314 dwarf2_lookup_abbrev. All callers updated.
5315 (abbrev_table_read_table): New function. Contents moved here from
5316 dwarf2_read_abbrevs.
5317 (dwarf2_read_abbrevs): Call it.
5318 (abbrev_table_free): New function.
5319 (dwarf2_free_abbrev_table): Call it.
5320
5321 2012-06-28 Stan Shebs <stan@codesourcery.com>
5322
5323 * osdata.c (info_osdata_command): Filter out "Title" columns
5324 from non-MI uses.
5325 * common/linux-osdata.c (struct osdata_type): Add title field.
5326 (osdata_table): Add titles to each entry.
5327 (linux_command_xfer_osdata): Add a column for title data.
5328
5329 2012-06-28 Stan Shebs <stan@codesourcery.com>
5330
5331 Make logging work for MI.
5332 * NEWS: Mention it.
5333 * interps.h (interp_set_logging_ftype): New typedef.
5334 (struct interp_procs): New field set_logging_proc.
5335 (current_interp_set_logging): Declare.
5336 * interps.c (current_interp_set_logging): New function.
5337 * cli/cli-logging.c: Include interps.h.
5338 (set_logging_redirect): Call current_interp_set_logging.
5339 (pop_output_files): Ditto.
5340 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5341 * mi/mi-console.h (mi_console_set_raw): Declare.
5342 * mi/mi-console.c (mi_console_set_raw): New function.
5343 * mi/mi-interp.c (saved_raw_stdout): New global.
5344 (mi_set_logging): New function.
5345 (_initialize_mi_interp): Add it to interp procs.
5346
5347 2012-06-28 Doug Evans <dje@google.com>
5348
5349 * symtab.c (lookup_symbol_aux_objfile): Use
5350 ALL_OBJFILE_PRIMARY_SYMTABS.
5351
5352 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5353
5354 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5355
5356 * common/buffer.c: Include inttypes.h and stdint.h.
5357 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5358
5359 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5360 Pedro Alves <palves@redhat.com>
5361
5362 * gdbthread.h (ALL_THREADS): New macro.
5363 (thread_list): Declare.
5364 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5365 going, but instead fall through to the stepping handling.
5366 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5367 the passed in signal. Adjust debug output.
5368 (resume_callback): Rename to ...
5369 (linux_nat_resume_callback): ... this. Pass the thread's last
5370 stop signal, if in "pass" state.
5371 (linux_nat_resume): Adjust to rename.
5372 (stop_wait_callback): New assertion. Don't respawn signals;
5373 instead let the LWP remain with SIGNALLED set.
5374 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5375 * remote.c (append_pending_thread_resumptions): New.
5376 (remote_vcont_resume): Call it.
5377 * target.h (target_resume): Extend comment.
5378
5379 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5380
5381 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5382
5383 2012-06-27 Doug Evans <dje@google.com>
5384
5385 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5386 Delete have_addr_base, unused. All uses updated.
5387 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5388 (dwarf2_get_pc_bounds): Add ranges_base.
5389 (dwarf2_record_block_ranges): Ditto.
5390
5391 2012-06-27 Tom Tromey <tromey@redhat.com>
5392
5393 PR macros/7961:
5394 * varobj.c (varobj_create): Update.
5395 (varobj_set_value): Update.
5396 * tracepoint.c (validate_actionline): Update.
5397 (encode_actions_1): Update.
5398 * parse.c (parse_exp_1): Add 'pc' argument.
5399 (parse_exp_in_context): Add 'pc' argument. Change how
5400 expression_context_pc is set.
5401 (parse_expression): Update.
5402 (parse_field_expression): Update.
5403 * expression.h (parse_exp_1): Update.
5404 * eval.c (parse_to_comma_and_eval): Update.
5405 * breakpoint.c (set_breakpoint_condition): Update.
5406 (update_watchpoint): Update.
5407 (init_breakpoint_sal): Update
5408 (find_condition_and_thread): Update.
5409 (watch_command_1): Update.
5410 (update_breakpoint_locations): Update.
5411 * ada-lang.c (ada_read_renaming_var_value): Update.
5412 (create_excep_cond_exprs): Update.
5413
5414 2012-06-27 Doug Evans <dje@google.com>
5415
5416 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5417 type units.
5418
5419 2012-06-26 Doug Evans <dje@google.com>
5420
5421 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5422 prototype.
5423 (error_check_comp_unit_head): New arg abbrev_section. All callers
5424 updated.
5425 (read_and_check_comp_unit_head): Ditto.
5426 (read_and_check_type_unit_head): Ditto.
5427
5428 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5429
5430 New attribute 'last' for gdb.Symtab_and_line.
5431 * NEWS (Python Scripting): Add entry about the new attribute.
5432 * python/py-symtab.c (salpy_get_last): New function which
5433 implements the get method for the 'last' attribute of
5434 gdb.Symtab_and_line.
5435 (sal_object_getset): Add entry for the 'last' attribute.
5436
5437 2012-06-26 Doug Evans <dje@google.com>
5438
5439 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5440 (dwo_sections): Add macinfo, macro.
5441 (dwarf2_locate_dwo_sections): Watch for macro sections.
5442 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5443 All callers updated. Handle DWO files.
5444
5445 * NEWS: Mention new options "set debug dwarf2-read" and
5446 "set debug symtab-create".
5447 * dwarf2read.c (dwarf2_read_debug): New static global.
5448 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5449 (process_queue): Ditto.
5450 (process_full_comp_unit): Ditto.
5451 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5452 * elfread.c (elf_symfile_read): Add debugging printf.
5453 * minsyms.c (install_minimal_symbols): Ditto.
5454 * psymtab.c (allocate_psymtab): Ditto.
5455 * symfile.c (allocate_symtab): Ditto.
5456 * symtab.c (symtab_create_debug): New global.
5457 (_initialize_symtab): Add new option "set debug symtab-create".
5458 * symtab.h (symtab_create_debug): Declare.
5459
5460 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5461 (lookup_dwo_type_unit): Ditto.
5462
5463 2012-06-26 Roland McGrath <roland@hack.frob.com>
5464 H.J. Lu <hongjiu.lu@intel.com>
5465
5466 * amd64-linux-nat.c: Include <sys/user.h>.
5467 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5468 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5469 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5470
5471 * configure.ac: Check if the fs_base and gs_base members of
5472 `struct user_regs_struct' exist.
5473 * config.in: Regenerated.
5474 * configure: Likewise.
5475
5476 2012-06-25 Michael Eager <eager@eagercon.com>
5477
5478 PR python/14291
5479 * python/python.c (gdbpy_write): Check for interrupted output.
5480
5481 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5482
5483 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5484 register as a stack alignment in ARM mode.
5485
5486 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5487
5488 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5489 * gnulib/config.in: Regenerate.
5490 * gnulib/configure: Likewise.
5491 * gnulib/import/m4/extensions.m4: Update it.
5492 * gnulib/import/m4/gnulib-common.m4: Likewise.
5493 * gnulib/import/m4/memmem.m4: Likewise.
5494 * gnulib/import/m4/mmap-anon.m4: Likewise.
5495 * gnulib/import/m4/multiarch.m4: Likewise.
5496 * gnulib/import/stdint.in.h: Likewise.
5497
5498 2012-06-24 Yao Qi <yao@codesourcery.com>
5499
5500 * corefile.c (write_memory_with_notification): New.
5501 * gdbcore.h: Declare write_memory_with_notification.
5502 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5503 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5504 * valops.c (value_assign): Likewise.
5505 * python/py-inferior.c (infpy_write_memory): Call
5506 'write_memory_with_notification'.
5507
5508 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5509
5510 * cc-with-index.sh: Use also -ex "set auto-load no".
5511
5512 2012-06-23 Doug Evans <dje@google.com>
5513
5514 PR 14125
5515 * NEWS: Document additions to .gdb_index.
5516 * dwarf2read.c: #include "gdb/gdb-index.h".
5517 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5518 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5519 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5520 (dwarf2_read_index): Recognize version 7.
5521 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5522 block_kind, domain): All callers updated.
5523 (dw2_find_symbol_file): Handle new index CU values.
5524 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5525 (add_index_entry): New args is_static, kind. All callers updated.
5526 (offset_type_compare, uniquify_cu_indices): New functions
5527 (symbol_kind): New function.
5528 (write_psymtabs_to_index): Remove duplicate CU values.
5529 (write_psymtabs_to_index): Write .gdb_index version 7.
5530
5531 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5532
5533 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5534 * configure: Regenerate.
5535
5536 2012-06-20 Yao Qi <yao@codesourcery.com>
5537
5538 * python/py-inferior.c: Update comments of infpy_read_memory
5539 and infpy_write_memory.
5540
5541 2012-06-19 Tom Tromey <tromey@redhat.com>
5542
5543 PR exp/9514:
5544 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5545 (push_type_address_space): Remove.
5546 * parse.c (insert_into_type_stack): New function.
5547 (insert_type): Likewise.
5548 (insert_type_address_space): Rename from push_type_address_space.
5549 Insert tp_space_identifier.
5550 * c-exp.y (ptr_operator): New production.
5551 (abs_decl): Use ptr_operator.
5552 (space_identifier): Call insert_type_address_space.
5553 (ptype): Don't use const_or_volatile_or_space_identifier.
5554 (const_or_volatile_noopt): Call insert_type.
5555 (conversion_type_id, conversion_declarator): New productions.
5556 (operator): Use conversion_type_id.
5557
5558 2012-06-18 Doug Evans <dje@google.com>
5559
5560 * symtab.h (minimal_symbol): New member created_by_gdb.
5561 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5562 created by gdb.
5563 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5564 (search_symbols): Call it instead of lookup_symbol.
5565 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5566
5567 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5568 Adjust address for DW_OP_GNU_addr_index.
5569 * dwarf2expr.h (dwarf_expr_context): Update comment.
5570 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5571 all callers updated. Handle TLS vars described with
5572 DW_OP_GNU_const_index.
5573 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5574 and DW_OP_GNU_const_index.
5575 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5576
5577 * block.c (find_block_in_blockvector): Make explicit the fact that we
5578 ignore GLOBAL_BLOCK.
5579
5580 2012-06-18 Tom Tromey <tromey@redhat.com>
5581
5582 * c-exp.y (operator): Remove trailing space after "delete" and
5583 "delete[]".
5584
5585 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5586 Jan Kratochvil <jan.kratochvil@redhat.com>
5587
5588 Switch i386 and derived targets to ON_STACK.
5589 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5590 (amd64_dicos_init_abi): Remove its installment.
5591 * dicos-tdep.c (dicos_init_abi): Remove the
5592 set_gdbarch_call_dummy_location call. Update the comment here.
5593 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5594 (i386_dicos_init_abi): Remove its installment.
5595 * i386-tdep.c (i386_push_dummy_code): New function.
5596 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5597 i386_push_dummy_code.
5598
5599 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5600
5601 Remove stale dummy frames.
5602 * breakpoint.c: Include dummy-frame.h.
5603 (longjmp_breakpoint_ops): New variable.
5604 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5605 bp_longjmp_call_dummy.
5606 (bpstat_what, bptype_string, print_one_breakpoint_location)
5607 (init_bp_location): Support bp_longjmp_call_dummy.
5608 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5609 (set_longjmp_breakpoint_for_call_dummy)
5610 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5611 functions.
5612 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5613 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5614 FIXME comment and extend the other comment for bp_call_dummy.
5615 (set_longjmp_breakpoint_for_call_dummy)
5616 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5617 * dummy-frame.c: Include gdbthread.h.
5618 (pop_dummy_frame_bpt): New function.
5619 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5620 (dummy_frame_discard): New function.
5621 (cleanup_dummy_frames): Update the comment about longjmps.
5622 * dummy-frame.h (dummy_frame_discard): New declaration.
5623 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5624 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5625 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5626 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5627 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5628 keep_going if IS_LONGJMP and there is no other reason to stop.
5629
5630 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5631
5632 * remote-sim.c (sim_command_completer): Initialize
5633 variable 'result'.
5634
5635 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5636
5637 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5638 * dwarf2loc.c (call_site_parameter_matches): Support
5639 CALL_SITE_PARAMETER_PARAM_OFFSET.
5640 (needs_dwarf_reg_entry_value): Push stub value.
5641 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5642 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5643 * gdbtypes.h (enum call_site_parameter_kind): New item
5644 CALL_SITE_PARAMETER_PARAM_OFFSET.
5645 (struct call_site.parameter.u): New field param_offset.
5646
5647 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5648
5649 Code cleanup: Generalize call_site.parameter key.
5650 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5651 variable dwarf_reg. New variable kind_u. Update parameters to
5652 push_dwarf_reg_entry_value.
5653 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5654 * dwarf2expr.h (enum call_site_parameter_kind)
5655 (union call_site_parameter_u): Forward declarations.
5656 (struct dwarf_expr_context_funcs): Update parameters and their
5657 description for push_dwarf_reg_entry_value.
5658 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5659 * dwarf2loc.c (call_site_parameter_matches): New function.
5660 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5661 description. Use call_site_parameter_matches.
5662 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5663 Update parameters and their description.
5664 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5665 New variable kind_u. Adjust the caller for updated parameters.
5666 (needs_dwarf_reg_entry_value): Update parameters.
5667 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5668 instead of attr. Update for the changed fields of struct
5669 call_site_parameter.
5670 * gdbtypes.h: Include dwarf2expr.h.
5671 (enum call_site_parameter_kind): New.
5672 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5673 fb_offset into new union u.
5674
5675 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5676
5677 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5678 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5679 for x32.
5680
5681 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5682
5683 * amd64-linux-nat.c (compat_x32_clock_t): New.
5684 (compat_x32_siginfo_t): Likewise.
5685 (compat_x32_siginfo_from_siginfo): Likewise.
5686 (siginfo_from_compat_x32_siginfo): Likewise.
5687 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5688 and siginfo_from_compat_x32_siginfo for x32.
5689
5690 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5691
5692 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5693
5694 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5695
5696 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5697 instead of gdbarch_ptr_bit.
5698 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5699 (amd64_supply_native_gregset): Likewise.
5700 (amd64_collect_native_gregset): Likewise.
5701 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5702 (amd64_supply_xsave): Likewise.
5703 (amd64_collect_fxsave): Likewise.
5704 (amd64_collect_xsave): Likewise.
5705
5706 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5707
5708 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5709 (amd64_linux_read_description): Check DS segment register for
5710 x32 process.
5711
5712 2012-06-15 Tom Tromey <tromey@redhat.com>
5713
5714 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5715 init_cutu_and_read_dies.
5716
5717 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5718
5719 * MAINTAINERS (Write After Approval): Add myself to the list.
5720
5721 2012-06-15 Tom Tromey <tromey@redhat.com>
5722
5723 * valops.c (value_find_oload_method_list): Now static.
5724 * value.h (value_find_oload_method_list): Don't declare.
5725
5726 2012-06-15 Tom Tromey <tromey@redhat.com>
5727
5728 * valops.c (find_overload_match): Use value_ind.
5729
5730 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5731
5732 * infrun.c (handle_inferior_event): Correct indentation.
5733
5734 2012-06-14 Doug Evans <dje@google.com>
5735
5736 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5737 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5738 All uses updated.
5739 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5740 updated. Handle DEBUG_LOC_START_LENGTH.
5741 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5742 (loclist_describe_location): Ditto.
5743
5744 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5745
5746 PR backtrace/13866
5747 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5748 after hiding inline functions.
5749
5750 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5751
5752 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5753 _initialize_inf_ttrace.
5754
5755 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5756
5757 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5758 _initialize_hppa_hpux_nat.
5759
5760 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5761
5762 * remote-sim.c (sim_command_completer): Change type of return
5763 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5764
5765 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5766 Jan Kratochvil <jan.kratochvil@redhat.com>
5767
5768 PR tdep/14222
5769 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5770 stack on a 16-byte boundary.
5771
5772 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5773
5774 * jit.c (finalize_symtab): Set function's return type to 'void' by
5775 default.
5776
5777 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5778 H.J. Lu <hongjiu.lu@intel.com>
5779
5780 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5781 Move bits common to both the classic LP64 and the new x32 ILP32
5782 ABI here.
5783 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5784 (amd64_x32_linux_init_abi): New function.
5785 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5786 subtype.
5787
5788 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5789 * i386-tdep.c (i386_pseudo_register_name): Make public.
5790 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5791 * amd64-tdep.c (amd64_dword_names): Add "eip".
5792 (amd64_x32_pseudo_register_type): New function
5793 (amd64_x32_init_abi): New function.
5794
5795 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5796
5797 PR build/14003
5798 * inferior.h (struct inferior_suspend_state): Comment out.
5799 (struct inferior): Comment out the field suspend.
5800 * infrun.c (struct infcall_suspend_state): Comment out the field
5801 inferior_suspend.
5802 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5803 out its assignment.
5804
5805 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5806
5807 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5808 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5809 function comment. Return ERROR for unresolved cases. Implement
5810 returning proper NAME.
5811 (yylex): Accept also NAME from classify_inner_name.
5812 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5813 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5814 LOC_TYPEDEF type.
5815 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5816
5817 2012-06-13 Tom Tromey <tromey@redhat.com>
5818
5819 * breakpoint.c (condition_completer): New function.
5820 (_initialize_breakpoint): Use it.
5821 * value.c (complete_internalvar): New function.
5822 * value.h (complete_internalvar): Declare.
5823
5824 2012-06-13 Tom Tromey <tromey@redhat.com>
5825
5826 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5827 * breakpoint.c (catch_syscall_completer): Return a VEC.
5828 * cli/cli-cmds.c (complete_command): Update.
5829 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5830 (complete_on_enum): Likewise.
5831 * command.h: Include gdb_vecs.h.
5832 (completer_ftype): Change return type.
5833 (complete_on_cmdlist, complete_on_enum): Likewise.
5834 * completer.c (noop_completer, filename_completer)
5835 (location_completer): Return a VEC.
5836 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5837 to a VEC.
5838 (expression_completer, complete_line_internal, complete_line)
5839 (command_completer): Return a VEC.
5840 (gdb_completion_word_break_characters, line_completion_function):
5841 Update.
5842 * completer.h: Include gdb_vecs.h.
5843 (complete_line, noop_completer, filename_completer)
5844 (expression_completer, location_completer, command_completer):
5845 Update.
5846 * f-lang.c (f_word_break_characters): Return a VEC.
5847 * interps.c (interpreter_completer): Return a VEC.
5848 * language.h (struct language_defn)
5849 <la_make_symbol_completion_list>: Return a VEC.
5850 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5851 * symtab.c (free_completion_list): Take a VEC.
5852 (return_val_size, return_val_index): Remove.
5853 (return_val): Now a VEC.
5854 (completion_list_add_name): Update.
5855 (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 Return a VEC.
5859 (add_filename_to_list): Update.
5860 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5861 <list>: Now a VEC.
5862 (maybe_add_partial_symtab_filename): Update.
5863 (make_source_files_completion_list): Return a VEC.
5864 * symtab.h (default_make_symbol_completion_list_break_on)
5865 (default_make_symbol_completion_list, make_symbol_completion_list)
5866 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5867 (make_source_files_completion_list): Update.
5868
5869 2012-06-13 Tom Tromey <tromey@redhat.com>
5870
5871 * breakpoint.c (add_catch_command): Use completer_ftype.
5872 * breakpoint.h: Include command.h.
5873 (add_catch_command): Use completer_ftype.
5874 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5875 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5876 Use completer_ftype.
5877 * command.h (completer_ftype): New typedef.
5878 (set_cmd_completer): Use it.
5879 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5880 completer_ftype.
5881
5882 2012-06-13 Pedro Alves <palves@redhat.com>
5883
5884 Partial revert of previous change.
5885
5886 * serial.c (scb_base): New global.
5887 (serial_for_fd): New.
5888 (serial_open, serial_fdopen_ops): Link new serial in open serials
5889 chain.
5890 (do_serial_close): Unlink serial from the open serials chain.
5891
5892 2012-06-12 Pedro Alves <palves@redhat.com>
5893
5894 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5895 threads here.
5896 (prepare_for_detach): No longer context switch here in non-stop
5897 mode.
5898 (fetch_inferior_event): Ditto.
5899 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5900 to the event thread before removing breakpoints. Switch to the
5901 event thread before inserting breakpoints and resuming.
5902 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5903 event thread before resuming.
5904 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5905 Switch to the event thread before removing breakpoints.
5906
5907 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5908
5909 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5910 special characters correctly for the Windows shells. See
5911 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5912 report.
5913 [!__MINGW32__]: Remove extra double quote character from special
5914 characters.
5915
5916 2012-06-11 Stan Shebs <stan@codesourcery.com>
5917
5918 * ui-out.h: Remove #if 0 declarations.
5919 * ui-out.c: Remove #if 0 functions.
5920
5921 2012-06-11 Pedro Alves <palves@redhat.com>
5922
5923 * ser-base.c (run_async_handler_and_reschedule): New.
5924 (fd_event, push_event): Use it.
5925 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5926 reference count to 1.
5927 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5928 instead of xfree.
5929 (serial_is_open, serial_ref, serial_unref): New.
5930 * serial.h (serial_open): Adjust comment.
5931 (serial_is_open): Declare.
5932 (serial_close): Adjust comment.
5933 (serial_ref, serial_unref) Declare.
5934 (struct serial): New field 'refcnt'.
5935
5936 2012-06-11 Pedro Alves <palves@redhat.com>
5937
5938 Remove #if 0'd "connect" command, and unnecessary associated
5939 refcounting and serial reuse bits.
5940
5941 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5942 * serial.c (last_serial_opened): Delete.
5943 (scb_base): Delete.
5944 (serial_open): Adjust.
5945 (serial_for_fd): Delete.
5946 (serial_fdopen_ops, do_serial_close): Adjust.
5947 (serial_fdopen_ops): Adjust.
5948
5949 2012-06-11 Pedro Alves <palves@redhat.com>
5950
5951 * serial.c (do_serial_close): Remove early return when SCB is
5952 null.
5953
5954 2012-06-11 Tom Tromey <tromey@redhat.com>
5955
5956 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5957
5958 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5959
5960 Fix regression by the "ambiguous linespec" series.
5961 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5962 get_last_displayed_symtab and get_last_displayed_line and depending
5963 on CURSAL.
5964
5965 2012-06-11 Tom Tromey <tromey@redhat.com>
5966
5967 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5968 (dw2_find_symbol_file): Use it.
5969
5970 2012-06-11 Michael Eager <eager@eagercon.com>
5971
5972 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5973 * mips-linux-tdep.h (mips_signals): New
5974
5975 2012-06-11 Tom Tromey <tromey@redhat.com>
5976
5977 * infrun.c (handle_inferior_event)
5978 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5979 breakpoint.
5980 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5981 exception logic in all cases. Update comments.
5982 (insert_longjmp_resume_breakpoint): Set the exception resume
5983 breakpoint.
5984
5985 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5986
5987 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5988
5989 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5990
5991 * valarith.c (binop_types_user_defined_p): Fix a typo.
5992
5993 2012-06-08 Yao Qi <yao@codesourcery.com>
5994 Chung-Lin Tang <cltang@codesourcery.com>
5995
5996 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5997 * arch-utils.h: Declare.
5998 * gdbarch.sh: Add return_in_first_hidden_param_p.
5999 * gdbarch.c, gdbarch.h: Regenerated.
6000 * infcall.c (call_function_by_hand): Call
6001 gdbarch_return_in_first_hidden_param_p instead of
6002 language_pass_by_reference.
6003
6004 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6005 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6006 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6007 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6008 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6009 `cplus_return_struct_by_reference'.
6010 (tic6x_return_value): Handle language cplusplus.
6011 (tic6x_return_in_first_hidden_param_p): New.
6012 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6013
6014 2012-06-07 Doug Evans <dje@google.com>
6015
6016 * dwarf2read.c (dwarf2_cu): Add comment.
6017
6018 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6019
6020 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6021 variable.
6022 (mips_eabi_push_dummy_call): Likewise.
6023 (mips_n32n64_push_dummy_call): Likewise.
6024 (mips_o32_push_dummy_call): Likewise.
6025 (mips_o64_push_dummy_call): Likewise.
6026
6027 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6028
6029 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6030
6031 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6032
6033 * mips-tdep.c (mips_pseudo_register_type): Use
6034 mips_float_register_p.
6035
6036 2012-06-06 Pedro Alves <palves@redhat.com>
6037
6038 * infrun.c (handle_inferior_event): Remove calls to
6039 reinit_frame_cache that follow a context_switch call.
6040
6041 2012-06-06 Pedro Alves <palves@redhat.com>
6042
6043 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6044 context_switch and remove stale comment.
6045
6046 2012-06-06 Pedro Alves <palves@redhat.com>
6047
6048 * infrun.c (struct execution_control_state): Remove
6049 `new_thread_event' field.
6050 (handle_inferior_event): Simplify new threads handling; don't
6051 resume the inferior if we find a new thread.
6052
6053 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6054
6055 * NEWS: Document the deprecation of SH's 'regs' command.
6056 * inferior.h (all_registers_info): Add function declaration.
6057 * sh-tdep.c (sh_show_regs): Remove variable.
6058 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6059 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6060 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6061 (sh_show_regs_command): Remove functions.
6062 (sh_gdbarch_init): Don't set sh_show_regs.
6063 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6064 'info all-registers'.
6065 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6066 (sh64_show_regs): Remove functions.
6067 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6068
6069 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6070
6071 * configure.ac: Move development=true below AC_INIT.
6072 * configure: Regenerate.
6073
6074 2012-06-05 Stan Shebs <stan@codesourcery.com>
6075
6076 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6077 gdb_stdout.
6078
6079 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6080
6081 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6082 argument as ssize_t.
6083 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6084 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6085 * target.c (target_read_stack, target_write_memory)
6086 (target_write_raw_memory): Likewise.
6087 * target.h (target_read_stack, target_write_memory)
6088 (target_write_raw_memory): Likewise.
6089
6090 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6091
6092 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6093 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6094 * target.c (target_read_memory): Change LEN to ssize_t.
6095 * target.h (target_read_memory): Change LEN to ssize_t.
6096
6097 2012-06-05 Pedro Alves <palves@redhat.com>
6098
6099 PR backtrace/13866
6100
6101 * breakpoint.c (until_break_command): Only fetch the selected
6102 frame after decode_line_1.
6103
6104 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6105
6106 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6107 event breakpoint at _start, __start or main if a program
6108 interpreter is not found.
6109
6110 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6111
6112 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6113 Add declaration.
6114 * windows-tdep.c: #include "objfiles.h".
6115 (windows_iterate_over_objfiles_in_search_order): New function.
6116 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6117 iterate_over_objfiles_in_search_order gdbarch method to
6118 windows_iterate_over_objfiles_in_search_order.
6119 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6120
6121 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6122
6123 * gdbarch.sh: Add generation of
6124 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6125 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6126 (iterate_over_objfiles_in_search_order): New gdbarch method.
6127 * gdbarch.h, gdbarch.c: Regenerate.
6128 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6129 Add declaration.
6130 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6131 New function.
6132 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6133 out of lookup_symbol_aux_symtabs.
6134 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6135 call to lookup_symbol_aux_objfile.
6136 (struct global_sym_lookup_data): New type.
6137 (lookup_symbol_global_iterator_cb): New function.
6138 (lookup_symbol_global): Search for symbol using
6139 gdbarch_iterate_over_objfiles_in_search_order and
6140 lookup_symbol_global_iterator_cb.
6141 * findvar.c (struct minsym_lookup_data): New type.
6142 (minsym_lookup_iterator_cb): New function.
6143 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6144 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6145 and minsym_lookup_iterator_cb.
6146
6147 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6148
6149 Revert the following patch:
6150 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6151 try locating the symbol in the symbol's own objfile first, before
6152 extending the search to all objfiles.
6153 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6154 out of lookup_symbol_aux_symtabs.
6155 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6156 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6157 Do not search EXCLUDE_OBJFILE.
6158 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6159 (lookup_symbol_global): Search for matches in the block's objfile
6160 first, before searching all other objfiles.
6161
6162 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6163
6164 * breakpoint.c (find_condition_and_thread): Stop parsing
6165 as soon as the first invalid keyword is found.
6166
6167 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6168
6169 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6170
6171 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6172
6173 * config/djgpp/djcheck.sh: Add copyright header.
6174
6175 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6176
6177 * copyright.py (update_files, main): Fix path to update-copyright
6178 script.
6179
6180 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6181
6182 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6183 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6184 for which a reminder to update by hand is printed.
6185
6186 2012-06-04 Doug Evans <dje@google.com>
6187
6188 * buildsym.c (make_blockvector): Add comment.
6189
6190 2012-06-04 Pedro Alves <palves@redhat.com>
6191
6192 * arch-utils.c (default_gdb_signal_from_target): Delete.
6193 * arch-utils.h (default_gdb_signal_from_target): Delete.
6194 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6195 gdbarch_gdb_signal_from_target_p.
6196 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6197 predicate).
6198 * gdbarch.h: Regenerate.
6199 * gdbarch.c: Regenerate.
6200
6201 2012-06-04 Pedro Alves <palves@redhat.com>
6202
6203 * gdbarch.sh (gdb_signal_from_target): Mention that the
6204 implementation of the method must be host independent.
6205 * gdbarch.h: Regenerate.
6206
6207 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6208
6209 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6210 parameters.
6211 (target_read_memory_bfd): New function.
6212 (symbol_file_add_from_memory): Use it.
6213
6214 2012-06-03 Doug Evans <dje@google.com>
6215
6216 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6217 of primary symtab.
6218 (basic_lookup_transparent_type): Ditto.
6219
6220 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6221 (ALL_PRIMARY_SYMTABS): Use it.
6222 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6223 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6224 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6225 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6226 (basic_lookup_transparent_type): Ditto.
6227
6228 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6229
6230 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6231 it to optimize resolution of demangled name.
6232
6233 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6234
6235 * configure.ac (development): Define new variable.
6236 Call AC_CHECK_LIB for mcheck if $development.
6237 (ERROR_ON_WARNING): Enable it by default only if $development.
6238 * config.in: Regenerate.
6239 * configure: Regenerate.
6240
6241 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6242
6243 * target.c (target_read_memory): Make LEN argument as size_t.
6244 * target.h (target_read_memory): Likewise.
6245
6246 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6247
6248 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6249
6250 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6251
6252 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6253 BookE interface for PowerPC server processors if not available
6254 in the Linux Kernel.
6255
6256 2012-05-31 Keith Seitz <keiths@redhat.com>
6257
6258 * linespec.c (decode_objc): Add cleanup to free
6259 INFO.FILE_SYMTABS.
6260 (find_linespec_symbols): Add cleanup to free CLASSES.
6261 * symfile.c (find_separate_debug_file_by_debuglink): Add
6262 cleanup to free DEBUGLINK.
6263 * ui-out.c (clear_header_list): No need to check if
6264 HEADER_NEXT.COLHDR is NULL.
6265 Free HEADER_NEXT.COL_NAME.
6266
6267 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6268
6269 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6270 warning.
6271
6272 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6273
6274 * configure.host (gdb_host_cpu): Handle tilegx*.
6275 (gdb_host): Handle tilegx-*-linux*.
6276 * tilegx-linux-nat.c: New file.
6277 * config/tilegx/linux.mh: New file.
6278
6279 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6280
6281 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6282 tilegx-linux-tdep.o.
6283 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6284 tilegx-linux-tdep.c.
6285 * configure.tgt: Handle tilegx-*-linux*.
6286 * tilegx-tdep.h: New file.
6287 * tilegx-tdep.c: New file.
6288 * tilegx-linux-tdep.c: New file.
6289 * regformats/reg-tilegx.dat: New file.
6290
6291 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6292
6293 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6294 accounting of hw watchpoints on ppc.
6295
6296 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6297
6298 * source.c (openp): Expand tilde in path entries.
6299
6300 2012-05-29 Doug Evans <dje@google.com>
6301
6302 * buildsym.c (block_compar): Fix comment.
6303 (end_symtab): Fix and clarify some comments.
6304
6305 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6306 cleanup_undefined_types.
6307 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6308 All callers updated.
6309
6310 2012-05-29 Tom Tromey <tromey@redhat.com>
6311
6312 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6313 fails.
6314 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6315 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6316 fails.
6317 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6318 fails.
6319
6320 2012-05-29 Tristan Gingold <gingold@adacore.com>
6321
6322 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6323 (struct darwin_info): ... New struct.
6324 (solib_darwin_pspace_data): New variable.
6325 (darwin_pspace_data_cleanup): New function.
6326 (get_darwin_info): Likewise.
6327 (darwin_dyld_version_ok, darwin_load_image_infos)
6328 (darwin_solib_get_all_image_info_addr_at_init)
6329 (darwin_solib_read_all_image_info_addr): Add info argument.
6330 Adjust code.
6331 (darwin_current_sos): Use per pspace structure.
6332 (darwin_solib_create_inferior_hook): Likewise.
6333 (darwin_clear_solib): Likewise.
6334 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6335
6336 2012-05-28 Pedro Alves <palves@redhat.com>
6337
6338 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6339 block that uses them. Clear ecss before handling each event.
6340
6341 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6342
6343 * solib-svr4.c (svr4_current_sos): New comment on
6344 svr4_current_sos_via_xfer_libraries fall back.
6345
6346 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6347
6348 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6349 it as a fallback for TYPE_IS_OPAQUE.
6350 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6351 symbols for lookup_symbol.
6352
6353 2012-05-24 John Steele Scott <toojays@toojays.net>
6354
6355 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6356 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6357 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6358 (check_producer): ... this new function, which also checks for ICC
6359 and caches the result.
6360 (producer_is_icc): New function.
6361 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6362 producer was ICC.
6363
6364 2012-05-24 Pedro Alves <palves@redhat.com>
6365
6366 PR gdb/7205
6367
6368 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6369 (default_gdb_signal_to_target): ... this. Add comment.
6370 (default_gdb_signal_from_host): Rename to ...
6371 (default_gdb_signal_from_target): ... this. Add comment.
6372 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6373 (default_gdb_signal_to_target): ... this.
6374 (default_gdb_signal_from_host): Rename to ...
6375 (default_gdb_signal_from_target): ... this.
6376 * corelow.c (core_open): Adjust to naming change. Replace comment.
6377 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6378 (gdb_signal_from_target): ... this. Adjust to
6379 default_gdb_signal_from_host naming change. Extend comment.
6380 (gdb_signal_to_host): Rename to ...
6381 (gdb_signal_to_target): ... this. Adjust to
6382 default_gdb_signal_to_host naming change.
6383 * gdbarch.h, gdbarch.c: Renegerate.
6384
6385 2012-05-24 Pedro Alves <palves@redhat.com>
6386
6387 PR gdb/7205
6388
6389 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6390
6391 2012-05-24 Pedro Alves <palves@redhat.com>
6392
6393 PR gdb/7205
6394
6395 Replace target_signal with gdb_signal throughout.
6396
6397 2012-05-24 Pedro Alves <palves@redhat.com>
6398
6399 PR tui/14159
6400
6401 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6402 string, instead of reusing the va_list argument.
6403
6404 2012-05-24 Tom Tromey <tromey@redhat.com>
6405
6406 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6407 Remove.
6408
6409 2012-05-23 Doug Evans <dje@google.com>
6410
6411 * symtab.c (search_symbols): Formatting fixes.
6412 (print_symbol_info): Formatting fixes.
6413
6414 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6415 int64_t change to leb128 API.
6416 (read_encoded_value, decode_frame_entry_1): Ditto.
6417 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6418 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6419 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6420 (execute_stack_op): Ditto.
6421 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6422 (safe_read_uleb128, safe_read_sleb128): Ditto.
6423 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6424 (dwarf2_compile_expr_to_ax): Ditto.
6425 (locexpr_describe_location_piece): Ditto.
6426 (disassemble_dwarf_expression): Ditto.
6427 (locexpr_describe_location_1): Ditto.
6428
6429 2012-05-23 Stan Shebs <stan@codesourcery.com>
6430 Kwok Cheung Yeung <kcy@codesourcery.com>
6431
6432 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6433 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6434 (mi-cmd-info.o): New rule.
6435 * osdata.h (info_osdata_command): New declaration.
6436 * osdata.c (info_osdata_command): Change to non-static.
6437 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6438 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6439 * mi/mi-cmd-info.c: New file.
6440
6441 2012-05-23 Doug Evans <dje@google.com>
6442
6443 * symtab.c (search_symbols): Pass NULL for file_matcher to
6444 expand_symtabs_matching if there are no files to match.
6445
6446 * gdbtypes.c (lookup_typename): Simplify.
6447
6448 2012-05-23 Pedro Alves <palves@redhat.com>
6449
6450 * arch-utils.h (default_target_signal_to_host): Delete.
6451 * arch-utils.c (default_target_signal_to_host): Delete.
6452 * gdbarch.sh (target_signal_to_host): Remove.
6453 * gdbarch.h, gdbarch.c: Regenerate.
6454
6455 2012-05-22 Doug Evans <dje@google.com>
6456
6457 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6458 "const gdb_byte *".
6459 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6460 (execute_cfa_program): Update to match API of leb128 functions.
6461 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6462 "const gdb_byte *".
6463 (read_unsigned_leb128, read_signed_leb128): Delete.
6464 (read_initial_length): Change type of buf argument to
6465 "const gdb_byte *".
6466 (read_encoded_value): Update to match API of leb128 functions.
6467 (decode_frame_entry): Change result to "const gdb_byte *", and
6468 similarly for "start" parameter.
6469 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6470 (dwarf2_build_frame_info): Change local frame_ptr to
6471 "const gdb_byte *".
6472 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6473 read_uleb128, read_sleb128. All callers updated.
6474 (safe_skip_leb128): New function.
6475 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6476 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6477 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6478 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6479 read_uleb128, read_sleb128.
6480 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6481 (execute_stack_op): Update to match API of leb128 functions.
6482 * dwarf2expr.h: #include "leb128.h".
6483 (read_uleb128, read_sleb128): Delete.
6484 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6485 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6486 * dwarf2loc.c (debug_loc_kind): New enum.
6487 (decode_debug_loc_addresses): New function.
6488 (decode_debug_loc_dwo_addresses): New function.
6489 (dwarf2_find_location_expression): Rewrite.
6490 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6491 (locexpr_describe_location_piece): Ditto.
6492 (disassemble_dwarf_expression): Ditto.
6493 (locexpr_describe_location_1): Ditto.
6494 (loclist_describe_location): Rewrite.
6495 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6496 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6497 (dwarf2_section_buffer_overflow_complaint): Renamed from
6498 dwarf2_macros_too_long_complaint. All callers updated.
6499 (skip_leb128): Delete.
6500 (init_cu_die_reader): Initialize reader->buffer_end.
6501 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6502 (skip_form_bytes): New arg buffer_end. All callers updated.
6503 Replace call to skip_leb128 with gdb_skip_leb128.
6504 (skip_unknown_opcode): New arg mac_end. All callers updated.
6505 (fill_in_loclist_baton): Initialize baton->from_dwo.
6506
6507 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6508
6509 * mips-linux-nat.c (mips_linux_read_description): Use a more
6510 verbose error message.
6511
6512 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6513
6514 * NEWS: Add MIPS/Linux DSP support.
6515 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6516 (SIGCONTEXT_DSPCTL): New macro.
6517 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6518 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6519 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6520 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6521 (N64_SIGCONTEXT_HI3): Likewise.
6522 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6523 (N64_SIGCONTEXT_LO3): Likewise.
6524 (N64_SIGCONTEXT_DSPCTL): Likewise.
6525 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6526 (mips_linux_o32_sigframe_init): Handle DSP registers.
6527 (mips_linux_n32n64_sigframe_init): Likewise.
6528
6529 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6530
6531 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6532 call to abort.
6533
6534 2012-05-22 Pedro Alves <palves@redhat.com>
6535
6536 * target.h (store_waitstatus): Move declaration ...
6537 * inf-child.h (store_waitstatus): ... here.
6538 * target.c: Move inclusion of gdb_wait.h, and ...
6539 (store_waitstatus): ... this ...
6540 * inf-child.c: ... here.
6541 * linux-nat.c: Include inf-child.h.
6542 * rs6000-nat.c: Include inf-child.h.
6543 * spu-linux-nat.c: Include inf-child.h.
6544
6545 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6546
6547 * tracepoint.c (start_tracing): Add missing i18n markup.
6548 (stop_tracing, set_trace_user): Ditto.
6549 (set_trace_notes, set_trace_stop_notes): Ditto.
6550
6551 2012-05-21 Tom Tromey <tromey@redhat.com>
6552
6553 PR c++/7173:
6554 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6555 types.
6556 * value.h (value_cast_pointers): Update.
6557 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6558 (value_cast): Update.
6559 (update_search_result): New function.
6560 (do_search_struct_field): New, from search_struct_field. Check
6561 for ambiguous results.
6562 (search_struct_field): Rewrite.
6563 * infcall.c (value_arg_coerce): Update.
6564 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6565 value_cast_pointers.
6566 * ada-lang.c (ada_convert_actual): Update.
6567
6568 2012-05-21 Tom Tromey <tromey@redhat.com>
6569
6570 * macroexp.c (macro_stringify): Terminate the string.
6571
6572 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6573
6574 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6575 Describe it.
6576 * auto-load.c (auto_load_expand_dir_vars): New function.
6577 (auto_load_safe_path_vec_update): Use it, remove the
6578 substitute_path_component call thanks to it.
6579 (auto_load_objfile_script): Remove the debug_file_directory processing.
6580 Use auto_load_expand_dir_vars, remove the substitute_path_component
6581 call thanks to it.
6582 * configure: Regenerate.
6583 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6584 path. Escape $ also for $debugdir.
6585 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6586 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6587
6588 2012-05-20 Doug Evans <dje@google.com>
6589
6590 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6591 before use. Check for symtab->includes == NULL before scanning it.
6592
6593 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6594
6595 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6596
6597 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6598
6599 * NEWS: Add microMIPS support and "set mips compression",
6600 "show mips compression" commands.
6601 * mips-tdep.h (mips_isa): New enum.
6602 (gdbarch_tdep): Add mips_isa.
6603 (mips_pc_is_mips16): Update prototype.
6604 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6605 * mips-tdep.c (mips_compression_mips16): New variable.
6606 (mips_compression_micromips): Likewise.
6607 (mips_compression_strings): Likewise.
6608 (mips_compression_string): Likewise.
6609 (is_mips16_isa, is_micromips_isa): New functions.
6610 (is_mips16_addr): Rename to...
6611 (is_compact_addr): ... this.
6612 (unmake_mips16_addr): Likewise to...
6613 (unmake_compact_addr): ... this.
6614 (make_mips16_addr): Likewise to...
6615 (make_compact_addr): ... this.
6616 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6617 functions.
6618 (mips_elf_make_msymbol_special): Handle microMIPS code.
6619 (msymbol_is_special): Rename to...
6620 (msymbol_is_mips16): ... this.
6621 (mips_make_symbol_special, mips_pc_is_mips16): Update
6622 accordingly.
6623 (msymbol_is_mips, msymbol_is_micromips): New functions.
6624 (mips16_to_32_reg): Rename to...
6625 (mips_reg3_to_reg): ... this.
6626 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6627 (mips_pc_isa): Likewise.
6628 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6629 code.
6630 (mips_fetch_instruction): Pass return status instead of printing
6631 an error message if requested. Handle microMIPS code. Bail out
6632 on an invalid ISA.
6633 (micromips_op): New macro.
6634 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6635 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6636 (b6s4_op, b7s3_reg): Likewise.
6637 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6638 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6639 (mips_insn_size): New function.
6640 (mips32_next_pc): Update mips_fetch_instruction call.
6641 (micromips_relative_offset7): New function.
6642 (micromips_relative_offset10): Likewise.
6643 (micromips_relative_offset16): Likewise.
6644 (micromips_pc_insn_size): Likewise.
6645 (micromips_bc1_pc): Likewise.
6646 (micromips_next_pc): Likewise.
6647 (unpack_mips16): Update mips_fetch_instruction call.
6648 (extended_mips16_next_pc): Update according to change to
6649 mips16_to_32_reg.
6650 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6651 code.
6652 (mips16_scan_prologue): Update mips_fetch_instruction call.
6653 Update according to change to mips16_to_32_reg.
6654 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6655 (mips_insn16_frame_base_sniffer): Likewise.
6656 (micromips_decode_imm9): New function.
6657 (micromips_scan_prologue): Likewise.
6658 (mips_micro_frame_cache): Likewise.
6659 (mips_micro_frame_this_id): Likewise.
6660 (mips_micro_frame_prev_register): Likewise.
6661 (mips_micro_frame_sniffer): Likewise.
6662 (mips_micro_frame_unwind): New variable.
6663 (mips_micro_frame_base_address): New function.
6664 (mips_micro_frame_base): New variable.
6665 (mips_micro_frame_base_sniffer): New function.
6666 (mips32_scan_prologue): Update mips_fetch_instruction call.
6667 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6668 rather than for MIPS16.
6669 (mips_insn32_frame_base_sniffer): Likewise.
6670 (mips_addr_bits_remove): Handle microMIPS code.
6671 (deal_with_atomic_sequence): Rename to...
6672 (mips_deal_with_atomic_sequence): ... this. Update the type
6673 of the variable used to hold an instruction. Remove the ISA bit
6674 check. Update mips_fetch_instruction call.
6675 (micromips_deal_with_atomic_sequence): New function.
6676 (deal_with_atomic_sequence): Likewise.
6677 (mips_about_to_return): Handle microMIPS code. Update
6678 mips_fetch_instruction call.
6679 (heuristic_proc_start): Check for the standard MIPS ISA rather
6680 than for MIPS16. Update mips_pc_is_mips16 and
6681 mips_fetch_instruction calls. Handle microMIPS code.
6682 (mips_push_dummy_code): Handle microMIPS code.
6683 (mips_eabi_push_dummy_call): Likewise.
6684 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6685 (mips_o64_push_dummy_call): Handle microMIPS code.
6686 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6687 (is_delayed): Remove function.
6688 (mips_single_step_through_delay): Replace the call to is_delayed
6689 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6690 Handle microMIPS code.
6691 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6692 microMIPS code.
6693 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6694 call.
6695 (micromips_in_function_epilogue_p): New function.
6696 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6697 call.
6698 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6699 Handle microMIPS.
6700 (gdb_print_insn_mips): Likewise.
6701 (mips_breakpoint_from_pc): Likewise.
6702 (mips_remote_breakpoint_from_pc): New function.
6703 (mips32_instruction_has_delay_slot): Simplify making use of the
6704 updated mips_fetch_instruction interface.
6705 (micromips_instruction_has_delay_slot): New function.
6706 (mips16_instruction_has_delay_slot): Simplify making use of the
6707 updated mips_fetch_instruction interface.
6708 (mips_adjust_breakpoint_address): Check for the standard MIPS
6709 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6710 calls. Handle microMIPS code.
6711 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6712 (mips_skip_trampoline_code): Handle microMIPS code.
6713 (global_mips_compression): New function.
6714 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6715 file flags. Register the microMIPS remote breakpoint handler
6716 and heuristic frame unwinder.
6717 (show_mips_compression): New function.
6718 (_initialize_mips_tdep): Add the "set mips compression" and
6719 "show mips compression" commands.
6720
6721 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6722
6723 * ada-lang.c:
6724 * ada-tasks.c:
6725 * ada-varobj.c:
6726 * amd64-darwin-tdep.c:
6727 * arm-symbian-tdep.c:
6728 * arm-tdep.c:
6729 * avr-tdep.c:
6730 * ax-gdb.c:
6731 * bfin-linux-tdep.c:
6732 * breakpoint.c:
6733 * c-valprint.c:
6734 * cli/cli-cmds.c:
6735 * coffread.c:
6736 * cp-support.c:
6737 * cris-tdep.c:
6738 * dwarf2-frame-tailcall.c:
6739 * dwarf2-frame.c:
6740 * dwarf2expr.c:
6741 * dwarf2loc.c:
6742 * dwarf2read.c:
6743 * elfread.c:
6744 * eval.c:
6745 * expprint.c:
6746 * f-valprint.c:
6747 * frv-tdep.c:
6748 * h8300-tdep.c:
6749 * hppa-hpux-tdep.c:
6750 * hppa-tdep.c:
6751 * hppanbsd-tdep.c:
6752 * i386-nto-tdep.c:
6753 * i386-tdep.c:
6754 * i387-tdep.c:
6755 * ia64-tdep.c:
6756 * jit.c:
6757 * linespec.c:
6758 * linux-tdep.c:
6759 * lm32-tdep.c:
6760 * m2-valprint.c:
6761 * m32c-tdep.c:
6762 * m32r-rom.c:
6763 * m32r-tdep.c:
6764 * m68k-tdep.c:
6765 * m68klinux-tdep.c:
6766 * mi/mi-main.c:
6767 * microblaze-tdep.c:
6768 * mips-linux-tdep.c:
6769 * mips-tdep.c:
6770 * mn10300-tdep.c:
6771 * p-valprint.c:
6772 * parse.c:
6773 * ppc-linux-tdep.c:
6774 * ppc-sysv-tdep.c:
6775 * printcmd.c:
6776 * python/py-finishbreakpoint.c:
6777 * python/py-inferior.c:
6778 * python/py-infthread.c:
6779 * python/py-type.c:
6780 * python/python.c:
6781 * remote-fileio.c:
6782 * remote-m32r-sdi.c:
6783 * remote-mips.c:
6784 * reverse.c:
6785 * rl78-tdep.c:
6786 * rs6000-aix-tdep.c:
6787 * rs6000-tdep.c:
6788 * s390-tdep.c:
6789 * score-tdep.c:
6790 * sh64-tdep.c:
6791 * skip.c:
6792 * solib-darwin.c:
6793 * solib-dsbt.c:
6794 * solib-frv.c:
6795 * sparc-tdep.c:
6796 * spu-multiarch.c:
6797 * spu-tdep.c:
6798 * stack.c:
6799 * symfile.c:
6800 * symtab.c:
6801 * tic6x-tdep.c:
6802 * tracepoint.c:
6803 * v850-tdep.c:
6804 * valarith.c:
6805 * valprint.c:
6806 * value.c:
6807 * xcoffread.c:
6808 * xtensa-tdep.c:
6809 * ada-lang.c:
6810 * ada-tasks.c:
6811 * ada-varobj.c:
6812 * amd64-darwin-tdep.c:
6813 * arm-symbian-tdep.c:
6814 * arm-tdep.c: Delete unused variables.
6815
6816 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6817
6818 Rename $ddir to $datadir.
6819 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6820 * auto-load.c (auto_load_safe_path_vec_update)
6821 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6822 * configure: Regenerate.
6823 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6824 Likewise. Remove the 'use $ddir' help string.
6825
6826 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6829 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6830
6831 2012-05-18 Tom Tromey <tromey@redhat.com>
6832
6833 PR exp/13907:
6834 * valprint.h (struct value_print_options) <symbol_print>: New
6835 field.
6836 * valprint.c (user_print_options): Add default for symbol_print.
6837 (show_symbol_print): New function.
6838 (generic_val_print): Respect symbol_print.
6839 (_initialize_valprint): Add "print symbol" setting.
6840 * f-valprint.c (f_val_print): Respect symbol_print.
6841 * c-valprint.c (c_val_print): Respect symbol_print.
6842 * NEWS: Update.
6843 * printcmd.c (print_address_symbolic): Return int. Ignore some
6844 zero-size symbols.
6845 (print_address_demangle): Return int.
6846 * defs.h: (print_address_symbolic): Return int.
6847 * value.h (print_address_demangle): Return int.
6848
6849 2012-05-18 Tom Tromey <tromey@redhat.com>
6850
6851 * valprint.c (val_print_string): Don't print leading space.
6852 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6853 print space before string or vtbl.
6854 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6855 before string.
6856 * jv-valprint.c (java_value_print): Print space before string.
6857 * go-valprint.c (print_go_string): Print space before string.
6858 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6859 space before string.
6860 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6861 space before string or vtbl.
6862 * auxv.c (fprint_target_auxv): Print space after address.
6863
6864 2012-05-18 Tom Tromey <tromey@redhat.com>
6865
6866 * printcmd.c (print_address_demangle): Remove special case for 0.
6867
6868 2012-05-18 Tom Tromey <tromey@redhat.com>
6869
6870 * printcmd.c (print_address_demangle): Add 'opts' argument.
6871 * p-valprint.c (pascal_val_print): Update.
6872 * jv-valprint.c (java_val_print): Update.
6873 * value.h: Update.
6874 * valprint.c (generic_val_print): Update.
6875 (print_function_pointer_address): Add 'options' argument. Remove
6876 'addressprint' argument. Update.
6877 * m2-valprint.c (print_unpacked_pointer): Update.
6878 * gnu-v3-abi.c (print_one_vtable): Update.
6879 (gnuv3_print_method_ptr): Update.
6880 * f-valprint.c (f_val_print): Update.
6881 * cp-valprint.c (cp_print_value_fields): Update.
6882 * valprint.h (print_function_pointer_address): Update.
6883 * c-valprint.c (c_val_print): Update.
6884
6885 2012-05-18 Tom Tromey <tromey@redhat.com>
6886
6887 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6888 directly corresponding to the found psymtab.
6889 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6890 (dw2_find_pc_sect_symtab): Use it.
6891 * block.h (blockvector_contains_pc): Declare.
6892 * block.c (find_block_in_blockvector): New function.
6893 (blockvector_for_pc_sect): Use it.
6894 (blockvector_contains_pc): New function.
6895
6896 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6897
6898 * mips-tdep.h (mips_write_pc): New prototype.
6899 * mips-tdep.c (mips_write_pc): Make external, add description.
6900 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6901 add description.
6902
6903 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6904
6905 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6906 mips_regnum->pc.
6907 (mips_unwind_pc, mips_write_pc): Likewise.
6908 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6909 gdbarch_read_pc.
6910
6911 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6912
6913 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6914 proc_warn, proc_error, proc_get_status, proc_flags,
6915 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6916 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6917 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6918 proc_stop_process, proc_wait_for_stop, proc_run_process,
6919 proc_set_traced_signals, proc_set_traced_faults,
6920 proc_set_traced_sysentry, proc_set_traced_sysexit,
6921 proc_set_held_signals, proc_get_held_signals,
6922 proc_get_traced_signals, proc_get_traced_faults,
6923 proc_get_traced_sysentry, proc_get_traced_sysexit,
6924 proc_clear_current_fault, proc_set_current_signal,
6925 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6926 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6927 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6928 proc_get_current_thread, proc_get_current_thread,
6929 proc_get_current_thread, proc_update_threads,
6930 proc_update_threads, proc_update_threads, proc_update_threads,
6931 proc_iterate_over_threads, procfs_find_new_threads,
6932 procfs_pid_to_str): Make static. Remove advance declaration.
6933 (proc_cursig): Make static. Conditionalized defintion on
6934 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6935 (proc_syscall, proc_set_kill_on_last_close,
6936 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6937 proc_get_pending_signals, proc_get_signal_actions,
6938 proc_trace_signal, proc_ignore_signal): Delete.
6939
6940 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6941
6942 * coffread.c (cs_section_address): Passing proper argument for
6943 `bfd_get_section_vma'.
6944 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6945 `bfd_get_section_flags'.
6946 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6947 `bfd_get_section_vma'.
6948
6949 2012-05-16 Tom Tromey <tromey@redhat.com>
6950
6951 PR macros/13205:
6952 * macrotab.h: (macro_define_special): Declare.
6953 (enum macro_special_kind): New.
6954 (struct macro_definition) <argc, replacement>: Update comments.
6955 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6956 (macro_define_object_internal): New function.
6957 (macro_define_object): Use it.
6958 (macro_define_special): New function.
6959 (fixup_definition): New function.
6960 (macro_lookup_definition, foreach_macro_in_scope)
6961 (foreach_macro): Use fixup_definition.
6962 * macroexp.h (macro_stringify): Declare.
6963 * macroexp.c (free_buffer_return_text): New function.
6964 (stringify): Constify "arg".
6965 (macro_stringify): New function.
6966 * dwarf2read.c (macro_start_file): Call macro_define_special.
6967
6968 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6969 Maciej W. Rozycki <macro@mips.com>
6970
6971 * breakpoint.h (bp_location): Add related_address member.
6972 * inferior.h (get_return_value): Take a pointer to struct value
6973 instead of struct type for the function requested.
6974 * value.h (using_struct_return): Likewise.
6975 * gdbarch.sh (return_value): Take a pointer to struct value
6976 instead of struct type for the function requested.
6977 * breakpoint.c (set_breakpoint_location_function): Initialize
6978 related_address for bp_gnu_ifunc_resolver breakpoints.
6979 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6980 requested function's address to gdbarch_return_value.
6981 * eval.c (evaluate_subexp_standard): Pass the requested
6982 function's address to using_struct_return.
6983 * infcall.c (call_function_by_hand): Pass the requested
6984 function's address to using_struct_return and
6985 gdbarch_return_value.
6986 * infcmd.c (get_return_value): Take a pointer to struct value
6987 instead of struct type for the function requested.
6988 (print_return_value): Update accordingly.
6989 (finish_command_continuation): Likewise.
6990 * stack.c (return_command): Pass the requested function's
6991 address to using_struct_return and gdbarch_return_value.
6992 * value.c (using_struct_return): Take a pointer to struct value
6993 instead of struct type for the function requested. Pass the
6994 requested function's address to gdbarch_return_value.
6995 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6996 New function_value member, replacing function_type.
6997 (bpfinishpy_dealloc): Update accordingly.
6998 (bpfinishpy_pre_stop_hook): Likewise.
6999 (bpfinishpy_init): Likewise. Record the requested function's
7000 address.
7001 * mips-tdep.c (mips_fval_reg): New enum.
7002 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7003 words put in GP registers.
7004 (mips_o64_push_dummy_call): Update a comment.
7005 (mips_o32_return_value): Take a pointer to struct value instead
7006 of struct type for the function requested and use it to check if
7007 using the MIPS16 calling convention. Return the designated
7008 general purpose registers for floating-point values returned in
7009 MIPS16 mode.
7010 (mips_o64_return_value): Likewise.
7011 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7012 (ppc_sysv_abi_broken_return_value): Likewise.
7013 (ppc64_sysv_abi_return_value): Likewise.
7014 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7015 value instead of struct type for the function requested.
7016 * amd64-tdep.c (amd64_return_value): Likewise.
7017 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7018 * arm-tdep.c (arm_return_value): Likewise.
7019 * avr-tdep.c (avr_return_value): Likewise.
7020 * bfin-tdep.c (bfin_return_value): Likewise.
7021 * cris-tdep.c (cris_return_value): Likewise.
7022 * frv-tdep.c (frv_return_value): Likewise.
7023 * h8300-tdep.c (h8300_return_value): Likewise.
7024 (h8300h_return_value): Likewise.
7025 * hppa-tdep.c (hppa32_return_value): Likewise.
7026 (hppa64_return_value): Likewise.
7027 * i386-tdep.c (i386_return_value): Likewise.
7028 * ia64-tdep.c (ia64_return_value): Likewise.
7029 * iq2000-tdep.c (iq2000_return_value): Likewise.
7030 * lm32-tdep.c (lm32_return_value): Likewise.
7031 * m32c-tdep.c (m32c_return_value): Likewise.
7032 * m32r-tdep.c (m32r_return_value): Likewise.
7033 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7034 * m68k-tdep.c (m68k_return_value): Likewise.
7035 (m68k_svr4_return_value): Likewise.
7036 * m88k-tdep.c (m88k_return_value): Likewise.
7037 * mep-tdep.c (mep_return_value): Likewise.
7038 * microblaze-tdep.c (microblaze_return_value): Likewise.
7039 * mn10300-tdep.c (mn10300_return_value): Likewise.
7040 * moxie-tdep.c (moxie_return_value): Likewise.
7041 * mt-tdep.c (mt_return_value): Likewise.
7042 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7043 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7044 (ppc_sysv_abi_broken_return_value): Likewise.
7045 (ppc64_sysv_abi_return_value): Likewise.
7046 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7047 * rl78-tdep.c (rl78_return_value): Likewise.
7048 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7049 * rx-tdep.c (rx_return_value): Likewise.
7050 * s390-tdep.c (s390_return_value): Likewise.
7051 * score-tdep.c (score_return_value): Likewise.
7052 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7053 (sh_return_value_fpu): Likewise.
7054 * sh64-tdep.c (sh64_return_value): Likewise.
7055 * sparc-tdep.c (sparc32_return_value): Likewise.
7056 * sparc64-tdep.c (sparc64_return_value): Likewise.
7057 * spu-tdep.c (spu_return_value): Likewise.
7058 * tic6x-tdep.c (tic6x_return_value): Likewise.
7059 * v850-tdep.c (v850_return_value): Likewise.
7060 * vax-tdep.c (vax_return_value): Likewise.
7061 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7062 * xtensa-tdep.c (xtensa_return_value): Likewise.
7063 * gdbarch.c: Regenerate.
7064 * gdbarch.h: Regenerate.
7065
7066 2012-05-15 Tom Tromey <tromey@redhat.com>
7067
7068 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7069
7070 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7071
7072 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7073 of command in two error message.
7074
7075 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7076
7077 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7078
7079 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7080
7081 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7082
7083 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7084
7085 * NEWS (show auto-load scripts-directory): Add forgotten command.
7086
7087 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7088
7089 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7090 parameters.
7091
7092 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7093
7094 * amd64-tdep.c: Include features/i386/x32.c and
7095 features/i386/x32-avx.c.
7096 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7097 initialize_tdesc_x32_avx.
7098
7099 2012-05-14 Stan Shebs <stan@codesourcery.com>
7100
7101 Add dynamic printf.
7102 * breakpoint.h (enum bptype): New type bp_dprintf.
7103 (struct breakpoint): New field extra_string.
7104 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7105 (create_breakpoint): Add extra_string arg.
7106 * breakpoint.c (dprintf_breakpoint_ops): New.
7107 (is_breakpoint): Add bp_dprintf.
7108 (bpstat_what): Add dprintf case.
7109 (bptype_string): Ditto.
7110 (print_one_breakpoint_location): Ditto.
7111 (init_bp_location): Ditto.
7112 (bkpt_print_mention): Ditto.
7113 (dprintf_style_enums): New array.
7114 (dprintf_style): New global.
7115 (dprintf_function): New global.
7116 (dprintf_channel): New global.
7117 (update_dprintf_command_list): New function.
7118 (update_dprintf_commands): New function.
7119 (init_breakpoint_sal): Add extra_string argument, handle it.
7120 (create_breakpoint_sal): Add extra_string argument.
7121 (create_breakpoints_sal): Add extra_string argument, update callers.
7122 (find_condition_and_thread): Add extra argument.
7123 (create_breakpoint): Add extra_string argument, record it.
7124 (dprintf_command): New function.
7125 (break_command_1): Add arg to create_breakpoint call.
7126 (handle_gnu_v3_exceptions): Ditto.
7127 (trace_command): Ditto.
7128 (ftrace_command): Ditto.
7129 (strace_command): Ditto.
7130 (bkpt_print_mention): Add dprintf case.
7131 (create_breakpoint_sal_default): Add extra_string argument.
7132 (_initialize_breakpoint): Add new commands.
7133 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7134 * python/py-breakpoint.c (bppy_init): Ditto.
7135 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7136
7137 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7138
7139 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7140
7141 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7142
7143 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7144 unsigned long long.
7145
7146 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7147
7148 Add a new function gdb.find_pc_line to the Python API.
7149 * NEWS (Python Scripting): Add entry about the new function.
7150 * python/python.c (gdbpy_find_pc_line): New function which
7151 implements gdb.find_pc_line.
7152 (GdbMethods): Add entry for the new function.
7153
7154 2012-05-12 Pedro Alves <palves@redhat.com>
7155
7156 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7157 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7158
7159 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7160
7161 * inferior.c: Include completer.h
7162 (initialize_inferiors): Set completer of add-inferior to
7163 filename_completer.
7164
7165 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7166
7167 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7168 gdbarch_ptr_bit for x32 core dump.
7169
7170 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7171
7172 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7173 and features/i386/x32-avx-linux.c.
7174
7175 2012-05-11 Stan Shebs <stan@codesourcery.com>
7176 Kwok Cheung Yeung <kcy@codesourcery.com>
7177
7178 * NEWS: Describe new info os commands.
7179 * common/linux-osdata.c (PID_T, TIME_T): Define.
7180 (MAX_PID_T_STRLEN): New.
7181 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7182 MAX_PID_T_STRLEN.
7183 (command_from_pid): Add comment. Change to use PID_T.
7184 (commandline_from_pid): Change to use PID_T.
7185 (user_from_pid): Add comment.
7186 (get_process_owner): Add comment. Change to use PID_T and
7187 MAX_PID_T_STRLEN.
7188 (get_number_of_cpu_cores): Add comment.
7189 (get_cores_used_by_process): Add comment. Change to use PID_T and
7190 MAX_PID_T_STRLEN.
7191 (linux_xfer_osdata_processes): Change to use PID_T and
7192 MAX_PID_T_STRLEN.
7193 (compare_processes): New function.
7194 (linux_xfer_osdata_processgroups): New function.
7195 (linux_xfer_osdata_threads): Change to use PID_T.
7196 (linux_xfer_osdata_fds): New function.
7197 (format_socket_state, print_sockets): New functions.
7198 (union socket_addr): New union.
7199 (linux_xfer_osdata_isockets): New function.
7200 (time_from_time_t, group_from_gid): New functions.
7201 (linux_xfer_osdata_shm): New function.
7202 (linux_xfer_osdata_sem): New function.
7203 (linux_xfer_osdata_msg): New function.
7204 (linux_xfer_osdata_modules): New function.
7205 (osdata_table): Add new entries.
7206 * common/buffer.c (buffer_xml_printf): Add support for long and
7207 long long format specifiers.
7208
7209 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7210
7211 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7212 (tdesc_x32_avx_linux): Likewise.
7213
7214 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7215
7216 Implement multi-component --with-auto-load-dir.
7217 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7218 entries.
7219 (--with-auto-load-safe-path): Update the default value description.
7220 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7221 New.
7222 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7223 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7224 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7225 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7226 "set auto-load scripts-directory".
7227 * config.in: Regenerate.
7228 * configure: Regenerate.
7229 * configure.ac (--with-auto-load-dir): New configure option.
7230 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7231
7232 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7233
7234 Provide $ddir substitution for --with-auto-load-safe-path.
7235 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7236 entries.
7237 * auto-load.c: Include observer.h.
7238 (auto_load_safe_path_vec_update): Call substitute_path_component for
7239 each component. New variable ddir_subst.
7240 (auto_load_gdb_datadir_changed): New function.
7241 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7242 AUTO_LOAD_SAFE_PATH. New comment.
7243 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7244 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7245 * config.in: Regenerate.
7246 * configure: Regenerate.
7247 * configure.ac (--auto-load-safe-path): Rename
7248 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7249 GDB_DATADIR/auto-load.
7250 * defs.h (substitute_path_component): New declaration.
7251 * top.c: Include observer.h.
7252 (set_gdb_datadir): New function.
7253 (init_main): Install it for "set data-directory".
7254 * utils.c (substitute_path_component): New function.
7255
7256 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7257
7258 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7259 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7260 DEBUG_FILE_DIRECTORY. Handle multiple components of
7261 DEBUG_FILE_DIRECTORY.
7262
7263 2012-05-10 Tom Tromey <tromey@redhat.com>
7264
7265 * dwarf2read.c (recursively_write_psymbols): New function.
7266 (write_psymtabs_to_index): Use it.
7267
7268 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7269 field.
7270 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7271 (load_partial_comp_unit): Update.
7272 (queue_comp_unit): Add argument 'pretend_language'.
7273 (process_queue): Update.
7274 (psymtab_to_symtab_1): Skip dependencies that have a user.
7275 (load_partial_comp_unit_reader): Give meaning to the 'data'
7276 argument.
7277 (load_full_comp_unit): Add 'pretend_language' argument.
7278 (process_full_comp_unit): Add 'pretend_language' argument. Set
7279 language on CU.
7280 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7281 Update.
7282 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7283 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7284 Update.
7285 (prepare_one_comp_unit): Add 'pretend_language' argument.
7286
7287 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7288 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7289 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7290 (dw2_do_instantiate_symtab): Check whether symtab was read in
7291 before queueing.
7292 (dw2_instantiate_symtab): Add assertion. Call
7293 process_cu_includes.
7294 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7295 (partial_symtab_p): New typedef.
7296 (set_partial_user): New function.
7297 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7298 (scan_partial_symbols): Add imported CU to imported_symtabs.
7299 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7300 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7301 (get_symtab, recursively_compute_inclusions)
7302 (compute_symtab_includes, process_cu_includes)
7303 (process_imported_unit_die): New functions.
7304 (process_die) <DW_TAG_imported_unit>: New case.
7305 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7306
7307 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7308 comment.
7309 (struct partial_die_info) <locdesc>: Remove.
7310 <d>: New field.
7311 (process_psymtab_comp_unit): Add 'read_partial' argument.
7312 Update.
7313 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7314 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7315 (add_partial_symbol): Update.
7316 (process_die): Handle DW_TAG_partial_unit.
7317 (read_file_scope): Update comment.
7318 (load_partial_dies): Handle DW_TAG_imported_unit.
7319 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7320 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7321
7322 2012-05-10 Tom Tromey <tromey@redhat.com>
7323
7324 * cc-with-dwz.sh: New file.
7325
7326 2012-05-10 Tom Tromey <tromey@redhat.com>
7327
7328 * symtab.h (struct symtab) <includes, user>: New fields.
7329 * block.h (struct block_iterator) <d, idx, which>: New fields.
7330 * block.c (initialize_block_iterator, find_iterator_symtab)
7331 (block_iterator_step, block_iter_name_step)
7332 (block_iter_match_step): New functions.
7333 (block_iterator_first, block_iterator_next)
7334 (block_iter_name_first, block_iter_name_next)
7335 (block_iter_match_first, block_iter_match_next): Rewrite.
7336 (get_block_symtab): New function.
7337
7338 2012-05-10 Tom Tromey <tromey@redhat.com>
7339
7340 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7341 set_block_symtab.
7342 * jit.c (finalize_symtab): Use allocate_global_block,
7343 set_block_symtab.
7344 * buildsym.c (finish_block_internal): New function, from old
7345 finish_block.
7346 (finish_block): Rewrite.
7347 (end_symtab): Use finish_block_internal, set_block_symtab.
7348 * block.h (struct global_block): New.
7349 (allocate_global_block, set_block_symtab): Declare.
7350 * block.c (allocate_global_block, set_block_symtab): New
7351 functions.
7352
7353 2012-05-10 Tom Tromey <tromey@redhat.com>
7354
7355 * psymtab.c (partial_map_expand_apply): Add assertion.
7356 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7357 (psymtab_to_symtab): Find unshared psymtab.
7358 (dump_psymtab): Print including psymtabs.
7359 (recursively_search_psymtabs): New function.
7360 (expand_symtabs_matching_via_partial): Use it.
7361 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7362 fields.
7363 (enum psymtab_search_status): New.
7364
7365 2012-05-10 Tom Tromey <tromey@redhat.com>
7366
7367 * tracepoint.c (scope_info): Update.
7368 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7369 (find_pc_sect_symtab, search_symbols)
7370 (default_make_symbol_completion_list_break_on)
7371 (make_file_symbol_completion_list): Update.
7372 * symmisc.c (dump_symtab_1): Update.
7373 * stack.c (print_frame_args, iterate_over_block_locals)
7374 (print_frame_labels, iterate_over_block_arg_vars): Update.
7375 * python/py-block.c (block_object) <dict>: Remove.
7376 <block>: New field.
7377 <iter>: Change type.
7378 (blpy_iter): Update.
7379 (blpy_block_syms_iternext): Update.
7380 * psymtab.c (map_block): Use block iterators.
7381 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7382 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7383 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7384 * infrun.c (check_exception_resume): Update.
7385 * cp-support.c (make_symbol_overload_list_block): Update.
7386 * coffread.c (patch_opaque_types): Update.
7387 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7388 * block.h (struct block_iterator): New.
7389 (block_iterator_first, block_iterator_next, block_iter_name_first)
7390 (block_iter_name_next, block_iter_match_first)
7391 (block_iter_match_next): Declare.
7392 (ALL_BLOCK_SYMBOLS): Redefine.
7393 * block.c (block_iterator_first, block_iterator_next)
7394 (block_iter_name_first, block_iter_name_next)
7395 (block_iter_match_first, block_iter_match_next): New functions.
7396 * ada-lang.c (ada_add_block_symbols)
7397 (ada_make_symbol_completion_list): Use block iterator.
7398
7399 2012-05-10 Tom Tromey <tromey@redhat.com>
7400
7401 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7402 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7403 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7404 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7405 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7406 Update.
7407
7408 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7409
7410 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7411 print-file-var-lib2.c, print-file-var-main.c and
7412 print-file-var.exp (located in gdb/testsuite/gdb.base).
7413
7414 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7415
7416 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7417 try locating the symbol in the symbol's own objfile first, before
7418 extending the search to all objfiles.
7419 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7420 out of lookup_symbol_aux_symtabs.
7421 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7422 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7423 Do not search EXCLUDE_OBJFILE.
7424 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7425 (lookup_symbol_global): Search for matches in the block's objfile
7426 first, before searching all other objfiles.
7427
7428 2012-05-10 Tristan Gingold <gingold@adacore.com>
7429
7430 * printcmd.c (set_command): Add pre/post inc/dec.
7431
7432 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7433
7434 * gdb.1: Document -ex option.
7435
7436 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7437
7438 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7439 * inferior.h (AT_SYMBOL): Delete.
7440
7441 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7442
7443 * mips-tdep.c (mips_push_dummy_code): New function.
7444 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7445 ON_STACK and install mips_push_dummy_code as our gdbarch
7446 push_dummy_code routine.
7447
7448 2012-05-09 Pedro Alves <palves@redhat.com>
7449
7450 * target.c (set_maintenance_target_async_permitted): Rename to ...
7451 (set_target_async_command): ... this.
7452 (show_maintenance_target_async_permitted): Rename to ...
7453 (show_target_async_command): ... this.
7454 (initialize_targets): Adjust.
7455
7456 2012-05-08 Doug Evans <dje@google.com>
7457
7458 * go-exp.y (classify_name): Add missing assignment of fields of
7459 yylval.ssym.
7460
7461 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7462
7463 Display the ">" prompt in interactive mode while reading canned
7464 commands, even when the current interpreter is MI.
7465
7466 * interps.c (interp_set_temp): New function.
7467
7468 * interps.h (interp_set_temp): Add prototype.
7469
7470 * cli/cli-script.c (restore_interp): New cleanup function.
7471 (read_command_lines): Temporarily override the current interpreter
7472 with CLI and arrange for restoring the original one.
7473
7474 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7475
7476 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7477
7478 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7479
7480 * probe.c (parse_probes): Move conditional to check for
7481 debuginfo files from here...
7482 * stap-probe.c (stap_get_probes): ... to here.
7483
7484 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7485 H.J. Lu <hongjiu.lu@intel.com>
7486
7487 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7488 `movl %esp, %ebp' for the X32 ABI.
7489
7490 2012-05-07 Tom Tromey <tromey@redhat.com>
7491
7492 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7493 get_DW_TAG_name.
7494 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7495 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7496 (dwarf_stack_op_name): Remove.
7497 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7498 (decode_locdesc): Use get_DW_OP_name.
7499 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7500 (dwarf2_compile_expr_to_ax): Likewise.
7501 (disassemble_dwarf_expression): Likewise.
7502 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7503
7504 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7505
7506 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7507 (sh_linux_sigtramp_cache): New function.
7508 (sh_linux_sigreturn_init): New function.
7509 (sh_linux_rt_sigreturn_init): New function.
7510 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7511 patterns.
7512 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7513 syscall codes.
7514 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7515 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7516 (sh_linux_init_abi): Add init calls to register new tramp_frame
7517 definitions under 32-bit SH, update comments.
7518
7519 2012-05-07 Pedro Alves <palves@redhat.com>
7520
7521 PR gdb/10952
7522
7523 * amd64-linux-tdep.c: Include glibc-tdep.h.
7524 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7525 gdbarch_skip_solib_resolver callback.
7526
7527 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7528
7529 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7530 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7531 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7532 (add_auto_load_safe_path): Change the error message.
7533 (_initialize_auto_load): Change the "safe-path" help text.
7534 * configure: Regenerate
7535 * configure.ac (--without-auto-load-safe-path): Set
7536 WITH_AUTO_LOAD_SAFE_PATH to /.
7537
7538 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7539
7540 * stap-probe.h: Do not include unecessary `probe.h'.
7541
7542 2012-05-05 Alan Modra <amodra@gmail.com>
7543
7544 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7545 bfd_und_section_ptr.
7546 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7547 and bfd_com_section_ptr.
7548
7549 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7550
7551 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7552
7553 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7554
7555 * windows-nat.h (segment_register_p_ftype): New typedef.
7556 (windows_set_segment_register_p): Add declaration.
7557 * windows-nat.c (segment_register_p): New static global.
7558 (windows_set_segment_register_p): New function.
7559 (do_windows_fetch_inferior_registers): Add special handling
7560 for segment registers.
7561 * amd64-windows-nat.c: #include "amd64-tdep.h".
7562 (amd64_windows_segment_register_p): New function.
7563 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7564 * i386-windows-nat.c: #include "i386-tdep.h".
7565 (i386_windows_segment_register_p): New function.
7566 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7567
7568 2012-05-04 Tristan Gingold <gingold@adacore.com>
7569
7570 * printcmd.c (set_command): Emit a warning if the expression is not
7571 an assignment.
7572
7573 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7574
7575 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7576 Make static.
7577
7578 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7579
7580 * stap-probe.c (stap_is_operator): Change declaration.
7581 (stap_get_opcode): Change return value.
7582 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7583 `stap_parse_argument_1'.
7584
7585 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7586
7587 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7588 debug log.
7589
7590 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7591
7592 Add two new methods global_block and static_block to gdb.Symtab
7593 objects.
7594 * NEWS (Python scripting): Add entry about the new methods.
7595 * python/py-symtab.c (stpy_global_block): New function which
7596 implements the gdb.Symtab.global_block() method.
7597 (stpy_static_block): New function which implements the
7598 gdb.Symtab.static_block() method.
7599 (symtab_object_methods): Add entries for the two new methods.
7600
7601 2012-05-03 Doug Evans <dje@google.com>
7602
7603 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7604 files.
7605
7606 2012-05-03 Yao Qi <yao@codesourcery.com>
7607
7608 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7609 space.
7610 (i386_process_record): Ditto.
7611
7612 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7613
7614 * infcall.c (unwind_on_signal_p): Make static.
7615
7616 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7617
7618 * sol-thread.c (solaris_pid_to_str): Make static.
7619 (_initialize_sol_thread): Add prototype.
7620
7621 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7622
7623 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7624
7625 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7626
7627 * MAINTAINERS: Remove myself.
7628
7629 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7630
7631 Fix --without-auto-load-safe-path for MS-Windows host platform.
7632 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7633
7634 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7635
7636 * gdb_curses.h: Undefine KEY_EVENT before including curses
7637 headers. Move "#undef MOUSE_MOVED" before any curses header
7638 inclusion.
7639
7640 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7641
7642 * features/i386/i386-mmx-linux.c: Regenerate.
7643 * features/rs6000/powerpc-32.c: Likewise.
7644 * features/rs6000/powerpc-32l.c: Likewise.
7645 * features/rs6000/powerpc-403.c: Likewise.
7646 * features/rs6000/powerpc-403gc.c: Likewise.
7647 * features/rs6000/powerpc-405.c: Likewise.
7648 * features/rs6000/powerpc-505.c: Likewise.
7649 * features/rs6000/powerpc-601.c: Likewise.
7650 * features/rs6000/powerpc-602.c: Likewise.
7651 * features/rs6000/powerpc-603.c: Likewise.
7652 * features/rs6000/powerpc-604.c: Likewise.
7653 * features/rs6000/powerpc-64.c: Likewise.
7654 * features/rs6000/powerpc-64l.c: Likewise.
7655 * features/rs6000/powerpc-750.c: Likewise.
7656 * features/rs6000/powerpc-860.c: Likewise.
7657 * features/rs6000/powerpc-e500.c: Likewise.
7658 * features/rs6000/powerpc-e500l.c: Likewise.
7659 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7660 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7661 * features/rs6000/rs6000.c: Likewise.
7662
7663 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7664
7665 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7666 variable.
7667 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7668 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7669 (stap_parse_argument) <e>: Likewise.
7670 (handle_stap_probe) <byte_order>: Likewise.
7671
7672 2012-04-30 Doug Evans <dje@google.com>
7673
7674 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7675 init_and_read_dies_worker. All callers updated.
7676 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7677 replaced with init_cutu_and_read_dies.
7678 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7679 (find_partial_die): Remove FIXME. Don't free current CU.
7680
7681 2012-04-30 Sterling Augustine <saugustine@google.com>
7682
7683 * contrib: New directory.
7684 * contrib/test_pubnames_and_indexes.py: New file.
7685
7686 2012-04-30 Doug Evans <dje@google.com>
7687
7688 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7689 All callers updated.
7690 (init_cu_die_reader): Verify the section is non-empty.
7691 (dwarf_decode_line_header): Don't dereference section->asection
7692 until we know the section is present.
7693
7694 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7695
7696 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7697 probes.
7698
7699 2012-04-29 Yao Qi <yao@codesourcery.com>
7700
7701 * gdb-code-style.el: New hook gdb-markup-hook
7702 and gdb-comment-hook.
7703
7704 2012-04-28 Doug Evans <dje@google.com>
7705
7706 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7707 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7708 objfile->obfd.
7709 * symfile.h (dwarf2_debug_sections): New member addr.
7710 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7711 (ctx_no_get_addr_index): New function.
7712 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7713 (ctx_no_get_addr_index): Declare.
7714 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7715 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7716 (dwarf_expr_ctx_funcs): Update.
7717 (needs_get_addr_index): New function.
7718 (needs_frame_ctx_funcs): Update.
7719 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7720 * dwarf2read.c: #include "gdbcore.h".
7721 (dwarf2_per_objfile): New members addr, dwo_files.
7722 (dwarf2_elf_names): Add entry for addr.
7723 (struct dwo_section_names): New type.
7724 (dwo_section_names): New static global.
7725 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7726 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7727 old debug_types_section member updated to use this.
7728 Rename member debug_types_section to info_or_types_section,
7729 all uses updated.
7730 (signatured_type): Rename member type_offset to type_offset_in_tu,
7731 all uses updated. New member type_offset_in_section.
7732 (struct dwo_sections): New type.
7733 (struct dwo_unit): New type.
7734 (struct dwo_file): New type.
7735 (die_reader_specs): New member dwo_file.
7736 (dwarf2_locate_sections): Watch for .debug_addr.
7737 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7738 (dwarf2_read_section): Get bfd of section from bfd's asection,
7739 instead of objfile.
7740 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7741 (create_signatured_type_table_from_index): Initialize
7742 sig_type->info_or_types_section.
7743 (dw2_get_file_names): Statement lists for type units with DWO files
7744 live in the DWO file.
7745 (create_debug_types_hash_table): New function.
7746 (create_all_type_units): Rewrite.
7747 (init_cu_die_reader): New arg dwo_file, all callers updated.
7748 (init_and_read_dies_worker): Get section from
7749 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7750 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7751 continue reading the CU/TU from there.
7752 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7753 updated. Get section from this_cu->info_or_types_section.
7754 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7755 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7756 DW_FORM_GNU_str_index.
7757 (hash_dwo_file, eq_dwo_file): New functions.
7758 (allocate_dwo_file_hash_table): New function.
7759 (hash_dwo_unit, eq_dwo_unit): New functions.
7760 (allocate_dwo_unit_table): New function.
7761 (dwarf2_locate_dwo_sections): New function.
7762 (struct create_dwo_info_table_data): New type.
7763 (create_debug_info_hash_table_reader): New function.
7764 (create_debug_info_hash_table): New function.
7765 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7766 (lookup_dwo_file): New function.
7767 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7768 (free_dwo_file, free_dwo_file_cleanup): New functions.
7769 (free_dwo_file_from_slot, free_dwo_files): New functions.
7770 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7771 (dwarf2_record_block_ranges): Ditto.
7772 (read_partial_die): Ditto.
7773 (process_enumeration_scope): Update to use type_offset_in_section.
7774 (read_full_die_1): New function.
7775 (read_full_die): Rewrite.
7776 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7777 DW_FORM_GNU_str_index.
7778 (read_addr_index_1, read_addr_index): New functions.
7779 (read_addr_index_from_leb128): New function.
7780 (struct dwarf2_read_addr_index_data): New type.
7781 (dwarf2_read_addr_index_reader): New function.
7782 (dwarf2_read_addr_index): New function.
7783 (read_str_index): New function.
7784 (leb128_size): New function.
7785 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7786 If processing a type unit from a DWO file, get the line section
7787 from the DWO file.
7788 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7789 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7790 DW_FORM_GNU_str_index.
7791 (lookup_die_type): Check whether section offset of type's die is
7792 known before looking it up. Remove assert. Condition can
7793 legimately happen for inter-cu type references.
7794 (dwarf_attr_name): Handle Fission attributes.
7795 (dwarf_form_name): Handle Fission forms.
7796 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7797 DW_FORM_GNU_str_index.
7798 (follow_die_sig): Update to use type_offset_in_section.
7799 (decode_locdesc): New case DW_OP_GNU_addr_index.
7800 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7801 DW_FORM_GNU_str_index.
7802 (cu_debug_loc_section): New function.
7803 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7804 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7805 Free DWO files if present.
7806 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7807
7808 Refactor DIE reading.
7809 * dwarf2read.c (dwarf2_per_objfile): Replace members
7810 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7811 (die_reader_specs): New member "die_section". Temporarily make
7812 member "buffer" non-const, pending constifying all info_ptr uses.
7813 (die_reader_func_ftype): New typedef.
7814 (dw2_get_file_names_reader): New function.
7815 (dw2_get_file_names): Rewrite.
7816 (read_and_check_type_unit_head): Rename arg type_offset to
7817 type_offset_in_tu.
7818 (create_all_type_units): Improve debugging message.
7819 Improve dummy type unit check.
7820 (init_cu_die_reader): New arg "section". All callers updated.
7821 (init_and_read_dies_worker): New function.
7822 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7823 (init_cutu_and_read_dies_no_follow): New function.
7824 (init_cutu_and_read_dies_simple): New function.
7825 (process_psymtab_comp_unit_reader): New function.
7826 (process_psymtab_comp_unit): Delete args section,
7827 is_debug_types_section. Rewrite. All callers updated.
7828 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7829 All callers updated. Rewrite.
7830 (load_partial_comp_unit_reader): New function.
7831 (load_partial_comp_unit): Rewrite.
7832 (skip_children): New arg reader. Delete args buffer, cu.
7833 All callers updated.
7834 (skip_one_die): New arg reader. Delete args buffer, cu.
7835 All callers updated.
7836 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7837 All callers updated.
7838 (load_full_comp_unit_reader): New function.
7839 (load_full_comp_unit): Rewrite.
7840 (read_comp_unit): Delete.
7841 (read_die_and_children_1): Delete, contents moved ...
7842 (read_die_and_children): ... here.
7843 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7844 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7845 All callers updated.
7846 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7847 All callers updated.
7848 (find_partial_die): Rewrite load_all_dies support.
7849 (read_attribute_value): New arg reader. Delete args abfd, cu.
7850 All callers updated.
7851 (read_attribute): New arg reader. Delete args abfd, cu.
7852 All callers updated.
7853 (load_full_type_unit): Add assert.
7854 (read_signatured_type_reader): New function.
7855 (read_signatured_type): Rewrite.
7856 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7857 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7858 All callers updated. Set per_cu->cu = NULL after freeing it.
7859 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7860 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7861 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7862 (set_die_type): Update.
7863 (get_die_type_at_offset): Update.
7864 (read_file_scope): Call prepare_one_comp_unit.
7865 (read_type_unit_scope): Ditto.
7866 (prepare_one_comp_unit): Set producer if present.
7867
7868 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7869
7870 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7871 gettext function on `error'.
7872
7873 2012-04-27 Doug Evans <dje@google.com>
7874
7875 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7876 is empty.
7877
7878 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7879 Tom Tromey <tromey@redhat.com>
7880
7881 * breakpoint.c (struct breakpoint_objfile_data)
7882 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7883 <exception_probes>: New fields.
7884 (free_breakpoint_probes): New function.
7885 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7886 `_Unwind_DebugHook'.
7887 (create_exception_master_breakpoint): Likewise.
7888 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7889 * infrun.c: Including necessary header files for handling SystemTap
7890 probes.
7891 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7892 via SystemTap probes.
7893 (check_exception_resume): Remove `func' argument. Handle exception
7894 unwinding breakpoint set via a SystemTap probe.
7895 (insert_exception_resume_from_probe): New function.
7896
7897 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7898 Tom Tromey <tromey@redhat.com>
7899 Jan Kratochvil <jan.kratochvil@redhat.com>
7900
7901 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7902 (COMMON_OBS): Likewise.
7903 (HFILES_NO_SRCDIR): Add `probe'.
7904 * NEWS: Mention support for static and SystemTap probes.
7905 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7906 SystemTap probes' arguments parser.
7907 * arm-linux-tdep.c: Including headers needed to perform the parsing
7908 of SystemTap probes' arguments.
7909 (arm_stap_is_single_operand): New function.
7910 (arm_stap_parse_special_token): Likewise.
7911 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7912 probes' arguments parser.
7913 * ax-gdb.c (require_rvalue): Removing static declaration.
7914 (gen_expr): Likewise.
7915 * ax-gdb.h (gen_expr): Declaring function.
7916 (require_rvalue): Likewise.
7917 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7918 (bkpt_probe_breakpoint_ops): New variable.
7919 (momentary_breakpoint_from_master): Set the `probe' value.
7920 (add_location_to_breakpoint): Likewise.
7921 (break_command_1): Using proper breakpoint_ops according to the
7922 argument passed by the user in the command line.
7923 (bkpt_probe_insert_location): New function.
7924 (bkpt_probe_remove_location): Likewise.
7925 (bkpt_probe_create_sals_from_address): Likewise.
7926 (bkpt_probe_decode_linespec): Likewise.
7927 (tracepoint_probe_create_sals_from_address): Likewise.
7928 (tracepoint_probe_decode_linespec): Likewise.
7929 (tracepoint_probe_breakpoint_ops): New variable.
7930 (trace_command): Using proper breakpoint_ops according to the
7931 argument passed by the user in the command line.
7932 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7933 static probes on breakpoints and tracepoints.
7934 * breakpoint.h (struct bp_location) <probe>: New field.
7935 * cli-utils.c (skip_spaces_const): New function.
7936 (extract_arg): Likewise.
7937 * cli-utils.h (skip_spaces_const): Likewise.
7938 (extract_arg): Likewise.
7939 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7940 * configure.ac: Append `stap-probe.o' to be generated when ELF
7941 support is present.
7942 * configure: Regenerate.
7943 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7944 * elfread.c: Include `probe.h' and `arch-utils.h'.
7945 (probe_key): New variable.
7946 (elf_get_probes): New function.
7947 (elf_get_probe_argument_count): Likewise.
7948 (elf_evaluate_probe_argument): Likewise.
7949 (elf_compile_to_ax): Likewise.
7950 (elf_symfile_relocate_probe): Likewise.
7951 (stap_probe_key_free): Likewise.
7952 (elf_probe_fns): New variable.
7953 (elf_sym_fns): Add `sym_probe_fns' value.
7954 (elf_sym_fns_lazy_psyms): Likewise.
7955 (elf_sym_fns_gdb_index): Likewise.
7956 (_initialize_elfread): Initialize objfile cache for static
7957 probes.
7958 * gdb_vecs.h (struct probe): New forward declaration.
7959 (probe_p): New VEC declaration.
7960 * gdbarch.c: Regenerate.
7961 * gdbarch.h: Regenerate.
7962 * gdbarch.sh (stap_integer_prefix): New variable.
7963 (stap_integer_suffix): Likewise.
7964 (stap_register_prefix): Likewise.
7965 (stap_register_suffix): Likewise.
7966 (stap_register_indirection_prefix): Likewise.
7967 (stap_register_indirection_suffix): Likewise.
7968 (stap_gdb_register_prefix): Likewise.
7969 (stap_gdb_register_suffix): Likewise.
7970 (stap_is_single_operand): New function.
7971 (stap_parse_special_token): Likewise.
7972 (struct stap_parse_info): Forward declaration.
7973 * i386-tdep.c: Including headers needed to perform the parsing
7974 of SystemTap probes' arguments.
7975 (i386_stap_is_single_operand): New function.
7976 (i386_stap_parse_special_token): Likewise.
7977 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7978 probes' arguments parser.
7979 * i386-tdep.h (i386_stap_is_single_operand): New function.
7980 (i386_stap_parse_special_token): Likewise.
7981 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7982 * mipsread.c (ecoff_sym_fns): Likewise.
7983 * objfiles.c (objfile_relocate1): Support relocation for static
7984 probes.
7985 * parse.c (prefixify_expression): Remove static declaration.
7986 (initialize_expout): Likewise.
7987 (reallocate_expout): Likewise.
7988 * parser-defs.h (initialize_expout): Declare function.
7989 (reallocate_expout): Likewise.
7990 (prefixify_expression): Likewise.
7991 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7992 of SystemTap probes' arguments.
7993 (ppc_stap_is_single_operand): New function.
7994 (ppc_stap_parse_special_token): Likewise.
7995 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7996 probes' arguments parser.
7997 * probe.c: New file, for generic statically defined probe support.
7998 * probe.h: Likewise.
7999 * s390-tdep.c: Including headers needed to perform the parsing of
8000 SystemTap probes' arguments.
8001 (s390_stap_is_single_operand): New function.
8002 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8003 probes' arguments parser.
8004 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8005 * stap-probe.c: New file, for SystemTap probe support.
8006 * stap-probe.h: Likewise.
8007 * symfile.h: Include `gdb_vecs.h'.
8008 (struct sym_probe_fns): New struct.
8009 (struct sym_fns) <sym_probe_fns>: New field.
8010 * symtab.c (init_sal): Initialize `probe' field.
8011 * symtab.h (struct probe): Forward declaration.
8012 (struct symtab_and_line) <probe>: New field.
8013 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8014 locations.
8015 (stop_tracing): Likewise.
8016 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8017
8018 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8019 Tom Tromey <tromey@redhat.com>
8020
8021 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8022 and to compile agent expressions.
8023 * infrun.c (siginfo_make_value): New argument `ignore'.
8024 (siginfo_funcs): New struct.
8025 (_initialize_infrun): New argument when calling
8026 `create_internalvar_type_lazy'.
8027 * thread.c (thread_id_make_value): New argument `ignore'.
8028 (thread_funcs): New struct.
8029 (_initialize_thread): New argument when calling
8030 `create_internalvar_type_lazy'.
8031 * tracepoint.c (sdata_make_value): New argument `ignore'.
8032 (sdata_funcs): New struct.
8033 (_initialize_tracepoint): New argument when calling
8034 `create_internalvar_type_lazy'.
8035 * value.c (make_value): New struct.
8036 (create_internalvar_type_lazy): New argument `data'.
8037 (compile_internalvar_to_ax): New function.
8038 (value_of_internalvar): Properly handling `make_value' case.
8039 (clear_internalvar): Likewise.
8040 (show_convenience): Adding `TRY_CATCH' block.
8041 * value.h (internalvar_make_value): Delete, replace by...
8042 (struct internalvar_funcs): ... this.
8043 (create_internalvar_type_lazy) <fun>: Delete argument.
8044 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8045 (compile_internalvar_to_ax): New function.
8046 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8047 (tlb_funcs): New struct.
8048 (_initialize_windows_tdep): New argument when calling
8049 `create_internalvar_type_lazy'.
8050
8051 2012-04-27 Mark Wielaard <mjw@redhat.com>
8052
8053 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8054 see whether it is an address or a constant offset from DW_AT_low_pc.
8055 (dwarf2_record_block_ranges): Likewise.
8056 (read_partial_die): Likewise.
8057
8058 2012-04-26 Mark Wielaard <mjw@redhat.com>
8059
8060 * MAINTAINERS (Write After Approval): Add myself to the list.
8061
8062 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8063
8064 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8065 (proc_prettyprint_signal): Likewise.
8066 (proc_prettyprint_faultset): Likewise.
8067 (proc_prettyprint_fault): Likewise.
8068 (proc_prettyprint_actionset): Likewise.
8069 (proc_prettyprint_flags): Move to new proc-flags.c section.
8070 (proc_prettyfprint_flags): New prototype.
8071 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8072 (proc_syscall, proc_cursig): Likewise.
8073 (proc_set_kill_on_last_close): Likewise.
8074 (proc_unset_kill_on_last_close): Likewise.
8075 (proc_set_watchpoint): Make static.
8076 (proc_delete_dead_threads): Likewise.
8077 (procfs_set_watchpoint): Likewise.
8078 (_initialize_procfs): Add prototype.
8079 * proc-events.c: Include proc-utils.h.
8080 (init_syscall_table): Make static.
8081 * proc-api.c (_initialize_proc_api): Add prototype.
8082 * proc-flags.c: Include proc-utils.h.
8083
8084 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8085
8086 * configure.ac: Add AC_ARG_PROGRAM.
8087 * configure: Regenerate.
8088
8089 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8090
8091 Fix DW_AT_lower_bound defaults for DWARF-4+.
8092 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8093 high. New variable low_default_is_valid. Implement DWARF-4+
8094 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8095 no default by the DWARF standard.
8096
8097 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8098 Maciej W. Rozycki <macro@codesourcery.com>
8099
8100 * infrun.c (handle_inferior_event): Move the check for return
8101 trampolines ahead of the check for function trampolines.
8102 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8103 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8104 (mips_str_mips16_ret_stub): Likewise.
8105 (mips_str_call_fp_stub): Likewise.
8106 (mips_str_call_stub): Likewise.
8107 (mips_str_fn_stub): Likewise.
8108 (mips_str_pic): Likewise.
8109 (mips_in_frame_stub): New function.
8110 (mips_unwind_pc): Return the return address rather than the PC
8111 if the PC of an intermediate frame is inside a call thunk.
8112 (mips_is_stub_suffix): New function.
8113 (mips_is_stub_mode): Likewise.
8114 (mips_get_mips16_fn_stub_pc): Likewise.
8115 (mips_skip_mips16_trampoline_code): Update to handle all the
8116 currently generated stub types. Don't recurse into __fn_stub
8117 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8118 Use cooked register accesses.
8119 (mips_in_return_stub): Reintroduce function.
8120 (mips_skip_trampoline_code): Traverse trampolines recursively.
8121 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8122
8123 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8124
8125 GDB 7.4.1 released.
8126
8127 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8128
8129 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8130 * features/arm-with-m-vfp-d16.xml: New file. Describes
8131 Cortex-M with VFPv4-sp-d16 FPU register layout.
8132 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8133 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8134 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8135 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8136 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8137
8138 2012-04-25 Doug Evans <dje@google.com>
8139
8140 * cli/cli-decode.c (print_doc_line): Use stream instead of
8141 current_uiout.
8142
8143 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8144
8145 * features/arm-with-iwmmxt.c: Regenerate.
8146 * features/arm-with-m-fpa-layout.c: Likewise.
8147 * features/arm-with-m.c: Likewise.
8148 * features/arm-with-neon.c: Likewise.
8149 * features/arm-with-vfpv2.c: Likewise.
8150 * features/arm-with-vfpv3.c: Likewise.
8151 * features/mips-dsp-linux.c: Likewise.
8152 * features/mips-linux.c: Likewise.
8153 * features/mips64-dsp-linux.c: Likewise.
8154 * features/mips64-linux.c: Likewise.
8155 * features/s390-linux32.c: Likewise.
8156 * features/s390-linux32v1.c: Likewise.
8157 * features/s390-linux32v2.c: Likewise.
8158 * features/s390-linux64.c: Likewise.
8159 * features/s390-linux64v1.c: Likewise.
8160 * features/s390-linux64v2.c: Likewise.
8161 * features/s390x-linux64.c: Likewise.
8162 * features/s390x-linux64v1.c: Likewise.
8163 * features/s390x-linux64v2.c: Likewise.
8164 * features/tic6x-c62x-linux.c: Likewise.
8165 * features/tic6x-c62x.c: Likewise.
8166 * features/tic6x-c64x-linux.c: Likewise.
8167 * features/tic6x-c64x.c: Likewise.
8168 * features/tic6x-c64xp-linux.c: Likewise.
8169 * features/tic6x-c64xp.c: Likewise.
8170 * target-descriptions.c: Only generate `field_type' and `type'
8171 variables when needed.
8172
8173 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8174
8175 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8176
8177 2012-04-25 Doug Evans <dje@google.com>
8178
8179 Initial pass at Go language support.
8180 * NEWS: Mention Go.
8181 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8182 go-valprint.c.
8183 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8184 (YYFILES): Add go-exp.c.
8185 (YYOBJ): Add go-exp.o.
8186 (local-maintainer-clean): Delete go-exp.c.
8187 * defs.h (enum language): Add language_go.
8188 * dwarf2read.c: #include "go-lang.h".
8189 (fixup_go_packaging): New function.
8190 (process_full_comp_unit): Call it when processing Go CUs.
8191 (dwarf2_physname): Add Go support.
8192 (read_file_scope): Handle missing language spec for GNU Go.
8193 (set_cu_language): Handle DW_LANG_Go.
8194 * go-exp.y: New file.
8195 * go-lang.h: New file.
8196 * go-lang.c: New file.
8197 * go-typeprint.c: New file.
8198 * go-valprint.c: New file.
8199 * symtab.c: #include "go-lang.h".
8200 (symbol_set_language): Handle language_go.
8201 (symbol_find_demangled_name, symbol_set_names): Ditto.
8202 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8203
8204 2012-04-24 Jim Meyering <meyering@redhat.com>
8205
8206 avoid a few strncpy-induced buffer overruns
8207 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8208 fname and psargs before trying to concatenate.
8209 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8210 "name" before applying strchr.
8211
8212 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8213
8214 * CONTRIBUTE: Use unified diff instead of context diff when
8215 generating patches.
8216
8217 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8218
8219 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8220 code. Handle JR.HB correctly.
8221
8222 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8223
8224 * mips-tdep.c
8225 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8226 with the other MIPS16 helpers.
8227
8228 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8229
8230 * observer.sh: Conditionally declare `args', thus cleaning up
8231 unused instances of this variable.
8232
8233 2012-04-24 Yao Qi <yao@codesourcery.com>
8234
8235 Revert this patch to allow breakpoint always-inserted
8236 in record target.
8237 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8238 * breakpoint.c: Include record.h.
8239 (breakpoints_always_inserted_mode): Return false when the record
8240 target is in use.
8241
8242 * breakpoint.c (iterate_over_bp_locations): New.
8243 * breakpoint.h: Declare.
8244 New typedef walk_bp_location_callback.
8245 * record.c (record_open): Call record_init_record_breakpoints.
8246 (record_sync_record_breakpoints): New.
8247 (record_init_record_breakpoints): New.
8248 * NEWS: Mention supporting breakpoint always-inserted mode in
8249 record target.
8250
8251 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8252
8253 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8254 any thread.
8255
8256 2012-04-24 Yao Qi <yao@codesourcery.com>
8257
8258 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8259 (is_catchpoint): ... it.
8260 (print_one_breakpoint_location): Caller update.
8261 * breakpoint.h: Update declaration.
8262
8263 2012-04-23 David S. Miller <davem@davemloft.net>
8264
8265 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8266
8267 2012-04-23 Tom Tromey <tromey@redhat.com>
8268
8269 * buildsym.c (add_free_pendings): Remove.
8270 * buildsym.h (add_free_pendings): Remove.
8271
8272 2012-04-23 Doug Evans <dje@google.com>
8273
8274 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8275 attr.u.unsnd instead of attr.u.addr.
8276 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8277 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8278 DW_FORM_ref_udata.
8279 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8280 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8281 DW_FORM_ref_udata.
8282 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8283
8284 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8285
8286 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8287 (mips_o32_return_value): Likewise.
8288 (mips_o64_return_value): Likewise.
8289
8290 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8291
8292 * ada-lang.c (ada_evaluate_subexp): Add cases for
8293 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8294 their treatment in eval.c.
8295
8296 2012-04-21 David S. Miller <davem@davemloft.net>
8297
8298 * sparc-tdep.c (X_DISP10): Define.
8299 (sparc_analyze_control_transfer): Handle compare-and-branch.
8300
8301 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8302
8303 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8304 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8305
8306 2012-04-20 Nigel Stephens <nigel@mips.com>
8307 Maciej W. Rozycki <macro@codesourcery.com>
8308
8309 * mips-tdep.c (mips_float_register_p): New function.
8310 (mips_convert_register_float_case_p): Use mips_float_register_p.
8311 (mips_register_type): Likewise.
8312 (mips_print_register): Likewise.
8313 (print_gp_register_row): Likewise.
8314 (mips_print_registers_info): Likewise.
8315
8316 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8317
8318 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8319 of mips16 symbols.
8320
8321 2012-04-20 Andrew Pinski <apinski@cavium.com>
8322
8323 * MAINTAINERS (Write After Approval): Add myself to the list.
8324
8325 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8326
8327 * MAINTAINERS: Update my e-mail address.
8328
8329 2012-04-20 Pedro Alves <palves@redhat.com>
8330
8331 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8332 $srcdir.
8333 * configure: Regenerate.
8334
8335 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8336
8337 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8338 declaration.
8339 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8340
8341 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8342
8343 Fix compilation compatibility with python-2.4
8344 * python/py-type.c (convert_field): Cast ADDRSTRING for
8345 PyObject_SetAttrString as non-const. New comment.
8346
8347 2012-04-19 Tom Tromey <tromey@redhat.com>
8348
8349 * top.c (quit_target): Use all_cleanups.
8350 * main.c (captured_command_loop): Use all_cleanups.
8351 * exceptions.c (throw_exception): Use all_cleanups.
8352
8353 2012-04-19 Pedro Alves <palves@redhat.com>
8354
8355 * Makefile.in (GNULIB_BUILDDIR): New.
8356 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8357 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8358 (CLEANDIRS). Remove gnulib/import.
8359 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8360 (all-lib): Ditto.
8361 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8362 (gnulib/import/Makefile): Replace gnulib/import with
8363 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8364 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8365 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8366 acx_configure_dir.m4.
8367 * acinclude.m4: Include acx_configure_dir.m4.
8368 * acx_configure_dir.m4: New file.
8369 * aclocal.m4: Regenerate.
8370 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8371 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8372 (GNULIB): New variable.
8373 (GNULIB_STDINT_H): Adjust.
8374 (AC_OUTPUT): Don't output gnulib/Makefile.
8375 * gdb/defs.h: Include build-gnulib/config.h.
8376 * aclocal.m4: Regenerate.
8377 * config.in: Regenerate.
8378 * configure: Regenerate.
8379
8380 * gnulib/Makefile.in: New file.
8381 * gnulib/configure.ac: New file.
8382 * gnulib/aclocal.m4: New file.
8383 * gnulib/config.in: New file.
8384 * gnulib/configure: New file.
8385 * gnulib/: Re-run gnulib-tool to adjust.
8386
8387 2012-04-19 Doug Evans <dje@google.com>
8388
8389 * cleanups.h (struct cleanup): Move to cleanups.c.
8390 (make_cleanup_dtor_ftype): New typedef.
8391 (make_cleanup_dtor): Use it.
8392 (ALL_CLEANUPS): Replace with ...
8393 (all_cleanups): ... this. Declare. All uses updated.
8394 * cleanups.c: #include "gdb_assert.h".
8395 (sentinel_cleanup): New static global.
8396 (SENTINEL_CLEANUP): Define.
8397 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8398 (make_my_cleanup2): Assert result is non-NULL.
8399 (all_cleanups): New function.
8400 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8401 of NULL.
8402
8403 2012-04-19 Pedro Alves <palves@redhat.com>
8404
8405 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8406 Adjust paths to gnulib imported files.
8407
8408 2012-04-19 Pedro Alves <palves@redhat.com>
8409
8410 * gnulib/: Move whole directory ...
8411 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8412 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8413 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8414 (aclocal_m4_deps): Adjust.
8415 * aclocal.m4: Regenerate.
8416 * configure: Regenerate.
8417 * configure.ac: Adjust AC_OUTPUT output.
8418
8419 2012-04-19 Yao Qi <yao@codesourcery.com>
8420
8421 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8422 (vec.o): New rule.
8423 * vec.c: Move it ...
8424 * common/vec.c: ... here.
8425 * vec.h: Move it ...
8426 * common/vec.h: ... here.
8427
8428 2012-04-19 Yao Qi <yao@codesourcery.com>
8429
8430 * gdb-code-style.el: New.
8431
8432 2012-04-18 Pedro Alves <palves@redhat.com>
8433
8434 Update gnulib from latest git.
8435 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8436
8437 * gnulib/Makefile.am: Update.
8438 * gnulib/dummy.c: Update.
8439 * gnulib/extra/arg-nonnull.h: Update.
8440 * gnulib/extra/c++defs.h: Update.
8441 * gnulib/extra/update-copyright: Update.
8442 * gnulib/extra/warn-on-use.h: Update.
8443 * gnulib/inttypes.in.h: Update.
8444 * gnulib/m4/00gnulib.m4: Update.
8445 * gnulib/m4/extensions.m4: Update.
8446 * gnulib/m4/gnulib-cache.m4: Update.
8447 * gnulib/m4/gnulib-common.m4: Update.
8448 * gnulib/m4/gnulib-comp.m4: Update.
8449 * gnulib/m4/gnulib-tool.m4: Update.
8450 * gnulib/m4/include_next.m4: Update.
8451 * gnulib/m4/inttypes-pri.m4: Update.
8452 * gnulib/m4/inttypes.m4: Update.
8453 * gnulib/m4/longlong.m4: Update.
8454 * gnulib/m4/memchr.m4: Update.
8455 * gnulib/m4/memmem.m4: Update.
8456 * gnulib/m4/mmap-anon.m4: Update.
8457 * gnulib/m4/multiarch.m4: Update.
8458 * gnulib/m4/onceonly.m4: Update.
8459 * gnulib/m4/stddef_h.m4: Update.
8460 * gnulib/m4/stdint.m4: Update.
8461 * gnulib/m4/string_h.m4: Update.
8462 * gnulib/m4/warn-on-use.m4: Update.
8463 * gnulib/m4/wchar_h.m4: Update.
8464 * gnulib/m4/wchar_t.m4: Update.
8465 * gnulib/m4/wint_t.m4: Update.
8466 * gnulib/memchr.c: Update.
8467 * gnulib/memmem.c: Update.
8468 * gnulib/stddef.in.h: Update.
8469 * gnulib/stdint.in.h: Update.
8470 * gnulib/str-two-way.h: Update.
8471 * gnulib/string.in.h: Update.
8472 * gnulib/wchar.in.h: Update.
8473
8474 * gnulib/extra/arg-nonnull.h: Delete.
8475 * gnulib/extra/c++defs.h: Delete.
8476 * gnulib/extra/warn-on-use.h: Delete.
8477 * gnulib/m4/wchar_h.m4: Delete.
8478 * gnulib/m4/wint_t.m4: Delete.
8479 * gnulib/wchar.in.h: Delete.
8480
8481 * gnulib/extra/snippets/arg-nonnull.h: New.
8482 * gnulib/extra/snippets/c++defs.h: New.
8483 * gnulib/extra/snippets/warn-on-use.h: New.
8484
8485 * aclocal.m4: Regenerate.
8486 * config.in: Regenerate.
8487 * configure: Regenerate.
8488 * gnulib/Makefile.in: Regenerate.
8489
8490 2012-04-18 Pedro Alves <palves@redhat.com>
8491
8492 Reimport the update-copyright module from gnulib
8493 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8494
8495 * configure: Regenerate.
8496 * gnulib/Makefile.am: Update.
8497 * gnulib/Makefile.in: Regenerate.
8498 * gnulib/extra/update-copyright: Update.
8499 * gnulib/m4/gnulib-cache.m4: Update.
8500 * gnulib/m4/gnulib-comp.m4: Update.
8501
8502 2012-04-18 Tristan Gingold <gingold@adacore.com>
8503
8504 * configure.ac (aix): Put -lpthread into libs.
8505 * configure: Regenerate.
8506
8507 2012-04-18 Tom Tromey <tromey@redhat.com>
8508
8509 * linespec.c (convert_linespec_to_sals): Don't use
8510 SYMBOL_OBJ_SECTION.
8511 (compare_msymbols): Arguments are minsym_and_objfile, not
8512 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8513
8514 2012-04-18 Pedro Alves <palves@redhat.com>
8515
8516 Revert gnulib/ part of:
8517 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8518 Copyright year update in most files (performed by copyright.sh).
8519
8520 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8521
8522 Fix 64-bit constants on 32-bit hosts.
8523 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8524 from unsigned long to ULONGEST.
8525 (read_signed_leb128): Change declaration return type from long to
8526 LONGEST.
8527 (dwarf2_const_value_attr): Change declaration parameter value from long
8528 to LONGEST.
8529 (dwarf2_compute_name): Change variable value from long to LONGEST.
8530 (read_unsigned_leb128): Change return type, variable result and some
8531 casts from unsigned long to ULONGEST.
8532 (read_signed_leb128): Change return type, variable result and some
8533 casts from long to LONGEST.
8534 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8535 value from long to LONGEST.
8536 (dwarf2_const_value): Change variable value from long to LONGEST.
8537 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8538 plongest and hex_string.
8539 * symtab.h (struct general_symbol_info): Change ivalue from long to
8540 LONGEST, remove the comment.
8541 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8542 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8543
8544 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8545
8546 PR symtab/7259:
8547 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8548 * ada-lang.c (ada_discrete_type_high_bound)
8549 (ada_discrete_type_low_bound): Fix function comment. Use
8550 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8551 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8552 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8553 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8554 Use TYPE_FIELD_ENUMVAL.
8555 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8556 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8557 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8558 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8559 TYPE_CODE_ENUM.
8560 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8561 * dwarf2read.c (process_enumeration_scope): Likewise.
8562 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8563 field.bitpos.
8564 (class StructMainTypePrettyPrinter): Support also
8565 FIELD_LOC_KIND_ENUMVAL.
8566 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8567 TYPE_CODE_ENUM.
8568 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8569 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8570 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8571 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8572 field enumval.
8573 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8574 accommodate enumval.
8575 (struct call_site): Adjust loc_kind to accommodate enumval.
8576 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8577 (TYPE_FIELD_ENUMVAL): New macros.
8578 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8579 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8580 TYPE_CODE_ENUM.
8581 * p-typeprint.c (pascal_type_print_base): Likewise.
8582 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8583 enumval.
8584 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8585 * python/py-type.c (convert_field): New variable addrstring. Use
8586 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8587 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8588 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8589 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8590 TYPE_CODE_ENUM.
8591 * valprint.c (generic_val_print): Likewise.
8592
8593 2012-04-17 Doug Evans <dje@google.com>
8594
8595 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8596
8597 * dwarf2read.c: Whitespace fixes.
8598 (lookup_signatured_type): Tweak comment.
8599 (get_die_type_at_offset): Fix comment.
8600
8601 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8602
8603 * xcoffread.c (xcoff_secnum_to_sections): New function.
8604 (secnum_to_section, secnum_to_bfd_section): Reimplement
8605 using xcoff_secnum_to_sections. Rename "secnum" parameter
8606 into "n_scnum".
8607 (RECORD_MINIMAL_SYMBOL): Delete.
8608 (record_minimal_symbol): New function.
8609 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8610 by call to record_minimal_symbol and set misc_func_recorded
8611 to 1. Set last_csect_sec to the XCOFF section index instead
8612 of GDB's section_offset index. Update calls to
8613 prim_record_minimal_symbol_and_info to pass the BFD section
8614 as well.
8615
8616 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8617
8618 * xcoffread.c (read_xcoff_symtab): Delete variables
8619 last_csect_val and last_csect_sec and associated code.
8620
8621 2012-04-17 Doug Evans <dje@google.com>
8622
8623 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8624 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8625 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8626 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8627
8628 * cleanups.h: New file.
8629 * cleanups.c: New file.
8630 * Makefile.in (SFILES): Add cleanups.c.
8631 (HFILES_NO_SRCDIR): Add cleanups.h.
8632 (COMMON_OBS): Add cleanups.o.
8633 * defs.h (struct cleanup): Moved to cleanups.h.
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 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8643 (do_cleanups,do_final_cleanups): Ditto.
8644 (discard_cleanups,discard_final_cleanups): Ditto
8645 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8646 (save_cleanups,save_final_cleanups): Ditto.
8647 (restore_cleanups,restore_final_cleanups): Ditto.
8648 (null_cleanup): Ditto.
8649 (make_my_cleanup,make_my_cleanup2): Ditto.
8650 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8651
8652 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8653 make_my_cleanup.
8654 (make_cleanup_dyn_string_delete): Ditto.
8655 (make_cleanup_ui_file_delete): Ditto.
8656 (make_cleanup_ui_out_redirect_pop): Ditto.
8657 (make_cleanup_free_section_addr_info): Ditto.
8658 (make_cleanup_restore_integer): Ditto.
8659 (make_cleanup_unpush_target): Ditto.
8660 (make_cleanup_value_free_to_mark): Ditto.
8661 (make_cleanup_value_free): Ditto.
8662 (make_cleanup_free_so): Ditto.
8663
8664 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8665
8666 New option "set debug auto-load".
8667 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8668 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8669 (auto_load_safe_path_vec_update)
8670 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8671 if DEBUG_AUTO_LOAD.
8672 (file_is_auto_load_safe): New parameters debug_fmt and ....
8673 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8674 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8675 caller by explanatory string.
8676 (_initialize_auto_load): Register "set debug auto-load".
8677 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8678 and ....
8679 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8680 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8681 by explanatory string.
8682 * main.c (captured_main): Likewise.
8683 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8684 (source_section_scripts): Likewise.
8685
8686 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8687
8688 New option "set auto-load safe-path".
8689 * NEWS: New commands "set auto-load safe-path"
8690 and "show auto-load safe-path".
8691 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8692 (auto_load_safe_path, auto_load_safe_path_vec)
8693 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8694 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8695 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8696 (source_gdb_script_for_objfile): New variable is_safe. Call
8697 file_is_auto_load_safe. Return if it is not.
8698 (struct loaded_script): New field loaded.
8699 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8700 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8701 output "Missing" to "No".
8702 (_initialize_auto_load): New variable cmd. Initialize
8703 auto_load_safe_path. Register "set auto-load safe-path",
8704 "show auto-load safe-path" and "add-auto-load-safe-path".
8705 * auto-load.h (maybe_add_script): Add parameter loaded.
8706 (file_is_auto_load_safe): New declaration.
8707 * config.in: Regenerate.
8708 * configure: Regenerate.
8709 * configure.ac: New parameters --with-auto-load-safe-path
8710 and --without-auto-load-safe-path.
8711 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8712 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8713 * main.c (captured_main): Check file_is_auto_load_safe for
8714 LOCAL_GDBINIT.
8715 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8716 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8717 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8718 not.
8719
8720 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8721
8722 auto-load: Implementation.
8723 * NEWS: New descriptions for "info auto-load",
8724 "info auto-load gdb-scripts", "info auto-load python-scripts",
8725 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8726 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8727 and "show auto-load-scripts". New description for "set auto-load",
8728 "show auto-load", "set auto-load gdb-scripts",
8729 "show auto-load gdb-scripts", "set auto-load python-scripts",
8730 "show auto-load python-scripts", "set auto-load local-gdbinit",
8731 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8732 "show auto-load libthread-db".
8733 * auto-load.c: Remove include python/python-internal.h. Add includes
8734 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8735 cli/cli-setshow.h.
8736 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8737 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8738 (gdbpy_global_auto_load): Rename to ...
8739 (global_auto_load): ... here.
8740 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8741 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8742 (script_language_gdb, source_gdb_script_for_objfile): New.
8743 (struct loaded_script): New field language.
8744 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8745 LANGUAGE.
8746 (maybe_add_script): Add parameter language. Drop redundant
8747 entry.full_path initialization. Initialize entry.language and
8748 (*slot)->language.
8749 (auto_load_objfile_script): Change parameter suffix to language.
8750 Remove the call of maybe_add_script.
8751 Call language->source_script_for_objfile.
8752 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8753 New.
8754 (collect_matching_scripts): Adjust it for
8755 struct collect_matching_scripts_data.
8756 (auto_load_info_scripts_pattern_nl): New variable.
8757 (info_auto_load_scripts): Rename to ...
8758 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8759 for struct collect_matching_scripts_data.
8760 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8761 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8762 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8763 (auto_load_info_cmdlist_get): New.
8764 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8765 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8766 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8767 "info auto-load local-gdbinit".
8768 * auto-load.h (struct script_language): New.
8769 (gdbpy_global_auto_load): Rename to ...
8770 (global_auto_load): ... here.
8771 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8772 (auto_load_local_gdbinit_loaded): New declarations.
8773 (maybe_add_script): New parameter language.
8774 (auto_load_objfile_script): Change parameter suffix to language.
8775 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8776 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8777 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8778 declarations.
8779 * linux-thread-db.c: Include auto-load.h and ctype.h.
8780 (auto_load_thread_db, show_auto_load_thread_db): New.
8781 (struct thread_db_info): New field filename.
8782 (delete_thread_db_info): Call xfree for FILENAME.
8783 (try_thread_db_load): Initialize FILENAME.
8784 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8785 if !AUTO_LOAD_THREAD_DB.
8786 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8787 (_initialize_thread_db): Install auto_load_thread_db
8788 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8789 as "info auto-load libthread-db".
8790 * main.c (captured_main): Rename gdbpy_global_auto_load to
8791 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8792 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8793 (print_gdb_help): Extend the help for 'local init file'.
8794 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8795 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8796 (auto_load_scripts): Rename to ...
8797 (auto_load_python_scripts): ... here, update the comment.
8798 (gdbpy_load_auto_script_for_objfile): New declaration.
8799 (show_auto_load_python_scripts, script_language_python)
8800 (gdbpy_load_auto_script_for_objfile): New.
8801 (source_section_scripts): Refactor the code.
8802 (load_auto_scripts_for_objfile): Rename to ...
8803 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8804 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8805 (info_auto_load_python_scripts): New.
8806 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8807 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8808 Register "set auto-load-scripts" as its deprecated alias. Register
8809 "info auto-load python-scripts". Register "info auto-load-scripts" as
8810 its deprecated alias.
8811 (load_auto_scripts_for_objfile): Rename to ...
8812 (gdbpy_load_auto_scripts_for_objfile): ... here.
8813 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8814 (gdbpy_load_auto_scripts_for_objfile): ... here.
8815
8816 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8817
8818 auto-load: Move files.
8819 * Makefile.in (SFILES): Add auto-load.c.
8820 (HFILES_NO_SRCDIR): Add auto-load.h.
8821 (COMMON_OBS): Add auto-load.o.
8822 (distclean): Change .gdbinit for gdb-gdb.gdb.
8823 * auto-load.c: New file, with parts from python/py-auto-load.c.
8824 * auto-load.h: New file, with parts from python/python.h.
8825 * configure: Regenerate.
8826 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8827 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8828 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8829 * main.c: Include auto-load.h.
8830 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8831 command.h, observer.h and progspace.h to auto-load.c. Add include
8832 auto-load.h.
8833 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8834 (struct loaded_script, auto_load_pspace_data)
8835 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8836 (hash_loaded_script_entry, eq_loaded_script_entry)
8837 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8838 (maybe_add_script): Move to auto-load.c.
8839 (source_section_scripts): Change maybe_add_script parameters passing,
8840 use script_not_found_warning_print.
8841 (clear_section_scripts, auto_load_objfile_script)
8842 (auto_load_new_objfile, loaded_script_ptr)
8843 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8844 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8845 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8846 auto_load_new_objfile and info_auto_load_scripts initizations to
8847 auto-load.c.
8848 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8849
8850 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8851
8852 Code cleanup.
8853 * charset.c (find_charset_names): Remove variables ix and elt.
8854 Use free_char_ptr_vec.
8855 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8856 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8857 debugdir_end. New variable debugdir_len.
8858 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8859 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8860 declarations.
8861 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8862 and elt. Use free_char_ptr_vec.
8863 * source.c (add_path): Remove variables argv, arg and argv_index.
8864 New variables dir_vec, back_to, ix and name.
8865 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8866 make_cleanup_freeargv. Remove variable separator. Simplify the code
8867 no longer expecting DIRNAME_SEPARATOR.
8868 (openp): Remove variable p, p1 and len. New variables dir_vec,
8869 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8870 no longer expecting DIRNAME_SEPARATOR.
8871 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8872 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8873 debugdir_end.
8874 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8875 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8876 (dirnames_to_char_ptr_vec): New functions.
8877
8878 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8879
8880 Code cleanup.
8881 * source.c (add_path): Remove always true conditional 'p == 0' and
8882 unindent its code block.
8883
8884 2012-04-17 Pedro Alves <palves@redhat.com>
8885
8886 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8887 (FIELD_BITPOS_LVAL): ... this.
8888 (FIELD_BITPOS): New.
8889 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8890 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8891 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8892 SET_FIELD_BITPOS.
8893 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8894 SET_FIELD_BITPOS.
8895 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8896 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8897 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8898 SET_FIELD_BITPOS.
8899
8900 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8901
8902 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8903 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8904 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8905 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8906 * jv-lang.c (java_link_class_type): Likewise, once.
8907 * stabsread.c (read_enum_type): Likewise.
8908
8909 2012-04-16 Yao Qi <yao@codesourcery.com>
8910
8911 * common/agent.c (agent_run_command): Add one more parameter `len'.
8912 Update callers.
8913 * common/agent.h: Update declaration.
8914 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8915 Update.
8916 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8917
8918 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8919
8920 PR mi/13393
8921 * value.c (value_actual_type): New function.
8922 * value.h (value_actual_type): New declaration.
8923 * varobj.c (update_type_if_necessary): New function.
8924 (varobj_create): Call value_actual_type instead of
8925 value_type.
8926 (install_dynamic_child): distinct changed and type changed MI variable
8927 objects.
8928 (update_dynamic_varobj_children): Updated for install_dynamic_child
8929 change. All callers updated.
8930 (varobj_update): Support for MI variable object type change if
8931 the value changed and RTTI is used to determine the type.
8932 (create_child_with_value): Call value_actual_type instead of
8933 value_type.
8934 (adjust_value_for_child_access): Extended with a new parameter which
8935 specify whether the given value should be casted to enclosing type.
8936 All callers updated.
8937
8938 2012-04-14 Yao Qi <yao@codesourcery.com>
8939
8940 Import gnulib module inttypes from git
8941 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8942 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8943 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8944 gnulib/m4/inttypes-pri.m4
8945 * aclocal.m4, config.in, configure: Regenerated.
8946 * gnulib/Makefile.am: Update.
8947 * gnulib/Makefile.in: Update.
8948 * gnulib/m4/gnulib-cache.m4: Update.
8949 * gnulib/m4/gnulib-comp.m4: Update.
8950 * gnulib/inttypes.in.h: New.
8951 * gnulib/m4/inttypes-pri.m4: New.
8952 * gnulib/m4/inttypes.m4: New.
8953
8954 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8955
8956 * infrun.c (resume): Update PC address to the real PC after
8957 preparing to do displaced stepping.
8958
8959 2012-04-12 Doug Evans <dje@google.com>
8960
8961 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8962 All callers updated.
8963
8964 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8965
8966 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8967
8968 2012-04-12 Doug Evans <dje@google.com>
8969
8970 * dwarf2read.c (create_all_type_units): Renamed from
8971 create_debug_types_hash_table. All callers updated.
8972
8973 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8974 local type_sig to sig_type, type_offset to type_offset_in_tu.
8975 (hash_signatured_type): Renamed from hash_type_signature,
8976 all callers updated.
8977 (eq_signatured_type): Renamed from eq_type_signature,
8978 all callers updated.
8979 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8980 (process_enumeration_scope): Ditto.
8981 (lookup_signatured_type_at_offset): Ditto.
8982 (load_full_type_unit, read_signatured_type): Ditto.
8983
8984 2012-04-12 Yao Qi <yao@codesourcery.com>
8985
8986 * remote.c (async_remote_interrupt): Correct function name in
8987 debug message.
8988 (async_remote_interrupt_twice): Ditto.
8989
8990 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8991
8992 * source.c (find_and_open_source): Consistently pass resulting
8993 full path through xfullpath.
8994
8995 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8996
8997 Provide more specific displaced-stepping memory error message.
8998 * infrun.c (displaced_step_prepare): New variable status. Call
8999 target_read_memory instead of read_memory, provide more specific
9000 error message.
9001
9002 2012-04-11 Tristan Gingold <gingold@adacore.com>
9003
9004 PR gdb/13901
9005 * darwin-nat.c (darwin_execvp): Revert previous patch.
9006
9007 2012-04-11 Tristan Gingold <gingold@adacore.com>
9008
9009 PR gdb/13901
9010 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9011 in case of change.
9012
9013 2012-04-11 Tristan Gingold <gingold@adacore.com>
9014
9015 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9016 warning.
9017
9018 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9019
9020 New command 'explore' which helps explore values and types in
9021 scope.
9022 * NEWS: Add an entry about the new 'explore' command.
9023 * data-directory/Makefile.in: Add gdb/command/explore.py
9024 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9025 command using the GDB Python API.
9026
9027 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9028
9029 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9030 extension in jump target calculation.
9031
9032 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9033
9034 * mips-tdep.c (mips32_next_pc): Handle JALX.
9035
9036 2012-04-10 Yao Qi <yao@codesourcery.com>
9037
9038 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9039
9040 2012-04-10 Yao Qi <yao@codesourcery.com>
9041
9042 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9043 and gnulib/m4/gnulib-tool.m4.
9044
9045 2012-04-10 Doug Evans <dje@google.com>
9046
9047 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9048 (load_partial_dies): Clarify comment.
9049 (find_partial_die): Support rereading type units.
9050 Clarify CU handling, if we know offset is in CU, don't search for the
9051 containing CU. Add comment regarding memory waste.
9052
9053 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9054
9055 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9056 i386/x32-avx and i386/x32-avx-linux.
9057 (i386/x32-expedite): New.
9058 (i386/x32-linux-expedite): Likewise.
9059 (i386/x32-avx-expedite): Likewise.
9060 (i386/x32-avx-linux-expedite): Likewise.
9061 ($(outdir)/i386/x32.dat): Likewise.
9062 ($(outdir)/i386/x32-linux.dat): Likewise.
9063 ($(outdir)/i386/x32-avx.dat): Likewise.
9064 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9065
9066 * features/i386/x32-avx-linux.xml: New file.
9067 * features/i386/x32-avx.xml: Likewise.
9068 * features/i386/x32-core.xml: Likewise.
9069 * features/i386/x32-linux.xml: Likewise.
9070 * features/i386/x32.xml: Likewise.
9071
9072 * features/i386/x32-avx-linux.c: New. Generated.
9073 * features/i386/x32-avx.c: Likewise.
9074 * features/i386/x32-linux.c: Likewise.
9075 * features/i386/x32.c: Likewise.
9076 * regformats/i386/x32-avx-linux.dat: Likewise.
9077 * regformats/i386/x32-avx.dat: Likewise.
9078 * regformats/i386/x32-linux.dat: Likewise.
9079 * regformats/i386/x32.dat: Likewise.
9080
9081 2012-04-10 Tristan Gingold <gingold@adacore.com>
9082
9083 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9084 code to kill the inferior.
9085
9086 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9087
9088 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9089 defines.
9090 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9091 defines.
9092 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9093 (yyvsp): New defines.
9094 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9095 defines.
9096 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9097 defines.
9098 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9099 defines.
9100 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9101 defines.
9102 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9103 defines.
9104
9105 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9106
9107 * sparc64-tdep.c (sparc64_store_arguments)
9108 (sparc64_store_arguments): Fix coding style.
9109
9110 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9111
9112 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9113 complex floats, adjust some related comments and tighten a related
9114 assertion.
9115 (sparc64_extract_return_value): Handle complex floats.
9116
9117 2012-04-07 Doug Evans <dje@google.com>
9118
9119 * dwarf2read.c (load_partial_dies): Change condition to assert.
9120
9121 2012-04-06 Doug Evans <dje@google.com>
9122
9123 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9124 "mov %rsp,%rbp".
9125
9126 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9127
9128 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9129 fencepost error.
9130 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9131 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9132 architecture.
9133
9134 2012-04-05 Keith Seitz <keiths@redhat.com>
9135
9136 * linespec.c (decode_compound): Remove.
9137 (enum offset_relative_sign): New enum.
9138 (struct line_offset): New struct.
9139 (struct linespec): New struct.
9140 (struct linespec_state): Move file_symtabs,
9141 user_filename, and user_function into struct linespec.
9142 Make result an anonymous struct holding vectors of
9143 symbolp and minsym_and_objfile_d.
9144 Add language member.
9145 (enum ls_token_type): New enum.
9146 (linespec_keywords): New array.
9147 (struct ls_token): New struct.
9148 (struct ls_parser): New struct.
9149 (linespec_lexer_lex_number): New function.
9150 (linespec_lexer_lex_keyword): New function.
9151 (is_ada_operator): New function.
9152 (skip_quote_char): New function.
9153 (copy_token_string): New function.
9154 (is_closing_quote_enclosed): New function.
9155 (find_parameter_list_end): New function.
9156 (linespec_lexer_lex_string): New function.
9157 (linespec_lexer_lex_one): New function.
9158 (linespec_lexer_consume_token): New function.
9159 (linespec_lexer_peek_token): New function.
9160 (cplusplus_error): Remove unused function.
9161 (find_methods): Update comment.
9162 (find_toplevel_char): Return const.
9163 (is_objc_method_format): Remove unused function.
9164 (find_toplevel_string): New function.
9165 (is_linespec_boundary): Remove.
9166 (symbol_not_found_error): New function.
9167 (find_method_overload_end): Remove function.
9168 (unexpected_linespec_error): New function.
9169 (keep_name_info): Remove.
9170 (linespec_parse_line_offset): New function.
9171 (linespec_parse_basic): New function.
9172 (canonicalize_linespec): New function.
9173 (decode_line_internal): Remove.
9174 (create_sals_line_offset): New function adapted from
9175 decode_all_digits.
9176 (convert_linespec_to_sals): New function.
9177 (parse_linespec): New function.
9178 (linespec_parser_new): New function.
9179 (linespec_state_destructor): Change parameter type to
9180 struct linespec_state *.
9181 Add language parameter.
9182 Remove freeing of moved members.
9183 (linespec_parser_delete): New function.
9184 (decode_line_full): Use parse_linespec and linespec_parser_new.
9185 (decode_line_1): Likewise.
9186 (decode_indirect): Rename to ...
9187 (linespec_expression_to_pc): ... this and rewrite
9188 to simply find CORE_ADDR, storing this result for later
9189 conversion to SALs.
9190 (locate_first_half): Remove.
9191 (deocde_objc): Add parameter LS.
9192 Initialize new struct collect_info members.
9193 Handle minimal symbols, too.
9194 (decode_compound): Delete.
9195 (lookup_prefix_sym): Rewrite.
9196 (compare_msymbols): New function.
9197 (find_method): Rewrite.
9198 Do not call cplusplus_error.
9199 (symtabs_from_filename): Rewrite.
9200 (collect_function_symbols): Delete.
9201 (find_function_symbols): Rewrite without ARGPTR-style
9202 processing.
9203 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9204 (decode_dollar): Adapted and renamed to ...
9205 (linespec_parse_variable): ... this.
9206 (find_linespec_symbols): New function.
9207 (decode_label): Adapted and renamed to ...
9208 (find_label_symbols): ... this.
9209 (decode_digits_list_mode): Add and use LS argument.
9210 (decode_digits_ordinary): Likewise.
9211 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9212 If in list mode, allow any symbol class. Otherwise, only
9213 permit LOC_BLOCK symbols.
9214 (minsym_found): Update comments.
9215 (search_minsyms_for_name): Do not convert the matching symbol
9216 into a SAL. Simply push the symbol and objfile into the
9217 result vector.
9218 (decode_variable): Delete. Contents adapted into
9219 find_linespec_symbols.
9220
9221 * cp-support.c (SKIP_SPACE): Remove.
9222 (operator_tokens): Remove unused global.
9223 (cp_validate_operator): Remove.
9224 * cp-support.h (cp_validate_operator): Remove declaration.
9225
9226 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9227
9228 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9229 for TYPE_VPTR_FIELDNO.
9230 * valprint.c (valprint_check_validity): Make it global, move the
9231 function comment ...
9232 * value.h (valprint_check_validity): ... to this new declaration.
9233
9234 2012-04-02 Tristan Gingold <gingold@adacore.com>
9235
9236 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9237 the STATE32 api for i386 state.
9238 (i386_darwin_store_inferior_registers): Likewise.
9239
9240 2012-04-02 Tristan Gingold <gingold@adacore.com>
9241
9242 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9243 SS offset.
9244 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9245 format_string.
9246
9247 2012-04-02 Tristan Gingold <gingold@adacore.com>
9248
9249 PR gdb/13901
9250 * darwin-nat.c (darwin_execvp): Set binary preference.
9251
9252 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9253
9254 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9255
9256 2012-03-30 Tom Tromey <tromey@redhat.com>
9257
9258 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9259 of TRY_CATCH. Fix error handling.
9260 * python/py-value.c (convert_value_from_python): Move 'old'
9261 declaration to innermost scope.
9262
9263 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9264 Andrey Smirnov <andrew.smirnov@gmail.com>
9265
9266 -Wshadow warning fix.
9267 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9268 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9269 Adjust code accordingly.
9270
9271 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9272
9273 * ada-lang.c (symbol_completion_add): Rename parameter
9274 "encoded" into "encoded_p". Ajust code and documentation
9275 accordingly.
9276
9277 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9278 Andrey Smirnov <andrew.smirnov@gmail.com>
9279
9280 -Wshadow warning fix.
9281 * ada-lang.c (symbol_completion_add): Rename parameter
9282 "wild_match" into wild_match_p. Update code and documentation
9283 accordingly.
9284
9285 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9286
9287 * ada-lang.c (symbol_completion_match): Rename parameter
9288 "encoded" into "encoded_p". Ajust code and documentation
9289 accordingly.
9290
9291 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9292 Andrey Smirnov <andrew.smirnov@gmail.com>
9293
9294 -Wshadow warning fix.
9295 * ada-lang.c (symbol_completion_match): Rename parameter
9296 "wild_match" into "wild_match_p". Adjust code and function
9297 documentation accordingly.
9298
9299 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9300 Andrey Smirnov <andrew.smirnov@gmail.com>
9301
9302 -Wshadow warning fix.
9303 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9304 "symbol_info" into "info". Adjust code accordingly.
9305 (ada_lookup_symbol): Likewise.
9306
9307 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9308
9309 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9310 of this function's documentation.
9311
9312 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9313 Andrey Smirnov <andrew.smirnov@gmail.com>
9314
9315 -Wshadow warning fix.
9316 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9317 variable into "wild_match_p". Adjust code accordingly.
9318
9319 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9320 Andrey Smirnov <andrew.smirnov@gmail.com>
9321
9322 -Wshadow warning fix.
9323 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9324 parameter into "wild_match_p". Adjust code accordingly.
9325 Document this parameter in the function description.
9326
9327 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9328 Andrey Smirnov <andrew.smirnov@gmail.com>
9329
9330 -Wshadow warning fix.
9331 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9332 "wild_match" parameter to "wild_match_p" (-Wshadow).
9333
9334 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9335
9336 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9337 in function documentation.
9338
9339 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9340 Andrey Smirnov <andrew.smirnov@gmail.com>
9341
9342 -Wshadow warning fix.
9343 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9344 variable into wild_match_p. Adjust code accordingly.
9345
9346 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9347 Andrey Smirnov <andrew.smirnov@gmail.com>
9348
9349 * ada-valprint.c (ada_val_print_1): Move the code handling
9350 TYPE_CODE_ENUM inside its own lexical block. Declare
9351 variables len and val there, instead of in the function's
9352 top level block. Avoid declaring deref_val again in a way
9353 that shadows another variable of the same name declared
9354 in one of the up-level blocks. Just re-use the up-level
9355 variable instead.
9356
9357 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9358
9359 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9360 Replace block_found argument by symbol_info. Adjust
9361 implementation accordingly. Add function documentation.
9362 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9363 Fix documentation.
9364 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9365 * ada-exp.y (write_object_renaming): Adjust to new
9366 ada_lookup_encoded_symbol API.
9367
9368 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9369
9370 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9371 documentation.
9372
9373 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9374
9375 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9376 (v850_register_name): Add the mpu and fpu register names.
9377 (v850e_register_name): Add the mpu and fpu register names.
9378 (v850e2_register_name): New function.
9379 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9380 bfd_mach_v850e2v3.
9381
9382 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9383
9384 * NEWS: Add entry for Ada varobj support.
9385
9386 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9387
9388 * varobj.c (default_value_is_changeable_p): New function,
9389 extracted from varobj_value_is_changeable_p. Add declaration.
9390 (ada_value_is_changeable_p): New function, extracted from
9391 varobj_value_is_changeable_p. Add declaration.
9392 (struct language_specific): New field "value_is_changeable_p".
9393 (languages): Add entries for new field.
9394 (varobj_create): Set language before calling install_new_value.
9395 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9396 "value_is_changeable_p" language callback.
9397
9398 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9399
9400 * ada-varobj.h, ada-varobj.c: New files.
9401 * Makefile.in (SFILES): Add ada-varobj.c.
9402 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9403 (COMMON_OBS): Add ada-varobj.o.
9404
9405 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9406
9407 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9408 (struct language_specific): New field "value_has_mutated".
9409 (languages): Set field "value_has_mutated" in each entry of array.
9410 (varobj_value_has_mutated): New function.
9411 (varobj_udpdate): Add handling of type mutation.
9412 (value_of_root): Add handling of type mutation.
9413 (ada_value_has_mutated): New function.
9414
9415 2012-03-28 Pedro Alves <palves@redhat.com>
9416
9417 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9418 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9419
9420 2012-03-28 Tom Tromey <tromey@redhat.com>
9421
9422 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9423 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9424 before returning.
9425
9426 2012-03-28 Tom Tromey <tromey@redhat.com>
9427
9428 * .dir-locals.el: New file.
9429
9430 2012-03-28 Pedro Alves <palves@redhat.com>
9431
9432 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9433
9434 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9435
9436 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9437 handling for r0.
9438
9439 2012-03-27 Pedro Alves <palves@redhat.com>
9440
9441 Eliminate struct ui_stream.
9442
9443 * ui-out.h (struct ui_stream): Delete.
9444 (ui_out_field_stream): Adjust prototype.
9445 (ui_out_stream_new, ui_out_stream_delete)
9446 (make_cleanup_ui_out_stream_delete): Delete declarations.
9447 * ui-out.c (ui_out_field_stream): Change prototype to take a
9448 ui_file instead of a ui_stream. Adjust.
9449 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9450 (make_cleanup_ui_out_stream_delete): Delete.
9451 * breakpoint.c (print_breakpoint_location)
9452 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9453 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9454 * disasm.c (dump_insns): Ditto.
9455 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9456 prototype.
9457 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9458 ui_stream/ui_out_stream_new.
9459 * infcmd.c (print_return_value): Ditto.
9460 * osdata.c (info_osdata_command): Don't allocate a local
9461 ui_stream.
9462 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9463 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9464 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9465 allocate a local ui_stream.
9466 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9467 instead of ui_stream/ui_out_stream_new.
9468 (list_args_or_locals): Don't allocate a local ui_stream.
9469 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9470 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9471 ui_stream/ui_out_stream_new.
9472 * cli/cli-setshow.c (do_setshow_command): Ditto.
9473
9474 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9475
9476 * arm-linux-tdep.c (arm_linux_init_abi): Call
9477 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9478 * arm-tdep.c (arm_process_record): New function.
9479 (deallocate_reg_mem): New function.
9480 (decode_insn): New function.
9481 (thumb_record_branch): New function.
9482 (thumb_record_ldm_stm_swi(): New function.
9483 (thumb_record_misc): New function.
9484 (thumb_record_ld_st_stack): New function.
9485 (thumb_record_ld_st_imm_offset): New function.
9486 (thumb_record_ld_st_reg_offset(): New function.
9487 (thumb_record_add_sub_cmp_mov): New function.
9488 (thumb_record_shift_add_sub): New function.
9489 (arm_record_coproc_data_proc): New function.
9490 (arm_record_coproc): New function.
9491 (arm_record_b_bl): New function.
9492 (arm_record_ld_st_multiple): New function.
9493 (arm_record_ld_st_reg_offset): New function.
9494 (arm_record_ld_st_imm_offset): New function.
9495 (arm_record_data_proc_imm): New function.
9496 (arm_record_data_proc_misc_ld_str): New function.
9497 (arm_record_extension_space): New function.
9498 (arm_record_strx): New function.
9499 (sbo_sbz): New function.
9500 (struct insn_decode_record): New structure for arm insn record.
9501 (REG_ALLOC): New macro for reg allocations.
9502 (MEM_ALLOC): New macro for memory allocations.
9503 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9504
9505 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9506
9507 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9508 (store_register): Likewise.
9509
9510 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9511
9512 * MAINTAINERS (Write After Approval): Add myself to the list.
9513
9514 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9515
9516 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9517 Describe also the option "auto".
9518
9519 2012-03-22 Richard Henderson <rth@redhat.com>
9520
9521 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9522 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9523
9524 2012-03-22 Richard Henderson <rth@redhat.com>
9525
9526 * jit.c (jit_read_code_entry): Compute alignment and offset of
9527 int64_t member before computing entry_size.
9528
9529 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9530
9531 Python scripting: Add new method Value.referenced_value to
9532 gdb.Value which can dereference pointer as well as reference
9533 values.
9534 * NEWS: Add entry under 'Python scripting' about the new method
9535 Value.referenced_value on gdb.Value objects.
9536 * python/py-value.c (valpy_referenced_value): New function
9537 defining a new method on gdb.Value objects which can dereference
9538 pointer and reference values.
9539
9540 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9541
9542 * MAINTAINERS (Write After Approval): Add myself to the list.
9543
9544 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9545
9546 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9547 in addition to "main".
9548
9549 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9550
9551 * expression.h (op_name): Add declaration.
9552 * expprint.c (op_name): Remove declaration. Make non-static.
9553 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9554
9555 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9556
9557 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9558 of struct siginfo.
9559 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9560 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9561 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9562 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9563 (linux_nat_get_siginfo): Likewise.
9564 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9565 (linux_nat_get_siginfo): Likewise.
9566 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9567 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9568 * procfs.c (gdb_siginfo_t): Likewise.
9569
9570 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9571
9572 * .gitignore: Ignore more files.
9573
9574 2012-03-20 Pedro Alves <palves@redhat.com>
9575
9576 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9577 returns.
9578
9579 2012-03-20 Yao Qi <yao@codesourcery.com>
9580
9581 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9582 comment.
9583
9584 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9585
9586 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9587 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9588 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9589 sect_offset.
9590 * dwarf2expr.h (cu_offset, sect_offset): New types.
9591 (struct dwarf_expr_context_funcs) <dwarf_call>
9592 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9593 sect_offset.
9594 (struct dwarf_expr_context) <len>: Improve the comment.
9595 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9596 cu_offset and sect_offset.
9597 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9598 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9599 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9600 * dwarf2loc.h: Include dwarf2expr.h.
9601 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9602 and sect_offset.
9603 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9604 Improve the comment.
9605 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9606 (struct signatured_type, struct line_header, struct partial_die_info)
9607 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9608 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9609 (get_die_type_at_offset, create_cus_from_index)
9610 (create_signatured_type_table_from_index, dw2_get_file_names)
9611 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9612 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9613 (create_debug_types_hash_table, process_psymtab_comp_unit)
9614 (load_partial_comp_unit, create_all_comp_units)
9615 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9616 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9617 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9618 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9619 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9620 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9621 (find_partial_die, read_attribute_value, lookup_die_type)
9622 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9623 (is_ref_attr): New function comment.
9624 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9625 Use cu_offset and sect_offset.
9626 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9627 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9628 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9629 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9630 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9631 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9632 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9633 sect_offset.
9634
9635 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9636
9637 Code cleanup.
9638 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9639 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9640 with xfree.
9641 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9642
9643 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9644
9645 * NEWS: Describe new options --init-command=FILE, -ix and
9646 --init-eval-command=COMMAND, -iex.
9647 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9648 CMDARG_INIT_COMMAND.
9649 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9650 "init-command", "init-eval-command", "ix" and "iex" to the variable
9651 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9652 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9653 (print_gdb_help): Describe --init-command=FILE, -ix and
9654 --init-eval-command=COMMAND, -iex.
9655
9656 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9657
9658 Code cleanup.
9659 * main.c (struct cmdarg): Move it here from main. Add more comments.
9660 (cmdarg_s, VEC (cmdarg_s)): New.
9661 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9662 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9663 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9664 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9665 of CMDARG.
9666
9667 2012-03-19 Tom Tromey <tromey@redhat.com>
9668
9669 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9670
9671 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9672
9673 PR symtab/13777
9674 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9675 GCC >=4.5.
9676
9677 2012-03-16 Chris January <chris.january@allinea.com>
9678
9679 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9680 of clear.
9681
9682 2012-03-16 Chris January <chris.january@allinea.com>
9683
9684 * source.c (add_path): Use memmove instead of strcpy because the
9685 strings overlap.
9686
9687 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9688
9689 * value.h (set_value_parent): Add declaration.
9690 * value.c (set_value_parent): New function.
9691 (value_address): If VALUE->PARENT is not NULL, then use it as
9692 the base address instead of VALUE->LOCATION.address.
9693 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9694 the same as OBJ's address. Adjust V's offset accordingly.
9695 Set V's parent.
9696
9697 2012-03-16 Gary Benson <gbenson@redhat.com>
9698
9699 PR breakpoints/10738
9700 * dwarf2read.c (use_deprecated_index_sections): New global.
9701 (struct partial_die_info): New member may_be_inlined.
9702 (read_partial_die): Set may_be_inlined where appropriate.
9703 (add_partial_subprogram): Add partial symbols for partial
9704 DIEs that may be inlined.
9705 (new_symbol_full): Add inlined subroutines to the current
9706 scope.
9707 (write_psymtabs_to_index): Bump version number.
9708 (dwarf2_read_index): Read only version 6 indices unless
9709 use_deprecated_index_sections is set.
9710 * linespec.c (symbol_and_data_callback): New structure.
9711 (iterate_inline_only): New function.
9712 (iterate_over_all_matching_symtabs): New argument
9713 "include_inline". If nonzero, also call the callback for
9714 symbols representing inlined subroutines.
9715 (lookup_prefix_sym): Pass extra argument to the above.
9716 (find_function_symbols): Likewise.
9717 (add_matching_symbols_to_info): Likewise.
9718 * NEWS: Mention that GDB can now set breakpoints on inlined
9719 functions.
9720
9721 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9722
9723 * p-typeprint.c (pascal_type_print_method_args):
9724 Fix display of parameter of methods.
9725
9726 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9727
9728 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9729 Add missing prototype.
9730
9731 2012-03-16 Yao Qi <yao@codesourcery.com>
9732 Jan Kratochvil <jan.kratochvil@redhat.com>
9733
9734 Fix false compilation warning.
9735 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9736
9737 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9738 Pedro Alves <pedro@codesourcery.com>
9739
9740 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9741 (arm_register_g_packet_guesses): New function.
9742 (arm_gdbarch_init): Don't force a target description with
9743 registers when the executable is detected as M-profile. Instead
9744 set gdbarch->tdep->is_m. Register `g' packet guesses.
9745 (_initialize_arm_tdep): Initialize the new target description.
9746 * features/arm-with-m-fpa-layout.xml: New description.
9747 * features/arm-with-m-fpa-layout.c: New, generated.
9748
9749 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9750
9751 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9752 Update function description.
9753 (insert_bp_location): Do not wipe bl->target_info out.
9754 * mem-break.c: #include "gdb_string.h".
9755 (default_memory_insert_breakpoint): Do not call target_read_memory
9756 with a pointer to the breakpoint's shadow_contents buffer. Use
9757 a local buffer instead.
9758 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9759
9760 2012-03-15 Tom Tromey <tromey@redhat.com>
9761
9762 * NEWS: Mention "info vtbl", not "info vtable".
9763 * cp-support.c (info_vtbl_command): Fix comment.
9764 (_initialize_cp_support): Fix text.
9765
9766 2012-03-15 Tom Tromey <tromey@redhat.com>
9767
9768 * cp-valprint.c (cp_print_value_fields): Use
9769 print_function_pointer_address for vtable slot.
9770
9771 2012-03-15 Tom Tromey <tromey@redhat.com>
9772
9773 * gnu-v3-abi.c (struct value_and_voffset): New.
9774 (hash_value_and_voffset, eq_value_and_voffset)
9775 (compare_value_and_voffset, compute_vtable_size)
9776 (print_one_vtable, gnuv3_print_vtable): New functions.
9777 (init_gnuv3_ops): Initialize 'print_vtable' field.
9778 * cp-support.c (info_vtbl_command): New function.
9779 (_initialize_cp_support): Add "info vtbl".
9780 * cp-abi.h (cplus_print_vtable): Declare.
9781 (struct cp_abi_ops) <print_vtable>: New field.
9782 * cp-abi.c (cplus_print_vtable): New function.
9783 * NEWS: Update.
9784
9785 2012-03-15 Tom Tromey <tromey@redhat.com>
9786
9787 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9788 iterate_over_symbols.
9789
9790 2012-03-14 Doug Evans <dje@google.com>
9791
9792 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9793 DW_OP_GNU_parameter_ref.
9794
9795 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9796
9797 Fix double prompt of 'interpreter-exec mi'.
9798 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9799 (mi_interpreter_resume): use it.
9800 (mi_execute_command_input_handler): New function.
9801 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9802 mi_execute_command_input_handler.
9803
9804 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9805
9806 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9807 prototype.
9808 (darwin_debug_port_info): Make static.
9809 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9810 * machoread.c (_initialize_machoread): Add prototype.
9811 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9812 (i386_darwin_set_control, i386_darwin_get_control)
9813 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9814 i386_darwin_get_status, i386_darwin_get_control):
9815 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9816
9817 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9818
9819 * ax-gdb.c (gen_usual_unary): Remove special handling of
9820 enum and bool types.
9821
9822 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9823
9824 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9825
9826 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9827
9828 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9829
9830 2012-03-13 Chris January <chris.january@allinea.com>
9831
9832 * aix-thread.c (fill_sprs): Store the floating point registers
9833 at the correct offsets into vals.
9834
9835 2012-03-13 Doug Evans <dje@google.com>
9836
9837 * NEWS: Mention symbol-reloading has been deleted.
9838 * symfile.c (symbol_reloading): Delete.
9839 (show_symbol_reloading): Delete.
9840 (_initialize_symfile): Delete set/show symbol-reloading.
9841
9842 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9843 read_in_chain until we have successfully read it in.
9844 (load_full_comp_unit): Ditto.
9845 (read_signatured_type): Add comment.
9846
9847 2012-03-13 Chris January <chris.january@allinea.com>
9848
9849 * stabsread.c (fix_common_block): Change type of valu argument
9850 to CORE_ADDR.
9851
9852 2012-03-13 Chris January <chris.january@allinea.com>
9853
9854 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9855 instruction.
9856
9857 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9858
9859 * common/linux-procfs.c (linux_proc_get_int): New, from
9860 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9861 field.
9862 (linux_proc_get_tgid): Only call linux_proc_get_int.
9863 (linux_proc_get_tracerpid): New.
9864 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9865 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9866 linux_proc_pid_has_state.
9867 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9868 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9869 (linux_ptrace_attach_warnings): New.
9870 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9871 New declaration.
9872 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9873 (linux_nat_attach): New variables ex, buffer, message and message_s.
9874 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9875
9876 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9877
9878 * Makefile.in (linux-ptrace.o): New.
9879 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9880 from linux-nat.c.
9881 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9882 * common/linux-ptrace.c: New file.
9883 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9884 * config/arm/linux.mh: Likewise.
9885 * config/i386/linux.mh: Likewise.
9886 * config/i386/linux64.mh: Likewise.
9887 * config/ia64/linux.mh: Likewise.
9888 * config/m32r/linux.mh: Likewise.
9889 * config/m68k/linux.mh: Likewise.
9890 * config/mips/linux.mh: Likewise.
9891 * config/pa/linux.mh: Likewise.
9892 * config/powerpc/linux.mh: Likewise.
9893 * config/powerpc/ppc64-linux.mh: Likewise.
9894 * config/powerpc/spu-linux.mh: Likewise.
9895 * config/s390/s390.mh: Likewise.
9896 * config/sparc/linux.mh: Likewise.
9897 * config/sparc/linux64.mh: Likewise.
9898 * config/xtensa/linux.mh: Likewise.
9899 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9900 common/linux-procfs.c.
9901 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9902
9903 2012-03-13 Hui Zhu <teawater@gmail.com>
9904 Pedro Alves <palves@redhat.com>
9905
9906 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9907 CREATE_BREAKPOINT_FLAGS_INSERTED.
9908 (create_breakpoint_sal, create_breakpoints_sal)
9909 (base_breakpoint_create_breakpoints_sal)
9910 (tracepoint_create_breakpoints_sal)
9911 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9912 down.
9913 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9914 (ftrace_command, strace_command): Adjust.
9915 (create_tracepoint_from_upload): Pass
9916 CREATE_BREAKPOINT_FLAGS_INSERTED.
9917 * breakpoint.h (enum breakpoint_create_flags): New.
9918 (create_breakpoint): New flags parameter.
9919 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9920 * python/py-breakpoint.c (bppy_init): Adjust.
9921 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9922 * spu-tdep.c (spu_catch_start): Adjust.
9923
9924 2012-03-13 Pedro Alves <palves@redhat.com>
9925 Hui Zhu <teawater@gmail.com>
9926 Yao Qi <yao@codesourcery.com>
9927
9928 * remote.c (struct remote_state): New field `starting_up'.
9929 (remote_start_remote): Set and clear it.
9930 (remote_can_download_tracepoint): If starting up, return false.
9931
9932 2012-03-13 Yao Qi <yao@codesourcery.com>
9933
9934 * inferior.h (struct inferior): Remove fields any_syscall_count,
9935 syscalls_counts and total_syscalls_count. Move them to new
9936 struct catch_syscall_inferior_data in breakpoint.c.
9937 * breakpoint.c: Call DEF_VEC_I(int).
9938 (struct catch_syscall_inferior_data): New.
9939 (get_catch_syscall_inferior_data): New.
9940 (catch_syscall_inferior_data_cleanup): New.
9941 (insert_catch_syscall): Update to access data in
9942 struct catch_syscall_inferior_data.
9943 (insert_catch_syscall): Likewise.
9944 (remove_catch_syscall): Likewise.
9945 (remove_catch_syscall): Likewise.
9946 (is_syscall_catchpoint_enabled): Likewise.
9947 (add_catch_command): Likewise.
9948 (_initialize_breakpoint): Register cleanup.
9949 * breakpoint.h: Removed DEF_VEC_I(int).
9950 * dwarf2loc.c: Call DEF_VEC_I(int).
9951 * mi/mi-main.c: Likewise.
9952
9953 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9954
9955 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9956
9957 2012-03-12 Chris January <chris.january@allinea.com>
9958
9959 * aix-thread.c (_initialize_aix_thread): Add prototype.
9960 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9961 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9962
9963 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9964
9965 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9966 include of "amd64-nat.h".
9967
9968 2012-03-12 Tom Tromey <tromey@redhat.com>
9969
9970 * buildsym.c (record_pending_block): Now static.
9971 * buildsym.h: (record_pending_block): Remove.
9972
9973 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9974
9975 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9976
9977 2012-03-09 Tom Tromey <tromey@redhat.com>
9978
9979 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9980 producer_is_gxx_lt_4_6>: New fields.
9981 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9982
9983 2012-03-09 Tom Tromey <tromey@redhat.com>
9984
9985 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9986
9987 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9988
9989 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9990 prototype.
9991
9992 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9993
9994 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9995
9996 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9997
9998 Fix -Wmissing-prototypes build.
9999 * arm-linux-nat.c (get_thread_id): Make it static.
10000 * xtensa-linux-nat.c (get_thread_id): Likewise.
10001
10002 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10003
10004 * server.c (process_point_options): If a conditional expression
10005 is found, only print a message if remote_debug is nonzero.
10006
10007 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
10008
10009 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10010 of internal error for unknown/unsupported types.
10011
10012 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10013
10014 Fix CU relative vs. absolute DIE offsets.
10015 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10016 offset to offset_in_cu.
10017 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10018 TYPE_OFFSET.
10019 (dwarf2_fetch_die_location_block): Rename parameter offset to
10020 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10021
10022 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10023
10024 * libunwind-frame.c: Rename to ...
10025 * ia64-libunwind-tdep.c: ... here.
10026 * libunwind-frame.h: Rename to ...
10027 * ia64-libunwind-tdep.h: ... here.
10028 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10029 ia64-libunwind-tdep.h.
10030 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10031 * README (--with-libunwind): Rename to ...
10032 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10033 * config.in: Regenerate.
10034 * configure: Regenerate.
10035 * configure.ac: New option --with-libunwind-ia64, make the
10036 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10037 Remove AC_DEFINE for HAVE_LIBUNWIND.
10038 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10039 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10040 Rename libunwind-frame in the general comment.
10041 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10042 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10043 Move forward declarations inside #ifndef. Rename libunwind-frame in
10044 the general comment.
10045 * ia64-tdep.c: Rename libunwind-frame.h #include to
10046 ia64-libunwind-tdep.h.
10047 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10048 (ia64_libunwind_descr): Rename libunwind-frame to
10049 ia64-libunwind-tdep in these function comments.
10050 * ia64-tdep.h: Rename libunwind-frame.h #include to
10051 ia64-libunwind-tdep.h.
10052 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10053 ia64-libunwind-tdep in that data comment.
10054
10055 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10056
10057 * libunwind-frame.h (struct frame_unwind): New declaration.
10058
10059 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10060
10061 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10062 "set breakpoint condition-evaluation" command.
10063
10064 2012-03-08 Tristan Gingold <gingold@adacore.com>
10065
10066 * sparc-stub.c: Move to stubs/
10067 * sh-stub.c: Likewise.
10068 * m68k-stub.c: Likewise.
10069 * m32r-stub.c: Likewise.
10070 * i386-stub.c: Likewise.
10071
10072 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10073
10074 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10075 linux_get_siginfo_type.
10076
10077 * m68klinux-nat.c: Include "gdb_proc_service.h".
10078 (PTRACE_GET_THREAD_AREA): Define.
10079 (ps_get_thread_area): New function.
10080
10081 2012-03-08 Yao Qi <yao@codesourcery.com>
10082
10083 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10084 `xsnprintf'.
10085 (remote_query_attached): Likewise.
10086 (remote_static_tracepoint_marker_at): Likewise.
10087 (remote_set_permissions): Likewise.
10088 (remote_detach_1, extended_remote_attach_1): Likewise.
10089 (send_g_packet, remote_vkill): Likewise.
10090 (extended_remote_disable_randomization): Likewise.
10091 (remote_add_target_side_condition): Likewise.
10092 (remote_insert_breakpoint): Likewise.
10093 (remote_remove_breakpoint): Likewise.
10094 (remote_insert_watchpoint): Likewise.
10095 (remote_remove_watchpoint): Likewise.
10096 (remote_insert_hw_breakpoint): Likewise.
10097 (remote_insert_hw_breakpoint): Likewise.
10098 (remote_remove_hw_breakpoint): Likewise.
10099 (remote_download_command_source): Likewise.
10100 (remote_download_tracepoint): Likewise.
10101 (remote_download_trace_state_variable): Likewise.
10102 (remote_disable_tracepoint): Likewise.
10103 (remote_trace_set_readonly_regions): Likewise.
10104 (remote_get_tracepoint_status): Likewise.
10105 (remote_trace_find): Likewise.
10106 (remote_get_trace_state_variable_value): Likewise.
10107 (remote_set_disconnected_tracing): Likewise.
10108 (remote_set_circular_trace_buffer): Likewise.
10109 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10110 (remote_use_agent): Likewise.
10111 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10112 Update callers.
10113
10114 2012-03-07 Pedro Alves <palves@redhat.com>
10115
10116 * NEWS: Mention QProgramSignals.
10117 * inferior.h (update_signals_program_target): Declare.
10118 * infrun.c: (update_signals_program_target): New.
10119 (handle_command): Update the target of the new program signals
10120 array changes.
10121 * remote.c (PACKET_QProgramSignals): New enum.
10122 (last_program_signals_packet): New global.
10123 (remote_program_signals): New.
10124 (remote_start_remote): Update the target with the program signals
10125 list.
10126 (remote_protocol_features): Add entry for QPassSignals.
10127 (remote_open_1): Free anc clear last_program_signals_packet.
10128 (init_remote_ops): Install remote_program_signals.
10129 * target.c (update_current_target): Adjust.
10130 (target_program_signals): New.
10131 * target.h (struct target_ops) <to_program_signals>: New field.
10132 (target_program_signals): Declare.
10133
10134 2012-03-07 Pedro Alves <palves@redhat.com>
10135
10136 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10137 extensions.
10138
10139 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10140
10141 * m68klinux-nat.c (getregs_supplies): Make static.
10142 (getfpregs_supplies): Likewise.
10143 (have_ptrace_getregs): Likewise.
10144
10145 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10146
10147 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10148 in call to get_die_type_at_offset.
10149
10150 2012-03-06 Stan Shebs <stan@codesourcery.com>
10151
10152 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10153 * mi/mi-cmd-disas.c: Ditto.
10154 * mi/mi-cmd-env.c: Ditto.
10155 * mi/mi-cmd-file.c: Ditto.
10156 * mi/mi-cmd-stack.c: Ditto.
10157 * mi/mi-cmd-target.c: Ditto.
10158 * mi/mi-cmd-var.c: Ditto.
10159 * mi/mi-cmds.c: Ditto.
10160 * mi/mi-cmds.h: Ditto.
10161 * mi/mi-console.c: Ditto.
10162 * mi/mi-getopt.c: Ditto.
10163 * mi/mi-getopt.h: Ditto.
10164 * mi/mi-interp.c: Ditto.
10165 * mi/mi-main.c: Ditto.
10166 * mi/mi-out.c: Ditto.
10167 * mi/mi-parse.c: Ditto.
10168 * mi/mi-parse.h: Ditto.
10169 * mi/mi-symbol-cmds.c: Ditto.
10170
10171 * mi/mi-getopt.h: Move mi_opt struct up.
10172 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10173 return.
10174 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10175
10176 2012-03-06 Tom Tromey <tromey@redhat.com>
10177
10178 * proc-service.c (ps_pglobal_lookup): Set the current program
10179 space.
10180
10181 2012-03-06 Pedro Alves <palves@redhat.com>
10182
10183 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10184
10185 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10186
10187 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10188
10189 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10190
10191 Code cleanup.
10192 * common/linux-osdata.c (linux_common_core_of_thread): New function
10193 comment.
10194 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10195 call by linux_common_core_of_thread.
10196 (linux_nat_core_of_thread_1): Remove.
10197 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10198 * linux-thread-db.c: Include linux-osdata.h.
10199 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10200 linux_common_core_of_thread.
10201
10202 2012-03-05 Tom Tromey <tromey@redhat.com>
10203
10204 * value.c (value_primitive_field): Don't fetch contents for
10205 non-virtual bases.
10206
10207 2012-03-05 Tom Tromey <tromey@redhat.com>
10208
10209 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10210
10211 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10212
10213 * s390-nat.c: Include "gregset.h".
10214
10215 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10216
10217 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10218 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10219 (libunwind_load): New variable so_error, use it for dlerror. Try to
10220 load also LIBUNWIND_SO_7.
10221
10222 2012-03-05 Pedro Alves <palves@redhat.com>
10223
10224 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10225 is not NULL, and remove resulting dead code.
10226
10227 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10228
10229 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10230 prologue to sh_analyze_prologue.
10231 (sh_analyze_prologue): Make better use of such an upper limit, and
10232 generally be more cautious about accessing memory.
10233
10234 2012-03-05 Tom Tromey <tromey@redhat.com>
10235
10236 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10237 _initialize_ia64_hpux_tdep.
10238
10239 2012-03-05 Pedro Alves <palves@redhat.com>
10240
10241 PR gdb/13766
10242
10243 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10244 the register state is clear, supply explicit zero, instead of
10245 marking the register unavailable.
10246
10247 2012-03-05 Tristan Gingold <gingold@adacore.com>
10248
10249 * NEWS: Mention OpenVMS ia64 new target.
10250
10251 2012-03-05 Tristan Gingold <gingold@adacore.com>
10252
10253 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10254 (ia64_unw_accessors, ia64_unw_rse_accessors)
10255 (ia64_libunwind_descr): Declare.
10256 * ia64-vms-tdep.c: New file.
10257 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10258 (ia64_libunwind_descr): Make them public.
10259 * configure.tgt: Add ia64-*-*vms*.
10260 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10261 (ALLDEPFILES): Add ia64-vms-tdep.c
10262
10263 2012-03-05 Tristan Gingold <gingold@adacore.com>
10264
10265 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10266 * remote.c (PACKET_qXfer_uib): New enum value.
10267 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10268 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10269 (_initialize_remote): Call add_packet_config_cmd for
10270 xfer:uib packet.
10271
10272 2012-03-05 Tristan Gingold <gingold@adacore.com>
10273
10274 * osabi.c (gdb_osabi_names): Add OpenVMS.
10275 (generic_elf_osabi_sniffer): Likewise.
10276 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10277
10278 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10279
10280 Removed unused code.
10281 * libunwind-frame.c (libunwind_frame_unwind)
10282 (libunwind_frame_base_address): Remove.
10283 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10284
10285 2012-03-04 Yao Qi <yao@codesourcery.com>
10286
10287 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10288 remove trailing new line.
10289 (agent_run_command, agent_run_command): Add _ markup.
10290 (agent_capability_check): Likewise.
10291
10292 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10293
10294 * breakpoint.c (set_condition_evaluation_mode): Set
10295 CONDITION_EVALUATION_MODE unconditionally.
10296
10297 2012-03-03 Yao Qi <yao@codesourcery.com>
10298
10299 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10300 * common/agent.h: Update declaration.
10301 * inf-child.c (inf_child_use_agent): New.
10302 (inf_child_can_use_agent): New.
10303 (inf_child_target): Initialize fields `to_use_agent'
10304 and `to_can_use_agent'.
10305 * agent.c (agent_new_objfile): New.
10306 (_initialize_agent): Add agent_new_objfile to new_objfile
10307 observer.
10308
10309 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10310 New.
10311 (linux_target_install_ops): Initialize field
10312 `to_static_tracepoint_markers_by_strid'.
10313 * remote.c (free_current_marker): Move it to ...
10314 * tracepoint.c (free_current_marker): ... here. New.
10315 (cleanup_target_stop): New.
10316 * tracepoint.h: Declare free_current_marker.
10317 * NEWS: Add one entry about `info static-tracepoint-marker'.
10318
10319 2012-03-03 Yao Qi <yao@codesourcery.com>
10320
10321 * common/agent.c (agent_loaded_p): New.
10322 (agent_look_up_symbols): New global.
10323 * common/agent.h: Declare agent_loaded_p.
10324
10325 2012-03-03 Yao Qi <yao@codesourcery.com>
10326
10327 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10328 (agent_capability_check, agent_capability_invalidate): New.
10329 (symbol_list): New array element.
10330 * common/agent.h (enum agent_capa): New.
10331 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10332
10333 2012-03-03 Yao Qi <yao@codesourcery.com>
10334
10335 * target.h (struct target_ops) <to_use_agent>: New field.
10336 (struct target_ops) <to_can_use_agent>: New field.
10337 (target_use_agent, target_can_use_agent): New macro.
10338 * target.c (update_current_target): Update.
10339 * remote.c: New enum `PACKET_QAgent'.
10340 (remote_protocol_features): Add a new element.
10341 (remote_use_agent, remote_can_use_agent): New.
10342 (init_remote_ops): Initialize field `can_use_agent' with
10343 remote_can_use_agent. Intiailize field `use_agent' with
10344 remote_use_agent.
10345 * common/agent.c (use_agent): New global.
10346 * common/agent.h: Declare it.
10347 * tracepoint.c (info_static_tracepoint_markers_command): Add
10348 comment.
10349 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10350 (COMMON_OBS): Add common/agent.o and agent.o
10351 (common-agent.o): New rule.
10352 * agent.c: New.
10353
10354 2012-03-03 Yao Qi <yao@codesourcery.com>
10355
10356 * common/agent.c: New.
10357 * common/agent.h: New.
10358 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10359 AC_CHECK_HEADERS.
10360 * configure, configh.in: Regenerated.
10361
10362 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10363
10364 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10365 unless it exists for this architecture.
10366
10367 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10368
10369 * language.h (struct language_defn): New "method" la_read_var_value.
10370 * findvar.c: #include "language.h".
10371 (default_read_var_value): Renames read_var_value. Rewrite
10372 function description.
10373 (read_var_value): New function.
10374 * value.h (default_read_var_value): Add prototype.
10375 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10376 New functions.
10377 (ada_language_defn): Add entry for la_read_var_value.
10378 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10379 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10380 language_defn structures to add entry for new la_read_var_value
10381 field.
10382
10383 2012-03-02 Tom Tromey <tromey@redhat.com>
10384 Pedro Alves <palves@redhat.com>
10385
10386 PR breakpoints/13776:
10387 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10388 breakpoints.
10389 (delete_longjmp_breakpoint_at_next_stop): New.
10390 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10391 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10392 before deleting the inferior. Add comments.
10393 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10394 breakpoints immediately, but only on next stop. Move that code
10395 next to where we mark other breakpoints for deletion.
10396
10397 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10398
10399 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10400 marker.
10401 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10402 violation.
10403
10404 2012-03-02 Pedro Alves <palves@redhat.com>
10405
10406 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10407
10408 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10409
10410 Fix -Wmissing-prototypes build.
10411 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10412 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10413 (gdbsim_has_memory): Likewise.
10414
10415 2012-03-02 Yao Qi <yao@codesourcery.com>
10416
10417 Fix -Wmissing-prototypes build.
10418 * charset.c (phony_iconv_open): Make static.
10419 (phony_iconv_close, phony_iconv): Likewise.
10420 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10421 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10422 prototype.
10423 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10424 * ser-mingw.c (create_select_thread): Make static.
10425 * windows-termcap.c (tgetent): New prototype.
10426 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10427
10428 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10429
10430 Fix -Wmissing-prototypes build.
10431 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10432 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10433 (_initialize_loadable): New prototypes.
10434
10435 2012-03-02 Doug Evans <dje@google.com>
10436
10437 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10438 abbrev table, read_comp_unit will do it.
10439
10440 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10441
10442 Fix -Wmissing-prototypes build.
10443 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10444 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10445 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10446 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10447 (_initialize_arm_symbian_tdep): New prototype.
10448 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10449 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10450 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10451 static.
10452 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10453 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10454 prototype.
10455 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10456 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10457 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10458 static.
10459 * moxie-tdep.c (moxie_process_record): Likewise.
10460 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10461 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10462 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10463 (_initialize_rl78_tdep): New prototype.
10464 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10465 (_initialize_rx_tdep): New prototype.
10466 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10467 (_initialize_darwin_solib): New prototype.
10468 * solib-spu.c: Include solib-spu.h.
10469 (_initialize_spu_solib): New prototype.
10470 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10471 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10472 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10473 (tic6x_software_single_step): Make it static.
10474 (_initialize_tic6x_tdep): New prototype.
10475
10476 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10477
10478 Fix -Wmissing-prototypes build.
10479 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10480 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10481
10482 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10483
10484 Fix -Wmissing-prototypes build.
10485 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10486 (frv_have_stopped_data_address): Remove.
10487
10488 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10489
10490 Fix -Wmissing-prototypes build.
10491 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10492 * sh-tdep.c: Include sh64-tdep.h.
10493 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10494 * sh64-tdep.c: Include sh64-tdep.h.
10495 * sh64-tdep.h: New file.
10496
10497 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10498
10499 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10500
10501 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10502
10503 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10504 sp_regnum once the gdbarch_init_osabi hook has been called.
10505
10506 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10507
10508 * mips-tdep.c (mips32_bc1_pc): New function.
10509 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10510 BPOSGE32 and BPOSGE64 instructions.
10511 (deal_with_atomic_sequence): Likewise.
10512 (mips32_instruction_has_delay_slot): Likewise.
10513
10514 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10515 Chris Dearman <chris@mips.com>
10516 Maciej W. Rozycki <macro@codesourcery.com>
10517 Joseph Myers <joseph@codesourcery.com>
10518
10519 * features/mips-dsp.xml: New file.
10520 * features/mips64-dsp.xml: New file.
10521 * features/mips-dsp-linux.xml: New file.
10522 * features/mips64-dsp-linux.xml: New file.
10523 * features/Makefile (WHICH): Add mips-dsp-linux and
10524 mips64-dsp-linux.
10525 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10526 * features/mips-dsp-linux.c: New file.
10527 * features/mips64-dsp-linux.c: New file.
10528 * regformats/mips-dsp-linux.dat: New file.
10529 * regformats/mips64-dsp-linux.dat: New file.
10530 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10531 registers.
10532 (mips64_linux_register_addr): Likewise.
10533 (mips64_linux_regsets_fetch_registers): Likewise.
10534 (mips64_linux_regsets_store_registers): Likewise.
10535 (mips64_linux_fetch_registers): Update call to
10536 mips64_linux_regsets_fetch_registers.
10537 (mips64_linux_store_registers): Update call to
10538 mips64_linux_regsets_store_registers.
10539 (mips_linux_read_description): Probe for DSP registers.
10540 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10541 and initialize_tdesc_mips64_dsp_linux.
10542 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10543 Remove padding of no longer used embedded register slots.
10544 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10545 (MIPS_RESTART_REGNUM): Redefine enum value.
10546 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10547 strings.
10548 (mips_tx39_reg_names): Likewise.
10549 (mips_linux_reg_names): New array of register names for Linux
10550 targets.
10551 (mips_register_name): Check for a null pointer in
10552 mips_processor_reg_names and return an empty string.
10553 (mips_register_type): Exclude embedded registers for the IRIX
10554 and Linux ABIs.
10555 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10556 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10557 DSP registers.
10558 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10559 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10560 (mips_gdbarch_init): Likewise. Initialize internal register
10561 indices for the Linux ABI. Use dynamic numbers to refer to
10562 registers, as applicable, while parsing the target description.
10563 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10564
10565 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10566
10567 * frame.h (read_frame_register_unsigned): Fix typo in function
10568 description.
10569
10570 2012-03-01 Pedro Alves <palves@redhat.com>
10571
10572 * jit-reader.in [!__cplusplus]
10573 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10574
10575 2012-03-01 Pedro Alves <palves@redhat.com>
10576
10577 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10578 * configure: Regenerate.
10579
10580 2012-03-01 Pedro Alves <palves@redhat.com>
10581
10582 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10583 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10584 (ftrace_command, strace_command): Make static.
10585 * d-lang.c (_initialize_d_language): Declare.
10586 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10587 * dwarf2loc.c (_initialize_dwarf2loc):
10588 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10589 * exec.c (exec_get_section_table): Make static.
10590 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10591 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10592 * inferior.c (remove_inferior_command, add_inferior_command)
10593 (clone_inferior_command): Make static.
10594 * linux-nat.c (linux_nat_thread_address_space)
10595 (linux_nat_core_of_thread): Make static.
10596 * linux-tdep.c (_initialize_linux_tdep): Declare.
10597 * objc-lang.c (_initialize_objc_lang): Declare.
10598 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10599 Make static.
10600 (_initialize_opencl_language): Declare.
10601 * record.c (_initialize_record): Declare.
10602 * remote.c (demand_private_info, remote_get_tib_address)
10603 (remote_supports_cond_tracepoints)
10604 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10605 Make static.
10606 * skip.c (_initialize_step_skip): Declare.
10607 * symtab.c (skip_prologue_using_lineinfo): Make static.
10608 * tracepoint.c (delete_trace_state_variable)
10609 (trace_variable_command, delete_trace_variable_command)
10610 (get_uploaded_tsv, find_matching_tracepoint_location)
10611 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10612 Make static.
10613 * value.c (pack_unsigned_long): Make static.
10614 * varobj.c (varobj_ensure_python_env): Make static.
10615 * windows-tdep.c (_initialize_windows_tdep): Declare.
10616 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10617
10618 2012-03-01 Pedro Alves <palves@redhat.com>
10619
10620 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10621 gdbarch parameter.
10622 (linux_init_abi): Install it as has_shared_address_space gdbarch
10623 callback.
10624
10625 2012-03-01 Pedro Alves <palves@redhat.com>
10626
10627 * observer.c (observer_test_first_notification_function)
10628 (observer_test_second_notification_function)
10629 (observer_test_third_notification_function): Add declarations.
10630
10631 2012-03-01 Pedro Alves <palves@redhat.com>
10632
10633 * common/signals.c (default_target_signal_to_host)
10634 (default_target_signal_from_host): Move ...
10635 * arch-utils.c: ... here.
10636 * arch-utils.h (default_target_signal_to_host)
10637 (default_target_signal_from_host): Declare.
10638
10639 * common/signals.c (target_signal_from_command): Move ...
10640 * infrun.c: ... here.
10641 * inferior.h (target_signal_from_command): Declare.
10642 * target.h (target_signal_from_command)
10643 (default_target_signal_from_host, default_target_signal_to_host):
10644 Delete declarations.
10645
10646 * common/signals.c (_initialize_signals): Delete.
10647
10648 2012-03-01 Pedro Alves <palves@redhat.com>
10649
10650 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10651 both __cplusplus and !__cplusplus.
10652
10653 2012-03-01 Pedro Alves <palves@redhat.com>
10654
10655 * psymtab.c (find_and_open_source): Delete declaration.
10656 * source.c (find_and_open_source): Move comment ...
10657 * source.h (find_and_open_source): ... to this new declaration.
10658
10659 2012-03-01 Pedro Alves <palves@redhat.com>
10660
10661 * inline-frame.c: Include inline-frame.h.
10662
10663 2012-03-01 Pedro Alves <palves@redhat.com>
10664
10665 * tui/tui-data.c (set_gen_win_origin): Delete.
10666 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10667 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10668
10669 2012-03-01 Pedro Alves <palves@redhat.com>
10670
10671 * remote.c (encode_actions): Delete declaration.
10672 * tracepoint.c (encode_actions): Make extern.
10673 * tracepoint.h (encode_actions): Declare.
10674
10675 2012-03-01 Pedro Alves <palves@redhat.com>
10676
10677 * python/py-breakpoint.c: Include python.h.
10678 * python/py-continueevent.c (create_continue_event_object): Make
10679 static.
10680 * python/py-lazy-string.c (stpy_get_type): Make static.
10681 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10682 Make static.
10683 * python/py-utils.c (unicode_to_target_python_string): Make
10684 static.
10685 * python/py-value.c: Include python.h.
10686
10687 2012-03-01 Pedro Alves <palves@redhat.com>
10688
10689 * inferior.c (delete_threads_of_inferior): Delete.
10690
10691 2012-03-01 Pedro Alves <palves@redhat.com>
10692
10693 Import fallback definitions from glibc.
10694
10695 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10696 ps_prochandle): Forward declare.
10697 (ps_err_e): Use glibc's comments.
10698 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10699 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10700 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10701 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10702 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10703 (struct ps_prochandle): Adjust comment.
10704
10705 2012-03-01 Pedro Alves <palves@redhat.com>
10706
10707 * ada-lang.c (ada_modulus_from_name): Delete.
10708 * ada-lex.l (lexer_init): Make static.
10709
10710 2012-03-01 Pedro Alves <palves@redhat.com>
10711
10712 PR gdb/13767
10713
10714 * frame.c (read_frame_register_unsigned): New.
10715 * frame.h (read_frame_register_unsigned): Declare.
10716 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10717 Handle it.
10718 (print_i387_control_word): New parameter `control_p'. Handle it.
10719 (i387_print_float_info): Handle unavailable float registers.
10720
10721 2012-03-01 Keith Seitz <keiths@redhat.com>
10722
10723 * linespec.c (decode_line_2): Sort the list of methods
10724 alphabetically before presenting the user with a selection
10725 menu.
10726
10727 2012-03-01 Doug Evans <dje@google.com>
10728
10729 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10730 has_namespace_info.
10731 (dwarf2_read_abbrevs): Remove corresponding initialization.
10732
10733 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10734
10735 * NEWS: Mention new python command class gdb.COMMAND_USER.
10736 * cli/cli-cmds.c (show_user): Print error when used on a python
10737 command.
10738 (init_cli_cmds): Update documentation strings for "show user" and
10739 "set/show max-user-call-depth" to clarify that it does not apply to
10740 python commands.
10741 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10742 error check.
10743 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10744 gdb python api.
10745 * top.c (execute_command): Only execute a user-defined command as a
10746 legacy macro if c->user_commands is set.
10747
10748 2012-03-01 Tom Tromey <tromey@redhat.com>
10749
10750 * valprint.h (struct generic_val_print_decorations): New.
10751 (generic_val_print): Declare.
10752 * valprint.c (generic_val_print): New function.
10753 * p-valprint.c (p_decorations): New global.
10754 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10755 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10756 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10757 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10758 * m2-valprint.c (m2_decorations): New global.
10759 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10760 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10761 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10762 TYPE_CODE_ERROR>: Call generic_val_print.
10763 * f-valprint.c (f_decorations): New global.
10764 (f_val_print): Use print_function_pointer_address.
10765 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10766 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10767 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10768 generic_val_print.
10769 * c-valprint.c (c_decorations): New global.
10770 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10771 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10772 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10773 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10774 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10775 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10776 case.
10777
10778 2012-03-01 Tom Tromey <tromey@redhat.com>
10779
10780 * valprint.c (val_print): Update.
10781 * p-valprint (pascal_val_print): Return void.
10782 * p-lang.h (pascal_val_print): Return void.
10783 * m2-valprint.c (m2_val_print): Return void.
10784 * m2-lang.h (m2_val_print): Return void.
10785 * language.h (struct language_defn) <la_val_print>: Return void.
10786 * language.c (unk_lang_val_print): Return void.
10787 * jv-valprint.c (java_val_print): Return void.
10788 * jv-lang.h (java_val_print): Return void.
10789 * f-valprint.c (f_val_print): Return void.
10790 * f-lang.h (f_val_print): Return void.
10791 * d-valprint.c (d_val_print): Return void.
10792 (dynamic_array_type): Update.
10793 * d-lang.h (d_val_print): Return void.
10794 * c-valprint.c (c_val_print): Return void.
10795 * c-lang.h (c_val_print): Return void.
10796 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10797 void.
10798 * ada-lang.h (ada_val_print): Return void.
10799
10800 2012-03-01 Tom Tromey <tromey@redhat.com>
10801
10802 * value.h (val_print): Return void.
10803 * valprint.c (val_print): Return void.
10804
10805 2012-03-01 Tom Tromey <tromey@redhat.com>
10806
10807 * value.h (common_val_print): Return void.
10808 * valprint.c (common_val_print): Return void.
10809
10810 2012-03-01 Tom Tromey <tromey@redhat.com>
10811
10812 * value.h (value_print): Return void.
10813 * valprint.c (value_print): Return void.
10814 * p-valprint.c (pascal_value_print): Return void.
10815 * p-lang.h (pascal_value_print): Return void.
10816 * language.h (struct language_defn) <la_value_print>: Return
10817 void.
10818 * language.c (unk_lang_value_print): Return void.
10819 * jv-valprint.c (java_value_print): Return void.
10820 * jv-lang.h (java_value_print): Return void.
10821 * f-valprint.c (c_value_print): Don't declare.
10822 Include c-lang.h.
10823 * c-valprint.c (c_value_print): Return void.
10824 * c-lang.h (c_value_print): Return void.
10825 * ada-valprint.c (ada_value_print): Return void.
10826 * ada-lang.h (ada_value_print): Return void.
10827
10828 2012-03-01 Tom Tromey <tromey@redhat.com>
10829
10830 * value.c (value_primitive_field): Handle virtual base classes.
10831
10832 2012-03-01 Tom Tromey <tromey@redhat.com>
10833
10834 * gdbtypes.h (struct vbase): Remove.
10835
10836 2012-03-01 Tom Tromey <tromey@redhat.com>
10837
10838 * c-valprint.c (print_function_pointer_address): Move...
10839 * valprint.c: ... here. Make non-static.
10840 * m2-valprint.c (print_function_pointer_address): Remove.
10841 * valprint.h (print_function_pointer_address): Declare.
10842
10843 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10844
10845 * NEWS: Document the fact that one can provide a condition when
10846 creating an Ada exception catchpoint.
10847
10848 2012-03-01 Tom Tromey <tromey@redhat.com>
10849
10850 * valprint.c (val_print_type_code_flags): Fix placement of
10851 trailing brace.
10852
10853 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10854
10855 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10856 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10857 environment variable before calling update-copyright.
10858
10859 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10860
10861 * gnulib/extra/update-copyright: Update to the latest from
10862 gnulib's git repository.
10863 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10864 variable to 2 instead of 1.
10865
10866 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10867
10868 * varobj.c (c_value_of_variable): Remove dead code.
10869
10870 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10871
10872 * ada-lex.p (processId): Do not modify already encoded IDs.
10873 Update function documentation.
10874
10875 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10876
10877 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10878 "name" with "struct symbol *name_sym".
10879 * ada-exp.y (write_var_or_type): Update call to
10880 ada_find_renaming_symbol.
10881 "name" with "struct symbol *name_sym". Adjust Implementation
10882 accordingly. Adjust the function documentation.
10883
10884 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10885
10886 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10887 * ada-lang.c (ada_find_any_type): Add advance declaration.
10888 Make static. Replace ada_find_any_symbol by
10889 ada_find_any_type_symbol.
10890 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10891 Improve function description. Make static.
10892 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10893 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10894
10895 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10896
10897 * ada-lang.c (struct tag_args): Delete.
10898 (ada_get_tsd_type): Function body moved up in source file.
10899 (ada_tag_name_1, ada_tag_name_2): Delete.
10900 (ada_get_tsd_from_tag): New function.
10901 (ada_tag_name_from_tsd): New function.
10902 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10903 to determine the tag name.
10904
10905 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10906
10907 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10908 declaration.
10909 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10910 function.
10911
10912 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10913
10914 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10915
10916 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10917
10918 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10919 full searches.
10920
10921 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10922
10923 * ada-lang.c (constrained_packed_array_type): If there is a
10924 parallel XA type, use it to determine the array index type.
10925
10926 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10927
10928 * ada-valprint.c (ada_val_print_1): If our value is a reference
10929 to an array descriptor, dereference it before converting it
10930 to a simple array.
10931
10932 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10933
10934 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10935 creating fixed value.
10936 (ada_value_ind, ada_coerce_ref, assign_component)
10937 (ada_evaluate_subexp): Remove call to unwrap_value before
10938 call to ada_to_fixed_value.
10939
10940 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10941
10942 * ada-lang.c (to_fixed_array_type): Set result's type name.
10943
10944 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10945
10946 * ada-lang.c (catch_ada_exception_command_split): Add new
10947 argument cond_string. Add support for condition at end of
10948 "catch exception" commands.
10949 (ada_decode_exception_location): Add new argument cond_string.
10950 Update call to catch_ada_exception_command_split.
10951 (create_ada_exception_catchpoint): Add new argument cond_string.
10952 Set the breakpoint condition if needed.
10953 (catch_ada_exception_command): Update call to
10954 ada_decode_exception_location.
10955 (ada_decode_assert_location): Add function documentation.
10956 Add support for condition at end of "catch assert" command.
10957 (catch_assert_command): Update calls to ada_decode_assert_location
10958 and create_ada_exception_catchpoint.
10959
10960 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10961
10962 Fix disp-step-syscall.exp: fork: single step over fork.
10963 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10964 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10965 comment, change parameters gdbarch and ptid to regcache. Remove
10966 parameter regcache, initialize gdbarch from regcache here.
10967 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10968 New functions.
10969 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10970 instead.
10971 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10972 'syscall'. Make the 'int' check more strict.
10973
10974 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10975
10976 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10977 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10978 (i386_linux_intx80_sysenter_syscall_record): ... here.
10979 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10980 Use the renamed function name.
10981
10982 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10983
10984 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10985 * breakpoint.c (until_break_command): Likewise.
10986 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10987 * infcall.c (call_function_by_hand): Likewise.
10988 * infcmd.c (finish_forward): Likewise.
10989 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10990
10991 2012-02-28 Tristan Gingold <gingold@adacore.com>
10992
10993 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10994 avoid variable assignments inside condition.
10995
10996 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10997
10998 Fix static analysis issue found by cppcheck.
10999 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11000 uninitialized BUF for size 2.
11001
11002 2012-02-27 Chris Dearman <chris@mips.com>
11003 Nathan Froyd <froydnj@codesourcery.com>
11004 Maciej W. Rozycki <macro@codesourcery.com>
11005
11006 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11007 (mips16_instruction_has_delay_slot): Likewise.
11008 (mips_segment_boundary): Likewise.
11009 (mips_adjust_breakpoint_address): Likewise.
11010 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11011
11012 2012-02-27 Maciej W. Rozycki <macro@mips.com>
11013 Maciej W. Rozycki <macro@codesourcery.com>
11014
11015 * infrun.c (handle_inferior_event): Don't proceed through
11016 shared library trampolines if stepping at the machine
11017 instruction level.
11018
11019 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11020
11021 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11022 too.
11023
11024 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11025
11026 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11027 (sh_stub_unwind_sniffer): New functions.
11028 (sh_stub_unwind): New variable.
11029 (sh_gdbarch_init): Wire everything.
11030
11031 2012-02-27 Pedro Alves <palves@redhat.com>
11032
11033 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11034 (linux_nat_post_attach_wait): Adjust to use
11035 linux_proc_pid_is_stopped.
11036 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11037 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11038 based on pid_is_stopped from both linux-nat.c and
11039 gdbserver/linux-low.c, and renamed.
11040
11041 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11042
11043 * remote.c (remote_watchpoint_addr_within_range): New function.
11044 (init_remote_ops): Use it.
11045
11046 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11047
11048 * target.h (target_watchpoint_addr_within_range): Document macro.
11049
11050 2012-02-24 Pedro Alves <palves@redhat.com>
11051
11052 * stack.c (set_last_displayed_sal): Issue internal_error instead
11053 of warning, and issue it after clearing the last displayed sal.
11054
11055 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11056 Pedro Alves <palves@redhat.com>
11057
11058 * breakpoint.c (until_break_command): Install breakpoints after
11059 all frame manipulations.
11060
11061 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11062
11063 * remote.c (remote_supports_cond_breakpoints): New forward
11064 declaration.
11065 (remote_add_target_side_condition): New function.
11066 (remote_insert_breakpoint): Add target-side breakpoint
11067 conditional if supported.
11068 (remote_insert_hw_breakpoint): Likewise.
11069 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11070 hook.
11071
11072 * target.c (update_current_target): Inherit
11073 to_supports_evaluation_of_breakpoint_conditions.
11074 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11075
11076 * target.h (struct target_ops)
11077 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11078 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11079
11080 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11081 (condition_evaluation_both, condition_evaluation_auto,
11082 condition_evaluation_host, condition_evaluation_target,
11083 condition_evaluation_enums, condition_evaluation_mode_1,
11084 condition_evaluation_mode): New static globals.
11085 (translate_condition_evaluation_mode): New function.
11086 (breakpoint_condition_evaluation_mode): New function.
11087 (gdb_evaluates_breakpoint_condition_p): New function.
11088 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11089 (mark_breakpoint_modified): New function.
11090 (mark_breakpoint_location_modified): New function.
11091 (set_condition_evaluation_mode): New function.
11092 (show_condition_evaluation_mode): New function.
11093 (bp_location_compare_addrs): New function.
11094 (get_first_location_gte_addr): New helper function.
11095 (set_breakpoint_condition): Free condition bytecode if locations
11096 has become unconditional. Call mark_breakpoint_modified (...).
11097 (condition_command): Call update_global_location_list (1) for
11098 breakpoints.
11099 (breakpoint_xfer_memory): Use is_breakpoint (...).
11100 (is_breakpoint): New function.
11101 (parse_cond_to_aexpr): New function.
11102 (build_target_condition_list): New function.
11103 (insert_bp_location): Handle target-side conditional
11104 breakpoints and call build_target_condition_list (...).
11105 (update_inserted_breakpoint_locations): New function.
11106 (insert_breakpoint_locations): Handle target-side conditional
11107 breakpoints.
11108 (bpstat_check_breakpoint_conditions): Add comment.
11109 (bp_condition_evaluator): New function.
11110 (bp_location_condition_evaluator): New function.
11111 (print_breakpoint_location): Print information on where the condition
11112 will be evaluated.
11113 (print_one_breakpoint_location): Likewise.
11114 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11115 breakpoint location.
11116 (force_breakpoint_reinsertion): New functions.
11117 (update_global_location_list): Handle target-side breakpoint
11118 conditions.
11119 Reinsert locations that are already inserted if conditions have
11120 changed.
11121 (bp_location_dtor): Free agent expression bytecode.
11122 (disable_breakpoint): Call mark_breakpoint_modified (...).
11123 Call update_global_location_list (...) with parameter 1 for breakpoints.
11124 (disable_command): Call mark_breakpoint_location_modified (...).
11125 Call update_global_location_list (...) with parameter 1 for breakpoints.
11126 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11127 (enable_command): mark_breakpoint_location_modified (...).
11128 (_initialize_breakpoint): Update documentation and add
11129 condition-evaluation breakpoint subcommand.
11130
11131 * breakpoint.h: Include ax.h.
11132 (condition_list): New data structure.
11133 (condition_status): New enum.
11134 (bp_target_info) <cond_list>: New field.
11135 (bp_location) <condition_changed, cond_bytecode>: New fields.
11136 (is_breakpoint): New prototype.
11137
11138 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11139
11140 * remote.c (remote_state) <cond_breakpoints>: New field.
11141 (PACKET_ConditionalBreakpoints): New enum.
11142 (remote_cond_breakpoint_feature): New function.
11143 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11144 (remote_supports_cond_breakpoints): New function.
11145 (_initialize_remote): Add new packet configuration for
11146 target-side conditional breakpoints.
11147
11148 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11149
11150 * NEWS: Mention target-side conditional breakpoint support,
11151 new condition-evaluation breakpoint subcommand and remote
11152 packet extensions.
11153
11154 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11155
11156 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11157 number.
11158
11159 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11160
11161 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11162 (after_prologue): Remove.
11163
11164 2012-02-23 Tom Tromey <tromey@redhat.com>
11165
11166 * jv-valprint.c (java_val_print): Remove dead code.
11167
11168 2012-02-23 Tristan Gingold <gingold@adacore.com>
11169
11170 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11171 known_tasks_element and known_tasks_length fields.
11172 (read_known_tasks_array): Change argument type. Use pointer type
11173 and number of elements from DATA. Adjust.
11174 (read_known_tasks_list): Likewise.
11175 (get_known_tasks_addr): Remove.
11176 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11177 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11178 type and array length. Merge former get_known_tasks_addr code.
11179
11180 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11181
11182 PR backtrace/13716
11183 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11184 it after set_momentary_breakpoint.
11185
11186 2012-02-22 Sterling Augustine <saugustine@google.com>
11187
11188 PR 13689:
11189 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11190
11191 2012-02-22 Gary Benson <gbenson@redhat.com>
11192
11193 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11194 (find_slot_in_mapped_hash): Likewise.
11195
11196 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11197
11198 PR build/13638
11199 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11200 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11201 * configure: Regenerate.
11202
11203 2012-02-21 Tristan Gingold <gingold@adacore.com>
11204 Pedro Alves <palves@redhat.com>
11205
11206 * ia64-tdep.c: Do not include libunwind-ia64.h.
11207 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11208 Include libunwind-ia64.h instead of libunwind.h.
11209 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11210 for libunwind.h existence.
11211 * configure, config.in: Regenerate.
11212
11213 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11214
11215 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11216 instead of value_rtti_target_type.
11217 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11218 instead of value_rtti_target_type.
11219 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11220 value_rtti_target_type.
11221 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11222 (value_rtti_target_type): Rename to ...
11223 (value_rtti_indirect_type): ... here and make it indirect. Update
11224 function comment.
11225 * value.c (readjust_indirect_value_type): New function.
11226 (coerce_ref): Support for enclosing type setting for references
11227 with readjust_indirect_value_type.
11228 * value.h (readjust_value_type): New declaration.
11229 (value_rtti_target_type): Rename to ...
11230 (value_rtti_indirect_type): ... here.
11231
11232 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11233
11234 * MAINTAINERS (Write After Approval): Add myself to the list.
11235
11236 2012-02-20 Doug Evans <dje@google.com>
11237
11238 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11239 Rename objfile_p_char parameter to objfilep.
11240 (build_objfile_section_table): Result is now void. All callers
11241 updated.
11242 * objfiles.h (struct objfile): Tweak comments, whitespace.
11243 (build_objfile_section_table): Update.
11244
11245 * elfread.c (elf_symfile_segments): Fix warning text.
11246
11247 2012-02-20 Tom Tromey <tromey@redhat.com>
11248
11249 PR gdb/13498:
11250 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11251 particular set of file names once.
11252 (dw2_map_symbol_filenames): Likewise.
11253
11254 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11255
11256 Code cleanup.
11257 * main.c (write_files): Remove the declaration.
11258 (external_editor_command): Move the declaration ...
11259 [GDBTK] (external_editor_command): ... here. Fix the comment.
11260
11261 2012-02-20 Tom Tromey <tromey@redhat.com>
11262
11263 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11264 extraneous block.
11265
11266 2012-02-20 Tristan Gingold <gingold@adacore.com>
11267
11268 * darwin-nat.h (enum darwin_msg_state): Add comments.
11269
11270 2012-02-20 Tristan Gingold <gingold@adacore.com>
11271
11272 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11273 value.
11274
11275 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11276
11277 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11278 between function description and implementation.
11279
11280 2012-02-17 Tom Tromey <tromey@redhat.com>
11281
11282 PR python/12070:
11283 * python/py-event.c (event_object_getset): New global.
11284 (event_object_type): Reference it.
11285 * python/py-type.c (field_object_getset): New global.
11286 (field_object_type): Reference it.
11287 * python/python-internal.h (gdb_py_generic_dict): Declare.
11288 * python/py-utils.c (gdb_py_generic_dict): New function.
11289
11290 2012-02-17 Tristan Gingold <gingold@adacore.com>
11291
11292 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11293
11294 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11295
11296 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11297 TYPE_CALLING_CONVENTION annotation.
11298
11299 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11300
11301 * MAINTAINERS: Add rx to target ISA section.
11302 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11303 (ALLDEPFILES): Add rx-tdep.c.
11304
11305 2012-02-16 Tom Tromey <tromey@redhat.com>
11306
11307 * symfile.c (symbol_file_add_main_1): Use inferior's
11308 symfile_flags.
11309 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11310 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11311 inferior.
11312 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11313 inferior.
11314 (follow_exec): Use inferior's symfile_flags.
11315 * inferior.h (struct inferior) <symfile_flags>: New field.
11316
11317 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11318
11319 PR gdb/9734:
11320 * remote-sim.c (gdbsim_create_inferior): Call error() when
11321 sim_create_inferior() fails.
11322
11323 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11324
11325 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11326
11327 2012-02-16 Tom Tromey <tromey@redhat.com>
11328
11329 PR c++/13653:
11330 * thread.c (struct current_thread_cleanup) <was_removable>: New
11331 field.
11332 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11333 (make_cleanup_restore_current_thread): Initialize new field.
11334
11335 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11336
11337 * MAINTAINERS: Add rl78 to target ISA section.
11338 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11339 (ALLDEPFILES): Add rl78-tdep.c.
11340 * NEWS: Mention rl78 as a new target.
11341
11342 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11343
11344 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11345 data.
11346 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11347
11348 2012-02-15 Tom Tromey <tromey@redhat.com>
11349
11350 PR gdb/12659:
11351 * infcmd.c (registers_info): Print just the current register's
11352 name.
11353
11354 2012-02-15 Tom Tromey <tromey@redhat.com>
11355
11356 * python/py-symbol.c (sympy_value): Use _().
11357
11358 2012-02-15 Pedro Alves <palves@redhat.com>
11359
11360 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11361 output to be like native targets'.
11362 (remote_pid_to_str): Special case the null ptid.
11363
11364 2012-02-14 Stan Shebs <stan@codesourcery.com>
11365
11366 * NEWS: Mention enable count command.
11367 * breakpoint.h (struct breakpoint): New field enable_count.
11368 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11369 (enable_breakpoint): Add arg to call.
11370 (struct disp_data): New struct.
11371 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11372 (do_map_enable_once_breakpoint): Create a struct and pass it.
11373 (do_map_enable_delete_breakpoint): Ditto.
11374 (do_map_enable_count_breakpoint): New function.
11375 (enable_count_command): New function.
11376 (bpstat_stop_status): Decrement enable_count.
11377 (print_one_breakpoint_location): Report enable count.
11378 (_initialize_breakpoint): Add enable count command.
11379
11380 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11381
11382 * rl78-tdep.c (reggroups.h): Include.
11383 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11384 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11385 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11386 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11387 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11388 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11389 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11390 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11391 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11392 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11393 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11394 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11395 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11396 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11397 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11398 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11399 beginning of register list.
11400 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11401 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11402 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11403 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11404 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11405 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11406 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11407 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11408 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11409 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11410 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11411 the pseudo registers. Rearrange other pseudo registers too so
11412 that the bank registers appear at the end.
11413 (rl78_register_type): Account for the fact that the byte sized
11414 bank registers are now pseudo-registers.
11415 (rl78_register_name): Rearrange the register name array. Make
11416 initial set of raw banked registers inaccessible.
11417 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11418 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11419 case for copying bytes back and forth between raw and pseudo
11420 versions of the banked registers. Update other cases to reflect
11421 the changed names.
11422 (rl78_return_value): Update to account for changed names of
11423 raw registers.
11424 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11425 rl78_register_sim_regno().
11426
11427 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11428
11429 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11430 the name parameter being passed to find_pc_partial_function().
11431
11432 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11433
11434 * MAINTAINERS: Step down from being ia64 target maintainer.
11435
11436 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11437
11438 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11439 compilation warning.
11440
11441 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11442
11443 Fix crash on loaded shlibs without loaded exec_bfd.
11444 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11445 (set_section_command): Replace exec_bfd by p->bfd.
11446
11447 2012-02-10 Tom Tromey <tromey@redhat.com>
11448
11449 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11450 when we have a C++ qualified name.
11451
11452 2012-02-10 Pedro Alves <palves@redhat.com>
11453
11454 * inferior.c (inferior_pid_to_str): New.
11455 (print_inferior, inferior_command): Use it.
11456
11457 2012-02-10 Pedro Alves <palves@redhat.com>
11458
11459 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11460 the test CFLAGS.
11461 * configure: Regenerate.
11462
11463 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11464
11465 * linespec.c (decode_line_internal): Fix comment correctness.
11466
11467 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11468
11469 PR gdb/12953
11470 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11471 * amd64bsd-nat.c: Add support for debug registers (adapted from
11472 i386bsd-nat.c).
11473 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11474 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11475 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11476 (amd64bsd_dr_get_control): New functions.
11477 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11478 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11479 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11480 watchpoints initialization.
11481 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11482
11483 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11484
11485 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11486 flds_bnds.fields.
11487 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11488
11489 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11490
11491 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11492
11493 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11494
11495 * language.h (symbol_name_cmp_ftype): Renames
11496 symbol_name_match_p_ftype.
11497 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11498 la_get_symbol_name_match_p.
11499 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11500 ada_get_symbol_name_match_p. Update comment.
11501 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11502 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11503 Renames symbol_name_match_p. Update field type.
11504 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11505 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11506 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11507 "la_get_symbol_name_cmp" in comments.
11508 * language.c: Likewise.
11509
11510 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11511
11512 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11513 %eflags offset.
11514 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11515 (amd64_sol2_gregset32_reg_offs): Likewise.
11516
11517 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11518
11519 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11520 of the returned BFD is allocated by GDB.
11521
11522 2012-02-07 Tom Tromey <tromey@redhat.com>
11523
11524 PR python/12027:
11525 * python/python-internal.h (frame_object_type): Declare.
11526 * python/py-symbol.c (sympy_needs_frame): New function.
11527 (sympy_value): New function.
11528 (symbol_object_getset): Add "needs_frame".
11529 (symbol_object_methods): Add "value".
11530 * python/py-frame.c (frame_object_type): No longer static.
11531
11532 2012-02-07 Tom Tromey <tromey@redhat.com>
11533
11534 PR python/13599:
11535 * python/py-symbol.c (sympy_line): New function.
11536 (symbol_object_getset): Add "line".
11537
11538 2012-02-07 Tom Tromey <tromey@redhat.com>
11539
11540 * charset.c (find_charset_names): Check 'in' against NULL.
11541
11542 2012-02-06 Doug Evans <dje@google.com>
11543
11544 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11545 and fields.name members from char * to const char *. All uses updated.
11546 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11547 from char * to const char *. All uses updated.
11548 (type_name_no_tag): Update.
11549 (lookup_unsigned_typename, lookup_signed_typename): Update.
11550 * gdbtypes.c (type_name_no_tag): Change result type
11551 from char * to const char *. All callers updated.
11552 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11553 name parameter from char * to const char *.
11554 * symtab.h (struct cplus_specific): Change type of demangled_name
11555 member from char * to const char *. All uses updated.
11556 (struct general_symbol_info): Change type of name and
11557 mangled_lang.demangled_name members from char * to const char *.
11558 All uses updated.
11559 (symbol_get_demangled_name, symbol_natural_name): Update.
11560 (symbol_demangled_name, symbol_search_name): Update.
11561 * symtab.c (symbol_get_demangled_name): Change result type
11562 from char * to const char *. All callers updated.
11563 (symbol_natural_name, symbol_demangled_name): Ditto.
11564 (symbol_search_name): Ditto.
11565 (completion_list_add_name): Change type of symname,sym_text,
11566 text,word parameters from char * to const char *.
11567 (completion_list_objc_symbol): Change type of sym_text,
11568 text,word parameters from char * to const char *.
11569 * ada-lang.c (find_struct_field): Change type of name parameter
11570 from char * to const char *.
11571 (encoded_ordered_before): Similarly for N0,N1 parameters.
11572 (old_renaming_is_invisible): Similarly for function_name parameter.
11573 (ada_type_name): Change result type from char * to const char *.
11574 All callers updated.
11575 * ada-lang.h (ada_type_name): Update.
11576 * buildsym.c (hashname): Change type of name parameter
11577 from char * to const char *.
11578 * buildsym.h (hashname): Update.
11579 * dbxread.c (end_psymtab): Change type of include_list parameter
11580 from char ** to const char **.
11581 * dwarf2read.c (determine_prefix): Change result type
11582 from char * to const char *. All callers updated.
11583 * f-lang.c (find_common_for_function): Change type of name, funcname
11584 parameters from char * to const char *.
11585 * f-lang.c (find_common_for_function): Update.
11586 * f-valprint.c (list_all_visible_commons): Change type of funcname
11587 parameters from char * to const char *.
11588 * gdbarch.sh (static_transform_name): Change type of name parameter
11589 and result from char * to const char *.
11590 * gdbarch.c: Regenerate.
11591 * gdbarch.h: Regenerate.
11592 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11593 of name parameter from char * to const char *.
11594 * jv-lang.c (java_primitive_type_from_name): Ditto.
11595 (java_demangled_signature_length): Similarly for signature parameter.
11596 (java_demangled_signature_copy): Ditto.
11597 (java_demangle_type_signature): Ditto.
11598 * jv-lang.h (java_primitive_type_from_name): Update.
11599 (java_demangle_type_signature): Update.
11600 * objc-lang.c (specialcmp): Change type of a,b parameters
11601 from char * to const char *.
11602 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11603 from char * to const char *. All callers updated.
11604 * p-lang.h (is_pascal_string_type): Update.
11605 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11606 of name parameter from char * to const char *.
11607 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11608 * utils.c (fprintf_symbol_filtered): Ditto.
11609 * defs.h (fprintf_symbol_filtered): Update.
11610 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11611 * stabsread.h (end_psymtab): Update.
11612 * stack.c (find_frame_funname): Change type of funname parameter
11613 from char ** to const char **.
11614 * stack.h (find_frame_funname): Update.
11615 * typeprint.c (type_print): Change type of varstring parameter
11616 from char * to const char *.
11617 * value.h (type_print): Update.
11618 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11619 from char * to const char *. All callers updated.
11620 (xcoff_end_psymtab): Change type of include_list parameter
11621 from char ** to const char **. All callers updated.
11622 (swap_sym): Similarly for name parameter. All callers updated.
11623 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11624 Use xstrdup.
11625 (process_coff_symbol): Use xstrdup.
11626 * stabsread.c (stabs_method_name_from_physname): Renamed from
11627 update_method_name_from_physname. Change result type from void
11628 to char *. All callers updated.
11629 (read_member_functions): In has_destructor case, store name in objfile
11630 obstack instead of malloc space. In !has_stub case, fix mem leak.
11631
11632 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11633
11634 * configure: Rebuild.
11635 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11636 LDFLAGS.
11637
11638 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11639
11640 * configure.tgt (rl78-*-elf): New target.
11641 * rl78-tdep.c: New file.
11642
11643 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11644
11645 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11646 and continue the loop. Add QUIT statement.
11647
11648 2012-02-03 Tom Tromey <tromey@redhat.com>
11649
11650 PR gdb/13596:
11651 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11652 bfd_lookup_symbol_from_symtab.
11653 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11654 gdb_bfd_lookup_symbol_from_symtab.
11655
11656 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11657
11658 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11659 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11660 symbol. Add assertion that sym2 is never NULL.
11661
11662 2012-02-02 Doug Evans <dje@google.com>
11663
11664 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11665 "name" parameter to const char ** from char **. All callers updated.
11666 (find_pc_partial_function): Ditto.
11667 (cache_pc_function_name): Change type to const char * from char *.
11668 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11669 (find_pc_partial_function): Update.
11670 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11671 type of "name" parameter to const char * from char *.
11672 All uses updated.
11673 * arch-utils.c (generic_in_solib_return_trampoline): Change
11674 type of "name" parameter to const char * from char *.
11675 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11676 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11677 type of "name" parameter to const char * from char *.
11678 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11679 * gdbarch.c: Regenerate.
11680 * gdbarch.h: Regenerate.
11681 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11682 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11683 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11684 type of "name" parameter to const char * from char *.
11685 * skip.c (skip_function_pc): Ditto.
11686 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11687 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11688 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11689 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11690 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11691 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11692 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11693 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11694 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11695
11696 2012-02-02 Pedro Alves <palves@redhat.com>
11697
11698 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11699 the current inferior has no execution. Make sure the current
11700 remote process matches gdb's current inferior.
11701
11702 2012-02-02 Tom Tromey <tromey@redhat.com>
11703
11704 PR gdb/13405:
11705 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11706 read-only memory.
11707
11708 2012-02-02 Tom Tromey <tromey@redhat.com>
11709
11710 PR gdb/9307:
11711 * symtab.c (lookup_language_this): Set block_found.
11712
11713 2012-02-01 Tom Tromey <tromey@redhat.com>
11714
11715 PR gdb/13431:
11716 * jit.c (struct jit_inferior_data): Rewrite.
11717 (struct jit_objfile_data): New.
11718 (get_jit_objfile_data): New function.
11719 (add_objfile_entry): Update.
11720 (jit_read_descriptor): Return int. Replace descriptor_addr
11721 argument with inf_data. Update. Don't call error.
11722 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11723 descriptor here.
11724 (jit_inferior_init): Don't look up descriptor. Don't call error.
11725 (jit_reset_inferior_data_and_breakpoints)
11726 (jit_inferior_created_observer): Remove.
11727 (jit_inferior_exit_hook): Update.
11728 (jit_executable_changed_observer): Remove.
11729 (jit_event_handler): Update.
11730 (free_objfile_data): Reset inferior data if needed.
11731 (_initialize_jit): Update.
11732
11733 2012-02-01 Tom Tromey <tromey@redhat.com>
11734
11735 * jit.c (bfd_open_from_target_memory): Move higher in file.
11736
11737 2012-02-01 Tristan Gingold <gingold@adacore.com>
11738
11739 * libunwind-frame.c (libunwind_load): Display message if dlopen
11740 failed.
11741
11742 2012-02-01 Gary Benson <gbenson@redhat.com>
11743
11744 * symtab.h (symbol_found_callback_ftype): New typedef.
11745 (iterate_over_symbols): Use the above.
11746 * symtab.c (iterate_over_symbols): Likewise.
11747 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11748 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11749 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11750 (iterate_name_matcher): Document return values.
11751 (collect_one_symbol): Likewise.
11752 (collect_function_symbols): Likewise.
11753 (collect_symbols): Likewise.
11754
11755 2012-02-01 Tom Tromey <tromey@redhat.com>
11756
11757 * ada-lang.c (resolve_subexp): Update.
11758 (ada_lookup_symbol_list): Add 'full_search' argument.
11759 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11760 ada_lookup_symbol_list.
11761 (ada_lookup_encoded_symbol): Update.
11762 (get_var_value): Update.
11763 * ada-exp.y (block_lookup): Update.
11764 (write_var_or_type): Update.
11765 (write_name_assoc): Update.
11766 * ada-lang.h (ada_lookup_symbol_list): Update.
11767
11768 2012-01-31 Tom Tromey <tromey@redhat.com>
11769
11770 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11771 comment.
11772
11773 2012-01-31 Doug Evans <dje@google.com>
11774
11775 * symtab.h: Remove outdated comment.
11776 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11777
11778 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11779
11780 Fix build error in Darwin port.
11781 * i386-darwin-nat.c: Include i386-nat.h.
11782
11783 2012-01-30 Tom Tromey <tromey@redhat.com>
11784
11785 PR breakpoints/13568:
11786 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11787 argument. Check for recursive includes.
11788 (dwarf_decode_macros): Create an include hash.
11789
11790 2012-01-30 Michael Eager <eager@eagercon.com>
11791
11792 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11793 * ppc-linux-tdep.c: Include glibc-tdep.h.
11794 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11795 (powerpc_linux_in_plt_stub): New function.
11796 (powerpc_linux_in_dynsym_resolve_code): New function.
11797 (ppc_skip_trampoline_code): New function.
11798 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11799 Use glibc_skip_solib_resolver.
11800
11801 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11802
11803 Code cleanup: Make 1440 bytes of data segment read-only.
11804 * arch-utils.c (endian_enum): Make it const char *const [].
11805 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11806 Likewise.
11807 * breakpoint.c (always_inserted_enums): Likewise.
11808 * cli/cli-cmds.c (script_ext_enums): Likewise.
11809 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11810 enumlist parameter const char *const *.
11811 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11812 const char *const *.
11813 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11814 parameter const char *const *.
11815 * cris-tdep.c (cris_modes): Make it const char *const [].
11816 * filesystem.c (target_file_system_kinds): Likewise.
11817 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11818 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11819 (can_use_displaced_stepping_enum, scheduler_enums)
11820 (exec_direction_names): Likewise.
11821 * language.c (_initialize_language): Make the type_or_range_names and
11822 case_sensitive_names variables const char *const [].
11823 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11824 * python/python.c (python_excp_enums): Likewise.
11825 * remote.c (interrupt_sequence_modes): Likewise.
11826 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11827 * serial.c (logbase_enums): Likewise.
11828 * sh-tdep.c (sh_cc_enum): Likewise.
11829 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11830 Likewise.
11831 * symtab.c (multiple_symbols_modes): Likewise.
11832 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11833 Likewise.
11834 * utils.c (internal_problem_modes): Likewise.
11835
11836 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11837
11838 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11839 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11840 result.
11841
11842 2012-01-27 Doug Evans <dje@google.com>
11843
11844 * configure.ac (with_python): Fix absolute path handling for win32.
11845 * configure: Regenerate.
11846
11847 2012-01-26 Doug Evans <dje@google.com>
11848
11849 * symtab.c: Whitespace cleanup, no code changes.
11850
11851 * symtab.c (lookup_symbol_in_language): Improve comment.
11852 (lookup_symbol_aux): Fix comment.
11853
11854 * psymtab.c (add_psymbol_to_list): Result is now "void".
11855 * psympriv.h (add_psymbol_to_list): Update.
11856
11857 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11858
11859 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11860
11861 Do not open script filenames twice.
11862 * cli/cli-cmds.c (source_script_from_stream): Pass to
11863 source_python_script also STREAM.
11864 * python/py-auto-load.c (source_section_scripts): Pass to
11865 source_python_script_for_objfile also STREAM.
11866 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11867 also INPUT.
11868 * python/python-internal.h (source_python_script_for_objfile): New
11869 parameter file, rename parameter file to filename.
11870 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11871 instead if !_WIN32. Update the function comment.
11872 (source_python_script, source_python_script_for_objfile)
11873 (source_python_script): New parameter file, rename parameter file to
11874 filename. Pass FILENAME to python_run_simple_file.
11875 * python/python.h (source_python_script): New parameter file, rename
11876 parameter file to filename.
11877
11878 2012-01-26 Pedro Alves <palves@redhat.com>
11879
11880 * corelow.c (core_has_fake_pid): Delete.
11881 (core_close): Delete references to `core_has_fake_pid'.
11882 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11883 (core_open): Delete references to `core_has_fake_pid'.
11884 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11885 the removed global.
11886
11887 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11888
11889 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11890 Remove language parameter from name_matcher. Adjust the comment.
11891 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11892 Remove language parameter.
11893 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11894 * linespec.c (iterate_name_matcher): Likewise.
11895 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11896 name_matcher. Adjust call accordingly.
11897 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11898 (maintenance_check_symtabs): Adjust type of parameter "fun".
11899 * psymtab.h (maintenance_check_symtabs): Likewise.
11900
11901 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11902
11903 * language.h (symbol_name_match_p_ftype): New typedef.
11904 (struct language_defn): Replace field la_symbol_name_compare
11905 by la_get_symbol_name_match_p.
11906 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11907 (ada_language_defn): Use it.
11908 * linespec.c (struct symbol_matcher_data): New type.
11909 (iterate_name_matcher): Rewrite.
11910 (iterate_over_all_matching_symtabs): Pass a pointer to
11911 a symbol_matcher_data struct to expand_symtabs_matching
11912 instead of just the lookup name.
11913 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11914 opencl-lang.c, p-lang.c, language.c: Delete field
11915 la_symbol_name_compare, and replace by NULL for new field
11916 la_get_symbol_name_match_p.
11917 * symfile.h (struct quick_symbol_functions): Update comment.
11918
11919 2012-01-25 Tom Tromey <tromey@redhat.com>
11920
11921 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11922 dereferencing.
11923
11924 2012-01-24 Tom Tromey <tromey@redhat.com>
11925
11926 PR symtab/12406:
11927 * solib.c (update_solib_list): Update the program space's
11928 added_solibs and deleted_solibs fields.
11929 * progspace.h (struct program_space) <added_solibs,
11930 deleted_solibs>: New fields.
11931 (clear_program_space_solib_cache): Declare.
11932 * progspace.c (release_program_space): Call
11933 clear_program_space_solib_cache.
11934 (clear_program_space_solib_cache): New function.
11935 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11936 bpstat_stop_status. Use handle_solib_event.
11937 * breakpoint.c: Include gdb_regex.h.
11938 (print_solib_event): New function.
11939 (bpstat_print): Use print_solib_event.
11940 (bpstat_stop_status): Add special case for bp_shlib_event.
11941 (handle_solib_event): New function.
11942 (bpstat_what): Use handle_solib_event.
11943 (struct solib_catchpoint): New.
11944 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11945 (breakpoint_hit_catch_solib, check_status_catch_solib)
11946 (print_it_catch_solib, print_one_catch_solib)
11947 (print_mention_catch_solib, print_recreate_catch_solib): New
11948 functions.
11949 (catch_solib_breakpoint_ops): New global.
11950 (catch_load_or_unload, catch_load_command_1)
11951 (catch_unload_command_1): New functions.
11952 (internal_bkpt_check_status): Add special case for
11953 bp_shlib_event.
11954 (internal_bkpt_print_it): Use print_solib_event.
11955 (initialize_breakpoint_ops): Initialize
11956 catch_solib_breakpoint_ops.
11957 (_initialize_breakpoint): Register "catch load" and "catch
11958 unload".
11959 * breakpoint.h (handle_solib_event): Declare.
11960 * NEWS: Add entry for "catch load" and "catch unload".
11961
11962 2012-01-24 Tom Tromey <tromey@redhat.com>
11963
11964 * ada-lang.c: Include gdb_vecs.h.
11965 * charset.c: Include gdb_vecs.h.
11966 * tracepoint.h: Include gdb_vecs.h.
11967 * gdb_vecs.h: New file.
11968
11969 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11970
11971 * breakpoint.c (breakpoint_hit_catch_fork)
11972 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11973 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11974 * infrun.c (inferior_has_forked, inferior_has_vforked)
11975 (inferior_has_execd, inferior_has_called_syscall): Delete.
11976 (handle_syscall_event): Get syscall_number from the execution
11977 control state's wait status.
11978 (wait_for_inferior): Don't clear syscall_number.
11979
11980 2012-01-24 Pedro Alves <palves@redhat.com>
11981
11982 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11983 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11984 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11985 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11986 `ws' parameter.
11987 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11988 false for events other than TARGET_SIGNAL_TRAP.
11989 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11990 Add `ws' parameter.
11991 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11992 events other than TARGET_SIGNAL_TRAP.
11993 (tracepoint_breakpoint_hit): Add `ws' parameter.
11994 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11995 parameter.
11996 (bpstat_stop_status): Same.
11997 (pc_at_non_inline_function): Same.
11998 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11999 to pass the current event's waitstatus to bpstat_stop_status
12000 and pc_at_non_inline_function.
12001
12002 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12003
12004 Code cleanup.
12005 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12006 Update the function comment for it.
12007 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12008 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12009 for STREAM.
12010
12011 2012-01-24 Pedro Alves <palves@redhat.com>
12012
12013 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12014 outside `bs->stop' block.
12015 (bpstat_what): Rework bp_shlib_event handling.
12016 (internal_bkpt_check_status): If the breakpoint is a
12017 bp_shlib_event, then set bs->stop and bs->print if
12018 stop_on_solib_events is set.
12019
12020 2012-01-24 Gary Benson <gbenson@redhat.com>
12021
12022 Delete #if 0'd out code.
12023 * stack.c (print_frame_label_vars): Remove.
12024 (catch_info): Likewise.
12025 (_initialize_stack): Remove "info catch" command.
12026 * NEWS: Mention the above.
12027
12028 2012-01-24 Pedro Alves <palves@redhat.com>
12029
12030 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12031 it.
12032 (remote_notice_new_inferior): If the remote end doesn't support
12033 the multiprocess extensions, then the PID is fake.
12034 (add_current_inferior_and_thread): New.
12035 (remote_start_remote): Use it.
12036 (extended_remote_attach_1): Adjust.
12037 (extended_remote_create_inferior_1): Use
12038 add_current_inferior_and_thread.
12039
12040 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12041
12042 Fix watchpoints to be specific for each inferior.
12043 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12044 current_program_space.
12045 * i386-nat.c (i386_inferior_data_cleanup): New.
12046 (i386_inferior_data_get): Replace variable inf_data_local by an
12047 inferior_data call.
12048 (i386_use_watchpoints): Initialize i386_inferior_data.
12049 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12050 specific iterate_over_lwps.
12051
12052 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12053
12054 Fix watchpoints across inferior fork.
12055 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12056 comment for linux_nat_iterate_watchpoint_lwps.
12057 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12058 linux_nat_iterate_watchpoint_lwps.
12059 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12060 * i386-linux-nat.c (update_debug_registers_callback): Update the
12061 comment for linux_nat_iterate_watchpoint_lwps.
12062 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12063 linux_nat_iterate_watchpoint_lwps.
12064 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12065 * i386-nat.c: Include inferior.h.
12066 (dr_mirror): Remove.
12067 (i386_inferior_data, struct i386_inferior_data)
12068 (i386_inferior_data_get): New.
12069 (i386_debug_reg_state): Use i386_inferior_data_get.
12070 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12071 (i386_insert_watchpoint, i386_remove_watchpoint)
12072 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12073 (i386_remove_hw_breakpoint): New variable state, use
12074 i386_debug_reg_state instead of DR_MIRROR.
12075 * linux-nat.c (delete_lwp): New declaration.
12076 (num_lwps): Move here from downwards.
12077 (delete_lwp_cleanup): New.
12078 (linux_child_follow_fork): Create new child_lp, call
12079 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12080 PTRACE_DETACH.
12081 (num_lwps): Move upwards.
12082 (linux_nat_iterate_watchpoint_lwps): New.
12083 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12084 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12085
12086 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12087
12088 GDB 7.4 released.
12089
12090 2012-01-23 Pedro Alves <palves@redhat.com>
12091
12092 * top.c (caution): Rename to ...
12093 (confirm): ... this.
12094 (show_caution): Rename to ...
12095 (show_confirm): ... this.
12096 (quit_cover): Adjust.
12097 (init_main): Adjust.
12098 * top.h (caution): Rename to ...
12099 (confirm): ... this.
12100 * utils.c (internal_vproblem, defaulted_query): Adjust.
12101
12102 2012-01-23 Pedro Alves <palves@redhat.com>
12103
12104 * top.c (caution): Update comment.
12105 (execute_command): Don't consider the current value of `caution'.
12106
12107 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12108
12109 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12110
12111 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12112
12113 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12114 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12115 * target.c (target_fileio_pwrite): Remove buffer address from
12116 debug output.
12117 (target_fileio_pread): Likewise.
12118
12119 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12120
12121 * NEWS: Document remote "info proc" and "generate-core-file".
12122
12123 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12124
12125 * gdbarch.sh (find_memory_regions): New callback.
12126 * gdbarch.c, gdbarch.h: Regenerate.
12127
12128 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12129 callback before falling back to target method.
12130
12131 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12132 (linux_target_install_ops): No longer install it.
12133
12134 * linux-tdep.c (linux_find_memory_regions): New function.
12135 (linux_init_abi): Install it.
12136
12137 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12138
12139 * gdbarch.sh (make_corefile_notes): New architecture callback.
12140 * gdbarch.c: Regenerate.
12141 * gdbarch.h: Likewise.
12142
12143 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12144 before target_make_corefile_notes. If NULL is returned, the
12145 target does not support core file generation.
12146
12147 * linux-nat.c: Include "linux-tdep.h".
12148 (find_signalled_thread, find_stop_signal): Remove.
12149 (linux_nat_do_thread_registers): Likewise.
12150 (struct linux_nat_corefile_thread_data): Likewise.
12151 (linux_nat_corefile_thread_callback): Likewise.
12152 (iterate_over_spus): Likewise.
12153 (struct linux_spu_corefile_data): Likewise.
12154 (linux_spu_corefile_callback): Likewise.
12155 (linux_spu_make_corefile_notes): Likewise.
12156 (linux_nat_collect_thread_registers): New function.
12157 (linux_nat_make_corefile_notes): Replace contents by call to
12158 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12159 as native-only callback.
12160
12161 * linux-tdep.h: Include "bfd.h".
12162 (struct regcache): Add forward declaration.
12163 (linux_collect_thread_registers_ftype): New typedef.
12164 (linux_make_corefile_notes): Add prototype.
12165 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12166 "regset.h", and "elf-bfd.h".
12167 (find_signalled_thread, find_stop_signal): New functions.
12168 (linux_spu_make_corefile_notes): Likewise.
12169 (linux_collect_thread_registers): Likewise.
12170 (struct linux_corefile_thread_data): New data structure.
12171 (linux_corefile_thread_callback): New funcion.
12172 (linux_make_corefile_notes): Likewise.
12173 (linux_make_corefile_notes_1): Likewise.
12174 (linux_init_abi): Install it.
12175
12176 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12177
12178 * gdbarch.sh (info_proc): New callback.
12179 * gdbarch.c, gdbarch.h: Regenerate.
12180
12181 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12182 before falling back to the target info_proc callback.
12183
12184 * linux-nat.c: Do not include "cli/cli-utils.h".
12185 (linux_nat_info_proc): Remove.
12186 (linux_target_install_ops): No longer install it.
12187
12188 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12189 (read_mapping): New function.
12190 (linux_info_proc): Likewise.
12191 (linux_init_abi): Install it.
12192
12193 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12194
12195 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12196 * infcmd.c: (info_proc_cmd_1): New function.
12197 (info_proc_cmd): New function, moved here from equivalent routine
12198 orignally in linux-nat.c.
12199 (info_proc_cmd_mappings): Likewise.
12200 (info_proc_cmd_stat): Likewise.
12201 (info_proc_cmd_status): Likewise.
12202 (info_proc_cmd_cwd): Likewise.
12203 (info_proc_cmd_cmdline): Likewise.
12204 (info_proc_cmd_exe): Likewise.
12205 (info_proc_cmd_all): Likewise.
12206 (_initialize_infcmd): Install "info proc" command and subcommands.
12207
12208 * target.h (struct target_ops): Add to_info_proc.
12209 (target_info_proc): Add prototype.
12210 * target.c (target_info_proc): New function.
12211
12212 * procfs.c (procfs_info_proc): Add prototype.
12213 (info_proc_cmd): Rename into ...
12214 (procfs_info_proc): ... this. Update argument types as appropriate
12215 for a to_info_proc implementation. Handle "what" argument.
12216 (procfs_target): Install procfs_info_proc.
12217 (_initialize_procfs): No longer install "info proc" command.
12218
12219 * linux-nat.c: (enum info_proc_what): Remove.
12220 (linux_nat_info_proc_cmd_1): Rename into ...
12221 (linux_nat_info_proc): ... this. Update argument types as appropriate
12222 for a to_info_proc implementation.
12223 (linux_nat_info_proc_cmd): Remove.
12224 (linux_nat_info_proc_cmd_mappings): Likewise.
12225 (linux_nat_info_proc_cmd_stat): Likewise.
12226 (linux_nat_info_proc_cmd_status): Likewise.
12227 (linux_nat_info_proc_cmd_cwd): Likewise.
12228 (linux_nat_info_proc_cmd_cmdline): Likewise.
12229 (linux_nat_info_proc_cmd_exe): Likewise.
12230 (linux_nat_info_proc_cmd_all): Likewise.
12231 (linux_target_install_ops): Install linux_nat_info_proc.
12232 (_initialize_linux_nat): No longer install "info proc" command
12233 and subcommands.
12234
12235 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12236
12237 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12238 * config.in, configure: Regenerate.
12239
12240 * target.h (struct target_ops): Add to_fileio_readlink.
12241 (target_fileio_readlink): Add prototype.
12242 * target.c (target_fileio_readlink): New function.
12243
12244 * inf-child.c: Conditionally include <sys/param.h>.
12245 (inf_child_fileio_readlink): New function.
12246 (inf_child_target): Install it.
12247
12248 * remote.c (PACKET_vFile_readlink): New enum value.
12249 (remote_hostio_readlink): New function.
12250 (init_remote_ops): Install it.
12251 (_initialize_remote): Handle vFile:readlink packet type.
12252
12253 2012-01-20 Pedro Alves <palves@redhat.com>
12254 Ulrich Weigand <ulrich.weigand@linaro.org>
12255
12256 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12257 * config.in, configure: Regenerate.
12258
12259 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12260 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12261 (target_fileio_open): Add prototype.
12262 (target_fileio_pwrite): Likewise.
12263 (target_fileio_pread): Likewise.
12264 (target_fileio_close): Likewise.
12265 (target_fileio_unlink): Likewise.
12266 (target_fileio_read_alloc): Likewise.
12267 (target_fileio_read_stralloc): Likewise.
12268
12269 * target.c: Include "gdb/fileio.h".
12270 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12271 (default_fileio_target): New function.
12272 (target_fileio_open): Likewise.
12273 (target_fileio_pwrite): Likewise.
12274 (target_fileio_pread): Likewise.
12275 (target_fileio_close): Likewise.
12276 (target_fileio_unlink): Likewise.
12277 (target_fileio_close_cleanup): Likewise.
12278 (target_fileio_read_alloc_1): Likewise.
12279 (target_fileio_read_alloc): Likewise.
12280 (target_fileio_read_stralloc): Likewise.
12281
12282 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12283 <fcntl.h>, and <unistd.h>.
12284 (inf_child_fileio_open_flags_to_host): New function.
12285 (inf_child_errno_to_fileio_error): Likewise.
12286 (inf_child_fileio_open): Likewise.
12287 (inf_child_fileio_pwrite): Likewise.
12288 (inf_child_fileio_pread): Likewise.
12289 (inf_child_fileio_close): Likewise.
12290 (inf_child_fileio_unlink): Likewise.
12291 (inf_child_target): Install to_fileio routines.
12292
12293 * remote.c (init_remote_ops): Install to_fileio routines.
12294
12295 2012-01-20 Pedro Alves <palves@redhat.com>
12296 Ulrich Weigand <ulrich.weigand@linaro.org>
12297
12298 * remote.c (remote_multi_process_p): Only check for multi-process
12299 protocol feature, do not check for extended protocol.
12300 (remote_supports_multi_process): Check for extended protocol here.
12301 (set_general_process): Likewise.
12302 (extended_remote_kill): Likewise.
12303 (remote_pid_to_str): Likewise.
12304 (remote_query_supported): Always query multiprocess mode.
12305
12306 2012-01-20 Pedro Alves <palves@redhat.com>
12307 Ulrich Weigand <ulrich.weigand@linaro.org>
12308
12309 * inferior.h (struct inferior): Add fake_pid_p.
12310 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12311 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12312 magic_null_ptid since the remote side doesn't provide a real PID.
12313
12314 2012-01-19 Tom Tromey <tromey@redhat.com>
12315
12316 * NEWS: Combine the two Python sections.
12317
12318 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12319
12320 * target.h (target_close): Update comment on the target's unpush state.
12321
12322 2012-01-19 Pedro Alves <palves@redhat.com>
12323
12324 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12325 linux_nat_async directly instead of going through the target
12326 vector.
12327 * target.c (unpush_target): Close target after unpushing it, not
12328 before.
12329
12330 2012-01-19 Gary Benson <gbenson@redhat.com>
12331
12332 * mdebugread.c (sort_blocks): Replace integer constants with ones
12333 derived from FIRST_LOCAL_BLOCK.
12334
12335 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12336 Jan Kratochvil <jan.kratochvil@redhat.com>
12337
12338 PR gdb/9538
12339 * symfile.c (find_separate_debug_file): New function.
12340 (terminate_after_last_dir_separator): Likewise.
12341 (find_separate_debug_file_by_debuglink): Also try realpath.
12342 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12343 * configure: Regenerate.
12344 * config.in: Regenerate.
12345
12346 2012-01-18 Doug Evans <dje@google.com>
12347
12348 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12349 (main.o): Remove rule.
12350 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12351 (--with-sysroot): Rewrite.
12352 * configure: Regenerate.
12353 * config.in: Regenerate.
12354
12355 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12356
12357 * parse.c (initialize_expout): New function.
12358 (reallocate_expout): Likewise.
12359 (parse_exp_in_context): Use `initialize_expout' and
12360 `reallocate_expout' when appropriate.
12361
12362 2012-01-18 Pedro Alves <palves@redhat.com>
12363
12364 * record.c (struct record_breakpoint, record_breakpoint_p)
12365 (record_breakpoints): New.
12366 (record_insert_breakpoint, record_remove_breakpoint): Manage
12367 record breakpoints list. Only remove breakpoints from the
12368 inferior if they had been inserted there in the first place.
12369
12370 2012-01-17 Doug Evans <dje@google.com>
12371
12372 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12373 if we know we don't have a file name to look for.
12374
12375 2012-01-17 Pedro Alves <palves@redhat.com>
12376
12377 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12378 the frame's stop reason is UNWIND_UNAVAILABLE.
12379
12380 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12381
12382 Fix compilation error.
12383 * m2-exp.y (yyerror): Use ANSI C prototype.
12384
12385 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12386
12387 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12388 (growbuf_by_size): Likewise.
12389 (yyerror): Likewise.
12390 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12391 (modblock): Remove variable (was #if 0'ed).
12392 (parse_number): Convert prototype from K&R to ANSI C.
12393 (yyerror): Likewise.
12394 * objc-exp.y (parse_number): Likewise.
12395 (yyerror): Likewise.
12396 (yylex): Remove #if 0'ed code.
12397 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12398 (yyerror): Likewise.
12399
12400 2012-01-16 Tom Tromey <tromey@redhat.com>
12401
12402 * NEWS: Add item.
12403 * symtab.h (compare_filenames_for_search): Declare.
12404 * symtab.c (compare_filenames_for_search): New function.
12405 (iterate_over_some_symtabs): Use it.
12406 * symfile.h (struct quick_symbol_functions)
12407 <map_symtabs_matching_filename>: Change spec.
12408 * psymtab.c (partial_map_symtabs_matching_filename): Use
12409 compare_filenames_for_search. Update for new spec.
12410 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12411 compare_filenames_for_search. Update for new spec.
12412 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12413
12414 2012-01-16 Tom Tromey <tromey@redhat.com>
12415
12416 PR python/13281:
12417 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12418 (struct main_type) <flag_flag_enum>: New field.
12419 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12420 * NEWS: Add entries.
12421 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12422 enums.
12423 * python/lib/gdb/printing.py (_EnumInstance): New class.
12424 (FlagEnumerationPrinter): Likewise.
12425
12426 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12427
12428 * breakpoint.c (create_sals_from_address_default): New function.
12429 (create_breakpoints_sal_default): Likewise.
12430 (decode_linespec_default): Likewise.
12431 (is_marker_spec): Removed.
12432 (strace_marker_p): New function.
12433 (init_breakpoint_sal): Using `strace_marker_p' instead of
12434 `is_marker_spec'.
12435 (create_breakpoint): Call method `create_sals_from_address' from
12436 breakpoint_ops, replacing code that created SALs conditionally
12437 on the type of the breakpoint. Call method `create_breakpoints_sal',
12438 replacing code that created breakpoints conditionally on the type
12439 wanted.
12440 (base_breakpoint_create_sals_from_address): New function.
12441 (base_breakpoint_create_breakpoints_sal): Likewise.
12442 (base_breakpoint_decode_linespec): Likewise.
12443 (base_breakpoint_ops): Add methods
12444 `base_breakpoint_create_sals_from_address',
12445 `base_breakpoint_create_breakpoints_sal' and
12446 `base_breakpoint_decode_linespec'.
12447 (bkpt_create_sals_from_address): New function.
12448 (bkpt_create_breakpoints_sal): Likewise.
12449 (bkpt_decode_linespec): Likewise.
12450 (tracepoint_create_sals_from_address): Likewise.
12451 (tracepoint_create_breakpoints_sal): Likewise.
12452 (tracepoint_decode_linespec): Likewise.
12453 (strace_marker_create_sals_from_address): Likewise.
12454 (strace_marker_create_breakpoints_sal): Likewise.
12455 (strace_marker_decode_linespec): Likewise.
12456 (strace_marker_breakpoint_ops): New variable.
12457 (addr_string_to_sals): Remove `marker_spec'. Call method
12458 `decode_linespec' from breakpoint_ops, replacing code that decoded
12459 an address string into a SAL. Use `strace_marker_p' instead of
12460 `marker_spec'.
12461 (strace_command): Decide whether we are dealing with a static
12462 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12463 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12464 * breakpoint.h (linespec_result, linespec_sals): New forward
12465 declarations.
12466 (breakpoint_ops) <create_sals_from_address>,
12467 <create_breakpoints_sal>, <decode_linespec>: New methods.
12468
12469 2012-01-14 Doug Evans <dje@google.com>
12470
12471 * NEWS: Update text for "maint set python print-stack".
12472 It is deprecated in gdb 7.4 and deleted in 7.5.
12473
12474 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12475
12476 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12477 including curses.h.
12478
12479 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12480
12481 * configure: Regenerate.
12482 * config.in: Regenerate.
12483
12484 2012-01-12 Keith Seitz <keiths@redhat.com>
12485
12486 PR mi/10586
12487 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12488 (ANONYMOUS_UNION_NAME): Define.
12489 (is_path_expr_parent): New function.
12490 (get_path_expr_parent): New function.
12491 (is_anonymous_child): New function.
12492 (create_child_with_value): If the child is anonymous and without
12493 a name, assign an object name to it.
12494 (c_describe_child): Use get_path_expr_parent to determine
12495 the parent expression.
12496 If there field represents an anonymous struct or union and
12497 has no name, set an appropriate display name and expression.
12498 (cplus_describe_child): Likewise.
12499
12500 2012-01-12 Pedro Alves <palves@redhat.com>
12501
12502 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12503 available when %ebp is found to be zero (outermost).
12504
12505 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12506
12507 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12508 an internal gdb_static_assert.
12509 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12510
12511 2012-01-11 Tom Tromey <tromey@redhat.com>
12512
12513 PR gdb/9598:
12514 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12515 catch" and "catch throw".
12516
12517 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12518
12519 * blockframe.c (block_innermost_frame): Start search from selected
12520 frame, if present, or otherwise the current frame.
12521
12522 * c-exp.y (variable): Update innermost_block for
12523 'block COLONCOLON NAME' clause.
12524 * m2-exp.y (variable): Ditto.
12525 * objc-exp.y (variable): Ditto.
12526
12527 2012-01-10 Tom Tromey <tromey@redhat.com>
12528
12529 PR python/13199:
12530 * python/python.c (finish_python_initialization): Set sys.argv.
12531
12532 2012-01-10 Doug Evans <dje@google.com>
12533
12534 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12535 "want_line_info". All callers updated.
12536 (dwarf_decode_lines_1): New function.
12537 (handle_DW_AT_stmt_list): Add function comment.
12538 New arg "want_line_info". All callers updated.
12539 (read_file_scope,read_type_unit_scope): Move comment from
12540 handle_DW_AT_stmt_list to here.
12541
12542 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12543
12544 Fix regression after libiberty/ update for GCC PR 6057 and others.
12545 * c-exp.y (operator) <OPERATOR DELETE>
12546 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12547 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12548 (make_builtin_type, make_name): New variable i, add gdb_assert.
12549 (operator) <OPERATOR NEW>: Update ARGS to 3.
12550 (operator) <OPERATOR DELETE>: Add trailing space.
12551 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12552 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12553 * cp-support.c (cp_canonicalize_string): Check NULL from
12554 cp_comp_to_string, call warning and return.
12555
12556 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12557
12558 Fix duplicate .o files after omitting libbfd.a.
12559 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12560 (SFILES): Add corelow.c.
12561 (COMMON_OBS): Add corelow.o.
12562 (ALLDEPFILES): Remove corelow.c.
12563 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12564 * config/alpha/alpha-osf3.mh: Likewise.
12565 * config/alpha/fbsd.mh: Likewise.
12566 * config/arm/nbsdaout.mh: Likewise.
12567 * config/arm/nbsdelf.mh: Likewise.
12568 * config/i386/i386gnu.mh: Likewise.
12569 * config/ia64/hpux.mh: Likewise.
12570 * config/ia64/linux.mh: Likewise.
12571 * config/m32r/linux.mh: Likewise.
12572 * config/m68k/linux.mh: Likewise.
12573 * config/mips/irix5.mh: Likewise.
12574 * config/mips/irix6.mh: Likewise.
12575 * config/pa/hpux.mh: Likewise.
12576 * config/pa/linux.mh: Likewise.
12577 * config/powerpc/aix.mh: Likewise.
12578 * config/sparc/linux.mh: Likewise.
12579 * config/sparc/linux64.mh: Likewise.
12580 * config/sparc/sol2.mh: Likewise.
12581 * config/vax/vax.mh: Likewise.
12582 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12583 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12584 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12585 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12586 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12587 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12588 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12589 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12590 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12591 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12592 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12593 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12594 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12595 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12596 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12597 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12598 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12599 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12600 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12601 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12602 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12603 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12604 corelow.o from gdb_target_obs.
12605 * corefile.c (core_target): Update the comment on NULL value.
12606 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12607 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12608 MATCHES. Drop YUMMY set on NULL.
12609 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12610 reclaim CORE_DATA if it is already NULL.
12611
12612 2012-01-09 Doug Evans <dje@google.com>
12613
12614 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12615 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12616
12617 2012-01-09 Keith Seitz <keiths@redhat.com>
12618
12619 * breakpoint.c (wrapper.h): Don't include.
12620
12621 2012-01-09 Keith Seitz <keiths@redhat.com>
12622
12623 * Makefile.in (SFILES): Remove wrapper.c.
12624 (HFILES_NO_SRCDIR): Remove wrapper.h.
12625 (COMMON_OBS): Remove wrapper.o.
12626 * cli/cli-interp.c: Don't inlude wrapper.h.
12627 * corelow.c: Likewise.
12628 (core_open): Replace gdb_target_find_new_threads with
12629 TRY_CATCH around target_find_new_threads.
12630 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12631 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12632 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12633 evaluate_expression.
12634 (varobj_set_value): Likewise for evaluate_expression and
12635 value_assign.
12636 (install_new_variable): Likewise for value_fetch_lazy.
12637 (adjust_value_for_child_access): Likewise for value_ind.
12638 (c_describe_child): Likewise for value_subscript and
12639 value_ind.
12640 (c_value_of_root): Likewise for evaluate_expression.
12641 * wrapper.c: Remove.
12642 * wrapper.h: Remove.
12643
12644 2012-01-09 Doug Evans <dje@google.com>
12645
12646 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12647 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12648 "abfd" args with "section". All callers updated.
12649 Error checking code moved ...
12650 (error_check_comp_unit_head): ... here. New function.
12651 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12652 Delete arg "abfd". New arg "type_offset". All callers updated.
12653 (create_debug_types_hash_table): Simplify by using
12654 read_and_check_type_unit_head.
12655
12656 * parser-defs.h (namecopy): Delete.
12657 * parse.c (namecopy, namecopy_size): Move into copy_name.
12658
12659 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12660
12661 Partially fix duplicate .o files after omitting libbfd.a.
12662 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12663 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12664 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12665 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12666 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12667 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12668 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12669
12670 2012-01-09 Pedro Alves <palves@redhat.com>
12671
12672 * MAINTAINERS: Update my email address.
12673
12674 2012-01-08 Doug Evans <dje@google.com>
12675
12676 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12677 n_type_units. Rename type_comp_units to all_type_units.
12678 All uses updated.
12679 (add_signatured_type_cu_to_table): Renamed from
12680 add_signatured_type_cu_to_list. All callers updated.
12681
12682 * gdbtypes.h (struct cplus_struct_type): Delete member
12683 nfn_fields_total. All uses removed.
12684
12685 2012-01-06 Doug Evans <dje@google.com>
12686
12687 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12688 to top of file.
12689 (dwarf2_find_comp_unit): Delete.
12690 (process_psymtab_comp_unit): Make result "void".
12691 Delete args buffer, info_ptr, buffer_size, and replace with
12692 "section". All callers updated.
12693 (dwarf2_build_psymtabs_hard): Simplify.
12694
12695 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12696 Thiago Jung Bauermann <bauerman@br.ibm.com>
12697
12698 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12699 before `struct gdb_exception'.
12700 * breakpoint.c (update_global_location_list_nothrow)
12701 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12702 * cp-abi.c (value_rtti_type): Likewise.
12703 * cp-support.c (cp_validate_operator): Likewise.
12704 * infrun.c (insert_exception_resume_breakpoint)
12705 (check_exception_resume, keep_going): Likewise.
12706 * mi-interp.c (mi_breakpoint_created)
12707 (mi_breakpoint_modified): Likewise.
12708 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12709 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12710 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12711
12712 2012-01-05 Doug Evans <dje@google.com>
12713
12714 * dwarf2read.c (statement_prologue): Delete, unused.
12715
12716 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12717 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12718
12719 * dwarf2read.c (comp_unit_header): Delete, unused.
12720
12721 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12722
12723 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12724 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12725
12726 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12727
12728 * infrun.c (normal_stop): Don't skip calling the normal_stop
12729 observers if the thread was doing a multi-step, but stopped for
12730 some reason other than stepping.
12731
12732 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12733
12734 * cli/cli-decode.h: Add comments.
12735 (CMD_LIST_AMBIGUOUS): Moved to command.h
12736 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12737 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12738 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12739 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12740 (add_com, add_com_alias, add_info, add_info_alias)
12741 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12742 declarations.
12743 * command.h: Add and adjust comments.
12744 (CMD_LIST_AMBIGUOUS): Moved here.
12745 (help_cmd, help_cmd_list): Delete declarations.
12746
12747 2012-01-04 Doug Evans <dje@google.com>
12748
12749 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12750 All callers updated.
12751 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12752 Replace all arguments with "per_cu". All callers updated.
12753
12754 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12755
12756 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12757 New arg "per_cu". All callers updated.
12758
12759 Delete #if 0'd out code.
12760 * language.c (binop_result_type): Delete.
12761 (simple_type, ordered_type, same_type, integral_type): Delete.
12762 (numeric_type, character_type, string_type, boolean_type): Delete.
12763 (float_type, structured_type): Delete.
12764 * language.h: Update.
12765
12766 2012-01-04 Tom Tromey <tromey@redhat.com>
12767
12768 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12769
12770 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12771
12772 * corefile.c (close_exec_file): Delete.
12773 (reopen_exec_file): Remove commented out code that seems related
12774 to close_exec_file, which is being deleted here.
12775 * inferior.h (close_exec_file): Delete.
12776 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12777
12778 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12779
12780 * ada-lang.c: #include "cli/cli-utils.h".
12781 (get_selections): Use skip_spaces.
12782 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12783 (catch_ada_exception_command_split): Use skip_spaces.
12784 (ada_decode_assert_location): Likewise.
12785
12786 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12787
12788 * linespec.c (decode_line_internal): Check for C++ or Java
12789 compound constructs only if the current language is C, C++
12790 or Java.
12791
12792 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12793
12794 Revert:
12795 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12796 Joel Brobecker <brobecker@adacore.com>
12797 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12798 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12799 3 times.
12800 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12801 fall through into AT_ENTRY_POINT.
12802 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12803 DUMMY_ADDR with it.
12804 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12805 PPC_INSN_SIZE skip to 3 times.
12806
12807 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12808
12809 * linespec.c (add_minsym): Preserve function descriptors.
12810
12811 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12812
12813 * breakpoint.c (all_locations_are_pending): Consider locations
12814 in program spaces executing during startup pending as well.
12815
12816 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12817
12818 Copyright year update in most files of the GDB Project.
12819
12820 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12821
12822 * copyright.sh: Delete.
12823 * copyright.py: Rewrite.
12824
12825 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12826
12827 * gnulib/extra/update-copyright: New file, imported from gnulib.
12828
12829 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12830
12831 * README (Copyright and License Notices): New section.
12832
12833 2012-01-03 Tom Tromey <tromey@redhat.com>
12834
12835 PR python/12533:
12836 * python/py-value.c (valpy_dereference, valpy_get_address
12837 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12838 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12839 (valpy_absolute, valpy_richcompare): Free intermediate values.
12840
12841 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12842
12843 * ada-lang.c: Reformat the copyright notice.
12844
12845 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12846
12847 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12848 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12849 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12850 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12851 Revert this part of:
12852 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12853 Build gdb directly from *.o files not using libgdb.a.
12854 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12855
12856 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12857
12858 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12859 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12860 Reformat the copyright header.
12861
12862 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12863
12864 Revert this part of:
12865 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12866 Remove the gdbtui binary.
12867 * gdb.c (main): Remove args.interpreter_p initialization.
12868 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12869 * main.h (struct captured_main_args): Remove interpreter_p.
12870
12871 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12872
12873 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12874
12875 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12876
12877 * top.c (print_gdb_version): Update copyright year.
12878
12879 2012-01-02 Yao Qi <yao@codesourcery.com>
12880
12881 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12882
12883 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12884 Joel Brobecker <brobecker@adacore.com>
12885
12886 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12887 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12888 3 times.
12889 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12890 fall through into AT_ENTRY_POINT.
12891 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12892 DUMMY_ADDR with it.
12893 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12894 PPC_INSN_SIZE skip to 3 times.
12895
12896 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12897
12898 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12899 the return value.
12900 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12901
12902 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12903
12904 Build gdb directly from *.o files not using libgdb.a.
12905 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12906 (COMMON_OBS): Remove solib-target.o.
12907 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12908 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12909 (LIBGDB_OBS, libgdb.a): Move it above.
12910 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12911 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12912 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12913 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12914 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12915 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12916 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12917 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12918 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12919 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12920 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12921 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12922 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12923 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12924 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12925 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12926 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12927 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12928 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12929 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12930 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12931 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12932 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12933 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12934 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12935 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12936 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12937
12938 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12939
12940 Remove the gdbtui binary.
12941 * .gitignore (/gdbtui): Remove.
12942 * Makefile.in (TUI): Remove.
12943 (SUBDIR_TUI_OBS): Remove tui-main.o.
12944 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12945 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12946 (tui-main.o): Remove.
12947 (all_object_files): Remove tui-main.o.
12948 * NEWS: New note for the gdbtui removal.
12949 * configure: Rebuilt.
12950 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12951 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12952 CONFIG_UNINSTALL respectively.
12953 * gdb.c (main): Remove args.interpreter_p initialization.
12954 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12955 * main.h (struct captured_main_args): Remove interpreter_p.
12956 * tui/tui-main.c: Remove.
12957
12958 2012-01-01 Doug Evans <dje@google.com>
12959
12960 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12961 (dwarf2_physname, read_import_statement): Ditto.
12962 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12963 (process_structure_scope read_subroutine_type): Ditto.
12964 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12965 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12966 (dwarf2_fetch_die_location_block): Ditto.
12967 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12968
12969 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12970 All callers updated.
12971 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12972 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12973 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12974
12975 * dwarf2read.c (load_cu): Move assert to more useful location.
12976
12977 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12978 All callers updated.
12979
12980 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12981 (dwarf2_elf_names): Minor reformat.
12982 (dwarf2_per_cu_data): Tweak comment.
12983 (dwarf2_read_section): Fix comment.
12984 (create_all_comp_units): Fix comment.
12985 (load_full_comp_unit): Fix comment.
12986 (process_full_comp_unit): Fix comment.
12987 (read_signatured_type): Fix comment.
12988
12989 For older changes see ChangeLog-2011.
12990 \f
12991 Local Variables:
12992 mode: change-log
12993 left-margin: 8
12994 fill-column: 74
12995 version-control: never
12996 coding: utf-8
12997 End: