minor ravenscar-thread cleanup
[binutils-gdb.git] / gdb / ChangeLog
1 2012-12-15 Joel Brobecker <brobecker@adacore.com>
2
3 * ravenscar-thread.c (ravenscar_is_open): Delete.
4 (ravenscar_initialize): Move most of the code from here...
5 (ravenscar_inferior_created): ... to there. Invert logic.
6 (ravenscar_close): Delete.
7 (init_ravenscar_thread_ops): Remove setting of
8 ravenscar_ops.to_close.
9
10 2012-12-15 Joel Brobecker <brobecker@adacore.com>
11
12 * objfiles.c (init_entry_point_info): Move function from here...
13 * symfile.c (init_entry_point_info): ... to there. Make static.
14 * objfiles.h (objfiles.h): Delete declaration.
15
16 2012-12-15 Joel Brobecker <brobecker@adacore.com>
17
18 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
19 Remove call to init_entry_point_info. Add OBJFILE's
20 section_offsets and num_sections initialization. Add note
21 about entry info in the function documentation.
22 (syms_from_objfile): New function.
23 * coffread.c (coff_symfile_init): Remove call to
24 init_entry_point_info.
25 * machoread.c (macho_symfile_init): Likewise.
26 * xcoffread.c(xcoff_symfile_init): Likewise.
27
28 2012-12-15 Yao Qi <yao@codesourcery.com>
29
30 * remote-notif.c (_initialize_notif): Add new commands
31 'set debug notification' and 'show debug notification'.
32 * NEWS: Mention these new commands.
33
34 2012-12-15 Yao Qi <yao@codesourcery.com>
35
36 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
37 (SFILES): Add "remote-notif.c".
38 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
39 * remote-notif.c: New. Factored out from remote.c.
40 * remote-notif.h: New.
41 * remote.c: Include "remote-notif.h".
42 (stop_reply_xmalloc, do_stop_reply_xfree):
43 (remote_parse_stop_reply, remote_get_pending_stop_replies):
44 (remote_async_get_pending_events_handler): Remove declarations.
45 (remote_parse_stop_reply): Declare.
46 (pending_stop_reply): Remove.
47 (remote_async_get_pending_events_token): Move to
48 remote-notif.c.
49 (remote_close): Replace 'delete_async_event_handler' with
50 remote_notif_unregister_async_event_handler.
51 Don't call discard_pending_stop_replies.
52 (remote_start_remote): Replace code with remote_notif_parse
53 and remote_notif_get_pending_replies.
54 (remote_open_1): Replace 'create_async_event_handler' with
55 remote_notif_register_async_event_handler.
56 (extended_remote_attach_1): Call remote_notif_parse and
57 notif_stop_reply_push.
58 (struct stop_reply) <next>: Remove.
59 <base>: New field.
60 Callers update.
61 (stop_reply_queue): Change its type.
62 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
63 (remote_notif_remove_all): New.
64 (discard_pending_stop_replies): Update.
65 (remote_notif_stop_ack, stop_reply_dtr): New.
66 (remote_notif_stop_alloc_event): New.
67 (notif_client_stop): New variable.
68 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
69 (queued_stop_reply, peek_stop_reply): Adjust.
70 (remote_get_pending_stop_replies): Rename to
71 remote_notif_get_pending_events.
72 (handle_notification): Move to remote-notif.c.
73 (remote_async_get_pending_events_handler): Likewise.
74 (remote_wait_as): Adjust to call remote_notif_parse.
75 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
76 Return minus_one_ptid early if gets a notification.
77 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
78 (_initialize_remote): Call QUEUE_alloc. Update caller.
79 (remote_resume): Call 'remote_notif_process' in all-stop mode.
80 * remote.h: Include "remote-notif.h".
81 (remote_notif_get_pending_replies): Declare.
82
83 2012-12-15 Yao Qi <yao@codesourcery.com>
84
85 * remote.c (discard_pending_stop_replies): Update declaration.
86 (remote_detach_1, extended_remote_mourn_1): Likewise.
87 (discard_pending_stop_replies): Change parameter from PID to
88 INF.
89 (remote_close): Update caller.
90 (_initialize_remote): Attach discard_pending_stop_replies to
91 inferior_exit observer.
92
93 2012-12-15 Yao Qi <yao@codesourcery.com>
94
95 * remote.c (getpkt_or_notif_sane): Add one more argument in
96 its declaration.
97 (getpkt_or_notif_sane_1): Add one more argument.
98 (getpkt_sane): Update caller.
99 (getpkt_or_notif_sane): Likewise. Update call
100 togetpkt_or_notif_sane_1.
101 (remote_wait_ns): Update caller.
102
103 2012-12-15 Yao Qi <yao@codesourcery.com>
104 Doug Evans <dje@google.com>
105
106 * common/queue.h: New.
107
108 2012-12-15 Yao Qi <yao@codesourcery.com>
109
110 * breakpoint.c (print_one_breakpoint_location): Display the
111 state of 'installed' of each non-pending location of a tracepoint
112 in both CLI and MI.
113 (download_tracepoint_locations): Notify 'breakpoint-modified'
114 observer if any tracepoint location is downloaded.
115 * tracepoint.c (start_tracing): Likewise.
116 (merge_uploaded_tracepoints): Record all modified
117 tracepoints and notify 'breakpoint-modified' observer for them.
118
119 * NEWS: Mention the change for CLI and MI.
120
121 2012-12-15 Yao Qi <yao@codesourcery.com>
122
123 * breakpoint.c (download_tracepoint_locations): Iterate over
124 ALL_TRACEPOINTS first and then iterate over locations of
125 each tracepoint.
126
127 2012-12-14 Pierre Muller <muller@sourceware.org>
128 Pedro Alves <palves@redhat.com>
129
130 * solib-target.c (solib_target_current_sos): Remove 'const'
131 qualifier from type of library_document local variable to be
132 able to free it and avoid a memory leak.
133 Use cleanup chain to avoid leak even if exceptino is generated.
134
135 2012-12-14 Tom Tromey <tromey@redhat.com>
136
137 PR c++/8888:
138 * symtab.c (lookup_symbol_aux): If constructor is found, consider
139 returning the type instead.
140 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
141 found.
142
143 2012-12-14 Tom Tromey <tromey@redhat.com>
144
145 Partial fix for PR c++/14160:
146 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
147 * dwarf2read.c (dwarf2_is_constructor): New function.
148 (dwarf2_add_member_fn): Use it.
149 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
150 TYPE_FN_FIELD_CONSTRUCTOR.
151 * jv-typeprint.c (java_type_print_base): Use
152 TYPE_FN_FIELD_CONSTRUCTOR.
153 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
154 <dummy>: Shrink.
155 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
156
157 2012-12-14 Tom Tromey <tromey@redhat.com>
158
159 * c-exp.y (block, variable, name_not_typename, lex_one_token,
160 classify_name): Update.
161 * c-valprint.c (c_val_print): Update.
162 * f-exp.y (yylex): Update.
163 * go-exp.y (package_name_p, classify_packaged_name)
164 (classify_name): Update.
165 * jv-exp.y (push_variable): Update.
166 * m2-exp.y (variable): Update.
167 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
168 * p-exp.y (block, variable, yylex): Update.
169 * p-valprint.c (pascal_val_print): Update.
170 * parse.c (write_dollar_variable): Update.
171 * printcmd.c (address_info): Update.
172 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
173 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
174 (lookup_symbol): Change type of 'is_a_field_of_this'.
175 (check_field): Add 'is_a_field_of_this' argument.
176 * symtab.h (struct field_of_this_result): New.
177 (lookup_symbol, lookup_symbol_in_language): Update.
178
179 2012-12-14 Tom Tromey <tromey@redhat.com>
180
181 * symtab.c (check_field): Now static. Move from...
182 * valops.c (check_field): ... here. Remove.
183 * value.h (check_field): Don't declare.
184
185 2012-12-14 Tom Tromey <tromey@redhat.com>
186
187 * NEWS: Mention "info proc" and core files.
188 * corelow.c (core_info_proc): New function.
189 (init_core_ops): Set to_info_proc.
190 * gdbarch.c, gdbarch.h: Rebuild.
191 * gdbarch.sh (core_info_proc): New method.
192 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
193 * linux-tdep.c (linux_core_info_proc_mappings)
194 (linux_core_info_proc): New functions.
195 (linux_find_memory_region_ftype): New typedef.
196 (linux_find_memory_regions_full): New function, from
197 linux_find_memory_regions.
198 (struct linux_find_memory_regions_data): New.
199 (linux_find_memory_regions_thunk): New function.
200 (linux_find_memory_regions): Rewrite.
201 (struct linux_make_mappings_data): New.
202 (linux_make_mappings_callback)
203 (linux_make_mappings_corefile_notes): New functions.
204 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
205 (linux_init_abi): Call set_gdbarch_core_info_proc.
206 * target.c (target_info_proc): Return 'int'.
207 * target.h (target_info_proc): Update.
208
209 2012-12-14 Pierre Muller <muller@sourceware.org>
210
211 * windows-nat.c (windows_xfer_shared_libraries): Avoid
212 memory leak when OFFSET >= LEN_AVAIL.
213
214 2012-12-13 Tom Tromey <tromey@redhat.com>
215
216 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
217
218 2012-12-13 Tom Tromey <tromey@redhat.com>
219
220 * acinclude.m4 (CY_AC_C_WORKS): Remove.
221
222 2012-12-13 Pierre Muller <muller@sourceware.org>
223
224 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
225 local variable and zero terminate it to avoid possible problems
226 in strcmp.
227
228 2012-12-13 Pedro Alves <palves@redhat.com>
229
230 * coff-pe-read.c: Include coff/internal.h.
231 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
232 Null terminate buffer explicitly instead of memset the whole
233 buffer.
234
235 2012-12-13 Pierre Muller <muller@sourceware.org>
236
237 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
238 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
239 for already defined macros.
240
241 2012-12-13 Pierre Muller <muller@sourceware.org>
242
243 * coff-pe-read.h (pe_text_section_offset): Declare new function.
244 * coff-pe-read.c (debug_coff_pe_read): New static variable.
245 (struct read_pe_section_data): Add section_name field.
246 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
247 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
248 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
249 (get_pe_section_index): New function.
250 (struct pe_sections_info): New type.
251 (get_section_vmas): Use new struct pe_sections_info.
252 (add_pe_exported_sym): Handle unnamed exported function.
253 (add_pe_forwarded_sym): New function.
254 (read_pe_truncate_name): Truncate at last dot.
255 (pe_as16): New function.
256 (read_pe_exported_syms): Use ordinal of function to
257 retrieve correct RVA address of function and handle
258 forwarded symbol.
259 (pe_text_section_offset): New function.
260 (show_debug_coff_pe_read): New function.
261 (_initialize_coff_pe_read): New function adding
262 'set/show debug coff_pe_read' commands.
263
264 * windows-tdep.c (windows_xfer_shared_library): Use
265 pe_text_section_offset function instead of possibly wrong
266 0x1000 constant for .text sextion offset.
267
268 2012-12-13 Pedro Alves <palves@redhat.com>
269
270 * gdbarch.sh (do_read): Set IFS to blank.
271
272 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
273
274 * NEWS: Mention the -catch-load/-catch-unload MI commands.
275
276 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
277
278 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
279 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
280 * breakpoint.c (add_solib_catchpoint): New function that
281 can be used by both CLI and MI, factored out from
282 catch_load_or_unload.
283 (catch_load_or_unload): Strip it down and make it use the
284 new add_solib_catchpoint.
285 * breakpoint.h (add_solib_catchpoint): Declare it.
286 * mi/mi-cmd-break.h: New file.
287 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
288 (setup_breakpoint_reporting): New function used for both
289 catchpoints and breakpoints.
290 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
291 * mi/mi-cmd-catch.c: New file.
292 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
293 and -catch-unload.
294 * mi/mi-cmds.h: Declare the handlers for -catch-load and
295 -catch-unload.
296
297 2012-11-28 Tom Tromey <tromey@redhat.com>
298
299 * dbxread.c (read_dbx_symtab): Update.
300 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
301 (read_ofile_symtab): Add 'objfile' argument.
302 * dwarf2read.c (process_psymtab_comp_unit_reader)
303 (build_type_psymtabs_reader): Update.
304 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
305 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
306 argument.
307 (parse_procedure, parse_partial_symbols): Update.
308 (psymtab_to_symtab_1): Add 'objfile' argument.
309 * psympriv.h (struct partial_symtab) <objfile>: Remove.
310 <read_symtab>: Add 'objfile' argument.
311 (sort_pst_symbols, discard_psymtab): Update.
312 * psymtab.c (partial_map_expand_apply): Update.
313 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
314 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
315 (find_pc_sect_psymbol): Add 'objfile' argument.
316 (lookup_symbol_aux_psymtabs): Update.
317 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
318 Add 'objfile' argument.
319 (find_last_source_symtab_from_partial, dump_psymtab)
320 (dump_psymtabs_for_objfile, read_symtabs_for_function)
321 (expand_partial_symbol_tables, read_psymtabs_with_filename)
322 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
323 (expand_symtabs_matching_via_partial): Update.
324 (sort_pst_symbols): Add 'objfile' argument.
325 (allocate_psymtab): Update.
326 (discard_psymtab): Add 'objfile' argument.
327 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
328 * stabsread.h (end_psymtab): Update.
329 * xcoffread.c (this_symtab_objfile): New global.
330 (process_linenos, enter_line_range, xcoff_next_symbol_text):
331 Update.
332 (read_xcoff_symtab): Add 'objfile' argument.
333 (read_symbol, read_symbol_lineno): Update.
334 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
335 (xcoff_end_psymtab): Add 'objfile' argument.
336 (scan_xcoff_symtab): Update.
337
338 2012-12-12 Paul Koning <paul_koning@dell.com>
339
340 Add support for Python 3.
341 * NEWS: Mention Python 3 support.
342 * varobj.c (value_get_print_value): Use
343 python_string_to_target_string.
344 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
345 of type objects.
346 * python/py-breakpoint.c: Ditto.
347 * python/py-cmd.c: Ditto.
348 * python/py-event.c: Ditto.
349 * python/py-event.h: Ditto.
350 * python/py-evtregistry.c: Ditto.
351 * python/py-finishbreakpoint.c: Ditto.
352 * python/py-frame.c: Ditto.
353 * python/py-function.c: Ditto.
354 * python/py-infthread.c: Ditto.
355 * python/py-lazy-string.c: Ditto.
356 * python/py-progspace.c: Ditto.
357 * /python/py-symbol.c: Ditto.
358 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
359 initialization for Python 3.
360 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
361 of type objects.
362 (infpy_read_memory): Return memoryview object if Python 3.
363 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
364 (infpy_search_memory): Ditto.
365 (get_buffer): New function for Python 3.
366 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
367 of type objects.
368 (objfpy_dealloc): Use Py_TYPE to call tp_free.
369 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
370 of type objects.
371 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
372 (set_attr): Ditto.
373 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
374 instead of PyString methods if Python 3.
375 (print_children): Skip push_dummy_python_frame call if Python 3.
376 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
377 of type objects.
378 (salpy_dealloc): Use Py_TYPE to call tp_free.
379 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
380 of type objects.
381 (field_dealloc): Use Py_TYPE to call tp_free.
382 (typy_dealloc): Ditto.
383 (type_object_as_number): Adjust struct initializations for
384 differences in layout for Python 2 vs. Python 3.
385 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
386 string case for Python 3.
387 (unicode_to_encoded_python_string): Shorten code (no functional
388 change).
389 (python_string_to_target_python_string): Comment that in Python 3
390 returned value is a Python "bytes" type.
391 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
392 (gdb_py_object_from_longest): Omit non-long integer case in Python
393 3.
394 (gdb_py_object_from_ulongest): Ditto.
395 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
396 of type objects.
397 (valpy_dealloc): Use Py_TYPE to call tp_free.
398 (valpy_int): Omit function if Python 3.
399 (convert_value_from_python): Use "%S" format (Python object as a
400 string) if Python 3.
401 (value_object_as_number): Adjust struct initializations for
402 differences in layout for Python 2 vs. Python 3.
403 * python/python-config.py: Adjust syntax for Python 3
404 compatibility.
405 Include "sys.abiflags" string as part of python library name, if
406 that attribute exists (Python 3).
407 * python/python-internal.h (IS_PY3): Define if Python 3.
408 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
409 placeholder value if Python 3.
410 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
411 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
412 analogous Python 3 API function if Python 3.
413 (PyVarObject_HEAD_INIT): Define if not already defined.
414 (Py_TYPE): Ditto.
415 * python/python.c (eval_python_command): Omit Py_FlushLine call if
416 Python 3.
417 Check return values of all Python API calls for error.
418 Supply dummy "python" and "python-interactive" commands if Python
419 initialization failed.
420 (_initialize_python): Convert argc to wchar_t** if Python 3.
421 Add module initialization for Python 3.
422 (finish_python_initialization): Pass wchar_t * argument to
423 PySys_SetPath if Python 3.
424 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
425 (_GdbFile): New class for common output file behavior.
426 (GdbOutFile): Subclass from _GdbFile.
427 (GdbOutputErrorFile): Ditto.
428 (auto_load_packages): Adjust syntax for Python 3 compatibility.
429 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
430 * python/lib/gdb/prompt.py: Use sorted() function rather than
431 sort() method.
432 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
433 Adjust syntax for Python 3 compatibility.
434 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
435 rather than sort() method.
436 Adjust syntax for Python 3 compatibility.
437 * python/lib/gdb/command/type_printers.py: Ditto.
438 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
439 value is a memoryview object if Python 3.
440
441 2012-12-12 Tom Tromey <tromey@redhat.com>
442
443 * coffread.c (coff_objfile_data_key): New global.
444 (coff_symfile_init): Use set_objfile_data.
445 (coff_symfile_read): Use objfile_data.
446 (coff_symfile_finish): Don't free deprecated_sym_private.
447 (coff_free_info): New function.
448 (_initialize_coffread): Initialize coff_objfile_data_key.
449 * mdebugread.c (pending_list): Update comment.
450 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
451 * symfile.c (reread_symbols): Don't mention
452 deprecated_sym_private.
453 * xcoffread.c (xcoff_objfile_data_key): New global.
454 (XCOFF_DATA): New macro.
455 (process_linenos, enter_line_range, xcoff_next_symbol_text)
456 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
457 XCOFF_DATA.
458 (xcoff_new_init) Use set_objfile_data.
459 (xcoff_symfile_finish): Don't free deprecated_sym_private.
460 (init_stringtab, swap_sym, scan_xcoff_symtab)
461 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
462 (xcoff_free_info): New function.
463 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
464
465 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
466
467 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
468
469 2012-12-12 Tom Tromey <tromey@redhat.com>
470
471 * coffread.c (coff_symfile_init): Use set_objfile_data.
472 (coff_symfile_read): Use DBX_SYMFILE_INFO.
473 * dbxread.c (dbx_objfile_data_key): New global.
474 (dbx_symfile_init): Use set_objfile_data.
475 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
476 (dbx_free_symfile_info): New function.
477 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
478 DBX_SYMFILE_INFO.
479 (stabsect_build_psymtabs): Use set_objfile_data.
480 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
481 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
482 set_objfile_data.
483 (free_elfinfo): Use DBX_SYMFILE_INFO.
484 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
485 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
486 * gdb-stabs.h (dbx_objfile_data_key): Declare.
487 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
488 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
489 * somread.c (som_symfile_finish): Don't free
490 deprecated_sym_stab_info.
491
492 2012-12-12 Joel Brobecker <brobecker@adacore.com>
493
494 * gdbarch.sh (software_single_step): Remove trailing space in
495 comment (gdbarch.h is already correct).
496
497 2012-12-11 Tom Tromey <tromey@redhat.com>
498
499 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
500
501 2012-12-11 Tom Tromey <tromey@redhat.com>
502
503 * dsrec.c (report_transfer_performance): Don't declare.
504 (load_srec): Use gettimeofday, print_transfer_performance.
505 * symfile.c (report_transfer_performance): Remove.
506
507 2012-12-11 Pedro Alves <pedro@codesourcery.com>
508 Pedro Alves <palves@redhat.com>
509
510 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
511 NT_PSTATUS note.
512 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
513 differently from LWP IDs.
514
515 2012-12-11 Pedro Alves <palves@redhat.com>
516
517 * configure.ac (detect type of /proc): Remove Unixware handling.
518 * configure: Regenerate.
519 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
520 (ioctl_table) [PCRESET]: Remove entry.
521 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
522 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
523 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
524 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
525 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
526 Unixware in comments throughout.
527 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
528 and remove mention of Unixware.
529
530 2012-12-10 Doug Evans <dje@google.com>
531
532 * dwarf2read.c (dwarf2_cu): Enhance comment.
533 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
534 the DWO file.
535 (dwarf2_record_block_ranges): Ditto.
536
537 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
538
539 * symtab.c (find_pc_sect_symtab): Add comment.
540
541 2012-12-10 Tom Tromey <tromey@redhat.com>
542
543 * defs.h: Don't check for definition of LONGEST.
544 (min, max): Remove duplicates.
545
546 2012-12-10 Tom Tromey <tromey@redhat.com>
547
548 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
549 (dwarf2_fetch_die_loc_cu_off): Rename from
550 dwarf2_fetch_die_location_block. Rewrite to use
551 dwarf2_fetch_die_loc_sect_off.
552 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
553 (dwarf2_fetch_die_loc_cu_off): Rename.
554 * dwarf2loc.c (indirect_pieced_value): Use
555 dwarf2_fetch_die_loc_sect_off.
556 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
557 comment.
558 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
559 * dwarf2expr.c (add_piece): Update.
560 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
561
562 2012-12-10 Tom Tromey <tromey@redhat.com>
563
564 * buildsym.c (struct pending_block): Move from buildsym.h.
565 (pending_blocks): Likewise; now static.
566 (pending_block_obstack): New global.
567 (free_pending_blocks): Free blocks.
568 (record_pending_block): Use pending_block_obstack.
569 * buildsym.h (struct pending_block): Move definition to
570 buildsym.c.
571 (pending_blocks): Don't declare.
572
573 2012-12-10 Pedro Alves <palves@redhat.com>
574
575 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
576 dead SCO code, and adjust function description comment.
577
578 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
579
580 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
581 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
582 CC_HAS_LONG_LONG.
583 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
584 * dwarf2read.c (extract_cu_value): Remove the function.
585 (create_cus_from_index_list): Make the return type void, inline the
586 extract_cu_value caller, include new gdb_static_assert.
587 (create_cus_from_index): Make the return type void, update the function
588 comment, update the create_cus_from_index_list caller.
589 (create_signatured_type_table_from_index): Make the return type void,
590 inline the extract_cu_value caller, include new gdb_static_assert.
591 (dwarf2_read_index): Update the create_cus_from_index and
592 create_signatured_type_table_from_index caller.
593 * printcmd.c (ui_printf): Remove conditionalizations for
594 CC_HAS_LONG_LONG.
595 * config.in: Regenerate.
596 * configure: Regenerate.
597
598 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
599
600 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
601 Update the comment for checked_producer.
602 (check_producer): New forward declaration.
603 (producer_is_gcc_lt_4_3): New function.
604 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
605 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
606
607 2012-12-07 Tom Tromey <tromey@redhat.com>
608
609 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
610 argument, assertion.
611 * c-exp.y (typebase): Add completion productions.
612 * completer.c (expression_completer): Handle tag completion.
613 * expression.h (parse_expression_for_completion): Add argument.
614 * f-lang.c (f_make_symbol_completion_list): Add 'code'
615 argument.
616 * language.h (struct language_defn)
617 <la_make_symbol_completion_list>: Add 'code' argument.
618 * parse.c (expout_tag_completion_type, expout_completion_name):
619 New globals.
620 (mark_struct_expression): Add assertion.
621 (mark_completion_tag): New function.
622 (parse_exp_in_context): Initialize new globals.
623 (parse_expression_for_completion): Add 'code' argument. Handle
624 tag completion.
625 * parser-defs.h (mark_completion_tag): Declare.
626 * symtab.c (default_make_symbol_completion_list_break_on): Add
627 'code' argument. Update.
628 (default_make_symbol_completion_list): Add 'code' argument.
629 (make_symbol_completion_list): Update.
630 (make_symbol_completion_type): New function.
631 * symtab.h (default_make_symbol_completion_list_break_on)
632 (default_make_symbol_completion_list): Update.
633 (make_symbol_completion_type): Declare.
634
635 2012-12-07 Tom Tromey <tromey@redhat.com>
636
637 * expression.h (parse_expression_for_completion): Rename
638 from parse_field_expression.
639 (parse_completion): Rename from in_parse_field.
640 * c-exp.y (lex_one_token): Update.
641 * completer.c (expression_completer): Update.
642 * go-exp.y (lex_one_token): Update.
643 * p-exp.y (yylex): Update.
644 * parse.c (parse_completion): Rename from in_parse_field.
645 (parse_exp_in_context): Update.
646 (parse_expression_for_completion): Rename from
647 parse_field_expression. Update.
648
649 2012-12-07 Tom Tromey <tromey@redhat.com>
650
651 * typeprint.c (_initialize_typeprint): Set completer
652 for "whatis" and "ptype".
653
654 2012-12-07 Joel Brobecker <brobecker@adacore.com>
655
656 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
657 "sim/common/cgen-fpu.h". Remove invalid entries
658 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
659 which actually have an FSF copyright header.
660
661 2012-12-07 Joel Brobecker <brobecker@adacore.com>
662
663 * osf-share/AT386/cma_thread_io.h: Delete.
664 * osf-share/HP800/cma_thread_io.h: Delete.
665 * osf-share/README: Delete.
666 * osf-share/RIOS/cma_thread_io.h: Delete.
667 * osf-share/cma_attr.h: Delete.
668 * osf-share/cma_deb_core.h: Delete.
669 * osf-share/cma_debug_client.h: Delete.
670 * osf-share/cma_errors.h: Delete.
671 * osf-share/cma_handle.h: Delete.
672 * osf-share/cma_init.h: Delete.
673 * osf-share/cma_list.h: Delete.
674 * osf-share/cma_mutex.h: Delete.
675 * osf-share/cma_sched.h: Delete.
676 * osf-share/cma_semaphore_defs.h: Delete.
677 * osf-share/cma_sequence.h: Delete.
678 * osf-share/cma_stack.h: Delete.
679 * osf-share/cma_stack_int.h: Delete.
680 * osf-share/cma_tcb_defs.h: Delete.
681 * osf-share/cma_util.h: Delete.
682 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
683 in osf-share.
684 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
685 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
686 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
687
688 2012-12-06 Pedro Alves <palves@redhat.com>
689 Tom Tromey <tromey@redhat.com>
690
691 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
692
693 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
694
695 PR mi/14741:
696 * mi/mi-cmd-var.c (varobj_update_one): Take value of
697 attribute "dynamic" and "displayhint" from printed child,
698 not the root variable.
699
700 2012-12-06 Joel Brobecker <brobecker@adacore.com>
701
702 * aix-thread.c (getthrds): Fix type of 4th parameter.
703 (get_signaled_thread): Change type of variable ktid to tid_t.
704
705 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
706
707 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
708 value of get_frame_block.
709
710 2012-12-05 Pierre Muller <muller@sourceware.org>
711
712 Avoid memory leaks on struct cmd_list_element.doc field.
713 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
714 if flags contains DOC_ALLOCATED.
715 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
716 flags.
717 (delete_cmd): Handle DOC_ALLOCATED flag.
718 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
719 in flags filed of struct cmd_list_element.
720 (struct cmd_list_element): Document new flag item.
721
722 2012-12-04 Doug Evans <dje@google.com>
723
724 * symmisc.c: Whitespace fixes.
725
726 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
727
728 * i386-tdep.c (i386_skip_prologue): Using symbol table
729 to find the end of prologue for clang compiled binaries.
730 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
731 to find the end of prologue for clang compiled binaries.
732
733 2012-12-03 Doug Evans <dje@google.com>
734
735 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
736 (dw2_find_symbol_file): Delete unused local file_data.
737
738 2012-12-03 Tom Tromey <tromey@redhat.com>
739
740 * ada-exp.y (write_object_renaming, write_var_or_type)
741 (write_ambiguous_var, write_var_from_sym): Make blocks const.
742 * ada-lang.c (replace_operator_with_call)
743 (find_old_style_renaming_symbol): Make blocks const.
744 * ada-lang.h (ada_find_renaming_symbol): Update.
745 (struct ada_symbol_info) <block>: Now const.
746 * breakpoint.c (watch_command_1): Update.
747 * breakpoint.h (struct watchpoint) <exp_valid_block,
748 cond_exp_valid_block>: Now const.
749 * c-exp.y (classify_inner_name, classify_name): Make block
750 argument const.
751 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
752 const.
753 * expression.h (innermost_block, parse_exp_1): Update.
754 (union exp_element) <block>: Now const.
755 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
756 (lookup_struct): Make block argument const.
757 * gdbtypes.h (lookup_template_type): Update.
758 * go-exp.y (classify_name, classify_packaged_name)
759 (package_name_p): Make block argument const.
760 * objc-lang.c (lookup_struct_typedef): Make block argument const.
761 * objc-lang.h (lookup_struct_typedef): Update.
762 * parse.c (parse_exp_in_context, parse_exp_1)
763 (write_exp_elt_block): Make block arguments const.
764 (expression_context_block, innermost_block): Now const.
765 * parser-defs.h (write_exp_elt_block): Update.
766 (expression_context_block, innermost_block, block_found): Now
767 const.
768 * printcmd.c (struct display) <block>: Now const.
769 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
770 * valops.c (address_of_variable): Make block argument const.
771 * value.h (value_of_variable): Update.
772 * varobj.c (struct varobj_root) <valid_block>: Now const.
773
774 2012-11-30 Yao Qi <yao@codesourcery.com>
775
776 * breakpoint.c (print_one_breakpoint_location): Indent code.
777
778 2012-11-30 Yao Qi <yao@codesourcery.com>
779
780 * breakpoint.c (print_one_breakpoint_location): Combine two
781 blocks handling 'hit count' together.
782
783 2012-11-30 Yao Qi <yao@codesourcery.com>
784
785 * infrun.c (error_is_running, ensure_not_running): Move them
786 to ...
787 * infcmd.c (error_is_running, ensure_not_running): ... here.
788 Make them 'static'.
789 * inferior.h: Remove declarations of error_is_running and
790 ensure_not_running.
791
792 2012-11-30 Yao Qi <yao@codesourcery.com>
793
794 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
795 check REGNUM >= 0.
796
797 2012-11-30 Yao Qi <yao@codesourcery.com>
798
799 * infrun.c: Make the declaration of 'init_infwait_state'
800 static.
801 (init_infwait_state): Make it 'static'.
802
803 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
804
805 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
806 return value to void to avoid compiler warning.
807
808 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
809
810 * opencl-lang.c (opencl_print_type): New function.
811 (opencl_language_arch_info): Install it.
812
813 2012-11-29 Tom Tromey <tromey@redhat.com>
814
815 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
816 xvasprintf.
817 * common/common-utils.c (xasprintf, xvasprintf): Remove.
818 * common/common-utils.h (xasprintf, xvasprintf): Remove.
819
820 2012-11-29 Jerome Guitton <guitton@adacore.com>
821
822 * ada-lang.c (ada_is_interface_tag): New function.
823 (ada_is_ignored_field): Add interface tags to the list
824 of ignored fields.
825
826 2012-11-29 Jerome Guitton <guitton@adacore.com>
827
828 * ada-lang.h (ada_tag_value_at_base_address): New function
829 declaration.
830 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
831 New functions.
832 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
833 relocate the class-wide value if need be.
834 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
835 Let ada_tag_value_at_base_address relocate the class-wide access/ref
836 before dereferencing it.
837 * ada-valprint.c (ada_val_print_1): Relocate to base address
838 before displaying the content of an interface-wide ref.
839
840 2012-11-29 Jerome Guitton <guitton@adacore.com>
841
842 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
843
844 2012-11-29 Joel Brobecker <brobecker@adacore.com>
845
846 GDB 7.5.1 released.
847
848 2012-11-29 Yao Qi <yao@codesourcery.com>
849 Tom Tromey <tromey@redhat.com>
850
851 * eval.c (evaluate_subexp_standard): Get the correct pointer
852 type for TYPE_CODE_MEMBERPTR.
853
854 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
855
856 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
857 since now it is being done by binutils' powerpc_init_dialect().
858
859 2012-11-28 Tom Tromey <tromey@redhat.com>
860
861 PR gdb/14290:
862 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
863 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
864 Use it.
865 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
866 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
867 (gdb_bfd_openr_next_archived_file): Use it.
868
869 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
870
871 * configure.ac: Check for linux/perf_event.h.
872 * config.in: Regenerated.
873 * configure: Regenerated.
874
875 2012-11-28 Yao Qi <yao@codesourcery.com>
876
877 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
878 abbreviate 'delete tracepoints' to 'delete tr'.
879 * corefile.c (_initialize_core): Call add_alias_cmd to
880 abbreviate 'set gnutarget' to 'set g'.
881 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
882 'show convenience' to 'show conv'.
883
884 2012-11-27 Joel Brobecker <brobecker@adacore.com>
885
886 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
887 call to sparc_supply_fpregset.
888 (fill_fpregset): Fix first parameter in call to
889 sparc_collect_fpregset.
890
891 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
892 Kazu Hirata <kazu@codesourcery.com>
893 Yao Qi <yao@codesourcery.com>
894
895 * objfiles.c (init_entry_point_info): Call
896 gdbarch_convert_from_func_ptr_addr and
897 gdbarch_addr_bits_remove here ...
898 (entry_point_address_query): ... instead of here.
899 * solib-svr4.c (exec_entry_point): Call
900 gdbarch_addr_bits_remove.
901 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
902 the entry address.
903
904 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
905 Yao Qi <yao@codesourcery.com>
906
907 * eval.c (evaluate_subexp_standard): Add handling of
908 TYPE_CODE_MEMBERPTR when calling functions. Correct the
909 result of ptype for calling a TYPE_CODE_METHODPTR.
910
911 2012-11-27 Yao Qi <yao@codesourcery.com>
912
913 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
914 warning.
915 Add i18n markup.
916
917 2012-11-26 Alexander Larsson <alexl@redhat.com>
918 Jan Kratochvil <jan.kratochvil@redhat.com>
919 Tom Tromey <tromey@redhat.com>
920
921 * NEWS: Mention mini debuginfo feature.
922 * minidebug.c: New file.
923 * configure.ac: Check for lzma.
924 * configure, config.in: Rebuild.
925 * Makefile.in (LIBLZMA): New variable.
926 (CLIBS): Include LIBLZMA.
927 (SFILES): Mention minidebug.c.
928 (COMMON_OBS): Mention minidebug.o.
929 * symfile.c (read_symbols): New function.
930 (syms_from_objfile, reread_symbols): Call it.
931 * symfile.h (find_separate_debug_file_in_section): Declare.
932
933 2012-11-26 Keith Seitz <keiths@redhat.com>
934
935 * exec.c (exec_file_attach): Move cleanup after verifying that
936 memory has in fact been allocated.
937
938 2012-11-26 Tom Tromey <tromey@redhat.com>
939
940 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
941 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
942 SYMBOL_SYMTAB.
943 * skip.c (skip_info): Use SYMBOL_SYMTAB.
944
945 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
946 Pedro Alves <palves@redhat.com>
947
948 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
949 size parameter passed to readlink by one byte.
950 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
951 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
952 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
953 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
954 size by one byte.
955
956 2012-11-26 Yao Qi <yao@codesourcery.com>
957
958 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
959 extraneous parentheses.
960
961 2012-11-26 Yao Qi <yao@codesourcery.com>
962
963 * remote.c (remote_start_remote): Typo fix.
964
965 2012-11-23 David S. Miller <davem@davemloft.net>
966
967 * sparc-tdep.h (struct sparc_fpregset): New data structure.
968 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
969 sparc32_sol2_fpregset): Declare new globals.
970 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
971 'fpregset' argument.
972 * sparc64-tdep.h (sparc64_supply_fpregset,
973 sparc64_collect_fpregset): Likewise.
974 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
975 globals.
976 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
977 (sparc_fpregset): Declare new global.
978 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
979 'fpregset' argument.
980 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
981 into handler.
982 (fill_fpregset): Likewise.
983 (_initialize_sparc_linux_nat): Set sparc_fpregset to
984 sparc32_bsd_fpregset.
985 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
986 sparc32_bsd_fpregset down into handler.
987 (sparc32_linux_collect_core_fpregset): Likewise.
988 * sparc-nat.c (sparc_fpregset): Define.
989 (sparc_supply_fpregset): Add 'fpregset' argument.
990 (sparc_collect_fpregset): Likewise.
991 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
992 into fpregset handler.
993 (sparc_store_inferior_registers): Likewise.
994 (_initialize_sparc_nat): Set sparc_fpregset to
995 sparc32_sunos4_fpregset if NULL.
996 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
997 down into handler.
998 (fill_fpregset): Likewise.
999 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1000 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1001 use it to compute offsets.
1002 (sparc32_collect_fpregset): Likewise.
1003 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1004 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1005 down into handler.
1006 (fill_fpregset): Likewise.
1007 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1008 Likewise.
1009 (sparc64_linux_collect_core_fpregset): Likewise.
1010 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1011 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1012 use it to compute offsets.
1013 (sparc64_collect_fpregset): Likewise.
1014 (sparc64_bsd_fpregset): Define.
1015 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1016 sparc64_bsd_fpregset down into handler.
1017 (sparc64fbsd_collect_fpregset): Likewise.
1018 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1019 and pass sparc{32,64}_bsd_fpregset down into handler.
1020 (sparc64nbsd_collect_fpregset): Likewise.
1021 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1022 sparc64_bsd_fpregset down into handler.
1023 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1024 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1025 to sparc32_bsd_fpregset.
1026 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1027 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1028 (sparc32nbsd_supply_fpregset): Likewise.
1029
1030 2012-11-21 Tom Tromey <tromey@redhat.com>
1031
1032 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1033 field.
1034 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1035 Remove.
1036 * c-typeprint.c (c_type_print_base): Update.
1037
1038 2012-11-21 Yao Qi <yao@codesourcery.com>
1039
1040 PR tdep/7438
1041 * gdbarch.sh (smash_text_address): Remove.
1042 * gdbarch.c, gdbarch.h: Regenerate.
1043 * arm-tdep.c (arm_smash_text_address): Remove.
1044 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1045 * hppa-tdep.c (hppa_smash_text_address): Remove.
1046 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1047 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1048 Caller update.
1049 * coffread.c (coff_symtab_read): Caller update.
1050 * dbxread.c (process_one_symbol): Likewise.
1051 * elfread.c (record_minimal_symbol): Likewise.
1052 * somread.c (som_symtab_read): Likewise.
1053
1054 2012-11-20 Pierre Muller <muller@sourceware.org>
1055
1056 ARI fixes: sprintf rule.
1057 Replace sprintf function calls for char arrays by
1058 calls to xsnprintf calls.
1059 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1060 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1061 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1062 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1063 * breakpoint.c (condition_completer): Ditto.
1064 (create_tracepoint_from_upload): Ditto.
1065 * dwarf2read.c (file_full_name): Ditto.
1066 * gcore.c (gcore_command): Ditto.
1067 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1068 * go32-nat.c (go32_sysinfo): Ditto.
1069 * interps.c (interp_set): Ditto.
1070 * m32c-tdep.c (make_types): Ditto.
1071 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1072 * remote-m32r-sdi.c (m32r_open): Ditto.
1073 * sol-thread.c (td_err_string): Ditto.
1074 (td_state_string, solaris_pid_to_str): Ditto.
1075 * symtab.c (gdb_mangle_name): Ditto.
1076 * cli/cli-script.c (execute_control_command): Ditto.
1077 (define_command, document_command): Ditto.
1078 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1079 * tui/tui-stack.c (tui_make_status_line): Ditto.
1080 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1081
1082 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1083
1084 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1085 it when looking at ptr->func.
1086 * command.h (complete_on_cmdlist): Add a fourth arg.
1087 * completer.c (complete_line_internal): Add local ignore_help_classes,
1088 and set it to 1 when reason is not handle_help. Pass this down to
1089 lookup_cmd_1 and complete_on_cmdlist.
1090
1091 2012-11-20 Tom Tromey <tromey@redhat.com>
1092
1093 * completer.c (count_struct_fields): Remove.
1094 (expression_completer): Don't call count_struct_fields.
1095
1096 2012-11-20 Pedro Alves <palves@redhat.com>
1097
1098 * annotate.c (breakpoints_changed): Rename to ...
1099 (annotate_breakpoints_changed): ... this.
1100 (annotate_stopped, breakpoint_changed): Adjust caller.
1101 * annotate.h (breakpoints_changed): Rename to ...
1102 (annotate_breakpoints_changed): ... this.
1103 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1104 (do_map_commands_command, init_raw_breakpoint, clear_command)
1105 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1106
1107 2012-11-20 David S. Miller <davem@davemloft.net>
1108
1109 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1110 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1111 sysconf.
1112 (get_cores_used_by_process): Update comment.
1113
1114 2012-11-20 Yao Qi <yao@codesourcery.com>
1115
1116 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1117
1118 2012-11-20 Yao Qi <yao@codesourcery.com>
1119
1120 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1121 to deprecated_context_hook.
1122
1123 2012-11-19 Yao Qi <yao@codesourcery.com>
1124
1125 * infrun.c (infwait_state): Add static.
1126
1127 2012-11-16 Keith Seitz <keiths@redhat.com>
1128
1129 PR c++/13615
1130 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1131 parameter and pass it to lookup_symbol_file.
1132 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1133 to search base classes.
1134 (cp_lookup_symbol_namespace): Likewise.
1135 (lookup_namespace_scope): Likewise.
1136 (lookup_symbol_file): Add SEARCH parameter.
1137 If SEARCH is non-zero and no symbol is found, lookup the class
1138 and call cp_lookup_nested_symbol.
1139 (find_symbol_in_baseclass): New function.
1140 (cp_lookup_nested_symbol): Do not let
1141 cp_lookup_symbol_in_namespace search through base classes.
1142 Do that later when there is no global symbol match.
1143
1144 2012-11-16 Doug Evans <dje@google.com>
1145
1146 * main.c (gdb_datadir_provided): New static global.
1147 (get_init_files): If --data-directory is provided,
1148 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1149 * NEWS: Mention it.
1150
1151 2012-11-15 Pierre Muller <muller@sourceware.org>
1152
1153 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1154 * gdb_stat.h: Delete. Moved to common directory.
1155 * common/gdb_stat.h: New file.
1156 * gdb_wait.h: Delete. Moved to common directory.
1157 * common/gdb_wait.h: New file.
1158 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1159 location.
1160 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1161 location.
1162 (stat.h rule): Adapt to new gdb_stat.h location.
1163 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1164 <sys/stat.h> header.
1165 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1166 <sys/wait.h> header.
1167
1168 2012-11-15 Pierre Muller <muller@sourceware.org>
1169
1170 * configure.ac (AC_HEADER_STAT): Remove.
1171 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1172 and corresponding code.
1173 * configure: Regenerate.
1174 * config.in: Regenerate.
1175
1176 2012-11-15 Pierre Muller <muller@sourceware.org>
1177
1178 ARI xasprintf rule fixes.
1179 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1180 instead of xasprintf.
1181 (open_and_init_dwp_file): Ditto.
1182
1183 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1184
1185 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1186 target types.
1187
1188 2012-11-14 Tom Tromey <tromey@redhat.com>
1189
1190 * configure, config.in: Rebuild.
1191 * configure.ac: Don't check for ctype.h, time.h.
1192 * expprint.c: Don't use HAVE_CTYPE_H.
1193
1194 2012-11-13 Tom Tromey <tromey@redhat.com>
1195
1196 * gdbarch.h, gdbarch.c: Rebuild.
1197 * gdbarch.sh (set_target_gdbarch): Rename from
1198 deprecated_target_gdbarch_select_hack.
1199 * arch-utils.c (gdbarch_update_p): Update.
1200 (set_gdbarch_from_file): Update.
1201
1202 2012-11-14 Pierre Muller <muller@sourceware.org>
1203
1204 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1205 as responsible of contrib/ari directory.
1206
1207 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1208 Yao Qi <yao@codesourcery.com>
1209
1210 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1211 bit of EXC_RETURN.
1212 (arm_m_exception_cache, arm_m_exception_this_id)
1213 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1214 (arm_m_exception_unwind): New.
1215 (arm_gdbarch_init): Register arm_m_exception_unwind.
1216
1217 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1218
1219 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1220 parameter COUNT, for pattern filling of memory regions.
1221 * NEWS: Mention it.
1222
1223 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1224
1225 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1226 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1227 to print_source_lines ().
1228 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1229 flag.
1230 * source.c (print_source_lines_base): Prefix source line with
1231 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1232
1233 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1234
1235 * symtab.h (print_source_lines_flags): New enum.
1236 * source.c (print_source_lines_base): Change noerror to flags.
1237 (print_source_lines): Change noerror to flags.
1238
1239 2012-11-13 Pierre Muller <muller@sourceware.org>
1240
1241 ARI fixes: Avoid sprintf function use rule.
1242 * charset.c (convert_between_encodings): Use xsnprintf.
1243 * cli-out.c (cli_field_int): Likewise.
1244 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1245 * expprint.c (op_name_standard): Likewise.
1246 * frv-tdep.c (set_variant_num_gprs): Likewise.
1247 (set_variant_num_fprs): Likewise.
1248 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1249 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1250 (nto_init_solib_absolute_prefix): Likewise.
1251 * source.c (init_source_path): Likewise.
1252 (print_source_lines_base): Likewise.
1253 * valprint.c (print_wchar): Likewise.
1254 * mi/mi-out.c (mi_field_int): Likewise.
1255 windows-nat.c (windows_pid_to_exec_file): Likewise.
1256 (windows_create_inferior): Likewise.
1257 (_initialize_check_for_gdb_ini): Likewise.
1258
1259 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1260
1261 * frame.h (deprecated_frame_register_read): Renames
1262 frame_register_read.
1263 * frame.c (deprecated_frame_register_read): Renames
1264 frame_register_read. Update all callers.
1265 * i386-tdep.c: Update all callers of frame_register_read.
1266 * infcmd.c: Likewise.
1267 * jit.c: Likewise.
1268 * mips-tdep.c: Likewise.
1269 * mt-tdep.c: Likewise.
1270 * sh64-tdep.c: Likewise.
1271
1272 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1273
1274 * frame.h (frame_register_read): Remove FIXME comment.
1275 * frame.c (frame_register_read): Add suggestion explaining
1276 which function to use in place of this one.
1277
1278 2012-11-12 Tom Tromey <tromey@redhat.com>
1279
1280 * python/python.c (start_type_printers): Initialize 'result_obj'.
1281
1282 2012-11-12 Tom Tromey <tromey@redhat.com>
1283
1284 * NEWS: Update.
1285 * data-directory/Makefile.in (PYTHON_FILES): Add
1286 type_printers.py.
1287 * python/lib/gdb/command/type_printers.py: New file.
1288 * python/lib/gdb/command/types.py (TypePrinter): New class.
1289 (_get_some_type_recognizers, get_type_recognizers,
1290 apply_type_recognizers, register_type_printer): New
1291 functions.
1292 * python/py-objfile.c (objfile_object) <type_printers>: New
1293 field.
1294 (objfpy_dealloc): Decref new field.
1295 (objfpy_new): Set new field.
1296 (objfpy_get_type_printers, objfpy_set_type_printers): New
1297 functions.
1298 (objfile_to_objfile_object): Set new field.
1299 (objfile_getset): Add "type_printers".
1300 * python/py-progspace.c (pspace_object) <type_printers>: New
1301 field.
1302 (pspy_dealloc): Decref new field.
1303 (pspy_new): Set new field.
1304 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1305 (pspace_to_pspace_object): Set new field.
1306 (pspace_getset): Add "type_printers".
1307 * python/python.c (start_type_printers, apply_type_printers,
1308 free_type_printers): New functions.
1309 (_initialize_python): Set gdb.type_printers.
1310 * python/python.h (start_type_printers, apply_type_printers,
1311 free_type_printers): Declare.
1312 * typeprint.c (type_print_raw_options, default_ptype_flags):
1313 Update for new fields.
1314 (do_free_global_table, create_global_typedef_table,
1315 find_global_typedef): New functions.
1316 (find_typedef_in_hash): Use find_global_typedef.
1317 (whatis_exp): Use create_global_typedef_table. Change cleanup
1318 handling.
1319 * typeprint.h (struct type_print_options) <global_typedefs,
1320 global_printers>: New fields.
1321
1322 2012-11-12 Tom Tromey <tromey@redhat.com>
1323
1324 * c-typeprint.c (find_typedef_for_canonicalize,
1325 print_name_maybe_canonical): New functions.
1326 (c_print_type): Look up type name.
1327 (cp_type_print_derivation_info): Add flags argument. Use
1328 print_name_maybe_canonical.
1329 (cp_type_print_method_args): Add wrapping.
1330 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1331 (c_type_print_template_args): New function.
1332 (c_type_print_base): Change wrapping. Use
1333 print_name_maybe_canonical.
1334 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1335 type name lookups.
1336 * gdbtypes.c (types_equal): No longer static.
1337 * gdbtypes.h (types_equal): Declare.
1338 * typeprint.c (type_print_raw_options, default_ptype_flags):
1339 Update.
1340 (struct typedef_hash_table): New.
1341 (hash_typedef_field, eq_typedef_field,
1342 recursively_update_typedef_hash, add_template_parameters,
1343 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1344 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1345 copy_typedef_hash, find_typedef_in_hash): New functions.
1346 * typeprint.h (struct type_print_options) <local_typedefs>:
1347 New field.
1348 (recursively_update_typedef_hash, add_template_parameters,
1349 create_typedef_hash, free_typedef_hash,
1350 make_cleanup_free_typedef_hash, copy_typedef_hash,
1351 find_typedef_in_hash): Declare.
1352
1353 2012-11-12 Tom Tromey <tromey@redhat.com>
1354
1355 * cp-support.c (inspect_type,
1356 replace_typedefs_qualified_name, replace_typedefs): Add
1357 finder, data arguments. Call as needed.
1358 (cp_canonicalize_string_full): New function.
1359 (cp_canonicalize_string_no_typedefs): Rewrite.
1360 * cp-support.h (canonicalization_ftype): New typedef.
1361 (cp_canonicalize_string_full): Declare.
1362
1363 2012-11-12 Tom Tromey <tromey@redhat.com>
1364
1365 * NEWS: Update.
1366 * c-typeprint.c (c_type_print_base): Handle print_method and
1367 print_typedefs flags.
1368 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1369 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1370 options.
1371 * typeprint.c (type_print_raw_options, default_ptype_flags):
1372 Update for new field.s
1373 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1374 (setprinttypelist, showprinttypelist, print_methods,
1375 print_typedefs): New globals.
1376 (set_print_type, show_print_type, set_print_type_methods,
1377 show_print_type_methods, set_print_type_typedefs,
1378 show_print_type_typedefs): New functions.
1379 (_initialize_typeprint): Update documentation. Add "print
1380 type methods" and "print type typedefs" parameters.
1381 * typeprint.h (struct type_print_options) <print_methods,
1382 print_typedefs>: New fields.
1383
1384 2012-11-12 Tom Tromey <tromey@redhat.com>
1385
1386 * c-typeprint.c (cp_type_print_method_args): Add flags
1387 argument. Call c_print_type, not type_print.
1388 (c_type_print_base): Call c_print_type, not type_print.
1389 Update.
1390
1391 2012-11-12 Tom Tromey <tromey@redhat.com>
1392
1393 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1394 to type-printing functions.
1395 * ada-lang.h (ada_print_type): Add argument.
1396 * ada-typeprint.c (print_array_type, print_variant_clauses,
1397 print_variant_part, print_selected_record_field_types,
1398 print_record_field_types, print_unchecked_union_type,
1399 print_func_type, ada_print_type): Add flags argument.
1400 (ada_print_typedef): Update.
1401 * c-exp.y (OPERATOR conversion_type_id): Update.
1402 * c-lang.h (c_print_type, c_type_print_base): Update.
1403 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1404 c_type_print_modifier, c_type_print_args,
1405 c_type_print_varspec_suffix, c_type_print_base): Add flags
1406 argument.
1407 * cp-valprint.c (cp_print_class_member): Update.
1408 * dwarf2read.c (dwarf2_compute_name): Update.
1409 * f-lang.h (f_print_type): Add argument.
1410 * f-typeprint.c (f_print_type): Add flags argument.
1411 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1412 * go-lang.h (go_print_type): Add argument.
1413 * go-typeprint.c (go_print_type): Add flags argument.
1414 * jv-lang.h (java_print_type): Add argument.
1415 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1416 flags argument.
1417 * language.c (unk_lang_print_type): Add flags argument.
1418 * language.h (struct language_defn) <la_print_type>: Add flags
1419 argument.
1420 (LA_PRINT_TYPE): Likewise.
1421 * m2-lang.h (m2_print_type): Add argument.
1422 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1423 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1424 m2_unbounded_array, m2_record_fields): Add flags argument.
1425 * p-lang.h (pascal_print_type, pascal_type_print_base,
1426 pascal_type_print_varspec_prefix): Add argument.
1427 * p-typeprint.c (pascal_print_type,
1428 pascal_type_print_varspec_prefix, pascal_print_func_args,
1429 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1430 flags argument.
1431 * symmisc.c (print_symbol): Update.
1432 * typeprint.c (type_print_raw_options, default_ptype_flags):
1433 New globals.
1434 (type_print): Update.
1435 * typeprint.h (struct type_print_options): New.
1436 (type_print_raw_options): Declare.
1437 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1438
1439 2012-11-10 Keith Seitz <keiths@redhat.com>
1440
1441 * breakpoint.c (clear_command): Add cleanup for
1442 sals.sals if an argument is given.
1443
1444 * linespec.c (parse_linespec): Do cleanups after
1445 parsing a convenience variable.
1446
1447 2012-11-10 Keith Seitz <keiths@redhat.com>
1448
1449 PR gdb/14288
1450 * c-valprint.c (c_val_print): For character arrays
1451 with "print null" option on, print ellipses if
1452 the output is truncated and the next character is not \000.
1453 * valprint.c (MAX_WCHARS): Define.
1454 (WCHAR_BUFLEN): Likewise.
1455 (WCHAR_BUFLEN_MAX): Likewise.
1456 (struct converted_character): New structure.
1457 (count_next_character): New function.
1458 (print_converted_chars_to_obstack): New function.
1459 (generic_printstr): Rewrite using count_next_character
1460 and print_converted_chars_to_obstack.
1461
1462 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1463
1464 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1465 while executing the gdb command.
1466 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1467 are called from prompt_for_continue.
1468 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1469
1470 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1471
1472 PR tui/9584
1473
1474 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1475 but insert the command to execute in readline's buffer.
1476
1477 2012-11-09 Tom Tromey <tromey@redhat.com>
1478
1479 * gdbarch.sh (target_gdbarch): Remove macro.
1480 (get_target_gdbarch): Rename to target_gdbarch.
1481 * gdbarch.c, gdbarch.h: Rebuild.
1482 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1483 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1484 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1485 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1486 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1487 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1488 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1489 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1490 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1491 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1492 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1493 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1494 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1495 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1496 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1497 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1498 target-descriptions.c, target.c, target.h, tracepoint.c,
1499 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1500 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1501 python/py-inferior.c, python/python.c: Update.
1502
1503 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1504
1505 * source.c (print_source_lines_base): Add fullname field giving
1506 full path to file in mi output.
1507 * NEWS: Mention the new fullname field.
1508
1509 2012-11-09 Yao Qi <yao@codesourcery.com>
1510
1511 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1512
1513 2012-11-09 Pedro Alves <palves@redhat.com>
1514
1515 PR gdb/14306
1516
1517 * infrun.c: Include target-descriptions.h.
1518 (follow_exec): Fetch new target description.
1519
1520 2012-11-09 Yao Qi <yao@codesourcery.com>
1521
1522 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1523 0x8d (lea).
1524
1525 2012-11-09 Yao Qi <yao@codesourcery.com>
1526
1527 * breakpoint.c: Declare set_tracepoint_count.
1528 (install_breakpoint): Call set_tracepoint_count if B is a
1529 tracepoint.
1530 (trace_command): Don't call set_tracepoint_count. Re-indent.
1531 (strace_command, ftrace_command):
1532 (create_tracepoint_from_upload): Likewise.
1533
1534 2012-11-09 Pedro Alves <palves@redhat.com>
1535
1536 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1537 (get_target_gdbarch) <gdbarch.h>: New function.
1538 (startup_gdbarch) <gdbarch.h>: Declare.
1539 <gdbarch.c> (target_gdbarch): Delete.
1540 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1541 current inferior's gdbarch.
1542 <gdbarch.c> (get_target_gdbarch): New function.
1543 * inferior.c: Include target-descriptions.h.
1544 (free_inferior): Free target description info.
1545 (add_inferior_with_spaces): Set the inferior's initial
1546 architecture.
1547 (clone_inferior_command): Copy the original inferior's target
1548 description if it was user specified.
1549 (initialize_inferiors): Add comment.
1550 * inferior.h (struct target_desc_info): Forward declare.
1551 (struct inferior) <gdbarch>: New field.
1552 * linux-nat.c: Include target-descriptions.h.
1553 (linux_child_follow_fork): Copy the parent's architecture and
1554 target description to the child.
1555 * target-descriptions.c: Include inferior.h.
1556 (struct target_desc_info): New structure, holding the equivalents
1557 of ...
1558 (target_desc_fetched, current_target_desc)
1559 (target_description_filename): ... these removed globals.
1560 (get_tdesc_info, target_desc_info_from_user_p)
1561 (copy_inferior_target_desc_info, target_desc_info_free): New.
1562 (target_desc_fetched, current_target_desc)
1563 (target_description_filename): Reimplemented as convenience
1564 macros.
1565 (tdesc_filename_cmd_string): New global.
1566 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1567 tdescs filename ..." commands to the per-inferior equivalent.
1568 (show_tdesc_filename_cmd): Get the value to show from the
1569 per-inferior description filename.
1570 (_initilize_target_descriptions): Change the "set/show tdesc
1571 filename" commands' variable.
1572 * target-descriptions.h (struct target_desc, struct target_desc_info)
1573 (struct inferior): Forward declare.
1574 (target_find_description, target_clear_description)
1575 (target_current_description): Adjust comments.
1576 (copy_inferior_target_desc_info, target_desc_info_free)
1577 (target_desc_info_from_user_p). Declare.
1578
1579 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1580
1581 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1582 (tui_target_wait_hook): Remove.
1583 (tui_install_hooks): Install the about_to_proceed observer.
1584 (tui_remove_hooks): And remove it here.
1585
1586 2012-11-08 Tom Tromey <tromey@redhat.com>
1587
1588 * linux-tdep.c (linux_make_siginfo_note): New function.
1589 (linux_make_corefile_notes): Use it.
1590 * corelow.c (get_core_siginfo): New function.
1591 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1592
1593 2012-11-08 Tom Tromey <tromey@redhat.com>
1594
1595 PR gdb/14704:
1596 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1597 (zlib_decompress_section): Remove.
1598 (gdb_bfd_map_section): Only check for compressed section
1599 in mmap case. Use bfd_get_full_section_contents.
1600 * osabi.c (check_note): Add 'sectsize' argument. Read
1601 section data.
1602 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1603 section data. Update for check_note change.
1604 * xcoffread.c (xcoff_initial_scan): Use
1605 bfd_get_full_section_contents.
1606 * py-auto-load.c (auto_load_section_scripts): Use
1607 bfd_get_full_section_contents.
1608 * contrib/cc-with-tweaks.sh: Add -Z option.
1609
1610 2012-11-08 Tom Tromey <tromey@redhat.com>
1611
1612 * python/py-bpevent.c: Include defs.h.
1613 * python/py-continueevent.c: Include defs.h.
1614 * python/py-event.c: Include defs.h.
1615 * python/py-event.h: Don't include defs.h.
1616 * python/py-events.h: Don't include defs.h.
1617 * python/py-evts.c: Include defs.h.
1618 * python/py-exitedevent.c: Include defs.h.
1619 * python/py-newobjfileevent.c: Include defs.h.
1620 * python/py-signalevent.c: Include defs.h.
1621 * python/py-stopevent.c: Include defs.h.
1622 * python/py-threadevent.c: Include defs.h.
1623
1624 2012-11-08 Pierre Muller <muller@sourceware.org>
1625
1626 * update-web-ari.sh (print_heading): Add number of files
1627 checked.
1628 (nb_files): New variable counting the number of sources
1629 files found by gdb_find.sh script.
1630 (debug_awk): New variable to allow extra debug output.
1631 (indexes): Add more information if DEBUG_AWK is set.
1632
1633 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1634
1635 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1636 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1637 following the change in PLT call stubs on linker.
1638
1639 2012-11-08 Pierre Muller <muller@sourceware.org>
1640
1641 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1642 as default language.
1643 (AWK): Use = instead of == for sh test to avoid warning.
1644 (Linux rule): Correct [:digit] into [[:digit:]].
1645 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1646 (vasprintf rule): Adapt to common subdirectory moves.
1647 (xasprintf rule): Idem.
1648 (xvasprintf rule): Idem.
1649 (var_boolean rule): Accept occurence in == or != test.
1650
1651 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1652
1653 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1654
1655 * tui/tui-hooks.c (tui_inferior_exit): New function.
1656 (tui_detach_hook): Remove.
1657 (tui_install_hooks): Install the inferior exit observer.
1658 (tui_remove_hooks): Remove it.
1659
1660 2012-11-08 Yao Qi <yao@codesourcery.com>
1661
1662 PR gdb/14777.
1663 * source.c (_initialize_source): Call add_com_alias to abbreviate
1664 'forward-search' as 'fo'.
1665
1666 2012-11-07 Pedro Alves <palves@redhat.com>
1667
1668 * arm-tdep.c: Make defs.h be the first include.
1669 * coff-pe-read.c: Ditto.
1670 * gnu-nat.c: Ditto.
1671 * go32-nat.c: Ditto.
1672 * i386-nat.c: Ditto.
1673 * ppcnbsd-nat.c: Ditto.
1674 * ada-varobj.h: Don't include defs.h.
1675 * i386-darwin-tdep.h: Ditto.
1676 * i386-nat.h: Ditto.
1677
1678 2012-11-07 Pedro Alves <palves@redhat.com>
1679
1680 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1681 Committee.
1682
1683 2012-11-07 Pierre Muller <muller@sourceware.org>
1684
1685 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1686 File already uses "gdb_dirent.h" header.
1687
1688 2012-11-07 Yao Qi <yao@codesourcery.com>
1689
1690 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1691 tracepoint_count'.
1692
1693 2012-11-06 Tom Tromey <tromey@redhat.com>
1694
1695 * target.h (inferior_has_forked, inferior_has_vforked)
1696 (inferior_has_execd, inferior_has_called_syscall): Remove
1697 declarations.
1698
1699 2012-11-06 Pierre Muller <muller@sourceware.org>
1700
1701 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1702 add missing internalization markup.
1703
1704 2012-11-06 Pedro Alves <palves@redhat.com>
1705
1706 PR gdb/14810
1707
1708 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1709
1710 2012-11-06 Pierre Muller <muller@sourceware.org>
1711
1712 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1713 is not executable.
1714
1715 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1716
1717 * gnulib/update-gnulib.sh: New script.
1718
1719 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1720
1721 * MAINTAINERS: Update my email address.
1722
1723 2012-11-05 Tom Tromey <tromey@redhat.com>
1724
1725 * frame.c (put_frame_register): Don't use temporary buffer.
1726
1727 2012-11-05 Pedro Alves <palves@redhat.com>
1728
1729 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1730 child. Clear 'pending_detach'.
1731 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1732 'pending_detach' in the vfork parent.
1733
1734 2012-11-05 Doug Evans <dje@google.com>
1735
1736 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1737 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1738 * dwarf2read.c: #include "elf-bfd.h".
1739 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1740 (dwop_section_names): Renamed from dwo_section names. All uses
1741 updated. Add entries for .debug_cu_index, .debug_tu_index.
1742 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1743 All uses updated.
1744 (struct dwp_sections): New type.
1745 (struct virtual_dwo_sections): New type.
1746 (struct dwp_hash_table): New type.
1747 (struct dwp_file): New type.
1748 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1749 read in. Handle DWOs coming from DWP files.
1750 (lookup_dwo_file_slot): New function.
1751 (dwarf2_locate_dwo_sections): Move definition closer to use.
1752 (create_dwo_debug_info_hash_table_reader): Renamed from
1753 create_debug_info_hash_table_reader. All callers updated.
1754 (create_dwo_debug_info_hash_table): Renamed from
1755 create_debug_info_hash_table. All callers updated.
1756 (create_dwp_hash_table): New function.
1757 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1758 (lookup_dwo_in_dwp): New function.
1759 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1760 is_dwp. All callers updated.
1761 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1762 (open_and_init_dwo_file): Renamed from init_dwo_file.
1763 All callers updated.
1764 (lookup_dwo_file): Delete.
1765 (dwarf2_locate_dwp_sections): New function.
1766 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1767 (allocate_dwp_loaded_cutus_table): New function.
1768 (open_and_init_dwp_file): New function.
1769 (lookup_dwo_cutu): New function.
1770 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1771
1772 2012-11-03 Yao Qi <yao@codesourcery.com>
1773
1774 Fix PR gdb/14617.
1775 * breakpoint.c (trace_pass_set_count): Call
1776 observer_notify_breakpoint_modified instead of
1777 observer_notify_tracepoint_modified.
1778 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1779
1780 2012-11-02 Tom Tromey <tromey@redhat.com>
1781
1782 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1783 argument to complete_on_enum.
1784
1785 2012-11-02 Tom Tromey <tromey@redhat.com>
1786
1787 * configure: Rebuild.
1788 * configure.ac (build_warnings): Add -Wempty-body.
1789 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1790 * remote.c (handle_notification): Use braces for empty 'else' body.
1791 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1792 'else' body.
1793 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1794 'else' body.
1795 * solib-som.c (som_relocate_section_addresses): Use braces
1796 for empty 'else' body.
1797 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1798 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1799
1800 2012-11-02 Pedro Alves <palves@redhat.com>
1801
1802 PR gdb/14766
1803
1804 * infrun.c (handle_inferior_event)
1805 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1806 null_ptid before handling a vfork child exec or exit. Switch to
1807 the event ptid afterwards.
1808
1809 2012-11-02 Yao Qi <yao@codesourcery.com>
1810
1811 * std-operator.def: Remove OP_LABELED.
1812 * eval.c: Remove the declaration of 'get_label'.
1813 (get_label): Remove.
1814 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1815 Update comment.
1816 Remove local variable 'variantno' and related code.
1817 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1818 with 'fieldno'.
1819 * expprint.c (print_subexp_standard): Likewise.
1820 (dump_subexp_body_standard): Likewise.
1821 * parse.c (operator_length_standard): Likewise.
1822
1823 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1824
1825 Incorporate ARI web page generator into GDB sources.
1826 * contrib/ari/create-web-ari-in-src.sh: New file.
1827 * contrib/ari/gdb_ari.sh: New file.
1828 * contrib/ari/gdb_find.sh: New file.
1829 * contrib/ari/update-web-ari.sh: New file.
1830
1831 2012-10-31 Tom Tromey <tromey@redhat.com>
1832
1833 * gdbarch.c: Rebuild.
1834 * gdbarch.sh: Remove references to gdbarch_swap.
1835 * corelow.c (core_open): Remove obsolete comment.
1836
1837 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1838
1839 PR cli/14772
1840 * c-typeprint.c (c_print_type): Don't print a space for vector
1841 types, this is handled within the suffix.
1842 (c_type_print_varspec_suffix): Add a space to vector suffix.
1843
1844 2012-10-26 Pedro Alves <palves@redhat.com>
1845
1846 * amd64-tdep.c (amd64_relocate_instruction): Use
1847 store_unsigned_integer instead of memcpy.
1848 * i386-tdep.c (i386_relocate_instruction): Ditto.
1849
1850 2012-10-26 Pedro Alves <palves@redhat.com>
1851
1852 * infrun.c (handle_inferior_event): Merge handling of
1853 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1854 switch case.
1855
1856 2012-10-26 Pedro Alves <palves@redhat.com>
1857
1858 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1859 Remove comment.
1860
1861 2012-10-26 Pedro Alves <palves@redhat.com>
1862
1863 * target.c (target_waitstatus_to_string): Handle
1864 TARGET_WAITKIND_VFORK_DONE.
1865
1866 2012-10-26 Pedro Alves <palves@redhat.com>
1867
1868 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1869 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1870
1871 2012-10-24 Tristan Gingold <gingold@adacore.com>
1872
1873 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1874 Add comments.
1875
1876 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1877
1878 * ravenscar-thread.c (ravenscar_wait): Only update the list
1879 of threads and inferior_ptid if the inferior is still alive.
1880
1881 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1882
1883 * ada-lang.c (is_known_support_routine): Use lbasename when
1884 matching the symtab's filename against
1885 known_runtime_file_name_patterns.
1886
1887 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1888
1889 * ada-lang.c (ada_same_array_size_p): New function.
1890 (ada_promote_array_of_integrals): New function.
1891 (coerce_for_assign): Add handling of arrays where the elements
1892 are integrals of a smaller size than the size of the target
1893 array element type.
1894
1895 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1896
1897 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1898 against maximum exponent value.
1899
1900 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1901
1902 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1903 "unwind-seh.c".
1904
1905 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1906
1907 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1908 strip typedef layer when computing the fixed type's field type,
1909 only when computing its size.
1910
1911 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1912
1913 PR gdb/12783
1914 * i386-tdep.c (i386_return_value): Handle complex double and long
1915 double.
1916
1917 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1918
1919 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1920 New local variable args_len.
1921 Quote the name of the executable when computing the command line.
1922
1923 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1924
1925 PR gdb/12796
1926 PR gdb/12798
1927 PR gdb/12800
1928 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1929 AMD64_FTAG_REGNUM.
1930 * amd64-tdep.c (amd64_classify): Classify complex types.
1931 (amd64_return_value): Handle the COMPLEX_X87 class.
1932
1933 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1934
1935 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1936 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1937
1938 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1939
1940 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1941 function.
1942 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1943 to amd64_windows_auto_wide_charset.
1944
1945 2012-10-23 Yao Qi <yao@codesourcery.com>
1946
1947 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1948 * event-top.h: Remove its declaration.
1949 (async_request_quit): Call mark_async_signal_handler instead of
1950 mark_async_signal_handler_wrapper.
1951 (async_do_nothing, async_disconnect): Likewise.
1952 (async_stop_sig): Likewise.
1953 * remote.c (handle_remote_sigint): Likewise.
1954 (handle_remote_sigint_twice): Likewise.
1955
1956 2012-10-23 Yao Qi <yao@codesourcery.com>
1957
1958 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1959 with 'static struct async_signal_handler *'.
1960 (sighup_token, sigquit_token, sigstp_token): Likewise.
1961
1962 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1963
1964 * gdbarch.sh (function_list): Use 'pstring' when printing
1965 a variable which could return NULL.
1966 * gdbarch.c: Regenerate.
1967
1968 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1969 Tom Tromey <tromey@redhat.com>
1970
1971 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1972 inneffective if condition by gdb assertion. Add function
1973 description comment.
1974
1975 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1976
1977 * parser-defs.h (struct exp_descriptor): Document constraint
1978 on return value for "op_name" callbacks.
1979
1980 2012-10-18 Tom Tromey <tromey@redhat.com>
1981
1982 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1983 * symtab.c (iterate_over_some_symtabs): Constify.
1984 * source.h (symtab_to_fullname): Return 'const char *'.
1985 * source.c (symtab_to_fullname): Return 'const char *'.
1986 * python/py-symtab.c (stpy_fullname): Constify.
1987 * cli/cli-cmds.c (edit_command): Constify.
1988 * breakpoint.c (print_breakpoint_location)
1989 (update_static_tracepoint): Constify.
1990
1991 2012-10-18 Tom Tromey <tromey@redhat.com>
1992
1993 * breakpoint.c (compare_breakpoints): Fix comparison.
1994
1995 2012-10-18 Tom Tromey <tromey@redhat.com>
1996
1997 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1998 gdb_wchar_t to convert_between_encodings.
1999
2000 2012-10-17 Yao Qi <yao@codesourcery.com>
2001
2002 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2003 more parameter 'inferior'.
2004 * corefile.c (write_memory_with_notification): Caller update.
2005
2006 * mi/mi-cmd-var.c: Include "mi-main.h".
2007 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2008 to 1 and restore it later.
2009 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2010 and "data-write-memory-bytes.
2011 * mi/mi-interp.c: Include objfiles.h.
2012 (mi_interpreter_init): Call observer_attach_memory_changed.
2013 (mi_memory_changed): New.
2014 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2015 New field.
2016
2017 * NEWS: Mention new MI notification "memory-changed".
2018
2019 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2020
2021 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2022
2023 2012-10-15 Doug Evans <dje@google.com>
2024
2025 New option -nh: inhibit loading of ~/.gdbinit.
2026 * NEWS: Mention -nh.
2027 * main.c (captured_main): Recognize and process -nh.
2028 (print_gdb_help): Mention -nh.
2029 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2030
2031 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2032
2033 PR backtrace/14646
2034 PR gdb/14647
2035 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2036 pc_regnum_from_eax.
2037 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2038 nor pc_regnum_from_eax.
2039 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2040 nor pc_regnum_from_eax.
2041
2042 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2043
2044 Fix entry values resolving in inlined frames.
2045 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2046 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2047 entries of FRAME.
2048
2049 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2050
2051 * configure.ac: Build with -DMS_WIN64 if building with Python
2052 enabled using GCC on amd64-windows.
2053 * configure: Regenerate.
2054
2055 2012-10-15 Tom Tromey <tromey@redhat.com>
2056
2057 PR python/14635:
2058 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2059 to Py_None.
2060
2061 2012-10-15 Tom Tromey <tromey@redhat.com>
2062
2063 PR python/14634:
2064 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2065
2066 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2067
2068 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2069 reset thread numbering back to 1.
2070
2071 2012-10-11 Doug Evans <dje@google.com>
2072
2073 PR breakpoints/14643.
2074 * linespec.c (struct ls_parser): New member keyword_ok.
2075 (linespec_lexer_lex_string): Add comment.
2076 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2077 for one.
2078 (parse_linespec): Set keyword_ok.
2079
2080 2012-10-10 Doug Evans <dje@google.com>
2081
2082 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2083 "0x" prefix on address in log message.
2084
2085 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2086 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2087 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2088 (lookup_dwo_file): Add const to dwo_name parameter.
2089 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2090
2091 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2092
2093 Fix crash during stepping on ppc32.
2094 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2095 SYM.
2096
2097 2012-10-03 Doug Evans <dje@google.com>
2098
2099 PR symtab/14601
2100 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2101
2102 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2103
2104 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2105 output and use uint32_t not long to ensure 4 byte size.
2106
2107 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2108
2109 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2110 unref'ed it.
2111
2112 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2113
2114 * target.c (simple_search_memory): Include access length in
2115 warning message.
2116
2117 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2118 Edjunior Machado <emachado@linux.vnet.ibm.com>
2119
2120 PR gdb/13989
2121 * solib.c (solib_find): Prevent GDB from loading native libraries when
2122 debugging a cross-target corefile.
2123
2124 2012-09-28 selven <pcthegreat@gmail.com>
2125
2126 Make definition match declaration.
2127
2128 * regcache.c (regcache_register_status): Change return type to
2129 enum register_status.
2130
2131 2012-09-28 Yao Qi <yao@codesourcery.com>
2132
2133 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2134 write_memory_with_notification instead of write_memory.
2135 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2136 instead of target_write_memory.
2137
2138 2012-09-28 Yao Qi <yao@codesourcery.com>
2139
2140 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2141 when the length of content is not an even number.
2142
2143 2012-09-27 Tom Tromey <tromey@redhat.com>
2144
2145 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2146 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2147
2148 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2149
2150 * sol-thread.c (sol_thread_fetch_registers)
2151 (sol_thread_store_registers): Delete commented out code.
2152
2153 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2154
2155 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2156 Move these functions to sparc-sol-thread.c.
2157 * sparc-sol-thread.c: New file.
2158 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2159 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2160 configurations.
2161 * configure: Regenerate.
2162
2163 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2164
2165 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2166 Remove commented-out code.
2167
2168 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2169
2170 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2171 Enable this code for sparc hosts only.
2172
2173 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2174
2175 * procfs.h (procfs_find_LDT_entry): Add declaration.
2176 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2177 function procfs_find_LDT_entry.
2178
2179 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2180
2181 * procfs.c (proc_get_LDT_entry): Make static.
2182
2183 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2184
2185 * procfs.c (proc_find_memory_regions): Fix declaration.
2186
2187 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2188
2189 * amd64-tdep.c (amd64_return_value): Revert previous change
2190 that used TYPE_LENGTH directly.
2191 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2192 (bfin_store_return_value): Likewise.
2193 * cris-tdep.c (cris_store_return_value): Likewise.
2194 (cris_extract_return_value): Likewise.
2195 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2196 * hppa-tdep.c (hppa64_return_value): Likewise.
2197 * lm32-tdep.c (lm32_store_return_value): Likewise.
2198 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2199 * spu-tdep.c (spu_value_from_register): Likewise.
2200 * vax-tdep.c (vax_return_value): Likewise.
2201
2202 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2203
2204 * gdbtypes.c (lookup_array_range_type): Expand parameters
2205 LOW_BOUND and HIGH_BOUND to LONGEST.
2206 (lookup_string_range_type): Likewise.
2207 * gdbtypes.h (lookup_array_range_type): Likewise.
2208 (lookup_string_range_type): Likewise.
2209 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2210 Expand HIGHBOUND to ssize_t.
2211 (value_string): Likewise.
2212 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2213 (value_string): Likewise.
2214
2215 2012-09-27 Yao Qi <yao@codesourcery.com>
2216
2217 PR breakpoints/13898
2218 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2219 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2220 per breakpoint type.
2221
2222 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2223
2224 * procfs.c: Add gdb_bfd header.
2225 * rs6000-nat.c: Likewise.
2226 * solib-pa64.c: Likewise.
2227 * spu-linux-nat.c: Likewise.
2228 * windows-nat.c: Likewise.
2229
2230 2012-09-26 Tom Tromey <tromey@redhat.com>
2231
2232 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2233
2234 2012-09-26 Tom Tromey <tromey@redhat.com>
2235
2236 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2237 (read_common_block): Handle child DIEs with
2238 DW_AT_data_member_location.
2239 (new_symbol_full): Add special case for common blocks.
2240
2241 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2242 Tom Tromey <tromey@redhat.com>
2243
2244 * dwarf2read.c (read_common_block): Rewrite.
2245 (new_symbol_full): Handle DW_TAG_common_block.
2246 * f-lang.c (head_common_list, find_common_for_function):
2247 Remove.
2248 * f-lang.h (struct common_entry, struct saved_f77_common,
2249 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2250 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2251 BLANK_COMMON_NAME_LOCAL): Remove.
2252 (struct common_block): New.
2253 * f-valprint.c (list_all_visible_commons): Remove.
2254 (info_common_command_for_block): New function.
2255 (info_common_command): Use it.
2256 * stack.c (iterate_over_block_locals): Special case for
2257 COMMON_BLOCK_DOMAIN.
2258 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2259 constant.
2260 (struct general_symbol_info) <value.common_block>: New field.
2261 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2262
2263 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2264 Tom Tromey <tromey@redhat.com>
2265
2266 * f-lang.c (allocate_saved_bf_node,
2267 allocate_saved_function_node, allocate_saved_f77_common_node,
2268 allocate_common_entry_node, tail_common_list, current_common,
2269 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2270 tmp_bf_ptr, add_common_block, add_common_entry,
2271 find_first_common_named, patch_common_entries,
2272 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2273 global_remote_debug, get_bf_for_fcn, saved_function_list,
2274 saved_function_list_end, clear_function_list, struct saved_fcn,
2275 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2276 SAVED_BF, SAVED_BF_PTR): Remove.
2277 * f-lang.h (tail_common_list, current_common,
2278 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2279 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2280 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2281 real_main_c_value): Remove.
2282 * f-valprint.c (there_is_a_visible_common_named): Remove.
2283
2284 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2285
2286 * breakpoint.c (update_global_location_list): Ignore previous
2287 duplicate status of a breakpoint when starting a new scan for
2288 duplicate breakpoints.
2289
2290 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2291 PR breakpoints/14419
2292 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2293 support LLVM compiler.
2294
2295 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2296
2297 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2298 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2299 (bfin_store_return_value): Likewise.
2300 * cris-tdep.c (cris_store_return_value): Likewise.
2301 (cris_extract_return_value): Likewise.
2302 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2303 * hppa-tdep.c (hppa64_return_value): Likewise.
2304 * lm32-tdep.c (lm32_store_return_value): Likewise.
2305 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2306 * spu-tdep.c (spu_value_from_register): Likewise.
2307 * vax-tdep.c (vax_return_value): Likewise.
2308
2309 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2310
2311 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2312 parameter LEN to ssize_t.
2313
2314 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2315
2316 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2317 variable LEN.
2318 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2319 directly.
2320 (alpha_store_return_value): Likewise.
2321 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2322 (amd64_push_arguments): Likewise.
2323 * ax-gdb.c (gen_trace_static_fields): Likewise.
2324 (gen_traced_pop): Likewise.
2325 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2326 * breakpoint.c (update_watchpoint): Likewise.
2327 * findcmd.c (parse_find_args): Use local variable for type
2328 instead of length.
2329 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2330 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2331 (h8300_store_return_value): Likewise.
2332 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2333 Use i386_darwin_arg_type_alignment directly.
2334 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2335 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2336 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2337 (m68hc11_extract_return_value): Likewise.
2338 * mep-tdep.c (mep_push_dummy_call): Likewise.
2339 * printcmd.c (float_type_from_length): Likewise.
2340 * s390-tdep.c (s390_value_from_register): Likewise.
2341 * stack.c (read_frame_arg): Likewise.
2342 * tracepoint.c (encode_actions_1): Likewise.
2343 * valops.c (value_fetch_lazy): Use local variable for type
2344 instead of length. Use TYPE_LENGTH directly.
2345 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2346
2347 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2348
2349 * symtab.c (skip_prologue_sal): Fix typo in comment.
2350
2351 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2352
2353 * linespec.c (create_sals_line_offset): Fix typo in comment.
2354
2355 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2356
2357 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2358 use plongest to print the array size.
2359
2360 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2361
2362 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2363 * p-valprint.c (pascal_type_print_base): Likewise.
2364
2365 2012-09-22 Yao Qi <yao@codesourcery.com>
2366
2367 * remote.c (remote_get_trace_status): Remove setting default
2368 values of fields of 'ts'.
2369
2370 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2371
2372 Fix internal error on canonicalization of clang types.
2373 * cp-name-parser.y (operator): New comment at make_operator call for
2374 new, delete, new[] and delete[].
2375 (exp): Use "sizeof ". Add new comment at make_operator call.
2376
2377 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2378
2379 Fix disassemble without parameters in tailcall frame.
2380 * cli/cli-cmds.c (disassemble_current_function): Use
2381 get_frame_address_in_block.
2382
2383 2012-09-21 Tom Tromey <tromey@redhat.com>
2384
2385 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2386 TYPE_CODE_UNION>: Unify, removing a goto.
2387
2388 2012-09-21 Tom Tromey <tromey@redhat.com>
2389
2390 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2391
2392 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2393
2394 * findvar.c (read_frame_register_value): Mark the result value as
2395 optimized out if any of the input registers have been optimized out.
2396
2397 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2398
2399 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2400
2401 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2402
2403 * eval.c (evaluate_subexp_standard): Eliminate single-use
2404 variable LOWER.
2405
2406 2012-09-21 Yao Qi <yao@codesourcery.com>
2407
2408 * mi/mi-interp.c: Declare mi_record_changed.
2409 (mi_interpreter_init): Call observer_attach_record_changed.
2410 (mi_record_changed): New.
2411 * record.c (record_open): Call observer_notify_record_changed.
2412 (cmd_record_stop): Call observer_notify_record_changed.
2413 * NEWS: Mention it.
2414
2415 2012-09-20 Tom Tromey <tromey@redhat.com>
2416
2417 * NEWS: Update.
2418 * python/python.c (finalize_python): New function.
2419 (_initialize_python): Make a final cleanup.
2420
2421 2012-09-19 Doug Evans <dje@google.com>
2422
2423 * buildsym.h (param_symbols): Delete, unused.
2424 (context_stack): Delete member "params", unused.
2425 * buildsym.c (push_context): Update.
2426 * dwarf2read.c (read_func_scope): Update.
2427
2428 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2429
2430 * sh-tdep.c (sh_register_convert_to_virtual)
2431 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2432 all callers. Just do a memcpy if not the little-endian case.
2433
2434 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2435 set_gdbarch_double_format and set_gdbarch_long_double_format.
2436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2437 set_gdbarch_double_format.
2438 * sh-tdep.c (sh_gdbarch_init): Likewise.
2439
2440 * NEWS: Document the removal of SH's 'regs' command.
2441 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2442 command.
2443
2444 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2445
2446 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2447 `jump'.
2448
2449 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2450
2451 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2452 language when iterating over symbols.
2453
2454 2012-09-18 Yao Qi <yao@codesourcery.com>
2455
2456 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2457 (mi_interpreter_init): Call observer_attach_tsv_created and
2458 observer_attach_tsv_deleted.
2459 (mi_tsv_created, mi_tsv_deleted): New.
2460 * tracepoint.c (delete_trace_state_variable): Call
2461 observer_notify_tsv_deleted.
2462 (trace_variable_command): Call observer_notify_tsv_created.
2463 (delete_trace_variable_command): Call
2464 observer_notify_tsv_deleted.
2465 (create_tsv_from_upload): Call observer_notify_tsv_created.
2466 * NEWS: Mention it.
2467
2468 2012-09-18 Yao Qi <yao@codesourcery.com>
2469
2470 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2471 if traceframe changed.
2472 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2473 "trace-find".
2474 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2475 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2476 'traceframe_changed'.
2477 (mi_traceframe_changed): New.
2478 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2479 New field.
2480 * NEWS: Mention the new MI notification.
2481
2482 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2483
2484 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2485
2486 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2487
2488 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2489 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2490 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2491 Extend code also for PaX support. Convert all gdb_assert to warning
2492 calls.
2493
2494 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2495
2496 Implement auto-load user conveniences suggested by Doug Evans.
2497 * auto-load.c: Include top.h.
2498 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2499 (_initialize_auto_load): New variable scripts_directory_help. Mention
2500 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2501 scripts-directory. Document in online help one can use also files for
2502 set auto-load safe-path.
2503 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2504 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2505
2506 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2507
2508 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2509 of LEN.
2510
2511 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2512
2513 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2514 ELTLEN and use TYPE_LENGTH directly.
2515 (m2_val_print): Likewise.
2516 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2517 variable LEN and use TYPE_LENGTH directly.
2518 (m68k_svr4_store_return_value): Likewise.
2519 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2520 ARGLEN and use TYPE_LENGTH directly.
2521 (mips_o64_push_dummy_call): Likewise.
2522 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2523 variable LENGTH and use TYPE_LENGTH directly.
2524 (s390_function_arg_float): Likewise.
2525 (s390_function_arg_integer): Likewise.
2526 (s390_push_dummy_call): Likewise.
2527 (s390_return_value_convention): Likewise.
2528 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2529 TYPE_LENGTH directly.
2530
2531 2012-09-17 Yao Qi <yao@codesourcery.com>
2532
2533 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2534 Update comment to add_setshow_integer_cmd.
2535 * cli/cli-setshow.c (do_set_command): Handle case
2536 'var_zuinteger_unlimited'.
2537 (do_show_command): Likewise.
2538 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2539 for command 'remotetimeout'.
2540 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2541 to var_integer.
2542 * source.c (_initialize_source): Call
2543 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2544
2545 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2546
2547 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2548 variable LEN.
2549
2550 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2551
2552 PR 14119
2553 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2554 (frame_pop): Drop also TAILCALL_FRAME frames.
2555 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2556
2557 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2558 Pedro Alves <palves@redhat.com>
2559
2560 PR 14548
2561 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2562 function start if we are already at function start. Both for
2563 reverse-next and for reverse-step into function without line number
2564 info.
2565
2566 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2567
2568 Code cleanup - rename 'inline' depth to 'artificial' depth.
2569 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2570 frame_id_artificial_p, extend the comment.
2571 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2572 * frame.c (fprint_frame_id): Rename at a user, change debug output
2573 text to "artificial=".
2574 (skip_inlined_frames): Rename to ...
2575 (skip_artificial_frames): ... here. Extend the comment.
2576 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2577 (frame_id_inlined_p): Rename to ...
2578 (frame_id_artificial_p): ... here. Rename at a user.
2579 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2580 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2581 at a user.
2582 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2583 Extend the comment.
2584 (frame_id_inlined_p): Rename to ...
2585 (frame_id_artificial_p): ... here.
2586 * inline-frame.c (inline_frame_this_id): Rename at a user.
2587
2588 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2589
2590 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2591 vector variables using vector_size syntax rather than array
2592 syntax.
2593
2594 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2595
2596 * valarith.c (value_concat): Replace unsafe ALLOCA with
2597 XMALLOC/XFREE.
2598
2599 2012-09-14 Pedro Alves <palves@redhat.com>
2600
2601 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2602
2603 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2604
2605 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2606 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2607 data-directory as appropriate.
2608
2609 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2610
2611 * printcmd.c (ui_printf): Eliminate single-use variable
2612 PARAM_LEN.
2613
2614 2012-09-14 Yao Qi <yao@codesourcery.com>
2615 Pedro Alves <palves@redhat.com>
2616
2617 * valops.c (value_assign): Move observer_notify_target_changed
2618 below to replace reinit_frame_cache.
2619
2620 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2621
2622 Refactor Python "gdb" module into a proper Python package, by
2623 introducing a new "_gdb" module for code implemented in C, and
2624 using reload/__import__ instead of exec.
2625 * python/lib/gdb/__init__.py: Import * from _gdb.
2626 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2627 prompt_hook, sys.argv): Moved from finish_python_initialization.
2628 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2629 (packages, auto_load_packages): New list and function replacing
2630 module_dict and auto-loading code, using __file__ instead of
2631 gdb.PYTHONDIR and reload/__import__ instead of exec.
2632 (GdbSetPythonDirectory): Replacing function of the same name
2633 from finish_python_initialization, using reload/__import__ instead
2634 of exec, as well as call auto_load_packages.
2635 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2636 gdb_python_module and not gdb_module.
2637 * python/python-internal.h (gdb_python_module): Declare.
2638 * python/python.c (gdb_python_module): New global.
2639 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2640 (_initialize_python): Rename gdb module to _gdb.
2641 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2642 (finish_python_initialization): Move Python code to
2643 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2644 __main__.
2645
2646 2012-09-13 Pedro Alves <palves@redhat.com>
2647
2648 * Makefile.in (COMMON_OBS): Add registry.o.
2649 * registry.c: New file.
2650 * registry.h (struct registry_container): Declare.
2651 (registry_data_callback): New typedef.
2652 (struct registry_data, struct registry_data_registration, struct
2653 registry_data_registry): New type.
2654 (register_data_with_cleanup, registry_alloc_data)
2655 (registry_callback_adaptor, registry_clear_data)
2656 (registry_container_free_data, registry_set_data, registry_data):
2657 Declare.
2658 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2659 the new common structures and functions.
2660 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2661 callback typedefs.
2662
2663 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2664
2665 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2666 there is an error inserting hardware breakpoints and use the
2667 error message from the target.
2668
2669 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2670 Catch this exception and print the error message contained within.
2671 Do not print the default hardware error breakpoint message in this
2672 case.
2673
2674 2012-09-12 Doug Evans <dje@google.com>
2675
2676 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2677 cu == NULL.
2678
2679 2012-09-11 Doug Evans <dje@google.com>
2680
2681 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2682 .gdb_index symbol attributes if there are none.
2683
2684 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2685
2686 * symtab.h (struct minimal_symbol) [has_size]: New field.
2687 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2688 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2689 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2690 minimal symbols if the symbol's size is actually known.
2691 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2692 of msymbol's size field. Add comment.
2693 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2694 SET_MSYMBOL_SIZE to set the minimal symbol size.
2695
2696 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2697
2698 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2699 minimal_symbol struct object, rather than setting some of its
2700 fields one by one.
2701
2702 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2703
2704 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2705 passed_a_ptr flag when displaying typedef types.
2706
2707 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2708
2709 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2710 the optimized_out flag is preserved.
2711
2712 2012-09-10 Anthony Green <green@moxielogic.com>
2713
2714 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2715 prologue changes in GCC.
2716
2717 2012-09-10 Keith Seitz <keiths@redhat.com>
2718
2719 PR gdb/13483
2720 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2721 (BOOL_CONVERSION_BADNESS): ... this.
2722 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2723 (rank_one_type): Allow all boolean conversions
2724 permitted by the standard.
2725
2726 2012-09-06 Tom Tromey <tromey@redhat.com>
2727
2728 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2729 Don't decref py_objfile.
2730
2731 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2732
2733 Do not enable -lmcheck by default when Python is enabled with
2734 threading support.
2735 * configure.ac: (python_has_threads) New variable, by testing
2736 if WITH_THREAD is defined in Python.h.
2737 Move --enable-lmcheck after --with-python.
2738 Do not enable -lmcheck by default if python_has_threads=yes.
2739 Warn if --enable-lmcheck and python_has_threads=yes.
2740 * configure: Regenerate.
2741
2742 2012-08-31 Yao Qi <yao@codesourcery.com>
2743
2744 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2745 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2746 Update some commands.
2747 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2748 * mi/mi-main.c (mi_cmd_execute): Set
2749 '*parse->cmd->suppress_notification' to 1.
2750
2751 2012-08-31 Yao Qi <yao@codesourcery.com>
2752
2753 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2754
2755 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2756
2757 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2758
2759 2012-08-29 Doug Evans <dje@google.com>
2760
2761 * main.c (print_gdb_help): Remove reference to
2762 --use-deprecated-index-sections.
2763
2764 2012-08-28 Yao Qi <yao@codesourcery.com>
2765
2766 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2767 (init_cmds): Call add_setshow_uinteger_cmd for command
2768 'max-user-call-depth'.
2769 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2770 declaration of 'max_user_call_depth'.
2771 * frame.c (backtrace_limit): Add 'unsigned'.
2772 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2773 'limit'.
2774 * remote.c (remoteaddresssize): Add 'unsigned'.
2775 (remote_address_masked): Change local var 'address_size' to
2776 'unsigned'.
2777 (_initialize_remote): Call add_setshow_uinteger_cmd for
2778 'remoteaddresssize'.
2779 * top.c (history_size): Add 'unsigned'.
2780 (show_commands): Change local variables to 'unsigned'.
2781 (set_history_size_command): Don't check history_size is negative.
2782 Adjust the condition to call unstifle_history and set history_size
2783 to UNIT_MAX.
2784
2785 2012-08-28 Pedro Alves <palves@redhat.com>
2786
2787 PR gdb/14428
2788
2789 * infcmd.c (default_print_one_register_info): New, factored out
2790 from default_print_registers_info.
2791 (default_print_registers_info): Use it. Mark value unavailable if
2792 necessary.
2793 (registers_info): Print user registers with
2794 default_print_one_register_info.
2795
2796 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2797
2798 PR tui/14486
2799 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2800 is not NULL before referencing it.
2801
2802 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2803
2804 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2805 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2806 original PC for it.
2807
2808 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2809 Jan Kratochvil <jan.kratochvil@redhat.com>
2810
2811 * auto-load.c (auto_load_objfile_script): Rename to ...
2812 (auto_load_objfile_script_1): ... here, change variable realname to
2813 parameter realname, document it, add return value, add variable retval.
2814 (auto_load_objfile_script): New function.
2815
2816 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2817
2818 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2819 followed by a whitespace.
2820
2821 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2822
2823 PR gdb/14494.
2824 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2825 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2826 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2827 here.
2828
2829 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2830
2831 * memattr.c (create_mem_region): Fix memory region overlapping
2832 checking.
2833
2834 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2835
2836 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2837 with xmalloc/cleanup.
2838 * mt-tdep.c (mt_push_dummy_call): Likewise.
2839 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2840 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2841
2842 2012-08-24 Yao Qi <yao@codesourcery.com>
2843
2844 * jv-exp.y (push_expression_name): Add "." at the end of error
2845 message.
2846
2847 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2848
2849 Document how to return from "python-interactive" to GDB.
2850 * python/python.c (_initialize_python): Update documentation.
2851
2852 2012-08-23 Pedro Alves <palves@redhat.com>
2853
2854 * infrun.c (_initialize_infrun) <handle command help text>:
2855 Mention that multiple signals are supported.
2856
2857 2012-08-23 Pedro Alves <palves@redhat.com>
2858
2859 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2860 string.
2861
2862 2012-08-23 Yao Qi <yao@codesourcery.com>
2863
2864 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2865 (tfind_1): Don't call registers_changed, set_traceframe_num,
2866 and clear_traceframe_info.
2867 Call set_current_traceframe.
2868 (set_current_traceframe): call set_traceframe_num.
2869
2870 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2871
2872 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2873 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2874
2875 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2876
2877 Enable readline in Python in a GDB-specific way and block the
2878 standard Python readline module to prevent conflicts with GDB.
2879 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2880 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2881 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2882 * python/py-gdb-readline.c: New file.
2883 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2884 prototype.
2885 * python/python.c (_initialize_python): Call
2886 gdbpy_initialize_gdb_readline.
2887
2888 2012-08-22 Keith Seitz <keiths@redhat.com>
2889
2890 * defs.h: Include build-gnulib/config.h
2891
2892 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2893
2894 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2895 and blx pc.
2896
2897 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2898
2899 Add a new "python-interactive" command that starts a standard
2900 Python interactive prompt with "pi" as alias, and add "py" as
2901 an alias to "python".
2902 * NEWS: Mention the new commands.
2903 * python/python.c (eval_python_command): New function.
2904 (python_interactive_command): For "python-interactive" with
2905 arguments, call eval_python_command. For "python-interactive"
2906 without arguments, call PyRun_InteractiveLoop.
2907 (_initialize_python): Add "python-interactive" command with
2908 "pi" as alias, and add "py" as an alias to "python".
2909
2910 2012-08-22 Tom Tromey <tromey@redhat.com>
2911
2912 * defs.h (quit_flag): Don't declare.
2913 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2914 (QUIT): Use new functions.
2915 * event-top.c (command_handler): Use clear_quit_flag.
2916 (handle_sigint): Use set_quit_flag.
2917 (async_request_quit): Use check_quit_flag. Don't check
2918 immediate_quit.
2919 * exceptions.c (throw_exception): Use clear_quit_flag.
2920 * main.c (captured_main): Use clear_quit_flag.
2921 * python/python.c (clear_quit_flag, set_quit_flag)
2922 (check_quit_flag): New functions.
2923 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2924 clear_quit_flag.
2925 * remote.c (remote_wait_as): Use check_quit_flag,
2926 clear_quit_flag.
2927 (remote_start_remote): Call QUIT.
2928 * symfile.c (load_progress): Use check_quit_flag.
2929 * top.c (command_loop): Use clear_quit_flag.
2930 (command_line_input): Call QUIT.
2931 * utils.c (quit_flag): Conditionally define.
2932 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2933 functions.
2934 (prompt_for_continue): Call QUIT. Use quit, not
2935 async_request_quit.
2936 * remote-mips.c (mips_expect_timeout): Call QUIT.
2937 * monitor.c (monitor_expect): Call QUIT.
2938
2939 2012-08-22 Tom Tromey <tromey@redhat.com>
2940
2941 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2942 (async_init_signals): Update.
2943 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2944 (SIGWINCH_HANDLER_BODY): Remove.
2945
2946 2012-08-22 Tom Tromey <tromey@redhat.com>
2947
2948 * jit.c (jit_object_close_impl): Don't malloc the objfile
2949 name.
2950 * objfiles.c (allocate_objfile): Don't malloc the objfile
2951 name.
2952 (free_objfile): Don't free the objfile name.
2953 * objfiles.h (struct objfile) <name>: Update comment.
2954 * symfile.c (reread_symbols): Fix reference counting. Don't
2955 malloc objfile name.
2956
2957 2012-08-22 Tom Tromey <tromey@redhat.com>
2958
2959 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2960 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2961 (symfile_bfd_open): Likewise.
2962 (generic_load): Likewise.
2963 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2964 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2965 gdb_bfd_open.
2966 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2967 Use gdb_bfd_open.
2968 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2969 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2970 (pmon_load_fast): Likewise.
2971 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2972 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2973 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2974 (macho_check_dsym): Likewise.
2975 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2976 (m32r_upload_command): Likewise.
2977 * gdb_bfd.h (gdb_bfd_cache): Declare.
2978 * gdb_bfd.c (struct gdb_bfd_data): New.
2979 (gdb_bfd_cache): New global.
2980 (struct gdb_bfd_cache_search): New.
2981 (hash_bfd): New function.
2982 (eq_bfd): Likewise.
2983 (gdb_bfd_open): Likewise.
2984 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2985 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2986 gdb_bfd_data.
2987 * exec.c (exec_file_attach): Use gdb_bfd_open.
2988 * dsrec.c (load_srec): Use gdb_bfd_open.
2989
2990 2012-08-22 Tom Tromey <tromey@redhat.com>
2991
2992 * dwarf2read.c (macro_start_file): Update.
2993 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2994 (free_objfile_per_bfd_storage): Destroy macro_cache.
2995 (allocate_objfile, free_objfile): Update.
2996 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2997 New field.
2998 (struct objfile) <macro_cache>: Remove.
2999 * symfile.c (reread_symbols): Update.
3000 * symmisc.c (print_symbol_bcache_statistics): Update.
3001 (print_objfile_statistics): Update.
3002
3003 2012-08-22 Tom Tromey <tromey@redhat.com>
3004
3005 * elfread.c (elf_symtab_read): Update.
3006 * objfiles.c (objfiles_bfd_data): New global.
3007 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3008 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3009 (allocate_objfile, free_objfile): Update.
3010 (_initialize_objfiles): Initialize objfiles_bfd_data.
3011 * objfiles.h (struct objfile_per_bfd_storage): New.
3012 (struct objfile) <per_bfd>: New field.
3013 <filename_cache>: Remove.
3014 (set_objfile_per_bfd): Declare.
3015 * symfile.c (reread_symbols): Update. Call
3016 set_objfile_per_bfd.
3017 (allocate_symtab): Update.
3018 * symmisc.c (print_symbol_bcache_statistics): Update.
3019 (print_objfile_statistics): Print the size of the BFD obstack.
3020
3021 2012-08-22 Tom Tromey <tromey@redhat.com>
3022
3023 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3024 * gdb_bfd.c: Use DEFINE_REGISTRY.
3025 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3026 (gdb_bfd_ref): Call bfd_alloc_data.
3027 (gdb_bfd_unref): Call bfd_free_data.
3028
3029 2012-08-22 Tom Tromey <tromey@redhat.com>
3030
3031 * registry.h (struct registry_fields): New.
3032 (REGISTRY_FIELDS): Redefine.
3033 (REGISTRY_ACCESS_FIELD): New macro.
3034 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3035 functions.
3036
3037 2012-08-22 Tom Tromey <tromey@redhat.com>
3038
3039 * auto-load.c (_initialize_auto_load): Update.
3040 * solib-svr4.c (_initialize_svr4_solib): Update
3041 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3042 * solib-darwin.c (_initialize_darwin_solib): Update.
3043 * registry.h: New file.
3044 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3045 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3046 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3047 (register_program_space_data_with_cleanup)
3048 (register_program_space_data, program_space_alloc_data)
3049 (clear_program_space_data, set_program_space_data)
3050 (program_space_data): Don't declare.
3051 * progspace.c: Use DEFINE_REGISTRY.
3052 (struct program_space_data, struct
3053 program_space_data_registration, struct
3054 program_space_data_registry, program_space_data_registry)
3055 (register_program_space_data_with_cleanup)
3056 (register_program_space_data, program_space_alloc_data)
3057 (program_space_free_data, clear_program_space_data)
3058 (set_program_space_data, program_space_data): Remove.
3059 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3060 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3061 (register_objfile_data_with_cleanup, register_objfile_data)
3062 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3063 declare.
3064 * objfiles.c: Use DEFINE_REGISTRY.
3065 (struct objfile_data, struct objfile_data_registration, struct
3066 objfile_data_registry, objfile_data_registry)
3067 (register_objfile_data_with_cleanup, register_objfile_data)
3068 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3069 (set_objfile_data, objfile_data): Remove.
3070 (_initialize_objfiles): Update.
3071 * jit.c (_initialize_jit): Update.
3072 * inflow.c (_initialize_inflow): Update.
3073 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3074 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3075 (register_inferior_data_with_cleanup, register_inferior_data)
3076 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3077 declare.
3078 * inferior.c: Use DEFINE_REGISTRY.
3079 (struct inferior_data, struct inferior_data_registration, struct
3080 inferior_data_registry, inferior_data_registry)
3081 (register_inferior_data_with_cleanup, register_inferior_data)
3082 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3083 (set_inferior_data, inferior_data): Remove.
3084 * auxv.c (_initialize_auxv): Update.
3085 * ada-lang.c (_initialize_ada_language): Update.
3086 * breakpoint.c (_initialize_breakpoint): Update.
3087 * i386-nat.c (i386_use_watchpoints): Update.
3088
3089 2012-08-22 Tom Tromey <tromey@redhat.com>
3090
3091 * exec.c (exec_close, exec_file_attach): Update.
3092 (add_to_section_table): Initialize 'key' field.
3093 (add_target_sections, remove_target_sections): Add 'key' argument.
3094 * exec.h (add_target_sections, remove_target_sections): Add
3095 'key' argument.
3096 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3097 (reload_shared_libraries_1): Update.
3098 * target.h (struct target_section) <key>: New field.
3099
3100 2012-08-22 Tom Tromey <tromey@redhat.com>
3101
3102 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3103
3104 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3105
3106 * symfile.c (allocate_symtab): Use host_address_to_string
3107 function instead of cast of pointer to long which is not
3108 compatible with x86_64-w64-mingw32 build.
3109
3110 2012-08-19 Andrew Pinski <apinski@cavium.com>
3111
3112 * mips-tdep.c (is_octeon): New function.
3113 (is_octeon_bbit_op): New function.
3114 (mips32_next_pc): Handle Octeon's bbit instructions.
3115 (mips32_instruction_has_delay_slot): Likewise.
3116
3117 2012-08-19 Andrew Pinski <apinski@cavium.com>
3118
3119 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3120 before the function.
3121
3122 2012-08-19 Andrew Pinski <apinski@cavium.com>
3123
3124 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3125
3126 2012-08-19 Keith Seitz <keiths@redhat.com>
3127
3128 PR c++/14365
3129 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3130 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3131
3132 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3133
3134 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3135 The typo broke "make TAGS".
3136
3137 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3138
3139 GDB 7.5 released.
3140
3141 2012-08-17 Keith Seitz <keiths@redhat.com>
3142
3143 PR c++/13356
3144 * gdbtypes.c (strict_type_checking): New variable.
3145 (show_strict_type_checking): New function.
3146 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3147 if strict type checking is disabled.
3148 (_initialize_gdbtypes): Add "check type" subcommand.
3149 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3150
3151 2012-08-17 Keith Seitz <keiths@redhat.com>
3152
3153 * language.h (type_mode): Remove.
3154 (type_check): Remove.
3155 (struct language_defn): Remove la_type_check.
3156 (STRICT_TYPE): Remove unused macro.
3157 (type_error): Remove.
3158 * language.c (set_type_range_case): Renamed to ...
3159 (set_range_case): ... this. Update all callers.
3160 Remove type_mode/type_check.
3161 (type_mode): Remove.
3162 (type_check): Remove.
3163 (show_type_command): Remove.
3164 (set_type_command): Remove.
3165 (language_info): Remove type checking output.
3166 (type_error): Remove unused function.
3167 (range_error): Update comment.
3168 (unknown_language_defn): Remove la_type_check.
3169 (auto_language_defn): Likewise.
3170 (local_language_defn): Likewise.
3171 (_initialize_language): Remove "check type" subcommand.
3172 * ada-lang.c (ada_language_defn): Remove la_type_check.
3173 * c-lang.c (c_language_defn): Likewise.
3174 (cplus_language_defn): Likewise.
3175 (asm_language_defn): Likewise.
3176 (minimal_language_defn): Likewise.
3177 * d-lang.c (d_language_defn): Likewise.
3178 * f-lang.c (f_language_defn): Likewise.
3179 * go-lang.c (go_language_defn): Likewise.
3180 * jv-lang.c (java_language_defn): Likewise.
3181 * m2-lang.c (m2_language_defn): Likewise.
3182 * objc-lang.c (objc_language_defn): Likewise.
3183 * opencl-lang.c (opencl_language_defn): Likewise.
3184 * p-lang.c (pascal_language_defn): Likewise.
3185
3186 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3187
3188 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3189
3190 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3191
3192 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3193 New function.
3194 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3195 using the regache. Use ia64_hpux_get_register_from_save_state_t
3196 to access the bsp and bspstore registers if not.
3197
3198 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3199
3200 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3201 * breakpoint.c (detach_breakpoints): Change pid parameter into
3202 a ptid. Adjust code accordingly.
3203 * infrun.c (handle_inferior_event): Delete variable child_pid.
3204 Update call to detach_breakpoints to pass the child ptid for
3205 fork events.
3206 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3207 assert that inferior_ptid's lwp is zero.
3208 (linux_handle_extended_wait): Update call to detach_breakpoints.
3209 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3210 detach_breakpoints.
3211
3212 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3213
3214 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3215 parent, only call detach_breakpoints if tts.tts_event ==
3216 TTEVT_VFORK.
3217
3218 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3219
3220 * dwarf2-frame.c (dwarf2_frame_cache): Use
3221 get_frame_address_in_block instead of get_frame_pc as
3222 the bound for executing the frame's FDE.
3223
3224 2012-08-16 Yao Qi <yao@codesourcery.com>
3225
3226 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3227 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3228 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3229 (c_type_print_varspec_suffix): Likewise.
3230 * eval.c (evaluate_subexp_standard): Likewise.
3231 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3232 (f_type_print_varspec_suffix): Likewise.
3233 * gdbtypes.c (is_scalar_type): Likewise.
3234 (recursive_dump_type): Likewise.
3235 * infcall.c (value_arg_coerce): Likewise.
3236 * m2-valprint.c (m2_val_print): Likewise.
3237 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3238 (pascal_type_print_varspec_suffix): Likewise.
3239 (pascal_type_print_base): Likewise.
3240 * p-valprint.c (pascal_val_print): Likewise.
3241 (pascal_val_print): Likewise.
3242 * valops.c (value_slice): Likewise.
3243 * valprint.c (scalar_type_p): Likewise.
3244 * valarith.c (value_bitstring_subscript): Remove.
3245 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3246 Remove comment on TYPE_CODE_BITSTRING.
3247
3248 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3249 TYPE_CODE_BITSTRING.
3250
3251 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3252 slot 0.
3253
3254 2012-08-16 Yao Qi <yao@codesourcery.com>
3255
3256 * tracepoint.c (trace_find_none_command): Remove.
3257 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3258
3259 2012-08-16 Yao Qi <yao@codesourcery.com>
3260
3261 * remote.c (handle_notification): Remove parameter 'length'.
3262 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3263
3264 2012-08-15 Keith Seitz <keiths@redhat.com>
3265
3266 * gdbtypes.c (opaque_type_resolution): Make static.
3267 Add missing comment.
3268 (overload_debug): Add missing comment.
3269 (show_opaque_type_resolution): Likewise.
3270 (show_overload_debug): Likewise.
3271 (print_bit_vector): Remove unnecessary forward declaration.
3272 (print_arg_types): Likewise.
3273 (dump_fn_fieldlists): Likewise.
3274 (print_cplus_stuff): Likewise.
3275
3276 2012-08-15 Tom Tromey <tromey@redhat.com>
3277
3278 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3279 (gdb_bfd_ref): Initialize new field.
3280 (gdb_bfd_unref): Unref the archive BFD.
3281 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3282 parent archive.
3283
3284 2012-08-15 Tom Tromey <tromey@redhat.com>
3285
3286 PR python/14387:
3287 * python/py-bpevent.c (create_breakpoint_event_object): Update
3288 comment.
3289 * python/py-event.c (evpy_add_attribute): Update comment.
3290 * python/py-exitedevent.c (create_exited_event_object): Fix
3291 reference counting and error handling.
3292 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3293 Fix reference counting.
3294 * python/py-signalevent.c (create_signal_event_object): Fix
3295 reference counting and error handling.
3296 * python/py-stopevent.c (emit_stop_event): Fix reference
3297 counting.
3298 * python/py-threadevent.c (get_event_thread): Return a
3299 borrowed reference.
3300 * python/py-type.c (convert_field): Fix reference counting.
3301
3302 2012-08-15 Tom Tromey <tromey@redhat.com>
3303
3304 * dwarf2read.c (dwarf_decode_macro_bytes)
3305 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3306 as hash key.
3307
3308 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3309
3310 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3311 stepi, nexti, finish, next, step, jump, and continue commands.
3312 * infrun.c (_initialize_infrun): Update help text for the handle
3313 command.
3314
3315 2012-08-14 Doug Evans <dje@google.com>
3316
3317 * gdbtypes.c (struct extra): Delete, unused.
3318
3319 * gdbtypes.c: Whitespace cleanup.
3320 (address_space_name_to_int): Remove "extern" from definition.
3321 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3322
3323 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3324 TYPE_POINTER_TYPE (type).
3325
3326 2012-08-14 Gary Benson <gbenson@redhat.com>
3327
3328 * solib-svr4.c (svr4_free_library_list): Use free_so.
3329
3330 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3331
3332 * .gitignore: Add go-exp.c.
3333
3334 2012-08-13 Doug Evans <dje@google.com>
3335
3336 * value.c (show_convenience): Tweak comment.
3337 (_initialize_values): Mention convenience functions in the help text
3338 for "show convenience".
3339
3340 2012-08-13 Yao Qi <yao@codesourcery.com>
3341
3342 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3343 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3344 TERNOP_SLICE_COUNT.
3345 * eval.c (evaluate_subexp_standard): Likewise.
3346 * expprint.c (print_subexp_standard): Likewise.
3347 (dump_subexp_body_standard): Likewise.
3348 * parse.c (operator_length_standard): Likewise.
3349
3350 2012-08-13 Yao Qi <yao@codesourcery.com>
3351
3352 * std-operator.def: Remove OP_BITSTRING.
3353 * breakpoint.c (watchpoint_exp_is_const): Update.
3354 * eval.c (evaluate_subexp_standard): Remove handling to
3355 OP_BITSTRING.
3356 * expprint.c (print_subexp_standard): Likewise.
3357 (dump_subexp_body_standard): Likewise.
3358 * parse.c (operator_length_standard): Likewise.
3359 * valops.c (value_bitstring): Remove.
3360 * value.h: Remove the declaration of 'value_bitstring'.
3361
3362 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3363
3364 * linespec.c (find_methods): Remove unused variables `i1' and
3365 `name_len'.
3366 (decode_line_full): Likewise for `arg_start'.
3367
3368 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3369
3370 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3371 (zlib_decompress_section): Likewise for `section_data'.
3372 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3373
3374 2012-08-10 Doug Evans <dje@google.com>
3375
3376 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3377 * NEWS: Document them.
3378 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3379 function/strfns.py.
3380 * python/py-type.c (typy_array_1): New function.
3381 (typy_array): Call it.
3382 (typy_vector): New function.
3383 (type_object_methods): Add "vector".
3384 * python/lib/gdb/function/__init__.py: New file.
3385 * python/lib/gdb/function/strfns.py: New file.
3386
3387 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3388
3389 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3390 for TYPE_FIELD_BITPOS.
3391 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3392
3393 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3394
3395 PR cli/10436:
3396 * common/vec.h (VEC_merge): Define.
3397 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3398 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3399 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3400 * completer.c: Include gdb_signals.h.
3401 (signal_completer): Define.
3402 * completer.h (signal_completer): Add prototype.
3403 * infcmd.c (_initialize_infcmd): Assign the command
3404 completer for "signal" to handle_completer.
3405 * infrun.c: Include completer.h.
3406 (handle_completer): Define.
3407 (_initialize_infrun): Declare a new local variable c. Store the
3408 result of add_com("handle") to it. Assign the command
3409 completer for "handle" to handle_completer.
3410
3411 2012-08-09 Yao Qi <yao@codesourcery.com>
3412
3413 * cli/cli-decode.c (set_cmd_prefix): New.
3414 (lookup_cmd_for_prefixlist): New.
3415 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3416 of each cmd_list_element in *prefixlist.
3417 (add_setshow_cmd_full): set_cmd_prefix.
3418 (add_alias_cmd): Likewise.
3419 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3420 Declare 'auto_boolean_enums'.
3421 * cli/cli-setshow.c: Include "observer.h".
3422 (notify_command_param_changed_p): New.
3423 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3424 Remove 'static'.
3425 (do_setshow_command): Split it to ...
3426 (do_set_command, do_show_command): ... them. New.
3427 (do_set_command): Call observer_notify_command_param_changed if
3428 notify_command_param_changed_p returns true.
3429 (cmd_show_list): Caller update.
3430 * auto-load.c (set_auto_load_cmd): Likewise.
3431 * remote.c (show_remote_cmd): Likewise.
3432 * cli/cli-setshow.h: Update declarations.
3433 * top.c (execute_command): Call do_set_command and do_show_command.
3434
3435 * NEWS: Mention new MI notification.
3436 * mi/mi-interp.c: Declare mi_command_param_changed.
3437 (mi_interpreter_init): Attach mi_command_param_changed to
3438 observer command_param_changed.
3439 (mi_command_param_changed): New.
3440 Remove mi_suppress_breakpoint_notifications.
3441 Define global variable mi_suppress_notification.
3442 (mi_breakpoint_created): Update.
3443 (mi_breakpoint_deleted): Likewise.
3444 (mi_breakpoint_modified): Likewise.
3445 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3446 'gdb-set' and set mi_suppress_notification.
3447 * mi/mi-main.h: (mi_suppress_notification): New struct.
3448
3449 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3450 Jan Kratochvil <jan.kratochvil@redhat.com>
3451
3452 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3453
3454 2012-08-09 Yao Qi <yao@codesourcery.com>
3455
3456 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3457 (skiplist): Move it to skip.c.
3458 (init_cmd_lists): Remove code setting enablebreaklist and
3459 skiplist to NULL.
3460 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3461 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3462 skiplist.
3463 * gdbcmd.h: Likewise.
3464 * skip.c (_initialize_step_skip): Move 'skiplist' from
3465 cli/cli-cmds.c.
3466
3467 2012-08-09 Yao Qi <yao@codesourcery.com>
3468
3469 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3470 * gnu-nat.c, symfile.c: Likewise.
3471
3472 2012-08-08 Aaron Gamble <agamble@google.com>
3473
3474 * utils.c (prompt_for_continue_wait_time): New static global.
3475 (make_command_stats_cleanup): Initialize it.
3476 (report_command_stats): Subtract time waiting for user.
3477 (prompt_for_continue): Track time waiting for user.
3478 (defaulted_query): Track time waiting for user.
3479
3480 2012-08-08 Doug Evans <dje@google.com>
3481
3482 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3483 UNOP_MEMVAL_TYPE.
3484 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3485 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3486 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3487 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3488 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3489 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3490 elt.
3491 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3492 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3493 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3494 (dump_prefix_expression): Handle OP_TYPE.
3495
3496 2012-08-08 Keith Seitz <keiths@redhat.com>
3497
3498 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3499 addr_start.
3500
3501 2012-08-08 Doug Evans <dje@google.com>
3502
3503 * linux-thread-db.c: #include "gdb_vecs.h".
3504 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3505 updated.
3506 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3507 (thread_db_load_search): Use a vector to iterate over path elements.
3508 Handle text appearing after "$pdir".
3509
3510 * gdb_string.h: Moved to ...
3511 * common/gdb_string.h: ... here.
3512 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3513 gdb_string.h and gdb_assert.h.
3514
3515 2012-08-08 Yao Qi <yao@codesourcery.com>
3516
3517 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3518 (tic6x_value_to_register): Likewise.
3519 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3520 and set_gdbarch_value_to_register.
3521
3522 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3523 Jean-Marc Saffroy <saffroy@gmail.com>
3524
3525 PR 11804
3526 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3527 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3528 * gcore.c (gcore_create_callback): New function comment. Add modified
3529 parameter. Only write modified regions. Set SEC_READONLY exactly
3530 according to MODIFIED.
3531 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3532 the passed modified value to FUNC.
3533 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3534 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3535 first. New variables modified and has_anonymous. Parse the lines of
3536 smaps file. Add the passed MODIFIED value to FUNC.
3537 * procfs.c (find_memory_regions_callback): Add the passed modified
3538 value.
3539
3540 2012-08-06 Tom Tromey <tromey@redhat.com>
3541
3542 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3543 (dwarf2_frame_cache): Use it.
3544 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3545 cache initialization constraint.
3546
3547 2012-08-06 Tom Tromey <tromey@redhat.com>
3548
3549 PR python/14386:
3550 * varobj.c (update_dynamic_varobj_children): Don't call
3551 PyIter_Check.
3552
3553 2012-08-06 Tom Tromey <tromey@redhat.com>
3554
3555 PR cli/14392:
3556 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3557
3558 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3559
3560 * NEWS: New entry for 'cd' default parameters.
3561 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3562
3563 2012-08-03 Tom Tromey <tromey@redhat.com>
3564
3565 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3566 return.
3567
3568 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3569
3570 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3571 to attempting lseek/write.
3572 (inf_child_fileio_pread): Likewise for pread.
3573
3574 2012-08-02 Yao Qi <yao@codesourcery.com>
3575
3576 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3577 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3578 add_setshow_zinteger_cmd.
3579 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3580 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3581 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3582 instead of add_setshow_zinteger_cmd.
3583 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3584 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3585 instead of add_setshow_zinteger_cmd.
3586 * frame.c (frame_debug): Add 'unsigned'.
3587 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3588 add_setshow_zinteger_cmd.
3589 * frame.h: Update the declaration of 'frame_debug'.
3590 * gdbtypes.c (overload_debug): Add 'unsigned'.
3591 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3592 add_setshow_zinteger_cmd.
3593 * inferior.h: Update declaration of 'debug_infrun'.
3594 * infrun.c (debug_infrun): Add 'unsigned'.
3595 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3596 add_setshow_zinteger_cmd.
3597 * jit.c (jit_debug): Add 'unsigned'.
3598 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3599 add_setshow_zinteger_cmd.
3600 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3601 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3602 instead of add_setshow_zinteger_cmd.
3603 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3604 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3605 add_setshow_zinteger_cmd.
3606 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3607 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3608 instead of add_setshow_zinteger_cmd.
3609 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3610 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3611 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3612 intead of add_setshow_zinteger_cmd.
3613 * mips-tdep.c (mips_debug): Add 'unsigned'.
3614 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3615 instead of add_setshow_zinteger_cmd.
3616 * monitor.c (monitor_debug): Add 'unsigned'.
3617 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3618 add_setshow_zinteger_cmd.
3619 * observer.c (observer_debug): Add 'unsigned'.
3620 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3621 add_setshow_zinteger_cmd.
3622 * parse.c (expressiondebug): Add 'unsigned'.
3623 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3624 add_setshow_zinteger_cmd.
3625 * record.c (record_debug): Add 'unsigned'.
3626 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3627 add_setshow_zinteger_cmd.
3628 * record.h: Update the declaration of 'record_debug'.
3629 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3630 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3631 add_setshow_zinteger_cmd.
3632 * serial.c (global_serial_debug_p): Add 'unsigned'.
3633 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3634 add_setshow_zinteger_cmd.
3635 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3636 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3637 add_setshow_zinteger_cmd.
3638 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3639 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3640 add_setshow_zinteger_cmd.
3641 * target.c (targetdebug): Add 'unsigned'.
3642 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3643 add_setshow_zinteger_cmd.
3644 * valops.c (overload_debug): Add 'unsigned'.
3645 * varobj.c (varobjdebug): Add 'unsigned'.
3646 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3647 add_setshow_zinteger_cmd.
3648 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3649 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3650 instead of add_setshow_zinteger_cmd.
3651
3652 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3653 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3654 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3655 instead of add_setshow_zinteger_cmd.
3656 * gdbarch.c, gdbarch.h: Re-generated.
3657
3658 2012-08-02 Yao Qi <yao@codesourcery.com>
3659
3660 * nto-tdep.c: Don't include cli/cli-decode.h and
3661 cli/cli-cmds.h.
3662 (_initialize_nto_tdep): Remove.
3663 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3664 Remove field.
3665 Remove macro nto_internal_debugging.
3666
3667 2012-08-01 Richard Henderson <rth@redhat.com>
3668
3669 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3670 (mep-*-*) [gdb_target_obs]: Likewise.
3671
3672 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3673
3674 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3675 linux_get_siginfo_type.
3676
3677 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3678
3679 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3680 AT_ENTRY_POINT.
3681 (call_function_by_hand) <ON_STACK>: Call write_memory with
3682 gdbarch_breakpoint_from_pc, if possible.
3683 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3684 here.
3685
3686 2012-07-31 Yao Qi <yao@codesourcery.com>
3687
3688 * tracepoint.c: Add 'static' for some variables.
3689
3690 2012-07-31 Yao Qi <yao@codesourcery.com>
3691
3692 * go32-nat.c: Declare _initialize_go32_nat.
3693 * ser-go32.c: Declare _initialize_ser_dos.
3694 * top.c (do_chdir_cleanup): Add 'static'.
3695
3696 2012-07-30 Keith Seitz <keiths@redhat.com>
3697
3698 * linespec.c (linespec_lex_number): A number followed
3699 by quotes is a valid number, too.
3700
3701 2012-07-30 Tom Tromey <tromey@redhat.com>
3702
3703 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3704
3705 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3706
3707 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3708 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3709
3710 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3711
3712 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3713 invalid or reevaluated to prevent prevent references to possibly
3714 delete'd type objects being left in the varobj.
3715
3716 2012-07-27 Tom Tromey <tromey@redhat.com>
3717 Jan Kratochvil <jan.kratochvil@redhat.com>
3718
3719 * copying.awk: Print buffer-read-only and vi ro markers.
3720 * copying.c: Rebuild.
3721 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3722 * gdbarch.c, gdbarch.h: Rebuild.
3723 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3724 buffer-read-only and vi ro markers.
3725 * features/arm-with-iwmmxt.c: Rebuild.
3726 * features/arm-with-m-fpa-layout.c: Rebuild.
3727 * features/arm-with-m-vfp-d16.c: Rebuild.
3728 * features/arm-with-m.c: Rebuild.
3729 * features/arm-with-neon.c: Rebuild.
3730 * features/arm-with-vfpv2.c: Rebuild.
3731 * features/arm-with-vfpv3.c: Rebuild.
3732 * features/i386/amd64-avx-linux.c: Rebuild.
3733 * features/i386/amd64-avx.c: Rebuild.
3734 * features/i386/amd64-linux.c: Rebuild.
3735 * features/i386/amd64.c: Rebuild.
3736 * features/i386/i386-avx-linux.c: Rebuild.
3737 * features/i386/i386-avx.c: Rebuild.
3738 * features/i386/i386-linux.c: Rebuild.
3739 * features/i386/i386-mmx-linux.c: Rebuild.
3740 * features/i386/i386-mmx.c: Rebuild.
3741 * features/i386/i386.c: Rebuild.
3742 * features/i386/x32-avx-linux.c: Rebuild.
3743 * features/i386/x32-avx.c: Rebuild.
3744 * features/i386/x32-linux.c: Rebuild.
3745 * features/i386/x32.c: Rebuild.
3746 * features/mips-dsp-linux.c: Rebuild.
3747 * features/mips-linux.c: Rebuild.
3748 * features/mips64-dsp-linux.c: Rebuild.
3749 * features/mips64-linux.c: Rebuild.
3750 * features/rs6000/powerpc-32.c: Rebuild.
3751 * features/rs6000/powerpc-32l.c: Rebuild.
3752 * features/rs6000/powerpc-403.c: Rebuild.
3753 * features/rs6000/powerpc-403gc.c: Rebuild.
3754 * features/rs6000/powerpc-405.c: Rebuild.
3755 * features/rs6000/powerpc-505.c: Rebuild.
3756 * features/rs6000/powerpc-601.c: Rebuild.
3757 * features/rs6000/powerpc-602.c: Rebuild.
3758 * features/rs6000/powerpc-603.c: Rebuild.
3759 * features/rs6000/powerpc-604.c: Rebuild.
3760 * features/rs6000/powerpc-64.c: Rebuild.
3761 * features/rs6000/powerpc-64l.c: Rebuild.
3762 * features/rs6000/powerpc-7400.c: Rebuild.
3763 * features/rs6000/powerpc-750.c: Rebuild.
3764 * features/rs6000/powerpc-860.c: Rebuild.
3765 * features/rs6000/powerpc-altivec32.c: Rebuild.
3766 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3767 * features/rs6000/powerpc-altivec64.c: Rebuild.
3768 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3769 * features/rs6000/powerpc-cell32l.c: Rebuild.
3770 * features/rs6000/powerpc-cell64l.c: Rebuild.
3771 * features/rs6000/powerpc-e500.c: Rebuild.
3772 * features/rs6000/powerpc-e500l.c: Rebuild.
3773 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3774 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3775 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3776 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3777 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3778 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3779 * features/rs6000/powerpc-vsx32.c: Rebuild.
3780 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3781 * features/rs6000/powerpc-vsx64.c: Rebuild.
3782 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3783 * features/rs6000/rs6000.c: Rebuild.
3784 * features/s390-linux32.c: Rebuild.
3785 * features/s390-linux32v1.c: Rebuild.
3786 * features/s390-linux32v2.c: Rebuild.
3787 * features/s390-linux64.c: Rebuild.
3788 * features/s390-linux64v1.c: Rebuild.
3789 * features/s390-linux64v2.c: Rebuild.
3790 * features/s390x-linux64.c: Rebuild.
3791 * features/s390x-linux64v1.c: Rebuild.
3792 * features/s390x-linux64v2.c: Rebuild.
3793 * features/tic6x-c62x-linux.c: Rebuild.
3794 * features/tic6x-c62x.c: Rebuild.
3795 * features/tic6x-c64x-linux.c: Rebuild.
3796 * features/tic6x-c64x.c: Rebuild.
3797 * features/tic6x-c64xp-linux.c: Rebuild.
3798 * features/tic6x-c64xp.c: Rebuild.
3799
3800 2012-07-27 Tom Tromey <tromey@redhat.com>
3801
3802 * c-exp.y (classify_name): Avoid assignment in condition.
3803
3804 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3805
3806 * amd64-windows-tdep.c: Include "frame.h".
3807 (amd64_windows_skip_trampoline_code): New function.
3808 (amd64_windows_init_abi): Add trampoline registration.
3809
3810 2012-07-27 Yao Qi <yao@codesourcery.com>
3811
3812 * tracepoint.c (cur_traceframe_number): Remove.
3813 (set_tfile_traceframe): Remove.
3814 (tfile_trace_find, tfile_fetch_registers): Update callers.
3815 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3816 (tfile_open, tfile_trace_find): Likewise.
3817
3818 2012-07-27 Yao Qi <yao@codesourcery.com>
3819
3820 * thread.c (switch_to_thread): Don't call registers_changed.
3821
3822 2012-07-26 Tom Tromey <tromey@redhat.com>
3823
3824 * Makefile.in (SFILES): Remove objc-exp.y.
3825 (YYFILES): Remove objc-exp.c.
3826 (YYOBJ): Remove objc-exp.o.
3827 (local-maintainer-clean): Don't mention objc-exp.c.
3828 * c-exp.y: Include objc-lang.h.
3829 (%union) <class>: New field.
3830 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3831 (exp): Clone subscript production for OBJC_LBRAC. Add various
3832 Objective C productions.
3833 (msglist, msgarglist, msgarg): New productions.
3834 (array_mod, func_mod, operator): Clone productions for
3835 OBJC_LBRAC.
3836 (parse_string_or_char): Handle '@' strings.
3837 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3838 (classify_name): Check la_name_of_this. Recognize ObjC class
3839 names.
3840 * objc-exp.y: Remove.
3841 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3842 * objc-lang.h (objc_parse, objc_error): Don't declare.
3843
3844 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3845
3846 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3847
3848 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3849
3850 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3851 and decrement.
3852
3853 2012-07-26 Tom Tromey <tromey@redhat.com>
3854
3855 * copying.c: Rebuild.
3856 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3857 'no_class'.
3858
3859 2012-07-26 Tom Tromey <tromey@redhat.com>
3860
3861 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3862 immediate_quit.
3863 (print_objfile_statistics): Likewise.
3864 (maintenance_print_symbols): Likewise.
3865 (maintenance_print_msymbols): Likewise.
3866 (maintenance_print_objfiles): Likewise.
3867 * psymtab.c (print_partial_symbols): Call QUIT.
3868 (maintenance_print_psymbols): Likewise. Don't modify
3869 immediate_quit.
3870 * copying.c (show_copying_command): Don't modify immediate_quit.
3871 (show_warranty_command): Likewise.
3872 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3873
3874 2012-07-26 Keith Seitz <keiths@redhat.com>
3875
3876 * linespec.c (linespec_lexer_lex_number): The input
3877 is also a valid number if the next character is a comma
3878 or colon.
3879
3880 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3881
3882 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3883 configure options.
3884
3885 2012-07-26 Tristan Gingold <gingold@adacore.com>
3886
3887 * machoread.c: Include gdb_bfd.h.
3888
3889 2012-07-26 Tristan Gingold <gingold@adacore.com>
3890
3891 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3892 offset.
3893
3894 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3895
3896 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3897 SIZE to size_t.
3898 (dwarf2_evaluate_loc_desc): Likewise.
3899 (dwarf2_loc_desc_needs_frame): Likewise.
3900 (locexpr_describe_location_1): Likewise.
3901 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3902 size_t.
3903 (struct dwarf2_loclist_baton): Likewise.
3904 * dwarf2read.c (struct dwarf_block): Likewise.
3905 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3906 (decode_locdesc): Expand SIZE and I to size_t.
3907
3908 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3909
3910 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3911
3912 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3913
3914 * doublest.c (convert_doublest_to_floatformat): If the exponent
3915 is too small, treat the value as zero. If the exponent is too
3916 large, treat the value as infinity.
3917
3918 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3919
3920 * configure.ac: Add --enable-lmcheck configure option.
3921 * configure: Regenerate.
3922
3923 2012-07-25 Tom Tromey <tromey@redhat.com>
3924
3925 * NEWS: Mention maint info bfds.
3926 * gdb_bfd.c (all_bfds): New global.
3927 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3928 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3929 New functions.
3930
3931 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3932
3933 * configure.tgt: Add v850*-*-rtems*.
3934
3935 2012-07-25 Tom Tromey <tromey@redhat.com>
3936
3937 * macrotab.c (macro_bcache_str): Remove cast.
3938
3939 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3940
3941 * linespec.c (linespec_lexer_lex_number): Update comments,
3942 change the return and add check to make sure the input is
3943 the decimal numbers.
3944 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3945 false, call linespec_lexer_lex_string.
3946
3947 2012-07-24 Tom Tromey <tromey@redhat.com>
3948
3949 * symfile.c (symbol_file_add): Don't open BFD twice.
3950
3951 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3952
3953 * breakpoint.c (create_breakpoint): Store condition for pending
3954 breakpoints.
3955
3956 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3957
3958 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3959 (m68k_return_value): Handle complex types like structures.
3960 (m68k_svr4_return_value): Likewise.
3961
3962 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3963
3964 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3965 parameters to bfd_get_section_name.
3966
3967 2012-07-24 Yao Qi <yao@codesourcery.com>
3968
3969 * cli/cli-setshow.c: Handle case 'var_uinteger'
3970 and 'var_zuninteger' together. Handle case 'var_integer' and
3971 'var_zinteger' together.
3972
3973 2012-07-23 Keith Seitz <keiths@redhat.com>
3974
3975 * linespec.c (convert_linespec_to_sal): Don't add
3976 any symbols to the result vector if symbol_to_sal
3977 returns zero.
3978
3979 2012-07-23 Keith Seitz <keiths@redhat.com>
3980
3981 * linespec.c (decode_objc): Record the function name
3982 in the linespec.
3983
3984 2012-07-23 Tom Tromey <tromey@redhat.com>
3985
3986 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3987 counting.
3988 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3989 (map_vmap): Acquire a reference to the BFD.
3990
3991 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3992
3993 * p-valprint.c (pascal_object_print_value): Replace potentially
3994 unsafe alloca with xmalloc/xfree.
3995 * valops.c (search_struct_method): Likewise.
3996
3997 2012-07-23 Tom Tromey <tromey@redhat.com>
3998
3999 * solib-svr4.c (enable_break): Update.
4000 * bfd-target.h (target_bfd_reopen): Update documentation.
4001
4002 2012-07-23 Tom Tromey <tromey@redhat.com>
4003
4004 * symfile.c (separate_debug_file_exists): Update.
4005 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4006 (reread_symbols): Update.
4007 * elfread.c (build_id_verify): Update.
4008 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4009 bfd_open_maybe_remote.
4010
4011 2012-07-23 Tom Tromey <tromey@redhat.com>
4012
4013 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4014
4015 2012-07-23 Tom Tromey <tromey@redhat.com>
4016
4017 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4018 and 'abfd'.
4019 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4020 and 'abfd'.
4021 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4022 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4023 'abfd'.
4024 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4025 * objfiles.c (allocate_objfile): Acquire a new reference.
4026 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4027 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4028 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4029 a cleanup for 'nbfd'.
4030 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4031 for 'nbfd'.
4032 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4033 make a cleanup for 'abfd'.
4034 (symbol_file_add): Make a BFD cleanup.
4035
4036 2012-07-23 Tom Tromey <tromey@redhat.com>
4037
4038 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4039 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4040 * corelow.c (core_open): Use gdb_bfd_fopen.
4041 * dsrec.c (load_srec): Use gdb_bfd_openr.
4042 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4043 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4044 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4045 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4046 (gdb_bfd_fdopenr): New functions.
4047 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4048 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4049 (gdb_bfd_fdopenr): Declare.
4050 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4051 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4052 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4053 gdb_bfd_openr_next_archived_file.
4054 (macho_check_dsym): Use gdb_bfd_openr.
4055 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4056 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4057 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4058 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4059 gdb_bfd_openr.
4060 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4061 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4062 gdb_bfd_openr_next_archived_file.
4063 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4064 Use gdb_bfd_openr.
4065 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4066 gdb_bfd_openr.
4067 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4068 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4069 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4070 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4071 (symfile_bfd_open): Use gdb_bfd_fopen.
4072 (generic_load): Use gdb_bfd_openr.
4073 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4074
4075 2012-07-23 Tom Tromey <tromey@redhat.com>
4076
4077 * bfd-target.c (target_bfd_reopen): Update.
4078 * cli/cli-dump.c (bfd_openr_with_cleanup)
4079 (bfd_openw_with_cleanup): Update.
4080 * corelow.c (core_open): Update.
4081 * dsrec.c (load_srec): Update.
4082 * exec.c (exec_file_attach): Update.
4083 * gcore.c (create_gcore_bfd): Update.
4084 * gdb_bfd.c (gdb_bfd_ref): Return void.
4085 (gdb_bfd_open): Update.
4086 * gdb_bfd.h (gdb_bfd_ref): Return void.
4087 Update comments.
4088 * jit.c (jit_bfd_try_read_symtab): Update.
4089 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4090 * machoread.c (macho_symfile_read_all_oso): Update.
4091 (macho_check_dsym): Update.
4092 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4093 * remote-m32r-sdi.c (m32r_load): Update.
4094 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4095 * rs6000-nat.c (add_vmap): Update.
4096 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4097 Update.
4098 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4099 * solib-spu.c (spu_bfd_open): Update.
4100 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4101 * spu-linux-nat.c (spu_bfd_open): Update.
4102 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4103 (generic_load): Update.
4104 * windows-nat.c (windows_make_so): Update.
4105
4106 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4107
4108 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4109
4110 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4111
4112 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4113 SIGTRAMP_FRAME unwinding.
4114
4115 2012-07-20 Doug Evans <dje@google.com>
4116
4117 * NEWS: Document new options "set/show use-deprecated-index-sections",
4118 and delete reference to --use-deprecated-index-sections.
4119 * symfile.h (use_deprecated_index_sections): Delete.
4120 * dwarf2read.c (use_deprecated_index_sections): Make static.
4121 (read_index_from_section): Update wording of how to load
4122 deprecated index sections.
4123 (_initialize_dwarf2_read): New options
4124 "set/show use-deprecated-index-sections".
4125 * main.c (captured_main): Delete --use-deprecated-index-sections.
4126
4127 2012-07-20 Pedro Alves <palves@redhat.com>
4128
4129 PR threads/11692
4130 PR gdb/12203
4131
4132 * infrun.c (handle_inferior_event) <new thread>: Don't special
4133 case minus_one_ptid.
4134 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4135 * linux-thread-db.c (thread_get_info_callback): Don't return early
4136 if the thread is zombie.
4137 (thread_from_lwp): Change return type to void. Rewrite stale
4138 comment.
4139 (attach_thread): Don't return early if the thread is zombie,
4140 instead set its "dying" flag.
4141 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4142 (find_new_threads_callback): Don't return early if the thread is
4143 zombie.
4144
4145 2012-07-20 Pedro Alves <palves@redhat.com>
4146
4147 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4148 * target.c (target_wait): Likewise.
4149 (str_comma_list_concat_elem, do_option, target_options_to_string):
4150 New functions.
4151 * target.h (target_options_to_string): Declare.
4152
4153 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4154 Tom Tromey <tromey@redhat.com>
4155
4156 * dwarf2read.c (dwarf_decode_macros)
4157 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4158 DW_MACRO_GNU_transparent_include_alt>: New cases.
4159 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4160 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4161
4162 2012-07-20 Tom Tromey <tromey@redhat.com>
4163
4164 * dwarf2read.c (try_open_dwo_file): Don't call
4165 gdb_bfd_stash_filename.
4166
4167 2012-07-20 Pedro Alves <palves@redhat.com>
4168
4169 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4170 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4171 (i386_process_record): Tweak description comments.
4172
4173 2012-07-20 Pedro Alves <palves@redhat.com>
4174
4175 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4176 (i386_process_record): Use record_read_memory.
4177 * record.c (record_read_memory): New function.
4178 (record_arch_list_add_mem, record_exec_insn): Use
4179 record_read_memory.
4180 * record.h (record_read_memory): Declare.
4181
4182 2012-07-20 Yao Qi <yao@codesourcery.com>
4183
4184 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4185 NULL for xfree.
4186
4187 2012-07-19 Pedro Alves <palves@redhat.com>
4188
4189 * record.c (record_resume): Ask the target beneath to report all
4190 signals.
4191
4192 2012-07-19 Doug Evans <dje@google.com>
4193
4194 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4195 there's no section at address zero.
4196 (dwarf2_record_block_ranges): Ditto.
4197
4198 2012-07-19 Yao Qi <yao@codesourcery.com>
4199
4200 * command.h, remote.c: Fix a typo in comment.
4201
4202 2012-07-19 Tom Tromey <tromey@redhat.com>
4203
4204 PR exp/13206:
4205 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4206 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4207 OP_DECLTYPE>: New cases.
4208 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4209 (type_exp): Add new productions.
4210 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4211 and decltype.
4212 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4213 New case.
4214 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4215 OP_DECLTYPE>: New case.
4216 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4217 New case.
4218 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4219 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4220
4221 2012-07-19 Tom Tromey <tromey@redhat.com>
4222
4223 * c-exp.y (enum token_flags): New.
4224 (struct token) <cxx_only>: Remove.
4225 <flags>: New field.
4226 (tokentab3, tokentab2, ident_tokens): Update.
4227 (lex_one_token): Update. Handle FLAG_SHADOW.
4228
4229 2012-07-19 Tom Tromey <tromey@redhat.com>
4230
4231 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4232 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4233 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4234 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4235 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4236 type_exp production where appropriate.
4237 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4238 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4239 <UNOP_MEMVAL_TYPE>: New case.
4240 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4241 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4242 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4243 <UNOP_MEMVAL_TYPE>: New case.
4244 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4245 UNOP_REINTERPRET_CAST>: Update.
4246 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4247 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4248 UNOP_REINTERPRET_CAST>: Update.
4249 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4250 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4251 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4252 constants.
4253
4254 2012-07-19 Yao Qi <yao@codesourcery.com>
4255 Jan Kratochvil <jan.kratochvil@redhat.com>
4256
4257 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4258 and case 'var_optional_filename' together.
4259 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4260 instead of add_setshow_optional_filename_cmd for setshow command
4261 'args'. Set completer for 'set args'.
4262
4263 2012-07-18 Doug Evans <dje@google.com>
4264
4265 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4266 * common/gdb_vecs.c: New file, contents from utils.c.
4267 * common/host-defs.h: New file, contents from defs.h.
4268 * utils.h: New file, contents from defs.h.
4269 * defs.h: Move all declarations of objects defined in utils.c
4270 to utils.h (except QUIT() and related).
4271 #include "utils.h", "host-defs.h".
4272 * probe.h (probe_p): Move here from gdb_vecs.h.
4273 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4274 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4275 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4276 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4277 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4278 (COMMON_OBS): Add gdb_vecs.o.
4279 (gdb_vecs.o): New rule.
4280
4281 2012-07-18 Keith Seitz <keiths@redhat.com>
4282
4283 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4284 parameter. If non-zero, use SYMNAME as the canonical name
4285 for the SaL.
4286 Update all callers.
4287 (convert_linespec_to_sals): Use add_sal_to_sals for
4288 expressions, too.
4289 (decode_line_full): No need to "fill in missing canonical names"
4290 anymore. Simply make cleanups for the allocated names.
4291
4292 2012-07-18 Keith Seitz <keiths@redhat.com>
4293
4294 * linespec.c (struct linespec): Constify expression,
4295 source_filename, function_name, and label_name.
4296 (symbol_not_found_error): Make all parameters const.
4297 (linespec_parser_delete): No need to check for NULL
4298 when using xfree. Cast const char * to char * for xfree.
4299
4300 2012-07-18 Keith Seitz <keiths@redhat.com>
4301
4302 * breakpoint.c (invalid_thread_id_error): New function.
4303 (find_condition_and_thread): Use invalid_thread_id_error.
4304 (watch_command_1): Likewise.
4305
4306 2012-07-18 Tom Tromey <tromey@redhat.com>
4307
4308 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4309 * contrib/cc-with-tweaks.sh: New file.
4310
4311 2012-07-18 Tom Tromey <tromey@redhat.com>
4312
4313 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4314 (locate_dwz_sections): Recognize .gdb_index.
4315 (create_cus_from_index_list): New function.
4316 (create_cus_from_index): Use it. Handle .dwz data.
4317 (read_index_from_section): New function, extracted from
4318 dwarf2_read_index.
4319 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4320 if needed.
4321
4322 2012-07-18 Tom Tromey <tromey@redhat.com>
4323
4324 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4325 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4326 <is_dwz>: New field.
4327 (struct dwz_file): New.
4328 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4329 (locate_dwz_sections, dwarf2_get_dwz_file)
4330 (get_abbrev_section_for_cu): New functions.
4331 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4332 (read_and_check_type_unit_head): Add abbrev_section argument.
4333 (create_debug_types_hash_table): Update.
4334 (init_cutu_and_read_dies): Use proper abbrev section.
4335 (init_cutu_and_read_dies_no_follow): Likewise.
4336 (set_partial_user): Do nothing if PST==NULL.
4337 (read_comp_units_from_section): New function.
4338 (create_all_comp_units): Use it.
4339 (scan_partial_symbols, partial_die_parent_scope): Update.
4340 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4341 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4342 (find_partial_die): Add offset_in_dwz argument. Update.
4343 (guess_partial_die_structure_name, fixup_partial_die): Update.
4344 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4345 DW_FORM_GNU_strp_alt.
4346 (read_indirect_string_from_dwz): New function.
4347 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4348 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4349 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4350 (follow_die_offset): Add offset_in_dwz argument.
4351 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4352 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4353 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4354 Handle new macro forms.
4355 (dwarf_decode_macros): Update.
4356 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4357 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4358 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4359 (create_debug_types_hash_table): Use correct abbrev section.
4360 (get_debug_line_section): New function.
4361 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4362 (process_full_comp_unit): Pass 'required' argument to
4363 end_symtab_get_static_block.
4364 * buildsym.h (end_symtab_get_static_block): Update.
4365 * buildsym.c (end_symtab_get_static_block): Add 'required'
4366 argument.
4367 (end_symtab, end_expandable_symtab): Update.
4368
4369 2012-07-18 Tom Tromey <tromey@redhat.com>
4370
4371 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4372 (pagesize): Remove.
4373 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4374 (zlib_decompress_section): Remove.
4375 (dwarf2_read_section): Use gdb_bfd_map_section.
4376 (munmap_section_buffer): Remove.
4377 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4378 munmap_section_buffer.
4379 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4380 (struct gdb_bfd_section_data): New.
4381 (free_one_bfd_section): New function.
4382 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4383 (get_section_descriptor, zlib_decompress_section)
4384 (gdb_bfd_map_section): New functions.
4385 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4386
4387 2012-07-18 Tom Tromey <tromey@redhat.com>
4388
4389 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4390
4391 2012-07-18 Tom Tromey <tromey@redhat.com>
4392
4393 * gdb_bfd.c (struct gdb_bfd_data): New.
4394 (gdb_bfd_cache): New global.
4395 (struct gdb_bfd_cache_search): New.
4396 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4397 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4398 * gdb_bfd.h (gdb_bfd_open): Declare.
4399
4400 2012-07-18 Tom Tromey <tromey@redhat.com>
4401
4402 * utils.c (make_cleanup_bfd_unref): Rename from
4403 make_cleanup_bfd_close.
4404 * defs.h (make_cleanup_bfd_unref): Rename from
4405 make_cleanup_bfd_close.
4406 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4407 (bfd_openw_with_cleanup): Update.
4408 * corelow.c (core_open): Update.
4409 * dsrec.c (load_srec): Update.
4410 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4411 * remote-m32r-sdi.c (m32r_load): Update.
4412 * remote-mips.c (mips_load_srec): Update.
4413 (pmon_load_fast): Update.
4414 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4415 Update.
4416 (darwin_bfd_open): Update.
4417 * solib.c (solib_bfd_fopen): Update.
4418 * symfile-mem.c (symbol_file_add_from_memory): Update.
4419 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4420 (symfile_bfd_open): Update.
4421 (generic_load): Update.
4422
4423 2012-07-18 Tom Tromey <tromey@redhat.com>
4424
4425 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4426 (pmon_load_fast): Likewise.
4427 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4428 (m32r_upload_command): Likewise.
4429 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4430 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4431 Use make_cleanup_bfd_close.
4432
4433 2012-07-18 Tom Tromey <tromey@redhat.com>
4434
4435 * symfile.c (symfile_bfd_open): Don't copy name. Call
4436 gdb_bfd_stash_filename.
4437 (load_command): Open the new BFD before freeing the old.
4438 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4439 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4440 Call gdb_bfd_stash_filename.
4441 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4442 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4443 gdb_bfd_stash_filename.
4444 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4445 Free found_pathname.
4446 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4447 gdb_bfd_stash_filename.
4448 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4449 * machoread.c (macho_add_oso_symfile): Call
4450 gdb_bfd_stash_filename.
4451 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4452 gdb_bfd_stash_filename.
4453 (macho_check_dsym): Don't copy filename. Call
4454 gdb_bfd_stash_filename.
4455 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4456 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4457 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4458 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4459 * exec.c (exec_close): Don't free the BFD's filename.
4460 (exec_file_attach): Don't copy the filename. Call
4461 gdb_bfd_stash_filename.
4462 * corelow.c (core_close): Don't free the BFD's filename.
4463 (core_open): Call gdb_bfd_stash_filename.
4464 * corefile.c (reopen_exec_file): Remove #if 0 code.
4465 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4466 pathname.
4467 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4468
4469 2012-07-18 Tom Tromey <tromey@redhat.com>
4470
4471 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4472 gdb_bfd_unref.
4473 (free_dwo_file): Use gdb_bfd_unref.
4474 * cli/cli-dump.c: Include gdb_bfd.h.
4475 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4476 (bfd_openr_with_cleanup): Likewise.
4477 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4478 gdb_bfd_unref.
4479 * utils.c: Include gdb_bfd.h.
4480 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4481 * symfile.c: Include gdb_bfd.h.
4482 (separate_debug_file_exists): Use gdb_bfd_unref.
4483 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4484 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4485 (generic_load): Use gdb_bfd_ref.
4486 (reread_symbols): Use gdb_bfd_unref.
4487 * symfile-mem.c: Include gdb_bfd.h.
4488 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4489 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4490 * solib.c: Include gdb_bfd.h.
4491 (solib_bfd_fopen): Use gdb_bfd_ref.
4492 (solib_bfd_open): Use gdb_bfd_unref.
4493 (free_so_symbols): Use gdb_bfd_unref.
4494 (reload_shared_libraries_1): Use gdb_bfd_unref.
4495 * solib-spu.c: Include gdb_bfd.h.
4496 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4497 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4498 gdb_bfd_unref.
4499 * solib-frv.c: Include gdb_bfd.h.
4500 (enable_break2): Use gdb_bfd_unref.
4501 * solib-dsbt.c: Include gdb_bfd.h.
4502 (enable_break2): Use gdb_bfd_unref.
4503 * solib-darwin.c: Include gdb_bfd.h.
4504 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4505 gdb_bfd_unref.
4506 (darwin_bfd_open): Use gdb_bfd_unref.
4507 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4508 * remote-mips.c: Include gdb_bfd.h.
4509 (mips_load_srec): Use gdb_bfd_ref.
4510 (pmon_load_fast): Use gdb_bfd_ref.
4511 * remote-m32r-sdi.c: Include gdb_bfd.h.
4512 (m32r_load): Use gdb_bfd_ref.
4513 * record.c: Include gdb_bfd.h.
4514 (record_save_cleanups): Use gdb_bfd_unref.
4515 (cmd_record_save): Use gdb_bfd_unref.
4516 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4517 gdb_bfd_unref.
4518 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4519 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4520 * objfiles.c: Include gdb_bfd.h.
4521 (free_objfile): Use gdb_bfd_unref.
4522 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4523 gdb_bfd.c.
4524 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4525 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4526 (macho_check_dsym): Likewise.
4527 * m32r-rom.c: Include gdb_bfd.h.
4528 (m32r_load): Use gdb_bfd_ref.
4529 (m32r_upload_command): Use gdb_bfd_ref.
4530 * jit.c: Include gdb_bfd.h.
4531 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4532 * gdb_bfd.h: New file.
4533 * gdb_bfd.c: New file.
4534 * gcore.c: Include gdb_bfd.h.
4535 (create_gcore_bfd): Use gdb_bfd_ref.
4536 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4537 (gcore_command): Use gdb_bfd_unref.
4538 * exec.c: Include gdb_bfd.h.
4539 (exec_close): Use gdb_bfd_unref.
4540 (exec_close_1): Use gdb_bfd_unref.
4541 (exec_file_attach): Use gdb_bfd_ref.
4542 * elfread.c: Include gdb_bfd.h.
4543 (build_id_verify): Use gdb_bfd_unref.
4544 * dsrec.c: Include gdb_bfd.h.
4545 (load_srec): Use gdb_bfd_ref.
4546 * corelow.c: Include gdb_bfd.h.
4547 (core_close): Use gdb_bfd_unref.
4548 (core_open): Use gdb_bfd_ref.
4549 * bfd-target.c: Include gdb_bfd.h.
4550 (target_bfd_xclose): Use gdb_bfd_unref.
4551 (target_bfd_reopen): Use gdb_bfd_ref.
4552 * Makefile.in (SFILES): Add gdb_bfd.c.
4553 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4554 (COMMON_OBS): Add gdb_bfd.o.
4555
4556 2012-07-18 Keith Seitz <keiths@redhat.com>
4557
4558 * breakpoint.c (find_condition_and_thread): Initialize
4559 TASK and REST.
4560 (create_breakpiont): find_condition_and_thread will now
4561 initialize COND_STRING, THREAD, and REST (and TASK).
4562 (addr_string_to_sals): Likewise.
4563
4564 2012-07-18 Pedro Alves <palves@redhat.com>
4565
4566 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4567 Pull the single step breakpoints out of the target.
4568
4569 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4570
4571 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4572 * stap-probe.c (compile_probe_arg): Likewise.
4573
4574 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4575
4576 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4577 (elf_compile_to_ax): Likewise.
4578 * infrun.c (insert_exception_resume_from_probe): Likewise.
4579 (check_exception_resume): Remove `objfile' variable.
4580 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4581 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4582 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4583 (compare_entries): Rename to...
4584 (compare_probes): ...this. Adjust function to work with
4585 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4586 respectively.
4587 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4588 `VEC (probe_p) *'.
4589 (print_ui_out_info): Adjust argument to be `struct probe *'.
4590 (info_probes_for_ops): Adjust internal computations to use
4591 `VEC (probe_p) *'.
4592 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4593 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4594 gen_info_probes_table_values>: Remove `objfile' argument.
4595 (struct probe) <objfile>: New field.
4596 (find_probe_by_pc): Remove `objfile' argument.
4597 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4598 (stap_get_probe_argument_count): Likewise.
4599 (stap_get_arg): Likewise.
4600 (stap_evaluate_probe_argument): Likewise.
4601 (stap_compile_to_ax): Likewise.
4602 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4603 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4604 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4605 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4606 sym_compile_to_ax>: Likewise.
4607
4608 2012-07-18 Terry Guo <terry.guo@arm.com>
4609
4610 PR 14329
4611 * defs.h (GDB_MI_MSG_WIDTH): New.
4612 * ser_base (ser_base_read_error_fd): New function.
4613 (do_ser_base_readchar): Poll error file descriptor as well as
4614 standard output.
4615 (generic_readchar): Refactor error handling.
4616
4617 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4618
4619 * NEWS: Create a new section for the next release branch.
4620 Rename the section of the current branch, now that it has
4621 been cut.
4622
4623 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4624
4625 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4626 * version.in: Bump version to 7.5.50.20120718-cvs.
4627
4628 2012-07-17 Keith Seitz <keiths@redhat.com>
4629
4630 * linespec.c (linespec_parse_line_offset): Make parameter
4631 const.
4632
4633 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4634
4635 PR 11914
4636 * f-valprint.c (info_common_command): New variable frame_id.
4637 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4638 * printcmd.c (print_variable_and_value): Extend function comment.
4639 Add comment for invalidated FRAME.
4640 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4641 FI form FRAME_ID after each print_frame_local_vars.
4642 (struct print_variable_and_value_data): Change frame to frame_id.
4643 (do_print_variable_and_value): New variable frame, initialize it from
4644 p->frame_id. Add comment for invalidated FRAME.
4645 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4646 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4647 for invalidated FRAME.
4648
4649 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4650 Pedro Alves <palves@redhat.com>
4651
4652 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4653 loop.
4654
4655 2012-07-16 Tom Tromey <tromey@redhat.com>
4656
4657 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4658
4659 2012-07-15 Doug Evans <dje@google.com>
4660
4661 * dwarf2read.c (stmt_list_hash): New struct.
4662 (type_unit_group): Embed "per_cu" member, remove pointer.
4663 New union member "t", move member "tus" into it, all uses updated.
4664 New member "hash", replaces member "line_offset, all uses updated.
4665 (quick_file_names): Replace member "offset" with "hash", all uses
4666 updated.
4667 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4668 (hash_file_name_entry, eq_file_name_entry): Call them.
4669 (hash_type_unit_group, eq_type_unit_group): Ditto.
4670 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4671 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4672 (dw2_get_file_names): Update.
4673 (create_type_unit_group): Replace "per_cu" arg with "cu".
4674 All callers updated. Fix "quick" (.gdb_index) handling.
4675 (get_type_unit_group): Replace "per_cu" arg with "cu".
4676 All callers updated.
4677 (build_type_unit_groups): Don't reset tu_stats.
4678
4679 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4680 "tab_cur_size". Change member "tab" to be a htab_t.
4681 (create_filename_seen_cache): Update.
4682 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4683 (filename_seen): Update.
4684
4685 2012-07-13 Doug Evans <dje@google.com>
4686
4687 * symtab.c (filename_seen): Update comment.
4688
4689 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4690 Doug Evans <dje@google.com>
4691
4692 * buildsym.c (end_symtab_1): Split it to ...
4693 (end_symtab_get_static_block): ... this ...
4694 (end_symtab_from_static_block): ... and this function.
4695 (end_symtab, end_expandable_symtab): Call them.
4696 * buildsym.h (end_symtab_get_static_block)
4697 (end_symtab_from_static_block): New declarations.
4698 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4699 Set its valid CU ranges.
4700
4701 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4702
4703 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4704 DW_OP_GNU_parameter_ref.
4705
4706 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4707
4708 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4709 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4710
4711 2012-07-13 Doug Evans <dje@google.com>
4712
4713 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4714 (filename_seen_cache): New struct.
4715 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4716 (create_filename_seen_cache): New function.
4717 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4718 (filename_seen): Delete arg "first". New arg "cache". All callers
4719 updated.
4720 (output_source_filename_data): New struct.
4721 (output_source_filename): Delete arg "first". New arg "data".
4722 All callers updated.
4723 (sources_info): Delete local "first". New locals "data", "cleanups".
4724 Rewrite to use filename_seen_cache.
4725 (add_partial_filename_data): Delete member "first". New member
4726 "filename_seen_cache". All uses updated.
4727 (make_source_files_completion_list): Rewrite to use
4728 filename_seen_cache.
4729
4730 2012-07-12 Doug Evans <dje@google.com>
4731
4732 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4733
4734 2012-07-10 Doug Evans <dje@google.com>
4735
4736 PR gdb/13498
4737 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4738 all_type_unit_groups, type_unit_groups, tu_stats.
4739 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4740 All uses updated. Add type_unit_group to union "s".
4741 (type_unit_group): New struct.
4742 (IS_TYPE_UNIT_GROUP): New macro.
4743 (abbrev_table): Delete unused member "section".
4744 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4745 (dw2_get_cu): Assert not used with type_unit_group.
4746 (dw2_get_primary_cu): New function.
4747 (dw2_build_type_unit_groups_reader): New function.
4748 (dw2_build_type_unit_groups): New function.
4749 (dw2_get_file_names): Assert not called on type units.
4750 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4751 Redo loop to iterate over type unit groups instead of type units.
4752 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4753 (read_abbrev_offset): New function.
4754 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4755 updated.
4756 (create_partial_symtab): New function.
4757 (process_psymtab_comp_unit_reader): Assert not used with type units.
4758 Call create_partial_symtab.
4759 (process_psymtab_type_unit): Delete.
4760 (hash_type_unit_group, eq_type_unit_group): New functions.
4761 (allocate_type_unit_groups_table): New function.
4762 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4763 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4764 (create_type_unit_group, get_type_unit_group): New functions.
4765 (tu_abbrev_offset): New struct.
4766 (sort_tu_by_abbrev_offset): New function.
4767 (add_type_unit_group_to_table): New function.
4768 (build_type_unit_groups): New function.
4769 (build_type_psymtabs_reader): New function.
4770 (build_type_psymtab_dependencies): New function.
4771 (build_type_psymtabs): Rewrite.
4772 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4773 is seen in a type unit.
4774 (process_queue): Move symtab expansion debugging printfs here.
4775 Call process_full_type_unit for type units.
4776 (compute_symtab_includes): Assert not called for type units.
4777 (process_cu_includes): Don't call compute_symtab_includes for
4778 type units.
4779 (process_full_type_unit): New function.
4780 (process_imported_unit_die): Flag an error if called for type units.
4781 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4782 updated. Assert not called for type units.
4783 (read_file_scope): Call dwarf2_start_symtab.
4784 (setup_type_unit_groups): New function.
4785 (read_type_unit_scope): Rewrite.
4786 (abbrev_table_read_table): Initialize abbrev_table->offset.
4787 (abbrev_table_free_cleanup): New function.
4788 (dwarf2_start_symtab): New function.
4789 (load_full_type_unit): Assert not called for type unit groups.
4790 * buildsym.c (finish_block_internal): New arg "expandable".
4791 All callers updated.
4792 (start_symtab): Move most contents to ...
4793 (restart_symtab): ... here. New function.
4794 (reset_symtab_globals): New function.
4795 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4796 Call reset_symtab_globals.
4797 (end_symtab, end_expandable_symtab): New functions.
4798 (set_missing_symtab, augment_type_symtab): New functions.
4799 * buildsym.h (end_expandable_symtab): Declare.
4800 (augment_type_symtab, restart_symtab): Declare.
4801 * psympriv.h (struct partial_symtab): New member "anonymous".
4802 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4803 anonymous psymtabs.
4804 (read_psymtabs_with_filename): Ditto.
4805 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4806 (expand_symtabs_matching_via_partial): Ditto.
4807 (dump_psymtab): Update.
4808 * dictionary.c (dict_add_pending): New function.
4809 * dictionary.h (dict_add_pending): Declare.
4810
4811 2012-07-09 Doug Evans <dje@google.com>
4812
4813 * buildsym.c (start_subfile): Remove unnecessary check for
4814 name == NULL.
4815
4816 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4817
4818 * dwarf2read.c (load_full_type_unit): Simplify.
4819
4820 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4821 to struct signatured_type **. All uses updated.
4822
4823 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4824 All callers updated.
4825
4826 2012-07-09 Tom Tromey <tromey@redhat.com>
4827
4828 * c-exp.y (check_parameter_typelist): New function.
4829 (parameter_typelist): Call it.
4830 * eval.c (make_params): Handle '(void)' case.
4831 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4832 '(void)' case.
4833
4834 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4835
4836 * common/linux-ptrace.c: Include gdb_assert.h.
4837 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4838 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4839 stdint.h.
4840 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4841 functions.
4842 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4843 * linux-nat.c (linux_child_post_attach)
4844 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4845
4846 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4847
4848 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4849 nptl <2.7 bug workaround for core files.
4850
4851 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4852
4853 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4854 clearing.
4855 (save_siginfo): Remove.
4856 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4857 call.
4858 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4859 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4860 * linux-nat.h (struct lwp_info): Remove field siginfo.
4861
4862 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4863
4864 Code cleanup for the next patch.
4865 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4866 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4867 call for it.
4868 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4869 (ia64_linux_stopped_data_address):
4870 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4871 the return value.
4872 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4873 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4874 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4875 call for it.
4876
4877 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4878
4879 PR 14321
4880 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4881 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4882
4883 2012-07-06 Tom Tromey <tromey@redhat.com>
4884
4885 * c-exp.y (DOTDOTDOT): New token.
4886 (func_mod, exp): Use parameter_typelist.
4887 (parameter_typelist): New production.
4888 (tokentab3): Add "..." token.
4889 * eval.c (make_params): Handle varargs.
4890 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4891 varargs.
4892
4893 2012-07-06 Tom Tromey <tromey@redhat.com>
4894
4895 PR exp/9608:
4896 * c-exp.y (%union) <tvec>: Change type.
4897 (func_mod): Now uses <tvec> type.
4898 (exp): Update for tvec change.
4899 (direct_abs_decl): Push the typelist.
4900 (func_mod): Return a typelist.
4901 (nonempty_typelist): Update for tvec change.
4902 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4903 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4904 * parse.c (pop_type_list): New function.
4905 (push_typelist): New function.
4906 (follow_types): Handle tp_function_with_arguments.
4907 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4908 (enum type_pieces) <tp_function_with_arguments>: New constant.
4909 (union type_stack_elt) <typelist_val>: New field.
4910 (push_typelist): Declare.
4911
4912 2012-07-06 Tom Tromey <tromey@redhat.com>
4913
4914 * c-exp.y (%union) <type_stack>: New field.
4915 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4916 (ptr_operator_ts): New production.
4917 (ptype): Update.
4918 * parse.c (type_stack_reserve): New function.
4919 (check_type_stack_depth): Use it.
4920 (pop_type_stack, append_type_stack, push_type_stack)
4921 (get_type_stack, type_stack_cleanup): New functions.
4922 (follow_types): Handle tp_type_stack.
4923 (_initialize_parse): Simplify initialization.
4924 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4925 constant.
4926 (union type_stack_elt) <stack_val>: New field.
4927 (get_type_stack, append_type_stack, push_type_stack)
4928 (type_stack_cleanup): Declare.
4929
4930 2012-07-06 Tom Tromey <tromey@redhat.com>
4931
4932 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4933 Remove.
4934 (struct type_stack): New.
4935 * parse.c (type_stack, type_stack_size, type_stack_depth):
4936 Remove.
4937 (type_stack): New global.
4938 (parse_exp_in_context, check_type_stack_depth)
4939 (insert_into_type_stack, insert_type, push_type, push_type_int)
4940 (insert_type_address_space, pop_type, pop_type_int)
4941 (_initialize_parse): Update.
4942
4943 2012-07-06 Tom Tromey <tromey@redhat.com>
4944
4945 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4946 Remove %type.
4947
4948 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4949
4950 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4951
4952 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4953 Jan Kratochvil <jan.kratochvil@redhat.com>
4954
4955 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4956 alloca with xmalloc/xfree.
4957
4958 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4959
4960 * MAINTAINERS (Write After Approval): Add myself to the list.
4961
4962 2012-07-05 Doug Evans <dje@google.com>
4963
4964 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4965
4966 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4967
4968 * ax-gdb.c (cli/cli-utils.h): New include.
4969 (linespec.h): Ditto.
4970 (agent_eval_command_one): New function.
4971 (agent_command_1): Ditto.
4972 (agent_command): Call function agent_command_1.
4973 (agent_eval_command): Ditto.
4974 (_initialize_ax_gdb): Change help for "maint agent"
4975 and "maint agent-eval".
4976
4977 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4978
4979 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4980 * cli/cli-utils.c (check_for_argument): New function.
4981 * cli/cli-utils.h (check_for_argument): Ditto.
4982
4983 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4984
4985 * NEWS: Mention x32 ABI support.
4986
4987 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4988
4989 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4990 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4991
4992 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4993 and pc_regnum_from_eax to -1. Update SP regnum from
4994 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4995 needed.
4996
4997 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4998 pc_regnum_from_eax.
4999
5000 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5001
5002 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5003 * dwarf2expr.h: Include gdbtypes.h.
5004 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5005 these forward declarations.
5006 (cu_offset, sect_offset): Move these ...
5007 * gdbtypes.h: Remove include dwarf2expr.h.
5008 (cu_offset, sect_offset): ... here.
5009
5010 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5011
5012 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5013 (amd64_linux_sigtramp_code): This.
5014 (amd64_x32_linux_sigtramp_code): New.
5015 (LINUX_SIGTRAMP_LEN): Updated.
5016 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5017
5018 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5019
5020 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5021
5022 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5023
5024 * config.in: Regenerate.
5025 * configure: Regenerate.
5026 * configure.ac: Remove check for gnu/libc-version.h.
5027 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5028 gnu/libc-version.h.
5029 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5030 variables libc_version, libc_major and libc_minor. Replace sscanf by
5031 inferior_has_bug. Extend the comment.
5032
5033 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5034
5035 * linux-thread-db.c (inferior_has_bug): New function.
5036 (thread_db_find_new_threads_silently): Return boolean as checked by
5037 inferior_has_bug, describe it in the comments.
5038 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5039 earlier. Abort the initialization if it returned non-zero.
5040 (thread_db_new_objfile): Exclude debug files.
5041 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5042 if UNTIL_NO_NEW,
5043
5044 2012-07-02 Doug Evans <dje@google.com>
5045
5046 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5047 related to queue management.
5048
5049 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5050 instead of "debug dwarf2-die" in debugging printfs.
5051 (create_debug_info_hash_table_reader): Ditto.
5052 (create_debug_info_hash_table): Ditto.
5053 (init_dwo_file): Ditto.
5054 (init_cutu_and_read_dies): Add debugging printf.
5055 (init_cutu_and_read_dies_no_follow): Ditto.
5056 (process_psymtab_comp_unit_reader): Ditto.
5057
5058 2012-07-02 Stan Shebs <stan@codesourcery.com>
5059
5060 Add target-side support for dynamic printf.
5061 * NEWS: Mention the additional style.
5062 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5063 (struct bp_location): New field cmd_bytecode.
5064 * breakpoint.c: Include format.h.
5065 (disconnected_dprintf): New global.
5066 (parse_cmd_to_aexpr): New function.
5067 (build_target_command_list): New function.
5068 (insert_bp_location): Call it.
5069 (remove_breakpoints_pid): Skip dprintf breakpoints.
5070 (print_one_breakpoint_location): Ditto.
5071 (dprintf_style_agent): New global.
5072 (dprintf_style_enums): Add dprintf_style_agent.
5073 (update_dprintf_command_list): Add agent case.
5074 (agent_printf_command): New function.
5075 (_initialize_breakpoint): Add new commands.
5076 * common/ax.def (printf): New bytecode.
5077 * ax.h (ax_string): Declare.
5078 * ax-gdb.h (gen_printf): Declare.
5079 * ax-gdb.c: Include cli-utils.h, format.h.
5080 (gen_printf): New function.
5081 (maint_agent_print_command): New function.
5082 (_initialize_ax_gdb): Add maint agent-printf command.
5083 * ax-general.c (ax_string): New function.
5084 (ax_print): Add printf disassembly.
5085 * Makefile.in (SFILES): Add format.c
5086 (COMMON_OBS): Add format.o.
5087 * common/format.h: New file.
5088 * common/format.c: New file.
5089 * printcmd.c: Include format.h.
5090 (ui_printf): Call parse_format_string.
5091 * remote.c (remote_state): New field breakpoint_commands.
5092 (PACKET_BreakpointCommands): New enum.
5093 (remote_breakpoint_commands_feature): New function.
5094 (remote_protocol_features): Add new BreakpointCommands entry.
5095 (remote_can_run_breakpoint_commands): New function.
5096 (remote_add_target_side_commands): New function.
5097 (remote_insert_breakpoint): Call it.
5098 (remote_insert_hw_breakpoint): Ditto.
5099 (_initialize_remote): Add new packet configuration for
5100 target-side breakpoint commands.
5101 * target.h (struct target_ops): New field
5102 to_can_run_breakpoint_commands.
5103 (target_can_run_breakpoint_commands): New macro.
5104 * target.c (update_current_target): Handle
5105 to_can_run_breakpoint_commands.
5106
5107 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5108
5109 Execute -ix and -iex only after system and user gdbinit files.
5110 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5111 processing down after gdbinit files.
5112
5113 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5114
5115 Add fnmatch-gnu module.
5116 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5117 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5118 * gnulib/aclocal.m4: Regenerate.
5119 * gnulib/config.in: Regenerate.
5120 * gnulib/configure: Regenerate.
5121 * gnulib/import/dummy.c: Remove.
5122 * gnulib/import/Makefile.am: Regenerate.
5123 * gnulib/import/Makefile.in: Likewise.
5124 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5125 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5126 * gnulib/import/alloca.c: New file.
5127 * gnulib/import/alloca.in.h: Likewise.
5128 * gnulib/import/config.charset: Likewise.
5129 * gnulib/import/fnmatch.c: Likewise.
5130 * gnulib/import/fnmatch.in.h: Likewise.
5131 * gnulib/import/fnmatch_loop.c: Likewise.
5132 * gnulib/import/localcharset.c: Likewise.
5133 * gnulib/import/localcharset.h: Likewise.
5134 * gnulib/import/m4/alloca.m4: Likewise.
5135 * gnulib/import/m4/codeset.m4: Likewise.
5136 * gnulib/import/m4/configmake.m4: Likewise.
5137 * gnulib/import/m4/fcntl-o.m4: Likewise.
5138 * gnulib/import/m4/fnmatch.m4: Likewise.
5139 * gnulib/import/m4/glibc21.m4: Likewise.
5140 * gnulib/import/m4/localcharset.m4: Likewise.
5141 * gnulib/import/m4/locale-fr.m4: Likewise.
5142 * gnulib/import/m4/locale-ja.m4: Likewise.
5143 * gnulib/import/m4/locale-zh.m4: Likewise.
5144 * gnulib/import/m4/mbrtowc.m4: Likewise.
5145 * gnulib/import/m4/mbsinit.m4: Likewise.
5146 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5147 * gnulib/import/m4/mbstate_t.m4: Likewise.
5148 * gnulib/import/m4/stdbool.m4: Likewise.
5149 * gnulib/import/m4/wchar_h.m4: Likewise.
5150 * gnulib/import/m4/wctype_h.m4: Likewise.
5151 * gnulib/import/m4/wint_t.m4: Likewise.
5152 * gnulib/import/mbrtowc.c: Likewise.
5153 * gnulib/import/mbsinit.c: Likewise.
5154 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5155 * gnulib/import/mbsrtowcs-state.c: Likewise.
5156 * gnulib/import/mbsrtowcs.c: Likewise.
5157 * gnulib/import/ref-add.sin: Likewise.
5158 * gnulib/import/ref-del.sin: Likewise.
5159 * gnulib/import/stdbool.in.h: Likewise.
5160 * gnulib/import/streq.h: Likewise.
5161 * gnulib/import/strnlen1.c: Likewise.
5162 * gnulib/import/strnlen1.h: Likewise.
5163 * gnulib/import/verify.h: Likewise.
5164 * gnulib/import/wchar.in.h: Likewise.
5165 * gnulib/import/wctype.in.h: Likewise.
5166
5167 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5168
5169 Support shell wildcards for 'set auto-load safe-path'.
5170 * auto-load.c: Include fnmatch.h.
5171 (filename_is_in_dir): Rename to ...
5172 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5173 it. Update function comment. Rename dir_len to pattern_len. New
5174 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5175 messages. Use gdb_filename_fnmatch.
5176 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5177 pattern.
5178 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5179 * defs.h (gdb_filename_fnmatch): New declaration.
5180 * utils.c: Include fnmatch.h.
5181 (gdb_filename_fnmatch): New function.
5182
5183 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5184
5185 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5186 `-probe' and `-probe-stap' options.
5187
5188 2012-07-01 Yao Qi <yao@codesourcery.com>
5189
5190 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5191 always_inserted_off, and always_inserted_enums.
5192 Change always_inserted_mode's type to 'enum auto_boolean'.
5193 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5194 callers.
5195 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5196 of add_setshow_enum_cmd.
5197 * infrun.c: Remove can_use_displaced_stepping_auto,
5198 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5199 can_use_displaced_stepping_enum.
5200 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5201 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5202 callers.
5203 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5204 add_setshow_enum_cmd.
5205
5206 2012-06-30 Doug Evans <dje@google.com>
5207
5208 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5209 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5210 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5211
5212 2012-06-29 Doug Evans <dje@google.com>
5213
5214 * linespec.c: #include "stack.h".
5215 (decode_line_with_current_source): Moved here from symtab.c and
5216 renamed from decode_line_spec. All callers updated.
5217 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5218 renamed from decode_line_spec_1. All callers updated.
5219 * linespec.h (decode_line_with_current_source): Move declaration here
5220 from symtab.h and renamed from decode_line_spec.
5221 (decode_line_with_last_displayed): Move declaration here from symtab.h
5222 and renamed from decode_line_spec_1.
5223 * macrocmd.c: #include "linespec.h".
5224 * symtab.c: Remove #include "linespec.h".
5225
5226 2012-06-28 Doug Evans <dje@google.com>
5227
5228 * dwarf2read.c (get_cu_length): New function.
5229 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5230 (create_debug_types_hash_table): Ditto.
5231 (init_cutu_and_read_dies): Ditto.
5232 (init_cutu_and_read_dies_no_follow): Ditto.
5233
5234 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5235
5236 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5237 (struct abbrev_table): Define.
5238 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5239 abbrev_table.
5240 (init_cutu_and_read_dies): Update.
5241 (abbrev_table_alloc_abbrev): New function. Replaces
5242 dwarf_alloc_abbrev. All callers updated.
5243 (abbrev_table_add_abbrev): New function.
5244 (abbrev_table_lookup_abbrev): New function. Replaces
5245 dwarf2_lookup_abbrev. All callers updated.
5246 (abbrev_table_read_table): New function. Contents moved here from
5247 dwarf2_read_abbrevs.
5248 (dwarf2_read_abbrevs): Call it.
5249 (abbrev_table_free): New function.
5250 (dwarf2_free_abbrev_table): Call it.
5251
5252 2012-06-28 Stan Shebs <stan@codesourcery.com>
5253
5254 * osdata.c (info_osdata_command): Filter out "Title" columns
5255 from non-MI uses.
5256 * common/linux-osdata.c (struct osdata_type): Add title field.
5257 (osdata_table): Add titles to each entry.
5258 (linux_command_xfer_osdata): Add a column for title data.
5259
5260 2012-06-28 Stan Shebs <stan@codesourcery.com>
5261
5262 Make logging work for MI.
5263 * NEWS: Mention it.
5264 * interps.h (interp_set_logging_ftype): New typedef.
5265 (struct interp_procs): New field set_logging_proc.
5266 (current_interp_set_logging): Declare.
5267 * interps.c (current_interp_set_logging): New function.
5268 * cli/cli-logging.c: Include interps.h.
5269 (set_logging_redirect): Call current_interp_set_logging.
5270 (pop_output_files): Ditto.
5271 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5272 * mi/mi-console.h (mi_console_set_raw): Declare.
5273 * mi/mi-console.c (mi_console_set_raw): New function.
5274 * mi/mi-interp.c (saved_raw_stdout): New global.
5275 (mi_set_logging): New function.
5276 (_initialize_mi_interp): Add it to interp procs.
5277
5278 2012-06-28 Doug Evans <dje@google.com>
5279
5280 * symtab.c (lookup_symbol_aux_objfile): Use
5281 ALL_OBJFILE_PRIMARY_SYMTABS.
5282
5283 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5284
5285 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5286
5287 * common/buffer.c: Include inttypes.h and stdint.h.
5288 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5289
5290 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5291 Pedro Alves <palves@redhat.com>
5292
5293 * gdbthread.h (ALL_THREADS): New macro.
5294 (thread_list): Declare.
5295 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5296 going, but instead fall through to the stepping handling.
5297 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5298 the passed in signal. Adjust debug output.
5299 (resume_callback): Rename to ...
5300 (linux_nat_resume_callback): ... this. Pass the thread's last
5301 stop signal, if in "pass" state.
5302 (linux_nat_resume): Adjust to rename.
5303 (stop_wait_callback): New assertion. Don't respawn signals;
5304 instead let the LWP remain with SIGNALLED set.
5305 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5306 * remote.c (append_pending_thread_resumptions): New.
5307 (remote_vcont_resume): Call it.
5308 * target.h (target_resume): Extend comment.
5309
5310 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5311
5312 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5313
5314 2012-06-27 Doug Evans <dje@google.com>
5315
5316 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5317 Delete have_addr_base, unused. All uses updated.
5318 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5319 (dwarf2_get_pc_bounds): Add ranges_base.
5320 (dwarf2_record_block_ranges): Ditto.
5321
5322 2012-06-27 Tom Tromey <tromey@redhat.com>
5323
5324 PR macros/7961:
5325 * varobj.c (varobj_create): Update.
5326 (varobj_set_value): Update.
5327 * tracepoint.c (validate_actionline): Update.
5328 (encode_actions_1): Update.
5329 * parse.c (parse_exp_1): Add 'pc' argument.
5330 (parse_exp_in_context): Add 'pc' argument. Change how
5331 expression_context_pc is set.
5332 (parse_expression): Update.
5333 (parse_field_expression): Update.
5334 * expression.h (parse_exp_1): Update.
5335 * eval.c (parse_to_comma_and_eval): Update.
5336 * breakpoint.c (set_breakpoint_condition): Update.
5337 (update_watchpoint): Update.
5338 (init_breakpoint_sal): Update
5339 (find_condition_and_thread): Update.
5340 (watch_command_1): Update.
5341 (update_breakpoint_locations): Update.
5342 * ada-lang.c (ada_read_renaming_var_value): Update.
5343 (create_excep_cond_exprs): Update.
5344
5345 2012-06-27 Doug Evans <dje@google.com>
5346
5347 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5348 type units.
5349
5350 2012-06-26 Doug Evans <dje@google.com>
5351
5352 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5353 prototype.
5354 (error_check_comp_unit_head): New arg abbrev_section. All callers
5355 updated.
5356 (read_and_check_comp_unit_head): Ditto.
5357 (read_and_check_type_unit_head): Ditto.
5358
5359 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5360
5361 New attribute 'last' for gdb.Symtab_and_line.
5362 * NEWS (Python Scripting): Add entry about the new attribute.
5363 * python/py-symtab.c (salpy_get_last): New function which
5364 implements the get method for the 'last' attribute of
5365 gdb.Symtab_and_line.
5366 (sal_object_getset): Add entry for the 'last' attribute.
5367
5368 2012-06-26 Doug Evans <dje@google.com>
5369
5370 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5371 (dwo_sections): Add macinfo, macro.
5372 (dwarf2_locate_dwo_sections): Watch for macro sections.
5373 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5374 All callers updated. Handle DWO files.
5375
5376 * NEWS: Mention new options "set debug dwarf2-read" and
5377 "set debug symtab-create".
5378 * dwarf2read.c (dwarf2_read_debug): New static global.
5379 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5380 (process_queue): Ditto.
5381 (process_full_comp_unit): Ditto.
5382 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5383 * elfread.c (elf_symfile_read): Add debugging printf.
5384 * minsyms.c (install_minimal_symbols): Ditto.
5385 * psymtab.c (allocate_psymtab): Ditto.
5386 * symfile.c (allocate_symtab): Ditto.
5387 * symtab.c (symtab_create_debug): New global.
5388 (_initialize_symtab): Add new option "set debug symtab-create".
5389 * symtab.h (symtab_create_debug): Declare.
5390
5391 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5392 (lookup_dwo_type_unit): Ditto.
5393
5394 2012-06-26 Roland McGrath <roland@hack.frob.com>
5395 H.J. Lu <hongjiu.lu@intel.com>
5396
5397 * amd64-linux-nat.c: Include <sys/user.h>.
5398 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5399 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5400 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5401
5402 * configure.ac: Check if the fs_base and gs_base members of
5403 `struct user_regs_struct' exist.
5404 * config.in: Regenerated.
5405 * configure: Likewise.
5406
5407 2012-06-25 Michael Eager <eager@eagercon.com>
5408
5409 PR python/14291
5410 * python/python.c (gdbpy_write): Check for interrupted output.
5411
5412 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5413
5414 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5415 register as a stack alignment in ARM mode.
5416
5417 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5418
5419 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5420 * gnulib/config.in: Regenerate.
5421 * gnulib/configure: Likewise.
5422 * gnulib/import/m4/extensions.m4: Update it.
5423 * gnulib/import/m4/gnulib-common.m4: Likewise.
5424 * gnulib/import/m4/memmem.m4: Likewise.
5425 * gnulib/import/m4/mmap-anon.m4: Likewise.
5426 * gnulib/import/m4/multiarch.m4: Likewise.
5427 * gnulib/import/stdint.in.h: Likewise.
5428
5429 2012-06-24 Yao Qi <yao@codesourcery.com>
5430
5431 * corefile.c (write_memory_with_notification): New.
5432 * gdbcore.h: Declare write_memory_with_notification.
5433 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5434 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5435 * valops.c (value_assign): Likewise.
5436 * python/py-inferior.c (infpy_write_memory): Call
5437 'write_memory_with_notification'.
5438
5439 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5440
5441 * cc-with-index.sh: Use also -ex "set auto-load no".
5442
5443 2012-06-23 Doug Evans <dje@google.com>
5444
5445 PR 14125
5446 * NEWS: Document additions to .gdb_index.
5447 * dwarf2read.c: #include "gdb/gdb-index.h".
5448 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5449 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5450 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5451 (dwarf2_read_index): Recognize version 7.
5452 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5453 block_kind, domain): All callers updated.
5454 (dw2_find_symbol_file): Handle new index CU values.
5455 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5456 (add_index_entry): New args is_static, kind. All callers updated.
5457 (offset_type_compare, uniquify_cu_indices): New functions
5458 (symbol_kind): New function.
5459 (write_psymtabs_to_index): Remove duplicate CU values.
5460 (write_psymtabs_to_index): Write .gdb_index version 7.
5461
5462 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5463
5464 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5465 * configure: Regenerate.
5466
5467 2012-06-20 Yao Qi <yao@codesourcery.com>
5468
5469 * python/py-inferior.c: Update comments of infpy_read_memory
5470 and infpy_write_memory.
5471
5472 2012-06-19 Tom Tromey <tromey@redhat.com>
5473
5474 PR exp/9514:
5475 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5476 (push_type_address_space): Remove.
5477 * parse.c (insert_into_type_stack): New function.
5478 (insert_type): Likewise.
5479 (insert_type_address_space): Rename from push_type_address_space.
5480 Insert tp_space_identifier.
5481 * c-exp.y (ptr_operator): New production.
5482 (abs_decl): Use ptr_operator.
5483 (space_identifier): Call insert_type_address_space.
5484 (ptype): Don't use const_or_volatile_or_space_identifier.
5485 (const_or_volatile_noopt): Call insert_type.
5486 (conversion_type_id, conversion_declarator): New productions.
5487 (operator): Use conversion_type_id.
5488
5489 2012-06-18 Doug Evans <dje@google.com>
5490
5491 * symtab.h (minimal_symbol): New member created_by_gdb.
5492 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5493 created by gdb.
5494 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5495 (search_symbols): Call it instead of lookup_symbol.
5496 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5497
5498 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5499 Adjust address for DW_OP_GNU_addr_index.
5500 * dwarf2expr.h (dwarf_expr_context): Update comment.
5501 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5502 all callers updated. Handle TLS vars described with
5503 DW_OP_GNU_const_index.
5504 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5505 and DW_OP_GNU_const_index.
5506 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5507
5508 * block.c (find_block_in_blockvector): Make explicit the fact that we
5509 ignore GLOBAL_BLOCK.
5510
5511 2012-06-18 Tom Tromey <tromey@redhat.com>
5512
5513 * c-exp.y (operator): Remove trailing space after "delete" and
5514 "delete[]".
5515
5516 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5517 Jan Kratochvil <jan.kratochvil@redhat.com>
5518
5519 Switch i386 and derived targets to ON_STACK.
5520 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5521 (amd64_dicos_init_abi): Remove its installment.
5522 * dicos-tdep.c (dicos_init_abi): Remove the
5523 set_gdbarch_call_dummy_location call. Update the comment here.
5524 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5525 (i386_dicos_init_abi): Remove its installment.
5526 * i386-tdep.c (i386_push_dummy_code): New function.
5527 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5528 i386_push_dummy_code.
5529
5530 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5531
5532 Remove stale dummy frames.
5533 * breakpoint.c: Include dummy-frame.h.
5534 (longjmp_breakpoint_ops): New variable.
5535 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5536 bp_longjmp_call_dummy.
5537 (bpstat_what, bptype_string, print_one_breakpoint_location)
5538 (init_bp_location): Support bp_longjmp_call_dummy.
5539 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5540 (set_longjmp_breakpoint_for_call_dummy)
5541 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5542 functions.
5543 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5544 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5545 FIXME comment and extend the other comment for bp_call_dummy.
5546 (set_longjmp_breakpoint_for_call_dummy)
5547 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5548 * dummy-frame.c: Include gdbthread.h.
5549 (pop_dummy_frame_bpt): New function.
5550 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5551 (dummy_frame_discard): New function.
5552 (cleanup_dummy_frames): Update the comment about longjmps.
5553 * dummy-frame.h (dummy_frame_discard): New declaration.
5554 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5555 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5556 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5557 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5558 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5559 keep_going if IS_LONGJMP and there is no other reason to stop.
5560
5561 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5562
5563 * remote-sim.c (sim_command_completer): Initialize
5564 variable 'result'.
5565
5566 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5567
5568 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5569 * dwarf2loc.c (call_site_parameter_matches): Support
5570 CALL_SITE_PARAMETER_PARAM_OFFSET.
5571 (needs_dwarf_reg_entry_value): Push stub value.
5572 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5573 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5574 * gdbtypes.h (enum call_site_parameter_kind): New item
5575 CALL_SITE_PARAMETER_PARAM_OFFSET.
5576 (struct call_site.parameter.u): New field param_offset.
5577
5578 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5579
5580 Code cleanup: Generalize call_site.parameter key.
5581 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5582 variable dwarf_reg. New variable kind_u. Update parameters to
5583 push_dwarf_reg_entry_value.
5584 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5585 * dwarf2expr.h (enum call_site_parameter_kind)
5586 (union call_site_parameter_u): Forward declarations.
5587 (struct dwarf_expr_context_funcs): Update parameters and their
5588 description for push_dwarf_reg_entry_value.
5589 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5590 * dwarf2loc.c (call_site_parameter_matches): New function.
5591 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5592 description. Use call_site_parameter_matches.
5593 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5594 Update parameters and their description.
5595 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5596 New variable kind_u. Adjust the caller for updated parameters.
5597 (needs_dwarf_reg_entry_value): Update parameters.
5598 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5599 instead of attr. Update for the changed fields of struct
5600 call_site_parameter.
5601 * gdbtypes.h: Include dwarf2expr.h.
5602 (enum call_site_parameter_kind): New.
5603 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5604 fb_offset into new union u.
5605
5606 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5607
5608 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5609 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5610 for x32.
5611
5612 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5613
5614 * amd64-linux-nat.c (compat_x32_clock_t): New.
5615 (compat_x32_siginfo_t): Likewise.
5616 (compat_x32_siginfo_from_siginfo): Likewise.
5617 (siginfo_from_compat_x32_siginfo): Likewise.
5618 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5619 and siginfo_from_compat_x32_siginfo for x32.
5620
5621 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5622
5623 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5624
5625 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5626
5627 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5628 instead of gdbarch_ptr_bit.
5629 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5630 (amd64_supply_native_gregset): Likewise.
5631 (amd64_collect_native_gregset): Likewise.
5632 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5633 (amd64_supply_xsave): Likewise.
5634 (amd64_collect_fxsave): Likewise.
5635 (amd64_collect_xsave): Likewise.
5636
5637 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5638
5639 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5640 (amd64_linux_read_description): Check DS segment register for
5641 x32 process.
5642
5643 2012-06-15 Tom Tromey <tromey@redhat.com>
5644
5645 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5646 init_cutu_and_read_dies.
5647
5648 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5649
5650 * MAINTAINERS (Write After Approval): Add myself to the list.
5651
5652 2012-06-15 Tom Tromey <tromey@redhat.com>
5653
5654 * valops.c (value_find_oload_method_list): Now static.
5655 * value.h (value_find_oload_method_list): Don't declare.
5656
5657 2012-06-15 Tom Tromey <tromey@redhat.com>
5658
5659 * valops.c (find_overload_match): Use value_ind.
5660
5661 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5662
5663 * infrun.c (handle_inferior_event): Correct indentation.
5664
5665 2012-06-14 Doug Evans <dje@google.com>
5666
5667 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5668 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5669 All uses updated.
5670 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5671 updated. Handle DEBUG_LOC_START_LENGTH.
5672 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5673 (loclist_describe_location): Ditto.
5674
5675 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5676
5677 PR backtrace/13866
5678 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5679 after hiding inline functions.
5680
5681 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5682
5683 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5684 _initialize_inf_ttrace.
5685
5686 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5687
5688 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5689 _initialize_hppa_hpux_nat.
5690
5691 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5692
5693 * remote-sim.c (sim_command_completer): Change type of return
5694 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5695
5696 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5697 Jan Kratochvil <jan.kratochvil@redhat.com>
5698
5699 PR tdep/14222
5700 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5701 stack on a 16-byte boundary.
5702
5703 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5704
5705 * jit.c (finalize_symtab): Set function's return type to 'void' by
5706 default.
5707
5708 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5709 H.J. Lu <hongjiu.lu@intel.com>
5710
5711 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5712 Move bits common to both the classic LP64 and the new x32 ILP32
5713 ABI here.
5714 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5715 (amd64_x32_linux_init_abi): New function.
5716 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5717 subtype.
5718
5719 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5720 * i386-tdep.c (i386_pseudo_register_name): Make public.
5721 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5722 * amd64-tdep.c (amd64_dword_names): Add "eip".
5723 (amd64_x32_pseudo_register_type): New function
5724 (amd64_x32_init_abi): New function.
5725
5726 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5727
5728 PR build/14003
5729 * inferior.h (struct inferior_suspend_state): Comment out.
5730 (struct inferior): Comment out the field suspend.
5731 * infrun.c (struct infcall_suspend_state): Comment out the field
5732 inferior_suspend.
5733 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5734 out its assignment.
5735
5736 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5737
5738 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5739 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5740 function comment. Return ERROR for unresolved cases. Implement
5741 returning proper NAME.
5742 (yylex): Accept also NAME from classify_inner_name.
5743 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5744 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5745 LOC_TYPEDEF type.
5746 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5747
5748 2012-06-13 Tom Tromey <tromey@redhat.com>
5749
5750 * breakpoint.c (condition_completer): New function.
5751 (_initialize_breakpoint): Use it.
5752 * value.c (complete_internalvar): New function.
5753 * value.h (complete_internalvar): Declare.
5754
5755 2012-06-13 Tom Tromey <tromey@redhat.com>
5756
5757 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5758 * breakpoint.c (catch_syscall_completer): Return a VEC.
5759 * cli/cli-cmds.c (complete_command): Update.
5760 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5761 (complete_on_enum): Likewise.
5762 * command.h: Include gdb_vecs.h.
5763 (completer_ftype): Change return type.
5764 (complete_on_cmdlist, complete_on_enum): Likewise.
5765 * completer.c (noop_completer, filename_completer)
5766 (location_completer): Return a VEC.
5767 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5768 to a VEC.
5769 (expression_completer, complete_line_internal, complete_line)
5770 (command_completer): Return a VEC.
5771 (gdb_completion_word_break_characters, line_completion_function):
5772 Update.
5773 * completer.h: Include gdb_vecs.h.
5774 (complete_line, noop_completer, filename_completer)
5775 (expression_completer, location_completer, command_completer):
5776 Update.
5777 * f-lang.c (f_word_break_characters): Return a VEC.
5778 * interps.c (interpreter_completer): Return a VEC.
5779 * language.h (struct language_defn)
5780 <la_make_symbol_completion_list>: Return a VEC.
5781 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5782 * symtab.c (free_completion_list): Take a VEC.
5783 (return_val_size, return_val_index): Remove.
5784 (return_val): Now a VEC.
5785 (completion_list_add_name): Update.
5786 (default_make_symbol_completion_list_break_on)
5787 (default_make_symbol_completion_list, make_symbol_completion_list)
5788 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5789 Return a VEC.
5790 (add_filename_to_list): Update.
5791 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5792 <list>: Now a VEC.
5793 (maybe_add_partial_symtab_filename): Update.
5794 (make_source_files_completion_list): Return a VEC.
5795 * symtab.h (default_make_symbol_completion_list_break_on)
5796 (default_make_symbol_completion_list, make_symbol_completion_list)
5797 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5798 (make_source_files_completion_list): Update.
5799
5800 2012-06-13 Tom Tromey <tromey@redhat.com>
5801
5802 * breakpoint.c (add_catch_command): Use completer_ftype.
5803 * breakpoint.h: Include command.h.
5804 (add_catch_command): Use completer_ftype.
5805 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5806 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5807 Use completer_ftype.
5808 * command.h (completer_ftype): New typedef.
5809 (set_cmd_completer): Use it.
5810 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5811 completer_ftype.
5812
5813 2012-06-13 Pedro Alves <palves@redhat.com>
5814
5815 Partial revert of previous change.
5816
5817 * serial.c (scb_base): New global.
5818 (serial_for_fd): New.
5819 (serial_open, serial_fdopen_ops): Link new serial in open serials
5820 chain.
5821 (do_serial_close): Unlink serial from the open serials chain.
5822
5823 2012-06-12 Pedro Alves <palves@redhat.com>
5824
5825 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5826 threads here.
5827 (prepare_for_detach): No longer context switch here in non-stop
5828 mode.
5829 (fetch_inferior_event): Ditto.
5830 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5831 to the event thread before removing breakpoints. Switch to the
5832 event thread before inserting breakpoints and resuming.
5833 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5834 event thread before resuming.
5835 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5836 Switch to the event thread before removing breakpoints.
5837
5838 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5839
5840 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5841 special characters correctly for the Windows shells. See
5842 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5843 report.
5844 [!__MINGW32__]: Remove extra double quote character from special
5845 characters.
5846
5847 2012-06-11 Stan Shebs <stan@codesourcery.com>
5848
5849 * ui-out.h: Remove #if 0 declarations.
5850 * ui-out.c: Remove #if 0 functions.
5851
5852 2012-06-11 Pedro Alves <palves@redhat.com>
5853
5854 * ser-base.c (run_async_handler_and_reschedule): New.
5855 (fd_event, push_event): Use it.
5856 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5857 reference count to 1.
5858 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5859 instead of xfree.
5860 (serial_is_open, serial_ref, serial_unref): New.
5861 * serial.h (serial_open): Adjust comment.
5862 (serial_is_open): Declare.
5863 (serial_close): Adjust comment.
5864 (serial_ref, serial_unref) Declare.
5865 (struct serial): New field 'refcnt'.
5866
5867 2012-06-11 Pedro Alves <palves@redhat.com>
5868
5869 Remove #if 0'd "connect" command, and unnecessary associated
5870 refcounting and serial reuse bits.
5871
5872 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5873 * serial.c (last_serial_opened): Delete.
5874 (scb_base): Delete.
5875 (serial_open): Adjust.
5876 (serial_for_fd): Delete.
5877 (serial_fdopen_ops, do_serial_close): Adjust.
5878 (serial_fdopen_ops): Adjust.
5879
5880 2012-06-11 Pedro Alves <palves@redhat.com>
5881
5882 * serial.c (do_serial_close): Remove early return when SCB is
5883 null.
5884
5885 2012-06-11 Tom Tromey <tromey@redhat.com>
5886
5887 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5888
5889 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5890
5891 Fix regression by the "ambiguous linespec" series.
5892 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5893 get_last_displayed_symtab and get_last_displayed_line and depending
5894 on CURSAL.
5895
5896 2012-06-11 Tom Tromey <tromey@redhat.com>
5897
5898 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5899 (dw2_find_symbol_file): Use it.
5900
5901 2012-06-11 Michael Eager <eager@eagercon.com>
5902
5903 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5904 * mips-linux-tdep.h (mips_signals): New
5905
5906 2012-06-11 Tom Tromey <tromey@redhat.com>
5907
5908 * infrun.c (handle_inferior_event)
5909 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5910 breakpoint.
5911 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5912 exception logic in all cases. Update comments.
5913 (insert_longjmp_resume_breakpoint): Set the exception resume
5914 breakpoint.
5915
5916 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5917
5918 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5919
5920 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5921
5922 * valarith.c (binop_types_user_defined_p): Fix a typo.
5923
5924 2012-06-08 Yao Qi <yao@codesourcery.com>
5925 Chung-Lin Tang <cltang@codesourcery.com>
5926
5927 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5928 * arch-utils.h: Declare.
5929 * gdbarch.sh: Add return_in_first_hidden_param_p.
5930 * gdbarch.c, gdbarch.h: Regenerated.
5931 * infcall.c (call_function_by_hand): Call
5932 gdbarch_return_in_first_hidden_param_p instead of
5933 language_pass_by_reference.
5934
5935 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5936 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5937 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5938 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5939 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5940 `cplus_return_struct_by_reference'.
5941 (tic6x_return_value): Handle language cplusplus.
5942 (tic6x_return_in_first_hidden_param_p): New.
5943 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5944
5945 2012-06-07 Doug Evans <dje@google.com>
5946
5947 * dwarf2read.c (dwarf2_cu): Add comment.
5948
5949 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5950
5951 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5952 variable.
5953 (mips_eabi_push_dummy_call): Likewise.
5954 (mips_n32n64_push_dummy_call): Likewise.
5955 (mips_o32_push_dummy_call): Likewise.
5956 (mips_o64_push_dummy_call): Likewise.
5957
5958 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5959
5960 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5961
5962 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5963
5964 * mips-tdep.c (mips_pseudo_register_type): Use
5965 mips_float_register_p.
5966
5967 2012-06-06 Pedro Alves <palves@redhat.com>
5968
5969 * infrun.c (handle_inferior_event): Remove calls to
5970 reinit_frame_cache that follow a context_switch call.
5971
5972 2012-06-06 Pedro Alves <palves@redhat.com>
5973
5974 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5975 context_switch and remove stale comment.
5976
5977 2012-06-06 Pedro Alves <palves@redhat.com>
5978
5979 * infrun.c (struct execution_control_state): Remove
5980 `new_thread_event' field.
5981 (handle_inferior_event): Simplify new threads handling; don't
5982 resume the inferior if we find a new thread.
5983
5984 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5985
5986 * NEWS: Document the deprecation of SH's 'regs' command.
5987 * inferior.h (all_registers_info): Add function declaration.
5988 * sh-tdep.c (sh_show_regs): Remove variable.
5989 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5990 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5991 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5992 (sh_show_regs_command): Remove functions.
5993 (sh_gdbarch_init): Don't set sh_show_regs.
5994 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5995 'info all-registers'.
5996 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5997 (sh64_show_regs): Remove functions.
5998 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5999
6000 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6001
6002 * configure.ac: Move development=true below AC_INIT.
6003 * configure: Regenerate.
6004
6005 2012-06-05 Stan Shebs <stan@codesourcery.com>
6006
6007 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6008 gdb_stdout.
6009
6010 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6011
6012 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6013 argument as ssize_t.
6014 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6015 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6016 * target.c (target_read_stack, target_write_memory)
6017 (target_write_raw_memory): Likewise.
6018 * target.h (target_read_stack, target_write_memory)
6019 (target_write_raw_memory): Likewise.
6020
6021 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6022
6023 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6024 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6025 * target.c (target_read_memory): Change LEN to ssize_t.
6026 * target.h (target_read_memory): Change LEN to ssize_t.
6027
6028 2012-06-05 Pedro Alves <palves@redhat.com>
6029
6030 PR backtrace/13866
6031
6032 * breakpoint.c (until_break_command): Only fetch the selected
6033 frame after decode_line_1.
6034
6035 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6036
6037 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6038 event breakpoint at _start, __start or main if a program
6039 interpreter is not found.
6040
6041 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6042
6043 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6044 Add declaration.
6045 * windows-tdep.c: #include "objfiles.h".
6046 (windows_iterate_over_objfiles_in_search_order): New function.
6047 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6048 iterate_over_objfiles_in_search_order gdbarch method to
6049 windows_iterate_over_objfiles_in_search_order.
6050 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6051
6052 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6053
6054 * gdbarch.sh: Add generation of
6055 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6056 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6057 (iterate_over_objfiles_in_search_order): New gdbarch method.
6058 * gdbarch.h, gdbarch.c: Regenerate.
6059 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6060 Add declaration.
6061 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6062 New function.
6063 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6064 out of lookup_symbol_aux_symtabs.
6065 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6066 call to lookup_symbol_aux_objfile.
6067 (struct global_sym_lookup_data): New type.
6068 (lookup_symbol_global_iterator_cb): New function.
6069 (lookup_symbol_global): Search for symbol using
6070 gdbarch_iterate_over_objfiles_in_search_order and
6071 lookup_symbol_global_iterator_cb.
6072 * findvar.c (struct minsym_lookup_data): New type.
6073 (minsym_lookup_iterator_cb): New function.
6074 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6075 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6076 and minsym_lookup_iterator_cb.
6077
6078 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6079
6080 Revert the following patch:
6081 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6082 try locating the symbol in the symbol's own objfile first, before
6083 extending the search to all objfiles.
6084 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6085 out of lookup_symbol_aux_symtabs.
6086 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6087 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6088 Do not search EXCLUDE_OBJFILE.
6089 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6090 (lookup_symbol_global): Search for matches in the block's objfile
6091 first, before searching all other objfiles.
6092
6093 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6094
6095 * breakpoint.c (find_condition_and_thread): Stop parsing
6096 as soon as the first invalid keyword is found.
6097
6098 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6099
6100 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6101
6102 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6103
6104 * config/djgpp/djcheck.sh: Add copyright header.
6105
6106 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6107
6108 * copyright.py (update_files, main): Fix path to update-copyright
6109 script.
6110
6111 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6112
6113 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6114 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6115 for which a reminder to update by hand is printed.
6116
6117 2012-06-04 Doug Evans <dje@google.com>
6118
6119 * buildsym.c (make_blockvector): Add comment.
6120
6121 2012-06-04 Pedro Alves <palves@redhat.com>
6122
6123 * arch-utils.c (default_gdb_signal_from_target): Delete.
6124 * arch-utils.h (default_gdb_signal_from_target): Delete.
6125 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6126 gdbarch_gdb_signal_from_target_p.
6127 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6128 predicate).
6129 * gdbarch.h: Regenerate.
6130 * gdbarch.c: Regenerate.
6131
6132 2012-06-04 Pedro Alves <palves@redhat.com>
6133
6134 * gdbarch.sh (gdb_signal_from_target): Mention that the
6135 implementation of the method must be host independent.
6136 * gdbarch.h: Regenerate.
6137
6138 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6139
6140 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6141 parameters.
6142 (target_read_memory_bfd): New function.
6143 (symbol_file_add_from_memory): Use it.
6144
6145 2012-06-03 Doug Evans <dje@google.com>
6146
6147 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6148 of primary symtab.
6149 (basic_lookup_transparent_type): Ditto.
6150
6151 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6152 (ALL_PRIMARY_SYMTABS): Use it.
6153 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6154 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6155 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6156 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6157 (basic_lookup_transparent_type): Ditto.
6158
6159 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6160
6161 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6162 it to optimize resolution of demangled name.
6163
6164 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6165
6166 * configure.ac (development): Define new variable.
6167 Call AC_CHECK_LIB for mcheck if $development.
6168 (ERROR_ON_WARNING): Enable it by default only if $development.
6169 * config.in: Regenerate.
6170 * configure: Regenerate.
6171
6172 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6173
6174 * target.c (target_read_memory): Make LEN argument as size_t.
6175 * target.h (target_read_memory): Likewise.
6176
6177 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6178
6179 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6180
6181 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6182
6183 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6184 BookE interface for PowerPC server processors if not available
6185 in the Linux Kernel.
6186
6187 2012-05-31 Keith Seitz <keiths@redhat.com>
6188
6189 * linespec.c (decode_objc): Add cleanup to free
6190 INFO.FILE_SYMTABS.
6191 (find_linespec_symbols): Add cleanup to free CLASSES.
6192 * symfile.c (find_separate_debug_file_by_debuglink): Add
6193 cleanup to free DEBUGLINK.
6194 * ui-out.c (clear_header_list): No need to check if
6195 HEADER_NEXT.COLHDR is NULL.
6196 Free HEADER_NEXT.COL_NAME.
6197
6198 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6199
6200 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6201 warning.
6202
6203 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6204
6205 * configure.host (gdb_host_cpu): Handle tilegx*.
6206 (gdb_host): Handle tilegx-*-linux*.
6207 * tilegx-linux-nat.c: New file.
6208 * config/tilegx/linux.mh: New file.
6209
6210 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6211
6212 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6213 tilegx-linux-tdep.o.
6214 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6215 tilegx-linux-tdep.c.
6216 * configure.tgt: Handle tilegx-*-linux*.
6217 * tilegx-tdep.h: New file.
6218 * tilegx-tdep.c: New file.
6219 * tilegx-linux-tdep.c: New file.
6220 * regformats/reg-tilegx.dat: New file.
6221
6222 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6223
6224 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6225 accounting of hw watchpoints on ppc.
6226
6227 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6228
6229 * source.c (openp): Expand tilde in path entries.
6230
6231 2012-05-29 Doug Evans <dje@google.com>
6232
6233 * buildsym.c (block_compar): Fix comment.
6234 (end_symtab): Fix and clarify some comments.
6235
6236 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6237 cleanup_undefined_types.
6238 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6239 All callers updated.
6240
6241 2012-05-29 Tom Tromey <tromey@redhat.com>
6242
6243 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6244 fails.
6245 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6246 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6247 fails.
6248 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6249 fails.
6250
6251 2012-05-29 Tristan Gingold <gingold@adacore.com>
6252
6253 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6254 (struct darwin_info): ... New struct.
6255 (solib_darwin_pspace_data): New variable.
6256 (darwin_pspace_data_cleanup): New function.
6257 (get_darwin_info): Likewise.
6258 (darwin_dyld_version_ok, darwin_load_image_infos)
6259 (darwin_solib_get_all_image_info_addr_at_init)
6260 (darwin_solib_read_all_image_info_addr): Add info argument.
6261 Adjust code.
6262 (darwin_current_sos): Use per pspace structure.
6263 (darwin_solib_create_inferior_hook): Likewise.
6264 (darwin_clear_solib): Likewise.
6265 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6266
6267 2012-05-28 Pedro Alves <palves@redhat.com>
6268
6269 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6270 block that uses them. Clear ecss before handling each event.
6271
6272 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6273
6274 * solib-svr4.c (svr4_current_sos): New comment on
6275 svr4_current_sos_via_xfer_libraries fall back.
6276
6277 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6278
6279 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6280 it as a fallback for TYPE_IS_OPAQUE.
6281 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6282 symbols for lookup_symbol.
6283
6284 2012-05-24 John Steele Scott <toojays@toojays.net>
6285
6286 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6287 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6288 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6289 (check_producer): ... this new function, which also checks for ICC
6290 and caches the result.
6291 (producer_is_icc): New function.
6292 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6293 producer was ICC.
6294
6295 2012-05-24 Pedro Alves <palves@redhat.com>
6296
6297 PR gdb/7205
6298
6299 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6300 (default_gdb_signal_to_target): ... this. Add comment.
6301 (default_gdb_signal_from_host): Rename to ...
6302 (default_gdb_signal_from_target): ... this. Add comment.
6303 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6304 (default_gdb_signal_to_target): ... this.
6305 (default_gdb_signal_from_host): Rename to ...
6306 (default_gdb_signal_from_target): ... this.
6307 * corelow.c (core_open): Adjust to naming change. Replace comment.
6308 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6309 (gdb_signal_from_target): ... this. Adjust to
6310 default_gdb_signal_from_host naming change. Extend comment.
6311 (gdb_signal_to_host): Rename to ...
6312 (gdb_signal_to_target): ... this. Adjust to
6313 default_gdb_signal_to_host naming change.
6314 * gdbarch.h, gdbarch.c: Renegerate.
6315
6316 2012-05-24 Pedro Alves <palves@redhat.com>
6317
6318 PR gdb/7205
6319
6320 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6321
6322 2012-05-24 Pedro Alves <palves@redhat.com>
6323
6324 PR gdb/7205
6325
6326 Replace target_signal with gdb_signal throughout.
6327
6328 2012-05-24 Pedro Alves <palves@redhat.com>
6329
6330 PR tui/14159
6331
6332 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6333 string, instead of reusing the va_list argument.
6334
6335 2012-05-24 Tom Tromey <tromey@redhat.com>
6336
6337 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6338 Remove.
6339
6340 2012-05-23 Doug Evans <dje@google.com>
6341
6342 * symtab.c (search_symbols): Formatting fixes.
6343 (print_symbol_info): Formatting fixes.
6344
6345 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6346 int64_t change to leb128 API.
6347 (read_encoded_value, decode_frame_entry_1): Ditto.
6348 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6349 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6350 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6351 (execute_stack_op): Ditto.
6352 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6353 (safe_read_uleb128, safe_read_sleb128): Ditto.
6354 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6355 (dwarf2_compile_expr_to_ax): Ditto.
6356 (locexpr_describe_location_piece): Ditto.
6357 (disassemble_dwarf_expression): Ditto.
6358 (locexpr_describe_location_1): Ditto.
6359
6360 2012-05-23 Stan Shebs <stan@codesourcery.com>
6361 Kwok Cheung Yeung <kcy@codesourcery.com>
6362
6363 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6364 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6365 (mi-cmd-info.o): New rule.
6366 * osdata.h (info_osdata_command): New declaration.
6367 * osdata.c (info_osdata_command): Change to non-static.
6368 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6369 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6370 * mi/mi-cmd-info.c: New file.
6371
6372 2012-05-23 Doug Evans <dje@google.com>
6373
6374 * symtab.c (search_symbols): Pass NULL for file_matcher to
6375 expand_symtabs_matching if there are no files to match.
6376
6377 * gdbtypes.c (lookup_typename): Simplify.
6378
6379 2012-05-23 Pedro Alves <palves@redhat.com>
6380
6381 * arch-utils.h (default_target_signal_to_host): Delete.
6382 * arch-utils.c (default_target_signal_to_host): Delete.
6383 * gdbarch.sh (target_signal_to_host): Remove.
6384 * gdbarch.h, gdbarch.c: Regenerate.
6385
6386 2012-05-22 Doug Evans <dje@google.com>
6387
6388 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6389 "const gdb_byte *".
6390 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6391 (execute_cfa_program): Update to match API of leb128 functions.
6392 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6393 "const gdb_byte *".
6394 (read_unsigned_leb128, read_signed_leb128): Delete.
6395 (read_initial_length): Change type of buf argument to
6396 "const gdb_byte *".
6397 (read_encoded_value): Update to match API of leb128 functions.
6398 (decode_frame_entry): Change result to "const gdb_byte *", and
6399 similarly for "start" parameter.
6400 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6401 (dwarf2_build_frame_info): Change local frame_ptr to
6402 "const gdb_byte *".
6403 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6404 read_uleb128, read_sleb128. All callers updated.
6405 (safe_skip_leb128): New function.
6406 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6407 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6408 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6409 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6410 read_uleb128, read_sleb128.
6411 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6412 (execute_stack_op): Update to match API of leb128 functions.
6413 * dwarf2expr.h: #include "leb128.h".
6414 (read_uleb128, read_sleb128): Delete.
6415 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6416 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6417 * dwarf2loc.c (debug_loc_kind): New enum.
6418 (decode_debug_loc_addresses): New function.
6419 (decode_debug_loc_dwo_addresses): New function.
6420 (dwarf2_find_location_expression): Rewrite.
6421 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6422 (locexpr_describe_location_piece): Ditto.
6423 (disassemble_dwarf_expression): Ditto.
6424 (locexpr_describe_location_1): Ditto.
6425 (loclist_describe_location): Rewrite.
6426 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6427 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6428 (dwarf2_section_buffer_overflow_complaint): Renamed from
6429 dwarf2_macros_too_long_complaint. All callers updated.
6430 (skip_leb128): Delete.
6431 (init_cu_die_reader): Initialize reader->buffer_end.
6432 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6433 (skip_form_bytes): New arg buffer_end. All callers updated.
6434 Replace call to skip_leb128 with gdb_skip_leb128.
6435 (skip_unknown_opcode): New arg mac_end. All callers updated.
6436 (fill_in_loclist_baton): Initialize baton->from_dwo.
6437
6438 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6439
6440 * mips-linux-nat.c (mips_linux_read_description): Use a more
6441 verbose error message.
6442
6443 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6444
6445 * NEWS: Add MIPS/Linux DSP support.
6446 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6447 (SIGCONTEXT_DSPCTL): New macro.
6448 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6449 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6450 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6451 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6452 (N64_SIGCONTEXT_HI3): Likewise.
6453 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6454 (N64_SIGCONTEXT_LO3): Likewise.
6455 (N64_SIGCONTEXT_DSPCTL): Likewise.
6456 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6457 (mips_linux_o32_sigframe_init): Handle DSP registers.
6458 (mips_linux_n32n64_sigframe_init): Likewise.
6459
6460 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6461
6462 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6463 call to abort.
6464
6465 2012-05-22 Pedro Alves <palves@redhat.com>
6466
6467 * target.h (store_waitstatus): Move declaration ...
6468 * inf-child.h (store_waitstatus): ... here.
6469 * target.c: Move inclusion of gdb_wait.h, and ...
6470 (store_waitstatus): ... this ...
6471 * inf-child.c: ... here.
6472 * linux-nat.c: Include inf-child.h.
6473 * rs6000-nat.c: Include inf-child.h.
6474 * spu-linux-nat.c: Include inf-child.h.
6475
6476 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6477
6478 * tracepoint.c (start_tracing): Add missing i18n markup.
6479 (stop_tracing, set_trace_user): Ditto.
6480 (set_trace_notes, set_trace_stop_notes): Ditto.
6481
6482 2012-05-21 Tom Tromey <tromey@redhat.com>
6483
6484 PR c++/7173:
6485 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6486 types.
6487 * value.h (value_cast_pointers): Update.
6488 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6489 (value_cast): Update.
6490 (update_search_result): New function.
6491 (do_search_struct_field): New, from search_struct_field. Check
6492 for ambiguous results.
6493 (search_struct_field): Rewrite.
6494 * infcall.c (value_arg_coerce): Update.
6495 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6496 value_cast_pointers.
6497 * ada-lang.c (ada_convert_actual): Update.
6498
6499 2012-05-21 Tom Tromey <tromey@redhat.com>
6500
6501 * macroexp.c (macro_stringify): Terminate the string.
6502
6503 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6504
6505 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6506 Describe it.
6507 * auto-load.c (auto_load_expand_dir_vars): New function.
6508 (auto_load_safe_path_vec_update): Use it, remove the
6509 substitute_path_component call thanks to it.
6510 (auto_load_objfile_script): Remove the debug_file_directory processing.
6511 Use auto_load_expand_dir_vars, remove the substitute_path_component
6512 call thanks to it.
6513 * configure: Regenerate.
6514 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6515 path. Escape $ also for $debugdir.
6516 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6517 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6518
6519 2012-05-20 Doug Evans <dje@google.com>
6520
6521 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6522 before use. Check for symtab->includes == NULL before scanning it.
6523
6524 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6525
6526 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6527
6528 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6529
6530 * NEWS: Add microMIPS support and "set mips compression",
6531 "show mips compression" commands.
6532 * mips-tdep.h (mips_isa): New enum.
6533 (gdbarch_tdep): Add mips_isa.
6534 (mips_pc_is_mips16): Update prototype.
6535 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6536 * mips-tdep.c (mips_compression_mips16): New variable.
6537 (mips_compression_micromips): Likewise.
6538 (mips_compression_strings): Likewise.
6539 (mips_compression_string): Likewise.
6540 (is_mips16_isa, is_micromips_isa): New functions.
6541 (is_mips16_addr): Rename to...
6542 (is_compact_addr): ... this.
6543 (unmake_mips16_addr): Likewise to...
6544 (unmake_compact_addr): ... this.
6545 (make_mips16_addr): Likewise to...
6546 (make_compact_addr): ... this.
6547 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6548 functions.
6549 (mips_elf_make_msymbol_special): Handle microMIPS code.
6550 (msymbol_is_special): Rename to...
6551 (msymbol_is_mips16): ... this.
6552 (mips_make_symbol_special, mips_pc_is_mips16): Update
6553 accordingly.
6554 (msymbol_is_mips, msymbol_is_micromips): New functions.
6555 (mips16_to_32_reg): Rename to...
6556 (mips_reg3_to_reg): ... this.
6557 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6558 (mips_pc_isa): Likewise.
6559 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6560 code.
6561 (mips_fetch_instruction): Pass return status instead of printing
6562 an error message if requested. Handle microMIPS code. Bail out
6563 on an invalid ISA.
6564 (micromips_op): New macro.
6565 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6566 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6567 (b6s4_op, b7s3_reg): Likewise.
6568 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6569 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6570 (mips_insn_size): New function.
6571 (mips32_next_pc): Update mips_fetch_instruction call.
6572 (micromips_relative_offset7): New function.
6573 (micromips_relative_offset10): Likewise.
6574 (micromips_relative_offset16): Likewise.
6575 (micromips_pc_insn_size): Likewise.
6576 (micromips_bc1_pc): Likewise.
6577 (micromips_next_pc): Likewise.
6578 (unpack_mips16): Update mips_fetch_instruction call.
6579 (extended_mips16_next_pc): Update according to change to
6580 mips16_to_32_reg.
6581 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6582 code.
6583 (mips16_scan_prologue): Update mips_fetch_instruction call.
6584 Update according to change to mips16_to_32_reg.
6585 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6586 (mips_insn16_frame_base_sniffer): Likewise.
6587 (micromips_decode_imm9): New function.
6588 (micromips_scan_prologue): Likewise.
6589 (mips_micro_frame_cache): Likewise.
6590 (mips_micro_frame_this_id): Likewise.
6591 (mips_micro_frame_prev_register): Likewise.
6592 (mips_micro_frame_sniffer): Likewise.
6593 (mips_micro_frame_unwind): New variable.
6594 (mips_micro_frame_base_address): New function.
6595 (mips_micro_frame_base): New variable.
6596 (mips_micro_frame_base_sniffer): New function.
6597 (mips32_scan_prologue): Update mips_fetch_instruction call.
6598 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6599 rather than for MIPS16.
6600 (mips_insn32_frame_base_sniffer): Likewise.
6601 (mips_addr_bits_remove): Handle microMIPS code.
6602 (deal_with_atomic_sequence): Rename to...
6603 (mips_deal_with_atomic_sequence): ... this. Update the type
6604 of the variable used to hold an instruction. Remove the ISA bit
6605 check. Update mips_fetch_instruction call.
6606 (micromips_deal_with_atomic_sequence): New function.
6607 (deal_with_atomic_sequence): Likewise.
6608 (mips_about_to_return): Handle microMIPS code. Update
6609 mips_fetch_instruction call.
6610 (heuristic_proc_start): Check for the standard MIPS ISA rather
6611 than for MIPS16. Update mips_pc_is_mips16 and
6612 mips_fetch_instruction calls. Handle microMIPS code.
6613 (mips_push_dummy_code): Handle microMIPS code.
6614 (mips_eabi_push_dummy_call): Likewise.
6615 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6616 (mips_o64_push_dummy_call): Handle microMIPS code.
6617 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6618 (is_delayed): Remove function.
6619 (mips_single_step_through_delay): Replace the call to is_delayed
6620 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6621 Handle microMIPS code.
6622 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6623 microMIPS code.
6624 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6625 call.
6626 (micromips_in_function_epilogue_p): New function.
6627 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6628 call.
6629 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6630 Handle microMIPS.
6631 (gdb_print_insn_mips): Likewise.
6632 (mips_breakpoint_from_pc): Likewise.
6633 (mips_remote_breakpoint_from_pc): New function.
6634 (mips32_instruction_has_delay_slot): Simplify making use of the
6635 updated mips_fetch_instruction interface.
6636 (micromips_instruction_has_delay_slot): New function.
6637 (mips16_instruction_has_delay_slot): Simplify making use of the
6638 updated mips_fetch_instruction interface.
6639 (mips_adjust_breakpoint_address): Check for the standard MIPS
6640 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6641 calls. Handle microMIPS code.
6642 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6643 (mips_skip_trampoline_code): Handle microMIPS code.
6644 (global_mips_compression): New function.
6645 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6646 file flags. Register the microMIPS remote breakpoint handler
6647 and heuristic frame unwinder.
6648 (show_mips_compression): New function.
6649 (_initialize_mips_tdep): Add the "set mips compression" and
6650 "show mips compression" commands.
6651
6652 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6653
6654 * ada-lang.c:
6655 * ada-tasks.c:
6656 * ada-varobj.c:
6657 * amd64-darwin-tdep.c:
6658 * arm-symbian-tdep.c:
6659 * arm-tdep.c:
6660 * avr-tdep.c:
6661 * ax-gdb.c:
6662 * bfin-linux-tdep.c:
6663 * breakpoint.c:
6664 * c-valprint.c:
6665 * cli/cli-cmds.c:
6666 * coffread.c:
6667 * cp-support.c:
6668 * cris-tdep.c:
6669 * dwarf2-frame-tailcall.c:
6670 * dwarf2-frame.c:
6671 * dwarf2expr.c:
6672 * dwarf2loc.c:
6673 * dwarf2read.c:
6674 * elfread.c:
6675 * eval.c:
6676 * expprint.c:
6677 * f-valprint.c:
6678 * frv-tdep.c:
6679 * h8300-tdep.c:
6680 * hppa-hpux-tdep.c:
6681 * hppa-tdep.c:
6682 * hppanbsd-tdep.c:
6683 * i386-nto-tdep.c:
6684 * i386-tdep.c:
6685 * i387-tdep.c:
6686 * ia64-tdep.c:
6687 * jit.c:
6688 * linespec.c:
6689 * linux-tdep.c:
6690 * lm32-tdep.c:
6691 * m2-valprint.c:
6692 * m32c-tdep.c:
6693 * m32r-rom.c:
6694 * m32r-tdep.c:
6695 * m68k-tdep.c:
6696 * m68klinux-tdep.c:
6697 * mi/mi-main.c:
6698 * microblaze-tdep.c:
6699 * mips-linux-tdep.c:
6700 * mips-tdep.c:
6701 * mn10300-tdep.c:
6702 * p-valprint.c:
6703 * parse.c:
6704 * ppc-linux-tdep.c:
6705 * ppc-sysv-tdep.c:
6706 * printcmd.c:
6707 * python/py-finishbreakpoint.c:
6708 * python/py-inferior.c:
6709 * python/py-infthread.c:
6710 * python/py-type.c:
6711 * python/python.c:
6712 * remote-fileio.c:
6713 * remote-m32r-sdi.c:
6714 * remote-mips.c:
6715 * reverse.c:
6716 * rl78-tdep.c:
6717 * rs6000-aix-tdep.c:
6718 * rs6000-tdep.c:
6719 * s390-tdep.c:
6720 * score-tdep.c:
6721 * sh64-tdep.c:
6722 * skip.c:
6723 * solib-darwin.c:
6724 * solib-dsbt.c:
6725 * solib-frv.c:
6726 * sparc-tdep.c:
6727 * spu-multiarch.c:
6728 * spu-tdep.c:
6729 * stack.c:
6730 * symfile.c:
6731 * symtab.c:
6732 * tic6x-tdep.c:
6733 * tracepoint.c:
6734 * v850-tdep.c:
6735 * valarith.c:
6736 * valprint.c:
6737 * value.c:
6738 * xcoffread.c:
6739 * xtensa-tdep.c:
6740 * ada-lang.c:
6741 * ada-tasks.c:
6742 * ada-varobj.c:
6743 * amd64-darwin-tdep.c:
6744 * arm-symbian-tdep.c:
6745 * arm-tdep.c: Delete unused variables.
6746
6747 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6748
6749 Rename $ddir to $datadir.
6750 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6751 * auto-load.c (auto_load_safe_path_vec_update)
6752 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6753 * configure: Regenerate.
6754 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6755 Likewise. Remove the 'use $ddir' help string.
6756
6757 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6758
6759 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6760 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6761
6762 2012-05-18 Tom Tromey <tromey@redhat.com>
6763
6764 PR exp/13907:
6765 * valprint.h (struct value_print_options) <symbol_print>: New
6766 field.
6767 * valprint.c (user_print_options): Add default for symbol_print.
6768 (show_symbol_print): New function.
6769 (generic_val_print): Respect symbol_print.
6770 (_initialize_valprint): Add "print symbol" setting.
6771 * f-valprint.c (f_val_print): Respect symbol_print.
6772 * c-valprint.c (c_val_print): Respect symbol_print.
6773 * NEWS: Update.
6774 * printcmd.c (print_address_symbolic): Return int. Ignore some
6775 zero-size symbols.
6776 (print_address_demangle): Return int.
6777 * defs.h: (print_address_symbolic): Return int.
6778 * value.h (print_address_demangle): Return int.
6779
6780 2012-05-18 Tom Tromey <tromey@redhat.com>
6781
6782 * valprint.c (val_print_string): Don't print leading space.
6783 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6784 print space before string or vtbl.
6785 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6786 before string.
6787 * jv-valprint.c (java_value_print): Print space before string.
6788 * go-valprint.c (print_go_string): Print space before string.
6789 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6790 space before string.
6791 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6792 space before string or vtbl.
6793 * auxv.c (fprint_target_auxv): Print space after address.
6794
6795 2012-05-18 Tom Tromey <tromey@redhat.com>
6796
6797 * printcmd.c (print_address_demangle): Remove special case for 0.
6798
6799 2012-05-18 Tom Tromey <tromey@redhat.com>
6800
6801 * printcmd.c (print_address_demangle): Add 'opts' argument.
6802 * p-valprint.c (pascal_val_print): Update.
6803 * jv-valprint.c (java_val_print): Update.
6804 * value.h: Update.
6805 * valprint.c (generic_val_print): Update.
6806 (print_function_pointer_address): Add 'options' argument. Remove
6807 'addressprint' argument. Update.
6808 * m2-valprint.c (print_unpacked_pointer): Update.
6809 * gnu-v3-abi.c (print_one_vtable): Update.
6810 (gnuv3_print_method_ptr): Update.
6811 * f-valprint.c (f_val_print): Update.
6812 * cp-valprint.c (cp_print_value_fields): Update.
6813 * valprint.h (print_function_pointer_address): Update.
6814 * c-valprint.c (c_val_print): Update.
6815
6816 2012-05-18 Tom Tromey <tromey@redhat.com>
6817
6818 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6819 directly corresponding to the found psymtab.
6820 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6821 (dw2_find_pc_sect_symtab): Use it.
6822 * block.h (blockvector_contains_pc): Declare.
6823 * block.c (find_block_in_blockvector): New function.
6824 (blockvector_for_pc_sect): Use it.
6825 (blockvector_contains_pc): New function.
6826
6827 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6828
6829 * mips-tdep.h (mips_write_pc): New prototype.
6830 * mips-tdep.c (mips_write_pc): Make external, add description.
6831 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6832 add description.
6833
6834 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6835
6836 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6837 mips_regnum->pc.
6838 (mips_unwind_pc, mips_write_pc): Likewise.
6839 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6840 gdbarch_read_pc.
6841
6842 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6843
6844 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6845 proc_warn, proc_error, proc_get_status, proc_flags,
6846 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6847 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6848 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6849 proc_stop_process, proc_wait_for_stop, proc_run_process,
6850 proc_set_traced_signals, proc_set_traced_faults,
6851 proc_set_traced_sysentry, proc_set_traced_sysexit,
6852 proc_set_held_signals, proc_get_held_signals,
6853 proc_get_traced_signals, proc_get_traced_faults,
6854 proc_get_traced_sysentry, proc_get_traced_sysexit,
6855 proc_clear_current_fault, proc_set_current_signal,
6856 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6857 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6858 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6859 proc_get_current_thread, proc_get_current_thread,
6860 proc_get_current_thread, proc_update_threads,
6861 proc_update_threads, proc_update_threads, proc_update_threads,
6862 proc_iterate_over_threads, procfs_find_new_threads,
6863 procfs_pid_to_str): Make static. Remove advance declaration.
6864 (proc_cursig): Make static. Conditionalized defintion on
6865 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6866 (proc_syscall, proc_set_kill_on_last_close,
6867 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6868 proc_get_pending_signals, proc_get_signal_actions,
6869 proc_trace_signal, proc_ignore_signal): Delete.
6870
6871 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6872
6873 * coffread.c (cs_section_address): Passing proper argument for
6874 `bfd_get_section_vma'.
6875 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6876 `bfd_get_section_flags'.
6877 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6878 `bfd_get_section_vma'.
6879
6880 2012-05-16 Tom Tromey <tromey@redhat.com>
6881
6882 PR macros/13205:
6883 * macrotab.h: (macro_define_special): Declare.
6884 (enum macro_special_kind): New.
6885 (struct macro_definition) <argc, replacement>: Update comments.
6886 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6887 (macro_define_object_internal): New function.
6888 (macro_define_object): Use it.
6889 (macro_define_special): New function.
6890 (fixup_definition): New function.
6891 (macro_lookup_definition, foreach_macro_in_scope)
6892 (foreach_macro): Use fixup_definition.
6893 * macroexp.h (macro_stringify): Declare.
6894 * macroexp.c (free_buffer_return_text): New function.
6895 (stringify): Constify "arg".
6896 (macro_stringify): New function.
6897 * dwarf2read.c (macro_start_file): Call macro_define_special.
6898
6899 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6900 Maciej W. Rozycki <macro@mips.com>
6901
6902 * breakpoint.h (bp_location): Add related_address member.
6903 * inferior.h (get_return_value): Take a pointer to struct value
6904 instead of struct type for the function requested.
6905 * value.h (using_struct_return): Likewise.
6906 * gdbarch.sh (return_value): Take a pointer to struct value
6907 instead of struct type for the function requested.
6908 * breakpoint.c (set_breakpoint_location_function): Initialize
6909 related_address for bp_gnu_ifunc_resolver breakpoints.
6910 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6911 requested function's address to gdbarch_return_value.
6912 * eval.c (evaluate_subexp_standard): Pass the requested
6913 function's address to using_struct_return.
6914 * infcall.c (call_function_by_hand): Pass the requested
6915 function's address to using_struct_return and
6916 gdbarch_return_value.
6917 * infcmd.c (get_return_value): Take a pointer to struct value
6918 instead of struct type for the function requested.
6919 (print_return_value): Update accordingly.
6920 (finish_command_continuation): Likewise.
6921 * stack.c (return_command): Pass the requested function's
6922 address to using_struct_return and gdbarch_return_value.
6923 * value.c (using_struct_return): Take a pointer to struct value
6924 instead of struct type for the function requested. Pass the
6925 requested function's address to gdbarch_return_value.
6926 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6927 New function_value member, replacing function_type.
6928 (bpfinishpy_dealloc): Update accordingly.
6929 (bpfinishpy_pre_stop_hook): Likewise.
6930 (bpfinishpy_init): Likewise. Record the requested function's
6931 address.
6932 * mips-tdep.c (mips_fval_reg): New enum.
6933 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6934 words put in GP registers.
6935 (mips_o64_push_dummy_call): Update a comment.
6936 (mips_o32_return_value): Take a pointer to struct value instead
6937 of struct type for the function requested and use it to check if
6938 using the MIPS16 calling convention. Return the designated
6939 general purpose registers for floating-point values returned in
6940 MIPS16 mode.
6941 (mips_o64_return_value): Likewise.
6942 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6943 (ppc_sysv_abi_broken_return_value): Likewise.
6944 (ppc64_sysv_abi_return_value): Likewise.
6945 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6946 value instead of struct type for the function requested.
6947 * amd64-tdep.c (amd64_return_value): Likewise.
6948 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6949 * arm-tdep.c (arm_return_value): Likewise.
6950 * avr-tdep.c (avr_return_value): Likewise.
6951 * bfin-tdep.c (bfin_return_value): Likewise.
6952 * cris-tdep.c (cris_return_value): Likewise.
6953 * frv-tdep.c (frv_return_value): Likewise.
6954 * h8300-tdep.c (h8300_return_value): Likewise.
6955 (h8300h_return_value): Likewise.
6956 * hppa-tdep.c (hppa32_return_value): Likewise.
6957 (hppa64_return_value): Likewise.
6958 * i386-tdep.c (i386_return_value): Likewise.
6959 * ia64-tdep.c (ia64_return_value): Likewise.
6960 * iq2000-tdep.c (iq2000_return_value): Likewise.
6961 * lm32-tdep.c (lm32_return_value): Likewise.
6962 * m32c-tdep.c (m32c_return_value): Likewise.
6963 * m32r-tdep.c (m32r_return_value): Likewise.
6964 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6965 * m68k-tdep.c (m68k_return_value): Likewise.
6966 (m68k_svr4_return_value): Likewise.
6967 * m88k-tdep.c (m88k_return_value): Likewise.
6968 * mep-tdep.c (mep_return_value): Likewise.
6969 * microblaze-tdep.c (microblaze_return_value): Likewise.
6970 * mn10300-tdep.c (mn10300_return_value): Likewise.
6971 * moxie-tdep.c (moxie_return_value): Likewise.
6972 * mt-tdep.c (mt_return_value): Likewise.
6973 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6974 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6975 (ppc_sysv_abi_broken_return_value): Likewise.
6976 (ppc64_sysv_abi_return_value): Likewise.
6977 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6978 * rl78-tdep.c (rl78_return_value): Likewise.
6979 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6980 * rx-tdep.c (rx_return_value): Likewise.
6981 * s390-tdep.c (s390_return_value): Likewise.
6982 * score-tdep.c (score_return_value): Likewise.
6983 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6984 (sh_return_value_fpu): Likewise.
6985 * sh64-tdep.c (sh64_return_value): Likewise.
6986 * sparc-tdep.c (sparc32_return_value): Likewise.
6987 * sparc64-tdep.c (sparc64_return_value): Likewise.
6988 * spu-tdep.c (spu_return_value): Likewise.
6989 * tic6x-tdep.c (tic6x_return_value): Likewise.
6990 * v850-tdep.c (v850_return_value): Likewise.
6991 * vax-tdep.c (vax_return_value): Likewise.
6992 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6993 * xtensa-tdep.c (xtensa_return_value): Likewise.
6994 * gdbarch.c: Regenerate.
6995 * gdbarch.h: Regenerate.
6996
6997 2012-05-15 Tom Tromey <tromey@redhat.com>
6998
6999 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7000
7001 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7002
7003 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7004 of command in two error message.
7005
7006 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7007
7008 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7009
7010 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7011
7012 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7013
7014 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7015
7016 * NEWS (show auto-load scripts-directory): Add forgotten command.
7017
7018 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7019
7020 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7021 parameters.
7022
7023 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7024
7025 * amd64-tdep.c: Include features/i386/x32.c and
7026 features/i386/x32-avx.c.
7027 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7028 initialize_tdesc_x32_avx.
7029
7030 2012-05-14 Stan Shebs <stan@codesourcery.com>
7031
7032 Add dynamic printf.
7033 * breakpoint.h (enum bptype): New type bp_dprintf.
7034 (struct breakpoint): New field extra_string.
7035 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7036 (create_breakpoint): Add extra_string arg.
7037 * breakpoint.c (dprintf_breakpoint_ops): New.
7038 (is_breakpoint): Add bp_dprintf.
7039 (bpstat_what): Add dprintf case.
7040 (bptype_string): Ditto.
7041 (print_one_breakpoint_location): Ditto.
7042 (init_bp_location): Ditto.
7043 (bkpt_print_mention): Ditto.
7044 (dprintf_style_enums): New array.
7045 (dprintf_style): New global.
7046 (dprintf_function): New global.
7047 (dprintf_channel): New global.
7048 (update_dprintf_command_list): New function.
7049 (update_dprintf_commands): New function.
7050 (init_breakpoint_sal): Add extra_string argument, handle it.
7051 (create_breakpoint_sal): Add extra_string argument.
7052 (create_breakpoints_sal): Add extra_string argument, update callers.
7053 (find_condition_and_thread): Add extra argument.
7054 (create_breakpoint): Add extra_string argument, record it.
7055 (dprintf_command): New function.
7056 (break_command_1): Add arg to create_breakpoint call.
7057 (handle_gnu_v3_exceptions): Ditto.
7058 (trace_command): Ditto.
7059 (ftrace_command): Ditto.
7060 (strace_command): Ditto.
7061 (bkpt_print_mention): Add dprintf case.
7062 (create_breakpoint_sal_default): Add extra_string argument.
7063 (_initialize_breakpoint): Add new commands.
7064 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7065 * python/py-breakpoint.c (bppy_init): Ditto.
7066 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7067
7068 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7069
7070 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7071
7072 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7073
7074 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7075 unsigned long long.
7076
7077 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7078
7079 Add a new function gdb.find_pc_line to the Python API.
7080 * NEWS (Python Scripting): Add entry about the new function.
7081 * python/python.c (gdbpy_find_pc_line): New function which
7082 implements gdb.find_pc_line.
7083 (GdbMethods): Add entry for the new function.
7084
7085 2012-05-12 Pedro Alves <palves@redhat.com>
7086
7087 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7088 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7089
7090 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7091
7092 * inferior.c: Include completer.h
7093 (initialize_inferiors): Set completer of add-inferior to
7094 filename_completer.
7095
7096 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7097
7098 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7099 gdbarch_ptr_bit for x32 core dump.
7100
7101 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7102
7103 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7104 and features/i386/x32-avx-linux.c.
7105
7106 2012-05-11 Stan Shebs <stan@codesourcery.com>
7107 Kwok Cheung Yeung <kcy@codesourcery.com>
7108
7109 * NEWS: Describe new info os commands.
7110 * common/linux-osdata.c (PID_T, TIME_T): Define.
7111 (MAX_PID_T_STRLEN): New.
7112 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7113 MAX_PID_T_STRLEN.
7114 (command_from_pid): Add comment. Change to use PID_T.
7115 (commandline_from_pid): Change to use PID_T.
7116 (user_from_pid): Add comment.
7117 (get_process_owner): Add comment. Change to use PID_T and
7118 MAX_PID_T_STRLEN.
7119 (get_number_of_cpu_cores): Add comment.
7120 (get_cores_used_by_process): Add comment. Change to use PID_T and
7121 MAX_PID_T_STRLEN.
7122 (linux_xfer_osdata_processes): Change to use PID_T and
7123 MAX_PID_T_STRLEN.
7124 (compare_processes): New function.
7125 (linux_xfer_osdata_processgroups): New function.
7126 (linux_xfer_osdata_threads): Change to use PID_T.
7127 (linux_xfer_osdata_fds): New function.
7128 (format_socket_state, print_sockets): New functions.
7129 (union socket_addr): New union.
7130 (linux_xfer_osdata_isockets): New function.
7131 (time_from_time_t, group_from_gid): New functions.
7132 (linux_xfer_osdata_shm): New function.
7133 (linux_xfer_osdata_sem): New function.
7134 (linux_xfer_osdata_msg): New function.
7135 (linux_xfer_osdata_modules): New function.
7136 (osdata_table): Add new entries.
7137 * common/buffer.c (buffer_xml_printf): Add support for long and
7138 long long format specifiers.
7139
7140 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7141
7142 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7143 (tdesc_x32_avx_linux): Likewise.
7144
7145 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7146
7147 Implement multi-component --with-auto-load-dir.
7148 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7149 entries.
7150 (--with-auto-load-safe-path): Update the default value description.
7151 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7152 New.
7153 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7154 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7155 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7156 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7157 "set auto-load scripts-directory".
7158 * config.in: Regenerate.
7159 * configure: Regenerate.
7160 * configure.ac (--with-auto-load-dir): New configure option.
7161 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7162
7163 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7164
7165 Provide $ddir substitution for --with-auto-load-safe-path.
7166 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7167 entries.
7168 * auto-load.c: Include observer.h.
7169 (auto_load_safe_path_vec_update): Call substitute_path_component for
7170 each component. New variable ddir_subst.
7171 (auto_load_gdb_datadir_changed): New function.
7172 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7173 AUTO_LOAD_SAFE_PATH. New comment.
7174 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7175 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7176 * config.in: Regenerate.
7177 * configure: Regenerate.
7178 * configure.ac (--auto-load-safe-path): Rename
7179 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7180 GDB_DATADIR/auto-load.
7181 * defs.h (substitute_path_component): New declaration.
7182 * top.c: Include observer.h.
7183 (set_gdb_datadir): New function.
7184 (init_main): Install it for "set data-directory".
7185 * utils.c (substitute_path_component): New function.
7186
7187 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7188
7189 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7190 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7191 DEBUG_FILE_DIRECTORY. Handle multiple components of
7192 DEBUG_FILE_DIRECTORY.
7193
7194 2012-05-10 Tom Tromey <tromey@redhat.com>
7195
7196 * dwarf2read.c (recursively_write_psymbols): New function.
7197 (write_psymtabs_to_index): Use it.
7198
7199 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7200 field.
7201 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7202 (load_partial_comp_unit): Update.
7203 (queue_comp_unit): Add argument 'pretend_language'.
7204 (process_queue): Update.
7205 (psymtab_to_symtab_1): Skip dependencies that have a user.
7206 (load_partial_comp_unit_reader): Give meaning to the 'data'
7207 argument.
7208 (load_full_comp_unit): Add 'pretend_language' argument.
7209 (process_full_comp_unit): Add 'pretend_language' argument. Set
7210 language on CU.
7211 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7212 Update.
7213 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7214 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7215 Update.
7216 (prepare_one_comp_unit): Add 'pretend_language' argument.
7217
7218 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7219 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7220 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7221 (dw2_do_instantiate_symtab): Check whether symtab was read in
7222 before queueing.
7223 (dw2_instantiate_symtab): Add assertion. Call
7224 process_cu_includes.
7225 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7226 (partial_symtab_p): New typedef.
7227 (set_partial_user): New function.
7228 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7229 (scan_partial_symbols): Add imported CU to imported_symtabs.
7230 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7231 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7232 (get_symtab, recursively_compute_inclusions)
7233 (compute_symtab_includes, process_cu_includes)
7234 (process_imported_unit_die): New functions.
7235 (process_die) <DW_TAG_imported_unit>: New case.
7236 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7237
7238 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7239 comment.
7240 (struct partial_die_info) <locdesc>: Remove.
7241 <d>: New field.
7242 (process_psymtab_comp_unit): Add 'read_partial' argument.
7243 Update.
7244 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7245 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7246 (add_partial_symbol): Update.
7247 (process_die): Handle DW_TAG_partial_unit.
7248 (read_file_scope): Update comment.
7249 (load_partial_dies): Handle DW_TAG_imported_unit.
7250 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7251 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7252
7253 2012-05-10 Tom Tromey <tromey@redhat.com>
7254
7255 * cc-with-dwz.sh: New file.
7256
7257 2012-05-10 Tom Tromey <tromey@redhat.com>
7258
7259 * symtab.h (struct symtab) <includes, user>: New fields.
7260 * block.h (struct block_iterator) <d, idx, which>: New fields.
7261 * block.c (initialize_block_iterator, find_iterator_symtab)
7262 (block_iterator_step, block_iter_name_step)
7263 (block_iter_match_step): New functions.
7264 (block_iterator_first, block_iterator_next)
7265 (block_iter_name_first, block_iter_name_next)
7266 (block_iter_match_first, block_iter_match_next): Rewrite.
7267 (get_block_symtab): New function.
7268
7269 2012-05-10 Tom Tromey <tromey@redhat.com>
7270
7271 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7272 set_block_symtab.
7273 * jit.c (finalize_symtab): Use allocate_global_block,
7274 set_block_symtab.
7275 * buildsym.c (finish_block_internal): New function, from old
7276 finish_block.
7277 (finish_block): Rewrite.
7278 (end_symtab): Use finish_block_internal, set_block_symtab.
7279 * block.h (struct global_block): New.
7280 (allocate_global_block, set_block_symtab): Declare.
7281 * block.c (allocate_global_block, set_block_symtab): New
7282 functions.
7283
7284 2012-05-10 Tom Tromey <tromey@redhat.com>
7285
7286 * psymtab.c (partial_map_expand_apply): Add assertion.
7287 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7288 (psymtab_to_symtab): Find unshared psymtab.
7289 (dump_psymtab): Print including psymtabs.
7290 (recursively_search_psymtabs): New function.
7291 (expand_symtabs_matching_via_partial): Use it.
7292 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7293 fields.
7294 (enum psymtab_search_status): New.
7295
7296 2012-05-10 Tom Tromey <tromey@redhat.com>
7297
7298 * tracepoint.c (scope_info): Update.
7299 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7300 (find_pc_sect_symtab, search_symbols)
7301 (default_make_symbol_completion_list_break_on)
7302 (make_file_symbol_completion_list): Update.
7303 * symmisc.c (dump_symtab_1): Update.
7304 * stack.c (print_frame_args, iterate_over_block_locals)
7305 (print_frame_labels, iterate_over_block_arg_vars): Update.
7306 * python/py-block.c (block_object) <dict>: Remove.
7307 <block>: New field.
7308 <iter>: Change type.
7309 (blpy_iter): Update.
7310 (blpy_block_syms_iternext): Update.
7311 * psymtab.c (map_block): Use block iterators.
7312 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7313 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7314 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7315 * infrun.c (check_exception_resume): Update.
7316 * cp-support.c (make_symbol_overload_list_block): Update.
7317 * coffread.c (patch_opaque_types): Update.
7318 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7319 * block.h (struct block_iterator): New.
7320 (block_iterator_first, block_iterator_next, block_iter_name_first)
7321 (block_iter_name_next, block_iter_match_first)
7322 (block_iter_match_next): Declare.
7323 (ALL_BLOCK_SYMBOLS): Redefine.
7324 * block.c (block_iterator_first, block_iterator_next)
7325 (block_iter_name_first, block_iter_name_next)
7326 (block_iter_match_first, block_iter_match_next): New functions.
7327 * ada-lang.c (ada_add_block_symbols)
7328 (ada_make_symbol_completion_list): Use block iterator.
7329
7330 2012-05-10 Tom Tromey <tromey@redhat.com>
7331
7332 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7333 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7334 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7335 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7336 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7337 Update.
7338
7339 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7340
7341 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7342 print-file-var-lib2.c, print-file-var-main.c and
7343 print-file-var.exp (located in gdb/testsuite/gdb.base).
7344
7345 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7346
7347 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7348 try locating the symbol in the symbol's own objfile first, before
7349 extending the search to all objfiles.
7350 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7351 out of lookup_symbol_aux_symtabs.
7352 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7353 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7354 Do not search EXCLUDE_OBJFILE.
7355 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7356 (lookup_symbol_global): Search for matches in the block's objfile
7357 first, before searching all other objfiles.
7358
7359 2012-05-10 Tristan Gingold <gingold@adacore.com>
7360
7361 * printcmd.c (set_command): Add pre/post inc/dec.
7362
7363 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7364
7365 * gdb.1: Document -ex option.
7366
7367 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7368
7369 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7370 * inferior.h (AT_SYMBOL): Delete.
7371
7372 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7373
7374 * mips-tdep.c (mips_push_dummy_code): New function.
7375 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7376 ON_STACK and install mips_push_dummy_code as our gdbarch
7377 push_dummy_code routine.
7378
7379 2012-05-09 Pedro Alves <palves@redhat.com>
7380
7381 * target.c (set_maintenance_target_async_permitted): Rename to ...
7382 (set_target_async_command): ... this.
7383 (show_maintenance_target_async_permitted): Rename to ...
7384 (show_target_async_command): ... this.
7385 (initialize_targets): Adjust.
7386
7387 2012-05-08 Doug Evans <dje@google.com>
7388
7389 * go-exp.y (classify_name): Add missing assignment of fields of
7390 yylval.ssym.
7391
7392 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7393
7394 Display the ">" prompt in interactive mode while reading canned
7395 commands, even when the current interpreter is MI.
7396
7397 * interps.c (interp_set_temp): New function.
7398
7399 * interps.h (interp_set_temp): Add prototype.
7400
7401 * cli/cli-script.c (restore_interp): New cleanup function.
7402 (read_command_lines): Temporarily override the current interpreter
7403 with CLI and arrange for restoring the original one.
7404
7405 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7406
7407 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7408
7409 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7410
7411 * probe.c (parse_probes): Move conditional to check for
7412 debuginfo files from here...
7413 * stap-probe.c (stap_get_probes): ... to here.
7414
7415 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7416 H.J. Lu <hongjiu.lu@intel.com>
7417
7418 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7419 `movl %esp, %ebp' for the X32 ABI.
7420
7421 2012-05-07 Tom Tromey <tromey@redhat.com>
7422
7423 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7424 get_DW_TAG_name.
7425 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7426 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7427 (dwarf_stack_op_name): Remove.
7428 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7429 (decode_locdesc): Use get_DW_OP_name.
7430 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7431 (dwarf2_compile_expr_to_ax): Likewise.
7432 (disassemble_dwarf_expression): Likewise.
7433 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7434
7435 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7436
7437 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7438 (sh_linux_sigtramp_cache): New function.
7439 (sh_linux_sigreturn_init): New function.
7440 (sh_linux_rt_sigreturn_init): New function.
7441 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7442 patterns.
7443 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7444 syscall codes.
7445 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7446 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7447 (sh_linux_init_abi): Add init calls to register new tramp_frame
7448 definitions under 32-bit SH, update comments.
7449
7450 2012-05-07 Pedro Alves <palves@redhat.com>
7451
7452 PR gdb/10952
7453
7454 * amd64-linux-tdep.c: Include glibc-tdep.h.
7455 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7456 gdbarch_skip_solib_resolver callback.
7457
7458 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7459
7460 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7461 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7462 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7463 (add_auto_load_safe_path): Change the error message.
7464 (_initialize_auto_load): Change the "safe-path" help text.
7465 * configure: Regenerate
7466 * configure.ac (--without-auto-load-safe-path): Set
7467 WITH_AUTO_LOAD_SAFE_PATH to /.
7468
7469 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7470
7471 * stap-probe.h: Do not include unecessary `probe.h'.
7472
7473 2012-05-05 Alan Modra <amodra@gmail.com>
7474
7475 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7476 bfd_und_section_ptr.
7477 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7478 and bfd_com_section_ptr.
7479
7480 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7481
7482 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7483
7484 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7485
7486 * windows-nat.h (segment_register_p_ftype): New typedef.
7487 (windows_set_segment_register_p): Add declaration.
7488 * windows-nat.c (segment_register_p): New static global.
7489 (windows_set_segment_register_p): New function.
7490 (do_windows_fetch_inferior_registers): Add special handling
7491 for segment registers.
7492 * amd64-windows-nat.c: #include "amd64-tdep.h".
7493 (amd64_windows_segment_register_p): New function.
7494 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7495 * i386-windows-nat.c: #include "i386-tdep.h".
7496 (i386_windows_segment_register_p): New function.
7497 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7498
7499 2012-05-04 Tristan Gingold <gingold@adacore.com>
7500
7501 * printcmd.c (set_command): Emit a warning if the expression is not
7502 an assignment.
7503
7504 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7505
7506 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7507 Make static.
7508
7509 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7510
7511 * stap-probe.c (stap_is_operator): Change declaration.
7512 (stap_get_opcode): Change return value.
7513 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7514 `stap_parse_argument_1'.
7515
7516 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7517
7518 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7519 debug log.
7520
7521 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7522
7523 Add two new methods global_block and static_block to gdb.Symtab
7524 objects.
7525 * NEWS (Python scripting): Add entry about the new methods.
7526 * python/py-symtab.c (stpy_global_block): New function which
7527 implements the gdb.Symtab.global_block() method.
7528 (stpy_static_block): New function which implements the
7529 gdb.Symtab.static_block() method.
7530 (symtab_object_methods): Add entries for the two new methods.
7531
7532 2012-05-03 Doug Evans <dje@google.com>
7533
7534 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7535 files.
7536
7537 2012-05-03 Yao Qi <yao@codesourcery.com>
7538
7539 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7540 space.
7541 (i386_process_record): Ditto.
7542
7543 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7544
7545 * infcall.c (unwind_on_signal_p): Make static.
7546
7547 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7548
7549 * sol-thread.c (solaris_pid_to_str): Make static.
7550 (_initialize_sol_thread): Add prototype.
7551
7552 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7553
7554 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7555
7556 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7557
7558 * MAINTAINERS: Remove myself.
7559
7560 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7561
7562 Fix --without-auto-load-safe-path for MS-Windows host platform.
7563 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7564
7565 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7566
7567 * gdb_curses.h: Undefine KEY_EVENT before including curses
7568 headers. Move "#undef MOUSE_MOVED" before any curses header
7569 inclusion.
7570
7571 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7572
7573 * features/i386/i386-mmx-linux.c: Regenerate.
7574 * features/rs6000/powerpc-32.c: Likewise.
7575 * features/rs6000/powerpc-32l.c: Likewise.
7576 * features/rs6000/powerpc-403.c: Likewise.
7577 * features/rs6000/powerpc-403gc.c: Likewise.
7578 * features/rs6000/powerpc-405.c: Likewise.
7579 * features/rs6000/powerpc-505.c: Likewise.
7580 * features/rs6000/powerpc-601.c: Likewise.
7581 * features/rs6000/powerpc-602.c: Likewise.
7582 * features/rs6000/powerpc-603.c: Likewise.
7583 * features/rs6000/powerpc-604.c: Likewise.
7584 * features/rs6000/powerpc-64.c: Likewise.
7585 * features/rs6000/powerpc-64l.c: Likewise.
7586 * features/rs6000/powerpc-750.c: Likewise.
7587 * features/rs6000/powerpc-860.c: Likewise.
7588 * features/rs6000/powerpc-e500.c: Likewise.
7589 * features/rs6000/powerpc-e500l.c: Likewise.
7590 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7591 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7592 * features/rs6000/rs6000.c: Likewise.
7593
7594 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7595
7596 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7597 variable.
7598 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7599 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7600 (stap_parse_argument) <e>: Likewise.
7601 (handle_stap_probe) <byte_order>: Likewise.
7602
7603 2012-04-30 Doug Evans <dje@google.com>
7604
7605 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7606 init_and_read_dies_worker. All callers updated.
7607 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7608 replaced with init_cutu_and_read_dies.
7609 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7610 (find_partial_die): Remove FIXME. Don't free current CU.
7611
7612 2012-04-30 Sterling Augustine <saugustine@google.com>
7613
7614 * contrib: New directory.
7615 * contrib/test_pubnames_and_indexes.py: New file.
7616
7617 2012-04-30 Doug Evans <dje@google.com>
7618
7619 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7620 All callers updated.
7621 (init_cu_die_reader): Verify the section is non-empty.
7622 (dwarf_decode_line_header): Don't dereference section->asection
7623 until we know the section is present.
7624
7625 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7626
7627 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7628 probes.
7629
7630 2012-04-29 Yao Qi <yao@codesourcery.com>
7631
7632 * gdb-code-style.el: New hook gdb-markup-hook
7633 and gdb-comment-hook.
7634
7635 2012-04-28 Doug Evans <dje@google.com>
7636
7637 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7638 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7639 objfile->obfd.
7640 * symfile.h (dwarf2_debug_sections): New member addr.
7641 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7642 (ctx_no_get_addr_index): New function.
7643 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7644 (ctx_no_get_addr_index): Declare.
7645 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7646 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7647 (dwarf_expr_ctx_funcs): Update.
7648 (needs_get_addr_index): New function.
7649 (needs_frame_ctx_funcs): Update.
7650 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7651 * dwarf2read.c: #include "gdbcore.h".
7652 (dwarf2_per_objfile): New members addr, dwo_files.
7653 (dwarf2_elf_names): Add entry for addr.
7654 (struct dwo_section_names): New type.
7655 (dwo_section_names): New static global.
7656 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7657 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7658 old debug_types_section member updated to use this.
7659 Rename member debug_types_section to info_or_types_section,
7660 all uses updated.
7661 (signatured_type): Rename member type_offset to type_offset_in_tu,
7662 all uses updated. New member type_offset_in_section.
7663 (struct dwo_sections): New type.
7664 (struct dwo_unit): New type.
7665 (struct dwo_file): New type.
7666 (die_reader_specs): New member dwo_file.
7667 (dwarf2_locate_sections): Watch for .debug_addr.
7668 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7669 (dwarf2_read_section): Get bfd of section from bfd's asection,
7670 instead of objfile.
7671 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7672 (create_signatured_type_table_from_index): Initialize
7673 sig_type->info_or_types_section.
7674 (dw2_get_file_names): Statement lists for type units with DWO files
7675 live in the DWO file.
7676 (create_debug_types_hash_table): New function.
7677 (create_all_type_units): Rewrite.
7678 (init_cu_die_reader): New arg dwo_file, all callers updated.
7679 (init_and_read_dies_worker): Get section from
7680 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7681 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7682 continue reading the CU/TU from there.
7683 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7684 updated. Get section from this_cu->info_or_types_section.
7685 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7686 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7687 DW_FORM_GNU_str_index.
7688 (hash_dwo_file, eq_dwo_file): New functions.
7689 (allocate_dwo_file_hash_table): New function.
7690 (hash_dwo_unit, eq_dwo_unit): New functions.
7691 (allocate_dwo_unit_table): New function.
7692 (dwarf2_locate_dwo_sections): New function.
7693 (struct create_dwo_info_table_data): New type.
7694 (create_debug_info_hash_table_reader): New function.
7695 (create_debug_info_hash_table): New function.
7696 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7697 (lookup_dwo_file): New function.
7698 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7699 (free_dwo_file, free_dwo_file_cleanup): New functions.
7700 (free_dwo_file_from_slot, free_dwo_files): New functions.
7701 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7702 (dwarf2_record_block_ranges): Ditto.
7703 (read_partial_die): Ditto.
7704 (process_enumeration_scope): Update to use type_offset_in_section.
7705 (read_full_die_1): New function.
7706 (read_full_die): Rewrite.
7707 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7708 DW_FORM_GNU_str_index.
7709 (read_addr_index_1, read_addr_index): New functions.
7710 (read_addr_index_from_leb128): New function.
7711 (struct dwarf2_read_addr_index_data): New type.
7712 (dwarf2_read_addr_index_reader): New function.
7713 (dwarf2_read_addr_index): New function.
7714 (read_str_index): New function.
7715 (leb128_size): New function.
7716 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7717 If processing a type unit from a DWO file, get the line section
7718 from the DWO file.
7719 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7720 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7721 DW_FORM_GNU_str_index.
7722 (lookup_die_type): Check whether section offset of type's die is
7723 known before looking it up. Remove assert. Condition can
7724 legimately happen for inter-cu type references.
7725 (dwarf_attr_name): Handle Fission attributes.
7726 (dwarf_form_name): Handle Fission forms.
7727 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7728 DW_FORM_GNU_str_index.
7729 (follow_die_sig): Update to use type_offset_in_section.
7730 (decode_locdesc): New case DW_OP_GNU_addr_index.
7731 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7732 DW_FORM_GNU_str_index.
7733 (cu_debug_loc_section): New function.
7734 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7735 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7736 Free DWO files if present.
7737 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7738
7739 Refactor DIE reading.
7740 * dwarf2read.c (dwarf2_per_objfile): Replace members
7741 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7742 (die_reader_specs): New member "die_section". Temporarily make
7743 member "buffer" non-const, pending constifying all info_ptr uses.
7744 (die_reader_func_ftype): New typedef.
7745 (dw2_get_file_names_reader): New function.
7746 (dw2_get_file_names): Rewrite.
7747 (read_and_check_type_unit_head): Rename arg type_offset to
7748 type_offset_in_tu.
7749 (create_all_type_units): Improve debugging message.
7750 Improve dummy type unit check.
7751 (init_cu_die_reader): New arg "section". All callers updated.
7752 (init_and_read_dies_worker): New function.
7753 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7754 (init_cutu_and_read_dies_no_follow): New function.
7755 (init_cutu_and_read_dies_simple): New function.
7756 (process_psymtab_comp_unit_reader): New function.
7757 (process_psymtab_comp_unit): Delete args section,
7758 is_debug_types_section. Rewrite. All callers updated.
7759 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7760 All callers updated. Rewrite.
7761 (load_partial_comp_unit_reader): New function.
7762 (load_partial_comp_unit): Rewrite.
7763 (skip_children): New arg reader. Delete args buffer, cu.
7764 All callers updated.
7765 (skip_one_die): New arg reader. Delete args buffer, cu.
7766 All callers updated.
7767 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7768 All callers updated.
7769 (load_full_comp_unit_reader): New function.
7770 (load_full_comp_unit): Rewrite.
7771 (read_comp_unit): Delete.
7772 (read_die_and_children_1): Delete, contents moved ...
7773 (read_die_and_children): ... here.
7774 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7775 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7776 All callers updated.
7777 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7778 All callers updated.
7779 (find_partial_die): Rewrite load_all_dies support.
7780 (read_attribute_value): New arg reader. Delete args abfd, cu.
7781 All callers updated.
7782 (read_attribute): New arg reader. Delete args abfd, cu.
7783 All callers updated.
7784 (load_full_type_unit): Add assert.
7785 (read_signatured_type_reader): New function.
7786 (read_signatured_type): Rewrite.
7787 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7788 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7789 All callers updated. Set per_cu->cu = NULL after freeing it.
7790 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7791 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7792 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7793 (set_die_type): Update.
7794 (get_die_type_at_offset): Update.
7795 (read_file_scope): Call prepare_one_comp_unit.
7796 (read_type_unit_scope): Ditto.
7797 (prepare_one_comp_unit): Set producer if present.
7798
7799 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7800
7801 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7802 gettext function on `error'.
7803
7804 2012-04-27 Doug Evans <dje@google.com>
7805
7806 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7807 is empty.
7808
7809 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7810 Tom Tromey <tromey@redhat.com>
7811
7812 * breakpoint.c (struct breakpoint_objfile_data)
7813 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7814 <exception_probes>: New fields.
7815 (free_breakpoint_probes): New function.
7816 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7817 `_Unwind_DebugHook'.
7818 (create_exception_master_breakpoint): Likewise.
7819 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7820 * infrun.c: Including necessary header files for handling SystemTap
7821 probes.
7822 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7823 via SystemTap probes.
7824 (check_exception_resume): Remove `func' argument. Handle exception
7825 unwinding breakpoint set via a SystemTap probe.
7826 (insert_exception_resume_from_probe): New function.
7827
7828 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7829 Tom Tromey <tromey@redhat.com>
7830 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7833 (COMMON_OBS): Likewise.
7834 (HFILES_NO_SRCDIR): Add `probe'.
7835 * NEWS: Mention support for static and SystemTap probes.
7836 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7837 SystemTap probes' arguments parser.
7838 * arm-linux-tdep.c: Including headers needed to perform the parsing
7839 of SystemTap probes' arguments.
7840 (arm_stap_is_single_operand): New function.
7841 (arm_stap_parse_special_token): Likewise.
7842 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7843 probes' arguments parser.
7844 * ax-gdb.c (require_rvalue): Removing static declaration.
7845 (gen_expr): Likewise.
7846 * ax-gdb.h (gen_expr): Declaring function.
7847 (require_rvalue): Likewise.
7848 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7849 (bkpt_probe_breakpoint_ops): New variable.
7850 (momentary_breakpoint_from_master): Set the `probe' value.
7851 (add_location_to_breakpoint): Likewise.
7852 (break_command_1): Using proper breakpoint_ops according to the
7853 argument passed by the user in the command line.
7854 (bkpt_probe_insert_location): New function.
7855 (bkpt_probe_remove_location): Likewise.
7856 (bkpt_probe_create_sals_from_address): Likewise.
7857 (bkpt_probe_decode_linespec): Likewise.
7858 (tracepoint_probe_create_sals_from_address): Likewise.
7859 (tracepoint_probe_decode_linespec): Likewise.
7860 (tracepoint_probe_breakpoint_ops): New variable.
7861 (trace_command): Using proper breakpoint_ops according to the
7862 argument passed by the user in the command line.
7863 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7864 static probes on breakpoints and tracepoints.
7865 * breakpoint.h (struct bp_location) <probe>: New field.
7866 * cli-utils.c (skip_spaces_const): New function.
7867 (extract_arg): Likewise.
7868 * cli-utils.h (skip_spaces_const): Likewise.
7869 (extract_arg): Likewise.
7870 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7871 * configure.ac: Append `stap-probe.o' to be generated when ELF
7872 support is present.
7873 * configure: Regenerate.
7874 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7875 * elfread.c: Include `probe.h' and `arch-utils.h'.
7876 (probe_key): New variable.
7877 (elf_get_probes): New function.
7878 (elf_get_probe_argument_count): Likewise.
7879 (elf_evaluate_probe_argument): Likewise.
7880 (elf_compile_to_ax): Likewise.
7881 (elf_symfile_relocate_probe): Likewise.
7882 (stap_probe_key_free): Likewise.
7883 (elf_probe_fns): New variable.
7884 (elf_sym_fns): Add `sym_probe_fns' value.
7885 (elf_sym_fns_lazy_psyms): Likewise.
7886 (elf_sym_fns_gdb_index): Likewise.
7887 (_initialize_elfread): Initialize objfile cache for static
7888 probes.
7889 * gdb_vecs.h (struct probe): New forward declaration.
7890 (probe_p): New VEC declaration.
7891 * gdbarch.c: Regenerate.
7892 * gdbarch.h: Regenerate.
7893 * gdbarch.sh (stap_integer_prefix): New variable.
7894 (stap_integer_suffix): Likewise.
7895 (stap_register_prefix): Likewise.
7896 (stap_register_suffix): Likewise.
7897 (stap_register_indirection_prefix): Likewise.
7898 (stap_register_indirection_suffix): Likewise.
7899 (stap_gdb_register_prefix): Likewise.
7900 (stap_gdb_register_suffix): Likewise.
7901 (stap_is_single_operand): New function.
7902 (stap_parse_special_token): Likewise.
7903 (struct stap_parse_info): Forward declaration.
7904 * i386-tdep.c: Including headers needed to perform the parsing
7905 of SystemTap probes' arguments.
7906 (i386_stap_is_single_operand): New function.
7907 (i386_stap_parse_special_token): Likewise.
7908 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7909 probes' arguments parser.
7910 * i386-tdep.h (i386_stap_is_single_operand): New function.
7911 (i386_stap_parse_special_token): Likewise.
7912 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7913 * mipsread.c (ecoff_sym_fns): Likewise.
7914 * objfiles.c (objfile_relocate1): Support relocation for static
7915 probes.
7916 * parse.c (prefixify_expression): Remove static declaration.
7917 (initialize_expout): Likewise.
7918 (reallocate_expout): Likewise.
7919 * parser-defs.h (initialize_expout): Declare function.
7920 (reallocate_expout): Likewise.
7921 (prefixify_expression): Likewise.
7922 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7923 of SystemTap probes' arguments.
7924 (ppc_stap_is_single_operand): New function.
7925 (ppc_stap_parse_special_token): Likewise.
7926 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7927 probes' arguments parser.
7928 * probe.c: New file, for generic statically defined probe support.
7929 * probe.h: Likewise.
7930 * s390-tdep.c: Including headers needed to perform the parsing of
7931 SystemTap probes' arguments.
7932 (s390_stap_is_single_operand): New function.
7933 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7934 probes' arguments parser.
7935 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7936 * stap-probe.c: New file, for SystemTap probe support.
7937 * stap-probe.h: Likewise.
7938 * symfile.h: Include `gdb_vecs.h'.
7939 (struct sym_probe_fns): New struct.
7940 (struct sym_fns) <sym_probe_fns>: New field.
7941 * symtab.c (init_sal): Initialize `probe' field.
7942 * symtab.h (struct probe): Forward declaration.
7943 (struct symtab_and_line) <probe>: New field.
7944 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7945 locations.
7946 (stop_tracing): Likewise.
7947 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7948
7949 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7950 Tom Tromey <tromey@redhat.com>
7951
7952 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7953 and to compile agent expressions.
7954 * infrun.c (siginfo_make_value): New argument `ignore'.
7955 (siginfo_funcs): New struct.
7956 (_initialize_infrun): New argument when calling
7957 `create_internalvar_type_lazy'.
7958 * thread.c (thread_id_make_value): New argument `ignore'.
7959 (thread_funcs): New struct.
7960 (_initialize_thread): New argument when calling
7961 `create_internalvar_type_lazy'.
7962 * tracepoint.c (sdata_make_value): New argument `ignore'.
7963 (sdata_funcs): New struct.
7964 (_initialize_tracepoint): New argument when calling
7965 `create_internalvar_type_lazy'.
7966 * value.c (make_value): New struct.
7967 (create_internalvar_type_lazy): New argument `data'.
7968 (compile_internalvar_to_ax): New function.
7969 (value_of_internalvar): Properly handling `make_value' case.
7970 (clear_internalvar): Likewise.
7971 (show_convenience): Adding `TRY_CATCH' block.
7972 * value.h (internalvar_make_value): Delete, replace by...
7973 (struct internalvar_funcs): ... this.
7974 (create_internalvar_type_lazy) <fun>: Delete argument.
7975 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7976 (compile_internalvar_to_ax): New function.
7977 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7978 (tlb_funcs): New struct.
7979 (_initialize_windows_tdep): New argument when calling
7980 `create_internalvar_type_lazy'.
7981
7982 2012-04-27 Mark Wielaard <mjw@redhat.com>
7983
7984 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7985 see whether it is an address or a constant offset from DW_AT_low_pc.
7986 (dwarf2_record_block_ranges): Likewise.
7987 (read_partial_die): Likewise.
7988
7989 2012-04-26 Mark Wielaard <mjw@redhat.com>
7990
7991 * MAINTAINERS (Write After Approval): Add myself to the list.
7992
7993 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7994
7995 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7996 (proc_prettyprint_signal): Likewise.
7997 (proc_prettyprint_faultset): Likewise.
7998 (proc_prettyprint_fault): Likewise.
7999 (proc_prettyprint_actionset): Likewise.
8000 (proc_prettyprint_flags): Move to new proc-flags.c section.
8001 (proc_prettyfprint_flags): New prototype.
8002 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8003 (proc_syscall, proc_cursig): Likewise.
8004 (proc_set_kill_on_last_close): Likewise.
8005 (proc_unset_kill_on_last_close): Likewise.
8006 (proc_set_watchpoint): Make static.
8007 (proc_delete_dead_threads): Likewise.
8008 (procfs_set_watchpoint): Likewise.
8009 (_initialize_procfs): Add prototype.
8010 * proc-events.c: Include proc-utils.h.
8011 (init_syscall_table): Make static.
8012 * proc-api.c (_initialize_proc_api): Add prototype.
8013 * proc-flags.c: Include proc-utils.h.
8014
8015 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8016
8017 * configure.ac: Add AC_ARG_PROGRAM.
8018 * configure: Regenerate.
8019
8020 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8021
8022 Fix DW_AT_lower_bound defaults for DWARF-4+.
8023 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8024 high. New variable low_default_is_valid. Implement DWARF-4+
8025 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8026 no default by the DWARF standard.
8027
8028 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8029 Maciej W. Rozycki <macro@codesourcery.com>
8030
8031 * infrun.c (handle_inferior_event): Move the check for return
8032 trampolines ahead of the check for function trampolines.
8033 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8034 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8035 (mips_str_mips16_ret_stub): Likewise.
8036 (mips_str_call_fp_stub): Likewise.
8037 (mips_str_call_stub): Likewise.
8038 (mips_str_fn_stub): Likewise.
8039 (mips_str_pic): Likewise.
8040 (mips_in_frame_stub): New function.
8041 (mips_unwind_pc): Return the return address rather than the PC
8042 if the PC of an intermediate frame is inside a call thunk.
8043 (mips_is_stub_suffix): New function.
8044 (mips_is_stub_mode): Likewise.
8045 (mips_get_mips16_fn_stub_pc): Likewise.
8046 (mips_skip_mips16_trampoline_code): Update to handle all the
8047 currently generated stub types. Don't recurse into __fn_stub
8048 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8049 Use cooked register accesses.
8050 (mips_in_return_stub): Reintroduce function.
8051 (mips_skip_trampoline_code): Traverse trampolines recursively.
8052 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8053
8054 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8055
8056 GDB 7.4.1 released.
8057
8058 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8059
8060 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8061 * features/arm-with-m-vfp-d16.xml: New file. Describes
8062 Cortex-M with VFPv4-sp-d16 FPU register layout.
8063 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8064 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8065 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8066 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8067 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8068
8069 2012-04-25 Doug Evans <dje@google.com>
8070
8071 * cli/cli-decode.c (print_doc_line): Use stream instead of
8072 current_uiout.
8073
8074 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8075
8076 * features/arm-with-iwmmxt.c: Regenerate.
8077 * features/arm-with-m-fpa-layout.c: Likewise.
8078 * features/arm-with-m.c: Likewise.
8079 * features/arm-with-neon.c: Likewise.
8080 * features/arm-with-vfpv2.c: Likewise.
8081 * features/arm-with-vfpv3.c: Likewise.
8082 * features/mips-dsp-linux.c: Likewise.
8083 * features/mips-linux.c: Likewise.
8084 * features/mips64-dsp-linux.c: Likewise.
8085 * features/mips64-linux.c: Likewise.
8086 * features/s390-linux32.c: Likewise.
8087 * features/s390-linux32v1.c: Likewise.
8088 * features/s390-linux32v2.c: Likewise.
8089 * features/s390-linux64.c: Likewise.
8090 * features/s390-linux64v1.c: Likewise.
8091 * features/s390-linux64v2.c: Likewise.
8092 * features/s390x-linux64.c: Likewise.
8093 * features/s390x-linux64v1.c: Likewise.
8094 * features/s390x-linux64v2.c: Likewise.
8095 * features/tic6x-c62x-linux.c: Likewise.
8096 * features/tic6x-c62x.c: Likewise.
8097 * features/tic6x-c64x-linux.c: Likewise.
8098 * features/tic6x-c64x.c: Likewise.
8099 * features/tic6x-c64xp-linux.c: Likewise.
8100 * features/tic6x-c64xp.c: Likewise.
8101 * target-descriptions.c: Only generate `field_type' and `type'
8102 variables when needed.
8103
8104 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8105
8106 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8107
8108 2012-04-25 Doug Evans <dje@google.com>
8109
8110 Initial pass at Go language support.
8111 * NEWS: Mention Go.
8112 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8113 go-valprint.c.
8114 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8115 (YYFILES): Add go-exp.c.
8116 (YYOBJ): Add go-exp.o.
8117 (local-maintainer-clean): Delete go-exp.c.
8118 * defs.h (enum language): Add language_go.
8119 * dwarf2read.c: #include "go-lang.h".
8120 (fixup_go_packaging): New function.
8121 (process_full_comp_unit): Call it when processing Go CUs.
8122 (dwarf2_physname): Add Go support.
8123 (read_file_scope): Handle missing language spec for GNU Go.
8124 (set_cu_language): Handle DW_LANG_Go.
8125 * go-exp.y: New file.
8126 * go-lang.h: New file.
8127 * go-lang.c: New file.
8128 * go-typeprint.c: New file.
8129 * go-valprint.c: New file.
8130 * symtab.c: #include "go-lang.h".
8131 (symbol_set_language): Handle language_go.
8132 (symbol_find_demangled_name, symbol_set_names): Ditto.
8133 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8134
8135 2012-04-24 Jim Meyering <meyering@redhat.com>
8136
8137 avoid a few strncpy-induced buffer overruns
8138 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8139 fname and psargs before trying to concatenate.
8140 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8141 "name" before applying strchr.
8142
8143 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8144
8145 * CONTRIBUTE: Use unified diff instead of context diff when
8146 generating patches.
8147
8148 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8149
8150 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8151 code. Handle JR.HB correctly.
8152
8153 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8154
8155 * mips-tdep.c
8156 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8157 with the other MIPS16 helpers.
8158
8159 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8160
8161 * observer.sh: Conditionally declare `args', thus cleaning up
8162 unused instances of this variable.
8163
8164 2012-04-24 Yao Qi <yao@codesourcery.com>
8165
8166 Revert this patch to allow breakpoint always-inserted
8167 in record target.
8168 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8169 * breakpoint.c: Include record.h.
8170 (breakpoints_always_inserted_mode): Return false when the record
8171 target is in use.
8172
8173 * breakpoint.c (iterate_over_bp_locations): New.
8174 * breakpoint.h: Declare.
8175 New typedef walk_bp_location_callback.
8176 * record.c (record_open): Call record_init_record_breakpoints.
8177 (record_sync_record_breakpoints): New.
8178 (record_init_record_breakpoints): New.
8179 * NEWS: Mention supporting breakpoint always-inserted mode in
8180 record target.
8181
8182 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8183
8184 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8185 any thread.
8186
8187 2012-04-24 Yao Qi <yao@codesourcery.com>
8188
8189 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8190 (is_catchpoint): ... it.
8191 (print_one_breakpoint_location): Caller update.
8192 * breakpoint.h: Update declaration.
8193
8194 2012-04-23 David S. Miller <davem@davemloft.net>
8195
8196 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8197
8198 2012-04-23 Tom Tromey <tromey@redhat.com>
8199
8200 * buildsym.c (add_free_pendings): Remove.
8201 * buildsym.h (add_free_pendings): Remove.
8202
8203 2012-04-23 Doug Evans <dje@google.com>
8204
8205 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8206 attr.u.unsnd instead of attr.u.addr.
8207 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8208 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8209 DW_FORM_ref_udata.
8210 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8211 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8212 DW_FORM_ref_udata.
8213 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8214
8215 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8216
8217 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8218 (mips_o32_return_value): Likewise.
8219 (mips_o64_return_value): Likewise.
8220
8221 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8222
8223 * ada-lang.c (ada_evaluate_subexp): Add cases for
8224 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8225 their treatment in eval.c.
8226
8227 2012-04-21 David S. Miller <davem@davemloft.net>
8228
8229 * sparc-tdep.c (X_DISP10): Define.
8230 (sparc_analyze_control_transfer): Handle compare-and-branch.
8231
8232 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8233
8234 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8235 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8236
8237 2012-04-20 Nigel Stephens <nigel@mips.com>
8238 Maciej W. Rozycki <macro@codesourcery.com>
8239
8240 * mips-tdep.c (mips_float_register_p): New function.
8241 (mips_convert_register_float_case_p): Use mips_float_register_p.
8242 (mips_register_type): Likewise.
8243 (mips_print_register): Likewise.
8244 (print_gp_register_row): Likewise.
8245 (mips_print_registers_info): Likewise.
8246
8247 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8248
8249 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8250 of mips16 symbols.
8251
8252 2012-04-20 Andrew Pinski <apinski@cavium.com>
8253
8254 * MAINTAINERS (Write After Approval): Add myself to the list.
8255
8256 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8257
8258 * MAINTAINERS: Update my e-mail address.
8259
8260 2012-04-20 Pedro Alves <palves@redhat.com>
8261
8262 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8263 $srcdir.
8264 * configure: Regenerate.
8265
8266 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8267
8268 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8269 declaration.
8270 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8271
8272 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8273
8274 Fix compilation compatibility with python-2.4
8275 * python/py-type.c (convert_field): Cast ADDRSTRING for
8276 PyObject_SetAttrString as non-const. New comment.
8277
8278 2012-04-19 Tom Tromey <tromey@redhat.com>
8279
8280 * top.c (quit_target): Use all_cleanups.
8281 * main.c (captured_command_loop): Use all_cleanups.
8282 * exceptions.c (throw_exception): Use all_cleanups.
8283
8284 2012-04-19 Pedro Alves <palves@redhat.com>
8285
8286 * Makefile.in (GNULIB_BUILDDIR): New.
8287 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8288 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8289 (CLEANDIRS). Remove gnulib/import.
8290 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8291 (all-lib): Ditto.
8292 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8293 (gnulib/import/Makefile): Replace gnulib/import with
8294 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8295 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8296 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8297 acx_configure_dir.m4.
8298 * acinclude.m4: Include acx_configure_dir.m4.
8299 * acx_configure_dir.m4: New file.
8300 * aclocal.m4: Regenerate.
8301 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8302 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8303 (GNULIB): New variable.
8304 (GNULIB_STDINT_H): Adjust.
8305 (AC_OUTPUT): Don't output gnulib/Makefile.
8306 * gdb/defs.h: Include build-gnulib/config.h.
8307 * aclocal.m4: Regenerate.
8308 * config.in: Regenerate.
8309 * configure: Regenerate.
8310
8311 * gnulib/Makefile.in: New file.
8312 * gnulib/configure.ac: New file.
8313 * gnulib/aclocal.m4: New file.
8314 * gnulib/config.in: New file.
8315 * gnulib/configure: New file.
8316 * gnulib/: Re-run gnulib-tool to adjust.
8317
8318 2012-04-19 Doug Evans <dje@google.com>
8319
8320 * cleanups.h (struct cleanup): Move to cleanups.c.
8321 (make_cleanup_dtor_ftype): New typedef.
8322 (make_cleanup_dtor): Use it.
8323 (ALL_CLEANUPS): Replace with ...
8324 (all_cleanups): ... this. Declare. All uses updated.
8325 * cleanups.c: #include "gdb_assert.h".
8326 (sentinel_cleanup): New static global.
8327 (SENTINEL_CLEANUP): Define.
8328 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8329 (make_my_cleanup2): Assert result is non-NULL.
8330 (all_cleanups): New function.
8331 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8332 of NULL.
8333
8334 2012-04-19 Pedro Alves <palves@redhat.com>
8335
8336 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8337 Adjust paths to gnulib imported files.
8338
8339 2012-04-19 Pedro Alves <palves@redhat.com>
8340
8341 * gnulib/: Move whole directory ...
8342 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8343 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8344 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8345 (aclocal_m4_deps): Adjust.
8346 * aclocal.m4: Regenerate.
8347 * configure: Regenerate.
8348 * configure.ac: Adjust AC_OUTPUT output.
8349
8350 2012-04-19 Yao Qi <yao@codesourcery.com>
8351
8352 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8353 (vec.o): New rule.
8354 * vec.c: Move it ...
8355 * common/vec.c: ... here.
8356 * vec.h: Move it ...
8357 * common/vec.h: ... here.
8358
8359 2012-04-19 Yao Qi <yao@codesourcery.com>
8360
8361 * gdb-code-style.el: New.
8362
8363 2012-04-18 Pedro Alves <palves@redhat.com>
8364
8365 Update gnulib from latest git.
8366 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8367
8368 * gnulib/Makefile.am: Update.
8369 * gnulib/dummy.c: Update.
8370 * gnulib/extra/arg-nonnull.h: Update.
8371 * gnulib/extra/c++defs.h: Update.
8372 * gnulib/extra/update-copyright: Update.
8373 * gnulib/extra/warn-on-use.h: Update.
8374 * gnulib/inttypes.in.h: Update.
8375 * gnulib/m4/00gnulib.m4: Update.
8376 * gnulib/m4/extensions.m4: Update.
8377 * gnulib/m4/gnulib-cache.m4: Update.
8378 * gnulib/m4/gnulib-common.m4: Update.
8379 * gnulib/m4/gnulib-comp.m4: Update.
8380 * gnulib/m4/gnulib-tool.m4: Update.
8381 * gnulib/m4/include_next.m4: Update.
8382 * gnulib/m4/inttypes-pri.m4: Update.
8383 * gnulib/m4/inttypes.m4: Update.
8384 * gnulib/m4/longlong.m4: Update.
8385 * gnulib/m4/memchr.m4: Update.
8386 * gnulib/m4/memmem.m4: Update.
8387 * gnulib/m4/mmap-anon.m4: Update.
8388 * gnulib/m4/multiarch.m4: Update.
8389 * gnulib/m4/onceonly.m4: Update.
8390 * gnulib/m4/stddef_h.m4: Update.
8391 * gnulib/m4/stdint.m4: Update.
8392 * gnulib/m4/string_h.m4: Update.
8393 * gnulib/m4/warn-on-use.m4: Update.
8394 * gnulib/m4/wchar_h.m4: Update.
8395 * gnulib/m4/wchar_t.m4: Update.
8396 * gnulib/m4/wint_t.m4: Update.
8397 * gnulib/memchr.c: Update.
8398 * gnulib/memmem.c: Update.
8399 * gnulib/stddef.in.h: Update.
8400 * gnulib/stdint.in.h: Update.
8401 * gnulib/str-two-way.h: Update.
8402 * gnulib/string.in.h: Update.
8403 * gnulib/wchar.in.h: Update.
8404
8405 * gnulib/extra/arg-nonnull.h: Delete.
8406 * gnulib/extra/c++defs.h: Delete.
8407 * gnulib/extra/warn-on-use.h: Delete.
8408 * gnulib/m4/wchar_h.m4: Delete.
8409 * gnulib/m4/wint_t.m4: Delete.
8410 * gnulib/wchar.in.h: Delete.
8411
8412 * gnulib/extra/snippets/arg-nonnull.h: New.
8413 * gnulib/extra/snippets/c++defs.h: New.
8414 * gnulib/extra/snippets/warn-on-use.h: New.
8415
8416 * aclocal.m4: Regenerate.
8417 * config.in: Regenerate.
8418 * configure: Regenerate.
8419 * gnulib/Makefile.in: Regenerate.
8420
8421 2012-04-18 Pedro Alves <palves@redhat.com>
8422
8423 Reimport the update-copyright module from gnulib
8424 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8425
8426 * configure: Regenerate.
8427 * gnulib/Makefile.am: Update.
8428 * gnulib/Makefile.in: Regenerate.
8429 * gnulib/extra/update-copyright: Update.
8430 * gnulib/m4/gnulib-cache.m4: Update.
8431 * gnulib/m4/gnulib-comp.m4: Update.
8432
8433 2012-04-18 Tristan Gingold <gingold@adacore.com>
8434
8435 * configure.ac (aix): Put -lpthread into libs.
8436 * configure: Regenerate.
8437
8438 2012-04-18 Tom Tromey <tromey@redhat.com>
8439
8440 * linespec.c (convert_linespec_to_sals): Don't use
8441 SYMBOL_OBJ_SECTION.
8442 (compare_msymbols): Arguments are minsym_and_objfile, not
8443 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8444
8445 2012-04-18 Pedro Alves <palves@redhat.com>
8446
8447 Revert gnulib/ part of:
8448 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8449 Copyright year update in most files (performed by copyright.sh).
8450
8451 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8452
8453 Fix 64-bit constants on 32-bit hosts.
8454 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8455 from unsigned long to ULONGEST.
8456 (read_signed_leb128): Change declaration return type from long to
8457 LONGEST.
8458 (dwarf2_const_value_attr): Change declaration parameter value from long
8459 to LONGEST.
8460 (dwarf2_compute_name): Change variable value from long to LONGEST.
8461 (read_unsigned_leb128): Change return type, variable result and some
8462 casts from unsigned long to ULONGEST.
8463 (read_signed_leb128): Change return type, variable result and some
8464 casts from long to LONGEST.
8465 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8466 value from long to LONGEST.
8467 (dwarf2_const_value): Change variable value from long to LONGEST.
8468 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8469 plongest and hex_string.
8470 * symtab.h (struct general_symbol_info): Change ivalue from long to
8471 LONGEST, remove the comment.
8472 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8473 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8474
8475 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8476
8477 PR symtab/7259:
8478 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8479 * ada-lang.c (ada_discrete_type_high_bound)
8480 (ada_discrete_type_low_bound): Fix function comment. Use
8481 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8482 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8483 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8484 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8485 Use TYPE_FIELD_ENUMVAL.
8486 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8487 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8488 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8489 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8490 TYPE_CODE_ENUM.
8491 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8492 * dwarf2read.c (process_enumeration_scope): Likewise.
8493 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8494 field.bitpos.
8495 (class StructMainTypePrettyPrinter): Support also
8496 FIELD_LOC_KIND_ENUMVAL.
8497 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8498 TYPE_CODE_ENUM.
8499 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8500 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8501 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8502 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8503 field enumval.
8504 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8505 accommodate enumval.
8506 (struct call_site): Adjust loc_kind to accommodate enumval.
8507 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8508 (TYPE_FIELD_ENUMVAL): New macros.
8509 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8510 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8511 TYPE_CODE_ENUM.
8512 * p-typeprint.c (pascal_type_print_base): Likewise.
8513 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8514 enumval.
8515 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8516 * python/py-type.c (convert_field): New variable addrstring. Use
8517 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8518 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8519 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8520 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8521 TYPE_CODE_ENUM.
8522 * valprint.c (generic_val_print): Likewise.
8523
8524 2012-04-17 Doug Evans <dje@google.com>
8525
8526 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8527
8528 * dwarf2read.c: Whitespace fixes.
8529 (lookup_signatured_type): Tweak comment.
8530 (get_die_type_at_offset): Fix comment.
8531
8532 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8533
8534 * xcoffread.c (xcoff_secnum_to_sections): New function.
8535 (secnum_to_section, secnum_to_bfd_section): Reimplement
8536 using xcoff_secnum_to_sections. Rename "secnum" parameter
8537 into "n_scnum".
8538 (RECORD_MINIMAL_SYMBOL): Delete.
8539 (record_minimal_symbol): New function.
8540 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8541 by call to record_minimal_symbol and set misc_func_recorded
8542 to 1. Set last_csect_sec to the XCOFF section index instead
8543 of GDB's section_offset index. Update calls to
8544 prim_record_minimal_symbol_and_info to pass the BFD section
8545 as well.
8546
8547 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8548
8549 * xcoffread.c (read_xcoff_symtab): Delete variables
8550 last_csect_val and last_csect_sec and associated code.
8551
8552 2012-04-17 Doug Evans <dje@google.com>
8553
8554 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8555 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8556 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8557 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8558
8559 * cleanups.h: New file.
8560 * cleanups.c: New file.
8561 * Makefile.in (SFILES): Add cleanups.c.
8562 (HFILES_NO_SRCDIR): Add cleanups.h.
8563 (COMMON_OBS): Add cleanups.o.
8564 * defs.h (struct cleanup): Moved to cleanups.h.
8565 (do_cleanups,do_final_cleanups): Ditto.
8566 (discard_cleanups,discard_final_cleanups): Ditto
8567 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8568 (save_cleanups,save_final_cleanups): Ditto.
8569 (restore_cleanups,restore_final_cleanups): Ditto.
8570 (null_cleanup): Ditto.
8571 (make_my_cleanup,make_my_cleanup2): Ditto.
8572 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8573 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8574 (do_cleanups,do_final_cleanups): Ditto.
8575 (discard_cleanups,discard_final_cleanups): Ditto
8576 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8577 (save_cleanups,save_final_cleanups): Ditto.
8578 (restore_cleanups,restore_final_cleanups): Ditto.
8579 (null_cleanup): Ditto.
8580 (make_my_cleanup,make_my_cleanup2): Ditto.
8581 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8582
8583 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8584 make_my_cleanup.
8585 (make_cleanup_dyn_string_delete): Ditto.
8586 (make_cleanup_ui_file_delete): Ditto.
8587 (make_cleanup_ui_out_redirect_pop): Ditto.
8588 (make_cleanup_free_section_addr_info): Ditto.
8589 (make_cleanup_restore_integer): Ditto.
8590 (make_cleanup_unpush_target): Ditto.
8591 (make_cleanup_value_free_to_mark): Ditto.
8592 (make_cleanup_value_free): Ditto.
8593 (make_cleanup_free_so): Ditto.
8594
8595 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8596
8597 New option "set debug auto-load".
8598 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8599 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8600 (auto_load_safe_path_vec_update)
8601 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8602 if DEBUG_AUTO_LOAD.
8603 (file_is_auto_load_safe): New parameters debug_fmt and ....
8604 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8605 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8606 caller by explanatory string.
8607 (_initialize_auto_load): Register "set debug auto-load".
8608 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8609 and ....
8610 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8611 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8612 by explanatory string.
8613 * main.c (captured_main): Likewise.
8614 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8615 (source_section_scripts): Likewise.
8616
8617 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8618
8619 New option "set auto-load safe-path".
8620 * NEWS: New commands "set auto-load safe-path"
8621 and "show auto-load safe-path".
8622 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8623 (auto_load_safe_path, auto_load_safe_path_vec)
8624 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8625 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8626 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8627 (source_gdb_script_for_objfile): New variable is_safe. Call
8628 file_is_auto_load_safe. Return if it is not.
8629 (struct loaded_script): New field loaded.
8630 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8631 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8632 output "Missing" to "No".
8633 (_initialize_auto_load): New variable cmd. Initialize
8634 auto_load_safe_path. Register "set auto-load safe-path",
8635 "show auto-load safe-path" and "add-auto-load-safe-path".
8636 * auto-load.h (maybe_add_script): Add parameter loaded.
8637 (file_is_auto_load_safe): New declaration.
8638 * config.in: Regenerate.
8639 * configure: Regenerate.
8640 * configure.ac: New parameters --with-auto-load-safe-path
8641 and --without-auto-load-safe-path.
8642 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8643 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8644 * main.c (captured_main): Check file_is_auto_load_safe for
8645 LOCAL_GDBINIT.
8646 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8647 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8648 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8649 not.
8650
8651 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8652
8653 auto-load: Implementation.
8654 * NEWS: New descriptions for "info auto-load",
8655 "info auto-load gdb-scripts", "info auto-load python-scripts",
8656 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8657 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8658 and "show auto-load-scripts". New description for "set auto-load",
8659 "show auto-load", "set auto-load gdb-scripts",
8660 "show auto-load gdb-scripts", "set auto-load python-scripts",
8661 "show auto-load python-scripts", "set auto-load local-gdbinit",
8662 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8663 "show auto-load libthread-db".
8664 * auto-load.c: Remove include python/python-internal.h. Add includes
8665 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8666 cli/cli-setshow.h.
8667 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8668 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8669 (gdbpy_global_auto_load): Rename to ...
8670 (global_auto_load): ... here.
8671 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8672 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8673 (script_language_gdb, source_gdb_script_for_objfile): New.
8674 (struct loaded_script): New field language.
8675 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8676 LANGUAGE.
8677 (maybe_add_script): Add parameter language. Drop redundant
8678 entry.full_path initialization. Initialize entry.language and
8679 (*slot)->language.
8680 (auto_load_objfile_script): Change parameter suffix to language.
8681 Remove the call of maybe_add_script.
8682 Call language->source_script_for_objfile.
8683 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8684 New.
8685 (collect_matching_scripts): Adjust it for
8686 struct collect_matching_scripts_data.
8687 (auto_load_info_scripts_pattern_nl): New variable.
8688 (info_auto_load_scripts): Rename to ...
8689 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8690 for struct collect_matching_scripts_data.
8691 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8692 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8693 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8694 (auto_load_info_cmdlist_get): New.
8695 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8696 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8697 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8698 "info auto-load local-gdbinit".
8699 * auto-load.h (struct script_language): New.
8700 (gdbpy_global_auto_load): Rename to ...
8701 (global_auto_load): ... here.
8702 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8703 (auto_load_local_gdbinit_loaded): New declarations.
8704 (maybe_add_script): New parameter language.
8705 (auto_load_objfile_script): Change parameter suffix to language.
8706 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8707 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8708 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8709 declarations.
8710 * linux-thread-db.c: Include auto-load.h and ctype.h.
8711 (auto_load_thread_db, show_auto_load_thread_db): New.
8712 (struct thread_db_info): New field filename.
8713 (delete_thread_db_info): Call xfree for FILENAME.
8714 (try_thread_db_load): Initialize FILENAME.
8715 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8716 if !AUTO_LOAD_THREAD_DB.
8717 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8718 (_initialize_thread_db): Install auto_load_thread_db
8719 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8720 as "info auto-load libthread-db".
8721 * main.c (captured_main): Rename gdbpy_global_auto_load to
8722 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8723 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8724 (print_gdb_help): Extend the help for 'local init file'.
8725 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8726 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8727 (auto_load_scripts): Rename to ...
8728 (auto_load_python_scripts): ... here, update the comment.
8729 (gdbpy_load_auto_script_for_objfile): New declaration.
8730 (show_auto_load_python_scripts, script_language_python)
8731 (gdbpy_load_auto_script_for_objfile): New.
8732 (source_section_scripts): Refactor the code.
8733 (load_auto_scripts_for_objfile): Rename to ...
8734 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8735 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8736 (info_auto_load_python_scripts): New.
8737 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8738 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8739 Register "set auto-load-scripts" as its deprecated alias. Register
8740 "info auto-load python-scripts". Register "info auto-load-scripts" as
8741 its deprecated alias.
8742 (load_auto_scripts_for_objfile): Rename to ...
8743 (gdbpy_load_auto_scripts_for_objfile): ... here.
8744 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8745 (gdbpy_load_auto_scripts_for_objfile): ... here.
8746
8747 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8748
8749 auto-load: Move files.
8750 * Makefile.in (SFILES): Add auto-load.c.
8751 (HFILES_NO_SRCDIR): Add auto-load.h.
8752 (COMMON_OBS): Add auto-load.o.
8753 (distclean): Change .gdbinit for gdb-gdb.gdb.
8754 * auto-load.c: New file, with parts from python/py-auto-load.c.
8755 * auto-load.h: New file, with parts from python/python.h.
8756 * configure: Regenerate.
8757 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8758 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8759 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8760 * main.c: Include auto-load.h.
8761 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8762 command.h, observer.h and progspace.h to auto-load.c. Add include
8763 auto-load.h.
8764 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8765 (struct loaded_script, auto_load_pspace_data)
8766 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8767 (hash_loaded_script_entry, eq_loaded_script_entry)
8768 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8769 (maybe_add_script): Move to auto-load.c.
8770 (source_section_scripts): Change maybe_add_script parameters passing,
8771 use script_not_found_warning_print.
8772 (clear_section_scripts, auto_load_objfile_script)
8773 (auto_load_new_objfile, loaded_script_ptr)
8774 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8775 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8776 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8777 auto_load_new_objfile and info_auto_load_scripts initizations to
8778 auto-load.c.
8779 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8780
8781 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8782
8783 Code cleanup.
8784 * charset.c (find_charset_names): Remove variables ix and elt.
8785 Use free_char_ptr_vec.
8786 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8787 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8788 debugdir_end. New variable debugdir_len.
8789 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8790 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8791 declarations.
8792 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8793 and elt. Use free_char_ptr_vec.
8794 * source.c (add_path): Remove variables argv, arg and argv_index.
8795 New variables dir_vec, back_to, ix and name.
8796 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8797 make_cleanup_freeargv. Remove variable separator. Simplify the code
8798 no longer expecting DIRNAME_SEPARATOR.
8799 (openp): Remove variable p, p1 and len. New variables dir_vec,
8800 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8801 no longer expecting DIRNAME_SEPARATOR.
8802 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8803 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8804 debugdir_end.
8805 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8806 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8807 (dirnames_to_char_ptr_vec): New functions.
8808
8809 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8810
8811 Code cleanup.
8812 * source.c (add_path): Remove always true conditional 'p == 0' and
8813 unindent its code block.
8814
8815 2012-04-17 Pedro Alves <palves@redhat.com>
8816
8817 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8818 (FIELD_BITPOS_LVAL): ... this.
8819 (FIELD_BITPOS): New.
8820 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8821 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8822 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8823 SET_FIELD_BITPOS.
8824 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8825 SET_FIELD_BITPOS.
8826 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8827 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8828 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8829 SET_FIELD_BITPOS.
8830
8831 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8832
8833 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8834 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8835 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8836 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8837 * jv-lang.c (java_link_class_type): Likewise, once.
8838 * stabsread.c (read_enum_type): Likewise.
8839
8840 2012-04-16 Yao Qi <yao@codesourcery.com>
8841
8842 * common/agent.c (agent_run_command): Add one more parameter `len'.
8843 Update callers.
8844 * common/agent.h: Update declaration.
8845 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8846 Update.
8847 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8848
8849 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8850
8851 PR mi/13393
8852 * value.c (value_actual_type): New function.
8853 * value.h (value_actual_type): New declaration.
8854 * varobj.c (update_type_if_necessary): New function.
8855 (varobj_create): Call value_actual_type instead of
8856 value_type.
8857 (install_dynamic_child): distinct changed and type changed MI variable
8858 objects.
8859 (update_dynamic_varobj_children): Updated for install_dynamic_child
8860 change. All callers updated.
8861 (varobj_update): Support for MI variable object type change if
8862 the value changed and RTTI is used to determine the type.
8863 (create_child_with_value): Call value_actual_type instead of
8864 value_type.
8865 (adjust_value_for_child_access): Extended with a new parameter which
8866 specify whether the given value should be casted to enclosing type.
8867 All callers updated.
8868
8869 2012-04-14 Yao Qi <yao@codesourcery.com>
8870
8871 Import gnulib module inttypes from git
8872 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8873 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8874 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8875 gnulib/m4/inttypes-pri.m4
8876 * aclocal.m4, config.in, configure: Regenerated.
8877 * gnulib/Makefile.am: Update.
8878 * gnulib/Makefile.in: Update.
8879 * gnulib/m4/gnulib-cache.m4: Update.
8880 * gnulib/m4/gnulib-comp.m4: Update.
8881 * gnulib/inttypes.in.h: New.
8882 * gnulib/m4/inttypes-pri.m4: New.
8883 * gnulib/m4/inttypes.m4: New.
8884
8885 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8886
8887 * infrun.c (resume): Update PC address to the real PC after
8888 preparing to do displaced stepping.
8889
8890 2012-04-12 Doug Evans <dje@google.com>
8891
8892 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8893 All callers updated.
8894
8895 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8896
8897 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8898
8899 2012-04-12 Doug Evans <dje@google.com>
8900
8901 * dwarf2read.c (create_all_type_units): Renamed from
8902 create_debug_types_hash_table. All callers updated.
8903
8904 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8905 local type_sig to sig_type, type_offset to type_offset_in_tu.
8906 (hash_signatured_type): Renamed from hash_type_signature,
8907 all callers updated.
8908 (eq_signatured_type): Renamed from eq_type_signature,
8909 all callers updated.
8910 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8911 (process_enumeration_scope): Ditto.
8912 (lookup_signatured_type_at_offset): Ditto.
8913 (load_full_type_unit, read_signatured_type): Ditto.
8914
8915 2012-04-12 Yao Qi <yao@codesourcery.com>
8916
8917 * remote.c (async_remote_interrupt): Correct function name in
8918 debug message.
8919 (async_remote_interrupt_twice): Ditto.
8920
8921 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8922
8923 * source.c (find_and_open_source): Consistently pass resulting
8924 full path through xfullpath.
8925
8926 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8927
8928 Provide more specific displaced-stepping memory error message.
8929 * infrun.c (displaced_step_prepare): New variable status. Call
8930 target_read_memory instead of read_memory, provide more specific
8931 error message.
8932
8933 2012-04-11 Tristan Gingold <gingold@adacore.com>
8934
8935 PR gdb/13901
8936 * darwin-nat.c (darwin_execvp): Revert previous patch.
8937
8938 2012-04-11 Tristan Gingold <gingold@adacore.com>
8939
8940 PR gdb/13901
8941 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8942 in case of change.
8943
8944 2012-04-11 Tristan Gingold <gingold@adacore.com>
8945
8946 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8947 warning.
8948
8949 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8950
8951 New command 'explore' which helps explore values and types in
8952 scope.
8953 * NEWS: Add an entry about the new 'explore' command.
8954 * data-directory/Makefile.in: Add gdb/command/explore.py
8955 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8956 command using the GDB Python API.
8957
8958 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8959
8960 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8961 extension in jump target calculation.
8962
8963 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8964
8965 * mips-tdep.c (mips32_next_pc): Handle JALX.
8966
8967 2012-04-10 Yao Qi <yao@codesourcery.com>
8968
8969 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8970
8971 2012-04-10 Yao Qi <yao@codesourcery.com>
8972
8973 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8974 and gnulib/m4/gnulib-tool.m4.
8975
8976 2012-04-10 Doug Evans <dje@google.com>
8977
8978 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8979 (load_partial_dies): Clarify comment.
8980 (find_partial_die): Support rereading type units.
8981 Clarify CU handling, if we know offset is in CU, don't search for the
8982 containing CU. Add comment regarding memory waste.
8983
8984 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8985
8986 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8987 i386/x32-avx and i386/x32-avx-linux.
8988 (i386/x32-expedite): New.
8989 (i386/x32-linux-expedite): Likewise.
8990 (i386/x32-avx-expedite): Likewise.
8991 (i386/x32-avx-linux-expedite): Likewise.
8992 ($(outdir)/i386/x32.dat): Likewise.
8993 ($(outdir)/i386/x32-linux.dat): Likewise.
8994 ($(outdir)/i386/x32-avx.dat): Likewise.
8995 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8996
8997 * features/i386/x32-avx-linux.xml: New file.
8998 * features/i386/x32-avx.xml: Likewise.
8999 * features/i386/x32-core.xml: Likewise.
9000 * features/i386/x32-linux.xml: Likewise.
9001 * features/i386/x32.xml: Likewise.
9002
9003 * features/i386/x32-avx-linux.c: New. Generated.
9004 * features/i386/x32-avx.c: Likewise.
9005 * features/i386/x32-linux.c: Likewise.
9006 * features/i386/x32.c: Likewise.
9007 * regformats/i386/x32-avx-linux.dat: Likewise.
9008 * regformats/i386/x32-avx.dat: Likewise.
9009 * regformats/i386/x32-linux.dat: Likewise.
9010 * regformats/i386/x32.dat: Likewise.
9011
9012 2012-04-10 Tristan Gingold <gingold@adacore.com>
9013
9014 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9015 code to kill the inferior.
9016
9017 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9018
9019 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9020 defines.
9021 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9022 defines.
9023 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9024 (yyvsp): New defines.
9025 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9026 defines.
9027 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9028 defines.
9029 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9030 defines.
9031 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9032 defines.
9033 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9034 defines.
9035
9036 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9037
9038 * sparc64-tdep.c (sparc64_store_arguments)
9039 (sparc64_store_arguments): Fix coding style.
9040
9041 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9042
9043 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9044 complex floats, adjust some related comments and tighten a related
9045 assertion.
9046 (sparc64_extract_return_value): Handle complex floats.
9047
9048 2012-04-07 Doug Evans <dje@google.com>
9049
9050 * dwarf2read.c (load_partial_dies): Change condition to assert.
9051
9052 2012-04-06 Doug Evans <dje@google.com>
9053
9054 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9055 "mov %rsp,%rbp".
9056
9057 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9058
9059 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9060 fencepost error.
9061 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9062 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9063 architecture.
9064
9065 2012-04-05 Keith Seitz <keiths@redhat.com>
9066
9067 * linespec.c (decode_compound): Remove.
9068 (enum offset_relative_sign): New enum.
9069 (struct line_offset): New struct.
9070 (struct linespec): New struct.
9071 (struct linespec_state): Move file_symtabs,
9072 user_filename, and user_function into struct linespec.
9073 Make result an anonymous struct holding vectors of
9074 symbolp and minsym_and_objfile_d.
9075 Add language member.
9076 (enum ls_token_type): New enum.
9077 (linespec_keywords): New array.
9078 (struct ls_token): New struct.
9079 (struct ls_parser): New struct.
9080 (linespec_lexer_lex_number): New function.
9081 (linespec_lexer_lex_keyword): New function.
9082 (is_ada_operator): New function.
9083 (skip_quote_char): New function.
9084 (copy_token_string): New function.
9085 (is_closing_quote_enclosed): New function.
9086 (find_parameter_list_end): New function.
9087 (linespec_lexer_lex_string): New function.
9088 (linespec_lexer_lex_one): New function.
9089 (linespec_lexer_consume_token): New function.
9090 (linespec_lexer_peek_token): New function.
9091 (cplusplus_error): Remove unused function.
9092 (find_methods): Update comment.
9093 (find_toplevel_char): Return const.
9094 (is_objc_method_format): Remove unused function.
9095 (find_toplevel_string): New function.
9096 (is_linespec_boundary): Remove.
9097 (symbol_not_found_error): New function.
9098 (find_method_overload_end): Remove function.
9099 (unexpected_linespec_error): New function.
9100 (keep_name_info): Remove.
9101 (linespec_parse_line_offset): New function.
9102 (linespec_parse_basic): New function.
9103 (canonicalize_linespec): New function.
9104 (decode_line_internal): Remove.
9105 (create_sals_line_offset): New function adapted from
9106 decode_all_digits.
9107 (convert_linespec_to_sals): New function.
9108 (parse_linespec): New function.
9109 (linespec_parser_new): New function.
9110 (linespec_state_destructor): Change parameter type to
9111 struct linespec_state *.
9112 Add language parameter.
9113 Remove freeing of moved members.
9114 (linespec_parser_delete): New function.
9115 (decode_line_full): Use parse_linespec and linespec_parser_new.
9116 (decode_line_1): Likewise.
9117 (decode_indirect): Rename to ...
9118 (linespec_expression_to_pc): ... this and rewrite
9119 to simply find CORE_ADDR, storing this result for later
9120 conversion to SALs.
9121 (locate_first_half): Remove.
9122 (deocde_objc): Add parameter LS.
9123 Initialize new struct collect_info members.
9124 Handle minimal symbols, too.
9125 (decode_compound): Delete.
9126 (lookup_prefix_sym): Rewrite.
9127 (compare_msymbols): New function.
9128 (find_method): Rewrite.
9129 Do not call cplusplus_error.
9130 (symtabs_from_filename): Rewrite.
9131 (collect_function_symbols): Delete.
9132 (find_function_symbols): Rewrite without ARGPTR-style
9133 processing.
9134 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9135 (decode_dollar): Adapted and renamed to ...
9136 (linespec_parse_variable): ... this.
9137 (find_linespec_symbols): New function.
9138 (decode_label): Adapted and renamed to ...
9139 (find_label_symbols): ... this.
9140 (decode_digits_list_mode): Add and use LS argument.
9141 (decode_digits_ordinary): Likewise.
9142 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9143 If in list mode, allow any symbol class. Otherwise, only
9144 permit LOC_BLOCK symbols.
9145 (minsym_found): Update comments.
9146 (search_minsyms_for_name): Do not convert the matching symbol
9147 into a SAL. Simply push the symbol and objfile into the
9148 result vector.
9149 (decode_variable): Delete. Contents adapted into
9150 find_linespec_symbols.
9151
9152 * cp-support.c (SKIP_SPACE): Remove.
9153 (operator_tokens): Remove unused global.
9154 (cp_validate_operator): Remove.
9155 * cp-support.h (cp_validate_operator): Remove declaration.
9156
9157 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9158
9159 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9160 for TYPE_VPTR_FIELDNO.
9161 * valprint.c (valprint_check_validity): Make it global, move the
9162 function comment ...
9163 * value.h (valprint_check_validity): ... to this new declaration.
9164
9165 2012-04-02 Tristan Gingold <gingold@adacore.com>
9166
9167 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9168 the STATE32 api for i386 state.
9169 (i386_darwin_store_inferior_registers): Likewise.
9170
9171 2012-04-02 Tristan Gingold <gingold@adacore.com>
9172
9173 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9174 SS offset.
9175 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9176 format_string.
9177
9178 2012-04-02 Tristan Gingold <gingold@adacore.com>
9179
9180 PR gdb/13901
9181 * darwin-nat.c (darwin_execvp): Set binary preference.
9182
9183 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9184
9185 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9186
9187 2012-03-30 Tom Tromey <tromey@redhat.com>
9188
9189 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9190 of TRY_CATCH. Fix error handling.
9191 * python/py-value.c (convert_value_from_python): Move 'old'
9192 declaration to innermost scope.
9193
9194 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9195 Andrey Smirnov <andrew.smirnov@gmail.com>
9196
9197 -Wshadow warning fix.
9198 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9199 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9200 Adjust code accordingly.
9201
9202 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9203
9204 * ada-lang.c (symbol_completion_add): Rename parameter
9205 "encoded" into "encoded_p". Ajust code and documentation
9206 accordingly.
9207
9208 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9209 Andrey Smirnov <andrew.smirnov@gmail.com>
9210
9211 -Wshadow warning fix.
9212 * ada-lang.c (symbol_completion_add): Rename parameter
9213 "wild_match" into wild_match_p. Update code and documentation
9214 accordingly.
9215
9216 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9217
9218 * ada-lang.c (symbol_completion_match): Rename parameter
9219 "encoded" into "encoded_p". Ajust code and documentation
9220 accordingly.
9221
9222 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9223 Andrey Smirnov <andrew.smirnov@gmail.com>
9224
9225 -Wshadow warning fix.
9226 * ada-lang.c (symbol_completion_match): Rename parameter
9227 "wild_match" into "wild_match_p". Adjust code and function
9228 documentation accordingly.
9229
9230 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9231 Andrey Smirnov <andrew.smirnov@gmail.com>
9232
9233 -Wshadow warning fix.
9234 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9235 "symbol_info" into "info". Adjust code accordingly.
9236 (ada_lookup_symbol): Likewise.
9237
9238 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9239
9240 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9241 of this function's documentation.
9242
9243 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9244 Andrey Smirnov <andrew.smirnov@gmail.com>
9245
9246 -Wshadow warning fix.
9247 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9248 variable into "wild_match_p". Adjust code accordingly.
9249
9250 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9251 Andrey Smirnov <andrew.smirnov@gmail.com>
9252
9253 -Wshadow warning fix.
9254 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9255 parameter into "wild_match_p". Adjust code accordingly.
9256 Document this parameter in the function description.
9257
9258 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9259 Andrey Smirnov <andrew.smirnov@gmail.com>
9260
9261 -Wshadow warning fix.
9262 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9263 "wild_match" parameter to "wild_match_p" (-Wshadow).
9264
9265 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9266
9267 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9268 in function documentation.
9269
9270 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9271 Andrey Smirnov <andrew.smirnov@gmail.com>
9272
9273 -Wshadow warning fix.
9274 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9275 variable into wild_match_p. Adjust code accordingly.
9276
9277 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9278 Andrey Smirnov <andrew.smirnov@gmail.com>
9279
9280 * ada-valprint.c (ada_val_print_1): Move the code handling
9281 TYPE_CODE_ENUM inside its own lexical block. Declare
9282 variables len and val there, instead of in the function's
9283 top level block. Avoid declaring deref_val again in a way
9284 that shadows another variable of the same name declared
9285 in one of the up-level blocks. Just re-use the up-level
9286 variable instead.
9287
9288 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9289
9290 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9291 Replace block_found argument by symbol_info. Adjust
9292 implementation accordingly. Add function documentation.
9293 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9294 Fix documentation.
9295 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9296 * ada-exp.y (write_object_renaming): Adjust to new
9297 ada_lookup_encoded_symbol API.
9298
9299 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9300
9301 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9302 documentation.
9303
9304 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9305
9306 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9307 (v850_register_name): Add the mpu and fpu register names.
9308 (v850e_register_name): Add the mpu and fpu register names.
9309 (v850e2_register_name): New function.
9310 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9311 bfd_mach_v850e2v3.
9312
9313 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9314
9315 * NEWS: Add entry for Ada varobj support.
9316
9317 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9318
9319 * varobj.c (default_value_is_changeable_p): New function,
9320 extracted from varobj_value_is_changeable_p. Add declaration.
9321 (ada_value_is_changeable_p): New function, extracted from
9322 varobj_value_is_changeable_p. Add declaration.
9323 (struct language_specific): New field "value_is_changeable_p".
9324 (languages): Add entries for new field.
9325 (varobj_create): Set language before calling install_new_value.
9326 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9327 "value_is_changeable_p" language callback.
9328
9329 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9330
9331 * ada-varobj.h, ada-varobj.c: New files.
9332 * Makefile.in (SFILES): Add ada-varobj.c.
9333 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9334 (COMMON_OBS): Add ada-varobj.o.
9335
9336 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9337
9338 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9339 (struct language_specific): New field "value_has_mutated".
9340 (languages): Set field "value_has_mutated" in each entry of array.
9341 (varobj_value_has_mutated): New function.
9342 (varobj_udpdate): Add handling of type mutation.
9343 (value_of_root): Add handling of type mutation.
9344 (ada_value_has_mutated): New function.
9345
9346 2012-03-28 Pedro Alves <palves@redhat.com>
9347
9348 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9349 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9350
9351 2012-03-28 Tom Tromey <tromey@redhat.com>
9352
9353 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9354 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9355 before returning.
9356
9357 2012-03-28 Tom Tromey <tromey@redhat.com>
9358
9359 * .dir-locals.el: New file.
9360
9361 2012-03-28 Pedro Alves <palves@redhat.com>
9362
9363 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9364
9365 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9366
9367 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9368 handling for r0.
9369
9370 2012-03-27 Pedro Alves <palves@redhat.com>
9371
9372 Eliminate struct ui_stream.
9373
9374 * ui-out.h (struct ui_stream): Delete.
9375 (ui_out_field_stream): Adjust prototype.
9376 (ui_out_stream_new, ui_out_stream_delete)
9377 (make_cleanup_ui_out_stream_delete): Delete declarations.
9378 * ui-out.c (ui_out_field_stream): Change prototype to take a
9379 ui_file instead of a ui_stream. Adjust.
9380 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9381 (make_cleanup_ui_out_stream_delete): Delete.
9382 * breakpoint.c (print_breakpoint_location)
9383 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9384 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9385 * disasm.c (dump_insns): Ditto.
9386 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9387 prototype.
9388 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9389 ui_stream/ui_out_stream_new.
9390 * infcmd.c (print_return_value): Ditto.
9391 * osdata.c (info_osdata_command): Don't allocate a local
9392 ui_stream.
9393 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9394 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9395 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9396 allocate a local ui_stream.
9397 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9398 instead of ui_stream/ui_out_stream_new.
9399 (list_args_or_locals): Don't allocate a local ui_stream.
9400 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9401 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9402 ui_stream/ui_out_stream_new.
9403 * cli/cli-setshow.c (do_setshow_command): Ditto.
9404
9405 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9406
9407 * arm-linux-tdep.c (arm_linux_init_abi): Call
9408 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9409 * arm-tdep.c (arm_process_record): New function.
9410 (deallocate_reg_mem): New function.
9411 (decode_insn): New function.
9412 (thumb_record_branch): New function.
9413 (thumb_record_ldm_stm_swi(): New function.
9414 (thumb_record_misc): New function.
9415 (thumb_record_ld_st_stack): New function.
9416 (thumb_record_ld_st_imm_offset): New function.
9417 (thumb_record_ld_st_reg_offset(): New function.
9418 (thumb_record_add_sub_cmp_mov): New function.
9419 (thumb_record_shift_add_sub): New function.
9420 (arm_record_coproc_data_proc): New function.
9421 (arm_record_coproc): New function.
9422 (arm_record_b_bl): New function.
9423 (arm_record_ld_st_multiple): New function.
9424 (arm_record_ld_st_reg_offset): New function.
9425 (arm_record_ld_st_imm_offset): New function.
9426 (arm_record_data_proc_imm): New function.
9427 (arm_record_data_proc_misc_ld_str): New function.
9428 (arm_record_extension_space): New function.
9429 (arm_record_strx): New function.
9430 (sbo_sbz): New function.
9431 (struct insn_decode_record): New structure for arm insn record.
9432 (REG_ALLOC): New macro for reg allocations.
9433 (MEM_ALLOC): New macro for memory allocations.
9434 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9435
9436 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9437
9438 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9439 (store_register): Likewise.
9440
9441 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9442
9443 * MAINTAINERS (Write After Approval): Add myself to the list.
9444
9445 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9446
9447 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9448 Describe also the option "auto".
9449
9450 2012-03-22 Richard Henderson <rth@redhat.com>
9451
9452 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9453 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9454
9455 2012-03-22 Richard Henderson <rth@redhat.com>
9456
9457 * jit.c (jit_read_code_entry): Compute alignment and offset of
9458 int64_t member before computing entry_size.
9459
9460 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9461
9462 Python scripting: Add new method Value.referenced_value to
9463 gdb.Value which can dereference pointer as well as reference
9464 values.
9465 * NEWS: Add entry under 'Python scripting' about the new method
9466 Value.referenced_value on gdb.Value objects.
9467 * python/py-value.c (valpy_referenced_value): New function
9468 defining a new method on gdb.Value objects which can dereference
9469 pointer and reference values.
9470
9471 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9472
9473 * MAINTAINERS (Write After Approval): Add myself to the list.
9474
9475 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9476
9477 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9478 in addition to "main".
9479
9480 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9481
9482 * expression.h (op_name): Add declaration.
9483 * expprint.c (op_name): Remove declaration. Make non-static.
9484 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9485
9486 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9487
9488 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9489 of struct siginfo.
9490 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9491 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9492 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9493 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9494 (linux_nat_get_siginfo): Likewise.
9495 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9496 (linux_nat_get_siginfo): Likewise.
9497 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9498 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9499 * procfs.c (gdb_siginfo_t): Likewise.
9500
9501 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9502
9503 * .gitignore: Ignore more files.
9504
9505 2012-03-20 Pedro Alves <palves@redhat.com>
9506
9507 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9508 returns.
9509
9510 2012-03-20 Yao Qi <yao@codesourcery.com>
9511
9512 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9513 comment.
9514
9515 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9516
9517 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9518 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9519 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9520 sect_offset.
9521 * dwarf2expr.h (cu_offset, sect_offset): New types.
9522 (struct dwarf_expr_context_funcs) <dwarf_call>
9523 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9524 sect_offset.
9525 (struct dwarf_expr_context) <len>: Improve the comment.
9526 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9527 cu_offset and sect_offset.
9528 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9529 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9530 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9531 * dwarf2loc.h: Include dwarf2expr.h.
9532 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9533 and sect_offset.
9534 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9535 Improve the comment.
9536 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9537 (struct signatured_type, struct line_header, struct partial_die_info)
9538 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9539 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9540 (get_die_type_at_offset, create_cus_from_index)
9541 (create_signatured_type_table_from_index, dw2_get_file_names)
9542 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9543 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9544 (create_debug_types_hash_table, process_psymtab_comp_unit)
9545 (load_partial_comp_unit, create_all_comp_units)
9546 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9547 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9548 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9549 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9550 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9551 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9552 (find_partial_die, read_attribute_value, lookup_die_type)
9553 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9554 (is_ref_attr): New function comment.
9555 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9556 Use cu_offset and sect_offset.
9557 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9558 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9559 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9560 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9561 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9562 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9563 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9564 sect_offset.
9565
9566 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9567
9568 Code cleanup.
9569 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9570 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9571 with xfree.
9572 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9573
9574 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9575
9576 * NEWS: Describe new options --init-command=FILE, -ix and
9577 --init-eval-command=COMMAND, -iex.
9578 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9579 CMDARG_INIT_COMMAND.
9580 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9581 "init-command", "init-eval-command", "ix" and "iex" to the variable
9582 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9583 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9584 (print_gdb_help): Describe --init-command=FILE, -ix and
9585 --init-eval-command=COMMAND, -iex.
9586
9587 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9588
9589 Code cleanup.
9590 * main.c (struct cmdarg): Move it here from main. Add more comments.
9591 (cmdarg_s, VEC (cmdarg_s)): New.
9592 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9593 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9594 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9595 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9596 of CMDARG.
9597
9598 2012-03-19 Tom Tromey <tromey@redhat.com>
9599
9600 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9601
9602 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9603
9604 PR symtab/13777
9605 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9606 GCC >=4.5.
9607
9608 2012-03-16 Chris January <chris.january@allinea.com>
9609
9610 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9611 of clear.
9612
9613 2012-03-16 Chris January <chris.january@allinea.com>
9614
9615 * source.c (add_path): Use memmove instead of strcpy because the
9616 strings overlap.
9617
9618 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9619
9620 * value.h (set_value_parent): Add declaration.
9621 * value.c (set_value_parent): New function.
9622 (value_address): If VALUE->PARENT is not NULL, then use it as
9623 the base address instead of VALUE->LOCATION.address.
9624 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9625 the same as OBJ's address. Adjust V's offset accordingly.
9626 Set V's parent.
9627
9628 2012-03-16 Gary Benson <gbenson@redhat.com>
9629
9630 PR breakpoints/10738
9631 * dwarf2read.c (use_deprecated_index_sections): New global.
9632 (struct partial_die_info): New member may_be_inlined.
9633 (read_partial_die): Set may_be_inlined where appropriate.
9634 (add_partial_subprogram): Add partial symbols for partial
9635 DIEs that may be inlined.
9636 (new_symbol_full): Add inlined subroutines to the current
9637 scope.
9638 (write_psymtabs_to_index): Bump version number.
9639 (dwarf2_read_index): Read only version 6 indices unless
9640 use_deprecated_index_sections is set.
9641 * linespec.c (symbol_and_data_callback): New structure.
9642 (iterate_inline_only): New function.
9643 (iterate_over_all_matching_symtabs): New argument
9644 "include_inline". If nonzero, also call the callback for
9645 symbols representing inlined subroutines.
9646 (lookup_prefix_sym): Pass extra argument to the above.
9647 (find_function_symbols): Likewise.
9648 (add_matching_symbols_to_info): Likewise.
9649 * NEWS: Mention that GDB can now set breakpoints on inlined
9650 functions.
9651
9652 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9653
9654 * p-typeprint.c (pascal_type_print_method_args):
9655 Fix display of parameter of methods.
9656
9657 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9658
9659 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9660 Add missing prototype.
9661
9662 2012-03-16 Yao Qi <yao@codesourcery.com>
9663 Jan Kratochvil <jan.kratochvil@redhat.com>
9664
9665 Fix false compilation warning.
9666 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9667
9668 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9669 Pedro Alves <pedro@codesourcery.com>
9670
9671 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9672 (arm_register_g_packet_guesses): New function.
9673 (arm_gdbarch_init): Don't force a target description with
9674 registers when the executable is detected as M-profile. Instead
9675 set gdbarch->tdep->is_m. Register `g' packet guesses.
9676 (_initialize_arm_tdep): Initialize the new target description.
9677 * features/arm-with-m-fpa-layout.xml: New description.
9678 * features/arm-with-m-fpa-layout.c: New, generated.
9679
9680 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9681
9682 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9683 Update function description.
9684 (insert_bp_location): Do not wipe bl->target_info out.
9685 * mem-break.c: #include "gdb_string.h".
9686 (default_memory_insert_breakpoint): Do not call target_read_memory
9687 with a pointer to the breakpoint's shadow_contents buffer. Use
9688 a local buffer instead.
9689 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9690
9691 2012-03-15 Tom Tromey <tromey@redhat.com>
9692
9693 * NEWS: Mention "info vtbl", not "info vtable".
9694 * cp-support.c (info_vtbl_command): Fix comment.
9695 (_initialize_cp_support): Fix text.
9696
9697 2012-03-15 Tom Tromey <tromey@redhat.com>
9698
9699 * cp-valprint.c (cp_print_value_fields): Use
9700 print_function_pointer_address for vtable slot.
9701
9702 2012-03-15 Tom Tromey <tromey@redhat.com>
9703
9704 * gnu-v3-abi.c (struct value_and_voffset): New.
9705 (hash_value_and_voffset, eq_value_and_voffset)
9706 (compare_value_and_voffset, compute_vtable_size)
9707 (print_one_vtable, gnuv3_print_vtable): New functions.
9708 (init_gnuv3_ops): Initialize 'print_vtable' field.
9709 * cp-support.c (info_vtbl_command): New function.
9710 (_initialize_cp_support): Add "info vtbl".
9711 * cp-abi.h (cplus_print_vtable): Declare.
9712 (struct cp_abi_ops) <print_vtable>: New field.
9713 * cp-abi.c (cplus_print_vtable): New function.
9714 * NEWS: Update.
9715
9716 2012-03-15 Tom Tromey <tromey@redhat.com>
9717
9718 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9719 iterate_over_symbols.
9720
9721 2012-03-14 Doug Evans <dje@google.com>
9722
9723 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9724 DW_OP_GNU_parameter_ref.
9725
9726 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9727
9728 Fix double prompt of 'interpreter-exec mi'.
9729 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9730 (mi_interpreter_resume): use it.
9731 (mi_execute_command_input_handler): New function.
9732 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9733 mi_execute_command_input_handler.
9734
9735 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9736
9737 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9738 prototype.
9739 (darwin_debug_port_info): Make static.
9740 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9741 * machoread.c (_initialize_machoread): Add prototype.
9742 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9743 (i386_darwin_set_control, i386_darwin_get_control)
9744 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9745 i386_darwin_get_status, i386_darwin_get_control):
9746 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9747
9748 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9749
9750 * ax-gdb.c (gen_usual_unary): Remove special handling of
9751 enum and bool types.
9752
9753 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9754
9755 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9756
9757 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9758
9759 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9760
9761 2012-03-13 Chris January <chris.january@allinea.com>
9762
9763 * aix-thread.c (fill_sprs): Store the floating point registers
9764 at the correct offsets into vals.
9765
9766 2012-03-13 Doug Evans <dje@google.com>
9767
9768 * NEWS: Mention symbol-reloading has been deleted.
9769 * symfile.c (symbol_reloading): Delete.
9770 (show_symbol_reloading): Delete.
9771 (_initialize_symfile): Delete set/show symbol-reloading.
9772
9773 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9774 read_in_chain until we have successfully read it in.
9775 (load_full_comp_unit): Ditto.
9776 (read_signatured_type): Add comment.
9777
9778 2012-03-13 Chris January <chris.january@allinea.com>
9779
9780 * stabsread.c (fix_common_block): Change type of valu argument
9781 to CORE_ADDR.
9782
9783 2012-03-13 Chris January <chris.january@allinea.com>
9784
9785 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9786 instruction.
9787
9788 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9789
9790 * common/linux-procfs.c (linux_proc_get_int): New, from
9791 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9792 field.
9793 (linux_proc_get_tgid): Only call linux_proc_get_int.
9794 (linux_proc_get_tracerpid): New.
9795 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9796 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9797 linux_proc_pid_has_state.
9798 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9799 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9800 (linux_ptrace_attach_warnings): New.
9801 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9802 New declaration.
9803 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9804 (linux_nat_attach): New variables ex, buffer, message and message_s.
9805 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9806
9807 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9808
9809 * Makefile.in (linux-ptrace.o): New.
9810 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9811 from linux-nat.c.
9812 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9813 * common/linux-ptrace.c: New file.
9814 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9815 * config/arm/linux.mh: Likewise.
9816 * config/i386/linux.mh: Likewise.
9817 * config/i386/linux64.mh: Likewise.
9818 * config/ia64/linux.mh: Likewise.
9819 * config/m32r/linux.mh: Likewise.
9820 * config/m68k/linux.mh: Likewise.
9821 * config/mips/linux.mh: Likewise.
9822 * config/pa/linux.mh: Likewise.
9823 * config/powerpc/linux.mh: Likewise.
9824 * config/powerpc/ppc64-linux.mh: Likewise.
9825 * config/powerpc/spu-linux.mh: Likewise.
9826 * config/s390/s390.mh: Likewise.
9827 * config/sparc/linux.mh: Likewise.
9828 * config/sparc/linux64.mh: Likewise.
9829 * config/xtensa/linux.mh: Likewise.
9830 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9831 common/linux-procfs.c.
9832 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9833
9834 2012-03-13 Hui Zhu <teawater@gmail.com>
9835 Pedro Alves <palves@redhat.com>
9836
9837 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9838 CREATE_BREAKPOINT_FLAGS_INSERTED.
9839 (create_breakpoint_sal, create_breakpoints_sal)
9840 (base_breakpoint_create_breakpoints_sal)
9841 (tracepoint_create_breakpoints_sal)
9842 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9843 down.
9844 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9845 (ftrace_command, strace_command): Adjust.
9846 (create_tracepoint_from_upload): Pass
9847 CREATE_BREAKPOINT_FLAGS_INSERTED.
9848 * breakpoint.h (enum breakpoint_create_flags): New.
9849 (create_breakpoint): New flags parameter.
9850 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9851 * python/py-breakpoint.c (bppy_init): Adjust.
9852 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9853 * spu-tdep.c (spu_catch_start): Adjust.
9854
9855 2012-03-13 Pedro Alves <palves@redhat.com>
9856 Hui Zhu <teawater@gmail.com>
9857 Yao Qi <yao@codesourcery.com>
9858
9859 * remote.c (struct remote_state): New field `starting_up'.
9860 (remote_start_remote): Set and clear it.
9861 (remote_can_download_tracepoint): If starting up, return false.
9862
9863 2012-03-13 Yao Qi <yao@codesourcery.com>
9864
9865 * inferior.h (struct inferior): Remove fields any_syscall_count,
9866 syscalls_counts and total_syscalls_count. Move them to new
9867 struct catch_syscall_inferior_data in breakpoint.c.
9868 * breakpoint.c: Call DEF_VEC_I(int).
9869 (struct catch_syscall_inferior_data): New.
9870 (get_catch_syscall_inferior_data): New.
9871 (catch_syscall_inferior_data_cleanup): New.
9872 (insert_catch_syscall): Update to access data in
9873 struct catch_syscall_inferior_data.
9874 (insert_catch_syscall): Likewise.
9875 (remove_catch_syscall): Likewise.
9876 (remove_catch_syscall): Likewise.
9877 (is_syscall_catchpoint_enabled): Likewise.
9878 (add_catch_command): Likewise.
9879 (_initialize_breakpoint): Register cleanup.
9880 * breakpoint.h: Removed DEF_VEC_I(int).
9881 * dwarf2loc.c: Call DEF_VEC_I(int).
9882 * mi/mi-main.c: Likewise.
9883
9884 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9885
9886 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9887
9888 2012-03-12 Chris January <chris.january@allinea.com>
9889
9890 * aix-thread.c (_initialize_aix_thread): Add prototype.
9891 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9892 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9893
9894 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9895
9896 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9897 include of "amd64-nat.h".
9898
9899 2012-03-12 Tom Tromey <tromey@redhat.com>
9900
9901 * buildsym.c (record_pending_block): Now static.
9902 * buildsym.h: (record_pending_block): Remove.
9903
9904 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9905
9906 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9907
9908 2012-03-09 Tom Tromey <tromey@redhat.com>
9909
9910 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9911 producer_is_gxx_lt_4_6>: New fields.
9912 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9913
9914 2012-03-09 Tom Tromey <tromey@redhat.com>
9915
9916 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9917
9918 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9919
9920 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9921 prototype.
9922
9923 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9924
9925 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9926
9927 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9928
9929 Fix -Wmissing-prototypes build.
9930 * arm-linux-nat.c (get_thread_id): Make it static.
9931 * xtensa-linux-nat.c (get_thread_id): Likewise.
9932
9933 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9934
9935 * server.c (process_point_options): If a conditional expression
9936 is found, only print a message if remote_debug is nonzero.
9937
9938 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9939
9940 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9941 of internal error for unknown/unsupported types.
9942
9943 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9944
9945 Fix CU relative vs. absolute DIE offsets.
9946 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9947 offset to offset_in_cu.
9948 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9949 TYPE_OFFSET.
9950 (dwarf2_fetch_die_location_block): Rename parameter offset to
9951 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9952
9953 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9954
9955 * libunwind-frame.c: Rename to ...
9956 * ia64-libunwind-tdep.c: ... here.
9957 * libunwind-frame.h: Rename to ...
9958 * ia64-libunwind-tdep.h: ... here.
9959 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9960 ia64-libunwind-tdep.h.
9961 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9962 * README (--with-libunwind): Rename to ...
9963 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9964 * config.in: Regenerate.
9965 * configure: Regenerate.
9966 * configure.ac: New option --with-libunwind-ia64, make the
9967 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9968 Remove AC_DEFINE for HAVE_LIBUNWIND.
9969 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9970 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9971 Rename libunwind-frame in the general comment.
9972 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9973 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9974 Move forward declarations inside #ifndef. Rename libunwind-frame in
9975 the general comment.
9976 * ia64-tdep.c: Rename libunwind-frame.h #include to
9977 ia64-libunwind-tdep.h.
9978 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9979 (ia64_libunwind_descr): Rename libunwind-frame to
9980 ia64-libunwind-tdep in these function comments.
9981 * ia64-tdep.h: Rename libunwind-frame.h #include to
9982 ia64-libunwind-tdep.h.
9983 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9984 ia64-libunwind-tdep in that data comment.
9985
9986 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9987
9988 * libunwind-frame.h (struct frame_unwind): New declaration.
9989
9990 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9991
9992 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9993 "set breakpoint condition-evaluation" command.
9994
9995 2012-03-08 Tristan Gingold <gingold@adacore.com>
9996
9997 * sparc-stub.c: Move to stubs/
9998 * sh-stub.c: Likewise.
9999 * m68k-stub.c: Likewise.
10000 * m32r-stub.c: Likewise.
10001 * i386-stub.c: Likewise.
10002
10003 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10004
10005 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10006 linux_get_siginfo_type.
10007
10008 * m68klinux-nat.c: Include "gdb_proc_service.h".
10009 (PTRACE_GET_THREAD_AREA): Define.
10010 (ps_get_thread_area): New function.
10011
10012 2012-03-08 Yao Qi <yao@codesourcery.com>
10013
10014 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10015 `xsnprintf'.
10016 (remote_query_attached): Likewise.
10017 (remote_static_tracepoint_marker_at): Likewise.
10018 (remote_set_permissions): Likewise.
10019 (remote_detach_1, extended_remote_attach_1): Likewise.
10020 (send_g_packet, remote_vkill): Likewise.
10021 (extended_remote_disable_randomization): Likewise.
10022 (remote_add_target_side_condition): Likewise.
10023 (remote_insert_breakpoint): Likewise.
10024 (remote_remove_breakpoint): Likewise.
10025 (remote_insert_watchpoint): Likewise.
10026 (remote_remove_watchpoint): Likewise.
10027 (remote_insert_hw_breakpoint): Likewise.
10028 (remote_insert_hw_breakpoint): Likewise.
10029 (remote_remove_hw_breakpoint): Likewise.
10030 (remote_download_command_source): Likewise.
10031 (remote_download_tracepoint): Likewise.
10032 (remote_download_trace_state_variable): Likewise.
10033 (remote_disable_tracepoint): Likewise.
10034 (remote_trace_set_readonly_regions): Likewise.
10035 (remote_get_tracepoint_status): Likewise.
10036 (remote_trace_find): Likewise.
10037 (remote_get_trace_state_variable_value): Likewise.
10038 (remote_set_disconnected_tracing): Likewise.
10039 (remote_set_circular_trace_buffer): Likewise.
10040 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10041 (remote_use_agent): Likewise.
10042 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10043 Update callers.
10044
10045 2012-03-07 Pedro Alves <palves@redhat.com>
10046
10047 * NEWS: Mention QProgramSignals.
10048 * inferior.h (update_signals_program_target): Declare.
10049 * infrun.c: (update_signals_program_target): New.
10050 (handle_command): Update the target of the new program signals
10051 array changes.
10052 * remote.c (PACKET_QProgramSignals): New enum.
10053 (last_program_signals_packet): New global.
10054 (remote_program_signals): New.
10055 (remote_start_remote): Update the target with the program signals
10056 list.
10057 (remote_protocol_features): Add entry for QPassSignals.
10058 (remote_open_1): Free anc clear last_program_signals_packet.
10059 (init_remote_ops): Install remote_program_signals.
10060 * target.c (update_current_target): Adjust.
10061 (target_program_signals): New.
10062 * target.h (struct target_ops) <to_program_signals>: New field.
10063 (target_program_signals): Declare.
10064
10065 2012-03-07 Pedro Alves <palves@redhat.com>
10066
10067 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10068 extensions.
10069
10070 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10071
10072 * m68klinux-nat.c (getregs_supplies): Make static.
10073 (getfpregs_supplies): Likewise.
10074 (have_ptrace_getregs): Likewise.
10075
10076 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10077
10078 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10079 in call to get_die_type_at_offset.
10080
10081 2012-03-06 Stan Shebs <stan@codesourcery.com>
10082
10083 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10084 * mi/mi-cmd-disas.c: Ditto.
10085 * mi/mi-cmd-env.c: Ditto.
10086 * mi/mi-cmd-file.c: Ditto.
10087 * mi/mi-cmd-stack.c: Ditto.
10088 * mi/mi-cmd-target.c: Ditto.
10089 * mi/mi-cmd-var.c: Ditto.
10090 * mi/mi-cmds.c: Ditto.
10091 * mi/mi-cmds.h: Ditto.
10092 * mi/mi-console.c: Ditto.
10093 * mi/mi-getopt.c: Ditto.
10094 * mi/mi-getopt.h: Ditto.
10095 * mi/mi-interp.c: Ditto.
10096 * mi/mi-main.c: Ditto.
10097 * mi/mi-out.c: Ditto.
10098 * mi/mi-parse.c: Ditto.
10099 * mi/mi-parse.h: Ditto.
10100 * mi/mi-symbol-cmds.c: Ditto.
10101
10102 * mi/mi-getopt.h: Move mi_opt struct up.
10103 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10104 return.
10105 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10106
10107 2012-03-06 Tom Tromey <tromey@redhat.com>
10108
10109 * proc-service.c (ps_pglobal_lookup): Set the current program
10110 space.
10111
10112 2012-03-06 Pedro Alves <palves@redhat.com>
10113
10114 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10115
10116 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10117
10118 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10119
10120 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10121
10122 Code cleanup.
10123 * common/linux-osdata.c (linux_common_core_of_thread): New function
10124 comment.
10125 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10126 call by linux_common_core_of_thread.
10127 (linux_nat_core_of_thread_1): Remove.
10128 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10129 * linux-thread-db.c: Include linux-osdata.h.
10130 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10131 linux_common_core_of_thread.
10132
10133 2012-03-05 Tom Tromey <tromey@redhat.com>
10134
10135 * value.c (value_primitive_field): Don't fetch contents for
10136 non-virtual bases.
10137
10138 2012-03-05 Tom Tromey <tromey@redhat.com>
10139
10140 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10141
10142 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10143
10144 * s390-nat.c: Include "gregset.h".
10145
10146 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10147
10148 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10149 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10150 (libunwind_load): New variable so_error, use it for dlerror. Try to
10151 load also LIBUNWIND_SO_7.
10152
10153 2012-03-05 Pedro Alves <palves@redhat.com>
10154
10155 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10156 is not NULL, and remove resulting dead code.
10157
10158 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10159
10160 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10161 prologue to sh_analyze_prologue.
10162 (sh_analyze_prologue): Make better use of such an upper limit, and
10163 generally be more cautious about accessing memory.
10164
10165 2012-03-05 Tom Tromey <tromey@redhat.com>
10166
10167 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10168 _initialize_ia64_hpux_tdep.
10169
10170 2012-03-05 Pedro Alves <palves@redhat.com>
10171
10172 PR gdb/13766
10173
10174 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10175 the register state is clear, supply explicit zero, instead of
10176 marking the register unavailable.
10177
10178 2012-03-05 Tristan Gingold <gingold@adacore.com>
10179
10180 * NEWS: Mention OpenVMS ia64 new target.
10181
10182 2012-03-05 Tristan Gingold <gingold@adacore.com>
10183
10184 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10185 (ia64_unw_accessors, ia64_unw_rse_accessors)
10186 (ia64_libunwind_descr): Declare.
10187 * ia64-vms-tdep.c: New file.
10188 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10189 (ia64_libunwind_descr): Make them public.
10190 * configure.tgt: Add ia64-*-*vms*.
10191 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10192 (ALLDEPFILES): Add ia64-vms-tdep.c
10193
10194 2012-03-05 Tristan Gingold <gingold@adacore.com>
10195
10196 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10197 * remote.c (PACKET_qXfer_uib): New enum value.
10198 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10199 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10200 (_initialize_remote): Call add_packet_config_cmd for
10201 xfer:uib packet.
10202
10203 2012-03-05 Tristan Gingold <gingold@adacore.com>
10204
10205 * osabi.c (gdb_osabi_names): Add OpenVMS.
10206 (generic_elf_osabi_sniffer): Likewise.
10207 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10208
10209 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10210
10211 Removed unused code.
10212 * libunwind-frame.c (libunwind_frame_unwind)
10213 (libunwind_frame_base_address): Remove.
10214 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10215
10216 2012-03-04 Yao Qi <yao@codesourcery.com>
10217
10218 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10219 remove trailing new line.
10220 (agent_run_command, agent_run_command): Add _ markup.
10221 (agent_capability_check): Likewise.
10222
10223 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10224
10225 * breakpoint.c (set_condition_evaluation_mode): Set
10226 CONDITION_EVALUATION_MODE unconditionally.
10227
10228 2012-03-03 Yao Qi <yao@codesourcery.com>
10229
10230 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10231 * common/agent.h: Update declaration.
10232 * inf-child.c (inf_child_use_agent): New.
10233 (inf_child_can_use_agent): New.
10234 (inf_child_target): Initialize fields `to_use_agent'
10235 and `to_can_use_agent'.
10236 * agent.c (agent_new_objfile): New.
10237 (_initialize_agent): Add agent_new_objfile to new_objfile
10238 observer.
10239
10240 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10241 New.
10242 (linux_target_install_ops): Initialize field
10243 `to_static_tracepoint_markers_by_strid'.
10244 * remote.c (free_current_marker): Move it to ...
10245 * tracepoint.c (free_current_marker): ... here. New.
10246 (cleanup_target_stop): New.
10247 * tracepoint.h: Declare free_current_marker.
10248 * NEWS: Add one entry about `info static-tracepoint-marker'.
10249
10250 2012-03-03 Yao Qi <yao@codesourcery.com>
10251
10252 * common/agent.c (agent_loaded_p): New.
10253 (agent_look_up_symbols): New global.
10254 * common/agent.h: Declare agent_loaded_p.
10255
10256 2012-03-03 Yao Qi <yao@codesourcery.com>
10257
10258 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10259 (agent_capability_check, agent_capability_invalidate): New.
10260 (symbol_list): New array element.
10261 * common/agent.h (enum agent_capa): New.
10262 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10263
10264 2012-03-03 Yao Qi <yao@codesourcery.com>
10265
10266 * target.h (struct target_ops) <to_use_agent>: New field.
10267 (struct target_ops) <to_can_use_agent>: New field.
10268 (target_use_agent, target_can_use_agent): New macro.
10269 * target.c (update_current_target): Update.
10270 * remote.c: New enum `PACKET_QAgent'.
10271 (remote_protocol_features): Add a new element.
10272 (remote_use_agent, remote_can_use_agent): New.
10273 (init_remote_ops): Initialize field `can_use_agent' with
10274 remote_can_use_agent. Intiailize field `use_agent' with
10275 remote_use_agent.
10276 * common/agent.c (use_agent): New global.
10277 * common/agent.h: Declare it.
10278 * tracepoint.c (info_static_tracepoint_markers_command): Add
10279 comment.
10280 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10281 (COMMON_OBS): Add common/agent.o and agent.o
10282 (common-agent.o): New rule.
10283 * agent.c: New.
10284
10285 2012-03-03 Yao Qi <yao@codesourcery.com>
10286
10287 * common/agent.c: New.
10288 * common/agent.h: New.
10289 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10290 AC_CHECK_HEADERS.
10291 * configure, configh.in: Regenerated.
10292
10293 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10294
10295 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10296 unless it exists for this architecture.
10297
10298 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10299
10300 * language.h (struct language_defn): New "method" la_read_var_value.
10301 * findvar.c: #include "language.h".
10302 (default_read_var_value): Renames read_var_value. Rewrite
10303 function description.
10304 (read_var_value): New function.
10305 * value.h (default_read_var_value): Add prototype.
10306 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10307 New functions.
10308 (ada_language_defn): Add entry for la_read_var_value.
10309 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10310 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10311 language_defn structures to add entry for new la_read_var_value
10312 field.
10313
10314 2012-03-02 Tom Tromey <tromey@redhat.com>
10315 Pedro Alves <palves@redhat.com>
10316
10317 PR breakpoints/13776:
10318 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10319 breakpoints.
10320 (delete_longjmp_breakpoint_at_next_stop): New.
10321 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10322 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10323 before deleting the inferior. Add comments.
10324 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10325 breakpoints immediately, but only on next stop. Move that code
10326 next to where we mark other breakpoints for deletion.
10327
10328 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10329
10330 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10331 marker.
10332 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10333 violation.
10334
10335 2012-03-02 Pedro Alves <palves@redhat.com>
10336
10337 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10338
10339 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10340
10341 Fix -Wmissing-prototypes build.
10342 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10343 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10344 (gdbsim_has_memory): Likewise.
10345
10346 2012-03-02 Yao Qi <yao@codesourcery.com>
10347
10348 Fix -Wmissing-prototypes build.
10349 * charset.c (phony_iconv_open): Make static.
10350 (phony_iconv_close, phony_iconv): Likewise.
10351 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10352 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10353 prototype.
10354 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10355 * ser-mingw.c (create_select_thread): Make static.
10356 * windows-termcap.c (tgetent): New prototype.
10357 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10358
10359 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10360
10361 Fix -Wmissing-prototypes build.
10362 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10363 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10364 (_initialize_loadable): New prototypes.
10365
10366 2012-03-02 Doug Evans <dje@google.com>
10367
10368 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10369 abbrev table, read_comp_unit will do it.
10370
10371 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10372
10373 Fix -Wmissing-prototypes build.
10374 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10375 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10376 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10377 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10378 (_initialize_arm_symbian_tdep): New prototype.
10379 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10380 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10381 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10382 static.
10383 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10384 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10385 prototype.
10386 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10387 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10388 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10389 static.
10390 * moxie-tdep.c (moxie_process_record): Likewise.
10391 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10392 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10393 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10394 (_initialize_rl78_tdep): New prototype.
10395 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10396 (_initialize_rx_tdep): New prototype.
10397 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10398 (_initialize_darwin_solib): New prototype.
10399 * solib-spu.c: Include solib-spu.h.
10400 (_initialize_spu_solib): New prototype.
10401 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10402 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10403 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10404 (tic6x_software_single_step): Make it static.
10405 (_initialize_tic6x_tdep): New prototype.
10406
10407 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10408
10409 Fix -Wmissing-prototypes build.
10410 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10411 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10412
10413 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10414
10415 Fix -Wmissing-prototypes build.
10416 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10417 (frv_have_stopped_data_address): Remove.
10418
10419 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10420
10421 Fix -Wmissing-prototypes build.
10422 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10423 * sh-tdep.c: Include sh64-tdep.h.
10424 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10425 * sh64-tdep.c: Include sh64-tdep.h.
10426 * sh64-tdep.h: New file.
10427
10428 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10429
10430 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10431
10432 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10433
10434 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10435 sp_regnum once the gdbarch_init_osabi hook has been called.
10436
10437 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10438
10439 * mips-tdep.c (mips32_bc1_pc): New function.
10440 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10441 BPOSGE32 and BPOSGE64 instructions.
10442 (deal_with_atomic_sequence): Likewise.
10443 (mips32_instruction_has_delay_slot): Likewise.
10444
10445 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10446 Chris Dearman <chris@mips.com>
10447 Maciej W. Rozycki <macro@codesourcery.com>
10448 Joseph Myers <joseph@codesourcery.com>
10449
10450 * features/mips-dsp.xml: New file.
10451 * features/mips64-dsp.xml: New file.
10452 * features/mips-dsp-linux.xml: New file.
10453 * features/mips64-dsp-linux.xml: New file.
10454 * features/Makefile (WHICH): Add mips-dsp-linux and
10455 mips64-dsp-linux.
10456 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10457 * features/mips-dsp-linux.c: New file.
10458 * features/mips64-dsp-linux.c: New file.
10459 * regformats/mips-dsp-linux.dat: New file.
10460 * regformats/mips64-dsp-linux.dat: New file.
10461 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10462 registers.
10463 (mips64_linux_register_addr): Likewise.
10464 (mips64_linux_regsets_fetch_registers): Likewise.
10465 (mips64_linux_regsets_store_registers): Likewise.
10466 (mips64_linux_fetch_registers): Update call to
10467 mips64_linux_regsets_fetch_registers.
10468 (mips64_linux_store_registers): Update call to
10469 mips64_linux_regsets_store_registers.
10470 (mips_linux_read_description): Probe for DSP registers.
10471 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10472 and initialize_tdesc_mips64_dsp_linux.
10473 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10474 Remove padding of no longer used embedded register slots.
10475 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10476 (MIPS_RESTART_REGNUM): Redefine enum value.
10477 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10478 strings.
10479 (mips_tx39_reg_names): Likewise.
10480 (mips_linux_reg_names): New array of register names for Linux
10481 targets.
10482 (mips_register_name): Check for a null pointer in
10483 mips_processor_reg_names and return an empty string.
10484 (mips_register_type): Exclude embedded registers for the IRIX
10485 and Linux ABIs.
10486 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10487 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10488 DSP registers.
10489 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10490 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10491 (mips_gdbarch_init): Likewise. Initialize internal register
10492 indices for the Linux ABI. Use dynamic numbers to refer to
10493 registers, as applicable, while parsing the target description.
10494 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10495
10496 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10497
10498 * frame.h (read_frame_register_unsigned): Fix typo in function
10499 description.
10500
10501 2012-03-01 Pedro Alves <palves@redhat.com>
10502
10503 * jit-reader.in [!__cplusplus]
10504 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10505
10506 2012-03-01 Pedro Alves <palves@redhat.com>
10507
10508 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10509 * configure: Regenerate.
10510
10511 2012-03-01 Pedro Alves <palves@redhat.com>
10512
10513 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10514 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10515 (ftrace_command, strace_command): Make static.
10516 * d-lang.c (_initialize_d_language): Declare.
10517 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10518 * dwarf2loc.c (_initialize_dwarf2loc):
10519 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10520 * exec.c (exec_get_section_table): Make static.
10521 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10522 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10523 * inferior.c (remove_inferior_command, add_inferior_command)
10524 (clone_inferior_command): Make static.
10525 * linux-nat.c (linux_nat_thread_address_space)
10526 (linux_nat_core_of_thread): Make static.
10527 * linux-tdep.c (_initialize_linux_tdep): Declare.
10528 * objc-lang.c (_initialize_objc_lang): Declare.
10529 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10530 Make static.
10531 (_initialize_opencl_language): Declare.
10532 * record.c (_initialize_record): Declare.
10533 * remote.c (demand_private_info, remote_get_tib_address)
10534 (remote_supports_cond_tracepoints)
10535 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10536 Make static.
10537 * skip.c (_initialize_step_skip): Declare.
10538 * symtab.c (skip_prologue_using_lineinfo): Make static.
10539 * tracepoint.c (delete_trace_state_variable)
10540 (trace_variable_command, delete_trace_variable_command)
10541 (get_uploaded_tsv, find_matching_tracepoint_location)
10542 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10543 Make static.
10544 * value.c (pack_unsigned_long): Make static.
10545 * varobj.c (varobj_ensure_python_env): Make static.
10546 * windows-tdep.c (_initialize_windows_tdep): Declare.
10547 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10548
10549 2012-03-01 Pedro Alves <palves@redhat.com>
10550
10551 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10552 gdbarch parameter.
10553 (linux_init_abi): Install it as has_shared_address_space gdbarch
10554 callback.
10555
10556 2012-03-01 Pedro Alves <palves@redhat.com>
10557
10558 * observer.c (observer_test_first_notification_function)
10559 (observer_test_second_notification_function)
10560 (observer_test_third_notification_function): Add declarations.
10561
10562 2012-03-01 Pedro Alves <palves@redhat.com>
10563
10564 * common/signals.c (default_target_signal_to_host)
10565 (default_target_signal_from_host): Move ...
10566 * arch-utils.c: ... here.
10567 * arch-utils.h (default_target_signal_to_host)
10568 (default_target_signal_from_host): Declare.
10569
10570 * common/signals.c (target_signal_from_command): Move ...
10571 * infrun.c: ... here.
10572 * inferior.h (target_signal_from_command): Declare.
10573 * target.h (target_signal_from_command)
10574 (default_target_signal_from_host, default_target_signal_to_host):
10575 Delete declarations.
10576
10577 * common/signals.c (_initialize_signals): Delete.
10578
10579 2012-03-01 Pedro Alves <palves@redhat.com>
10580
10581 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10582 both __cplusplus and !__cplusplus.
10583
10584 2012-03-01 Pedro Alves <palves@redhat.com>
10585
10586 * psymtab.c (find_and_open_source): Delete declaration.
10587 * source.c (find_and_open_source): Move comment ...
10588 * source.h (find_and_open_source): ... to this new declaration.
10589
10590 2012-03-01 Pedro Alves <palves@redhat.com>
10591
10592 * inline-frame.c: Include inline-frame.h.
10593
10594 2012-03-01 Pedro Alves <palves@redhat.com>
10595
10596 * tui/tui-data.c (set_gen_win_origin): Delete.
10597 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10598 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10599
10600 2012-03-01 Pedro Alves <palves@redhat.com>
10601
10602 * remote.c (encode_actions): Delete declaration.
10603 * tracepoint.c (encode_actions): Make extern.
10604 * tracepoint.h (encode_actions): Declare.
10605
10606 2012-03-01 Pedro Alves <palves@redhat.com>
10607
10608 * python/py-breakpoint.c: Include python.h.
10609 * python/py-continueevent.c (create_continue_event_object): Make
10610 static.
10611 * python/py-lazy-string.c (stpy_get_type): Make static.
10612 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10613 Make static.
10614 * python/py-utils.c (unicode_to_target_python_string): Make
10615 static.
10616 * python/py-value.c: Include python.h.
10617
10618 2012-03-01 Pedro Alves <palves@redhat.com>
10619
10620 * inferior.c (delete_threads_of_inferior): Delete.
10621
10622 2012-03-01 Pedro Alves <palves@redhat.com>
10623
10624 Import fallback definitions from glibc.
10625
10626 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10627 ps_prochandle): Forward declare.
10628 (ps_err_e): Use glibc's comments.
10629 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10630 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10631 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10632 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10633 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10634 (struct ps_prochandle): Adjust comment.
10635
10636 2012-03-01 Pedro Alves <palves@redhat.com>
10637
10638 * ada-lang.c (ada_modulus_from_name): Delete.
10639 * ada-lex.l (lexer_init): Make static.
10640
10641 2012-03-01 Pedro Alves <palves@redhat.com>
10642
10643 PR gdb/13767
10644
10645 * frame.c (read_frame_register_unsigned): New.
10646 * frame.h (read_frame_register_unsigned): Declare.
10647 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10648 Handle it.
10649 (print_i387_control_word): New parameter `control_p'. Handle it.
10650 (i387_print_float_info): Handle unavailable float registers.
10651
10652 2012-03-01 Keith Seitz <keiths@redhat.com>
10653
10654 * linespec.c (decode_line_2): Sort the list of methods
10655 alphabetically before presenting the user with a selection
10656 menu.
10657
10658 2012-03-01 Doug Evans <dje@google.com>
10659
10660 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10661 has_namespace_info.
10662 (dwarf2_read_abbrevs): Remove corresponding initialization.
10663
10664 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10665
10666 * NEWS: Mention new python command class gdb.COMMAND_USER.
10667 * cli/cli-cmds.c (show_user): Print error when used on a python
10668 command.
10669 (init_cli_cmds): Update documentation strings for "show user" and
10670 "set/show max-user-call-depth" to clarify that it does not apply to
10671 python commands.
10672 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10673 error check.
10674 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10675 gdb python api.
10676 * top.c (execute_command): Only execute a user-defined command as a
10677 legacy macro if c->user_commands is set.
10678
10679 2012-03-01 Tom Tromey <tromey@redhat.com>
10680
10681 * valprint.h (struct generic_val_print_decorations): New.
10682 (generic_val_print): Declare.
10683 * valprint.c (generic_val_print): New function.
10684 * p-valprint.c (p_decorations): New global.
10685 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10686 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10687 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10688 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10689 * m2-valprint.c (m2_decorations): New global.
10690 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10691 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10692 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10693 TYPE_CODE_ERROR>: Call generic_val_print.
10694 * f-valprint.c (f_decorations): New global.
10695 (f_val_print): Use print_function_pointer_address.
10696 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10697 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10698 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10699 generic_val_print.
10700 * c-valprint.c (c_decorations): New global.
10701 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10702 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10703 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10704 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10705 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10706 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10707 case.
10708
10709 2012-03-01 Tom Tromey <tromey@redhat.com>
10710
10711 * valprint.c (val_print): Update.
10712 * p-valprint (pascal_val_print): Return void.
10713 * p-lang.h (pascal_val_print): Return void.
10714 * m2-valprint.c (m2_val_print): Return void.
10715 * m2-lang.h (m2_val_print): Return void.
10716 * language.h (struct language_defn) <la_val_print>: Return void.
10717 * language.c (unk_lang_val_print): Return void.
10718 * jv-valprint.c (java_val_print): Return void.
10719 * jv-lang.h (java_val_print): Return void.
10720 * f-valprint.c (f_val_print): Return void.
10721 * f-lang.h (f_val_print): Return void.
10722 * d-valprint.c (d_val_print): Return void.
10723 (dynamic_array_type): Update.
10724 * d-lang.h (d_val_print): Return void.
10725 * c-valprint.c (c_val_print): Return void.
10726 * c-lang.h (c_val_print): Return void.
10727 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10728 void.
10729 * ada-lang.h (ada_val_print): Return void.
10730
10731 2012-03-01 Tom Tromey <tromey@redhat.com>
10732
10733 * value.h (val_print): Return void.
10734 * valprint.c (val_print): Return void.
10735
10736 2012-03-01 Tom Tromey <tromey@redhat.com>
10737
10738 * value.h (common_val_print): Return void.
10739 * valprint.c (common_val_print): Return void.
10740
10741 2012-03-01 Tom Tromey <tromey@redhat.com>
10742
10743 * value.h (value_print): Return void.
10744 * valprint.c (value_print): Return void.
10745 * p-valprint.c (pascal_value_print): Return void.
10746 * p-lang.h (pascal_value_print): Return void.
10747 * language.h (struct language_defn) <la_value_print>: Return
10748 void.
10749 * language.c (unk_lang_value_print): Return void.
10750 * jv-valprint.c (java_value_print): Return void.
10751 * jv-lang.h (java_value_print): Return void.
10752 * f-valprint.c (c_value_print): Don't declare.
10753 Include c-lang.h.
10754 * c-valprint.c (c_value_print): Return void.
10755 * c-lang.h (c_value_print): Return void.
10756 * ada-valprint.c (ada_value_print): Return void.
10757 * ada-lang.h (ada_value_print): Return void.
10758
10759 2012-03-01 Tom Tromey <tromey@redhat.com>
10760
10761 * value.c (value_primitive_field): Handle virtual base classes.
10762
10763 2012-03-01 Tom Tromey <tromey@redhat.com>
10764
10765 * gdbtypes.h (struct vbase): Remove.
10766
10767 2012-03-01 Tom Tromey <tromey@redhat.com>
10768
10769 * c-valprint.c (print_function_pointer_address): Move...
10770 * valprint.c: ... here. Make non-static.
10771 * m2-valprint.c (print_function_pointer_address): Remove.
10772 * valprint.h (print_function_pointer_address): Declare.
10773
10774 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10775
10776 * NEWS: Document the fact that one can provide a condition when
10777 creating an Ada exception catchpoint.
10778
10779 2012-03-01 Tom Tromey <tromey@redhat.com>
10780
10781 * valprint.c (val_print_type_code_flags): Fix placement of
10782 trailing brace.
10783
10784 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10785
10786 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10787 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10788 environment variable before calling update-copyright.
10789
10790 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10791
10792 * gnulib/extra/update-copyright: Update to the latest from
10793 gnulib's git repository.
10794 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10795 variable to 2 instead of 1.
10796
10797 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10798
10799 * varobj.c (c_value_of_variable): Remove dead code.
10800
10801 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10802
10803 * ada-lex.p (processId): Do not modify already encoded IDs.
10804 Update function documentation.
10805
10806 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10807
10808 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10809 "name" with "struct symbol *name_sym".
10810 * ada-exp.y (write_var_or_type): Update call to
10811 ada_find_renaming_symbol.
10812 "name" with "struct symbol *name_sym". Adjust Implementation
10813 accordingly. Adjust the function documentation.
10814
10815 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10816
10817 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10818 * ada-lang.c (ada_find_any_type): Add advance declaration.
10819 Make static. Replace ada_find_any_symbol by
10820 ada_find_any_type_symbol.
10821 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10822 Improve function description. Make static.
10823 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10824 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10825
10826 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10827
10828 * ada-lang.c (struct tag_args): Delete.
10829 (ada_get_tsd_type): Function body moved up in source file.
10830 (ada_tag_name_1, ada_tag_name_2): Delete.
10831 (ada_get_tsd_from_tag): New function.
10832 (ada_tag_name_from_tsd): New function.
10833 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10834 to determine the tag name.
10835
10836 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10837
10838 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10839 declaration.
10840 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10841 function.
10842
10843 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10844
10845 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10846
10847 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10848
10849 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10850 full searches.
10851
10852 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10853
10854 * ada-lang.c (constrained_packed_array_type): If there is a
10855 parallel XA type, use it to determine the array index type.
10856
10857 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10858
10859 * ada-valprint.c (ada_val_print_1): If our value is a reference
10860 to an array descriptor, dereference it before converting it
10861 to a simple array.
10862
10863 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10864
10865 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10866 creating fixed value.
10867 (ada_value_ind, ada_coerce_ref, assign_component)
10868 (ada_evaluate_subexp): Remove call to unwrap_value before
10869 call to ada_to_fixed_value.
10870
10871 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10872
10873 * ada-lang.c (to_fixed_array_type): Set result's type name.
10874
10875 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10876
10877 * ada-lang.c (catch_ada_exception_command_split): Add new
10878 argument cond_string. Add support for condition at end of
10879 "catch exception" commands.
10880 (ada_decode_exception_location): Add new argument cond_string.
10881 Update call to catch_ada_exception_command_split.
10882 (create_ada_exception_catchpoint): Add new argument cond_string.
10883 Set the breakpoint condition if needed.
10884 (catch_ada_exception_command): Update call to
10885 ada_decode_exception_location.
10886 (ada_decode_assert_location): Add function documentation.
10887 Add support for condition at end of "catch assert" command.
10888 (catch_assert_command): Update calls to ada_decode_assert_location
10889 and create_ada_exception_catchpoint.
10890
10891 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10892
10893 Fix disp-step-syscall.exp: fork: single step over fork.
10894 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10895 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10896 comment, change parameters gdbarch and ptid to regcache. Remove
10897 parameter regcache, initialize gdbarch from regcache here.
10898 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10899 New functions.
10900 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10901 instead.
10902 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10903 'syscall'. Make the 'int' check more strict.
10904
10905 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10906
10907 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10908 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10909 (i386_linux_intx80_sysenter_syscall_record): ... here.
10910 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10911 Use the renamed function name.
10912
10913 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10914
10915 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10916 * breakpoint.c (until_break_command): Likewise.
10917 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10918 * infcall.c (call_function_by_hand): Likewise.
10919 * infcmd.c (finish_forward): Likewise.
10920 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10921
10922 2012-02-28 Tristan Gingold <gingold@adacore.com>
10923
10924 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10925 avoid variable assignments inside condition.
10926
10927 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10928
10929 Fix static analysis issue found by cppcheck.
10930 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10931 uninitialized BUF for size 2.
10932
10933 2012-02-27 Chris Dearman <chris@mips.com>
10934 Nathan Froyd <froydnj@codesourcery.com>
10935 Maciej W. Rozycki <macro@codesourcery.com>
10936
10937 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10938 (mips16_instruction_has_delay_slot): Likewise.
10939 (mips_segment_boundary): Likewise.
10940 (mips_adjust_breakpoint_address): Likewise.
10941 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10942
10943 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10944 Maciej W. Rozycki <macro@codesourcery.com>
10945
10946 * infrun.c (handle_inferior_event): Don't proceed through
10947 shared library trampolines if stepping at the machine
10948 instruction level.
10949
10950 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10951
10952 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10953 too.
10954
10955 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10956
10957 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10958 (sh_stub_unwind_sniffer): New functions.
10959 (sh_stub_unwind): New variable.
10960 (sh_gdbarch_init): Wire everything.
10961
10962 2012-02-27 Pedro Alves <palves@redhat.com>
10963
10964 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10965 (linux_nat_post_attach_wait): Adjust to use
10966 linux_proc_pid_is_stopped.
10967 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10968 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10969 based on pid_is_stopped from both linux-nat.c and
10970 gdbserver/linux-low.c, and renamed.
10971
10972 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10973
10974 * remote.c (remote_watchpoint_addr_within_range): New function.
10975 (init_remote_ops): Use it.
10976
10977 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10978
10979 * target.h (target_watchpoint_addr_within_range): Document macro.
10980
10981 2012-02-24 Pedro Alves <palves@redhat.com>
10982
10983 * stack.c (set_last_displayed_sal): Issue internal_error instead
10984 of warning, and issue it after clearing the last displayed sal.
10985
10986 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10987 Pedro Alves <palves@redhat.com>
10988
10989 * breakpoint.c (until_break_command): Install breakpoints after
10990 all frame manipulations.
10991
10992 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10993
10994 * remote.c (remote_supports_cond_breakpoints): New forward
10995 declaration.
10996 (remote_add_target_side_condition): New function.
10997 (remote_insert_breakpoint): Add target-side breakpoint
10998 conditional if supported.
10999 (remote_insert_hw_breakpoint): Likewise.
11000 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11001 hook.
11002
11003 * target.c (update_current_target): Inherit
11004 to_supports_evaluation_of_breakpoint_conditions.
11005 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11006
11007 * target.h (struct target_ops)
11008 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11009 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11010
11011 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11012 (condition_evaluation_both, condition_evaluation_auto,
11013 condition_evaluation_host, condition_evaluation_target,
11014 condition_evaluation_enums, condition_evaluation_mode_1,
11015 condition_evaluation_mode): New static globals.
11016 (translate_condition_evaluation_mode): New function.
11017 (breakpoint_condition_evaluation_mode): New function.
11018 (gdb_evaluates_breakpoint_condition_p): New function.
11019 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11020 (mark_breakpoint_modified): New function.
11021 (mark_breakpoint_location_modified): New function.
11022 (set_condition_evaluation_mode): New function.
11023 (show_condition_evaluation_mode): New function.
11024 (bp_location_compare_addrs): New function.
11025 (get_first_location_gte_addr): New helper function.
11026 (set_breakpoint_condition): Free condition bytecode if locations
11027 has become unconditional. Call mark_breakpoint_modified (...).
11028 (condition_command): Call update_global_location_list (1) for
11029 breakpoints.
11030 (breakpoint_xfer_memory): Use is_breakpoint (...).
11031 (is_breakpoint): New function.
11032 (parse_cond_to_aexpr): New function.
11033 (build_target_condition_list): New function.
11034 (insert_bp_location): Handle target-side conditional
11035 breakpoints and call build_target_condition_list (...).
11036 (update_inserted_breakpoint_locations): New function.
11037 (insert_breakpoint_locations): Handle target-side conditional
11038 breakpoints.
11039 (bpstat_check_breakpoint_conditions): Add comment.
11040 (bp_condition_evaluator): New function.
11041 (bp_location_condition_evaluator): New function.
11042 (print_breakpoint_location): Print information on where the condition
11043 will be evaluated.
11044 (print_one_breakpoint_location): Likewise.
11045 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11046 breakpoint location.
11047 (force_breakpoint_reinsertion): New functions.
11048 (update_global_location_list): Handle target-side breakpoint
11049 conditions.
11050 Reinsert locations that are already inserted if conditions have
11051 changed.
11052 (bp_location_dtor): Free agent expression bytecode.
11053 (disable_breakpoint): Call mark_breakpoint_modified (...).
11054 Call update_global_location_list (...) with parameter 1 for breakpoints.
11055 (disable_command): Call mark_breakpoint_location_modified (...).
11056 Call update_global_location_list (...) with parameter 1 for breakpoints.
11057 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11058 (enable_command): mark_breakpoint_location_modified (...).
11059 (_initialize_breakpoint): Update documentation and add
11060 condition-evaluation breakpoint subcommand.
11061
11062 * breakpoint.h: Include ax.h.
11063 (condition_list): New data structure.
11064 (condition_status): New enum.
11065 (bp_target_info) <cond_list>: New field.
11066 (bp_location) <condition_changed, cond_bytecode>: New fields.
11067 (is_breakpoint): New prototype.
11068
11069 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11070
11071 * remote.c (remote_state) <cond_breakpoints>: New field.
11072 (PACKET_ConditionalBreakpoints): New enum.
11073 (remote_cond_breakpoint_feature): New function.
11074 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11075 (remote_supports_cond_breakpoints): New function.
11076 (_initialize_remote): Add new packet configuration for
11077 target-side conditional breakpoints.
11078
11079 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11080
11081 * NEWS: Mention target-side conditional breakpoint support,
11082 new condition-evaluation breakpoint subcommand and remote
11083 packet extensions.
11084
11085 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11086
11087 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11088 number.
11089
11090 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11091
11092 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11093 (after_prologue): Remove.
11094
11095 2012-02-23 Tom Tromey <tromey@redhat.com>
11096
11097 * jv-valprint.c (java_val_print): Remove dead code.
11098
11099 2012-02-23 Tristan Gingold <gingold@adacore.com>
11100
11101 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11102 known_tasks_element and known_tasks_length fields.
11103 (read_known_tasks_array): Change argument type. Use pointer type
11104 and number of elements from DATA. Adjust.
11105 (read_known_tasks_list): Likewise.
11106 (get_known_tasks_addr): Remove.
11107 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11108 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11109 type and array length. Merge former get_known_tasks_addr code.
11110
11111 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11112
11113 PR backtrace/13716
11114 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11115 it after set_momentary_breakpoint.
11116
11117 2012-02-22 Sterling Augustine <saugustine@google.com>
11118
11119 PR 13689:
11120 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11121
11122 2012-02-22 Gary Benson <gbenson@redhat.com>
11123
11124 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11125 (find_slot_in_mapped_hash): Likewise.
11126
11127 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11128
11129 PR build/13638
11130 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11131 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11132 * configure: Regenerate.
11133
11134 2012-02-21 Tristan Gingold <gingold@adacore.com>
11135 Pedro Alves <palves@redhat.com>
11136
11137 * ia64-tdep.c: Do not include libunwind-ia64.h.
11138 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11139 Include libunwind-ia64.h instead of libunwind.h.
11140 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11141 for libunwind.h existence.
11142 * configure, config.in: Regenerate.
11143
11144 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11145
11146 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11147 instead of value_rtti_target_type.
11148 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11149 instead of value_rtti_target_type.
11150 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11151 value_rtti_target_type.
11152 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11153 (value_rtti_target_type): Rename to ...
11154 (value_rtti_indirect_type): ... here and make it indirect. Update
11155 function comment.
11156 * value.c (readjust_indirect_value_type): New function.
11157 (coerce_ref): Support for enclosing type setting for references
11158 with readjust_indirect_value_type.
11159 * value.h (readjust_value_type): New declaration.
11160 (value_rtti_target_type): Rename to ...
11161 (value_rtti_indirect_type): ... here.
11162
11163 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11164
11165 * MAINTAINERS (Write After Approval): Add myself to the list.
11166
11167 2012-02-20 Doug Evans <dje@google.com>
11168
11169 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11170 Rename objfile_p_char parameter to objfilep.
11171 (build_objfile_section_table): Result is now void. All callers
11172 updated.
11173 * objfiles.h (struct objfile): Tweak comments, whitespace.
11174 (build_objfile_section_table): Update.
11175
11176 * elfread.c (elf_symfile_segments): Fix warning text.
11177
11178 2012-02-20 Tom Tromey <tromey@redhat.com>
11179
11180 PR gdb/13498:
11181 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11182 particular set of file names once.
11183 (dw2_map_symbol_filenames): Likewise.
11184
11185 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11186
11187 Code cleanup.
11188 * main.c (write_files): Remove the declaration.
11189 (external_editor_command): Move the declaration ...
11190 [GDBTK] (external_editor_command): ... here. Fix the comment.
11191
11192 2012-02-20 Tom Tromey <tromey@redhat.com>
11193
11194 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11195 extraneous block.
11196
11197 2012-02-20 Tristan Gingold <gingold@adacore.com>
11198
11199 * darwin-nat.h (enum darwin_msg_state): Add comments.
11200
11201 2012-02-20 Tristan Gingold <gingold@adacore.com>
11202
11203 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11204 value.
11205
11206 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11207
11208 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11209 between function description and implementation.
11210
11211 2012-02-17 Tom Tromey <tromey@redhat.com>
11212
11213 PR python/12070:
11214 * python/py-event.c (event_object_getset): New global.
11215 (event_object_type): Reference it.
11216 * python/py-type.c (field_object_getset): New global.
11217 (field_object_type): Reference it.
11218 * python/python-internal.h (gdb_py_generic_dict): Declare.
11219 * python/py-utils.c (gdb_py_generic_dict): New function.
11220
11221 2012-02-17 Tristan Gingold <gingold@adacore.com>
11222
11223 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11224
11225 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11226
11227 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11228 TYPE_CALLING_CONVENTION annotation.
11229
11230 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11231
11232 * MAINTAINERS: Add rx to target ISA section.
11233 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11234 (ALLDEPFILES): Add rx-tdep.c.
11235
11236 2012-02-16 Tom Tromey <tromey@redhat.com>
11237
11238 * symfile.c (symbol_file_add_main_1): Use inferior's
11239 symfile_flags.
11240 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11241 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11242 inferior.
11243 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11244 inferior.
11245 (follow_exec): Use inferior's symfile_flags.
11246 * inferior.h (struct inferior) <symfile_flags>: New field.
11247
11248 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11249
11250 PR gdb/9734:
11251 * remote-sim.c (gdbsim_create_inferior): Call error() when
11252 sim_create_inferior() fails.
11253
11254 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11255
11256 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11257
11258 2012-02-16 Tom Tromey <tromey@redhat.com>
11259
11260 PR c++/13653:
11261 * thread.c (struct current_thread_cleanup) <was_removable>: New
11262 field.
11263 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11264 (make_cleanup_restore_current_thread): Initialize new field.
11265
11266 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11267
11268 * MAINTAINERS: Add rl78 to target ISA section.
11269 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11270 (ALLDEPFILES): Add rl78-tdep.c.
11271 * NEWS: Mention rl78 as a new target.
11272
11273 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11274
11275 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11276 data.
11277 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11278
11279 2012-02-15 Tom Tromey <tromey@redhat.com>
11280
11281 PR gdb/12659:
11282 * infcmd.c (registers_info): Print just the current register's
11283 name.
11284
11285 2012-02-15 Tom Tromey <tromey@redhat.com>
11286
11287 * python/py-symbol.c (sympy_value): Use _().
11288
11289 2012-02-15 Pedro Alves <palves@redhat.com>
11290
11291 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11292 output to be like native targets'.
11293 (remote_pid_to_str): Special case the null ptid.
11294
11295 2012-02-14 Stan Shebs <stan@codesourcery.com>
11296
11297 * NEWS: Mention enable count command.
11298 * breakpoint.h (struct breakpoint): New field enable_count.
11299 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11300 (enable_breakpoint): Add arg to call.
11301 (struct disp_data): New struct.
11302 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11303 (do_map_enable_once_breakpoint): Create a struct and pass it.
11304 (do_map_enable_delete_breakpoint): Ditto.
11305 (do_map_enable_count_breakpoint): New function.
11306 (enable_count_command): New function.
11307 (bpstat_stop_status): Decrement enable_count.
11308 (print_one_breakpoint_location): Report enable count.
11309 (_initialize_breakpoint): Add enable count command.
11310
11311 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11312
11313 * rl78-tdep.c (reggroups.h): Include.
11314 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11315 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11316 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11317 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11318 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11319 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11320 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11321 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11322 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11323 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11324 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11325 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11326 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11327 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11328 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11329 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11330 beginning of register list.
11331 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11332 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11333 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11334 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11335 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11336 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11337 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11338 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11339 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11340 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11341 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11342 the pseudo registers. Rearrange other pseudo registers too so
11343 that the bank registers appear at the end.
11344 (rl78_register_type): Account for the fact that the byte sized
11345 bank registers are now pseudo-registers.
11346 (rl78_register_name): Rearrange the register name array. Make
11347 initial set of raw banked registers inaccessible.
11348 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11349 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11350 case for copying bytes back and forth between raw and pseudo
11351 versions of the banked registers. Update other cases to reflect
11352 the changed names.
11353 (rl78_return_value): Update to account for changed names of
11354 raw registers.
11355 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11356 rl78_register_sim_regno().
11357
11358 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11359
11360 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11361 the name parameter being passed to find_pc_partial_function().
11362
11363 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11364
11365 * MAINTAINERS: Step down from being ia64 target maintainer.
11366
11367 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11368
11369 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11370 compilation warning.
11371
11372 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11373
11374 Fix crash on loaded shlibs without loaded exec_bfd.
11375 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11376 (set_section_command): Replace exec_bfd by p->bfd.
11377
11378 2012-02-10 Tom Tromey <tromey@redhat.com>
11379
11380 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11381 when we have a C++ qualified name.
11382
11383 2012-02-10 Pedro Alves <palves@redhat.com>
11384
11385 * inferior.c (inferior_pid_to_str): New.
11386 (print_inferior, inferior_command): Use it.
11387
11388 2012-02-10 Pedro Alves <palves@redhat.com>
11389
11390 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11391 the test CFLAGS.
11392 * configure: Regenerate.
11393
11394 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11395
11396 * linespec.c (decode_line_internal): Fix comment correctness.
11397
11398 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11399
11400 PR gdb/12953
11401 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11402 * amd64bsd-nat.c: Add support for debug registers (adapted from
11403 i386bsd-nat.c).
11404 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11405 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11406 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11407 (amd64bsd_dr_get_control): New functions.
11408 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11409 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11410 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11411 watchpoints initialization.
11412 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11413
11414 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11415
11416 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11417 flds_bnds.fields.
11418 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11419
11420 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11421
11422 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11423
11424 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11425
11426 * language.h (symbol_name_cmp_ftype): Renames
11427 symbol_name_match_p_ftype.
11428 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11429 la_get_symbol_name_match_p.
11430 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11431 ada_get_symbol_name_match_p. Update comment.
11432 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11433 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11434 Renames symbol_name_match_p. Update field type.
11435 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11436 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11437 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11438 "la_get_symbol_name_cmp" in comments.
11439 * language.c: Likewise.
11440
11441 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11442
11443 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11444 %eflags offset.
11445 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11446 (amd64_sol2_gregset32_reg_offs): Likewise.
11447
11448 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11449
11450 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11451 of the returned BFD is allocated by GDB.
11452
11453 2012-02-07 Tom Tromey <tromey@redhat.com>
11454
11455 PR python/12027:
11456 * python/python-internal.h (frame_object_type): Declare.
11457 * python/py-symbol.c (sympy_needs_frame): New function.
11458 (sympy_value): New function.
11459 (symbol_object_getset): Add "needs_frame".
11460 (symbol_object_methods): Add "value".
11461 * python/py-frame.c (frame_object_type): No longer static.
11462
11463 2012-02-07 Tom Tromey <tromey@redhat.com>
11464
11465 PR python/13599:
11466 * python/py-symbol.c (sympy_line): New function.
11467 (symbol_object_getset): Add "line".
11468
11469 2012-02-07 Tom Tromey <tromey@redhat.com>
11470
11471 * charset.c (find_charset_names): Check 'in' against NULL.
11472
11473 2012-02-06 Doug Evans <dje@google.com>
11474
11475 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11476 and fields.name members from char * to const char *. All uses updated.
11477 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11478 from char * to const char *. All uses updated.
11479 (type_name_no_tag): Update.
11480 (lookup_unsigned_typename, lookup_signed_typename): Update.
11481 * gdbtypes.c (type_name_no_tag): Change result type
11482 from char * to const char *. All callers updated.
11483 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11484 name parameter from char * to const char *.
11485 * symtab.h (struct cplus_specific): Change type of demangled_name
11486 member from char * to const char *. All uses updated.
11487 (struct general_symbol_info): Change type of name and
11488 mangled_lang.demangled_name members from char * to const char *.
11489 All uses updated.
11490 (symbol_get_demangled_name, symbol_natural_name): Update.
11491 (symbol_demangled_name, symbol_search_name): Update.
11492 * symtab.c (symbol_get_demangled_name): Change result type
11493 from char * to const char *. All callers updated.
11494 (symbol_natural_name, symbol_demangled_name): Ditto.
11495 (symbol_search_name): Ditto.
11496 (completion_list_add_name): Change type of symname,sym_text,
11497 text,word parameters from char * to const char *.
11498 (completion_list_objc_symbol): Change type of sym_text,
11499 text,word parameters from char * to const char *.
11500 * ada-lang.c (find_struct_field): Change type of name parameter
11501 from char * to const char *.
11502 (encoded_ordered_before): Similarly for N0,N1 parameters.
11503 (old_renaming_is_invisible): Similarly for function_name parameter.
11504 (ada_type_name): Change result type from char * to const char *.
11505 All callers updated.
11506 * ada-lang.h (ada_type_name): Update.
11507 * buildsym.c (hashname): Change type of name parameter
11508 from char * to const char *.
11509 * buildsym.h (hashname): Update.
11510 * dbxread.c (end_psymtab): Change type of include_list parameter
11511 from char ** to const char **.
11512 * dwarf2read.c (determine_prefix): Change result type
11513 from char * to const char *. All callers updated.
11514 * f-lang.c (find_common_for_function): Change type of name, funcname
11515 parameters from char * to const char *.
11516 * f-lang.c (find_common_for_function): Update.
11517 * f-valprint.c (list_all_visible_commons): Change type of funcname
11518 parameters from char * to const char *.
11519 * gdbarch.sh (static_transform_name): Change type of name parameter
11520 and result from char * to const char *.
11521 * gdbarch.c: Regenerate.
11522 * gdbarch.h: Regenerate.
11523 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11524 of name parameter from char * to const char *.
11525 * jv-lang.c (java_primitive_type_from_name): Ditto.
11526 (java_demangled_signature_length): Similarly for signature parameter.
11527 (java_demangled_signature_copy): Ditto.
11528 (java_demangle_type_signature): Ditto.
11529 * jv-lang.h (java_primitive_type_from_name): Update.
11530 (java_demangle_type_signature): Update.
11531 * objc-lang.c (specialcmp): Change type of a,b parameters
11532 from char * to const char *.
11533 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11534 from char * to const char *. All callers updated.
11535 * p-lang.h (is_pascal_string_type): Update.
11536 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11537 of name parameter from char * to const char *.
11538 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11539 * utils.c (fprintf_symbol_filtered): Ditto.
11540 * defs.h (fprintf_symbol_filtered): Update.
11541 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11542 * stabsread.h (end_psymtab): Update.
11543 * stack.c (find_frame_funname): Change type of funname parameter
11544 from char ** to const char **.
11545 * stack.h (find_frame_funname): Update.
11546 * typeprint.c (type_print): Change type of varstring parameter
11547 from char * to const char *.
11548 * value.h (type_print): Update.
11549 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11550 from char * to const char *. All callers updated.
11551 (xcoff_end_psymtab): Change type of include_list parameter
11552 from char ** to const char **. All callers updated.
11553 (swap_sym): Similarly for name parameter. All callers updated.
11554 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11555 Use xstrdup.
11556 (process_coff_symbol): Use xstrdup.
11557 * stabsread.c (stabs_method_name_from_physname): Renamed from
11558 update_method_name_from_physname. Change result type from void
11559 to char *. All callers updated.
11560 (read_member_functions): In has_destructor case, store name in objfile
11561 obstack instead of malloc space. In !has_stub case, fix mem leak.
11562
11563 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11564
11565 * configure: Rebuild.
11566 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11567 LDFLAGS.
11568
11569 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11570
11571 * configure.tgt (rl78-*-elf): New target.
11572 * rl78-tdep.c: New file.
11573
11574 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11575
11576 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11577 and continue the loop. Add QUIT statement.
11578
11579 2012-02-03 Tom Tromey <tromey@redhat.com>
11580
11581 PR gdb/13596:
11582 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11583 bfd_lookup_symbol_from_symtab.
11584 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11585 gdb_bfd_lookup_symbol_from_symtab.
11586
11587 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11588
11589 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11590 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11591 symbol. Add assertion that sym2 is never NULL.
11592
11593 2012-02-02 Doug Evans <dje@google.com>
11594
11595 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11596 "name" parameter to const char ** from char **. All callers updated.
11597 (find_pc_partial_function): Ditto.
11598 (cache_pc_function_name): Change type to const char * from char *.
11599 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11600 (find_pc_partial_function): Update.
11601 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11602 type of "name" parameter to const char * from char *.
11603 All uses updated.
11604 * arch-utils.c (generic_in_solib_return_trampoline): Change
11605 type of "name" parameter to const char * from char *.
11606 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11607 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11608 type of "name" parameter to const char * from char *.
11609 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11610 * gdbarch.c: Regenerate.
11611 * gdbarch.h: Regenerate.
11612 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11613 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11614 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11615 type of "name" parameter to const char * from char *.
11616 * skip.c (skip_function_pc): Ditto.
11617 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11618 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11619 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11620 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11621 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11622 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11623 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11624 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11625 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11626
11627 2012-02-02 Pedro Alves <palves@redhat.com>
11628
11629 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11630 the current inferior has no execution. Make sure the current
11631 remote process matches gdb's current inferior.
11632
11633 2012-02-02 Tom Tromey <tromey@redhat.com>
11634
11635 PR gdb/13405:
11636 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11637 read-only memory.
11638
11639 2012-02-02 Tom Tromey <tromey@redhat.com>
11640
11641 PR gdb/9307:
11642 * symtab.c (lookup_language_this): Set block_found.
11643
11644 2012-02-01 Tom Tromey <tromey@redhat.com>
11645
11646 PR gdb/13431:
11647 * jit.c (struct jit_inferior_data): Rewrite.
11648 (struct jit_objfile_data): New.
11649 (get_jit_objfile_data): New function.
11650 (add_objfile_entry): Update.
11651 (jit_read_descriptor): Return int. Replace descriptor_addr
11652 argument with inf_data. Update. Don't call error.
11653 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11654 descriptor here.
11655 (jit_inferior_init): Don't look up descriptor. Don't call error.
11656 (jit_reset_inferior_data_and_breakpoints)
11657 (jit_inferior_created_observer): Remove.
11658 (jit_inferior_exit_hook): Update.
11659 (jit_executable_changed_observer): Remove.
11660 (jit_event_handler): Update.
11661 (free_objfile_data): Reset inferior data if needed.
11662 (_initialize_jit): Update.
11663
11664 2012-02-01 Tom Tromey <tromey@redhat.com>
11665
11666 * jit.c (bfd_open_from_target_memory): Move higher in file.
11667
11668 2012-02-01 Tristan Gingold <gingold@adacore.com>
11669
11670 * libunwind-frame.c (libunwind_load): Display message if dlopen
11671 failed.
11672
11673 2012-02-01 Gary Benson <gbenson@redhat.com>
11674
11675 * symtab.h (symbol_found_callback_ftype): New typedef.
11676 (iterate_over_symbols): Use the above.
11677 * symtab.c (iterate_over_symbols): Likewise.
11678 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11679 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11680 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11681 (iterate_name_matcher): Document return values.
11682 (collect_one_symbol): Likewise.
11683 (collect_function_symbols): Likewise.
11684 (collect_symbols): Likewise.
11685
11686 2012-02-01 Tom Tromey <tromey@redhat.com>
11687
11688 * ada-lang.c (resolve_subexp): Update.
11689 (ada_lookup_symbol_list): Add 'full_search' argument.
11690 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11691 ada_lookup_symbol_list.
11692 (ada_lookup_encoded_symbol): Update.
11693 (get_var_value): Update.
11694 * ada-exp.y (block_lookup): Update.
11695 (write_var_or_type): Update.
11696 (write_name_assoc): Update.
11697 * ada-lang.h (ada_lookup_symbol_list): Update.
11698
11699 2012-01-31 Tom Tromey <tromey@redhat.com>
11700
11701 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11702 comment.
11703
11704 2012-01-31 Doug Evans <dje@google.com>
11705
11706 * symtab.h: Remove outdated comment.
11707 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11708
11709 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11710
11711 Fix build error in Darwin port.
11712 * i386-darwin-nat.c: Include i386-nat.h.
11713
11714 2012-01-30 Tom Tromey <tromey@redhat.com>
11715
11716 PR breakpoints/13568:
11717 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11718 argument. Check for recursive includes.
11719 (dwarf_decode_macros): Create an include hash.
11720
11721 2012-01-30 Michael Eager <eager@eagercon.com>
11722
11723 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11724 * ppc-linux-tdep.c: Include glibc-tdep.h.
11725 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11726 (powerpc_linux_in_plt_stub): New function.
11727 (powerpc_linux_in_dynsym_resolve_code): New function.
11728 (ppc_skip_trampoline_code): New function.
11729 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11730 Use glibc_skip_solib_resolver.
11731
11732 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11733
11734 Code cleanup: Make 1440 bytes of data segment read-only.
11735 * arch-utils.c (endian_enum): Make it const char *const [].
11736 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11737 Likewise.
11738 * breakpoint.c (always_inserted_enums): Likewise.
11739 * cli/cli-cmds.c (script_ext_enums): Likewise.
11740 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11741 enumlist parameter const char *const *.
11742 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11743 const char *const *.
11744 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11745 parameter const char *const *.
11746 * cris-tdep.c (cris_modes): Make it const char *const [].
11747 * filesystem.c (target_file_system_kinds): Likewise.
11748 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11749 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11750 (can_use_displaced_stepping_enum, scheduler_enums)
11751 (exec_direction_names): Likewise.
11752 * language.c (_initialize_language): Make the type_or_range_names and
11753 case_sensitive_names variables const char *const [].
11754 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11755 * python/python.c (python_excp_enums): Likewise.
11756 * remote.c (interrupt_sequence_modes): Likewise.
11757 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11758 * serial.c (logbase_enums): Likewise.
11759 * sh-tdep.c (sh_cc_enum): Likewise.
11760 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11761 Likewise.
11762 * symtab.c (multiple_symbols_modes): Likewise.
11763 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11764 Likewise.
11765 * utils.c (internal_problem_modes): Likewise.
11766
11767 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11768
11769 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11770 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11771 result.
11772
11773 2012-01-27 Doug Evans <dje@google.com>
11774
11775 * configure.ac (with_python): Fix absolute path handling for win32.
11776 * configure: Regenerate.
11777
11778 2012-01-26 Doug Evans <dje@google.com>
11779
11780 * symtab.c: Whitespace cleanup, no code changes.
11781
11782 * symtab.c (lookup_symbol_in_language): Improve comment.
11783 (lookup_symbol_aux): Fix comment.
11784
11785 * psymtab.c (add_psymbol_to_list): Result is now "void".
11786 * psympriv.h (add_psymbol_to_list): Update.
11787
11788 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11789
11790 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11791
11792 Do not open script filenames twice.
11793 * cli/cli-cmds.c (source_script_from_stream): Pass to
11794 source_python_script also STREAM.
11795 * python/py-auto-load.c (source_section_scripts): Pass to
11796 source_python_script_for_objfile also STREAM.
11797 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11798 also INPUT.
11799 * python/python-internal.h (source_python_script_for_objfile): New
11800 parameter file, rename parameter file to filename.
11801 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11802 instead if !_WIN32. Update the function comment.
11803 (source_python_script, source_python_script_for_objfile)
11804 (source_python_script): New parameter file, rename parameter file to
11805 filename. Pass FILENAME to python_run_simple_file.
11806 * python/python.h (source_python_script): New parameter file, rename
11807 parameter file to filename.
11808
11809 2012-01-26 Pedro Alves <palves@redhat.com>
11810
11811 * corelow.c (core_has_fake_pid): Delete.
11812 (core_close): Delete references to `core_has_fake_pid'.
11813 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11814 (core_open): Delete references to `core_has_fake_pid'.
11815 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11816 the removed global.
11817
11818 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11819
11820 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11821 Remove language parameter from name_matcher. Adjust the comment.
11822 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11823 Remove language parameter.
11824 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11825 * linespec.c (iterate_name_matcher): Likewise.
11826 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11827 name_matcher. Adjust call accordingly.
11828 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11829 (maintenance_check_symtabs): Adjust type of parameter "fun".
11830 * psymtab.h (maintenance_check_symtabs): Likewise.
11831
11832 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11833
11834 * language.h (symbol_name_match_p_ftype): New typedef.
11835 (struct language_defn): Replace field la_symbol_name_compare
11836 by la_get_symbol_name_match_p.
11837 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11838 (ada_language_defn): Use it.
11839 * linespec.c (struct symbol_matcher_data): New type.
11840 (iterate_name_matcher): Rewrite.
11841 (iterate_over_all_matching_symtabs): Pass a pointer to
11842 a symbol_matcher_data struct to expand_symtabs_matching
11843 instead of just the lookup name.
11844 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11845 opencl-lang.c, p-lang.c, language.c: Delete field
11846 la_symbol_name_compare, and replace by NULL for new field
11847 la_get_symbol_name_match_p.
11848 * symfile.h (struct quick_symbol_functions): Update comment.
11849
11850 2012-01-25 Tom Tromey <tromey@redhat.com>
11851
11852 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11853 dereferencing.
11854
11855 2012-01-24 Tom Tromey <tromey@redhat.com>
11856
11857 PR symtab/12406:
11858 * solib.c (update_solib_list): Update the program space's
11859 added_solibs and deleted_solibs fields.
11860 * progspace.h (struct program_space) <added_solibs,
11861 deleted_solibs>: New fields.
11862 (clear_program_space_solib_cache): Declare.
11863 * progspace.c (release_program_space): Call
11864 clear_program_space_solib_cache.
11865 (clear_program_space_solib_cache): New function.
11866 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11867 bpstat_stop_status. Use handle_solib_event.
11868 * breakpoint.c: Include gdb_regex.h.
11869 (print_solib_event): New function.
11870 (bpstat_print): Use print_solib_event.
11871 (bpstat_stop_status): Add special case for bp_shlib_event.
11872 (handle_solib_event): New function.
11873 (bpstat_what): Use handle_solib_event.
11874 (struct solib_catchpoint): New.
11875 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11876 (breakpoint_hit_catch_solib, check_status_catch_solib)
11877 (print_it_catch_solib, print_one_catch_solib)
11878 (print_mention_catch_solib, print_recreate_catch_solib): New
11879 functions.
11880 (catch_solib_breakpoint_ops): New global.
11881 (catch_load_or_unload, catch_load_command_1)
11882 (catch_unload_command_1): New functions.
11883 (internal_bkpt_check_status): Add special case for
11884 bp_shlib_event.
11885 (internal_bkpt_print_it): Use print_solib_event.
11886 (initialize_breakpoint_ops): Initialize
11887 catch_solib_breakpoint_ops.
11888 (_initialize_breakpoint): Register "catch load" and "catch
11889 unload".
11890 * breakpoint.h (handle_solib_event): Declare.
11891 * NEWS: Add entry for "catch load" and "catch unload".
11892
11893 2012-01-24 Tom Tromey <tromey@redhat.com>
11894
11895 * ada-lang.c: Include gdb_vecs.h.
11896 * charset.c: Include gdb_vecs.h.
11897 * tracepoint.h: Include gdb_vecs.h.
11898 * gdb_vecs.h: New file.
11899
11900 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11901
11902 * breakpoint.c (breakpoint_hit_catch_fork)
11903 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11904 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11905 * infrun.c (inferior_has_forked, inferior_has_vforked)
11906 (inferior_has_execd, inferior_has_called_syscall): Delete.
11907 (handle_syscall_event): Get syscall_number from the execution
11908 control state's wait status.
11909 (wait_for_inferior): Don't clear syscall_number.
11910
11911 2012-01-24 Pedro Alves <palves@redhat.com>
11912
11913 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11914 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11915 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11916 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11917 `ws' parameter.
11918 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11919 false for events other than TARGET_SIGNAL_TRAP.
11920 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11921 Add `ws' parameter.
11922 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11923 events other than TARGET_SIGNAL_TRAP.
11924 (tracepoint_breakpoint_hit): Add `ws' parameter.
11925 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11926 parameter.
11927 (bpstat_stop_status): Same.
11928 (pc_at_non_inline_function): Same.
11929 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11930 to pass the current event's waitstatus to bpstat_stop_status
11931 and pc_at_non_inline_function.
11932
11933 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11934
11935 Code cleanup.
11936 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11937 Update the function comment for it.
11938 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11939 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11940 for STREAM.
11941
11942 2012-01-24 Pedro Alves <palves@redhat.com>
11943
11944 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11945 outside `bs->stop' block.
11946 (bpstat_what): Rework bp_shlib_event handling.
11947 (internal_bkpt_check_status): If the breakpoint is a
11948 bp_shlib_event, then set bs->stop and bs->print if
11949 stop_on_solib_events is set.
11950
11951 2012-01-24 Gary Benson <gbenson@redhat.com>
11952
11953 Delete #if 0'd out code.
11954 * stack.c (print_frame_label_vars): Remove.
11955 (catch_info): Likewise.
11956 (_initialize_stack): Remove "info catch" command.
11957 * NEWS: Mention the above.
11958
11959 2012-01-24 Pedro Alves <palves@redhat.com>
11960
11961 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11962 it.
11963 (remote_notice_new_inferior): If the remote end doesn't support
11964 the multiprocess extensions, then the PID is fake.
11965 (add_current_inferior_and_thread): New.
11966 (remote_start_remote): Use it.
11967 (extended_remote_attach_1): Adjust.
11968 (extended_remote_create_inferior_1): Use
11969 add_current_inferior_and_thread.
11970
11971 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11972
11973 Fix watchpoints to be specific for each inferior.
11974 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11975 current_program_space.
11976 * i386-nat.c (i386_inferior_data_cleanup): New.
11977 (i386_inferior_data_get): Replace variable inf_data_local by an
11978 inferior_data call.
11979 (i386_use_watchpoints): Initialize i386_inferior_data.
11980 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11981 specific iterate_over_lwps.
11982
11983 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11984
11985 Fix watchpoints across inferior fork.
11986 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11987 comment for linux_nat_iterate_watchpoint_lwps.
11988 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11989 linux_nat_iterate_watchpoint_lwps.
11990 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11991 * i386-linux-nat.c (update_debug_registers_callback): Update the
11992 comment for linux_nat_iterate_watchpoint_lwps.
11993 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11994 linux_nat_iterate_watchpoint_lwps.
11995 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11996 * i386-nat.c: Include inferior.h.
11997 (dr_mirror): Remove.
11998 (i386_inferior_data, struct i386_inferior_data)
11999 (i386_inferior_data_get): New.
12000 (i386_debug_reg_state): Use i386_inferior_data_get.
12001 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12002 (i386_insert_watchpoint, i386_remove_watchpoint)
12003 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12004 (i386_remove_hw_breakpoint): New variable state, use
12005 i386_debug_reg_state instead of DR_MIRROR.
12006 * linux-nat.c (delete_lwp): New declaration.
12007 (num_lwps): Move here from downwards.
12008 (delete_lwp_cleanup): New.
12009 (linux_child_follow_fork): Create new child_lp, call
12010 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12011 PTRACE_DETACH.
12012 (num_lwps): Move upwards.
12013 (linux_nat_iterate_watchpoint_lwps): New.
12014 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12015 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12016
12017 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12018
12019 GDB 7.4 released.
12020
12021 2012-01-23 Pedro Alves <palves@redhat.com>
12022
12023 * top.c (caution): Rename to ...
12024 (confirm): ... this.
12025 (show_caution): Rename to ...
12026 (show_confirm): ... this.
12027 (quit_cover): Adjust.
12028 (init_main): Adjust.
12029 * top.h (caution): Rename to ...
12030 (confirm): ... this.
12031 * utils.c (internal_vproblem, defaulted_query): Adjust.
12032
12033 2012-01-23 Pedro Alves <palves@redhat.com>
12034
12035 * top.c (caution): Update comment.
12036 (execute_command): Don't consider the current value of `caution'.
12037
12038 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12039
12040 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12041
12042 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12043
12044 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12045 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12046 * target.c (target_fileio_pwrite): Remove buffer address from
12047 debug output.
12048 (target_fileio_pread): Likewise.
12049
12050 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12051
12052 * NEWS: Document remote "info proc" and "generate-core-file".
12053
12054 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12055
12056 * gdbarch.sh (find_memory_regions): New callback.
12057 * gdbarch.c, gdbarch.h: Regenerate.
12058
12059 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12060 callback before falling back to target method.
12061
12062 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12063 (linux_target_install_ops): No longer install it.
12064
12065 * linux-tdep.c (linux_find_memory_regions): New function.
12066 (linux_init_abi): Install it.
12067
12068 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12069
12070 * gdbarch.sh (make_corefile_notes): New architecture callback.
12071 * gdbarch.c: Regenerate.
12072 * gdbarch.h: Likewise.
12073
12074 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12075 before target_make_corefile_notes. If NULL is returned, the
12076 target does not support core file generation.
12077
12078 * linux-nat.c: Include "linux-tdep.h".
12079 (find_signalled_thread, find_stop_signal): Remove.
12080 (linux_nat_do_thread_registers): Likewise.
12081 (struct linux_nat_corefile_thread_data): Likewise.
12082 (linux_nat_corefile_thread_callback): Likewise.
12083 (iterate_over_spus): Likewise.
12084 (struct linux_spu_corefile_data): Likewise.
12085 (linux_spu_corefile_callback): Likewise.
12086 (linux_spu_make_corefile_notes): Likewise.
12087 (linux_nat_collect_thread_registers): New function.
12088 (linux_nat_make_corefile_notes): Replace contents by call to
12089 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12090 as native-only callback.
12091
12092 * linux-tdep.h: Include "bfd.h".
12093 (struct regcache): Add forward declaration.
12094 (linux_collect_thread_registers_ftype): New typedef.
12095 (linux_make_corefile_notes): Add prototype.
12096 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12097 "regset.h", and "elf-bfd.h".
12098 (find_signalled_thread, find_stop_signal): New functions.
12099 (linux_spu_make_corefile_notes): Likewise.
12100 (linux_collect_thread_registers): Likewise.
12101 (struct linux_corefile_thread_data): New data structure.
12102 (linux_corefile_thread_callback): New funcion.
12103 (linux_make_corefile_notes): Likewise.
12104 (linux_make_corefile_notes_1): Likewise.
12105 (linux_init_abi): Install it.
12106
12107 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12108
12109 * gdbarch.sh (info_proc): New callback.
12110 * gdbarch.c, gdbarch.h: Regenerate.
12111
12112 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12113 before falling back to the target info_proc callback.
12114
12115 * linux-nat.c: Do not include "cli/cli-utils.h".
12116 (linux_nat_info_proc): Remove.
12117 (linux_target_install_ops): No longer install it.
12118
12119 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12120 (read_mapping): New function.
12121 (linux_info_proc): Likewise.
12122 (linux_init_abi): Install it.
12123
12124 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12125
12126 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12127 * infcmd.c: (info_proc_cmd_1): New function.
12128 (info_proc_cmd): New function, moved here from equivalent routine
12129 orignally in linux-nat.c.
12130 (info_proc_cmd_mappings): Likewise.
12131 (info_proc_cmd_stat): Likewise.
12132 (info_proc_cmd_status): Likewise.
12133 (info_proc_cmd_cwd): Likewise.
12134 (info_proc_cmd_cmdline): Likewise.
12135 (info_proc_cmd_exe): Likewise.
12136 (info_proc_cmd_all): Likewise.
12137 (_initialize_infcmd): Install "info proc" command and subcommands.
12138
12139 * target.h (struct target_ops): Add to_info_proc.
12140 (target_info_proc): Add prototype.
12141 * target.c (target_info_proc): New function.
12142
12143 * procfs.c (procfs_info_proc): Add prototype.
12144 (info_proc_cmd): Rename into ...
12145 (procfs_info_proc): ... this. Update argument types as appropriate
12146 for a to_info_proc implementation. Handle "what" argument.
12147 (procfs_target): Install procfs_info_proc.
12148 (_initialize_procfs): No longer install "info proc" command.
12149
12150 * linux-nat.c: (enum info_proc_what): Remove.
12151 (linux_nat_info_proc_cmd_1): Rename into ...
12152 (linux_nat_info_proc): ... this. Update argument types as appropriate
12153 for a to_info_proc implementation.
12154 (linux_nat_info_proc_cmd): Remove.
12155 (linux_nat_info_proc_cmd_mappings): Likewise.
12156 (linux_nat_info_proc_cmd_stat): Likewise.
12157 (linux_nat_info_proc_cmd_status): Likewise.
12158 (linux_nat_info_proc_cmd_cwd): Likewise.
12159 (linux_nat_info_proc_cmd_cmdline): Likewise.
12160 (linux_nat_info_proc_cmd_exe): Likewise.
12161 (linux_nat_info_proc_cmd_all): Likewise.
12162 (linux_target_install_ops): Install linux_nat_info_proc.
12163 (_initialize_linux_nat): No longer install "info proc" command
12164 and subcommands.
12165
12166 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12167
12168 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12169 * config.in, configure: Regenerate.
12170
12171 * target.h (struct target_ops): Add to_fileio_readlink.
12172 (target_fileio_readlink): Add prototype.
12173 * target.c (target_fileio_readlink): New function.
12174
12175 * inf-child.c: Conditionally include <sys/param.h>.
12176 (inf_child_fileio_readlink): New function.
12177 (inf_child_target): Install it.
12178
12179 * remote.c (PACKET_vFile_readlink): New enum value.
12180 (remote_hostio_readlink): New function.
12181 (init_remote_ops): Install it.
12182 (_initialize_remote): Handle vFile:readlink packet type.
12183
12184 2012-01-20 Pedro Alves <palves@redhat.com>
12185 Ulrich Weigand <ulrich.weigand@linaro.org>
12186
12187 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12188 * config.in, configure: Regenerate.
12189
12190 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12191 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12192 (target_fileio_open): Add prototype.
12193 (target_fileio_pwrite): Likewise.
12194 (target_fileio_pread): Likewise.
12195 (target_fileio_close): Likewise.
12196 (target_fileio_unlink): Likewise.
12197 (target_fileio_read_alloc): Likewise.
12198 (target_fileio_read_stralloc): Likewise.
12199
12200 * target.c: Include "gdb/fileio.h".
12201 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12202 (default_fileio_target): New function.
12203 (target_fileio_open): Likewise.
12204 (target_fileio_pwrite): Likewise.
12205 (target_fileio_pread): Likewise.
12206 (target_fileio_close): Likewise.
12207 (target_fileio_unlink): Likewise.
12208 (target_fileio_close_cleanup): Likewise.
12209 (target_fileio_read_alloc_1): Likewise.
12210 (target_fileio_read_alloc): Likewise.
12211 (target_fileio_read_stralloc): Likewise.
12212
12213 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12214 <fcntl.h>, and <unistd.h>.
12215 (inf_child_fileio_open_flags_to_host): New function.
12216 (inf_child_errno_to_fileio_error): Likewise.
12217 (inf_child_fileio_open): Likewise.
12218 (inf_child_fileio_pwrite): Likewise.
12219 (inf_child_fileio_pread): Likewise.
12220 (inf_child_fileio_close): Likewise.
12221 (inf_child_fileio_unlink): Likewise.
12222 (inf_child_target): Install to_fileio routines.
12223
12224 * remote.c (init_remote_ops): Install to_fileio routines.
12225
12226 2012-01-20 Pedro Alves <palves@redhat.com>
12227 Ulrich Weigand <ulrich.weigand@linaro.org>
12228
12229 * remote.c (remote_multi_process_p): Only check for multi-process
12230 protocol feature, do not check for extended protocol.
12231 (remote_supports_multi_process): Check for extended protocol here.
12232 (set_general_process): Likewise.
12233 (extended_remote_kill): Likewise.
12234 (remote_pid_to_str): Likewise.
12235 (remote_query_supported): Always query multiprocess mode.
12236
12237 2012-01-20 Pedro Alves <palves@redhat.com>
12238 Ulrich Weigand <ulrich.weigand@linaro.org>
12239
12240 * inferior.h (struct inferior): Add fake_pid_p.
12241 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12242 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12243 magic_null_ptid since the remote side doesn't provide a real PID.
12244
12245 2012-01-19 Tom Tromey <tromey@redhat.com>
12246
12247 * NEWS: Combine the two Python sections.
12248
12249 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12250
12251 * target.h (target_close): Update comment on the target's unpush state.
12252
12253 2012-01-19 Pedro Alves <palves@redhat.com>
12254
12255 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12256 linux_nat_async directly instead of going through the target
12257 vector.
12258 * target.c (unpush_target): Close target after unpushing it, not
12259 before.
12260
12261 2012-01-19 Gary Benson <gbenson@redhat.com>
12262
12263 * mdebugread.c (sort_blocks): Replace integer constants with ones
12264 derived from FIRST_LOCAL_BLOCK.
12265
12266 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12267 Jan Kratochvil <jan.kratochvil@redhat.com>
12268
12269 PR gdb/9538
12270 * symfile.c (find_separate_debug_file): New function.
12271 (terminate_after_last_dir_separator): Likewise.
12272 (find_separate_debug_file_by_debuglink): Also try realpath.
12273 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12274 * configure: Regenerate.
12275 * config.in: Regenerate.
12276
12277 2012-01-18 Doug Evans <dje@google.com>
12278
12279 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12280 (main.o): Remove rule.
12281 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12282 (--with-sysroot): Rewrite.
12283 * configure: Regenerate.
12284 * config.in: Regenerate.
12285
12286 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12287
12288 * parse.c (initialize_expout): New function.
12289 (reallocate_expout): Likewise.
12290 (parse_exp_in_context): Use `initialize_expout' and
12291 `reallocate_expout' when appropriate.
12292
12293 2012-01-18 Pedro Alves <palves@redhat.com>
12294
12295 * record.c (struct record_breakpoint, record_breakpoint_p)
12296 (record_breakpoints): New.
12297 (record_insert_breakpoint, record_remove_breakpoint): Manage
12298 record breakpoints list. Only remove breakpoints from the
12299 inferior if they had been inserted there in the first place.
12300
12301 2012-01-17 Doug Evans <dje@google.com>
12302
12303 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12304 if we know we don't have a file name to look for.
12305
12306 2012-01-17 Pedro Alves <palves@redhat.com>
12307
12308 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12309 the frame's stop reason is UNWIND_UNAVAILABLE.
12310
12311 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12312
12313 Fix compilation error.
12314 * m2-exp.y (yyerror): Use ANSI C prototype.
12315
12316 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12317
12318 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12319 (growbuf_by_size): Likewise.
12320 (yyerror): Likewise.
12321 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12322 (modblock): Remove variable (was #if 0'ed).
12323 (parse_number): Convert prototype from K&R to ANSI C.
12324 (yyerror): Likewise.
12325 * objc-exp.y (parse_number): Likewise.
12326 (yyerror): Likewise.
12327 (yylex): Remove #if 0'ed code.
12328 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12329 (yyerror): Likewise.
12330
12331 2012-01-16 Tom Tromey <tromey@redhat.com>
12332
12333 * NEWS: Add item.
12334 * symtab.h (compare_filenames_for_search): Declare.
12335 * symtab.c (compare_filenames_for_search): New function.
12336 (iterate_over_some_symtabs): Use it.
12337 * symfile.h (struct quick_symbol_functions)
12338 <map_symtabs_matching_filename>: Change spec.
12339 * psymtab.c (partial_map_symtabs_matching_filename): Use
12340 compare_filenames_for_search. Update for new spec.
12341 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12342 compare_filenames_for_search. Update for new spec.
12343 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12344
12345 2012-01-16 Tom Tromey <tromey@redhat.com>
12346
12347 PR python/13281:
12348 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12349 (struct main_type) <flag_flag_enum>: New field.
12350 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12351 * NEWS: Add entries.
12352 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12353 enums.
12354 * python/lib/gdb/printing.py (_EnumInstance): New class.
12355 (FlagEnumerationPrinter): Likewise.
12356
12357 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12358
12359 * breakpoint.c (create_sals_from_address_default): New function.
12360 (create_breakpoints_sal_default): Likewise.
12361 (decode_linespec_default): Likewise.
12362 (is_marker_spec): Removed.
12363 (strace_marker_p): New function.
12364 (init_breakpoint_sal): Using `strace_marker_p' instead of
12365 `is_marker_spec'.
12366 (create_breakpoint): Call method `create_sals_from_address' from
12367 breakpoint_ops, replacing code that created SALs conditionally
12368 on the type of the breakpoint. Call method `create_breakpoints_sal',
12369 replacing code that created breakpoints conditionally on the type
12370 wanted.
12371 (base_breakpoint_create_sals_from_address): New function.
12372 (base_breakpoint_create_breakpoints_sal): Likewise.
12373 (base_breakpoint_decode_linespec): Likewise.
12374 (base_breakpoint_ops): Add methods
12375 `base_breakpoint_create_sals_from_address',
12376 `base_breakpoint_create_breakpoints_sal' and
12377 `base_breakpoint_decode_linespec'.
12378 (bkpt_create_sals_from_address): New function.
12379 (bkpt_create_breakpoints_sal): Likewise.
12380 (bkpt_decode_linespec): Likewise.
12381 (tracepoint_create_sals_from_address): Likewise.
12382 (tracepoint_create_breakpoints_sal): Likewise.
12383 (tracepoint_decode_linespec): Likewise.
12384 (strace_marker_create_sals_from_address): Likewise.
12385 (strace_marker_create_breakpoints_sal): Likewise.
12386 (strace_marker_decode_linespec): Likewise.
12387 (strace_marker_breakpoint_ops): New variable.
12388 (addr_string_to_sals): Remove `marker_spec'. Call method
12389 `decode_linespec' from breakpoint_ops, replacing code that decoded
12390 an address string into a SAL. Use `strace_marker_p' instead of
12391 `marker_spec'.
12392 (strace_command): Decide whether we are dealing with a static
12393 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12394 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12395 * breakpoint.h (linespec_result, linespec_sals): New forward
12396 declarations.
12397 (breakpoint_ops) <create_sals_from_address>,
12398 <create_breakpoints_sal>, <decode_linespec>: New methods.
12399
12400 2012-01-14 Doug Evans <dje@google.com>
12401
12402 * NEWS: Update text for "maint set python print-stack".
12403 It is deprecated in gdb 7.4 and deleted in 7.5.
12404
12405 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12406
12407 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12408 including curses.h.
12409
12410 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12411
12412 * configure: Regenerate.
12413 * config.in: Regenerate.
12414
12415 2012-01-12 Keith Seitz <keiths@redhat.com>
12416
12417 PR mi/10586
12418 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12419 (ANONYMOUS_UNION_NAME): Define.
12420 (is_path_expr_parent): New function.
12421 (get_path_expr_parent): New function.
12422 (is_anonymous_child): New function.
12423 (create_child_with_value): If the child is anonymous and without
12424 a name, assign an object name to it.
12425 (c_describe_child): Use get_path_expr_parent to determine
12426 the parent expression.
12427 If there field represents an anonymous struct or union and
12428 has no name, set an appropriate display name and expression.
12429 (cplus_describe_child): Likewise.
12430
12431 2012-01-12 Pedro Alves <palves@redhat.com>
12432
12433 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12434 available when %ebp is found to be zero (outermost).
12435
12436 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12437
12438 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12439 an internal gdb_static_assert.
12440 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12441
12442 2012-01-11 Tom Tromey <tromey@redhat.com>
12443
12444 PR gdb/9598:
12445 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12446 catch" and "catch throw".
12447
12448 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12449
12450 * blockframe.c (block_innermost_frame): Start search from selected
12451 frame, if present, or otherwise the current frame.
12452
12453 * c-exp.y (variable): Update innermost_block for
12454 'block COLONCOLON NAME' clause.
12455 * m2-exp.y (variable): Ditto.
12456 * objc-exp.y (variable): Ditto.
12457
12458 2012-01-10 Tom Tromey <tromey@redhat.com>
12459
12460 PR python/13199:
12461 * python/python.c (finish_python_initialization): Set sys.argv.
12462
12463 2012-01-10 Doug Evans <dje@google.com>
12464
12465 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12466 "want_line_info". All callers updated.
12467 (dwarf_decode_lines_1): New function.
12468 (handle_DW_AT_stmt_list): Add function comment.
12469 New arg "want_line_info". All callers updated.
12470 (read_file_scope,read_type_unit_scope): Move comment from
12471 handle_DW_AT_stmt_list to here.
12472
12473 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12474
12475 Fix regression after libiberty/ update for GCC PR 6057 and others.
12476 * c-exp.y (operator) <OPERATOR DELETE>
12477 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12478 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12479 (make_builtin_type, make_name): New variable i, add gdb_assert.
12480 (operator) <OPERATOR NEW>: Update ARGS to 3.
12481 (operator) <OPERATOR DELETE>: Add trailing space.
12482 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12483 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12484 * cp-support.c (cp_canonicalize_string): Check NULL from
12485 cp_comp_to_string, call warning and return.
12486
12487 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12488
12489 Fix duplicate .o files after omitting libbfd.a.
12490 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12491 (SFILES): Add corelow.c.
12492 (COMMON_OBS): Add corelow.o.
12493 (ALLDEPFILES): Remove corelow.c.
12494 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12495 * config/alpha/alpha-osf3.mh: Likewise.
12496 * config/alpha/fbsd.mh: Likewise.
12497 * config/arm/nbsdaout.mh: Likewise.
12498 * config/arm/nbsdelf.mh: Likewise.
12499 * config/i386/i386gnu.mh: Likewise.
12500 * config/ia64/hpux.mh: Likewise.
12501 * config/ia64/linux.mh: Likewise.
12502 * config/m32r/linux.mh: Likewise.
12503 * config/m68k/linux.mh: Likewise.
12504 * config/mips/irix5.mh: Likewise.
12505 * config/mips/irix6.mh: Likewise.
12506 * config/pa/hpux.mh: Likewise.
12507 * config/pa/linux.mh: Likewise.
12508 * config/powerpc/aix.mh: Likewise.
12509 * config/sparc/linux.mh: Likewise.
12510 * config/sparc/linux64.mh: Likewise.
12511 * config/sparc/sol2.mh: Likewise.
12512 * config/vax/vax.mh: Likewise.
12513 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12514 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12515 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12516 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12517 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12518 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12519 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12520 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12521 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12522 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12523 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12524 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12525 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12526 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12527 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12528 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12529 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12530 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12531 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12532 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12533 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12534 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12535 corelow.o from gdb_target_obs.
12536 * corefile.c (core_target): Update the comment on NULL value.
12537 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12538 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12539 MATCHES. Drop YUMMY set on NULL.
12540 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12541 reclaim CORE_DATA if it is already NULL.
12542
12543 2012-01-09 Doug Evans <dje@google.com>
12544
12545 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12546 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12547
12548 2012-01-09 Keith Seitz <keiths@redhat.com>
12549
12550 * breakpoint.c (wrapper.h): Don't include.
12551
12552 2012-01-09 Keith Seitz <keiths@redhat.com>
12553
12554 * Makefile.in (SFILES): Remove wrapper.c.
12555 (HFILES_NO_SRCDIR): Remove wrapper.h.
12556 (COMMON_OBS): Remove wrapper.o.
12557 * cli/cli-interp.c: Don't inlude wrapper.h.
12558 * corelow.c: Likewise.
12559 (core_open): Replace gdb_target_find_new_threads with
12560 TRY_CATCH around target_find_new_threads.
12561 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12562 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12563 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12564 evaluate_expression.
12565 (varobj_set_value): Likewise for evaluate_expression and
12566 value_assign.
12567 (install_new_variable): Likewise for value_fetch_lazy.
12568 (adjust_value_for_child_access): Likewise for value_ind.
12569 (c_describe_child): Likewise for value_subscript and
12570 value_ind.
12571 (c_value_of_root): Likewise for evaluate_expression.
12572 * wrapper.c: Remove.
12573 * wrapper.h: Remove.
12574
12575 2012-01-09 Doug Evans <dje@google.com>
12576
12577 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12578 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12579 "abfd" args with "section". All callers updated.
12580 Error checking code moved ...
12581 (error_check_comp_unit_head): ... here. New function.
12582 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12583 Delete arg "abfd". New arg "type_offset". All callers updated.
12584 (create_debug_types_hash_table): Simplify by using
12585 read_and_check_type_unit_head.
12586
12587 * parser-defs.h (namecopy): Delete.
12588 * parse.c (namecopy, namecopy_size): Move into copy_name.
12589
12590 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12591
12592 Partially fix duplicate .o files after omitting libbfd.a.
12593 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12594 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12595 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12596 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12597 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12598 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12599 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12600
12601 2012-01-09 Pedro Alves <palves@redhat.com>
12602
12603 * MAINTAINERS: Update my email address.
12604
12605 2012-01-08 Doug Evans <dje@google.com>
12606
12607 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12608 n_type_units. Rename type_comp_units to all_type_units.
12609 All uses updated.
12610 (add_signatured_type_cu_to_table): Renamed from
12611 add_signatured_type_cu_to_list. All callers updated.
12612
12613 * gdbtypes.h (struct cplus_struct_type): Delete member
12614 nfn_fields_total. All uses removed.
12615
12616 2012-01-06 Doug Evans <dje@google.com>
12617
12618 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12619 to top of file.
12620 (dwarf2_find_comp_unit): Delete.
12621 (process_psymtab_comp_unit): Make result "void".
12622 Delete args buffer, info_ptr, buffer_size, and replace with
12623 "section". All callers updated.
12624 (dwarf2_build_psymtabs_hard): Simplify.
12625
12626 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12627 Thiago Jung Bauermann <bauerman@br.ibm.com>
12628
12629 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12630 before `struct gdb_exception'.
12631 * breakpoint.c (update_global_location_list_nothrow)
12632 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12633 * cp-abi.c (value_rtti_type): Likewise.
12634 * cp-support.c (cp_validate_operator): Likewise.
12635 * infrun.c (insert_exception_resume_breakpoint)
12636 (check_exception_resume, keep_going): Likewise.
12637 * mi-interp.c (mi_breakpoint_created)
12638 (mi_breakpoint_modified): Likewise.
12639 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12640 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12641 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12642
12643 2012-01-05 Doug Evans <dje@google.com>
12644
12645 * dwarf2read.c (statement_prologue): Delete, unused.
12646
12647 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12648 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12649
12650 * dwarf2read.c (comp_unit_header): Delete, unused.
12651
12652 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12653
12654 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12655 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12656
12657 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12658
12659 * infrun.c (normal_stop): Don't skip calling the normal_stop
12660 observers if the thread was doing a multi-step, but stopped for
12661 some reason other than stepping.
12662
12663 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12664
12665 * cli/cli-decode.h: Add comments.
12666 (CMD_LIST_AMBIGUOUS): Moved to command.h
12667 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12668 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12669 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12670 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12671 (add_com, add_com_alias, add_info, add_info_alias)
12672 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12673 declarations.
12674 * command.h: Add and adjust comments.
12675 (CMD_LIST_AMBIGUOUS): Moved here.
12676 (help_cmd, help_cmd_list): Delete declarations.
12677
12678 2012-01-04 Doug Evans <dje@google.com>
12679
12680 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12681 All callers updated.
12682 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12683 Replace all arguments with "per_cu". All callers updated.
12684
12685 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12686
12687 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12688 New arg "per_cu". All callers updated.
12689
12690 Delete #if 0'd out code.
12691 * language.c (binop_result_type): Delete.
12692 (simple_type, ordered_type, same_type, integral_type): Delete.
12693 (numeric_type, character_type, string_type, boolean_type): Delete.
12694 (float_type, structured_type): Delete.
12695 * language.h: Update.
12696
12697 2012-01-04 Tom Tromey <tromey@redhat.com>
12698
12699 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12700
12701 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12702
12703 * corefile.c (close_exec_file): Delete.
12704 (reopen_exec_file): Remove commented out code that seems related
12705 to close_exec_file, which is being deleted here.
12706 * inferior.h (close_exec_file): Delete.
12707 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12708
12709 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12710
12711 * ada-lang.c: #include "cli/cli-utils.h".
12712 (get_selections): Use skip_spaces.
12713 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12714 (catch_ada_exception_command_split): Use skip_spaces.
12715 (ada_decode_assert_location): Likewise.
12716
12717 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12718
12719 * linespec.c (decode_line_internal): Check for C++ or Java
12720 compound constructs only if the current language is C, C++
12721 or Java.
12722
12723 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12724
12725 Revert:
12726 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12727 Joel Brobecker <brobecker@adacore.com>
12728 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12729 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12730 3 times.
12731 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12732 fall through into AT_ENTRY_POINT.
12733 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12734 DUMMY_ADDR with it.
12735 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12736 PPC_INSN_SIZE skip to 3 times.
12737
12738 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12739
12740 * linespec.c (add_minsym): Preserve function descriptors.
12741
12742 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12743
12744 * breakpoint.c (all_locations_are_pending): Consider locations
12745 in program spaces executing during startup pending as well.
12746
12747 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12748
12749 Copyright year update in most files of the GDB Project.
12750
12751 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12752
12753 * copyright.sh: Delete.
12754 * copyright.py: Rewrite.
12755
12756 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12757
12758 * gnulib/extra/update-copyright: New file, imported from gnulib.
12759
12760 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12761
12762 * README (Copyright and License Notices): New section.
12763
12764 2012-01-03 Tom Tromey <tromey@redhat.com>
12765
12766 PR python/12533:
12767 * python/py-value.c (valpy_dereference, valpy_get_address
12768 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12769 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12770 (valpy_absolute, valpy_richcompare): Free intermediate values.
12771
12772 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12773
12774 * ada-lang.c: Reformat the copyright notice.
12775
12776 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12777
12778 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12779 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12780 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12781 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12782 Revert this part of:
12783 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12784 Build gdb directly from *.o files not using libgdb.a.
12785 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12786
12787 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12788
12789 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12790 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12791 Reformat the copyright header.
12792
12793 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12794
12795 Revert this part of:
12796 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12797 Remove the gdbtui binary.
12798 * gdb.c (main): Remove args.interpreter_p initialization.
12799 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12800 * main.h (struct captured_main_args): Remove interpreter_p.
12801
12802 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12803
12804 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12805
12806 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12807
12808 * top.c (print_gdb_version): Update copyright year.
12809
12810 2012-01-02 Yao Qi <yao@codesourcery.com>
12811
12812 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12813
12814 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12815 Joel Brobecker <brobecker@adacore.com>
12816
12817 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12818 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12819 3 times.
12820 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12821 fall through into AT_ENTRY_POINT.
12822 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12823 DUMMY_ADDR with it.
12824 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12825 PPC_INSN_SIZE skip to 3 times.
12826
12827 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12828
12829 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12830 the return value.
12831 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12832
12833 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12834
12835 Build gdb directly from *.o files not using libgdb.a.
12836 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12837 (COMMON_OBS): Remove solib-target.o.
12838 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12839 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12840 (LIBGDB_OBS, libgdb.a): Move it above.
12841 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12842 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12843 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12844 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12845 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12846 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12847 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12848 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12849 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12850 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12851 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12852 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12853 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12854 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12855 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12856 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12857 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12858 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12859 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12860 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12861 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12862 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12863 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12864 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12865 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12866 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12867 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12868
12869 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12870
12871 Remove the gdbtui binary.
12872 * .gitignore (/gdbtui): Remove.
12873 * Makefile.in (TUI): Remove.
12874 (SUBDIR_TUI_OBS): Remove tui-main.o.
12875 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12876 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12877 (tui-main.o): Remove.
12878 (all_object_files): Remove tui-main.o.
12879 * NEWS: New note for the gdbtui removal.
12880 * configure: Rebuilt.
12881 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12882 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12883 CONFIG_UNINSTALL respectively.
12884 * gdb.c (main): Remove args.interpreter_p initialization.
12885 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12886 * main.h (struct captured_main_args): Remove interpreter_p.
12887 * tui/tui-main.c: Remove.
12888
12889 2012-01-01 Doug Evans <dje@google.com>
12890
12891 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12892 (dwarf2_physname, read_import_statement): Ditto.
12893 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12894 (process_structure_scope read_subroutine_type): Ditto.
12895 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12896 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12897 (dwarf2_fetch_die_location_block): Ditto.
12898 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12899
12900 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12901 All callers updated.
12902 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12903 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12904 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12905
12906 * dwarf2read.c (load_cu): Move assert to more useful location.
12907
12908 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12909 All callers updated.
12910
12911 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12912 (dwarf2_elf_names): Minor reformat.
12913 (dwarf2_per_cu_data): Tweak comment.
12914 (dwarf2_read_section): Fix comment.
12915 (create_all_comp_units): Fix comment.
12916 (load_full_comp_unit): Fix comment.
12917 (process_full_comp_unit): Fix comment.
12918 (read_signatured_type): Fix comment.
12919
12920 For older changes see ChangeLog-2011.
12921 \f
12922 Local Variables:
12923 mode: change-log
12924 left-margin: 8
12925 fill-column: 74
12926 version-control: never
12927 coding: utf-8
12928 End: