8e75bbe07acd49294264fe31613c836dfd7c751a
[binutils-gdb.git] / gdb / ChangeLog
1 2012-12-14 Tom Tromey <tromey@redhat.com>
2
3 Partial fix for PR c++/14160:
4 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
5 * dwarf2read.c (dwarf2_is_constructor): New function.
6 (dwarf2_add_member_fn): Use it.
7 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
8 TYPE_FN_FIELD_CONSTRUCTOR.
9 * jv-typeprint.c (java_type_print_base): Use
10 TYPE_FN_FIELD_CONSTRUCTOR.
11 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
12 <dummy>: Shrink.
13 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
14
15 2012-12-14 Tom Tromey <tromey@redhat.com>
16
17 * c-exp.y (block, variable, name_not_typename, lex_one_token,
18 classify_name): Update.
19 * c-valprint.c (c_val_print): Update.
20 * f-exp.y (yylex): Update.
21 * go-exp.y (package_name_p, classify_packaged_name)
22 (classify_name): Update.
23 * jv-exp.y (push_variable): Update.
24 * m2-exp.y (variable): Update.
25 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
26 * p-exp.y (block, variable, yylex): Update.
27 * p-valprint.c (pascal_val_print): Update.
28 * parse.c (write_dollar_variable): Update.
29 * printcmd.c (address_info): Update.
30 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
31 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
32 (lookup_symbol): Change type of 'is_a_field_of_this'.
33 (check_field): Add 'is_a_field_of_this' argument.
34 * symtab.h (struct field_of_this_result): New.
35 (lookup_symbol, lookup_symbol_in_language): Update.
36
37 2012-12-14 Tom Tromey <tromey@redhat.com>
38
39 * symtab.c (check_field): Now static. Move from...
40 * valops.c (check_field): ... here. Remove.
41 * value.h (check_field): Don't declare.
42
43 2012-12-14 Tom Tromey <tromey@redhat.com>
44
45 * NEWS: Mention "info proc" and core files.
46 * corelow.c (core_info_proc): New function.
47 (init_core_ops): Set to_info_proc.
48 * gdbarch.c, gdbarch.h: Rebuild.
49 * gdbarch.sh (core_info_proc): New method.
50 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
51 * linux-tdep.c (linux_core_info_proc_mappings)
52 (linux_core_info_proc): New functions.
53 (linux_find_memory_region_ftype): New typedef.
54 (linux_find_memory_regions_full): New function, from
55 linux_find_memory_regions.
56 (struct linux_find_memory_regions_data): New.
57 (linux_find_memory_regions_thunk): New function.
58 (linux_find_memory_regions): Rewrite.
59 (struct linux_make_mappings_data): New.
60 (linux_make_mappings_callback)
61 (linux_make_mappings_corefile_notes): New functions.
62 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
63 (linux_init_abi): Call set_gdbarch_core_info_proc.
64 * target.c (target_info_proc): Return 'int'.
65 * target.h (target_info_proc): Update.
66
67 2012-12-14 Pierre Muller <muller@sourceware.org>
68
69 * windows-nat.c (windows_xfer_shared_libraries): Avoid
70 memory leak when OFFSET >= LEN_AVAIL.
71
72 2012-12-13 Tom Tromey <tromey@redhat.com>
73
74 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
75
76 2012-12-13 Tom Tromey <tromey@redhat.com>
77
78 * acinclude.m4 (CY_AC_C_WORKS): Remove.
79
80 2012-12-13 Pierre Muller <muller@sourceware.org>
81
82 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
83 local variable and zero terminate it to avoid possible problems
84 in strcmp.
85
86 2012-12-13 Pedro Alves <palves@redhat.com>
87
88 * coff-pe-read.c: Include coff/internal.h.
89 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
90 Null terminate buffer explicitly instead of memset the whole
91 buffer.
92
93 2012-12-13 Pierre Muller <muller@sourceware.org>
94
95 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
96 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
97 for already defined macros.
98
99 2012-12-13 Pierre Muller <muller@sourceware.org>
100
101 * coff-pe-read.h (pe_text_section_offset): Declare new function.
102 * coff-pe-read.c (debug_coff_pe_read): New static variable.
103 (struct read_pe_section_data): Add section_name field.
104 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
105 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
106 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
107 (get_pe_section_index): New function.
108 (struct pe_sections_info): New type.
109 (get_section_vmas): Use new struct pe_sections_info.
110 (add_pe_exported_sym): Handle unnamed exported function.
111 (add_pe_forwarded_sym): New function.
112 (read_pe_truncate_name): Truncate at last dot.
113 (pe_as16): New function.
114 (read_pe_exported_syms): Use ordinal of function to
115 retrieve correct RVA address of function and handle
116 forwarded symbol.
117 (pe_text_section_offset): New function.
118 (show_debug_coff_pe_read): New function.
119 (_initialize_coff_pe_read): New function adding
120 'set/show debug coff_pe_read' commands.
121
122 * windows-tdep.c (windows_xfer_shared_library): Use
123 pe_text_section_offset function instead of possibly wrong
124 0x1000 constant for .text sextion offset.
125
126 2012-12-13 Pedro Alves <palves@redhat.com>
127
128 * gdbarch.sh (do_read): Set IFS to blank.
129
130 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
131
132 * NEWS: Mention the -catch-load/-catch-unload MI commands.
133
134 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
135
136 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
137 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
138 * breakpoint.c (add_solib_catchpoint): New function that
139 can be used by both CLI and MI, factored out from
140 catch_load_or_unload.
141 (catch_load_or_unload): Strip it down and make it use the
142 new add_solib_catchpoint.
143 * breakpoint.h (add_solib_catchpoint): Declare it.
144 * mi/mi-cmd-break.h: New file.
145 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
146 (setup_breakpoint_reporting): New function used for both
147 catchpoints and breakpoints.
148 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
149 * mi/mi-cmd-catch.c: New file.
150 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
151 and -catch-unload.
152 * mi/mi-cmds.h: Declare the handlers for -catch-load and
153 -catch-unload.
154
155 2012-11-28 Tom Tromey <tromey@redhat.com>
156
157 * dbxread.c (read_dbx_symtab): Update.
158 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
159 (read_ofile_symtab): Add 'objfile' argument.
160 * dwarf2read.c (process_psymtab_comp_unit_reader)
161 (build_type_psymtabs_reader): Update.
162 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
163 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
164 argument.
165 (parse_procedure, parse_partial_symbols): Update.
166 (psymtab_to_symtab_1): Add 'objfile' argument.
167 * psympriv.h (struct partial_symtab) <objfile>: Remove.
168 <read_symtab>: Add 'objfile' argument.
169 (sort_pst_symbols, discard_psymtab): Update.
170 * psymtab.c (partial_map_expand_apply): Update.
171 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
172 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
173 (find_pc_sect_psymbol): Add 'objfile' argument.
174 (lookup_symbol_aux_psymtabs): Update.
175 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
176 Add 'objfile' argument.
177 (find_last_source_symtab_from_partial, dump_psymtab)
178 (dump_psymtabs_for_objfile, read_symtabs_for_function)
179 (expand_partial_symbol_tables, read_psymtabs_with_filename)
180 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
181 (expand_symtabs_matching_via_partial): Update.
182 (sort_pst_symbols): Add 'objfile' argument.
183 (allocate_psymtab): Update.
184 (discard_psymtab): Add 'objfile' argument.
185 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
186 * stabsread.h (end_psymtab): Update.
187 * xcoffread.c (this_symtab_objfile): New global.
188 (process_linenos, enter_line_range, xcoff_next_symbol_text):
189 Update.
190 (read_xcoff_symtab): Add 'objfile' argument.
191 (read_symbol, read_symbol_lineno): Update.
192 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
193 (xcoff_end_psymtab): Add 'objfile' argument.
194 (scan_xcoff_symtab): Update.
195
196 2012-12-12 Paul Koning <paul_koning@dell.com>
197
198 Add support for Python 3.
199 * NEWS: Mention Python 3 support.
200 * varobj.c (value_get_print_value): Use
201 python_string_to_target_string.
202 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
203 of type objects.
204 * python/py-breakpoint.c: Ditto.
205 * python/py-cmd.c: Ditto.
206 * python/py-event.c: Ditto.
207 * python/py-event.h: Ditto.
208 * python/py-evtregistry.c: Ditto.
209 * python/py-finishbreakpoint.c: Ditto.
210 * python/py-frame.c: Ditto.
211 * python/py-function.c: Ditto.
212 * python/py-infthread.c: Ditto.
213 * python/py-lazy-string.c: Ditto.
214 * python/py-progspace.c: Ditto.
215 * /python/py-symbol.c: Ditto.
216 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
217 initialization for Python 3.
218 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
219 of type objects.
220 (infpy_read_memory): Return memoryview object if Python 3.
221 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
222 (infpy_search_memory): Ditto.
223 (get_buffer): New function for Python 3.
224 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
225 of type objects.
226 (objfpy_dealloc): Use Py_TYPE to call tp_free.
227 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
228 of type objects.
229 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
230 (set_attr): Ditto.
231 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
232 instead of PyString methods if Python 3.
233 (print_children): Skip push_dummy_python_frame call if Python 3.
234 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
235 of type objects.
236 (salpy_dealloc): Use Py_TYPE to call tp_free.
237 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
238 of type objects.
239 (field_dealloc): Use Py_TYPE to call tp_free.
240 (typy_dealloc): Ditto.
241 (type_object_as_number): Adjust struct initializations for
242 differences in layout for Python 2 vs. Python 3.
243 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
244 string case for Python 3.
245 (unicode_to_encoded_python_string): Shorten code (no functional
246 change).
247 (python_string_to_target_python_string): Comment that in Python 3
248 returned value is a Python "bytes" type.
249 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
250 (gdb_py_object_from_longest): Omit non-long integer case in Python
251 3.
252 (gdb_py_object_from_ulongest): Ditto.
253 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
254 of type objects.
255 (valpy_dealloc): Use Py_TYPE to call tp_free.
256 (valpy_int): Omit function if Python 3.
257 (convert_value_from_python): Use "%S" format (Python object as a
258 string) if Python 3.
259 (value_object_as_number): Adjust struct initializations for
260 differences in layout for Python 2 vs. Python 3.
261 * python/python-config.py: Adjust syntax for Python 3
262 compatibility.
263 Include "sys.abiflags" string as part of python library name, if
264 that attribute exists (Python 3).
265 * python/python-internal.h (IS_PY3): Define if Python 3.
266 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
267 placeholder value if Python 3.
268 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
269 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
270 analogous Python 3 API function if Python 3.
271 (PyVarObject_HEAD_INIT): Define if not already defined.
272 (Py_TYPE): Ditto.
273 * python/python.c (eval_python_command): Omit Py_FlushLine call if
274 Python 3.
275 Check return values of all Python API calls for error.
276 Supply dummy "python" and "python-interactive" commands if Python
277 initialization failed.
278 (_initialize_python): Convert argc to wchar_t** if Python 3.
279 Add module initialization for Python 3.
280 (finish_python_initialization): Pass wchar_t * argument to
281 PySys_SetPath if Python 3.
282 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
283 (_GdbFile): New class for common output file behavior.
284 (GdbOutFile): Subclass from _GdbFile.
285 (GdbOutputErrorFile): Ditto.
286 (auto_load_packages): Adjust syntax for Python 3 compatibility.
287 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
288 * python/lib/gdb/prompt.py: Use sorted() function rather than
289 sort() method.
290 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
291 Adjust syntax for Python 3 compatibility.
292 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
293 rather than sort() method.
294 Adjust syntax for Python 3 compatibility.
295 * python/lib/gdb/command/type_printers.py: Ditto.
296 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
297 value is a memoryview object if Python 3.
298
299 2012-12-12 Tom Tromey <tromey@redhat.com>
300
301 * coffread.c (coff_objfile_data_key): New global.
302 (coff_symfile_init): Use set_objfile_data.
303 (coff_symfile_read): Use objfile_data.
304 (coff_symfile_finish): Don't free deprecated_sym_private.
305 (coff_free_info): New function.
306 (_initialize_coffread): Initialize coff_objfile_data_key.
307 * mdebugread.c (pending_list): Update comment.
308 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
309 * symfile.c (reread_symbols): Don't mention
310 deprecated_sym_private.
311 * xcoffread.c (xcoff_objfile_data_key): New global.
312 (XCOFF_DATA): New macro.
313 (process_linenos, enter_line_range, xcoff_next_symbol_text)
314 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
315 XCOFF_DATA.
316 (xcoff_new_init) Use set_objfile_data.
317 (xcoff_symfile_finish): Don't free deprecated_sym_private.
318 (init_stringtab, swap_sym, scan_xcoff_symtab)
319 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
320 (xcoff_free_info): New function.
321 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
322
323 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
324
325 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
326
327 2012-12-12 Tom Tromey <tromey@redhat.com>
328
329 * coffread.c (coff_symfile_init): Use set_objfile_data.
330 (coff_symfile_read): Use DBX_SYMFILE_INFO.
331 * dbxread.c (dbx_objfile_data_key): New global.
332 (dbx_symfile_init): Use set_objfile_data.
333 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
334 (dbx_free_symfile_info): New function.
335 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
336 DBX_SYMFILE_INFO.
337 (stabsect_build_psymtabs): Use set_objfile_data.
338 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
339 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
340 set_objfile_data.
341 (free_elfinfo): Use DBX_SYMFILE_INFO.
342 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
343 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
344 * gdb-stabs.h (dbx_objfile_data_key): Declare.
345 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
346 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
347 * somread.c (som_symfile_finish): Don't free
348 deprecated_sym_stab_info.
349
350 2012-12-12 Joel Brobecker <brobecker@adacore.com>
351
352 * gdbarch.sh (software_single_step): Remove trailing space in
353 comment (gdbarch.h is already correct).
354
355 2012-12-11 Tom Tromey <tromey@redhat.com>
356
357 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
358
359 2012-12-11 Tom Tromey <tromey@redhat.com>
360
361 * dsrec.c (report_transfer_performance): Don't declare.
362 (load_srec): Use gettimeofday, print_transfer_performance.
363 * symfile.c (report_transfer_performance): Remove.
364
365 2012-12-11 Pedro Alves <pedro@codesourcery.com>
366 Pedro Alves <palves@redhat.com>
367
368 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
369 NT_PSTATUS note.
370 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
371 differently from LWP IDs.
372
373 2012-12-11 Pedro Alves <palves@redhat.com>
374
375 * configure.ac (detect type of /proc): Remove Unixware handling.
376 * configure: Regenerate.
377 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
378 (ioctl_table) [PCRESET]: Remove entry.
379 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
380 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
381 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
382 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
383 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
384 Unixware in comments throughout.
385 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
386 and remove mention of Unixware.
387
388 2012-12-10 Doug Evans <dje@google.com>
389
390 * dwarf2read.c (dwarf2_cu): Enhance comment.
391 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
392 the DWO file.
393 (dwarf2_record_block_ranges): Ditto.
394
395 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
396
397 * symtab.c (find_pc_sect_symtab): Add comment.
398
399 2012-12-10 Tom Tromey <tromey@redhat.com>
400
401 * defs.h: Don't check for definition of LONGEST.
402 (min, max): Remove duplicates.
403
404 2012-12-10 Tom Tromey <tromey@redhat.com>
405
406 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
407 (dwarf2_fetch_die_loc_cu_off): Rename from
408 dwarf2_fetch_die_location_block. Rewrite to use
409 dwarf2_fetch_die_loc_sect_off.
410 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
411 (dwarf2_fetch_die_loc_cu_off): Rename.
412 * dwarf2loc.c (indirect_pieced_value): Use
413 dwarf2_fetch_die_loc_sect_off.
414 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
415 comment.
416 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
417 * dwarf2expr.c (add_piece): Update.
418 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
419
420 2012-12-10 Tom Tromey <tromey@redhat.com>
421
422 * buildsym.c (struct pending_block): Move from buildsym.h.
423 (pending_blocks): Likewise; now static.
424 (pending_block_obstack): New global.
425 (free_pending_blocks): Free blocks.
426 (record_pending_block): Use pending_block_obstack.
427 * buildsym.h (struct pending_block): Move definition to
428 buildsym.c.
429 (pending_blocks): Don't declare.
430
431 2012-12-10 Pedro Alves <palves@redhat.com>
432
433 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
434 dead SCO code, and adjust function description comment.
435
436 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
437
438 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
439 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
440 CC_HAS_LONG_LONG.
441 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
442 * dwarf2read.c (extract_cu_value): Remove the function.
443 (create_cus_from_index_list): Make the return type void, inline the
444 extract_cu_value caller, include new gdb_static_assert.
445 (create_cus_from_index): Make the return type void, update the function
446 comment, update the create_cus_from_index_list caller.
447 (create_signatured_type_table_from_index): Make the return type void,
448 inline the extract_cu_value caller, include new gdb_static_assert.
449 (dwarf2_read_index): Update the create_cus_from_index and
450 create_signatured_type_table_from_index caller.
451 * printcmd.c (ui_printf): Remove conditionalizations for
452 CC_HAS_LONG_LONG.
453 * config.in: Regenerate.
454 * configure: Regenerate.
455
456 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
457
458 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
459 Update the comment for checked_producer.
460 (check_producer): New forward declaration.
461 (producer_is_gcc_lt_4_3): New function.
462 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
463 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
464
465 2012-12-07 Tom Tromey <tromey@redhat.com>
466
467 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
468 argument, assertion.
469 * c-exp.y (typebase): Add completion productions.
470 * completer.c (expression_completer): Handle tag completion.
471 * expression.h (parse_expression_for_completion): Add argument.
472 * f-lang.c (f_make_symbol_completion_list): Add 'code'
473 argument.
474 * language.h (struct language_defn)
475 <la_make_symbol_completion_list>: Add 'code' argument.
476 * parse.c (expout_tag_completion_type, expout_completion_name):
477 New globals.
478 (mark_struct_expression): Add assertion.
479 (mark_completion_tag): New function.
480 (parse_exp_in_context): Initialize new globals.
481 (parse_expression_for_completion): Add 'code' argument. Handle
482 tag completion.
483 * parser-defs.h (mark_completion_tag): Declare.
484 * symtab.c (default_make_symbol_completion_list_break_on): Add
485 'code' argument. Update.
486 (default_make_symbol_completion_list): Add 'code' argument.
487 (make_symbol_completion_list): Update.
488 (make_symbol_completion_type): New function.
489 * symtab.h (default_make_symbol_completion_list_break_on)
490 (default_make_symbol_completion_list): Update.
491 (make_symbol_completion_type): Declare.
492
493 2012-12-07 Tom Tromey <tromey@redhat.com>
494
495 * expression.h (parse_expression_for_completion): Rename
496 from parse_field_expression.
497 (parse_completion): Rename from in_parse_field.
498 * c-exp.y (lex_one_token): Update.
499 * completer.c (expression_completer): Update.
500 * go-exp.y (lex_one_token): Update.
501 * p-exp.y (yylex): Update.
502 * parse.c (parse_completion): Rename from in_parse_field.
503 (parse_exp_in_context): Update.
504 (parse_expression_for_completion): Rename from
505 parse_field_expression. Update.
506
507 2012-12-07 Tom Tromey <tromey@redhat.com>
508
509 * typeprint.c (_initialize_typeprint): Set completer
510 for "whatis" and "ptype".
511
512 2012-12-07 Joel Brobecker <brobecker@adacore.com>
513
514 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
515 "sim/common/cgen-fpu.h". Remove invalid entries
516 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
517 which actually have an FSF copyright header.
518
519 2012-12-07 Joel Brobecker <brobecker@adacore.com>
520
521 * osf-share/AT386/cma_thread_io.h: Delete.
522 * osf-share/HP800/cma_thread_io.h: Delete.
523 * osf-share/README: Delete.
524 * osf-share/RIOS/cma_thread_io.h: Delete.
525 * osf-share/cma_attr.h: Delete.
526 * osf-share/cma_deb_core.h: Delete.
527 * osf-share/cma_debug_client.h: Delete.
528 * osf-share/cma_errors.h: Delete.
529 * osf-share/cma_handle.h: Delete.
530 * osf-share/cma_init.h: Delete.
531 * osf-share/cma_list.h: Delete.
532 * osf-share/cma_mutex.h: Delete.
533 * osf-share/cma_sched.h: Delete.
534 * osf-share/cma_semaphore_defs.h: Delete.
535 * osf-share/cma_sequence.h: Delete.
536 * osf-share/cma_stack.h: Delete.
537 * osf-share/cma_stack_int.h: Delete.
538 * osf-share/cma_tcb_defs.h: Delete.
539 * osf-share/cma_util.h: Delete.
540 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
541 in osf-share.
542 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
543 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
544 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
545
546 2012-12-06 Pedro Alves <palves@redhat.com>
547 Tom Tromey <tromey@redhat.com>
548
549 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
550
551 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
552
553 PR mi/14741:
554 * mi/mi-cmd-var.c (varobj_update_one): Take value of
555 attribute "dynamic" and "displayhint" from printed child,
556 not the root variable.
557
558 2012-12-06 Joel Brobecker <brobecker@adacore.com>
559
560 * aix-thread.c (getthrds): Fix type of 4th parameter.
561 (get_signaled_thread): Change type of variable ktid to tid_t.
562
563 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
564
565 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
566 value of get_frame_block.
567
568 2012-12-05 Pierre Muller <muller@sourceware.org>
569
570 Avoid memory leaks on struct cmd_list_element.doc field.
571 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
572 if flags contains DOC_ALLOCATED.
573 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
574 flags.
575 (delete_cmd): Handle DOC_ALLOCATED flag.
576 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
577 in flags filed of struct cmd_list_element.
578 (struct cmd_list_element): Document new flag item.
579
580 2012-12-04 Doug Evans <dje@google.com>
581
582 * symmisc.c: Whitespace fixes.
583
584 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
585
586 * i386-tdep.c (i386_skip_prologue): Using symbol table
587 to find the end of prologue for clang compiled binaries.
588 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
589 to find the end of prologue for clang compiled binaries.
590
591 2012-12-03 Doug Evans <dje@google.com>
592
593 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
594 (dw2_find_symbol_file): Delete unused local file_data.
595
596 2012-12-03 Tom Tromey <tromey@redhat.com>
597
598 * ada-exp.y (write_object_renaming, write_var_or_type)
599 (write_ambiguous_var, write_var_from_sym): Make blocks const.
600 * ada-lang.c (replace_operator_with_call)
601 (find_old_style_renaming_symbol): Make blocks const.
602 * ada-lang.h (ada_find_renaming_symbol): Update.
603 (struct ada_symbol_info) <block>: Now const.
604 * breakpoint.c (watch_command_1): Update.
605 * breakpoint.h (struct watchpoint) <exp_valid_block,
606 cond_exp_valid_block>: Now const.
607 * c-exp.y (classify_inner_name, classify_name): Make block
608 argument const.
609 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
610 const.
611 * expression.h (innermost_block, parse_exp_1): Update.
612 (union exp_element) <block>: Now const.
613 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
614 (lookup_struct): Make block argument const.
615 * gdbtypes.h (lookup_template_type): Update.
616 * go-exp.y (classify_name, classify_packaged_name)
617 (package_name_p): Make block argument const.
618 * objc-lang.c (lookup_struct_typedef): Make block argument const.
619 * objc-lang.h (lookup_struct_typedef): Update.
620 * parse.c (parse_exp_in_context, parse_exp_1)
621 (write_exp_elt_block): Make block arguments const.
622 (expression_context_block, innermost_block): Now const.
623 * parser-defs.h (write_exp_elt_block): Update.
624 (expression_context_block, innermost_block, block_found): Now
625 const.
626 * printcmd.c (struct display) <block>: Now const.
627 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
628 * valops.c (address_of_variable): Make block argument const.
629 * value.h (value_of_variable): Update.
630 * varobj.c (struct varobj_root) <valid_block>: Now const.
631
632 2012-11-30 Yao Qi <yao@codesourcery.com>
633
634 * breakpoint.c (print_one_breakpoint_location): Indent code.
635
636 2012-11-30 Yao Qi <yao@codesourcery.com>
637
638 * breakpoint.c (print_one_breakpoint_location): Combine two
639 blocks handling 'hit count' together.
640
641 2012-11-30 Yao Qi <yao@codesourcery.com>
642
643 * infrun.c (error_is_running, ensure_not_running): Move them
644 to ...
645 * infcmd.c (error_is_running, ensure_not_running): ... here.
646 Make them 'static'.
647 * inferior.h: Remove declarations of error_is_running and
648 ensure_not_running.
649
650 2012-11-30 Yao Qi <yao@codesourcery.com>
651
652 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
653 check REGNUM >= 0.
654
655 2012-11-30 Yao Qi <yao@codesourcery.com>
656
657 * infrun.c: Make the declaration of 'init_infwait_state'
658 static.
659 (init_infwait_state): Make it 'static'.
660
661 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
662
663 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
664 return value to void to avoid compiler warning.
665
666 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
667
668 * opencl-lang.c (opencl_print_type): New function.
669 (opencl_language_arch_info): Install it.
670
671 2012-11-29 Tom Tromey <tromey@redhat.com>
672
673 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
674 xvasprintf.
675 * common/common-utils.c (xasprintf, xvasprintf): Remove.
676 * common/common-utils.h (xasprintf, xvasprintf): Remove.
677
678 2012-11-29 Jerome Guitton <guitton@adacore.com>
679
680 * ada-lang.c (ada_is_interface_tag): New function.
681 (ada_is_ignored_field): Add interface tags to the list
682 of ignored fields.
683
684 2012-11-29 Jerome Guitton <guitton@adacore.com>
685
686 * ada-lang.h (ada_tag_value_at_base_address): New function
687 declaration.
688 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
689 New functions.
690 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
691 relocate the class-wide value if need be.
692 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
693 Let ada_tag_value_at_base_address relocate the class-wide access/ref
694 before dereferencing it.
695 * ada-valprint.c (ada_val_print_1): Relocate to base address
696 before displaying the content of an interface-wide ref.
697
698 2012-11-29 Jerome Guitton <guitton@adacore.com>
699
700 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
701
702 2012-11-29 Joel Brobecker <brobecker@adacore.com>
703
704 GDB 7.5.1 released.
705
706 2012-11-29 Yao Qi <yao@codesourcery.com>
707 Tom Tromey <tromey@redhat.com>
708
709 * eval.c (evaluate_subexp_standard): Get the correct pointer
710 type for TYPE_CODE_MEMBERPTR.
711
712 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
713
714 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
715 since now it is being done by binutils' powerpc_init_dialect().
716
717 2012-11-28 Tom Tromey <tromey@redhat.com>
718
719 PR gdb/14290:
720 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
721 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
722 Use it.
723 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
724 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
725 (gdb_bfd_openr_next_archived_file): Use it.
726
727 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
728
729 * configure.ac: Check for linux/perf_event.h.
730 * config.in: Regenerated.
731 * configure: Regenerated.
732
733 2012-11-28 Yao Qi <yao@codesourcery.com>
734
735 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
736 abbreviate 'delete tracepoints' to 'delete tr'.
737 * corefile.c (_initialize_core): Call add_alias_cmd to
738 abbreviate 'set gnutarget' to 'set g'.
739 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
740 'show convenience' to 'show conv'.
741
742 2012-11-27 Joel Brobecker <brobecker@adacore.com>
743
744 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
745 call to sparc_supply_fpregset.
746 (fill_fpregset): Fix first parameter in call to
747 sparc_collect_fpregset.
748
749 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
750 Kazu Hirata <kazu@codesourcery.com>
751 Yao Qi <yao@codesourcery.com>
752
753 * objfiles.c (init_entry_point_info): Call
754 gdbarch_convert_from_func_ptr_addr and
755 gdbarch_addr_bits_remove here ...
756 (entry_point_address_query): ... instead of here.
757 * solib-svr4.c (exec_entry_point): Call
758 gdbarch_addr_bits_remove.
759 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
760 the entry address.
761
762 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
763 Yao Qi <yao@codesourcery.com>
764
765 * eval.c (evaluate_subexp_standard): Add handling of
766 TYPE_CODE_MEMBERPTR when calling functions. Correct the
767 result of ptype for calling a TYPE_CODE_METHODPTR.
768
769 2012-11-27 Yao Qi <yao@codesourcery.com>
770
771 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
772 warning.
773 Add i18n markup.
774
775 2012-11-26 Alexander Larsson <alexl@redhat.com>
776 Jan Kratochvil <jan.kratochvil@redhat.com>
777 Tom Tromey <tromey@redhat.com>
778
779 * NEWS: Mention mini debuginfo feature.
780 * minidebug.c: New file.
781 * configure.ac: Check for lzma.
782 * configure, config.in: Rebuild.
783 * Makefile.in (LIBLZMA): New variable.
784 (CLIBS): Include LIBLZMA.
785 (SFILES): Mention minidebug.c.
786 (COMMON_OBS): Mention minidebug.o.
787 * symfile.c (read_symbols): New function.
788 (syms_from_objfile, reread_symbols): Call it.
789 * symfile.h (find_separate_debug_file_in_section): Declare.
790
791 2012-11-26 Keith Seitz <keiths@redhat.com>
792
793 * exec.c (exec_file_attach): Move cleanup after verifying that
794 memory has in fact been allocated.
795
796 2012-11-26 Tom Tromey <tromey@redhat.com>
797
798 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
799 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
800 SYMBOL_SYMTAB.
801 * skip.c (skip_info): Use SYMBOL_SYMTAB.
802
803 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
804 Pedro Alves <palves@redhat.com>
805
806 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
807 size parameter passed to readlink by one byte.
808 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
809 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
810 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
811 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
812 size by one byte.
813
814 2012-11-26 Yao Qi <yao@codesourcery.com>
815
816 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
817 extraneous parentheses.
818
819 2012-11-26 Yao Qi <yao@codesourcery.com>
820
821 * remote.c (remote_start_remote): Typo fix.
822
823 2012-11-23 David S. Miller <davem@davemloft.net>
824
825 * sparc-tdep.h (struct sparc_fpregset): New data structure.
826 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
827 sparc32_sol2_fpregset): Declare new globals.
828 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
829 'fpregset' argument.
830 * sparc64-tdep.h (sparc64_supply_fpregset,
831 sparc64_collect_fpregset): Likewise.
832 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
833 globals.
834 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
835 (sparc_fpregset): Declare new global.
836 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
837 'fpregset' argument.
838 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
839 into handler.
840 (fill_fpregset): Likewise.
841 (_initialize_sparc_linux_nat): Set sparc_fpregset to
842 sparc32_bsd_fpregset.
843 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
844 sparc32_bsd_fpregset down into handler.
845 (sparc32_linux_collect_core_fpregset): Likewise.
846 * sparc-nat.c (sparc_fpregset): Define.
847 (sparc_supply_fpregset): Add 'fpregset' argument.
848 (sparc_collect_fpregset): Likewise.
849 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
850 into fpregset handler.
851 (sparc_store_inferior_registers): Likewise.
852 (_initialize_sparc_nat): Set sparc_fpregset to
853 sparc32_sunos4_fpregset if NULL.
854 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
855 down into handler.
856 (fill_fpregset): Likewise.
857 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
858 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
859 use it to compute offsets.
860 (sparc32_collect_fpregset): Likewise.
861 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
862 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
863 down into handler.
864 (fill_fpregset): Likewise.
865 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
866 Likewise.
867 (sparc64_linux_collect_core_fpregset): Likewise.
868 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
869 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
870 use it to compute offsets.
871 (sparc64_collect_fpregset): Likewise.
872 (sparc64_bsd_fpregset): Define.
873 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
874 sparc64_bsd_fpregset down into handler.
875 (sparc64fbsd_collect_fpregset): Likewise.
876 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
877 and pass sparc{32,64}_bsd_fpregset down into handler.
878 (sparc64nbsd_collect_fpregset): Likewise.
879 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
880 sparc64_bsd_fpregset down into handler.
881 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
882 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
883 to sparc32_bsd_fpregset.
884 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
885 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
886 (sparc32nbsd_supply_fpregset): Likewise.
887
888 2012-11-21 Tom Tromey <tromey@redhat.com>
889
890 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
891 field.
892 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
893 Remove.
894 * c-typeprint.c (c_type_print_base): Update.
895
896 2012-11-21 Yao Qi <yao@codesourcery.com>
897
898 PR tdep/7438
899 * gdbarch.sh (smash_text_address): Remove.
900 * gdbarch.c, gdbarch.h: Regenerate.
901 * arm-tdep.c (arm_smash_text_address): Remove.
902 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
903 * hppa-tdep.c (hppa_smash_text_address): Remove.
904 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
905 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
906 Caller update.
907 * coffread.c (coff_symtab_read): Caller update.
908 * dbxread.c (process_one_symbol): Likewise.
909 * elfread.c (record_minimal_symbol): Likewise.
910 * somread.c (som_symtab_read): Likewise.
911
912 2012-11-20 Pierre Muller <muller@sourceware.org>
913
914 ARI fixes: sprintf rule.
915 Replace sprintf function calls for char arrays by
916 calls to xsnprintf calls.
917 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
918 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
919 (arm_neon_quad_read, arm_pseudo_read): Ditto.
920 (arm_neon_quad_write, arm_pseudo_write): Ditto.
921 * breakpoint.c (condition_completer): Ditto.
922 (create_tracepoint_from_upload): Ditto.
923 * dwarf2read.c (file_full_name): Ditto.
924 * gcore.c (gcore_command): Ditto.
925 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
926 * go32-nat.c (go32_sysinfo): Ditto.
927 * interps.c (interp_set): Ditto.
928 * m32c-tdep.c (make_types): Ditto.
929 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
930 * remote-m32r-sdi.c (m32r_open): Ditto.
931 * sol-thread.c (td_err_string): Ditto.
932 (td_state_string, solaris_pid_to_str): Ditto.
933 * symtab.c (gdb_mangle_name): Ditto.
934 * cli/cli-script.c (execute_control_command): Ditto.
935 (define_command, document_command): Ditto.
936 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
937 * tui/tui-stack.c (tui_make_status_line): Ditto.
938 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
939
940 2012-11-20 Mike Frysinger <vapier@gentoo.org>
941
942 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
943 it when looking at ptr->func.
944 * command.h (complete_on_cmdlist): Add a fourth arg.
945 * completer.c (complete_line_internal): Add local ignore_help_classes,
946 and set it to 1 when reason is not handle_help. Pass this down to
947 lookup_cmd_1 and complete_on_cmdlist.
948
949 2012-11-20 Tom Tromey <tromey@redhat.com>
950
951 * completer.c (count_struct_fields): Remove.
952 (expression_completer): Don't call count_struct_fields.
953
954 2012-11-20 Pedro Alves <palves@redhat.com>
955
956 * annotate.c (breakpoints_changed): Rename to ...
957 (annotate_breakpoints_changed): ... this.
958 (annotate_stopped, breakpoint_changed): Adjust caller.
959 * annotate.h (breakpoints_changed): Rename to ...
960 (annotate_breakpoints_changed): ... this.
961 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
962 (do_map_commands_command, init_raw_breakpoint, clear_command)
963 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
964
965 2012-11-20 David S. Miller <davem@davemloft.net>
966
967 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
968 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
969 sysconf.
970 (get_cores_used_by_process): Update comment.
971
972 2012-11-20 Yao Qi <yao@codesourcery.com>
973
974 * objfiles.c (init_entry_point_info): Remove trailing spaces.
975
976 2012-11-20 Yao Qi <yao@codesourcery.com>
977
978 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
979 to deprecated_context_hook.
980
981 2012-11-19 Yao Qi <yao@codesourcery.com>
982
983 * infrun.c (infwait_state): Add static.
984
985 2012-11-16 Keith Seitz <keiths@redhat.com>
986
987 PR c++/13615
988 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
989 parameter and pass it to lookup_symbol_file.
990 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
991 to search base classes.
992 (cp_lookup_symbol_namespace): Likewise.
993 (lookup_namespace_scope): Likewise.
994 (lookup_symbol_file): Add SEARCH parameter.
995 If SEARCH is non-zero and no symbol is found, lookup the class
996 and call cp_lookup_nested_symbol.
997 (find_symbol_in_baseclass): New function.
998 (cp_lookup_nested_symbol): Do not let
999 cp_lookup_symbol_in_namespace search through base classes.
1000 Do that later when there is no global symbol match.
1001
1002 2012-11-16 Doug Evans <dje@google.com>
1003
1004 * main.c (gdb_datadir_provided): New static global.
1005 (get_init_files): If --data-directory is provided,
1006 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1007 * NEWS: Mention it.
1008
1009 2012-11-15 Pierre Muller <muller@sourceware.org>
1010
1011 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1012 * gdb_stat.h: Delete. Moved to common directory.
1013 * common/gdb_stat.h: New file.
1014 * gdb_wait.h: Delete. Moved to common directory.
1015 * common/gdb_wait.h: New file.
1016 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1017 location.
1018 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1019 location.
1020 (stat.h rule): Adapt to new gdb_stat.h location.
1021 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1022 <sys/stat.h> header.
1023 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1024 <sys/wait.h> header.
1025
1026 2012-11-15 Pierre Muller <muller@sourceware.org>
1027
1028 * configure.ac (AC_HEADER_STAT): Remove.
1029 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1030 and corresponding code.
1031 * configure: Regenerate.
1032 * config.in: Regenerate.
1033
1034 2012-11-15 Pierre Muller <muller@sourceware.org>
1035
1036 ARI xasprintf rule fixes.
1037 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1038 instead of xasprintf.
1039 (open_and_init_dwp_file): Ditto.
1040
1041 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1042
1043 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1044 target types.
1045
1046 2012-11-14 Tom Tromey <tromey@redhat.com>
1047
1048 * configure, config.in: Rebuild.
1049 * configure.ac: Don't check for ctype.h, time.h.
1050 * expprint.c: Don't use HAVE_CTYPE_H.
1051
1052 2012-11-13 Tom Tromey <tromey@redhat.com>
1053
1054 * gdbarch.h, gdbarch.c: Rebuild.
1055 * gdbarch.sh (set_target_gdbarch): Rename from
1056 deprecated_target_gdbarch_select_hack.
1057 * arch-utils.c (gdbarch_update_p): Update.
1058 (set_gdbarch_from_file): Update.
1059
1060 2012-11-14 Pierre Muller <muller@sourceware.org>
1061
1062 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1063 as responsible of contrib/ari directory.
1064
1065 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1066 Yao Qi <yao@codesourcery.com>
1067
1068 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1069 bit of EXC_RETURN.
1070 (arm_m_exception_cache, arm_m_exception_this_id)
1071 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1072 (arm_m_exception_unwind): New.
1073 (arm_gdbarch_init): Register arm_m_exception_unwind.
1074
1075 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1076
1077 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1078 parameter COUNT, for pattern filling of memory regions.
1079 * NEWS: Mention it.
1080
1081 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1082
1083 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1084 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1085 to print_source_lines ().
1086 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1087 flag.
1088 * source.c (print_source_lines_base): Prefix source line with
1089 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1090
1091 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1092
1093 * symtab.h (print_source_lines_flags): New enum.
1094 * source.c (print_source_lines_base): Change noerror to flags.
1095 (print_source_lines): Change noerror to flags.
1096
1097 2012-11-13 Pierre Muller <muller@sourceware.org>
1098
1099 ARI fixes: Avoid sprintf function use rule.
1100 * charset.c (convert_between_encodings): Use xsnprintf.
1101 * cli-out.c (cli_field_int): Likewise.
1102 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1103 * expprint.c (op_name_standard): Likewise.
1104 * frv-tdep.c (set_variant_num_gprs): Likewise.
1105 (set_variant_num_fprs): Likewise.
1106 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1107 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1108 (nto_init_solib_absolute_prefix): Likewise.
1109 * source.c (init_source_path): Likewise.
1110 (print_source_lines_base): Likewise.
1111 * valprint.c (print_wchar): Likewise.
1112 * mi/mi-out.c (mi_field_int): Likewise.
1113 windows-nat.c (windows_pid_to_exec_file): Likewise.
1114 (windows_create_inferior): Likewise.
1115 (_initialize_check_for_gdb_ini): Likewise.
1116
1117 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1118
1119 * frame.h (deprecated_frame_register_read): Renames
1120 frame_register_read.
1121 * frame.c (deprecated_frame_register_read): Renames
1122 frame_register_read. Update all callers.
1123 * i386-tdep.c: Update all callers of frame_register_read.
1124 * infcmd.c: Likewise.
1125 * jit.c: Likewise.
1126 * mips-tdep.c: Likewise.
1127 * mt-tdep.c: Likewise.
1128 * sh64-tdep.c: Likewise.
1129
1130 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1131
1132 * frame.h (frame_register_read): Remove FIXME comment.
1133 * frame.c (frame_register_read): Add suggestion explaining
1134 which function to use in place of this one.
1135
1136 2012-11-12 Tom Tromey <tromey@redhat.com>
1137
1138 * python/python.c (start_type_printers): Initialize 'result_obj'.
1139
1140 2012-11-12 Tom Tromey <tromey@redhat.com>
1141
1142 * NEWS: Update.
1143 * data-directory/Makefile.in (PYTHON_FILES): Add
1144 type_printers.py.
1145 * python/lib/gdb/command/type_printers.py: New file.
1146 * python/lib/gdb/command/types.py (TypePrinter): New class.
1147 (_get_some_type_recognizers, get_type_recognizers,
1148 apply_type_recognizers, register_type_printer): New
1149 functions.
1150 * python/py-objfile.c (objfile_object) <type_printers>: New
1151 field.
1152 (objfpy_dealloc): Decref new field.
1153 (objfpy_new): Set new field.
1154 (objfpy_get_type_printers, objfpy_set_type_printers): New
1155 functions.
1156 (objfile_to_objfile_object): Set new field.
1157 (objfile_getset): Add "type_printers".
1158 * python/py-progspace.c (pspace_object) <type_printers>: New
1159 field.
1160 (pspy_dealloc): Decref new field.
1161 (pspy_new): Set new field.
1162 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1163 (pspace_to_pspace_object): Set new field.
1164 (pspace_getset): Add "type_printers".
1165 * python/python.c (start_type_printers, apply_type_printers,
1166 free_type_printers): New functions.
1167 (_initialize_python): Set gdb.type_printers.
1168 * python/python.h (start_type_printers, apply_type_printers,
1169 free_type_printers): Declare.
1170 * typeprint.c (type_print_raw_options, default_ptype_flags):
1171 Update for new fields.
1172 (do_free_global_table, create_global_typedef_table,
1173 find_global_typedef): New functions.
1174 (find_typedef_in_hash): Use find_global_typedef.
1175 (whatis_exp): Use create_global_typedef_table. Change cleanup
1176 handling.
1177 * typeprint.h (struct type_print_options) <global_typedefs,
1178 global_printers>: New fields.
1179
1180 2012-11-12 Tom Tromey <tromey@redhat.com>
1181
1182 * c-typeprint.c (find_typedef_for_canonicalize,
1183 print_name_maybe_canonical): New functions.
1184 (c_print_type): Look up type name.
1185 (cp_type_print_derivation_info): Add flags argument. Use
1186 print_name_maybe_canonical.
1187 (cp_type_print_method_args): Add wrapping.
1188 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1189 (c_type_print_template_args): New function.
1190 (c_type_print_base): Change wrapping. Use
1191 print_name_maybe_canonical.
1192 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1193 type name lookups.
1194 * gdbtypes.c (types_equal): No longer static.
1195 * gdbtypes.h (types_equal): Declare.
1196 * typeprint.c (type_print_raw_options, default_ptype_flags):
1197 Update.
1198 (struct typedef_hash_table): New.
1199 (hash_typedef_field, eq_typedef_field,
1200 recursively_update_typedef_hash, add_template_parameters,
1201 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1202 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1203 copy_typedef_hash, find_typedef_in_hash): New functions.
1204 * typeprint.h (struct type_print_options) <local_typedefs>:
1205 New field.
1206 (recursively_update_typedef_hash, add_template_parameters,
1207 create_typedef_hash, free_typedef_hash,
1208 make_cleanup_free_typedef_hash, copy_typedef_hash,
1209 find_typedef_in_hash): Declare.
1210
1211 2012-11-12 Tom Tromey <tromey@redhat.com>
1212
1213 * cp-support.c (inspect_type,
1214 replace_typedefs_qualified_name, replace_typedefs): Add
1215 finder, data arguments. Call as needed.
1216 (cp_canonicalize_string_full): New function.
1217 (cp_canonicalize_string_no_typedefs): Rewrite.
1218 * cp-support.h (canonicalization_ftype): New typedef.
1219 (cp_canonicalize_string_full): Declare.
1220
1221 2012-11-12 Tom Tromey <tromey@redhat.com>
1222
1223 * NEWS: Update.
1224 * c-typeprint.c (c_type_print_base): Handle print_method and
1225 print_typedefs flags.
1226 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1227 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1228 options.
1229 * typeprint.c (type_print_raw_options, default_ptype_flags):
1230 Update for new field.s
1231 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1232 (setprinttypelist, showprinttypelist, print_methods,
1233 print_typedefs): New globals.
1234 (set_print_type, show_print_type, set_print_type_methods,
1235 show_print_type_methods, set_print_type_typedefs,
1236 show_print_type_typedefs): New functions.
1237 (_initialize_typeprint): Update documentation. Add "print
1238 type methods" and "print type typedefs" parameters.
1239 * typeprint.h (struct type_print_options) <print_methods,
1240 print_typedefs>: New fields.
1241
1242 2012-11-12 Tom Tromey <tromey@redhat.com>
1243
1244 * c-typeprint.c (cp_type_print_method_args): Add flags
1245 argument. Call c_print_type, not type_print.
1246 (c_type_print_base): Call c_print_type, not type_print.
1247 Update.
1248
1249 2012-11-12 Tom Tromey <tromey@redhat.com>
1250
1251 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1252 to type-printing functions.
1253 * ada-lang.h (ada_print_type): Add argument.
1254 * ada-typeprint.c (print_array_type, print_variant_clauses,
1255 print_variant_part, print_selected_record_field_types,
1256 print_record_field_types, print_unchecked_union_type,
1257 print_func_type, ada_print_type): Add flags argument.
1258 (ada_print_typedef): Update.
1259 * c-exp.y (OPERATOR conversion_type_id): Update.
1260 * c-lang.h (c_print_type, c_type_print_base): Update.
1261 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1262 c_type_print_modifier, c_type_print_args,
1263 c_type_print_varspec_suffix, c_type_print_base): Add flags
1264 argument.
1265 * cp-valprint.c (cp_print_class_member): Update.
1266 * dwarf2read.c (dwarf2_compute_name): Update.
1267 * f-lang.h (f_print_type): Add argument.
1268 * f-typeprint.c (f_print_type): Add flags argument.
1269 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1270 * go-lang.h (go_print_type): Add argument.
1271 * go-typeprint.c (go_print_type): Add flags argument.
1272 * jv-lang.h (java_print_type): Add argument.
1273 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1274 flags argument.
1275 * language.c (unk_lang_print_type): Add flags argument.
1276 * language.h (struct language_defn) <la_print_type>: Add flags
1277 argument.
1278 (LA_PRINT_TYPE): Likewise.
1279 * m2-lang.h (m2_print_type): Add argument.
1280 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1281 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1282 m2_unbounded_array, m2_record_fields): Add flags argument.
1283 * p-lang.h (pascal_print_type, pascal_type_print_base,
1284 pascal_type_print_varspec_prefix): Add argument.
1285 * p-typeprint.c (pascal_print_type,
1286 pascal_type_print_varspec_prefix, pascal_print_func_args,
1287 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1288 flags argument.
1289 * symmisc.c (print_symbol): Update.
1290 * typeprint.c (type_print_raw_options, default_ptype_flags):
1291 New globals.
1292 (type_print): Update.
1293 * typeprint.h (struct type_print_options): New.
1294 (type_print_raw_options): Declare.
1295 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1296
1297 2012-11-10 Keith Seitz <keiths@redhat.com>
1298
1299 * breakpoint.c (clear_command): Add cleanup for
1300 sals.sals if an argument is given.
1301
1302 * linespec.c (parse_linespec): Do cleanups after
1303 parsing a convenience variable.
1304
1305 2012-11-10 Keith Seitz <keiths@redhat.com>
1306
1307 PR gdb/14288
1308 * c-valprint.c (c_val_print): For character arrays
1309 with "print null" option on, print ellipses if
1310 the output is truncated and the next character is not \000.
1311 * valprint.c (MAX_WCHARS): Define.
1312 (WCHAR_BUFLEN): Likewise.
1313 (WCHAR_BUFLEN_MAX): Likewise.
1314 (struct converted_character): New structure.
1315 (count_next_character): New function.
1316 (print_converted_chars_to_obstack): New function.
1317 (generic_printstr): Rewrite using count_next_character
1318 and print_converted_chars_to_obstack.
1319
1320 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1321
1322 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1323 while executing the gdb command.
1324 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1325 are called from prompt_for_continue.
1326 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1327
1328 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1329
1330 PR tui/9584
1331
1332 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1333 but insert the command to execute in readline's buffer.
1334
1335 2012-11-09 Tom Tromey <tromey@redhat.com>
1336
1337 * gdbarch.sh (target_gdbarch): Remove macro.
1338 (get_target_gdbarch): Rename to target_gdbarch.
1339 * gdbarch.c, gdbarch.h: Rebuild.
1340 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1341 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1342 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1343 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1344 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1345 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1346 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1347 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1348 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1349 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1350 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1351 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1352 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1353 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1354 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1355 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1356 target-descriptions.c, target.c, target.h, tracepoint.c,
1357 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1358 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1359 python/py-inferior.c, python/python.c: Update.
1360
1361 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1362
1363 * source.c (print_source_lines_base): Add fullname field giving
1364 full path to file in mi output.
1365 * NEWS: Mention the new fullname field.
1366
1367 2012-11-09 Yao Qi <yao@codesourcery.com>
1368
1369 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1370
1371 2012-11-09 Pedro Alves <palves@redhat.com>
1372
1373 PR gdb/14306
1374
1375 * infrun.c: Include target-descriptions.h.
1376 (follow_exec): Fetch new target description.
1377
1378 2012-11-09 Yao Qi <yao@codesourcery.com>
1379
1380 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1381 0x8d (lea).
1382
1383 2012-11-09 Yao Qi <yao@codesourcery.com>
1384
1385 * breakpoint.c: Declare set_tracepoint_count.
1386 (install_breakpoint): Call set_tracepoint_count if B is a
1387 tracepoint.
1388 (trace_command): Don't call set_tracepoint_count. Re-indent.
1389 (strace_command, ftrace_command):
1390 (create_tracepoint_from_upload): Likewise.
1391
1392 2012-11-09 Pedro Alves <palves@redhat.com>
1393
1394 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1395 (get_target_gdbarch) <gdbarch.h>: New function.
1396 (startup_gdbarch) <gdbarch.h>: Declare.
1397 <gdbarch.c> (target_gdbarch): Delete.
1398 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1399 current inferior's gdbarch.
1400 <gdbarch.c> (get_target_gdbarch): New function.
1401 * inferior.c: Include target-descriptions.h.
1402 (free_inferior): Free target description info.
1403 (add_inferior_with_spaces): Set the inferior's initial
1404 architecture.
1405 (clone_inferior_command): Copy the original inferior's target
1406 description if it was user specified.
1407 (initialize_inferiors): Add comment.
1408 * inferior.h (struct target_desc_info): Forward declare.
1409 (struct inferior) <gdbarch>: New field.
1410 * linux-nat.c: Include target-descriptions.h.
1411 (linux_child_follow_fork): Copy the parent's architecture and
1412 target description to the child.
1413 * target-descriptions.c: Include inferior.h.
1414 (struct target_desc_info): New structure, holding the equivalents
1415 of ...
1416 (target_desc_fetched, current_target_desc)
1417 (target_description_filename): ... these removed globals.
1418 (get_tdesc_info, target_desc_info_from_user_p)
1419 (copy_inferior_target_desc_info, target_desc_info_free): New.
1420 (target_desc_fetched, current_target_desc)
1421 (target_description_filename): Reimplemented as convenience
1422 macros.
1423 (tdesc_filename_cmd_string): New global.
1424 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1425 tdescs filename ..." commands to the per-inferior equivalent.
1426 (show_tdesc_filename_cmd): Get the value to show from the
1427 per-inferior description filename.
1428 (_initilize_target_descriptions): Change the "set/show tdesc
1429 filename" commands' variable.
1430 * target-descriptions.h (struct target_desc, struct target_desc_info)
1431 (struct inferior): Forward declare.
1432 (target_find_description, target_clear_description)
1433 (target_current_description): Adjust comments.
1434 (copy_inferior_target_desc_info, target_desc_info_free)
1435 (target_desc_info_from_user_p). Declare.
1436
1437 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1438
1439 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1440 (tui_target_wait_hook): Remove.
1441 (tui_install_hooks): Install the about_to_proceed observer.
1442 (tui_remove_hooks): And remove it here.
1443
1444 2012-11-08 Tom Tromey <tromey@redhat.com>
1445
1446 * linux-tdep.c (linux_make_siginfo_note): New function.
1447 (linux_make_corefile_notes): Use it.
1448 * corelow.c (get_core_siginfo): New function.
1449 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1450
1451 2012-11-08 Tom Tromey <tromey@redhat.com>
1452
1453 PR gdb/14704:
1454 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1455 (zlib_decompress_section): Remove.
1456 (gdb_bfd_map_section): Only check for compressed section
1457 in mmap case. Use bfd_get_full_section_contents.
1458 * osabi.c (check_note): Add 'sectsize' argument. Read
1459 section data.
1460 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1461 section data. Update for check_note change.
1462 * xcoffread.c (xcoff_initial_scan): Use
1463 bfd_get_full_section_contents.
1464 * py-auto-load.c (auto_load_section_scripts): Use
1465 bfd_get_full_section_contents.
1466 * contrib/cc-with-tweaks.sh: Add -Z option.
1467
1468 2012-11-08 Tom Tromey <tromey@redhat.com>
1469
1470 * python/py-bpevent.c: Include defs.h.
1471 * python/py-continueevent.c: Include defs.h.
1472 * python/py-event.c: Include defs.h.
1473 * python/py-event.h: Don't include defs.h.
1474 * python/py-events.h: Don't include defs.h.
1475 * python/py-evts.c: Include defs.h.
1476 * python/py-exitedevent.c: Include defs.h.
1477 * python/py-newobjfileevent.c: Include defs.h.
1478 * python/py-signalevent.c: Include defs.h.
1479 * python/py-stopevent.c: Include defs.h.
1480 * python/py-threadevent.c: Include defs.h.
1481
1482 2012-11-08 Pierre Muller <muller@sourceware.org>
1483
1484 * update-web-ari.sh (print_heading): Add number of files
1485 checked.
1486 (nb_files): New variable counting the number of sources
1487 files found by gdb_find.sh script.
1488 (debug_awk): New variable to allow extra debug output.
1489 (indexes): Add more information if DEBUG_AWK is set.
1490
1491 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1492
1493 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1494 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1495 following the change in PLT call stubs on linker.
1496
1497 2012-11-08 Pierre Muller <muller@sourceware.org>
1498
1499 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1500 as default language.
1501 (AWK): Use = instead of == for sh test to avoid warning.
1502 (Linux rule): Correct [:digit] into [[:digit:]].
1503 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1504 (vasprintf rule): Adapt to common subdirectory moves.
1505 (xasprintf rule): Idem.
1506 (xvasprintf rule): Idem.
1507 (var_boolean rule): Accept occurence in == or != test.
1508
1509 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1510
1511 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1512
1513 * tui/tui-hooks.c (tui_inferior_exit): New function.
1514 (tui_detach_hook): Remove.
1515 (tui_install_hooks): Install the inferior exit observer.
1516 (tui_remove_hooks): Remove it.
1517
1518 2012-11-08 Yao Qi <yao@codesourcery.com>
1519
1520 PR gdb/14777.
1521 * source.c (_initialize_source): Call add_com_alias to abbreviate
1522 'forward-search' as 'fo'.
1523
1524 2012-11-07 Pedro Alves <palves@redhat.com>
1525
1526 * arm-tdep.c: Make defs.h be the first include.
1527 * coff-pe-read.c: Ditto.
1528 * gnu-nat.c: Ditto.
1529 * go32-nat.c: Ditto.
1530 * i386-nat.c: Ditto.
1531 * ppcnbsd-nat.c: Ditto.
1532 * ada-varobj.h: Don't include defs.h.
1533 * i386-darwin-tdep.h: Ditto.
1534 * i386-nat.h: Ditto.
1535
1536 2012-11-07 Pedro Alves <palves@redhat.com>
1537
1538 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1539 Committee.
1540
1541 2012-11-07 Pierre Muller <muller@sourceware.org>
1542
1543 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1544 File already uses "gdb_dirent.h" header.
1545
1546 2012-11-07 Yao Qi <yao@codesourcery.com>
1547
1548 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1549 tracepoint_count'.
1550
1551 2012-11-06 Tom Tromey <tromey@redhat.com>
1552
1553 * target.h (inferior_has_forked, inferior_has_vforked)
1554 (inferior_has_execd, inferior_has_called_syscall): Remove
1555 declarations.
1556
1557 2012-11-06 Pierre Muller <muller@sourceware.org>
1558
1559 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1560 add missing internalization markup.
1561
1562 2012-11-06 Pedro Alves <palves@redhat.com>
1563
1564 PR gdb/14810
1565
1566 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1567
1568 2012-11-06 Pierre Muller <muller@sourceware.org>
1569
1570 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1571 is not executable.
1572
1573 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1574
1575 * gnulib/update-gnulib.sh: New script.
1576
1577 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1578
1579 * MAINTAINERS: Update my email address.
1580
1581 2012-11-05 Tom Tromey <tromey@redhat.com>
1582
1583 * frame.c (put_frame_register): Don't use temporary buffer.
1584
1585 2012-11-05 Pedro Alves <palves@redhat.com>
1586
1587 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1588 child. Clear 'pending_detach'.
1589 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1590 'pending_detach' in the vfork parent.
1591
1592 2012-11-05 Doug Evans <dje@google.com>
1593
1594 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1595 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1596 * dwarf2read.c: #include "elf-bfd.h".
1597 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1598 (dwop_section_names): Renamed from dwo_section names. All uses
1599 updated. Add entries for .debug_cu_index, .debug_tu_index.
1600 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1601 All uses updated.
1602 (struct dwp_sections): New type.
1603 (struct virtual_dwo_sections): New type.
1604 (struct dwp_hash_table): New type.
1605 (struct dwp_file): New type.
1606 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1607 read in. Handle DWOs coming from DWP files.
1608 (lookup_dwo_file_slot): New function.
1609 (dwarf2_locate_dwo_sections): Move definition closer to use.
1610 (create_dwo_debug_info_hash_table_reader): Renamed from
1611 create_debug_info_hash_table_reader. All callers updated.
1612 (create_dwo_debug_info_hash_table): Renamed from
1613 create_debug_info_hash_table. All callers updated.
1614 (create_dwp_hash_table): New function.
1615 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1616 (lookup_dwo_in_dwp): New function.
1617 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1618 is_dwp. All callers updated.
1619 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1620 (open_and_init_dwo_file): Renamed from init_dwo_file.
1621 All callers updated.
1622 (lookup_dwo_file): Delete.
1623 (dwarf2_locate_dwp_sections): New function.
1624 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1625 (allocate_dwp_loaded_cutus_table): New function.
1626 (open_and_init_dwp_file): New function.
1627 (lookup_dwo_cutu): New function.
1628 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1629
1630 2012-11-03 Yao Qi <yao@codesourcery.com>
1631
1632 Fix PR gdb/14617.
1633 * breakpoint.c (trace_pass_set_count): Call
1634 observer_notify_breakpoint_modified instead of
1635 observer_notify_tracepoint_modified.
1636 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1637
1638 2012-11-02 Tom Tromey <tromey@redhat.com>
1639
1640 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1641 argument to complete_on_enum.
1642
1643 2012-11-02 Tom Tromey <tromey@redhat.com>
1644
1645 * configure: Rebuild.
1646 * configure.ac (build_warnings): Add -Wempty-body.
1647 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1648 * remote.c (handle_notification): Use braces for empty 'else' body.
1649 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1650 'else' body.
1651 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1652 'else' body.
1653 * solib-som.c (som_relocate_section_addresses): Use braces
1654 for empty 'else' body.
1655 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1656 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1657
1658 2012-11-02 Pedro Alves <palves@redhat.com>
1659
1660 PR gdb/14766
1661
1662 * infrun.c (handle_inferior_event)
1663 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1664 null_ptid before handling a vfork child exec or exit. Switch to
1665 the event ptid afterwards.
1666
1667 2012-11-02 Yao Qi <yao@codesourcery.com>
1668
1669 * std-operator.def: Remove OP_LABELED.
1670 * eval.c: Remove the declaration of 'get_label'.
1671 (get_label): Remove.
1672 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1673 Update comment.
1674 Remove local variable 'variantno' and related code.
1675 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1676 with 'fieldno'.
1677 * expprint.c (print_subexp_standard): Likewise.
1678 (dump_subexp_body_standard): Likewise.
1679 * parse.c (operator_length_standard): Likewise.
1680
1681 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1682
1683 Incorporate ARI web page generator into GDB sources.
1684 * contrib/ari/create-web-ari-in-src.sh: New file.
1685 * contrib/ari/gdb_ari.sh: New file.
1686 * contrib/ari/gdb_find.sh: New file.
1687 * contrib/ari/update-web-ari.sh: New file.
1688
1689 2012-10-31 Tom Tromey <tromey@redhat.com>
1690
1691 * gdbarch.c: Rebuild.
1692 * gdbarch.sh: Remove references to gdbarch_swap.
1693 * corelow.c (core_open): Remove obsolete comment.
1694
1695 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1696
1697 PR cli/14772
1698 * c-typeprint.c (c_print_type): Don't print a space for vector
1699 types, this is handled within the suffix.
1700 (c_type_print_varspec_suffix): Add a space to vector suffix.
1701
1702 2012-10-26 Pedro Alves <palves@redhat.com>
1703
1704 * amd64-tdep.c (amd64_relocate_instruction): Use
1705 store_unsigned_integer instead of memcpy.
1706 * i386-tdep.c (i386_relocate_instruction): Ditto.
1707
1708 2012-10-26 Pedro Alves <palves@redhat.com>
1709
1710 * infrun.c (handle_inferior_event): Merge handling of
1711 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1712 switch case.
1713
1714 2012-10-26 Pedro Alves <palves@redhat.com>
1715
1716 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1717 Remove comment.
1718
1719 2012-10-26 Pedro Alves <palves@redhat.com>
1720
1721 * target.c (target_waitstatus_to_string): Handle
1722 TARGET_WAITKIND_VFORK_DONE.
1723
1724 2012-10-26 Pedro Alves <palves@redhat.com>
1725
1726 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1727 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1728
1729 2012-10-24 Tristan Gingold <gingold@adacore.com>
1730
1731 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1732 Add comments.
1733
1734 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1735
1736 * ravenscar-thread.c (ravenscar_wait): Only update the list
1737 of threads and inferior_ptid if the inferior is still alive.
1738
1739 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1740
1741 * ada-lang.c (is_known_support_routine): Use lbasename when
1742 matching the symtab's filename against
1743 known_runtime_file_name_patterns.
1744
1745 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1746
1747 * ada-lang.c (ada_same_array_size_p): New function.
1748 (ada_promote_array_of_integrals): New function.
1749 (coerce_for_assign): Add handling of arrays where the elements
1750 are integrals of a smaller size than the size of the target
1751 array element type.
1752
1753 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1754
1755 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1756 against maximum exponent value.
1757
1758 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1759
1760 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1761 "unwind-seh.c".
1762
1763 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1764
1765 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1766 strip typedef layer when computing the fixed type's field type,
1767 only when computing its size.
1768
1769 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1770
1771 PR gdb/12783
1772 * i386-tdep.c (i386_return_value): Handle complex double and long
1773 double.
1774
1775 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1776
1777 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1778 New local variable args_len.
1779 Quote the name of the executable when computing the command line.
1780
1781 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1782
1783 PR gdb/12796
1784 PR gdb/12798
1785 PR gdb/12800
1786 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1787 AMD64_FTAG_REGNUM.
1788 * amd64-tdep.c (amd64_classify): Classify complex types.
1789 (amd64_return_value): Handle the COMPLEX_X87 class.
1790
1791 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1792
1793 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1794 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1795
1796 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1797
1798 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1799 function.
1800 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1801 to amd64_windows_auto_wide_charset.
1802
1803 2012-10-23 Yao Qi <yao@codesourcery.com>
1804
1805 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1806 * event-top.h: Remove its declaration.
1807 (async_request_quit): Call mark_async_signal_handler instead of
1808 mark_async_signal_handler_wrapper.
1809 (async_do_nothing, async_disconnect): Likewise.
1810 (async_stop_sig): Likewise.
1811 * remote.c (handle_remote_sigint): Likewise.
1812 (handle_remote_sigint_twice): Likewise.
1813
1814 2012-10-23 Yao Qi <yao@codesourcery.com>
1815
1816 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1817 with 'static struct async_signal_handler *'.
1818 (sighup_token, sigquit_token, sigstp_token): Likewise.
1819
1820 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1821
1822 * gdbarch.sh (function_list): Use 'pstring' when printing
1823 a variable which could return NULL.
1824 * gdbarch.c: Regenerate.
1825
1826 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1827 Tom Tromey <tromey@redhat.com>
1828
1829 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1830 inneffective if condition by gdb assertion. Add function
1831 description comment.
1832
1833 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1834
1835 * parser-defs.h (struct exp_descriptor): Document constraint
1836 on return value for "op_name" callbacks.
1837
1838 2012-10-18 Tom Tromey <tromey@redhat.com>
1839
1840 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1841 * symtab.c (iterate_over_some_symtabs): Constify.
1842 * source.h (symtab_to_fullname): Return 'const char *'.
1843 * source.c (symtab_to_fullname): Return 'const char *'.
1844 * python/py-symtab.c (stpy_fullname): Constify.
1845 * cli/cli-cmds.c (edit_command): Constify.
1846 * breakpoint.c (print_breakpoint_location)
1847 (update_static_tracepoint): Constify.
1848
1849 2012-10-18 Tom Tromey <tromey@redhat.com>
1850
1851 * breakpoint.c (compare_breakpoints): Fix comparison.
1852
1853 2012-10-18 Tom Tromey <tromey@redhat.com>
1854
1855 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1856 gdb_wchar_t to convert_between_encodings.
1857
1858 2012-10-17 Yao Qi <yao@codesourcery.com>
1859
1860 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1861 more parameter 'inferior'.
1862 * corefile.c (write_memory_with_notification): Caller update.
1863
1864 * mi/mi-cmd-var.c: Include "mi-main.h".
1865 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1866 to 1 and restore it later.
1867 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1868 and "data-write-memory-bytes.
1869 * mi/mi-interp.c: Include objfiles.h.
1870 (mi_interpreter_init): Call observer_attach_memory_changed.
1871 (mi_memory_changed): New.
1872 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1873 New field.
1874
1875 * NEWS: Mention new MI notification "memory-changed".
1876
1877 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1878
1879 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1880
1881 2012-10-15 Doug Evans <dje@google.com>
1882
1883 New option -nh: inhibit loading of ~/.gdbinit.
1884 * NEWS: Mention -nh.
1885 * main.c (captured_main): Recognize and process -nh.
1886 (print_gdb_help): Mention -nh.
1887 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1888
1889 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1890
1891 PR backtrace/14646
1892 PR gdb/14647
1893 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1894 pc_regnum_from_eax.
1895 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1896 nor pc_regnum_from_eax.
1897 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1898 nor pc_regnum_from_eax.
1899
1900 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1901
1902 Fix entry values resolving in inlined frames.
1903 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1904 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1905 entries of FRAME.
1906
1907 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1908
1909 * configure.ac: Build with -DMS_WIN64 if building with Python
1910 enabled using GCC on amd64-windows.
1911 * configure: Regenerate.
1912
1913 2012-10-15 Tom Tromey <tromey@redhat.com>
1914
1915 PR python/14635:
1916 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1917 to Py_None.
1918
1919 2012-10-15 Tom Tromey <tromey@redhat.com>
1920
1921 PR python/14634:
1922 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1923
1924 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1925
1926 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1927 reset thread numbering back to 1.
1928
1929 2012-10-11 Doug Evans <dje@google.com>
1930
1931 PR breakpoints/14643.
1932 * linespec.c (struct ls_parser): New member keyword_ok.
1933 (linespec_lexer_lex_string): Add comment.
1934 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1935 for one.
1936 (parse_linespec): Set keyword_ok.
1937
1938 2012-10-10 Doug Evans <dje@google.com>
1939
1940 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1941 "0x" prefix on address in log message.
1942
1943 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1944 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1945 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1946 (lookup_dwo_file): Add const to dwo_name parameter.
1947 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1948
1949 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1950
1951 Fix crash during stepping on ppc32.
1952 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1953 SYM.
1954
1955 2012-10-03 Doug Evans <dje@google.com>
1956
1957 PR symtab/14601
1958 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1959
1960 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1961
1962 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1963 output and use uint32_t not long to ensure 4 byte size.
1964
1965 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1966
1967 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1968 unref'ed it.
1969
1970 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1971
1972 * target.c (simple_search_memory): Include access length in
1973 warning message.
1974
1975 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1976 Edjunior Machado <emachado@linux.vnet.ibm.com>
1977
1978 PR gdb/13989
1979 * solib.c (solib_find): Prevent GDB from loading native libraries when
1980 debugging a cross-target corefile.
1981
1982 2012-09-28 selven <pcthegreat@gmail.com>
1983
1984 Make definition match declaration.
1985
1986 * regcache.c (regcache_register_status): Change return type to
1987 enum register_status.
1988
1989 2012-09-28 Yao Qi <yao@codesourcery.com>
1990
1991 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1992 write_memory_with_notification instead of write_memory.
1993 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1994 instead of target_write_memory.
1995
1996 2012-09-28 Yao Qi <yao@codesourcery.com>
1997
1998 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1999 when the length of content is not an even number.
2000
2001 2012-09-27 Tom Tromey <tromey@redhat.com>
2002
2003 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2004 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2005
2006 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2007
2008 * sol-thread.c (sol_thread_fetch_registers)
2009 (sol_thread_store_registers): Delete commented out code.
2010
2011 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2012
2013 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2014 Move these functions to sparc-sol-thread.c.
2015 * sparc-sol-thread.c: New file.
2016 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2017 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2018 configurations.
2019 * configure: Regenerate.
2020
2021 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2022
2023 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2024 Remove commented-out code.
2025
2026 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2027
2028 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2029 Enable this code for sparc hosts only.
2030
2031 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2032
2033 * procfs.h (procfs_find_LDT_entry): Add declaration.
2034 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2035 function procfs_find_LDT_entry.
2036
2037 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2038
2039 * procfs.c (proc_get_LDT_entry): Make static.
2040
2041 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2042
2043 * procfs.c (proc_find_memory_regions): Fix declaration.
2044
2045 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2046
2047 * amd64-tdep.c (amd64_return_value): Revert previous change
2048 that used TYPE_LENGTH directly.
2049 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2050 (bfin_store_return_value): Likewise.
2051 * cris-tdep.c (cris_store_return_value): Likewise.
2052 (cris_extract_return_value): Likewise.
2053 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2054 * hppa-tdep.c (hppa64_return_value): Likewise.
2055 * lm32-tdep.c (lm32_store_return_value): Likewise.
2056 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2057 * spu-tdep.c (spu_value_from_register): Likewise.
2058 * vax-tdep.c (vax_return_value): Likewise.
2059
2060 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2061
2062 * gdbtypes.c (lookup_array_range_type): Expand parameters
2063 LOW_BOUND and HIGH_BOUND to LONGEST.
2064 (lookup_string_range_type): Likewise.
2065 * gdbtypes.h (lookup_array_range_type): Likewise.
2066 (lookup_string_range_type): Likewise.
2067 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2068 Expand HIGHBOUND to ssize_t.
2069 (value_string): Likewise.
2070 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2071 (value_string): Likewise.
2072
2073 2012-09-27 Yao Qi <yao@codesourcery.com>
2074
2075 PR breakpoints/13898
2076 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2077 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2078 per breakpoint type.
2079
2080 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2081
2082 * procfs.c: Add gdb_bfd header.
2083 * rs6000-nat.c: Likewise.
2084 * solib-pa64.c: Likewise.
2085 * spu-linux-nat.c: Likewise.
2086 * windows-nat.c: Likewise.
2087
2088 2012-09-26 Tom Tromey <tromey@redhat.com>
2089
2090 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2091
2092 2012-09-26 Tom Tromey <tromey@redhat.com>
2093
2094 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2095 (read_common_block): Handle child DIEs with
2096 DW_AT_data_member_location.
2097 (new_symbol_full): Add special case for common blocks.
2098
2099 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2100 Tom Tromey <tromey@redhat.com>
2101
2102 * dwarf2read.c (read_common_block): Rewrite.
2103 (new_symbol_full): Handle DW_TAG_common_block.
2104 * f-lang.c (head_common_list, find_common_for_function):
2105 Remove.
2106 * f-lang.h (struct common_entry, struct saved_f77_common,
2107 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2108 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2109 BLANK_COMMON_NAME_LOCAL): Remove.
2110 (struct common_block): New.
2111 * f-valprint.c (list_all_visible_commons): Remove.
2112 (info_common_command_for_block): New function.
2113 (info_common_command): Use it.
2114 * stack.c (iterate_over_block_locals): Special case for
2115 COMMON_BLOCK_DOMAIN.
2116 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2117 constant.
2118 (struct general_symbol_info) <value.common_block>: New field.
2119 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2120
2121 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2122 Tom Tromey <tromey@redhat.com>
2123
2124 * f-lang.c (allocate_saved_bf_node,
2125 allocate_saved_function_node, allocate_saved_f77_common_node,
2126 allocate_common_entry_node, tail_common_list, current_common,
2127 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2128 tmp_bf_ptr, add_common_block, add_common_entry,
2129 find_first_common_named, patch_common_entries,
2130 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2131 global_remote_debug, get_bf_for_fcn, saved_function_list,
2132 saved_function_list_end, clear_function_list, struct saved_fcn,
2133 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2134 SAVED_BF, SAVED_BF_PTR): Remove.
2135 * f-lang.h (tail_common_list, current_common,
2136 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2137 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2138 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2139 real_main_c_value): Remove.
2140 * f-valprint.c (there_is_a_visible_common_named): Remove.
2141
2142 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2143
2144 * breakpoint.c (update_global_location_list): Ignore previous
2145 duplicate status of a breakpoint when starting a new scan for
2146 duplicate breakpoints.
2147
2148 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2149 PR breakpoints/14419
2150 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2151 support LLVM compiler.
2152
2153 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2154
2155 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2156 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2157 (bfin_store_return_value): Likewise.
2158 * cris-tdep.c (cris_store_return_value): Likewise.
2159 (cris_extract_return_value): Likewise.
2160 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2161 * hppa-tdep.c (hppa64_return_value): Likewise.
2162 * lm32-tdep.c (lm32_store_return_value): Likewise.
2163 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2164 * spu-tdep.c (spu_value_from_register): Likewise.
2165 * vax-tdep.c (vax_return_value): Likewise.
2166
2167 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2168
2169 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2170 parameter LEN to ssize_t.
2171
2172 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2173
2174 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2175 variable LEN.
2176 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2177 directly.
2178 (alpha_store_return_value): Likewise.
2179 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2180 (amd64_push_arguments): Likewise.
2181 * ax-gdb.c (gen_trace_static_fields): Likewise.
2182 (gen_traced_pop): Likewise.
2183 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2184 * breakpoint.c (update_watchpoint): Likewise.
2185 * findcmd.c (parse_find_args): Use local variable for type
2186 instead of length.
2187 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2188 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2189 (h8300_store_return_value): Likewise.
2190 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2191 Use i386_darwin_arg_type_alignment directly.
2192 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2193 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2194 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2195 (m68hc11_extract_return_value): Likewise.
2196 * mep-tdep.c (mep_push_dummy_call): Likewise.
2197 * printcmd.c (float_type_from_length): Likewise.
2198 * s390-tdep.c (s390_value_from_register): Likewise.
2199 * stack.c (read_frame_arg): Likewise.
2200 * tracepoint.c (encode_actions_1): Likewise.
2201 * valops.c (value_fetch_lazy): Use local variable for type
2202 instead of length. Use TYPE_LENGTH directly.
2203 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2204
2205 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2206
2207 * symtab.c (skip_prologue_sal): Fix typo in comment.
2208
2209 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2210
2211 * linespec.c (create_sals_line_offset): Fix typo in comment.
2212
2213 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2214
2215 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2216 use plongest to print the array size.
2217
2218 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2219
2220 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2221 * p-valprint.c (pascal_type_print_base): Likewise.
2222
2223 2012-09-22 Yao Qi <yao@codesourcery.com>
2224
2225 * remote.c (remote_get_trace_status): Remove setting default
2226 values of fields of 'ts'.
2227
2228 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2229
2230 Fix internal error on canonicalization of clang types.
2231 * cp-name-parser.y (operator): New comment at make_operator call for
2232 new, delete, new[] and delete[].
2233 (exp): Use "sizeof ". Add new comment at make_operator call.
2234
2235 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2236
2237 Fix disassemble without parameters in tailcall frame.
2238 * cli/cli-cmds.c (disassemble_current_function): Use
2239 get_frame_address_in_block.
2240
2241 2012-09-21 Tom Tromey <tromey@redhat.com>
2242
2243 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2244 TYPE_CODE_UNION>: Unify, removing a goto.
2245
2246 2012-09-21 Tom Tromey <tromey@redhat.com>
2247
2248 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2249
2250 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2251
2252 * findvar.c (read_frame_register_value): Mark the result value as
2253 optimized out if any of the input registers have been optimized out.
2254
2255 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2256
2257 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2258
2259 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2260
2261 * eval.c (evaluate_subexp_standard): Eliminate single-use
2262 variable LOWER.
2263
2264 2012-09-21 Yao Qi <yao@codesourcery.com>
2265
2266 * mi/mi-interp.c: Declare mi_record_changed.
2267 (mi_interpreter_init): Call observer_attach_record_changed.
2268 (mi_record_changed): New.
2269 * record.c (record_open): Call observer_notify_record_changed.
2270 (cmd_record_stop): Call observer_notify_record_changed.
2271 * NEWS: Mention it.
2272
2273 2012-09-20 Tom Tromey <tromey@redhat.com>
2274
2275 * NEWS: Update.
2276 * python/python.c (finalize_python): New function.
2277 (_initialize_python): Make a final cleanup.
2278
2279 2012-09-19 Doug Evans <dje@google.com>
2280
2281 * buildsym.h (param_symbols): Delete, unused.
2282 (context_stack): Delete member "params", unused.
2283 * buildsym.c (push_context): Update.
2284 * dwarf2read.c (read_func_scope): Update.
2285
2286 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2287
2288 * sh-tdep.c (sh_register_convert_to_virtual)
2289 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2290 all callers. Just do a memcpy if not the little-endian case.
2291
2292 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2293 set_gdbarch_double_format and set_gdbarch_long_double_format.
2294 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2295 set_gdbarch_double_format.
2296 * sh-tdep.c (sh_gdbarch_init): Likewise.
2297
2298 * NEWS: Document the removal of SH's 'regs' command.
2299 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2300 command.
2301
2302 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2303
2304 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2305 `jump'.
2306
2307 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2308
2309 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2310 language when iterating over symbols.
2311
2312 2012-09-18 Yao Qi <yao@codesourcery.com>
2313
2314 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2315 (mi_interpreter_init): Call observer_attach_tsv_created and
2316 observer_attach_tsv_deleted.
2317 (mi_tsv_created, mi_tsv_deleted): New.
2318 * tracepoint.c (delete_trace_state_variable): Call
2319 observer_notify_tsv_deleted.
2320 (trace_variable_command): Call observer_notify_tsv_created.
2321 (delete_trace_variable_command): Call
2322 observer_notify_tsv_deleted.
2323 (create_tsv_from_upload): Call observer_notify_tsv_created.
2324 * NEWS: Mention it.
2325
2326 2012-09-18 Yao Qi <yao@codesourcery.com>
2327
2328 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2329 if traceframe changed.
2330 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2331 "trace-find".
2332 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2333 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2334 'traceframe_changed'.
2335 (mi_traceframe_changed): New.
2336 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2337 New field.
2338 * NEWS: Mention the new MI notification.
2339
2340 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2341
2342 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2343
2344 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2345
2346 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2347 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2348 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2349 Extend code also for PaX support. Convert all gdb_assert to warning
2350 calls.
2351
2352 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2353
2354 Implement auto-load user conveniences suggested by Doug Evans.
2355 * auto-load.c: Include top.h.
2356 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2357 (_initialize_auto_load): New variable scripts_directory_help. Mention
2358 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2359 scripts-directory. Document in online help one can use also files for
2360 set auto-load safe-path.
2361 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2362 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2363
2364 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2365
2366 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2367 of LEN.
2368
2369 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2370
2371 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2372 ELTLEN and use TYPE_LENGTH directly.
2373 (m2_val_print): Likewise.
2374 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2375 variable LEN and use TYPE_LENGTH directly.
2376 (m68k_svr4_store_return_value): Likewise.
2377 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2378 ARGLEN and use TYPE_LENGTH directly.
2379 (mips_o64_push_dummy_call): Likewise.
2380 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2381 variable LENGTH and use TYPE_LENGTH directly.
2382 (s390_function_arg_float): Likewise.
2383 (s390_function_arg_integer): Likewise.
2384 (s390_push_dummy_call): Likewise.
2385 (s390_return_value_convention): Likewise.
2386 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2387 TYPE_LENGTH directly.
2388
2389 2012-09-17 Yao Qi <yao@codesourcery.com>
2390
2391 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2392 Update comment to add_setshow_integer_cmd.
2393 * cli/cli-setshow.c (do_set_command): Handle case
2394 'var_zuinteger_unlimited'.
2395 (do_show_command): Likewise.
2396 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2397 for command 'remotetimeout'.
2398 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2399 to var_integer.
2400 * source.c (_initialize_source): Call
2401 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2402
2403 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2404
2405 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2406 variable LEN.
2407
2408 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2409
2410 PR 14119
2411 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2412 (frame_pop): Drop also TAILCALL_FRAME frames.
2413 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2414
2415 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2416 Pedro Alves <palves@redhat.com>
2417
2418 PR 14548
2419 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2420 function start if we are already at function start. Both for
2421 reverse-next and for reverse-step into function without line number
2422 info.
2423
2424 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2425
2426 Code cleanup - rename 'inline' depth to 'artificial' depth.
2427 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2428 frame_id_artificial_p, extend the comment.
2429 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2430 * frame.c (fprint_frame_id): Rename at a user, change debug output
2431 text to "artificial=".
2432 (skip_inlined_frames): Rename to ...
2433 (skip_artificial_frames): ... here. Extend the comment.
2434 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2435 (frame_id_inlined_p): Rename to ...
2436 (frame_id_artificial_p): ... here. Rename at a user.
2437 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2438 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2439 at a user.
2440 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2441 Extend the comment.
2442 (frame_id_inlined_p): Rename to ...
2443 (frame_id_artificial_p): ... here.
2444 * inline-frame.c (inline_frame_this_id): Rename at a user.
2445
2446 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2447
2448 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2449 vector variables using vector_size syntax rather than array
2450 syntax.
2451
2452 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2453
2454 * valarith.c (value_concat): Replace unsafe ALLOCA with
2455 XMALLOC/XFREE.
2456
2457 2012-09-14 Pedro Alves <palves@redhat.com>
2458
2459 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2460
2461 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2462
2463 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2464 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2465 data-directory as appropriate.
2466
2467 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2468
2469 * printcmd.c (ui_printf): Eliminate single-use variable
2470 PARAM_LEN.
2471
2472 2012-09-14 Yao Qi <yao@codesourcery.com>
2473 Pedro Alves <palves@redhat.com>
2474
2475 * valops.c (value_assign): Move observer_notify_target_changed
2476 below to replace reinit_frame_cache.
2477
2478 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2479
2480 Refactor Python "gdb" module into a proper Python package, by
2481 introducing a new "_gdb" module for code implemented in C, and
2482 using reload/__import__ instead of exec.
2483 * python/lib/gdb/__init__.py: Import * from _gdb.
2484 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2485 prompt_hook, sys.argv): Moved from finish_python_initialization.
2486 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2487 (packages, auto_load_packages): New list and function replacing
2488 module_dict and auto-loading code, using __file__ instead of
2489 gdb.PYTHONDIR and reload/__import__ instead of exec.
2490 (GdbSetPythonDirectory): Replacing function of the same name
2491 from finish_python_initialization, using reload/__import__ instead
2492 of exec, as well as call auto_load_packages.
2493 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2494 gdb_python_module and not gdb_module.
2495 * python/python-internal.h (gdb_python_module): Declare.
2496 * python/python.c (gdb_python_module): New global.
2497 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2498 (_initialize_python): Rename gdb module to _gdb.
2499 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2500 (finish_python_initialization): Move Python code to
2501 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2502 __main__.
2503
2504 2012-09-13 Pedro Alves <palves@redhat.com>
2505
2506 * Makefile.in (COMMON_OBS): Add registry.o.
2507 * registry.c: New file.
2508 * registry.h (struct registry_container): Declare.
2509 (registry_data_callback): New typedef.
2510 (struct registry_data, struct registry_data_registration, struct
2511 registry_data_registry): New type.
2512 (register_data_with_cleanup, registry_alloc_data)
2513 (registry_callback_adaptor, registry_clear_data)
2514 (registry_container_free_data, registry_set_data, registry_data):
2515 Declare.
2516 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2517 the new common structures and functions.
2518 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2519 callback typedefs.
2520
2521 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2522
2523 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2524 there is an error inserting hardware breakpoints and use the
2525 error message from the target.
2526
2527 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2528 Catch this exception and print the error message contained within.
2529 Do not print the default hardware error breakpoint message in this
2530 case.
2531
2532 2012-09-12 Doug Evans <dje@google.com>
2533
2534 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2535 cu == NULL.
2536
2537 2012-09-11 Doug Evans <dje@google.com>
2538
2539 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2540 .gdb_index symbol attributes if there are none.
2541
2542 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2543
2544 * symtab.h (struct minimal_symbol) [has_size]: New field.
2545 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2546 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2547 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2548 minimal symbols if the symbol's size is actually known.
2549 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2550 of msymbol's size field. Add comment.
2551 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2552 SET_MSYMBOL_SIZE to set the minimal symbol size.
2553
2554 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2555
2556 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2557 minimal_symbol struct object, rather than setting some of its
2558 fields one by one.
2559
2560 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2561
2562 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2563 passed_a_ptr flag when displaying typedef types.
2564
2565 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2566
2567 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2568 the optimized_out flag is preserved.
2569
2570 2012-09-10 Anthony Green <green@moxielogic.com>
2571
2572 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2573 prologue changes in GCC.
2574
2575 2012-09-10 Keith Seitz <keiths@redhat.com>
2576
2577 PR gdb/13483
2578 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2579 (BOOL_CONVERSION_BADNESS): ... this.
2580 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2581 (rank_one_type): Allow all boolean conversions
2582 permitted by the standard.
2583
2584 2012-09-06 Tom Tromey <tromey@redhat.com>
2585
2586 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2587 Don't decref py_objfile.
2588
2589 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2590
2591 Do not enable -lmcheck by default when Python is enabled with
2592 threading support.
2593 * configure.ac: (python_has_threads) New variable, by testing
2594 if WITH_THREAD is defined in Python.h.
2595 Move --enable-lmcheck after --with-python.
2596 Do not enable -lmcheck by default if python_has_threads=yes.
2597 Warn if --enable-lmcheck and python_has_threads=yes.
2598 * configure: Regenerate.
2599
2600 2012-08-31 Yao Qi <yao@codesourcery.com>
2601
2602 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2603 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2604 Update some commands.
2605 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2606 * mi/mi-main.c (mi_cmd_execute): Set
2607 '*parse->cmd->suppress_notification' to 1.
2608
2609 2012-08-31 Yao Qi <yao@codesourcery.com>
2610
2611 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2612
2613 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2614
2615 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2616
2617 2012-08-29 Doug Evans <dje@google.com>
2618
2619 * main.c (print_gdb_help): Remove reference to
2620 --use-deprecated-index-sections.
2621
2622 2012-08-28 Yao Qi <yao@codesourcery.com>
2623
2624 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2625 (init_cmds): Call add_setshow_uinteger_cmd for command
2626 'max-user-call-depth'.
2627 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2628 declaration of 'max_user_call_depth'.
2629 * frame.c (backtrace_limit): Add 'unsigned'.
2630 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2631 'limit'.
2632 * remote.c (remoteaddresssize): Add 'unsigned'.
2633 (remote_address_masked): Change local var 'address_size' to
2634 'unsigned'.
2635 (_initialize_remote): Call add_setshow_uinteger_cmd for
2636 'remoteaddresssize'.
2637 * top.c (history_size): Add 'unsigned'.
2638 (show_commands): Change local variables to 'unsigned'.
2639 (set_history_size_command): Don't check history_size is negative.
2640 Adjust the condition to call unstifle_history and set history_size
2641 to UNIT_MAX.
2642
2643 2012-08-28 Pedro Alves <palves@redhat.com>
2644
2645 PR gdb/14428
2646
2647 * infcmd.c (default_print_one_register_info): New, factored out
2648 from default_print_registers_info.
2649 (default_print_registers_info): Use it. Mark value unavailable if
2650 necessary.
2651 (registers_info): Print user registers with
2652 default_print_one_register_info.
2653
2654 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2655
2656 PR tui/14486
2657 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2658 is not NULL before referencing it.
2659
2660 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2661
2662 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2663 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2664 original PC for it.
2665
2666 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2667 Jan Kratochvil <jan.kratochvil@redhat.com>
2668
2669 * auto-load.c (auto_load_objfile_script): Rename to ...
2670 (auto_load_objfile_script_1): ... here, change variable realname to
2671 parameter realname, document it, add return value, add variable retval.
2672 (auto_load_objfile_script): New function.
2673
2674 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2675
2676 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2677 followed by a whitespace.
2678
2679 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2680
2681 PR gdb/14494.
2682 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2683 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2684 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2685 here.
2686
2687 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2688
2689 * memattr.c (create_mem_region): Fix memory region overlapping
2690 checking.
2691
2692 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2693
2694 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2695 with xmalloc/cleanup.
2696 * mt-tdep.c (mt_push_dummy_call): Likewise.
2697 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2698 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2699
2700 2012-08-24 Yao Qi <yao@codesourcery.com>
2701
2702 * jv-exp.y (push_expression_name): Add "." at the end of error
2703 message.
2704
2705 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2706
2707 Document how to return from "python-interactive" to GDB.
2708 * python/python.c (_initialize_python): Update documentation.
2709
2710 2012-08-23 Pedro Alves <palves@redhat.com>
2711
2712 * infrun.c (_initialize_infrun) <handle command help text>:
2713 Mention that multiple signals are supported.
2714
2715 2012-08-23 Pedro Alves <palves@redhat.com>
2716
2717 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2718 string.
2719
2720 2012-08-23 Yao Qi <yao@codesourcery.com>
2721
2722 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2723 (tfind_1): Don't call registers_changed, set_traceframe_num,
2724 and clear_traceframe_info.
2725 Call set_current_traceframe.
2726 (set_current_traceframe): call set_traceframe_num.
2727
2728 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2729
2730 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2731 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2732
2733 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2734
2735 Enable readline in Python in a GDB-specific way and block the
2736 standard Python readline module to prevent conflicts with GDB.
2737 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2738 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2739 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2740 * python/py-gdb-readline.c: New file.
2741 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2742 prototype.
2743 * python/python.c (_initialize_python): Call
2744 gdbpy_initialize_gdb_readline.
2745
2746 2012-08-22 Keith Seitz <keiths@redhat.com>
2747
2748 * defs.h: Include build-gnulib/config.h
2749
2750 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2751
2752 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2753 and blx pc.
2754
2755 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2756
2757 Add a new "python-interactive" command that starts a standard
2758 Python interactive prompt with "pi" as alias, and add "py" as
2759 an alias to "python".
2760 * NEWS: Mention the new commands.
2761 * python/python.c (eval_python_command): New function.
2762 (python_interactive_command): For "python-interactive" with
2763 arguments, call eval_python_command. For "python-interactive"
2764 without arguments, call PyRun_InteractiveLoop.
2765 (_initialize_python): Add "python-interactive" command with
2766 "pi" as alias, and add "py" as an alias to "python".
2767
2768 2012-08-22 Tom Tromey <tromey@redhat.com>
2769
2770 * defs.h (quit_flag): Don't declare.
2771 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2772 (QUIT): Use new functions.
2773 * event-top.c (command_handler): Use clear_quit_flag.
2774 (handle_sigint): Use set_quit_flag.
2775 (async_request_quit): Use check_quit_flag. Don't check
2776 immediate_quit.
2777 * exceptions.c (throw_exception): Use clear_quit_flag.
2778 * main.c (captured_main): Use clear_quit_flag.
2779 * python/python.c (clear_quit_flag, set_quit_flag)
2780 (check_quit_flag): New functions.
2781 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2782 clear_quit_flag.
2783 * remote.c (remote_wait_as): Use check_quit_flag,
2784 clear_quit_flag.
2785 (remote_start_remote): Call QUIT.
2786 * symfile.c (load_progress): Use check_quit_flag.
2787 * top.c (command_loop): Use clear_quit_flag.
2788 (command_line_input): Call QUIT.
2789 * utils.c (quit_flag): Conditionally define.
2790 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2791 functions.
2792 (prompt_for_continue): Call QUIT. Use quit, not
2793 async_request_quit.
2794 * remote-mips.c (mips_expect_timeout): Call QUIT.
2795 * monitor.c (monitor_expect): Call QUIT.
2796
2797 2012-08-22 Tom Tromey <tromey@redhat.com>
2798
2799 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2800 (async_init_signals): Update.
2801 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2802 (SIGWINCH_HANDLER_BODY): Remove.
2803
2804 2012-08-22 Tom Tromey <tromey@redhat.com>
2805
2806 * jit.c (jit_object_close_impl): Don't malloc the objfile
2807 name.
2808 * objfiles.c (allocate_objfile): Don't malloc the objfile
2809 name.
2810 (free_objfile): Don't free the objfile name.
2811 * objfiles.h (struct objfile) <name>: Update comment.
2812 * symfile.c (reread_symbols): Fix reference counting. Don't
2813 malloc objfile name.
2814
2815 2012-08-22 Tom Tromey <tromey@redhat.com>
2816
2817 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2818 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2819 (symfile_bfd_open): Likewise.
2820 (generic_load): Likewise.
2821 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2822 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2823 gdb_bfd_open.
2824 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2825 Use gdb_bfd_open.
2826 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2827 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2828 (pmon_load_fast): Likewise.
2829 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2830 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2831 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2832 (macho_check_dsym): Likewise.
2833 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2834 (m32r_upload_command): Likewise.
2835 * gdb_bfd.h (gdb_bfd_cache): Declare.
2836 * gdb_bfd.c (struct gdb_bfd_data): New.
2837 (gdb_bfd_cache): New global.
2838 (struct gdb_bfd_cache_search): New.
2839 (hash_bfd): New function.
2840 (eq_bfd): Likewise.
2841 (gdb_bfd_open): Likewise.
2842 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2843 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2844 gdb_bfd_data.
2845 * exec.c (exec_file_attach): Use gdb_bfd_open.
2846 * dsrec.c (load_srec): Use gdb_bfd_open.
2847
2848 2012-08-22 Tom Tromey <tromey@redhat.com>
2849
2850 * dwarf2read.c (macro_start_file): Update.
2851 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2852 (free_objfile_per_bfd_storage): Destroy macro_cache.
2853 (allocate_objfile, free_objfile): Update.
2854 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2855 New field.
2856 (struct objfile) <macro_cache>: Remove.
2857 * symfile.c (reread_symbols): Update.
2858 * symmisc.c (print_symbol_bcache_statistics): Update.
2859 (print_objfile_statistics): Update.
2860
2861 2012-08-22 Tom Tromey <tromey@redhat.com>
2862
2863 * elfread.c (elf_symtab_read): Update.
2864 * objfiles.c (objfiles_bfd_data): New global.
2865 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2866 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2867 (allocate_objfile, free_objfile): Update.
2868 (_initialize_objfiles): Initialize objfiles_bfd_data.
2869 * objfiles.h (struct objfile_per_bfd_storage): New.
2870 (struct objfile) <per_bfd>: New field.
2871 <filename_cache>: Remove.
2872 (set_objfile_per_bfd): Declare.
2873 * symfile.c (reread_symbols): Update. Call
2874 set_objfile_per_bfd.
2875 (allocate_symtab): Update.
2876 * symmisc.c (print_symbol_bcache_statistics): Update.
2877 (print_objfile_statistics): Print the size of the BFD obstack.
2878
2879 2012-08-22 Tom Tromey <tromey@redhat.com>
2880
2881 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2882 * gdb_bfd.c: Use DEFINE_REGISTRY.
2883 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2884 (gdb_bfd_ref): Call bfd_alloc_data.
2885 (gdb_bfd_unref): Call bfd_free_data.
2886
2887 2012-08-22 Tom Tromey <tromey@redhat.com>
2888
2889 * registry.h (struct registry_fields): New.
2890 (REGISTRY_FIELDS): Redefine.
2891 (REGISTRY_ACCESS_FIELD): New macro.
2892 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2893 functions.
2894
2895 2012-08-22 Tom Tromey <tromey@redhat.com>
2896
2897 * auto-load.c (_initialize_auto_load): Update.
2898 * solib-svr4.c (_initialize_svr4_solib): Update
2899 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2900 * solib-darwin.c (_initialize_darwin_solib): Update.
2901 * registry.h: New file.
2902 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2903 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2904 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2905 (register_program_space_data_with_cleanup)
2906 (register_program_space_data, program_space_alloc_data)
2907 (clear_program_space_data, set_program_space_data)
2908 (program_space_data): Don't declare.
2909 * progspace.c: Use DEFINE_REGISTRY.
2910 (struct program_space_data, struct
2911 program_space_data_registration, struct
2912 program_space_data_registry, program_space_data_registry)
2913 (register_program_space_data_with_cleanup)
2914 (register_program_space_data, program_space_alloc_data)
2915 (program_space_free_data, clear_program_space_data)
2916 (set_program_space_data, program_space_data): Remove.
2917 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2918 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2919 (register_objfile_data_with_cleanup, register_objfile_data)
2920 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2921 declare.
2922 * objfiles.c: Use DEFINE_REGISTRY.
2923 (struct objfile_data, struct objfile_data_registration, struct
2924 objfile_data_registry, objfile_data_registry)
2925 (register_objfile_data_with_cleanup, register_objfile_data)
2926 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2927 (set_objfile_data, objfile_data): Remove.
2928 (_initialize_objfiles): Update.
2929 * jit.c (_initialize_jit): Update.
2930 * inflow.c (_initialize_inflow): Update.
2931 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2932 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2933 (register_inferior_data_with_cleanup, register_inferior_data)
2934 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2935 declare.
2936 * inferior.c: Use DEFINE_REGISTRY.
2937 (struct inferior_data, struct inferior_data_registration, struct
2938 inferior_data_registry, inferior_data_registry)
2939 (register_inferior_data_with_cleanup, register_inferior_data)
2940 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2941 (set_inferior_data, inferior_data): Remove.
2942 * auxv.c (_initialize_auxv): Update.
2943 * ada-lang.c (_initialize_ada_language): Update.
2944 * breakpoint.c (_initialize_breakpoint): Update.
2945 * i386-nat.c (i386_use_watchpoints): Update.
2946
2947 2012-08-22 Tom Tromey <tromey@redhat.com>
2948
2949 * exec.c (exec_close, exec_file_attach): Update.
2950 (add_to_section_table): Initialize 'key' field.
2951 (add_target_sections, remove_target_sections): Add 'key' argument.
2952 * exec.h (add_target_sections, remove_target_sections): Add
2953 'key' argument.
2954 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2955 (reload_shared_libraries_1): Update.
2956 * target.h (struct target_section) <key>: New field.
2957
2958 2012-08-22 Tom Tromey <tromey@redhat.com>
2959
2960 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2961
2962 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2963
2964 * symfile.c (allocate_symtab): Use host_address_to_string
2965 function instead of cast of pointer to long which is not
2966 compatible with x86_64-w64-mingw32 build.
2967
2968 2012-08-19 Andrew Pinski <apinski@cavium.com>
2969
2970 * mips-tdep.c (is_octeon): New function.
2971 (is_octeon_bbit_op): New function.
2972 (mips32_next_pc): Handle Octeon's bbit instructions.
2973 (mips32_instruction_has_delay_slot): Likewise.
2974
2975 2012-08-19 Andrew Pinski <apinski@cavium.com>
2976
2977 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2978 before the function.
2979
2980 2012-08-19 Andrew Pinski <apinski@cavium.com>
2981
2982 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2983
2984 2012-08-19 Keith Seitz <keiths@redhat.com>
2985
2986 PR c++/14365
2987 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2988 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2989
2990 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2991
2992 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2993 The typo broke "make TAGS".
2994
2995 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2996
2997 GDB 7.5 released.
2998
2999 2012-08-17 Keith Seitz <keiths@redhat.com>
3000
3001 PR c++/13356
3002 * gdbtypes.c (strict_type_checking): New variable.
3003 (show_strict_type_checking): New function.
3004 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3005 if strict type checking is disabled.
3006 (_initialize_gdbtypes): Add "check type" subcommand.
3007 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3008
3009 2012-08-17 Keith Seitz <keiths@redhat.com>
3010
3011 * language.h (type_mode): Remove.
3012 (type_check): Remove.
3013 (struct language_defn): Remove la_type_check.
3014 (STRICT_TYPE): Remove unused macro.
3015 (type_error): Remove.
3016 * language.c (set_type_range_case): Renamed to ...
3017 (set_range_case): ... this. Update all callers.
3018 Remove type_mode/type_check.
3019 (type_mode): Remove.
3020 (type_check): Remove.
3021 (show_type_command): Remove.
3022 (set_type_command): Remove.
3023 (language_info): Remove type checking output.
3024 (type_error): Remove unused function.
3025 (range_error): Update comment.
3026 (unknown_language_defn): Remove la_type_check.
3027 (auto_language_defn): Likewise.
3028 (local_language_defn): Likewise.
3029 (_initialize_language): Remove "check type" subcommand.
3030 * ada-lang.c (ada_language_defn): Remove la_type_check.
3031 * c-lang.c (c_language_defn): Likewise.
3032 (cplus_language_defn): Likewise.
3033 (asm_language_defn): Likewise.
3034 (minimal_language_defn): Likewise.
3035 * d-lang.c (d_language_defn): Likewise.
3036 * f-lang.c (f_language_defn): Likewise.
3037 * go-lang.c (go_language_defn): Likewise.
3038 * jv-lang.c (java_language_defn): Likewise.
3039 * m2-lang.c (m2_language_defn): Likewise.
3040 * objc-lang.c (objc_language_defn): Likewise.
3041 * opencl-lang.c (opencl_language_defn): Likewise.
3042 * p-lang.c (pascal_language_defn): Likewise.
3043
3044 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3045
3046 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3047
3048 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3049
3050 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3051 New function.
3052 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3053 using the regache. Use ia64_hpux_get_register_from_save_state_t
3054 to access the bsp and bspstore registers if not.
3055
3056 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3057
3058 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3059 * breakpoint.c (detach_breakpoints): Change pid parameter into
3060 a ptid. Adjust code accordingly.
3061 * infrun.c (handle_inferior_event): Delete variable child_pid.
3062 Update call to detach_breakpoints to pass the child ptid for
3063 fork events.
3064 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3065 assert that inferior_ptid's lwp is zero.
3066 (linux_handle_extended_wait): Update call to detach_breakpoints.
3067 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3068 detach_breakpoints.
3069
3070 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3071
3072 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3073 parent, only call detach_breakpoints if tts.tts_event ==
3074 TTEVT_VFORK.
3075
3076 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3077
3078 * dwarf2-frame.c (dwarf2_frame_cache): Use
3079 get_frame_address_in_block instead of get_frame_pc as
3080 the bound for executing the frame's FDE.
3081
3082 2012-08-16 Yao Qi <yao@codesourcery.com>
3083
3084 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3085 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3086 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3087 (c_type_print_varspec_suffix): Likewise.
3088 * eval.c (evaluate_subexp_standard): Likewise.
3089 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3090 (f_type_print_varspec_suffix): Likewise.
3091 * gdbtypes.c (is_scalar_type): Likewise.
3092 (recursive_dump_type): Likewise.
3093 * infcall.c (value_arg_coerce): Likewise.
3094 * m2-valprint.c (m2_val_print): Likewise.
3095 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3096 (pascal_type_print_varspec_suffix): Likewise.
3097 (pascal_type_print_base): Likewise.
3098 * p-valprint.c (pascal_val_print): Likewise.
3099 (pascal_val_print): Likewise.
3100 * valops.c (value_slice): Likewise.
3101 * valprint.c (scalar_type_p): Likewise.
3102 * valarith.c (value_bitstring_subscript): Remove.
3103 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3104 Remove comment on TYPE_CODE_BITSTRING.
3105
3106 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3107 TYPE_CODE_BITSTRING.
3108
3109 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3110 slot 0.
3111
3112 2012-08-16 Yao Qi <yao@codesourcery.com>
3113
3114 * tracepoint.c (trace_find_none_command): Remove.
3115 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3116
3117 2012-08-16 Yao Qi <yao@codesourcery.com>
3118
3119 * remote.c (handle_notification): Remove parameter 'length'.
3120 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3121
3122 2012-08-15 Keith Seitz <keiths@redhat.com>
3123
3124 * gdbtypes.c (opaque_type_resolution): Make static.
3125 Add missing comment.
3126 (overload_debug): Add missing comment.
3127 (show_opaque_type_resolution): Likewise.
3128 (show_overload_debug): Likewise.
3129 (print_bit_vector): Remove unnecessary forward declaration.
3130 (print_arg_types): Likewise.
3131 (dump_fn_fieldlists): Likewise.
3132 (print_cplus_stuff): Likewise.
3133
3134 2012-08-15 Tom Tromey <tromey@redhat.com>
3135
3136 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3137 (gdb_bfd_ref): Initialize new field.
3138 (gdb_bfd_unref): Unref the archive BFD.
3139 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3140 parent archive.
3141
3142 2012-08-15 Tom Tromey <tromey@redhat.com>
3143
3144 PR python/14387:
3145 * python/py-bpevent.c (create_breakpoint_event_object): Update
3146 comment.
3147 * python/py-event.c (evpy_add_attribute): Update comment.
3148 * python/py-exitedevent.c (create_exited_event_object): Fix
3149 reference counting and error handling.
3150 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3151 Fix reference counting.
3152 * python/py-signalevent.c (create_signal_event_object): Fix
3153 reference counting and error handling.
3154 * python/py-stopevent.c (emit_stop_event): Fix reference
3155 counting.
3156 * python/py-threadevent.c (get_event_thread): Return a
3157 borrowed reference.
3158 * python/py-type.c (convert_field): Fix reference counting.
3159
3160 2012-08-15 Tom Tromey <tromey@redhat.com>
3161
3162 * dwarf2read.c (dwarf_decode_macro_bytes)
3163 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3164 as hash key.
3165
3166 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3167
3168 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3169 stepi, nexti, finish, next, step, jump, and continue commands.
3170 * infrun.c (_initialize_infrun): Update help text for the handle
3171 command.
3172
3173 2012-08-14 Doug Evans <dje@google.com>
3174
3175 * gdbtypes.c (struct extra): Delete, unused.
3176
3177 * gdbtypes.c: Whitespace cleanup.
3178 (address_space_name_to_int): Remove "extern" from definition.
3179 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3180
3181 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3182 TYPE_POINTER_TYPE (type).
3183
3184 2012-08-14 Gary Benson <gbenson@redhat.com>
3185
3186 * solib-svr4.c (svr4_free_library_list): Use free_so.
3187
3188 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3189
3190 * .gitignore: Add go-exp.c.
3191
3192 2012-08-13 Doug Evans <dje@google.com>
3193
3194 * value.c (show_convenience): Tweak comment.
3195 (_initialize_values): Mention convenience functions in the help text
3196 for "show convenience".
3197
3198 2012-08-13 Yao Qi <yao@codesourcery.com>
3199
3200 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3201 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3202 TERNOP_SLICE_COUNT.
3203 * eval.c (evaluate_subexp_standard): Likewise.
3204 * expprint.c (print_subexp_standard): Likewise.
3205 (dump_subexp_body_standard): Likewise.
3206 * parse.c (operator_length_standard): Likewise.
3207
3208 2012-08-13 Yao Qi <yao@codesourcery.com>
3209
3210 * std-operator.def: Remove OP_BITSTRING.
3211 * breakpoint.c (watchpoint_exp_is_const): Update.
3212 * eval.c (evaluate_subexp_standard): Remove handling to
3213 OP_BITSTRING.
3214 * expprint.c (print_subexp_standard): Likewise.
3215 (dump_subexp_body_standard): Likewise.
3216 * parse.c (operator_length_standard): Likewise.
3217 * valops.c (value_bitstring): Remove.
3218 * value.h: Remove the declaration of 'value_bitstring'.
3219
3220 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3221
3222 * linespec.c (find_methods): Remove unused variables `i1' and
3223 `name_len'.
3224 (decode_line_full): Likewise for `arg_start'.
3225
3226 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3227
3228 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3229 (zlib_decompress_section): Likewise for `section_data'.
3230 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3231
3232 2012-08-10 Doug Evans <dje@google.com>
3233
3234 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3235 * NEWS: Document them.
3236 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3237 function/strfns.py.
3238 * python/py-type.c (typy_array_1): New function.
3239 (typy_array): Call it.
3240 (typy_vector): New function.
3241 (type_object_methods): Add "vector".
3242 * python/lib/gdb/function/__init__.py: New file.
3243 * python/lib/gdb/function/strfns.py: New file.
3244
3245 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3246
3247 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3248 for TYPE_FIELD_BITPOS.
3249 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3250
3251 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3252
3253 PR cli/10436:
3254 * common/vec.h (VEC_merge): Define.
3255 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3256 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3257 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3258 * completer.c: Include gdb_signals.h.
3259 (signal_completer): Define.
3260 * completer.h (signal_completer): Add prototype.
3261 * infcmd.c (_initialize_infcmd): Assign the command
3262 completer for "signal" to handle_completer.
3263 * infrun.c: Include completer.h.
3264 (handle_completer): Define.
3265 (_initialize_infrun): Declare a new local variable c. Store the
3266 result of add_com("handle") to it. Assign the command
3267 completer for "handle" to handle_completer.
3268
3269 2012-08-09 Yao Qi <yao@codesourcery.com>
3270
3271 * cli/cli-decode.c (set_cmd_prefix): New.
3272 (lookup_cmd_for_prefixlist): New.
3273 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3274 of each cmd_list_element in *prefixlist.
3275 (add_setshow_cmd_full): set_cmd_prefix.
3276 (add_alias_cmd): Likewise.
3277 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3278 Declare 'auto_boolean_enums'.
3279 * cli/cli-setshow.c: Include "observer.h".
3280 (notify_command_param_changed_p): New.
3281 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3282 Remove 'static'.
3283 (do_setshow_command): Split it to ...
3284 (do_set_command, do_show_command): ... them. New.
3285 (do_set_command): Call observer_notify_command_param_changed if
3286 notify_command_param_changed_p returns true.
3287 (cmd_show_list): Caller update.
3288 * auto-load.c (set_auto_load_cmd): Likewise.
3289 * remote.c (show_remote_cmd): Likewise.
3290 * cli/cli-setshow.h: Update declarations.
3291 * top.c (execute_command): Call do_set_command and do_show_command.
3292
3293 * NEWS: Mention new MI notification.
3294 * mi/mi-interp.c: Declare mi_command_param_changed.
3295 (mi_interpreter_init): Attach mi_command_param_changed to
3296 observer command_param_changed.
3297 (mi_command_param_changed): New.
3298 Remove mi_suppress_breakpoint_notifications.
3299 Define global variable mi_suppress_notification.
3300 (mi_breakpoint_created): Update.
3301 (mi_breakpoint_deleted): Likewise.
3302 (mi_breakpoint_modified): Likewise.
3303 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3304 'gdb-set' and set mi_suppress_notification.
3305 * mi/mi-main.h: (mi_suppress_notification): New struct.
3306
3307 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3308 Jan Kratochvil <jan.kratochvil@redhat.com>
3309
3310 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3311
3312 2012-08-09 Yao Qi <yao@codesourcery.com>
3313
3314 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3315 (skiplist): Move it to skip.c.
3316 (init_cmd_lists): Remove code setting enablebreaklist and
3317 skiplist to NULL.
3318 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3319 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3320 skiplist.
3321 * gdbcmd.h: Likewise.
3322 * skip.c (_initialize_step_skip): Move 'skiplist' from
3323 cli/cli-cmds.c.
3324
3325 2012-08-09 Yao Qi <yao@codesourcery.com>
3326
3327 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3328 * gnu-nat.c, symfile.c: Likewise.
3329
3330 2012-08-08 Aaron Gamble <agamble@google.com>
3331
3332 * utils.c (prompt_for_continue_wait_time): New static global.
3333 (make_command_stats_cleanup): Initialize it.
3334 (report_command_stats): Subtract time waiting for user.
3335 (prompt_for_continue): Track time waiting for user.
3336 (defaulted_query): Track time waiting for user.
3337
3338 2012-08-08 Doug Evans <dje@google.com>
3339
3340 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3341 UNOP_MEMVAL_TYPE.
3342 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3343 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3344 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3345 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3346 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3347 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3348 elt.
3349 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3350 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3351 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3352 (dump_prefix_expression): Handle OP_TYPE.
3353
3354 2012-08-08 Keith Seitz <keiths@redhat.com>
3355
3356 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3357 addr_start.
3358
3359 2012-08-08 Doug Evans <dje@google.com>
3360
3361 * linux-thread-db.c: #include "gdb_vecs.h".
3362 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3363 updated.
3364 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3365 (thread_db_load_search): Use a vector to iterate over path elements.
3366 Handle text appearing after "$pdir".
3367
3368 * gdb_string.h: Moved to ...
3369 * common/gdb_string.h: ... here.
3370 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3371 gdb_string.h and gdb_assert.h.
3372
3373 2012-08-08 Yao Qi <yao@codesourcery.com>
3374
3375 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3376 (tic6x_value_to_register): Likewise.
3377 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3378 and set_gdbarch_value_to_register.
3379
3380 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3381 Jean-Marc Saffroy <saffroy@gmail.com>
3382
3383 PR 11804
3384 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3385 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3386 * gcore.c (gcore_create_callback): New function comment. Add modified
3387 parameter. Only write modified regions. Set SEC_READONLY exactly
3388 according to MODIFIED.
3389 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3390 the passed modified value to FUNC.
3391 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3392 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3393 first. New variables modified and has_anonymous. Parse the lines of
3394 smaps file. Add the passed MODIFIED value to FUNC.
3395 * procfs.c (find_memory_regions_callback): Add the passed modified
3396 value.
3397
3398 2012-08-06 Tom Tromey <tromey@redhat.com>
3399
3400 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3401 (dwarf2_frame_cache): Use it.
3402 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3403 cache initialization constraint.
3404
3405 2012-08-06 Tom Tromey <tromey@redhat.com>
3406
3407 PR python/14386:
3408 * varobj.c (update_dynamic_varobj_children): Don't call
3409 PyIter_Check.
3410
3411 2012-08-06 Tom Tromey <tromey@redhat.com>
3412
3413 PR cli/14392:
3414 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3415
3416 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3417
3418 * NEWS: New entry for 'cd' default parameters.
3419 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3420
3421 2012-08-03 Tom Tromey <tromey@redhat.com>
3422
3423 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3424 return.
3425
3426 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3427
3428 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3429 to attempting lseek/write.
3430 (inf_child_fileio_pread): Likewise for pread.
3431
3432 2012-08-02 Yao Qi <yao@codesourcery.com>
3433
3434 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3435 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3436 add_setshow_zinteger_cmd.
3437 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3438 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3439 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3440 instead of add_setshow_zinteger_cmd.
3441 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3442 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3443 instead of add_setshow_zinteger_cmd.
3444 * frame.c (frame_debug): Add 'unsigned'.
3445 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3446 add_setshow_zinteger_cmd.
3447 * frame.h: Update the declaration of 'frame_debug'.
3448 * gdbtypes.c (overload_debug): Add 'unsigned'.
3449 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3450 add_setshow_zinteger_cmd.
3451 * inferior.h: Update declaration of 'debug_infrun'.
3452 * infrun.c (debug_infrun): Add 'unsigned'.
3453 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3454 add_setshow_zinteger_cmd.
3455 * jit.c (jit_debug): Add 'unsigned'.
3456 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3457 add_setshow_zinteger_cmd.
3458 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3459 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3460 instead of add_setshow_zinteger_cmd.
3461 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3462 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3463 add_setshow_zinteger_cmd.
3464 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3465 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3466 instead of add_setshow_zinteger_cmd.
3467 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3468 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3469 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3470 intead of add_setshow_zinteger_cmd.
3471 * mips-tdep.c (mips_debug): Add 'unsigned'.
3472 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3473 instead of add_setshow_zinteger_cmd.
3474 * monitor.c (monitor_debug): Add 'unsigned'.
3475 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3476 add_setshow_zinteger_cmd.
3477 * observer.c (observer_debug): Add 'unsigned'.
3478 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3479 add_setshow_zinteger_cmd.
3480 * parse.c (expressiondebug): Add 'unsigned'.
3481 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3482 add_setshow_zinteger_cmd.
3483 * record.c (record_debug): Add 'unsigned'.
3484 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3485 add_setshow_zinteger_cmd.
3486 * record.h: Update the declaration of 'record_debug'.
3487 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3488 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3489 add_setshow_zinteger_cmd.
3490 * serial.c (global_serial_debug_p): Add 'unsigned'.
3491 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3492 add_setshow_zinteger_cmd.
3493 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3494 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3495 add_setshow_zinteger_cmd.
3496 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3497 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3498 add_setshow_zinteger_cmd.
3499 * target.c (targetdebug): Add 'unsigned'.
3500 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3501 add_setshow_zinteger_cmd.
3502 * valops.c (overload_debug): Add 'unsigned'.
3503 * varobj.c (varobjdebug): Add 'unsigned'.
3504 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3505 add_setshow_zinteger_cmd.
3506 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3507 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3508 instead of add_setshow_zinteger_cmd.
3509
3510 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3511 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3512 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3513 instead of add_setshow_zinteger_cmd.
3514 * gdbarch.c, gdbarch.h: Re-generated.
3515
3516 2012-08-02 Yao Qi <yao@codesourcery.com>
3517
3518 * nto-tdep.c: Don't include cli/cli-decode.h and
3519 cli/cli-cmds.h.
3520 (_initialize_nto_tdep): Remove.
3521 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3522 Remove field.
3523 Remove macro nto_internal_debugging.
3524
3525 2012-08-01 Richard Henderson <rth@redhat.com>
3526
3527 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3528 (mep-*-*) [gdb_target_obs]: Likewise.
3529
3530 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3531
3532 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3533 linux_get_siginfo_type.
3534
3535 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3536
3537 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3538 AT_ENTRY_POINT.
3539 (call_function_by_hand) <ON_STACK>: Call write_memory with
3540 gdbarch_breakpoint_from_pc, if possible.
3541 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3542 here.
3543
3544 2012-07-31 Yao Qi <yao@codesourcery.com>
3545
3546 * tracepoint.c: Add 'static' for some variables.
3547
3548 2012-07-31 Yao Qi <yao@codesourcery.com>
3549
3550 * go32-nat.c: Declare _initialize_go32_nat.
3551 * ser-go32.c: Declare _initialize_ser_dos.
3552 * top.c (do_chdir_cleanup): Add 'static'.
3553
3554 2012-07-30 Keith Seitz <keiths@redhat.com>
3555
3556 * linespec.c (linespec_lex_number): A number followed
3557 by quotes is a valid number, too.
3558
3559 2012-07-30 Tom Tromey <tromey@redhat.com>
3560
3561 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3562
3563 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3564
3565 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3566 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3567
3568 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3569
3570 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3571 invalid or reevaluated to prevent prevent references to possibly
3572 delete'd type objects being left in the varobj.
3573
3574 2012-07-27 Tom Tromey <tromey@redhat.com>
3575 Jan Kratochvil <jan.kratochvil@redhat.com>
3576
3577 * copying.awk: Print buffer-read-only and vi ro markers.
3578 * copying.c: Rebuild.
3579 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3580 * gdbarch.c, gdbarch.h: Rebuild.
3581 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3582 buffer-read-only and vi ro markers.
3583 * features/arm-with-iwmmxt.c: Rebuild.
3584 * features/arm-with-m-fpa-layout.c: Rebuild.
3585 * features/arm-with-m-vfp-d16.c: Rebuild.
3586 * features/arm-with-m.c: Rebuild.
3587 * features/arm-with-neon.c: Rebuild.
3588 * features/arm-with-vfpv2.c: Rebuild.
3589 * features/arm-with-vfpv3.c: Rebuild.
3590 * features/i386/amd64-avx-linux.c: Rebuild.
3591 * features/i386/amd64-avx.c: Rebuild.
3592 * features/i386/amd64-linux.c: Rebuild.
3593 * features/i386/amd64.c: Rebuild.
3594 * features/i386/i386-avx-linux.c: Rebuild.
3595 * features/i386/i386-avx.c: Rebuild.
3596 * features/i386/i386-linux.c: Rebuild.
3597 * features/i386/i386-mmx-linux.c: Rebuild.
3598 * features/i386/i386-mmx.c: Rebuild.
3599 * features/i386/i386.c: Rebuild.
3600 * features/i386/x32-avx-linux.c: Rebuild.
3601 * features/i386/x32-avx.c: Rebuild.
3602 * features/i386/x32-linux.c: Rebuild.
3603 * features/i386/x32.c: Rebuild.
3604 * features/mips-dsp-linux.c: Rebuild.
3605 * features/mips-linux.c: Rebuild.
3606 * features/mips64-dsp-linux.c: Rebuild.
3607 * features/mips64-linux.c: Rebuild.
3608 * features/rs6000/powerpc-32.c: Rebuild.
3609 * features/rs6000/powerpc-32l.c: Rebuild.
3610 * features/rs6000/powerpc-403.c: Rebuild.
3611 * features/rs6000/powerpc-403gc.c: Rebuild.
3612 * features/rs6000/powerpc-405.c: Rebuild.
3613 * features/rs6000/powerpc-505.c: Rebuild.
3614 * features/rs6000/powerpc-601.c: Rebuild.
3615 * features/rs6000/powerpc-602.c: Rebuild.
3616 * features/rs6000/powerpc-603.c: Rebuild.
3617 * features/rs6000/powerpc-604.c: Rebuild.
3618 * features/rs6000/powerpc-64.c: Rebuild.
3619 * features/rs6000/powerpc-64l.c: Rebuild.
3620 * features/rs6000/powerpc-7400.c: Rebuild.
3621 * features/rs6000/powerpc-750.c: Rebuild.
3622 * features/rs6000/powerpc-860.c: Rebuild.
3623 * features/rs6000/powerpc-altivec32.c: Rebuild.
3624 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3625 * features/rs6000/powerpc-altivec64.c: Rebuild.
3626 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3627 * features/rs6000/powerpc-cell32l.c: Rebuild.
3628 * features/rs6000/powerpc-cell64l.c: Rebuild.
3629 * features/rs6000/powerpc-e500.c: Rebuild.
3630 * features/rs6000/powerpc-e500l.c: Rebuild.
3631 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3632 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3633 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3634 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3635 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3636 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3637 * features/rs6000/powerpc-vsx32.c: Rebuild.
3638 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3639 * features/rs6000/powerpc-vsx64.c: Rebuild.
3640 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3641 * features/rs6000/rs6000.c: Rebuild.
3642 * features/s390-linux32.c: Rebuild.
3643 * features/s390-linux32v1.c: Rebuild.
3644 * features/s390-linux32v2.c: Rebuild.
3645 * features/s390-linux64.c: Rebuild.
3646 * features/s390-linux64v1.c: Rebuild.
3647 * features/s390-linux64v2.c: Rebuild.
3648 * features/s390x-linux64.c: Rebuild.
3649 * features/s390x-linux64v1.c: Rebuild.
3650 * features/s390x-linux64v2.c: Rebuild.
3651 * features/tic6x-c62x-linux.c: Rebuild.
3652 * features/tic6x-c62x.c: Rebuild.
3653 * features/tic6x-c64x-linux.c: Rebuild.
3654 * features/tic6x-c64x.c: Rebuild.
3655 * features/tic6x-c64xp-linux.c: Rebuild.
3656 * features/tic6x-c64xp.c: Rebuild.
3657
3658 2012-07-27 Tom Tromey <tromey@redhat.com>
3659
3660 * c-exp.y (classify_name): Avoid assignment in condition.
3661
3662 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3663
3664 * amd64-windows-tdep.c: Include "frame.h".
3665 (amd64_windows_skip_trampoline_code): New function.
3666 (amd64_windows_init_abi): Add trampoline registration.
3667
3668 2012-07-27 Yao Qi <yao@codesourcery.com>
3669
3670 * tracepoint.c (cur_traceframe_number): Remove.
3671 (set_tfile_traceframe): Remove.
3672 (tfile_trace_find, tfile_fetch_registers): Update callers.
3673 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3674 (tfile_open, tfile_trace_find): Likewise.
3675
3676 2012-07-27 Yao Qi <yao@codesourcery.com>
3677
3678 * thread.c (switch_to_thread): Don't call registers_changed.
3679
3680 2012-07-26 Tom Tromey <tromey@redhat.com>
3681
3682 * Makefile.in (SFILES): Remove objc-exp.y.
3683 (YYFILES): Remove objc-exp.c.
3684 (YYOBJ): Remove objc-exp.o.
3685 (local-maintainer-clean): Don't mention objc-exp.c.
3686 * c-exp.y: Include objc-lang.h.
3687 (%union) <class>: New field.
3688 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3689 (exp): Clone subscript production for OBJC_LBRAC. Add various
3690 Objective C productions.
3691 (msglist, msgarglist, msgarg): New productions.
3692 (array_mod, func_mod, operator): Clone productions for
3693 OBJC_LBRAC.
3694 (parse_string_or_char): Handle '@' strings.
3695 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3696 (classify_name): Check la_name_of_this. Recognize ObjC class
3697 names.
3698 * objc-exp.y: Remove.
3699 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3700 * objc-lang.h (objc_parse, objc_error): Don't declare.
3701
3702 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3703
3704 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3705
3706 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3707
3708 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3709 and decrement.
3710
3711 2012-07-26 Tom Tromey <tromey@redhat.com>
3712
3713 * copying.c: Rebuild.
3714 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3715 'no_class'.
3716
3717 2012-07-26 Tom Tromey <tromey@redhat.com>
3718
3719 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3720 immediate_quit.
3721 (print_objfile_statistics): Likewise.
3722 (maintenance_print_symbols): Likewise.
3723 (maintenance_print_msymbols): Likewise.
3724 (maintenance_print_objfiles): Likewise.
3725 * psymtab.c (print_partial_symbols): Call QUIT.
3726 (maintenance_print_psymbols): Likewise. Don't modify
3727 immediate_quit.
3728 * copying.c (show_copying_command): Don't modify immediate_quit.
3729 (show_warranty_command): Likewise.
3730 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3731
3732 2012-07-26 Keith Seitz <keiths@redhat.com>
3733
3734 * linespec.c (linespec_lexer_lex_number): The input
3735 is also a valid number if the next character is a comma
3736 or colon.
3737
3738 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3739
3740 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3741 configure options.
3742
3743 2012-07-26 Tristan Gingold <gingold@adacore.com>
3744
3745 * machoread.c: Include gdb_bfd.h.
3746
3747 2012-07-26 Tristan Gingold <gingold@adacore.com>
3748
3749 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3750 offset.
3751
3752 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3753
3754 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3755 SIZE to size_t.
3756 (dwarf2_evaluate_loc_desc): Likewise.
3757 (dwarf2_loc_desc_needs_frame): Likewise.
3758 (locexpr_describe_location_1): Likewise.
3759 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3760 size_t.
3761 (struct dwarf2_loclist_baton): Likewise.
3762 * dwarf2read.c (struct dwarf_block): Likewise.
3763 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3764 (decode_locdesc): Expand SIZE and I to size_t.
3765
3766 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3767
3768 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3769
3770 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3771
3772 * doublest.c (convert_doublest_to_floatformat): If the exponent
3773 is too small, treat the value as zero. If the exponent is too
3774 large, treat the value as infinity.
3775
3776 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3777
3778 * configure.ac: Add --enable-lmcheck configure option.
3779 * configure: Regenerate.
3780
3781 2012-07-25 Tom Tromey <tromey@redhat.com>
3782
3783 * NEWS: Mention maint info bfds.
3784 * gdb_bfd.c (all_bfds): New global.
3785 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3786 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3787 New functions.
3788
3789 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3790
3791 * configure.tgt: Add v850*-*-rtems*.
3792
3793 2012-07-25 Tom Tromey <tromey@redhat.com>
3794
3795 * macrotab.c (macro_bcache_str): Remove cast.
3796
3797 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3798
3799 * linespec.c (linespec_lexer_lex_number): Update comments,
3800 change the return and add check to make sure the input is
3801 the decimal numbers.
3802 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3803 false, call linespec_lexer_lex_string.
3804
3805 2012-07-24 Tom Tromey <tromey@redhat.com>
3806
3807 * symfile.c (symbol_file_add): Don't open BFD twice.
3808
3809 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3810
3811 * breakpoint.c (create_breakpoint): Store condition for pending
3812 breakpoints.
3813
3814 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3815
3816 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3817 (m68k_return_value): Handle complex types like structures.
3818 (m68k_svr4_return_value): Likewise.
3819
3820 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3821
3822 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3823 parameters to bfd_get_section_name.
3824
3825 2012-07-24 Yao Qi <yao@codesourcery.com>
3826
3827 * cli/cli-setshow.c: Handle case 'var_uinteger'
3828 and 'var_zuninteger' together. Handle case 'var_integer' and
3829 'var_zinteger' together.
3830
3831 2012-07-23 Keith Seitz <keiths@redhat.com>
3832
3833 * linespec.c (convert_linespec_to_sal): Don't add
3834 any symbols to the result vector if symbol_to_sal
3835 returns zero.
3836
3837 2012-07-23 Keith Seitz <keiths@redhat.com>
3838
3839 * linespec.c (decode_objc): Record the function name
3840 in the linespec.
3841
3842 2012-07-23 Tom Tromey <tromey@redhat.com>
3843
3844 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3845 counting.
3846 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3847 (map_vmap): Acquire a reference to the BFD.
3848
3849 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3850
3851 * p-valprint.c (pascal_object_print_value): Replace potentially
3852 unsafe alloca with xmalloc/xfree.
3853 * valops.c (search_struct_method): Likewise.
3854
3855 2012-07-23 Tom Tromey <tromey@redhat.com>
3856
3857 * solib-svr4.c (enable_break): Update.
3858 * bfd-target.h (target_bfd_reopen): Update documentation.
3859
3860 2012-07-23 Tom Tromey <tromey@redhat.com>
3861
3862 * symfile.c (separate_debug_file_exists): Update.
3863 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3864 (reread_symbols): Update.
3865 * elfread.c (build_id_verify): Update.
3866 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3867 bfd_open_maybe_remote.
3868
3869 2012-07-23 Tom Tromey <tromey@redhat.com>
3870
3871 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3872
3873 2012-07-23 Tom Tromey <tromey@redhat.com>
3874
3875 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3876 and 'abfd'.
3877 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3878 and 'abfd'.
3879 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3880 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3881 'abfd'.
3882 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3883 * objfiles.c (allocate_objfile): Acquire a new reference.
3884 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3885 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3886 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3887 a cleanup for 'nbfd'.
3888 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3889 for 'nbfd'.
3890 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3891 make a cleanup for 'abfd'.
3892 (symbol_file_add): Make a BFD cleanup.
3893
3894 2012-07-23 Tom Tromey <tromey@redhat.com>
3895
3896 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3897 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3898 * corelow.c (core_open): Use gdb_bfd_fopen.
3899 * dsrec.c (load_srec): Use gdb_bfd_openr.
3900 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3901 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3902 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3903 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3904 (gdb_bfd_fdopenr): New functions.
3905 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3906 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3907 (gdb_bfd_fdopenr): Declare.
3908 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3909 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3910 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3911 gdb_bfd_openr_next_archived_file.
3912 (macho_check_dsym): Use gdb_bfd_openr.
3913 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3914 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3915 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3916 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3917 gdb_bfd_openr.
3918 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3919 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3920 gdb_bfd_openr_next_archived_file.
3921 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3922 Use gdb_bfd_openr.
3923 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3924 gdb_bfd_openr.
3925 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3926 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3927 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3928 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3929 (symfile_bfd_open): Use gdb_bfd_fopen.
3930 (generic_load): Use gdb_bfd_openr.
3931 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3932
3933 2012-07-23 Tom Tromey <tromey@redhat.com>
3934
3935 * bfd-target.c (target_bfd_reopen): Update.
3936 * cli/cli-dump.c (bfd_openr_with_cleanup)
3937 (bfd_openw_with_cleanup): Update.
3938 * corelow.c (core_open): Update.
3939 * dsrec.c (load_srec): Update.
3940 * exec.c (exec_file_attach): Update.
3941 * gcore.c (create_gcore_bfd): Update.
3942 * gdb_bfd.c (gdb_bfd_ref): Return void.
3943 (gdb_bfd_open): Update.
3944 * gdb_bfd.h (gdb_bfd_ref): Return void.
3945 Update comments.
3946 * jit.c (jit_bfd_try_read_symtab): Update.
3947 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3948 * machoread.c (macho_symfile_read_all_oso): Update.
3949 (macho_check_dsym): Update.
3950 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3951 * remote-m32r-sdi.c (m32r_load): Update.
3952 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3953 * rs6000-nat.c (add_vmap): Update.
3954 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3955 Update.
3956 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3957 * solib-spu.c (spu_bfd_open): Update.
3958 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3959 * spu-linux-nat.c (spu_bfd_open): Update.
3960 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3961 (generic_load): Update.
3962 * windows-nat.c (windows_make_so): Update.
3963
3964 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3965
3966 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3967
3968 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3969
3970 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3971 SIGTRAMP_FRAME unwinding.
3972
3973 2012-07-20 Doug Evans <dje@google.com>
3974
3975 * NEWS: Document new options "set/show use-deprecated-index-sections",
3976 and delete reference to --use-deprecated-index-sections.
3977 * symfile.h (use_deprecated_index_sections): Delete.
3978 * dwarf2read.c (use_deprecated_index_sections): Make static.
3979 (read_index_from_section): Update wording of how to load
3980 deprecated index sections.
3981 (_initialize_dwarf2_read): New options
3982 "set/show use-deprecated-index-sections".
3983 * main.c (captured_main): Delete --use-deprecated-index-sections.
3984
3985 2012-07-20 Pedro Alves <palves@redhat.com>
3986
3987 PR threads/11692
3988 PR gdb/12203
3989
3990 * infrun.c (handle_inferior_event) <new thread>: Don't special
3991 case minus_one_ptid.
3992 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3993 * linux-thread-db.c (thread_get_info_callback): Don't return early
3994 if the thread is zombie.
3995 (thread_from_lwp): Change return type to void. Rewrite stale
3996 comment.
3997 (attach_thread): Don't return early if the thread is zombie,
3998 instead set its "dying" flag.
3999 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4000 (find_new_threads_callback): Don't return early if the thread is
4001 zombie.
4002
4003 2012-07-20 Pedro Alves <palves@redhat.com>
4004
4005 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4006 * target.c (target_wait): Likewise.
4007 (str_comma_list_concat_elem, do_option, target_options_to_string):
4008 New functions.
4009 * target.h (target_options_to_string): Declare.
4010
4011 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4012 Tom Tromey <tromey@redhat.com>
4013
4014 * dwarf2read.c (dwarf_decode_macros)
4015 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4016 DW_MACRO_GNU_transparent_include_alt>: New cases.
4017 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4018 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4019
4020 2012-07-20 Tom Tromey <tromey@redhat.com>
4021
4022 * dwarf2read.c (try_open_dwo_file): Don't call
4023 gdb_bfd_stash_filename.
4024
4025 2012-07-20 Pedro Alves <palves@redhat.com>
4026
4027 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4028 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4029 (i386_process_record): Tweak description comments.
4030
4031 2012-07-20 Pedro Alves <palves@redhat.com>
4032
4033 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4034 (i386_process_record): Use record_read_memory.
4035 * record.c (record_read_memory): New function.
4036 (record_arch_list_add_mem, record_exec_insn): Use
4037 record_read_memory.
4038 * record.h (record_read_memory): Declare.
4039
4040 2012-07-20 Yao Qi <yao@codesourcery.com>
4041
4042 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4043 NULL for xfree.
4044
4045 2012-07-19 Pedro Alves <palves@redhat.com>
4046
4047 * record.c (record_resume): Ask the target beneath to report all
4048 signals.
4049
4050 2012-07-19 Doug Evans <dje@google.com>
4051
4052 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4053 there's no section at address zero.
4054 (dwarf2_record_block_ranges): Ditto.
4055
4056 2012-07-19 Yao Qi <yao@codesourcery.com>
4057
4058 * command.h, remote.c: Fix a typo in comment.
4059
4060 2012-07-19 Tom Tromey <tromey@redhat.com>
4061
4062 PR exp/13206:
4063 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4064 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4065 OP_DECLTYPE>: New cases.
4066 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4067 (type_exp): Add new productions.
4068 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4069 and decltype.
4070 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4071 New case.
4072 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4073 OP_DECLTYPE>: New case.
4074 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4075 New case.
4076 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4077 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4078
4079 2012-07-19 Tom Tromey <tromey@redhat.com>
4080
4081 * c-exp.y (enum token_flags): New.
4082 (struct token) <cxx_only>: Remove.
4083 <flags>: New field.
4084 (tokentab3, tokentab2, ident_tokens): Update.
4085 (lex_one_token): Update. Handle FLAG_SHADOW.
4086
4087 2012-07-19 Tom Tromey <tromey@redhat.com>
4088
4089 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4090 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4091 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4092 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4093 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4094 type_exp production where appropriate.
4095 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4096 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4097 <UNOP_MEMVAL_TYPE>: New case.
4098 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4099 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4100 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4101 <UNOP_MEMVAL_TYPE>: New case.
4102 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4103 UNOP_REINTERPRET_CAST>: Update.
4104 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4105 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4106 UNOP_REINTERPRET_CAST>: Update.
4107 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4108 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4109 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4110 constants.
4111
4112 2012-07-19 Yao Qi <yao@codesourcery.com>
4113 Jan Kratochvil <jan.kratochvil@redhat.com>
4114
4115 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4116 and case 'var_optional_filename' together.
4117 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4118 instead of add_setshow_optional_filename_cmd for setshow command
4119 'args'. Set completer for 'set args'.
4120
4121 2012-07-18 Doug Evans <dje@google.com>
4122
4123 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4124 * common/gdb_vecs.c: New file, contents from utils.c.
4125 * common/host-defs.h: New file, contents from defs.h.
4126 * utils.h: New file, contents from defs.h.
4127 * defs.h: Move all declarations of objects defined in utils.c
4128 to utils.h (except QUIT() and related).
4129 #include "utils.h", "host-defs.h".
4130 * probe.h (probe_p): Move here from gdb_vecs.h.
4131 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4132 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4133 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4134 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4135 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4136 (COMMON_OBS): Add gdb_vecs.o.
4137 (gdb_vecs.o): New rule.
4138
4139 2012-07-18 Keith Seitz <keiths@redhat.com>
4140
4141 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4142 parameter. If non-zero, use SYMNAME as the canonical name
4143 for the SaL.
4144 Update all callers.
4145 (convert_linespec_to_sals): Use add_sal_to_sals for
4146 expressions, too.
4147 (decode_line_full): No need to "fill in missing canonical names"
4148 anymore. Simply make cleanups for the allocated names.
4149
4150 2012-07-18 Keith Seitz <keiths@redhat.com>
4151
4152 * linespec.c (struct linespec): Constify expression,
4153 source_filename, function_name, and label_name.
4154 (symbol_not_found_error): Make all parameters const.
4155 (linespec_parser_delete): No need to check for NULL
4156 when using xfree. Cast const char * to char * for xfree.
4157
4158 2012-07-18 Keith Seitz <keiths@redhat.com>
4159
4160 * breakpoint.c (invalid_thread_id_error): New function.
4161 (find_condition_and_thread): Use invalid_thread_id_error.
4162 (watch_command_1): Likewise.
4163
4164 2012-07-18 Tom Tromey <tromey@redhat.com>
4165
4166 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4167 * contrib/cc-with-tweaks.sh: New file.
4168
4169 2012-07-18 Tom Tromey <tromey@redhat.com>
4170
4171 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4172 (locate_dwz_sections): Recognize .gdb_index.
4173 (create_cus_from_index_list): New function.
4174 (create_cus_from_index): Use it. Handle .dwz data.
4175 (read_index_from_section): New function, extracted from
4176 dwarf2_read_index.
4177 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4178 if needed.
4179
4180 2012-07-18 Tom Tromey <tromey@redhat.com>
4181
4182 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4183 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4184 <is_dwz>: New field.
4185 (struct dwz_file): New.
4186 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4187 (locate_dwz_sections, dwarf2_get_dwz_file)
4188 (get_abbrev_section_for_cu): New functions.
4189 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4190 (read_and_check_type_unit_head): Add abbrev_section argument.
4191 (create_debug_types_hash_table): Update.
4192 (init_cutu_and_read_dies): Use proper abbrev section.
4193 (init_cutu_and_read_dies_no_follow): Likewise.
4194 (set_partial_user): Do nothing if PST==NULL.
4195 (read_comp_units_from_section): New function.
4196 (create_all_comp_units): Use it.
4197 (scan_partial_symbols, partial_die_parent_scope): Update.
4198 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4199 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4200 (find_partial_die): Add offset_in_dwz argument. Update.
4201 (guess_partial_die_structure_name, fixup_partial_die): Update.
4202 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4203 DW_FORM_GNU_strp_alt.
4204 (read_indirect_string_from_dwz): New function.
4205 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4206 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4207 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4208 (follow_die_offset): Add offset_in_dwz argument.
4209 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4210 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4211 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4212 Handle new macro forms.
4213 (dwarf_decode_macros): Update.
4214 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4215 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4216 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4217 (create_debug_types_hash_table): Use correct abbrev section.
4218 (get_debug_line_section): New function.
4219 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4220 (process_full_comp_unit): Pass 'required' argument to
4221 end_symtab_get_static_block.
4222 * buildsym.h (end_symtab_get_static_block): Update.
4223 * buildsym.c (end_symtab_get_static_block): Add 'required'
4224 argument.
4225 (end_symtab, end_expandable_symtab): Update.
4226
4227 2012-07-18 Tom Tromey <tromey@redhat.com>
4228
4229 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4230 (pagesize): Remove.
4231 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4232 (zlib_decompress_section): Remove.
4233 (dwarf2_read_section): Use gdb_bfd_map_section.
4234 (munmap_section_buffer): Remove.
4235 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4236 munmap_section_buffer.
4237 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4238 (struct gdb_bfd_section_data): New.
4239 (free_one_bfd_section): New function.
4240 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4241 (get_section_descriptor, zlib_decompress_section)
4242 (gdb_bfd_map_section): New functions.
4243 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4244
4245 2012-07-18 Tom Tromey <tromey@redhat.com>
4246
4247 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4248
4249 2012-07-18 Tom Tromey <tromey@redhat.com>
4250
4251 * gdb_bfd.c (struct gdb_bfd_data): New.
4252 (gdb_bfd_cache): New global.
4253 (struct gdb_bfd_cache_search): New.
4254 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4255 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4256 * gdb_bfd.h (gdb_bfd_open): Declare.
4257
4258 2012-07-18 Tom Tromey <tromey@redhat.com>
4259
4260 * utils.c (make_cleanup_bfd_unref): Rename from
4261 make_cleanup_bfd_close.
4262 * defs.h (make_cleanup_bfd_unref): Rename from
4263 make_cleanup_bfd_close.
4264 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4265 (bfd_openw_with_cleanup): Update.
4266 * corelow.c (core_open): Update.
4267 * dsrec.c (load_srec): Update.
4268 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4269 * remote-m32r-sdi.c (m32r_load): Update.
4270 * remote-mips.c (mips_load_srec): Update.
4271 (pmon_load_fast): Update.
4272 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4273 Update.
4274 (darwin_bfd_open): Update.
4275 * solib.c (solib_bfd_fopen): Update.
4276 * symfile-mem.c (symbol_file_add_from_memory): Update.
4277 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4278 (symfile_bfd_open): Update.
4279 (generic_load): Update.
4280
4281 2012-07-18 Tom Tromey <tromey@redhat.com>
4282
4283 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4284 (pmon_load_fast): Likewise.
4285 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4286 (m32r_upload_command): Likewise.
4287 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4288 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4289 Use make_cleanup_bfd_close.
4290
4291 2012-07-18 Tom Tromey <tromey@redhat.com>
4292
4293 * symfile.c (symfile_bfd_open): Don't copy name. Call
4294 gdb_bfd_stash_filename.
4295 (load_command): Open the new BFD before freeing the old.
4296 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4297 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4298 Call gdb_bfd_stash_filename.
4299 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4300 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4301 gdb_bfd_stash_filename.
4302 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4303 Free found_pathname.
4304 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4305 gdb_bfd_stash_filename.
4306 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4307 * machoread.c (macho_add_oso_symfile): Call
4308 gdb_bfd_stash_filename.
4309 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4310 gdb_bfd_stash_filename.
4311 (macho_check_dsym): Don't copy filename. Call
4312 gdb_bfd_stash_filename.
4313 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4314 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4315 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4316 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4317 * exec.c (exec_close): Don't free the BFD's filename.
4318 (exec_file_attach): Don't copy the filename. Call
4319 gdb_bfd_stash_filename.
4320 * corelow.c (core_close): Don't free the BFD's filename.
4321 (core_open): Call gdb_bfd_stash_filename.
4322 * corefile.c (reopen_exec_file): Remove #if 0 code.
4323 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4324 pathname.
4325 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4326
4327 2012-07-18 Tom Tromey <tromey@redhat.com>
4328
4329 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4330 gdb_bfd_unref.
4331 (free_dwo_file): Use gdb_bfd_unref.
4332 * cli/cli-dump.c: Include gdb_bfd.h.
4333 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4334 (bfd_openr_with_cleanup): Likewise.
4335 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4336 gdb_bfd_unref.
4337 * utils.c: Include gdb_bfd.h.
4338 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4339 * symfile.c: Include gdb_bfd.h.
4340 (separate_debug_file_exists): Use gdb_bfd_unref.
4341 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4342 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4343 (generic_load): Use gdb_bfd_ref.
4344 (reread_symbols): Use gdb_bfd_unref.
4345 * symfile-mem.c: Include gdb_bfd.h.
4346 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4347 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4348 * solib.c: Include gdb_bfd.h.
4349 (solib_bfd_fopen): Use gdb_bfd_ref.
4350 (solib_bfd_open): Use gdb_bfd_unref.
4351 (free_so_symbols): Use gdb_bfd_unref.
4352 (reload_shared_libraries_1): Use gdb_bfd_unref.
4353 * solib-spu.c: Include gdb_bfd.h.
4354 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4355 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4356 gdb_bfd_unref.
4357 * solib-frv.c: Include gdb_bfd.h.
4358 (enable_break2): Use gdb_bfd_unref.
4359 * solib-dsbt.c: Include gdb_bfd.h.
4360 (enable_break2): Use gdb_bfd_unref.
4361 * solib-darwin.c: Include gdb_bfd.h.
4362 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4363 gdb_bfd_unref.
4364 (darwin_bfd_open): Use gdb_bfd_unref.
4365 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4366 * remote-mips.c: Include gdb_bfd.h.
4367 (mips_load_srec): Use gdb_bfd_ref.
4368 (pmon_load_fast): Use gdb_bfd_ref.
4369 * remote-m32r-sdi.c: Include gdb_bfd.h.
4370 (m32r_load): Use gdb_bfd_ref.
4371 * record.c: Include gdb_bfd.h.
4372 (record_save_cleanups): Use gdb_bfd_unref.
4373 (cmd_record_save): Use gdb_bfd_unref.
4374 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4375 gdb_bfd_unref.
4376 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4377 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4378 * objfiles.c: Include gdb_bfd.h.
4379 (free_objfile): Use gdb_bfd_unref.
4380 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4381 gdb_bfd.c.
4382 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4383 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4384 (macho_check_dsym): Likewise.
4385 * m32r-rom.c: Include gdb_bfd.h.
4386 (m32r_load): Use gdb_bfd_ref.
4387 (m32r_upload_command): Use gdb_bfd_ref.
4388 * jit.c: Include gdb_bfd.h.
4389 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4390 * gdb_bfd.h: New file.
4391 * gdb_bfd.c: New file.
4392 * gcore.c: Include gdb_bfd.h.
4393 (create_gcore_bfd): Use gdb_bfd_ref.
4394 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4395 (gcore_command): Use gdb_bfd_unref.
4396 * exec.c: Include gdb_bfd.h.
4397 (exec_close): Use gdb_bfd_unref.
4398 (exec_close_1): Use gdb_bfd_unref.
4399 (exec_file_attach): Use gdb_bfd_ref.
4400 * elfread.c: Include gdb_bfd.h.
4401 (build_id_verify): Use gdb_bfd_unref.
4402 * dsrec.c: Include gdb_bfd.h.
4403 (load_srec): Use gdb_bfd_ref.
4404 * corelow.c: Include gdb_bfd.h.
4405 (core_close): Use gdb_bfd_unref.
4406 (core_open): Use gdb_bfd_ref.
4407 * bfd-target.c: Include gdb_bfd.h.
4408 (target_bfd_xclose): Use gdb_bfd_unref.
4409 (target_bfd_reopen): Use gdb_bfd_ref.
4410 * Makefile.in (SFILES): Add gdb_bfd.c.
4411 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4412 (COMMON_OBS): Add gdb_bfd.o.
4413
4414 2012-07-18 Keith Seitz <keiths@redhat.com>
4415
4416 * breakpoint.c (find_condition_and_thread): Initialize
4417 TASK and REST.
4418 (create_breakpiont): find_condition_and_thread will now
4419 initialize COND_STRING, THREAD, and REST (and TASK).
4420 (addr_string_to_sals): Likewise.
4421
4422 2012-07-18 Pedro Alves <palves@redhat.com>
4423
4424 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4425 Pull the single step breakpoints out of the target.
4426
4427 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4428
4429 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4430 * stap-probe.c (compile_probe_arg): Likewise.
4431
4432 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4433
4434 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4435 (elf_compile_to_ax): Likewise.
4436 * infrun.c (insert_exception_resume_from_probe): Likewise.
4437 (check_exception_resume): Remove `objfile' variable.
4438 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4439 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4440 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4441 (compare_entries): Rename to...
4442 (compare_probes): ...this. Adjust function to work with
4443 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4444 respectively.
4445 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4446 `VEC (probe_p) *'.
4447 (print_ui_out_info): Adjust argument to be `struct probe *'.
4448 (info_probes_for_ops): Adjust internal computations to use
4449 `VEC (probe_p) *'.
4450 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4451 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4452 gen_info_probes_table_values>: Remove `objfile' argument.
4453 (struct probe) <objfile>: New field.
4454 (find_probe_by_pc): Remove `objfile' argument.
4455 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4456 (stap_get_probe_argument_count): Likewise.
4457 (stap_get_arg): Likewise.
4458 (stap_evaluate_probe_argument): Likewise.
4459 (stap_compile_to_ax): Likewise.
4460 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4461 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4462 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4463 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4464 sym_compile_to_ax>: Likewise.
4465
4466 2012-07-18 Terry Guo <terry.guo@arm.com>
4467
4468 PR 14329
4469 * defs.h (GDB_MI_MSG_WIDTH): New.
4470 * ser_base (ser_base_read_error_fd): New function.
4471 (do_ser_base_readchar): Poll error file descriptor as well as
4472 standard output.
4473 (generic_readchar): Refactor error handling.
4474
4475 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4476
4477 * NEWS: Create a new section for the next release branch.
4478 Rename the section of the current branch, now that it has
4479 been cut.
4480
4481 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4482
4483 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4484 * version.in: Bump version to 7.5.50.20120718-cvs.
4485
4486 2012-07-17 Keith Seitz <keiths@redhat.com>
4487
4488 * linespec.c (linespec_parse_line_offset): Make parameter
4489 const.
4490
4491 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4492
4493 PR 11914
4494 * f-valprint.c (info_common_command): New variable frame_id.
4495 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4496 * printcmd.c (print_variable_and_value): Extend function comment.
4497 Add comment for invalidated FRAME.
4498 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4499 FI form FRAME_ID after each print_frame_local_vars.
4500 (struct print_variable_and_value_data): Change frame to frame_id.
4501 (do_print_variable_and_value): New variable frame, initialize it from
4502 p->frame_id. Add comment for invalidated FRAME.
4503 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4504 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4505 for invalidated FRAME.
4506
4507 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4508 Pedro Alves <palves@redhat.com>
4509
4510 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4511 loop.
4512
4513 2012-07-16 Tom Tromey <tromey@redhat.com>
4514
4515 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4516
4517 2012-07-15 Doug Evans <dje@google.com>
4518
4519 * dwarf2read.c (stmt_list_hash): New struct.
4520 (type_unit_group): Embed "per_cu" member, remove pointer.
4521 New union member "t", move member "tus" into it, all uses updated.
4522 New member "hash", replaces member "line_offset, all uses updated.
4523 (quick_file_names): Replace member "offset" with "hash", all uses
4524 updated.
4525 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4526 (hash_file_name_entry, eq_file_name_entry): Call them.
4527 (hash_type_unit_group, eq_type_unit_group): Ditto.
4528 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4529 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4530 (dw2_get_file_names): Update.
4531 (create_type_unit_group): Replace "per_cu" arg with "cu".
4532 All callers updated. Fix "quick" (.gdb_index) handling.
4533 (get_type_unit_group): Replace "per_cu" arg with "cu".
4534 All callers updated.
4535 (build_type_unit_groups): Don't reset tu_stats.
4536
4537 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4538 "tab_cur_size". Change member "tab" to be a htab_t.
4539 (create_filename_seen_cache): Update.
4540 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4541 (filename_seen): Update.
4542
4543 2012-07-13 Doug Evans <dje@google.com>
4544
4545 * symtab.c (filename_seen): Update comment.
4546
4547 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4548 Doug Evans <dje@google.com>
4549
4550 * buildsym.c (end_symtab_1): Split it to ...
4551 (end_symtab_get_static_block): ... this ...
4552 (end_symtab_from_static_block): ... and this function.
4553 (end_symtab, end_expandable_symtab): Call them.
4554 * buildsym.h (end_symtab_get_static_block)
4555 (end_symtab_from_static_block): New declarations.
4556 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4557 Set its valid CU ranges.
4558
4559 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4560
4561 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4562 DW_OP_GNU_parameter_ref.
4563
4564 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4565
4566 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4567 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4568
4569 2012-07-13 Doug Evans <dje@google.com>
4570
4571 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4572 (filename_seen_cache): New struct.
4573 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4574 (create_filename_seen_cache): New function.
4575 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4576 (filename_seen): Delete arg "first". New arg "cache". All callers
4577 updated.
4578 (output_source_filename_data): New struct.
4579 (output_source_filename): Delete arg "first". New arg "data".
4580 All callers updated.
4581 (sources_info): Delete local "first". New locals "data", "cleanups".
4582 Rewrite to use filename_seen_cache.
4583 (add_partial_filename_data): Delete member "first". New member
4584 "filename_seen_cache". All uses updated.
4585 (make_source_files_completion_list): Rewrite to use
4586 filename_seen_cache.
4587
4588 2012-07-12 Doug Evans <dje@google.com>
4589
4590 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4591
4592 2012-07-10 Doug Evans <dje@google.com>
4593
4594 PR gdb/13498
4595 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4596 all_type_unit_groups, type_unit_groups, tu_stats.
4597 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4598 All uses updated. Add type_unit_group to union "s".
4599 (type_unit_group): New struct.
4600 (IS_TYPE_UNIT_GROUP): New macro.
4601 (abbrev_table): Delete unused member "section".
4602 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4603 (dw2_get_cu): Assert not used with type_unit_group.
4604 (dw2_get_primary_cu): New function.
4605 (dw2_build_type_unit_groups_reader): New function.
4606 (dw2_build_type_unit_groups): New function.
4607 (dw2_get_file_names): Assert not called on type units.
4608 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4609 Redo loop to iterate over type unit groups instead of type units.
4610 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4611 (read_abbrev_offset): New function.
4612 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4613 updated.
4614 (create_partial_symtab): New function.
4615 (process_psymtab_comp_unit_reader): Assert not used with type units.
4616 Call create_partial_symtab.
4617 (process_psymtab_type_unit): Delete.
4618 (hash_type_unit_group, eq_type_unit_group): New functions.
4619 (allocate_type_unit_groups_table): New function.
4620 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4621 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4622 (create_type_unit_group, get_type_unit_group): New functions.
4623 (tu_abbrev_offset): New struct.
4624 (sort_tu_by_abbrev_offset): New function.
4625 (add_type_unit_group_to_table): New function.
4626 (build_type_unit_groups): New function.
4627 (build_type_psymtabs_reader): New function.
4628 (build_type_psymtab_dependencies): New function.
4629 (build_type_psymtabs): Rewrite.
4630 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4631 is seen in a type unit.
4632 (process_queue): Move symtab expansion debugging printfs here.
4633 Call process_full_type_unit for type units.
4634 (compute_symtab_includes): Assert not called for type units.
4635 (process_cu_includes): Don't call compute_symtab_includes for
4636 type units.
4637 (process_full_type_unit): New function.
4638 (process_imported_unit_die): Flag an error if called for type units.
4639 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4640 updated. Assert not called for type units.
4641 (read_file_scope): Call dwarf2_start_symtab.
4642 (setup_type_unit_groups): New function.
4643 (read_type_unit_scope): Rewrite.
4644 (abbrev_table_read_table): Initialize abbrev_table->offset.
4645 (abbrev_table_free_cleanup): New function.
4646 (dwarf2_start_symtab): New function.
4647 (load_full_type_unit): Assert not called for type unit groups.
4648 * buildsym.c (finish_block_internal): New arg "expandable".
4649 All callers updated.
4650 (start_symtab): Move most contents to ...
4651 (restart_symtab): ... here. New function.
4652 (reset_symtab_globals): New function.
4653 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4654 Call reset_symtab_globals.
4655 (end_symtab, end_expandable_symtab): New functions.
4656 (set_missing_symtab, augment_type_symtab): New functions.
4657 * buildsym.h (end_expandable_symtab): Declare.
4658 (augment_type_symtab, restart_symtab): Declare.
4659 * psympriv.h (struct partial_symtab): New member "anonymous".
4660 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4661 anonymous psymtabs.
4662 (read_psymtabs_with_filename): Ditto.
4663 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4664 (expand_symtabs_matching_via_partial): Ditto.
4665 (dump_psymtab): Update.
4666 * dictionary.c (dict_add_pending): New function.
4667 * dictionary.h (dict_add_pending): Declare.
4668
4669 2012-07-09 Doug Evans <dje@google.com>
4670
4671 * buildsym.c (start_subfile): Remove unnecessary check for
4672 name == NULL.
4673
4674 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4675
4676 * dwarf2read.c (load_full_type_unit): Simplify.
4677
4678 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4679 to struct signatured_type **. All uses updated.
4680
4681 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4682 All callers updated.
4683
4684 2012-07-09 Tom Tromey <tromey@redhat.com>
4685
4686 * c-exp.y (check_parameter_typelist): New function.
4687 (parameter_typelist): Call it.
4688 * eval.c (make_params): Handle '(void)' case.
4689 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4690 '(void)' case.
4691
4692 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4693
4694 * common/linux-ptrace.c: Include gdb_assert.h.
4695 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4696 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4697 stdint.h.
4698 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4699 functions.
4700 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4701 * linux-nat.c (linux_child_post_attach)
4702 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4703
4704 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4705
4706 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4707 nptl <2.7 bug workaround for core files.
4708
4709 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4710
4711 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4712 clearing.
4713 (save_siginfo): Remove.
4714 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4715 call.
4716 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4717 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4718 * linux-nat.h (struct lwp_info): Remove field siginfo.
4719
4720 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4721
4722 Code cleanup for the next patch.
4723 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4724 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4725 call for it.
4726 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4727 (ia64_linux_stopped_data_address):
4728 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4729 the return value.
4730 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4731 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4732 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4733 call for it.
4734
4735 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4736
4737 PR 14321
4738 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4739 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4740
4741 2012-07-06 Tom Tromey <tromey@redhat.com>
4742
4743 * c-exp.y (DOTDOTDOT): New token.
4744 (func_mod, exp): Use parameter_typelist.
4745 (parameter_typelist): New production.
4746 (tokentab3): Add "..." token.
4747 * eval.c (make_params): Handle varargs.
4748 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4749 varargs.
4750
4751 2012-07-06 Tom Tromey <tromey@redhat.com>
4752
4753 PR exp/9608:
4754 * c-exp.y (%union) <tvec>: Change type.
4755 (func_mod): Now uses <tvec> type.
4756 (exp): Update for tvec change.
4757 (direct_abs_decl): Push the typelist.
4758 (func_mod): Return a typelist.
4759 (nonempty_typelist): Update for tvec change.
4760 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4761 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4762 * parse.c (pop_type_list): New function.
4763 (push_typelist): New function.
4764 (follow_types): Handle tp_function_with_arguments.
4765 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4766 (enum type_pieces) <tp_function_with_arguments>: New constant.
4767 (union type_stack_elt) <typelist_val>: New field.
4768 (push_typelist): Declare.
4769
4770 2012-07-06 Tom Tromey <tromey@redhat.com>
4771
4772 * c-exp.y (%union) <type_stack>: New field.
4773 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4774 (ptr_operator_ts): New production.
4775 (ptype): Update.
4776 * parse.c (type_stack_reserve): New function.
4777 (check_type_stack_depth): Use it.
4778 (pop_type_stack, append_type_stack, push_type_stack)
4779 (get_type_stack, type_stack_cleanup): New functions.
4780 (follow_types): Handle tp_type_stack.
4781 (_initialize_parse): Simplify initialization.
4782 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4783 constant.
4784 (union type_stack_elt) <stack_val>: New field.
4785 (get_type_stack, append_type_stack, push_type_stack)
4786 (type_stack_cleanup): Declare.
4787
4788 2012-07-06 Tom Tromey <tromey@redhat.com>
4789
4790 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4791 Remove.
4792 (struct type_stack): New.
4793 * parse.c (type_stack, type_stack_size, type_stack_depth):
4794 Remove.
4795 (type_stack): New global.
4796 (parse_exp_in_context, check_type_stack_depth)
4797 (insert_into_type_stack, insert_type, push_type, push_type_int)
4798 (insert_type_address_space, pop_type, pop_type_int)
4799 (_initialize_parse): Update.
4800
4801 2012-07-06 Tom Tromey <tromey@redhat.com>
4802
4803 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4804 Remove %type.
4805
4806 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4807
4808 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4809
4810 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4811 Jan Kratochvil <jan.kratochvil@redhat.com>
4812
4813 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4814 alloca with xmalloc/xfree.
4815
4816 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4817
4818 * MAINTAINERS (Write After Approval): Add myself to the list.
4819
4820 2012-07-05 Doug Evans <dje@google.com>
4821
4822 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4823
4824 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4825
4826 * ax-gdb.c (cli/cli-utils.h): New include.
4827 (linespec.h): Ditto.
4828 (agent_eval_command_one): New function.
4829 (agent_command_1): Ditto.
4830 (agent_command): Call function agent_command_1.
4831 (agent_eval_command): Ditto.
4832 (_initialize_ax_gdb): Change help for "maint agent"
4833 and "maint agent-eval".
4834
4835 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4836
4837 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4838 * cli/cli-utils.c (check_for_argument): New function.
4839 * cli/cli-utils.h (check_for_argument): Ditto.
4840
4841 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4842
4843 * NEWS: Mention x32 ABI support.
4844
4845 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4846
4847 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4848 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4849
4850 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4851 and pc_regnum_from_eax to -1. Update SP regnum from
4852 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4853 needed.
4854
4855 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4856 pc_regnum_from_eax.
4857
4858 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4859
4860 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4861 * dwarf2expr.h: Include gdbtypes.h.
4862 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4863 these forward declarations.
4864 (cu_offset, sect_offset): Move these ...
4865 * gdbtypes.h: Remove include dwarf2expr.h.
4866 (cu_offset, sect_offset): ... here.
4867
4868 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4869
4870 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4871 (amd64_linux_sigtramp_code): This.
4872 (amd64_x32_linux_sigtramp_code): New.
4873 (LINUX_SIGTRAMP_LEN): Updated.
4874 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4875
4876 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4877
4878 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4879
4880 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4881
4882 * config.in: Regenerate.
4883 * configure: Regenerate.
4884 * configure.ac: Remove check for gnu/libc-version.h.
4885 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4886 gnu/libc-version.h.
4887 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4888 variables libc_version, libc_major and libc_minor. Replace sscanf by
4889 inferior_has_bug. Extend the comment.
4890
4891 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4892
4893 * linux-thread-db.c (inferior_has_bug): New function.
4894 (thread_db_find_new_threads_silently): Return boolean as checked by
4895 inferior_has_bug, describe it in the comments.
4896 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4897 earlier. Abort the initialization if it returned non-zero.
4898 (thread_db_new_objfile): Exclude debug files.
4899 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4900 if UNTIL_NO_NEW,
4901
4902 2012-07-02 Doug Evans <dje@google.com>
4903
4904 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4905 related to queue management.
4906
4907 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4908 instead of "debug dwarf2-die" in debugging printfs.
4909 (create_debug_info_hash_table_reader): Ditto.
4910 (create_debug_info_hash_table): Ditto.
4911 (init_dwo_file): Ditto.
4912 (init_cutu_and_read_dies): Add debugging printf.
4913 (init_cutu_and_read_dies_no_follow): Ditto.
4914 (process_psymtab_comp_unit_reader): Ditto.
4915
4916 2012-07-02 Stan Shebs <stan@codesourcery.com>
4917
4918 Add target-side support for dynamic printf.
4919 * NEWS: Mention the additional style.
4920 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4921 (struct bp_location): New field cmd_bytecode.
4922 * breakpoint.c: Include format.h.
4923 (disconnected_dprintf): New global.
4924 (parse_cmd_to_aexpr): New function.
4925 (build_target_command_list): New function.
4926 (insert_bp_location): Call it.
4927 (remove_breakpoints_pid): Skip dprintf breakpoints.
4928 (print_one_breakpoint_location): Ditto.
4929 (dprintf_style_agent): New global.
4930 (dprintf_style_enums): Add dprintf_style_agent.
4931 (update_dprintf_command_list): Add agent case.
4932 (agent_printf_command): New function.
4933 (_initialize_breakpoint): Add new commands.
4934 * common/ax.def (printf): New bytecode.
4935 * ax.h (ax_string): Declare.
4936 * ax-gdb.h (gen_printf): Declare.
4937 * ax-gdb.c: Include cli-utils.h, format.h.
4938 (gen_printf): New function.
4939 (maint_agent_print_command): New function.
4940 (_initialize_ax_gdb): Add maint agent-printf command.
4941 * ax-general.c (ax_string): New function.
4942 (ax_print): Add printf disassembly.
4943 * Makefile.in (SFILES): Add format.c
4944 (COMMON_OBS): Add format.o.
4945 * common/format.h: New file.
4946 * common/format.c: New file.
4947 * printcmd.c: Include format.h.
4948 (ui_printf): Call parse_format_string.
4949 * remote.c (remote_state): New field breakpoint_commands.
4950 (PACKET_BreakpointCommands): New enum.
4951 (remote_breakpoint_commands_feature): New function.
4952 (remote_protocol_features): Add new BreakpointCommands entry.
4953 (remote_can_run_breakpoint_commands): New function.
4954 (remote_add_target_side_commands): New function.
4955 (remote_insert_breakpoint): Call it.
4956 (remote_insert_hw_breakpoint): Ditto.
4957 (_initialize_remote): Add new packet configuration for
4958 target-side breakpoint commands.
4959 * target.h (struct target_ops): New field
4960 to_can_run_breakpoint_commands.
4961 (target_can_run_breakpoint_commands): New macro.
4962 * target.c (update_current_target): Handle
4963 to_can_run_breakpoint_commands.
4964
4965 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4966
4967 Execute -ix and -iex only after system and user gdbinit files.
4968 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4969 processing down after gdbinit files.
4970
4971 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4972
4973 Add fnmatch-gnu module.
4974 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4975 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4976 * gnulib/aclocal.m4: Regenerate.
4977 * gnulib/config.in: Regenerate.
4978 * gnulib/configure: Regenerate.
4979 * gnulib/import/dummy.c: Remove.
4980 * gnulib/import/Makefile.am: Regenerate.
4981 * gnulib/import/Makefile.in: Likewise.
4982 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4983 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4984 * gnulib/import/alloca.c: New file.
4985 * gnulib/import/alloca.in.h: Likewise.
4986 * gnulib/import/config.charset: Likewise.
4987 * gnulib/import/fnmatch.c: Likewise.
4988 * gnulib/import/fnmatch.in.h: Likewise.
4989 * gnulib/import/fnmatch_loop.c: Likewise.
4990 * gnulib/import/localcharset.c: Likewise.
4991 * gnulib/import/localcharset.h: Likewise.
4992 * gnulib/import/m4/alloca.m4: Likewise.
4993 * gnulib/import/m4/codeset.m4: Likewise.
4994 * gnulib/import/m4/configmake.m4: Likewise.
4995 * gnulib/import/m4/fcntl-o.m4: Likewise.
4996 * gnulib/import/m4/fnmatch.m4: Likewise.
4997 * gnulib/import/m4/glibc21.m4: Likewise.
4998 * gnulib/import/m4/localcharset.m4: Likewise.
4999 * gnulib/import/m4/locale-fr.m4: Likewise.
5000 * gnulib/import/m4/locale-ja.m4: Likewise.
5001 * gnulib/import/m4/locale-zh.m4: Likewise.
5002 * gnulib/import/m4/mbrtowc.m4: Likewise.
5003 * gnulib/import/m4/mbsinit.m4: Likewise.
5004 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5005 * gnulib/import/m4/mbstate_t.m4: Likewise.
5006 * gnulib/import/m4/stdbool.m4: Likewise.
5007 * gnulib/import/m4/wchar_h.m4: Likewise.
5008 * gnulib/import/m4/wctype_h.m4: Likewise.
5009 * gnulib/import/m4/wint_t.m4: Likewise.
5010 * gnulib/import/mbrtowc.c: Likewise.
5011 * gnulib/import/mbsinit.c: Likewise.
5012 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5013 * gnulib/import/mbsrtowcs-state.c: Likewise.
5014 * gnulib/import/mbsrtowcs.c: Likewise.
5015 * gnulib/import/ref-add.sin: Likewise.
5016 * gnulib/import/ref-del.sin: Likewise.
5017 * gnulib/import/stdbool.in.h: Likewise.
5018 * gnulib/import/streq.h: Likewise.
5019 * gnulib/import/strnlen1.c: Likewise.
5020 * gnulib/import/strnlen1.h: Likewise.
5021 * gnulib/import/verify.h: Likewise.
5022 * gnulib/import/wchar.in.h: Likewise.
5023 * gnulib/import/wctype.in.h: Likewise.
5024
5025 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5026
5027 Support shell wildcards for 'set auto-load safe-path'.
5028 * auto-load.c: Include fnmatch.h.
5029 (filename_is_in_dir): Rename to ...
5030 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5031 it. Update function comment. Rename dir_len to pattern_len. New
5032 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5033 messages. Use gdb_filename_fnmatch.
5034 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5035 pattern.
5036 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5037 * defs.h (gdb_filename_fnmatch): New declaration.
5038 * utils.c: Include fnmatch.h.
5039 (gdb_filename_fnmatch): New function.
5040
5041 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5042
5043 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5044 `-probe' and `-probe-stap' options.
5045
5046 2012-07-01 Yao Qi <yao@codesourcery.com>
5047
5048 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5049 always_inserted_off, and always_inserted_enums.
5050 Change always_inserted_mode's type to 'enum auto_boolean'.
5051 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5052 callers.
5053 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5054 of add_setshow_enum_cmd.
5055 * infrun.c: Remove can_use_displaced_stepping_auto,
5056 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5057 can_use_displaced_stepping_enum.
5058 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5059 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5060 callers.
5061 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5062 add_setshow_enum_cmd.
5063
5064 2012-06-30 Doug Evans <dje@google.com>
5065
5066 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5067 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5068 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5069
5070 2012-06-29 Doug Evans <dje@google.com>
5071
5072 * linespec.c: #include "stack.h".
5073 (decode_line_with_current_source): Moved here from symtab.c and
5074 renamed from decode_line_spec. All callers updated.
5075 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5076 renamed from decode_line_spec_1. All callers updated.
5077 * linespec.h (decode_line_with_current_source): Move declaration here
5078 from symtab.h and renamed from decode_line_spec.
5079 (decode_line_with_last_displayed): Move declaration here from symtab.h
5080 and renamed from decode_line_spec_1.
5081 * macrocmd.c: #include "linespec.h".
5082 * symtab.c: Remove #include "linespec.h".
5083
5084 2012-06-28 Doug Evans <dje@google.com>
5085
5086 * dwarf2read.c (get_cu_length): New function.
5087 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5088 (create_debug_types_hash_table): Ditto.
5089 (init_cutu_and_read_dies): Ditto.
5090 (init_cutu_and_read_dies_no_follow): Ditto.
5091
5092 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5093
5094 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5095 (struct abbrev_table): Define.
5096 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5097 abbrev_table.
5098 (init_cutu_and_read_dies): Update.
5099 (abbrev_table_alloc_abbrev): New function. Replaces
5100 dwarf_alloc_abbrev. All callers updated.
5101 (abbrev_table_add_abbrev): New function.
5102 (abbrev_table_lookup_abbrev): New function. Replaces
5103 dwarf2_lookup_abbrev. All callers updated.
5104 (abbrev_table_read_table): New function. Contents moved here from
5105 dwarf2_read_abbrevs.
5106 (dwarf2_read_abbrevs): Call it.
5107 (abbrev_table_free): New function.
5108 (dwarf2_free_abbrev_table): Call it.
5109
5110 2012-06-28 Stan Shebs <stan@codesourcery.com>
5111
5112 * osdata.c (info_osdata_command): Filter out "Title" columns
5113 from non-MI uses.
5114 * common/linux-osdata.c (struct osdata_type): Add title field.
5115 (osdata_table): Add titles to each entry.
5116 (linux_command_xfer_osdata): Add a column for title data.
5117
5118 2012-06-28 Stan Shebs <stan@codesourcery.com>
5119
5120 Make logging work for MI.
5121 * NEWS: Mention it.
5122 * interps.h (interp_set_logging_ftype): New typedef.
5123 (struct interp_procs): New field set_logging_proc.
5124 (current_interp_set_logging): Declare.
5125 * interps.c (current_interp_set_logging): New function.
5126 * cli/cli-logging.c: Include interps.h.
5127 (set_logging_redirect): Call current_interp_set_logging.
5128 (pop_output_files): Ditto.
5129 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5130 * mi/mi-console.h (mi_console_set_raw): Declare.
5131 * mi/mi-console.c (mi_console_set_raw): New function.
5132 * mi/mi-interp.c (saved_raw_stdout): New global.
5133 (mi_set_logging): New function.
5134 (_initialize_mi_interp): Add it to interp procs.
5135
5136 2012-06-28 Doug Evans <dje@google.com>
5137
5138 * symtab.c (lookup_symbol_aux_objfile): Use
5139 ALL_OBJFILE_PRIMARY_SYMTABS.
5140
5141 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5142
5143 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5144
5145 * common/buffer.c: Include inttypes.h and stdint.h.
5146 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5147
5148 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5149 Pedro Alves <palves@redhat.com>
5150
5151 * gdbthread.h (ALL_THREADS): New macro.
5152 (thread_list): Declare.
5153 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5154 going, but instead fall through to the stepping handling.
5155 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5156 the passed in signal. Adjust debug output.
5157 (resume_callback): Rename to ...
5158 (linux_nat_resume_callback): ... this. Pass the thread's last
5159 stop signal, if in "pass" state.
5160 (linux_nat_resume): Adjust to rename.
5161 (stop_wait_callback): New assertion. Don't respawn signals;
5162 instead let the LWP remain with SIGNALLED set.
5163 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5164 * remote.c (append_pending_thread_resumptions): New.
5165 (remote_vcont_resume): Call it.
5166 * target.h (target_resume): Extend comment.
5167
5168 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5169
5170 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5171
5172 2012-06-27 Doug Evans <dje@google.com>
5173
5174 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5175 Delete have_addr_base, unused. All uses updated.
5176 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5177 (dwarf2_get_pc_bounds): Add ranges_base.
5178 (dwarf2_record_block_ranges): Ditto.
5179
5180 2012-06-27 Tom Tromey <tromey@redhat.com>
5181
5182 PR macros/7961:
5183 * varobj.c (varobj_create): Update.
5184 (varobj_set_value): Update.
5185 * tracepoint.c (validate_actionline): Update.
5186 (encode_actions_1): Update.
5187 * parse.c (parse_exp_1): Add 'pc' argument.
5188 (parse_exp_in_context): Add 'pc' argument. Change how
5189 expression_context_pc is set.
5190 (parse_expression): Update.
5191 (parse_field_expression): Update.
5192 * expression.h (parse_exp_1): Update.
5193 * eval.c (parse_to_comma_and_eval): Update.
5194 * breakpoint.c (set_breakpoint_condition): Update.
5195 (update_watchpoint): Update.
5196 (init_breakpoint_sal): Update
5197 (find_condition_and_thread): Update.
5198 (watch_command_1): Update.
5199 (update_breakpoint_locations): Update.
5200 * ada-lang.c (ada_read_renaming_var_value): Update.
5201 (create_excep_cond_exprs): Update.
5202
5203 2012-06-27 Doug Evans <dje@google.com>
5204
5205 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5206 type units.
5207
5208 2012-06-26 Doug Evans <dje@google.com>
5209
5210 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5211 prototype.
5212 (error_check_comp_unit_head): New arg abbrev_section. All callers
5213 updated.
5214 (read_and_check_comp_unit_head): Ditto.
5215 (read_and_check_type_unit_head): Ditto.
5216
5217 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5218
5219 New attribute 'last' for gdb.Symtab_and_line.
5220 * NEWS (Python Scripting): Add entry about the new attribute.
5221 * python/py-symtab.c (salpy_get_last): New function which
5222 implements the get method for the 'last' attribute of
5223 gdb.Symtab_and_line.
5224 (sal_object_getset): Add entry for the 'last' attribute.
5225
5226 2012-06-26 Doug Evans <dje@google.com>
5227
5228 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5229 (dwo_sections): Add macinfo, macro.
5230 (dwarf2_locate_dwo_sections): Watch for macro sections.
5231 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5232 All callers updated. Handle DWO files.
5233
5234 * NEWS: Mention new options "set debug dwarf2-read" and
5235 "set debug symtab-create".
5236 * dwarf2read.c (dwarf2_read_debug): New static global.
5237 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5238 (process_queue): Ditto.
5239 (process_full_comp_unit): Ditto.
5240 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5241 * elfread.c (elf_symfile_read): Add debugging printf.
5242 * minsyms.c (install_minimal_symbols): Ditto.
5243 * psymtab.c (allocate_psymtab): Ditto.
5244 * symfile.c (allocate_symtab): Ditto.
5245 * symtab.c (symtab_create_debug): New global.
5246 (_initialize_symtab): Add new option "set debug symtab-create".
5247 * symtab.h (symtab_create_debug): Declare.
5248
5249 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5250 (lookup_dwo_type_unit): Ditto.
5251
5252 2012-06-26 Roland McGrath <roland@hack.frob.com>
5253 H.J. Lu <hongjiu.lu@intel.com>
5254
5255 * amd64-linux-nat.c: Include <sys/user.h>.
5256 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5257 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5258 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5259
5260 * configure.ac: Check if the fs_base and gs_base members of
5261 `struct user_regs_struct' exist.
5262 * config.in: Regenerated.
5263 * configure: Likewise.
5264
5265 2012-06-25 Michael Eager <eager@eagercon.com>
5266
5267 PR python/14291
5268 * python/python.c (gdbpy_write): Check for interrupted output.
5269
5270 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5271
5272 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5273 register as a stack alignment in ARM mode.
5274
5275 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5276
5277 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5278 * gnulib/config.in: Regenerate.
5279 * gnulib/configure: Likewise.
5280 * gnulib/import/m4/extensions.m4: Update it.
5281 * gnulib/import/m4/gnulib-common.m4: Likewise.
5282 * gnulib/import/m4/memmem.m4: Likewise.
5283 * gnulib/import/m4/mmap-anon.m4: Likewise.
5284 * gnulib/import/m4/multiarch.m4: Likewise.
5285 * gnulib/import/stdint.in.h: Likewise.
5286
5287 2012-06-24 Yao Qi <yao@codesourcery.com>
5288
5289 * corefile.c (write_memory_with_notification): New.
5290 * gdbcore.h: Declare write_memory_with_notification.
5291 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5292 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5293 * valops.c (value_assign): Likewise.
5294 * python/py-inferior.c (infpy_write_memory): Call
5295 'write_memory_with_notification'.
5296
5297 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5298
5299 * cc-with-index.sh: Use also -ex "set auto-load no".
5300
5301 2012-06-23 Doug Evans <dje@google.com>
5302
5303 PR 14125
5304 * NEWS: Document additions to .gdb_index.
5305 * dwarf2read.c: #include "gdb/gdb-index.h".
5306 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5307 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5308 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5309 (dwarf2_read_index): Recognize version 7.
5310 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5311 block_kind, domain): All callers updated.
5312 (dw2_find_symbol_file): Handle new index CU values.
5313 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5314 (add_index_entry): New args is_static, kind. All callers updated.
5315 (offset_type_compare, uniquify_cu_indices): New functions
5316 (symbol_kind): New function.
5317 (write_psymtabs_to_index): Remove duplicate CU values.
5318 (write_psymtabs_to_index): Write .gdb_index version 7.
5319
5320 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5321
5322 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5323 * configure: Regenerate.
5324
5325 2012-06-20 Yao Qi <yao@codesourcery.com>
5326
5327 * python/py-inferior.c: Update comments of infpy_read_memory
5328 and infpy_write_memory.
5329
5330 2012-06-19 Tom Tromey <tromey@redhat.com>
5331
5332 PR exp/9514:
5333 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5334 (push_type_address_space): Remove.
5335 * parse.c (insert_into_type_stack): New function.
5336 (insert_type): Likewise.
5337 (insert_type_address_space): Rename from push_type_address_space.
5338 Insert tp_space_identifier.
5339 * c-exp.y (ptr_operator): New production.
5340 (abs_decl): Use ptr_operator.
5341 (space_identifier): Call insert_type_address_space.
5342 (ptype): Don't use const_or_volatile_or_space_identifier.
5343 (const_or_volatile_noopt): Call insert_type.
5344 (conversion_type_id, conversion_declarator): New productions.
5345 (operator): Use conversion_type_id.
5346
5347 2012-06-18 Doug Evans <dje@google.com>
5348
5349 * symtab.h (minimal_symbol): New member created_by_gdb.
5350 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5351 created by gdb.
5352 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5353 (search_symbols): Call it instead of lookup_symbol.
5354 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5355
5356 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5357 Adjust address for DW_OP_GNU_addr_index.
5358 * dwarf2expr.h (dwarf_expr_context): Update comment.
5359 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5360 all callers updated. Handle TLS vars described with
5361 DW_OP_GNU_const_index.
5362 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5363 and DW_OP_GNU_const_index.
5364 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5365
5366 * block.c (find_block_in_blockvector): Make explicit the fact that we
5367 ignore GLOBAL_BLOCK.
5368
5369 2012-06-18 Tom Tromey <tromey@redhat.com>
5370
5371 * c-exp.y (operator): Remove trailing space after "delete" and
5372 "delete[]".
5373
5374 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5375 Jan Kratochvil <jan.kratochvil@redhat.com>
5376
5377 Switch i386 and derived targets to ON_STACK.
5378 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5379 (amd64_dicos_init_abi): Remove its installment.
5380 * dicos-tdep.c (dicos_init_abi): Remove the
5381 set_gdbarch_call_dummy_location call. Update the comment here.
5382 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5383 (i386_dicos_init_abi): Remove its installment.
5384 * i386-tdep.c (i386_push_dummy_code): New function.
5385 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5386 i386_push_dummy_code.
5387
5388 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5389
5390 Remove stale dummy frames.
5391 * breakpoint.c: Include dummy-frame.h.
5392 (longjmp_breakpoint_ops): New variable.
5393 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5394 bp_longjmp_call_dummy.
5395 (bpstat_what, bptype_string, print_one_breakpoint_location)
5396 (init_bp_location): Support bp_longjmp_call_dummy.
5397 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5398 (set_longjmp_breakpoint_for_call_dummy)
5399 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5400 functions.
5401 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5402 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5403 FIXME comment and extend the other comment for bp_call_dummy.
5404 (set_longjmp_breakpoint_for_call_dummy)
5405 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5406 * dummy-frame.c: Include gdbthread.h.
5407 (pop_dummy_frame_bpt): New function.
5408 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5409 (dummy_frame_discard): New function.
5410 (cleanup_dummy_frames): Update the comment about longjmps.
5411 * dummy-frame.h (dummy_frame_discard): New declaration.
5412 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5413 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5414 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5415 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5416 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5417 keep_going if IS_LONGJMP and there is no other reason to stop.
5418
5419 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5420
5421 * remote-sim.c (sim_command_completer): Initialize
5422 variable 'result'.
5423
5424 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5425
5426 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5427 * dwarf2loc.c (call_site_parameter_matches): Support
5428 CALL_SITE_PARAMETER_PARAM_OFFSET.
5429 (needs_dwarf_reg_entry_value): Push stub value.
5430 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5431 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5432 * gdbtypes.h (enum call_site_parameter_kind): New item
5433 CALL_SITE_PARAMETER_PARAM_OFFSET.
5434 (struct call_site.parameter.u): New field param_offset.
5435
5436 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5437
5438 Code cleanup: Generalize call_site.parameter key.
5439 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5440 variable dwarf_reg. New variable kind_u. Update parameters to
5441 push_dwarf_reg_entry_value.
5442 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5443 * dwarf2expr.h (enum call_site_parameter_kind)
5444 (union call_site_parameter_u): Forward declarations.
5445 (struct dwarf_expr_context_funcs): Update parameters and their
5446 description for push_dwarf_reg_entry_value.
5447 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5448 * dwarf2loc.c (call_site_parameter_matches): New function.
5449 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5450 description. Use call_site_parameter_matches.
5451 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5452 Update parameters and their description.
5453 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5454 New variable kind_u. Adjust the caller for updated parameters.
5455 (needs_dwarf_reg_entry_value): Update parameters.
5456 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5457 instead of attr. Update for the changed fields of struct
5458 call_site_parameter.
5459 * gdbtypes.h: Include dwarf2expr.h.
5460 (enum call_site_parameter_kind): New.
5461 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5462 fb_offset into new union u.
5463
5464 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5465
5466 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5467 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5468 for x32.
5469
5470 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5471
5472 * amd64-linux-nat.c (compat_x32_clock_t): New.
5473 (compat_x32_siginfo_t): Likewise.
5474 (compat_x32_siginfo_from_siginfo): Likewise.
5475 (siginfo_from_compat_x32_siginfo): Likewise.
5476 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5477 and siginfo_from_compat_x32_siginfo for x32.
5478
5479 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5480
5481 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5482
5483 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5484
5485 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5486 instead of gdbarch_ptr_bit.
5487 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5488 (amd64_supply_native_gregset): Likewise.
5489 (amd64_collect_native_gregset): Likewise.
5490 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5491 (amd64_supply_xsave): Likewise.
5492 (amd64_collect_fxsave): Likewise.
5493 (amd64_collect_xsave): Likewise.
5494
5495 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5496
5497 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5498 (amd64_linux_read_description): Check DS segment register for
5499 x32 process.
5500
5501 2012-06-15 Tom Tromey <tromey@redhat.com>
5502
5503 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5504 init_cutu_and_read_dies.
5505
5506 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5507
5508 * MAINTAINERS (Write After Approval): Add myself to the list.
5509
5510 2012-06-15 Tom Tromey <tromey@redhat.com>
5511
5512 * valops.c (value_find_oload_method_list): Now static.
5513 * value.h (value_find_oload_method_list): Don't declare.
5514
5515 2012-06-15 Tom Tromey <tromey@redhat.com>
5516
5517 * valops.c (find_overload_match): Use value_ind.
5518
5519 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5520
5521 * infrun.c (handle_inferior_event): Correct indentation.
5522
5523 2012-06-14 Doug Evans <dje@google.com>
5524
5525 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5526 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5527 All uses updated.
5528 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5529 updated. Handle DEBUG_LOC_START_LENGTH.
5530 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5531 (loclist_describe_location): Ditto.
5532
5533 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5534
5535 PR backtrace/13866
5536 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5537 after hiding inline functions.
5538
5539 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5540
5541 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5542 _initialize_inf_ttrace.
5543
5544 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5545
5546 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5547 _initialize_hppa_hpux_nat.
5548
5549 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5550
5551 * remote-sim.c (sim_command_completer): Change type of return
5552 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5553
5554 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5555 Jan Kratochvil <jan.kratochvil@redhat.com>
5556
5557 PR tdep/14222
5558 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5559 stack on a 16-byte boundary.
5560
5561 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5562
5563 * jit.c (finalize_symtab): Set function's return type to 'void' by
5564 default.
5565
5566 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5567 H.J. Lu <hongjiu.lu@intel.com>
5568
5569 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5570 Move bits common to both the classic LP64 and the new x32 ILP32
5571 ABI here.
5572 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5573 (amd64_x32_linux_init_abi): New function.
5574 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5575 subtype.
5576
5577 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5578 * i386-tdep.c (i386_pseudo_register_name): Make public.
5579 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5580 * amd64-tdep.c (amd64_dword_names): Add "eip".
5581 (amd64_x32_pseudo_register_type): New function
5582 (amd64_x32_init_abi): New function.
5583
5584 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5585
5586 PR build/14003
5587 * inferior.h (struct inferior_suspend_state): Comment out.
5588 (struct inferior): Comment out the field suspend.
5589 * infrun.c (struct infcall_suspend_state): Comment out the field
5590 inferior_suspend.
5591 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5592 out its assignment.
5593
5594 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5595
5596 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5597 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5598 function comment. Return ERROR for unresolved cases. Implement
5599 returning proper NAME.
5600 (yylex): Accept also NAME from classify_inner_name.
5601 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5602 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5603 LOC_TYPEDEF type.
5604 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5605
5606 2012-06-13 Tom Tromey <tromey@redhat.com>
5607
5608 * breakpoint.c (condition_completer): New function.
5609 (_initialize_breakpoint): Use it.
5610 * value.c (complete_internalvar): New function.
5611 * value.h (complete_internalvar): Declare.
5612
5613 2012-06-13 Tom Tromey <tromey@redhat.com>
5614
5615 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5616 * breakpoint.c (catch_syscall_completer): Return a VEC.
5617 * cli/cli-cmds.c (complete_command): Update.
5618 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5619 (complete_on_enum): Likewise.
5620 * command.h: Include gdb_vecs.h.
5621 (completer_ftype): Change return type.
5622 (complete_on_cmdlist, complete_on_enum): Likewise.
5623 * completer.c (noop_completer, filename_completer)
5624 (location_completer): Return a VEC.
5625 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5626 to a VEC.
5627 (expression_completer, complete_line_internal, complete_line)
5628 (command_completer): Return a VEC.
5629 (gdb_completion_word_break_characters, line_completion_function):
5630 Update.
5631 * completer.h: Include gdb_vecs.h.
5632 (complete_line, noop_completer, filename_completer)
5633 (expression_completer, location_completer, command_completer):
5634 Update.
5635 * f-lang.c (f_word_break_characters): Return a VEC.
5636 * interps.c (interpreter_completer): Return a VEC.
5637 * language.h (struct language_defn)
5638 <la_make_symbol_completion_list>: Return a VEC.
5639 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5640 * symtab.c (free_completion_list): Take a VEC.
5641 (return_val_size, return_val_index): Remove.
5642 (return_val): Now a VEC.
5643 (completion_list_add_name): Update.
5644 (default_make_symbol_completion_list_break_on)
5645 (default_make_symbol_completion_list, make_symbol_completion_list)
5646 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5647 Return a VEC.
5648 (add_filename_to_list): Update.
5649 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5650 <list>: Now a VEC.
5651 (maybe_add_partial_symtab_filename): Update.
5652 (make_source_files_completion_list): Return a VEC.
5653 * symtab.h (default_make_symbol_completion_list_break_on)
5654 (default_make_symbol_completion_list, make_symbol_completion_list)
5655 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5656 (make_source_files_completion_list): Update.
5657
5658 2012-06-13 Tom Tromey <tromey@redhat.com>
5659
5660 * breakpoint.c (add_catch_command): Use completer_ftype.
5661 * breakpoint.h: Include command.h.
5662 (add_catch_command): Use completer_ftype.
5663 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5664 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5665 Use completer_ftype.
5666 * command.h (completer_ftype): New typedef.
5667 (set_cmd_completer): Use it.
5668 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5669 completer_ftype.
5670
5671 2012-06-13 Pedro Alves <palves@redhat.com>
5672
5673 Partial revert of previous change.
5674
5675 * serial.c (scb_base): New global.
5676 (serial_for_fd): New.
5677 (serial_open, serial_fdopen_ops): Link new serial in open serials
5678 chain.
5679 (do_serial_close): Unlink serial from the open serials chain.
5680
5681 2012-06-12 Pedro Alves <palves@redhat.com>
5682
5683 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5684 threads here.
5685 (prepare_for_detach): No longer context switch here in non-stop
5686 mode.
5687 (fetch_inferior_event): Ditto.
5688 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5689 to the event thread before removing breakpoints. Switch to the
5690 event thread before inserting breakpoints and resuming.
5691 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5692 event thread before resuming.
5693 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5694 Switch to the event thread before removing breakpoints.
5695
5696 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5697
5698 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5699 special characters correctly for the Windows shells. See
5700 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5701 report.
5702 [!__MINGW32__]: Remove extra double quote character from special
5703 characters.
5704
5705 2012-06-11 Stan Shebs <stan@codesourcery.com>
5706
5707 * ui-out.h: Remove #if 0 declarations.
5708 * ui-out.c: Remove #if 0 functions.
5709
5710 2012-06-11 Pedro Alves <palves@redhat.com>
5711
5712 * ser-base.c (run_async_handler_and_reschedule): New.
5713 (fd_event, push_event): Use it.
5714 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5715 reference count to 1.
5716 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5717 instead of xfree.
5718 (serial_is_open, serial_ref, serial_unref): New.
5719 * serial.h (serial_open): Adjust comment.
5720 (serial_is_open): Declare.
5721 (serial_close): Adjust comment.
5722 (serial_ref, serial_unref) Declare.
5723 (struct serial): New field 'refcnt'.
5724
5725 2012-06-11 Pedro Alves <palves@redhat.com>
5726
5727 Remove #if 0'd "connect" command, and unnecessary associated
5728 refcounting and serial reuse bits.
5729
5730 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5731 * serial.c (last_serial_opened): Delete.
5732 (scb_base): Delete.
5733 (serial_open): Adjust.
5734 (serial_for_fd): Delete.
5735 (serial_fdopen_ops, do_serial_close): Adjust.
5736 (serial_fdopen_ops): Adjust.
5737
5738 2012-06-11 Pedro Alves <palves@redhat.com>
5739
5740 * serial.c (do_serial_close): Remove early return when SCB is
5741 null.
5742
5743 2012-06-11 Tom Tromey <tromey@redhat.com>
5744
5745 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5746
5747 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5748
5749 Fix regression by the "ambiguous linespec" series.
5750 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5751 get_last_displayed_symtab and get_last_displayed_line and depending
5752 on CURSAL.
5753
5754 2012-06-11 Tom Tromey <tromey@redhat.com>
5755
5756 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5757 (dw2_find_symbol_file): Use it.
5758
5759 2012-06-11 Michael Eager <eager@eagercon.com>
5760
5761 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5762 * mips-linux-tdep.h (mips_signals): New
5763
5764 2012-06-11 Tom Tromey <tromey@redhat.com>
5765
5766 * infrun.c (handle_inferior_event)
5767 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5768 breakpoint.
5769 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5770 exception logic in all cases. Update comments.
5771 (insert_longjmp_resume_breakpoint): Set the exception resume
5772 breakpoint.
5773
5774 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5775
5776 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5777
5778 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5779
5780 * valarith.c (binop_types_user_defined_p): Fix a typo.
5781
5782 2012-06-08 Yao Qi <yao@codesourcery.com>
5783 Chung-Lin Tang <cltang@codesourcery.com>
5784
5785 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5786 * arch-utils.h: Declare.
5787 * gdbarch.sh: Add return_in_first_hidden_param_p.
5788 * gdbarch.c, gdbarch.h: Regenerated.
5789 * infcall.c (call_function_by_hand): Call
5790 gdbarch_return_in_first_hidden_param_p instead of
5791 language_pass_by_reference.
5792
5793 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5794 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5795 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5796 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5797 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5798 `cplus_return_struct_by_reference'.
5799 (tic6x_return_value): Handle language cplusplus.
5800 (tic6x_return_in_first_hidden_param_p): New.
5801 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5802
5803 2012-06-07 Doug Evans <dje@google.com>
5804
5805 * dwarf2read.c (dwarf2_cu): Add comment.
5806
5807 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5808
5809 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5810 variable.
5811 (mips_eabi_push_dummy_call): Likewise.
5812 (mips_n32n64_push_dummy_call): Likewise.
5813 (mips_o32_push_dummy_call): Likewise.
5814 (mips_o64_push_dummy_call): Likewise.
5815
5816 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5817
5818 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5819
5820 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5821
5822 * mips-tdep.c (mips_pseudo_register_type): Use
5823 mips_float_register_p.
5824
5825 2012-06-06 Pedro Alves <palves@redhat.com>
5826
5827 * infrun.c (handle_inferior_event): Remove calls to
5828 reinit_frame_cache that follow a context_switch call.
5829
5830 2012-06-06 Pedro Alves <palves@redhat.com>
5831
5832 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5833 context_switch and remove stale comment.
5834
5835 2012-06-06 Pedro Alves <palves@redhat.com>
5836
5837 * infrun.c (struct execution_control_state): Remove
5838 `new_thread_event' field.
5839 (handle_inferior_event): Simplify new threads handling; don't
5840 resume the inferior if we find a new thread.
5841
5842 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5843
5844 * NEWS: Document the deprecation of SH's 'regs' command.
5845 * inferior.h (all_registers_info): Add function declaration.
5846 * sh-tdep.c (sh_show_regs): Remove variable.
5847 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5848 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5849 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5850 (sh_show_regs_command): Remove functions.
5851 (sh_gdbarch_init): Don't set sh_show_regs.
5852 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5853 'info all-registers'.
5854 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5855 (sh64_show_regs): Remove functions.
5856 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5857
5858 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5859
5860 * configure.ac: Move development=true below AC_INIT.
5861 * configure: Regenerate.
5862
5863 2012-06-05 Stan Shebs <stan@codesourcery.com>
5864
5865 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5866 gdb_stdout.
5867
5868 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5869
5870 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5871 argument as ssize_t.
5872 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5873 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5874 * target.c (target_read_stack, target_write_memory)
5875 (target_write_raw_memory): Likewise.
5876 * target.h (target_read_stack, target_write_memory)
5877 (target_write_raw_memory): Likewise.
5878
5879 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5880
5881 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5882 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5883 * target.c (target_read_memory): Change LEN to ssize_t.
5884 * target.h (target_read_memory): Change LEN to ssize_t.
5885
5886 2012-06-05 Pedro Alves <palves@redhat.com>
5887
5888 PR backtrace/13866
5889
5890 * breakpoint.c (until_break_command): Only fetch the selected
5891 frame after decode_line_1.
5892
5893 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5894
5895 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5896 event breakpoint at _start, __start or main if a program
5897 interpreter is not found.
5898
5899 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5900
5901 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5902 Add declaration.
5903 * windows-tdep.c: #include "objfiles.h".
5904 (windows_iterate_over_objfiles_in_search_order): New function.
5905 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5906 iterate_over_objfiles_in_search_order gdbarch method to
5907 windows_iterate_over_objfiles_in_search_order.
5908 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5909
5910 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5911
5912 * gdbarch.sh: Add generation of
5913 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5914 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5915 (iterate_over_objfiles_in_search_order): New gdbarch method.
5916 * gdbarch.h, gdbarch.c: Regenerate.
5917 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5918 Add declaration.
5919 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5920 New function.
5921 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5922 out of lookup_symbol_aux_symtabs.
5923 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5924 call to lookup_symbol_aux_objfile.
5925 (struct global_sym_lookup_data): New type.
5926 (lookup_symbol_global_iterator_cb): New function.
5927 (lookup_symbol_global): Search for symbol using
5928 gdbarch_iterate_over_objfiles_in_search_order and
5929 lookup_symbol_global_iterator_cb.
5930 * findvar.c (struct minsym_lookup_data): New type.
5931 (minsym_lookup_iterator_cb): New function.
5932 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5933 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5934 and minsym_lookup_iterator_cb.
5935
5936 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5937
5938 Revert the following patch:
5939 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5940 try locating the symbol in the symbol's own objfile first, before
5941 extending the search to all objfiles.
5942 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5943 out of lookup_symbol_aux_symtabs.
5944 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5945 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5946 Do not search EXCLUDE_OBJFILE.
5947 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5948 (lookup_symbol_global): Search for matches in the block's objfile
5949 first, before searching all other objfiles.
5950
5951 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5952
5953 * breakpoint.c (find_condition_and_thread): Stop parsing
5954 as soon as the first invalid keyword is found.
5955
5956 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5957
5958 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5959
5960 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5961
5962 * config/djgpp/djcheck.sh: Add copyright header.
5963
5964 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5965
5966 * copyright.py (update_files, main): Fix path to update-copyright
5967 script.
5968
5969 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5970
5971 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5972 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5973 for which a reminder to update by hand is printed.
5974
5975 2012-06-04 Doug Evans <dje@google.com>
5976
5977 * buildsym.c (make_blockvector): Add comment.
5978
5979 2012-06-04 Pedro Alves <palves@redhat.com>
5980
5981 * arch-utils.c (default_gdb_signal_from_target): Delete.
5982 * arch-utils.h (default_gdb_signal_from_target): Delete.
5983 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5984 gdbarch_gdb_signal_from_target_p.
5985 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5986 predicate).
5987 * gdbarch.h: Regenerate.
5988 * gdbarch.c: Regenerate.
5989
5990 2012-06-04 Pedro Alves <palves@redhat.com>
5991
5992 * gdbarch.sh (gdb_signal_from_target): Mention that the
5993 implementation of the method must be host independent.
5994 * gdbarch.h: Regenerate.
5995
5996 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5997
5998 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5999 parameters.
6000 (target_read_memory_bfd): New function.
6001 (symbol_file_add_from_memory): Use it.
6002
6003 2012-06-03 Doug Evans <dje@google.com>
6004
6005 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6006 of primary symtab.
6007 (basic_lookup_transparent_type): Ditto.
6008
6009 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6010 (ALL_PRIMARY_SYMTABS): Use it.
6011 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6012 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6013 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6014 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6015 (basic_lookup_transparent_type): Ditto.
6016
6017 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6018
6019 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6020 it to optimize resolution of demangled name.
6021
6022 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6023
6024 * configure.ac (development): Define new variable.
6025 Call AC_CHECK_LIB for mcheck if $development.
6026 (ERROR_ON_WARNING): Enable it by default only if $development.
6027 * config.in: Regenerate.
6028 * configure: Regenerate.
6029
6030 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6031
6032 * target.c (target_read_memory): Make LEN argument as size_t.
6033 * target.h (target_read_memory): Likewise.
6034
6035 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6036
6037 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6038
6039 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6040
6041 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6042 BookE interface for PowerPC server processors if not available
6043 in the Linux Kernel.
6044
6045 2012-05-31 Keith Seitz <keiths@redhat.com>
6046
6047 * linespec.c (decode_objc): Add cleanup to free
6048 INFO.FILE_SYMTABS.
6049 (find_linespec_symbols): Add cleanup to free CLASSES.
6050 * symfile.c (find_separate_debug_file_by_debuglink): Add
6051 cleanup to free DEBUGLINK.
6052 * ui-out.c (clear_header_list): No need to check if
6053 HEADER_NEXT.COLHDR is NULL.
6054 Free HEADER_NEXT.COL_NAME.
6055
6056 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6057
6058 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6059 warning.
6060
6061 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6062
6063 * configure.host (gdb_host_cpu): Handle tilegx*.
6064 (gdb_host): Handle tilegx-*-linux*.
6065 * tilegx-linux-nat.c: New file.
6066 * config/tilegx/linux.mh: New file.
6067
6068 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6069
6070 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6071 tilegx-linux-tdep.o.
6072 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6073 tilegx-linux-tdep.c.
6074 * configure.tgt: Handle tilegx-*-linux*.
6075 * tilegx-tdep.h: New file.
6076 * tilegx-tdep.c: New file.
6077 * tilegx-linux-tdep.c: New file.
6078 * regformats/reg-tilegx.dat: New file.
6079
6080 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6081
6082 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6083 accounting of hw watchpoints on ppc.
6084
6085 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6086
6087 * source.c (openp): Expand tilde in path entries.
6088
6089 2012-05-29 Doug Evans <dje@google.com>
6090
6091 * buildsym.c (block_compar): Fix comment.
6092 (end_symtab): Fix and clarify some comments.
6093
6094 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6095 cleanup_undefined_types.
6096 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6097 All callers updated.
6098
6099 2012-05-29 Tom Tromey <tromey@redhat.com>
6100
6101 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6102 fails.
6103 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6104 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6105 fails.
6106 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6107 fails.
6108
6109 2012-05-29 Tristan Gingold <gingold@adacore.com>
6110
6111 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6112 (struct darwin_info): ... New struct.
6113 (solib_darwin_pspace_data): New variable.
6114 (darwin_pspace_data_cleanup): New function.
6115 (get_darwin_info): Likewise.
6116 (darwin_dyld_version_ok, darwin_load_image_infos)
6117 (darwin_solib_get_all_image_info_addr_at_init)
6118 (darwin_solib_read_all_image_info_addr): Add info argument.
6119 Adjust code.
6120 (darwin_current_sos): Use per pspace structure.
6121 (darwin_solib_create_inferior_hook): Likewise.
6122 (darwin_clear_solib): Likewise.
6123 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6124
6125 2012-05-28 Pedro Alves <palves@redhat.com>
6126
6127 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6128 block that uses them. Clear ecss before handling each event.
6129
6130 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6131
6132 * solib-svr4.c (svr4_current_sos): New comment on
6133 svr4_current_sos_via_xfer_libraries fall back.
6134
6135 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6136
6137 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6138 it as a fallback for TYPE_IS_OPAQUE.
6139 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6140 symbols for lookup_symbol.
6141
6142 2012-05-24 John Steele Scott <toojays@toojays.net>
6143
6144 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6145 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6146 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6147 (check_producer): ... this new function, which also checks for ICC
6148 and caches the result.
6149 (producer_is_icc): New function.
6150 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6151 producer was ICC.
6152
6153 2012-05-24 Pedro Alves <palves@redhat.com>
6154
6155 PR gdb/7205
6156
6157 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6158 (default_gdb_signal_to_target): ... this. Add comment.
6159 (default_gdb_signal_from_host): Rename to ...
6160 (default_gdb_signal_from_target): ... this. Add comment.
6161 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6162 (default_gdb_signal_to_target): ... this.
6163 (default_gdb_signal_from_host): Rename to ...
6164 (default_gdb_signal_from_target): ... this.
6165 * corelow.c (core_open): Adjust to naming change. Replace comment.
6166 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6167 (gdb_signal_from_target): ... this. Adjust to
6168 default_gdb_signal_from_host naming change. Extend comment.
6169 (gdb_signal_to_host): Rename to ...
6170 (gdb_signal_to_target): ... this. Adjust to
6171 default_gdb_signal_to_host naming change.
6172 * gdbarch.h, gdbarch.c: Renegerate.
6173
6174 2012-05-24 Pedro Alves <palves@redhat.com>
6175
6176 PR gdb/7205
6177
6178 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6179
6180 2012-05-24 Pedro Alves <palves@redhat.com>
6181
6182 PR gdb/7205
6183
6184 Replace target_signal with gdb_signal throughout.
6185
6186 2012-05-24 Pedro Alves <palves@redhat.com>
6187
6188 PR tui/14159
6189
6190 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6191 string, instead of reusing the va_list argument.
6192
6193 2012-05-24 Tom Tromey <tromey@redhat.com>
6194
6195 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6196 Remove.
6197
6198 2012-05-23 Doug Evans <dje@google.com>
6199
6200 * symtab.c (search_symbols): Formatting fixes.
6201 (print_symbol_info): Formatting fixes.
6202
6203 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6204 int64_t change to leb128 API.
6205 (read_encoded_value, decode_frame_entry_1): Ditto.
6206 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6207 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6208 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6209 (execute_stack_op): Ditto.
6210 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6211 (safe_read_uleb128, safe_read_sleb128): Ditto.
6212 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6213 (dwarf2_compile_expr_to_ax): Ditto.
6214 (locexpr_describe_location_piece): Ditto.
6215 (disassemble_dwarf_expression): Ditto.
6216 (locexpr_describe_location_1): Ditto.
6217
6218 2012-05-23 Stan Shebs <stan@codesourcery.com>
6219 Kwok Cheung Yeung <kcy@codesourcery.com>
6220
6221 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6222 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6223 (mi-cmd-info.o): New rule.
6224 * osdata.h (info_osdata_command): New declaration.
6225 * osdata.c (info_osdata_command): Change to non-static.
6226 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6227 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6228 * mi/mi-cmd-info.c: New file.
6229
6230 2012-05-23 Doug Evans <dje@google.com>
6231
6232 * symtab.c (search_symbols): Pass NULL for file_matcher to
6233 expand_symtabs_matching if there are no files to match.
6234
6235 * gdbtypes.c (lookup_typename): Simplify.
6236
6237 2012-05-23 Pedro Alves <palves@redhat.com>
6238
6239 * arch-utils.h (default_target_signal_to_host): Delete.
6240 * arch-utils.c (default_target_signal_to_host): Delete.
6241 * gdbarch.sh (target_signal_to_host): Remove.
6242 * gdbarch.h, gdbarch.c: Regenerate.
6243
6244 2012-05-22 Doug Evans <dje@google.com>
6245
6246 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6247 "const gdb_byte *".
6248 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6249 (execute_cfa_program): Update to match API of leb128 functions.
6250 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6251 "const gdb_byte *".
6252 (read_unsigned_leb128, read_signed_leb128): Delete.
6253 (read_initial_length): Change type of buf argument to
6254 "const gdb_byte *".
6255 (read_encoded_value): Update to match API of leb128 functions.
6256 (decode_frame_entry): Change result to "const gdb_byte *", and
6257 similarly for "start" parameter.
6258 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6259 (dwarf2_build_frame_info): Change local frame_ptr to
6260 "const gdb_byte *".
6261 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6262 read_uleb128, read_sleb128. All callers updated.
6263 (safe_skip_leb128): New function.
6264 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6265 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6266 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6267 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6268 read_uleb128, read_sleb128.
6269 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6270 (execute_stack_op): Update to match API of leb128 functions.
6271 * dwarf2expr.h: #include "leb128.h".
6272 (read_uleb128, read_sleb128): Delete.
6273 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6274 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6275 * dwarf2loc.c (debug_loc_kind): New enum.
6276 (decode_debug_loc_addresses): New function.
6277 (decode_debug_loc_dwo_addresses): New function.
6278 (dwarf2_find_location_expression): Rewrite.
6279 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6280 (locexpr_describe_location_piece): Ditto.
6281 (disassemble_dwarf_expression): Ditto.
6282 (locexpr_describe_location_1): Ditto.
6283 (loclist_describe_location): Rewrite.
6284 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6285 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6286 (dwarf2_section_buffer_overflow_complaint): Renamed from
6287 dwarf2_macros_too_long_complaint. All callers updated.
6288 (skip_leb128): Delete.
6289 (init_cu_die_reader): Initialize reader->buffer_end.
6290 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6291 (skip_form_bytes): New arg buffer_end. All callers updated.
6292 Replace call to skip_leb128 with gdb_skip_leb128.
6293 (skip_unknown_opcode): New arg mac_end. All callers updated.
6294 (fill_in_loclist_baton): Initialize baton->from_dwo.
6295
6296 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6297
6298 * mips-linux-nat.c (mips_linux_read_description): Use a more
6299 verbose error message.
6300
6301 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6302
6303 * NEWS: Add MIPS/Linux DSP support.
6304 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6305 (SIGCONTEXT_DSPCTL): New macro.
6306 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6307 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6308 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6309 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6310 (N64_SIGCONTEXT_HI3): Likewise.
6311 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6312 (N64_SIGCONTEXT_LO3): Likewise.
6313 (N64_SIGCONTEXT_DSPCTL): Likewise.
6314 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6315 (mips_linux_o32_sigframe_init): Handle DSP registers.
6316 (mips_linux_n32n64_sigframe_init): Likewise.
6317
6318 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6319
6320 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6321 call to abort.
6322
6323 2012-05-22 Pedro Alves <palves@redhat.com>
6324
6325 * target.h (store_waitstatus): Move declaration ...
6326 * inf-child.h (store_waitstatus): ... here.
6327 * target.c: Move inclusion of gdb_wait.h, and ...
6328 (store_waitstatus): ... this ...
6329 * inf-child.c: ... here.
6330 * linux-nat.c: Include inf-child.h.
6331 * rs6000-nat.c: Include inf-child.h.
6332 * spu-linux-nat.c: Include inf-child.h.
6333
6334 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6335
6336 * tracepoint.c (start_tracing): Add missing i18n markup.
6337 (stop_tracing, set_trace_user): Ditto.
6338 (set_trace_notes, set_trace_stop_notes): Ditto.
6339
6340 2012-05-21 Tom Tromey <tromey@redhat.com>
6341
6342 PR c++/7173:
6343 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6344 types.
6345 * value.h (value_cast_pointers): Update.
6346 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6347 (value_cast): Update.
6348 (update_search_result): New function.
6349 (do_search_struct_field): New, from search_struct_field. Check
6350 for ambiguous results.
6351 (search_struct_field): Rewrite.
6352 * infcall.c (value_arg_coerce): Update.
6353 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6354 value_cast_pointers.
6355 * ada-lang.c (ada_convert_actual): Update.
6356
6357 2012-05-21 Tom Tromey <tromey@redhat.com>
6358
6359 * macroexp.c (macro_stringify): Terminate the string.
6360
6361 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6362
6363 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6364 Describe it.
6365 * auto-load.c (auto_load_expand_dir_vars): New function.
6366 (auto_load_safe_path_vec_update): Use it, remove the
6367 substitute_path_component call thanks to it.
6368 (auto_load_objfile_script): Remove the debug_file_directory processing.
6369 Use auto_load_expand_dir_vars, remove the substitute_path_component
6370 call thanks to it.
6371 * configure: Regenerate.
6372 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6373 path. Escape $ also for $debugdir.
6374 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6375 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6376
6377 2012-05-20 Doug Evans <dje@google.com>
6378
6379 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6380 before use. Check for symtab->includes == NULL before scanning it.
6381
6382 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6383
6384 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6385
6386 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6387
6388 * NEWS: Add microMIPS support and "set mips compression",
6389 "show mips compression" commands.
6390 * mips-tdep.h (mips_isa): New enum.
6391 (gdbarch_tdep): Add mips_isa.
6392 (mips_pc_is_mips16): Update prototype.
6393 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6394 * mips-tdep.c (mips_compression_mips16): New variable.
6395 (mips_compression_micromips): Likewise.
6396 (mips_compression_strings): Likewise.
6397 (mips_compression_string): Likewise.
6398 (is_mips16_isa, is_micromips_isa): New functions.
6399 (is_mips16_addr): Rename to...
6400 (is_compact_addr): ... this.
6401 (unmake_mips16_addr): Likewise to...
6402 (unmake_compact_addr): ... this.
6403 (make_mips16_addr): Likewise to...
6404 (make_compact_addr): ... this.
6405 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6406 functions.
6407 (mips_elf_make_msymbol_special): Handle microMIPS code.
6408 (msymbol_is_special): Rename to...
6409 (msymbol_is_mips16): ... this.
6410 (mips_make_symbol_special, mips_pc_is_mips16): Update
6411 accordingly.
6412 (msymbol_is_mips, msymbol_is_micromips): New functions.
6413 (mips16_to_32_reg): Rename to...
6414 (mips_reg3_to_reg): ... this.
6415 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6416 (mips_pc_isa): Likewise.
6417 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6418 code.
6419 (mips_fetch_instruction): Pass return status instead of printing
6420 an error message if requested. Handle microMIPS code. Bail out
6421 on an invalid ISA.
6422 (micromips_op): New macro.
6423 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6424 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6425 (b6s4_op, b7s3_reg): Likewise.
6426 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6427 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6428 (mips_insn_size): New function.
6429 (mips32_next_pc): Update mips_fetch_instruction call.
6430 (micromips_relative_offset7): New function.
6431 (micromips_relative_offset10): Likewise.
6432 (micromips_relative_offset16): Likewise.
6433 (micromips_pc_insn_size): Likewise.
6434 (micromips_bc1_pc): Likewise.
6435 (micromips_next_pc): Likewise.
6436 (unpack_mips16): Update mips_fetch_instruction call.
6437 (extended_mips16_next_pc): Update according to change to
6438 mips16_to_32_reg.
6439 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6440 code.
6441 (mips16_scan_prologue): Update mips_fetch_instruction call.
6442 Update according to change to mips16_to_32_reg.
6443 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6444 (mips_insn16_frame_base_sniffer): Likewise.
6445 (micromips_decode_imm9): New function.
6446 (micromips_scan_prologue): Likewise.
6447 (mips_micro_frame_cache): Likewise.
6448 (mips_micro_frame_this_id): Likewise.
6449 (mips_micro_frame_prev_register): Likewise.
6450 (mips_micro_frame_sniffer): Likewise.
6451 (mips_micro_frame_unwind): New variable.
6452 (mips_micro_frame_base_address): New function.
6453 (mips_micro_frame_base): New variable.
6454 (mips_micro_frame_base_sniffer): New function.
6455 (mips32_scan_prologue): Update mips_fetch_instruction call.
6456 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6457 rather than for MIPS16.
6458 (mips_insn32_frame_base_sniffer): Likewise.
6459 (mips_addr_bits_remove): Handle microMIPS code.
6460 (deal_with_atomic_sequence): Rename to...
6461 (mips_deal_with_atomic_sequence): ... this. Update the type
6462 of the variable used to hold an instruction. Remove the ISA bit
6463 check. Update mips_fetch_instruction call.
6464 (micromips_deal_with_atomic_sequence): New function.
6465 (deal_with_atomic_sequence): Likewise.
6466 (mips_about_to_return): Handle microMIPS code. Update
6467 mips_fetch_instruction call.
6468 (heuristic_proc_start): Check for the standard MIPS ISA rather
6469 than for MIPS16. Update mips_pc_is_mips16 and
6470 mips_fetch_instruction calls. Handle microMIPS code.
6471 (mips_push_dummy_code): Handle microMIPS code.
6472 (mips_eabi_push_dummy_call): Likewise.
6473 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6474 (mips_o64_push_dummy_call): Handle microMIPS code.
6475 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6476 (is_delayed): Remove function.
6477 (mips_single_step_through_delay): Replace the call to is_delayed
6478 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6479 Handle microMIPS code.
6480 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6481 microMIPS code.
6482 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6483 call.
6484 (micromips_in_function_epilogue_p): New function.
6485 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6486 call.
6487 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6488 Handle microMIPS.
6489 (gdb_print_insn_mips): Likewise.
6490 (mips_breakpoint_from_pc): Likewise.
6491 (mips_remote_breakpoint_from_pc): New function.
6492 (mips32_instruction_has_delay_slot): Simplify making use of the
6493 updated mips_fetch_instruction interface.
6494 (micromips_instruction_has_delay_slot): New function.
6495 (mips16_instruction_has_delay_slot): Simplify making use of the
6496 updated mips_fetch_instruction interface.
6497 (mips_adjust_breakpoint_address): Check for the standard MIPS
6498 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6499 calls. Handle microMIPS code.
6500 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6501 (mips_skip_trampoline_code): Handle microMIPS code.
6502 (global_mips_compression): New function.
6503 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6504 file flags. Register the microMIPS remote breakpoint handler
6505 and heuristic frame unwinder.
6506 (show_mips_compression): New function.
6507 (_initialize_mips_tdep): Add the "set mips compression" and
6508 "show mips compression" commands.
6509
6510 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6511
6512 * ada-lang.c:
6513 * ada-tasks.c:
6514 * ada-varobj.c:
6515 * amd64-darwin-tdep.c:
6516 * arm-symbian-tdep.c:
6517 * arm-tdep.c:
6518 * avr-tdep.c:
6519 * ax-gdb.c:
6520 * bfin-linux-tdep.c:
6521 * breakpoint.c:
6522 * c-valprint.c:
6523 * cli/cli-cmds.c:
6524 * coffread.c:
6525 * cp-support.c:
6526 * cris-tdep.c:
6527 * dwarf2-frame-tailcall.c:
6528 * dwarf2-frame.c:
6529 * dwarf2expr.c:
6530 * dwarf2loc.c:
6531 * dwarf2read.c:
6532 * elfread.c:
6533 * eval.c:
6534 * expprint.c:
6535 * f-valprint.c:
6536 * frv-tdep.c:
6537 * h8300-tdep.c:
6538 * hppa-hpux-tdep.c:
6539 * hppa-tdep.c:
6540 * hppanbsd-tdep.c:
6541 * i386-nto-tdep.c:
6542 * i386-tdep.c:
6543 * i387-tdep.c:
6544 * ia64-tdep.c:
6545 * jit.c:
6546 * linespec.c:
6547 * linux-tdep.c:
6548 * lm32-tdep.c:
6549 * m2-valprint.c:
6550 * m32c-tdep.c:
6551 * m32r-rom.c:
6552 * m32r-tdep.c:
6553 * m68k-tdep.c:
6554 * m68klinux-tdep.c:
6555 * mi/mi-main.c:
6556 * microblaze-tdep.c:
6557 * mips-linux-tdep.c:
6558 * mips-tdep.c:
6559 * mn10300-tdep.c:
6560 * p-valprint.c:
6561 * parse.c:
6562 * ppc-linux-tdep.c:
6563 * ppc-sysv-tdep.c:
6564 * printcmd.c:
6565 * python/py-finishbreakpoint.c:
6566 * python/py-inferior.c:
6567 * python/py-infthread.c:
6568 * python/py-type.c:
6569 * python/python.c:
6570 * remote-fileio.c:
6571 * remote-m32r-sdi.c:
6572 * remote-mips.c:
6573 * reverse.c:
6574 * rl78-tdep.c:
6575 * rs6000-aix-tdep.c:
6576 * rs6000-tdep.c:
6577 * s390-tdep.c:
6578 * score-tdep.c:
6579 * sh64-tdep.c:
6580 * skip.c:
6581 * solib-darwin.c:
6582 * solib-dsbt.c:
6583 * solib-frv.c:
6584 * sparc-tdep.c:
6585 * spu-multiarch.c:
6586 * spu-tdep.c:
6587 * stack.c:
6588 * symfile.c:
6589 * symtab.c:
6590 * tic6x-tdep.c:
6591 * tracepoint.c:
6592 * v850-tdep.c:
6593 * valarith.c:
6594 * valprint.c:
6595 * value.c:
6596 * xcoffread.c:
6597 * xtensa-tdep.c:
6598 * ada-lang.c:
6599 * ada-tasks.c:
6600 * ada-varobj.c:
6601 * amd64-darwin-tdep.c:
6602 * arm-symbian-tdep.c:
6603 * arm-tdep.c: Delete unused variables.
6604
6605 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6606
6607 Rename $ddir to $datadir.
6608 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6609 * auto-load.c (auto_load_safe_path_vec_update)
6610 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6611 * configure: Regenerate.
6612 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6613 Likewise. Remove the 'use $ddir' help string.
6614
6615 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6616
6617 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6618 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6619
6620 2012-05-18 Tom Tromey <tromey@redhat.com>
6621
6622 PR exp/13907:
6623 * valprint.h (struct value_print_options) <symbol_print>: New
6624 field.
6625 * valprint.c (user_print_options): Add default for symbol_print.
6626 (show_symbol_print): New function.
6627 (generic_val_print): Respect symbol_print.
6628 (_initialize_valprint): Add "print symbol" setting.
6629 * f-valprint.c (f_val_print): Respect symbol_print.
6630 * c-valprint.c (c_val_print): Respect symbol_print.
6631 * NEWS: Update.
6632 * printcmd.c (print_address_symbolic): Return int. Ignore some
6633 zero-size symbols.
6634 (print_address_demangle): Return int.
6635 * defs.h: (print_address_symbolic): Return int.
6636 * value.h (print_address_demangle): Return int.
6637
6638 2012-05-18 Tom Tromey <tromey@redhat.com>
6639
6640 * valprint.c (val_print_string): Don't print leading space.
6641 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6642 print space before string or vtbl.
6643 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6644 before string.
6645 * jv-valprint.c (java_value_print): Print space before string.
6646 * go-valprint.c (print_go_string): Print space before string.
6647 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6648 space before string.
6649 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6650 space before string or vtbl.
6651 * auxv.c (fprint_target_auxv): Print space after address.
6652
6653 2012-05-18 Tom Tromey <tromey@redhat.com>
6654
6655 * printcmd.c (print_address_demangle): Remove special case for 0.
6656
6657 2012-05-18 Tom Tromey <tromey@redhat.com>
6658
6659 * printcmd.c (print_address_demangle): Add 'opts' argument.
6660 * p-valprint.c (pascal_val_print): Update.
6661 * jv-valprint.c (java_val_print): Update.
6662 * value.h: Update.
6663 * valprint.c (generic_val_print): Update.
6664 (print_function_pointer_address): Add 'options' argument. Remove
6665 'addressprint' argument. Update.
6666 * m2-valprint.c (print_unpacked_pointer): Update.
6667 * gnu-v3-abi.c (print_one_vtable): Update.
6668 (gnuv3_print_method_ptr): Update.
6669 * f-valprint.c (f_val_print): Update.
6670 * cp-valprint.c (cp_print_value_fields): Update.
6671 * valprint.h (print_function_pointer_address): Update.
6672 * c-valprint.c (c_val_print): Update.
6673
6674 2012-05-18 Tom Tromey <tromey@redhat.com>
6675
6676 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6677 directly corresponding to the found psymtab.
6678 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6679 (dw2_find_pc_sect_symtab): Use it.
6680 * block.h (blockvector_contains_pc): Declare.
6681 * block.c (find_block_in_blockvector): New function.
6682 (blockvector_for_pc_sect): Use it.
6683 (blockvector_contains_pc): New function.
6684
6685 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6686
6687 * mips-tdep.h (mips_write_pc): New prototype.
6688 * mips-tdep.c (mips_write_pc): Make external, add description.
6689 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6690 add description.
6691
6692 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6693
6694 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6695 mips_regnum->pc.
6696 (mips_unwind_pc, mips_write_pc): Likewise.
6697 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6698 gdbarch_read_pc.
6699
6700 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6701
6702 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6703 proc_warn, proc_error, proc_get_status, proc_flags,
6704 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6705 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6706 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6707 proc_stop_process, proc_wait_for_stop, proc_run_process,
6708 proc_set_traced_signals, proc_set_traced_faults,
6709 proc_set_traced_sysentry, proc_set_traced_sysexit,
6710 proc_set_held_signals, proc_get_held_signals,
6711 proc_get_traced_signals, proc_get_traced_faults,
6712 proc_get_traced_sysentry, proc_get_traced_sysexit,
6713 proc_clear_current_fault, proc_set_current_signal,
6714 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6715 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6716 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6717 proc_get_current_thread, proc_get_current_thread,
6718 proc_get_current_thread, proc_update_threads,
6719 proc_update_threads, proc_update_threads, proc_update_threads,
6720 proc_iterate_over_threads, procfs_find_new_threads,
6721 procfs_pid_to_str): Make static. Remove advance declaration.
6722 (proc_cursig): Make static. Conditionalized defintion on
6723 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6724 (proc_syscall, proc_set_kill_on_last_close,
6725 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6726 proc_get_pending_signals, proc_get_signal_actions,
6727 proc_trace_signal, proc_ignore_signal): Delete.
6728
6729 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6730
6731 * coffread.c (cs_section_address): Passing proper argument for
6732 `bfd_get_section_vma'.
6733 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6734 `bfd_get_section_flags'.
6735 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6736 `bfd_get_section_vma'.
6737
6738 2012-05-16 Tom Tromey <tromey@redhat.com>
6739
6740 PR macros/13205:
6741 * macrotab.h: (macro_define_special): Declare.
6742 (enum macro_special_kind): New.
6743 (struct macro_definition) <argc, replacement>: Update comments.
6744 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6745 (macro_define_object_internal): New function.
6746 (macro_define_object): Use it.
6747 (macro_define_special): New function.
6748 (fixup_definition): New function.
6749 (macro_lookup_definition, foreach_macro_in_scope)
6750 (foreach_macro): Use fixup_definition.
6751 * macroexp.h (macro_stringify): Declare.
6752 * macroexp.c (free_buffer_return_text): New function.
6753 (stringify): Constify "arg".
6754 (macro_stringify): New function.
6755 * dwarf2read.c (macro_start_file): Call macro_define_special.
6756
6757 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6758 Maciej W. Rozycki <macro@mips.com>
6759
6760 * breakpoint.h (bp_location): Add related_address member.
6761 * inferior.h (get_return_value): Take a pointer to struct value
6762 instead of struct type for the function requested.
6763 * value.h (using_struct_return): Likewise.
6764 * gdbarch.sh (return_value): Take a pointer to struct value
6765 instead of struct type for the function requested.
6766 * breakpoint.c (set_breakpoint_location_function): Initialize
6767 related_address for bp_gnu_ifunc_resolver breakpoints.
6768 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6769 requested function's address to gdbarch_return_value.
6770 * eval.c (evaluate_subexp_standard): Pass the requested
6771 function's address to using_struct_return.
6772 * infcall.c (call_function_by_hand): Pass the requested
6773 function's address to using_struct_return and
6774 gdbarch_return_value.
6775 * infcmd.c (get_return_value): Take a pointer to struct value
6776 instead of struct type for the function requested.
6777 (print_return_value): Update accordingly.
6778 (finish_command_continuation): Likewise.
6779 * stack.c (return_command): Pass the requested function's
6780 address to using_struct_return and gdbarch_return_value.
6781 * value.c (using_struct_return): Take a pointer to struct value
6782 instead of struct type for the function requested. Pass the
6783 requested function's address to gdbarch_return_value.
6784 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6785 New function_value member, replacing function_type.
6786 (bpfinishpy_dealloc): Update accordingly.
6787 (bpfinishpy_pre_stop_hook): Likewise.
6788 (bpfinishpy_init): Likewise. Record the requested function's
6789 address.
6790 * mips-tdep.c (mips_fval_reg): New enum.
6791 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6792 words put in GP registers.
6793 (mips_o64_push_dummy_call): Update a comment.
6794 (mips_o32_return_value): Take a pointer to struct value instead
6795 of struct type for the function requested and use it to check if
6796 using the MIPS16 calling convention. Return the designated
6797 general purpose registers for floating-point values returned in
6798 MIPS16 mode.
6799 (mips_o64_return_value): Likewise.
6800 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6801 (ppc_sysv_abi_broken_return_value): Likewise.
6802 (ppc64_sysv_abi_return_value): Likewise.
6803 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6804 value instead of struct type for the function requested.
6805 * amd64-tdep.c (amd64_return_value): Likewise.
6806 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6807 * arm-tdep.c (arm_return_value): Likewise.
6808 * avr-tdep.c (avr_return_value): Likewise.
6809 * bfin-tdep.c (bfin_return_value): Likewise.
6810 * cris-tdep.c (cris_return_value): Likewise.
6811 * frv-tdep.c (frv_return_value): Likewise.
6812 * h8300-tdep.c (h8300_return_value): Likewise.
6813 (h8300h_return_value): Likewise.
6814 * hppa-tdep.c (hppa32_return_value): Likewise.
6815 (hppa64_return_value): Likewise.
6816 * i386-tdep.c (i386_return_value): Likewise.
6817 * ia64-tdep.c (ia64_return_value): Likewise.
6818 * iq2000-tdep.c (iq2000_return_value): Likewise.
6819 * lm32-tdep.c (lm32_return_value): Likewise.
6820 * m32c-tdep.c (m32c_return_value): Likewise.
6821 * m32r-tdep.c (m32r_return_value): Likewise.
6822 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6823 * m68k-tdep.c (m68k_return_value): Likewise.
6824 (m68k_svr4_return_value): Likewise.
6825 * m88k-tdep.c (m88k_return_value): Likewise.
6826 * mep-tdep.c (mep_return_value): Likewise.
6827 * microblaze-tdep.c (microblaze_return_value): Likewise.
6828 * mn10300-tdep.c (mn10300_return_value): Likewise.
6829 * moxie-tdep.c (moxie_return_value): Likewise.
6830 * mt-tdep.c (mt_return_value): Likewise.
6831 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6832 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6833 (ppc_sysv_abi_broken_return_value): Likewise.
6834 (ppc64_sysv_abi_return_value): Likewise.
6835 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6836 * rl78-tdep.c (rl78_return_value): Likewise.
6837 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6838 * rx-tdep.c (rx_return_value): Likewise.
6839 * s390-tdep.c (s390_return_value): Likewise.
6840 * score-tdep.c (score_return_value): Likewise.
6841 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6842 (sh_return_value_fpu): Likewise.
6843 * sh64-tdep.c (sh64_return_value): Likewise.
6844 * sparc-tdep.c (sparc32_return_value): Likewise.
6845 * sparc64-tdep.c (sparc64_return_value): Likewise.
6846 * spu-tdep.c (spu_return_value): Likewise.
6847 * tic6x-tdep.c (tic6x_return_value): Likewise.
6848 * v850-tdep.c (v850_return_value): Likewise.
6849 * vax-tdep.c (vax_return_value): Likewise.
6850 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6851 * xtensa-tdep.c (xtensa_return_value): Likewise.
6852 * gdbarch.c: Regenerate.
6853 * gdbarch.h: Regenerate.
6854
6855 2012-05-15 Tom Tromey <tromey@redhat.com>
6856
6857 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6858
6859 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6860
6861 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6862 of command in two error message.
6863
6864 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6865
6866 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6867
6868 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6869
6870 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6871
6872 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6873
6874 * NEWS (show auto-load scripts-directory): Add forgotten command.
6875
6876 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6877
6878 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6879 parameters.
6880
6881 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6882
6883 * amd64-tdep.c: Include features/i386/x32.c and
6884 features/i386/x32-avx.c.
6885 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6886 initialize_tdesc_x32_avx.
6887
6888 2012-05-14 Stan Shebs <stan@codesourcery.com>
6889
6890 Add dynamic printf.
6891 * breakpoint.h (enum bptype): New type bp_dprintf.
6892 (struct breakpoint): New field extra_string.
6893 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6894 (create_breakpoint): Add extra_string arg.
6895 * breakpoint.c (dprintf_breakpoint_ops): New.
6896 (is_breakpoint): Add bp_dprintf.
6897 (bpstat_what): Add dprintf case.
6898 (bptype_string): Ditto.
6899 (print_one_breakpoint_location): Ditto.
6900 (init_bp_location): Ditto.
6901 (bkpt_print_mention): Ditto.
6902 (dprintf_style_enums): New array.
6903 (dprintf_style): New global.
6904 (dprintf_function): New global.
6905 (dprintf_channel): New global.
6906 (update_dprintf_command_list): New function.
6907 (update_dprintf_commands): New function.
6908 (init_breakpoint_sal): Add extra_string argument, handle it.
6909 (create_breakpoint_sal): Add extra_string argument.
6910 (create_breakpoints_sal): Add extra_string argument, update callers.
6911 (find_condition_and_thread): Add extra argument.
6912 (create_breakpoint): Add extra_string argument, record it.
6913 (dprintf_command): New function.
6914 (break_command_1): Add arg to create_breakpoint call.
6915 (handle_gnu_v3_exceptions): Ditto.
6916 (trace_command): Ditto.
6917 (ftrace_command): Ditto.
6918 (strace_command): Ditto.
6919 (bkpt_print_mention): Add dprintf case.
6920 (create_breakpoint_sal_default): Add extra_string argument.
6921 (_initialize_breakpoint): Add new commands.
6922 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6923 * python/py-breakpoint.c (bppy_init): Ditto.
6924 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6925
6926 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6927
6928 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6929
6930 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6931
6932 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6933 unsigned long long.
6934
6935 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6936
6937 Add a new function gdb.find_pc_line to the Python API.
6938 * NEWS (Python Scripting): Add entry about the new function.
6939 * python/python.c (gdbpy_find_pc_line): New function which
6940 implements gdb.find_pc_line.
6941 (GdbMethods): Add entry for the new function.
6942
6943 2012-05-12 Pedro Alves <palves@redhat.com>
6944
6945 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6946 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6947
6948 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6949
6950 * inferior.c: Include completer.h
6951 (initialize_inferiors): Set completer of add-inferior to
6952 filename_completer.
6953
6954 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6955
6956 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6957 gdbarch_ptr_bit for x32 core dump.
6958
6959 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6960
6961 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6962 and features/i386/x32-avx-linux.c.
6963
6964 2012-05-11 Stan Shebs <stan@codesourcery.com>
6965 Kwok Cheung Yeung <kcy@codesourcery.com>
6966
6967 * NEWS: Describe new info os commands.
6968 * common/linux-osdata.c (PID_T, TIME_T): Define.
6969 (MAX_PID_T_STRLEN): New.
6970 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6971 MAX_PID_T_STRLEN.
6972 (command_from_pid): Add comment. Change to use PID_T.
6973 (commandline_from_pid): Change to use PID_T.
6974 (user_from_pid): Add comment.
6975 (get_process_owner): Add comment. Change to use PID_T and
6976 MAX_PID_T_STRLEN.
6977 (get_number_of_cpu_cores): Add comment.
6978 (get_cores_used_by_process): Add comment. Change to use PID_T and
6979 MAX_PID_T_STRLEN.
6980 (linux_xfer_osdata_processes): Change to use PID_T and
6981 MAX_PID_T_STRLEN.
6982 (compare_processes): New function.
6983 (linux_xfer_osdata_processgroups): New function.
6984 (linux_xfer_osdata_threads): Change to use PID_T.
6985 (linux_xfer_osdata_fds): New function.
6986 (format_socket_state, print_sockets): New functions.
6987 (union socket_addr): New union.
6988 (linux_xfer_osdata_isockets): New function.
6989 (time_from_time_t, group_from_gid): New functions.
6990 (linux_xfer_osdata_shm): New function.
6991 (linux_xfer_osdata_sem): New function.
6992 (linux_xfer_osdata_msg): New function.
6993 (linux_xfer_osdata_modules): New function.
6994 (osdata_table): Add new entries.
6995 * common/buffer.c (buffer_xml_printf): Add support for long and
6996 long long format specifiers.
6997
6998 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6999
7000 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7001 (tdesc_x32_avx_linux): Likewise.
7002
7003 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7004
7005 Implement multi-component --with-auto-load-dir.
7006 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7007 entries.
7008 (--with-auto-load-safe-path): Update the default value description.
7009 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7010 New.
7011 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7012 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7013 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7014 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7015 "set auto-load scripts-directory".
7016 * config.in: Regenerate.
7017 * configure: Regenerate.
7018 * configure.ac (--with-auto-load-dir): New configure option.
7019 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7020
7021 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7022
7023 Provide $ddir substitution for --with-auto-load-safe-path.
7024 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7025 entries.
7026 * auto-load.c: Include observer.h.
7027 (auto_load_safe_path_vec_update): Call substitute_path_component for
7028 each component. New variable ddir_subst.
7029 (auto_load_gdb_datadir_changed): New function.
7030 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7031 AUTO_LOAD_SAFE_PATH. New comment.
7032 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7033 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7034 * config.in: Regenerate.
7035 * configure: Regenerate.
7036 * configure.ac (--auto-load-safe-path): Rename
7037 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7038 GDB_DATADIR/auto-load.
7039 * defs.h (substitute_path_component): New declaration.
7040 * top.c: Include observer.h.
7041 (set_gdb_datadir): New function.
7042 (init_main): Install it for "set data-directory".
7043 * utils.c (substitute_path_component): New function.
7044
7045 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7046
7047 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7048 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7049 DEBUG_FILE_DIRECTORY. Handle multiple components of
7050 DEBUG_FILE_DIRECTORY.
7051
7052 2012-05-10 Tom Tromey <tromey@redhat.com>
7053
7054 * dwarf2read.c (recursively_write_psymbols): New function.
7055 (write_psymtabs_to_index): Use it.
7056
7057 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7058 field.
7059 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7060 (load_partial_comp_unit): Update.
7061 (queue_comp_unit): Add argument 'pretend_language'.
7062 (process_queue): Update.
7063 (psymtab_to_symtab_1): Skip dependencies that have a user.
7064 (load_partial_comp_unit_reader): Give meaning to the 'data'
7065 argument.
7066 (load_full_comp_unit): Add 'pretend_language' argument.
7067 (process_full_comp_unit): Add 'pretend_language' argument. Set
7068 language on CU.
7069 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7070 Update.
7071 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7072 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7073 Update.
7074 (prepare_one_comp_unit): Add 'pretend_language' argument.
7075
7076 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7077 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7078 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7079 (dw2_do_instantiate_symtab): Check whether symtab was read in
7080 before queueing.
7081 (dw2_instantiate_symtab): Add assertion. Call
7082 process_cu_includes.
7083 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7084 (partial_symtab_p): New typedef.
7085 (set_partial_user): New function.
7086 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7087 (scan_partial_symbols): Add imported CU to imported_symtabs.
7088 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7089 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7090 (get_symtab, recursively_compute_inclusions)
7091 (compute_symtab_includes, process_cu_includes)
7092 (process_imported_unit_die): New functions.
7093 (process_die) <DW_TAG_imported_unit>: New case.
7094 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7095
7096 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7097 comment.
7098 (struct partial_die_info) <locdesc>: Remove.
7099 <d>: New field.
7100 (process_psymtab_comp_unit): Add 'read_partial' argument.
7101 Update.
7102 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7103 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7104 (add_partial_symbol): Update.
7105 (process_die): Handle DW_TAG_partial_unit.
7106 (read_file_scope): Update comment.
7107 (load_partial_dies): Handle DW_TAG_imported_unit.
7108 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7109 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7110
7111 2012-05-10 Tom Tromey <tromey@redhat.com>
7112
7113 * cc-with-dwz.sh: New file.
7114
7115 2012-05-10 Tom Tromey <tromey@redhat.com>
7116
7117 * symtab.h (struct symtab) <includes, user>: New fields.
7118 * block.h (struct block_iterator) <d, idx, which>: New fields.
7119 * block.c (initialize_block_iterator, find_iterator_symtab)
7120 (block_iterator_step, block_iter_name_step)
7121 (block_iter_match_step): New functions.
7122 (block_iterator_first, block_iterator_next)
7123 (block_iter_name_first, block_iter_name_next)
7124 (block_iter_match_first, block_iter_match_next): Rewrite.
7125 (get_block_symtab): New function.
7126
7127 2012-05-10 Tom Tromey <tromey@redhat.com>
7128
7129 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7130 set_block_symtab.
7131 * jit.c (finalize_symtab): Use allocate_global_block,
7132 set_block_symtab.
7133 * buildsym.c (finish_block_internal): New function, from old
7134 finish_block.
7135 (finish_block): Rewrite.
7136 (end_symtab): Use finish_block_internal, set_block_symtab.
7137 * block.h (struct global_block): New.
7138 (allocate_global_block, set_block_symtab): Declare.
7139 * block.c (allocate_global_block, set_block_symtab): New
7140 functions.
7141
7142 2012-05-10 Tom Tromey <tromey@redhat.com>
7143
7144 * psymtab.c (partial_map_expand_apply): Add assertion.
7145 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7146 (psymtab_to_symtab): Find unshared psymtab.
7147 (dump_psymtab): Print including psymtabs.
7148 (recursively_search_psymtabs): New function.
7149 (expand_symtabs_matching_via_partial): Use it.
7150 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7151 fields.
7152 (enum psymtab_search_status): New.
7153
7154 2012-05-10 Tom Tromey <tromey@redhat.com>
7155
7156 * tracepoint.c (scope_info): Update.
7157 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7158 (find_pc_sect_symtab, search_symbols)
7159 (default_make_symbol_completion_list_break_on)
7160 (make_file_symbol_completion_list): Update.
7161 * symmisc.c (dump_symtab_1): Update.
7162 * stack.c (print_frame_args, iterate_over_block_locals)
7163 (print_frame_labels, iterate_over_block_arg_vars): Update.
7164 * python/py-block.c (block_object) <dict>: Remove.
7165 <block>: New field.
7166 <iter>: Change type.
7167 (blpy_iter): Update.
7168 (blpy_block_syms_iternext): Update.
7169 * psymtab.c (map_block): Use block iterators.
7170 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7171 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7172 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7173 * infrun.c (check_exception_resume): Update.
7174 * cp-support.c (make_symbol_overload_list_block): Update.
7175 * coffread.c (patch_opaque_types): Update.
7176 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7177 * block.h (struct block_iterator): New.
7178 (block_iterator_first, block_iterator_next, block_iter_name_first)
7179 (block_iter_name_next, block_iter_match_first)
7180 (block_iter_match_next): Declare.
7181 (ALL_BLOCK_SYMBOLS): Redefine.
7182 * block.c (block_iterator_first, block_iterator_next)
7183 (block_iter_name_first, block_iter_name_next)
7184 (block_iter_match_first, block_iter_match_next): New functions.
7185 * ada-lang.c (ada_add_block_symbols)
7186 (ada_make_symbol_completion_list): Use block iterator.
7187
7188 2012-05-10 Tom Tromey <tromey@redhat.com>
7189
7190 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7191 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7192 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7193 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7194 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7195 Update.
7196
7197 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7198
7199 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7200 print-file-var-lib2.c, print-file-var-main.c and
7201 print-file-var.exp (located in gdb/testsuite/gdb.base).
7202
7203 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7204
7205 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7206 try locating the symbol in the symbol's own objfile first, before
7207 extending the search to all objfiles.
7208 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7209 out of lookup_symbol_aux_symtabs.
7210 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7211 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7212 Do not search EXCLUDE_OBJFILE.
7213 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7214 (lookup_symbol_global): Search for matches in the block's objfile
7215 first, before searching all other objfiles.
7216
7217 2012-05-10 Tristan Gingold <gingold@adacore.com>
7218
7219 * printcmd.c (set_command): Add pre/post inc/dec.
7220
7221 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7222
7223 * gdb.1: Document -ex option.
7224
7225 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7226
7227 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7228 * inferior.h (AT_SYMBOL): Delete.
7229
7230 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7231
7232 * mips-tdep.c (mips_push_dummy_code): New function.
7233 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7234 ON_STACK and install mips_push_dummy_code as our gdbarch
7235 push_dummy_code routine.
7236
7237 2012-05-09 Pedro Alves <palves@redhat.com>
7238
7239 * target.c (set_maintenance_target_async_permitted): Rename to ...
7240 (set_target_async_command): ... this.
7241 (show_maintenance_target_async_permitted): Rename to ...
7242 (show_target_async_command): ... this.
7243 (initialize_targets): Adjust.
7244
7245 2012-05-08 Doug Evans <dje@google.com>
7246
7247 * go-exp.y (classify_name): Add missing assignment of fields of
7248 yylval.ssym.
7249
7250 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7251
7252 Display the ">" prompt in interactive mode while reading canned
7253 commands, even when the current interpreter is MI.
7254
7255 * interps.c (interp_set_temp): New function.
7256
7257 * interps.h (interp_set_temp): Add prototype.
7258
7259 * cli/cli-script.c (restore_interp): New cleanup function.
7260 (read_command_lines): Temporarily override the current interpreter
7261 with CLI and arrange for restoring the original one.
7262
7263 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7264
7265 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7266
7267 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7268
7269 * probe.c (parse_probes): Move conditional to check for
7270 debuginfo files from here...
7271 * stap-probe.c (stap_get_probes): ... to here.
7272
7273 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7274 H.J. Lu <hongjiu.lu@intel.com>
7275
7276 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7277 `movl %esp, %ebp' for the X32 ABI.
7278
7279 2012-05-07 Tom Tromey <tromey@redhat.com>
7280
7281 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7282 get_DW_TAG_name.
7283 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7284 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7285 (dwarf_stack_op_name): Remove.
7286 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7287 (decode_locdesc): Use get_DW_OP_name.
7288 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7289 (dwarf2_compile_expr_to_ax): Likewise.
7290 (disassemble_dwarf_expression): Likewise.
7291 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7292
7293 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7294
7295 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7296 (sh_linux_sigtramp_cache): New function.
7297 (sh_linux_sigreturn_init): New function.
7298 (sh_linux_rt_sigreturn_init): New function.
7299 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7300 patterns.
7301 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7302 syscall codes.
7303 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7304 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7305 (sh_linux_init_abi): Add init calls to register new tramp_frame
7306 definitions under 32-bit SH, update comments.
7307
7308 2012-05-07 Pedro Alves <palves@redhat.com>
7309
7310 PR gdb/10952
7311
7312 * amd64-linux-tdep.c: Include glibc-tdep.h.
7313 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7314 gdbarch_skip_solib_resolver callback.
7315
7316 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7317
7318 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7319 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7320 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7321 (add_auto_load_safe_path): Change the error message.
7322 (_initialize_auto_load): Change the "safe-path" help text.
7323 * configure: Regenerate
7324 * configure.ac (--without-auto-load-safe-path): Set
7325 WITH_AUTO_LOAD_SAFE_PATH to /.
7326
7327 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7328
7329 * stap-probe.h: Do not include unecessary `probe.h'.
7330
7331 2012-05-05 Alan Modra <amodra@gmail.com>
7332
7333 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7334 bfd_und_section_ptr.
7335 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7336 and bfd_com_section_ptr.
7337
7338 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7339
7340 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7341
7342 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7343
7344 * windows-nat.h (segment_register_p_ftype): New typedef.
7345 (windows_set_segment_register_p): Add declaration.
7346 * windows-nat.c (segment_register_p): New static global.
7347 (windows_set_segment_register_p): New function.
7348 (do_windows_fetch_inferior_registers): Add special handling
7349 for segment registers.
7350 * amd64-windows-nat.c: #include "amd64-tdep.h".
7351 (amd64_windows_segment_register_p): New function.
7352 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7353 * i386-windows-nat.c: #include "i386-tdep.h".
7354 (i386_windows_segment_register_p): New function.
7355 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7356
7357 2012-05-04 Tristan Gingold <gingold@adacore.com>
7358
7359 * printcmd.c (set_command): Emit a warning if the expression is not
7360 an assignment.
7361
7362 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7363
7364 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7365 Make static.
7366
7367 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7368
7369 * stap-probe.c (stap_is_operator): Change declaration.
7370 (stap_get_opcode): Change return value.
7371 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7372 `stap_parse_argument_1'.
7373
7374 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7375
7376 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7377 debug log.
7378
7379 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7380
7381 Add two new methods global_block and static_block to gdb.Symtab
7382 objects.
7383 * NEWS (Python scripting): Add entry about the new methods.
7384 * python/py-symtab.c (stpy_global_block): New function which
7385 implements the gdb.Symtab.global_block() method.
7386 (stpy_static_block): New function which implements the
7387 gdb.Symtab.static_block() method.
7388 (symtab_object_methods): Add entries for the two new methods.
7389
7390 2012-05-03 Doug Evans <dje@google.com>
7391
7392 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7393 files.
7394
7395 2012-05-03 Yao Qi <yao@codesourcery.com>
7396
7397 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7398 space.
7399 (i386_process_record): Ditto.
7400
7401 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7402
7403 * infcall.c (unwind_on_signal_p): Make static.
7404
7405 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7406
7407 * sol-thread.c (solaris_pid_to_str): Make static.
7408 (_initialize_sol_thread): Add prototype.
7409
7410 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7411
7412 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7413
7414 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7415
7416 * MAINTAINERS: Remove myself.
7417
7418 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7419
7420 Fix --without-auto-load-safe-path for MS-Windows host platform.
7421 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7422
7423 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7424
7425 * gdb_curses.h: Undefine KEY_EVENT before including curses
7426 headers. Move "#undef MOUSE_MOVED" before any curses header
7427 inclusion.
7428
7429 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7430
7431 * features/i386/i386-mmx-linux.c: Regenerate.
7432 * features/rs6000/powerpc-32.c: Likewise.
7433 * features/rs6000/powerpc-32l.c: Likewise.
7434 * features/rs6000/powerpc-403.c: Likewise.
7435 * features/rs6000/powerpc-403gc.c: Likewise.
7436 * features/rs6000/powerpc-405.c: Likewise.
7437 * features/rs6000/powerpc-505.c: Likewise.
7438 * features/rs6000/powerpc-601.c: Likewise.
7439 * features/rs6000/powerpc-602.c: Likewise.
7440 * features/rs6000/powerpc-603.c: Likewise.
7441 * features/rs6000/powerpc-604.c: Likewise.
7442 * features/rs6000/powerpc-64.c: Likewise.
7443 * features/rs6000/powerpc-64l.c: Likewise.
7444 * features/rs6000/powerpc-750.c: Likewise.
7445 * features/rs6000/powerpc-860.c: Likewise.
7446 * features/rs6000/powerpc-e500.c: Likewise.
7447 * features/rs6000/powerpc-e500l.c: Likewise.
7448 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7449 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7450 * features/rs6000/rs6000.c: Likewise.
7451
7452 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7453
7454 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7455 variable.
7456 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7457 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7458 (stap_parse_argument) <e>: Likewise.
7459 (handle_stap_probe) <byte_order>: Likewise.
7460
7461 2012-04-30 Doug Evans <dje@google.com>
7462
7463 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7464 init_and_read_dies_worker. All callers updated.
7465 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7466 replaced with init_cutu_and_read_dies.
7467 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7468 (find_partial_die): Remove FIXME. Don't free current CU.
7469
7470 2012-04-30 Sterling Augustine <saugustine@google.com>
7471
7472 * contrib: New directory.
7473 * contrib/test_pubnames_and_indexes.py: New file.
7474
7475 2012-04-30 Doug Evans <dje@google.com>
7476
7477 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7478 All callers updated.
7479 (init_cu_die_reader): Verify the section is non-empty.
7480 (dwarf_decode_line_header): Don't dereference section->asection
7481 until we know the section is present.
7482
7483 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7484
7485 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7486 probes.
7487
7488 2012-04-29 Yao Qi <yao@codesourcery.com>
7489
7490 * gdb-code-style.el: New hook gdb-markup-hook
7491 and gdb-comment-hook.
7492
7493 2012-04-28 Doug Evans <dje@google.com>
7494
7495 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7496 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7497 objfile->obfd.
7498 * symfile.h (dwarf2_debug_sections): New member addr.
7499 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7500 (ctx_no_get_addr_index): New function.
7501 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7502 (ctx_no_get_addr_index): Declare.
7503 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7504 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7505 (dwarf_expr_ctx_funcs): Update.
7506 (needs_get_addr_index): New function.
7507 (needs_frame_ctx_funcs): Update.
7508 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7509 * dwarf2read.c: #include "gdbcore.h".
7510 (dwarf2_per_objfile): New members addr, dwo_files.
7511 (dwarf2_elf_names): Add entry for addr.
7512 (struct dwo_section_names): New type.
7513 (dwo_section_names): New static global.
7514 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7515 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7516 old debug_types_section member updated to use this.
7517 Rename member debug_types_section to info_or_types_section,
7518 all uses updated.
7519 (signatured_type): Rename member type_offset to type_offset_in_tu,
7520 all uses updated. New member type_offset_in_section.
7521 (struct dwo_sections): New type.
7522 (struct dwo_unit): New type.
7523 (struct dwo_file): New type.
7524 (die_reader_specs): New member dwo_file.
7525 (dwarf2_locate_sections): Watch for .debug_addr.
7526 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7527 (dwarf2_read_section): Get bfd of section from bfd's asection,
7528 instead of objfile.
7529 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7530 (create_signatured_type_table_from_index): Initialize
7531 sig_type->info_or_types_section.
7532 (dw2_get_file_names): Statement lists for type units with DWO files
7533 live in the DWO file.
7534 (create_debug_types_hash_table): New function.
7535 (create_all_type_units): Rewrite.
7536 (init_cu_die_reader): New arg dwo_file, all callers updated.
7537 (init_and_read_dies_worker): Get section from
7538 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7539 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7540 continue reading the CU/TU from there.
7541 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7542 updated. Get section from this_cu->info_or_types_section.
7543 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7544 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7545 DW_FORM_GNU_str_index.
7546 (hash_dwo_file, eq_dwo_file): New functions.
7547 (allocate_dwo_file_hash_table): New function.
7548 (hash_dwo_unit, eq_dwo_unit): New functions.
7549 (allocate_dwo_unit_table): New function.
7550 (dwarf2_locate_dwo_sections): New function.
7551 (struct create_dwo_info_table_data): New type.
7552 (create_debug_info_hash_table_reader): New function.
7553 (create_debug_info_hash_table): New function.
7554 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7555 (lookup_dwo_file): New function.
7556 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7557 (free_dwo_file, free_dwo_file_cleanup): New functions.
7558 (free_dwo_file_from_slot, free_dwo_files): New functions.
7559 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7560 (dwarf2_record_block_ranges): Ditto.
7561 (read_partial_die): Ditto.
7562 (process_enumeration_scope): Update to use type_offset_in_section.
7563 (read_full_die_1): New function.
7564 (read_full_die): Rewrite.
7565 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7566 DW_FORM_GNU_str_index.
7567 (read_addr_index_1, read_addr_index): New functions.
7568 (read_addr_index_from_leb128): New function.
7569 (struct dwarf2_read_addr_index_data): New type.
7570 (dwarf2_read_addr_index_reader): New function.
7571 (dwarf2_read_addr_index): New function.
7572 (read_str_index): New function.
7573 (leb128_size): New function.
7574 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7575 If processing a type unit from a DWO file, get the line section
7576 from the DWO file.
7577 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7578 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7579 DW_FORM_GNU_str_index.
7580 (lookup_die_type): Check whether section offset of type's die is
7581 known before looking it up. Remove assert. Condition can
7582 legimately happen for inter-cu type references.
7583 (dwarf_attr_name): Handle Fission attributes.
7584 (dwarf_form_name): Handle Fission forms.
7585 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7586 DW_FORM_GNU_str_index.
7587 (follow_die_sig): Update to use type_offset_in_section.
7588 (decode_locdesc): New case DW_OP_GNU_addr_index.
7589 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7590 DW_FORM_GNU_str_index.
7591 (cu_debug_loc_section): New function.
7592 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7593 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7594 Free DWO files if present.
7595 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7596
7597 Refactor DIE reading.
7598 * dwarf2read.c (dwarf2_per_objfile): Replace members
7599 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7600 (die_reader_specs): New member "die_section". Temporarily make
7601 member "buffer" non-const, pending constifying all info_ptr uses.
7602 (die_reader_func_ftype): New typedef.
7603 (dw2_get_file_names_reader): New function.
7604 (dw2_get_file_names): Rewrite.
7605 (read_and_check_type_unit_head): Rename arg type_offset to
7606 type_offset_in_tu.
7607 (create_all_type_units): Improve debugging message.
7608 Improve dummy type unit check.
7609 (init_cu_die_reader): New arg "section". All callers updated.
7610 (init_and_read_dies_worker): New function.
7611 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7612 (init_cutu_and_read_dies_no_follow): New function.
7613 (init_cutu_and_read_dies_simple): New function.
7614 (process_psymtab_comp_unit_reader): New function.
7615 (process_psymtab_comp_unit): Delete args section,
7616 is_debug_types_section. Rewrite. All callers updated.
7617 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7618 All callers updated. Rewrite.
7619 (load_partial_comp_unit_reader): New function.
7620 (load_partial_comp_unit): Rewrite.
7621 (skip_children): New arg reader. Delete args buffer, cu.
7622 All callers updated.
7623 (skip_one_die): New arg reader. Delete args buffer, cu.
7624 All callers updated.
7625 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7626 All callers updated.
7627 (load_full_comp_unit_reader): New function.
7628 (load_full_comp_unit): Rewrite.
7629 (read_comp_unit): Delete.
7630 (read_die_and_children_1): Delete, contents moved ...
7631 (read_die_and_children): ... here.
7632 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7633 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7634 All callers updated.
7635 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7636 All callers updated.
7637 (find_partial_die): Rewrite load_all_dies support.
7638 (read_attribute_value): New arg reader. Delete args abfd, cu.
7639 All callers updated.
7640 (read_attribute): New arg reader. Delete args abfd, cu.
7641 All callers updated.
7642 (load_full_type_unit): Add assert.
7643 (read_signatured_type_reader): New function.
7644 (read_signatured_type): Rewrite.
7645 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7646 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7647 All callers updated. Set per_cu->cu = NULL after freeing it.
7648 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7649 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7650 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7651 (set_die_type): Update.
7652 (get_die_type_at_offset): Update.
7653 (read_file_scope): Call prepare_one_comp_unit.
7654 (read_type_unit_scope): Ditto.
7655 (prepare_one_comp_unit): Set producer if present.
7656
7657 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7658
7659 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7660 gettext function on `error'.
7661
7662 2012-04-27 Doug Evans <dje@google.com>
7663
7664 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7665 is empty.
7666
7667 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7668 Tom Tromey <tromey@redhat.com>
7669
7670 * breakpoint.c (struct breakpoint_objfile_data)
7671 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7672 <exception_probes>: New fields.
7673 (free_breakpoint_probes): New function.
7674 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7675 `_Unwind_DebugHook'.
7676 (create_exception_master_breakpoint): Likewise.
7677 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7678 * infrun.c: Including necessary header files for handling SystemTap
7679 probes.
7680 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7681 via SystemTap probes.
7682 (check_exception_resume): Remove `func' argument. Handle exception
7683 unwinding breakpoint set via a SystemTap probe.
7684 (insert_exception_resume_from_probe): New function.
7685
7686 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7687 Tom Tromey <tromey@redhat.com>
7688 Jan Kratochvil <jan.kratochvil@redhat.com>
7689
7690 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7691 (COMMON_OBS): Likewise.
7692 (HFILES_NO_SRCDIR): Add `probe'.
7693 * NEWS: Mention support for static and SystemTap probes.
7694 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7695 SystemTap probes' arguments parser.
7696 * arm-linux-tdep.c: Including headers needed to perform the parsing
7697 of SystemTap probes' arguments.
7698 (arm_stap_is_single_operand): New function.
7699 (arm_stap_parse_special_token): Likewise.
7700 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7701 probes' arguments parser.
7702 * ax-gdb.c (require_rvalue): Removing static declaration.
7703 (gen_expr): Likewise.
7704 * ax-gdb.h (gen_expr): Declaring function.
7705 (require_rvalue): Likewise.
7706 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7707 (bkpt_probe_breakpoint_ops): New variable.
7708 (momentary_breakpoint_from_master): Set the `probe' value.
7709 (add_location_to_breakpoint): Likewise.
7710 (break_command_1): Using proper breakpoint_ops according to the
7711 argument passed by the user in the command line.
7712 (bkpt_probe_insert_location): New function.
7713 (bkpt_probe_remove_location): Likewise.
7714 (bkpt_probe_create_sals_from_address): Likewise.
7715 (bkpt_probe_decode_linespec): Likewise.
7716 (tracepoint_probe_create_sals_from_address): Likewise.
7717 (tracepoint_probe_decode_linespec): Likewise.
7718 (tracepoint_probe_breakpoint_ops): New variable.
7719 (trace_command): Using proper breakpoint_ops according to the
7720 argument passed by the user in the command line.
7721 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7722 static probes on breakpoints and tracepoints.
7723 * breakpoint.h (struct bp_location) <probe>: New field.
7724 * cli-utils.c (skip_spaces_const): New function.
7725 (extract_arg): Likewise.
7726 * cli-utils.h (skip_spaces_const): Likewise.
7727 (extract_arg): Likewise.
7728 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7729 * configure.ac: Append `stap-probe.o' to be generated when ELF
7730 support is present.
7731 * configure: Regenerate.
7732 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7733 * elfread.c: Include `probe.h' and `arch-utils.h'.
7734 (probe_key): New variable.
7735 (elf_get_probes): New function.
7736 (elf_get_probe_argument_count): Likewise.
7737 (elf_evaluate_probe_argument): Likewise.
7738 (elf_compile_to_ax): Likewise.
7739 (elf_symfile_relocate_probe): Likewise.
7740 (stap_probe_key_free): Likewise.
7741 (elf_probe_fns): New variable.
7742 (elf_sym_fns): Add `sym_probe_fns' value.
7743 (elf_sym_fns_lazy_psyms): Likewise.
7744 (elf_sym_fns_gdb_index): Likewise.
7745 (_initialize_elfread): Initialize objfile cache for static
7746 probes.
7747 * gdb_vecs.h (struct probe): New forward declaration.
7748 (probe_p): New VEC declaration.
7749 * gdbarch.c: Regenerate.
7750 * gdbarch.h: Regenerate.
7751 * gdbarch.sh (stap_integer_prefix): New variable.
7752 (stap_integer_suffix): Likewise.
7753 (stap_register_prefix): Likewise.
7754 (stap_register_suffix): Likewise.
7755 (stap_register_indirection_prefix): Likewise.
7756 (stap_register_indirection_suffix): Likewise.
7757 (stap_gdb_register_prefix): Likewise.
7758 (stap_gdb_register_suffix): Likewise.
7759 (stap_is_single_operand): New function.
7760 (stap_parse_special_token): Likewise.
7761 (struct stap_parse_info): Forward declaration.
7762 * i386-tdep.c: Including headers needed to perform the parsing
7763 of SystemTap probes' arguments.
7764 (i386_stap_is_single_operand): New function.
7765 (i386_stap_parse_special_token): Likewise.
7766 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7767 probes' arguments parser.
7768 * i386-tdep.h (i386_stap_is_single_operand): New function.
7769 (i386_stap_parse_special_token): Likewise.
7770 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7771 * mipsread.c (ecoff_sym_fns): Likewise.
7772 * objfiles.c (objfile_relocate1): Support relocation for static
7773 probes.
7774 * parse.c (prefixify_expression): Remove static declaration.
7775 (initialize_expout): Likewise.
7776 (reallocate_expout): Likewise.
7777 * parser-defs.h (initialize_expout): Declare function.
7778 (reallocate_expout): Likewise.
7779 (prefixify_expression): Likewise.
7780 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7781 of SystemTap probes' arguments.
7782 (ppc_stap_is_single_operand): New function.
7783 (ppc_stap_parse_special_token): Likewise.
7784 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7785 probes' arguments parser.
7786 * probe.c: New file, for generic statically defined probe support.
7787 * probe.h: Likewise.
7788 * s390-tdep.c: Including headers needed to perform the parsing of
7789 SystemTap probes' arguments.
7790 (s390_stap_is_single_operand): New function.
7791 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7792 probes' arguments parser.
7793 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7794 * stap-probe.c: New file, for SystemTap probe support.
7795 * stap-probe.h: Likewise.
7796 * symfile.h: Include `gdb_vecs.h'.
7797 (struct sym_probe_fns): New struct.
7798 (struct sym_fns) <sym_probe_fns>: New field.
7799 * symtab.c (init_sal): Initialize `probe' field.
7800 * symtab.h (struct probe): Forward declaration.
7801 (struct symtab_and_line) <probe>: New field.
7802 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7803 locations.
7804 (stop_tracing): Likewise.
7805 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7806
7807 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7808 Tom Tromey <tromey@redhat.com>
7809
7810 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7811 and to compile agent expressions.
7812 * infrun.c (siginfo_make_value): New argument `ignore'.
7813 (siginfo_funcs): New struct.
7814 (_initialize_infrun): New argument when calling
7815 `create_internalvar_type_lazy'.
7816 * thread.c (thread_id_make_value): New argument `ignore'.
7817 (thread_funcs): New struct.
7818 (_initialize_thread): New argument when calling
7819 `create_internalvar_type_lazy'.
7820 * tracepoint.c (sdata_make_value): New argument `ignore'.
7821 (sdata_funcs): New struct.
7822 (_initialize_tracepoint): New argument when calling
7823 `create_internalvar_type_lazy'.
7824 * value.c (make_value): New struct.
7825 (create_internalvar_type_lazy): New argument `data'.
7826 (compile_internalvar_to_ax): New function.
7827 (value_of_internalvar): Properly handling `make_value' case.
7828 (clear_internalvar): Likewise.
7829 (show_convenience): Adding `TRY_CATCH' block.
7830 * value.h (internalvar_make_value): Delete, replace by...
7831 (struct internalvar_funcs): ... this.
7832 (create_internalvar_type_lazy) <fun>: Delete argument.
7833 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7834 (compile_internalvar_to_ax): New function.
7835 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7836 (tlb_funcs): New struct.
7837 (_initialize_windows_tdep): New argument when calling
7838 `create_internalvar_type_lazy'.
7839
7840 2012-04-27 Mark Wielaard <mjw@redhat.com>
7841
7842 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7843 see whether it is an address or a constant offset from DW_AT_low_pc.
7844 (dwarf2_record_block_ranges): Likewise.
7845 (read_partial_die): Likewise.
7846
7847 2012-04-26 Mark Wielaard <mjw@redhat.com>
7848
7849 * MAINTAINERS (Write After Approval): Add myself to the list.
7850
7851 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7852
7853 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7854 (proc_prettyprint_signal): Likewise.
7855 (proc_prettyprint_faultset): Likewise.
7856 (proc_prettyprint_fault): Likewise.
7857 (proc_prettyprint_actionset): Likewise.
7858 (proc_prettyprint_flags): Move to new proc-flags.c section.
7859 (proc_prettyfprint_flags): New prototype.
7860 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7861 (proc_syscall, proc_cursig): Likewise.
7862 (proc_set_kill_on_last_close): Likewise.
7863 (proc_unset_kill_on_last_close): Likewise.
7864 (proc_set_watchpoint): Make static.
7865 (proc_delete_dead_threads): Likewise.
7866 (procfs_set_watchpoint): Likewise.
7867 (_initialize_procfs): Add prototype.
7868 * proc-events.c: Include proc-utils.h.
7869 (init_syscall_table): Make static.
7870 * proc-api.c (_initialize_proc_api): Add prototype.
7871 * proc-flags.c: Include proc-utils.h.
7872
7873 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7874
7875 * configure.ac: Add AC_ARG_PROGRAM.
7876 * configure: Regenerate.
7877
7878 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7879
7880 Fix DW_AT_lower_bound defaults for DWARF-4+.
7881 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7882 high. New variable low_default_is_valid. Implement DWARF-4+
7883 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7884 no default by the DWARF standard.
7885
7886 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7887 Maciej W. Rozycki <macro@codesourcery.com>
7888
7889 * infrun.c (handle_inferior_event): Move the check for return
7890 trampolines ahead of the check for function trampolines.
7891 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7892 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7893 (mips_str_mips16_ret_stub): Likewise.
7894 (mips_str_call_fp_stub): Likewise.
7895 (mips_str_call_stub): Likewise.
7896 (mips_str_fn_stub): Likewise.
7897 (mips_str_pic): Likewise.
7898 (mips_in_frame_stub): New function.
7899 (mips_unwind_pc): Return the return address rather than the PC
7900 if the PC of an intermediate frame is inside a call thunk.
7901 (mips_is_stub_suffix): New function.
7902 (mips_is_stub_mode): Likewise.
7903 (mips_get_mips16_fn_stub_pc): Likewise.
7904 (mips_skip_mips16_trampoline_code): Update to handle all the
7905 currently generated stub types. Don't recurse into __fn_stub
7906 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7907 Use cooked register accesses.
7908 (mips_in_return_stub): Reintroduce function.
7909 (mips_skip_trampoline_code): Traverse trampolines recursively.
7910 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7911
7912 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7913
7914 GDB 7.4.1 released.
7915
7916 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7917
7918 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7919 * features/arm-with-m-vfp-d16.xml: New file. Describes
7920 Cortex-M with VFPv4-sp-d16 FPU register layout.
7921 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7922 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7923 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7924 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7925 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7926
7927 2012-04-25 Doug Evans <dje@google.com>
7928
7929 * cli/cli-decode.c (print_doc_line): Use stream instead of
7930 current_uiout.
7931
7932 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7933
7934 * features/arm-with-iwmmxt.c: Regenerate.
7935 * features/arm-with-m-fpa-layout.c: Likewise.
7936 * features/arm-with-m.c: Likewise.
7937 * features/arm-with-neon.c: Likewise.
7938 * features/arm-with-vfpv2.c: Likewise.
7939 * features/arm-with-vfpv3.c: Likewise.
7940 * features/mips-dsp-linux.c: Likewise.
7941 * features/mips-linux.c: Likewise.
7942 * features/mips64-dsp-linux.c: Likewise.
7943 * features/mips64-linux.c: Likewise.
7944 * features/s390-linux32.c: Likewise.
7945 * features/s390-linux32v1.c: Likewise.
7946 * features/s390-linux32v2.c: Likewise.
7947 * features/s390-linux64.c: Likewise.
7948 * features/s390-linux64v1.c: Likewise.
7949 * features/s390-linux64v2.c: Likewise.
7950 * features/s390x-linux64.c: Likewise.
7951 * features/s390x-linux64v1.c: Likewise.
7952 * features/s390x-linux64v2.c: Likewise.
7953 * features/tic6x-c62x-linux.c: Likewise.
7954 * features/tic6x-c62x.c: Likewise.
7955 * features/tic6x-c64x-linux.c: Likewise.
7956 * features/tic6x-c64x.c: Likewise.
7957 * features/tic6x-c64xp-linux.c: Likewise.
7958 * features/tic6x-c64xp.c: Likewise.
7959 * target-descriptions.c: Only generate `field_type' and `type'
7960 variables when needed.
7961
7962 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7963
7964 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7965
7966 2012-04-25 Doug Evans <dje@google.com>
7967
7968 Initial pass at Go language support.
7969 * NEWS: Mention Go.
7970 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7971 go-valprint.c.
7972 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7973 (YYFILES): Add go-exp.c.
7974 (YYOBJ): Add go-exp.o.
7975 (local-maintainer-clean): Delete go-exp.c.
7976 * defs.h (enum language): Add language_go.
7977 * dwarf2read.c: #include "go-lang.h".
7978 (fixup_go_packaging): New function.
7979 (process_full_comp_unit): Call it when processing Go CUs.
7980 (dwarf2_physname): Add Go support.
7981 (read_file_scope): Handle missing language spec for GNU Go.
7982 (set_cu_language): Handle DW_LANG_Go.
7983 * go-exp.y: New file.
7984 * go-lang.h: New file.
7985 * go-lang.c: New file.
7986 * go-typeprint.c: New file.
7987 * go-valprint.c: New file.
7988 * symtab.c: #include "go-lang.h".
7989 (symbol_set_language): Handle language_go.
7990 (symbol_find_demangled_name, symbol_set_names): Ditto.
7991 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7992
7993 2012-04-24 Jim Meyering <meyering@redhat.com>
7994
7995 avoid a few strncpy-induced buffer overruns
7996 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7997 fname and psargs before trying to concatenate.
7998 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7999 "name" before applying strchr.
8000
8001 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8002
8003 * CONTRIBUTE: Use unified diff instead of context diff when
8004 generating patches.
8005
8006 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8007
8008 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8009 code. Handle JR.HB correctly.
8010
8011 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8012
8013 * mips-tdep.c
8014 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8015 with the other MIPS16 helpers.
8016
8017 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8018
8019 * observer.sh: Conditionally declare `args', thus cleaning up
8020 unused instances of this variable.
8021
8022 2012-04-24 Yao Qi <yao@codesourcery.com>
8023
8024 Revert this patch to allow breakpoint always-inserted
8025 in record target.
8026 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8027 * breakpoint.c: Include record.h.
8028 (breakpoints_always_inserted_mode): Return false when the record
8029 target is in use.
8030
8031 * breakpoint.c (iterate_over_bp_locations): New.
8032 * breakpoint.h: Declare.
8033 New typedef walk_bp_location_callback.
8034 * record.c (record_open): Call record_init_record_breakpoints.
8035 (record_sync_record_breakpoints): New.
8036 (record_init_record_breakpoints): New.
8037 * NEWS: Mention supporting breakpoint always-inserted mode in
8038 record target.
8039
8040 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8041
8042 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8043 any thread.
8044
8045 2012-04-24 Yao Qi <yao@codesourcery.com>
8046
8047 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8048 (is_catchpoint): ... it.
8049 (print_one_breakpoint_location): Caller update.
8050 * breakpoint.h: Update declaration.
8051
8052 2012-04-23 David S. Miller <davem@davemloft.net>
8053
8054 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8055
8056 2012-04-23 Tom Tromey <tromey@redhat.com>
8057
8058 * buildsym.c (add_free_pendings): Remove.
8059 * buildsym.h (add_free_pendings): Remove.
8060
8061 2012-04-23 Doug Evans <dje@google.com>
8062
8063 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8064 attr.u.unsnd instead of attr.u.addr.
8065 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8066 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8067 DW_FORM_ref_udata.
8068 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8069 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8070 DW_FORM_ref_udata.
8071 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8072
8073 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8074
8075 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8076 (mips_o32_return_value): Likewise.
8077 (mips_o64_return_value): Likewise.
8078
8079 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8080
8081 * ada-lang.c (ada_evaluate_subexp): Add cases for
8082 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8083 their treatment in eval.c.
8084
8085 2012-04-21 David S. Miller <davem@davemloft.net>
8086
8087 * sparc-tdep.c (X_DISP10): Define.
8088 (sparc_analyze_control_transfer): Handle compare-and-branch.
8089
8090 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8091
8092 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8093 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8094
8095 2012-04-20 Nigel Stephens <nigel@mips.com>
8096 Maciej W. Rozycki <macro@codesourcery.com>
8097
8098 * mips-tdep.c (mips_float_register_p): New function.
8099 (mips_convert_register_float_case_p): Use mips_float_register_p.
8100 (mips_register_type): Likewise.
8101 (mips_print_register): Likewise.
8102 (print_gp_register_row): Likewise.
8103 (mips_print_registers_info): Likewise.
8104
8105 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8106
8107 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8108 of mips16 symbols.
8109
8110 2012-04-20 Andrew Pinski <apinski@cavium.com>
8111
8112 * MAINTAINERS (Write After Approval): Add myself to the list.
8113
8114 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8115
8116 * MAINTAINERS: Update my e-mail address.
8117
8118 2012-04-20 Pedro Alves <palves@redhat.com>
8119
8120 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8121 $srcdir.
8122 * configure: Regenerate.
8123
8124 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8125
8126 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8127 declaration.
8128 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8129
8130 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8131
8132 Fix compilation compatibility with python-2.4
8133 * python/py-type.c (convert_field): Cast ADDRSTRING for
8134 PyObject_SetAttrString as non-const. New comment.
8135
8136 2012-04-19 Tom Tromey <tromey@redhat.com>
8137
8138 * top.c (quit_target): Use all_cleanups.
8139 * main.c (captured_command_loop): Use all_cleanups.
8140 * exceptions.c (throw_exception): Use all_cleanups.
8141
8142 2012-04-19 Pedro Alves <palves@redhat.com>
8143
8144 * Makefile.in (GNULIB_BUILDDIR): New.
8145 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8146 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8147 (CLEANDIRS). Remove gnulib/import.
8148 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8149 (all-lib): Ditto.
8150 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8151 (gnulib/import/Makefile): Replace gnulib/import with
8152 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8153 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8154 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8155 acx_configure_dir.m4.
8156 * acinclude.m4: Include acx_configure_dir.m4.
8157 * acx_configure_dir.m4: New file.
8158 * aclocal.m4: Regenerate.
8159 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8160 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8161 (GNULIB): New variable.
8162 (GNULIB_STDINT_H): Adjust.
8163 (AC_OUTPUT): Don't output gnulib/Makefile.
8164 * gdb/defs.h: Include build-gnulib/config.h.
8165 * aclocal.m4: Regenerate.
8166 * config.in: Regenerate.
8167 * configure: Regenerate.
8168
8169 * gnulib/Makefile.in: New file.
8170 * gnulib/configure.ac: New file.
8171 * gnulib/aclocal.m4: New file.
8172 * gnulib/config.in: New file.
8173 * gnulib/configure: New file.
8174 * gnulib/: Re-run gnulib-tool to adjust.
8175
8176 2012-04-19 Doug Evans <dje@google.com>
8177
8178 * cleanups.h (struct cleanup): Move to cleanups.c.
8179 (make_cleanup_dtor_ftype): New typedef.
8180 (make_cleanup_dtor): Use it.
8181 (ALL_CLEANUPS): Replace with ...
8182 (all_cleanups): ... this. Declare. All uses updated.
8183 * cleanups.c: #include "gdb_assert.h".
8184 (sentinel_cleanup): New static global.
8185 (SENTINEL_CLEANUP): Define.
8186 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8187 (make_my_cleanup2): Assert result is non-NULL.
8188 (all_cleanups): New function.
8189 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8190 of NULL.
8191
8192 2012-04-19 Pedro Alves <palves@redhat.com>
8193
8194 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8195 Adjust paths to gnulib imported files.
8196
8197 2012-04-19 Pedro Alves <palves@redhat.com>
8198
8199 * gnulib/: Move whole directory ...
8200 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8201 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8202 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8203 (aclocal_m4_deps): Adjust.
8204 * aclocal.m4: Regenerate.
8205 * configure: Regenerate.
8206 * configure.ac: Adjust AC_OUTPUT output.
8207
8208 2012-04-19 Yao Qi <yao@codesourcery.com>
8209
8210 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8211 (vec.o): New rule.
8212 * vec.c: Move it ...
8213 * common/vec.c: ... here.
8214 * vec.h: Move it ...
8215 * common/vec.h: ... here.
8216
8217 2012-04-19 Yao Qi <yao@codesourcery.com>
8218
8219 * gdb-code-style.el: New.
8220
8221 2012-04-18 Pedro Alves <palves@redhat.com>
8222
8223 Update gnulib from latest git.
8224 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8225
8226 * gnulib/Makefile.am: Update.
8227 * gnulib/dummy.c: Update.
8228 * gnulib/extra/arg-nonnull.h: Update.
8229 * gnulib/extra/c++defs.h: Update.
8230 * gnulib/extra/update-copyright: Update.
8231 * gnulib/extra/warn-on-use.h: Update.
8232 * gnulib/inttypes.in.h: Update.
8233 * gnulib/m4/00gnulib.m4: Update.
8234 * gnulib/m4/extensions.m4: Update.
8235 * gnulib/m4/gnulib-cache.m4: Update.
8236 * gnulib/m4/gnulib-common.m4: Update.
8237 * gnulib/m4/gnulib-comp.m4: Update.
8238 * gnulib/m4/gnulib-tool.m4: Update.
8239 * gnulib/m4/include_next.m4: Update.
8240 * gnulib/m4/inttypes-pri.m4: Update.
8241 * gnulib/m4/inttypes.m4: Update.
8242 * gnulib/m4/longlong.m4: Update.
8243 * gnulib/m4/memchr.m4: Update.
8244 * gnulib/m4/memmem.m4: Update.
8245 * gnulib/m4/mmap-anon.m4: Update.
8246 * gnulib/m4/multiarch.m4: Update.
8247 * gnulib/m4/onceonly.m4: Update.
8248 * gnulib/m4/stddef_h.m4: Update.
8249 * gnulib/m4/stdint.m4: Update.
8250 * gnulib/m4/string_h.m4: Update.
8251 * gnulib/m4/warn-on-use.m4: Update.
8252 * gnulib/m4/wchar_h.m4: Update.
8253 * gnulib/m4/wchar_t.m4: Update.
8254 * gnulib/m4/wint_t.m4: Update.
8255 * gnulib/memchr.c: Update.
8256 * gnulib/memmem.c: Update.
8257 * gnulib/stddef.in.h: Update.
8258 * gnulib/stdint.in.h: Update.
8259 * gnulib/str-two-way.h: Update.
8260 * gnulib/string.in.h: Update.
8261 * gnulib/wchar.in.h: Update.
8262
8263 * gnulib/extra/arg-nonnull.h: Delete.
8264 * gnulib/extra/c++defs.h: Delete.
8265 * gnulib/extra/warn-on-use.h: Delete.
8266 * gnulib/m4/wchar_h.m4: Delete.
8267 * gnulib/m4/wint_t.m4: Delete.
8268 * gnulib/wchar.in.h: Delete.
8269
8270 * gnulib/extra/snippets/arg-nonnull.h: New.
8271 * gnulib/extra/snippets/c++defs.h: New.
8272 * gnulib/extra/snippets/warn-on-use.h: New.
8273
8274 * aclocal.m4: Regenerate.
8275 * config.in: Regenerate.
8276 * configure: Regenerate.
8277 * gnulib/Makefile.in: Regenerate.
8278
8279 2012-04-18 Pedro Alves <palves@redhat.com>
8280
8281 Reimport the update-copyright module from gnulib
8282 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8283
8284 * configure: Regenerate.
8285 * gnulib/Makefile.am: Update.
8286 * gnulib/Makefile.in: Regenerate.
8287 * gnulib/extra/update-copyright: Update.
8288 * gnulib/m4/gnulib-cache.m4: Update.
8289 * gnulib/m4/gnulib-comp.m4: Update.
8290
8291 2012-04-18 Tristan Gingold <gingold@adacore.com>
8292
8293 * configure.ac (aix): Put -lpthread into libs.
8294 * configure: Regenerate.
8295
8296 2012-04-18 Tom Tromey <tromey@redhat.com>
8297
8298 * linespec.c (convert_linespec_to_sals): Don't use
8299 SYMBOL_OBJ_SECTION.
8300 (compare_msymbols): Arguments are minsym_and_objfile, not
8301 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8302
8303 2012-04-18 Pedro Alves <palves@redhat.com>
8304
8305 Revert gnulib/ part of:
8306 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8307 Copyright year update in most files (performed by copyright.sh).
8308
8309 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8310
8311 Fix 64-bit constants on 32-bit hosts.
8312 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8313 from unsigned long to ULONGEST.
8314 (read_signed_leb128): Change declaration return type from long to
8315 LONGEST.
8316 (dwarf2_const_value_attr): Change declaration parameter value from long
8317 to LONGEST.
8318 (dwarf2_compute_name): Change variable value from long to LONGEST.
8319 (read_unsigned_leb128): Change return type, variable result and some
8320 casts from unsigned long to ULONGEST.
8321 (read_signed_leb128): Change return type, variable result and some
8322 casts from long to LONGEST.
8323 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8324 value from long to LONGEST.
8325 (dwarf2_const_value): Change variable value from long to LONGEST.
8326 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8327 plongest and hex_string.
8328 * symtab.h (struct general_symbol_info): Change ivalue from long to
8329 LONGEST, remove the comment.
8330 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8331 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8332
8333 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8334
8335 PR symtab/7259:
8336 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8337 * ada-lang.c (ada_discrete_type_high_bound)
8338 (ada_discrete_type_low_bound): Fix function comment. Use
8339 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8340 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8341 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8342 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8343 Use TYPE_FIELD_ENUMVAL.
8344 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8345 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8346 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8347 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8348 TYPE_CODE_ENUM.
8349 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8350 * dwarf2read.c (process_enumeration_scope): Likewise.
8351 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8352 field.bitpos.
8353 (class StructMainTypePrettyPrinter): Support also
8354 FIELD_LOC_KIND_ENUMVAL.
8355 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8356 TYPE_CODE_ENUM.
8357 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8358 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8359 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8360 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8361 field enumval.
8362 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8363 accommodate enumval.
8364 (struct call_site): Adjust loc_kind to accommodate enumval.
8365 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8366 (TYPE_FIELD_ENUMVAL): New macros.
8367 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8368 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8369 TYPE_CODE_ENUM.
8370 * p-typeprint.c (pascal_type_print_base): Likewise.
8371 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8372 enumval.
8373 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8374 * python/py-type.c (convert_field): New variable addrstring. Use
8375 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8376 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8377 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8378 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8379 TYPE_CODE_ENUM.
8380 * valprint.c (generic_val_print): Likewise.
8381
8382 2012-04-17 Doug Evans <dje@google.com>
8383
8384 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8385
8386 * dwarf2read.c: Whitespace fixes.
8387 (lookup_signatured_type): Tweak comment.
8388 (get_die_type_at_offset): Fix comment.
8389
8390 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8391
8392 * xcoffread.c (xcoff_secnum_to_sections): New function.
8393 (secnum_to_section, secnum_to_bfd_section): Reimplement
8394 using xcoff_secnum_to_sections. Rename "secnum" parameter
8395 into "n_scnum".
8396 (RECORD_MINIMAL_SYMBOL): Delete.
8397 (record_minimal_symbol): New function.
8398 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8399 by call to record_minimal_symbol and set misc_func_recorded
8400 to 1. Set last_csect_sec to the XCOFF section index instead
8401 of GDB's section_offset index. Update calls to
8402 prim_record_minimal_symbol_and_info to pass the BFD section
8403 as well.
8404
8405 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8406
8407 * xcoffread.c (read_xcoff_symtab): Delete variables
8408 last_csect_val and last_csect_sec and associated code.
8409
8410 2012-04-17 Doug Evans <dje@google.com>
8411
8412 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8413 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8414 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8415 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8416
8417 * cleanups.h: New file.
8418 * cleanups.c: New file.
8419 * Makefile.in (SFILES): Add cleanups.c.
8420 (HFILES_NO_SRCDIR): Add cleanups.h.
8421 (COMMON_OBS): Add cleanups.o.
8422 * defs.h (struct cleanup): Moved to cleanups.h.
8423 (do_cleanups,do_final_cleanups): Ditto.
8424 (discard_cleanups,discard_final_cleanups): Ditto
8425 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8426 (save_cleanups,save_final_cleanups): Ditto.
8427 (restore_cleanups,restore_final_cleanups): Ditto.
8428 (null_cleanup): Ditto.
8429 (make_my_cleanup,make_my_cleanup2): Ditto.
8430 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8431 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8432 (do_cleanups,do_final_cleanups): Ditto.
8433 (discard_cleanups,discard_final_cleanups): Ditto
8434 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8435 (save_cleanups,save_final_cleanups): Ditto.
8436 (restore_cleanups,restore_final_cleanups): Ditto.
8437 (null_cleanup): Ditto.
8438 (make_my_cleanup,make_my_cleanup2): Ditto.
8439 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8440
8441 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8442 make_my_cleanup.
8443 (make_cleanup_dyn_string_delete): Ditto.
8444 (make_cleanup_ui_file_delete): Ditto.
8445 (make_cleanup_ui_out_redirect_pop): Ditto.
8446 (make_cleanup_free_section_addr_info): Ditto.
8447 (make_cleanup_restore_integer): Ditto.
8448 (make_cleanup_unpush_target): Ditto.
8449 (make_cleanup_value_free_to_mark): Ditto.
8450 (make_cleanup_value_free): Ditto.
8451 (make_cleanup_free_so): Ditto.
8452
8453 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8454
8455 New option "set debug auto-load".
8456 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8457 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8458 (auto_load_safe_path_vec_update)
8459 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8460 if DEBUG_AUTO_LOAD.
8461 (file_is_auto_load_safe): New parameters debug_fmt and ....
8462 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8463 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8464 caller by explanatory string.
8465 (_initialize_auto_load): Register "set debug auto-load".
8466 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8467 and ....
8468 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8469 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8470 by explanatory string.
8471 * main.c (captured_main): Likewise.
8472 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8473 (source_section_scripts): Likewise.
8474
8475 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8476
8477 New option "set auto-load safe-path".
8478 * NEWS: New commands "set auto-load safe-path"
8479 and "show auto-load safe-path".
8480 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8481 (auto_load_safe_path, auto_load_safe_path_vec)
8482 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8483 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8484 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8485 (source_gdb_script_for_objfile): New variable is_safe. Call
8486 file_is_auto_load_safe. Return if it is not.
8487 (struct loaded_script): New field loaded.
8488 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8489 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8490 output "Missing" to "No".
8491 (_initialize_auto_load): New variable cmd. Initialize
8492 auto_load_safe_path. Register "set auto-load safe-path",
8493 "show auto-load safe-path" and "add-auto-load-safe-path".
8494 * auto-load.h (maybe_add_script): Add parameter loaded.
8495 (file_is_auto_load_safe): New declaration.
8496 * config.in: Regenerate.
8497 * configure: Regenerate.
8498 * configure.ac: New parameters --with-auto-load-safe-path
8499 and --without-auto-load-safe-path.
8500 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8501 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8502 * main.c (captured_main): Check file_is_auto_load_safe for
8503 LOCAL_GDBINIT.
8504 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8505 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8506 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8507 not.
8508
8509 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8510
8511 auto-load: Implementation.
8512 * NEWS: New descriptions for "info auto-load",
8513 "info auto-load gdb-scripts", "info auto-load python-scripts",
8514 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8515 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8516 and "show auto-load-scripts". New description for "set auto-load",
8517 "show auto-load", "set auto-load gdb-scripts",
8518 "show auto-load gdb-scripts", "set auto-load python-scripts",
8519 "show auto-load python-scripts", "set auto-load local-gdbinit",
8520 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8521 "show auto-load libthread-db".
8522 * auto-load.c: Remove include python/python-internal.h. Add includes
8523 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8524 cli/cli-setshow.h.
8525 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8526 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8527 (gdbpy_global_auto_load): Rename to ...
8528 (global_auto_load): ... here.
8529 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8530 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8531 (script_language_gdb, source_gdb_script_for_objfile): New.
8532 (struct loaded_script): New field language.
8533 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8534 LANGUAGE.
8535 (maybe_add_script): Add parameter language. Drop redundant
8536 entry.full_path initialization. Initialize entry.language and
8537 (*slot)->language.
8538 (auto_load_objfile_script): Change parameter suffix to language.
8539 Remove the call of maybe_add_script.
8540 Call language->source_script_for_objfile.
8541 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8542 New.
8543 (collect_matching_scripts): Adjust it for
8544 struct collect_matching_scripts_data.
8545 (auto_load_info_scripts_pattern_nl): New variable.
8546 (info_auto_load_scripts): Rename to ...
8547 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8548 for struct collect_matching_scripts_data.
8549 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8550 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8551 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8552 (auto_load_info_cmdlist_get): New.
8553 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8554 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8555 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8556 "info auto-load local-gdbinit".
8557 * auto-load.h (struct script_language): New.
8558 (gdbpy_global_auto_load): Rename to ...
8559 (global_auto_load): ... here.
8560 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8561 (auto_load_local_gdbinit_loaded): New declarations.
8562 (maybe_add_script): New parameter language.
8563 (auto_load_objfile_script): Change parameter suffix to language.
8564 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8565 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8566 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8567 declarations.
8568 * linux-thread-db.c: Include auto-load.h and ctype.h.
8569 (auto_load_thread_db, show_auto_load_thread_db): New.
8570 (struct thread_db_info): New field filename.
8571 (delete_thread_db_info): Call xfree for FILENAME.
8572 (try_thread_db_load): Initialize FILENAME.
8573 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8574 if !AUTO_LOAD_THREAD_DB.
8575 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8576 (_initialize_thread_db): Install auto_load_thread_db
8577 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8578 as "info auto-load libthread-db".
8579 * main.c (captured_main): Rename gdbpy_global_auto_load to
8580 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8581 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8582 (print_gdb_help): Extend the help for 'local init file'.
8583 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8584 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8585 (auto_load_scripts): Rename to ...
8586 (auto_load_python_scripts): ... here, update the comment.
8587 (gdbpy_load_auto_script_for_objfile): New declaration.
8588 (show_auto_load_python_scripts, script_language_python)
8589 (gdbpy_load_auto_script_for_objfile): New.
8590 (source_section_scripts): Refactor the code.
8591 (load_auto_scripts_for_objfile): Rename to ...
8592 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8593 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8594 (info_auto_load_python_scripts): New.
8595 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8596 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8597 Register "set auto-load-scripts" as its deprecated alias. Register
8598 "info auto-load python-scripts". Register "info auto-load-scripts" as
8599 its deprecated alias.
8600 (load_auto_scripts_for_objfile): Rename to ...
8601 (gdbpy_load_auto_scripts_for_objfile): ... here.
8602 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8603 (gdbpy_load_auto_scripts_for_objfile): ... here.
8604
8605 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8606
8607 auto-load: Move files.
8608 * Makefile.in (SFILES): Add auto-load.c.
8609 (HFILES_NO_SRCDIR): Add auto-load.h.
8610 (COMMON_OBS): Add auto-load.o.
8611 (distclean): Change .gdbinit for gdb-gdb.gdb.
8612 * auto-load.c: New file, with parts from python/py-auto-load.c.
8613 * auto-load.h: New file, with parts from python/python.h.
8614 * configure: Regenerate.
8615 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8616 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8617 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8618 * main.c: Include auto-load.h.
8619 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8620 command.h, observer.h and progspace.h to auto-load.c. Add include
8621 auto-load.h.
8622 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8623 (struct loaded_script, auto_load_pspace_data)
8624 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8625 (hash_loaded_script_entry, eq_loaded_script_entry)
8626 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8627 (maybe_add_script): Move to auto-load.c.
8628 (source_section_scripts): Change maybe_add_script parameters passing,
8629 use script_not_found_warning_print.
8630 (clear_section_scripts, auto_load_objfile_script)
8631 (auto_load_new_objfile, loaded_script_ptr)
8632 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8633 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8634 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8635 auto_load_new_objfile and info_auto_load_scripts initizations to
8636 auto-load.c.
8637 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8638
8639 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8640
8641 Code cleanup.
8642 * charset.c (find_charset_names): Remove variables ix and elt.
8643 Use free_char_ptr_vec.
8644 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8645 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8646 debugdir_end. New variable debugdir_len.
8647 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8648 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8649 declarations.
8650 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8651 and elt. Use free_char_ptr_vec.
8652 * source.c (add_path): Remove variables argv, arg and argv_index.
8653 New variables dir_vec, back_to, ix and name.
8654 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8655 make_cleanup_freeargv. Remove variable separator. Simplify the code
8656 no longer expecting DIRNAME_SEPARATOR.
8657 (openp): Remove variable p, p1 and len. New variables dir_vec,
8658 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8659 no longer expecting DIRNAME_SEPARATOR.
8660 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8661 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8662 debugdir_end.
8663 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8664 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8665 (dirnames_to_char_ptr_vec): New functions.
8666
8667 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8668
8669 Code cleanup.
8670 * source.c (add_path): Remove always true conditional 'p == 0' and
8671 unindent its code block.
8672
8673 2012-04-17 Pedro Alves <palves@redhat.com>
8674
8675 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8676 (FIELD_BITPOS_LVAL): ... this.
8677 (FIELD_BITPOS): New.
8678 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8679 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8680 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8681 SET_FIELD_BITPOS.
8682 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8683 SET_FIELD_BITPOS.
8684 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8685 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8686 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8687 SET_FIELD_BITPOS.
8688
8689 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8690
8691 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8692 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8693 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8694 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8695 * jv-lang.c (java_link_class_type): Likewise, once.
8696 * stabsread.c (read_enum_type): Likewise.
8697
8698 2012-04-16 Yao Qi <yao@codesourcery.com>
8699
8700 * common/agent.c (agent_run_command): Add one more parameter `len'.
8701 Update callers.
8702 * common/agent.h: Update declaration.
8703 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8704 Update.
8705 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8706
8707 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8708
8709 PR mi/13393
8710 * value.c (value_actual_type): New function.
8711 * value.h (value_actual_type): New declaration.
8712 * varobj.c (update_type_if_necessary): New function.
8713 (varobj_create): Call value_actual_type instead of
8714 value_type.
8715 (install_dynamic_child): distinct changed and type changed MI variable
8716 objects.
8717 (update_dynamic_varobj_children): Updated for install_dynamic_child
8718 change. All callers updated.
8719 (varobj_update): Support for MI variable object type change if
8720 the value changed and RTTI is used to determine the type.
8721 (create_child_with_value): Call value_actual_type instead of
8722 value_type.
8723 (adjust_value_for_child_access): Extended with a new parameter which
8724 specify whether the given value should be casted to enclosing type.
8725 All callers updated.
8726
8727 2012-04-14 Yao Qi <yao@codesourcery.com>
8728
8729 Import gnulib module inttypes from git
8730 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8731 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8732 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8733 gnulib/m4/inttypes-pri.m4
8734 * aclocal.m4, config.in, configure: Regenerated.
8735 * gnulib/Makefile.am: Update.
8736 * gnulib/Makefile.in: Update.
8737 * gnulib/m4/gnulib-cache.m4: Update.
8738 * gnulib/m4/gnulib-comp.m4: Update.
8739 * gnulib/inttypes.in.h: New.
8740 * gnulib/m4/inttypes-pri.m4: New.
8741 * gnulib/m4/inttypes.m4: New.
8742
8743 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8744
8745 * infrun.c (resume): Update PC address to the real PC after
8746 preparing to do displaced stepping.
8747
8748 2012-04-12 Doug Evans <dje@google.com>
8749
8750 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8751 All callers updated.
8752
8753 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8754
8755 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8756
8757 2012-04-12 Doug Evans <dje@google.com>
8758
8759 * dwarf2read.c (create_all_type_units): Renamed from
8760 create_debug_types_hash_table. All callers updated.
8761
8762 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8763 local type_sig to sig_type, type_offset to type_offset_in_tu.
8764 (hash_signatured_type): Renamed from hash_type_signature,
8765 all callers updated.
8766 (eq_signatured_type): Renamed from eq_type_signature,
8767 all callers updated.
8768 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8769 (process_enumeration_scope): Ditto.
8770 (lookup_signatured_type_at_offset): Ditto.
8771 (load_full_type_unit, read_signatured_type): Ditto.
8772
8773 2012-04-12 Yao Qi <yao@codesourcery.com>
8774
8775 * remote.c (async_remote_interrupt): Correct function name in
8776 debug message.
8777 (async_remote_interrupt_twice): Ditto.
8778
8779 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8780
8781 * source.c (find_and_open_source): Consistently pass resulting
8782 full path through xfullpath.
8783
8784 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8785
8786 Provide more specific displaced-stepping memory error message.
8787 * infrun.c (displaced_step_prepare): New variable status. Call
8788 target_read_memory instead of read_memory, provide more specific
8789 error message.
8790
8791 2012-04-11 Tristan Gingold <gingold@adacore.com>
8792
8793 PR gdb/13901
8794 * darwin-nat.c (darwin_execvp): Revert previous patch.
8795
8796 2012-04-11 Tristan Gingold <gingold@adacore.com>
8797
8798 PR gdb/13901
8799 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8800 in case of change.
8801
8802 2012-04-11 Tristan Gingold <gingold@adacore.com>
8803
8804 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8805 warning.
8806
8807 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8808
8809 New command 'explore' which helps explore values and types in
8810 scope.
8811 * NEWS: Add an entry about the new 'explore' command.
8812 * data-directory/Makefile.in: Add gdb/command/explore.py
8813 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8814 command using the GDB Python API.
8815
8816 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8817
8818 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8819 extension in jump target calculation.
8820
8821 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8822
8823 * mips-tdep.c (mips32_next_pc): Handle JALX.
8824
8825 2012-04-10 Yao Qi <yao@codesourcery.com>
8826
8827 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8828
8829 2012-04-10 Yao Qi <yao@codesourcery.com>
8830
8831 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8832 and gnulib/m4/gnulib-tool.m4.
8833
8834 2012-04-10 Doug Evans <dje@google.com>
8835
8836 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8837 (load_partial_dies): Clarify comment.
8838 (find_partial_die): Support rereading type units.
8839 Clarify CU handling, if we know offset is in CU, don't search for the
8840 containing CU. Add comment regarding memory waste.
8841
8842 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8843
8844 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8845 i386/x32-avx and i386/x32-avx-linux.
8846 (i386/x32-expedite): New.
8847 (i386/x32-linux-expedite): Likewise.
8848 (i386/x32-avx-expedite): Likewise.
8849 (i386/x32-avx-linux-expedite): Likewise.
8850 ($(outdir)/i386/x32.dat): Likewise.
8851 ($(outdir)/i386/x32-linux.dat): Likewise.
8852 ($(outdir)/i386/x32-avx.dat): Likewise.
8853 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8854
8855 * features/i386/x32-avx-linux.xml: New file.
8856 * features/i386/x32-avx.xml: Likewise.
8857 * features/i386/x32-core.xml: Likewise.
8858 * features/i386/x32-linux.xml: Likewise.
8859 * features/i386/x32.xml: Likewise.
8860
8861 * features/i386/x32-avx-linux.c: New. Generated.
8862 * features/i386/x32-avx.c: Likewise.
8863 * features/i386/x32-linux.c: Likewise.
8864 * features/i386/x32.c: Likewise.
8865 * regformats/i386/x32-avx-linux.dat: Likewise.
8866 * regformats/i386/x32-avx.dat: Likewise.
8867 * regformats/i386/x32-linux.dat: Likewise.
8868 * regformats/i386/x32.dat: Likewise.
8869
8870 2012-04-10 Tristan Gingold <gingold@adacore.com>
8871
8872 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8873 code to kill the inferior.
8874
8875 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8876
8877 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8878 defines.
8879 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8880 defines.
8881 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8882 (yyvsp): New defines.
8883 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8884 defines.
8885 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8886 defines.
8887 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8888 defines.
8889 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8890 defines.
8891 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8892 defines.
8893
8894 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8895
8896 * sparc64-tdep.c (sparc64_store_arguments)
8897 (sparc64_store_arguments): Fix coding style.
8898
8899 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8900
8901 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8902 complex floats, adjust some related comments and tighten a related
8903 assertion.
8904 (sparc64_extract_return_value): Handle complex floats.
8905
8906 2012-04-07 Doug Evans <dje@google.com>
8907
8908 * dwarf2read.c (load_partial_dies): Change condition to assert.
8909
8910 2012-04-06 Doug Evans <dje@google.com>
8911
8912 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8913 "mov %rsp,%rbp".
8914
8915 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8916
8917 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8918 fencepost error.
8919 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8920 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8921 architecture.
8922
8923 2012-04-05 Keith Seitz <keiths@redhat.com>
8924
8925 * linespec.c (decode_compound): Remove.
8926 (enum offset_relative_sign): New enum.
8927 (struct line_offset): New struct.
8928 (struct linespec): New struct.
8929 (struct linespec_state): Move file_symtabs,
8930 user_filename, and user_function into struct linespec.
8931 Make result an anonymous struct holding vectors of
8932 symbolp and minsym_and_objfile_d.
8933 Add language member.
8934 (enum ls_token_type): New enum.
8935 (linespec_keywords): New array.
8936 (struct ls_token): New struct.
8937 (struct ls_parser): New struct.
8938 (linespec_lexer_lex_number): New function.
8939 (linespec_lexer_lex_keyword): New function.
8940 (is_ada_operator): New function.
8941 (skip_quote_char): New function.
8942 (copy_token_string): New function.
8943 (is_closing_quote_enclosed): New function.
8944 (find_parameter_list_end): New function.
8945 (linespec_lexer_lex_string): New function.
8946 (linespec_lexer_lex_one): New function.
8947 (linespec_lexer_consume_token): New function.
8948 (linespec_lexer_peek_token): New function.
8949 (cplusplus_error): Remove unused function.
8950 (find_methods): Update comment.
8951 (find_toplevel_char): Return const.
8952 (is_objc_method_format): Remove unused function.
8953 (find_toplevel_string): New function.
8954 (is_linespec_boundary): Remove.
8955 (symbol_not_found_error): New function.
8956 (find_method_overload_end): Remove function.
8957 (unexpected_linespec_error): New function.
8958 (keep_name_info): Remove.
8959 (linespec_parse_line_offset): New function.
8960 (linespec_parse_basic): New function.
8961 (canonicalize_linespec): New function.
8962 (decode_line_internal): Remove.
8963 (create_sals_line_offset): New function adapted from
8964 decode_all_digits.
8965 (convert_linespec_to_sals): New function.
8966 (parse_linespec): New function.
8967 (linespec_parser_new): New function.
8968 (linespec_state_destructor): Change parameter type to
8969 struct linespec_state *.
8970 Add language parameter.
8971 Remove freeing of moved members.
8972 (linespec_parser_delete): New function.
8973 (decode_line_full): Use parse_linespec and linespec_parser_new.
8974 (decode_line_1): Likewise.
8975 (decode_indirect): Rename to ...
8976 (linespec_expression_to_pc): ... this and rewrite
8977 to simply find CORE_ADDR, storing this result for later
8978 conversion to SALs.
8979 (locate_first_half): Remove.
8980 (deocde_objc): Add parameter LS.
8981 Initialize new struct collect_info members.
8982 Handle minimal symbols, too.
8983 (decode_compound): Delete.
8984 (lookup_prefix_sym): Rewrite.
8985 (compare_msymbols): New function.
8986 (find_method): Rewrite.
8987 Do not call cplusplus_error.
8988 (symtabs_from_filename): Rewrite.
8989 (collect_function_symbols): Delete.
8990 (find_function_symbols): Rewrite without ARGPTR-style
8991 processing.
8992 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8993 (decode_dollar): Adapted and renamed to ...
8994 (linespec_parse_variable): ... this.
8995 (find_linespec_symbols): New function.
8996 (decode_label): Adapted and renamed to ...
8997 (find_label_symbols): ... this.
8998 (decode_digits_list_mode): Add and use LS argument.
8999 (decode_digits_ordinary): Likewise.
9000 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9001 If in list mode, allow any symbol class. Otherwise, only
9002 permit LOC_BLOCK symbols.
9003 (minsym_found): Update comments.
9004 (search_minsyms_for_name): Do not convert the matching symbol
9005 into a SAL. Simply push the symbol and objfile into the
9006 result vector.
9007 (decode_variable): Delete. Contents adapted into
9008 find_linespec_symbols.
9009
9010 * cp-support.c (SKIP_SPACE): Remove.
9011 (operator_tokens): Remove unused global.
9012 (cp_validate_operator): Remove.
9013 * cp-support.h (cp_validate_operator): Remove declaration.
9014
9015 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9016
9017 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9018 for TYPE_VPTR_FIELDNO.
9019 * valprint.c (valprint_check_validity): Make it global, move the
9020 function comment ...
9021 * value.h (valprint_check_validity): ... to this new declaration.
9022
9023 2012-04-02 Tristan Gingold <gingold@adacore.com>
9024
9025 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9026 the STATE32 api for i386 state.
9027 (i386_darwin_store_inferior_registers): Likewise.
9028
9029 2012-04-02 Tristan Gingold <gingold@adacore.com>
9030
9031 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9032 SS offset.
9033 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9034 format_string.
9035
9036 2012-04-02 Tristan Gingold <gingold@adacore.com>
9037
9038 PR gdb/13901
9039 * darwin-nat.c (darwin_execvp): Set binary preference.
9040
9041 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9042
9043 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9044
9045 2012-03-30 Tom Tromey <tromey@redhat.com>
9046
9047 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9048 of TRY_CATCH. Fix error handling.
9049 * python/py-value.c (convert_value_from_python): Move 'old'
9050 declaration to innermost scope.
9051
9052 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9053 Andrey Smirnov <andrew.smirnov@gmail.com>
9054
9055 -Wshadow warning fix.
9056 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9057 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9058 Adjust code accordingly.
9059
9060 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9061
9062 * ada-lang.c (symbol_completion_add): Rename parameter
9063 "encoded" into "encoded_p". Ajust code and documentation
9064 accordingly.
9065
9066 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9067 Andrey Smirnov <andrew.smirnov@gmail.com>
9068
9069 -Wshadow warning fix.
9070 * ada-lang.c (symbol_completion_add): Rename parameter
9071 "wild_match" into wild_match_p. Update code and documentation
9072 accordingly.
9073
9074 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9075
9076 * ada-lang.c (symbol_completion_match): Rename parameter
9077 "encoded" into "encoded_p". Ajust code and documentation
9078 accordingly.
9079
9080 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9081 Andrey Smirnov <andrew.smirnov@gmail.com>
9082
9083 -Wshadow warning fix.
9084 * ada-lang.c (symbol_completion_match): Rename parameter
9085 "wild_match" into "wild_match_p". Adjust code and function
9086 documentation accordingly.
9087
9088 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9089 Andrey Smirnov <andrew.smirnov@gmail.com>
9090
9091 -Wshadow warning fix.
9092 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9093 "symbol_info" into "info". Adjust code accordingly.
9094 (ada_lookup_symbol): Likewise.
9095
9096 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9097
9098 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9099 of this function's documentation.
9100
9101 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9102 Andrey Smirnov <andrew.smirnov@gmail.com>
9103
9104 -Wshadow warning fix.
9105 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9106 variable into "wild_match_p". Adjust code accordingly.
9107
9108 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9109 Andrey Smirnov <andrew.smirnov@gmail.com>
9110
9111 -Wshadow warning fix.
9112 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9113 parameter into "wild_match_p". Adjust code accordingly.
9114 Document this parameter in the function description.
9115
9116 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9117 Andrey Smirnov <andrew.smirnov@gmail.com>
9118
9119 -Wshadow warning fix.
9120 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9121 "wild_match" parameter to "wild_match_p" (-Wshadow).
9122
9123 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9124
9125 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9126 in function documentation.
9127
9128 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9129 Andrey Smirnov <andrew.smirnov@gmail.com>
9130
9131 -Wshadow warning fix.
9132 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9133 variable into wild_match_p. Adjust code accordingly.
9134
9135 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9136 Andrey Smirnov <andrew.smirnov@gmail.com>
9137
9138 * ada-valprint.c (ada_val_print_1): Move the code handling
9139 TYPE_CODE_ENUM inside its own lexical block. Declare
9140 variables len and val there, instead of in the function's
9141 top level block. Avoid declaring deref_val again in a way
9142 that shadows another variable of the same name declared
9143 in one of the up-level blocks. Just re-use the up-level
9144 variable instead.
9145
9146 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9147
9148 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9149 Replace block_found argument by symbol_info. Adjust
9150 implementation accordingly. Add function documentation.
9151 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9152 Fix documentation.
9153 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9154 * ada-exp.y (write_object_renaming): Adjust to new
9155 ada_lookup_encoded_symbol API.
9156
9157 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9158
9159 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9160 documentation.
9161
9162 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9163
9164 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9165 (v850_register_name): Add the mpu and fpu register names.
9166 (v850e_register_name): Add the mpu and fpu register names.
9167 (v850e2_register_name): New function.
9168 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9169 bfd_mach_v850e2v3.
9170
9171 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9172
9173 * NEWS: Add entry for Ada varobj support.
9174
9175 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9176
9177 * varobj.c (default_value_is_changeable_p): New function,
9178 extracted from varobj_value_is_changeable_p. Add declaration.
9179 (ada_value_is_changeable_p): New function, extracted from
9180 varobj_value_is_changeable_p. Add declaration.
9181 (struct language_specific): New field "value_is_changeable_p".
9182 (languages): Add entries for new field.
9183 (varobj_create): Set language before calling install_new_value.
9184 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9185 "value_is_changeable_p" language callback.
9186
9187 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9188
9189 * ada-varobj.h, ada-varobj.c: New files.
9190 * Makefile.in (SFILES): Add ada-varobj.c.
9191 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9192 (COMMON_OBS): Add ada-varobj.o.
9193
9194 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9195
9196 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9197 (struct language_specific): New field "value_has_mutated".
9198 (languages): Set field "value_has_mutated" in each entry of array.
9199 (varobj_value_has_mutated): New function.
9200 (varobj_udpdate): Add handling of type mutation.
9201 (value_of_root): Add handling of type mutation.
9202 (ada_value_has_mutated): New function.
9203
9204 2012-03-28 Pedro Alves <palves@redhat.com>
9205
9206 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9207 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9208
9209 2012-03-28 Tom Tromey <tromey@redhat.com>
9210
9211 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9212 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9213 before returning.
9214
9215 2012-03-28 Tom Tromey <tromey@redhat.com>
9216
9217 * .dir-locals.el: New file.
9218
9219 2012-03-28 Pedro Alves <palves@redhat.com>
9220
9221 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9222
9223 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9224
9225 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9226 handling for r0.
9227
9228 2012-03-27 Pedro Alves <palves@redhat.com>
9229
9230 Eliminate struct ui_stream.
9231
9232 * ui-out.h (struct ui_stream): Delete.
9233 (ui_out_field_stream): Adjust prototype.
9234 (ui_out_stream_new, ui_out_stream_delete)
9235 (make_cleanup_ui_out_stream_delete): Delete declarations.
9236 * ui-out.c (ui_out_field_stream): Change prototype to take a
9237 ui_file instead of a ui_stream. Adjust.
9238 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9239 (make_cleanup_ui_out_stream_delete): Delete.
9240 * breakpoint.c (print_breakpoint_location)
9241 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9242 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9243 * disasm.c (dump_insns): Ditto.
9244 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9245 prototype.
9246 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9247 ui_stream/ui_out_stream_new.
9248 * infcmd.c (print_return_value): Ditto.
9249 * osdata.c (info_osdata_command): Don't allocate a local
9250 ui_stream.
9251 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9252 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9253 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9254 allocate a local ui_stream.
9255 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9256 instead of ui_stream/ui_out_stream_new.
9257 (list_args_or_locals): Don't allocate a local ui_stream.
9258 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9259 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9260 ui_stream/ui_out_stream_new.
9261 * cli/cli-setshow.c (do_setshow_command): Ditto.
9262
9263 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9264
9265 * arm-linux-tdep.c (arm_linux_init_abi): Call
9266 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9267 * arm-tdep.c (arm_process_record): New function.
9268 (deallocate_reg_mem): New function.
9269 (decode_insn): New function.
9270 (thumb_record_branch): New function.
9271 (thumb_record_ldm_stm_swi(): New function.
9272 (thumb_record_misc): New function.
9273 (thumb_record_ld_st_stack): New function.
9274 (thumb_record_ld_st_imm_offset): New function.
9275 (thumb_record_ld_st_reg_offset(): New function.
9276 (thumb_record_add_sub_cmp_mov): New function.
9277 (thumb_record_shift_add_sub): New function.
9278 (arm_record_coproc_data_proc): New function.
9279 (arm_record_coproc): New function.
9280 (arm_record_b_bl): New function.
9281 (arm_record_ld_st_multiple): New function.
9282 (arm_record_ld_st_reg_offset): New function.
9283 (arm_record_ld_st_imm_offset): New function.
9284 (arm_record_data_proc_imm): New function.
9285 (arm_record_data_proc_misc_ld_str): New function.
9286 (arm_record_extension_space): New function.
9287 (arm_record_strx): New function.
9288 (sbo_sbz): New function.
9289 (struct insn_decode_record): New structure for arm insn record.
9290 (REG_ALLOC): New macro for reg allocations.
9291 (MEM_ALLOC): New macro for memory allocations.
9292 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9293
9294 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9295
9296 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9297 (store_register): Likewise.
9298
9299 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9300
9301 * MAINTAINERS (Write After Approval): Add myself to the list.
9302
9303 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9304
9305 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9306 Describe also the option "auto".
9307
9308 2012-03-22 Richard Henderson <rth@redhat.com>
9309
9310 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9311 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9312
9313 2012-03-22 Richard Henderson <rth@redhat.com>
9314
9315 * jit.c (jit_read_code_entry): Compute alignment and offset of
9316 int64_t member before computing entry_size.
9317
9318 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9319
9320 Python scripting: Add new method Value.referenced_value to
9321 gdb.Value which can dereference pointer as well as reference
9322 values.
9323 * NEWS: Add entry under 'Python scripting' about the new method
9324 Value.referenced_value on gdb.Value objects.
9325 * python/py-value.c (valpy_referenced_value): New function
9326 defining a new method on gdb.Value objects which can dereference
9327 pointer and reference values.
9328
9329 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9330
9331 * MAINTAINERS (Write After Approval): Add myself to the list.
9332
9333 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9334
9335 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9336 in addition to "main".
9337
9338 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9339
9340 * expression.h (op_name): Add declaration.
9341 * expprint.c (op_name): Remove declaration. Make non-static.
9342 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9343
9344 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9345
9346 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9347 of struct siginfo.
9348 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9349 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9350 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9351 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9352 (linux_nat_get_siginfo): Likewise.
9353 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9354 (linux_nat_get_siginfo): Likewise.
9355 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9356 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9357 * procfs.c (gdb_siginfo_t): Likewise.
9358
9359 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9360
9361 * .gitignore: Ignore more files.
9362
9363 2012-03-20 Pedro Alves <palves@redhat.com>
9364
9365 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9366 returns.
9367
9368 2012-03-20 Yao Qi <yao@codesourcery.com>
9369
9370 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9371 comment.
9372
9373 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9374
9375 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9376 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9377 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9378 sect_offset.
9379 * dwarf2expr.h (cu_offset, sect_offset): New types.
9380 (struct dwarf_expr_context_funcs) <dwarf_call>
9381 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9382 sect_offset.
9383 (struct dwarf_expr_context) <len>: Improve the comment.
9384 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9385 cu_offset and sect_offset.
9386 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9387 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9388 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9389 * dwarf2loc.h: Include dwarf2expr.h.
9390 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9391 and sect_offset.
9392 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9393 Improve the comment.
9394 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9395 (struct signatured_type, struct line_header, struct partial_die_info)
9396 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9397 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9398 (get_die_type_at_offset, create_cus_from_index)
9399 (create_signatured_type_table_from_index, dw2_get_file_names)
9400 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9401 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9402 (create_debug_types_hash_table, process_psymtab_comp_unit)
9403 (load_partial_comp_unit, create_all_comp_units)
9404 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9405 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9406 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9407 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9408 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9409 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9410 (find_partial_die, read_attribute_value, lookup_die_type)
9411 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9412 (is_ref_attr): New function comment.
9413 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9414 Use cu_offset and sect_offset.
9415 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9416 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9417 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9418 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9419 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9420 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9421 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9422 sect_offset.
9423
9424 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9425
9426 Code cleanup.
9427 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9428 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9429 with xfree.
9430 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9431
9432 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9433
9434 * NEWS: Describe new options --init-command=FILE, -ix and
9435 --init-eval-command=COMMAND, -iex.
9436 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9437 CMDARG_INIT_COMMAND.
9438 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9439 "init-command", "init-eval-command", "ix" and "iex" to the variable
9440 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9441 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9442 (print_gdb_help): Describe --init-command=FILE, -ix and
9443 --init-eval-command=COMMAND, -iex.
9444
9445 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9446
9447 Code cleanup.
9448 * main.c (struct cmdarg): Move it here from main. Add more comments.
9449 (cmdarg_s, VEC (cmdarg_s)): New.
9450 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9451 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9452 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9453 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9454 of CMDARG.
9455
9456 2012-03-19 Tom Tromey <tromey@redhat.com>
9457
9458 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9459
9460 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9461
9462 PR symtab/13777
9463 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9464 GCC >=4.5.
9465
9466 2012-03-16 Chris January <chris.january@allinea.com>
9467
9468 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9469 of clear.
9470
9471 2012-03-16 Chris January <chris.january@allinea.com>
9472
9473 * source.c (add_path): Use memmove instead of strcpy because the
9474 strings overlap.
9475
9476 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9477
9478 * value.h (set_value_parent): Add declaration.
9479 * value.c (set_value_parent): New function.
9480 (value_address): If VALUE->PARENT is not NULL, then use it as
9481 the base address instead of VALUE->LOCATION.address.
9482 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9483 the same as OBJ's address. Adjust V's offset accordingly.
9484 Set V's parent.
9485
9486 2012-03-16 Gary Benson <gbenson@redhat.com>
9487
9488 PR breakpoints/10738
9489 * dwarf2read.c (use_deprecated_index_sections): New global.
9490 (struct partial_die_info): New member may_be_inlined.
9491 (read_partial_die): Set may_be_inlined where appropriate.
9492 (add_partial_subprogram): Add partial symbols for partial
9493 DIEs that may be inlined.
9494 (new_symbol_full): Add inlined subroutines to the current
9495 scope.
9496 (write_psymtabs_to_index): Bump version number.
9497 (dwarf2_read_index): Read only version 6 indices unless
9498 use_deprecated_index_sections is set.
9499 * linespec.c (symbol_and_data_callback): New structure.
9500 (iterate_inline_only): New function.
9501 (iterate_over_all_matching_symtabs): New argument
9502 "include_inline". If nonzero, also call the callback for
9503 symbols representing inlined subroutines.
9504 (lookup_prefix_sym): Pass extra argument to the above.
9505 (find_function_symbols): Likewise.
9506 (add_matching_symbols_to_info): Likewise.
9507 * NEWS: Mention that GDB can now set breakpoints on inlined
9508 functions.
9509
9510 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9511
9512 * p-typeprint.c (pascal_type_print_method_args):
9513 Fix display of parameter of methods.
9514
9515 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9516
9517 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9518 Add missing prototype.
9519
9520 2012-03-16 Yao Qi <yao@codesourcery.com>
9521 Jan Kratochvil <jan.kratochvil@redhat.com>
9522
9523 Fix false compilation warning.
9524 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9525
9526 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9527 Pedro Alves <pedro@codesourcery.com>
9528
9529 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9530 (arm_register_g_packet_guesses): New function.
9531 (arm_gdbarch_init): Don't force a target description with
9532 registers when the executable is detected as M-profile. Instead
9533 set gdbarch->tdep->is_m. Register `g' packet guesses.
9534 (_initialize_arm_tdep): Initialize the new target description.
9535 * features/arm-with-m-fpa-layout.xml: New description.
9536 * features/arm-with-m-fpa-layout.c: New, generated.
9537
9538 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9539
9540 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9541 Update function description.
9542 (insert_bp_location): Do not wipe bl->target_info out.
9543 * mem-break.c: #include "gdb_string.h".
9544 (default_memory_insert_breakpoint): Do not call target_read_memory
9545 with a pointer to the breakpoint's shadow_contents buffer. Use
9546 a local buffer instead.
9547 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9548
9549 2012-03-15 Tom Tromey <tromey@redhat.com>
9550
9551 * NEWS: Mention "info vtbl", not "info vtable".
9552 * cp-support.c (info_vtbl_command): Fix comment.
9553 (_initialize_cp_support): Fix text.
9554
9555 2012-03-15 Tom Tromey <tromey@redhat.com>
9556
9557 * cp-valprint.c (cp_print_value_fields): Use
9558 print_function_pointer_address for vtable slot.
9559
9560 2012-03-15 Tom Tromey <tromey@redhat.com>
9561
9562 * gnu-v3-abi.c (struct value_and_voffset): New.
9563 (hash_value_and_voffset, eq_value_and_voffset)
9564 (compare_value_and_voffset, compute_vtable_size)
9565 (print_one_vtable, gnuv3_print_vtable): New functions.
9566 (init_gnuv3_ops): Initialize 'print_vtable' field.
9567 * cp-support.c (info_vtbl_command): New function.
9568 (_initialize_cp_support): Add "info vtbl".
9569 * cp-abi.h (cplus_print_vtable): Declare.
9570 (struct cp_abi_ops) <print_vtable>: New field.
9571 * cp-abi.c (cplus_print_vtable): New function.
9572 * NEWS: Update.
9573
9574 2012-03-15 Tom Tromey <tromey@redhat.com>
9575
9576 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9577 iterate_over_symbols.
9578
9579 2012-03-14 Doug Evans <dje@google.com>
9580
9581 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9582 DW_OP_GNU_parameter_ref.
9583
9584 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9585
9586 Fix double prompt of 'interpreter-exec mi'.
9587 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9588 (mi_interpreter_resume): use it.
9589 (mi_execute_command_input_handler): New function.
9590 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9591 mi_execute_command_input_handler.
9592
9593 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9594
9595 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9596 prototype.
9597 (darwin_debug_port_info): Make static.
9598 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9599 * machoread.c (_initialize_machoread): Add prototype.
9600 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9601 (i386_darwin_set_control, i386_darwin_get_control)
9602 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9603 i386_darwin_get_status, i386_darwin_get_control):
9604 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9605
9606 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9607
9608 * ax-gdb.c (gen_usual_unary): Remove special handling of
9609 enum and bool types.
9610
9611 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9612
9613 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9614
9615 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9616
9617 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9618
9619 2012-03-13 Chris January <chris.january@allinea.com>
9620
9621 * aix-thread.c (fill_sprs): Store the floating point registers
9622 at the correct offsets into vals.
9623
9624 2012-03-13 Doug Evans <dje@google.com>
9625
9626 * NEWS: Mention symbol-reloading has been deleted.
9627 * symfile.c (symbol_reloading): Delete.
9628 (show_symbol_reloading): Delete.
9629 (_initialize_symfile): Delete set/show symbol-reloading.
9630
9631 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9632 read_in_chain until we have successfully read it in.
9633 (load_full_comp_unit): Ditto.
9634 (read_signatured_type): Add comment.
9635
9636 2012-03-13 Chris January <chris.january@allinea.com>
9637
9638 * stabsread.c (fix_common_block): Change type of valu argument
9639 to CORE_ADDR.
9640
9641 2012-03-13 Chris January <chris.january@allinea.com>
9642
9643 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9644 instruction.
9645
9646 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9647
9648 * common/linux-procfs.c (linux_proc_get_int): New, from
9649 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9650 field.
9651 (linux_proc_get_tgid): Only call linux_proc_get_int.
9652 (linux_proc_get_tracerpid): New.
9653 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9654 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9655 linux_proc_pid_has_state.
9656 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9657 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9658 (linux_ptrace_attach_warnings): New.
9659 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9660 New declaration.
9661 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9662 (linux_nat_attach): New variables ex, buffer, message and message_s.
9663 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9664
9665 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9666
9667 * Makefile.in (linux-ptrace.o): New.
9668 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9669 from linux-nat.c.
9670 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9671 * common/linux-ptrace.c: New file.
9672 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9673 * config/arm/linux.mh: Likewise.
9674 * config/i386/linux.mh: Likewise.
9675 * config/i386/linux64.mh: Likewise.
9676 * config/ia64/linux.mh: Likewise.
9677 * config/m32r/linux.mh: Likewise.
9678 * config/m68k/linux.mh: Likewise.
9679 * config/mips/linux.mh: Likewise.
9680 * config/pa/linux.mh: Likewise.
9681 * config/powerpc/linux.mh: Likewise.
9682 * config/powerpc/ppc64-linux.mh: Likewise.
9683 * config/powerpc/spu-linux.mh: Likewise.
9684 * config/s390/s390.mh: Likewise.
9685 * config/sparc/linux.mh: Likewise.
9686 * config/sparc/linux64.mh: Likewise.
9687 * config/xtensa/linux.mh: Likewise.
9688 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9689 common/linux-procfs.c.
9690 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9691
9692 2012-03-13 Hui Zhu <teawater@gmail.com>
9693 Pedro Alves <palves@redhat.com>
9694
9695 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9696 CREATE_BREAKPOINT_FLAGS_INSERTED.
9697 (create_breakpoint_sal, create_breakpoints_sal)
9698 (base_breakpoint_create_breakpoints_sal)
9699 (tracepoint_create_breakpoints_sal)
9700 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9701 down.
9702 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9703 (ftrace_command, strace_command): Adjust.
9704 (create_tracepoint_from_upload): Pass
9705 CREATE_BREAKPOINT_FLAGS_INSERTED.
9706 * breakpoint.h (enum breakpoint_create_flags): New.
9707 (create_breakpoint): New flags parameter.
9708 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9709 * python/py-breakpoint.c (bppy_init): Adjust.
9710 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9711 * spu-tdep.c (spu_catch_start): Adjust.
9712
9713 2012-03-13 Pedro Alves <palves@redhat.com>
9714 Hui Zhu <teawater@gmail.com>
9715 Yao Qi <yao@codesourcery.com>
9716
9717 * remote.c (struct remote_state): New field `starting_up'.
9718 (remote_start_remote): Set and clear it.
9719 (remote_can_download_tracepoint): If starting up, return false.
9720
9721 2012-03-13 Yao Qi <yao@codesourcery.com>
9722
9723 * inferior.h (struct inferior): Remove fields any_syscall_count,
9724 syscalls_counts and total_syscalls_count. Move them to new
9725 struct catch_syscall_inferior_data in breakpoint.c.
9726 * breakpoint.c: Call DEF_VEC_I(int).
9727 (struct catch_syscall_inferior_data): New.
9728 (get_catch_syscall_inferior_data): New.
9729 (catch_syscall_inferior_data_cleanup): New.
9730 (insert_catch_syscall): Update to access data in
9731 struct catch_syscall_inferior_data.
9732 (insert_catch_syscall): Likewise.
9733 (remove_catch_syscall): Likewise.
9734 (remove_catch_syscall): Likewise.
9735 (is_syscall_catchpoint_enabled): Likewise.
9736 (add_catch_command): Likewise.
9737 (_initialize_breakpoint): Register cleanup.
9738 * breakpoint.h: Removed DEF_VEC_I(int).
9739 * dwarf2loc.c: Call DEF_VEC_I(int).
9740 * mi/mi-main.c: Likewise.
9741
9742 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9743
9744 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9745
9746 2012-03-12 Chris January <chris.january@allinea.com>
9747
9748 * aix-thread.c (_initialize_aix_thread): Add prototype.
9749 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9750 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9751
9752 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9753
9754 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9755 include of "amd64-nat.h".
9756
9757 2012-03-12 Tom Tromey <tromey@redhat.com>
9758
9759 * buildsym.c (record_pending_block): Now static.
9760 * buildsym.h: (record_pending_block): Remove.
9761
9762 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9763
9764 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9765
9766 2012-03-09 Tom Tromey <tromey@redhat.com>
9767
9768 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9769 producer_is_gxx_lt_4_6>: New fields.
9770 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9771
9772 2012-03-09 Tom Tromey <tromey@redhat.com>
9773
9774 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9775
9776 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9777
9778 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9779 prototype.
9780
9781 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9782
9783 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9784
9785 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9786
9787 Fix -Wmissing-prototypes build.
9788 * arm-linux-nat.c (get_thread_id): Make it static.
9789 * xtensa-linux-nat.c (get_thread_id): Likewise.
9790
9791 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9792
9793 * server.c (process_point_options): If a conditional expression
9794 is found, only print a message if remote_debug is nonzero.
9795
9796 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9797
9798 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9799 of internal error for unknown/unsupported types.
9800
9801 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9802
9803 Fix CU relative vs. absolute DIE offsets.
9804 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9805 offset to offset_in_cu.
9806 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9807 TYPE_OFFSET.
9808 (dwarf2_fetch_die_location_block): Rename parameter offset to
9809 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9810
9811 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9812
9813 * libunwind-frame.c: Rename to ...
9814 * ia64-libunwind-tdep.c: ... here.
9815 * libunwind-frame.h: Rename to ...
9816 * ia64-libunwind-tdep.h: ... here.
9817 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9818 ia64-libunwind-tdep.h.
9819 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9820 * README (--with-libunwind): Rename to ...
9821 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9822 * config.in: Regenerate.
9823 * configure: Regenerate.
9824 * configure.ac: New option --with-libunwind-ia64, make the
9825 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9826 Remove AC_DEFINE for HAVE_LIBUNWIND.
9827 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9828 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9829 Rename libunwind-frame in the general comment.
9830 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9831 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9832 Move forward declarations inside #ifndef. Rename libunwind-frame in
9833 the general comment.
9834 * ia64-tdep.c: Rename libunwind-frame.h #include to
9835 ia64-libunwind-tdep.h.
9836 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9837 (ia64_libunwind_descr): Rename libunwind-frame to
9838 ia64-libunwind-tdep in these function comments.
9839 * ia64-tdep.h: Rename libunwind-frame.h #include to
9840 ia64-libunwind-tdep.h.
9841 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9842 ia64-libunwind-tdep in that data comment.
9843
9844 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9845
9846 * libunwind-frame.h (struct frame_unwind): New declaration.
9847
9848 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9849
9850 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9851 "set breakpoint condition-evaluation" command.
9852
9853 2012-03-08 Tristan Gingold <gingold@adacore.com>
9854
9855 * sparc-stub.c: Move to stubs/
9856 * sh-stub.c: Likewise.
9857 * m68k-stub.c: Likewise.
9858 * m32r-stub.c: Likewise.
9859 * i386-stub.c: Likewise.
9860
9861 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9862
9863 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9864 linux_get_siginfo_type.
9865
9866 * m68klinux-nat.c: Include "gdb_proc_service.h".
9867 (PTRACE_GET_THREAD_AREA): Define.
9868 (ps_get_thread_area): New function.
9869
9870 2012-03-08 Yao Qi <yao@codesourcery.com>
9871
9872 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9873 `xsnprintf'.
9874 (remote_query_attached): Likewise.
9875 (remote_static_tracepoint_marker_at): Likewise.
9876 (remote_set_permissions): Likewise.
9877 (remote_detach_1, extended_remote_attach_1): Likewise.
9878 (send_g_packet, remote_vkill): Likewise.
9879 (extended_remote_disable_randomization): Likewise.
9880 (remote_add_target_side_condition): Likewise.
9881 (remote_insert_breakpoint): Likewise.
9882 (remote_remove_breakpoint): Likewise.
9883 (remote_insert_watchpoint): Likewise.
9884 (remote_remove_watchpoint): Likewise.
9885 (remote_insert_hw_breakpoint): Likewise.
9886 (remote_insert_hw_breakpoint): Likewise.
9887 (remote_remove_hw_breakpoint): Likewise.
9888 (remote_download_command_source): Likewise.
9889 (remote_download_tracepoint): Likewise.
9890 (remote_download_trace_state_variable): Likewise.
9891 (remote_disable_tracepoint): Likewise.
9892 (remote_trace_set_readonly_regions): Likewise.
9893 (remote_get_tracepoint_status): Likewise.
9894 (remote_trace_find): Likewise.
9895 (remote_get_trace_state_variable_value): Likewise.
9896 (remote_set_disconnected_tracing): Likewise.
9897 (remote_set_circular_trace_buffer): Likewise.
9898 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9899 (remote_use_agent): Likewise.
9900 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9901 Update callers.
9902
9903 2012-03-07 Pedro Alves <palves@redhat.com>
9904
9905 * NEWS: Mention QProgramSignals.
9906 * inferior.h (update_signals_program_target): Declare.
9907 * infrun.c: (update_signals_program_target): New.
9908 (handle_command): Update the target of the new program signals
9909 array changes.
9910 * remote.c (PACKET_QProgramSignals): New enum.
9911 (last_program_signals_packet): New global.
9912 (remote_program_signals): New.
9913 (remote_start_remote): Update the target with the program signals
9914 list.
9915 (remote_protocol_features): Add entry for QPassSignals.
9916 (remote_open_1): Free anc clear last_program_signals_packet.
9917 (init_remote_ops): Install remote_program_signals.
9918 * target.c (update_current_target): Adjust.
9919 (target_program_signals): New.
9920 * target.h (struct target_ops) <to_program_signals>: New field.
9921 (target_program_signals): Declare.
9922
9923 2012-03-07 Pedro Alves <palves@redhat.com>
9924
9925 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9926 extensions.
9927
9928 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9929
9930 * m68klinux-nat.c (getregs_supplies): Make static.
9931 (getfpregs_supplies): Likewise.
9932 (have_ptrace_getregs): Likewise.
9933
9934 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9935
9936 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9937 in call to get_die_type_at_offset.
9938
9939 2012-03-06 Stan Shebs <stan@codesourcery.com>
9940
9941 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9942 * mi/mi-cmd-disas.c: Ditto.
9943 * mi/mi-cmd-env.c: Ditto.
9944 * mi/mi-cmd-file.c: Ditto.
9945 * mi/mi-cmd-stack.c: Ditto.
9946 * mi/mi-cmd-target.c: Ditto.
9947 * mi/mi-cmd-var.c: Ditto.
9948 * mi/mi-cmds.c: Ditto.
9949 * mi/mi-cmds.h: Ditto.
9950 * mi/mi-console.c: Ditto.
9951 * mi/mi-getopt.c: Ditto.
9952 * mi/mi-getopt.h: Ditto.
9953 * mi/mi-interp.c: Ditto.
9954 * mi/mi-main.c: Ditto.
9955 * mi/mi-out.c: Ditto.
9956 * mi/mi-parse.c: Ditto.
9957 * mi/mi-parse.h: Ditto.
9958 * mi/mi-symbol-cmds.c: Ditto.
9959
9960 * mi/mi-getopt.h: Move mi_opt struct up.
9961 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9962 return.
9963 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9964
9965 2012-03-06 Tom Tromey <tromey@redhat.com>
9966
9967 * proc-service.c (ps_pglobal_lookup): Set the current program
9968 space.
9969
9970 2012-03-06 Pedro Alves <palves@redhat.com>
9971
9972 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9973
9974 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9975
9976 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9977
9978 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9979
9980 Code cleanup.
9981 * common/linux-osdata.c (linux_common_core_of_thread): New function
9982 comment.
9983 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9984 call by linux_common_core_of_thread.
9985 (linux_nat_core_of_thread_1): Remove.
9986 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9987 * linux-thread-db.c: Include linux-osdata.h.
9988 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9989 linux_common_core_of_thread.
9990
9991 2012-03-05 Tom Tromey <tromey@redhat.com>
9992
9993 * value.c (value_primitive_field): Don't fetch contents for
9994 non-virtual bases.
9995
9996 2012-03-05 Tom Tromey <tromey@redhat.com>
9997
9998 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9999
10000 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10001
10002 * s390-nat.c: Include "gregset.h".
10003
10004 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10005
10006 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10007 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10008 (libunwind_load): New variable so_error, use it for dlerror. Try to
10009 load also LIBUNWIND_SO_7.
10010
10011 2012-03-05 Pedro Alves <palves@redhat.com>
10012
10013 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10014 is not NULL, and remove resulting dead code.
10015
10016 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10017
10018 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10019 prologue to sh_analyze_prologue.
10020 (sh_analyze_prologue): Make better use of such an upper limit, and
10021 generally be more cautious about accessing memory.
10022
10023 2012-03-05 Tom Tromey <tromey@redhat.com>
10024
10025 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10026 _initialize_ia64_hpux_tdep.
10027
10028 2012-03-05 Pedro Alves <palves@redhat.com>
10029
10030 PR gdb/13766
10031
10032 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10033 the register state is clear, supply explicit zero, instead of
10034 marking the register unavailable.
10035
10036 2012-03-05 Tristan Gingold <gingold@adacore.com>
10037
10038 * NEWS: Mention OpenVMS ia64 new target.
10039
10040 2012-03-05 Tristan Gingold <gingold@adacore.com>
10041
10042 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10043 (ia64_unw_accessors, ia64_unw_rse_accessors)
10044 (ia64_libunwind_descr): Declare.
10045 * ia64-vms-tdep.c: New file.
10046 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10047 (ia64_libunwind_descr): Make them public.
10048 * configure.tgt: Add ia64-*-*vms*.
10049 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10050 (ALLDEPFILES): Add ia64-vms-tdep.c
10051
10052 2012-03-05 Tristan Gingold <gingold@adacore.com>
10053
10054 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10055 * remote.c (PACKET_qXfer_uib): New enum value.
10056 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10057 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10058 (_initialize_remote): Call add_packet_config_cmd for
10059 xfer:uib packet.
10060
10061 2012-03-05 Tristan Gingold <gingold@adacore.com>
10062
10063 * osabi.c (gdb_osabi_names): Add OpenVMS.
10064 (generic_elf_osabi_sniffer): Likewise.
10065 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10066
10067 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10068
10069 Removed unused code.
10070 * libunwind-frame.c (libunwind_frame_unwind)
10071 (libunwind_frame_base_address): Remove.
10072 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10073
10074 2012-03-04 Yao Qi <yao@codesourcery.com>
10075
10076 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10077 remove trailing new line.
10078 (agent_run_command, agent_run_command): Add _ markup.
10079 (agent_capability_check): Likewise.
10080
10081 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10082
10083 * breakpoint.c (set_condition_evaluation_mode): Set
10084 CONDITION_EVALUATION_MODE unconditionally.
10085
10086 2012-03-03 Yao Qi <yao@codesourcery.com>
10087
10088 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10089 * common/agent.h: Update declaration.
10090 * inf-child.c (inf_child_use_agent): New.
10091 (inf_child_can_use_agent): New.
10092 (inf_child_target): Initialize fields `to_use_agent'
10093 and `to_can_use_agent'.
10094 * agent.c (agent_new_objfile): New.
10095 (_initialize_agent): Add agent_new_objfile to new_objfile
10096 observer.
10097
10098 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10099 New.
10100 (linux_target_install_ops): Initialize field
10101 `to_static_tracepoint_markers_by_strid'.
10102 * remote.c (free_current_marker): Move it to ...
10103 * tracepoint.c (free_current_marker): ... here. New.
10104 (cleanup_target_stop): New.
10105 * tracepoint.h: Declare free_current_marker.
10106 * NEWS: Add one entry about `info static-tracepoint-marker'.
10107
10108 2012-03-03 Yao Qi <yao@codesourcery.com>
10109
10110 * common/agent.c (agent_loaded_p): New.
10111 (agent_look_up_symbols): New global.
10112 * common/agent.h: Declare agent_loaded_p.
10113
10114 2012-03-03 Yao Qi <yao@codesourcery.com>
10115
10116 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10117 (agent_capability_check, agent_capability_invalidate): New.
10118 (symbol_list): New array element.
10119 * common/agent.h (enum agent_capa): New.
10120 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10121
10122 2012-03-03 Yao Qi <yao@codesourcery.com>
10123
10124 * target.h (struct target_ops) <to_use_agent>: New field.
10125 (struct target_ops) <to_can_use_agent>: New field.
10126 (target_use_agent, target_can_use_agent): New macro.
10127 * target.c (update_current_target): Update.
10128 * remote.c: New enum `PACKET_QAgent'.
10129 (remote_protocol_features): Add a new element.
10130 (remote_use_agent, remote_can_use_agent): New.
10131 (init_remote_ops): Initialize field `can_use_agent' with
10132 remote_can_use_agent. Intiailize field `use_agent' with
10133 remote_use_agent.
10134 * common/agent.c (use_agent): New global.
10135 * common/agent.h: Declare it.
10136 * tracepoint.c (info_static_tracepoint_markers_command): Add
10137 comment.
10138 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10139 (COMMON_OBS): Add common/agent.o and agent.o
10140 (common-agent.o): New rule.
10141 * agent.c: New.
10142
10143 2012-03-03 Yao Qi <yao@codesourcery.com>
10144
10145 * common/agent.c: New.
10146 * common/agent.h: New.
10147 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10148 AC_CHECK_HEADERS.
10149 * configure, configh.in: Regenerated.
10150
10151 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10152
10153 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10154 unless it exists for this architecture.
10155
10156 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10157
10158 * language.h (struct language_defn): New "method" la_read_var_value.
10159 * findvar.c: #include "language.h".
10160 (default_read_var_value): Renames read_var_value. Rewrite
10161 function description.
10162 (read_var_value): New function.
10163 * value.h (default_read_var_value): Add prototype.
10164 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10165 New functions.
10166 (ada_language_defn): Add entry for la_read_var_value.
10167 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10168 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10169 language_defn structures to add entry for new la_read_var_value
10170 field.
10171
10172 2012-03-02 Tom Tromey <tromey@redhat.com>
10173 Pedro Alves <palves@redhat.com>
10174
10175 PR breakpoints/13776:
10176 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10177 breakpoints.
10178 (delete_longjmp_breakpoint_at_next_stop): New.
10179 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10180 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10181 before deleting the inferior. Add comments.
10182 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10183 breakpoints immediately, but only on next stop. Move that code
10184 next to where we mark other breakpoints for deletion.
10185
10186 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10187
10188 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10189 marker.
10190 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10191 violation.
10192
10193 2012-03-02 Pedro Alves <palves@redhat.com>
10194
10195 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10196
10197 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10198
10199 Fix -Wmissing-prototypes build.
10200 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10201 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10202 (gdbsim_has_memory): Likewise.
10203
10204 2012-03-02 Yao Qi <yao@codesourcery.com>
10205
10206 Fix -Wmissing-prototypes build.
10207 * charset.c (phony_iconv_open): Make static.
10208 (phony_iconv_close, phony_iconv): Likewise.
10209 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10210 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10211 prototype.
10212 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10213 * ser-mingw.c (create_select_thread): Make static.
10214 * windows-termcap.c (tgetent): New prototype.
10215 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10216
10217 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10218
10219 Fix -Wmissing-prototypes build.
10220 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10221 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10222 (_initialize_loadable): New prototypes.
10223
10224 2012-03-02 Doug Evans <dje@google.com>
10225
10226 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10227 abbrev table, read_comp_unit will do it.
10228
10229 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10230
10231 Fix -Wmissing-prototypes build.
10232 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10233 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10234 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10235 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10236 (_initialize_arm_symbian_tdep): New prototype.
10237 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10238 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10239 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10240 static.
10241 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10242 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10243 prototype.
10244 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10245 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10246 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10247 static.
10248 * moxie-tdep.c (moxie_process_record): Likewise.
10249 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10250 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10251 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10252 (_initialize_rl78_tdep): New prototype.
10253 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10254 (_initialize_rx_tdep): New prototype.
10255 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10256 (_initialize_darwin_solib): New prototype.
10257 * solib-spu.c: Include solib-spu.h.
10258 (_initialize_spu_solib): New prototype.
10259 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10260 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10261 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10262 (tic6x_software_single_step): Make it static.
10263 (_initialize_tic6x_tdep): New prototype.
10264
10265 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10266
10267 Fix -Wmissing-prototypes build.
10268 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10269 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10270
10271 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10272
10273 Fix -Wmissing-prototypes build.
10274 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10275 (frv_have_stopped_data_address): Remove.
10276
10277 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10278
10279 Fix -Wmissing-prototypes build.
10280 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10281 * sh-tdep.c: Include sh64-tdep.h.
10282 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10283 * sh64-tdep.c: Include sh64-tdep.h.
10284 * sh64-tdep.h: New file.
10285
10286 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10287
10288 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10289
10290 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10291
10292 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10293 sp_regnum once the gdbarch_init_osabi hook has been called.
10294
10295 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10296
10297 * mips-tdep.c (mips32_bc1_pc): New function.
10298 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10299 BPOSGE32 and BPOSGE64 instructions.
10300 (deal_with_atomic_sequence): Likewise.
10301 (mips32_instruction_has_delay_slot): Likewise.
10302
10303 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10304 Chris Dearman <chris@mips.com>
10305 Maciej W. Rozycki <macro@codesourcery.com>
10306 Joseph Myers <joseph@codesourcery.com>
10307
10308 * features/mips-dsp.xml: New file.
10309 * features/mips64-dsp.xml: New file.
10310 * features/mips-dsp-linux.xml: New file.
10311 * features/mips64-dsp-linux.xml: New file.
10312 * features/Makefile (WHICH): Add mips-dsp-linux and
10313 mips64-dsp-linux.
10314 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10315 * features/mips-dsp-linux.c: New file.
10316 * features/mips64-dsp-linux.c: New file.
10317 * regformats/mips-dsp-linux.dat: New file.
10318 * regformats/mips64-dsp-linux.dat: New file.
10319 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10320 registers.
10321 (mips64_linux_register_addr): Likewise.
10322 (mips64_linux_regsets_fetch_registers): Likewise.
10323 (mips64_linux_regsets_store_registers): Likewise.
10324 (mips64_linux_fetch_registers): Update call to
10325 mips64_linux_regsets_fetch_registers.
10326 (mips64_linux_store_registers): Update call to
10327 mips64_linux_regsets_store_registers.
10328 (mips_linux_read_description): Probe for DSP registers.
10329 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10330 and initialize_tdesc_mips64_dsp_linux.
10331 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10332 Remove padding of no longer used embedded register slots.
10333 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10334 (MIPS_RESTART_REGNUM): Redefine enum value.
10335 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10336 strings.
10337 (mips_tx39_reg_names): Likewise.
10338 (mips_linux_reg_names): New array of register names for Linux
10339 targets.
10340 (mips_register_name): Check for a null pointer in
10341 mips_processor_reg_names and return an empty string.
10342 (mips_register_type): Exclude embedded registers for the IRIX
10343 and Linux ABIs.
10344 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10345 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10346 DSP registers.
10347 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10348 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10349 (mips_gdbarch_init): Likewise. Initialize internal register
10350 indices for the Linux ABI. Use dynamic numbers to refer to
10351 registers, as applicable, while parsing the target description.
10352 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10353
10354 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10355
10356 * frame.h (read_frame_register_unsigned): Fix typo in function
10357 description.
10358
10359 2012-03-01 Pedro Alves <palves@redhat.com>
10360
10361 * jit-reader.in [!__cplusplus]
10362 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10363
10364 2012-03-01 Pedro Alves <palves@redhat.com>
10365
10366 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10367 * configure: Regenerate.
10368
10369 2012-03-01 Pedro Alves <palves@redhat.com>
10370
10371 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10372 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10373 (ftrace_command, strace_command): Make static.
10374 * d-lang.c (_initialize_d_language): Declare.
10375 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10376 * dwarf2loc.c (_initialize_dwarf2loc):
10377 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10378 * exec.c (exec_get_section_table): Make static.
10379 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10380 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10381 * inferior.c (remove_inferior_command, add_inferior_command)
10382 (clone_inferior_command): Make static.
10383 * linux-nat.c (linux_nat_thread_address_space)
10384 (linux_nat_core_of_thread): Make static.
10385 * linux-tdep.c (_initialize_linux_tdep): Declare.
10386 * objc-lang.c (_initialize_objc_lang): Declare.
10387 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10388 Make static.
10389 (_initialize_opencl_language): Declare.
10390 * record.c (_initialize_record): Declare.
10391 * remote.c (demand_private_info, remote_get_tib_address)
10392 (remote_supports_cond_tracepoints)
10393 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10394 Make static.
10395 * skip.c (_initialize_step_skip): Declare.
10396 * symtab.c (skip_prologue_using_lineinfo): Make static.
10397 * tracepoint.c (delete_trace_state_variable)
10398 (trace_variable_command, delete_trace_variable_command)
10399 (get_uploaded_tsv, find_matching_tracepoint_location)
10400 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10401 Make static.
10402 * value.c (pack_unsigned_long): Make static.
10403 * varobj.c (varobj_ensure_python_env): Make static.
10404 * windows-tdep.c (_initialize_windows_tdep): Declare.
10405 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10406
10407 2012-03-01 Pedro Alves <palves@redhat.com>
10408
10409 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10410 gdbarch parameter.
10411 (linux_init_abi): Install it as has_shared_address_space gdbarch
10412 callback.
10413
10414 2012-03-01 Pedro Alves <palves@redhat.com>
10415
10416 * observer.c (observer_test_first_notification_function)
10417 (observer_test_second_notification_function)
10418 (observer_test_third_notification_function): Add declarations.
10419
10420 2012-03-01 Pedro Alves <palves@redhat.com>
10421
10422 * common/signals.c (default_target_signal_to_host)
10423 (default_target_signal_from_host): Move ...
10424 * arch-utils.c: ... here.
10425 * arch-utils.h (default_target_signal_to_host)
10426 (default_target_signal_from_host): Declare.
10427
10428 * common/signals.c (target_signal_from_command): Move ...
10429 * infrun.c: ... here.
10430 * inferior.h (target_signal_from_command): Declare.
10431 * target.h (target_signal_from_command)
10432 (default_target_signal_from_host, default_target_signal_to_host):
10433 Delete declarations.
10434
10435 * common/signals.c (_initialize_signals): Delete.
10436
10437 2012-03-01 Pedro Alves <palves@redhat.com>
10438
10439 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10440 both __cplusplus and !__cplusplus.
10441
10442 2012-03-01 Pedro Alves <palves@redhat.com>
10443
10444 * psymtab.c (find_and_open_source): Delete declaration.
10445 * source.c (find_and_open_source): Move comment ...
10446 * source.h (find_and_open_source): ... to this new declaration.
10447
10448 2012-03-01 Pedro Alves <palves@redhat.com>
10449
10450 * inline-frame.c: Include inline-frame.h.
10451
10452 2012-03-01 Pedro Alves <palves@redhat.com>
10453
10454 * tui/tui-data.c (set_gen_win_origin): Delete.
10455 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10456 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10457
10458 2012-03-01 Pedro Alves <palves@redhat.com>
10459
10460 * remote.c (encode_actions): Delete declaration.
10461 * tracepoint.c (encode_actions): Make extern.
10462 * tracepoint.h (encode_actions): Declare.
10463
10464 2012-03-01 Pedro Alves <palves@redhat.com>
10465
10466 * python/py-breakpoint.c: Include python.h.
10467 * python/py-continueevent.c (create_continue_event_object): Make
10468 static.
10469 * python/py-lazy-string.c (stpy_get_type): Make static.
10470 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10471 Make static.
10472 * python/py-utils.c (unicode_to_target_python_string): Make
10473 static.
10474 * python/py-value.c: Include python.h.
10475
10476 2012-03-01 Pedro Alves <palves@redhat.com>
10477
10478 * inferior.c (delete_threads_of_inferior): Delete.
10479
10480 2012-03-01 Pedro Alves <palves@redhat.com>
10481
10482 Import fallback definitions from glibc.
10483
10484 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10485 ps_prochandle): Forward declare.
10486 (ps_err_e): Use glibc's comments.
10487 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10488 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10489 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10490 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10491 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10492 (struct ps_prochandle): Adjust comment.
10493
10494 2012-03-01 Pedro Alves <palves@redhat.com>
10495
10496 * ada-lang.c (ada_modulus_from_name): Delete.
10497 * ada-lex.l (lexer_init): Make static.
10498
10499 2012-03-01 Pedro Alves <palves@redhat.com>
10500
10501 PR gdb/13767
10502
10503 * frame.c (read_frame_register_unsigned): New.
10504 * frame.h (read_frame_register_unsigned): Declare.
10505 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10506 Handle it.
10507 (print_i387_control_word): New parameter `control_p'. Handle it.
10508 (i387_print_float_info): Handle unavailable float registers.
10509
10510 2012-03-01 Keith Seitz <keiths@redhat.com>
10511
10512 * linespec.c (decode_line_2): Sort the list of methods
10513 alphabetically before presenting the user with a selection
10514 menu.
10515
10516 2012-03-01 Doug Evans <dje@google.com>
10517
10518 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10519 has_namespace_info.
10520 (dwarf2_read_abbrevs): Remove corresponding initialization.
10521
10522 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10523
10524 * NEWS: Mention new python command class gdb.COMMAND_USER.
10525 * cli/cli-cmds.c (show_user): Print error when used on a python
10526 command.
10527 (init_cli_cmds): Update documentation strings for "show user" and
10528 "set/show max-user-call-depth" to clarify that it does not apply to
10529 python commands.
10530 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10531 error check.
10532 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10533 gdb python api.
10534 * top.c (execute_command): Only execute a user-defined command as a
10535 legacy macro if c->user_commands is set.
10536
10537 2012-03-01 Tom Tromey <tromey@redhat.com>
10538
10539 * valprint.h (struct generic_val_print_decorations): New.
10540 (generic_val_print): Declare.
10541 * valprint.c (generic_val_print): New function.
10542 * p-valprint.c (p_decorations): New global.
10543 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10544 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10545 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10546 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10547 * m2-valprint.c (m2_decorations): New global.
10548 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10549 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10550 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10551 TYPE_CODE_ERROR>: Call generic_val_print.
10552 * f-valprint.c (f_decorations): New global.
10553 (f_val_print): Use print_function_pointer_address.
10554 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10555 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10556 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10557 generic_val_print.
10558 * c-valprint.c (c_decorations): New global.
10559 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10560 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10561 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10562 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10563 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10564 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10565 case.
10566
10567 2012-03-01 Tom Tromey <tromey@redhat.com>
10568
10569 * valprint.c (val_print): Update.
10570 * p-valprint (pascal_val_print): Return void.
10571 * p-lang.h (pascal_val_print): Return void.
10572 * m2-valprint.c (m2_val_print): Return void.
10573 * m2-lang.h (m2_val_print): Return void.
10574 * language.h (struct language_defn) <la_val_print>: Return void.
10575 * language.c (unk_lang_val_print): Return void.
10576 * jv-valprint.c (java_val_print): Return void.
10577 * jv-lang.h (java_val_print): Return void.
10578 * f-valprint.c (f_val_print): Return void.
10579 * f-lang.h (f_val_print): Return void.
10580 * d-valprint.c (d_val_print): Return void.
10581 (dynamic_array_type): Update.
10582 * d-lang.h (d_val_print): Return void.
10583 * c-valprint.c (c_val_print): Return void.
10584 * c-lang.h (c_val_print): Return void.
10585 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10586 void.
10587 * ada-lang.h (ada_val_print): Return void.
10588
10589 2012-03-01 Tom Tromey <tromey@redhat.com>
10590
10591 * value.h (val_print): Return void.
10592 * valprint.c (val_print): Return void.
10593
10594 2012-03-01 Tom Tromey <tromey@redhat.com>
10595
10596 * value.h (common_val_print): Return void.
10597 * valprint.c (common_val_print): Return void.
10598
10599 2012-03-01 Tom Tromey <tromey@redhat.com>
10600
10601 * value.h (value_print): Return void.
10602 * valprint.c (value_print): Return void.
10603 * p-valprint.c (pascal_value_print): Return void.
10604 * p-lang.h (pascal_value_print): Return void.
10605 * language.h (struct language_defn) <la_value_print>: Return
10606 void.
10607 * language.c (unk_lang_value_print): Return void.
10608 * jv-valprint.c (java_value_print): Return void.
10609 * jv-lang.h (java_value_print): Return void.
10610 * f-valprint.c (c_value_print): Don't declare.
10611 Include c-lang.h.
10612 * c-valprint.c (c_value_print): Return void.
10613 * c-lang.h (c_value_print): Return void.
10614 * ada-valprint.c (ada_value_print): Return void.
10615 * ada-lang.h (ada_value_print): Return void.
10616
10617 2012-03-01 Tom Tromey <tromey@redhat.com>
10618
10619 * value.c (value_primitive_field): Handle virtual base classes.
10620
10621 2012-03-01 Tom Tromey <tromey@redhat.com>
10622
10623 * gdbtypes.h (struct vbase): Remove.
10624
10625 2012-03-01 Tom Tromey <tromey@redhat.com>
10626
10627 * c-valprint.c (print_function_pointer_address): Move...
10628 * valprint.c: ... here. Make non-static.
10629 * m2-valprint.c (print_function_pointer_address): Remove.
10630 * valprint.h (print_function_pointer_address): Declare.
10631
10632 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10633
10634 * NEWS: Document the fact that one can provide a condition when
10635 creating an Ada exception catchpoint.
10636
10637 2012-03-01 Tom Tromey <tromey@redhat.com>
10638
10639 * valprint.c (val_print_type_code_flags): Fix placement of
10640 trailing brace.
10641
10642 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10643
10644 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10645 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10646 environment variable before calling update-copyright.
10647
10648 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10649
10650 * gnulib/extra/update-copyright: Update to the latest from
10651 gnulib's git repository.
10652 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10653 variable to 2 instead of 1.
10654
10655 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10656
10657 * varobj.c (c_value_of_variable): Remove dead code.
10658
10659 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10660
10661 * ada-lex.p (processId): Do not modify already encoded IDs.
10662 Update function documentation.
10663
10664 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10665
10666 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10667 "name" with "struct symbol *name_sym".
10668 * ada-exp.y (write_var_or_type): Update call to
10669 ada_find_renaming_symbol.
10670 "name" with "struct symbol *name_sym". Adjust Implementation
10671 accordingly. Adjust the function documentation.
10672
10673 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10674
10675 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10676 * ada-lang.c (ada_find_any_type): Add advance declaration.
10677 Make static. Replace ada_find_any_symbol by
10678 ada_find_any_type_symbol.
10679 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10680 Improve function description. Make static.
10681 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10682 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10683
10684 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10685
10686 * ada-lang.c (struct tag_args): Delete.
10687 (ada_get_tsd_type): Function body moved up in source file.
10688 (ada_tag_name_1, ada_tag_name_2): Delete.
10689 (ada_get_tsd_from_tag): New function.
10690 (ada_tag_name_from_tsd): New function.
10691 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10692 to determine the tag name.
10693
10694 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10695
10696 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10697 declaration.
10698 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10699 function.
10700
10701 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10702
10703 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10704
10705 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10706
10707 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10708 full searches.
10709
10710 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10711
10712 * ada-lang.c (constrained_packed_array_type): If there is a
10713 parallel XA type, use it to determine the array index type.
10714
10715 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10716
10717 * ada-valprint.c (ada_val_print_1): If our value is a reference
10718 to an array descriptor, dereference it before converting it
10719 to a simple array.
10720
10721 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10722
10723 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10724 creating fixed value.
10725 (ada_value_ind, ada_coerce_ref, assign_component)
10726 (ada_evaluate_subexp): Remove call to unwrap_value before
10727 call to ada_to_fixed_value.
10728
10729 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10730
10731 * ada-lang.c (to_fixed_array_type): Set result's type name.
10732
10733 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10734
10735 * ada-lang.c (catch_ada_exception_command_split): Add new
10736 argument cond_string. Add support for condition at end of
10737 "catch exception" commands.
10738 (ada_decode_exception_location): Add new argument cond_string.
10739 Update call to catch_ada_exception_command_split.
10740 (create_ada_exception_catchpoint): Add new argument cond_string.
10741 Set the breakpoint condition if needed.
10742 (catch_ada_exception_command): Update call to
10743 ada_decode_exception_location.
10744 (ada_decode_assert_location): Add function documentation.
10745 Add support for condition at end of "catch assert" command.
10746 (catch_assert_command): Update calls to ada_decode_assert_location
10747 and create_ada_exception_catchpoint.
10748
10749 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10750
10751 Fix disp-step-syscall.exp: fork: single step over fork.
10752 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10753 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10754 comment, change parameters gdbarch and ptid to regcache. Remove
10755 parameter regcache, initialize gdbarch from regcache here.
10756 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10757 New functions.
10758 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10759 instead.
10760 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10761 'syscall'. Make the 'int' check more strict.
10762
10763 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10764
10765 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10766 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10767 (i386_linux_intx80_sysenter_syscall_record): ... here.
10768 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10769 Use the renamed function name.
10770
10771 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10772
10773 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10774 * breakpoint.c (until_break_command): Likewise.
10775 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10776 * infcall.c (call_function_by_hand): Likewise.
10777 * infcmd.c (finish_forward): Likewise.
10778 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10779
10780 2012-02-28 Tristan Gingold <gingold@adacore.com>
10781
10782 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10783 avoid variable assignments inside condition.
10784
10785 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10786
10787 Fix static analysis issue found by cppcheck.
10788 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10789 uninitialized BUF for size 2.
10790
10791 2012-02-27 Chris Dearman <chris@mips.com>
10792 Nathan Froyd <froydnj@codesourcery.com>
10793 Maciej W. Rozycki <macro@codesourcery.com>
10794
10795 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10796 (mips16_instruction_has_delay_slot): Likewise.
10797 (mips_segment_boundary): Likewise.
10798 (mips_adjust_breakpoint_address): Likewise.
10799 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10800
10801 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10802 Maciej W. Rozycki <macro@codesourcery.com>
10803
10804 * infrun.c (handle_inferior_event): Don't proceed through
10805 shared library trampolines if stepping at the machine
10806 instruction level.
10807
10808 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10809
10810 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10811 too.
10812
10813 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10814
10815 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10816 (sh_stub_unwind_sniffer): New functions.
10817 (sh_stub_unwind): New variable.
10818 (sh_gdbarch_init): Wire everything.
10819
10820 2012-02-27 Pedro Alves <palves@redhat.com>
10821
10822 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10823 (linux_nat_post_attach_wait): Adjust to use
10824 linux_proc_pid_is_stopped.
10825 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10826 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10827 based on pid_is_stopped from both linux-nat.c and
10828 gdbserver/linux-low.c, and renamed.
10829
10830 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10831
10832 * remote.c (remote_watchpoint_addr_within_range): New function.
10833 (init_remote_ops): Use it.
10834
10835 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10836
10837 * target.h (target_watchpoint_addr_within_range): Document macro.
10838
10839 2012-02-24 Pedro Alves <palves@redhat.com>
10840
10841 * stack.c (set_last_displayed_sal): Issue internal_error instead
10842 of warning, and issue it after clearing the last displayed sal.
10843
10844 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10845 Pedro Alves <palves@redhat.com>
10846
10847 * breakpoint.c (until_break_command): Install breakpoints after
10848 all frame manipulations.
10849
10850 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10851
10852 * remote.c (remote_supports_cond_breakpoints): New forward
10853 declaration.
10854 (remote_add_target_side_condition): New function.
10855 (remote_insert_breakpoint): Add target-side breakpoint
10856 conditional if supported.
10857 (remote_insert_hw_breakpoint): Likewise.
10858 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10859 hook.
10860
10861 * target.c (update_current_target): Inherit
10862 to_supports_evaluation_of_breakpoint_conditions.
10863 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10864
10865 * target.h (struct target_ops)
10866 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10867 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10868
10869 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10870 (condition_evaluation_both, condition_evaluation_auto,
10871 condition_evaluation_host, condition_evaluation_target,
10872 condition_evaluation_enums, condition_evaluation_mode_1,
10873 condition_evaluation_mode): New static globals.
10874 (translate_condition_evaluation_mode): New function.
10875 (breakpoint_condition_evaluation_mode): New function.
10876 (gdb_evaluates_breakpoint_condition_p): New function.
10877 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10878 (mark_breakpoint_modified): New function.
10879 (mark_breakpoint_location_modified): New function.
10880 (set_condition_evaluation_mode): New function.
10881 (show_condition_evaluation_mode): New function.
10882 (bp_location_compare_addrs): New function.
10883 (get_first_location_gte_addr): New helper function.
10884 (set_breakpoint_condition): Free condition bytecode if locations
10885 has become unconditional. Call mark_breakpoint_modified (...).
10886 (condition_command): Call update_global_location_list (1) for
10887 breakpoints.
10888 (breakpoint_xfer_memory): Use is_breakpoint (...).
10889 (is_breakpoint): New function.
10890 (parse_cond_to_aexpr): New function.
10891 (build_target_condition_list): New function.
10892 (insert_bp_location): Handle target-side conditional
10893 breakpoints and call build_target_condition_list (...).
10894 (update_inserted_breakpoint_locations): New function.
10895 (insert_breakpoint_locations): Handle target-side conditional
10896 breakpoints.
10897 (bpstat_check_breakpoint_conditions): Add comment.
10898 (bp_condition_evaluator): New function.
10899 (bp_location_condition_evaluator): New function.
10900 (print_breakpoint_location): Print information on where the condition
10901 will be evaluated.
10902 (print_one_breakpoint_location): Likewise.
10903 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10904 breakpoint location.
10905 (force_breakpoint_reinsertion): New functions.
10906 (update_global_location_list): Handle target-side breakpoint
10907 conditions.
10908 Reinsert locations that are already inserted if conditions have
10909 changed.
10910 (bp_location_dtor): Free agent expression bytecode.
10911 (disable_breakpoint): Call mark_breakpoint_modified (...).
10912 Call update_global_location_list (...) with parameter 1 for breakpoints.
10913 (disable_command): Call mark_breakpoint_location_modified (...).
10914 Call update_global_location_list (...) with parameter 1 for breakpoints.
10915 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10916 (enable_command): mark_breakpoint_location_modified (...).
10917 (_initialize_breakpoint): Update documentation and add
10918 condition-evaluation breakpoint subcommand.
10919
10920 * breakpoint.h: Include ax.h.
10921 (condition_list): New data structure.
10922 (condition_status): New enum.
10923 (bp_target_info) <cond_list>: New field.
10924 (bp_location) <condition_changed, cond_bytecode>: New fields.
10925 (is_breakpoint): New prototype.
10926
10927 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10928
10929 * remote.c (remote_state) <cond_breakpoints>: New field.
10930 (PACKET_ConditionalBreakpoints): New enum.
10931 (remote_cond_breakpoint_feature): New function.
10932 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10933 (remote_supports_cond_breakpoints): New function.
10934 (_initialize_remote): Add new packet configuration for
10935 target-side conditional breakpoints.
10936
10937 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10938
10939 * NEWS: Mention target-side conditional breakpoint support,
10940 new condition-evaluation breakpoint subcommand and remote
10941 packet extensions.
10942
10943 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10944
10945 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10946 number.
10947
10948 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10949
10950 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10951 (after_prologue): Remove.
10952
10953 2012-02-23 Tom Tromey <tromey@redhat.com>
10954
10955 * jv-valprint.c (java_val_print): Remove dead code.
10956
10957 2012-02-23 Tristan Gingold <gingold@adacore.com>
10958
10959 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10960 known_tasks_element and known_tasks_length fields.
10961 (read_known_tasks_array): Change argument type. Use pointer type
10962 and number of elements from DATA. Adjust.
10963 (read_known_tasks_list): Likewise.
10964 (get_known_tasks_addr): Remove.
10965 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10966 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10967 type and array length. Merge former get_known_tasks_addr code.
10968
10969 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10970
10971 PR backtrace/13716
10972 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10973 it after set_momentary_breakpoint.
10974
10975 2012-02-22 Sterling Augustine <saugustine@google.com>
10976
10977 PR 13689:
10978 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10979
10980 2012-02-22 Gary Benson <gbenson@redhat.com>
10981
10982 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10983 (find_slot_in_mapped_hash): Likewise.
10984
10985 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10986
10987 PR build/13638
10988 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10989 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10990 * configure: Regenerate.
10991
10992 2012-02-21 Tristan Gingold <gingold@adacore.com>
10993 Pedro Alves <palves@redhat.com>
10994
10995 * ia64-tdep.c: Do not include libunwind-ia64.h.
10996 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10997 Include libunwind-ia64.h instead of libunwind.h.
10998 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10999 for libunwind.h existence.
11000 * configure, config.in: Regenerate.
11001
11002 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11003
11004 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11005 instead of value_rtti_target_type.
11006 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11007 instead of value_rtti_target_type.
11008 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11009 value_rtti_target_type.
11010 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11011 (value_rtti_target_type): Rename to ...
11012 (value_rtti_indirect_type): ... here and make it indirect. Update
11013 function comment.
11014 * value.c (readjust_indirect_value_type): New function.
11015 (coerce_ref): Support for enclosing type setting for references
11016 with readjust_indirect_value_type.
11017 * value.h (readjust_value_type): New declaration.
11018 (value_rtti_target_type): Rename to ...
11019 (value_rtti_indirect_type): ... here.
11020
11021 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11022
11023 * MAINTAINERS (Write After Approval): Add myself to the list.
11024
11025 2012-02-20 Doug Evans <dje@google.com>
11026
11027 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11028 Rename objfile_p_char parameter to objfilep.
11029 (build_objfile_section_table): Result is now void. All callers
11030 updated.
11031 * objfiles.h (struct objfile): Tweak comments, whitespace.
11032 (build_objfile_section_table): Update.
11033
11034 * elfread.c (elf_symfile_segments): Fix warning text.
11035
11036 2012-02-20 Tom Tromey <tromey@redhat.com>
11037
11038 PR gdb/13498:
11039 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11040 particular set of file names once.
11041 (dw2_map_symbol_filenames): Likewise.
11042
11043 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11044
11045 Code cleanup.
11046 * main.c (write_files): Remove the declaration.
11047 (external_editor_command): Move the declaration ...
11048 [GDBTK] (external_editor_command): ... here. Fix the comment.
11049
11050 2012-02-20 Tom Tromey <tromey@redhat.com>
11051
11052 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11053 extraneous block.
11054
11055 2012-02-20 Tristan Gingold <gingold@adacore.com>
11056
11057 * darwin-nat.h (enum darwin_msg_state): Add comments.
11058
11059 2012-02-20 Tristan Gingold <gingold@adacore.com>
11060
11061 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11062 value.
11063
11064 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11065
11066 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11067 between function description and implementation.
11068
11069 2012-02-17 Tom Tromey <tromey@redhat.com>
11070
11071 PR python/12070:
11072 * python/py-event.c (event_object_getset): New global.
11073 (event_object_type): Reference it.
11074 * python/py-type.c (field_object_getset): New global.
11075 (field_object_type): Reference it.
11076 * python/python-internal.h (gdb_py_generic_dict): Declare.
11077 * python/py-utils.c (gdb_py_generic_dict): New function.
11078
11079 2012-02-17 Tristan Gingold <gingold@adacore.com>
11080
11081 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11082
11083 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11084
11085 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11086 TYPE_CALLING_CONVENTION annotation.
11087
11088 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11089
11090 * MAINTAINERS: Add rx to target ISA section.
11091 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11092 (ALLDEPFILES): Add rx-tdep.c.
11093
11094 2012-02-16 Tom Tromey <tromey@redhat.com>
11095
11096 * symfile.c (symbol_file_add_main_1): Use inferior's
11097 symfile_flags.
11098 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11099 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11100 inferior.
11101 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11102 inferior.
11103 (follow_exec): Use inferior's symfile_flags.
11104 * inferior.h (struct inferior) <symfile_flags>: New field.
11105
11106 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11107
11108 PR gdb/9734:
11109 * remote-sim.c (gdbsim_create_inferior): Call error() when
11110 sim_create_inferior() fails.
11111
11112 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11113
11114 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11115
11116 2012-02-16 Tom Tromey <tromey@redhat.com>
11117
11118 PR c++/13653:
11119 * thread.c (struct current_thread_cleanup) <was_removable>: New
11120 field.
11121 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11122 (make_cleanup_restore_current_thread): Initialize new field.
11123
11124 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11125
11126 * MAINTAINERS: Add rl78 to target ISA section.
11127 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11128 (ALLDEPFILES): Add rl78-tdep.c.
11129 * NEWS: Mention rl78 as a new target.
11130
11131 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11132
11133 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11134 data.
11135 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11136
11137 2012-02-15 Tom Tromey <tromey@redhat.com>
11138
11139 PR gdb/12659:
11140 * infcmd.c (registers_info): Print just the current register's
11141 name.
11142
11143 2012-02-15 Tom Tromey <tromey@redhat.com>
11144
11145 * python/py-symbol.c (sympy_value): Use _().
11146
11147 2012-02-15 Pedro Alves <palves@redhat.com>
11148
11149 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11150 output to be like native targets'.
11151 (remote_pid_to_str): Special case the null ptid.
11152
11153 2012-02-14 Stan Shebs <stan@codesourcery.com>
11154
11155 * NEWS: Mention enable count command.
11156 * breakpoint.h (struct breakpoint): New field enable_count.
11157 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11158 (enable_breakpoint): Add arg to call.
11159 (struct disp_data): New struct.
11160 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11161 (do_map_enable_once_breakpoint): Create a struct and pass it.
11162 (do_map_enable_delete_breakpoint): Ditto.
11163 (do_map_enable_count_breakpoint): New function.
11164 (enable_count_command): New function.
11165 (bpstat_stop_status): Decrement enable_count.
11166 (print_one_breakpoint_location): Report enable count.
11167 (_initialize_breakpoint): Add enable count command.
11168
11169 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11170
11171 * rl78-tdep.c (reggroups.h): Include.
11172 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11173 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11174 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11175 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11176 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11177 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11178 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11179 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11180 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11181 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11182 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11183 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11184 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11185 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11186 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11187 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11188 beginning of register list.
11189 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11190 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11191 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11192 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11193 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11194 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11195 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11196 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11197 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11198 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11199 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11200 the pseudo registers. Rearrange other pseudo registers too so
11201 that the bank registers appear at the end.
11202 (rl78_register_type): Account for the fact that the byte sized
11203 bank registers are now pseudo-registers.
11204 (rl78_register_name): Rearrange the register name array. Make
11205 initial set of raw banked registers inaccessible.
11206 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11207 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11208 case for copying bytes back and forth between raw and pseudo
11209 versions of the banked registers. Update other cases to reflect
11210 the changed names.
11211 (rl78_return_value): Update to account for changed names of
11212 raw registers.
11213 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11214 rl78_register_sim_regno().
11215
11216 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11217
11218 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11219 the name parameter being passed to find_pc_partial_function().
11220
11221 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11222
11223 * MAINTAINERS: Step down from being ia64 target maintainer.
11224
11225 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11226
11227 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11228 compilation warning.
11229
11230 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11231
11232 Fix crash on loaded shlibs without loaded exec_bfd.
11233 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11234 (set_section_command): Replace exec_bfd by p->bfd.
11235
11236 2012-02-10 Tom Tromey <tromey@redhat.com>
11237
11238 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11239 when we have a C++ qualified name.
11240
11241 2012-02-10 Pedro Alves <palves@redhat.com>
11242
11243 * inferior.c (inferior_pid_to_str): New.
11244 (print_inferior, inferior_command): Use it.
11245
11246 2012-02-10 Pedro Alves <palves@redhat.com>
11247
11248 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11249 the test CFLAGS.
11250 * configure: Regenerate.
11251
11252 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11253
11254 * linespec.c (decode_line_internal): Fix comment correctness.
11255
11256 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11257
11258 PR gdb/12953
11259 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11260 * amd64bsd-nat.c: Add support for debug registers (adapted from
11261 i386bsd-nat.c).
11262 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11263 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11264 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11265 (amd64bsd_dr_get_control): New functions.
11266 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11267 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11268 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11269 watchpoints initialization.
11270 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11271
11272 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11273
11274 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11275 flds_bnds.fields.
11276 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11277
11278 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11279
11280 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11281
11282 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11283
11284 * language.h (symbol_name_cmp_ftype): Renames
11285 symbol_name_match_p_ftype.
11286 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11287 la_get_symbol_name_match_p.
11288 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11289 ada_get_symbol_name_match_p. Update comment.
11290 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11291 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11292 Renames symbol_name_match_p. Update field type.
11293 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11294 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11295 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11296 "la_get_symbol_name_cmp" in comments.
11297 * language.c: Likewise.
11298
11299 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11300
11301 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11302 %eflags offset.
11303 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11304 (amd64_sol2_gregset32_reg_offs): Likewise.
11305
11306 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11307
11308 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11309 of the returned BFD is allocated by GDB.
11310
11311 2012-02-07 Tom Tromey <tromey@redhat.com>
11312
11313 PR python/12027:
11314 * python/python-internal.h (frame_object_type): Declare.
11315 * python/py-symbol.c (sympy_needs_frame): New function.
11316 (sympy_value): New function.
11317 (symbol_object_getset): Add "needs_frame".
11318 (symbol_object_methods): Add "value".
11319 * python/py-frame.c (frame_object_type): No longer static.
11320
11321 2012-02-07 Tom Tromey <tromey@redhat.com>
11322
11323 PR python/13599:
11324 * python/py-symbol.c (sympy_line): New function.
11325 (symbol_object_getset): Add "line".
11326
11327 2012-02-07 Tom Tromey <tromey@redhat.com>
11328
11329 * charset.c (find_charset_names): Check 'in' against NULL.
11330
11331 2012-02-06 Doug Evans <dje@google.com>
11332
11333 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11334 and fields.name members from char * to const char *. All uses updated.
11335 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11336 from char * to const char *. All uses updated.
11337 (type_name_no_tag): Update.
11338 (lookup_unsigned_typename, lookup_signed_typename): Update.
11339 * gdbtypes.c (type_name_no_tag): Change result type
11340 from char * to const char *. All callers updated.
11341 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11342 name parameter from char * to const char *.
11343 * symtab.h (struct cplus_specific): Change type of demangled_name
11344 member from char * to const char *. All uses updated.
11345 (struct general_symbol_info): Change type of name and
11346 mangled_lang.demangled_name members from char * to const char *.
11347 All uses updated.
11348 (symbol_get_demangled_name, symbol_natural_name): Update.
11349 (symbol_demangled_name, symbol_search_name): Update.
11350 * symtab.c (symbol_get_demangled_name): Change result type
11351 from char * to const char *. All callers updated.
11352 (symbol_natural_name, symbol_demangled_name): Ditto.
11353 (symbol_search_name): Ditto.
11354 (completion_list_add_name): Change type of symname,sym_text,
11355 text,word parameters from char * to const char *.
11356 (completion_list_objc_symbol): Change type of sym_text,
11357 text,word parameters from char * to const char *.
11358 * ada-lang.c (find_struct_field): Change type of name parameter
11359 from char * to const char *.
11360 (encoded_ordered_before): Similarly for N0,N1 parameters.
11361 (old_renaming_is_invisible): Similarly for function_name parameter.
11362 (ada_type_name): Change result type from char * to const char *.
11363 All callers updated.
11364 * ada-lang.h (ada_type_name): Update.
11365 * buildsym.c (hashname): Change type of name parameter
11366 from char * to const char *.
11367 * buildsym.h (hashname): Update.
11368 * dbxread.c (end_psymtab): Change type of include_list parameter
11369 from char ** to const char **.
11370 * dwarf2read.c (determine_prefix): Change result type
11371 from char * to const char *. All callers updated.
11372 * f-lang.c (find_common_for_function): Change type of name, funcname
11373 parameters from char * to const char *.
11374 * f-lang.c (find_common_for_function): Update.
11375 * f-valprint.c (list_all_visible_commons): Change type of funcname
11376 parameters from char * to const char *.
11377 * gdbarch.sh (static_transform_name): Change type of name parameter
11378 and result from char * to const char *.
11379 * gdbarch.c: Regenerate.
11380 * gdbarch.h: Regenerate.
11381 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11382 of name parameter from char * to const char *.
11383 * jv-lang.c (java_primitive_type_from_name): Ditto.
11384 (java_demangled_signature_length): Similarly for signature parameter.
11385 (java_demangled_signature_copy): Ditto.
11386 (java_demangle_type_signature): Ditto.
11387 * jv-lang.h (java_primitive_type_from_name): Update.
11388 (java_demangle_type_signature): Update.
11389 * objc-lang.c (specialcmp): Change type of a,b parameters
11390 from char * to const char *.
11391 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11392 from char * to const char *. All callers updated.
11393 * p-lang.h (is_pascal_string_type): Update.
11394 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11395 of name parameter from char * to const char *.
11396 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11397 * utils.c (fprintf_symbol_filtered): Ditto.
11398 * defs.h (fprintf_symbol_filtered): Update.
11399 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11400 * stabsread.h (end_psymtab): Update.
11401 * stack.c (find_frame_funname): Change type of funname parameter
11402 from char ** to const char **.
11403 * stack.h (find_frame_funname): Update.
11404 * typeprint.c (type_print): Change type of varstring parameter
11405 from char * to const char *.
11406 * value.h (type_print): Update.
11407 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11408 from char * to const char *. All callers updated.
11409 (xcoff_end_psymtab): Change type of include_list parameter
11410 from char ** to const char **. All callers updated.
11411 (swap_sym): Similarly for name parameter. All callers updated.
11412 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11413 Use xstrdup.
11414 (process_coff_symbol): Use xstrdup.
11415 * stabsread.c (stabs_method_name_from_physname): Renamed from
11416 update_method_name_from_physname. Change result type from void
11417 to char *. All callers updated.
11418 (read_member_functions): In has_destructor case, store name in objfile
11419 obstack instead of malloc space. In !has_stub case, fix mem leak.
11420
11421 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11422
11423 * configure: Rebuild.
11424 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11425 LDFLAGS.
11426
11427 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11428
11429 * configure.tgt (rl78-*-elf): New target.
11430 * rl78-tdep.c: New file.
11431
11432 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11433
11434 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11435 and continue the loop. Add QUIT statement.
11436
11437 2012-02-03 Tom Tromey <tromey@redhat.com>
11438
11439 PR gdb/13596:
11440 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11441 bfd_lookup_symbol_from_symtab.
11442 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11443 gdb_bfd_lookup_symbol_from_symtab.
11444
11445 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11446
11447 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11448 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11449 symbol. Add assertion that sym2 is never NULL.
11450
11451 2012-02-02 Doug Evans <dje@google.com>
11452
11453 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11454 "name" parameter to const char ** from char **. All callers updated.
11455 (find_pc_partial_function): Ditto.
11456 (cache_pc_function_name): Change type to const char * from char *.
11457 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11458 (find_pc_partial_function): Update.
11459 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11460 type of "name" parameter to const char * from char *.
11461 All uses updated.
11462 * arch-utils.c (generic_in_solib_return_trampoline): Change
11463 type of "name" parameter to const char * from char *.
11464 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11465 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11466 type of "name" parameter to const char * from char *.
11467 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11468 * gdbarch.c: Regenerate.
11469 * gdbarch.h: Regenerate.
11470 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11471 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11472 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11473 type of "name" parameter to const char * from char *.
11474 * skip.c (skip_function_pc): Ditto.
11475 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11476 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11477 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11478 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11479 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11480 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11481 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11482 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11483 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11484
11485 2012-02-02 Pedro Alves <palves@redhat.com>
11486
11487 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11488 the current inferior has no execution. Make sure the current
11489 remote process matches gdb's current inferior.
11490
11491 2012-02-02 Tom Tromey <tromey@redhat.com>
11492
11493 PR gdb/13405:
11494 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11495 read-only memory.
11496
11497 2012-02-02 Tom Tromey <tromey@redhat.com>
11498
11499 PR gdb/9307:
11500 * symtab.c (lookup_language_this): Set block_found.
11501
11502 2012-02-01 Tom Tromey <tromey@redhat.com>
11503
11504 PR gdb/13431:
11505 * jit.c (struct jit_inferior_data): Rewrite.
11506 (struct jit_objfile_data): New.
11507 (get_jit_objfile_data): New function.
11508 (add_objfile_entry): Update.
11509 (jit_read_descriptor): Return int. Replace descriptor_addr
11510 argument with inf_data. Update. Don't call error.
11511 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11512 descriptor here.
11513 (jit_inferior_init): Don't look up descriptor. Don't call error.
11514 (jit_reset_inferior_data_and_breakpoints)
11515 (jit_inferior_created_observer): Remove.
11516 (jit_inferior_exit_hook): Update.
11517 (jit_executable_changed_observer): Remove.
11518 (jit_event_handler): Update.
11519 (free_objfile_data): Reset inferior data if needed.
11520 (_initialize_jit): Update.
11521
11522 2012-02-01 Tom Tromey <tromey@redhat.com>
11523
11524 * jit.c (bfd_open_from_target_memory): Move higher in file.
11525
11526 2012-02-01 Tristan Gingold <gingold@adacore.com>
11527
11528 * libunwind-frame.c (libunwind_load): Display message if dlopen
11529 failed.
11530
11531 2012-02-01 Gary Benson <gbenson@redhat.com>
11532
11533 * symtab.h (symbol_found_callback_ftype): New typedef.
11534 (iterate_over_symbols): Use the above.
11535 * symtab.c (iterate_over_symbols): Likewise.
11536 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11537 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11538 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11539 (iterate_name_matcher): Document return values.
11540 (collect_one_symbol): Likewise.
11541 (collect_function_symbols): Likewise.
11542 (collect_symbols): Likewise.
11543
11544 2012-02-01 Tom Tromey <tromey@redhat.com>
11545
11546 * ada-lang.c (resolve_subexp): Update.
11547 (ada_lookup_symbol_list): Add 'full_search' argument.
11548 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11549 ada_lookup_symbol_list.
11550 (ada_lookup_encoded_symbol): Update.
11551 (get_var_value): Update.
11552 * ada-exp.y (block_lookup): Update.
11553 (write_var_or_type): Update.
11554 (write_name_assoc): Update.
11555 * ada-lang.h (ada_lookup_symbol_list): Update.
11556
11557 2012-01-31 Tom Tromey <tromey@redhat.com>
11558
11559 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11560 comment.
11561
11562 2012-01-31 Doug Evans <dje@google.com>
11563
11564 * symtab.h: Remove outdated comment.
11565 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11566
11567 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11568
11569 Fix build error in Darwin port.
11570 * i386-darwin-nat.c: Include i386-nat.h.
11571
11572 2012-01-30 Tom Tromey <tromey@redhat.com>
11573
11574 PR breakpoints/13568:
11575 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11576 argument. Check for recursive includes.
11577 (dwarf_decode_macros): Create an include hash.
11578
11579 2012-01-30 Michael Eager <eager@eagercon.com>
11580
11581 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11582 * ppc-linux-tdep.c: Include glibc-tdep.h.
11583 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11584 (powerpc_linux_in_plt_stub): New function.
11585 (powerpc_linux_in_dynsym_resolve_code): New function.
11586 (ppc_skip_trampoline_code): New function.
11587 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11588 Use glibc_skip_solib_resolver.
11589
11590 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11591
11592 Code cleanup: Make 1440 bytes of data segment read-only.
11593 * arch-utils.c (endian_enum): Make it const char *const [].
11594 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11595 Likewise.
11596 * breakpoint.c (always_inserted_enums): Likewise.
11597 * cli/cli-cmds.c (script_ext_enums): Likewise.
11598 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11599 enumlist parameter const char *const *.
11600 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11601 const char *const *.
11602 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11603 parameter const char *const *.
11604 * cris-tdep.c (cris_modes): Make it const char *const [].
11605 * filesystem.c (target_file_system_kinds): Likewise.
11606 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11607 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11608 (can_use_displaced_stepping_enum, scheduler_enums)
11609 (exec_direction_names): Likewise.
11610 * language.c (_initialize_language): Make the type_or_range_names and
11611 case_sensitive_names variables const char *const [].
11612 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11613 * python/python.c (python_excp_enums): Likewise.
11614 * remote.c (interrupt_sequence_modes): Likewise.
11615 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11616 * serial.c (logbase_enums): Likewise.
11617 * sh-tdep.c (sh_cc_enum): Likewise.
11618 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11619 Likewise.
11620 * symtab.c (multiple_symbols_modes): Likewise.
11621 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11622 Likewise.
11623 * utils.c (internal_problem_modes): Likewise.
11624
11625 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11626
11627 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11628 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11629 result.
11630
11631 2012-01-27 Doug Evans <dje@google.com>
11632
11633 * configure.ac (with_python): Fix absolute path handling for win32.
11634 * configure: Regenerate.
11635
11636 2012-01-26 Doug Evans <dje@google.com>
11637
11638 * symtab.c: Whitespace cleanup, no code changes.
11639
11640 * symtab.c (lookup_symbol_in_language): Improve comment.
11641 (lookup_symbol_aux): Fix comment.
11642
11643 * psymtab.c (add_psymbol_to_list): Result is now "void".
11644 * psympriv.h (add_psymbol_to_list): Update.
11645
11646 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11647
11648 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11649
11650 Do not open script filenames twice.
11651 * cli/cli-cmds.c (source_script_from_stream): Pass to
11652 source_python_script also STREAM.
11653 * python/py-auto-load.c (source_section_scripts): Pass to
11654 source_python_script_for_objfile also STREAM.
11655 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11656 also INPUT.
11657 * python/python-internal.h (source_python_script_for_objfile): New
11658 parameter file, rename parameter file to filename.
11659 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11660 instead if !_WIN32. Update the function comment.
11661 (source_python_script, source_python_script_for_objfile)
11662 (source_python_script): New parameter file, rename parameter file to
11663 filename. Pass FILENAME to python_run_simple_file.
11664 * python/python.h (source_python_script): New parameter file, rename
11665 parameter file to filename.
11666
11667 2012-01-26 Pedro Alves <palves@redhat.com>
11668
11669 * corelow.c (core_has_fake_pid): Delete.
11670 (core_close): Delete references to `core_has_fake_pid'.
11671 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11672 (core_open): Delete references to `core_has_fake_pid'.
11673 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11674 the removed global.
11675
11676 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11677
11678 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11679 Remove language parameter from name_matcher. Adjust the comment.
11680 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11681 Remove language parameter.
11682 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11683 * linespec.c (iterate_name_matcher): Likewise.
11684 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11685 name_matcher. Adjust call accordingly.
11686 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11687 (maintenance_check_symtabs): Adjust type of parameter "fun".
11688 * psymtab.h (maintenance_check_symtabs): Likewise.
11689
11690 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11691
11692 * language.h (symbol_name_match_p_ftype): New typedef.
11693 (struct language_defn): Replace field la_symbol_name_compare
11694 by la_get_symbol_name_match_p.
11695 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11696 (ada_language_defn): Use it.
11697 * linespec.c (struct symbol_matcher_data): New type.
11698 (iterate_name_matcher): Rewrite.
11699 (iterate_over_all_matching_symtabs): Pass a pointer to
11700 a symbol_matcher_data struct to expand_symtabs_matching
11701 instead of just the lookup name.
11702 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11703 opencl-lang.c, p-lang.c, language.c: Delete field
11704 la_symbol_name_compare, and replace by NULL for new field
11705 la_get_symbol_name_match_p.
11706 * symfile.h (struct quick_symbol_functions): Update comment.
11707
11708 2012-01-25 Tom Tromey <tromey@redhat.com>
11709
11710 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11711 dereferencing.
11712
11713 2012-01-24 Tom Tromey <tromey@redhat.com>
11714
11715 PR symtab/12406:
11716 * solib.c (update_solib_list): Update the program space's
11717 added_solibs and deleted_solibs fields.
11718 * progspace.h (struct program_space) <added_solibs,
11719 deleted_solibs>: New fields.
11720 (clear_program_space_solib_cache): Declare.
11721 * progspace.c (release_program_space): Call
11722 clear_program_space_solib_cache.
11723 (clear_program_space_solib_cache): New function.
11724 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11725 bpstat_stop_status. Use handle_solib_event.
11726 * breakpoint.c: Include gdb_regex.h.
11727 (print_solib_event): New function.
11728 (bpstat_print): Use print_solib_event.
11729 (bpstat_stop_status): Add special case for bp_shlib_event.
11730 (handle_solib_event): New function.
11731 (bpstat_what): Use handle_solib_event.
11732 (struct solib_catchpoint): New.
11733 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11734 (breakpoint_hit_catch_solib, check_status_catch_solib)
11735 (print_it_catch_solib, print_one_catch_solib)
11736 (print_mention_catch_solib, print_recreate_catch_solib): New
11737 functions.
11738 (catch_solib_breakpoint_ops): New global.
11739 (catch_load_or_unload, catch_load_command_1)
11740 (catch_unload_command_1): New functions.
11741 (internal_bkpt_check_status): Add special case for
11742 bp_shlib_event.
11743 (internal_bkpt_print_it): Use print_solib_event.
11744 (initialize_breakpoint_ops): Initialize
11745 catch_solib_breakpoint_ops.
11746 (_initialize_breakpoint): Register "catch load" and "catch
11747 unload".
11748 * breakpoint.h (handle_solib_event): Declare.
11749 * NEWS: Add entry for "catch load" and "catch unload".
11750
11751 2012-01-24 Tom Tromey <tromey@redhat.com>
11752
11753 * ada-lang.c: Include gdb_vecs.h.
11754 * charset.c: Include gdb_vecs.h.
11755 * tracepoint.h: Include gdb_vecs.h.
11756 * gdb_vecs.h: New file.
11757
11758 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11759
11760 * breakpoint.c (breakpoint_hit_catch_fork)
11761 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11762 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11763 * infrun.c (inferior_has_forked, inferior_has_vforked)
11764 (inferior_has_execd, inferior_has_called_syscall): Delete.
11765 (handle_syscall_event): Get syscall_number from the execution
11766 control state's wait status.
11767 (wait_for_inferior): Don't clear syscall_number.
11768
11769 2012-01-24 Pedro Alves <palves@redhat.com>
11770
11771 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11772 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11773 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11774 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11775 `ws' parameter.
11776 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11777 false for events other than TARGET_SIGNAL_TRAP.
11778 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11779 Add `ws' parameter.
11780 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11781 events other than TARGET_SIGNAL_TRAP.
11782 (tracepoint_breakpoint_hit): Add `ws' parameter.
11783 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11784 parameter.
11785 (bpstat_stop_status): Same.
11786 (pc_at_non_inline_function): Same.
11787 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11788 to pass the current event's waitstatus to bpstat_stop_status
11789 and pc_at_non_inline_function.
11790
11791 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11792
11793 Code cleanup.
11794 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11795 Update the function comment for it.
11796 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11797 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11798 for STREAM.
11799
11800 2012-01-24 Pedro Alves <palves@redhat.com>
11801
11802 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11803 outside `bs->stop' block.
11804 (bpstat_what): Rework bp_shlib_event handling.
11805 (internal_bkpt_check_status): If the breakpoint is a
11806 bp_shlib_event, then set bs->stop and bs->print if
11807 stop_on_solib_events is set.
11808
11809 2012-01-24 Gary Benson <gbenson@redhat.com>
11810
11811 Delete #if 0'd out code.
11812 * stack.c (print_frame_label_vars): Remove.
11813 (catch_info): Likewise.
11814 (_initialize_stack): Remove "info catch" command.
11815 * NEWS: Mention the above.
11816
11817 2012-01-24 Pedro Alves <palves@redhat.com>
11818
11819 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11820 it.
11821 (remote_notice_new_inferior): If the remote end doesn't support
11822 the multiprocess extensions, then the PID is fake.
11823 (add_current_inferior_and_thread): New.
11824 (remote_start_remote): Use it.
11825 (extended_remote_attach_1): Adjust.
11826 (extended_remote_create_inferior_1): Use
11827 add_current_inferior_and_thread.
11828
11829 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11830
11831 Fix watchpoints to be specific for each inferior.
11832 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11833 current_program_space.
11834 * i386-nat.c (i386_inferior_data_cleanup): New.
11835 (i386_inferior_data_get): Replace variable inf_data_local by an
11836 inferior_data call.
11837 (i386_use_watchpoints): Initialize i386_inferior_data.
11838 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11839 specific iterate_over_lwps.
11840
11841 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11842
11843 Fix watchpoints across inferior fork.
11844 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11845 comment for linux_nat_iterate_watchpoint_lwps.
11846 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11847 linux_nat_iterate_watchpoint_lwps.
11848 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11849 * i386-linux-nat.c (update_debug_registers_callback): Update the
11850 comment for linux_nat_iterate_watchpoint_lwps.
11851 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11852 linux_nat_iterate_watchpoint_lwps.
11853 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11854 * i386-nat.c: Include inferior.h.
11855 (dr_mirror): Remove.
11856 (i386_inferior_data, struct i386_inferior_data)
11857 (i386_inferior_data_get): New.
11858 (i386_debug_reg_state): Use i386_inferior_data_get.
11859 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11860 (i386_insert_watchpoint, i386_remove_watchpoint)
11861 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11862 (i386_remove_hw_breakpoint): New variable state, use
11863 i386_debug_reg_state instead of DR_MIRROR.
11864 * linux-nat.c (delete_lwp): New declaration.
11865 (num_lwps): Move here from downwards.
11866 (delete_lwp_cleanup): New.
11867 (linux_child_follow_fork): Create new child_lp, call
11868 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11869 PTRACE_DETACH.
11870 (num_lwps): Move upwards.
11871 (linux_nat_iterate_watchpoint_lwps): New.
11872 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11873 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11874
11875 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11876
11877 GDB 7.4 released.
11878
11879 2012-01-23 Pedro Alves <palves@redhat.com>
11880
11881 * top.c (caution): Rename to ...
11882 (confirm): ... this.
11883 (show_caution): Rename to ...
11884 (show_confirm): ... this.
11885 (quit_cover): Adjust.
11886 (init_main): Adjust.
11887 * top.h (caution): Rename to ...
11888 (confirm): ... this.
11889 * utils.c (internal_vproblem, defaulted_query): Adjust.
11890
11891 2012-01-23 Pedro Alves <palves@redhat.com>
11892
11893 * top.c (caution): Update comment.
11894 (execute_command): Don't consider the current value of `caution'.
11895
11896 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11897
11898 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11899
11900 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11901
11902 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11903 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11904 * target.c (target_fileio_pwrite): Remove buffer address from
11905 debug output.
11906 (target_fileio_pread): Likewise.
11907
11908 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11909
11910 * NEWS: Document remote "info proc" and "generate-core-file".
11911
11912 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11913
11914 * gdbarch.sh (find_memory_regions): New callback.
11915 * gdbarch.c, gdbarch.h: Regenerate.
11916
11917 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11918 callback before falling back to target method.
11919
11920 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11921 (linux_target_install_ops): No longer install it.
11922
11923 * linux-tdep.c (linux_find_memory_regions): New function.
11924 (linux_init_abi): Install it.
11925
11926 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11927
11928 * gdbarch.sh (make_corefile_notes): New architecture callback.
11929 * gdbarch.c: Regenerate.
11930 * gdbarch.h: Likewise.
11931
11932 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11933 before target_make_corefile_notes. If NULL is returned, the
11934 target does not support core file generation.
11935
11936 * linux-nat.c: Include "linux-tdep.h".
11937 (find_signalled_thread, find_stop_signal): Remove.
11938 (linux_nat_do_thread_registers): Likewise.
11939 (struct linux_nat_corefile_thread_data): Likewise.
11940 (linux_nat_corefile_thread_callback): Likewise.
11941 (iterate_over_spus): Likewise.
11942 (struct linux_spu_corefile_data): Likewise.
11943 (linux_spu_corefile_callback): Likewise.
11944 (linux_spu_make_corefile_notes): Likewise.
11945 (linux_nat_collect_thread_registers): New function.
11946 (linux_nat_make_corefile_notes): Replace contents by call to
11947 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11948 as native-only callback.
11949
11950 * linux-tdep.h: Include "bfd.h".
11951 (struct regcache): Add forward declaration.
11952 (linux_collect_thread_registers_ftype): New typedef.
11953 (linux_make_corefile_notes): Add prototype.
11954 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11955 "regset.h", and "elf-bfd.h".
11956 (find_signalled_thread, find_stop_signal): New functions.
11957 (linux_spu_make_corefile_notes): Likewise.
11958 (linux_collect_thread_registers): Likewise.
11959 (struct linux_corefile_thread_data): New data structure.
11960 (linux_corefile_thread_callback): New funcion.
11961 (linux_make_corefile_notes): Likewise.
11962 (linux_make_corefile_notes_1): Likewise.
11963 (linux_init_abi): Install it.
11964
11965 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11966
11967 * gdbarch.sh (info_proc): New callback.
11968 * gdbarch.c, gdbarch.h: Regenerate.
11969
11970 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11971 before falling back to the target info_proc callback.
11972
11973 * linux-nat.c: Do not include "cli/cli-utils.h".
11974 (linux_nat_info_proc): Remove.
11975 (linux_target_install_ops): No longer install it.
11976
11977 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11978 (read_mapping): New function.
11979 (linux_info_proc): Likewise.
11980 (linux_init_abi): Install it.
11981
11982 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11983
11984 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11985 * infcmd.c: (info_proc_cmd_1): New function.
11986 (info_proc_cmd): New function, moved here from equivalent routine
11987 orignally in linux-nat.c.
11988 (info_proc_cmd_mappings): Likewise.
11989 (info_proc_cmd_stat): Likewise.
11990 (info_proc_cmd_status): Likewise.
11991 (info_proc_cmd_cwd): Likewise.
11992 (info_proc_cmd_cmdline): Likewise.
11993 (info_proc_cmd_exe): Likewise.
11994 (info_proc_cmd_all): Likewise.
11995 (_initialize_infcmd): Install "info proc" command and subcommands.
11996
11997 * target.h (struct target_ops): Add to_info_proc.
11998 (target_info_proc): Add prototype.
11999 * target.c (target_info_proc): New function.
12000
12001 * procfs.c (procfs_info_proc): Add prototype.
12002 (info_proc_cmd): Rename into ...
12003 (procfs_info_proc): ... this. Update argument types as appropriate
12004 for a to_info_proc implementation. Handle "what" argument.
12005 (procfs_target): Install procfs_info_proc.
12006 (_initialize_procfs): No longer install "info proc" command.
12007
12008 * linux-nat.c: (enum info_proc_what): Remove.
12009 (linux_nat_info_proc_cmd_1): Rename into ...
12010 (linux_nat_info_proc): ... this. Update argument types as appropriate
12011 for a to_info_proc implementation.
12012 (linux_nat_info_proc_cmd): Remove.
12013 (linux_nat_info_proc_cmd_mappings): Likewise.
12014 (linux_nat_info_proc_cmd_stat): Likewise.
12015 (linux_nat_info_proc_cmd_status): Likewise.
12016 (linux_nat_info_proc_cmd_cwd): Likewise.
12017 (linux_nat_info_proc_cmd_cmdline): Likewise.
12018 (linux_nat_info_proc_cmd_exe): Likewise.
12019 (linux_nat_info_proc_cmd_all): Likewise.
12020 (linux_target_install_ops): Install linux_nat_info_proc.
12021 (_initialize_linux_nat): No longer install "info proc" command
12022 and subcommands.
12023
12024 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12025
12026 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12027 * config.in, configure: Regenerate.
12028
12029 * target.h (struct target_ops): Add to_fileio_readlink.
12030 (target_fileio_readlink): Add prototype.
12031 * target.c (target_fileio_readlink): New function.
12032
12033 * inf-child.c: Conditionally include <sys/param.h>.
12034 (inf_child_fileio_readlink): New function.
12035 (inf_child_target): Install it.
12036
12037 * remote.c (PACKET_vFile_readlink): New enum value.
12038 (remote_hostio_readlink): New function.
12039 (init_remote_ops): Install it.
12040 (_initialize_remote): Handle vFile:readlink packet type.
12041
12042 2012-01-20 Pedro Alves <palves@redhat.com>
12043 Ulrich Weigand <ulrich.weigand@linaro.org>
12044
12045 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12046 * config.in, configure: Regenerate.
12047
12048 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12049 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12050 (target_fileio_open): Add prototype.
12051 (target_fileio_pwrite): Likewise.
12052 (target_fileio_pread): Likewise.
12053 (target_fileio_close): Likewise.
12054 (target_fileio_unlink): Likewise.
12055 (target_fileio_read_alloc): Likewise.
12056 (target_fileio_read_stralloc): Likewise.
12057
12058 * target.c: Include "gdb/fileio.h".
12059 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12060 (default_fileio_target): New function.
12061 (target_fileio_open): Likewise.
12062 (target_fileio_pwrite): Likewise.
12063 (target_fileio_pread): Likewise.
12064 (target_fileio_close): Likewise.
12065 (target_fileio_unlink): Likewise.
12066 (target_fileio_close_cleanup): Likewise.
12067 (target_fileio_read_alloc_1): Likewise.
12068 (target_fileio_read_alloc): Likewise.
12069 (target_fileio_read_stralloc): Likewise.
12070
12071 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12072 <fcntl.h>, and <unistd.h>.
12073 (inf_child_fileio_open_flags_to_host): New function.
12074 (inf_child_errno_to_fileio_error): Likewise.
12075 (inf_child_fileio_open): Likewise.
12076 (inf_child_fileio_pwrite): Likewise.
12077 (inf_child_fileio_pread): Likewise.
12078 (inf_child_fileio_close): Likewise.
12079 (inf_child_fileio_unlink): Likewise.
12080 (inf_child_target): Install to_fileio routines.
12081
12082 * remote.c (init_remote_ops): Install to_fileio routines.
12083
12084 2012-01-20 Pedro Alves <palves@redhat.com>
12085 Ulrich Weigand <ulrich.weigand@linaro.org>
12086
12087 * remote.c (remote_multi_process_p): Only check for multi-process
12088 protocol feature, do not check for extended protocol.
12089 (remote_supports_multi_process): Check for extended protocol here.
12090 (set_general_process): Likewise.
12091 (extended_remote_kill): Likewise.
12092 (remote_pid_to_str): Likewise.
12093 (remote_query_supported): Always query multiprocess mode.
12094
12095 2012-01-20 Pedro Alves <palves@redhat.com>
12096 Ulrich Weigand <ulrich.weigand@linaro.org>
12097
12098 * inferior.h (struct inferior): Add fake_pid_p.
12099 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12100 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12101 magic_null_ptid since the remote side doesn't provide a real PID.
12102
12103 2012-01-19 Tom Tromey <tromey@redhat.com>
12104
12105 * NEWS: Combine the two Python sections.
12106
12107 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12108
12109 * target.h (target_close): Update comment on the target's unpush state.
12110
12111 2012-01-19 Pedro Alves <palves@redhat.com>
12112
12113 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12114 linux_nat_async directly instead of going through the target
12115 vector.
12116 * target.c (unpush_target): Close target after unpushing it, not
12117 before.
12118
12119 2012-01-19 Gary Benson <gbenson@redhat.com>
12120
12121 * mdebugread.c (sort_blocks): Replace integer constants with ones
12122 derived from FIRST_LOCAL_BLOCK.
12123
12124 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12125 Jan Kratochvil <jan.kratochvil@redhat.com>
12126
12127 PR gdb/9538
12128 * symfile.c (find_separate_debug_file): New function.
12129 (terminate_after_last_dir_separator): Likewise.
12130 (find_separate_debug_file_by_debuglink): Also try realpath.
12131 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12132 * configure: Regenerate.
12133 * config.in: Regenerate.
12134
12135 2012-01-18 Doug Evans <dje@google.com>
12136
12137 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12138 (main.o): Remove rule.
12139 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12140 (--with-sysroot): Rewrite.
12141 * configure: Regenerate.
12142 * config.in: Regenerate.
12143
12144 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12145
12146 * parse.c (initialize_expout): New function.
12147 (reallocate_expout): Likewise.
12148 (parse_exp_in_context): Use `initialize_expout' and
12149 `reallocate_expout' when appropriate.
12150
12151 2012-01-18 Pedro Alves <palves@redhat.com>
12152
12153 * record.c (struct record_breakpoint, record_breakpoint_p)
12154 (record_breakpoints): New.
12155 (record_insert_breakpoint, record_remove_breakpoint): Manage
12156 record breakpoints list. Only remove breakpoints from the
12157 inferior if they had been inserted there in the first place.
12158
12159 2012-01-17 Doug Evans <dje@google.com>
12160
12161 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12162 if we know we don't have a file name to look for.
12163
12164 2012-01-17 Pedro Alves <palves@redhat.com>
12165
12166 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12167 the frame's stop reason is UNWIND_UNAVAILABLE.
12168
12169 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12170
12171 Fix compilation error.
12172 * m2-exp.y (yyerror): Use ANSI C prototype.
12173
12174 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12175
12176 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12177 (growbuf_by_size): Likewise.
12178 (yyerror): Likewise.
12179 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12180 (modblock): Remove variable (was #if 0'ed).
12181 (parse_number): Convert prototype from K&R to ANSI C.
12182 (yyerror): Likewise.
12183 * objc-exp.y (parse_number): Likewise.
12184 (yyerror): Likewise.
12185 (yylex): Remove #if 0'ed code.
12186 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12187 (yyerror): Likewise.
12188
12189 2012-01-16 Tom Tromey <tromey@redhat.com>
12190
12191 * NEWS: Add item.
12192 * symtab.h (compare_filenames_for_search): Declare.
12193 * symtab.c (compare_filenames_for_search): New function.
12194 (iterate_over_some_symtabs): Use it.
12195 * symfile.h (struct quick_symbol_functions)
12196 <map_symtabs_matching_filename>: Change spec.
12197 * psymtab.c (partial_map_symtabs_matching_filename): Use
12198 compare_filenames_for_search. Update for new spec.
12199 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12200 compare_filenames_for_search. Update for new spec.
12201 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12202
12203 2012-01-16 Tom Tromey <tromey@redhat.com>
12204
12205 PR python/13281:
12206 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12207 (struct main_type) <flag_flag_enum>: New field.
12208 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12209 * NEWS: Add entries.
12210 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12211 enums.
12212 * python/lib/gdb/printing.py (_EnumInstance): New class.
12213 (FlagEnumerationPrinter): Likewise.
12214
12215 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12216
12217 * breakpoint.c (create_sals_from_address_default): New function.
12218 (create_breakpoints_sal_default): Likewise.
12219 (decode_linespec_default): Likewise.
12220 (is_marker_spec): Removed.
12221 (strace_marker_p): New function.
12222 (init_breakpoint_sal): Using `strace_marker_p' instead of
12223 `is_marker_spec'.
12224 (create_breakpoint): Call method `create_sals_from_address' from
12225 breakpoint_ops, replacing code that created SALs conditionally
12226 on the type of the breakpoint. Call method `create_breakpoints_sal',
12227 replacing code that created breakpoints conditionally on the type
12228 wanted.
12229 (base_breakpoint_create_sals_from_address): New function.
12230 (base_breakpoint_create_breakpoints_sal): Likewise.
12231 (base_breakpoint_decode_linespec): Likewise.
12232 (base_breakpoint_ops): Add methods
12233 `base_breakpoint_create_sals_from_address',
12234 `base_breakpoint_create_breakpoints_sal' and
12235 `base_breakpoint_decode_linespec'.
12236 (bkpt_create_sals_from_address): New function.
12237 (bkpt_create_breakpoints_sal): Likewise.
12238 (bkpt_decode_linespec): Likewise.
12239 (tracepoint_create_sals_from_address): Likewise.
12240 (tracepoint_create_breakpoints_sal): Likewise.
12241 (tracepoint_decode_linespec): Likewise.
12242 (strace_marker_create_sals_from_address): Likewise.
12243 (strace_marker_create_breakpoints_sal): Likewise.
12244 (strace_marker_decode_linespec): Likewise.
12245 (strace_marker_breakpoint_ops): New variable.
12246 (addr_string_to_sals): Remove `marker_spec'. Call method
12247 `decode_linespec' from breakpoint_ops, replacing code that decoded
12248 an address string into a SAL. Use `strace_marker_p' instead of
12249 `marker_spec'.
12250 (strace_command): Decide whether we are dealing with a static
12251 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12252 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12253 * breakpoint.h (linespec_result, linespec_sals): New forward
12254 declarations.
12255 (breakpoint_ops) <create_sals_from_address>,
12256 <create_breakpoints_sal>, <decode_linespec>: New methods.
12257
12258 2012-01-14 Doug Evans <dje@google.com>
12259
12260 * NEWS: Update text for "maint set python print-stack".
12261 It is deprecated in gdb 7.4 and deleted in 7.5.
12262
12263 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12264
12265 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12266 including curses.h.
12267
12268 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12269
12270 * configure: Regenerate.
12271 * config.in: Regenerate.
12272
12273 2012-01-12 Keith Seitz <keiths@redhat.com>
12274
12275 PR mi/10586
12276 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12277 (ANONYMOUS_UNION_NAME): Define.
12278 (is_path_expr_parent): New function.
12279 (get_path_expr_parent): New function.
12280 (is_anonymous_child): New function.
12281 (create_child_with_value): If the child is anonymous and without
12282 a name, assign an object name to it.
12283 (c_describe_child): Use get_path_expr_parent to determine
12284 the parent expression.
12285 If there field represents an anonymous struct or union and
12286 has no name, set an appropriate display name and expression.
12287 (cplus_describe_child): Likewise.
12288
12289 2012-01-12 Pedro Alves <palves@redhat.com>
12290
12291 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12292 available when %ebp is found to be zero (outermost).
12293
12294 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12295
12296 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12297 an internal gdb_static_assert.
12298 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12299
12300 2012-01-11 Tom Tromey <tromey@redhat.com>
12301
12302 PR gdb/9598:
12303 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12304 catch" and "catch throw".
12305
12306 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12307
12308 * blockframe.c (block_innermost_frame): Start search from selected
12309 frame, if present, or otherwise the current frame.
12310
12311 * c-exp.y (variable): Update innermost_block for
12312 'block COLONCOLON NAME' clause.
12313 * m2-exp.y (variable): Ditto.
12314 * objc-exp.y (variable): Ditto.
12315
12316 2012-01-10 Tom Tromey <tromey@redhat.com>
12317
12318 PR python/13199:
12319 * python/python.c (finish_python_initialization): Set sys.argv.
12320
12321 2012-01-10 Doug Evans <dje@google.com>
12322
12323 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12324 "want_line_info". All callers updated.
12325 (dwarf_decode_lines_1): New function.
12326 (handle_DW_AT_stmt_list): Add function comment.
12327 New arg "want_line_info". All callers updated.
12328 (read_file_scope,read_type_unit_scope): Move comment from
12329 handle_DW_AT_stmt_list to here.
12330
12331 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12332
12333 Fix regression after libiberty/ update for GCC PR 6057 and others.
12334 * c-exp.y (operator) <OPERATOR DELETE>
12335 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12336 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12337 (make_builtin_type, make_name): New variable i, add gdb_assert.
12338 (operator) <OPERATOR NEW>: Update ARGS to 3.
12339 (operator) <OPERATOR DELETE>: Add trailing space.
12340 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12341 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12342 * cp-support.c (cp_canonicalize_string): Check NULL from
12343 cp_comp_to_string, call warning and return.
12344
12345 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12346
12347 Fix duplicate .o files after omitting libbfd.a.
12348 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12349 (SFILES): Add corelow.c.
12350 (COMMON_OBS): Add corelow.o.
12351 (ALLDEPFILES): Remove corelow.c.
12352 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12353 * config/alpha/alpha-osf3.mh: Likewise.
12354 * config/alpha/fbsd.mh: Likewise.
12355 * config/arm/nbsdaout.mh: Likewise.
12356 * config/arm/nbsdelf.mh: Likewise.
12357 * config/i386/i386gnu.mh: Likewise.
12358 * config/ia64/hpux.mh: Likewise.
12359 * config/ia64/linux.mh: Likewise.
12360 * config/m32r/linux.mh: Likewise.
12361 * config/m68k/linux.mh: Likewise.
12362 * config/mips/irix5.mh: Likewise.
12363 * config/mips/irix6.mh: Likewise.
12364 * config/pa/hpux.mh: Likewise.
12365 * config/pa/linux.mh: Likewise.
12366 * config/powerpc/aix.mh: Likewise.
12367 * config/sparc/linux.mh: Likewise.
12368 * config/sparc/linux64.mh: Likewise.
12369 * config/sparc/sol2.mh: Likewise.
12370 * config/vax/vax.mh: Likewise.
12371 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12372 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12373 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12374 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12375 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12376 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12377 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12378 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12379 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12380 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12381 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12382 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12383 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12384 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12385 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12386 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12387 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12388 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12389 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12390 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12391 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12392 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12393 corelow.o from gdb_target_obs.
12394 * corefile.c (core_target): Update the comment on NULL value.
12395 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12396 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12397 MATCHES. Drop YUMMY set on NULL.
12398 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12399 reclaim CORE_DATA if it is already NULL.
12400
12401 2012-01-09 Doug Evans <dje@google.com>
12402
12403 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12404 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12405
12406 2012-01-09 Keith Seitz <keiths@redhat.com>
12407
12408 * breakpoint.c (wrapper.h): Don't include.
12409
12410 2012-01-09 Keith Seitz <keiths@redhat.com>
12411
12412 * Makefile.in (SFILES): Remove wrapper.c.
12413 (HFILES_NO_SRCDIR): Remove wrapper.h.
12414 (COMMON_OBS): Remove wrapper.o.
12415 * cli/cli-interp.c: Don't inlude wrapper.h.
12416 * corelow.c: Likewise.
12417 (core_open): Replace gdb_target_find_new_threads with
12418 TRY_CATCH around target_find_new_threads.
12419 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12420 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12421 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12422 evaluate_expression.
12423 (varobj_set_value): Likewise for evaluate_expression and
12424 value_assign.
12425 (install_new_variable): Likewise for value_fetch_lazy.
12426 (adjust_value_for_child_access): Likewise for value_ind.
12427 (c_describe_child): Likewise for value_subscript and
12428 value_ind.
12429 (c_value_of_root): Likewise for evaluate_expression.
12430 * wrapper.c: Remove.
12431 * wrapper.h: Remove.
12432
12433 2012-01-09 Doug Evans <dje@google.com>
12434
12435 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12436 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12437 "abfd" args with "section". All callers updated.
12438 Error checking code moved ...
12439 (error_check_comp_unit_head): ... here. New function.
12440 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12441 Delete arg "abfd". New arg "type_offset". All callers updated.
12442 (create_debug_types_hash_table): Simplify by using
12443 read_and_check_type_unit_head.
12444
12445 * parser-defs.h (namecopy): Delete.
12446 * parse.c (namecopy, namecopy_size): Move into copy_name.
12447
12448 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12449
12450 Partially fix duplicate .o files after omitting libbfd.a.
12451 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12452 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12453 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12454 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12455 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12456 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12457 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12458
12459 2012-01-09 Pedro Alves <palves@redhat.com>
12460
12461 * MAINTAINERS: Update my email address.
12462
12463 2012-01-08 Doug Evans <dje@google.com>
12464
12465 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12466 n_type_units. Rename type_comp_units to all_type_units.
12467 All uses updated.
12468 (add_signatured_type_cu_to_table): Renamed from
12469 add_signatured_type_cu_to_list. All callers updated.
12470
12471 * gdbtypes.h (struct cplus_struct_type): Delete member
12472 nfn_fields_total. All uses removed.
12473
12474 2012-01-06 Doug Evans <dje@google.com>
12475
12476 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12477 to top of file.
12478 (dwarf2_find_comp_unit): Delete.
12479 (process_psymtab_comp_unit): Make result "void".
12480 Delete args buffer, info_ptr, buffer_size, and replace with
12481 "section". All callers updated.
12482 (dwarf2_build_psymtabs_hard): Simplify.
12483
12484 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12485 Thiago Jung Bauermann <bauerman@br.ibm.com>
12486
12487 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12488 before `struct gdb_exception'.
12489 * breakpoint.c (update_global_location_list_nothrow)
12490 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12491 * cp-abi.c (value_rtti_type): Likewise.
12492 * cp-support.c (cp_validate_operator): Likewise.
12493 * infrun.c (insert_exception_resume_breakpoint)
12494 (check_exception_resume, keep_going): Likewise.
12495 * mi-interp.c (mi_breakpoint_created)
12496 (mi_breakpoint_modified): Likewise.
12497 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12498 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12499 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12500
12501 2012-01-05 Doug Evans <dje@google.com>
12502
12503 * dwarf2read.c (statement_prologue): Delete, unused.
12504
12505 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12506 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12507
12508 * dwarf2read.c (comp_unit_header): Delete, unused.
12509
12510 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12511
12512 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12513 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12514
12515 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12516
12517 * infrun.c (normal_stop): Don't skip calling the normal_stop
12518 observers if the thread was doing a multi-step, but stopped for
12519 some reason other than stepping.
12520
12521 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12522
12523 * cli/cli-decode.h: Add comments.
12524 (CMD_LIST_AMBIGUOUS): Moved to command.h
12525 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12526 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12527 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12528 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12529 (add_com, add_com_alias, add_info, add_info_alias)
12530 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12531 declarations.
12532 * command.h: Add and adjust comments.
12533 (CMD_LIST_AMBIGUOUS): Moved here.
12534 (help_cmd, help_cmd_list): Delete declarations.
12535
12536 2012-01-04 Doug Evans <dje@google.com>
12537
12538 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12539 All callers updated.
12540 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12541 Replace all arguments with "per_cu". All callers updated.
12542
12543 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12544
12545 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12546 New arg "per_cu". All callers updated.
12547
12548 Delete #if 0'd out code.
12549 * language.c (binop_result_type): Delete.
12550 (simple_type, ordered_type, same_type, integral_type): Delete.
12551 (numeric_type, character_type, string_type, boolean_type): Delete.
12552 (float_type, structured_type): Delete.
12553 * language.h: Update.
12554
12555 2012-01-04 Tom Tromey <tromey@redhat.com>
12556
12557 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12558
12559 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12560
12561 * corefile.c (close_exec_file): Delete.
12562 (reopen_exec_file): Remove commented out code that seems related
12563 to close_exec_file, which is being deleted here.
12564 * inferior.h (close_exec_file): Delete.
12565 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12566
12567 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12568
12569 * ada-lang.c: #include "cli/cli-utils.h".
12570 (get_selections): Use skip_spaces.
12571 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12572 (catch_ada_exception_command_split): Use skip_spaces.
12573 (ada_decode_assert_location): Likewise.
12574
12575 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12576
12577 * linespec.c (decode_line_internal): Check for C++ or Java
12578 compound constructs only if the current language is C, C++
12579 or Java.
12580
12581 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12582
12583 Revert:
12584 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12585 Joel Brobecker <brobecker@adacore.com>
12586 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12587 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12588 3 times.
12589 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12590 fall through into AT_ENTRY_POINT.
12591 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12592 DUMMY_ADDR with it.
12593 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12594 PPC_INSN_SIZE skip to 3 times.
12595
12596 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12597
12598 * linespec.c (add_minsym): Preserve function descriptors.
12599
12600 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12601
12602 * breakpoint.c (all_locations_are_pending): Consider locations
12603 in program spaces executing during startup pending as well.
12604
12605 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12606
12607 Copyright year update in most files of the GDB Project.
12608
12609 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12610
12611 * copyright.sh: Delete.
12612 * copyright.py: Rewrite.
12613
12614 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12615
12616 * gnulib/extra/update-copyright: New file, imported from gnulib.
12617
12618 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12619
12620 * README (Copyright and License Notices): New section.
12621
12622 2012-01-03 Tom Tromey <tromey@redhat.com>
12623
12624 PR python/12533:
12625 * python/py-value.c (valpy_dereference, valpy_get_address
12626 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12627 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12628 (valpy_absolute, valpy_richcompare): Free intermediate values.
12629
12630 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12631
12632 * ada-lang.c: Reformat the copyright notice.
12633
12634 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12635
12636 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12637 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12638 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12639 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12640 Revert this part of:
12641 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12642 Build gdb directly from *.o files not using libgdb.a.
12643 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12644
12645 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12646
12647 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12648 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12649 Reformat the copyright header.
12650
12651 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12652
12653 Revert this part of:
12654 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12655 Remove the gdbtui binary.
12656 * gdb.c (main): Remove args.interpreter_p initialization.
12657 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12658 * main.h (struct captured_main_args): Remove interpreter_p.
12659
12660 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12661
12662 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12663
12664 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12665
12666 * top.c (print_gdb_version): Update copyright year.
12667
12668 2012-01-02 Yao Qi <yao@codesourcery.com>
12669
12670 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12671
12672 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12673 Joel Brobecker <brobecker@adacore.com>
12674
12675 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12676 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12677 3 times.
12678 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12679 fall through into AT_ENTRY_POINT.
12680 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12681 DUMMY_ADDR with it.
12682 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12683 PPC_INSN_SIZE skip to 3 times.
12684
12685 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12686
12687 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12688 the return value.
12689 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12690
12691 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12692
12693 Build gdb directly from *.o files not using libgdb.a.
12694 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12695 (COMMON_OBS): Remove solib-target.o.
12696 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12697 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12698 (LIBGDB_OBS, libgdb.a): Move it above.
12699 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12700 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12701 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12702 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12703 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12704 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12705 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12706 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12707 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12708 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12709 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12710 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12711 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12712 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12713 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12714 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12715 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12716 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12717 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12718 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12719 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12720 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12721 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12722 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12723 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12724 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12725 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12726
12727 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12728
12729 Remove the gdbtui binary.
12730 * .gitignore (/gdbtui): Remove.
12731 * Makefile.in (TUI): Remove.
12732 (SUBDIR_TUI_OBS): Remove tui-main.o.
12733 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12734 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12735 (tui-main.o): Remove.
12736 (all_object_files): Remove tui-main.o.
12737 * NEWS: New note for the gdbtui removal.
12738 * configure: Rebuilt.
12739 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12740 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12741 CONFIG_UNINSTALL respectively.
12742 * gdb.c (main): Remove args.interpreter_p initialization.
12743 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12744 * main.h (struct captured_main_args): Remove interpreter_p.
12745 * tui/tui-main.c: Remove.
12746
12747 2012-01-01 Doug Evans <dje@google.com>
12748
12749 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12750 (dwarf2_physname, read_import_statement): Ditto.
12751 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12752 (process_structure_scope read_subroutine_type): Ditto.
12753 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12754 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12755 (dwarf2_fetch_die_location_block): Ditto.
12756 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12757
12758 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12759 All callers updated.
12760 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12761 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12762 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12763
12764 * dwarf2read.c (load_cu): Move assert to more useful location.
12765
12766 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12767 All callers updated.
12768
12769 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12770 (dwarf2_elf_names): Minor reformat.
12771 (dwarf2_per_cu_data): Tweak comment.
12772 (dwarf2_read_section): Fix comment.
12773 (create_all_comp_units): Fix comment.
12774 (load_full_comp_unit): Fix comment.
12775 (process_full_comp_unit): Fix comment.
12776 (read_signatured_type): Fix comment.
12777
12778 For older changes see ChangeLog-2011.
12779 \f
12780 Local Variables:
12781 mode: change-log
12782 left-margin: 8
12783 fill-column: 74
12784 version-control: never
12785 coding: utf-8
12786 End: