gdbarch-ification of ravenscar-thread support.
[binutils-gdb.git] / gdb / ChangeLog
1 2012-12-15 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbarch.sh: Add "struct ravenscar_arch_ops" advance
4 declaration.
5 (ravenscar_ops): New gdbarch variable.
6 * gdbarch.h, gdbarch.c: Regenerate.
7 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
8 * ravenscar-thread.c (current_arch_ops): Delete.
9 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
10 from the gdbarch.
11 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
12 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
13 (ravenscar_register_arch_ops): Delete.
14 * ravenscar-sparc-thread.h: New file.
15 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
16 (ravenscar_sparc_ops): Define value statically.
17 (_initialize_ravenscar_sparc): Delete.
18 (register_sparc_ravenscar_ops): New function.
19 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
20 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
21 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
22 ravenscar-sparc-thread.o.
23 (SFILES): Add ravenscar-thread.c.
24 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
25 (ALLDEPFILES): ravenscar-sparc-thread.c.
26 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
27 to gdb_target_obs
28 for all the targets that use sparc-tdep.o.
29
30 2012-12-15 Joel Brobecker <brobecker@adacore.com>
31
32 * ravenscar-thread.c (ravenscar_is_open): Delete.
33 (ravenscar_initialize): Move most of the code from here...
34 (ravenscar_inferior_created): ... to there. Invert logic.
35 (ravenscar_close): Delete.
36 (init_ravenscar_thread_ops): Remove setting of
37 ravenscar_ops.to_close.
38
39 2012-12-15 Joel Brobecker <brobecker@adacore.com>
40
41 * objfiles.c (init_entry_point_info): Move function from here...
42 * symfile.c (init_entry_point_info): ... to there. Make static.
43 * objfiles.h (objfiles.h): Delete declaration.
44
45 2012-12-15 Joel Brobecker <brobecker@adacore.com>
46
47 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
48 Remove call to init_entry_point_info. Add OBJFILE's
49 section_offsets and num_sections initialization. Add note
50 about entry info in the function documentation.
51 (syms_from_objfile): New function.
52 * coffread.c (coff_symfile_init): Remove call to
53 init_entry_point_info.
54 * machoread.c (macho_symfile_init): Likewise.
55 * xcoffread.c(xcoff_symfile_init): Likewise.
56
57 2012-12-15 Yao Qi <yao@codesourcery.com>
58
59 * remote-notif.c (_initialize_notif): Add new commands
60 'set debug notification' and 'show debug notification'.
61 * NEWS: Mention these new commands.
62
63 2012-12-15 Yao Qi <yao@codesourcery.com>
64
65 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
66 (SFILES): Add "remote-notif.c".
67 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
68 * remote-notif.c: New. Factored out from remote.c.
69 * remote-notif.h: New.
70 * remote.c: Include "remote-notif.h".
71 (stop_reply_xmalloc, do_stop_reply_xfree):
72 (remote_parse_stop_reply, remote_get_pending_stop_replies):
73 (remote_async_get_pending_events_handler): Remove declarations.
74 (remote_parse_stop_reply): Declare.
75 (pending_stop_reply): Remove.
76 (remote_async_get_pending_events_token): Move to
77 remote-notif.c.
78 (remote_close): Replace 'delete_async_event_handler' with
79 remote_notif_unregister_async_event_handler.
80 Don't call discard_pending_stop_replies.
81 (remote_start_remote): Replace code with remote_notif_parse
82 and remote_notif_get_pending_replies.
83 (remote_open_1): Replace 'create_async_event_handler' with
84 remote_notif_register_async_event_handler.
85 (extended_remote_attach_1): Call remote_notif_parse and
86 notif_stop_reply_push.
87 (struct stop_reply) <next>: Remove.
88 <base>: New field.
89 Callers update.
90 (stop_reply_queue): Change its type.
91 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
92 (remote_notif_remove_all): New.
93 (discard_pending_stop_replies): Update.
94 (remote_notif_stop_ack, stop_reply_dtr): New.
95 (remote_notif_stop_alloc_event): New.
96 (notif_client_stop): New variable.
97 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
98 (queued_stop_reply, peek_stop_reply): Adjust.
99 (remote_get_pending_stop_replies): Rename to
100 remote_notif_get_pending_events.
101 (handle_notification): Move to remote-notif.c.
102 (remote_async_get_pending_events_handler): Likewise.
103 (remote_wait_as): Adjust to call remote_notif_parse.
104 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
105 Return minus_one_ptid early if gets a notification.
106 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
107 (_initialize_remote): Call QUEUE_alloc. Update caller.
108 (remote_resume): Call 'remote_notif_process' in all-stop mode.
109 * remote.h: Include "remote-notif.h".
110 (remote_notif_get_pending_replies): Declare.
111
112 2012-12-15 Yao Qi <yao@codesourcery.com>
113
114 * remote.c (discard_pending_stop_replies): Update declaration.
115 (remote_detach_1, extended_remote_mourn_1): Likewise.
116 (discard_pending_stop_replies): Change parameter from PID to
117 INF.
118 (remote_close): Update caller.
119 (_initialize_remote): Attach discard_pending_stop_replies to
120 inferior_exit observer.
121
122 2012-12-15 Yao Qi <yao@codesourcery.com>
123
124 * remote.c (getpkt_or_notif_sane): Add one more argument in
125 its declaration.
126 (getpkt_or_notif_sane_1): Add one more argument.
127 (getpkt_sane): Update caller.
128 (getpkt_or_notif_sane): Likewise. Update call
129 togetpkt_or_notif_sane_1.
130 (remote_wait_ns): Update caller.
131
132 2012-12-15 Yao Qi <yao@codesourcery.com>
133 Doug Evans <dje@google.com>
134
135 * common/queue.h: New.
136
137 2012-12-15 Yao Qi <yao@codesourcery.com>
138
139 * breakpoint.c (print_one_breakpoint_location): Display the
140 state of 'installed' of each non-pending location of a tracepoint
141 in both CLI and MI.
142 (download_tracepoint_locations): Notify 'breakpoint-modified'
143 observer if any tracepoint location is downloaded.
144 * tracepoint.c (start_tracing): Likewise.
145 (merge_uploaded_tracepoints): Record all modified
146 tracepoints and notify 'breakpoint-modified' observer for them.
147
148 * NEWS: Mention the change for CLI and MI.
149
150 2012-12-15 Yao Qi <yao@codesourcery.com>
151
152 * breakpoint.c (download_tracepoint_locations): Iterate over
153 ALL_TRACEPOINTS first and then iterate over locations of
154 each tracepoint.
155
156 2012-12-14 Pierre Muller <muller@sourceware.org>
157 Pedro Alves <palves@redhat.com>
158
159 * solib-target.c (solib_target_current_sos): Remove 'const'
160 qualifier from type of library_document local variable to be
161 able to free it and avoid a memory leak.
162 Use cleanup chain to avoid leak even if exceptino is generated.
163
164 2012-12-14 Tom Tromey <tromey@redhat.com>
165
166 PR c++/8888:
167 * symtab.c (lookup_symbol_aux): If constructor is found, consider
168 returning the type instead.
169 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
170 found.
171
172 2012-12-14 Tom Tromey <tromey@redhat.com>
173
174 Partial fix for PR c++/14160:
175 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
176 * dwarf2read.c (dwarf2_is_constructor): New function.
177 (dwarf2_add_member_fn): Use it.
178 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
179 TYPE_FN_FIELD_CONSTRUCTOR.
180 * jv-typeprint.c (java_type_print_base): Use
181 TYPE_FN_FIELD_CONSTRUCTOR.
182 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
183 <dummy>: Shrink.
184 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
185
186 2012-12-14 Tom Tromey <tromey@redhat.com>
187
188 * c-exp.y (block, variable, name_not_typename, lex_one_token,
189 classify_name): Update.
190 * c-valprint.c (c_val_print): Update.
191 * f-exp.y (yylex): Update.
192 * go-exp.y (package_name_p, classify_packaged_name)
193 (classify_name): Update.
194 * jv-exp.y (push_variable): Update.
195 * m2-exp.y (variable): Update.
196 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
197 * p-exp.y (block, variable, yylex): Update.
198 * p-valprint.c (pascal_val_print): Update.
199 * parse.c (write_dollar_variable): Update.
200 * printcmd.c (address_info): Update.
201 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
202 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
203 (lookup_symbol): Change type of 'is_a_field_of_this'.
204 (check_field): Add 'is_a_field_of_this' argument.
205 * symtab.h (struct field_of_this_result): New.
206 (lookup_symbol, lookup_symbol_in_language): Update.
207
208 2012-12-14 Tom Tromey <tromey@redhat.com>
209
210 * symtab.c (check_field): Now static. Move from...
211 * valops.c (check_field): ... here. Remove.
212 * value.h (check_field): Don't declare.
213
214 2012-12-14 Tom Tromey <tromey@redhat.com>
215
216 * NEWS: Mention "info proc" and core files.
217 * corelow.c (core_info_proc): New function.
218 (init_core_ops): Set to_info_proc.
219 * gdbarch.c, gdbarch.h: Rebuild.
220 * gdbarch.sh (core_info_proc): New method.
221 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
222 * linux-tdep.c (linux_core_info_proc_mappings)
223 (linux_core_info_proc): New functions.
224 (linux_find_memory_region_ftype): New typedef.
225 (linux_find_memory_regions_full): New function, from
226 linux_find_memory_regions.
227 (struct linux_find_memory_regions_data): New.
228 (linux_find_memory_regions_thunk): New function.
229 (linux_find_memory_regions): Rewrite.
230 (struct linux_make_mappings_data): New.
231 (linux_make_mappings_callback)
232 (linux_make_mappings_corefile_notes): New functions.
233 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
234 (linux_init_abi): Call set_gdbarch_core_info_proc.
235 * target.c (target_info_proc): Return 'int'.
236 * target.h (target_info_proc): Update.
237
238 2012-12-14 Pierre Muller <muller@sourceware.org>
239
240 * windows-nat.c (windows_xfer_shared_libraries): Avoid
241 memory leak when OFFSET >= LEN_AVAIL.
242
243 2012-12-13 Tom Tromey <tromey@redhat.com>
244
245 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
246
247 2012-12-13 Tom Tromey <tromey@redhat.com>
248
249 * acinclude.m4 (CY_AC_C_WORKS): Remove.
250
251 2012-12-13 Pierre Muller <muller@sourceware.org>
252
253 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
254 local variable and zero terminate it to avoid possible problems
255 in strcmp.
256
257 2012-12-13 Pedro Alves <palves@redhat.com>
258
259 * coff-pe-read.c: Include coff/internal.h.
260 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
261 Null terminate buffer explicitly instead of memset the whole
262 buffer.
263
264 2012-12-13 Pierre Muller <muller@sourceware.org>
265
266 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
267 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
268 for already defined macros.
269
270 2012-12-13 Pierre Muller <muller@sourceware.org>
271
272 * coff-pe-read.h (pe_text_section_offset): Declare new function.
273 * coff-pe-read.c (debug_coff_pe_read): New static variable.
274 (struct read_pe_section_data): Add section_name field.
275 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
276 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
277 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
278 (get_pe_section_index): New function.
279 (struct pe_sections_info): New type.
280 (get_section_vmas): Use new struct pe_sections_info.
281 (add_pe_exported_sym): Handle unnamed exported function.
282 (add_pe_forwarded_sym): New function.
283 (read_pe_truncate_name): Truncate at last dot.
284 (pe_as16): New function.
285 (read_pe_exported_syms): Use ordinal of function to
286 retrieve correct RVA address of function and handle
287 forwarded symbol.
288 (pe_text_section_offset): New function.
289 (show_debug_coff_pe_read): New function.
290 (_initialize_coff_pe_read): New function adding
291 'set/show debug coff_pe_read' commands.
292
293 * windows-tdep.c (windows_xfer_shared_library): Use
294 pe_text_section_offset function instead of possibly wrong
295 0x1000 constant for .text sextion offset.
296
297 2012-12-13 Pedro Alves <palves@redhat.com>
298
299 * gdbarch.sh (do_read): Set IFS to blank.
300
301 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
302
303 * NEWS: Mention the -catch-load/-catch-unload MI commands.
304
305 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
306
307 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
308 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
309 * breakpoint.c (add_solib_catchpoint): New function that
310 can be used by both CLI and MI, factored out from
311 catch_load_or_unload.
312 (catch_load_or_unload): Strip it down and make it use the
313 new add_solib_catchpoint.
314 * breakpoint.h (add_solib_catchpoint): Declare it.
315 * mi/mi-cmd-break.h: New file.
316 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
317 (setup_breakpoint_reporting): New function used for both
318 catchpoints and breakpoints.
319 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
320 * mi/mi-cmd-catch.c: New file.
321 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
322 and -catch-unload.
323 * mi/mi-cmds.h: Declare the handlers for -catch-load and
324 -catch-unload.
325
326 2012-11-28 Tom Tromey <tromey@redhat.com>
327
328 * dbxread.c (read_dbx_symtab): Update.
329 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
330 (read_ofile_symtab): Add 'objfile' argument.
331 * dwarf2read.c (process_psymtab_comp_unit_reader)
332 (build_type_psymtabs_reader): Update.
333 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
334 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
335 argument.
336 (parse_procedure, parse_partial_symbols): Update.
337 (psymtab_to_symtab_1): Add 'objfile' argument.
338 * psympriv.h (struct partial_symtab) <objfile>: Remove.
339 <read_symtab>: Add 'objfile' argument.
340 (sort_pst_symbols, discard_psymtab): Update.
341 * psymtab.c (partial_map_expand_apply): Update.
342 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
343 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
344 (find_pc_sect_psymbol): Add 'objfile' argument.
345 (lookup_symbol_aux_psymtabs): Update.
346 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
347 Add 'objfile' argument.
348 (find_last_source_symtab_from_partial, dump_psymtab)
349 (dump_psymtabs_for_objfile, read_symtabs_for_function)
350 (expand_partial_symbol_tables, read_psymtabs_with_filename)
351 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
352 (expand_symtabs_matching_via_partial): Update.
353 (sort_pst_symbols): Add 'objfile' argument.
354 (allocate_psymtab): Update.
355 (discard_psymtab): Add 'objfile' argument.
356 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
357 * stabsread.h (end_psymtab): Update.
358 * xcoffread.c (this_symtab_objfile): New global.
359 (process_linenos, enter_line_range, xcoff_next_symbol_text):
360 Update.
361 (read_xcoff_symtab): Add 'objfile' argument.
362 (read_symbol, read_symbol_lineno): Update.
363 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
364 (xcoff_end_psymtab): Add 'objfile' argument.
365 (scan_xcoff_symtab): Update.
366
367 2012-12-12 Paul Koning <paul_koning@dell.com>
368
369 Add support for Python 3.
370 * NEWS: Mention Python 3 support.
371 * varobj.c (value_get_print_value): Use
372 python_string_to_target_string.
373 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
374 of type objects.
375 * python/py-breakpoint.c: Ditto.
376 * python/py-cmd.c: Ditto.
377 * python/py-event.c: Ditto.
378 * python/py-event.h: Ditto.
379 * python/py-evtregistry.c: Ditto.
380 * python/py-finishbreakpoint.c: Ditto.
381 * python/py-frame.c: Ditto.
382 * python/py-function.c: Ditto.
383 * python/py-infthread.c: Ditto.
384 * python/py-lazy-string.c: Ditto.
385 * python/py-progspace.c: Ditto.
386 * /python/py-symbol.c: Ditto.
387 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
388 initialization for Python 3.
389 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
390 of type objects.
391 (infpy_read_memory): Return memoryview object if Python 3.
392 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
393 (infpy_search_memory): Ditto.
394 (get_buffer): New function for Python 3.
395 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
396 of type objects.
397 (objfpy_dealloc): Use Py_TYPE to call tp_free.
398 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
399 of type objects.
400 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
401 (set_attr): Ditto.
402 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
403 instead of PyString methods if Python 3.
404 (print_children): Skip push_dummy_python_frame call if Python 3.
405 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
406 of type objects.
407 (salpy_dealloc): Use Py_TYPE to call tp_free.
408 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
409 of type objects.
410 (field_dealloc): Use Py_TYPE to call tp_free.
411 (typy_dealloc): Ditto.
412 (type_object_as_number): Adjust struct initializations for
413 differences in layout for Python 2 vs. Python 3.
414 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
415 string case for Python 3.
416 (unicode_to_encoded_python_string): Shorten code (no functional
417 change).
418 (python_string_to_target_python_string): Comment that in Python 3
419 returned value is a Python "bytes" type.
420 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
421 (gdb_py_object_from_longest): Omit non-long integer case in Python
422 3.
423 (gdb_py_object_from_ulongest): Ditto.
424 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
425 of type objects.
426 (valpy_dealloc): Use Py_TYPE to call tp_free.
427 (valpy_int): Omit function if Python 3.
428 (convert_value_from_python): Use "%S" format (Python object as a
429 string) if Python 3.
430 (value_object_as_number): Adjust struct initializations for
431 differences in layout for Python 2 vs. Python 3.
432 * python/python-config.py: Adjust syntax for Python 3
433 compatibility.
434 Include "sys.abiflags" string as part of python library name, if
435 that attribute exists (Python 3).
436 * python/python-internal.h (IS_PY3): Define if Python 3.
437 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
438 placeholder value if Python 3.
439 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
440 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
441 analogous Python 3 API function if Python 3.
442 (PyVarObject_HEAD_INIT): Define if not already defined.
443 (Py_TYPE): Ditto.
444 * python/python.c (eval_python_command): Omit Py_FlushLine call if
445 Python 3.
446 Check return values of all Python API calls for error.
447 Supply dummy "python" and "python-interactive" commands if Python
448 initialization failed.
449 (_initialize_python): Convert argc to wchar_t** if Python 3.
450 Add module initialization for Python 3.
451 (finish_python_initialization): Pass wchar_t * argument to
452 PySys_SetPath if Python 3.
453 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
454 (_GdbFile): New class for common output file behavior.
455 (GdbOutFile): Subclass from _GdbFile.
456 (GdbOutputErrorFile): Ditto.
457 (auto_load_packages): Adjust syntax for Python 3 compatibility.
458 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
459 * python/lib/gdb/prompt.py: Use sorted() function rather than
460 sort() method.
461 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
462 Adjust syntax for Python 3 compatibility.
463 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
464 rather than sort() method.
465 Adjust syntax for Python 3 compatibility.
466 * python/lib/gdb/command/type_printers.py: Ditto.
467 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
468 value is a memoryview object if Python 3.
469
470 2012-12-12 Tom Tromey <tromey@redhat.com>
471
472 * coffread.c (coff_objfile_data_key): New global.
473 (coff_symfile_init): Use set_objfile_data.
474 (coff_symfile_read): Use objfile_data.
475 (coff_symfile_finish): Don't free deprecated_sym_private.
476 (coff_free_info): New function.
477 (_initialize_coffread): Initialize coff_objfile_data_key.
478 * mdebugread.c (pending_list): Update comment.
479 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
480 * symfile.c (reread_symbols): Don't mention
481 deprecated_sym_private.
482 * xcoffread.c (xcoff_objfile_data_key): New global.
483 (XCOFF_DATA): New macro.
484 (process_linenos, enter_line_range, xcoff_next_symbol_text)
485 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
486 XCOFF_DATA.
487 (xcoff_new_init) Use set_objfile_data.
488 (xcoff_symfile_finish): Don't free deprecated_sym_private.
489 (init_stringtab, swap_sym, scan_xcoff_symtab)
490 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
491 (xcoff_free_info): New function.
492 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
493
494 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
495
496 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
497
498 2012-12-12 Tom Tromey <tromey@redhat.com>
499
500 * coffread.c (coff_symfile_init): Use set_objfile_data.
501 (coff_symfile_read): Use DBX_SYMFILE_INFO.
502 * dbxread.c (dbx_objfile_data_key): New global.
503 (dbx_symfile_init): Use set_objfile_data.
504 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
505 (dbx_free_symfile_info): New function.
506 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
507 DBX_SYMFILE_INFO.
508 (stabsect_build_psymtabs): Use set_objfile_data.
509 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
510 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
511 set_objfile_data.
512 (free_elfinfo): Use DBX_SYMFILE_INFO.
513 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
514 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
515 * gdb-stabs.h (dbx_objfile_data_key): Declare.
516 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
517 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
518 * somread.c (som_symfile_finish): Don't free
519 deprecated_sym_stab_info.
520
521 2012-12-12 Joel Brobecker <brobecker@adacore.com>
522
523 * gdbarch.sh (software_single_step): Remove trailing space in
524 comment (gdbarch.h is already correct).
525
526 2012-12-11 Tom Tromey <tromey@redhat.com>
527
528 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
529
530 2012-12-11 Tom Tromey <tromey@redhat.com>
531
532 * dsrec.c (report_transfer_performance): Don't declare.
533 (load_srec): Use gettimeofday, print_transfer_performance.
534 * symfile.c (report_transfer_performance): Remove.
535
536 2012-12-11 Pedro Alves <pedro@codesourcery.com>
537 Pedro Alves <palves@redhat.com>
538
539 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
540 NT_PSTATUS note.
541 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
542 differently from LWP IDs.
543
544 2012-12-11 Pedro Alves <palves@redhat.com>
545
546 * configure.ac (detect type of /proc): Remove Unixware handling.
547 * configure: Regenerate.
548 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
549 (ioctl_table) [PCRESET]: Remove entry.
550 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
551 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
552 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
553 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
554 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
555 Unixware in comments throughout.
556 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
557 and remove mention of Unixware.
558
559 2012-12-10 Doug Evans <dje@google.com>
560
561 * dwarf2read.c (dwarf2_cu): Enhance comment.
562 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
563 the DWO file.
564 (dwarf2_record_block_ranges): Ditto.
565
566 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
567
568 * symtab.c (find_pc_sect_symtab): Add comment.
569
570 2012-12-10 Tom Tromey <tromey@redhat.com>
571
572 * defs.h: Don't check for definition of LONGEST.
573 (min, max): Remove duplicates.
574
575 2012-12-10 Tom Tromey <tromey@redhat.com>
576
577 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
578 (dwarf2_fetch_die_loc_cu_off): Rename from
579 dwarf2_fetch_die_location_block. Rewrite to use
580 dwarf2_fetch_die_loc_sect_off.
581 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
582 (dwarf2_fetch_die_loc_cu_off): Rename.
583 * dwarf2loc.c (indirect_pieced_value): Use
584 dwarf2_fetch_die_loc_sect_off.
585 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
586 comment.
587 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
588 * dwarf2expr.c (add_piece): Update.
589 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
590
591 2012-12-10 Tom Tromey <tromey@redhat.com>
592
593 * buildsym.c (struct pending_block): Move from buildsym.h.
594 (pending_blocks): Likewise; now static.
595 (pending_block_obstack): New global.
596 (free_pending_blocks): Free blocks.
597 (record_pending_block): Use pending_block_obstack.
598 * buildsym.h (struct pending_block): Move definition to
599 buildsym.c.
600 (pending_blocks): Don't declare.
601
602 2012-12-10 Pedro Alves <palves@redhat.com>
603
604 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
605 dead SCO code, and adjust function description comment.
606
607 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
608
609 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
610 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
611 CC_HAS_LONG_LONG.
612 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
613 * dwarf2read.c (extract_cu_value): Remove the function.
614 (create_cus_from_index_list): Make the return type void, inline the
615 extract_cu_value caller, include new gdb_static_assert.
616 (create_cus_from_index): Make the return type void, update the function
617 comment, update the create_cus_from_index_list caller.
618 (create_signatured_type_table_from_index): Make the return type void,
619 inline the extract_cu_value caller, include new gdb_static_assert.
620 (dwarf2_read_index): Update the create_cus_from_index and
621 create_signatured_type_table_from_index caller.
622 * printcmd.c (ui_printf): Remove conditionalizations for
623 CC_HAS_LONG_LONG.
624 * config.in: Regenerate.
625 * configure: Regenerate.
626
627 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
628
629 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
630 Update the comment for checked_producer.
631 (check_producer): New forward declaration.
632 (producer_is_gcc_lt_4_3): New function.
633 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
634 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
635
636 2012-12-07 Tom Tromey <tromey@redhat.com>
637
638 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
639 argument, assertion.
640 * c-exp.y (typebase): Add completion productions.
641 * completer.c (expression_completer): Handle tag completion.
642 * expression.h (parse_expression_for_completion): Add argument.
643 * f-lang.c (f_make_symbol_completion_list): Add 'code'
644 argument.
645 * language.h (struct language_defn)
646 <la_make_symbol_completion_list>: Add 'code' argument.
647 * parse.c (expout_tag_completion_type, expout_completion_name):
648 New globals.
649 (mark_struct_expression): Add assertion.
650 (mark_completion_tag): New function.
651 (parse_exp_in_context): Initialize new globals.
652 (parse_expression_for_completion): Add 'code' argument. Handle
653 tag completion.
654 * parser-defs.h (mark_completion_tag): Declare.
655 * symtab.c (default_make_symbol_completion_list_break_on): Add
656 'code' argument. Update.
657 (default_make_symbol_completion_list): Add 'code' argument.
658 (make_symbol_completion_list): Update.
659 (make_symbol_completion_type): New function.
660 * symtab.h (default_make_symbol_completion_list_break_on)
661 (default_make_symbol_completion_list): Update.
662 (make_symbol_completion_type): Declare.
663
664 2012-12-07 Tom Tromey <tromey@redhat.com>
665
666 * expression.h (parse_expression_for_completion): Rename
667 from parse_field_expression.
668 (parse_completion): Rename from in_parse_field.
669 * c-exp.y (lex_one_token): Update.
670 * completer.c (expression_completer): Update.
671 * go-exp.y (lex_one_token): Update.
672 * p-exp.y (yylex): Update.
673 * parse.c (parse_completion): Rename from in_parse_field.
674 (parse_exp_in_context): Update.
675 (parse_expression_for_completion): Rename from
676 parse_field_expression. Update.
677
678 2012-12-07 Tom Tromey <tromey@redhat.com>
679
680 * typeprint.c (_initialize_typeprint): Set completer
681 for "whatis" and "ptype".
682
683 2012-12-07 Joel Brobecker <brobecker@adacore.com>
684
685 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
686 "sim/common/cgen-fpu.h". Remove invalid entries
687 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
688 which actually have an FSF copyright header.
689
690 2012-12-07 Joel Brobecker <brobecker@adacore.com>
691
692 * osf-share/AT386/cma_thread_io.h: Delete.
693 * osf-share/HP800/cma_thread_io.h: Delete.
694 * osf-share/README: Delete.
695 * osf-share/RIOS/cma_thread_io.h: Delete.
696 * osf-share/cma_attr.h: Delete.
697 * osf-share/cma_deb_core.h: Delete.
698 * osf-share/cma_debug_client.h: Delete.
699 * osf-share/cma_errors.h: Delete.
700 * osf-share/cma_handle.h: Delete.
701 * osf-share/cma_init.h: Delete.
702 * osf-share/cma_list.h: Delete.
703 * osf-share/cma_mutex.h: Delete.
704 * osf-share/cma_sched.h: Delete.
705 * osf-share/cma_semaphore_defs.h: Delete.
706 * osf-share/cma_sequence.h: Delete.
707 * osf-share/cma_stack.h: Delete.
708 * osf-share/cma_stack_int.h: Delete.
709 * osf-share/cma_tcb_defs.h: Delete.
710 * osf-share/cma_util.h: Delete.
711 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
712 in osf-share.
713 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
714 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
715 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
716
717 2012-12-06 Pedro Alves <palves@redhat.com>
718 Tom Tromey <tromey@redhat.com>
719
720 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
721
722 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
723
724 PR mi/14741:
725 * mi/mi-cmd-var.c (varobj_update_one): Take value of
726 attribute "dynamic" and "displayhint" from printed child,
727 not the root variable.
728
729 2012-12-06 Joel Brobecker <brobecker@adacore.com>
730
731 * aix-thread.c (getthrds): Fix type of 4th parameter.
732 (get_signaled_thread): Change type of variable ktid to tid_t.
733
734 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
735
736 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
737 value of get_frame_block.
738
739 2012-12-05 Pierre Muller <muller@sourceware.org>
740
741 Avoid memory leaks on struct cmd_list_element.doc field.
742 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
743 if flags contains DOC_ALLOCATED.
744 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
745 flags.
746 (delete_cmd): Handle DOC_ALLOCATED flag.
747 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
748 in flags filed of struct cmd_list_element.
749 (struct cmd_list_element): Document new flag item.
750
751 2012-12-04 Doug Evans <dje@google.com>
752
753 * symmisc.c: Whitespace fixes.
754
755 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
756
757 * i386-tdep.c (i386_skip_prologue): Using symbol table
758 to find the end of prologue for clang compiled binaries.
759 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
760 to find the end of prologue for clang compiled binaries.
761
762 2012-12-03 Doug Evans <dje@google.com>
763
764 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
765 (dw2_find_symbol_file): Delete unused local file_data.
766
767 2012-12-03 Tom Tromey <tromey@redhat.com>
768
769 * ada-exp.y (write_object_renaming, write_var_or_type)
770 (write_ambiguous_var, write_var_from_sym): Make blocks const.
771 * ada-lang.c (replace_operator_with_call)
772 (find_old_style_renaming_symbol): Make blocks const.
773 * ada-lang.h (ada_find_renaming_symbol): Update.
774 (struct ada_symbol_info) <block>: Now const.
775 * breakpoint.c (watch_command_1): Update.
776 * breakpoint.h (struct watchpoint) <exp_valid_block,
777 cond_exp_valid_block>: Now const.
778 * c-exp.y (classify_inner_name, classify_name): Make block
779 argument const.
780 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
781 const.
782 * expression.h (innermost_block, parse_exp_1): Update.
783 (union exp_element) <block>: Now const.
784 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
785 (lookup_struct): Make block argument const.
786 * gdbtypes.h (lookup_template_type): Update.
787 * go-exp.y (classify_name, classify_packaged_name)
788 (package_name_p): Make block argument const.
789 * objc-lang.c (lookup_struct_typedef): Make block argument const.
790 * objc-lang.h (lookup_struct_typedef): Update.
791 * parse.c (parse_exp_in_context, parse_exp_1)
792 (write_exp_elt_block): Make block arguments const.
793 (expression_context_block, innermost_block): Now const.
794 * parser-defs.h (write_exp_elt_block): Update.
795 (expression_context_block, innermost_block, block_found): Now
796 const.
797 * printcmd.c (struct display) <block>: Now const.
798 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
799 * valops.c (address_of_variable): Make block argument const.
800 * value.h (value_of_variable): Update.
801 * varobj.c (struct varobj_root) <valid_block>: Now const.
802
803 2012-11-30 Yao Qi <yao@codesourcery.com>
804
805 * breakpoint.c (print_one_breakpoint_location): Indent code.
806
807 2012-11-30 Yao Qi <yao@codesourcery.com>
808
809 * breakpoint.c (print_one_breakpoint_location): Combine two
810 blocks handling 'hit count' together.
811
812 2012-11-30 Yao Qi <yao@codesourcery.com>
813
814 * infrun.c (error_is_running, ensure_not_running): Move them
815 to ...
816 * infcmd.c (error_is_running, ensure_not_running): ... here.
817 Make them 'static'.
818 * inferior.h: Remove declarations of error_is_running and
819 ensure_not_running.
820
821 2012-11-30 Yao Qi <yao@codesourcery.com>
822
823 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
824 check REGNUM >= 0.
825
826 2012-11-30 Yao Qi <yao@codesourcery.com>
827
828 * infrun.c: Make the declaration of 'init_infwait_state'
829 static.
830 (init_infwait_state): Make it 'static'.
831
832 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
833
834 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
835 return value to void to avoid compiler warning.
836
837 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
838
839 * opencl-lang.c (opencl_print_type): New function.
840 (opencl_language_arch_info): Install it.
841
842 2012-11-29 Tom Tromey <tromey@redhat.com>
843
844 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
845 xvasprintf.
846 * common/common-utils.c (xasprintf, xvasprintf): Remove.
847 * common/common-utils.h (xasprintf, xvasprintf): Remove.
848
849 2012-11-29 Jerome Guitton <guitton@adacore.com>
850
851 * ada-lang.c (ada_is_interface_tag): New function.
852 (ada_is_ignored_field): Add interface tags to the list
853 of ignored fields.
854
855 2012-11-29 Jerome Guitton <guitton@adacore.com>
856
857 * ada-lang.h (ada_tag_value_at_base_address): New function
858 declaration.
859 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
860 New functions.
861 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
862 relocate the class-wide value if need be.
863 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
864 Let ada_tag_value_at_base_address relocate the class-wide access/ref
865 before dereferencing it.
866 * ada-valprint.c (ada_val_print_1): Relocate to base address
867 before displaying the content of an interface-wide ref.
868
869 2012-11-29 Jerome Guitton <guitton@adacore.com>
870
871 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
872
873 2012-11-29 Joel Brobecker <brobecker@adacore.com>
874
875 GDB 7.5.1 released.
876
877 2012-11-29 Yao Qi <yao@codesourcery.com>
878 Tom Tromey <tromey@redhat.com>
879
880 * eval.c (evaluate_subexp_standard): Get the correct pointer
881 type for TYPE_CODE_MEMBERPTR.
882
883 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
884
885 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
886 since now it is being done by binutils' powerpc_init_dialect().
887
888 2012-11-28 Tom Tromey <tromey@redhat.com>
889
890 PR gdb/14290:
891 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
892 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
893 Use it.
894 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
895 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
896 (gdb_bfd_openr_next_archived_file): Use it.
897
898 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
899
900 * configure.ac: Check for linux/perf_event.h.
901 * config.in: Regenerated.
902 * configure: Regenerated.
903
904 2012-11-28 Yao Qi <yao@codesourcery.com>
905
906 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
907 abbreviate 'delete tracepoints' to 'delete tr'.
908 * corefile.c (_initialize_core): Call add_alias_cmd to
909 abbreviate 'set gnutarget' to 'set g'.
910 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
911 'show convenience' to 'show conv'.
912
913 2012-11-27 Joel Brobecker <brobecker@adacore.com>
914
915 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
916 call to sparc_supply_fpregset.
917 (fill_fpregset): Fix first parameter in call to
918 sparc_collect_fpregset.
919
920 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
921 Kazu Hirata <kazu@codesourcery.com>
922 Yao Qi <yao@codesourcery.com>
923
924 * objfiles.c (init_entry_point_info): Call
925 gdbarch_convert_from_func_ptr_addr and
926 gdbarch_addr_bits_remove here ...
927 (entry_point_address_query): ... instead of here.
928 * solib-svr4.c (exec_entry_point): Call
929 gdbarch_addr_bits_remove.
930 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
931 the entry address.
932
933 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
934 Yao Qi <yao@codesourcery.com>
935
936 * eval.c (evaluate_subexp_standard): Add handling of
937 TYPE_CODE_MEMBERPTR when calling functions. Correct the
938 result of ptype for calling a TYPE_CODE_METHODPTR.
939
940 2012-11-27 Yao Qi <yao@codesourcery.com>
941
942 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
943 warning.
944 Add i18n markup.
945
946 2012-11-26 Alexander Larsson <alexl@redhat.com>
947 Jan Kratochvil <jan.kratochvil@redhat.com>
948 Tom Tromey <tromey@redhat.com>
949
950 * NEWS: Mention mini debuginfo feature.
951 * minidebug.c: New file.
952 * configure.ac: Check for lzma.
953 * configure, config.in: Rebuild.
954 * Makefile.in (LIBLZMA): New variable.
955 (CLIBS): Include LIBLZMA.
956 (SFILES): Mention minidebug.c.
957 (COMMON_OBS): Mention minidebug.o.
958 * symfile.c (read_symbols): New function.
959 (syms_from_objfile, reread_symbols): Call it.
960 * symfile.h (find_separate_debug_file_in_section): Declare.
961
962 2012-11-26 Keith Seitz <keiths@redhat.com>
963
964 * exec.c (exec_file_attach): Move cleanup after verifying that
965 memory has in fact been allocated.
966
967 2012-11-26 Tom Tromey <tromey@redhat.com>
968
969 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
970 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
971 SYMBOL_SYMTAB.
972 * skip.c (skip_info): Use SYMBOL_SYMTAB.
973
974 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
975 Pedro Alves <palves@redhat.com>
976
977 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
978 size parameter passed to readlink by one byte.
979 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
980 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
981 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
982 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
983 size by one byte.
984
985 2012-11-26 Yao Qi <yao@codesourcery.com>
986
987 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
988 extraneous parentheses.
989
990 2012-11-26 Yao Qi <yao@codesourcery.com>
991
992 * remote.c (remote_start_remote): Typo fix.
993
994 2012-11-23 David S. Miller <davem@davemloft.net>
995
996 * sparc-tdep.h (struct sparc_fpregset): New data structure.
997 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
998 sparc32_sol2_fpregset): Declare new globals.
999 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1000 'fpregset' argument.
1001 * sparc64-tdep.h (sparc64_supply_fpregset,
1002 sparc64_collect_fpregset): Likewise.
1003 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1004 globals.
1005 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1006 (sparc_fpregset): Declare new global.
1007 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1008 'fpregset' argument.
1009 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1010 into handler.
1011 (fill_fpregset): Likewise.
1012 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1013 sparc32_bsd_fpregset.
1014 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1015 sparc32_bsd_fpregset down into handler.
1016 (sparc32_linux_collect_core_fpregset): Likewise.
1017 * sparc-nat.c (sparc_fpregset): Define.
1018 (sparc_supply_fpregset): Add 'fpregset' argument.
1019 (sparc_collect_fpregset): Likewise.
1020 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1021 into fpregset handler.
1022 (sparc_store_inferior_registers): Likewise.
1023 (_initialize_sparc_nat): Set sparc_fpregset to
1024 sparc32_sunos4_fpregset if NULL.
1025 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1026 down into handler.
1027 (fill_fpregset): Likewise.
1028 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1029 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1030 use it to compute offsets.
1031 (sparc32_collect_fpregset): Likewise.
1032 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1033 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1034 down into handler.
1035 (fill_fpregset): Likewise.
1036 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1037 Likewise.
1038 (sparc64_linux_collect_core_fpregset): Likewise.
1039 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1040 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1041 use it to compute offsets.
1042 (sparc64_collect_fpregset): Likewise.
1043 (sparc64_bsd_fpregset): Define.
1044 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1045 sparc64_bsd_fpregset down into handler.
1046 (sparc64fbsd_collect_fpregset): Likewise.
1047 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1048 and pass sparc{32,64}_bsd_fpregset down into handler.
1049 (sparc64nbsd_collect_fpregset): Likewise.
1050 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1051 sparc64_bsd_fpregset down into handler.
1052 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1053 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1054 to sparc32_bsd_fpregset.
1055 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1056 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1057 (sparc32nbsd_supply_fpregset): Likewise.
1058
1059 2012-11-21 Tom Tromey <tromey@redhat.com>
1060
1061 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1062 field.
1063 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1064 Remove.
1065 * c-typeprint.c (c_type_print_base): Update.
1066
1067 2012-11-21 Yao Qi <yao@codesourcery.com>
1068
1069 PR tdep/7438
1070 * gdbarch.sh (smash_text_address): Remove.
1071 * gdbarch.c, gdbarch.h: Regenerate.
1072 * arm-tdep.c (arm_smash_text_address): Remove.
1073 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1074 * hppa-tdep.c (hppa_smash_text_address): Remove.
1075 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1076 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1077 Caller update.
1078 * coffread.c (coff_symtab_read): Caller update.
1079 * dbxread.c (process_one_symbol): Likewise.
1080 * elfread.c (record_minimal_symbol): Likewise.
1081 * somread.c (som_symtab_read): Likewise.
1082
1083 2012-11-20 Pierre Muller <muller@sourceware.org>
1084
1085 ARI fixes: sprintf rule.
1086 Replace sprintf function calls for char arrays by
1087 calls to xsnprintf calls.
1088 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1089 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1090 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1091 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1092 * breakpoint.c (condition_completer): Ditto.
1093 (create_tracepoint_from_upload): Ditto.
1094 * dwarf2read.c (file_full_name): Ditto.
1095 * gcore.c (gcore_command): Ditto.
1096 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1097 * go32-nat.c (go32_sysinfo): Ditto.
1098 * interps.c (interp_set): Ditto.
1099 * m32c-tdep.c (make_types): Ditto.
1100 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1101 * remote-m32r-sdi.c (m32r_open): Ditto.
1102 * sol-thread.c (td_err_string): Ditto.
1103 (td_state_string, solaris_pid_to_str): Ditto.
1104 * symtab.c (gdb_mangle_name): Ditto.
1105 * cli/cli-script.c (execute_control_command): Ditto.
1106 (define_command, document_command): Ditto.
1107 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1108 * tui/tui-stack.c (tui_make_status_line): Ditto.
1109 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1110
1111 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1112
1113 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1114 it when looking at ptr->func.
1115 * command.h (complete_on_cmdlist): Add a fourth arg.
1116 * completer.c (complete_line_internal): Add local ignore_help_classes,
1117 and set it to 1 when reason is not handle_help. Pass this down to
1118 lookup_cmd_1 and complete_on_cmdlist.
1119
1120 2012-11-20 Tom Tromey <tromey@redhat.com>
1121
1122 * completer.c (count_struct_fields): Remove.
1123 (expression_completer): Don't call count_struct_fields.
1124
1125 2012-11-20 Pedro Alves <palves@redhat.com>
1126
1127 * annotate.c (breakpoints_changed): Rename to ...
1128 (annotate_breakpoints_changed): ... this.
1129 (annotate_stopped, breakpoint_changed): Adjust caller.
1130 * annotate.h (breakpoints_changed): Rename to ...
1131 (annotate_breakpoints_changed): ... this.
1132 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1133 (do_map_commands_command, init_raw_breakpoint, clear_command)
1134 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1135
1136 2012-11-20 David S. Miller <davem@davemloft.net>
1137
1138 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1139 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1140 sysconf.
1141 (get_cores_used_by_process): Update comment.
1142
1143 2012-11-20 Yao Qi <yao@codesourcery.com>
1144
1145 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1146
1147 2012-11-20 Yao Qi <yao@codesourcery.com>
1148
1149 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1150 to deprecated_context_hook.
1151
1152 2012-11-19 Yao Qi <yao@codesourcery.com>
1153
1154 * infrun.c (infwait_state): Add static.
1155
1156 2012-11-16 Keith Seitz <keiths@redhat.com>
1157
1158 PR c++/13615
1159 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1160 parameter and pass it to lookup_symbol_file.
1161 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1162 to search base classes.
1163 (cp_lookup_symbol_namespace): Likewise.
1164 (lookup_namespace_scope): Likewise.
1165 (lookup_symbol_file): Add SEARCH parameter.
1166 If SEARCH is non-zero and no symbol is found, lookup the class
1167 and call cp_lookup_nested_symbol.
1168 (find_symbol_in_baseclass): New function.
1169 (cp_lookup_nested_symbol): Do not let
1170 cp_lookup_symbol_in_namespace search through base classes.
1171 Do that later when there is no global symbol match.
1172
1173 2012-11-16 Doug Evans <dje@google.com>
1174
1175 * main.c (gdb_datadir_provided): New static global.
1176 (get_init_files): If --data-directory is provided,
1177 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1178 * NEWS: Mention it.
1179
1180 2012-11-15 Pierre Muller <muller@sourceware.org>
1181
1182 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1183 * gdb_stat.h: Delete. Moved to common directory.
1184 * common/gdb_stat.h: New file.
1185 * gdb_wait.h: Delete. Moved to common directory.
1186 * common/gdb_wait.h: New file.
1187 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1188 location.
1189 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1190 location.
1191 (stat.h rule): Adapt to new gdb_stat.h location.
1192 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1193 <sys/stat.h> header.
1194 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1195 <sys/wait.h> header.
1196
1197 2012-11-15 Pierre Muller <muller@sourceware.org>
1198
1199 * configure.ac (AC_HEADER_STAT): Remove.
1200 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1201 and corresponding code.
1202 * configure: Regenerate.
1203 * config.in: Regenerate.
1204
1205 2012-11-15 Pierre Muller <muller@sourceware.org>
1206
1207 ARI xasprintf rule fixes.
1208 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1209 instead of xasprintf.
1210 (open_and_init_dwp_file): Ditto.
1211
1212 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1213
1214 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1215 target types.
1216
1217 2012-11-14 Tom Tromey <tromey@redhat.com>
1218
1219 * configure, config.in: Rebuild.
1220 * configure.ac: Don't check for ctype.h, time.h.
1221 * expprint.c: Don't use HAVE_CTYPE_H.
1222
1223 2012-11-13 Tom Tromey <tromey@redhat.com>
1224
1225 * gdbarch.h, gdbarch.c: Rebuild.
1226 * gdbarch.sh (set_target_gdbarch): Rename from
1227 deprecated_target_gdbarch_select_hack.
1228 * arch-utils.c (gdbarch_update_p): Update.
1229 (set_gdbarch_from_file): Update.
1230
1231 2012-11-14 Pierre Muller <muller@sourceware.org>
1232
1233 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1234 as responsible of contrib/ari directory.
1235
1236 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1237 Yao Qi <yao@codesourcery.com>
1238
1239 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1240 bit of EXC_RETURN.
1241 (arm_m_exception_cache, arm_m_exception_this_id)
1242 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1243 (arm_m_exception_unwind): New.
1244 (arm_gdbarch_init): Register arm_m_exception_unwind.
1245
1246 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1247
1248 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1249 parameter COUNT, for pattern filling of memory regions.
1250 * NEWS: Mention it.
1251
1252 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1253
1254 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1255 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1256 to print_source_lines ().
1257 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1258 flag.
1259 * source.c (print_source_lines_base): Prefix source line with
1260 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1261
1262 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1263
1264 * symtab.h (print_source_lines_flags): New enum.
1265 * source.c (print_source_lines_base): Change noerror to flags.
1266 (print_source_lines): Change noerror to flags.
1267
1268 2012-11-13 Pierre Muller <muller@sourceware.org>
1269
1270 ARI fixes: Avoid sprintf function use rule.
1271 * charset.c (convert_between_encodings): Use xsnprintf.
1272 * cli-out.c (cli_field_int): Likewise.
1273 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1274 * expprint.c (op_name_standard): Likewise.
1275 * frv-tdep.c (set_variant_num_gprs): Likewise.
1276 (set_variant_num_fprs): Likewise.
1277 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1278 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1279 (nto_init_solib_absolute_prefix): Likewise.
1280 * source.c (init_source_path): Likewise.
1281 (print_source_lines_base): Likewise.
1282 * valprint.c (print_wchar): Likewise.
1283 * mi/mi-out.c (mi_field_int): Likewise.
1284 windows-nat.c (windows_pid_to_exec_file): Likewise.
1285 (windows_create_inferior): Likewise.
1286 (_initialize_check_for_gdb_ini): Likewise.
1287
1288 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1289
1290 * frame.h (deprecated_frame_register_read): Renames
1291 frame_register_read.
1292 * frame.c (deprecated_frame_register_read): Renames
1293 frame_register_read. Update all callers.
1294 * i386-tdep.c: Update all callers of frame_register_read.
1295 * infcmd.c: Likewise.
1296 * jit.c: Likewise.
1297 * mips-tdep.c: Likewise.
1298 * mt-tdep.c: Likewise.
1299 * sh64-tdep.c: Likewise.
1300
1301 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1302
1303 * frame.h (frame_register_read): Remove FIXME comment.
1304 * frame.c (frame_register_read): Add suggestion explaining
1305 which function to use in place of this one.
1306
1307 2012-11-12 Tom Tromey <tromey@redhat.com>
1308
1309 * python/python.c (start_type_printers): Initialize 'result_obj'.
1310
1311 2012-11-12 Tom Tromey <tromey@redhat.com>
1312
1313 * NEWS: Update.
1314 * data-directory/Makefile.in (PYTHON_FILES): Add
1315 type_printers.py.
1316 * python/lib/gdb/command/type_printers.py: New file.
1317 * python/lib/gdb/command/types.py (TypePrinter): New class.
1318 (_get_some_type_recognizers, get_type_recognizers,
1319 apply_type_recognizers, register_type_printer): New
1320 functions.
1321 * python/py-objfile.c (objfile_object) <type_printers>: New
1322 field.
1323 (objfpy_dealloc): Decref new field.
1324 (objfpy_new): Set new field.
1325 (objfpy_get_type_printers, objfpy_set_type_printers): New
1326 functions.
1327 (objfile_to_objfile_object): Set new field.
1328 (objfile_getset): Add "type_printers".
1329 * python/py-progspace.c (pspace_object) <type_printers>: New
1330 field.
1331 (pspy_dealloc): Decref new field.
1332 (pspy_new): Set new field.
1333 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1334 (pspace_to_pspace_object): Set new field.
1335 (pspace_getset): Add "type_printers".
1336 * python/python.c (start_type_printers, apply_type_printers,
1337 free_type_printers): New functions.
1338 (_initialize_python): Set gdb.type_printers.
1339 * python/python.h (start_type_printers, apply_type_printers,
1340 free_type_printers): Declare.
1341 * typeprint.c (type_print_raw_options, default_ptype_flags):
1342 Update for new fields.
1343 (do_free_global_table, create_global_typedef_table,
1344 find_global_typedef): New functions.
1345 (find_typedef_in_hash): Use find_global_typedef.
1346 (whatis_exp): Use create_global_typedef_table. Change cleanup
1347 handling.
1348 * typeprint.h (struct type_print_options) <global_typedefs,
1349 global_printers>: New fields.
1350
1351 2012-11-12 Tom Tromey <tromey@redhat.com>
1352
1353 * c-typeprint.c (find_typedef_for_canonicalize,
1354 print_name_maybe_canonical): New functions.
1355 (c_print_type): Look up type name.
1356 (cp_type_print_derivation_info): Add flags argument. Use
1357 print_name_maybe_canonical.
1358 (cp_type_print_method_args): Add wrapping.
1359 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1360 (c_type_print_template_args): New function.
1361 (c_type_print_base): Change wrapping. Use
1362 print_name_maybe_canonical.
1363 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1364 type name lookups.
1365 * gdbtypes.c (types_equal): No longer static.
1366 * gdbtypes.h (types_equal): Declare.
1367 * typeprint.c (type_print_raw_options, default_ptype_flags):
1368 Update.
1369 (struct typedef_hash_table): New.
1370 (hash_typedef_field, eq_typedef_field,
1371 recursively_update_typedef_hash, add_template_parameters,
1372 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1373 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1374 copy_typedef_hash, find_typedef_in_hash): New functions.
1375 * typeprint.h (struct type_print_options) <local_typedefs>:
1376 New field.
1377 (recursively_update_typedef_hash, add_template_parameters,
1378 create_typedef_hash, free_typedef_hash,
1379 make_cleanup_free_typedef_hash, copy_typedef_hash,
1380 find_typedef_in_hash): Declare.
1381
1382 2012-11-12 Tom Tromey <tromey@redhat.com>
1383
1384 * cp-support.c (inspect_type,
1385 replace_typedefs_qualified_name, replace_typedefs): Add
1386 finder, data arguments. Call as needed.
1387 (cp_canonicalize_string_full): New function.
1388 (cp_canonicalize_string_no_typedefs): Rewrite.
1389 * cp-support.h (canonicalization_ftype): New typedef.
1390 (cp_canonicalize_string_full): Declare.
1391
1392 2012-11-12 Tom Tromey <tromey@redhat.com>
1393
1394 * NEWS: Update.
1395 * c-typeprint.c (c_type_print_base): Handle print_method and
1396 print_typedefs flags.
1397 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1398 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1399 options.
1400 * typeprint.c (type_print_raw_options, default_ptype_flags):
1401 Update for new field.s
1402 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1403 (setprinttypelist, showprinttypelist, print_methods,
1404 print_typedefs): New globals.
1405 (set_print_type, show_print_type, set_print_type_methods,
1406 show_print_type_methods, set_print_type_typedefs,
1407 show_print_type_typedefs): New functions.
1408 (_initialize_typeprint): Update documentation. Add "print
1409 type methods" and "print type typedefs" parameters.
1410 * typeprint.h (struct type_print_options) <print_methods,
1411 print_typedefs>: New fields.
1412
1413 2012-11-12 Tom Tromey <tromey@redhat.com>
1414
1415 * c-typeprint.c (cp_type_print_method_args): Add flags
1416 argument. Call c_print_type, not type_print.
1417 (c_type_print_base): Call c_print_type, not type_print.
1418 Update.
1419
1420 2012-11-12 Tom Tromey <tromey@redhat.com>
1421
1422 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1423 to type-printing functions.
1424 * ada-lang.h (ada_print_type): Add argument.
1425 * ada-typeprint.c (print_array_type, print_variant_clauses,
1426 print_variant_part, print_selected_record_field_types,
1427 print_record_field_types, print_unchecked_union_type,
1428 print_func_type, ada_print_type): Add flags argument.
1429 (ada_print_typedef): Update.
1430 * c-exp.y (OPERATOR conversion_type_id): Update.
1431 * c-lang.h (c_print_type, c_type_print_base): Update.
1432 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1433 c_type_print_modifier, c_type_print_args,
1434 c_type_print_varspec_suffix, c_type_print_base): Add flags
1435 argument.
1436 * cp-valprint.c (cp_print_class_member): Update.
1437 * dwarf2read.c (dwarf2_compute_name): Update.
1438 * f-lang.h (f_print_type): Add argument.
1439 * f-typeprint.c (f_print_type): Add flags argument.
1440 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1441 * go-lang.h (go_print_type): Add argument.
1442 * go-typeprint.c (go_print_type): Add flags argument.
1443 * jv-lang.h (java_print_type): Add argument.
1444 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1445 flags argument.
1446 * language.c (unk_lang_print_type): Add flags argument.
1447 * language.h (struct language_defn) <la_print_type>: Add flags
1448 argument.
1449 (LA_PRINT_TYPE): Likewise.
1450 * m2-lang.h (m2_print_type): Add argument.
1451 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1452 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1453 m2_unbounded_array, m2_record_fields): Add flags argument.
1454 * p-lang.h (pascal_print_type, pascal_type_print_base,
1455 pascal_type_print_varspec_prefix): Add argument.
1456 * p-typeprint.c (pascal_print_type,
1457 pascal_type_print_varspec_prefix, pascal_print_func_args,
1458 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1459 flags argument.
1460 * symmisc.c (print_symbol): Update.
1461 * typeprint.c (type_print_raw_options, default_ptype_flags):
1462 New globals.
1463 (type_print): Update.
1464 * typeprint.h (struct type_print_options): New.
1465 (type_print_raw_options): Declare.
1466 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1467
1468 2012-11-10 Keith Seitz <keiths@redhat.com>
1469
1470 * breakpoint.c (clear_command): Add cleanup for
1471 sals.sals if an argument is given.
1472
1473 * linespec.c (parse_linespec): Do cleanups after
1474 parsing a convenience variable.
1475
1476 2012-11-10 Keith Seitz <keiths@redhat.com>
1477
1478 PR gdb/14288
1479 * c-valprint.c (c_val_print): For character arrays
1480 with "print null" option on, print ellipses if
1481 the output is truncated and the next character is not \000.
1482 * valprint.c (MAX_WCHARS): Define.
1483 (WCHAR_BUFLEN): Likewise.
1484 (WCHAR_BUFLEN_MAX): Likewise.
1485 (struct converted_character): New structure.
1486 (count_next_character): New function.
1487 (print_converted_chars_to_obstack): New function.
1488 (generic_printstr): Rewrite using count_next_character
1489 and print_converted_chars_to_obstack.
1490
1491 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1492
1493 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1494 while executing the gdb command.
1495 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1496 are called from prompt_for_continue.
1497 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1498
1499 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1500
1501 PR tui/9584
1502
1503 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1504 but insert the command to execute in readline's buffer.
1505
1506 2012-11-09 Tom Tromey <tromey@redhat.com>
1507
1508 * gdbarch.sh (target_gdbarch): Remove macro.
1509 (get_target_gdbarch): Rename to target_gdbarch.
1510 * gdbarch.c, gdbarch.h: Rebuild.
1511 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1512 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1513 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1514 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1515 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1516 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1517 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1518 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1519 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1520 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1521 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1522 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1523 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1524 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1525 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1526 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1527 target-descriptions.c, target.c, target.h, tracepoint.c,
1528 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1529 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1530 python/py-inferior.c, python/python.c: Update.
1531
1532 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1533
1534 * source.c (print_source_lines_base): Add fullname field giving
1535 full path to file in mi output.
1536 * NEWS: Mention the new fullname field.
1537
1538 2012-11-09 Yao Qi <yao@codesourcery.com>
1539
1540 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1541
1542 2012-11-09 Pedro Alves <palves@redhat.com>
1543
1544 PR gdb/14306
1545
1546 * infrun.c: Include target-descriptions.h.
1547 (follow_exec): Fetch new target description.
1548
1549 2012-11-09 Yao Qi <yao@codesourcery.com>
1550
1551 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1552 0x8d (lea).
1553
1554 2012-11-09 Yao Qi <yao@codesourcery.com>
1555
1556 * breakpoint.c: Declare set_tracepoint_count.
1557 (install_breakpoint): Call set_tracepoint_count if B is a
1558 tracepoint.
1559 (trace_command): Don't call set_tracepoint_count. Re-indent.
1560 (strace_command, ftrace_command):
1561 (create_tracepoint_from_upload): Likewise.
1562
1563 2012-11-09 Pedro Alves <palves@redhat.com>
1564
1565 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1566 (get_target_gdbarch) <gdbarch.h>: New function.
1567 (startup_gdbarch) <gdbarch.h>: Declare.
1568 <gdbarch.c> (target_gdbarch): Delete.
1569 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1570 current inferior's gdbarch.
1571 <gdbarch.c> (get_target_gdbarch): New function.
1572 * inferior.c: Include target-descriptions.h.
1573 (free_inferior): Free target description info.
1574 (add_inferior_with_spaces): Set the inferior's initial
1575 architecture.
1576 (clone_inferior_command): Copy the original inferior's target
1577 description if it was user specified.
1578 (initialize_inferiors): Add comment.
1579 * inferior.h (struct target_desc_info): Forward declare.
1580 (struct inferior) <gdbarch>: New field.
1581 * linux-nat.c: Include target-descriptions.h.
1582 (linux_child_follow_fork): Copy the parent's architecture and
1583 target description to the child.
1584 * target-descriptions.c: Include inferior.h.
1585 (struct target_desc_info): New structure, holding the equivalents
1586 of ...
1587 (target_desc_fetched, current_target_desc)
1588 (target_description_filename): ... these removed globals.
1589 (get_tdesc_info, target_desc_info_from_user_p)
1590 (copy_inferior_target_desc_info, target_desc_info_free): New.
1591 (target_desc_fetched, current_target_desc)
1592 (target_description_filename): Reimplemented as convenience
1593 macros.
1594 (tdesc_filename_cmd_string): New global.
1595 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1596 tdescs filename ..." commands to the per-inferior equivalent.
1597 (show_tdesc_filename_cmd): Get the value to show from the
1598 per-inferior description filename.
1599 (_initilize_target_descriptions): Change the "set/show tdesc
1600 filename" commands' variable.
1601 * target-descriptions.h (struct target_desc, struct target_desc_info)
1602 (struct inferior): Forward declare.
1603 (target_find_description, target_clear_description)
1604 (target_current_description): Adjust comments.
1605 (copy_inferior_target_desc_info, target_desc_info_free)
1606 (target_desc_info_from_user_p). Declare.
1607
1608 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1609
1610 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1611 (tui_target_wait_hook): Remove.
1612 (tui_install_hooks): Install the about_to_proceed observer.
1613 (tui_remove_hooks): And remove it here.
1614
1615 2012-11-08 Tom Tromey <tromey@redhat.com>
1616
1617 * linux-tdep.c (linux_make_siginfo_note): New function.
1618 (linux_make_corefile_notes): Use it.
1619 * corelow.c (get_core_siginfo): New function.
1620 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1621
1622 2012-11-08 Tom Tromey <tromey@redhat.com>
1623
1624 PR gdb/14704:
1625 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1626 (zlib_decompress_section): Remove.
1627 (gdb_bfd_map_section): Only check for compressed section
1628 in mmap case. Use bfd_get_full_section_contents.
1629 * osabi.c (check_note): Add 'sectsize' argument. Read
1630 section data.
1631 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1632 section data. Update for check_note change.
1633 * xcoffread.c (xcoff_initial_scan): Use
1634 bfd_get_full_section_contents.
1635 * py-auto-load.c (auto_load_section_scripts): Use
1636 bfd_get_full_section_contents.
1637 * contrib/cc-with-tweaks.sh: Add -Z option.
1638
1639 2012-11-08 Tom Tromey <tromey@redhat.com>
1640
1641 * python/py-bpevent.c: Include defs.h.
1642 * python/py-continueevent.c: Include defs.h.
1643 * python/py-event.c: Include defs.h.
1644 * python/py-event.h: Don't include defs.h.
1645 * python/py-events.h: Don't include defs.h.
1646 * python/py-evts.c: Include defs.h.
1647 * python/py-exitedevent.c: Include defs.h.
1648 * python/py-newobjfileevent.c: Include defs.h.
1649 * python/py-signalevent.c: Include defs.h.
1650 * python/py-stopevent.c: Include defs.h.
1651 * python/py-threadevent.c: Include defs.h.
1652
1653 2012-11-08 Pierre Muller <muller@sourceware.org>
1654
1655 * update-web-ari.sh (print_heading): Add number of files
1656 checked.
1657 (nb_files): New variable counting the number of sources
1658 files found by gdb_find.sh script.
1659 (debug_awk): New variable to allow extra debug output.
1660 (indexes): Add more information if DEBUG_AWK is set.
1661
1662 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1663
1664 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1665 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1666 following the change in PLT call stubs on linker.
1667
1668 2012-11-08 Pierre Muller <muller@sourceware.org>
1669
1670 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1671 as default language.
1672 (AWK): Use = instead of == for sh test to avoid warning.
1673 (Linux rule): Correct [:digit] into [[:digit:]].
1674 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1675 (vasprintf rule): Adapt to common subdirectory moves.
1676 (xasprintf rule): Idem.
1677 (xvasprintf rule): Idem.
1678 (var_boolean rule): Accept occurence in == or != test.
1679
1680 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1681
1682 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1683
1684 * tui/tui-hooks.c (tui_inferior_exit): New function.
1685 (tui_detach_hook): Remove.
1686 (tui_install_hooks): Install the inferior exit observer.
1687 (tui_remove_hooks): Remove it.
1688
1689 2012-11-08 Yao Qi <yao@codesourcery.com>
1690
1691 PR gdb/14777.
1692 * source.c (_initialize_source): Call add_com_alias to abbreviate
1693 'forward-search' as 'fo'.
1694
1695 2012-11-07 Pedro Alves <palves@redhat.com>
1696
1697 * arm-tdep.c: Make defs.h be the first include.
1698 * coff-pe-read.c: Ditto.
1699 * gnu-nat.c: Ditto.
1700 * go32-nat.c: Ditto.
1701 * i386-nat.c: Ditto.
1702 * ppcnbsd-nat.c: Ditto.
1703 * ada-varobj.h: Don't include defs.h.
1704 * i386-darwin-tdep.h: Ditto.
1705 * i386-nat.h: Ditto.
1706
1707 2012-11-07 Pedro Alves <palves@redhat.com>
1708
1709 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1710 Committee.
1711
1712 2012-11-07 Pierre Muller <muller@sourceware.org>
1713
1714 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1715 File already uses "gdb_dirent.h" header.
1716
1717 2012-11-07 Yao Qi <yao@codesourcery.com>
1718
1719 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1720 tracepoint_count'.
1721
1722 2012-11-06 Tom Tromey <tromey@redhat.com>
1723
1724 * target.h (inferior_has_forked, inferior_has_vforked)
1725 (inferior_has_execd, inferior_has_called_syscall): Remove
1726 declarations.
1727
1728 2012-11-06 Pierre Muller <muller@sourceware.org>
1729
1730 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1731 add missing internalization markup.
1732
1733 2012-11-06 Pedro Alves <palves@redhat.com>
1734
1735 PR gdb/14810
1736
1737 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1738
1739 2012-11-06 Pierre Muller <muller@sourceware.org>
1740
1741 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1742 is not executable.
1743
1744 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1745
1746 * gnulib/update-gnulib.sh: New script.
1747
1748 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1749
1750 * MAINTAINERS: Update my email address.
1751
1752 2012-11-05 Tom Tromey <tromey@redhat.com>
1753
1754 * frame.c (put_frame_register): Don't use temporary buffer.
1755
1756 2012-11-05 Pedro Alves <palves@redhat.com>
1757
1758 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1759 child. Clear 'pending_detach'.
1760 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1761 'pending_detach' in the vfork parent.
1762
1763 2012-11-05 Doug Evans <dje@google.com>
1764
1765 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1766 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1767 * dwarf2read.c: #include "elf-bfd.h".
1768 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1769 (dwop_section_names): Renamed from dwo_section names. All uses
1770 updated. Add entries for .debug_cu_index, .debug_tu_index.
1771 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1772 All uses updated.
1773 (struct dwp_sections): New type.
1774 (struct virtual_dwo_sections): New type.
1775 (struct dwp_hash_table): New type.
1776 (struct dwp_file): New type.
1777 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1778 read in. Handle DWOs coming from DWP files.
1779 (lookup_dwo_file_slot): New function.
1780 (dwarf2_locate_dwo_sections): Move definition closer to use.
1781 (create_dwo_debug_info_hash_table_reader): Renamed from
1782 create_debug_info_hash_table_reader. All callers updated.
1783 (create_dwo_debug_info_hash_table): Renamed from
1784 create_debug_info_hash_table. All callers updated.
1785 (create_dwp_hash_table): New function.
1786 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1787 (lookup_dwo_in_dwp): New function.
1788 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1789 is_dwp. All callers updated.
1790 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1791 (open_and_init_dwo_file): Renamed from init_dwo_file.
1792 All callers updated.
1793 (lookup_dwo_file): Delete.
1794 (dwarf2_locate_dwp_sections): New function.
1795 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1796 (allocate_dwp_loaded_cutus_table): New function.
1797 (open_and_init_dwp_file): New function.
1798 (lookup_dwo_cutu): New function.
1799 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1800
1801 2012-11-03 Yao Qi <yao@codesourcery.com>
1802
1803 Fix PR gdb/14617.
1804 * breakpoint.c (trace_pass_set_count): Call
1805 observer_notify_breakpoint_modified instead of
1806 observer_notify_tracepoint_modified.
1807 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1808
1809 2012-11-02 Tom Tromey <tromey@redhat.com>
1810
1811 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1812 argument to complete_on_enum.
1813
1814 2012-11-02 Tom Tromey <tromey@redhat.com>
1815
1816 * configure: Rebuild.
1817 * configure.ac (build_warnings): Add -Wempty-body.
1818 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1819 * remote.c (handle_notification): Use braces for empty 'else' body.
1820 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1821 'else' body.
1822 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1823 'else' body.
1824 * solib-som.c (som_relocate_section_addresses): Use braces
1825 for empty 'else' body.
1826 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1827 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1828
1829 2012-11-02 Pedro Alves <palves@redhat.com>
1830
1831 PR gdb/14766
1832
1833 * infrun.c (handle_inferior_event)
1834 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1835 null_ptid before handling a vfork child exec or exit. Switch to
1836 the event ptid afterwards.
1837
1838 2012-11-02 Yao Qi <yao@codesourcery.com>
1839
1840 * std-operator.def: Remove OP_LABELED.
1841 * eval.c: Remove the declaration of 'get_label'.
1842 (get_label): Remove.
1843 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1844 Update comment.
1845 Remove local variable 'variantno' and related code.
1846 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1847 with 'fieldno'.
1848 * expprint.c (print_subexp_standard): Likewise.
1849 (dump_subexp_body_standard): Likewise.
1850 * parse.c (operator_length_standard): Likewise.
1851
1852 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1853
1854 Incorporate ARI web page generator into GDB sources.
1855 * contrib/ari/create-web-ari-in-src.sh: New file.
1856 * contrib/ari/gdb_ari.sh: New file.
1857 * contrib/ari/gdb_find.sh: New file.
1858 * contrib/ari/update-web-ari.sh: New file.
1859
1860 2012-10-31 Tom Tromey <tromey@redhat.com>
1861
1862 * gdbarch.c: Rebuild.
1863 * gdbarch.sh: Remove references to gdbarch_swap.
1864 * corelow.c (core_open): Remove obsolete comment.
1865
1866 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1867
1868 PR cli/14772
1869 * c-typeprint.c (c_print_type): Don't print a space for vector
1870 types, this is handled within the suffix.
1871 (c_type_print_varspec_suffix): Add a space to vector suffix.
1872
1873 2012-10-26 Pedro Alves <palves@redhat.com>
1874
1875 * amd64-tdep.c (amd64_relocate_instruction): Use
1876 store_unsigned_integer instead of memcpy.
1877 * i386-tdep.c (i386_relocate_instruction): Ditto.
1878
1879 2012-10-26 Pedro Alves <palves@redhat.com>
1880
1881 * infrun.c (handle_inferior_event): Merge handling of
1882 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1883 switch case.
1884
1885 2012-10-26 Pedro Alves <palves@redhat.com>
1886
1887 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1888 Remove comment.
1889
1890 2012-10-26 Pedro Alves <palves@redhat.com>
1891
1892 * target.c (target_waitstatus_to_string): Handle
1893 TARGET_WAITKIND_VFORK_DONE.
1894
1895 2012-10-26 Pedro Alves <palves@redhat.com>
1896
1897 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1898 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1899
1900 2012-10-24 Tristan Gingold <gingold@adacore.com>
1901
1902 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1903 Add comments.
1904
1905 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1906
1907 * ravenscar-thread.c (ravenscar_wait): Only update the list
1908 of threads and inferior_ptid if the inferior is still alive.
1909
1910 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1911
1912 * ada-lang.c (is_known_support_routine): Use lbasename when
1913 matching the symtab's filename against
1914 known_runtime_file_name_patterns.
1915
1916 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1917
1918 * ada-lang.c (ada_same_array_size_p): New function.
1919 (ada_promote_array_of_integrals): New function.
1920 (coerce_for_assign): Add handling of arrays where the elements
1921 are integrals of a smaller size than the size of the target
1922 array element type.
1923
1924 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1925
1926 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1927 against maximum exponent value.
1928
1929 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1930
1931 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1932 "unwind-seh.c".
1933
1934 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1935
1936 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1937 strip typedef layer when computing the fixed type's field type,
1938 only when computing its size.
1939
1940 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1941
1942 PR gdb/12783
1943 * i386-tdep.c (i386_return_value): Handle complex double and long
1944 double.
1945
1946 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1947
1948 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1949 New local variable args_len.
1950 Quote the name of the executable when computing the command line.
1951
1952 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1953
1954 PR gdb/12796
1955 PR gdb/12798
1956 PR gdb/12800
1957 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1958 AMD64_FTAG_REGNUM.
1959 * amd64-tdep.c (amd64_classify): Classify complex types.
1960 (amd64_return_value): Handle the COMPLEX_X87 class.
1961
1962 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1963
1964 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1965 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1966
1967 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1968
1969 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1970 function.
1971 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1972 to amd64_windows_auto_wide_charset.
1973
1974 2012-10-23 Yao Qi <yao@codesourcery.com>
1975
1976 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1977 * event-top.h: Remove its declaration.
1978 (async_request_quit): Call mark_async_signal_handler instead of
1979 mark_async_signal_handler_wrapper.
1980 (async_do_nothing, async_disconnect): Likewise.
1981 (async_stop_sig): Likewise.
1982 * remote.c (handle_remote_sigint): Likewise.
1983 (handle_remote_sigint_twice): Likewise.
1984
1985 2012-10-23 Yao Qi <yao@codesourcery.com>
1986
1987 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1988 with 'static struct async_signal_handler *'.
1989 (sighup_token, sigquit_token, sigstp_token): Likewise.
1990
1991 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1992
1993 * gdbarch.sh (function_list): Use 'pstring' when printing
1994 a variable which could return NULL.
1995 * gdbarch.c: Regenerate.
1996
1997 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1998 Tom Tromey <tromey@redhat.com>
1999
2000 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2001 inneffective if condition by gdb assertion. Add function
2002 description comment.
2003
2004 2012-10-19 Joel Brobecker <brobecker@adacore.com>
2005
2006 * parser-defs.h (struct exp_descriptor): Document constraint
2007 on return value for "op_name" callbacks.
2008
2009 2012-10-18 Tom Tromey <tromey@redhat.com>
2010
2011 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2012 * symtab.c (iterate_over_some_symtabs): Constify.
2013 * source.h (symtab_to_fullname): Return 'const char *'.
2014 * source.c (symtab_to_fullname): Return 'const char *'.
2015 * python/py-symtab.c (stpy_fullname): Constify.
2016 * cli/cli-cmds.c (edit_command): Constify.
2017 * breakpoint.c (print_breakpoint_location)
2018 (update_static_tracepoint): Constify.
2019
2020 2012-10-18 Tom Tromey <tromey@redhat.com>
2021
2022 * breakpoint.c (compare_breakpoints): Fix comparison.
2023
2024 2012-10-18 Tom Tromey <tromey@redhat.com>
2025
2026 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2027 gdb_wchar_t to convert_between_encodings.
2028
2029 2012-10-17 Yao Qi <yao@codesourcery.com>
2030
2031 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2032 more parameter 'inferior'.
2033 * corefile.c (write_memory_with_notification): Caller update.
2034
2035 * mi/mi-cmd-var.c: Include "mi-main.h".
2036 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2037 to 1 and restore it later.
2038 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2039 and "data-write-memory-bytes.
2040 * mi/mi-interp.c: Include objfiles.h.
2041 (mi_interpreter_init): Call observer_attach_memory_changed.
2042 (mi_memory_changed): New.
2043 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2044 New field.
2045
2046 * NEWS: Mention new MI notification "memory-changed".
2047
2048 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2049
2050 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2051
2052 2012-10-15 Doug Evans <dje@google.com>
2053
2054 New option -nh: inhibit loading of ~/.gdbinit.
2055 * NEWS: Mention -nh.
2056 * main.c (captured_main): Recognize and process -nh.
2057 (print_gdb_help): Mention -nh.
2058 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2059
2060 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2061
2062 PR backtrace/14646
2063 PR gdb/14647
2064 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2065 pc_regnum_from_eax.
2066 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2067 nor pc_regnum_from_eax.
2068 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2069 nor pc_regnum_from_eax.
2070
2071 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2072
2073 Fix entry values resolving in inlined frames.
2074 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2075 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2076 entries of FRAME.
2077
2078 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2079
2080 * configure.ac: Build with -DMS_WIN64 if building with Python
2081 enabled using GCC on amd64-windows.
2082 * configure: Regenerate.
2083
2084 2012-10-15 Tom Tromey <tromey@redhat.com>
2085
2086 PR python/14635:
2087 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2088 to Py_None.
2089
2090 2012-10-15 Tom Tromey <tromey@redhat.com>
2091
2092 PR python/14634:
2093 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2094
2095 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2096
2097 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2098 reset thread numbering back to 1.
2099
2100 2012-10-11 Doug Evans <dje@google.com>
2101
2102 PR breakpoints/14643.
2103 * linespec.c (struct ls_parser): New member keyword_ok.
2104 (linespec_lexer_lex_string): Add comment.
2105 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2106 for one.
2107 (parse_linespec): Set keyword_ok.
2108
2109 2012-10-10 Doug Evans <dje@google.com>
2110
2111 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2112 "0x" prefix on address in log message.
2113
2114 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2115 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2116 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2117 (lookup_dwo_file): Add const to dwo_name parameter.
2118 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2119
2120 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2121
2122 Fix crash during stepping on ppc32.
2123 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2124 SYM.
2125
2126 2012-10-03 Doug Evans <dje@google.com>
2127
2128 PR symtab/14601
2129 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2130
2131 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2132
2133 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2134 output and use uint32_t not long to ensure 4 byte size.
2135
2136 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2137
2138 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2139 unref'ed it.
2140
2141 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2142
2143 * target.c (simple_search_memory): Include access length in
2144 warning message.
2145
2146 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2147 Edjunior Machado <emachado@linux.vnet.ibm.com>
2148
2149 PR gdb/13989
2150 * solib.c (solib_find): Prevent GDB from loading native libraries when
2151 debugging a cross-target corefile.
2152
2153 2012-09-28 selven <pcthegreat@gmail.com>
2154
2155 Make definition match declaration.
2156
2157 * regcache.c (regcache_register_status): Change return type to
2158 enum register_status.
2159
2160 2012-09-28 Yao Qi <yao@codesourcery.com>
2161
2162 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2163 write_memory_with_notification instead of write_memory.
2164 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2165 instead of target_write_memory.
2166
2167 2012-09-28 Yao Qi <yao@codesourcery.com>
2168
2169 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2170 when the length of content is not an even number.
2171
2172 2012-09-27 Tom Tromey <tromey@redhat.com>
2173
2174 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2175 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2176
2177 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2178
2179 * sol-thread.c (sol_thread_fetch_registers)
2180 (sol_thread_store_registers): Delete commented out code.
2181
2182 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2183
2184 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2185 Move these functions to sparc-sol-thread.c.
2186 * sparc-sol-thread.c: New file.
2187 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2188 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2189 configurations.
2190 * configure: Regenerate.
2191
2192 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2193
2194 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2195 Remove commented-out code.
2196
2197 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2198
2199 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2200 Enable this code for sparc hosts only.
2201
2202 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2203
2204 * procfs.h (procfs_find_LDT_entry): Add declaration.
2205 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2206 function procfs_find_LDT_entry.
2207
2208 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2209
2210 * procfs.c (proc_get_LDT_entry): Make static.
2211
2212 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2213
2214 * procfs.c (proc_find_memory_regions): Fix declaration.
2215
2216 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2217
2218 * amd64-tdep.c (amd64_return_value): Revert previous change
2219 that used TYPE_LENGTH directly.
2220 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2221 (bfin_store_return_value): Likewise.
2222 * cris-tdep.c (cris_store_return_value): Likewise.
2223 (cris_extract_return_value): Likewise.
2224 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2225 * hppa-tdep.c (hppa64_return_value): Likewise.
2226 * lm32-tdep.c (lm32_store_return_value): Likewise.
2227 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2228 * spu-tdep.c (spu_value_from_register): Likewise.
2229 * vax-tdep.c (vax_return_value): Likewise.
2230
2231 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2232
2233 * gdbtypes.c (lookup_array_range_type): Expand parameters
2234 LOW_BOUND and HIGH_BOUND to LONGEST.
2235 (lookup_string_range_type): Likewise.
2236 * gdbtypes.h (lookup_array_range_type): Likewise.
2237 (lookup_string_range_type): Likewise.
2238 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2239 Expand HIGHBOUND to ssize_t.
2240 (value_string): Likewise.
2241 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2242 (value_string): Likewise.
2243
2244 2012-09-27 Yao Qi <yao@codesourcery.com>
2245
2246 PR breakpoints/13898
2247 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2248 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2249 per breakpoint type.
2250
2251 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2252
2253 * procfs.c: Add gdb_bfd header.
2254 * rs6000-nat.c: Likewise.
2255 * solib-pa64.c: Likewise.
2256 * spu-linux-nat.c: Likewise.
2257 * windows-nat.c: Likewise.
2258
2259 2012-09-26 Tom Tromey <tromey@redhat.com>
2260
2261 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2262
2263 2012-09-26 Tom Tromey <tromey@redhat.com>
2264
2265 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2266 (read_common_block): Handle child DIEs with
2267 DW_AT_data_member_location.
2268 (new_symbol_full): Add special case for common blocks.
2269
2270 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2271 Tom Tromey <tromey@redhat.com>
2272
2273 * dwarf2read.c (read_common_block): Rewrite.
2274 (new_symbol_full): Handle DW_TAG_common_block.
2275 * f-lang.c (head_common_list, find_common_for_function):
2276 Remove.
2277 * f-lang.h (struct common_entry, struct saved_f77_common,
2278 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2279 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2280 BLANK_COMMON_NAME_LOCAL): Remove.
2281 (struct common_block): New.
2282 * f-valprint.c (list_all_visible_commons): Remove.
2283 (info_common_command_for_block): New function.
2284 (info_common_command): Use it.
2285 * stack.c (iterate_over_block_locals): Special case for
2286 COMMON_BLOCK_DOMAIN.
2287 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2288 constant.
2289 (struct general_symbol_info) <value.common_block>: New field.
2290 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2291
2292 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2293 Tom Tromey <tromey@redhat.com>
2294
2295 * f-lang.c (allocate_saved_bf_node,
2296 allocate_saved_function_node, allocate_saved_f77_common_node,
2297 allocate_common_entry_node, tail_common_list, current_common,
2298 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2299 tmp_bf_ptr, add_common_block, add_common_entry,
2300 find_first_common_named, patch_common_entries,
2301 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2302 global_remote_debug, get_bf_for_fcn, saved_function_list,
2303 saved_function_list_end, clear_function_list, struct saved_fcn,
2304 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2305 SAVED_BF, SAVED_BF_PTR): Remove.
2306 * f-lang.h (tail_common_list, current_common,
2307 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2308 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2309 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2310 real_main_c_value): Remove.
2311 * f-valprint.c (there_is_a_visible_common_named): Remove.
2312
2313 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2314
2315 * breakpoint.c (update_global_location_list): Ignore previous
2316 duplicate status of a breakpoint when starting a new scan for
2317 duplicate breakpoints.
2318
2319 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2320 PR breakpoints/14419
2321 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2322 support LLVM compiler.
2323
2324 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2325
2326 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2327 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2328 (bfin_store_return_value): Likewise.
2329 * cris-tdep.c (cris_store_return_value): Likewise.
2330 (cris_extract_return_value): Likewise.
2331 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2332 * hppa-tdep.c (hppa64_return_value): Likewise.
2333 * lm32-tdep.c (lm32_store_return_value): Likewise.
2334 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2335 * spu-tdep.c (spu_value_from_register): Likewise.
2336 * vax-tdep.c (vax_return_value): Likewise.
2337
2338 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2339
2340 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2341 parameter LEN to ssize_t.
2342
2343 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2344
2345 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2346 variable LEN.
2347 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2348 directly.
2349 (alpha_store_return_value): Likewise.
2350 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2351 (amd64_push_arguments): Likewise.
2352 * ax-gdb.c (gen_trace_static_fields): Likewise.
2353 (gen_traced_pop): Likewise.
2354 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2355 * breakpoint.c (update_watchpoint): Likewise.
2356 * findcmd.c (parse_find_args): Use local variable for type
2357 instead of length.
2358 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2359 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2360 (h8300_store_return_value): Likewise.
2361 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2362 Use i386_darwin_arg_type_alignment directly.
2363 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2364 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2365 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2366 (m68hc11_extract_return_value): Likewise.
2367 * mep-tdep.c (mep_push_dummy_call): Likewise.
2368 * printcmd.c (float_type_from_length): Likewise.
2369 * s390-tdep.c (s390_value_from_register): Likewise.
2370 * stack.c (read_frame_arg): Likewise.
2371 * tracepoint.c (encode_actions_1): Likewise.
2372 * valops.c (value_fetch_lazy): Use local variable for type
2373 instead of length. Use TYPE_LENGTH directly.
2374 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2375
2376 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2377
2378 * symtab.c (skip_prologue_sal): Fix typo in comment.
2379
2380 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2381
2382 * linespec.c (create_sals_line_offset): Fix typo in comment.
2383
2384 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2385
2386 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2387 use plongest to print the array size.
2388
2389 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2390
2391 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2392 * p-valprint.c (pascal_type_print_base): Likewise.
2393
2394 2012-09-22 Yao Qi <yao@codesourcery.com>
2395
2396 * remote.c (remote_get_trace_status): Remove setting default
2397 values of fields of 'ts'.
2398
2399 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2400
2401 Fix internal error on canonicalization of clang types.
2402 * cp-name-parser.y (operator): New comment at make_operator call for
2403 new, delete, new[] and delete[].
2404 (exp): Use "sizeof ". Add new comment at make_operator call.
2405
2406 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2407
2408 Fix disassemble without parameters in tailcall frame.
2409 * cli/cli-cmds.c (disassemble_current_function): Use
2410 get_frame_address_in_block.
2411
2412 2012-09-21 Tom Tromey <tromey@redhat.com>
2413
2414 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2415 TYPE_CODE_UNION>: Unify, removing a goto.
2416
2417 2012-09-21 Tom Tromey <tromey@redhat.com>
2418
2419 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2420
2421 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2422
2423 * findvar.c (read_frame_register_value): Mark the result value as
2424 optimized out if any of the input registers have been optimized out.
2425
2426 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2427
2428 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2429
2430 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2431
2432 * eval.c (evaluate_subexp_standard): Eliminate single-use
2433 variable LOWER.
2434
2435 2012-09-21 Yao Qi <yao@codesourcery.com>
2436
2437 * mi/mi-interp.c: Declare mi_record_changed.
2438 (mi_interpreter_init): Call observer_attach_record_changed.
2439 (mi_record_changed): New.
2440 * record.c (record_open): Call observer_notify_record_changed.
2441 (cmd_record_stop): Call observer_notify_record_changed.
2442 * NEWS: Mention it.
2443
2444 2012-09-20 Tom Tromey <tromey@redhat.com>
2445
2446 * NEWS: Update.
2447 * python/python.c (finalize_python): New function.
2448 (_initialize_python): Make a final cleanup.
2449
2450 2012-09-19 Doug Evans <dje@google.com>
2451
2452 * buildsym.h (param_symbols): Delete, unused.
2453 (context_stack): Delete member "params", unused.
2454 * buildsym.c (push_context): Update.
2455 * dwarf2read.c (read_func_scope): Update.
2456
2457 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2458
2459 * sh-tdep.c (sh_register_convert_to_virtual)
2460 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2461 all callers. Just do a memcpy if not the little-endian case.
2462
2463 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2464 set_gdbarch_double_format and set_gdbarch_long_double_format.
2465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2466 set_gdbarch_double_format.
2467 * sh-tdep.c (sh_gdbarch_init): Likewise.
2468
2469 * NEWS: Document the removal of SH's 'regs' command.
2470 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2471 command.
2472
2473 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2474
2475 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2476 `jump'.
2477
2478 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2479
2480 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2481 language when iterating over symbols.
2482
2483 2012-09-18 Yao Qi <yao@codesourcery.com>
2484
2485 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2486 (mi_interpreter_init): Call observer_attach_tsv_created and
2487 observer_attach_tsv_deleted.
2488 (mi_tsv_created, mi_tsv_deleted): New.
2489 * tracepoint.c (delete_trace_state_variable): Call
2490 observer_notify_tsv_deleted.
2491 (trace_variable_command): Call observer_notify_tsv_created.
2492 (delete_trace_variable_command): Call
2493 observer_notify_tsv_deleted.
2494 (create_tsv_from_upload): Call observer_notify_tsv_created.
2495 * NEWS: Mention it.
2496
2497 2012-09-18 Yao Qi <yao@codesourcery.com>
2498
2499 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2500 if traceframe changed.
2501 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2502 "trace-find".
2503 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2504 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2505 'traceframe_changed'.
2506 (mi_traceframe_changed): New.
2507 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2508 New field.
2509 * NEWS: Mention the new MI notification.
2510
2511 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2512
2513 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2514
2515 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2516
2517 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2518 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2519 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2520 Extend code also for PaX support. Convert all gdb_assert to warning
2521 calls.
2522
2523 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2524
2525 Implement auto-load user conveniences suggested by Doug Evans.
2526 * auto-load.c: Include top.h.
2527 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2528 (_initialize_auto_load): New variable scripts_directory_help. Mention
2529 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2530 scripts-directory. Document in online help one can use also files for
2531 set auto-load safe-path.
2532 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2533 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2534
2535 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2536
2537 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2538 of LEN.
2539
2540 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2541
2542 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2543 ELTLEN and use TYPE_LENGTH directly.
2544 (m2_val_print): Likewise.
2545 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2546 variable LEN and use TYPE_LENGTH directly.
2547 (m68k_svr4_store_return_value): Likewise.
2548 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2549 ARGLEN and use TYPE_LENGTH directly.
2550 (mips_o64_push_dummy_call): Likewise.
2551 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2552 variable LENGTH and use TYPE_LENGTH directly.
2553 (s390_function_arg_float): Likewise.
2554 (s390_function_arg_integer): Likewise.
2555 (s390_push_dummy_call): Likewise.
2556 (s390_return_value_convention): Likewise.
2557 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2558 TYPE_LENGTH directly.
2559
2560 2012-09-17 Yao Qi <yao@codesourcery.com>
2561
2562 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2563 Update comment to add_setshow_integer_cmd.
2564 * cli/cli-setshow.c (do_set_command): Handle case
2565 'var_zuinteger_unlimited'.
2566 (do_show_command): Likewise.
2567 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2568 for command 'remotetimeout'.
2569 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2570 to var_integer.
2571 * source.c (_initialize_source): Call
2572 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2573
2574 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2575
2576 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2577 variable LEN.
2578
2579 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2580
2581 PR 14119
2582 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2583 (frame_pop): Drop also TAILCALL_FRAME frames.
2584 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2585
2586 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2587 Pedro Alves <palves@redhat.com>
2588
2589 PR 14548
2590 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2591 function start if we are already at function start. Both for
2592 reverse-next and for reverse-step into function without line number
2593 info.
2594
2595 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2596
2597 Code cleanup - rename 'inline' depth to 'artificial' depth.
2598 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2599 frame_id_artificial_p, extend the comment.
2600 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2601 * frame.c (fprint_frame_id): Rename at a user, change debug output
2602 text to "artificial=".
2603 (skip_inlined_frames): Rename to ...
2604 (skip_artificial_frames): ... here. Extend the comment.
2605 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2606 (frame_id_inlined_p): Rename to ...
2607 (frame_id_artificial_p): ... here. Rename at a user.
2608 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2609 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2610 at a user.
2611 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2612 Extend the comment.
2613 (frame_id_inlined_p): Rename to ...
2614 (frame_id_artificial_p): ... here.
2615 * inline-frame.c (inline_frame_this_id): Rename at a user.
2616
2617 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2618
2619 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2620 vector variables using vector_size syntax rather than array
2621 syntax.
2622
2623 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2624
2625 * valarith.c (value_concat): Replace unsafe ALLOCA with
2626 XMALLOC/XFREE.
2627
2628 2012-09-14 Pedro Alves <palves@redhat.com>
2629
2630 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2631
2632 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2633
2634 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2635 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2636 data-directory as appropriate.
2637
2638 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2639
2640 * printcmd.c (ui_printf): Eliminate single-use variable
2641 PARAM_LEN.
2642
2643 2012-09-14 Yao Qi <yao@codesourcery.com>
2644 Pedro Alves <palves@redhat.com>
2645
2646 * valops.c (value_assign): Move observer_notify_target_changed
2647 below to replace reinit_frame_cache.
2648
2649 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2650
2651 Refactor Python "gdb" module into a proper Python package, by
2652 introducing a new "_gdb" module for code implemented in C, and
2653 using reload/__import__ instead of exec.
2654 * python/lib/gdb/__init__.py: Import * from _gdb.
2655 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2656 prompt_hook, sys.argv): Moved from finish_python_initialization.
2657 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2658 (packages, auto_load_packages): New list and function replacing
2659 module_dict and auto-loading code, using __file__ instead of
2660 gdb.PYTHONDIR and reload/__import__ instead of exec.
2661 (GdbSetPythonDirectory): Replacing function of the same name
2662 from finish_python_initialization, using reload/__import__ instead
2663 of exec, as well as call auto_load_packages.
2664 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2665 gdb_python_module and not gdb_module.
2666 * python/python-internal.h (gdb_python_module): Declare.
2667 * python/python.c (gdb_python_module): New global.
2668 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2669 (_initialize_python): Rename gdb module to _gdb.
2670 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2671 (finish_python_initialization): Move Python code to
2672 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2673 __main__.
2674
2675 2012-09-13 Pedro Alves <palves@redhat.com>
2676
2677 * Makefile.in (COMMON_OBS): Add registry.o.
2678 * registry.c: New file.
2679 * registry.h (struct registry_container): Declare.
2680 (registry_data_callback): New typedef.
2681 (struct registry_data, struct registry_data_registration, struct
2682 registry_data_registry): New type.
2683 (register_data_with_cleanup, registry_alloc_data)
2684 (registry_callback_adaptor, registry_clear_data)
2685 (registry_container_free_data, registry_set_data, registry_data):
2686 Declare.
2687 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2688 the new common structures and functions.
2689 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2690 callback typedefs.
2691
2692 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2693
2694 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2695 there is an error inserting hardware breakpoints and use the
2696 error message from the target.
2697
2698 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2699 Catch this exception and print the error message contained within.
2700 Do not print the default hardware error breakpoint message in this
2701 case.
2702
2703 2012-09-12 Doug Evans <dje@google.com>
2704
2705 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2706 cu == NULL.
2707
2708 2012-09-11 Doug Evans <dje@google.com>
2709
2710 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2711 .gdb_index symbol attributes if there are none.
2712
2713 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2714
2715 * symtab.h (struct minimal_symbol) [has_size]: New field.
2716 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2717 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2718 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2719 minimal symbols if the symbol's size is actually known.
2720 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2721 of msymbol's size field. Add comment.
2722 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2723 SET_MSYMBOL_SIZE to set the minimal symbol size.
2724
2725 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2726
2727 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2728 minimal_symbol struct object, rather than setting some of its
2729 fields one by one.
2730
2731 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2732
2733 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2734 passed_a_ptr flag when displaying typedef types.
2735
2736 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2737
2738 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2739 the optimized_out flag is preserved.
2740
2741 2012-09-10 Anthony Green <green@moxielogic.com>
2742
2743 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2744 prologue changes in GCC.
2745
2746 2012-09-10 Keith Seitz <keiths@redhat.com>
2747
2748 PR gdb/13483
2749 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2750 (BOOL_CONVERSION_BADNESS): ... this.
2751 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2752 (rank_one_type): Allow all boolean conversions
2753 permitted by the standard.
2754
2755 2012-09-06 Tom Tromey <tromey@redhat.com>
2756
2757 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2758 Don't decref py_objfile.
2759
2760 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2761
2762 Do not enable -lmcheck by default when Python is enabled with
2763 threading support.
2764 * configure.ac: (python_has_threads) New variable, by testing
2765 if WITH_THREAD is defined in Python.h.
2766 Move --enable-lmcheck after --with-python.
2767 Do not enable -lmcheck by default if python_has_threads=yes.
2768 Warn if --enable-lmcheck and python_has_threads=yes.
2769 * configure: Regenerate.
2770
2771 2012-08-31 Yao Qi <yao@codesourcery.com>
2772
2773 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2774 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2775 Update some commands.
2776 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2777 * mi/mi-main.c (mi_cmd_execute): Set
2778 '*parse->cmd->suppress_notification' to 1.
2779
2780 2012-08-31 Yao Qi <yao@codesourcery.com>
2781
2782 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2783
2784 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2785
2786 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2787
2788 2012-08-29 Doug Evans <dje@google.com>
2789
2790 * main.c (print_gdb_help): Remove reference to
2791 --use-deprecated-index-sections.
2792
2793 2012-08-28 Yao Qi <yao@codesourcery.com>
2794
2795 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2796 (init_cmds): Call add_setshow_uinteger_cmd for command
2797 'max-user-call-depth'.
2798 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2799 declaration of 'max_user_call_depth'.
2800 * frame.c (backtrace_limit): Add 'unsigned'.
2801 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2802 'limit'.
2803 * remote.c (remoteaddresssize): Add 'unsigned'.
2804 (remote_address_masked): Change local var 'address_size' to
2805 'unsigned'.
2806 (_initialize_remote): Call add_setshow_uinteger_cmd for
2807 'remoteaddresssize'.
2808 * top.c (history_size): Add 'unsigned'.
2809 (show_commands): Change local variables to 'unsigned'.
2810 (set_history_size_command): Don't check history_size is negative.
2811 Adjust the condition to call unstifle_history and set history_size
2812 to UNIT_MAX.
2813
2814 2012-08-28 Pedro Alves <palves@redhat.com>
2815
2816 PR gdb/14428
2817
2818 * infcmd.c (default_print_one_register_info): New, factored out
2819 from default_print_registers_info.
2820 (default_print_registers_info): Use it. Mark value unavailable if
2821 necessary.
2822 (registers_info): Print user registers with
2823 default_print_one_register_info.
2824
2825 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2826
2827 PR tui/14486
2828 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2829 is not NULL before referencing it.
2830
2831 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2832
2833 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2834 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2835 original PC for it.
2836
2837 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2838 Jan Kratochvil <jan.kratochvil@redhat.com>
2839
2840 * auto-load.c (auto_load_objfile_script): Rename to ...
2841 (auto_load_objfile_script_1): ... here, change variable realname to
2842 parameter realname, document it, add return value, add variable retval.
2843 (auto_load_objfile_script): New function.
2844
2845 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2846
2847 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2848 followed by a whitespace.
2849
2850 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2851
2852 PR gdb/14494.
2853 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2854 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2855 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2856 here.
2857
2858 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2859
2860 * memattr.c (create_mem_region): Fix memory region overlapping
2861 checking.
2862
2863 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2864
2865 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2866 with xmalloc/cleanup.
2867 * mt-tdep.c (mt_push_dummy_call): Likewise.
2868 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2869 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2870
2871 2012-08-24 Yao Qi <yao@codesourcery.com>
2872
2873 * jv-exp.y (push_expression_name): Add "." at the end of error
2874 message.
2875
2876 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2877
2878 Document how to return from "python-interactive" to GDB.
2879 * python/python.c (_initialize_python): Update documentation.
2880
2881 2012-08-23 Pedro Alves <palves@redhat.com>
2882
2883 * infrun.c (_initialize_infrun) <handle command help text>:
2884 Mention that multiple signals are supported.
2885
2886 2012-08-23 Pedro Alves <palves@redhat.com>
2887
2888 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2889 string.
2890
2891 2012-08-23 Yao Qi <yao@codesourcery.com>
2892
2893 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2894 (tfind_1): Don't call registers_changed, set_traceframe_num,
2895 and clear_traceframe_info.
2896 Call set_current_traceframe.
2897 (set_current_traceframe): call set_traceframe_num.
2898
2899 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2900
2901 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2902 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2903
2904 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2905
2906 Enable readline in Python in a GDB-specific way and block the
2907 standard Python readline module to prevent conflicts with GDB.
2908 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2909 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2910 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2911 * python/py-gdb-readline.c: New file.
2912 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2913 prototype.
2914 * python/python.c (_initialize_python): Call
2915 gdbpy_initialize_gdb_readline.
2916
2917 2012-08-22 Keith Seitz <keiths@redhat.com>
2918
2919 * defs.h: Include build-gnulib/config.h
2920
2921 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2922
2923 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2924 and blx pc.
2925
2926 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2927
2928 Add a new "python-interactive" command that starts a standard
2929 Python interactive prompt with "pi" as alias, and add "py" as
2930 an alias to "python".
2931 * NEWS: Mention the new commands.
2932 * python/python.c (eval_python_command): New function.
2933 (python_interactive_command): For "python-interactive" with
2934 arguments, call eval_python_command. For "python-interactive"
2935 without arguments, call PyRun_InteractiveLoop.
2936 (_initialize_python): Add "python-interactive" command with
2937 "pi" as alias, and add "py" as an alias to "python".
2938
2939 2012-08-22 Tom Tromey <tromey@redhat.com>
2940
2941 * defs.h (quit_flag): Don't declare.
2942 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2943 (QUIT): Use new functions.
2944 * event-top.c (command_handler): Use clear_quit_flag.
2945 (handle_sigint): Use set_quit_flag.
2946 (async_request_quit): Use check_quit_flag. Don't check
2947 immediate_quit.
2948 * exceptions.c (throw_exception): Use clear_quit_flag.
2949 * main.c (captured_main): Use clear_quit_flag.
2950 * python/python.c (clear_quit_flag, set_quit_flag)
2951 (check_quit_flag): New functions.
2952 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2953 clear_quit_flag.
2954 * remote.c (remote_wait_as): Use check_quit_flag,
2955 clear_quit_flag.
2956 (remote_start_remote): Call QUIT.
2957 * symfile.c (load_progress): Use check_quit_flag.
2958 * top.c (command_loop): Use clear_quit_flag.
2959 (command_line_input): Call QUIT.
2960 * utils.c (quit_flag): Conditionally define.
2961 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2962 functions.
2963 (prompt_for_continue): Call QUIT. Use quit, not
2964 async_request_quit.
2965 * remote-mips.c (mips_expect_timeout): Call QUIT.
2966 * monitor.c (monitor_expect): Call QUIT.
2967
2968 2012-08-22 Tom Tromey <tromey@redhat.com>
2969
2970 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2971 (async_init_signals): Update.
2972 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2973 (SIGWINCH_HANDLER_BODY): Remove.
2974
2975 2012-08-22 Tom Tromey <tromey@redhat.com>
2976
2977 * jit.c (jit_object_close_impl): Don't malloc the objfile
2978 name.
2979 * objfiles.c (allocate_objfile): Don't malloc the objfile
2980 name.
2981 (free_objfile): Don't free the objfile name.
2982 * objfiles.h (struct objfile) <name>: Update comment.
2983 * symfile.c (reread_symbols): Fix reference counting. Don't
2984 malloc objfile name.
2985
2986 2012-08-22 Tom Tromey <tromey@redhat.com>
2987
2988 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2989 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2990 (symfile_bfd_open): Likewise.
2991 (generic_load): Likewise.
2992 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2993 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2994 gdb_bfd_open.
2995 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2996 Use gdb_bfd_open.
2997 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2998 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2999 (pmon_load_fast): Likewise.
3000 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3001 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3002 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3003 (macho_check_dsym): Likewise.
3004 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3005 (m32r_upload_command): Likewise.
3006 * gdb_bfd.h (gdb_bfd_cache): Declare.
3007 * gdb_bfd.c (struct gdb_bfd_data): New.
3008 (gdb_bfd_cache): New global.
3009 (struct gdb_bfd_cache_search): New.
3010 (hash_bfd): New function.
3011 (eq_bfd): Likewise.
3012 (gdb_bfd_open): Likewise.
3013 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3014 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3015 gdb_bfd_data.
3016 * exec.c (exec_file_attach): Use gdb_bfd_open.
3017 * dsrec.c (load_srec): Use gdb_bfd_open.
3018
3019 2012-08-22 Tom Tromey <tromey@redhat.com>
3020
3021 * dwarf2read.c (macro_start_file): Update.
3022 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3023 (free_objfile_per_bfd_storage): Destroy macro_cache.
3024 (allocate_objfile, free_objfile): Update.
3025 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3026 New field.
3027 (struct objfile) <macro_cache>: Remove.
3028 * symfile.c (reread_symbols): Update.
3029 * symmisc.c (print_symbol_bcache_statistics): Update.
3030 (print_objfile_statistics): Update.
3031
3032 2012-08-22 Tom Tromey <tromey@redhat.com>
3033
3034 * elfread.c (elf_symtab_read): Update.
3035 * objfiles.c (objfiles_bfd_data): New global.
3036 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3037 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3038 (allocate_objfile, free_objfile): Update.
3039 (_initialize_objfiles): Initialize objfiles_bfd_data.
3040 * objfiles.h (struct objfile_per_bfd_storage): New.
3041 (struct objfile) <per_bfd>: New field.
3042 <filename_cache>: Remove.
3043 (set_objfile_per_bfd): Declare.
3044 * symfile.c (reread_symbols): Update. Call
3045 set_objfile_per_bfd.
3046 (allocate_symtab): Update.
3047 * symmisc.c (print_symbol_bcache_statistics): Update.
3048 (print_objfile_statistics): Print the size of the BFD obstack.
3049
3050 2012-08-22 Tom Tromey <tromey@redhat.com>
3051
3052 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3053 * gdb_bfd.c: Use DEFINE_REGISTRY.
3054 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3055 (gdb_bfd_ref): Call bfd_alloc_data.
3056 (gdb_bfd_unref): Call bfd_free_data.
3057
3058 2012-08-22 Tom Tromey <tromey@redhat.com>
3059
3060 * registry.h (struct registry_fields): New.
3061 (REGISTRY_FIELDS): Redefine.
3062 (REGISTRY_ACCESS_FIELD): New macro.
3063 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3064 functions.
3065
3066 2012-08-22 Tom Tromey <tromey@redhat.com>
3067
3068 * auto-load.c (_initialize_auto_load): Update.
3069 * solib-svr4.c (_initialize_svr4_solib): Update
3070 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3071 * solib-darwin.c (_initialize_darwin_solib): Update.
3072 * registry.h: New file.
3073 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3074 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3075 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3076 (register_program_space_data_with_cleanup)
3077 (register_program_space_data, program_space_alloc_data)
3078 (clear_program_space_data, set_program_space_data)
3079 (program_space_data): Don't declare.
3080 * progspace.c: Use DEFINE_REGISTRY.
3081 (struct program_space_data, struct
3082 program_space_data_registration, struct
3083 program_space_data_registry, program_space_data_registry)
3084 (register_program_space_data_with_cleanup)
3085 (register_program_space_data, program_space_alloc_data)
3086 (program_space_free_data, clear_program_space_data)
3087 (set_program_space_data, program_space_data): Remove.
3088 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3089 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3090 (register_objfile_data_with_cleanup, register_objfile_data)
3091 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3092 declare.
3093 * objfiles.c: Use DEFINE_REGISTRY.
3094 (struct objfile_data, struct objfile_data_registration, struct
3095 objfile_data_registry, objfile_data_registry)
3096 (register_objfile_data_with_cleanup, register_objfile_data)
3097 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3098 (set_objfile_data, objfile_data): Remove.
3099 (_initialize_objfiles): Update.
3100 * jit.c (_initialize_jit): Update.
3101 * inflow.c (_initialize_inflow): Update.
3102 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3103 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3104 (register_inferior_data_with_cleanup, register_inferior_data)
3105 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3106 declare.
3107 * inferior.c: Use DEFINE_REGISTRY.
3108 (struct inferior_data, struct inferior_data_registration, struct
3109 inferior_data_registry, inferior_data_registry)
3110 (register_inferior_data_with_cleanup, register_inferior_data)
3111 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3112 (set_inferior_data, inferior_data): Remove.
3113 * auxv.c (_initialize_auxv): Update.
3114 * ada-lang.c (_initialize_ada_language): Update.
3115 * breakpoint.c (_initialize_breakpoint): Update.
3116 * i386-nat.c (i386_use_watchpoints): Update.
3117
3118 2012-08-22 Tom Tromey <tromey@redhat.com>
3119
3120 * exec.c (exec_close, exec_file_attach): Update.
3121 (add_to_section_table): Initialize 'key' field.
3122 (add_target_sections, remove_target_sections): Add 'key' argument.
3123 * exec.h (add_target_sections, remove_target_sections): Add
3124 'key' argument.
3125 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3126 (reload_shared_libraries_1): Update.
3127 * target.h (struct target_section) <key>: New field.
3128
3129 2012-08-22 Tom Tromey <tromey@redhat.com>
3130
3131 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3132
3133 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3134
3135 * symfile.c (allocate_symtab): Use host_address_to_string
3136 function instead of cast of pointer to long which is not
3137 compatible with x86_64-w64-mingw32 build.
3138
3139 2012-08-19 Andrew Pinski <apinski@cavium.com>
3140
3141 * mips-tdep.c (is_octeon): New function.
3142 (is_octeon_bbit_op): New function.
3143 (mips32_next_pc): Handle Octeon's bbit instructions.
3144 (mips32_instruction_has_delay_slot): Likewise.
3145
3146 2012-08-19 Andrew Pinski <apinski@cavium.com>
3147
3148 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3149 before the function.
3150
3151 2012-08-19 Andrew Pinski <apinski@cavium.com>
3152
3153 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3154
3155 2012-08-19 Keith Seitz <keiths@redhat.com>
3156
3157 PR c++/14365
3158 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3159 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3160
3161 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3162
3163 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3164 The typo broke "make TAGS".
3165
3166 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3167
3168 GDB 7.5 released.
3169
3170 2012-08-17 Keith Seitz <keiths@redhat.com>
3171
3172 PR c++/13356
3173 * gdbtypes.c (strict_type_checking): New variable.
3174 (show_strict_type_checking): New function.
3175 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3176 if strict type checking is disabled.
3177 (_initialize_gdbtypes): Add "check type" subcommand.
3178 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3179
3180 2012-08-17 Keith Seitz <keiths@redhat.com>
3181
3182 * language.h (type_mode): Remove.
3183 (type_check): Remove.
3184 (struct language_defn): Remove la_type_check.
3185 (STRICT_TYPE): Remove unused macro.
3186 (type_error): Remove.
3187 * language.c (set_type_range_case): Renamed to ...
3188 (set_range_case): ... this. Update all callers.
3189 Remove type_mode/type_check.
3190 (type_mode): Remove.
3191 (type_check): Remove.
3192 (show_type_command): Remove.
3193 (set_type_command): Remove.
3194 (language_info): Remove type checking output.
3195 (type_error): Remove unused function.
3196 (range_error): Update comment.
3197 (unknown_language_defn): Remove la_type_check.
3198 (auto_language_defn): Likewise.
3199 (local_language_defn): Likewise.
3200 (_initialize_language): Remove "check type" subcommand.
3201 * ada-lang.c (ada_language_defn): Remove la_type_check.
3202 * c-lang.c (c_language_defn): Likewise.
3203 (cplus_language_defn): Likewise.
3204 (asm_language_defn): Likewise.
3205 (minimal_language_defn): Likewise.
3206 * d-lang.c (d_language_defn): Likewise.
3207 * f-lang.c (f_language_defn): Likewise.
3208 * go-lang.c (go_language_defn): Likewise.
3209 * jv-lang.c (java_language_defn): Likewise.
3210 * m2-lang.c (m2_language_defn): Likewise.
3211 * objc-lang.c (objc_language_defn): Likewise.
3212 * opencl-lang.c (opencl_language_defn): Likewise.
3213 * p-lang.c (pascal_language_defn): Likewise.
3214
3215 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3216
3217 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3218
3219 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3220
3221 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3222 New function.
3223 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3224 using the regache. Use ia64_hpux_get_register_from_save_state_t
3225 to access the bsp and bspstore registers if not.
3226
3227 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3228
3229 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3230 * breakpoint.c (detach_breakpoints): Change pid parameter into
3231 a ptid. Adjust code accordingly.
3232 * infrun.c (handle_inferior_event): Delete variable child_pid.
3233 Update call to detach_breakpoints to pass the child ptid for
3234 fork events.
3235 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3236 assert that inferior_ptid's lwp is zero.
3237 (linux_handle_extended_wait): Update call to detach_breakpoints.
3238 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3239 detach_breakpoints.
3240
3241 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3242
3243 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3244 parent, only call detach_breakpoints if tts.tts_event ==
3245 TTEVT_VFORK.
3246
3247 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3248
3249 * dwarf2-frame.c (dwarf2_frame_cache): Use
3250 get_frame_address_in_block instead of get_frame_pc as
3251 the bound for executing the frame's FDE.
3252
3253 2012-08-16 Yao Qi <yao@codesourcery.com>
3254
3255 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3256 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3257 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3258 (c_type_print_varspec_suffix): Likewise.
3259 * eval.c (evaluate_subexp_standard): Likewise.
3260 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3261 (f_type_print_varspec_suffix): Likewise.
3262 * gdbtypes.c (is_scalar_type): Likewise.
3263 (recursive_dump_type): Likewise.
3264 * infcall.c (value_arg_coerce): Likewise.
3265 * m2-valprint.c (m2_val_print): Likewise.
3266 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3267 (pascal_type_print_varspec_suffix): Likewise.
3268 (pascal_type_print_base): Likewise.
3269 * p-valprint.c (pascal_val_print): Likewise.
3270 (pascal_val_print): Likewise.
3271 * valops.c (value_slice): Likewise.
3272 * valprint.c (scalar_type_p): Likewise.
3273 * valarith.c (value_bitstring_subscript): Remove.
3274 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3275 Remove comment on TYPE_CODE_BITSTRING.
3276
3277 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3278 TYPE_CODE_BITSTRING.
3279
3280 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3281 slot 0.
3282
3283 2012-08-16 Yao Qi <yao@codesourcery.com>
3284
3285 * tracepoint.c (trace_find_none_command): Remove.
3286 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3287
3288 2012-08-16 Yao Qi <yao@codesourcery.com>
3289
3290 * remote.c (handle_notification): Remove parameter 'length'.
3291 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3292
3293 2012-08-15 Keith Seitz <keiths@redhat.com>
3294
3295 * gdbtypes.c (opaque_type_resolution): Make static.
3296 Add missing comment.
3297 (overload_debug): Add missing comment.
3298 (show_opaque_type_resolution): Likewise.
3299 (show_overload_debug): Likewise.
3300 (print_bit_vector): Remove unnecessary forward declaration.
3301 (print_arg_types): Likewise.
3302 (dump_fn_fieldlists): Likewise.
3303 (print_cplus_stuff): Likewise.
3304
3305 2012-08-15 Tom Tromey <tromey@redhat.com>
3306
3307 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3308 (gdb_bfd_ref): Initialize new field.
3309 (gdb_bfd_unref): Unref the archive BFD.
3310 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3311 parent archive.
3312
3313 2012-08-15 Tom Tromey <tromey@redhat.com>
3314
3315 PR python/14387:
3316 * python/py-bpevent.c (create_breakpoint_event_object): Update
3317 comment.
3318 * python/py-event.c (evpy_add_attribute): Update comment.
3319 * python/py-exitedevent.c (create_exited_event_object): Fix
3320 reference counting and error handling.
3321 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3322 Fix reference counting.
3323 * python/py-signalevent.c (create_signal_event_object): Fix
3324 reference counting and error handling.
3325 * python/py-stopevent.c (emit_stop_event): Fix reference
3326 counting.
3327 * python/py-threadevent.c (get_event_thread): Return a
3328 borrowed reference.
3329 * python/py-type.c (convert_field): Fix reference counting.
3330
3331 2012-08-15 Tom Tromey <tromey@redhat.com>
3332
3333 * dwarf2read.c (dwarf_decode_macro_bytes)
3334 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3335 as hash key.
3336
3337 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3338
3339 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3340 stepi, nexti, finish, next, step, jump, and continue commands.
3341 * infrun.c (_initialize_infrun): Update help text for the handle
3342 command.
3343
3344 2012-08-14 Doug Evans <dje@google.com>
3345
3346 * gdbtypes.c (struct extra): Delete, unused.
3347
3348 * gdbtypes.c: Whitespace cleanup.
3349 (address_space_name_to_int): Remove "extern" from definition.
3350 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3351
3352 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3353 TYPE_POINTER_TYPE (type).
3354
3355 2012-08-14 Gary Benson <gbenson@redhat.com>
3356
3357 * solib-svr4.c (svr4_free_library_list): Use free_so.
3358
3359 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3360
3361 * .gitignore: Add go-exp.c.
3362
3363 2012-08-13 Doug Evans <dje@google.com>
3364
3365 * value.c (show_convenience): Tweak comment.
3366 (_initialize_values): Mention convenience functions in the help text
3367 for "show convenience".
3368
3369 2012-08-13 Yao Qi <yao@codesourcery.com>
3370
3371 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3372 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3373 TERNOP_SLICE_COUNT.
3374 * eval.c (evaluate_subexp_standard): Likewise.
3375 * expprint.c (print_subexp_standard): Likewise.
3376 (dump_subexp_body_standard): Likewise.
3377 * parse.c (operator_length_standard): Likewise.
3378
3379 2012-08-13 Yao Qi <yao@codesourcery.com>
3380
3381 * std-operator.def: Remove OP_BITSTRING.
3382 * breakpoint.c (watchpoint_exp_is_const): Update.
3383 * eval.c (evaluate_subexp_standard): Remove handling to
3384 OP_BITSTRING.
3385 * expprint.c (print_subexp_standard): Likewise.
3386 (dump_subexp_body_standard): Likewise.
3387 * parse.c (operator_length_standard): Likewise.
3388 * valops.c (value_bitstring): Remove.
3389 * value.h: Remove the declaration of 'value_bitstring'.
3390
3391 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3392
3393 * linespec.c (find_methods): Remove unused variables `i1' and
3394 `name_len'.
3395 (decode_line_full): Likewise for `arg_start'.
3396
3397 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3398
3399 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3400 (zlib_decompress_section): Likewise for `section_data'.
3401 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3402
3403 2012-08-10 Doug Evans <dje@google.com>
3404
3405 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3406 * NEWS: Document them.
3407 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3408 function/strfns.py.
3409 * python/py-type.c (typy_array_1): New function.
3410 (typy_array): Call it.
3411 (typy_vector): New function.
3412 (type_object_methods): Add "vector".
3413 * python/lib/gdb/function/__init__.py: New file.
3414 * python/lib/gdb/function/strfns.py: New file.
3415
3416 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3417
3418 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3419 for TYPE_FIELD_BITPOS.
3420 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3421
3422 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3423
3424 PR cli/10436:
3425 * common/vec.h (VEC_merge): Define.
3426 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3427 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3428 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3429 * completer.c: Include gdb_signals.h.
3430 (signal_completer): Define.
3431 * completer.h (signal_completer): Add prototype.
3432 * infcmd.c (_initialize_infcmd): Assign the command
3433 completer for "signal" to handle_completer.
3434 * infrun.c: Include completer.h.
3435 (handle_completer): Define.
3436 (_initialize_infrun): Declare a new local variable c. Store the
3437 result of add_com("handle") to it. Assign the command
3438 completer for "handle" to handle_completer.
3439
3440 2012-08-09 Yao Qi <yao@codesourcery.com>
3441
3442 * cli/cli-decode.c (set_cmd_prefix): New.
3443 (lookup_cmd_for_prefixlist): New.
3444 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3445 of each cmd_list_element in *prefixlist.
3446 (add_setshow_cmd_full): set_cmd_prefix.
3447 (add_alias_cmd): Likewise.
3448 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3449 Declare 'auto_boolean_enums'.
3450 * cli/cli-setshow.c: Include "observer.h".
3451 (notify_command_param_changed_p): New.
3452 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3453 Remove 'static'.
3454 (do_setshow_command): Split it to ...
3455 (do_set_command, do_show_command): ... them. New.
3456 (do_set_command): Call observer_notify_command_param_changed if
3457 notify_command_param_changed_p returns true.
3458 (cmd_show_list): Caller update.
3459 * auto-load.c (set_auto_load_cmd): Likewise.
3460 * remote.c (show_remote_cmd): Likewise.
3461 * cli/cli-setshow.h: Update declarations.
3462 * top.c (execute_command): Call do_set_command and do_show_command.
3463
3464 * NEWS: Mention new MI notification.
3465 * mi/mi-interp.c: Declare mi_command_param_changed.
3466 (mi_interpreter_init): Attach mi_command_param_changed to
3467 observer command_param_changed.
3468 (mi_command_param_changed): New.
3469 Remove mi_suppress_breakpoint_notifications.
3470 Define global variable mi_suppress_notification.
3471 (mi_breakpoint_created): Update.
3472 (mi_breakpoint_deleted): Likewise.
3473 (mi_breakpoint_modified): Likewise.
3474 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3475 'gdb-set' and set mi_suppress_notification.
3476 * mi/mi-main.h: (mi_suppress_notification): New struct.
3477
3478 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3479 Jan Kratochvil <jan.kratochvil@redhat.com>
3480
3481 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3482
3483 2012-08-09 Yao Qi <yao@codesourcery.com>
3484
3485 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3486 (skiplist): Move it to skip.c.
3487 (init_cmd_lists): Remove code setting enablebreaklist and
3488 skiplist to NULL.
3489 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3490 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3491 skiplist.
3492 * gdbcmd.h: Likewise.
3493 * skip.c (_initialize_step_skip): Move 'skiplist' from
3494 cli/cli-cmds.c.
3495
3496 2012-08-09 Yao Qi <yao@codesourcery.com>
3497
3498 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3499 * gnu-nat.c, symfile.c: Likewise.
3500
3501 2012-08-08 Aaron Gamble <agamble@google.com>
3502
3503 * utils.c (prompt_for_continue_wait_time): New static global.
3504 (make_command_stats_cleanup): Initialize it.
3505 (report_command_stats): Subtract time waiting for user.
3506 (prompt_for_continue): Track time waiting for user.
3507 (defaulted_query): Track time waiting for user.
3508
3509 2012-08-08 Doug Evans <dje@google.com>
3510
3511 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3512 UNOP_MEMVAL_TYPE.
3513 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3514 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3515 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3516 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3517 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3518 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3519 elt.
3520 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3521 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3522 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3523 (dump_prefix_expression): Handle OP_TYPE.
3524
3525 2012-08-08 Keith Seitz <keiths@redhat.com>
3526
3527 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3528 addr_start.
3529
3530 2012-08-08 Doug Evans <dje@google.com>
3531
3532 * linux-thread-db.c: #include "gdb_vecs.h".
3533 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3534 updated.
3535 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3536 (thread_db_load_search): Use a vector to iterate over path elements.
3537 Handle text appearing after "$pdir".
3538
3539 * gdb_string.h: Moved to ...
3540 * common/gdb_string.h: ... here.
3541 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3542 gdb_string.h and gdb_assert.h.
3543
3544 2012-08-08 Yao Qi <yao@codesourcery.com>
3545
3546 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3547 (tic6x_value_to_register): Likewise.
3548 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3549 and set_gdbarch_value_to_register.
3550
3551 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3552 Jean-Marc Saffroy <saffroy@gmail.com>
3553
3554 PR 11804
3555 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3556 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3557 * gcore.c (gcore_create_callback): New function comment. Add modified
3558 parameter. Only write modified regions. Set SEC_READONLY exactly
3559 according to MODIFIED.
3560 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3561 the passed modified value to FUNC.
3562 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3563 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3564 first. New variables modified and has_anonymous. Parse the lines of
3565 smaps file. Add the passed MODIFIED value to FUNC.
3566 * procfs.c (find_memory_regions_callback): Add the passed modified
3567 value.
3568
3569 2012-08-06 Tom Tromey <tromey@redhat.com>
3570
3571 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3572 (dwarf2_frame_cache): Use it.
3573 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3574 cache initialization constraint.
3575
3576 2012-08-06 Tom Tromey <tromey@redhat.com>
3577
3578 PR python/14386:
3579 * varobj.c (update_dynamic_varobj_children): Don't call
3580 PyIter_Check.
3581
3582 2012-08-06 Tom Tromey <tromey@redhat.com>
3583
3584 PR cli/14392:
3585 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3586
3587 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3588
3589 * NEWS: New entry for 'cd' default parameters.
3590 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3591
3592 2012-08-03 Tom Tromey <tromey@redhat.com>
3593
3594 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3595 return.
3596
3597 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3598
3599 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3600 to attempting lseek/write.
3601 (inf_child_fileio_pread): Likewise for pread.
3602
3603 2012-08-02 Yao Qi <yao@codesourcery.com>
3604
3605 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3606 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3607 add_setshow_zinteger_cmd.
3608 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3609 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3610 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3611 instead of add_setshow_zinteger_cmd.
3612 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3613 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3614 instead of add_setshow_zinteger_cmd.
3615 * frame.c (frame_debug): Add 'unsigned'.
3616 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3617 add_setshow_zinteger_cmd.
3618 * frame.h: Update the declaration of 'frame_debug'.
3619 * gdbtypes.c (overload_debug): Add 'unsigned'.
3620 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3621 add_setshow_zinteger_cmd.
3622 * inferior.h: Update declaration of 'debug_infrun'.
3623 * infrun.c (debug_infrun): Add 'unsigned'.
3624 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3625 add_setshow_zinteger_cmd.
3626 * jit.c (jit_debug): Add 'unsigned'.
3627 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3628 add_setshow_zinteger_cmd.
3629 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3630 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3631 instead of add_setshow_zinteger_cmd.
3632 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3633 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3634 add_setshow_zinteger_cmd.
3635 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3636 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3637 instead of add_setshow_zinteger_cmd.
3638 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3639 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3640 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3641 intead of add_setshow_zinteger_cmd.
3642 * mips-tdep.c (mips_debug): Add 'unsigned'.
3643 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3644 instead of add_setshow_zinteger_cmd.
3645 * monitor.c (monitor_debug): Add 'unsigned'.
3646 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3647 add_setshow_zinteger_cmd.
3648 * observer.c (observer_debug): Add 'unsigned'.
3649 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3650 add_setshow_zinteger_cmd.
3651 * parse.c (expressiondebug): Add 'unsigned'.
3652 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3653 add_setshow_zinteger_cmd.
3654 * record.c (record_debug): Add 'unsigned'.
3655 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3656 add_setshow_zinteger_cmd.
3657 * record.h: Update the declaration of 'record_debug'.
3658 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3659 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3660 add_setshow_zinteger_cmd.
3661 * serial.c (global_serial_debug_p): Add 'unsigned'.
3662 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3663 add_setshow_zinteger_cmd.
3664 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3665 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3666 add_setshow_zinteger_cmd.
3667 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3668 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3669 add_setshow_zinteger_cmd.
3670 * target.c (targetdebug): Add 'unsigned'.
3671 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3672 add_setshow_zinteger_cmd.
3673 * valops.c (overload_debug): Add 'unsigned'.
3674 * varobj.c (varobjdebug): Add 'unsigned'.
3675 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3676 add_setshow_zinteger_cmd.
3677 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3678 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3679 instead of add_setshow_zinteger_cmd.
3680
3681 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3682 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3683 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3684 instead of add_setshow_zinteger_cmd.
3685 * gdbarch.c, gdbarch.h: Re-generated.
3686
3687 2012-08-02 Yao Qi <yao@codesourcery.com>
3688
3689 * nto-tdep.c: Don't include cli/cli-decode.h and
3690 cli/cli-cmds.h.
3691 (_initialize_nto_tdep): Remove.
3692 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3693 Remove field.
3694 Remove macro nto_internal_debugging.
3695
3696 2012-08-01 Richard Henderson <rth@redhat.com>
3697
3698 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3699 (mep-*-*) [gdb_target_obs]: Likewise.
3700
3701 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3702
3703 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3704 linux_get_siginfo_type.
3705
3706 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3707
3708 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3709 AT_ENTRY_POINT.
3710 (call_function_by_hand) <ON_STACK>: Call write_memory with
3711 gdbarch_breakpoint_from_pc, if possible.
3712 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3713 here.
3714
3715 2012-07-31 Yao Qi <yao@codesourcery.com>
3716
3717 * tracepoint.c: Add 'static' for some variables.
3718
3719 2012-07-31 Yao Qi <yao@codesourcery.com>
3720
3721 * go32-nat.c: Declare _initialize_go32_nat.
3722 * ser-go32.c: Declare _initialize_ser_dos.
3723 * top.c (do_chdir_cleanup): Add 'static'.
3724
3725 2012-07-30 Keith Seitz <keiths@redhat.com>
3726
3727 * linespec.c (linespec_lex_number): A number followed
3728 by quotes is a valid number, too.
3729
3730 2012-07-30 Tom Tromey <tromey@redhat.com>
3731
3732 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3733
3734 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3735
3736 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3737 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3738
3739 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3740
3741 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3742 invalid or reevaluated to prevent prevent references to possibly
3743 delete'd type objects being left in the varobj.
3744
3745 2012-07-27 Tom Tromey <tromey@redhat.com>
3746 Jan Kratochvil <jan.kratochvil@redhat.com>
3747
3748 * copying.awk: Print buffer-read-only and vi ro markers.
3749 * copying.c: Rebuild.
3750 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3751 * gdbarch.c, gdbarch.h: Rebuild.
3752 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3753 buffer-read-only and vi ro markers.
3754 * features/arm-with-iwmmxt.c: Rebuild.
3755 * features/arm-with-m-fpa-layout.c: Rebuild.
3756 * features/arm-with-m-vfp-d16.c: Rebuild.
3757 * features/arm-with-m.c: Rebuild.
3758 * features/arm-with-neon.c: Rebuild.
3759 * features/arm-with-vfpv2.c: Rebuild.
3760 * features/arm-with-vfpv3.c: Rebuild.
3761 * features/i386/amd64-avx-linux.c: Rebuild.
3762 * features/i386/amd64-avx.c: Rebuild.
3763 * features/i386/amd64-linux.c: Rebuild.
3764 * features/i386/amd64.c: Rebuild.
3765 * features/i386/i386-avx-linux.c: Rebuild.
3766 * features/i386/i386-avx.c: Rebuild.
3767 * features/i386/i386-linux.c: Rebuild.
3768 * features/i386/i386-mmx-linux.c: Rebuild.
3769 * features/i386/i386-mmx.c: Rebuild.
3770 * features/i386/i386.c: Rebuild.
3771 * features/i386/x32-avx-linux.c: Rebuild.
3772 * features/i386/x32-avx.c: Rebuild.
3773 * features/i386/x32-linux.c: Rebuild.
3774 * features/i386/x32.c: Rebuild.
3775 * features/mips-dsp-linux.c: Rebuild.
3776 * features/mips-linux.c: Rebuild.
3777 * features/mips64-dsp-linux.c: Rebuild.
3778 * features/mips64-linux.c: Rebuild.
3779 * features/rs6000/powerpc-32.c: Rebuild.
3780 * features/rs6000/powerpc-32l.c: Rebuild.
3781 * features/rs6000/powerpc-403.c: Rebuild.
3782 * features/rs6000/powerpc-403gc.c: Rebuild.
3783 * features/rs6000/powerpc-405.c: Rebuild.
3784 * features/rs6000/powerpc-505.c: Rebuild.
3785 * features/rs6000/powerpc-601.c: Rebuild.
3786 * features/rs6000/powerpc-602.c: Rebuild.
3787 * features/rs6000/powerpc-603.c: Rebuild.
3788 * features/rs6000/powerpc-604.c: Rebuild.
3789 * features/rs6000/powerpc-64.c: Rebuild.
3790 * features/rs6000/powerpc-64l.c: Rebuild.
3791 * features/rs6000/powerpc-7400.c: Rebuild.
3792 * features/rs6000/powerpc-750.c: Rebuild.
3793 * features/rs6000/powerpc-860.c: Rebuild.
3794 * features/rs6000/powerpc-altivec32.c: Rebuild.
3795 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3796 * features/rs6000/powerpc-altivec64.c: Rebuild.
3797 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3798 * features/rs6000/powerpc-cell32l.c: Rebuild.
3799 * features/rs6000/powerpc-cell64l.c: Rebuild.
3800 * features/rs6000/powerpc-e500.c: Rebuild.
3801 * features/rs6000/powerpc-e500l.c: Rebuild.
3802 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3803 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3804 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3805 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3806 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3807 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3808 * features/rs6000/powerpc-vsx32.c: Rebuild.
3809 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3810 * features/rs6000/powerpc-vsx64.c: Rebuild.
3811 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3812 * features/rs6000/rs6000.c: Rebuild.
3813 * features/s390-linux32.c: Rebuild.
3814 * features/s390-linux32v1.c: Rebuild.
3815 * features/s390-linux32v2.c: Rebuild.
3816 * features/s390-linux64.c: Rebuild.
3817 * features/s390-linux64v1.c: Rebuild.
3818 * features/s390-linux64v2.c: Rebuild.
3819 * features/s390x-linux64.c: Rebuild.
3820 * features/s390x-linux64v1.c: Rebuild.
3821 * features/s390x-linux64v2.c: Rebuild.
3822 * features/tic6x-c62x-linux.c: Rebuild.
3823 * features/tic6x-c62x.c: Rebuild.
3824 * features/tic6x-c64x-linux.c: Rebuild.
3825 * features/tic6x-c64x.c: Rebuild.
3826 * features/tic6x-c64xp-linux.c: Rebuild.
3827 * features/tic6x-c64xp.c: Rebuild.
3828
3829 2012-07-27 Tom Tromey <tromey@redhat.com>
3830
3831 * c-exp.y (classify_name): Avoid assignment in condition.
3832
3833 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3834
3835 * amd64-windows-tdep.c: Include "frame.h".
3836 (amd64_windows_skip_trampoline_code): New function.
3837 (amd64_windows_init_abi): Add trampoline registration.
3838
3839 2012-07-27 Yao Qi <yao@codesourcery.com>
3840
3841 * tracepoint.c (cur_traceframe_number): Remove.
3842 (set_tfile_traceframe): Remove.
3843 (tfile_trace_find, tfile_fetch_registers): Update callers.
3844 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3845 (tfile_open, tfile_trace_find): Likewise.
3846
3847 2012-07-27 Yao Qi <yao@codesourcery.com>
3848
3849 * thread.c (switch_to_thread): Don't call registers_changed.
3850
3851 2012-07-26 Tom Tromey <tromey@redhat.com>
3852
3853 * Makefile.in (SFILES): Remove objc-exp.y.
3854 (YYFILES): Remove objc-exp.c.
3855 (YYOBJ): Remove objc-exp.o.
3856 (local-maintainer-clean): Don't mention objc-exp.c.
3857 * c-exp.y: Include objc-lang.h.
3858 (%union) <class>: New field.
3859 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3860 (exp): Clone subscript production for OBJC_LBRAC. Add various
3861 Objective C productions.
3862 (msglist, msgarglist, msgarg): New productions.
3863 (array_mod, func_mod, operator): Clone productions for
3864 OBJC_LBRAC.
3865 (parse_string_or_char): Handle '@' strings.
3866 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3867 (classify_name): Check la_name_of_this. Recognize ObjC class
3868 names.
3869 * objc-exp.y: Remove.
3870 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3871 * objc-lang.h (objc_parse, objc_error): Don't declare.
3872
3873 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3874
3875 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3876
3877 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3878
3879 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3880 and decrement.
3881
3882 2012-07-26 Tom Tromey <tromey@redhat.com>
3883
3884 * copying.c: Rebuild.
3885 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3886 'no_class'.
3887
3888 2012-07-26 Tom Tromey <tromey@redhat.com>
3889
3890 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3891 immediate_quit.
3892 (print_objfile_statistics): Likewise.
3893 (maintenance_print_symbols): Likewise.
3894 (maintenance_print_msymbols): Likewise.
3895 (maintenance_print_objfiles): Likewise.
3896 * psymtab.c (print_partial_symbols): Call QUIT.
3897 (maintenance_print_psymbols): Likewise. Don't modify
3898 immediate_quit.
3899 * copying.c (show_copying_command): Don't modify immediate_quit.
3900 (show_warranty_command): Likewise.
3901 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3902
3903 2012-07-26 Keith Seitz <keiths@redhat.com>
3904
3905 * linespec.c (linespec_lexer_lex_number): The input
3906 is also a valid number if the next character is a comma
3907 or colon.
3908
3909 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3910
3911 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3912 configure options.
3913
3914 2012-07-26 Tristan Gingold <gingold@adacore.com>
3915
3916 * machoread.c: Include gdb_bfd.h.
3917
3918 2012-07-26 Tristan Gingold <gingold@adacore.com>
3919
3920 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3921 offset.
3922
3923 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3924
3925 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3926 SIZE to size_t.
3927 (dwarf2_evaluate_loc_desc): Likewise.
3928 (dwarf2_loc_desc_needs_frame): Likewise.
3929 (locexpr_describe_location_1): Likewise.
3930 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3931 size_t.
3932 (struct dwarf2_loclist_baton): Likewise.
3933 * dwarf2read.c (struct dwarf_block): Likewise.
3934 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3935 (decode_locdesc): Expand SIZE and I to size_t.
3936
3937 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3938
3939 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3940
3941 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3942
3943 * doublest.c (convert_doublest_to_floatformat): If the exponent
3944 is too small, treat the value as zero. If the exponent is too
3945 large, treat the value as infinity.
3946
3947 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3948
3949 * configure.ac: Add --enable-lmcheck configure option.
3950 * configure: Regenerate.
3951
3952 2012-07-25 Tom Tromey <tromey@redhat.com>
3953
3954 * NEWS: Mention maint info bfds.
3955 * gdb_bfd.c (all_bfds): New global.
3956 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3957 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3958 New functions.
3959
3960 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3961
3962 * configure.tgt: Add v850*-*-rtems*.
3963
3964 2012-07-25 Tom Tromey <tromey@redhat.com>
3965
3966 * macrotab.c (macro_bcache_str): Remove cast.
3967
3968 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3969
3970 * linespec.c (linespec_lexer_lex_number): Update comments,
3971 change the return and add check to make sure the input is
3972 the decimal numbers.
3973 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3974 false, call linespec_lexer_lex_string.
3975
3976 2012-07-24 Tom Tromey <tromey@redhat.com>
3977
3978 * symfile.c (symbol_file_add): Don't open BFD twice.
3979
3980 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3981
3982 * breakpoint.c (create_breakpoint): Store condition for pending
3983 breakpoints.
3984
3985 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3986
3987 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3988 (m68k_return_value): Handle complex types like structures.
3989 (m68k_svr4_return_value): Likewise.
3990
3991 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3992
3993 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3994 parameters to bfd_get_section_name.
3995
3996 2012-07-24 Yao Qi <yao@codesourcery.com>
3997
3998 * cli/cli-setshow.c: Handle case 'var_uinteger'
3999 and 'var_zuninteger' together. Handle case 'var_integer' and
4000 'var_zinteger' together.
4001
4002 2012-07-23 Keith Seitz <keiths@redhat.com>
4003
4004 * linespec.c (convert_linespec_to_sal): Don't add
4005 any symbols to the result vector if symbol_to_sal
4006 returns zero.
4007
4008 2012-07-23 Keith Seitz <keiths@redhat.com>
4009
4010 * linespec.c (decode_objc): Record the function name
4011 in the linespec.
4012
4013 2012-07-23 Tom Tromey <tromey@redhat.com>
4014
4015 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4016 counting.
4017 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4018 (map_vmap): Acquire a reference to the BFD.
4019
4020 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4021
4022 * p-valprint.c (pascal_object_print_value): Replace potentially
4023 unsafe alloca with xmalloc/xfree.
4024 * valops.c (search_struct_method): Likewise.
4025
4026 2012-07-23 Tom Tromey <tromey@redhat.com>
4027
4028 * solib-svr4.c (enable_break): Update.
4029 * bfd-target.h (target_bfd_reopen): Update documentation.
4030
4031 2012-07-23 Tom Tromey <tromey@redhat.com>
4032
4033 * symfile.c (separate_debug_file_exists): Update.
4034 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4035 (reread_symbols): Update.
4036 * elfread.c (build_id_verify): Update.
4037 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4038 bfd_open_maybe_remote.
4039
4040 2012-07-23 Tom Tromey <tromey@redhat.com>
4041
4042 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4043
4044 2012-07-23 Tom Tromey <tromey@redhat.com>
4045
4046 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4047 and 'abfd'.
4048 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4049 and 'abfd'.
4050 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4051 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4052 'abfd'.
4053 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4054 * objfiles.c (allocate_objfile): Acquire a new reference.
4055 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4056 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4057 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4058 a cleanup for 'nbfd'.
4059 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4060 for 'nbfd'.
4061 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4062 make a cleanup for 'abfd'.
4063 (symbol_file_add): Make a BFD cleanup.
4064
4065 2012-07-23 Tom Tromey <tromey@redhat.com>
4066
4067 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4068 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4069 * corelow.c (core_open): Use gdb_bfd_fopen.
4070 * dsrec.c (load_srec): Use gdb_bfd_openr.
4071 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4072 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4073 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4074 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4075 (gdb_bfd_fdopenr): New functions.
4076 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4077 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4078 (gdb_bfd_fdopenr): Declare.
4079 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4080 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4081 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4082 gdb_bfd_openr_next_archived_file.
4083 (macho_check_dsym): Use gdb_bfd_openr.
4084 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4085 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4086 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4087 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4088 gdb_bfd_openr.
4089 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4090 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4091 gdb_bfd_openr_next_archived_file.
4092 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4093 Use gdb_bfd_openr.
4094 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4095 gdb_bfd_openr.
4096 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4097 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4098 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4099 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4100 (symfile_bfd_open): Use gdb_bfd_fopen.
4101 (generic_load): Use gdb_bfd_openr.
4102 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4103
4104 2012-07-23 Tom Tromey <tromey@redhat.com>
4105
4106 * bfd-target.c (target_bfd_reopen): Update.
4107 * cli/cli-dump.c (bfd_openr_with_cleanup)
4108 (bfd_openw_with_cleanup): Update.
4109 * corelow.c (core_open): Update.
4110 * dsrec.c (load_srec): Update.
4111 * exec.c (exec_file_attach): Update.
4112 * gcore.c (create_gcore_bfd): Update.
4113 * gdb_bfd.c (gdb_bfd_ref): Return void.
4114 (gdb_bfd_open): Update.
4115 * gdb_bfd.h (gdb_bfd_ref): Return void.
4116 Update comments.
4117 * jit.c (jit_bfd_try_read_symtab): Update.
4118 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4119 * machoread.c (macho_symfile_read_all_oso): Update.
4120 (macho_check_dsym): Update.
4121 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4122 * remote-m32r-sdi.c (m32r_load): Update.
4123 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4124 * rs6000-nat.c (add_vmap): Update.
4125 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4126 Update.
4127 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4128 * solib-spu.c (spu_bfd_open): Update.
4129 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4130 * spu-linux-nat.c (spu_bfd_open): Update.
4131 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4132 (generic_load): Update.
4133 * windows-nat.c (windows_make_so): Update.
4134
4135 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4136
4137 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4138
4139 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4140
4141 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4142 SIGTRAMP_FRAME unwinding.
4143
4144 2012-07-20 Doug Evans <dje@google.com>
4145
4146 * NEWS: Document new options "set/show use-deprecated-index-sections",
4147 and delete reference to --use-deprecated-index-sections.
4148 * symfile.h (use_deprecated_index_sections): Delete.
4149 * dwarf2read.c (use_deprecated_index_sections): Make static.
4150 (read_index_from_section): Update wording of how to load
4151 deprecated index sections.
4152 (_initialize_dwarf2_read): New options
4153 "set/show use-deprecated-index-sections".
4154 * main.c (captured_main): Delete --use-deprecated-index-sections.
4155
4156 2012-07-20 Pedro Alves <palves@redhat.com>
4157
4158 PR threads/11692
4159 PR gdb/12203
4160
4161 * infrun.c (handle_inferior_event) <new thread>: Don't special
4162 case minus_one_ptid.
4163 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4164 * linux-thread-db.c (thread_get_info_callback): Don't return early
4165 if the thread is zombie.
4166 (thread_from_lwp): Change return type to void. Rewrite stale
4167 comment.
4168 (attach_thread): Don't return early if the thread is zombie,
4169 instead set its "dying" flag.
4170 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4171 (find_new_threads_callback): Don't return early if the thread is
4172 zombie.
4173
4174 2012-07-20 Pedro Alves <palves@redhat.com>
4175
4176 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4177 * target.c (target_wait): Likewise.
4178 (str_comma_list_concat_elem, do_option, target_options_to_string):
4179 New functions.
4180 * target.h (target_options_to_string): Declare.
4181
4182 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4183 Tom Tromey <tromey@redhat.com>
4184
4185 * dwarf2read.c (dwarf_decode_macros)
4186 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4187 DW_MACRO_GNU_transparent_include_alt>: New cases.
4188 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4189 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4190
4191 2012-07-20 Tom Tromey <tromey@redhat.com>
4192
4193 * dwarf2read.c (try_open_dwo_file): Don't call
4194 gdb_bfd_stash_filename.
4195
4196 2012-07-20 Pedro Alves <palves@redhat.com>
4197
4198 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4199 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4200 (i386_process_record): Tweak description comments.
4201
4202 2012-07-20 Pedro Alves <palves@redhat.com>
4203
4204 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4205 (i386_process_record): Use record_read_memory.
4206 * record.c (record_read_memory): New function.
4207 (record_arch_list_add_mem, record_exec_insn): Use
4208 record_read_memory.
4209 * record.h (record_read_memory): Declare.
4210
4211 2012-07-20 Yao Qi <yao@codesourcery.com>
4212
4213 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4214 NULL for xfree.
4215
4216 2012-07-19 Pedro Alves <palves@redhat.com>
4217
4218 * record.c (record_resume): Ask the target beneath to report all
4219 signals.
4220
4221 2012-07-19 Doug Evans <dje@google.com>
4222
4223 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4224 there's no section at address zero.
4225 (dwarf2_record_block_ranges): Ditto.
4226
4227 2012-07-19 Yao Qi <yao@codesourcery.com>
4228
4229 * command.h, remote.c: Fix a typo in comment.
4230
4231 2012-07-19 Tom Tromey <tromey@redhat.com>
4232
4233 PR exp/13206:
4234 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4235 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4236 OP_DECLTYPE>: New cases.
4237 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4238 (type_exp): Add new productions.
4239 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4240 and decltype.
4241 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4242 New case.
4243 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4244 OP_DECLTYPE>: New case.
4245 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4246 New case.
4247 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4248 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4249
4250 2012-07-19 Tom Tromey <tromey@redhat.com>
4251
4252 * c-exp.y (enum token_flags): New.
4253 (struct token) <cxx_only>: Remove.
4254 <flags>: New field.
4255 (tokentab3, tokentab2, ident_tokens): Update.
4256 (lex_one_token): Update. Handle FLAG_SHADOW.
4257
4258 2012-07-19 Tom Tromey <tromey@redhat.com>
4259
4260 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4261 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4262 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4263 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4264 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4265 type_exp production where appropriate.
4266 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4267 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4268 <UNOP_MEMVAL_TYPE>: New case.
4269 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4270 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4271 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4272 <UNOP_MEMVAL_TYPE>: New case.
4273 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4274 UNOP_REINTERPRET_CAST>: Update.
4275 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4276 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4277 UNOP_REINTERPRET_CAST>: Update.
4278 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4279 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4280 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4281 constants.
4282
4283 2012-07-19 Yao Qi <yao@codesourcery.com>
4284 Jan Kratochvil <jan.kratochvil@redhat.com>
4285
4286 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4287 and case 'var_optional_filename' together.
4288 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4289 instead of add_setshow_optional_filename_cmd for setshow command
4290 'args'. Set completer for 'set args'.
4291
4292 2012-07-18 Doug Evans <dje@google.com>
4293
4294 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4295 * common/gdb_vecs.c: New file, contents from utils.c.
4296 * common/host-defs.h: New file, contents from defs.h.
4297 * utils.h: New file, contents from defs.h.
4298 * defs.h: Move all declarations of objects defined in utils.c
4299 to utils.h (except QUIT() and related).
4300 #include "utils.h", "host-defs.h".
4301 * probe.h (probe_p): Move here from gdb_vecs.h.
4302 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4303 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4304 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4305 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4306 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4307 (COMMON_OBS): Add gdb_vecs.o.
4308 (gdb_vecs.o): New rule.
4309
4310 2012-07-18 Keith Seitz <keiths@redhat.com>
4311
4312 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4313 parameter. If non-zero, use SYMNAME as the canonical name
4314 for the SaL.
4315 Update all callers.
4316 (convert_linespec_to_sals): Use add_sal_to_sals for
4317 expressions, too.
4318 (decode_line_full): No need to "fill in missing canonical names"
4319 anymore. Simply make cleanups for the allocated names.
4320
4321 2012-07-18 Keith Seitz <keiths@redhat.com>
4322
4323 * linespec.c (struct linespec): Constify expression,
4324 source_filename, function_name, and label_name.
4325 (symbol_not_found_error): Make all parameters const.
4326 (linespec_parser_delete): No need to check for NULL
4327 when using xfree. Cast const char * to char * for xfree.
4328
4329 2012-07-18 Keith Seitz <keiths@redhat.com>
4330
4331 * breakpoint.c (invalid_thread_id_error): New function.
4332 (find_condition_and_thread): Use invalid_thread_id_error.
4333 (watch_command_1): Likewise.
4334
4335 2012-07-18 Tom Tromey <tromey@redhat.com>
4336
4337 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4338 * contrib/cc-with-tweaks.sh: New file.
4339
4340 2012-07-18 Tom Tromey <tromey@redhat.com>
4341
4342 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4343 (locate_dwz_sections): Recognize .gdb_index.
4344 (create_cus_from_index_list): New function.
4345 (create_cus_from_index): Use it. Handle .dwz data.
4346 (read_index_from_section): New function, extracted from
4347 dwarf2_read_index.
4348 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4349 if needed.
4350
4351 2012-07-18 Tom Tromey <tromey@redhat.com>
4352
4353 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4354 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4355 <is_dwz>: New field.
4356 (struct dwz_file): New.
4357 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4358 (locate_dwz_sections, dwarf2_get_dwz_file)
4359 (get_abbrev_section_for_cu): New functions.
4360 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4361 (read_and_check_type_unit_head): Add abbrev_section argument.
4362 (create_debug_types_hash_table): Update.
4363 (init_cutu_and_read_dies): Use proper abbrev section.
4364 (init_cutu_and_read_dies_no_follow): Likewise.
4365 (set_partial_user): Do nothing if PST==NULL.
4366 (read_comp_units_from_section): New function.
4367 (create_all_comp_units): Use it.
4368 (scan_partial_symbols, partial_die_parent_scope): Update.
4369 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4370 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4371 (find_partial_die): Add offset_in_dwz argument. Update.
4372 (guess_partial_die_structure_name, fixup_partial_die): Update.
4373 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4374 DW_FORM_GNU_strp_alt.
4375 (read_indirect_string_from_dwz): New function.
4376 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4377 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4378 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4379 (follow_die_offset): Add offset_in_dwz argument.
4380 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4381 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4382 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4383 Handle new macro forms.
4384 (dwarf_decode_macros): Update.
4385 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4386 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4387 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4388 (create_debug_types_hash_table): Use correct abbrev section.
4389 (get_debug_line_section): New function.
4390 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4391 (process_full_comp_unit): Pass 'required' argument to
4392 end_symtab_get_static_block.
4393 * buildsym.h (end_symtab_get_static_block): Update.
4394 * buildsym.c (end_symtab_get_static_block): Add 'required'
4395 argument.
4396 (end_symtab, end_expandable_symtab): Update.
4397
4398 2012-07-18 Tom Tromey <tromey@redhat.com>
4399
4400 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4401 (pagesize): Remove.
4402 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4403 (zlib_decompress_section): Remove.
4404 (dwarf2_read_section): Use gdb_bfd_map_section.
4405 (munmap_section_buffer): Remove.
4406 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4407 munmap_section_buffer.
4408 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4409 (struct gdb_bfd_section_data): New.
4410 (free_one_bfd_section): New function.
4411 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4412 (get_section_descriptor, zlib_decompress_section)
4413 (gdb_bfd_map_section): New functions.
4414 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4415
4416 2012-07-18 Tom Tromey <tromey@redhat.com>
4417
4418 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4419
4420 2012-07-18 Tom Tromey <tromey@redhat.com>
4421
4422 * gdb_bfd.c (struct gdb_bfd_data): New.
4423 (gdb_bfd_cache): New global.
4424 (struct gdb_bfd_cache_search): New.
4425 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4426 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4427 * gdb_bfd.h (gdb_bfd_open): Declare.
4428
4429 2012-07-18 Tom Tromey <tromey@redhat.com>
4430
4431 * utils.c (make_cleanup_bfd_unref): Rename from
4432 make_cleanup_bfd_close.
4433 * defs.h (make_cleanup_bfd_unref): Rename from
4434 make_cleanup_bfd_close.
4435 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4436 (bfd_openw_with_cleanup): Update.
4437 * corelow.c (core_open): Update.
4438 * dsrec.c (load_srec): Update.
4439 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4440 * remote-m32r-sdi.c (m32r_load): Update.
4441 * remote-mips.c (mips_load_srec): Update.
4442 (pmon_load_fast): Update.
4443 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4444 Update.
4445 (darwin_bfd_open): Update.
4446 * solib.c (solib_bfd_fopen): Update.
4447 * symfile-mem.c (symbol_file_add_from_memory): Update.
4448 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4449 (symfile_bfd_open): Update.
4450 (generic_load): Update.
4451
4452 2012-07-18 Tom Tromey <tromey@redhat.com>
4453
4454 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4455 (pmon_load_fast): Likewise.
4456 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4457 (m32r_upload_command): Likewise.
4458 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4459 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4460 Use make_cleanup_bfd_close.
4461
4462 2012-07-18 Tom Tromey <tromey@redhat.com>
4463
4464 * symfile.c (symfile_bfd_open): Don't copy name. Call
4465 gdb_bfd_stash_filename.
4466 (load_command): Open the new BFD before freeing the old.
4467 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4468 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4469 Call gdb_bfd_stash_filename.
4470 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4471 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4472 gdb_bfd_stash_filename.
4473 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4474 Free found_pathname.
4475 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4476 gdb_bfd_stash_filename.
4477 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4478 * machoread.c (macho_add_oso_symfile): Call
4479 gdb_bfd_stash_filename.
4480 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4481 gdb_bfd_stash_filename.
4482 (macho_check_dsym): Don't copy filename. Call
4483 gdb_bfd_stash_filename.
4484 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4485 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4486 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4487 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4488 * exec.c (exec_close): Don't free the BFD's filename.
4489 (exec_file_attach): Don't copy the filename. Call
4490 gdb_bfd_stash_filename.
4491 * corelow.c (core_close): Don't free the BFD's filename.
4492 (core_open): Call gdb_bfd_stash_filename.
4493 * corefile.c (reopen_exec_file): Remove #if 0 code.
4494 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4495 pathname.
4496 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4497
4498 2012-07-18 Tom Tromey <tromey@redhat.com>
4499
4500 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4501 gdb_bfd_unref.
4502 (free_dwo_file): Use gdb_bfd_unref.
4503 * cli/cli-dump.c: Include gdb_bfd.h.
4504 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4505 (bfd_openr_with_cleanup): Likewise.
4506 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4507 gdb_bfd_unref.
4508 * utils.c: Include gdb_bfd.h.
4509 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4510 * symfile.c: Include gdb_bfd.h.
4511 (separate_debug_file_exists): Use gdb_bfd_unref.
4512 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4513 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4514 (generic_load): Use gdb_bfd_ref.
4515 (reread_symbols): Use gdb_bfd_unref.
4516 * symfile-mem.c: Include gdb_bfd.h.
4517 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4518 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4519 * solib.c: Include gdb_bfd.h.
4520 (solib_bfd_fopen): Use gdb_bfd_ref.
4521 (solib_bfd_open): Use gdb_bfd_unref.
4522 (free_so_symbols): Use gdb_bfd_unref.
4523 (reload_shared_libraries_1): Use gdb_bfd_unref.
4524 * solib-spu.c: Include gdb_bfd.h.
4525 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4526 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4527 gdb_bfd_unref.
4528 * solib-frv.c: Include gdb_bfd.h.
4529 (enable_break2): Use gdb_bfd_unref.
4530 * solib-dsbt.c: Include gdb_bfd.h.
4531 (enable_break2): Use gdb_bfd_unref.
4532 * solib-darwin.c: Include gdb_bfd.h.
4533 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4534 gdb_bfd_unref.
4535 (darwin_bfd_open): Use gdb_bfd_unref.
4536 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4537 * remote-mips.c: Include gdb_bfd.h.
4538 (mips_load_srec): Use gdb_bfd_ref.
4539 (pmon_load_fast): Use gdb_bfd_ref.
4540 * remote-m32r-sdi.c: Include gdb_bfd.h.
4541 (m32r_load): Use gdb_bfd_ref.
4542 * record.c: Include gdb_bfd.h.
4543 (record_save_cleanups): Use gdb_bfd_unref.
4544 (cmd_record_save): Use gdb_bfd_unref.
4545 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4546 gdb_bfd_unref.
4547 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4548 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4549 * objfiles.c: Include gdb_bfd.h.
4550 (free_objfile): Use gdb_bfd_unref.
4551 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4552 gdb_bfd.c.
4553 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4554 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4555 (macho_check_dsym): Likewise.
4556 * m32r-rom.c: Include gdb_bfd.h.
4557 (m32r_load): Use gdb_bfd_ref.
4558 (m32r_upload_command): Use gdb_bfd_ref.
4559 * jit.c: Include gdb_bfd.h.
4560 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4561 * gdb_bfd.h: New file.
4562 * gdb_bfd.c: New file.
4563 * gcore.c: Include gdb_bfd.h.
4564 (create_gcore_bfd): Use gdb_bfd_ref.
4565 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4566 (gcore_command): Use gdb_bfd_unref.
4567 * exec.c: Include gdb_bfd.h.
4568 (exec_close): Use gdb_bfd_unref.
4569 (exec_close_1): Use gdb_bfd_unref.
4570 (exec_file_attach): Use gdb_bfd_ref.
4571 * elfread.c: Include gdb_bfd.h.
4572 (build_id_verify): Use gdb_bfd_unref.
4573 * dsrec.c: Include gdb_bfd.h.
4574 (load_srec): Use gdb_bfd_ref.
4575 * corelow.c: Include gdb_bfd.h.
4576 (core_close): Use gdb_bfd_unref.
4577 (core_open): Use gdb_bfd_ref.
4578 * bfd-target.c: Include gdb_bfd.h.
4579 (target_bfd_xclose): Use gdb_bfd_unref.
4580 (target_bfd_reopen): Use gdb_bfd_ref.
4581 * Makefile.in (SFILES): Add gdb_bfd.c.
4582 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4583 (COMMON_OBS): Add gdb_bfd.o.
4584
4585 2012-07-18 Keith Seitz <keiths@redhat.com>
4586
4587 * breakpoint.c (find_condition_and_thread): Initialize
4588 TASK and REST.
4589 (create_breakpiont): find_condition_and_thread will now
4590 initialize COND_STRING, THREAD, and REST (and TASK).
4591 (addr_string_to_sals): Likewise.
4592
4593 2012-07-18 Pedro Alves <palves@redhat.com>
4594
4595 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4596 Pull the single step breakpoints out of the target.
4597
4598 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4599
4600 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4601 * stap-probe.c (compile_probe_arg): Likewise.
4602
4603 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4604
4605 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4606 (elf_compile_to_ax): Likewise.
4607 * infrun.c (insert_exception_resume_from_probe): Likewise.
4608 (check_exception_resume): Remove `objfile' variable.
4609 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4610 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4611 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4612 (compare_entries): Rename to...
4613 (compare_probes): ...this. Adjust function to work with
4614 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4615 respectively.
4616 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4617 `VEC (probe_p) *'.
4618 (print_ui_out_info): Adjust argument to be `struct probe *'.
4619 (info_probes_for_ops): Adjust internal computations to use
4620 `VEC (probe_p) *'.
4621 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4622 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4623 gen_info_probes_table_values>: Remove `objfile' argument.
4624 (struct probe) <objfile>: New field.
4625 (find_probe_by_pc): Remove `objfile' argument.
4626 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4627 (stap_get_probe_argument_count): Likewise.
4628 (stap_get_arg): Likewise.
4629 (stap_evaluate_probe_argument): Likewise.
4630 (stap_compile_to_ax): Likewise.
4631 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4632 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4633 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4634 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4635 sym_compile_to_ax>: Likewise.
4636
4637 2012-07-18 Terry Guo <terry.guo@arm.com>
4638
4639 PR 14329
4640 * defs.h (GDB_MI_MSG_WIDTH): New.
4641 * ser_base (ser_base_read_error_fd): New function.
4642 (do_ser_base_readchar): Poll error file descriptor as well as
4643 standard output.
4644 (generic_readchar): Refactor error handling.
4645
4646 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4647
4648 * NEWS: Create a new section for the next release branch.
4649 Rename the section of the current branch, now that it has
4650 been cut.
4651
4652 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4653
4654 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4655 * version.in: Bump version to 7.5.50.20120718-cvs.
4656
4657 2012-07-17 Keith Seitz <keiths@redhat.com>
4658
4659 * linespec.c (linespec_parse_line_offset): Make parameter
4660 const.
4661
4662 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4663
4664 PR 11914
4665 * f-valprint.c (info_common_command): New variable frame_id.
4666 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4667 * printcmd.c (print_variable_and_value): Extend function comment.
4668 Add comment for invalidated FRAME.
4669 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4670 FI form FRAME_ID after each print_frame_local_vars.
4671 (struct print_variable_and_value_data): Change frame to frame_id.
4672 (do_print_variable_and_value): New variable frame, initialize it from
4673 p->frame_id. Add comment for invalidated FRAME.
4674 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4675 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4676 for invalidated FRAME.
4677
4678 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4679 Pedro Alves <palves@redhat.com>
4680
4681 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4682 loop.
4683
4684 2012-07-16 Tom Tromey <tromey@redhat.com>
4685
4686 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4687
4688 2012-07-15 Doug Evans <dje@google.com>
4689
4690 * dwarf2read.c (stmt_list_hash): New struct.
4691 (type_unit_group): Embed "per_cu" member, remove pointer.
4692 New union member "t", move member "tus" into it, all uses updated.
4693 New member "hash", replaces member "line_offset, all uses updated.
4694 (quick_file_names): Replace member "offset" with "hash", all uses
4695 updated.
4696 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4697 (hash_file_name_entry, eq_file_name_entry): Call them.
4698 (hash_type_unit_group, eq_type_unit_group): Ditto.
4699 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4700 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4701 (dw2_get_file_names): Update.
4702 (create_type_unit_group): Replace "per_cu" arg with "cu".
4703 All callers updated. Fix "quick" (.gdb_index) handling.
4704 (get_type_unit_group): Replace "per_cu" arg with "cu".
4705 All callers updated.
4706 (build_type_unit_groups): Don't reset tu_stats.
4707
4708 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4709 "tab_cur_size". Change member "tab" to be a htab_t.
4710 (create_filename_seen_cache): Update.
4711 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4712 (filename_seen): Update.
4713
4714 2012-07-13 Doug Evans <dje@google.com>
4715
4716 * symtab.c (filename_seen): Update comment.
4717
4718 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4719 Doug Evans <dje@google.com>
4720
4721 * buildsym.c (end_symtab_1): Split it to ...
4722 (end_symtab_get_static_block): ... this ...
4723 (end_symtab_from_static_block): ... and this function.
4724 (end_symtab, end_expandable_symtab): Call them.
4725 * buildsym.h (end_symtab_get_static_block)
4726 (end_symtab_from_static_block): New declarations.
4727 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4728 Set its valid CU ranges.
4729
4730 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4731
4732 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4733 DW_OP_GNU_parameter_ref.
4734
4735 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4736
4737 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4738 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4739
4740 2012-07-13 Doug Evans <dje@google.com>
4741
4742 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4743 (filename_seen_cache): New struct.
4744 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4745 (create_filename_seen_cache): New function.
4746 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4747 (filename_seen): Delete arg "first". New arg "cache". All callers
4748 updated.
4749 (output_source_filename_data): New struct.
4750 (output_source_filename): Delete arg "first". New arg "data".
4751 All callers updated.
4752 (sources_info): Delete local "first". New locals "data", "cleanups".
4753 Rewrite to use filename_seen_cache.
4754 (add_partial_filename_data): Delete member "first". New member
4755 "filename_seen_cache". All uses updated.
4756 (make_source_files_completion_list): Rewrite to use
4757 filename_seen_cache.
4758
4759 2012-07-12 Doug Evans <dje@google.com>
4760
4761 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4762
4763 2012-07-10 Doug Evans <dje@google.com>
4764
4765 PR gdb/13498
4766 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4767 all_type_unit_groups, type_unit_groups, tu_stats.
4768 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4769 All uses updated. Add type_unit_group to union "s".
4770 (type_unit_group): New struct.
4771 (IS_TYPE_UNIT_GROUP): New macro.
4772 (abbrev_table): Delete unused member "section".
4773 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4774 (dw2_get_cu): Assert not used with type_unit_group.
4775 (dw2_get_primary_cu): New function.
4776 (dw2_build_type_unit_groups_reader): New function.
4777 (dw2_build_type_unit_groups): New function.
4778 (dw2_get_file_names): Assert not called on type units.
4779 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4780 Redo loop to iterate over type unit groups instead of type units.
4781 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4782 (read_abbrev_offset): New function.
4783 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4784 updated.
4785 (create_partial_symtab): New function.
4786 (process_psymtab_comp_unit_reader): Assert not used with type units.
4787 Call create_partial_symtab.
4788 (process_psymtab_type_unit): Delete.
4789 (hash_type_unit_group, eq_type_unit_group): New functions.
4790 (allocate_type_unit_groups_table): New function.
4791 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4792 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4793 (create_type_unit_group, get_type_unit_group): New functions.
4794 (tu_abbrev_offset): New struct.
4795 (sort_tu_by_abbrev_offset): New function.
4796 (add_type_unit_group_to_table): New function.
4797 (build_type_unit_groups): New function.
4798 (build_type_psymtabs_reader): New function.
4799 (build_type_psymtab_dependencies): New function.
4800 (build_type_psymtabs): Rewrite.
4801 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4802 is seen in a type unit.
4803 (process_queue): Move symtab expansion debugging printfs here.
4804 Call process_full_type_unit for type units.
4805 (compute_symtab_includes): Assert not called for type units.
4806 (process_cu_includes): Don't call compute_symtab_includes for
4807 type units.
4808 (process_full_type_unit): New function.
4809 (process_imported_unit_die): Flag an error if called for type units.
4810 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4811 updated. Assert not called for type units.
4812 (read_file_scope): Call dwarf2_start_symtab.
4813 (setup_type_unit_groups): New function.
4814 (read_type_unit_scope): Rewrite.
4815 (abbrev_table_read_table): Initialize abbrev_table->offset.
4816 (abbrev_table_free_cleanup): New function.
4817 (dwarf2_start_symtab): New function.
4818 (load_full_type_unit): Assert not called for type unit groups.
4819 * buildsym.c (finish_block_internal): New arg "expandable".
4820 All callers updated.
4821 (start_symtab): Move most contents to ...
4822 (restart_symtab): ... here. New function.
4823 (reset_symtab_globals): New function.
4824 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4825 Call reset_symtab_globals.
4826 (end_symtab, end_expandable_symtab): New functions.
4827 (set_missing_symtab, augment_type_symtab): New functions.
4828 * buildsym.h (end_expandable_symtab): Declare.
4829 (augment_type_symtab, restart_symtab): Declare.
4830 * psympriv.h (struct partial_symtab): New member "anonymous".
4831 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4832 anonymous psymtabs.
4833 (read_psymtabs_with_filename): Ditto.
4834 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4835 (expand_symtabs_matching_via_partial): Ditto.
4836 (dump_psymtab): Update.
4837 * dictionary.c (dict_add_pending): New function.
4838 * dictionary.h (dict_add_pending): Declare.
4839
4840 2012-07-09 Doug Evans <dje@google.com>
4841
4842 * buildsym.c (start_subfile): Remove unnecessary check for
4843 name == NULL.
4844
4845 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4846
4847 * dwarf2read.c (load_full_type_unit): Simplify.
4848
4849 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4850 to struct signatured_type **. All uses updated.
4851
4852 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4853 All callers updated.
4854
4855 2012-07-09 Tom Tromey <tromey@redhat.com>
4856
4857 * c-exp.y (check_parameter_typelist): New function.
4858 (parameter_typelist): Call it.
4859 * eval.c (make_params): Handle '(void)' case.
4860 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4861 '(void)' case.
4862
4863 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4864
4865 * common/linux-ptrace.c: Include gdb_assert.h.
4866 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4867 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4868 stdint.h.
4869 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4870 functions.
4871 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4872 * linux-nat.c (linux_child_post_attach)
4873 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4874
4875 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4876
4877 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4878 nptl <2.7 bug workaround for core files.
4879
4880 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4881
4882 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4883 clearing.
4884 (save_siginfo): Remove.
4885 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4886 call.
4887 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4888 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4889 * linux-nat.h (struct lwp_info): Remove field siginfo.
4890
4891 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4892
4893 Code cleanup for the next patch.
4894 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4895 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4896 call for it.
4897 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4898 (ia64_linux_stopped_data_address):
4899 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4900 the return value.
4901 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4902 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4903 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4904 call for it.
4905
4906 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 PR 14321
4909 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4910 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4911
4912 2012-07-06 Tom Tromey <tromey@redhat.com>
4913
4914 * c-exp.y (DOTDOTDOT): New token.
4915 (func_mod, exp): Use parameter_typelist.
4916 (parameter_typelist): New production.
4917 (tokentab3): Add "..." token.
4918 * eval.c (make_params): Handle varargs.
4919 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4920 varargs.
4921
4922 2012-07-06 Tom Tromey <tromey@redhat.com>
4923
4924 PR exp/9608:
4925 * c-exp.y (%union) <tvec>: Change type.
4926 (func_mod): Now uses <tvec> type.
4927 (exp): Update for tvec change.
4928 (direct_abs_decl): Push the typelist.
4929 (func_mod): Return a typelist.
4930 (nonempty_typelist): Update for tvec change.
4931 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4932 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4933 * parse.c (pop_type_list): New function.
4934 (push_typelist): New function.
4935 (follow_types): Handle tp_function_with_arguments.
4936 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4937 (enum type_pieces) <tp_function_with_arguments>: New constant.
4938 (union type_stack_elt) <typelist_val>: New field.
4939 (push_typelist): Declare.
4940
4941 2012-07-06 Tom Tromey <tromey@redhat.com>
4942
4943 * c-exp.y (%union) <type_stack>: New field.
4944 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4945 (ptr_operator_ts): New production.
4946 (ptype): Update.
4947 * parse.c (type_stack_reserve): New function.
4948 (check_type_stack_depth): Use it.
4949 (pop_type_stack, append_type_stack, push_type_stack)
4950 (get_type_stack, type_stack_cleanup): New functions.
4951 (follow_types): Handle tp_type_stack.
4952 (_initialize_parse): Simplify initialization.
4953 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4954 constant.
4955 (union type_stack_elt) <stack_val>: New field.
4956 (get_type_stack, append_type_stack, push_type_stack)
4957 (type_stack_cleanup): Declare.
4958
4959 2012-07-06 Tom Tromey <tromey@redhat.com>
4960
4961 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4962 Remove.
4963 (struct type_stack): New.
4964 * parse.c (type_stack, type_stack_size, type_stack_depth):
4965 Remove.
4966 (type_stack): New global.
4967 (parse_exp_in_context, check_type_stack_depth)
4968 (insert_into_type_stack, insert_type, push_type, push_type_int)
4969 (insert_type_address_space, pop_type, pop_type_int)
4970 (_initialize_parse): Update.
4971
4972 2012-07-06 Tom Tromey <tromey@redhat.com>
4973
4974 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4975 Remove %type.
4976
4977 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4978
4979 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4980
4981 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4982 Jan Kratochvil <jan.kratochvil@redhat.com>
4983
4984 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4985 alloca with xmalloc/xfree.
4986
4987 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4988
4989 * MAINTAINERS (Write After Approval): Add myself to the list.
4990
4991 2012-07-05 Doug Evans <dje@google.com>
4992
4993 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4994
4995 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4996
4997 * ax-gdb.c (cli/cli-utils.h): New include.
4998 (linespec.h): Ditto.
4999 (agent_eval_command_one): New function.
5000 (agent_command_1): Ditto.
5001 (agent_command): Call function agent_command_1.
5002 (agent_eval_command): Ditto.
5003 (_initialize_ax_gdb): Change help for "maint agent"
5004 and "maint agent-eval".
5005
5006 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5007
5008 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5009 * cli/cli-utils.c (check_for_argument): New function.
5010 * cli/cli-utils.h (check_for_argument): Ditto.
5011
5012 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5013
5014 * NEWS: Mention x32 ABI support.
5015
5016 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5017
5018 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5019 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5020
5021 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5022 and pc_regnum_from_eax to -1. Update SP regnum from
5023 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5024 needed.
5025
5026 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5027 pc_regnum_from_eax.
5028
5029 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5030
5031 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5032 * dwarf2expr.h: Include gdbtypes.h.
5033 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5034 these forward declarations.
5035 (cu_offset, sect_offset): Move these ...
5036 * gdbtypes.h: Remove include dwarf2expr.h.
5037 (cu_offset, sect_offset): ... here.
5038
5039 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5040
5041 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5042 (amd64_linux_sigtramp_code): This.
5043 (amd64_x32_linux_sigtramp_code): New.
5044 (LINUX_SIGTRAMP_LEN): Updated.
5045 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5046
5047 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5050
5051 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5052
5053 * config.in: Regenerate.
5054 * configure: Regenerate.
5055 * configure.ac: Remove check for gnu/libc-version.h.
5056 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5057 gnu/libc-version.h.
5058 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5059 variables libc_version, libc_major and libc_minor. Replace sscanf by
5060 inferior_has_bug. Extend the comment.
5061
5062 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5063
5064 * linux-thread-db.c (inferior_has_bug): New function.
5065 (thread_db_find_new_threads_silently): Return boolean as checked by
5066 inferior_has_bug, describe it in the comments.
5067 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5068 earlier. Abort the initialization if it returned non-zero.
5069 (thread_db_new_objfile): Exclude debug files.
5070 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5071 if UNTIL_NO_NEW,
5072
5073 2012-07-02 Doug Evans <dje@google.com>
5074
5075 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5076 related to queue management.
5077
5078 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5079 instead of "debug dwarf2-die" in debugging printfs.
5080 (create_debug_info_hash_table_reader): Ditto.
5081 (create_debug_info_hash_table): Ditto.
5082 (init_dwo_file): Ditto.
5083 (init_cutu_and_read_dies): Add debugging printf.
5084 (init_cutu_and_read_dies_no_follow): Ditto.
5085 (process_psymtab_comp_unit_reader): Ditto.
5086
5087 2012-07-02 Stan Shebs <stan@codesourcery.com>
5088
5089 Add target-side support for dynamic printf.
5090 * NEWS: Mention the additional style.
5091 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5092 (struct bp_location): New field cmd_bytecode.
5093 * breakpoint.c: Include format.h.
5094 (disconnected_dprintf): New global.
5095 (parse_cmd_to_aexpr): New function.
5096 (build_target_command_list): New function.
5097 (insert_bp_location): Call it.
5098 (remove_breakpoints_pid): Skip dprintf breakpoints.
5099 (print_one_breakpoint_location): Ditto.
5100 (dprintf_style_agent): New global.
5101 (dprintf_style_enums): Add dprintf_style_agent.
5102 (update_dprintf_command_list): Add agent case.
5103 (agent_printf_command): New function.
5104 (_initialize_breakpoint): Add new commands.
5105 * common/ax.def (printf): New bytecode.
5106 * ax.h (ax_string): Declare.
5107 * ax-gdb.h (gen_printf): Declare.
5108 * ax-gdb.c: Include cli-utils.h, format.h.
5109 (gen_printf): New function.
5110 (maint_agent_print_command): New function.
5111 (_initialize_ax_gdb): Add maint agent-printf command.
5112 * ax-general.c (ax_string): New function.
5113 (ax_print): Add printf disassembly.
5114 * Makefile.in (SFILES): Add format.c
5115 (COMMON_OBS): Add format.o.
5116 * common/format.h: New file.
5117 * common/format.c: New file.
5118 * printcmd.c: Include format.h.
5119 (ui_printf): Call parse_format_string.
5120 * remote.c (remote_state): New field breakpoint_commands.
5121 (PACKET_BreakpointCommands): New enum.
5122 (remote_breakpoint_commands_feature): New function.
5123 (remote_protocol_features): Add new BreakpointCommands entry.
5124 (remote_can_run_breakpoint_commands): New function.
5125 (remote_add_target_side_commands): New function.
5126 (remote_insert_breakpoint): Call it.
5127 (remote_insert_hw_breakpoint): Ditto.
5128 (_initialize_remote): Add new packet configuration for
5129 target-side breakpoint commands.
5130 * target.h (struct target_ops): New field
5131 to_can_run_breakpoint_commands.
5132 (target_can_run_breakpoint_commands): New macro.
5133 * target.c (update_current_target): Handle
5134 to_can_run_breakpoint_commands.
5135
5136 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5137
5138 Execute -ix and -iex only after system and user gdbinit files.
5139 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5140 processing down after gdbinit files.
5141
5142 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5143
5144 Add fnmatch-gnu module.
5145 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5146 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5147 * gnulib/aclocal.m4: Regenerate.
5148 * gnulib/config.in: Regenerate.
5149 * gnulib/configure: Regenerate.
5150 * gnulib/import/dummy.c: Remove.
5151 * gnulib/import/Makefile.am: Regenerate.
5152 * gnulib/import/Makefile.in: Likewise.
5153 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5154 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5155 * gnulib/import/alloca.c: New file.
5156 * gnulib/import/alloca.in.h: Likewise.
5157 * gnulib/import/config.charset: Likewise.
5158 * gnulib/import/fnmatch.c: Likewise.
5159 * gnulib/import/fnmatch.in.h: Likewise.
5160 * gnulib/import/fnmatch_loop.c: Likewise.
5161 * gnulib/import/localcharset.c: Likewise.
5162 * gnulib/import/localcharset.h: Likewise.
5163 * gnulib/import/m4/alloca.m4: Likewise.
5164 * gnulib/import/m4/codeset.m4: Likewise.
5165 * gnulib/import/m4/configmake.m4: Likewise.
5166 * gnulib/import/m4/fcntl-o.m4: Likewise.
5167 * gnulib/import/m4/fnmatch.m4: Likewise.
5168 * gnulib/import/m4/glibc21.m4: Likewise.
5169 * gnulib/import/m4/localcharset.m4: Likewise.
5170 * gnulib/import/m4/locale-fr.m4: Likewise.
5171 * gnulib/import/m4/locale-ja.m4: Likewise.
5172 * gnulib/import/m4/locale-zh.m4: Likewise.
5173 * gnulib/import/m4/mbrtowc.m4: Likewise.
5174 * gnulib/import/m4/mbsinit.m4: Likewise.
5175 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5176 * gnulib/import/m4/mbstate_t.m4: Likewise.
5177 * gnulib/import/m4/stdbool.m4: Likewise.
5178 * gnulib/import/m4/wchar_h.m4: Likewise.
5179 * gnulib/import/m4/wctype_h.m4: Likewise.
5180 * gnulib/import/m4/wint_t.m4: Likewise.
5181 * gnulib/import/mbrtowc.c: Likewise.
5182 * gnulib/import/mbsinit.c: Likewise.
5183 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5184 * gnulib/import/mbsrtowcs-state.c: Likewise.
5185 * gnulib/import/mbsrtowcs.c: Likewise.
5186 * gnulib/import/ref-add.sin: Likewise.
5187 * gnulib/import/ref-del.sin: Likewise.
5188 * gnulib/import/stdbool.in.h: Likewise.
5189 * gnulib/import/streq.h: Likewise.
5190 * gnulib/import/strnlen1.c: Likewise.
5191 * gnulib/import/strnlen1.h: Likewise.
5192 * gnulib/import/verify.h: Likewise.
5193 * gnulib/import/wchar.in.h: Likewise.
5194 * gnulib/import/wctype.in.h: Likewise.
5195
5196 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5197
5198 Support shell wildcards for 'set auto-load safe-path'.
5199 * auto-load.c: Include fnmatch.h.
5200 (filename_is_in_dir): Rename to ...
5201 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5202 it. Update function comment. Rename dir_len to pattern_len. New
5203 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5204 messages. Use gdb_filename_fnmatch.
5205 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5206 pattern.
5207 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5208 * defs.h (gdb_filename_fnmatch): New declaration.
5209 * utils.c: Include fnmatch.h.
5210 (gdb_filename_fnmatch): New function.
5211
5212 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5213
5214 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5215 `-probe' and `-probe-stap' options.
5216
5217 2012-07-01 Yao Qi <yao@codesourcery.com>
5218
5219 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5220 always_inserted_off, and always_inserted_enums.
5221 Change always_inserted_mode's type to 'enum auto_boolean'.
5222 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5223 callers.
5224 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5225 of add_setshow_enum_cmd.
5226 * infrun.c: Remove can_use_displaced_stepping_auto,
5227 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5228 can_use_displaced_stepping_enum.
5229 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5230 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5231 callers.
5232 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5233 add_setshow_enum_cmd.
5234
5235 2012-06-30 Doug Evans <dje@google.com>
5236
5237 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5238 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5239 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5240
5241 2012-06-29 Doug Evans <dje@google.com>
5242
5243 * linespec.c: #include "stack.h".
5244 (decode_line_with_current_source): Moved here from symtab.c and
5245 renamed from decode_line_spec. All callers updated.
5246 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5247 renamed from decode_line_spec_1. All callers updated.
5248 * linespec.h (decode_line_with_current_source): Move declaration here
5249 from symtab.h and renamed from decode_line_spec.
5250 (decode_line_with_last_displayed): Move declaration here from symtab.h
5251 and renamed from decode_line_spec_1.
5252 * macrocmd.c: #include "linespec.h".
5253 * symtab.c: Remove #include "linespec.h".
5254
5255 2012-06-28 Doug Evans <dje@google.com>
5256
5257 * dwarf2read.c (get_cu_length): New function.
5258 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5259 (create_debug_types_hash_table): Ditto.
5260 (init_cutu_and_read_dies): Ditto.
5261 (init_cutu_and_read_dies_no_follow): Ditto.
5262
5263 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5264
5265 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5266 (struct abbrev_table): Define.
5267 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5268 abbrev_table.
5269 (init_cutu_and_read_dies): Update.
5270 (abbrev_table_alloc_abbrev): New function. Replaces
5271 dwarf_alloc_abbrev. All callers updated.
5272 (abbrev_table_add_abbrev): New function.
5273 (abbrev_table_lookup_abbrev): New function. Replaces
5274 dwarf2_lookup_abbrev. All callers updated.
5275 (abbrev_table_read_table): New function. Contents moved here from
5276 dwarf2_read_abbrevs.
5277 (dwarf2_read_abbrevs): Call it.
5278 (abbrev_table_free): New function.
5279 (dwarf2_free_abbrev_table): Call it.
5280
5281 2012-06-28 Stan Shebs <stan@codesourcery.com>
5282
5283 * osdata.c (info_osdata_command): Filter out "Title" columns
5284 from non-MI uses.
5285 * common/linux-osdata.c (struct osdata_type): Add title field.
5286 (osdata_table): Add titles to each entry.
5287 (linux_command_xfer_osdata): Add a column for title data.
5288
5289 2012-06-28 Stan Shebs <stan@codesourcery.com>
5290
5291 Make logging work for MI.
5292 * NEWS: Mention it.
5293 * interps.h (interp_set_logging_ftype): New typedef.
5294 (struct interp_procs): New field set_logging_proc.
5295 (current_interp_set_logging): Declare.
5296 * interps.c (current_interp_set_logging): New function.
5297 * cli/cli-logging.c: Include interps.h.
5298 (set_logging_redirect): Call current_interp_set_logging.
5299 (pop_output_files): Ditto.
5300 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5301 * mi/mi-console.h (mi_console_set_raw): Declare.
5302 * mi/mi-console.c (mi_console_set_raw): New function.
5303 * mi/mi-interp.c (saved_raw_stdout): New global.
5304 (mi_set_logging): New function.
5305 (_initialize_mi_interp): Add it to interp procs.
5306
5307 2012-06-28 Doug Evans <dje@google.com>
5308
5309 * symtab.c (lookup_symbol_aux_objfile): Use
5310 ALL_OBJFILE_PRIMARY_SYMTABS.
5311
5312 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5313
5314 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5315
5316 * common/buffer.c: Include inttypes.h and stdint.h.
5317 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5318
5319 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5320 Pedro Alves <palves@redhat.com>
5321
5322 * gdbthread.h (ALL_THREADS): New macro.
5323 (thread_list): Declare.
5324 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5325 going, but instead fall through to the stepping handling.
5326 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5327 the passed in signal. Adjust debug output.
5328 (resume_callback): Rename to ...
5329 (linux_nat_resume_callback): ... this. Pass the thread's last
5330 stop signal, if in "pass" state.
5331 (linux_nat_resume): Adjust to rename.
5332 (stop_wait_callback): New assertion. Don't respawn signals;
5333 instead let the LWP remain with SIGNALLED set.
5334 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5335 * remote.c (append_pending_thread_resumptions): New.
5336 (remote_vcont_resume): Call it.
5337 * target.h (target_resume): Extend comment.
5338
5339 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5340
5341 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5342
5343 2012-06-27 Doug Evans <dje@google.com>
5344
5345 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5346 Delete have_addr_base, unused. All uses updated.
5347 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5348 (dwarf2_get_pc_bounds): Add ranges_base.
5349 (dwarf2_record_block_ranges): Ditto.
5350
5351 2012-06-27 Tom Tromey <tromey@redhat.com>
5352
5353 PR macros/7961:
5354 * varobj.c (varobj_create): Update.
5355 (varobj_set_value): Update.
5356 * tracepoint.c (validate_actionline): Update.
5357 (encode_actions_1): Update.
5358 * parse.c (parse_exp_1): Add 'pc' argument.
5359 (parse_exp_in_context): Add 'pc' argument. Change how
5360 expression_context_pc is set.
5361 (parse_expression): Update.
5362 (parse_field_expression): Update.
5363 * expression.h (parse_exp_1): Update.
5364 * eval.c (parse_to_comma_and_eval): Update.
5365 * breakpoint.c (set_breakpoint_condition): Update.
5366 (update_watchpoint): Update.
5367 (init_breakpoint_sal): Update
5368 (find_condition_and_thread): Update.
5369 (watch_command_1): Update.
5370 (update_breakpoint_locations): Update.
5371 * ada-lang.c (ada_read_renaming_var_value): Update.
5372 (create_excep_cond_exprs): Update.
5373
5374 2012-06-27 Doug Evans <dje@google.com>
5375
5376 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5377 type units.
5378
5379 2012-06-26 Doug Evans <dje@google.com>
5380
5381 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5382 prototype.
5383 (error_check_comp_unit_head): New arg abbrev_section. All callers
5384 updated.
5385 (read_and_check_comp_unit_head): Ditto.
5386 (read_and_check_type_unit_head): Ditto.
5387
5388 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5389
5390 New attribute 'last' for gdb.Symtab_and_line.
5391 * NEWS (Python Scripting): Add entry about the new attribute.
5392 * python/py-symtab.c (salpy_get_last): New function which
5393 implements the get method for the 'last' attribute of
5394 gdb.Symtab_and_line.
5395 (sal_object_getset): Add entry for the 'last' attribute.
5396
5397 2012-06-26 Doug Evans <dje@google.com>
5398
5399 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5400 (dwo_sections): Add macinfo, macro.
5401 (dwarf2_locate_dwo_sections): Watch for macro sections.
5402 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5403 All callers updated. Handle DWO files.
5404
5405 * NEWS: Mention new options "set debug dwarf2-read" and
5406 "set debug symtab-create".
5407 * dwarf2read.c (dwarf2_read_debug): New static global.
5408 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5409 (process_queue): Ditto.
5410 (process_full_comp_unit): Ditto.
5411 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5412 * elfread.c (elf_symfile_read): Add debugging printf.
5413 * minsyms.c (install_minimal_symbols): Ditto.
5414 * psymtab.c (allocate_psymtab): Ditto.
5415 * symfile.c (allocate_symtab): Ditto.
5416 * symtab.c (symtab_create_debug): New global.
5417 (_initialize_symtab): Add new option "set debug symtab-create".
5418 * symtab.h (symtab_create_debug): Declare.
5419
5420 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5421 (lookup_dwo_type_unit): Ditto.
5422
5423 2012-06-26 Roland McGrath <roland@hack.frob.com>
5424 H.J. Lu <hongjiu.lu@intel.com>
5425
5426 * amd64-linux-nat.c: Include <sys/user.h>.
5427 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5428 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5429 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5430
5431 * configure.ac: Check if the fs_base and gs_base members of
5432 `struct user_regs_struct' exist.
5433 * config.in: Regenerated.
5434 * configure: Likewise.
5435
5436 2012-06-25 Michael Eager <eager@eagercon.com>
5437
5438 PR python/14291
5439 * python/python.c (gdbpy_write): Check for interrupted output.
5440
5441 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5442
5443 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5444 register as a stack alignment in ARM mode.
5445
5446 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5447
5448 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5449 * gnulib/config.in: Regenerate.
5450 * gnulib/configure: Likewise.
5451 * gnulib/import/m4/extensions.m4: Update it.
5452 * gnulib/import/m4/gnulib-common.m4: Likewise.
5453 * gnulib/import/m4/memmem.m4: Likewise.
5454 * gnulib/import/m4/mmap-anon.m4: Likewise.
5455 * gnulib/import/m4/multiarch.m4: Likewise.
5456 * gnulib/import/stdint.in.h: Likewise.
5457
5458 2012-06-24 Yao Qi <yao@codesourcery.com>
5459
5460 * corefile.c (write_memory_with_notification): New.
5461 * gdbcore.h: Declare write_memory_with_notification.
5462 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5463 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5464 * valops.c (value_assign): Likewise.
5465 * python/py-inferior.c (infpy_write_memory): Call
5466 'write_memory_with_notification'.
5467
5468 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5469
5470 * cc-with-index.sh: Use also -ex "set auto-load no".
5471
5472 2012-06-23 Doug Evans <dje@google.com>
5473
5474 PR 14125
5475 * NEWS: Document additions to .gdb_index.
5476 * dwarf2read.c: #include "gdb/gdb-index.h".
5477 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5478 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5479 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5480 (dwarf2_read_index): Recognize version 7.
5481 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5482 block_kind, domain): All callers updated.
5483 (dw2_find_symbol_file): Handle new index CU values.
5484 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5485 (add_index_entry): New args is_static, kind. All callers updated.
5486 (offset_type_compare, uniquify_cu_indices): New functions
5487 (symbol_kind): New function.
5488 (write_psymtabs_to_index): Remove duplicate CU values.
5489 (write_psymtabs_to_index): Write .gdb_index version 7.
5490
5491 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5492
5493 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5494 * configure: Regenerate.
5495
5496 2012-06-20 Yao Qi <yao@codesourcery.com>
5497
5498 * python/py-inferior.c: Update comments of infpy_read_memory
5499 and infpy_write_memory.
5500
5501 2012-06-19 Tom Tromey <tromey@redhat.com>
5502
5503 PR exp/9514:
5504 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5505 (push_type_address_space): Remove.
5506 * parse.c (insert_into_type_stack): New function.
5507 (insert_type): Likewise.
5508 (insert_type_address_space): Rename from push_type_address_space.
5509 Insert tp_space_identifier.
5510 * c-exp.y (ptr_operator): New production.
5511 (abs_decl): Use ptr_operator.
5512 (space_identifier): Call insert_type_address_space.
5513 (ptype): Don't use const_or_volatile_or_space_identifier.
5514 (const_or_volatile_noopt): Call insert_type.
5515 (conversion_type_id, conversion_declarator): New productions.
5516 (operator): Use conversion_type_id.
5517
5518 2012-06-18 Doug Evans <dje@google.com>
5519
5520 * symtab.h (minimal_symbol): New member created_by_gdb.
5521 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5522 created by gdb.
5523 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5524 (search_symbols): Call it instead of lookup_symbol.
5525 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5526
5527 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5528 Adjust address for DW_OP_GNU_addr_index.
5529 * dwarf2expr.h (dwarf_expr_context): Update comment.
5530 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5531 all callers updated. Handle TLS vars described with
5532 DW_OP_GNU_const_index.
5533 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5534 and DW_OP_GNU_const_index.
5535 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5536
5537 * block.c (find_block_in_blockvector): Make explicit the fact that we
5538 ignore GLOBAL_BLOCK.
5539
5540 2012-06-18 Tom Tromey <tromey@redhat.com>
5541
5542 * c-exp.y (operator): Remove trailing space after "delete" and
5543 "delete[]".
5544
5545 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5546 Jan Kratochvil <jan.kratochvil@redhat.com>
5547
5548 Switch i386 and derived targets to ON_STACK.
5549 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5550 (amd64_dicos_init_abi): Remove its installment.
5551 * dicos-tdep.c (dicos_init_abi): Remove the
5552 set_gdbarch_call_dummy_location call. Update the comment here.
5553 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5554 (i386_dicos_init_abi): Remove its installment.
5555 * i386-tdep.c (i386_push_dummy_code): New function.
5556 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5557 i386_push_dummy_code.
5558
5559 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5560
5561 Remove stale dummy frames.
5562 * breakpoint.c: Include dummy-frame.h.
5563 (longjmp_breakpoint_ops): New variable.
5564 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5565 bp_longjmp_call_dummy.
5566 (bpstat_what, bptype_string, print_one_breakpoint_location)
5567 (init_bp_location): Support bp_longjmp_call_dummy.
5568 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5569 (set_longjmp_breakpoint_for_call_dummy)
5570 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5571 functions.
5572 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5573 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5574 FIXME comment and extend the other comment for bp_call_dummy.
5575 (set_longjmp_breakpoint_for_call_dummy)
5576 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5577 * dummy-frame.c: Include gdbthread.h.
5578 (pop_dummy_frame_bpt): New function.
5579 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5580 (dummy_frame_discard): New function.
5581 (cleanup_dummy_frames): Update the comment about longjmps.
5582 * dummy-frame.h (dummy_frame_discard): New declaration.
5583 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5584 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5585 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5586 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5587 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5588 keep_going if IS_LONGJMP and there is no other reason to stop.
5589
5590 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5591
5592 * remote-sim.c (sim_command_completer): Initialize
5593 variable 'result'.
5594
5595 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5596
5597 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5598 * dwarf2loc.c (call_site_parameter_matches): Support
5599 CALL_SITE_PARAMETER_PARAM_OFFSET.
5600 (needs_dwarf_reg_entry_value): Push stub value.
5601 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5602 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5603 * gdbtypes.h (enum call_site_parameter_kind): New item
5604 CALL_SITE_PARAMETER_PARAM_OFFSET.
5605 (struct call_site.parameter.u): New field param_offset.
5606
5607 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5608
5609 Code cleanup: Generalize call_site.parameter key.
5610 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5611 variable dwarf_reg. New variable kind_u. Update parameters to
5612 push_dwarf_reg_entry_value.
5613 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5614 * dwarf2expr.h (enum call_site_parameter_kind)
5615 (union call_site_parameter_u): Forward declarations.
5616 (struct dwarf_expr_context_funcs): Update parameters and their
5617 description for push_dwarf_reg_entry_value.
5618 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5619 * dwarf2loc.c (call_site_parameter_matches): New function.
5620 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5621 description. Use call_site_parameter_matches.
5622 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5623 Update parameters and their description.
5624 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5625 New variable kind_u. Adjust the caller for updated parameters.
5626 (needs_dwarf_reg_entry_value): Update parameters.
5627 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5628 instead of attr. Update for the changed fields of struct
5629 call_site_parameter.
5630 * gdbtypes.h: Include dwarf2expr.h.
5631 (enum call_site_parameter_kind): New.
5632 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5633 fb_offset into new union u.
5634
5635 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5636
5637 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5638 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5639 for x32.
5640
5641 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5642
5643 * amd64-linux-nat.c (compat_x32_clock_t): New.
5644 (compat_x32_siginfo_t): Likewise.
5645 (compat_x32_siginfo_from_siginfo): Likewise.
5646 (siginfo_from_compat_x32_siginfo): Likewise.
5647 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5648 and siginfo_from_compat_x32_siginfo for x32.
5649
5650 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5651
5652 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5653
5654 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5655
5656 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5657 instead of gdbarch_ptr_bit.
5658 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5659 (amd64_supply_native_gregset): Likewise.
5660 (amd64_collect_native_gregset): Likewise.
5661 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5662 (amd64_supply_xsave): Likewise.
5663 (amd64_collect_fxsave): Likewise.
5664 (amd64_collect_xsave): Likewise.
5665
5666 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5667
5668 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5669 (amd64_linux_read_description): Check DS segment register for
5670 x32 process.
5671
5672 2012-06-15 Tom Tromey <tromey@redhat.com>
5673
5674 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5675 init_cutu_and_read_dies.
5676
5677 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5678
5679 * MAINTAINERS (Write After Approval): Add myself to the list.
5680
5681 2012-06-15 Tom Tromey <tromey@redhat.com>
5682
5683 * valops.c (value_find_oload_method_list): Now static.
5684 * value.h (value_find_oload_method_list): Don't declare.
5685
5686 2012-06-15 Tom Tromey <tromey@redhat.com>
5687
5688 * valops.c (find_overload_match): Use value_ind.
5689
5690 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5691
5692 * infrun.c (handle_inferior_event): Correct indentation.
5693
5694 2012-06-14 Doug Evans <dje@google.com>
5695
5696 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5697 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5698 All uses updated.
5699 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5700 updated. Handle DEBUG_LOC_START_LENGTH.
5701 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5702 (loclist_describe_location): Ditto.
5703
5704 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5705
5706 PR backtrace/13866
5707 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5708 after hiding inline functions.
5709
5710 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5711
5712 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5713 _initialize_inf_ttrace.
5714
5715 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5716
5717 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5718 _initialize_hppa_hpux_nat.
5719
5720 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5721
5722 * remote-sim.c (sim_command_completer): Change type of return
5723 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5724
5725 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5726 Jan Kratochvil <jan.kratochvil@redhat.com>
5727
5728 PR tdep/14222
5729 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5730 stack on a 16-byte boundary.
5731
5732 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5733
5734 * jit.c (finalize_symtab): Set function's return type to 'void' by
5735 default.
5736
5737 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5738 H.J. Lu <hongjiu.lu@intel.com>
5739
5740 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5741 Move bits common to both the classic LP64 and the new x32 ILP32
5742 ABI here.
5743 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5744 (amd64_x32_linux_init_abi): New function.
5745 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5746 subtype.
5747
5748 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5749 * i386-tdep.c (i386_pseudo_register_name): Make public.
5750 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5751 * amd64-tdep.c (amd64_dword_names): Add "eip".
5752 (amd64_x32_pseudo_register_type): New function
5753 (amd64_x32_init_abi): New function.
5754
5755 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5756
5757 PR build/14003
5758 * inferior.h (struct inferior_suspend_state): Comment out.
5759 (struct inferior): Comment out the field suspend.
5760 * infrun.c (struct infcall_suspend_state): Comment out the field
5761 inferior_suspend.
5762 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5763 out its assignment.
5764
5765 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5766
5767 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5768 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5769 function comment. Return ERROR for unresolved cases. Implement
5770 returning proper NAME.
5771 (yylex): Accept also NAME from classify_inner_name.
5772 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5773 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5774 LOC_TYPEDEF type.
5775 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5776
5777 2012-06-13 Tom Tromey <tromey@redhat.com>
5778
5779 * breakpoint.c (condition_completer): New function.
5780 (_initialize_breakpoint): Use it.
5781 * value.c (complete_internalvar): New function.
5782 * value.h (complete_internalvar): Declare.
5783
5784 2012-06-13 Tom Tromey <tromey@redhat.com>
5785
5786 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5787 * breakpoint.c (catch_syscall_completer): Return a VEC.
5788 * cli/cli-cmds.c (complete_command): Update.
5789 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5790 (complete_on_enum): Likewise.
5791 * command.h: Include gdb_vecs.h.
5792 (completer_ftype): Change return type.
5793 (complete_on_cmdlist, complete_on_enum): Likewise.
5794 * completer.c (noop_completer, filename_completer)
5795 (location_completer): Return a VEC.
5796 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5797 to a VEC.
5798 (expression_completer, complete_line_internal, complete_line)
5799 (command_completer): Return a VEC.
5800 (gdb_completion_word_break_characters, line_completion_function):
5801 Update.
5802 * completer.h: Include gdb_vecs.h.
5803 (complete_line, noop_completer, filename_completer)
5804 (expression_completer, location_completer, command_completer):
5805 Update.
5806 * f-lang.c (f_word_break_characters): Return a VEC.
5807 * interps.c (interpreter_completer): Return a VEC.
5808 * language.h (struct language_defn)
5809 <la_make_symbol_completion_list>: Return a VEC.
5810 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5811 * symtab.c (free_completion_list): Take a VEC.
5812 (return_val_size, return_val_index): Remove.
5813 (return_val): Now a VEC.
5814 (completion_list_add_name): Update.
5815 (default_make_symbol_completion_list_break_on)
5816 (default_make_symbol_completion_list, make_symbol_completion_list)
5817 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5818 Return a VEC.
5819 (add_filename_to_list): Update.
5820 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5821 <list>: Now a VEC.
5822 (maybe_add_partial_symtab_filename): Update.
5823 (make_source_files_completion_list): Return a VEC.
5824 * symtab.h (default_make_symbol_completion_list_break_on)
5825 (default_make_symbol_completion_list, make_symbol_completion_list)
5826 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5827 (make_source_files_completion_list): Update.
5828
5829 2012-06-13 Tom Tromey <tromey@redhat.com>
5830
5831 * breakpoint.c (add_catch_command): Use completer_ftype.
5832 * breakpoint.h: Include command.h.
5833 (add_catch_command): Use completer_ftype.
5834 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5835 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5836 Use completer_ftype.
5837 * command.h (completer_ftype): New typedef.
5838 (set_cmd_completer): Use it.
5839 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5840 completer_ftype.
5841
5842 2012-06-13 Pedro Alves <palves@redhat.com>
5843
5844 Partial revert of previous change.
5845
5846 * serial.c (scb_base): New global.
5847 (serial_for_fd): New.
5848 (serial_open, serial_fdopen_ops): Link new serial in open serials
5849 chain.
5850 (do_serial_close): Unlink serial from the open serials chain.
5851
5852 2012-06-12 Pedro Alves <palves@redhat.com>
5853
5854 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5855 threads here.
5856 (prepare_for_detach): No longer context switch here in non-stop
5857 mode.
5858 (fetch_inferior_event): Ditto.
5859 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5860 to the event thread before removing breakpoints. Switch to the
5861 event thread before inserting breakpoints and resuming.
5862 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5863 event thread before resuming.
5864 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5865 Switch to the event thread before removing breakpoints.
5866
5867 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5868
5869 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5870 special characters correctly for the Windows shells. See
5871 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5872 report.
5873 [!__MINGW32__]: Remove extra double quote character from special
5874 characters.
5875
5876 2012-06-11 Stan Shebs <stan@codesourcery.com>
5877
5878 * ui-out.h: Remove #if 0 declarations.
5879 * ui-out.c: Remove #if 0 functions.
5880
5881 2012-06-11 Pedro Alves <palves@redhat.com>
5882
5883 * ser-base.c (run_async_handler_and_reschedule): New.
5884 (fd_event, push_event): Use it.
5885 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5886 reference count to 1.
5887 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5888 instead of xfree.
5889 (serial_is_open, serial_ref, serial_unref): New.
5890 * serial.h (serial_open): Adjust comment.
5891 (serial_is_open): Declare.
5892 (serial_close): Adjust comment.
5893 (serial_ref, serial_unref) Declare.
5894 (struct serial): New field 'refcnt'.
5895
5896 2012-06-11 Pedro Alves <palves@redhat.com>
5897
5898 Remove #if 0'd "connect" command, and unnecessary associated
5899 refcounting and serial reuse bits.
5900
5901 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5902 * serial.c (last_serial_opened): Delete.
5903 (scb_base): Delete.
5904 (serial_open): Adjust.
5905 (serial_for_fd): Delete.
5906 (serial_fdopen_ops, do_serial_close): Adjust.
5907 (serial_fdopen_ops): Adjust.
5908
5909 2012-06-11 Pedro Alves <palves@redhat.com>
5910
5911 * serial.c (do_serial_close): Remove early return when SCB is
5912 null.
5913
5914 2012-06-11 Tom Tromey <tromey@redhat.com>
5915
5916 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5917
5918 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5919
5920 Fix regression by the "ambiguous linespec" series.
5921 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5922 get_last_displayed_symtab and get_last_displayed_line and depending
5923 on CURSAL.
5924
5925 2012-06-11 Tom Tromey <tromey@redhat.com>
5926
5927 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5928 (dw2_find_symbol_file): Use it.
5929
5930 2012-06-11 Michael Eager <eager@eagercon.com>
5931
5932 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5933 * mips-linux-tdep.h (mips_signals): New
5934
5935 2012-06-11 Tom Tromey <tromey@redhat.com>
5936
5937 * infrun.c (handle_inferior_event)
5938 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5939 breakpoint.
5940 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5941 exception logic in all cases. Update comments.
5942 (insert_longjmp_resume_breakpoint): Set the exception resume
5943 breakpoint.
5944
5945 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5946
5947 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5948
5949 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5950
5951 * valarith.c (binop_types_user_defined_p): Fix a typo.
5952
5953 2012-06-08 Yao Qi <yao@codesourcery.com>
5954 Chung-Lin Tang <cltang@codesourcery.com>
5955
5956 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5957 * arch-utils.h: Declare.
5958 * gdbarch.sh: Add return_in_first_hidden_param_p.
5959 * gdbarch.c, gdbarch.h: Regenerated.
5960 * infcall.c (call_function_by_hand): Call
5961 gdbarch_return_in_first_hidden_param_p instead of
5962 language_pass_by_reference.
5963
5964 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5965 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5966 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5967 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5968 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5969 `cplus_return_struct_by_reference'.
5970 (tic6x_return_value): Handle language cplusplus.
5971 (tic6x_return_in_first_hidden_param_p): New.
5972 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5973
5974 2012-06-07 Doug Evans <dje@google.com>
5975
5976 * dwarf2read.c (dwarf2_cu): Add comment.
5977
5978 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5979
5980 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5981 variable.
5982 (mips_eabi_push_dummy_call): Likewise.
5983 (mips_n32n64_push_dummy_call): Likewise.
5984 (mips_o32_push_dummy_call): Likewise.
5985 (mips_o64_push_dummy_call): Likewise.
5986
5987 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5988
5989 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5990
5991 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5992
5993 * mips-tdep.c (mips_pseudo_register_type): Use
5994 mips_float_register_p.
5995
5996 2012-06-06 Pedro Alves <palves@redhat.com>
5997
5998 * infrun.c (handle_inferior_event): Remove calls to
5999 reinit_frame_cache that follow a context_switch call.
6000
6001 2012-06-06 Pedro Alves <palves@redhat.com>
6002
6003 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6004 context_switch and remove stale comment.
6005
6006 2012-06-06 Pedro Alves <palves@redhat.com>
6007
6008 * infrun.c (struct execution_control_state): Remove
6009 `new_thread_event' field.
6010 (handle_inferior_event): Simplify new threads handling; don't
6011 resume the inferior if we find a new thread.
6012
6013 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6014
6015 * NEWS: Document the deprecation of SH's 'regs' command.
6016 * inferior.h (all_registers_info): Add function declaration.
6017 * sh-tdep.c (sh_show_regs): Remove variable.
6018 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6019 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6020 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6021 (sh_show_regs_command): Remove functions.
6022 (sh_gdbarch_init): Don't set sh_show_regs.
6023 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6024 'info all-registers'.
6025 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6026 (sh64_show_regs): Remove functions.
6027 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6028
6029 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6030
6031 * configure.ac: Move development=true below AC_INIT.
6032 * configure: Regenerate.
6033
6034 2012-06-05 Stan Shebs <stan@codesourcery.com>
6035
6036 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6037 gdb_stdout.
6038
6039 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6040
6041 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6042 argument as ssize_t.
6043 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6044 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6045 * target.c (target_read_stack, target_write_memory)
6046 (target_write_raw_memory): Likewise.
6047 * target.h (target_read_stack, target_write_memory)
6048 (target_write_raw_memory): Likewise.
6049
6050 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6051
6052 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6053 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6054 * target.c (target_read_memory): Change LEN to ssize_t.
6055 * target.h (target_read_memory): Change LEN to ssize_t.
6056
6057 2012-06-05 Pedro Alves <palves@redhat.com>
6058
6059 PR backtrace/13866
6060
6061 * breakpoint.c (until_break_command): Only fetch the selected
6062 frame after decode_line_1.
6063
6064 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6065
6066 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6067 event breakpoint at _start, __start or main if a program
6068 interpreter is not found.
6069
6070 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6071
6072 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6073 Add declaration.
6074 * windows-tdep.c: #include "objfiles.h".
6075 (windows_iterate_over_objfiles_in_search_order): New function.
6076 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6077 iterate_over_objfiles_in_search_order gdbarch method to
6078 windows_iterate_over_objfiles_in_search_order.
6079 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6080
6081 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6082
6083 * gdbarch.sh: Add generation of
6084 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6085 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6086 (iterate_over_objfiles_in_search_order): New gdbarch method.
6087 * gdbarch.h, gdbarch.c: Regenerate.
6088 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6089 Add declaration.
6090 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6091 New function.
6092 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6093 out of lookup_symbol_aux_symtabs.
6094 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6095 call to lookup_symbol_aux_objfile.
6096 (struct global_sym_lookup_data): New type.
6097 (lookup_symbol_global_iterator_cb): New function.
6098 (lookup_symbol_global): Search for symbol using
6099 gdbarch_iterate_over_objfiles_in_search_order and
6100 lookup_symbol_global_iterator_cb.
6101 * findvar.c (struct minsym_lookup_data): New type.
6102 (minsym_lookup_iterator_cb): New function.
6103 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6104 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6105 and minsym_lookup_iterator_cb.
6106
6107 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6108
6109 Revert the following patch:
6110 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6111 try locating the symbol in the symbol's own objfile first, before
6112 extending the search to all objfiles.
6113 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6114 out of lookup_symbol_aux_symtabs.
6115 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6116 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6117 Do not search EXCLUDE_OBJFILE.
6118 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6119 (lookup_symbol_global): Search for matches in the block's objfile
6120 first, before searching all other objfiles.
6121
6122 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6123
6124 * breakpoint.c (find_condition_and_thread): Stop parsing
6125 as soon as the first invalid keyword is found.
6126
6127 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6128
6129 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6130
6131 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6132
6133 * config/djgpp/djcheck.sh: Add copyright header.
6134
6135 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6136
6137 * copyright.py (update_files, main): Fix path to update-copyright
6138 script.
6139
6140 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6141
6142 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6143 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6144 for which a reminder to update by hand is printed.
6145
6146 2012-06-04 Doug Evans <dje@google.com>
6147
6148 * buildsym.c (make_blockvector): Add comment.
6149
6150 2012-06-04 Pedro Alves <palves@redhat.com>
6151
6152 * arch-utils.c (default_gdb_signal_from_target): Delete.
6153 * arch-utils.h (default_gdb_signal_from_target): Delete.
6154 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6155 gdbarch_gdb_signal_from_target_p.
6156 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6157 predicate).
6158 * gdbarch.h: Regenerate.
6159 * gdbarch.c: Regenerate.
6160
6161 2012-06-04 Pedro Alves <palves@redhat.com>
6162
6163 * gdbarch.sh (gdb_signal_from_target): Mention that the
6164 implementation of the method must be host independent.
6165 * gdbarch.h: Regenerate.
6166
6167 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6168
6169 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6170 parameters.
6171 (target_read_memory_bfd): New function.
6172 (symbol_file_add_from_memory): Use it.
6173
6174 2012-06-03 Doug Evans <dje@google.com>
6175
6176 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6177 of primary symtab.
6178 (basic_lookup_transparent_type): Ditto.
6179
6180 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6181 (ALL_PRIMARY_SYMTABS): Use it.
6182 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6183 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6184 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6185 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6186 (basic_lookup_transparent_type): Ditto.
6187
6188 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6189
6190 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6191 it to optimize resolution of demangled name.
6192
6193 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6194
6195 * configure.ac (development): Define new variable.
6196 Call AC_CHECK_LIB for mcheck if $development.
6197 (ERROR_ON_WARNING): Enable it by default only if $development.
6198 * config.in: Regenerate.
6199 * configure: Regenerate.
6200
6201 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6202
6203 * target.c (target_read_memory): Make LEN argument as size_t.
6204 * target.h (target_read_memory): Likewise.
6205
6206 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6207
6208 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6209
6210 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6211
6212 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6213 BookE interface for PowerPC server processors if not available
6214 in the Linux Kernel.
6215
6216 2012-05-31 Keith Seitz <keiths@redhat.com>
6217
6218 * linespec.c (decode_objc): Add cleanup to free
6219 INFO.FILE_SYMTABS.
6220 (find_linespec_symbols): Add cleanup to free CLASSES.
6221 * symfile.c (find_separate_debug_file_by_debuglink): Add
6222 cleanup to free DEBUGLINK.
6223 * ui-out.c (clear_header_list): No need to check if
6224 HEADER_NEXT.COLHDR is NULL.
6225 Free HEADER_NEXT.COL_NAME.
6226
6227 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6228
6229 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6230 warning.
6231
6232 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6233
6234 * configure.host (gdb_host_cpu): Handle tilegx*.
6235 (gdb_host): Handle tilegx-*-linux*.
6236 * tilegx-linux-nat.c: New file.
6237 * config/tilegx/linux.mh: New file.
6238
6239 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6240
6241 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6242 tilegx-linux-tdep.o.
6243 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6244 tilegx-linux-tdep.c.
6245 * configure.tgt: Handle tilegx-*-linux*.
6246 * tilegx-tdep.h: New file.
6247 * tilegx-tdep.c: New file.
6248 * tilegx-linux-tdep.c: New file.
6249 * regformats/reg-tilegx.dat: New file.
6250
6251 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6252
6253 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6254 accounting of hw watchpoints on ppc.
6255
6256 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6257
6258 * source.c (openp): Expand tilde in path entries.
6259
6260 2012-05-29 Doug Evans <dje@google.com>
6261
6262 * buildsym.c (block_compar): Fix comment.
6263 (end_symtab): Fix and clarify some comments.
6264
6265 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6266 cleanup_undefined_types.
6267 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6268 All callers updated.
6269
6270 2012-05-29 Tom Tromey <tromey@redhat.com>
6271
6272 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6273 fails.
6274 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6275 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6276 fails.
6277 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6278 fails.
6279
6280 2012-05-29 Tristan Gingold <gingold@adacore.com>
6281
6282 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6283 (struct darwin_info): ... New struct.
6284 (solib_darwin_pspace_data): New variable.
6285 (darwin_pspace_data_cleanup): New function.
6286 (get_darwin_info): Likewise.
6287 (darwin_dyld_version_ok, darwin_load_image_infos)
6288 (darwin_solib_get_all_image_info_addr_at_init)
6289 (darwin_solib_read_all_image_info_addr): Add info argument.
6290 Adjust code.
6291 (darwin_current_sos): Use per pspace structure.
6292 (darwin_solib_create_inferior_hook): Likewise.
6293 (darwin_clear_solib): Likewise.
6294 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6295
6296 2012-05-28 Pedro Alves <palves@redhat.com>
6297
6298 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6299 block that uses them. Clear ecss before handling each event.
6300
6301 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6302
6303 * solib-svr4.c (svr4_current_sos): New comment on
6304 svr4_current_sos_via_xfer_libraries fall back.
6305
6306 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6307
6308 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6309 it as a fallback for TYPE_IS_OPAQUE.
6310 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6311 symbols for lookup_symbol.
6312
6313 2012-05-24 John Steele Scott <toojays@toojays.net>
6314
6315 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6316 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6317 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6318 (check_producer): ... this new function, which also checks for ICC
6319 and caches the result.
6320 (producer_is_icc): New function.
6321 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6322 producer was ICC.
6323
6324 2012-05-24 Pedro Alves <palves@redhat.com>
6325
6326 PR gdb/7205
6327
6328 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6329 (default_gdb_signal_to_target): ... this. Add comment.
6330 (default_gdb_signal_from_host): Rename to ...
6331 (default_gdb_signal_from_target): ... this. Add comment.
6332 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6333 (default_gdb_signal_to_target): ... this.
6334 (default_gdb_signal_from_host): Rename to ...
6335 (default_gdb_signal_from_target): ... this.
6336 * corelow.c (core_open): Adjust to naming change. Replace comment.
6337 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6338 (gdb_signal_from_target): ... this. Adjust to
6339 default_gdb_signal_from_host naming change. Extend comment.
6340 (gdb_signal_to_host): Rename to ...
6341 (gdb_signal_to_target): ... this. Adjust to
6342 default_gdb_signal_to_host naming change.
6343 * gdbarch.h, gdbarch.c: Renegerate.
6344
6345 2012-05-24 Pedro Alves <palves@redhat.com>
6346
6347 PR gdb/7205
6348
6349 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6350
6351 2012-05-24 Pedro Alves <palves@redhat.com>
6352
6353 PR gdb/7205
6354
6355 Replace target_signal with gdb_signal throughout.
6356
6357 2012-05-24 Pedro Alves <palves@redhat.com>
6358
6359 PR tui/14159
6360
6361 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6362 string, instead of reusing the va_list argument.
6363
6364 2012-05-24 Tom Tromey <tromey@redhat.com>
6365
6366 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6367 Remove.
6368
6369 2012-05-23 Doug Evans <dje@google.com>
6370
6371 * symtab.c (search_symbols): Formatting fixes.
6372 (print_symbol_info): Formatting fixes.
6373
6374 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6375 int64_t change to leb128 API.
6376 (read_encoded_value, decode_frame_entry_1): Ditto.
6377 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6378 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6379 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6380 (execute_stack_op): Ditto.
6381 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6382 (safe_read_uleb128, safe_read_sleb128): Ditto.
6383 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6384 (dwarf2_compile_expr_to_ax): Ditto.
6385 (locexpr_describe_location_piece): Ditto.
6386 (disassemble_dwarf_expression): Ditto.
6387 (locexpr_describe_location_1): Ditto.
6388
6389 2012-05-23 Stan Shebs <stan@codesourcery.com>
6390 Kwok Cheung Yeung <kcy@codesourcery.com>
6391
6392 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6393 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6394 (mi-cmd-info.o): New rule.
6395 * osdata.h (info_osdata_command): New declaration.
6396 * osdata.c (info_osdata_command): Change to non-static.
6397 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6398 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6399 * mi/mi-cmd-info.c: New file.
6400
6401 2012-05-23 Doug Evans <dje@google.com>
6402
6403 * symtab.c (search_symbols): Pass NULL for file_matcher to
6404 expand_symtabs_matching if there are no files to match.
6405
6406 * gdbtypes.c (lookup_typename): Simplify.
6407
6408 2012-05-23 Pedro Alves <palves@redhat.com>
6409
6410 * arch-utils.h (default_target_signal_to_host): Delete.
6411 * arch-utils.c (default_target_signal_to_host): Delete.
6412 * gdbarch.sh (target_signal_to_host): Remove.
6413 * gdbarch.h, gdbarch.c: Regenerate.
6414
6415 2012-05-22 Doug Evans <dje@google.com>
6416
6417 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6418 "const gdb_byte *".
6419 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6420 (execute_cfa_program): Update to match API of leb128 functions.
6421 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6422 "const gdb_byte *".
6423 (read_unsigned_leb128, read_signed_leb128): Delete.
6424 (read_initial_length): Change type of buf argument to
6425 "const gdb_byte *".
6426 (read_encoded_value): Update to match API of leb128 functions.
6427 (decode_frame_entry): Change result to "const gdb_byte *", and
6428 similarly for "start" parameter.
6429 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6430 (dwarf2_build_frame_info): Change local frame_ptr to
6431 "const gdb_byte *".
6432 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6433 read_uleb128, read_sleb128. All callers updated.
6434 (safe_skip_leb128): New function.
6435 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6436 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6437 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6438 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6439 read_uleb128, read_sleb128.
6440 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6441 (execute_stack_op): Update to match API of leb128 functions.
6442 * dwarf2expr.h: #include "leb128.h".
6443 (read_uleb128, read_sleb128): Delete.
6444 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6445 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6446 * dwarf2loc.c (debug_loc_kind): New enum.
6447 (decode_debug_loc_addresses): New function.
6448 (decode_debug_loc_dwo_addresses): New function.
6449 (dwarf2_find_location_expression): Rewrite.
6450 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6451 (locexpr_describe_location_piece): Ditto.
6452 (disassemble_dwarf_expression): Ditto.
6453 (locexpr_describe_location_1): Ditto.
6454 (loclist_describe_location): Rewrite.
6455 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6456 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6457 (dwarf2_section_buffer_overflow_complaint): Renamed from
6458 dwarf2_macros_too_long_complaint. All callers updated.
6459 (skip_leb128): Delete.
6460 (init_cu_die_reader): Initialize reader->buffer_end.
6461 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6462 (skip_form_bytes): New arg buffer_end. All callers updated.
6463 Replace call to skip_leb128 with gdb_skip_leb128.
6464 (skip_unknown_opcode): New arg mac_end. All callers updated.
6465 (fill_in_loclist_baton): Initialize baton->from_dwo.
6466
6467 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6468
6469 * mips-linux-nat.c (mips_linux_read_description): Use a more
6470 verbose error message.
6471
6472 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6473
6474 * NEWS: Add MIPS/Linux DSP support.
6475 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6476 (SIGCONTEXT_DSPCTL): New macro.
6477 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6478 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6479 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6480 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6481 (N64_SIGCONTEXT_HI3): Likewise.
6482 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6483 (N64_SIGCONTEXT_LO3): Likewise.
6484 (N64_SIGCONTEXT_DSPCTL): Likewise.
6485 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6486 (mips_linux_o32_sigframe_init): Handle DSP registers.
6487 (mips_linux_n32n64_sigframe_init): Likewise.
6488
6489 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6490
6491 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6492 call to abort.
6493
6494 2012-05-22 Pedro Alves <palves@redhat.com>
6495
6496 * target.h (store_waitstatus): Move declaration ...
6497 * inf-child.h (store_waitstatus): ... here.
6498 * target.c: Move inclusion of gdb_wait.h, and ...
6499 (store_waitstatus): ... this ...
6500 * inf-child.c: ... here.
6501 * linux-nat.c: Include inf-child.h.
6502 * rs6000-nat.c: Include inf-child.h.
6503 * spu-linux-nat.c: Include inf-child.h.
6504
6505 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6506
6507 * tracepoint.c (start_tracing): Add missing i18n markup.
6508 (stop_tracing, set_trace_user): Ditto.
6509 (set_trace_notes, set_trace_stop_notes): Ditto.
6510
6511 2012-05-21 Tom Tromey <tromey@redhat.com>
6512
6513 PR c++/7173:
6514 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6515 types.
6516 * value.h (value_cast_pointers): Update.
6517 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6518 (value_cast): Update.
6519 (update_search_result): New function.
6520 (do_search_struct_field): New, from search_struct_field. Check
6521 for ambiguous results.
6522 (search_struct_field): Rewrite.
6523 * infcall.c (value_arg_coerce): Update.
6524 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6525 value_cast_pointers.
6526 * ada-lang.c (ada_convert_actual): Update.
6527
6528 2012-05-21 Tom Tromey <tromey@redhat.com>
6529
6530 * macroexp.c (macro_stringify): Terminate the string.
6531
6532 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6533
6534 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6535 Describe it.
6536 * auto-load.c (auto_load_expand_dir_vars): New function.
6537 (auto_load_safe_path_vec_update): Use it, remove the
6538 substitute_path_component call thanks to it.
6539 (auto_load_objfile_script): Remove the debug_file_directory processing.
6540 Use auto_load_expand_dir_vars, remove the substitute_path_component
6541 call thanks to it.
6542 * configure: Regenerate.
6543 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6544 path. Escape $ also for $debugdir.
6545 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6546 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6547
6548 2012-05-20 Doug Evans <dje@google.com>
6549
6550 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6551 before use. Check for symtab->includes == NULL before scanning it.
6552
6553 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6554
6555 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6556
6557 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6558
6559 * NEWS: Add microMIPS support and "set mips compression",
6560 "show mips compression" commands.
6561 * mips-tdep.h (mips_isa): New enum.
6562 (gdbarch_tdep): Add mips_isa.
6563 (mips_pc_is_mips16): Update prototype.
6564 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6565 * mips-tdep.c (mips_compression_mips16): New variable.
6566 (mips_compression_micromips): Likewise.
6567 (mips_compression_strings): Likewise.
6568 (mips_compression_string): Likewise.
6569 (is_mips16_isa, is_micromips_isa): New functions.
6570 (is_mips16_addr): Rename to...
6571 (is_compact_addr): ... this.
6572 (unmake_mips16_addr): Likewise to...
6573 (unmake_compact_addr): ... this.
6574 (make_mips16_addr): Likewise to...
6575 (make_compact_addr): ... this.
6576 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6577 functions.
6578 (mips_elf_make_msymbol_special): Handle microMIPS code.
6579 (msymbol_is_special): Rename to...
6580 (msymbol_is_mips16): ... this.
6581 (mips_make_symbol_special, mips_pc_is_mips16): Update
6582 accordingly.
6583 (msymbol_is_mips, msymbol_is_micromips): New functions.
6584 (mips16_to_32_reg): Rename to...
6585 (mips_reg3_to_reg): ... this.
6586 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6587 (mips_pc_isa): Likewise.
6588 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6589 code.
6590 (mips_fetch_instruction): Pass return status instead of printing
6591 an error message if requested. Handle microMIPS code. Bail out
6592 on an invalid ISA.
6593 (micromips_op): New macro.
6594 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6595 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6596 (b6s4_op, b7s3_reg): Likewise.
6597 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6598 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6599 (mips_insn_size): New function.
6600 (mips32_next_pc): Update mips_fetch_instruction call.
6601 (micromips_relative_offset7): New function.
6602 (micromips_relative_offset10): Likewise.
6603 (micromips_relative_offset16): Likewise.
6604 (micromips_pc_insn_size): Likewise.
6605 (micromips_bc1_pc): Likewise.
6606 (micromips_next_pc): Likewise.
6607 (unpack_mips16): Update mips_fetch_instruction call.
6608 (extended_mips16_next_pc): Update according to change to
6609 mips16_to_32_reg.
6610 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6611 code.
6612 (mips16_scan_prologue): Update mips_fetch_instruction call.
6613 Update according to change to mips16_to_32_reg.
6614 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6615 (mips_insn16_frame_base_sniffer): Likewise.
6616 (micromips_decode_imm9): New function.
6617 (micromips_scan_prologue): Likewise.
6618 (mips_micro_frame_cache): Likewise.
6619 (mips_micro_frame_this_id): Likewise.
6620 (mips_micro_frame_prev_register): Likewise.
6621 (mips_micro_frame_sniffer): Likewise.
6622 (mips_micro_frame_unwind): New variable.
6623 (mips_micro_frame_base_address): New function.
6624 (mips_micro_frame_base): New variable.
6625 (mips_micro_frame_base_sniffer): New function.
6626 (mips32_scan_prologue): Update mips_fetch_instruction call.
6627 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6628 rather than for MIPS16.
6629 (mips_insn32_frame_base_sniffer): Likewise.
6630 (mips_addr_bits_remove): Handle microMIPS code.
6631 (deal_with_atomic_sequence): Rename to...
6632 (mips_deal_with_atomic_sequence): ... this. Update the type
6633 of the variable used to hold an instruction. Remove the ISA bit
6634 check. Update mips_fetch_instruction call.
6635 (micromips_deal_with_atomic_sequence): New function.
6636 (deal_with_atomic_sequence): Likewise.
6637 (mips_about_to_return): Handle microMIPS code. Update
6638 mips_fetch_instruction call.
6639 (heuristic_proc_start): Check for the standard MIPS ISA rather
6640 than for MIPS16. Update mips_pc_is_mips16 and
6641 mips_fetch_instruction calls. Handle microMIPS code.
6642 (mips_push_dummy_code): Handle microMIPS code.
6643 (mips_eabi_push_dummy_call): Likewise.
6644 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6645 (mips_o64_push_dummy_call): Handle microMIPS code.
6646 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6647 (is_delayed): Remove function.
6648 (mips_single_step_through_delay): Replace the call to is_delayed
6649 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6650 Handle microMIPS code.
6651 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6652 microMIPS code.
6653 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6654 call.
6655 (micromips_in_function_epilogue_p): New function.
6656 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6657 call.
6658 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6659 Handle microMIPS.
6660 (gdb_print_insn_mips): Likewise.
6661 (mips_breakpoint_from_pc): Likewise.
6662 (mips_remote_breakpoint_from_pc): New function.
6663 (mips32_instruction_has_delay_slot): Simplify making use of the
6664 updated mips_fetch_instruction interface.
6665 (micromips_instruction_has_delay_slot): New function.
6666 (mips16_instruction_has_delay_slot): Simplify making use of the
6667 updated mips_fetch_instruction interface.
6668 (mips_adjust_breakpoint_address): Check for the standard MIPS
6669 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6670 calls. Handle microMIPS code.
6671 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6672 (mips_skip_trampoline_code): Handle microMIPS code.
6673 (global_mips_compression): New function.
6674 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6675 file flags. Register the microMIPS remote breakpoint handler
6676 and heuristic frame unwinder.
6677 (show_mips_compression): New function.
6678 (_initialize_mips_tdep): Add the "set mips compression" and
6679 "show mips compression" commands.
6680
6681 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6682
6683 * ada-lang.c:
6684 * ada-tasks.c:
6685 * ada-varobj.c:
6686 * amd64-darwin-tdep.c:
6687 * arm-symbian-tdep.c:
6688 * arm-tdep.c:
6689 * avr-tdep.c:
6690 * ax-gdb.c:
6691 * bfin-linux-tdep.c:
6692 * breakpoint.c:
6693 * c-valprint.c:
6694 * cli/cli-cmds.c:
6695 * coffread.c:
6696 * cp-support.c:
6697 * cris-tdep.c:
6698 * dwarf2-frame-tailcall.c:
6699 * dwarf2-frame.c:
6700 * dwarf2expr.c:
6701 * dwarf2loc.c:
6702 * dwarf2read.c:
6703 * elfread.c:
6704 * eval.c:
6705 * expprint.c:
6706 * f-valprint.c:
6707 * frv-tdep.c:
6708 * h8300-tdep.c:
6709 * hppa-hpux-tdep.c:
6710 * hppa-tdep.c:
6711 * hppanbsd-tdep.c:
6712 * i386-nto-tdep.c:
6713 * i386-tdep.c:
6714 * i387-tdep.c:
6715 * ia64-tdep.c:
6716 * jit.c:
6717 * linespec.c:
6718 * linux-tdep.c:
6719 * lm32-tdep.c:
6720 * m2-valprint.c:
6721 * m32c-tdep.c:
6722 * m32r-rom.c:
6723 * m32r-tdep.c:
6724 * m68k-tdep.c:
6725 * m68klinux-tdep.c:
6726 * mi/mi-main.c:
6727 * microblaze-tdep.c:
6728 * mips-linux-tdep.c:
6729 * mips-tdep.c:
6730 * mn10300-tdep.c:
6731 * p-valprint.c:
6732 * parse.c:
6733 * ppc-linux-tdep.c:
6734 * ppc-sysv-tdep.c:
6735 * printcmd.c:
6736 * python/py-finishbreakpoint.c:
6737 * python/py-inferior.c:
6738 * python/py-infthread.c:
6739 * python/py-type.c:
6740 * python/python.c:
6741 * remote-fileio.c:
6742 * remote-m32r-sdi.c:
6743 * remote-mips.c:
6744 * reverse.c:
6745 * rl78-tdep.c:
6746 * rs6000-aix-tdep.c:
6747 * rs6000-tdep.c:
6748 * s390-tdep.c:
6749 * score-tdep.c:
6750 * sh64-tdep.c:
6751 * skip.c:
6752 * solib-darwin.c:
6753 * solib-dsbt.c:
6754 * solib-frv.c:
6755 * sparc-tdep.c:
6756 * spu-multiarch.c:
6757 * spu-tdep.c:
6758 * stack.c:
6759 * symfile.c:
6760 * symtab.c:
6761 * tic6x-tdep.c:
6762 * tracepoint.c:
6763 * v850-tdep.c:
6764 * valarith.c:
6765 * valprint.c:
6766 * value.c:
6767 * xcoffread.c:
6768 * xtensa-tdep.c:
6769 * ada-lang.c:
6770 * ada-tasks.c:
6771 * ada-varobj.c:
6772 * amd64-darwin-tdep.c:
6773 * arm-symbian-tdep.c:
6774 * arm-tdep.c: Delete unused variables.
6775
6776 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6777
6778 Rename $ddir to $datadir.
6779 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6780 * auto-load.c (auto_load_safe_path_vec_update)
6781 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6782 * configure: Regenerate.
6783 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6784 Likewise. Remove the 'use $ddir' help string.
6785
6786 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6787
6788 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6789 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6790
6791 2012-05-18 Tom Tromey <tromey@redhat.com>
6792
6793 PR exp/13907:
6794 * valprint.h (struct value_print_options) <symbol_print>: New
6795 field.
6796 * valprint.c (user_print_options): Add default for symbol_print.
6797 (show_symbol_print): New function.
6798 (generic_val_print): Respect symbol_print.
6799 (_initialize_valprint): Add "print symbol" setting.
6800 * f-valprint.c (f_val_print): Respect symbol_print.
6801 * c-valprint.c (c_val_print): Respect symbol_print.
6802 * NEWS: Update.
6803 * printcmd.c (print_address_symbolic): Return int. Ignore some
6804 zero-size symbols.
6805 (print_address_demangle): Return int.
6806 * defs.h: (print_address_symbolic): Return int.
6807 * value.h (print_address_demangle): Return int.
6808
6809 2012-05-18 Tom Tromey <tromey@redhat.com>
6810
6811 * valprint.c (val_print_string): Don't print leading space.
6812 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6813 print space before string or vtbl.
6814 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6815 before string.
6816 * jv-valprint.c (java_value_print): Print space before string.
6817 * go-valprint.c (print_go_string): Print space before string.
6818 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6819 space before string.
6820 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6821 space before string or vtbl.
6822 * auxv.c (fprint_target_auxv): Print space after address.
6823
6824 2012-05-18 Tom Tromey <tromey@redhat.com>
6825
6826 * printcmd.c (print_address_demangle): Remove special case for 0.
6827
6828 2012-05-18 Tom Tromey <tromey@redhat.com>
6829
6830 * printcmd.c (print_address_demangle): Add 'opts' argument.
6831 * p-valprint.c (pascal_val_print): Update.
6832 * jv-valprint.c (java_val_print): Update.
6833 * value.h: Update.
6834 * valprint.c (generic_val_print): Update.
6835 (print_function_pointer_address): Add 'options' argument. Remove
6836 'addressprint' argument. Update.
6837 * m2-valprint.c (print_unpacked_pointer): Update.
6838 * gnu-v3-abi.c (print_one_vtable): Update.
6839 (gnuv3_print_method_ptr): Update.
6840 * f-valprint.c (f_val_print): Update.
6841 * cp-valprint.c (cp_print_value_fields): Update.
6842 * valprint.h (print_function_pointer_address): Update.
6843 * c-valprint.c (c_val_print): Update.
6844
6845 2012-05-18 Tom Tromey <tromey@redhat.com>
6846
6847 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6848 directly corresponding to the found psymtab.
6849 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6850 (dw2_find_pc_sect_symtab): Use it.
6851 * block.h (blockvector_contains_pc): Declare.
6852 * block.c (find_block_in_blockvector): New function.
6853 (blockvector_for_pc_sect): Use it.
6854 (blockvector_contains_pc): New function.
6855
6856 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6857
6858 * mips-tdep.h (mips_write_pc): New prototype.
6859 * mips-tdep.c (mips_write_pc): Make external, add description.
6860 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6861 add description.
6862
6863 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6864
6865 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6866 mips_regnum->pc.
6867 (mips_unwind_pc, mips_write_pc): Likewise.
6868 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6869 gdbarch_read_pc.
6870
6871 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6872
6873 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6874 proc_warn, proc_error, proc_get_status, proc_flags,
6875 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6876 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6877 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6878 proc_stop_process, proc_wait_for_stop, proc_run_process,
6879 proc_set_traced_signals, proc_set_traced_faults,
6880 proc_set_traced_sysentry, proc_set_traced_sysexit,
6881 proc_set_held_signals, proc_get_held_signals,
6882 proc_get_traced_signals, proc_get_traced_faults,
6883 proc_get_traced_sysentry, proc_get_traced_sysexit,
6884 proc_clear_current_fault, proc_set_current_signal,
6885 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6886 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6887 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6888 proc_get_current_thread, proc_get_current_thread,
6889 proc_get_current_thread, proc_update_threads,
6890 proc_update_threads, proc_update_threads, proc_update_threads,
6891 proc_iterate_over_threads, procfs_find_new_threads,
6892 procfs_pid_to_str): Make static. Remove advance declaration.
6893 (proc_cursig): Make static. Conditionalized defintion on
6894 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6895 (proc_syscall, proc_set_kill_on_last_close,
6896 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6897 proc_get_pending_signals, proc_get_signal_actions,
6898 proc_trace_signal, proc_ignore_signal): Delete.
6899
6900 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6901
6902 * coffread.c (cs_section_address): Passing proper argument for
6903 `bfd_get_section_vma'.
6904 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6905 `bfd_get_section_flags'.
6906 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6907 `bfd_get_section_vma'.
6908
6909 2012-05-16 Tom Tromey <tromey@redhat.com>
6910
6911 PR macros/13205:
6912 * macrotab.h: (macro_define_special): Declare.
6913 (enum macro_special_kind): New.
6914 (struct macro_definition) <argc, replacement>: Update comments.
6915 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6916 (macro_define_object_internal): New function.
6917 (macro_define_object): Use it.
6918 (macro_define_special): New function.
6919 (fixup_definition): New function.
6920 (macro_lookup_definition, foreach_macro_in_scope)
6921 (foreach_macro): Use fixup_definition.
6922 * macroexp.h (macro_stringify): Declare.
6923 * macroexp.c (free_buffer_return_text): New function.
6924 (stringify): Constify "arg".
6925 (macro_stringify): New function.
6926 * dwarf2read.c (macro_start_file): Call macro_define_special.
6927
6928 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6929 Maciej W. Rozycki <macro@mips.com>
6930
6931 * breakpoint.h (bp_location): Add related_address member.
6932 * inferior.h (get_return_value): Take a pointer to struct value
6933 instead of struct type for the function requested.
6934 * value.h (using_struct_return): Likewise.
6935 * gdbarch.sh (return_value): Take a pointer to struct value
6936 instead of struct type for the function requested.
6937 * breakpoint.c (set_breakpoint_location_function): Initialize
6938 related_address for bp_gnu_ifunc_resolver breakpoints.
6939 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6940 requested function's address to gdbarch_return_value.
6941 * eval.c (evaluate_subexp_standard): Pass the requested
6942 function's address to using_struct_return.
6943 * infcall.c (call_function_by_hand): Pass the requested
6944 function's address to using_struct_return and
6945 gdbarch_return_value.
6946 * infcmd.c (get_return_value): Take a pointer to struct value
6947 instead of struct type for the function requested.
6948 (print_return_value): Update accordingly.
6949 (finish_command_continuation): Likewise.
6950 * stack.c (return_command): Pass the requested function's
6951 address to using_struct_return and gdbarch_return_value.
6952 * value.c (using_struct_return): Take a pointer to struct value
6953 instead of struct type for the function requested. Pass the
6954 requested function's address to gdbarch_return_value.
6955 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6956 New function_value member, replacing function_type.
6957 (bpfinishpy_dealloc): Update accordingly.
6958 (bpfinishpy_pre_stop_hook): Likewise.
6959 (bpfinishpy_init): Likewise. Record the requested function's
6960 address.
6961 * mips-tdep.c (mips_fval_reg): New enum.
6962 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6963 words put in GP registers.
6964 (mips_o64_push_dummy_call): Update a comment.
6965 (mips_o32_return_value): Take a pointer to struct value instead
6966 of struct type for the function requested and use it to check if
6967 using the MIPS16 calling convention. Return the designated
6968 general purpose registers for floating-point values returned in
6969 MIPS16 mode.
6970 (mips_o64_return_value): Likewise.
6971 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6972 (ppc_sysv_abi_broken_return_value): Likewise.
6973 (ppc64_sysv_abi_return_value): Likewise.
6974 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6975 value instead of struct type for the function requested.
6976 * amd64-tdep.c (amd64_return_value): Likewise.
6977 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6978 * arm-tdep.c (arm_return_value): Likewise.
6979 * avr-tdep.c (avr_return_value): Likewise.
6980 * bfin-tdep.c (bfin_return_value): Likewise.
6981 * cris-tdep.c (cris_return_value): Likewise.
6982 * frv-tdep.c (frv_return_value): Likewise.
6983 * h8300-tdep.c (h8300_return_value): Likewise.
6984 (h8300h_return_value): Likewise.
6985 * hppa-tdep.c (hppa32_return_value): Likewise.
6986 (hppa64_return_value): Likewise.
6987 * i386-tdep.c (i386_return_value): Likewise.
6988 * ia64-tdep.c (ia64_return_value): Likewise.
6989 * iq2000-tdep.c (iq2000_return_value): Likewise.
6990 * lm32-tdep.c (lm32_return_value): Likewise.
6991 * m32c-tdep.c (m32c_return_value): Likewise.
6992 * m32r-tdep.c (m32r_return_value): Likewise.
6993 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6994 * m68k-tdep.c (m68k_return_value): Likewise.
6995 (m68k_svr4_return_value): Likewise.
6996 * m88k-tdep.c (m88k_return_value): Likewise.
6997 * mep-tdep.c (mep_return_value): Likewise.
6998 * microblaze-tdep.c (microblaze_return_value): Likewise.
6999 * mn10300-tdep.c (mn10300_return_value): Likewise.
7000 * moxie-tdep.c (moxie_return_value): Likewise.
7001 * mt-tdep.c (mt_return_value): Likewise.
7002 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7003 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7004 (ppc_sysv_abi_broken_return_value): Likewise.
7005 (ppc64_sysv_abi_return_value): Likewise.
7006 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7007 * rl78-tdep.c (rl78_return_value): Likewise.
7008 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7009 * rx-tdep.c (rx_return_value): Likewise.
7010 * s390-tdep.c (s390_return_value): Likewise.
7011 * score-tdep.c (score_return_value): Likewise.
7012 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7013 (sh_return_value_fpu): Likewise.
7014 * sh64-tdep.c (sh64_return_value): Likewise.
7015 * sparc-tdep.c (sparc32_return_value): Likewise.
7016 * sparc64-tdep.c (sparc64_return_value): Likewise.
7017 * spu-tdep.c (spu_return_value): Likewise.
7018 * tic6x-tdep.c (tic6x_return_value): Likewise.
7019 * v850-tdep.c (v850_return_value): Likewise.
7020 * vax-tdep.c (vax_return_value): Likewise.
7021 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7022 * xtensa-tdep.c (xtensa_return_value): Likewise.
7023 * gdbarch.c: Regenerate.
7024 * gdbarch.h: Regenerate.
7025
7026 2012-05-15 Tom Tromey <tromey@redhat.com>
7027
7028 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7029
7030 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7031
7032 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7033 of command in two error message.
7034
7035 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7036
7037 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7038
7039 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7040
7041 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7042
7043 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7044
7045 * NEWS (show auto-load scripts-directory): Add forgotten command.
7046
7047 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7048
7049 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7050 parameters.
7051
7052 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7053
7054 * amd64-tdep.c: Include features/i386/x32.c and
7055 features/i386/x32-avx.c.
7056 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7057 initialize_tdesc_x32_avx.
7058
7059 2012-05-14 Stan Shebs <stan@codesourcery.com>
7060
7061 Add dynamic printf.
7062 * breakpoint.h (enum bptype): New type bp_dprintf.
7063 (struct breakpoint): New field extra_string.
7064 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7065 (create_breakpoint): Add extra_string arg.
7066 * breakpoint.c (dprintf_breakpoint_ops): New.
7067 (is_breakpoint): Add bp_dprintf.
7068 (bpstat_what): Add dprintf case.
7069 (bptype_string): Ditto.
7070 (print_one_breakpoint_location): Ditto.
7071 (init_bp_location): Ditto.
7072 (bkpt_print_mention): Ditto.
7073 (dprintf_style_enums): New array.
7074 (dprintf_style): New global.
7075 (dprintf_function): New global.
7076 (dprintf_channel): New global.
7077 (update_dprintf_command_list): New function.
7078 (update_dprintf_commands): New function.
7079 (init_breakpoint_sal): Add extra_string argument, handle it.
7080 (create_breakpoint_sal): Add extra_string argument.
7081 (create_breakpoints_sal): Add extra_string argument, update callers.
7082 (find_condition_and_thread): Add extra argument.
7083 (create_breakpoint): Add extra_string argument, record it.
7084 (dprintf_command): New function.
7085 (break_command_1): Add arg to create_breakpoint call.
7086 (handle_gnu_v3_exceptions): Ditto.
7087 (trace_command): Ditto.
7088 (ftrace_command): Ditto.
7089 (strace_command): Ditto.
7090 (bkpt_print_mention): Add dprintf case.
7091 (create_breakpoint_sal_default): Add extra_string argument.
7092 (_initialize_breakpoint): Add new commands.
7093 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7094 * python/py-breakpoint.c (bppy_init): Ditto.
7095 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7096
7097 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7098
7099 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7100
7101 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7102
7103 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7104 unsigned long long.
7105
7106 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7107
7108 Add a new function gdb.find_pc_line to the Python API.
7109 * NEWS (Python Scripting): Add entry about the new function.
7110 * python/python.c (gdbpy_find_pc_line): New function which
7111 implements gdb.find_pc_line.
7112 (GdbMethods): Add entry for the new function.
7113
7114 2012-05-12 Pedro Alves <palves@redhat.com>
7115
7116 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7117 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7118
7119 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7120
7121 * inferior.c: Include completer.h
7122 (initialize_inferiors): Set completer of add-inferior to
7123 filename_completer.
7124
7125 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7126
7127 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7128 gdbarch_ptr_bit for x32 core dump.
7129
7130 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7131
7132 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7133 and features/i386/x32-avx-linux.c.
7134
7135 2012-05-11 Stan Shebs <stan@codesourcery.com>
7136 Kwok Cheung Yeung <kcy@codesourcery.com>
7137
7138 * NEWS: Describe new info os commands.
7139 * common/linux-osdata.c (PID_T, TIME_T): Define.
7140 (MAX_PID_T_STRLEN): New.
7141 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7142 MAX_PID_T_STRLEN.
7143 (command_from_pid): Add comment. Change to use PID_T.
7144 (commandline_from_pid): Change to use PID_T.
7145 (user_from_pid): Add comment.
7146 (get_process_owner): Add comment. Change to use PID_T and
7147 MAX_PID_T_STRLEN.
7148 (get_number_of_cpu_cores): Add comment.
7149 (get_cores_used_by_process): Add comment. Change to use PID_T and
7150 MAX_PID_T_STRLEN.
7151 (linux_xfer_osdata_processes): Change to use PID_T and
7152 MAX_PID_T_STRLEN.
7153 (compare_processes): New function.
7154 (linux_xfer_osdata_processgroups): New function.
7155 (linux_xfer_osdata_threads): Change to use PID_T.
7156 (linux_xfer_osdata_fds): New function.
7157 (format_socket_state, print_sockets): New functions.
7158 (union socket_addr): New union.
7159 (linux_xfer_osdata_isockets): New function.
7160 (time_from_time_t, group_from_gid): New functions.
7161 (linux_xfer_osdata_shm): New function.
7162 (linux_xfer_osdata_sem): New function.
7163 (linux_xfer_osdata_msg): New function.
7164 (linux_xfer_osdata_modules): New function.
7165 (osdata_table): Add new entries.
7166 * common/buffer.c (buffer_xml_printf): Add support for long and
7167 long long format specifiers.
7168
7169 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7170
7171 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7172 (tdesc_x32_avx_linux): Likewise.
7173
7174 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7175
7176 Implement multi-component --with-auto-load-dir.
7177 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7178 entries.
7179 (--with-auto-load-safe-path): Update the default value description.
7180 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7181 New.
7182 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7183 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7184 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7185 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7186 "set auto-load scripts-directory".
7187 * config.in: Regenerate.
7188 * configure: Regenerate.
7189 * configure.ac (--with-auto-load-dir): New configure option.
7190 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7191
7192 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7193
7194 Provide $ddir substitution for --with-auto-load-safe-path.
7195 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7196 entries.
7197 * auto-load.c: Include observer.h.
7198 (auto_load_safe_path_vec_update): Call substitute_path_component for
7199 each component. New variable ddir_subst.
7200 (auto_load_gdb_datadir_changed): New function.
7201 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7202 AUTO_LOAD_SAFE_PATH. New comment.
7203 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7204 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7205 * config.in: Regenerate.
7206 * configure: Regenerate.
7207 * configure.ac (--auto-load-safe-path): Rename
7208 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7209 GDB_DATADIR/auto-load.
7210 * defs.h (substitute_path_component): New declaration.
7211 * top.c: Include observer.h.
7212 (set_gdb_datadir): New function.
7213 (init_main): Install it for "set data-directory".
7214 * utils.c (substitute_path_component): New function.
7215
7216 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7217
7218 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7219 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7220 DEBUG_FILE_DIRECTORY. Handle multiple components of
7221 DEBUG_FILE_DIRECTORY.
7222
7223 2012-05-10 Tom Tromey <tromey@redhat.com>
7224
7225 * dwarf2read.c (recursively_write_psymbols): New function.
7226 (write_psymtabs_to_index): Use it.
7227
7228 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7229 field.
7230 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7231 (load_partial_comp_unit): Update.
7232 (queue_comp_unit): Add argument 'pretend_language'.
7233 (process_queue): Update.
7234 (psymtab_to_symtab_1): Skip dependencies that have a user.
7235 (load_partial_comp_unit_reader): Give meaning to the 'data'
7236 argument.
7237 (load_full_comp_unit): Add 'pretend_language' argument.
7238 (process_full_comp_unit): Add 'pretend_language' argument. Set
7239 language on CU.
7240 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7241 Update.
7242 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7243 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7244 Update.
7245 (prepare_one_comp_unit): Add 'pretend_language' argument.
7246
7247 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7248 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7249 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7250 (dw2_do_instantiate_symtab): Check whether symtab was read in
7251 before queueing.
7252 (dw2_instantiate_symtab): Add assertion. Call
7253 process_cu_includes.
7254 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7255 (partial_symtab_p): New typedef.
7256 (set_partial_user): New function.
7257 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7258 (scan_partial_symbols): Add imported CU to imported_symtabs.
7259 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7260 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7261 (get_symtab, recursively_compute_inclusions)
7262 (compute_symtab_includes, process_cu_includes)
7263 (process_imported_unit_die): New functions.
7264 (process_die) <DW_TAG_imported_unit>: New case.
7265 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7266
7267 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7268 comment.
7269 (struct partial_die_info) <locdesc>: Remove.
7270 <d>: New field.
7271 (process_psymtab_comp_unit): Add 'read_partial' argument.
7272 Update.
7273 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7274 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7275 (add_partial_symbol): Update.
7276 (process_die): Handle DW_TAG_partial_unit.
7277 (read_file_scope): Update comment.
7278 (load_partial_dies): Handle DW_TAG_imported_unit.
7279 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7280 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7281
7282 2012-05-10 Tom Tromey <tromey@redhat.com>
7283
7284 * cc-with-dwz.sh: New file.
7285
7286 2012-05-10 Tom Tromey <tromey@redhat.com>
7287
7288 * symtab.h (struct symtab) <includes, user>: New fields.
7289 * block.h (struct block_iterator) <d, idx, which>: New fields.
7290 * block.c (initialize_block_iterator, find_iterator_symtab)
7291 (block_iterator_step, block_iter_name_step)
7292 (block_iter_match_step): New functions.
7293 (block_iterator_first, block_iterator_next)
7294 (block_iter_name_first, block_iter_name_next)
7295 (block_iter_match_first, block_iter_match_next): Rewrite.
7296 (get_block_symtab): New function.
7297
7298 2012-05-10 Tom Tromey <tromey@redhat.com>
7299
7300 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7301 set_block_symtab.
7302 * jit.c (finalize_symtab): Use allocate_global_block,
7303 set_block_symtab.
7304 * buildsym.c (finish_block_internal): New function, from old
7305 finish_block.
7306 (finish_block): Rewrite.
7307 (end_symtab): Use finish_block_internal, set_block_symtab.
7308 * block.h (struct global_block): New.
7309 (allocate_global_block, set_block_symtab): Declare.
7310 * block.c (allocate_global_block, set_block_symtab): New
7311 functions.
7312
7313 2012-05-10 Tom Tromey <tromey@redhat.com>
7314
7315 * psymtab.c (partial_map_expand_apply): Add assertion.
7316 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7317 (psymtab_to_symtab): Find unshared psymtab.
7318 (dump_psymtab): Print including psymtabs.
7319 (recursively_search_psymtabs): New function.
7320 (expand_symtabs_matching_via_partial): Use it.
7321 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7322 fields.
7323 (enum psymtab_search_status): New.
7324
7325 2012-05-10 Tom Tromey <tromey@redhat.com>
7326
7327 * tracepoint.c (scope_info): Update.
7328 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7329 (find_pc_sect_symtab, search_symbols)
7330 (default_make_symbol_completion_list_break_on)
7331 (make_file_symbol_completion_list): Update.
7332 * symmisc.c (dump_symtab_1): Update.
7333 * stack.c (print_frame_args, iterate_over_block_locals)
7334 (print_frame_labels, iterate_over_block_arg_vars): Update.
7335 * python/py-block.c (block_object) <dict>: Remove.
7336 <block>: New field.
7337 <iter>: Change type.
7338 (blpy_iter): Update.
7339 (blpy_block_syms_iternext): Update.
7340 * psymtab.c (map_block): Use block iterators.
7341 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7342 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7343 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7344 * infrun.c (check_exception_resume): Update.
7345 * cp-support.c (make_symbol_overload_list_block): Update.
7346 * coffread.c (patch_opaque_types): Update.
7347 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7348 * block.h (struct block_iterator): New.
7349 (block_iterator_first, block_iterator_next, block_iter_name_first)
7350 (block_iter_name_next, block_iter_match_first)
7351 (block_iter_match_next): Declare.
7352 (ALL_BLOCK_SYMBOLS): Redefine.
7353 * block.c (block_iterator_first, block_iterator_next)
7354 (block_iter_name_first, block_iter_name_next)
7355 (block_iter_match_first, block_iter_match_next): New functions.
7356 * ada-lang.c (ada_add_block_symbols)
7357 (ada_make_symbol_completion_list): Use block iterator.
7358
7359 2012-05-10 Tom Tromey <tromey@redhat.com>
7360
7361 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7362 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7363 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7364 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7365 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7366 Update.
7367
7368 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7369
7370 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7371 print-file-var-lib2.c, print-file-var-main.c and
7372 print-file-var.exp (located in gdb/testsuite/gdb.base).
7373
7374 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7375
7376 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7377 try locating the symbol in the symbol's own objfile first, before
7378 extending the search to all objfiles.
7379 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7380 out of lookup_symbol_aux_symtabs.
7381 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7382 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7383 Do not search EXCLUDE_OBJFILE.
7384 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7385 (lookup_symbol_global): Search for matches in the block's objfile
7386 first, before searching all other objfiles.
7387
7388 2012-05-10 Tristan Gingold <gingold@adacore.com>
7389
7390 * printcmd.c (set_command): Add pre/post inc/dec.
7391
7392 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7393
7394 * gdb.1: Document -ex option.
7395
7396 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7397
7398 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7399 * inferior.h (AT_SYMBOL): Delete.
7400
7401 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7402
7403 * mips-tdep.c (mips_push_dummy_code): New function.
7404 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7405 ON_STACK and install mips_push_dummy_code as our gdbarch
7406 push_dummy_code routine.
7407
7408 2012-05-09 Pedro Alves <palves@redhat.com>
7409
7410 * target.c (set_maintenance_target_async_permitted): Rename to ...
7411 (set_target_async_command): ... this.
7412 (show_maintenance_target_async_permitted): Rename to ...
7413 (show_target_async_command): ... this.
7414 (initialize_targets): Adjust.
7415
7416 2012-05-08 Doug Evans <dje@google.com>
7417
7418 * go-exp.y (classify_name): Add missing assignment of fields of
7419 yylval.ssym.
7420
7421 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7422
7423 Display the ">" prompt in interactive mode while reading canned
7424 commands, even when the current interpreter is MI.
7425
7426 * interps.c (interp_set_temp): New function.
7427
7428 * interps.h (interp_set_temp): Add prototype.
7429
7430 * cli/cli-script.c (restore_interp): New cleanup function.
7431 (read_command_lines): Temporarily override the current interpreter
7432 with CLI and arrange for restoring the original one.
7433
7434 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7435
7436 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7437
7438 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7439
7440 * probe.c (parse_probes): Move conditional to check for
7441 debuginfo files from here...
7442 * stap-probe.c (stap_get_probes): ... to here.
7443
7444 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7445 H.J. Lu <hongjiu.lu@intel.com>
7446
7447 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7448 `movl %esp, %ebp' for the X32 ABI.
7449
7450 2012-05-07 Tom Tromey <tromey@redhat.com>
7451
7452 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7453 get_DW_TAG_name.
7454 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7455 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7456 (dwarf_stack_op_name): Remove.
7457 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7458 (decode_locdesc): Use get_DW_OP_name.
7459 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7460 (dwarf2_compile_expr_to_ax): Likewise.
7461 (disassemble_dwarf_expression): Likewise.
7462 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7463
7464 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7465
7466 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7467 (sh_linux_sigtramp_cache): New function.
7468 (sh_linux_sigreturn_init): New function.
7469 (sh_linux_rt_sigreturn_init): New function.
7470 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7471 patterns.
7472 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7473 syscall codes.
7474 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7475 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7476 (sh_linux_init_abi): Add init calls to register new tramp_frame
7477 definitions under 32-bit SH, update comments.
7478
7479 2012-05-07 Pedro Alves <palves@redhat.com>
7480
7481 PR gdb/10952
7482
7483 * amd64-linux-tdep.c: Include glibc-tdep.h.
7484 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7485 gdbarch_skip_solib_resolver callback.
7486
7487 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7488
7489 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7490 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7491 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7492 (add_auto_load_safe_path): Change the error message.
7493 (_initialize_auto_load): Change the "safe-path" help text.
7494 * configure: Regenerate
7495 * configure.ac (--without-auto-load-safe-path): Set
7496 WITH_AUTO_LOAD_SAFE_PATH to /.
7497
7498 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7499
7500 * stap-probe.h: Do not include unecessary `probe.h'.
7501
7502 2012-05-05 Alan Modra <amodra@gmail.com>
7503
7504 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7505 bfd_und_section_ptr.
7506 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7507 and bfd_com_section_ptr.
7508
7509 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7510
7511 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7512
7513 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7514
7515 * windows-nat.h (segment_register_p_ftype): New typedef.
7516 (windows_set_segment_register_p): Add declaration.
7517 * windows-nat.c (segment_register_p): New static global.
7518 (windows_set_segment_register_p): New function.
7519 (do_windows_fetch_inferior_registers): Add special handling
7520 for segment registers.
7521 * amd64-windows-nat.c: #include "amd64-tdep.h".
7522 (amd64_windows_segment_register_p): New function.
7523 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7524 * i386-windows-nat.c: #include "i386-tdep.h".
7525 (i386_windows_segment_register_p): New function.
7526 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7527
7528 2012-05-04 Tristan Gingold <gingold@adacore.com>
7529
7530 * printcmd.c (set_command): Emit a warning if the expression is not
7531 an assignment.
7532
7533 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7534
7535 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7536 Make static.
7537
7538 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7539
7540 * stap-probe.c (stap_is_operator): Change declaration.
7541 (stap_get_opcode): Change return value.
7542 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7543 `stap_parse_argument_1'.
7544
7545 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7546
7547 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7548 debug log.
7549
7550 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7551
7552 Add two new methods global_block and static_block to gdb.Symtab
7553 objects.
7554 * NEWS (Python scripting): Add entry about the new methods.
7555 * python/py-symtab.c (stpy_global_block): New function which
7556 implements the gdb.Symtab.global_block() method.
7557 (stpy_static_block): New function which implements the
7558 gdb.Symtab.static_block() method.
7559 (symtab_object_methods): Add entries for the two new methods.
7560
7561 2012-05-03 Doug Evans <dje@google.com>
7562
7563 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7564 files.
7565
7566 2012-05-03 Yao Qi <yao@codesourcery.com>
7567
7568 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7569 space.
7570 (i386_process_record): Ditto.
7571
7572 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7573
7574 * infcall.c (unwind_on_signal_p): Make static.
7575
7576 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7577
7578 * sol-thread.c (solaris_pid_to_str): Make static.
7579 (_initialize_sol_thread): Add prototype.
7580
7581 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7582
7583 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7584
7585 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7586
7587 * MAINTAINERS: Remove myself.
7588
7589 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7590
7591 Fix --without-auto-load-safe-path for MS-Windows host platform.
7592 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7593
7594 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7595
7596 * gdb_curses.h: Undefine KEY_EVENT before including curses
7597 headers. Move "#undef MOUSE_MOVED" before any curses header
7598 inclusion.
7599
7600 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7601
7602 * features/i386/i386-mmx-linux.c: Regenerate.
7603 * features/rs6000/powerpc-32.c: Likewise.
7604 * features/rs6000/powerpc-32l.c: Likewise.
7605 * features/rs6000/powerpc-403.c: Likewise.
7606 * features/rs6000/powerpc-403gc.c: Likewise.
7607 * features/rs6000/powerpc-405.c: Likewise.
7608 * features/rs6000/powerpc-505.c: Likewise.
7609 * features/rs6000/powerpc-601.c: Likewise.
7610 * features/rs6000/powerpc-602.c: Likewise.
7611 * features/rs6000/powerpc-603.c: Likewise.
7612 * features/rs6000/powerpc-604.c: Likewise.
7613 * features/rs6000/powerpc-64.c: Likewise.
7614 * features/rs6000/powerpc-64l.c: Likewise.
7615 * features/rs6000/powerpc-750.c: Likewise.
7616 * features/rs6000/powerpc-860.c: Likewise.
7617 * features/rs6000/powerpc-e500.c: Likewise.
7618 * features/rs6000/powerpc-e500l.c: Likewise.
7619 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7620 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7621 * features/rs6000/rs6000.c: Likewise.
7622
7623 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7624
7625 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7626 variable.
7627 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7628 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7629 (stap_parse_argument) <e>: Likewise.
7630 (handle_stap_probe) <byte_order>: Likewise.
7631
7632 2012-04-30 Doug Evans <dje@google.com>
7633
7634 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7635 init_and_read_dies_worker. All callers updated.
7636 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7637 replaced with init_cutu_and_read_dies.
7638 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7639 (find_partial_die): Remove FIXME. Don't free current CU.
7640
7641 2012-04-30 Sterling Augustine <saugustine@google.com>
7642
7643 * contrib: New directory.
7644 * contrib/test_pubnames_and_indexes.py: New file.
7645
7646 2012-04-30 Doug Evans <dje@google.com>
7647
7648 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7649 All callers updated.
7650 (init_cu_die_reader): Verify the section is non-empty.
7651 (dwarf_decode_line_header): Don't dereference section->asection
7652 until we know the section is present.
7653
7654 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7655
7656 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7657 probes.
7658
7659 2012-04-29 Yao Qi <yao@codesourcery.com>
7660
7661 * gdb-code-style.el: New hook gdb-markup-hook
7662 and gdb-comment-hook.
7663
7664 2012-04-28 Doug Evans <dje@google.com>
7665
7666 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7667 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7668 objfile->obfd.
7669 * symfile.h (dwarf2_debug_sections): New member addr.
7670 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7671 (ctx_no_get_addr_index): New function.
7672 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7673 (ctx_no_get_addr_index): Declare.
7674 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7675 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7676 (dwarf_expr_ctx_funcs): Update.
7677 (needs_get_addr_index): New function.
7678 (needs_frame_ctx_funcs): Update.
7679 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7680 * dwarf2read.c: #include "gdbcore.h".
7681 (dwarf2_per_objfile): New members addr, dwo_files.
7682 (dwarf2_elf_names): Add entry for addr.
7683 (struct dwo_section_names): New type.
7684 (dwo_section_names): New static global.
7685 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7686 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7687 old debug_types_section member updated to use this.
7688 Rename member debug_types_section to info_or_types_section,
7689 all uses updated.
7690 (signatured_type): Rename member type_offset to type_offset_in_tu,
7691 all uses updated. New member type_offset_in_section.
7692 (struct dwo_sections): New type.
7693 (struct dwo_unit): New type.
7694 (struct dwo_file): New type.
7695 (die_reader_specs): New member dwo_file.
7696 (dwarf2_locate_sections): Watch for .debug_addr.
7697 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7698 (dwarf2_read_section): Get bfd of section from bfd's asection,
7699 instead of objfile.
7700 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7701 (create_signatured_type_table_from_index): Initialize
7702 sig_type->info_or_types_section.
7703 (dw2_get_file_names): Statement lists for type units with DWO files
7704 live in the DWO file.
7705 (create_debug_types_hash_table): New function.
7706 (create_all_type_units): Rewrite.
7707 (init_cu_die_reader): New arg dwo_file, all callers updated.
7708 (init_and_read_dies_worker): Get section from
7709 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7710 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7711 continue reading the CU/TU from there.
7712 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7713 updated. Get section from this_cu->info_or_types_section.
7714 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7715 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7716 DW_FORM_GNU_str_index.
7717 (hash_dwo_file, eq_dwo_file): New functions.
7718 (allocate_dwo_file_hash_table): New function.
7719 (hash_dwo_unit, eq_dwo_unit): New functions.
7720 (allocate_dwo_unit_table): New function.
7721 (dwarf2_locate_dwo_sections): New function.
7722 (struct create_dwo_info_table_data): New type.
7723 (create_debug_info_hash_table_reader): New function.
7724 (create_debug_info_hash_table): New function.
7725 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7726 (lookup_dwo_file): New function.
7727 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7728 (free_dwo_file, free_dwo_file_cleanup): New functions.
7729 (free_dwo_file_from_slot, free_dwo_files): New functions.
7730 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7731 (dwarf2_record_block_ranges): Ditto.
7732 (read_partial_die): Ditto.
7733 (process_enumeration_scope): Update to use type_offset_in_section.
7734 (read_full_die_1): New function.
7735 (read_full_die): Rewrite.
7736 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7737 DW_FORM_GNU_str_index.
7738 (read_addr_index_1, read_addr_index): New functions.
7739 (read_addr_index_from_leb128): New function.
7740 (struct dwarf2_read_addr_index_data): New type.
7741 (dwarf2_read_addr_index_reader): New function.
7742 (dwarf2_read_addr_index): New function.
7743 (read_str_index): New function.
7744 (leb128_size): New function.
7745 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7746 If processing a type unit from a DWO file, get the line section
7747 from the DWO file.
7748 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7749 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7750 DW_FORM_GNU_str_index.
7751 (lookup_die_type): Check whether section offset of type's die is
7752 known before looking it up. Remove assert. Condition can
7753 legimately happen for inter-cu type references.
7754 (dwarf_attr_name): Handle Fission attributes.
7755 (dwarf_form_name): Handle Fission forms.
7756 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7757 DW_FORM_GNU_str_index.
7758 (follow_die_sig): Update to use type_offset_in_section.
7759 (decode_locdesc): New case DW_OP_GNU_addr_index.
7760 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7761 DW_FORM_GNU_str_index.
7762 (cu_debug_loc_section): New function.
7763 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7764 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7765 Free DWO files if present.
7766 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7767
7768 Refactor DIE reading.
7769 * dwarf2read.c (dwarf2_per_objfile): Replace members
7770 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7771 (die_reader_specs): New member "die_section". Temporarily make
7772 member "buffer" non-const, pending constifying all info_ptr uses.
7773 (die_reader_func_ftype): New typedef.
7774 (dw2_get_file_names_reader): New function.
7775 (dw2_get_file_names): Rewrite.
7776 (read_and_check_type_unit_head): Rename arg type_offset to
7777 type_offset_in_tu.
7778 (create_all_type_units): Improve debugging message.
7779 Improve dummy type unit check.
7780 (init_cu_die_reader): New arg "section". All callers updated.
7781 (init_and_read_dies_worker): New function.
7782 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7783 (init_cutu_and_read_dies_no_follow): New function.
7784 (init_cutu_and_read_dies_simple): New function.
7785 (process_psymtab_comp_unit_reader): New function.
7786 (process_psymtab_comp_unit): Delete args section,
7787 is_debug_types_section. Rewrite. All callers updated.
7788 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7789 All callers updated. Rewrite.
7790 (load_partial_comp_unit_reader): New function.
7791 (load_partial_comp_unit): Rewrite.
7792 (skip_children): New arg reader. Delete args buffer, cu.
7793 All callers updated.
7794 (skip_one_die): New arg reader. Delete args buffer, cu.
7795 All callers updated.
7796 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7797 All callers updated.
7798 (load_full_comp_unit_reader): New function.
7799 (load_full_comp_unit): Rewrite.
7800 (read_comp_unit): Delete.
7801 (read_die_and_children_1): Delete, contents moved ...
7802 (read_die_and_children): ... here.
7803 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7804 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7805 All callers updated.
7806 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7807 All callers updated.
7808 (find_partial_die): Rewrite load_all_dies support.
7809 (read_attribute_value): New arg reader. Delete args abfd, cu.
7810 All callers updated.
7811 (read_attribute): New arg reader. Delete args abfd, cu.
7812 All callers updated.
7813 (load_full_type_unit): Add assert.
7814 (read_signatured_type_reader): New function.
7815 (read_signatured_type): Rewrite.
7816 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7817 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7818 All callers updated. Set per_cu->cu = NULL after freeing it.
7819 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7820 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7821 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7822 (set_die_type): Update.
7823 (get_die_type_at_offset): Update.
7824 (read_file_scope): Call prepare_one_comp_unit.
7825 (read_type_unit_scope): Ditto.
7826 (prepare_one_comp_unit): Set producer if present.
7827
7828 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7829
7830 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7831 gettext function on `error'.
7832
7833 2012-04-27 Doug Evans <dje@google.com>
7834
7835 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7836 is empty.
7837
7838 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7839 Tom Tromey <tromey@redhat.com>
7840
7841 * breakpoint.c (struct breakpoint_objfile_data)
7842 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7843 <exception_probes>: New fields.
7844 (free_breakpoint_probes): New function.
7845 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7846 `_Unwind_DebugHook'.
7847 (create_exception_master_breakpoint): Likewise.
7848 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7849 * infrun.c: Including necessary header files for handling SystemTap
7850 probes.
7851 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7852 via SystemTap probes.
7853 (check_exception_resume): Remove `func' argument. Handle exception
7854 unwinding breakpoint set via a SystemTap probe.
7855 (insert_exception_resume_from_probe): New function.
7856
7857 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7858 Tom Tromey <tromey@redhat.com>
7859 Jan Kratochvil <jan.kratochvil@redhat.com>
7860
7861 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7862 (COMMON_OBS): Likewise.
7863 (HFILES_NO_SRCDIR): Add `probe'.
7864 * NEWS: Mention support for static and SystemTap probes.
7865 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7866 SystemTap probes' arguments parser.
7867 * arm-linux-tdep.c: Including headers needed to perform the parsing
7868 of SystemTap probes' arguments.
7869 (arm_stap_is_single_operand): New function.
7870 (arm_stap_parse_special_token): Likewise.
7871 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7872 probes' arguments parser.
7873 * ax-gdb.c (require_rvalue): Removing static declaration.
7874 (gen_expr): Likewise.
7875 * ax-gdb.h (gen_expr): Declaring function.
7876 (require_rvalue): Likewise.
7877 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7878 (bkpt_probe_breakpoint_ops): New variable.
7879 (momentary_breakpoint_from_master): Set the `probe' value.
7880 (add_location_to_breakpoint): Likewise.
7881 (break_command_1): Using proper breakpoint_ops according to the
7882 argument passed by the user in the command line.
7883 (bkpt_probe_insert_location): New function.
7884 (bkpt_probe_remove_location): Likewise.
7885 (bkpt_probe_create_sals_from_address): Likewise.
7886 (bkpt_probe_decode_linespec): Likewise.
7887 (tracepoint_probe_create_sals_from_address): Likewise.
7888 (tracepoint_probe_decode_linespec): Likewise.
7889 (tracepoint_probe_breakpoint_ops): New variable.
7890 (trace_command): Using proper breakpoint_ops according to the
7891 argument passed by the user in the command line.
7892 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7893 static probes on breakpoints and tracepoints.
7894 * breakpoint.h (struct bp_location) <probe>: New field.
7895 * cli-utils.c (skip_spaces_const): New function.
7896 (extract_arg): Likewise.
7897 * cli-utils.h (skip_spaces_const): Likewise.
7898 (extract_arg): Likewise.
7899 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7900 * configure.ac: Append `stap-probe.o' to be generated when ELF
7901 support is present.
7902 * configure: Regenerate.
7903 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7904 * elfread.c: Include `probe.h' and `arch-utils.h'.
7905 (probe_key): New variable.
7906 (elf_get_probes): New function.
7907 (elf_get_probe_argument_count): Likewise.
7908 (elf_evaluate_probe_argument): Likewise.
7909 (elf_compile_to_ax): Likewise.
7910 (elf_symfile_relocate_probe): Likewise.
7911 (stap_probe_key_free): Likewise.
7912 (elf_probe_fns): New variable.
7913 (elf_sym_fns): Add `sym_probe_fns' value.
7914 (elf_sym_fns_lazy_psyms): Likewise.
7915 (elf_sym_fns_gdb_index): Likewise.
7916 (_initialize_elfread): Initialize objfile cache for static
7917 probes.
7918 * gdb_vecs.h (struct probe): New forward declaration.
7919 (probe_p): New VEC declaration.
7920 * gdbarch.c: Regenerate.
7921 * gdbarch.h: Regenerate.
7922 * gdbarch.sh (stap_integer_prefix): New variable.
7923 (stap_integer_suffix): Likewise.
7924 (stap_register_prefix): Likewise.
7925 (stap_register_suffix): Likewise.
7926 (stap_register_indirection_prefix): Likewise.
7927 (stap_register_indirection_suffix): Likewise.
7928 (stap_gdb_register_prefix): Likewise.
7929 (stap_gdb_register_suffix): Likewise.
7930 (stap_is_single_operand): New function.
7931 (stap_parse_special_token): Likewise.
7932 (struct stap_parse_info): Forward declaration.
7933 * i386-tdep.c: Including headers needed to perform the parsing
7934 of SystemTap probes' arguments.
7935 (i386_stap_is_single_operand): New function.
7936 (i386_stap_parse_special_token): Likewise.
7937 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7938 probes' arguments parser.
7939 * i386-tdep.h (i386_stap_is_single_operand): New function.
7940 (i386_stap_parse_special_token): Likewise.
7941 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7942 * mipsread.c (ecoff_sym_fns): Likewise.
7943 * objfiles.c (objfile_relocate1): Support relocation for static
7944 probes.
7945 * parse.c (prefixify_expression): Remove static declaration.
7946 (initialize_expout): Likewise.
7947 (reallocate_expout): Likewise.
7948 * parser-defs.h (initialize_expout): Declare function.
7949 (reallocate_expout): Likewise.
7950 (prefixify_expression): Likewise.
7951 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7952 of SystemTap probes' arguments.
7953 (ppc_stap_is_single_operand): New function.
7954 (ppc_stap_parse_special_token): Likewise.
7955 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7956 probes' arguments parser.
7957 * probe.c: New file, for generic statically defined probe support.
7958 * probe.h: Likewise.
7959 * s390-tdep.c: Including headers needed to perform the parsing of
7960 SystemTap probes' arguments.
7961 (s390_stap_is_single_operand): New function.
7962 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7963 probes' arguments parser.
7964 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7965 * stap-probe.c: New file, for SystemTap probe support.
7966 * stap-probe.h: Likewise.
7967 * symfile.h: Include `gdb_vecs.h'.
7968 (struct sym_probe_fns): New struct.
7969 (struct sym_fns) <sym_probe_fns>: New field.
7970 * symtab.c (init_sal): Initialize `probe' field.
7971 * symtab.h (struct probe): Forward declaration.
7972 (struct symtab_and_line) <probe>: New field.
7973 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7974 locations.
7975 (stop_tracing): Likewise.
7976 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7977
7978 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7979 Tom Tromey <tromey@redhat.com>
7980
7981 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7982 and to compile agent expressions.
7983 * infrun.c (siginfo_make_value): New argument `ignore'.
7984 (siginfo_funcs): New struct.
7985 (_initialize_infrun): New argument when calling
7986 `create_internalvar_type_lazy'.
7987 * thread.c (thread_id_make_value): New argument `ignore'.
7988 (thread_funcs): New struct.
7989 (_initialize_thread): New argument when calling
7990 `create_internalvar_type_lazy'.
7991 * tracepoint.c (sdata_make_value): New argument `ignore'.
7992 (sdata_funcs): New struct.
7993 (_initialize_tracepoint): New argument when calling
7994 `create_internalvar_type_lazy'.
7995 * value.c (make_value): New struct.
7996 (create_internalvar_type_lazy): New argument `data'.
7997 (compile_internalvar_to_ax): New function.
7998 (value_of_internalvar): Properly handling `make_value' case.
7999 (clear_internalvar): Likewise.
8000 (show_convenience): Adding `TRY_CATCH' block.
8001 * value.h (internalvar_make_value): Delete, replace by...
8002 (struct internalvar_funcs): ... this.
8003 (create_internalvar_type_lazy) <fun>: Delete argument.
8004 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8005 (compile_internalvar_to_ax): New function.
8006 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8007 (tlb_funcs): New struct.
8008 (_initialize_windows_tdep): New argument when calling
8009 `create_internalvar_type_lazy'.
8010
8011 2012-04-27 Mark Wielaard <mjw@redhat.com>
8012
8013 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8014 see whether it is an address or a constant offset from DW_AT_low_pc.
8015 (dwarf2_record_block_ranges): Likewise.
8016 (read_partial_die): Likewise.
8017
8018 2012-04-26 Mark Wielaard <mjw@redhat.com>
8019
8020 * MAINTAINERS (Write After Approval): Add myself to the list.
8021
8022 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8023
8024 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8025 (proc_prettyprint_signal): Likewise.
8026 (proc_prettyprint_faultset): Likewise.
8027 (proc_prettyprint_fault): Likewise.
8028 (proc_prettyprint_actionset): Likewise.
8029 (proc_prettyprint_flags): Move to new proc-flags.c section.
8030 (proc_prettyfprint_flags): New prototype.
8031 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8032 (proc_syscall, proc_cursig): Likewise.
8033 (proc_set_kill_on_last_close): Likewise.
8034 (proc_unset_kill_on_last_close): Likewise.
8035 (proc_set_watchpoint): Make static.
8036 (proc_delete_dead_threads): Likewise.
8037 (procfs_set_watchpoint): Likewise.
8038 (_initialize_procfs): Add prototype.
8039 * proc-events.c: Include proc-utils.h.
8040 (init_syscall_table): Make static.
8041 * proc-api.c (_initialize_proc_api): Add prototype.
8042 * proc-flags.c: Include proc-utils.h.
8043
8044 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8045
8046 * configure.ac: Add AC_ARG_PROGRAM.
8047 * configure: Regenerate.
8048
8049 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8050
8051 Fix DW_AT_lower_bound defaults for DWARF-4+.
8052 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8053 high. New variable low_default_is_valid. Implement DWARF-4+
8054 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8055 no default by the DWARF standard.
8056
8057 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8058 Maciej W. Rozycki <macro@codesourcery.com>
8059
8060 * infrun.c (handle_inferior_event): Move the check for return
8061 trampolines ahead of the check for function trampolines.
8062 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8063 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8064 (mips_str_mips16_ret_stub): Likewise.
8065 (mips_str_call_fp_stub): Likewise.
8066 (mips_str_call_stub): Likewise.
8067 (mips_str_fn_stub): Likewise.
8068 (mips_str_pic): Likewise.
8069 (mips_in_frame_stub): New function.
8070 (mips_unwind_pc): Return the return address rather than the PC
8071 if the PC of an intermediate frame is inside a call thunk.
8072 (mips_is_stub_suffix): New function.
8073 (mips_is_stub_mode): Likewise.
8074 (mips_get_mips16_fn_stub_pc): Likewise.
8075 (mips_skip_mips16_trampoline_code): Update to handle all the
8076 currently generated stub types. Don't recurse into __fn_stub
8077 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8078 Use cooked register accesses.
8079 (mips_in_return_stub): Reintroduce function.
8080 (mips_skip_trampoline_code): Traverse trampolines recursively.
8081 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8082
8083 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8084
8085 GDB 7.4.1 released.
8086
8087 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8088
8089 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8090 * features/arm-with-m-vfp-d16.xml: New file. Describes
8091 Cortex-M with VFPv4-sp-d16 FPU register layout.
8092 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8093 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8094 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8095 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8096 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8097
8098 2012-04-25 Doug Evans <dje@google.com>
8099
8100 * cli/cli-decode.c (print_doc_line): Use stream instead of
8101 current_uiout.
8102
8103 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8104
8105 * features/arm-with-iwmmxt.c: Regenerate.
8106 * features/arm-with-m-fpa-layout.c: Likewise.
8107 * features/arm-with-m.c: Likewise.
8108 * features/arm-with-neon.c: Likewise.
8109 * features/arm-with-vfpv2.c: Likewise.
8110 * features/arm-with-vfpv3.c: Likewise.
8111 * features/mips-dsp-linux.c: Likewise.
8112 * features/mips-linux.c: Likewise.
8113 * features/mips64-dsp-linux.c: Likewise.
8114 * features/mips64-linux.c: Likewise.
8115 * features/s390-linux32.c: Likewise.
8116 * features/s390-linux32v1.c: Likewise.
8117 * features/s390-linux32v2.c: Likewise.
8118 * features/s390-linux64.c: Likewise.
8119 * features/s390-linux64v1.c: Likewise.
8120 * features/s390-linux64v2.c: Likewise.
8121 * features/s390x-linux64.c: Likewise.
8122 * features/s390x-linux64v1.c: Likewise.
8123 * features/s390x-linux64v2.c: Likewise.
8124 * features/tic6x-c62x-linux.c: Likewise.
8125 * features/tic6x-c62x.c: Likewise.
8126 * features/tic6x-c64x-linux.c: Likewise.
8127 * features/tic6x-c64x.c: Likewise.
8128 * features/tic6x-c64xp-linux.c: Likewise.
8129 * features/tic6x-c64xp.c: Likewise.
8130 * target-descriptions.c: Only generate `field_type' and `type'
8131 variables when needed.
8132
8133 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8134
8135 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8136
8137 2012-04-25 Doug Evans <dje@google.com>
8138
8139 Initial pass at Go language support.
8140 * NEWS: Mention Go.
8141 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8142 go-valprint.c.
8143 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8144 (YYFILES): Add go-exp.c.
8145 (YYOBJ): Add go-exp.o.
8146 (local-maintainer-clean): Delete go-exp.c.
8147 * defs.h (enum language): Add language_go.
8148 * dwarf2read.c: #include "go-lang.h".
8149 (fixup_go_packaging): New function.
8150 (process_full_comp_unit): Call it when processing Go CUs.
8151 (dwarf2_physname): Add Go support.
8152 (read_file_scope): Handle missing language spec for GNU Go.
8153 (set_cu_language): Handle DW_LANG_Go.
8154 * go-exp.y: New file.
8155 * go-lang.h: New file.
8156 * go-lang.c: New file.
8157 * go-typeprint.c: New file.
8158 * go-valprint.c: New file.
8159 * symtab.c: #include "go-lang.h".
8160 (symbol_set_language): Handle language_go.
8161 (symbol_find_demangled_name, symbol_set_names): Ditto.
8162 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8163
8164 2012-04-24 Jim Meyering <meyering@redhat.com>
8165
8166 avoid a few strncpy-induced buffer overruns
8167 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8168 fname and psargs before trying to concatenate.
8169 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8170 "name" before applying strchr.
8171
8172 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8173
8174 * CONTRIBUTE: Use unified diff instead of context diff when
8175 generating patches.
8176
8177 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8178
8179 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8180 code. Handle JR.HB correctly.
8181
8182 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8183
8184 * mips-tdep.c
8185 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8186 with the other MIPS16 helpers.
8187
8188 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8189
8190 * observer.sh: Conditionally declare `args', thus cleaning up
8191 unused instances of this variable.
8192
8193 2012-04-24 Yao Qi <yao@codesourcery.com>
8194
8195 Revert this patch to allow breakpoint always-inserted
8196 in record target.
8197 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8198 * breakpoint.c: Include record.h.
8199 (breakpoints_always_inserted_mode): Return false when the record
8200 target is in use.
8201
8202 * breakpoint.c (iterate_over_bp_locations): New.
8203 * breakpoint.h: Declare.
8204 New typedef walk_bp_location_callback.
8205 * record.c (record_open): Call record_init_record_breakpoints.
8206 (record_sync_record_breakpoints): New.
8207 (record_init_record_breakpoints): New.
8208 * NEWS: Mention supporting breakpoint always-inserted mode in
8209 record target.
8210
8211 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8212
8213 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8214 any thread.
8215
8216 2012-04-24 Yao Qi <yao@codesourcery.com>
8217
8218 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8219 (is_catchpoint): ... it.
8220 (print_one_breakpoint_location): Caller update.
8221 * breakpoint.h: Update declaration.
8222
8223 2012-04-23 David S. Miller <davem@davemloft.net>
8224
8225 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8226
8227 2012-04-23 Tom Tromey <tromey@redhat.com>
8228
8229 * buildsym.c (add_free_pendings): Remove.
8230 * buildsym.h (add_free_pendings): Remove.
8231
8232 2012-04-23 Doug Evans <dje@google.com>
8233
8234 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8235 attr.u.unsnd instead of attr.u.addr.
8236 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8237 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8238 DW_FORM_ref_udata.
8239 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8240 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8241 DW_FORM_ref_udata.
8242 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8243
8244 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8245
8246 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8247 (mips_o32_return_value): Likewise.
8248 (mips_o64_return_value): Likewise.
8249
8250 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8251
8252 * ada-lang.c (ada_evaluate_subexp): Add cases for
8253 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8254 their treatment in eval.c.
8255
8256 2012-04-21 David S. Miller <davem@davemloft.net>
8257
8258 * sparc-tdep.c (X_DISP10): Define.
8259 (sparc_analyze_control_transfer): Handle compare-and-branch.
8260
8261 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8262
8263 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8264 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8265
8266 2012-04-20 Nigel Stephens <nigel@mips.com>
8267 Maciej W. Rozycki <macro@codesourcery.com>
8268
8269 * mips-tdep.c (mips_float_register_p): New function.
8270 (mips_convert_register_float_case_p): Use mips_float_register_p.
8271 (mips_register_type): Likewise.
8272 (mips_print_register): Likewise.
8273 (print_gp_register_row): Likewise.
8274 (mips_print_registers_info): Likewise.
8275
8276 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8277
8278 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8279 of mips16 symbols.
8280
8281 2012-04-20 Andrew Pinski <apinski@cavium.com>
8282
8283 * MAINTAINERS (Write After Approval): Add myself to the list.
8284
8285 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8286
8287 * MAINTAINERS: Update my e-mail address.
8288
8289 2012-04-20 Pedro Alves <palves@redhat.com>
8290
8291 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8292 $srcdir.
8293 * configure: Regenerate.
8294
8295 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8296
8297 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8298 declaration.
8299 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8300
8301 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8302
8303 Fix compilation compatibility with python-2.4
8304 * python/py-type.c (convert_field): Cast ADDRSTRING for
8305 PyObject_SetAttrString as non-const. New comment.
8306
8307 2012-04-19 Tom Tromey <tromey@redhat.com>
8308
8309 * top.c (quit_target): Use all_cleanups.
8310 * main.c (captured_command_loop): Use all_cleanups.
8311 * exceptions.c (throw_exception): Use all_cleanups.
8312
8313 2012-04-19 Pedro Alves <palves@redhat.com>
8314
8315 * Makefile.in (GNULIB_BUILDDIR): New.
8316 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8317 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8318 (CLEANDIRS). Remove gnulib/import.
8319 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8320 (all-lib): Ditto.
8321 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8322 (gnulib/import/Makefile): Replace gnulib/import with
8323 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8324 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8325 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8326 acx_configure_dir.m4.
8327 * acinclude.m4: Include acx_configure_dir.m4.
8328 * acx_configure_dir.m4: New file.
8329 * aclocal.m4: Regenerate.
8330 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8331 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8332 (GNULIB): New variable.
8333 (GNULIB_STDINT_H): Adjust.
8334 (AC_OUTPUT): Don't output gnulib/Makefile.
8335 * gdb/defs.h: Include build-gnulib/config.h.
8336 * aclocal.m4: Regenerate.
8337 * config.in: Regenerate.
8338 * configure: Regenerate.
8339
8340 * gnulib/Makefile.in: New file.
8341 * gnulib/configure.ac: New file.
8342 * gnulib/aclocal.m4: New file.
8343 * gnulib/config.in: New file.
8344 * gnulib/configure: New file.
8345 * gnulib/: Re-run gnulib-tool to adjust.
8346
8347 2012-04-19 Doug Evans <dje@google.com>
8348
8349 * cleanups.h (struct cleanup): Move to cleanups.c.
8350 (make_cleanup_dtor_ftype): New typedef.
8351 (make_cleanup_dtor): Use it.
8352 (ALL_CLEANUPS): Replace with ...
8353 (all_cleanups): ... this. Declare. All uses updated.
8354 * cleanups.c: #include "gdb_assert.h".
8355 (sentinel_cleanup): New static global.
8356 (SENTINEL_CLEANUP): Define.
8357 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8358 (make_my_cleanup2): Assert result is non-NULL.
8359 (all_cleanups): New function.
8360 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8361 of NULL.
8362
8363 2012-04-19 Pedro Alves <palves@redhat.com>
8364
8365 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8366 Adjust paths to gnulib imported files.
8367
8368 2012-04-19 Pedro Alves <palves@redhat.com>
8369
8370 * gnulib/: Move whole directory ...
8371 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8372 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8373 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8374 (aclocal_m4_deps): Adjust.
8375 * aclocal.m4: Regenerate.
8376 * configure: Regenerate.
8377 * configure.ac: Adjust AC_OUTPUT output.
8378
8379 2012-04-19 Yao Qi <yao@codesourcery.com>
8380
8381 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8382 (vec.o): New rule.
8383 * vec.c: Move it ...
8384 * common/vec.c: ... here.
8385 * vec.h: Move it ...
8386 * common/vec.h: ... here.
8387
8388 2012-04-19 Yao Qi <yao@codesourcery.com>
8389
8390 * gdb-code-style.el: New.
8391
8392 2012-04-18 Pedro Alves <palves@redhat.com>
8393
8394 Update gnulib from latest git.
8395 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8396
8397 * gnulib/Makefile.am: Update.
8398 * gnulib/dummy.c: Update.
8399 * gnulib/extra/arg-nonnull.h: Update.
8400 * gnulib/extra/c++defs.h: Update.
8401 * gnulib/extra/update-copyright: Update.
8402 * gnulib/extra/warn-on-use.h: Update.
8403 * gnulib/inttypes.in.h: Update.
8404 * gnulib/m4/00gnulib.m4: Update.
8405 * gnulib/m4/extensions.m4: Update.
8406 * gnulib/m4/gnulib-cache.m4: Update.
8407 * gnulib/m4/gnulib-common.m4: Update.
8408 * gnulib/m4/gnulib-comp.m4: Update.
8409 * gnulib/m4/gnulib-tool.m4: Update.
8410 * gnulib/m4/include_next.m4: Update.
8411 * gnulib/m4/inttypes-pri.m4: Update.
8412 * gnulib/m4/inttypes.m4: Update.
8413 * gnulib/m4/longlong.m4: Update.
8414 * gnulib/m4/memchr.m4: Update.
8415 * gnulib/m4/memmem.m4: Update.
8416 * gnulib/m4/mmap-anon.m4: Update.
8417 * gnulib/m4/multiarch.m4: Update.
8418 * gnulib/m4/onceonly.m4: Update.
8419 * gnulib/m4/stddef_h.m4: Update.
8420 * gnulib/m4/stdint.m4: Update.
8421 * gnulib/m4/string_h.m4: Update.
8422 * gnulib/m4/warn-on-use.m4: Update.
8423 * gnulib/m4/wchar_h.m4: Update.
8424 * gnulib/m4/wchar_t.m4: Update.
8425 * gnulib/m4/wint_t.m4: Update.
8426 * gnulib/memchr.c: Update.
8427 * gnulib/memmem.c: Update.
8428 * gnulib/stddef.in.h: Update.
8429 * gnulib/stdint.in.h: Update.
8430 * gnulib/str-two-way.h: Update.
8431 * gnulib/string.in.h: Update.
8432 * gnulib/wchar.in.h: Update.
8433
8434 * gnulib/extra/arg-nonnull.h: Delete.
8435 * gnulib/extra/c++defs.h: Delete.
8436 * gnulib/extra/warn-on-use.h: Delete.
8437 * gnulib/m4/wchar_h.m4: Delete.
8438 * gnulib/m4/wint_t.m4: Delete.
8439 * gnulib/wchar.in.h: Delete.
8440
8441 * gnulib/extra/snippets/arg-nonnull.h: New.
8442 * gnulib/extra/snippets/c++defs.h: New.
8443 * gnulib/extra/snippets/warn-on-use.h: New.
8444
8445 * aclocal.m4: Regenerate.
8446 * config.in: Regenerate.
8447 * configure: Regenerate.
8448 * gnulib/Makefile.in: Regenerate.
8449
8450 2012-04-18 Pedro Alves <palves@redhat.com>
8451
8452 Reimport the update-copyright module from gnulib
8453 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8454
8455 * configure: Regenerate.
8456 * gnulib/Makefile.am: Update.
8457 * gnulib/Makefile.in: Regenerate.
8458 * gnulib/extra/update-copyright: Update.
8459 * gnulib/m4/gnulib-cache.m4: Update.
8460 * gnulib/m4/gnulib-comp.m4: Update.
8461
8462 2012-04-18 Tristan Gingold <gingold@adacore.com>
8463
8464 * configure.ac (aix): Put -lpthread into libs.
8465 * configure: Regenerate.
8466
8467 2012-04-18 Tom Tromey <tromey@redhat.com>
8468
8469 * linespec.c (convert_linespec_to_sals): Don't use
8470 SYMBOL_OBJ_SECTION.
8471 (compare_msymbols): Arguments are minsym_and_objfile, not
8472 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8473
8474 2012-04-18 Pedro Alves <palves@redhat.com>
8475
8476 Revert gnulib/ part of:
8477 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8478 Copyright year update in most files (performed by copyright.sh).
8479
8480 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8481
8482 Fix 64-bit constants on 32-bit hosts.
8483 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8484 from unsigned long to ULONGEST.
8485 (read_signed_leb128): Change declaration return type from long to
8486 LONGEST.
8487 (dwarf2_const_value_attr): Change declaration parameter value from long
8488 to LONGEST.
8489 (dwarf2_compute_name): Change variable value from long to LONGEST.
8490 (read_unsigned_leb128): Change return type, variable result and some
8491 casts from unsigned long to ULONGEST.
8492 (read_signed_leb128): Change return type, variable result and some
8493 casts from long to LONGEST.
8494 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8495 value from long to LONGEST.
8496 (dwarf2_const_value): Change variable value from long to LONGEST.
8497 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8498 plongest and hex_string.
8499 * symtab.h (struct general_symbol_info): Change ivalue from long to
8500 LONGEST, remove the comment.
8501 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8502 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8503
8504 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8505
8506 PR symtab/7259:
8507 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8508 * ada-lang.c (ada_discrete_type_high_bound)
8509 (ada_discrete_type_low_bound): Fix function comment. Use
8510 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8511 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8512 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8513 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8514 Use TYPE_FIELD_ENUMVAL.
8515 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8516 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8517 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8518 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8519 TYPE_CODE_ENUM.
8520 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8521 * dwarf2read.c (process_enumeration_scope): Likewise.
8522 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8523 field.bitpos.
8524 (class StructMainTypePrettyPrinter): Support also
8525 FIELD_LOC_KIND_ENUMVAL.
8526 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8527 TYPE_CODE_ENUM.
8528 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8529 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8530 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8531 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8532 field enumval.
8533 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8534 accommodate enumval.
8535 (struct call_site): Adjust loc_kind to accommodate enumval.
8536 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8537 (TYPE_FIELD_ENUMVAL): New macros.
8538 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8539 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8540 TYPE_CODE_ENUM.
8541 * p-typeprint.c (pascal_type_print_base): Likewise.
8542 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8543 enumval.
8544 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8545 * python/py-type.c (convert_field): New variable addrstring. Use
8546 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8547 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8548 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8549 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8550 TYPE_CODE_ENUM.
8551 * valprint.c (generic_val_print): Likewise.
8552
8553 2012-04-17 Doug Evans <dje@google.com>
8554
8555 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8556
8557 * dwarf2read.c: Whitespace fixes.
8558 (lookup_signatured_type): Tweak comment.
8559 (get_die_type_at_offset): Fix comment.
8560
8561 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8562
8563 * xcoffread.c (xcoff_secnum_to_sections): New function.
8564 (secnum_to_section, secnum_to_bfd_section): Reimplement
8565 using xcoff_secnum_to_sections. Rename "secnum" parameter
8566 into "n_scnum".
8567 (RECORD_MINIMAL_SYMBOL): Delete.
8568 (record_minimal_symbol): New function.
8569 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8570 by call to record_minimal_symbol and set misc_func_recorded
8571 to 1. Set last_csect_sec to the XCOFF section index instead
8572 of GDB's section_offset index. Update calls to
8573 prim_record_minimal_symbol_and_info to pass the BFD section
8574 as well.
8575
8576 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8577
8578 * xcoffread.c (read_xcoff_symtab): Delete variables
8579 last_csect_val and last_csect_sec and associated code.
8580
8581 2012-04-17 Doug Evans <dje@google.com>
8582
8583 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8584 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8585 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8586 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8587
8588 * cleanups.h: New file.
8589 * cleanups.c: New file.
8590 * Makefile.in (SFILES): Add cleanups.c.
8591 (HFILES_NO_SRCDIR): Add cleanups.h.
8592 (COMMON_OBS): Add cleanups.o.
8593 * defs.h (struct cleanup): Moved to cleanups.h.
8594 (do_cleanups,do_final_cleanups): Ditto.
8595 (discard_cleanups,discard_final_cleanups): Ditto
8596 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8597 (save_cleanups,save_final_cleanups): Ditto.
8598 (restore_cleanups,restore_final_cleanups): Ditto.
8599 (null_cleanup): Ditto.
8600 (make_my_cleanup,make_my_cleanup2): Ditto.
8601 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8602 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8603 (do_cleanups,do_final_cleanups): Ditto.
8604 (discard_cleanups,discard_final_cleanups): Ditto
8605 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8606 (save_cleanups,save_final_cleanups): Ditto.
8607 (restore_cleanups,restore_final_cleanups): Ditto.
8608 (null_cleanup): Ditto.
8609 (make_my_cleanup,make_my_cleanup2): Ditto.
8610 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8611
8612 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8613 make_my_cleanup.
8614 (make_cleanup_dyn_string_delete): Ditto.
8615 (make_cleanup_ui_file_delete): Ditto.
8616 (make_cleanup_ui_out_redirect_pop): Ditto.
8617 (make_cleanup_free_section_addr_info): Ditto.
8618 (make_cleanup_restore_integer): Ditto.
8619 (make_cleanup_unpush_target): Ditto.
8620 (make_cleanup_value_free_to_mark): Ditto.
8621 (make_cleanup_value_free): Ditto.
8622 (make_cleanup_free_so): Ditto.
8623
8624 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8625
8626 New option "set debug auto-load".
8627 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8628 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8629 (auto_load_safe_path_vec_update)
8630 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8631 if DEBUG_AUTO_LOAD.
8632 (file_is_auto_load_safe): New parameters debug_fmt and ....
8633 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8634 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8635 caller by explanatory string.
8636 (_initialize_auto_load): Register "set debug auto-load".
8637 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8638 and ....
8639 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8640 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8641 by explanatory string.
8642 * main.c (captured_main): Likewise.
8643 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8644 (source_section_scripts): Likewise.
8645
8646 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8647
8648 New option "set auto-load safe-path".
8649 * NEWS: New commands "set auto-load safe-path"
8650 and "show auto-load safe-path".
8651 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8652 (auto_load_safe_path, auto_load_safe_path_vec)
8653 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8654 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8655 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8656 (source_gdb_script_for_objfile): New variable is_safe. Call
8657 file_is_auto_load_safe. Return if it is not.
8658 (struct loaded_script): New field loaded.
8659 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8660 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8661 output "Missing" to "No".
8662 (_initialize_auto_load): New variable cmd. Initialize
8663 auto_load_safe_path. Register "set auto-load safe-path",
8664 "show auto-load safe-path" and "add-auto-load-safe-path".
8665 * auto-load.h (maybe_add_script): Add parameter loaded.
8666 (file_is_auto_load_safe): New declaration.
8667 * config.in: Regenerate.
8668 * configure: Regenerate.
8669 * configure.ac: New parameters --with-auto-load-safe-path
8670 and --without-auto-load-safe-path.
8671 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8672 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8673 * main.c (captured_main): Check file_is_auto_load_safe for
8674 LOCAL_GDBINIT.
8675 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8676 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8677 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8678 not.
8679
8680 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8681
8682 auto-load: Implementation.
8683 * NEWS: New descriptions for "info auto-load",
8684 "info auto-load gdb-scripts", "info auto-load python-scripts",
8685 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8686 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8687 and "show auto-load-scripts". New description for "set auto-load",
8688 "show auto-load", "set auto-load gdb-scripts",
8689 "show auto-load gdb-scripts", "set auto-load python-scripts",
8690 "show auto-load python-scripts", "set auto-load local-gdbinit",
8691 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8692 "show auto-load libthread-db".
8693 * auto-load.c: Remove include python/python-internal.h. Add includes
8694 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8695 cli/cli-setshow.h.
8696 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8697 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8698 (gdbpy_global_auto_load): Rename to ...
8699 (global_auto_load): ... here.
8700 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8701 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8702 (script_language_gdb, source_gdb_script_for_objfile): New.
8703 (struct loaded_script): New field language.
8704 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8705 LANGUAGE.
8706 (maybe_add_script): Add parameter language. Drop redundant
8707 entry.full_path initialization. Initialize entry.language and
8708 (*slot)->language.
8709 (auto_load_objfile_script): Change parameter suffix to language.
8710 Remove the call of maybe_add_script.
8711 Call language->source_script_for_objfile.
8712 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8713 New.
8714 (collect_matching_scripts): Adjust it for
8715 struct collect_matching_scripts_data.
8716 (auto_load_info_scripts_pattern_nl): New variable.
8717 (info_auto_load_scripts): Rename to ...
8718 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8719 for struct collect_matching_scripts_data.
8720 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8721 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8722 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8723 (auto_load_info_cmdlist_get): New.
8724 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8725 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8726 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8727 "info auto-load local-gdbinit".
8728 * auto-load.h (struct script_language): New.
8729 (gdbpy_global_auto_load): Rename to ...
8730 (global_auto_load): ... here.
8731 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8732 (auto_load_local_gdbinit_loaded): New declarations.
8733 (maybe_add_script): New parameter language.
8734 (auto_load_objfile_script): Change parameter suffix to language.
8735 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8736 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8737 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8738 declarations.
8739 * linux-thread-db.c: Include auto-load.h and ctype.h.
8740 (auto_load_thread_db, show_auto_load_thread_db): New.
8741 (struct thread_db_info): New field filename.
8742 (delete_thread_db_info): Call xfree for FILENAME.
8743 (try_thread_db_load): Initialize FILENAME.
8744 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8745 if !AUTO_LOAD_THREAD_DB.
8746 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8747 (_initialize_thread_db): Install auto_load_thread_db
8748 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8749 as "info auto-load libthread-db".
8750 * main.c (captured_main): Rename gdbpy_global_auto_load to
8751 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8752 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8753 (print_gdb_help): Extend the help for 'local init file'.
8754 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8755 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8756 (auto_load_scripts): Rename to ...
8757 (auto_load_python_scripts): ... here, update the comment.
8758 (gdbpy_load_auto_script_for_objfile): New declaration.
8759 (show_auto_load_python_scripts, script_language_python)
8760 (gdbpy_load_auto_script_for_objfile): New.
8761 (source_section_scripts): Refactor the code.
8762 (load_auto_scripts_for_objfile): Rename to ...
8763 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8764 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8765 (info_auto_load_python_scripts): New.
8766 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8767 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8768 Register "set auto-load-scripts" as its deprecated alias. Register
8769 "info auto-load python-scripts". Register "info auto-load-scripts" as
8770 its deprecated alias.
8771 (load_auto_scripts_for_objfile): Rename to ...
8772 (gdbpy_load_auto_scripts_for_objfile): ... here.
8773 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8774 (gdbpy_load_auto_scripts_for_objfile): ... here.
8775
8776 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8777
8778 auto-load: Move files.
8779 * Makefile.in (SFILES): Add auto-load.c.
8780 (HFILES_NO_SRCDIR): Add auto-load.h.
8781 (COMMON_OBS): Add auto-load.o.
8782 (distclean): Change .gdbinit for gdb-gdb.gdb.
8783 * auto-load.c: New file, with parts from python/py-auto-load.c.
8784 * auto-load.h: New file, with parts from python/python.h.
8785 * configure: Regenerate.
8786 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8787 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8788 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8789 * main.c: Include auto-load.h.
8790 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8791 command.h, observer.h and progspace.h to auto-load.c. Add include
8792 auto-load.h.
8793 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8794 (struct loaded_script, auto_load_pspace_data)
8795 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8796 (hash_loaded_script_entry, eq_loaded_script_entry)
8797 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8798 (maybe_add_script): Move to auto-load.c.
8799 (source_section_scripts): Change maybe_add_script parameters passing,
8800 use script_not_found_warning_print.
8801 (clear_section_scripts, auto_load_objfile_script)
8802 (auto_load_new_objfile, loaded_script_ptr)
8803 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8804 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8805 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8806 auto_load_new_objfile and info_auto_load_scripts initizations to
8807 auto-load.c.
8808 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8809
8810 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8811
8812 Code cleanup.
8813 * charset.c (find_charset_names): Remove variables ix and elt.
8814 Use free_char_ptr_vec.
8815 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8816 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8817 debugdir_end. New variable debugdir_len.
8818 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8819 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8820 declarations.
8821 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8822 and elt. Use free_char_ptr_vec.
8823 * source.c (add_path): Remove variables argv, arg and argv_index.
8824 New variables dir_vec, back_to, ix and name.
8825 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8826 make_cleanup_freeargv. Remove variable separator. Simplify the code
8827 no longer expecting DIRNAME_SEPARATOR.
8828 (openp): Remove variable p, p1 and len. New variables dir_vec,
8829 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8830 no longer expecting DIRNAME_SEPARATOR.
8831 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8832 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8833 debugdir_end.
8834 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8835 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8836 (dirnames_to_char_ptr_vec): New functions.
8837
8838 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8839
8840 Code cleanup.
8841 * source.c (add_path): Remove always true conditional 'p == 0' and
8842 unindent its code block.
8843
8844 2012-04-17 Pedro Alves <palves@redhat.com>
8845
8846 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8847 (FIELD_BITPOS_LVAL): ... this.
8848 (FIELD_BITPOS): New.
8849 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8850 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8851 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8852 SET_FIELD_BITPOS.
8853 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8854 SET_FIELD_BITPOS.
8855 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8856 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8857 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8858 SET_FIELD_BITPOS.
8859
8860 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8861
8862 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8863 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8864 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8865 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8866 * jv-lang.c (java_link_class_type): Likewise, once.
8867 * stabsread.c (read_enum_type): Likewise.
8868
8869 2012-04-16 Yao Qi <yao@codesourcery.com>
8870
8871 * common/agent.c (agent_run_command): Add one more parameter `len'.
8872 Update callers.
8873 * common/agent.h: Update declaration.
8874 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8875 Update.
8876 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8877
8878 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8879
8880 PR mi/13393
8881 * value.c (value_actual_type): New function.
8882 * value.h (value_actual_type): New declaration.
8883 * varobj.c (update_type_if_necessary): New function.
8884 (varobj_create): Call value_actual_type instead of
8885 value_type.
8886 (install_dynamic_child): distinct changed and type changed MI variable
8887 objects.
8888 (update_dynamic_varobj_children): Updated for install_dynamic_child
8889 change. All callers updated.
8890 (varobj_update): Support for MI variable object type change if
8891 the value changed and RTTI is used to determine the type.
8892 (create_child_with_value): Call value_actual_type instead of
8893 value_type.
8894 (adjust_value_for_child_access): Extended with a new parameter which
8895 specify whether the given value should be casted to enclosing type.
8896 All callers updated.
8897
8898 2012-04-14 Yao Qi <yao@codesourcery.com>
8899
8900 Import gnulib module inttypes from git
8901 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8902 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8903 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8904 gnulib/m4/inttypes-pri.m4
8905 * aclocal.m4, config.in, configure: Regenerated.
8906 * gnulib/Makefile.am: Update.
8907 * gnulib/Makefile.in: Update.
8908 * gnulib/m4/gnulib-cache.m4: Update.
8909 * gnulib/m4/gnulib-comp.m4: Update.
8910 * gnulib/inttypes.in.h: New.
8911 * gnulib/m4/inttypes-pri.m4: New.
8912 * gnulib/m4/inttypes.m4: New.
8913
8914 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8915
8916 * infrun.c (resume): Update PC address to the real PC after
8917 preparing to do displaced stepping.
8918
8919 2012-04-12 Doug Evans <dje@google.com>
8920
8921 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8922 All callers updated.
8923
8924 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8925
8926 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8927
8928 2012-04-12 Doug Evans <dje@google.com>
8929
8930 * dwarf2read.c (create_all_type_units): Renamed from
8931 create_debug_types_hash_table. All callers updated.
8932
8933 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8934 local type_sig to sig_type, type_offset to type_offset_in_tu.
8935 (hash_signatured_type): Renamed from hash_type_signature,
8936 all callers updated.
8937 (eq_signatured_type): Renamed from eq_type_signature,
8938 all callers updated.
8939 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8940 (process_enumeration_scope): Ditto.
8941 (lookup_signatured_type_at_offset): Ditto.
8942 (load_full_type_unit, read_signatured_type): Ditto.
8943
8944 2012-04-12 Yao Qi <yao@codesourcery.com>
8945
8946 * remote.c (async_remote_interrupt): Correct function name in
8947 debug message.
8948 (async_remote_interrupt_twice): Ditto.
8949
8950 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8951
8952 * source.c (find_and_open_source): Consistently pass resulting
8953 full path through xfullpath.
8954
8955 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8956
8957 Provide more specific displaced-stepping memory error message.
8958 * infrun.c (displaced_step_prepare): New variable status. Call
8959 target_read_memory instead of read_memory, provide more specific
8960 error message.
8961
8962 2012-04-11 Tristan Gingold <gingold@adacore.com>
8963
8964 PR gdb/13901
8965 * darwin-nat.c (darwin_execvp): Revert previous patch.
8966
8967 2012-04-11 Tristan Gingold <gingold@adacore.com>
8968
8969 PR gdb/13901
8970 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8971 in case of change.
8972
8973 2012-04-11 Tristan Gingold <gingold@adacore.com>
8974
8975 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8976 warning.
8977
8978 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8979
8980 New command 'explore' which helps explore values and types in
8981 scope.
8982 * NEWS: Add an entry about the new 'explore' command.
8983 * data-directory/Makefile.in: Add gdb/command/explore.py
8984 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8985 command using the GDB Python API.
8986
8987 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8988
8989 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8990 extension in jump target calculation.
8991
8992 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8993
8994 * mips-tdep.c (mips32_next_pc): Handle JALX.
8995
8996 2012-04-10 Yao Qi <yao@codesourcery.com>
8997
8998 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8999
9000 2012-04-10 Yao Qi <yao@codesourcery.com>
9001
9002 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9003 and gnulib/m4/gnulib-tool.m4.
9004
9005 2012-04-10 Doug Evans <dje@google.com>
9006
9007 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9008 (load_partial_dies): Clarify comment.
9009 (find_partial_die): Support rereading type units.
9010 Clarify CU handling, if we know offset is in CU, don't search for the
9011 containing CU. Add comment regarding memory waste.
9012
9013 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9014
9015 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9016 i386/x32-avx and i386/x32-avx-linux.
9017 (i386/x32-expedite): New.
9018 (i386/x32-linux-expedite): Likewise.
9019 (i386/x32-avx-expedite): Likewise.
9020 (i386/x32-avx-linux-expedite): Likewise.
9021 ($(outdir)/i386/x32.dat): Likewise.
9022 ($(outdir)/i386/x32-linux.dat): Likewise.
9023 ($(outdir)/i386/x32-avx.dat): Likewise.
9024 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9025
9026 * features/i386/x32-avx-linux.xml: New file.
9027 * features/i386/x32-avx.xml: Likewise.
9028 * features/i386/x32-core.xml: Likewise.
9029 * features/i386/x32-linux.xml: Likewise.
9030 * features/i386/x32.xml: Likewise.
9031
9032 * features/i386/x32-avx-linux.c: New. Generated.
9033 * features/i386/x32-avx.c: Likewise.
9034 * features/i386/x32-linux.c: Likewise.
9035 * features/i386/x32.c: Likewise.
9036 * regformats/i386/x32-avx-linux.dat: Likewise.
9037 * regformats/i386/x32-avx.dat: Likewise.
9038 * regformats/i386/x32-linux.dat: Likewise.
9039 * regformats/i386/x32.dat: Likewise.
9040
9041 2012-04-10 Tristan Gingold <gingold@adacore.com>
9042
9043 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9044 code to kill the inferior.
9045
9046 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9047
9048 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9049 defines.
9050 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9051 defines.
9052 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9053 (yyvsp): New defines.
9054 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9055 defines.
9056 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9057 defines.
9058 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9059 defines.
9060 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9061 defines.
9062 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9063 defines.
9064
9065 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9066
9067 * sparc64-tdep.c (sparc64_store_arguments)
9068 (sparc64_store_arguments): Fix coding style.
9069
9070 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9071
9072 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9073 complex floats, adjust some related comments and tighten a related
9074 assertion.
9075 (sparc64_extract_return_value): Handle complex floats.
9076
9077 2012-04-07 Doug Evans <dje@google.com>
9078
9079 * dwarf2read.c (load_partial_dies): Change condition to assert.
9080
9081 2012-04-06 Doug Evans <dje@google.com>
9082
9083 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9084 "mov %rsp,%rbp".
9085
9086 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9087
9088 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9089 fencepost error.
9090 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9091 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9092 architecture.
9093
9094 2012-04-05 Keith Seitz <keiths@redhat.com>
9095
9096 * linespec.c (decode_compound): Remove.
9097 (enum offset_relative_sign): New enum.
9098 (struct line_offset): New struct.
9099 (struct linespec): New struct.
9100 (struct linespec_state): Move file_symtabs,
9101 user_filename, and user_function into struct linespec.
9102 Make result an anonymous struct holding vectors of
9103 symbolp and minsym_and_objfile_d.
9104 Add language member.
9105 (enum ls_token_type): New enum.
9106 (linespec_keywords): New array.
9107 (struct ls_token): New struct.
9108 (struct ls_parser): New struct.
9109 (linespec_lexer_lex_number): New function.
9110 (linespec_lexer_lex_keyword): New function.
9111 (is_ada_operator): New function.
9112 (skip_quote_char): New function.
9113 (copy_token_string): New function.
9114 (is_closing_quote_enclosed): New function.
9115 (find_parameter_list_end): New function.
9116 (linespec_lexer_lex_string): New function.
9117 (linespec_lexer_lex_one): New function.
9118 (linespec_lexer_consume_token): New function.
9119 (linespec_lexer_peek_token): New function.
9120 (cplusplus_error): Remove unused function.
9121 (find_methods): Update comment.
9122 (find_toplevel_char): Return const.
9123 (is_objc_method_format): Remove unused function.
9124 (find_toplevel_string): New function.
9125 (is_linespec_boundary): Remove.
9126 (symbol_not_found_error): New function.
9127 (find_method_overload_end): Remove function.
9128 (unexpected_linespec_error): New function.
9129 (keep_name_info): Remove.
9130 (linespec_parse_line_offset): New function.
9131 (linespec_parse_basic): New function.
9132 (canonicalize_linespec): New function.
9133 (decode_line_internal): Remove.
9134 (create_sals_line_offset): New function adapted from
9135 decode_all_digits.
9136 (convert_linespec_to_sals): New function.
9137 (parse_linespec): New function.
9138 (linespec_parser_new): New function.
9139 (linespec_state_destructor): Change parameter type to
9140 struct linespec_state *.
9141 Add language parameter.
9142 Remove freeing of moved members.
9143 (linespec_parser_delete): New function.
9144 (decode_line_full): Use parse_linespec and linespec_parser_new.
9145 (decode_line_1): Likewise.
9146 (decode_indirect): Rename to ...
9147 (linespec_expression_to_pc): ... this and rewrite
9148 to simply find CORE_ADDR, storing this result for later
9149 conversion to SALs.
9150 (locate_first_half): Remove.
9151 (deocde_objc): Add parameter LS.
9152 Initialize new struct collect_info members.
9153 Handle minimal symbols, too.
9154 (decode_compound): Delete.
9155 (lookup_prefix_sym): Rewrite.
9156 (compare_msymbols): New function.
9157 (find_method): Rewrite.
9158 Do not call cplusplus_error.
9159 (symtabs_from_filename): Rewrite.
9160 (collect_function_symbols): Delete.
9161 (find_function_symbols): Rewrite without ARGPTR-style
9162 processing.
9163 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9164 (decode_dollar): Adapted and renamed to ...
9165 (linespec_parse_variable): ... this.
9166 (find_linespec_symbols): New function.
9167 (decode_label): Adapted and renamed to ...
9168 (find_label_symbols): ... this.
9169 (decode_digits_list_mode): Add and use LS argument.
9170 (decode_digits_ordinary): Likewise.
9171 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9172 If in list mode, allow any symbol class. Otherwise, only
9173 permit LOC_BLOCK symbols.
9174 (minsym_found): Update comments.
9175 (search_minsyms_for_name): Do not convert the matching symbol
9176 into a SAL. Simply push the symbol and objfile into the
9177 result vector.
9178 (decode_variable): Delete. Contents adapted into
9179 find_linespec_symbols.
9180
9181 * cp-support.c (SKIP_SPACE): Remove.
9182 (operator_tokens): Remove unused global.
9183 (cp_validate_operator): Remove.
9184 * cp-support.h (cp_validate_operator): Remove declaration.
9185
9186 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9187
9188 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9189 for TYPE_VPTR_FIELDNO.
9190 * valprint.c (valprint_check_validity): Make it global, move the
9191 function comment ...
9192 * value.h (valprint_check_validity): ... to this new declaration.
9193
9194 2012-04-02 Tristan Gingold <gingold@adacore.com>
9195
9196 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9197 the STATE32 api for i386 state.
9198 (i386_darwin_store_inferior_registers): Likewise.
9199
9200 2012-04-02 Tristan Gingold <gingold@adacore.com>
9201
9202 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9203 SS offset.
9204 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9205 format_string.
9206
9207 2012-04-02 Tristan Gingold <gingold@adacore.com>
9208
9209 PR gdb/13901
9210 * darwin-nat.c (darwin_execvp): Set binary preference.
9211
9212 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9213
9214 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9215
9216 2012-03-30 Tom Tromey <tromey@redhat.com>
9217
9218 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9219 of TRY_CATCH. Fix error handling.
9220 * python/py-value.c (convert_value_from_python): Move 'old'
9221 declaration to innermost scope.
9222
9223 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9224 Andrey Smirnov <andrew.smirnov@gmail.com>
9225
9226 -Wshadow warning fix.
9227 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9228 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9229 Adjust code accordingly.
9230
9231 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9232
9233 * ada-lang.c (symbol_completion_add): Rename parameter
9234 "encoded" into "encoded_p". Ajust code and documentation
9235 accordingly.
9236
9237 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9238 Andrey Smirnov <andrew.smirnov@gmail.com>
9239
9240 -Wshadow warning fix.
9241 * ada-lang.c (symbol_completion_add): Rename parameter
9242 "wild_match" into wild_match_p. Update code and documentation
9243 accordingly.
9244
9245 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9246
9247 * ada-lang.c (symbol_completion_match): Rename parameter
9248 "encoded" into "encoded_p". Ajust code and documentation
9249 accordingly.
9250
9251 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9252 Andrey Smirnov <andrew.smirnov@gmail.com>
9253
9254 -Wshadow warning fix.
9255 * ada-lang.c (symbol_completion_match): Rename parameter
9256 "wild_match" into "wild_match_p". Adjust code and function
9257 documentation accordingly.
9258
9259 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9260 Andrey Smirnov <andrew.smirnov@gmail.com>
9261
9262 -Wshadow warning fix.
9263 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9264 "symbol_info" into "info". Adjust code accordingly.
9265 (ada_lookup_symbol): Likewise.
9266
9267 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9268
9269 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9270 of this function's documentation.
9271
9272 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9273 Andrey Smirnov <andrew.smirnov@gmail.com>
9274
9275 -Wshadow warning fix.
9276 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9277 variable into "wild_match_p". Adjust code accordingly.
9278
9279 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9280 Andrey Smirnov <andrew.smirnov@gmail.com>
9281
9282 -Wshadow warning fix.
9283 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9284 parameter into "wild_match_p". Adjust code accordingly.
9285 Document this parameter in the function description.
9286
9287 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9288 Andrey Smirnov <andrew.smirnov@gmail.com>
9289
9290 -Wshadow warning fix.
9291 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9292 "wild_match" parameter to "wild_match_p" (-Wshadow).
9293
9294 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9295
9296 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9297 in function documentation.
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_simple_minsym): Rename wild_match local
9304 variable into wild_match_p. Adjust code accordingly.
9305
9306 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9307 Andrey Smirnov <andrew.smirnov@gmail.com>
9308
9309 * ada-valprint.c (ada_val_print_1): Move the code handling
9310 TYPE_CODE_ENUM inside its own lexical block. Declare
9311 variables len and val there, instead of in the function's
9312 top level block. Avoid declaring deref_val again in a way
9313 that shadows another variable of the same name declared
9314 in one of the up-level blocks. Just re-use the up-level
9315 variable instead.
9316
9317 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9318
9319 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9320 Replace block_found argument by symbol_info. Adjust
9321 implementation accordingly. Add function documentation.
9322 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9323 Fix documentation.
9324 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9325 * ada-exp.y (write_object_renaming): Adjust to new
9326 ada_lookup_encoded_symbol API.
9327
9328 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9329
9330 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9331 documentation.
9332
9333 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9334
9335 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9336 (v850_register_name): Add the mpu and fpu register names.
9337 (v850e_register_name): Add the mpu and fpu register names.
9338 (v850e2_register_name): New function.
9339 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9340 bfd_mach_v850e2v3.
9341
9342 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9343
9344 * NEWS: Add entry for Ada varobj support.
9345
9346 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9347
9348 * varobj.c (default_value_is_changeable_p): New function,
9349 extracted from varobj_value_is_changeable_p. Add declaration.
9350 (ada_value_is_changeable_p): New function, extracted from
9351 varobj_value_is_changeable_p. Add declaration.
9352 (struct language_specific): New field "value_is_changeable_p".
9353 (languages): Add entries for new field.
9354 (varobj_create): Set language before calling install_new_value.
9355 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9356 "value_is_changeable_p" language callback.
9357
9358 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9359
9360 * ada-varobj.h, ada-varobj.c: New files.
9361 * Makefile.in (SFILES): Add ada-varobj.c.
9362 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9363 (COMMON_OBS): Add ada-varobj.o.
9364
9365 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9366
9367 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9368 (struct language_specific): New field "value_has_mutated".
9369 (languages): Set field "value_has_mutated" in each entry of array.
9370 (varobj_value_has_mutated): New function.
9371 (varobj_udpdate): Add handling of type mutation.
9372 (value_of_root): Add handling of type mutation.
9373 (ada_value_has_mutated): New function.
9374
9375 2012-03-28 Pedro Alves <palves@redhat.com>
9376
9377 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9378 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9379
9380 2012-03-28 Tom Tromey <tromey@redhat.com>
9381
9382 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9383 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9384 before returning.
9385
9386 2012-03-28 Tom Tromey <tromey@redhat.com>
9387
9388 * .dir-locals.el: New file.
9389
9390 2012-03-28 Pedro Alves <palves@redhat.com>
9391
9392 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9393
9394 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9395
9396 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9397 handling for r0.
9398
9399 2012-03-27 Pedro Alves <palves@redhat.com>
9400
9401 Eliminate struct ui_stream.
9402
9403 * ui-out.h (struct ui_stream): Delete.
9404 (ui_out_field_stream): Adjust prototype.
9405 (ui_out_stream_new, ui_out_stream_delete)
9406 (make_cleanup_ui_out_stream_delete): Delete declarations.
9407 * ui-out.c (ui_out_field_stream): Change prototype to take a
9408 ui_file instead of a ui_stream. Adjust.
9409 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9410 (make_cleanup_ui_out_stream_delete): Delete.
9411 * breakpoint.c (print_breakpoint_location)
9412 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9413 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9414 * disasm.c (dump_insns): Ditto.
9415 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9416 prototype.
9417 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9418 ui_stream/ui_out_stream_new.
9419 * infcmd.c (print_return_value): Ditto.
9420 * osdata.c (info_osdata_command): Don't allocate a local
9421 ui_stream.
9422 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9423 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9424 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9425 allocate a local ui_stream.
9426 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9427 instead of ui_stream/ui_out_stream_new.
9428 (list_args_or_locals): Don't allocate a local ui_stream.
9429 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9430 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9431 ui_stream/ui_out_stream_new.
9432 * cli/cli-setshow.c (do_setshow_command): Ditto.
9433
9434 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9435
9436 * arm-linux-tdep.c (arm_linux_init_abi): Call
9437 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9438 * arm-tdep.c (arm_process_record): New function.
9439 (deallocate_reg_mem): New function.
9440 (decode_insn): New function.
9441 (thumb_record_branch): New function.
9442 (thumb_record_ldm_stm_swi(): New function.
9443 (thumb_record_misc): New function.
9444 (thumb_record_ld_st_stack): New function.
9445 (thumb_record_ld_st_imm_offset): New function.
9446 (thumb_record_ld_st_reg_offset(): New function.
9447 (thumb_record_add_sub_cmp_mov): New function.
9448 (thumb_record_shift_add_sub): New function.
9449 (arm_record_coproc_data_proc): New function.
9450 (arm_record_coproc): New function.
9451 (arm_record_b_bl): New function.
9452 (arm_record_ld_st_multiple): New function.
9453 (arm_record_ld_st_reg_offset): New function.
9454 (arm_record_ld_st_imm_offset): New function.
9455 (arm_record_data_proc_imm): New function.
9456 (arm_record_data_proc_misc_ld_str): New function.
9457 (arm_record_extension_space): New function.
9458 (arm_record_strx): New function.
9459 (sbo_sbz): New function.
9460 (struct insn_decode_record): New structure for arm insn record.
9461 (REG_ALLOC): New macro for reg allocations.
9462 (MEM_ALLOC): New macro for memory allocations.
9463 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9464
9465 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9466
9467 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9468 (store_register): Likewise.
9469
9470 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9471
9472 * MAINTAINERS (Write After Approval): Add myself to the list.
9473
9474 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9475
9476 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9477 Describe also the option "auto".
9478
9479 2012-03-22 Richard Henderson <rth@redhat.com>
9480
9481 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9482 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9483
9484 2012-03-22 Richard Henderson <rth@redhat.com>
9485
9486 * jit.c (jit_read_code_entry): Compute alignment and offset of
9487 int64_t member before computing entry_size.
9488
9489 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9490
9491 Python scripting: Add new method Value.referenced_value to
9492 gdb.Value which can dereference pointer as well as reference
9493 values.
9494 * NEWS: Add entry under 'Python scripting' about the new method
9495 Value.referenced_value on gdb.Value objects.
9496 * python/py-value.c (valpy_referenced_value): New function
9497 defining a new method on gdb.Value objects which can dereference
9498 pointer and reference values.
9499
9500 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9501
9502 * MAINTAINERS (Write After Approval): Add myself to the list.
9503
9504 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9505
9506 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9507 in addition to "main".
9508
9509 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9510
9511 * expression.h (op_name): Add declaration.
9512 * expprint.c (op_name): Remove declaration. Make non-static.
9513 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9514
9515 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9516
9517 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9518 of struct siginfo.
9519 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9520 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9521 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9522 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9523 (linux_nat_get_siginfo): Likewise.
9524 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9525 (linux_nat_get_siginfo): Likewise.
9526 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9527 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9528 * procfs.c (gdb_siginfo_t): Likewise.
9529
9530 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9531
9532 * .gitignore: Ignore more files.
9533
9534 2012-03-20 Pedro Alves <palves@redhat.com>
9535
9536 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9537 returns.
9538
9539 2012-03-20 Yao Qi <yao@codesourcery.com>
9540
9541 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9542 comment.
9543
9544 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9545
9546 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9547 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9548 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9549 sect_offset.
9550 * dwarf2expr.h (cu_offset, sect_offset): New types.
9551 (struct dwarf_expr_context_funcs) <dwarf_call>
9552 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9553 sect_offset.
9554 (struct dwarf_expr_context) <len>: Improve the comment.
9555 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9556 cu_offset and sect_offset.
9557 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9558 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9559 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9560 * dwarf2loc.h: Include dwarf2expr.h.
9561 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9562 and sect_offset.
9563 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9564 Improve the comment.
9565 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9566 (struct signatured_type, struct line_header, struct partial_die_info)
9567 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9568 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9569 (get_die_type_at_offset, create_cus_from_index)
9570 (create_signatured_type_table_from_index, dw2_get_file_names)
9571 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9572 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9573 (create_debug_types_hash_table, process_psymtab_comp_unit)
9574 (load_partial_comp_unit, create_all_comp_units)
9575 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9576 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9577 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9578 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9579 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9580 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9581 (find_partial_die, read_attribute_value, lookup_die_type)
9582 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9583 (is_ref_attr): New function comment.
9584 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9585 Use cu_offset and sect_offset.
9586 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9587 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9588 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9589 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9590 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9591 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9592 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9593 sect_offset.
9594
9595 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9596
9597 Code cleanup.
9598 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9599 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9600 with xfree.
9601 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9602
9603 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9604
9605 * NEWS: Describe new options --init-command=FILE, -ix and
9606 --init-eval-command=COMMAND, -iex.
9607 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9608 CMDARG_INIT_COMMAND.
9609 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9610 "init-command", "init-eval-command", "ix" and "iex" to the variable
9611 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9612 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9613 (print_gdb_help): Describe --init-command=FILE, -ix and
9614 --init-eval-command=COMMAND, -iex.
9615
9616 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9617
9618 Code cleanup.
9619 * main.c (struct cmdarg): Move it here from main. Add more comments.
9620 (cmdarg_s, VEC (cmdarg_s)): New.
9621 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9622 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9623 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9624 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9625 of CMDARG.
9626
9627 2012-03-19 Tom Tromey <tromey@redhat.com>
9628
9629 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9630
9631 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9632
9633 PR symtab/13777
9634 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9635 GCC >=4.5.
9636
9637 2012-03-16 Chris January <chris.january@allinea.com>
9638
9639 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9640 of clear.
9641
9642 2012-03-16 Chris January <chris.january@allinea.com>
9643
9644 * source.c (add_path): Use memmove instead of strcpy because the
9645 strings overlap.
9646
9647 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9648
9649 * value.h (set_value_parent): Add declaration.
9650 * value.c (set_value_parent): New function.
9651 (value_address): If VALUE->PARENT is not NULL, then use it as
9652 the base address instead of VALUE->LOCATION.address.
9653 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9654 the same as OBJ's address. Adjust V's offset accordingly.
9655 Set V's parent.
9656
9657 2012-03-16 Gary Benson <gbenson@redhat.com>
9658
9659 PR breakpoints/10738
9660 * dwarf2read.c (use_deprecated_index_sections): New global.
9661 (struct partial_die_info): New member may_be_inlined.
9662 (read_partial_die): Set may_be_inlined where appropriate.
9663 (add_partial_subprogram): Add partial symbols for partial
9664 DIEs that may be inlined.
9665 (new_symbol_full): Add inlined subroutines to the current
9666 scope.
9667 (write_psymtabs_to_index): Bump version number.
9668 (dwarf2_read_index): Read only version 6 indices unless
9669 use_deprecated_index_sections is set.
9670 * linespec.c (symbol_and_data_callback): New structure.
9671 (iterate_inline_only): New function.
9672 (iterate_over_all_matching_symtabs): New argument
9673 "include_inline". If nonzero, also call the callback for
9674 symbols representing inlined subroutines.
9675 (lookup_prefix_sym): Pass extra argument to the above.
9676 (find_function_symbols): Likewise.
9677 (add_matching_symbols_to_info): Likewise.
9678 * NEWS: Mention that GDB can now set breakpoints on inlined
9679 functions.
9680
9681 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9682
9683 * p-typeprint.c (pascal_type_print_method_args):
9684 Fix display of parameter of methods.
9685
9686 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9687
9688 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9689 Add missing prototype.
9690
9691 2012-03-16 Yao Qi <yao@codesourcery.com>
9692 Jan Kratochvil <jan.kratochvil@redhat.com>
9693
9694 Fix false compilation warning.
9695 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9696
9697 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9698 Pedro Alves <pedro@codesourcery.com>
9699
9700 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9701 (arm_register_g_packet_guesses): New function.
9702 (arm_gdbarch_init): Don't force a target description with
9703 registers when the executable is detected as M-profile. Instead
9704 set gdbarch->tdep->is_m. Register `g' packet guesses.
9705 (_initialize_arm_tdep): Initialize the new target description.
9706 * features/arm-with-m-fpa-layout.xml: New description.
9707 * features/arm-with-m-fpa-layout.c: New, generated.
9708
9709 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9710
9711 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9712 Update function description.
9713 (insert_bp_location): Do not wipe bl->target_info out.
9714 * mem-break.c: #include "gdb_string.h".
9715 (default_memory_insert_breakpoint): Do not call target_read_memory
9716 with a pointer to the breakpoint's shadow_contents buffer. Use
9717 a local buffer instead.
9718 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9719
9720 2012-03-15 Tom Tromey <tromey@redhat.com>
9721
9722 * NEWS: Mention "info vtbl", not "info vtable".
9723 * cp-support.c (info_vtbl_command): Fix comment.
9724 (_initialize_cp_support): Fix text.
9725
9726 2012-03-15 Tom Tromey <tromey@redhat.com>
9727
9728 * cp-valprint.c (cp_print_value_fields): Use
9729 print_function_pointer_address for vtable slot.
9730
9731 2012-03-15 Tom Tromey <tromey@redhat.com>
9732
9733 * gnu-v3-abi.c (struct value_and_voffset): New.
9734 (hash_value_and_voffset, eq_value_and_voffset)
9735 (compare_value_and_voffset, compute_vtable_size)
9736 (print_one_vtable, gnuv3_print_vtable): New functions.
9737 (init_gnuv3_ops): Initialize 'print_vtable' field.
9738 * cp-support.c (info_vtbl_command): New function.
9739 (_initialize_cp_support): Add "info vtbl".
9740 * cp-abi.h (cplus_print_vtable): Declare.
9741 (struct cp_abi_ops) <print_vtable>: New field.
9742 * cp-abi.c (cplus_print_vtable): New function.
9743 * NEWS: Update.
9744
9745 2012-03-15 Tom Tromey <tromey@redhat.com>
9746
9747 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9748 iterate_over_symbols.
9749
9750 2012-03-14 Doug Evans <dje@google.com>
9751
9752 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9753 DW_OP_GNU_parameter_ref.
9754
9755 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9756
9757 Fix double prompt of 'interpreter-exec mi'.
9758 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9759 (mi_interpreter_resume): use it.
9760 (mi_execute_command_input_handler): New function.
9761 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9762 mi_execute_command_input_handler.
9763
9764 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9765
9766 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9767 prototype.
9768 (darwin_debug_port_info): Make static.
9769 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9770 * machoread.c (_initialize_machoread): Add prototype.
9771 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9772 (i386_darwin_set_control, i386_darwin_get_control)
9773 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9774 i386_darwin_get_status, i386_darwin_get_control):
9775 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9776
9777 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9778
9779 * ax-gdb.c (gen_usual_unary): Remove special handling of
9780 enum and bool types.
9781
9782 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9783
9784 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9785
9786 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9787
9788 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9789
9790 2012-03-13 Chris January <chris.january@allinea.com>
9791
9792 * aix-thread.c (fill_sprs): Store the floating point registers
9793 at the correct offsets into vals.
9794
9795 2012-03-13 Doug Evans <dje@google.com>
9796
9797 * NEWS: Mention symbol-reloading has been deleted.
9798 * symfile.c (symbol_reloading): Delete.
9799 (show_symbol_reloading): Delete.
9800 (_initialize_symfile): Delete set/show symbol-reloading.
9801
9802 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9803 read_in_chain until we have successfully read it in.
9804 (load_full_comp_unit): Ditto.
9805 (read_signatured_type): Add comment.
9806
9807 2012-03-13 Chris January <chris.january@allinea.com>
9808
9809 * stabsread.c (fix_common_block): Change type of valu argument
9810 to CORE_ADDR.
9811
9812 2012-03-13 Chris January <chris.january@allinea.com>
9813
9814 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9815 instruction.
9816
9817 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9818
9819 * common/linux-procfs.c (linux_proc_get_int): New, from
9820 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9821 field.
9822 (linux_proc_get_tgid): Only call linux_proc_get_int.
9823 (linux_proc_get_tracerpid): New.
9824 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9825 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9826 linux_proc_pid_has_state.
9827 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9828 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9829 (linux_ptrace_attach_warnings): New.
9830 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9831 New declaration.
9832 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9833 (linux_nat_attach): New variables ex, buffer, message and message_s.
9834 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9835
9836 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9837
9838 * Makefile.in (linux-ptrace.o): New.
9839 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9840 from linux-nat.c.
9841 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9842 * common/linux-ptrace.c: New file.
9843 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9844 * config/arm/linux.mh: Likewise.
9845 * config/i386/linux.mh: Likewise.
9846 * config/i386/linux64.mh: Likewise.
9847 * config/ia64/linux.mh: Likewise.
9848 * config/m32r/linux.mh: Likewise.
9849 * config/m68k/linux.mh: Likewise.
9850 * config/mips/linux.mh: Likewise.
9851 * config/pa/linux.mh: Likewise.
9852 * config/powerpc/linux.mh: Likewise.
9853 * config/powerpc/ppc64-linux.mh: Likewise.
9854 * config/powerpc/spu-linux.mh: Likewise.
9855 * config/s390/s390.mh: Likewise.
9856 * config/sparc/linux.mh: Likewise.
9857 * config/sparc/linux64.mh: Likewise.
9858 * config/xtensa/linux.mh: Likewise.
9859 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9860 common/linux-procfs.c.
9861 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9862
9863 2012-03-13 Hui Zhu <teawater@gmail.com>
9864 Pedro Alves <palves@redhat.com>
9865
9866 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9867 CREATE_BREAKPOINT_FLAGS_INSERTED.
9868 (create_breakpoint_sal, create_breakpoints_sal)
9869 (base_breakpoint_create_breakpoints_sal)
9870 (tracepoint_create_breakpoints_sal)
9871 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9872 down.
9873 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9874 (ftrace_command, strace_command): Adjust.
9875 (create_tracepoint_from_upload): Pass
9876 CREATE_BREAKPOINT_FLAGS_INSERTED.
9877 * breakpoint.h (enum breakpoint_create_flags): New.
9878 (create_breakpoint): New flags parameter.
9879 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9880 * python/py-breakpoint.c (bppy_init): Adjust.
9881 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9882 * spu-tdep.c (spu_catch_start): Adjust.
9883
9884 2012-03-13 Pedro Alves <palves@redhat.com>
9885 Hui Zhu <teawater@gmail.com>
9886 Yao Qi <yao@codesourcery.com>
9887
9888 * remote.c (struct remote_state): New field `starting_up'.
9889 (remote_start_remote): Set and clear it.
9890 (remote_can_download_tracepoint): If starting up, return false.
9891
9892 2012-03-13 Yao Qi <yao@codesourcery.com>
9893
9894 * inferior.h (struct inferior): Remove fields any_syscall_count,
9895 syscalls_counts and total_syscalls_count. Move them to new
9896 struct catch_syscall_inferior_data in breakpoint.c.
9897 * breakpoint.c: Call DEF_VEC_I(int).
9898 (struct catch_syscall_inferior_data): New.
9899 (get_catch_syscall_inferior_data): New.
9900 (catch_syscall_inferior_data_cleanup): New.
9901 (insert_catch_syscall): Update to access data in
9902 struct catch_syscall_inferior_data.
9903 (insert_catch_syscall): Likewise.
9904 (remove_catch_syscall): Likewise.
9905 (remove_catch_syscall): Likewise.
9906 (is_syscall_catchpoint_enabled): Likewise.
9907 (add_catch_command): Likewise.
9908 (_initialize_breakpoint): Register cleanup.
9909 * breakpoint.h: Removed DEF_VEC_I(int).
9910 * dwarf2loc.c: Call DEF_VEC_I(int).
9911 * mi/mi-main.c: Likewise.
9912
9913 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9914
9915 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9916
9917 2012-03-12 Chris January <chris.january@allinea.com>
9918
9919 * aix-thread.c (_initialize_aix_thread): Add prototype.
9920 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9921 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9922
9923 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9924
9925 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9926 include of "amd64-nat.h".
9927
9928 2012-03-12 Tom Tromey <tromey@redhat.com>
9929
9930 * buildsym.c (record_pending_block): Now static.
9931 * buildsym.h: (record_pending_block): Remove.
9932
9933 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9934
9935 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9936
9937 2012-03-09 Tom Tromey <tromey@redhat.com>
9938
9939 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9940 producer_is_gxx_lt_4_6>: New fields.
9941 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9942
9943 2012-03-09 Tom Tromey <tromey@redhat.com>
9944
9945 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9946
9947 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9948
9949 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9950 prototype.
9951
9952 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9953
9954 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9955
9956 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9957
9958 Fix -Wmissing-prototypes build.
9959 * arm-linux-nat.c (get_thread_id): Make it static.
9960 * xtensa-linux-nat.c (get_thread_id): Likewise.
9961
9962 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9963
9964 * server.c (process_point_options): If a conditional expression
9965 is found, only print a message if remote_debug is nonzero.
9966
9967 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9968
9969 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9970 of internal error for unknown/unsupported types.
9971
9972 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9973
9974 Fix CU relative vs. absolute DIE offsets.
9975 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9976 offset to offset_in_cu.
9977 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9978 TYPE_OFFSET.
9979 (dwarf2_fetch_die_location_block): Rename parameter offset to
9980 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9981
9982 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9983
9984 * libunwind-frame.c: Rename to ...
9985 * ia64-libunwind-tdep.c: ... here.
9986 * libunwind-frame.h: Rename to ...
9987 * ia64-libunwind-tdep.h: ... here.
9988 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9989 ia64-libunwind-tdep.h.
9990 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9991 * README (--with-libunwind): Rename to ...
9992 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9993 * config.in: Regenerate.
9994 * configure: Regenerate.
9995 * configure.ac: New option --with-libunwind-ia64, make the
9996 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9997 Remove AC_DEFINE for HAVE_LIBUNWIND.
9998 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9999 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10000 Rename libunwind-frame in the general comment.
10001 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10002 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10003 Move forward declarations inside #ifndef. Rename libunwind-frame in
10004 the general comment.
10005 * ia64-tdep.c: Rename libunwind-frame.h #include to
10006 ia64-libunwind-tdep.h.
10007 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10008 (ia64_libunwind_descr): Rename libunwind-frame to
10009 ia64-libunwind-tdep in these function comments.
10010 * ia64-tdep.h: Rename libunwind-frame.h #include to
10011 ia64-libunwind-tdep.h.
10012 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10013 ia64-libunwind-tdep in that data comment.
10014
10015 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10016
10017 * libunwind-frame.h (struct frame_unwind): New declaration.
10018
10019 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10020
10021 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10022 "set breakpoint condition-evaluation" command.
10023
10024 2012-03-08 Tristan Gingold <gingold@adacore.com>
10025
10026 * sparc-stub.c: Move to stubs/
10027 * sh-stub.c: Likewise.
10028 * m68k-stub.c: Likewise.
10029 * m32r-stub.c: Likewise.
10030 * i386-stub.c: Likewise.
10031
10032 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10033
10034 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10035 linux_get_siginfo_type.
10036
10037 * m68klinux-nat.c: Include "gdb_proc_service.h".
10038 (PTRACE_GET_THREAD_AREA): Define.
10039 (ps_get_thread_area): New function.
10040
10041 2012-03-08 Yao Qi <yao@codesourcery.com>
10042
10043 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10044 `xsnprintf'.
10045 (remote_query_attached): Likewise.
10046 (remote_static_tracepoint_marker_at): Likewise.
10047 (remote_set_permissions): Likewise.
10048 (remote_detach_1, extended_remote_attach_1): Likewise.
10049 (send_g_packet, remote_vkill): Likewise.
10050 (extended_remote_disable_randomization): Likewise.
10051 (remote_add_target_side_condition): Likewise.
10052 (remote_insert_breakpoint): Likewise.
10053 (remote_remove_breakpoint): Likewise.
10054 (remote_insert_watchpoint): Likewise.
10055 (remote_remove_watchpoint): Likewise.
10056 (remote_insert_hw_breakpoint): Likewise.
10057 (remote_insert_hw_breakpoint): Likewise.
10058 (remote_remove_hw_breakpoint): Likewise.
10059 (remote_download_command_source): Likewise.
10060 (remote_download_tracepoint): Likewise.
10061 (remote_download_trace_state_variable): Likewise.
10062 (remote_disable_tracepoint): Likewise.
10063 (remote_trace_set_readonly_regions): Likewise.
10064 (remote_get_tracepoint_status): Likewise.
10065 (remote_trace_find): Likewise.
10066 (remote_get_trace_state_variable_value): Likewise.
10067 (remote_set_disconnected_tracing): Likewise.
10068 (remote_set_circular_trace_buffer): Likewise.
10069 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10070 (remote_use_agent): Likewise.
10071 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10072 Update callers.
10073
10074 2012-03-07 Pedro Alves <palves@redhat.com>
10075
10076 * NEWS: Mention QProgramSignals.
10077 * inferior.h (update_signals_program_target): Declare.
10078 * infrun.c: (update_signals_program_target): New.
10079 (handle_command): Update the target of the new program signals
10080 array changes.
10081 * remote.c (PACKET_QProgramSignals): New enum.
10082 (last_program_signals_packet): New global.
10083 (remote_program_signals): New.
10084 (remote_start_remote): Update the target with the program signals
10085 list.
10086 (remote_protocol_features): Add entry for QPassSignals.
10087 (remote_open_1): Free anc clear last_program_signals_packet.
10088 (init_remote_ops): Install remote_program_signals.
10089 * target.c (update_current_target): Adjust.
10090 (target_program_signals): New.
10091 * target.h (struct target_ops) <to_program_signals>: New field.
10092 (target_program_signals): Declare.
10093
10094 2012-03-07 Pedro Alves <palves@redhat.com>
10095
10096 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10097 extensions.
10098
10099 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10100
10101 * m68klinux-nat.c (getregs_supplies): Make static.
10102 (getfpregs_supplies): Likewise.
10103 (have_ptrace_getregs): Likewise.
10104
10105 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10106
10107 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10108 in call to get_die_type_at_offset.
10109
10110 2012-03-06 Stan Shebs <stan@codesourcery.com>
10111
10112 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10113 * mi/mi-cmd-disas.c: Ditto.
10114 * mi/mi-cmd-env.c: Ditto.
10115 * mi/mi-cmd-file.c: Ditto.
10116 * mi/mi-cmd-stack.c: Ditto.
10117 * mi/mi-cmd-target.c: Ditto.
10118 * mi/mi-cmd-var.c: Ditto.
10119 * mi/mi-cmds.c: Ditto.
10120 * mi/mi-cmds.h: Ditto.
10121 * mi/mi-console.c: Ditto.
10122 * mi/mi-getopt.c: Ditto.
10123 * mi/mi-getopt.h: Ditto.
10124 * mi/mi-interp.c: Ditto.
10125 * mi/mi-main.c: Ditto.
10126 * mi/mi-out.c: Ditto.
10127 * mi/mi-parse.c: Ditto.
10128 * mi/mi-parse.h: Ditto.
10129 * mi/mi-symbol-cmds.c: Ditto.
10130
10131 * mi/mi-getopt.h: Move mi_opt struct up.
10132 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10133 return.
10134 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10135
10136 2012-03-06 Tom Tromey <tromey@redhat.com>
10137
10138 * proc-service.c (ps_pglobal_lookup): Set the current program
10139 space.
10140
10141 2012-03-06 Pedro Alves <palves@redhat.com>
10142
10143 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10144
10145 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10146
10147 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10148
10149 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10150
10151 Code cleanup.
10152 * common/linux-osdata.c (linux_common_core_of_thread): New function
10153 comment.
10154 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10155 call by linux_common_core_of_thread.
10156 (linux_nat_core_of_thread_1): Remove.
10157 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10158 * linux-thread-db.c: Include linux-osdata.h.
10159 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10160 linux_common_core_of_thread.
10161
10162 2012-03-05 Tom Tromey <tromey@redhat.com>
10163
10164 * value.c (value_primitive_field): Don't fetch contents for
10165 non-virtual bases.
10166
10167 2012-03-05 Tom Tromey <tromey@redhat.com>
10168
10169 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10170
10171 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10172
10173 * s390-nat.c: Include "gregset.h".
10174
10175 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10176
10177 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10178 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10179 (libunwind_load): New variable so_error, use it for dlerror. Try to
10180 load also LIBUNWIND_SO_7.
10181
10182 2012-03-05 Pedro Alves <palves@redhat.com>
10183
10184 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10185 is not NULL, and remove resulting dead code.
10186
10187 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10188
10189 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10190 prologue to sh_analyze_prologue.
10191 (sh_analyze_prologue): Make better use of such an upper limit, and
10192 generally be more cautious about accessing memory.
10193
10194 2012-03-05 Tom Tromey <tromey@redhat.com>
10195
10196 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10197 _initialize_ia64_hpux_tdep.
10198
10199 2012-03-05 Pedro Alves <palves@redhat.com>
10200
10201 PR gdb/13766
10202
10203 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10204 the register state is clear, supply explicit zero, instead of
10205 marking the register unavailable.
10206
10207 2012-03-05 Tristan Gingold <gingold@adacore.com>
10208
10209 * NEWS: Mention OpenVMS ia64 new target.
10210
10211 2012-03-05 Tristan Gingold <gingold@adacore.com>
10212
10213 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10214 (ia64_unw_accessors, ia64_unw_rse_accessors)
10215 (ia64_libunwind_descr): Declare.
10216 * ia64-vms-tdep.c: New file.
10217 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10218 (ia64_libunwind_descr): Make them public.
10219 * configure.tgt: Add ia64-*-*vms*.
10220 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10221 (ALLDEPFILES): Add ia64-vms-tdep.c
10222
10223 2012-03-05 Tristan Gingold <gingold@adacore.com>
10224
10225 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10226 * remote.c (PACKET_qXfer_uib): New enum value.
10227 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10228 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10229 (_initialize_remote): Call add_packet_config_cmd for
10230 xfer:uib packet.
10231
10232 2012-03-05 Tristan Gingold <gingold@adacore.com>
10233
10234 * osabi.c (gdb_osabi_names): Add OpenVMS.
10235 (generic_elf_osabi_sniffer): Likewise.
10236 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10237
10238 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10239
10240 Removed unused code.
10241 * libunwind-frame.c (libunwind_frame_unwind)
10242 (libunwind_frame_base_address): Remove.
10243 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10244
10245 2012-03-04 Yao Qi <yao@codesourcery.com>
10246
10247 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10248 remove trailing new line.
10249 (agent_run_command, agent_run_command): Add _ markup.
10250 (agent_capability_check): Likewise.
10251
10252 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10253
10254 * breakpoint.c (set_condition_evaluation_mode): Set
10255 CONDITION_EVALUATION_MODE unconditionally.
10256
10257 2012-03-03 Yao Qi <yao@codesourcery.com>
10258
10259 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10260 * common/agent.h: Update declaration.
10261 * inf-child.c (inf_child_use_agent): New.
10262 (inf_child_can_use_agent): New.
10263 (inf_child_target): Initialize fields `to_use_agent'
10264 and `to_can_use_agent'.
10265 * agent.c (agent_new_objfile): New.
10266 (_initialize_agent): Add agent_new_objfile to new_objfile
10267 observer.
10268
10269 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10270 New.
10271 (linux_target_install_ops): Initialize field
10272 `to_static_tracepoint_markers_by_strid'.
10273 * remote.c (free_current_marker): Move it to ...
10274 * tracepoint.c (free_current_marker): ... here. New.
10275 (cleanup_target_stop): New.
10276 * tracepoint.h: Declare free_current_marker.
10277 * NEWS: Add one entry about `info static-tracepoint-marker'.
10278
10279 2012-03-03 Yao Qi <yao@codesourcery.com>
10280
10281 * common/agent.c (agent_loaded_p): New.
10282 (agent_look_up_symbols): New global.
10283 * common/agent.h: Declare agent_loaded_p.
10284
10285 2012-03-03 Yao Qi <yao@codesourcery.com>
10286
10287 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10288 (agent_capability_check, agent_capability_invalidate): New.
10289 (symbol_list): New array element.
10290 * common/agent.h (enum agent_capa): New.
10291 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10292
10293 2012-03-03 Yao Qi <yao@codesourcery.com>
10294
10295 * target.h (struct target_ops) <to_use_agent>: New field.
10296 (struct target_ops) <to_can_use_agent>: New field.
10297 (target_use_agent, target_can_use_agent): New macro.
10298 * target.c (update_current_target): Update.
10299 * remote.c: New enum `PACKET_QAgent'.
10300 (remote_protocol_features): Add a new element.
10301 (remote_use_agent, remote_can_use_agent): New.
10302 (init_remote_ops): Initialize field `can_use_agent' with
10303 remote_can_use_agent. Intiailize field `use_agent' with
10304 remote_use_agent.
10305 * common/agent.c (use_agent): New global.
10306 * common/agent.h: Declare it.
10307 * tracepoint.c (info_static_tracepoint_markers_command): Add
10308 comment.
10309 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10310 (COMMON_OBS): Add common/agent.o and agent.o
10311 (common-agent.o): New rule.
10312 * agent.c: New.
10313
10314 2012-03-03 Yao Qi <yao@codesourcery.com>
10315
10316 * common/agent.c: New.
10317 * common/agent.h: New.
10318 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10319 AC_CHECK_HEADERS.
10320 * configure, configh.in: Regenerated.
10321
10322 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10323
10324 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10325 unless it exists for this architecture.
10326
10327 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10328
10329 * language.h (struct language_defn): New "method" la_read_var_value.
10330 * findvar.c: #include "language.h".
10331 (default_read_var_value): Renames read_var_value. Rewrite
10332 function description.
10333 (read_var_value): New function.
10334 * value.h (default_read_var_value): Add prototype.
10335 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10336 New functions.
10337 (ada_language_defn): Add entry for la_read_var_value.
10338 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10339 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10340 language_defn structures to add entry for new la_read_var_value
10341 field.
10342
10343 2012-03-02 Tom Tromey <tromey@redhat.com>
10344 Pedro Alves <palves@redhat.com>
10345
10346 PR breakpoints/13776:
10347 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10348 breakpoints.
10349 (delete_longjmp_breakpoint_at_next_stop): New.
10350 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10351 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10352 before deleting the inferior. Add comments.
10353 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10354 breakpoints immediately, but only on next stop. Move that code
10355 next to where we mark other breakpoints for deletion.
10356
10357 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10358
10359 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10360 marker.
10361 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10362 violation.
10363
10364 2012-03-02 Pedro Alves <palves@redhat.com>
10365
10366 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10367
10368 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10369
10370 Fix -Wmissing-prototypes build.
10371 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10372 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10373 (gdbsim_has_memory): Likewise.
10374
10375 2012-03-02 Yao Qi <yao@codesourcery.com>
10376
10377 Fix -Wmissing-prototypes build.
10378 * charset.c (phony_iconv_open): Make static.
10379 (phony_iconv_close, phony_iconv): Likewise.
10380 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10381 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10382 prototype.
10383 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10384 * ser-mingw.c (create_select_thread): Make static.
10385 * windows-termcap.c (tgetent): New prototype.
10386 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10387
10388 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10389
10390 Fix -Wmissing-prototypes build.
10391 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10392 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10393 (_initialize_loadable): New prototypes.
10394
10395 2012-03-02 Doug Evans <dje@google.com>
10396
10397 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10398 abbrev table, read_comp_unit will do it.
10399
10400 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10401
10402 Fix -Wmissing-prototypes build.
10403 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10404 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10405 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10406 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10407 (_initialize_arm_symbian_tdep): New prototype.
10408 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10409 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10410 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10411 static.
10412 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10413 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10414 prototype.
10415 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10416 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10417 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10418 static.
10419 * moxie-tdep.c (moxie_process_record): Likewise.
10420 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10421 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10422 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10423 (_initialize_rl78_tdep): New prototype.
10424 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10425 (_initialize_rx_tdep): New prototype.
10426 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10427 (_initialize_darwin_solib): New prototype.
10428 * solib-spu.c: Include solib-spu.h.
10429 (_initialize_spu_solib): New prototype.
10430 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10431 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10432 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10433 (tic6x_software_single_step): Make it static.
10434 (_initialize_tic6x_tdep): New prototype.
10435
10436 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10437
10438 Fix -Wmissing-prototypes build.
10439 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10440 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10441
10442 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10443
10444 Fix -Wmissing-prototypes build.
10445 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10446 (frv_have_stopped_data_address): Remove.
10447
10448 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10449
10450 Fix -Wmissing-prototypes build.
10451 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10452 * sh-tdep.c: Include sh64-tdep.h.
10453 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10454 * sh64-tdep.c: Include sh64-tdep.h.
10455 * sh64-tdep.h: New file.
10456
10457 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10458
10459 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10460
10461 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10462
10463 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10464 sp_regnum once the gdbarch_init_osabi hook has been called.
10465
10466 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10467
10468 * mips-tdep.c (mips32_bc1_pc): New function.
10469 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10470 BPOSGE32 and BPOSGE64 instructions.
10471 (deal_with_atomic_sequence): Likewise.
10472 (mips32_instruction_has_delay_slot): Likewise.
10473
10474 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10475 Chris Dearman <chris@mips.com>
10476 Maciej W. Rozycki <macro@codesourcery.com>
10477 Joseph Myers <joseph@codesourcery.com>
10478
10479 * features/mips-dsp.xml: New file.
10480 * features/mips64-dsp.xml: New file.
10481 * features/mips-dsp-linux.xml: New file.
10482 * features/mips64-dsp-linux.xml: New file.
10483 * features/Makefile (WHICH): Add mips-dsp-linux and
10484 mips64-dsp-linux.
10485 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10486 * features/mips-dsp-linux.c: New file.
10487 * features/mips64-dsp-linux.c: New file.
10488 * regformats/mips-dsp-linux.dat: New file.
10489 * regformats/mips64-dsp-linux.dat: New file.
10490 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10491 registers.
10492 (mips64_linux_register_addr): Likewise.
10493 (mips64_linux_regsets_fetch_registers): Likewise.
10494 (mips64_linux_regsets_store_registers): Likewise.
10495 (mips64_linux_fetch_registers): Update call to
10496 mips64_linux_regsets_fetch_registers.
10497 (mips64_linux_store_registers): Update call to
10498 mips64_linux_regsets_store_registers.
10499 (mips_linux_read_description): Probe for DSP registers.
10500 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10501 and initialize_tdesc_mips64_dsp_linux.
10502 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10503 Remove padding of no longer used embedded register slots.
10504 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10505 (MIPS_RESTART_REGNUM): Redefine enum value.
10506 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10507 strings.
10508 (mips_tx39_reg_names): Likewise.
10509 (mips_linux_reg_names): New array of register names for Linux
10510 targets.
10511 (mips_register_name): Check for a null pointer in
10512 mips_processor_reg_names and return an empty string.
10513 (mips_register_type): Exclude embedded registers for the IRIX
10514 and Linux ABIs.
10515 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10516 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10517 DSP registers.
10518 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10519 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10520 (mips_gdbarch_init): Likewise. Initialize internal register
10521 indices for the Linux ABI. Use dynamic numbers to refer to
10522 registers, as applicable, while parsing the target description.
10523 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10524
10525 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10526
10527 * frame.h (read_frame_register_unsigned): Fix typo in function
10528 description.
10529
10530 2012-03-01 Pedro Alves <palves@redhat.com>
10531
10532 * jit-reader.in [!__cplusplus]
10533 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10534
10535 2012-03-01 Pedro Alves <palves@redhat.com>
10536
10537 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10538 * configure: Regenerate.
10539
10540 2012-03-01 Pedro Alves <palves@redhat.com>
10541
10542 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10543 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10544 (ftrace_command, strace_command): Make static.
10545 * d-lang.c (_initialize_d_language): Declare.
10546 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10547 * dwarf2loc.c (_initialize_dwarf2loc):
10548 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10549 * exec.c (exec_get_section_table): Make static.
10550 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10551 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10552 * inferior.c (remove_inferior_command, add_inferior_command)
10553 (clone_inferior_command): Make static.
10554 * linux-nat.c (linux_nat_thread_address_space)
10555 (linux_nat_core_of_thread): Make static.
10556 * linux-tdep.c (_initialize_linux_tdep): Declare.
10557 * objc-lang.c (_initialize_objc_lang): Declare.
10558 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10559 Make static.
10560 (_initialize_opencl_language): Declare.
10561 * record.c (_initialize_record): Declare.
10562 * remote.c (demand_private_info, remote_get_tib_address)
10563 (remote_supports_cond_tracepoints)
10564 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10565 Make static.
10566 * skip.c (_initialize_step_skip): Declare.
10567 * symtab.c (skip_prologue_using_lineinfo): Make static.
10568 * tracepoint.c (delete_trace_state_variable)
10569 (trace_variable_command, delete_trace_variable_command)
10570 (get_uploaded_tsv, find_matching_tracepoint_location)
10571 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10572 Make static.
10573 * value.c (pack_unsigned_long): Make static.
10574 * varobj.c (varobj_ensure_python_env): Make static.
10575 * windows-tdep.c (_initialize_windows_tdep): Declare.
10576 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10577
10578 2012-03-01 Pedro Alves <palves@redhat.com>
10579
10580 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10581 gdbarch parameter.
10582 (linux_init_abi): Install it as has_shared_address_space gdbarch
10583 callback.
10584
10585 2012-03-01 Pedro Alves <palves@redhat.com>
10586
10587 * observer.c (observer_test_first_notification_function)
10588 (observer_test_second_notification_function)
10589 (observer_test_third_notification_function): Add declarations.
10590
10591 2012-03-01 Pedro Alves <palves@redhat.com>
10592
10593 * common/signals.c (default_target_signal_to_host)
10594 (default_target_signal_from_host): Move ...
10595 * arch-utils.c: ... here.
10596 * arch-utils.h (default_target_signal_to_host)
10597 (default_target_signal_from_host): Declare.
10598
10599 * common/signals.c (target_signal_from_command): Move ...
10600 * infrun.c: ... here.
10601 * inferior.h (target_signal_from_command): Declare.
10602 * target.h (target_signal_from_command)
10603 (default_target_signal_from_host, default_target_signal_to_host):
10604 Delete declarations.
10605
10606 * common/signals.c (_initialize_signals): Delete.
10607
10608 2012-03-01 Pedro Alves <palves@redhat.com>
10609
10610 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10611 both __cplusplus and !__cplusplus.
10612
10613 2012-03-01 Pedro Alves <palves@redhat.com>
10614
10615 * psymtab.c (find_and_open_source): Delete declaration.
10616 * source.c (find_and_open_source): Move comment ...
10617 * source.h (find_and_open_source): ... to this new declaration.
10618
10619 2012-03-01 Pedro Alves <palves@redhat.com>
10620
10621 * inline-frame.c: Include inline-frame.h.
10622
10623 2012-03-01 Pedro Alves <palves@redhat.com>
10624
10625 * tui/tui-data.c (set_gen_win_origin): Delete.
10626 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10627 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10628
10629 2012-03-01 Pedro Alves <palves@redhat.com>
10630
10631 * remote.c (encode_actions): Delete declaration.
10632 * tracepoint.c (encode_actions): Make extern.
10633 * tracepoint.h (encode_actions): Declare.
10634
10635 2012-03-01 Pedro Alves <palves@redhat.com>
10636
10637 * python/py-breakpoint.c: Include python.h.
10638 * python/py-continueevent.c (create_continue_event_object): Make
10639 static.
10640 * python/py-lazy-string.c (stpy_get_type): Make static.
10641 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10642 Make static.
10643 * python/py-utils.c (unicode_to_target_python_string): Make
10644 static.
10645 * python/py-value.c: Include python.h.
10646
10647 2012-03-01 Pedro Alves <palves@redhat.com>
10648
10649 * inferior.c (delete_threads_of_inferior): Delete.
10650
10651 2012-03-01 Pedro Alves <palves@redhat.com>
10652
10653 Import fallback definitions from glibc.
10654
10655 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10656 ps_prochandle): Forward declare.
10657 (ps_err_e): Use glibc's comments.
10658 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10659 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10660 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10661 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10662 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10663 (struct ps_prochandle): Adjust comment.
10664
10665 2012-03-01 Pedro Alves <palves@redhat.com>
10666
10667 * ada-lang.c (ada_modulus_from_name): Delete.
10668 * ada-lex.l (lexer_init): Make static.
10669
10670 2012-03-01 Pedro Alves <palves@redhat.com>
10671
10672 PR gdb/13767
10673
10674 * frame.c (read_frame_register_unsigned): New.
10675 * frame.h (read_frame_register_unsigned): Declare.
10676 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10677 Handle it.
10678 (print_i387_control_word): New parameter `control_p'. Handle it.
10679 (i387_print_float_info): Handle unavailable float registers.
10680
10681 2012-03-01 Keith Seitz <keiths@redhat.com>
10682
10683 * linespec.c (decode_line_2): Sort the list of methods
10684 alphabetically before presenting the user with a selection
10685 menu.
10686
10687 2012-03-01 Doug Evans <dje@google.com>
10688
10689 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10690 has_namespace_info.
10691 (dwarf2_read_abbrevs): Remove corresponding initialization.
10692
10693 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10694
10695 * NEWS: Mention new python command class gdb.COMMAND_USER.
10696 * cli/cli-cmds.c (show_user): Print error when used on a python
10697 command.
10698 (init_cli_cmds): Update documentation strings for "show user" and
10699 "set/show max-user-call-depth" to clarify that it does not apply to
10700 python commands.
10701 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10702 error check.
10703 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10704 gdb python api.
10705 * top.c (execute_command): Only execute a user-defined command as a
10706 legacy macro if c->user_commands is set.
10707
10708 2012-03-01 Tom Tromey <tromey@redhat.com>
10709
10710 * valprint.h (struct generic_val_print_decorations): New.
10711 (generic_val_print): Declare.
10712 * valprint.c (generic_val_print): New function.
10713 * p-valprint.c (p_decorations): New global.
10714 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10715 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10716 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10717 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10718 * m2-valprint.c (m2_decorations): New global.
10719 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10720 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10721 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10722 TYPE_CODE_ERROR>: Call generic_val_print.
10723 * f-valprint.c (f_decorations): New global.
10724 (f_val_print): Use print_function_pointer_address.
10725 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10726 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10727 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10728 generic_val_print.
10729 * c-valprint.c (c_decorations): New global.
10730 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10731 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10732 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10733 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10734 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10735 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10736 case.
10737
10738 2012-03-01 Tom Tromey <tromey@redhat.com>
10739
10740 * valprint.c (val_print): Update.
10741 * p-valprint (pascal_val_print): Return void.
10742 * p-lang.h (pascal_val_print): Return void.
10743 * m2-valprint.c (m2_val_print): Return void.
10744 * m2-lang.h (m2_val_print): Return void.
10745 * language.h (struct language_defn) <la_val_print>: Return void.
10746 * language.c (unk_lang_val_print): Return void.
10747 * jv-valprint.c (java_val_print): Return void.
10748 * jv-lang.h (java_val_print): Return void.
10749 * f-valprint.c (f_val_print): Return void.
10750 * f-lang.h (f_val_print): Return void.
10751 * d-valprint.c (d_val_print): Return void.
10752 (dynamic_array_type): Update.
10753 * d-lang.h (d_val_print): Return void.
10754 * c-valprint.c (c_val_print): Return void.
10755 * c-lang.h (c_val_print): Return void.
10756 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10757 void.
10758 * ada-lang.h (ada_val_print): Return void.
10759
10760 2012-03-01 Tom Tromey <tromey@redhat.com>
10761
10762 * value.h (val_print): Return void.
10763 * valprint.c (val_print): Return void.
10764
10765 2012-03-01 Tom Tromey <tromey@redhat.com>
10766
10767 * value.h (common_val_print): Return void.
10768 * valprint.c (common_val_print): Return void.
10769
10770 2012-03-01 Tom Tromey <tromey@redhat.com>
10771
10772 * value.h (value_print): Return void.
10773 * valprint.c (value_print): Return void.
10774 * p-valprint.c (pascal_value_print): Return void.
10775 * p-lang.h (pascal_value_print): Return void.
10776 * language.h (struct language_defn) <la_value_print>: Return
10777 void.
10778 * language.c (unk_lang_value_print): Return void.
10779 * jv-valprint.c (java_value_print): Return void.
10780 * jv-lang.h (java_value_print): Return void.
10781 * f-valprint.c (c_value_print): Don't declare.
10782 Include c-lang.h.
10783 * c-valprint.c (c_value_print): Return void.
10784 * c-lang.h (c_value_print): Return void.
10785 * ada-valprint.c (ada_value_print): Return void.
10786 * ada-lang.h (ada_value_print): Return void.
10787
10788 2012-03-01 Tom Tromey <tromey@redhat.com>
10789
10790 * value.c (value_primitive_field): Handle virtual base classes.
10791
10792 2012-03-01 Tom Tromey <tromey@redhat.com>
10793
10794 * gdbtypes.h (struct vbase): Remove.
10795
10796 2012-03-01 Tom Tromey <tromey@redhat.com>
10797
10798 * c-valprint.c (print_function_pointer_address): Move...
10799 * valprint.c: ... here. Make non-static.
10800 * m2-valprint.c (print_function_pointer_address): Remove.
10801 * valprint.h (print_function_pointer_address): Declare.
10802
10803 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10804
10805 * NEWS: Document the fact that one can provide a condition when
10806 creating an Ada exception catchpoint.
10807
10808 2012-03-01 Tom Tromey <tromey@redhat.com>
10809
10810 * valprint.c (val_print_type_code_flags): Fix placement of
10811 trailing brace.
10812
10813 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10814
10815 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10816 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10817 environment variable before calling update-copyright.
10818
10819 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10820
10821 * gnulib/extra/update-copyright: Update to the latest from
10822 gnulib's git repository.
10823 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10824 variable to 2 instead of 1.
10825
10826 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10827
10828 * varobj.c (c_value_of_variable): Remove dead code.
10829
10830 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10831
10832 * ada-lex.p (processId): Do not modify already encoded IDs.
10833 Update function documentation.
10834
10835 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10836
10837 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10838 "name" with "struct symbol *name_sym".
10839 * ada-exp.y (write_var_or_type): Update call to
10840 ada_find_renaming_symbol.
10841 "name" with "struct symbol *name_sym". Adjust Implementation
10842 accordingly. Adjust the function documentation.
10843
10844 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10845
10846 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10847 * ada-lang.c (ada_find_any_type): Add advance declaration.
10848 Make static. Replace ada_find_any_symbol by
10849 ada_find_any_type_symbol.
10850 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10851 Improve function description. Make static.
10852 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10853 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10854
10855 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10856
10857 * ada-lang.c (struct tag_args): Delete.
10858 (ada_get_tsd_type): Function body moved up in source file.
10859 (ada_tag_name_1, ada_tag_name_2): Delete.
10860 (ada_get_tsd_from_tag): New function.
10861 (ada_tag_name_from_tsd): New function.
10862 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10863 to determine the tag name.
10864
10865 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10866
10867 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10868 declaration.
10869 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10870 function.
10871
10872 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10873
10874 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10875
10876 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10877
10878 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10879 full searches.
10880
10881 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10882
10883 * ada-lang.c (constrained_packed_array_type): If there is a
10884 parallel XA type, use it to determine the array index type.
10885
10886 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10887
10888 * ada-valprint.c (ada_val_print_1): If our value is a reference
10889 to an array descriptor, dereference it before converting it
10890 to a simple array.
10891
10892 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10893
10894 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10895 creating fixed value.
10896 (ada_value_ind, ada_coerce_ref, assign_component)
10897 (ada_evaluate_subexp): Remove call to unwrap_value before
10898 call to ada_to_fixed_value.
10899
10900 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10901
10902 * ada-lang.c (to_fixed_array_type): Set result's type name.
10903
10904 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10905
10906 * ada-lang.c (catch_ada_exception_command_split): Add new
10907 argument cond_string. Add support for condition at end of
10908 "catch exception" commands.
10909 (ada_decode_exception_location): Add new argument cond_string.
10910 Update call to catch_ada_exception_command_split.
10911 (create_ada_exception_catchpoint): Add new argument cond_string.
10912 Set the breakpoint condition if needed.
10913 (catch_ada_exception_command): Update call to
10914 ada_decode_exception_location.
10915 (ada_decode_assert_location): Add function documentation.
10916 Add support for condition at end of "catch assert" command.
10917 (catch_assert_command): Update calls to ada_decode_assert_location
10918 and create_ada_exception_catchpoint.
10919
10920 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10921
10922 Fix disp-step-syscall.exp: fork: single step over fork.
10923 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10924 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10925 comment, change parameters gdbarch and ptid to regcache. Remove
10926 parameter regcache, initialize gdbarch from regcache here.
10927 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10928 New functions.
10929 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10930 instead.
10931 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10932 'syscall'. Make the 'int' check more strict.
10933
10934 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10935
10936 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10937 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10938 (i386_linux_intx80_sysenter_syscall_record): ... here.
10939 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10940 Use the renamed function name.
10941
10942 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10943
10944 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10945 * breakpoint.c (until_break_command): Likewise.
10946 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10947 * infcall.c (call_function_by_hand): Likewise.
10948 * infcmd.c (finish_forward): Likewise.
10949 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10950
10951 2012-02-28 Tristan Gingold <gingold@adacore.com>
10952
10953 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10954 avoid variable assignments inside condition.
10955
10956 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10957
10958 Fix static analysis issue found by cppcheck.
10959 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10960 uninitialized BUF for size 2.
10961
10962 2012-02-27 Chris Dearman <chris@mips.com>
10963 Nathan Froyd <froydnj@codesourcery.com>
10964 Maciej W. Rozycki <macro@codesourcery.com>
10965
10966 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10967 (mips16_instruction_has_delay_slot): Likewise.
10968 (mips_segment_boundary): Likewise.
10969 (mips_adjust_breakpoint_address): Likewise.
10970 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10971
10972 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10973 Maciej W. Rozycki <macro@codesourcery.com>
10974
10975 * infrun.c (handle_inferior_event): Don't proceed through
10976 shared library trampolines if stepping at the machine
10977 instruction level.
10978
10979 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10980
10981 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10982 too.
10983
10984 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10985
10986 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10987 (sh_stub_unwind_sniffer): New functions.
10988 (sh_stub_unwind): New variable.
10989 (sh_gdbarch_init): Wire everything.
10990
10991 2012-02-27 Pedro Alves <palves@redhat.com>
10992
10993 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10994 (linux_nat_post_attach_wait): Adjust to use
10995 linux_proc_pid_is_stopped.
10996 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10997 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10998 based on pid_is_stopped from both linux-nat.c and
10999 gdbserver/linux-low.c, and renamed.
11000
11001 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11002
11003 * remote.c (remote_watchpoint_addr_within_range): New function.
11004 (init_remote_ops): Use it.
11005
11006 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11007
11008 * target.h (target_watchpoint_addr_within_range): Document macro.
11009
11010 2012-02-24 Pedro Alves <palves@redhat.com>
11011
11012 * stack.c (set_last_displayed_sal): Issue internal_error instead
11013 of warning, and issue it after clearing the last displayed sal.
11014
11015 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11016 Pedro Alves <palves@redhat.com>
11017
11018 * breakpoint.c (until_break_command): Install breakpoints after
11019 all frame manipulations.
11020
11021 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11022
11023 * remote.c (remote_supports_cond_breakpoints): New forward
11024 declaration.
11025 (remote_add_target_side_condition): New function.
11026 (remote_insert_breakpoint): Add target-side breakpoint
11027 conditional if supported.
11028 (remote_insert_hw_breakpoint): Likewise.
11029 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11030 hook.
11031
11032 * target.c (update_current_target): Inherit
11033 to_supports_evaluation_of_breakpoint_conditions.
11034 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11035
11036 * target.h (struct target_ops)
11037 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11038 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11039
11040 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11041 (condition_evaluation_both, condition_evaluation_auto,
11042 condition_evaluation_host, condition_evaluation_target,
11043 condition_evaluation_enums, condition_evaluation_mode_1,
11044 condition_evaluation_mode): New static globals.
11045 (translate_condition_evaluation_mode): New function.
11046 (breakpoint_condition_evaluation_mode): New function.
11047 (gdb_evaluates_breakpoint_condition_p): New function.
11048 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11049 (mark_breakpoint_modified): New function.
11050 (mark_breakpoint_location_modified): New function.
11051 (set_condition_evaluation_mode): New function.
11052 (show_condition_evaluation_mode): New function.
11053 (bp_location_compare_addrs): New function.
11054 (get_first_location_gte_addr): New helper function.
11055 (set_breakpoint_condition): Free condition bytecode if locations
11056 has become unconditional. Call mark_breakpoint_modified (...).
11057 (condition_command): Call update_global_location_list (1) for
11058 breakpoints.
11059 (breakpoint_xfer_memory): Use is_breakpoint (...).
11060 (is_breakpoint): New function.
11061 (parse_cond_to_aexpr): New function.
11062 (build_target_condition_list): New function.
11063 (insert_bp_location): Handle target-side conditional
11064 breakpoints and call build_target_condition_list (...).
11065 (update_inserted_breakpoint_locations): New function.
11066 (insert_breakpoint_locations): Handle target-side conditional
11067 breakpoints.
11068 (bpstat_check_breakpoint_conditions): Add comment.
11069 (bp_condition_evaluator): New function.
11070 (bp_location_condition_evaluator): New function.
11071 (print_breakpoint_location): Print information on where the condition
11072 will be evaluated.
11073 (print_one_breakpoint_location): Likewise.
11074 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11075 breakpoint location.
11076 (force_breakpoint_reinsertion): New functions.
11077 (update_global_location_list): Handle target-side breakpoint
11078 conditions.
11079 Reinsert locations that are already inserted if conditions have
11080 changed.
11081 (bp_location_dtor): Free agent expression bytecode.
11082 (disable_breakpoint): Call mark_breakpoint_modified (...).
11083 Call update_global_location_list (...) with parameter 1 for breakpoints.
11084 (disable_command): Call mark_breakpoint_location_modified (...).
11085 Call update_global_location_list (...) with parameter 1 for breakpoints.
11086 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11087 (enable_command): mark_breakpoint_location_modified (...).
11088 (_initialize_breakpoint): Update documentation and add
11089 condition-evaluation breakpoint subcommand.
11090
11091 * breakpoint.h: Include ax.h.
11092 (condition_list): New data structure.
11093 (condition_status): New enum.
11094 (bp_target_info) <cond_list>: New field.
11095 (bp_location) <condition_changed, cond_bytecode>: New fields.
11096 (is_breakpoint): New prototype.
11097
11098 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11099
11100 * remote.c (remote_state) <cond_breakpoints>: New field.
11101 (PACKET_ConditionalBreakpoints): New enum.
11102 (remote_cond_breakpoint_feature): New function.
11103 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11104 (remote_supports_cond_breakpoints): New function.
11105 (_initialize_remote): Add new packet configuration for
11106 target-side conditional breakpoints.
11107
11108 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11109
11110 * NEWS: Mention target-side conditional breakpoint support,
11111 new condition-evaluation breakpoint subcommand and remote
11112 packet extensions.
11113
11114 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11115
11116 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11117 number.
11118
11119 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11120
11121 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11122 (after_prologue): Remove.
11123
11124 2012-02-23 Tom Tromey <tromey@redhat.com>
11125
11126 * jv-valprint.c (java_val_print): Remove dead code.
11127
11128 2012-02-23 Tristan Gingold <gingold@adacore.com>
11129
11130 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11131 known_tasks_element and known_tasks_length fields.
11132 (read_known_tasks_array): Change argument type. Use pointer type
11133 and number of elements from DATA. Adjust.
11134 (read_known_tasks_list): Likewise.
11135 (get_known_tasks_addr): Remove.
11136 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11137 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11138 type and array length. Merge former get_known_tasks_addr code.
11139
11140 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11141
11142 PR backtrace/13716
11143 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11144 it after set_momentary_breakpoint.
11145
11146 2012-02-22 Sterling Augustine <saugustine@google.com>
11147
11148 PR 13689:
11149 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11150
11151 2012-02-22 Gary Benson <gbenson@redhat.com>
11152
11153 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11154 (find_slot_in_mapped_hash): Likewise.
11155
11156 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11157
11158 PR build/13638
11159 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11160 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11161 * configure: Regenerate.
11162
11163 2012-02-21 Tristan Gingold <gingold@adacore.com>
11164 Pedro Alves <palves@redhat.com>
11165
11166 * ia64-tdep.c: Do not include libunwind-ia64.h.
11167 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11168 Include libunwind-ia64.h instead of libunwind.h.
11169 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11170 for libunwind.h existence.
11171 * configure, config.in: Regenerate.
11172
11173 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11174
11175 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11176 instead of value_rtti_target_type.
11177 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11178 instead of value_rtti_target_type.
11179 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11180 value_rtti_target_type.
11181 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11182 (value_rtti_target_type): Rename to ...
11183 (value_rtti_indirect_type): ... here and make it indirect. Update
11184 function comment.
11185 * value.c (readjust_indirect_value_type): New function.
11186 (coerce_ref): Support for enclosing type setting for references
11187 with readjust_indirect_value_type.
11188 * value.h (readjust_value_type): New declaration.
11189 (value_rtti_target_type): Rename to ...
11190 (value_rtti_indirect_type): ... here.
11191
11192 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11193
11194 * MAINTAINERS (Write After Approval): Add myself to the list.
11195
11196 2012-02-20 Doug Evans <dje@google.com>
11197
11198 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11199 Rename objfile_p_char parameter to objfilep.
11200 (build_objfile_section_table): Result is now void. All callers
11201 updated.
11202 * objfiles.h (struct objfile): Tweak comments, whitespace.
11203 (build_objfile_section_table): Update.
11204
11205 * elfread.c (elf_symfile_segments): Fix warning text.
11206
11207 2012-02-20 Tom Tromey <tromey@redhat.com>
11208
11209 PR gdb/13498:
11210 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11211 particular set of file names once.
11212 (dw2_map_symbol_filenames): Likewise.
11213
11214 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11215
11216 Code cleanup.
11217 * main.c (write_files): Remove the declaration.
11218 (external_editor_command): Move the declaration ...
11219 [GDBTK] (external_editor_command): ... here. Fix the comment.
11220
11221 2012-02-20 Tom Tromey <tromey@redhat.com>
11222
11223 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11224 extraneous block.
11225
11226 2012-02-20 Tristan Gingold <gingold@adacore.com>
11227
11228 * darwin-nat.h (enum darwin_msg_state): Add comments.
11229
11230 2012-02-20 Tristan Gingold <gingold@adacore.com>
11231
11232 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11233 value.
11234
11235 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11236
11237 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11238 between function description and implementation.
11239
11240 2012-02-17 Tom Tromey <tromey@redhat.com>
11241
11242 PR python/12070:
11243 * python/py-event.c (event_object_getset): New global.
11244 (event_object_type): Reference it.
11245 * python/py-type.c (field_object_getset): New global.
11246 (field_object_type): Reference it.
11247 * python/python-internal.h (gdb_py_generic_dict): Declare.
11248 * python/py-utils.c (gdb_py_generic_dict): New function.
11249
11250 2012-02-17 Tristan Gingold <gingold@adacore.com>
11251
11252 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11253
11254 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11255
11256 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11257 TYPE_CALLING_CONVENTION annotation.
11258
11259 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11260
11261 * MAINTAINERS: Add rx to target ISA section.
11262 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11263 (ALLDEPFILES): Add rx-tdep.c.
11264
11265 2012-02-16 Tom Tromey <tromey@redhat.com>
11266
11267 * symfile.c (symbol_file_add_main_1): Use inferior's
11268 symfile_flags.
11269 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11270 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11271 inferior.
11272 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11273 inferior.
11274 (follow_exec): Use inferior's symfile_flags.
11275 * inferior.h (struct inferior) <symfile_flags>: New field.
11276
11277 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11278
11279 PR gdb/9734:
11280 * remote-sim.c (gdbsim_create_inferior): Call error() when
11281 sim_create_inferior() fails.
11282
11283 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11284
11285 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11286
11287 2012-02-16 Tom Tromey <tromey@redhat.com>
11288
11289 PR c++/13653:
11290 * thread.c (struct current_thread_cleanup) <was_removable>: New
11291 field.
11292 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11293 (make_cleanup_restore_current_thread): Initialize new field.
11294
11295 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11296
11297 * MAINTAINERS: Add rl78 to target ISA section.
11298 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11299 (ALLDEPFILES): Add rl78-tdep.c.
11300 * NEWS: Mention rl78 as a new target.
11301
11302 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11303
11304 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11305 data.
11306 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11307
11308 2012-02-15 Tom Tromey <tromey@redhat.com>
11309
11310 PR gdb/12659:
11311 * infcmd.c (registers_info): Print just the current register's
11312 name.
11313
11314 2012-02-15 Tom Tromey <tromey@redhat.com>
11315
11316 * python/py-symbol.c (sympy_value): Use _().
11317
11318 2012-02-15 Pedro Alves <palves@redhat.com>
11319
11320 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11321 output to be like native targets'.
11322 (remote_pid_to_str): Special case the null ptid.
11323
11324 2012-02-14 Stan Shebs <stan@codesourcery.com>
11325
11326 * NEWS: Mention enable count command.
11327 * breakpoint.h (struct breakpoint): New field enable_count.
11328 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11329 (enable_breakpoint): Add arg to call.
11330 (struct disp_data): New struct.
11331 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11332 (do_map_enable_once_breakpoint): Create a struct and pass it.
11333 (do_map_enable_delete_breakpoint): Ditto.
11334 (do_map_enable_count_breakpoint): New function.
11335 (enable_count_command): New function.
11336 (bpstat_stop_status): Decrement enable_count.
11337 (print_one_breakpoint_location): Report enable count.
11338 (_initialize_breakpoint): Add enable count command.
11339
11340 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11341
11342 * rl78-tdep.c (reggroups.h): Include.
11343 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11344 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11345 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11346 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11347 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11348 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11349 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11350 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11351 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11352 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11353 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11354 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11355 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11356 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11357 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11358 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11359 beginning of register list.
11360 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11361 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11362 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11363 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11364 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11365 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11366 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11367 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11368 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11369 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11370 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11371 the pseudo registers. Rearrange other pseudo registers too so
11372 that the bank registers appear at the end.
11373 (rl78_register_type): Account for the fact that the byte sized
11374 bank registers are now pseudo-registers.
11375 (rl78_register_name): Rearrange the register name array. Make
11376 initial set of raw banked registers inaccessible.
11377 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11378 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11379 case for copying bytes back and forth between raw and pseudo
11380 versions of the banked registers. Update other cases to reflect
11381 the changed names.
11382 (rl78_return_value): Update to account for changed names of
11383 raw registers.
11384 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11385 rl78_register_sim_regno().
11386
11387 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11388
11389 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11390 the name parameter being passed to find_pc_partial_function().
11391
11392 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11393
11394 * MAINTAINERS: Step down from being ia64 target maintainer.
11395
11396 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11397
11398 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11399 compilation warning.
11400
11401 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11402
11403 Fix crash on loaded shlibs without loaded exec_bfd.
11404 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11405 (set_section_command): Replace exec_bfd by p->bfd.
11406
11407 2012-02-10 Tom Tromey <tromey@redhat.com>
11408
11409 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11410 when we have a C++ qualified name.
11411
11412 2012-02-10 Pedro Alves <palves@redhat.com>
11413
11414 * inferior.c (inferior_pid_to_str): New.
11415 (print_inferior, inferior_command): Use it.
11416
11417 2012-02-10 Pedro Alves <palves@redhat.com>
11418
11419 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11420 the test CFLAGS.
11421 * configure: Regenerate.
11422
11423 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11424
11425 * linespec.c (decode_line_internal): Fix comment correctness.
11426
11427 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11428
11429 PR gdb/12953
11430 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11431 * amd64bsd-nat.c: Add support for debug registers (adapted from
11432 i386bsd-nat.c).
11433 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11434 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11435 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11436 (amd64bsd_dr_get_control): New functions.
11437 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11438 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11439 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11440 watchpoints initialization.
11441 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11442
11443 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11444
11445 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11446 flds_bnds.fields.
11447 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11448
11449 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11450
11451 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11452
11453 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11454
11455 * language.h (symbol_name_cmp_ftype): Renames
11456 symbol_name_match_p_ftype.
11457 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11458 la_get_symbol_name_match_p.
11459 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11460 ada_get_symbol_name_match_p. Update comment.
11461 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11462 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11463 Renames symbol_name_match_p. Update field type.
11464 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11465 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11466 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11467 "la_get_symbol_name_cmp" in comments.
11468 * language.c: Likewise.
11469
11470 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11471
11472 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11473 %eflags offset.
11474 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11475 (amd64_sol2_gregset32_reg_offs): Likewise.
11476
11477 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11478
11479 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11480 of the returned BFD is allocated by GDB.
11481
11482 2012-02-07 Tom Tromey <tromey@redhat.com>
11483
11484 PR python/12027:
11485 * python/python-internal.h (frame_object_type): Declare.
11486 * python/py-symbol.c (sympy_needs_frame): New function.
11487 (sympy_value): New function.
11488 (symbol_object_getset): Add "needs_frame".
11489 (symbol_object_methods): Add "value".
11490 * python/py-frame.c (frame_object_type): No longer static.
11491
11492 2012-02-07 Tom Tromey <tromey@redhat.com>
11493
11494 PR python/13599:
11495 * python/py-symbol.c (sympy_line): New function.
11496 (symbol_object_getset): Add "line".
11497
11498 2012-02-07 Tom Tromey <tromey@redhat.com>
11499
11500 * charset.c (find_charset_names): Check 'in' against NULL.
11501
11502 2012-02-06 Doug Evans <dje@google.com>
11503
11504 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11505 and fields.name members from char * to const char *. All uses updated.
11506 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11507 from char * to const char *. All uses updated.
11508 (type_name_no_tag): Update.
11509 (lookup_unsigned_typename, lookup_signed_typename): Update.
11510 * gdbtypes.c (type_name_no_tag): Change result type
11511 from char * to const char *. All callers updated.
11512 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11513 name parameter from char * to const char *.
11514 * symtab.h (struct cplus_specific): Change type of demangled_name
11515 member from char * to const char *. All uses updated.
11516 (struct general_symbol_info): Change type of name and
11517 mangled_lang.demangled_name members from char * to const char *.
11518 All uses updated.
11519 (symbol_get_demangled_name, symbol_natural_name): Update.
11520 (symbol_demangled_name, symbol_search_name): Update.
11521 * symtab.c (symbol_get_demangled_name): Change result type
11522 from char * to const char *. All callers updated.
11523 (symbol_natural_name, symbol_demangled_name): Ditto.
11524 (symbol_search_name): Ditto.
11525 (completion_list_add_name): Change type of symname,sym_text,
11526 text,word parameters from char * to const char *.
11527 (completion_list_objc_symbol): Change type of sym_text,
11528 text,word parameters from char * to const char *.
11529 * ada-lang.c (find_struct_field): Change type of name parameter
11530 from char * to const char *.
11531 (encoded_ordered_before): Similarly for N0,N1 parameters.
11532 (old_renaming_is_invisible): Similarly for function_name parameter.
11533 (ada_type_name): Change result type from char * to const char *.
11534 All callers updated.
11535 * ada-lang.h (ada_type_name): Update.
11536 * buildsym.c (hashname): Change type of name parameter
11537 from char * to const char *.
11538 * buildsym.h (hashname): Update.
11539 * dbxread.c (end_psymtab): Change type of include_list parameter
11540 from char ** to const char **.
11541 * dwarf2read.c (determine_prefix): Change result type
11542 from char * to const char *. All callers updated.
11543 * f-lang.c (find_common_for_function): Change type of name, funcname
11544 parameters from char * to const char *.
11545 * f-lang.c (find_common_for_function): Update.
11546 * f-valprint.c (list_all_visible_commons): Change type of funcname
11547 parameters from char * to const char *.
11548 * gdbarch.sh (static_transform_name): Change type of name parameter
11549 and result from char * to const char *.
11550 * gdbarch.c: Regenerate.
11551 * gdbarch.h: Regenerate.
11552 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11553 of name parameter from char * to const char *.
11554 * jv-lang.c (java_primitive_type_from_name): Ditto.
11555 (java_demangled_signature_length): Similarly for signature parameter.
11556 (java_demangled_signature_copy): Ditto.
11557 (java_demangle_type_signature): Ditto.
11558 * jv-lang.h (java_primitive_type_from_name): Update.
11559 (java_demangle_type_signature): Update.
11560 * objc-lang.c (specialcmp): Change type of a,b parameters
11561 from char * to const char *.
11562 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11563 from char * to const char *. All callers updated.
11564 * p-lang.h (is_pascal_string_type): Update.
11565 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11566 of name parameter from char * to const char *.
11567 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11568 * utils.c (fprintf_symbol_filtered): Ditto.
11569 * defs.h (fprintf_symbol_filtered): Update.
11570 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11571 * stabsread.h (end_psymtab): Update.
11572 * stack.c (find_frame_funname): Change type of funname parameter
11573 from char ** to const char **.
11574 * stack.h (find_frame_funname): Update.
11575 * typeprint.c (type_print): Change type of varstring parameter
11576 from char * to const char *.
11577 * value.h (type_print): Update.
11578 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11579 from char * to const char *. All callers updated.
11580 (xcoff_end_psymtab): Change type of include_list parameter
11581 from char ** to const char **. All callers updated.
11582 (swap_sym): Similarly for name parameter. All callers updated.
11583 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11584 Use xstrdup.
11585 (process_coff_symbol): Use xstrdup.
11586 * stabsread.c (stabs_method_name_from_physname): Renamed from
11587 update_method_name_from_physname. Change result type from void
11588 to char *. All callers updated.
11589 (read_member_functions): In has_destructor case, store name in objfile
11590 obstack instead of malloc space. In !has_stub case, fix mem leak.
11591
11592 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11593
11594 * configure: Rebuild.
11595 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11596 LDFLAGS.
11597
11598 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11599
11600 * configure.tgt (rl78-*-elf): New target.
11601 * rl78-tdep.c: New file.
11602
11603 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11604
11605 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11606 and continue the loop. Add QUIT statement.
11607
11608 2012-02-03 Tom Tromey <tromey@redhat.com>
11609
11610 PR gdb/13596:
11611 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11612 bfd_lookup_symbol_from_symtab.
11613 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11614 gdb_bfd_lookup_symbol_from_symtab.
11615
11616 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11617
11618 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11619 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11620 symbol. Add assertion that sym2 is never NULL.
11621
11622 2012-02-02 Doug Evans <dje@google.com>
11623
11624 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11625 "name" parameter to const char ** from char **. All callers updated.
11626 (find_pc_partial_function): Ditto.
11627 (cache_pc_function_name): Change type to const char * from char *.
11628 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11629 (find_pc_partial_function): Update.
11630 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11631 type of "name" parameter to const char * from char *.
11632 All uses updated.
11633 * arch-utils.c (generic_in_solib_return_trampoline): Change
11634 type of "name" parameter to const char * from char *.
11635 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11636 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11637 type of "name" parameter to const char * from char *.
11638 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11639 * gdbarch.c: Regenerate.
11640 * gdbarch.h: Regenerate.
11641 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11642 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11643 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11644 type of "name" parameter to const char * from char *.
11645 * skip.c (skip_function_pc): Ditto.
11646 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11647 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11648 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11649 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11650 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11651 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11652 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11653 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11654 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11655
11656 2012-02-02 Pedro Alves <palves@redhat.com>
11657
11658 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11659 the current inferior has no execution. Make sure the current
11660 remote process matches gdb's current inferior.
11661
11662 2012-02-02 Tom Tromey <tromey@redhat.com>
11663
11664 PR gdb/13405:
11665 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11666 read-only memory.
11667
11668 2012-02-02 Tom Tromey <tromey@redhat.com>
11669
11670 PR gdb/9307:
11671 * symtab.c (lookup_language_this): Set block_found.
11672
11673 2012-02-01 Tom Tromey <tromey@redhat.com>
11674
11675 PR gdb/13431:
11676 * jit.c (struct jit_inferior_data): Rewrite.
11677 (struct jit_objfile_data): New.
11678 (get_jit_objfile_data): New function.
11679 (add_objfile_entry): Update.
11680 (jit_read_descriptor): Return int. Replace descriptor_addr
11681 argument with inf_data. Update. Don't call error.
11682 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11683 descriptor here.
11684 (jit_inferior_init): Don't look up descriptor. Don't call error.
11685 (jit_reset_inferior_data_and_breakpoints)
11686 (jit_inferior_created_observer): Remove.
11687 (jit_inferior_exit_hook): Update.
11688 (jit_executable_changed_observer): Remove.
11689 (jit_event_handler): Update.
11690 (free_objfile_data): Reset inferior data if needed.
11691 (_initialize_jit): Update.
11692
11693 2012-02-01 Tom Tromey <tromey@redhat.com>
11694
11695 * jit.c (bfd_open_from_target_memory): Move higher in file.
11696
11697 2012-02-01 Tristan Gingold <gingold@adacore.com>
11698
11699 * libunwind-frame.c (libunwind_load): Display message if dlopen
11700 failed.
11701
11702 2012-02-01 Gary Benson <gbenson@redhat.com>
11703
11704 * symtab.h (symbol_found_callback_ftype): New typedef.
11705 (iterate_over_symbols): Use the above.
11706 * symtab.c (iterate_over_symbols): Likewise.
11707 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11708 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11709 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11710 (iterate_name_matcher): Document return values.
11711 (collect_one_symbol): Likewise.
11712 (collect_function_symbols): Likewise.
11713 (collect_symbols): Likewise.
11714
11715 2012-02-01 Tom Tromey <tromey@redhat.com>
11716
11717 * ada-lang.c (resolve_subexp): Update.
11718 (ada_lookup_symbol_list): Add 'full_search' argument.
11719 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11720 ada_lookup_symbol_list.
11721 (ada_lookup_encoded_symbol): Update.
11722 (get_var_value): Update.
11723 * ada-exp.y (block_lookup): Update.
11724 (write_var_or_type): Update.
11725 (write_name_assoc): Update.
11726 * ada-lang.h (ada_lookup_symbol_list): Update.
11727
11728 2012-01-31 Tom Tromey <tromey@redhat.com>
11729
11730 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11731 comment.
11732
11733 2012-01-31 Doug Evans <dje@google.com>
11734
11735 * symtab.h: Remove outdated comment.
11736 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11737
11738 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11739
11740 Fix build error in Darwin port.
11741 * i386-darwin-nat.c: Include i386-nat.h.
11742
11743 2012-01-30 Tom Tromey <tromey@redhat.com>
11744
11745 PR breakpoints/13568:
11746 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11747 argument. Check for recursive includes.
11748 (dwarf_decode_macros): Create an include hash.
11749
11750 2012-01-30 Michael Eager <eager@eagercon.com>
11751
11752 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11753 * ppc-linux-tdep.c: Include glibc-tdep.h.
11754 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11755 (powerpc_linux_in_plt_stub): New function.
11756 (powerpc_linux_in_dynsym_resolve_code): New function.
11757 (ppc_skip_trampoline_code): New function.
11758 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11759 Use glibc_skip_solib_resolver.
11760
11761 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11762
11763 Code cleanup: Make 1440 bytes of data segment read-only.
11764 * arch-utils.c (endian_enum): Make it const char *const [].
11765 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11766 Likewise.
11767 * breakpoint.c (always_inserted_enums): Likewise.
11768 * cli/cli-cmds.c (script_ext_enums): Likewise.
11769 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11770 enumlist parameter const char *const *.
11771 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11772 const char *const *.
11773 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11774 parameter const char *const *.
11775 * cris-tdep.c (cris_modes): Make it const char *const [].
11776 * filesystem.c (target_file_system_kinds): Likewise.
11777 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11778 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11779 (can_use_displaced_stepping_enum, scheduler_enums)
11780 (exec_direction_names): Likewise.
11781 * language.c (_initialize_language): Make the type_or_range_names and
11782 case_sensitive_names variables const char *const [].
11783 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11784 * python/python.c (python_excp_enums): Likewise.
11785 * remote.c (interrupt_sequence_modes): Likewise.
11786 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11787 * serial.c (logbase_enums): Likewise.
11788 * sh-tdep.c (sh_cc_enum): Likewise.
11789 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11790 Likewise.
11791 * symtab.c (multiple_symbols_modes): Likewise.
11792 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11793 Likewise.
11794 * utils.c (internal_problem_modes): Likewise.
11795
11796 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11797
11798 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11799 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11800 result.
11801
11802 2012-01-27 Doug Evans <dje@google.com>
11803
11804 * configure.ac (with_python): Fix absolute path handling for win32.
11805 * configure: Regenerate.
11806
11807 2012-01-26 Doug Evans <dje@google.com>
11808
11809 * symtab.c: Whitespace cleanup, no code changes.
11810
11811 * symtab.c (lookup_symbol_in_language): Improve comment.
11812 (lookup_symbol_aux): Fix comment.
11813
11814 * psymtab.c (add_psymbol_to_list): Result is now "void".
11815 * psympriv.h (add_psymbol_to_list): Update.
11816
11817 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11818
11819 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11820
11821 Do not open script filenames twice.
11822 * cli/cli-cmds.c (source_script_from_stream): Pass to
11823 source_python_script also STREAM.
11824 * python/py-auto-load.c (source_section_scripts): Pass to
11825 source_python_script_for_objfile also STREAM.
11826 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11827 also INPUT.
11828 * python/python-internal.h (source_python_script_for_objfile): New
11829 parameter file, rename parameter file to filename.
11830 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11831 instead if !_WIN32. Update the function comment.
11832 (source_python_script, source_python_script_for_objfile)
11833 (source_python_script): New parameter file, rename parameter file to
11834 filename. Pass FILENAME to python_run_simple_file.
11835 * python/python.h (source_python_script): New parameter file, rename
11836 parameter file to filename.
11837
11838 2012-01-26 Pedro Alves <palves@redhat.com>
11839
11840 * corelow.c (core_has_fake_pid): Delete.
11841 (core_close): Delete references to `core_has_fake_pid'.
11842 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11843 (core_open): Delete references to `core_has_fake_pid'.
11844 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11845 the removed global.
11846
11847 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11848
11849 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11850 Remove language parameter from name_matcher. Adjust the comment.
11851 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11852 Remove language parameter.
11853 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11854 * linespec.c (iterate_name_matcher): Likewise.
11855 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11856 name_matcher. Adjust call accordingly.
11857 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11858 (maintenance_check_symtabs): Adjust type of parameter "fun".
11859 * psymtab.h (maintenance_check_symtabs): Likewise.
11860
11861 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11862
11863 * language.h (symbol_name_match_p_ftype): New typedef.
11864 (struct language_defn): Replace field la_symbol_name_compare
11865 by la_get_symbol_name_match_p.
11866 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11867 (ada_language_defn): Use it.
11868 * linespec.c (struct symbol_matcher_data): New type.
11869 (iterate_name_matcher): Rewrite.
11870 (iterate_over_all_matching_symtabs): Pass a pointer to
11871 a symbol_matcher_data struct to expand_symtabs_matching
11872 instead of just the lookup name.
11873 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11874 opencl-lang.c, p-lang.c, language.c: Delete field
11875 la_symbol_name_compare, and replace by NULL for new field
11876 la_get_symbol_name_match_p.
11877 * symfile.h (struct quick_symbol_functions): Update comment.
11878
11879 2012-01-25 Tom Tromey <tromey@redhat.com>
11880
11881 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11882 dereferencing.
11883
11884 2012-01-24 Tom Tromey <tromey@redhat.com>
11885
11886 PR symtab/12406:
11887 * solib.c (update_solib_list): Update the program space's
11888 added_solibs and deleted_solibs fields.
11889 * progspace.h (struct program_space) <added_solibs,
11890 deleted_solibs>: New fields.
11891 (clear_program_space_solib_cache): Declare.
11892 * progspace.c (release_program_space): Call
11893 clear_program_space_solib_cache.
11894 (clear_program_space_solib_cache): New function.
11895 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11896 bpstat_stop_status. Use handle_solib_event.
11897 * breakpoint.c: Include gdb_regex.h.
11898 (print_solib_event): New function.
11899 (bpstat_print): Use print_solib_event.
11900 (bpstat_stop_status): Add special case for bp_shlib_event.
11901 (handle_solib_event): New function.
11902 (bpstat_what): Use handle_solib_event.
11903 (struct solib_catchpoint): New.
11904 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11905 (breakpoint_hit_catch_solib, check_status_catch_solib)
11906 (print_it_catch_solib, print_one_catch_solib)
11907 (print_mention_catch_solib, print_recreate_catch_solib): New
11908 functions.
11909 (catch_solib_breakpoint_ops): New global.
11910 (catch_load_or_unload, catch_load_command_1)
11911 (catch_unload_command_1): New functions.
11912 (internal_bkpt_check_status): Add special case for
11913 bp_shlib_event.
11914 (internal_bkpt_print_it): Use print_solib_event.
11915 (initialize_breakpoint_ops): Initialize
11916 catch_solib_breakpoint_ops.
11917 (_initialize_breakpoint): Register "catch load" and "catch
11918 unload".
11919 * breakpoint.h (handle_solib_event): Declare.
11920 * NEWS: Add entry for "catch load" and "catch unload".
11921
11922 2012-01-24 Tom Tromey <tromey@redhat.com>
11923
11924 * ada-lang.c: Include gdb_vecs.h.
11925 * charset.c: Include gdb_vecs.h.
11926 * tracepoint.h: Include gdb_vecs.h.
11927 * gdb_vecs.h: New file.
11928
11929 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11930
11931 * breakpoint.c (breakpoint_hit_catch_fork)
11932 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11933 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11934 * infrun.c (inferior_has_forked, inferior_has_vforked)
11935 (inferior_has_execd, inferior_has_called_syscall): Delete.
11936 (handle_syscall_event): Get syscall_number from the execution
11937 control state's wait status.
11938 (wait_for_inferior): Don't clear syscall_number.
11939
11940 2012-01-24 Pedro Alves <palves@redhat.com>
11941
11942 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11943 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11944 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11945 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11946 `ws' parameter.
11947 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11948 false for events other than TARGET_SIGNAL_TRAP.
11949 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11950 Add `ws' parameter.
11951 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11952 events other than TARGET_SIGNAL_TRAP.
11953 (tracepoint_breakpoint_hit): Add `ws' parameter.
11954 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11955 parameter.
11956 (bpstat_stop_status): Same.
11957 (pc_at_non_inline_function): Same.
11958 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11959 to pass the current event's waitstatus to bpstat_stop_status
11960 and pc_at_non_inline_function.
11961
11962 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11963
11964 Code cleanup.
11965 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11966 Update the function comment for it.
11967 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11968 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11969 for STREAM.
11970
11971 2012-01-24 Pedro Alves <palves@redhat.com>
11972
11973 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11974 outside `bs->stop' block.
11975 (bpstat_what): Rework bp_shlib_event handling.
11976 (internal_bkpt_check_status): If the breakpoint is a
11977 bp_shlib_event, then set bs->stop and bs->print if
11978 stop_on_solib_events is set.
11979
11980 2012-01-24 Gary Benson <gbenson@redhat.com>
11981
11982 Delete #if 0'd out code.
11983 * stack.c (print_frame_label_vars): Remove.
11984 (catch_info): Likewise.
11985 (_initialize_stack): Remove "info catch" command.
11986 * NEWS: Mention the above.
11987
11988 2012-01-24 Pedro Alves <palves@redhat.com>
11989
11990 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11991 it.
11992 (remote_notice_new_inferior): If the remote end doesn't support
11993 the multiprocess extensions, then the PID is fake.
11994 (add_current_inferior_and_thread): New.
11995 (remote_start_remote): Use it.
11996 (extended_remote_attach_1): Adjust.
11997 (extended_remote_create_inferior_1): Use
11998 add_current_inferior_and_thread.
11999
12000 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12001
12002 Fix watchpoints to be specific for each inferior.
12003 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12004 current_program_space.
12005 * i386-nat.c (i386_inferior_data_cleanup): New.
12006 (i386_inferior_data_get): Replace variable inf_data_local by an
12007 inferior_data call.
12008 (i386_use_watchpoints): Initialize i386_inferior_data.
12009 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12010 specific iterate_over_lwps.
12011
12012 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12013
12014 Fix watchpoints across inferior fork.
12015 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12016 comment for linux_nat_iterate_watchpoint_lwps.
12017 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12018 linux_nat_iterate_watchpoint_lwps.
12019 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12020 * i386-linux-nat.c (update_debug_registers_callback): Update the
12021 comment for linux_nat_iterate_watchpoint_lwps.
12022 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12023 linux_nat_iterate_watchpoint_lwps.
12024 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12025 * i386-nat.c: Include inferior.h.
12026 (dr_mirror): Remove.
12027 (i386_inferior_data, struct i386_inferior_data)
12028 (i386_inferior_data_get): New.
12029 (i386_debug_reg_state): Use i386_inferior_data_get.
12030 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12031 (i386_insert_watchpoint, i386_remove_watchpoint)
12032 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12033 (i386_remove_hw_breakpoint): New variable state, use
12034 i386_debug_reg_state instead of DR_MIRROR.
12035 * linux-nat.c (delete_lwp): New declaration.
12036 (num_lwps): Move here from downwards.
12037 (delete_lwp_cleanup): New.
12038 (linux_child_follow_fork): Create new child_lp, call
12039 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12040 PTRACE_DETACH.
12041 (num_lwps): Move upwards.
12042 (linux_nat_iterate_watchpoint_lwps): New.
12043 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12044 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12045
12046 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12047
12048 GDB 7.4 released.
12049
12050 2012-01-23 Pedro Alves <palves@redhat.com>
12051
12052 * top.c (caution): Rename to ...
12053 (confirm): ... this.
12054 (show_caution): Rename to ...
12055 (show_confirm): ... this.
12056 (quit_cover): Adjust.
12057 (init_main): Adjust.
12058 * top.h (caution): Rename to ...
12059 (confirm): ... this.
12060 * utils.c (internal_vproblem, defaulted_query): Adjust.
12061
12062 2012-01-23 Pedro Alves <palves@redhat.com>
12063
12064 * top.c (caution): Update comment.
12065 (execute_command): Don't consider the current value of `caution'.
12066
12067 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12068
12069 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12070
12071 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12072
12073 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12074 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12075 * target.c (target_fileio_pwrite): Remove buffer address from
12076 debug output.
12077 (target_fileio_pread): Likewise.
12078
12079 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12080
12081 * NEWS: Document remote "info proc" and "generate-core-file".
12082
12083 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12084
12085 * gdbarch.sh (find_memory_regions): New callback.
12086 * gdbarch.c, gdbarch.h: Regenerate.
12087
12088 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12089 callback before falling back to target method.
12090
12091 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12092 (linux_target_install_ops): No longer install it.
12093
12094 * linux-tdep.c (linux_find_memory_regions): New function.
12095 (linux_init_abi): Install it.
12096
12097 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12098
12099 * gdbarch.sh (make_corefile_notes): New architecture callback.
12100 * gdbarch.c: Regenerate.
12101 * gdbarch.h: Likewise.
12102
12103 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12104 before target_make_corefile_notes. If NULL is returned, the
12105 target does not support core file generation.
12106
12107 * linux-nat.c: Include "linux-tdep.h".
12108 (find_signalled_thread, find_stop_signal): Remove.
12109 (linux_nat_do_thread_registers): Likewise.
12110 (struct linux_nat_corefile_thread_data): Likewise.
12111 (linux_nat_corefile_thread_callback): Likewise.
12112 (iterate_over_spus): Likewise.
12113 (struct linux_spu_corefile_data): Likewise.
12114 (linux_spu_corefile_callback): Likewise.
12115 (linux_spu_make_corefile_notes): Likewise.
12116 (linux_nat_collect_thread_registers): New function.
12117 (linux_nat_make_corefile_notes): Replace contents by call to
12118 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12119 as native-only callback.
12120
12121 * linux-tdep.h: Include "bfd.h".
12122 (struct regcache): Add forward declaration.
12123 (linux_collect_thread_registers_ftype): New typedef.
12124 (linux_make_corefile_notes): Add prototype.
12125 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12126 "regset.h", and "elf-bfd.h".
12127 (find_signalled_thread, find_stop_signal): New functions.
12128 (linux_spu_make_corefile_notes): Likewise.
12129 (linux_collect_thread_registers): Likewise.
12130 (struct linux_corefile_thread_data): New data structure.
12131 (linux_corefile_thread_callback): New funcion.
12132 (linux_make_corefile_notes): Likewise.
12133 (linux_make_corefile_notes_1): Likewise.
12134 (linux_init_abi): Install it.
12135
12136 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12137
12138 * gdbarch.sh (info_proc): New callback.
12139 * gdbarch.c, gdbarch.h: Regenerate.
12140
12141 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12142 before falling back to the target info_proc callback.
12143
12144 * linux-nat.c: Do not include "cli/cli-utils.h".
12145 (linux_nat_info_proc): Remove.
12146 (linux_target_install_ops): No longer install it.
12147
12148 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12149 (read_mapping): New function.
12150 (linux_info_proc): Likewise.
12151 (linux_init_abi): Install it.
12152
12153 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12154
12155 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12156 * infcmd.c: (info_proc_cmd_1): New function.
12157 (info_proc_cmd): New function, moved here from equivalent routine
12158 orignally in linux-nat.c.
12159 (info_proc_cmd_mappings): Likewise.
12160 (info_proc_cmd_stat): Likewise.
12161 (info_proc_cmd_status): Likewise.
12162 (info_proc_cmd_cwd): Likewise.
12163 (info_proc_cmd_cmdline): Likewise.
12164 (info_proc_cmd_exe): Likewise.
12165 (info_proc_cmd_all): Likewise.
12166 (_initialize_infcmd): Install "info proc" command and subcommands.
12167
12168 * target.h (struct target_ops): Add to_info_proc.
12169 (target_info_proc): Add prototype.
12170 * target.c (target_info_proc): New function.
12171
12172 * procfs.c (procfs_info_proc): Add prototype.
12173 (info_proc_cmd): Rename into ...
12174 (procfs_info_proc): ... this. Update argument types as appropriate
12175 for a to_info_proc implementation. Handle "what" argument.
12176 (procfs_target): Install procfs_info_proc.
12177 (_initialize_procfs): No longer install "info proc" command.
12178
12179 * linux-nat.c: (enum info_proc_what): Remove.
12180 (linux_nat_info_proc_cmd_1): Rename into ...
12181 (linux_nat_info_proc): ... this. Update argument types as appropriate
12182 for a to_info_proc implementation.
12183 (linux_nat_info_proc_cmd): Remove.
12184 (linux_nat_info_proc_cmd_mappings): Likewise.
12185 (linux_nat_info_proc_cmd_stat): Likewise.
12186 (linux_nat_info_proc_cmd_status): Likewise.
12187 (linux_nat_info_proc_cmd_cwd): Likewise.
12188 (linux_nat_info_proc_cmd_cmdline): Likewise.
12189 (linux_nat_info_proc_cmd_exe): Likewise.
12190 (linux_nat_info_proc_cmd_all): Likewise.
12191 (linux_target_install_ops): Install linux_nat_info_proc.
12192 (_initialize_linux_nat): No longer install "info proc" command
12193 and subcommands.
12194
12195 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12196
12197 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12198 * config.in, configure: Regenerate.
12199
12200 * target.h (struct target_ops): Add to_fileio_readlink.
12201 (target_fileio_readlink): Add prototype.
12202 * target.c (target_fileio_readlink): New function.
12203
12204 * inf-child.c: Conditionally include <sys/param.h>.
12205 (inf_child_fileio_readlink): New function.
12206 (inf_child_target): Install it.
12207
12208 * remote.c (PACKET_vFile_readlink): New enum value.
12209 (remote_hostio_readlink): New function.
12210 (init_remote_ops): Install it.
12211 (_initialize_remote): Handle vFile:readlink packet type.
12212
12213 2012-01-20 Pedro Alves <palves@redhat.com>
12214 Ulrich Weigand <ulrich.weigand@linaro.org>
12215
12216 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12217 * config.in, configure: Regenerate.
12218
12219 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12220 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12221 (target_fileio_open): Add prototype.
12222 (target_fileio_pwrite): Likewise.
12223 (target_fileio_pread): Likewise.
12224 (target_fileio_close): Likewise.
12225 (target_fileio_unlink): Likewise.
12226 (target_fileio_read_alloc): Likewise.
12227 (target_fileio_read_stralloc): Likewise.
12228
12229 * target.c: Include "gdb/fileio.h".
12230 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12231 (default_fileio_target): New function.
12232 (target_fileio_open): Likewise.
12233 (target_fileio_pwrite): Likewise.
12234 (target_fileio_pread): Likewise.
12235 (target_fileio_close): Likewise.
12236 (target_fileio_unlink): Likewise.
12237 (target_fileio_close_cleanup): Likewise.
12238 (target_fileio_read_alloc_1): Likewise.
12239 (target_fileio_read_alloc): Likewise.
12240 (target_fileio_read_stralloc): Likewise.
12241
12242 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12243 <fcntl.h>, and <unistd.h>.
12244 (inf_child_fileio_open_flags_to_host): New function.
12245 (inf_child_errno_to_fileio_error): Likewise.
12246 (inf_child_fileio_open): Likewise.
12247 (inf_child_fileio_pwrite): Likewise.
12248 (inf_child_fileio_pread): Likewise.
12249 (inf_child_fileio_close): Likewise.
12250 (inf_child_fileio_unlink): Likewise.
12251 (inf_child_target): Install to_fileio routines.
12252
12253 * remote.c (init_remote_ops): Install to_fileio routines.
12254
12255 2012-01-20 Pedro Alves <palves@redhat.com>
12256 Ulrich Weigand <ulrich.weigand@linaro.org>
12257
12258 * remote.c (remote_multi_process_p): Only check for multi-process
12259 protocol feature, do not check for extended protocol.
12260 (remote_supports_multi_process): Check for extended protocol here.
12261 (set_general_process): Likewise.
12262 (extended_remote_kill): Likewise.
12263 (remote_pid_to_str): Likewise.
12264 (remote_query_supported): Always query multiprocess mode.
12265
12266 2012-01-20 Pedro Alves <palves@redhat.com>
12267 Ulrich Weigand <ulrich.weigand@linaro.org>
12268
12269 * inferior.h (struct inferior): Add fake_pid_p.
12270 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12271 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12272 magic_null_ptid since the remote side doesn't provide a real PID.
12273
12274 2012-01-19 Tom Tromey <tromey@redhat.com>
12275
12276 * NEWS: Combine the two Python sections.
12277
12278 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12279
12280 * target.h (target_close): Update comment on the target's unpush state.
12281
12282 2012-01-19 Pedro Alves <palves@redhat.com>
12283
12284 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12285 linux_nat_async directly instead of going through the target
12286 vector.
12287 * target.c (unpush_target): Close target after unpushing it, not
12288 before.
12289
12290 2012-01-19 Gary Benson <gbenson@redhat.com>
12291
12292 * mdebugread.c (sort_blocks): Replace integer constants with ones
12293 derived from FIRST_LOCAL_BLOCK.
12294
12295 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12296 Jan Kratochvil <jan.kratochvil@redhat.com>
12297
12298 PR gdb/9538
12299 * symfile.c (find_separate_debug_file): New function.
12300 (terminate_after_last_dir_separator): Likewise.
12301 (find_separate_debug_file_by_debuglink): Also try realpath.
12302 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12303 * configure: Regenerate.
12304 * config.in: Regenerate.
12305
12306 2012-01-18 Doug Evans <dje@google.com>
12307
12308 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12309 (main.o): Remove rule.
12310 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12311 (--with-sysroot): Rewrite.
12312 * configure: Regenerate.
12313 * config.in: Regenerate.
12314
12315 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12316
12317 * parse.c (initialize_expout): New function.
12318 (reallocate_expout): Likewise.
12319 (parse_exp_in_context): Use `initialize_expout' and
12320 `reallocate_expout' when appropriate.
12321
12322 2012-01-18 Pedro Alves <palves@redhat.com>
12323
12324 * record.c (struct record_breakpoint, record_breakpoint_p)
12325 (record_breakpoints): New.
12326 (record_insert_breakpoint, record_remove_breakpoint): Manage
12327 record breakpoints list. Only remove breakpoints from the
12328 inferior if they had been inserted there in the first place.
12329
12330 2012-01-17 Doug Evans <dje@google.com>
12331
12332 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12333 if we know we don't have a file name to look for.
12334
12335 2012-01-17 Pedro Alves <palves@redhat.com>
12336
12337 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12338 the frame's stop reason is UNWIND_UNAVAILABLE.
12339
12340 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12341
12342 Fix compilation error.
12343 * m2-exp.y (yyerror): Use ANSI C prototype.
12344
12345 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12346
12347 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12348 (growbuf_by_size): Likewise.
12349 (yyerror): Likewise.
12350 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12351 (modblock): Remove variable (was #if 0'ed).
12352 (parse_number): Convert prototype from K&R to ANSI C.
12353 (yyerror): Likewise.
12354 * objc-exp.y (parse_number): Likewise.
12355 (yyerror): Likewise.
12356 (yylex): Remove #if 0'ed code.
12357 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12358 (yyerror): Likewise.
12359
12360 2012-01-16 Tom Tromey <tromey@redhat.com>
12361
12362 * NEWS: Add item.
12363 * symtab.h (compare_filenames_for_search): Declare.
12364 * symtab.c (compare_filenames_for_search): New function.
12365 (iterate_over_some_symtabs): Use it.
12366 * symfile.h (struct quick_symbol_functions)
12367 <map_symtabs_matching_filename>: Change spec.
12368 * psymtab.c (partial_map_symtabs_matching_filename): Use
12369 compare_filenames_for_search. Update for new spec.
12370 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12371 compare_filenames_for_search. Update for new spec.
12372 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12373
12374 2012-01-16 Tom Tromey <tromey@redhat.com>
12375
12376 PR python/13281:
12377 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12378 (struct main_type) <flag_flag_enum>: New field.
12379 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12380 * NEWS: Add entries.
12381 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12382 enums.
12383 * python/lib/gdb/printing.py (_EnumInstance): New class.
12384 (FlagEnumerationPrinter): Likewise.
12385
12386 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12387
12388 * breakpoint.c (create_sals_from_address_default): New function.
12389 (create_breakpoints_sal_default): Likewise.
12390 (decode_linespec_default): Likewise.
12391 (is_marker_spec): Removed.
12392 (strace_marker_p): New function.
12393 (init_breakpoint_sal): Using `strace_marker_p' instead of
12394 `is_marker_spec'.
12395 (create_breakpoint): Call method `create_sals_from_address' from
12396 breakpoint_ops, replacing code that created SALs conditionally
12397 on the type of the breakpoint. Call method `create_breakpoints_sal',
12398 replacing code that created breakpoints conditionally on the type
12399 wanted.
12400 (base_breakpoint_create_sals_from_address): New function.
12401 (base_breakpoint_create_breakpoints_sal): Likewise.
12402 (base_breakpoint_decode_linespec): Likewise.
12403 (base_breakpoint_ops): Add methods
12404 `base_breakpoint_create_sals_from_address',
12405 `base_breakpoint_create_breakpoints_sal' and
12406 `base_breakpoint_decode_linespec'.
12407 (bkpt_create_sals_from_address): New function.
12408 (bkpt_create_breakpoints_sal): Likewise.
12409 (bkpt_decode_linespec): Likewise.
12410 (tracepoint_create_sals_from_address): Likewise.
12411 (tracepoint_create_breakpoints_sal): Likewise.
12412 (tracepoint_decode_linespec): Likewise.
12413 (strace_marker_create_sals_from_address): Likewise.
12414 (strace_marker_create_breakpoints_sal): Likewise.
12415 (strace_marker_decode_linespec): Likewise.
12416 (strace_marker_breakpoint_ops): New variable.
12417 (addr_string_to_sals): Remove `marker_spec'. Call method
12418 `decode_linespec' from breakpoint_ops, replacing code that decoded
12419 an address string into a SAL. Use `strace_marker_p' instead of
12420 `marker_spec'.
12421 (strace_command): Decide whether we are dealing with a static
12422 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12423 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12424 * breakpoint.h (linespec_result, linespec_sals): New forward
12425 declarations.
12426 (breakpoint_ops) <create_sals_from_address>,
12427 <create_breakpoints_sal>, <decode_linespec>: New methods.
12428
12429 2012-01-14 Doug Evans <dje@google.com>
12430
12431 * NEWS: Update text for "maint set python print-stack".
12432 It is deprecated in gdb 7.4 and deleted in 7.5.
12433
12434 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12435
12436 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12437 including curses.h.
12438
12439 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12440
12441 * configure: Regenerate.
12442 * config.in: Regenerate.
12443
12444 2012-01-12 Keith Seitz <keiths@redhat.com>
12445
12446 PR mi/10586
12447 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12448 (ANONYMOUS_UNION_NAME): Define.
12449 (is_path_expr_parent): New function.
12450 (get_path_expr_parent): New function.
12451 (is_anonymous_child): New function.
12452 (create_child_with_value): If the child is anonymous and without
12453 a name, assign an object name to it.
12454 (c_describe_child): Use get_path_expr_parent to determine
12455 the parent expression.
12456 If there field represents an anonymous struct or union and
12457 has no name, set an appropriate display name and expression.
12458 (cplus_describe_child): Likewise.
12459
12460 2012-01-12 Pedro Alves <palves@redhat.com>
12461
12462 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12463 available when %ebp is found to be zero (outermost).
12464
12465 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12466
12467 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12468 an internal gdb_static_assert.
12469 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12470
12471 2012-01-11 Tom Tromey <tromey@redhat.com>
12472
12473 PR gdb/9598:
12474 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12475 catch" and "catch throw".
12476
12477 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12478
12479 * blockframe.c (block_innermost_frame): Start search from selected
12480 frame, if present, or otherwise the current frame.
12481
12482 * c-exp.y (variable): Update innermost_block for
12483 'block COLONCOLON NAME' clause.
12484 * m2-exp.y (variable): Ditto.
12485 * objc-exp.y (variable): Ditto.
12486
12487 2012-01-10 Tom Tromey <tromey@redhat.com>
12488
12489 PR python/13199:
12490 * python/python.c (finish_python_initialization): Set sys.argv.
12491
12492 2012-01-10 Doug Evans <dje@google.com>
12493
12494 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12495 "want_line_info". All callers updated.
12496 (dwarf_decode_lines_1): New function.
12497 (handle_DW_AT_stmt_list): Add function comment.
12498 New arg "want_line_info". All callers updated.
12499 (read_file_scope,read_type_unit_scope): Move comment from
12500 handle_DW_AT_stmt_list to here.
12501
12502 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12503
12504 Fix regression after libiberty/ update for GCC PR 6057 and others.
12505 * c-exp.y (operator) <OPERATOR DELETE>
12506 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12507 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12508 (make_builtin_type, make_name): New variable i, add gdb_assert.
12509 (operator) <OPERATOR NEW>: Update ARGS to 3.
12510 (operator) <OPERATOR DELETE>: Add trailing space.
12511 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12512 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12513 * cp-support.c (cp_canonicalize_string): Check NULL from
12514 cp_comp_to_string, call warning and return.
12515
12516 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12517
12518 Fix duplicate .o files after omitting libbfd.a.
12519 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12520 (SFILES): Add corelow.c.
12521 (COMMON_OBS): Add corelow.o.
12522 (ALLDEPFILES): Remove corelow.c.
12523 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12524 * config/alpha/alpha-osf3.mh: Likewise.
12525 * config/alpha/fbsd.mh: Likewise.
12526 * config/arm/nbsdaout.mh: Likewise.
12527 * config/arm/nbsdelf.mh: Likewise.
12528 * config/i386/i386gnu.mh: Likewise.
12529 * config/ia64/hpux.mh: Likewise.
12530 * config/ia64/linux.mh: Likewise.
12531 * config/m32r/linux.mh: Likewise.
12532 * config/m68k/linux.mh: Likewise.
12533 * config/mips/irix5.mh: Likewise.
12534 * config/mips/irix6.mh: Likewise.
12535 * config/pa/hpux.mh: Likewise.
12536 * config/pa/linux.mh: Likewise.
12537 * config/powerpc/aix.mh: Likewise.
12538 * config/sparc/linux.mh: Likewise.
12539 * config/sparc/linux64.mh: Likewise.
12540 * config/sparc/sol2.mh: Likewise.
12541 * config/vax/vax.mh: Likewise.
12542 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12543 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12544 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12545 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12546 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12547 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12548 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12549 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12550 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12551 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12552 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12553 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12554 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12555 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12556 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12557 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12558 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12559 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12560 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12561 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12562 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12563 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12564 corelow.o from gdb_target_obs.
12565 * corefile.c (core_target): Update the comment on NULL value.
12566 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12567 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12568 MATCHES. Drop YUMMY set on NULL.
12569 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12570 reclaim CORE_DATA if it is already NULL.
12571
12572 2012-01-09 Doug Evans <dje@google.com>
12573
12574 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12575 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12576
12577 2012-01-09 Keith Seitz <keiths@redhat.com>
12578
12579 * breakpoint.c (wrapper.h): Don't include.
12580
12581 2012-01-09 Keith Seitz <keiths@redhat.com>
12582
12583 * Makefile.in (SFILES): Remove wrapper.c.
12584 (HFILES_NO_SRCDIR): Remove wrapper.h.
12585 (COMMON_OBS): Remove wrapper.o.
12586 * cli/cli-interp.c: Don't inlude wrapper.h.
12587 * corelow.c: Likewise.
12588 (core_open): Replace gdb_target_find_new_threads with
12589 TRY_CATCH around target_find_new_threads.
12590 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12591 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12592 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12593 evaluate_expression.
12594 (varobj_set_value): Likewise for evaluate_expression and
12595 value_assign.
12596 (install_new_variable): Likewise for value_fetch_lazy.
12597 (adjust_value_for_child_access): Likewise for value_ind.
12598 (c_describe_child): Likewise for value_subscript and
12599 value_ind.
12600 (c_value_of_root): Likewise for evaluate_expression.
12601 * wrapper.c: Remove.
12602 * wrapper.h: Remove.
12603
12604 2012-01-09 Doug Evans <dje@google.com>
12605
12606 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12607 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12608 "abfd" args with "section". All callers updated.
12609 Error checking code moved ...
12610 (error_check_comp_unit_head): ... here. New function.
12611 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12612 Delete arg "abfd". New arg "type_offset". All callers updated.
12613 (create_debug_types_hash_table): Simplify by using
12614 read_and_check_type_unit_head.
12615
12616 * parser-defs.h (namecopy): Delete.
12617 * parse.c (namecopy, namecopy_size): Move into copy_name.
12618
12619 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12620
12621 Partially fix duplicate .o files after omitting libbfd.a.
12622 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12623 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12624 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12625 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12626 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12627 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12628 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12629
12630 2012-01-09 Pedro Alves <palves@redhat.com>
12631
12632 * MAINTAINERS: Update my email address.
12633
12634 2012-01-08 Doug Evans <dje@google.com>
12635
12636 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12637 n_type_units. Rename type_comp_units to all_type_units.
12638 All uses updated.
12639 (add_signatured_type_cu_to_table): Renamed from
12640 add_signatured_type_cu_to_list. All callers updated.
12641
12642 * gdbtypes.h (struct cplus_struct_type): Delete member
12643 nfn_fields_total. All uses removed.
12644
12645 2012-01-06 Doug Evans <dje@google.com>
12646
12647 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12648 to top of file.
12649 (dwarf2_find_comp_unit): Delete.
12650 (process_psymtab_comp_unit): Make result "void".
12651 Delete args buffer, info_ptr, buffer_size, and replace with
12652 "section". All callers updated.
12653 (dwarf2_build_psymtabs_hard): Simplify.
12654
12655 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12656 Thiago Jung Bauermann <bauerman@br.ibm.com>
12657
12658 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12659 before `struct gdb_exception'.
12660 * breakpoint.c (update_global_location_list_nothrow)
12661 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12662 * cp-abi.c (value_rtti_type): Likewise.
12663 * cp-support.c (cp_validate_operator): Likewise.
12664 * infrun.c (insert_exception_resume_breakpoint)
12665 (check_exception_resume, keep_going): Likewise.
12666 * mi-interp.c (mi_breakpoint_created)
12667 (mi_breakpoint_modified): Likewise.
12668 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12669 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12670 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12671
12672 2012-01-05 Doug Evans <dje@google.com>
12673
12674 * dwarf2read.c (statement_prologue): Delete, unused.
12675
12676 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12677 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12678
12679 * dwarf2read.c (comp_unit_header): Delete, unused.
12680
12681 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12682
12683 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12684 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12685
12686 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12687
12688 * infrun.c (normal_stop): Don't skip calling the normal_stop
12689 observers if the thread was doing a multi-step, but stopped for
12690 some reason other than stepping.
12691
12692 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12693
12694 * cli/cli-decode.h: Add comments.
12695 (CMD_LIST_AMBIGUOUS): Moved to command.h
12696 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12697 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12698 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12699 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12700 (add_com, add_com_alias, add_info, add_info_alias)
12701 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12702 declarations.
12703 * command.h: Add and adjust comments.
12704 (CMD_LIST_AMBIGUOUS): Moved here.
12705 (help_cmd, help_cmd_list): Delete declarations.
12706
12707 2012-01-04 Doug Evans <dje@google.com>
12708
12709 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12710 All callers updated.
12711 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12712 Replace all arguments with "per_cu". All callers updated.
12713
12714 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12715
12716 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12717 New arg "per_cu". All callers updated.
12718
12719 Delete #if 0'd out code.
12720 * language.c (binop_result_type): Delete.
12721 (simple_type, ordered_type, same_type, integral_type): Delete.
12722 (numeric_type, character_type, string_type, boolean_type): Delete.
12723 (float_type, structured_type): Delete.
12724 * language.h: Update.
12725
12726 2012-01-04 Tom Tromey <tromey@redhat.com>
12727
12728 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12729
12730 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12731
12732 * corefile.c (close_exec_file): Delete.
12733 (reopen_exec_file): Remove commented out code that seems related
12734 to close_exec_file, which is being deleted here.
12735 * inferior.h (close_exec_file): Delete.
12736 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12737
12738 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12739
12740 * ada-lang.c: #include "cli/cli-utils.h".
12741 (get_selections): Use skip_spaces.
12742 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12743 (catch_ada_exception_command_split): Use skip_spaces.
12744 (ada_decode_assert_location): Likewise.
12745
12746 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12747
12748 * linespec.c (decode_line_internal): Check for C++ or Java
12749 compound constructs only if the current language is C, C++
12750 or Java.
12751
12752 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12753
12754 Revert:
12755 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12756 Joel Brobecker <brobecker@adacore.com>
12757 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12758 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12759 3 times.
12760 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12761 fall through into AT_ENTRY_POINT.
12762 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12763 DUMMY_ADDR with it.
12764 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12765 PPC_INSN_SIZE skip to 3 times.
12766
12767 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12768
12769 * linespec.c (add_minsym): Preserve function descriptors.
12770
12771 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12772
12773 * breakpoint.c (all_locations_are_pending): Consider locations
12774 in program spaces executing during startup pending as well.
12775
12776 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12777
12778 Copyright year update in most files of the GDB Project.
12779
12780 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12781
12782 * copyright.sh: Delete.
12783 * copyright.py: Rewrite.
12784
12785 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12786
12787 * gnulib/extra/update-copyright: New file, imported from gnulib.
12788
12789 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12790
12791 * README (Copyright and License Notices): New section.
12792
12793 2012-01-03 Tom Tromey <tromey@redhat.com>
12794
12795 PR python/12533:
12796 * python/py-value.c (valpy_dereference, valpy_get_address
12797 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12798 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12799 (valpy_absolute, valpy_richcompare): Free intermediate values.
12800
12801 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12802
12803 * ada-lang.c: Reformat the copyright notice.
12804
12805 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12806
12807 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12808 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12809 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12810 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12811 Revert this part of:
12812 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12813 Build gdb directly from *.o files not using libgdb.a.
12814 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12815
12816 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12817
12818 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12819 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12820 Reformat the copyright header.
12821
12822 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12823
12824 Revert this part of:
12825 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12826 Remove the gdbtui binary.
12827 * gdb.c (main): Remove args.interpreter_p initialization.
12828 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12829 * main.h (struct captured_main_args): Remove interpreter_p.
12830
12831 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12832
12833 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12834
12835 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12836
12837 * top.c (print_gdb_version): Update copyright year.
12838
12839 2012-01-02 Yao Qi <yao@codesourcery.com>
12840
12841 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12842
12843 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12844 Joel Brobecker <brobecker@adacore.com>
12845
12846 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12847 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12848 3 times.
12849 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12850 fall through into AT_ENTRY_POINT.
12851 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12852 DUMMY_ADDR with it.
12853 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12854 PPC_INSN_SIZE skip to 3 times.
12855
12856 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12857
12858 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12859 the return value.
12860 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12861
12862 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12863
12864 Build gdb directly from *.o files not using libgdb.a.
12865 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12866 (COMMON_OBS): Remove solib-target.o.
12867 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12868 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12869 (LIBGDB_OBS, libgdb.a): Move it above.
12870 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12871 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12872 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12873 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12874 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12875 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12876 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12877 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12878 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12879 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12880 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12881 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12882 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12883 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12884 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12885 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12886 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12887 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12888 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12889 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12890 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12891 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12892 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12893 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12894 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12895 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12896 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12897
12898 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12899
12900 Remove the gdbtui binary.
12901 * .gitignore (/gdbtui): Remove.
12902 * Makefile.in (TUI): Remove.
12903 (SUBDIR_TUI_OBS): Remove tui-main.o.
12904 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12905 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12906 (tui-main.o): Remove.
12907 (all_object_files): Remove tui-main.o.
12908 * NEWS: New note for the gdbtui removal.
12909 * configure: Rebuilt.
12910 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12911 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12912 CONFIG_UNINSTALL respectively.
12913 * gdb.c (main): Remove args.interpreter_p initialization.
12914 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12915 * main.h (struct captured_main_args): Remove interpreter_p.
12916 * tui/tui-main.c: Remove.
12917
12918 2012-01-01 Doug Evans <dje@google.com>
12919
12920 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12921 (dwarf2_physname, read_import_statement): Ditto.
12922 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12923 (process_structure_scope read_subroutine_type): Ditto.
12924 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12925 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12926 (dwarf2_fetch_die_location_block): Ditto.
12927 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12928
12929 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12930 All callers updated.
12931 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12932 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12933 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12934
12935 * dwarf2read.c (load_cu): Move assert to more useful location.
12936
12937 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12938 All callers updated.
12939
12940 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12941 (dwarf2_elf_names): Minor reformat.
12942 (dwarf2_per_cu_data): Tweak comment.
12943 (dwarf2_read_section): Fix comment.
12944 (create_all_comp_units): Fix comment.
12945 (load_full_comp_unit): Fix comment.
12946 (process_full_comp_unit): Fix comment.
12947 (read_signatured_type): Fix comment.
12948
12949 For older changes see ChangeLog-2011.
12950 \f
12951 Local Variables:
12952 mode: change-log
12953 left-margin: 8
12954 fill-column: 74
12955 version-control: never
12956 coding: utf-8
12957 End: