* c-exp.y (block, variable, name_not_typename, lex_one_token,
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-14 Tom Tromey <tromey@redhat.com>
2
3 * c-exp.y (block, variable, name_not_typename, lex_one_token,
4 classify_name): Update.
5 * c-valprint.c (c_val_print): Update.
6 * f-exp.y (yylex): Update.
7 * go-exp.y (package_name_p, classify_packaged_name)
8 (classify_name): Update.
9 * jv-exp.y (push_variable): Update.
10 * m2-exp.y (variable): Update.
11 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
12 * p-exp.y (block, variable, yylex): Update.
13 * p-valprint.c (pascal_val_print): Update.
14 * parse.c (write_dollar_variable): Update.
15 * printcmd.c (address_info): Update.
16 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
17 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
18 (lookup_symbol): Change type of 'is_a_field_of_this'.
19 (check_field): Add 'is_a_field_of_this' argument.
20 * symtab.h (struct field_of_this_result): New.
21 (lookup_symbol, lookup_symbol_in_language): Update.
22
23 2012-12-14 Tom Tromey <tromey@redhat.com>
24
25 * symtab.c (check_field): Now static. Move from...
26 * valops.c (check_field): ... here. Remove.
27 * value.h (check_field): Don't declare.
28
29 2012-12-14 Tom Tromey <tromey@redhat.com>
30
31 * NEWS: Mention "info proc" and core files.
32 * corelow.c (core_info_proc): New function.
33 (init_core_ops): Set to_info_proc.
34 * gdbarch.c, gdbarch.h: Rebuild.
35 * gdbarch.sh (core_info_proc): New method.
36 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
37 * linux-tdep.c (linux_core_info_proc_mappings)
38 (linux_core_info_proc): New functions.
39 (linux_find_memory_region_ftype): New typedef.
40 (linux_find_memory_regions_full): New function, from
41 linux_find_memory_regions.
42 (struct linux_find_memory_regions_data): New.
43 (linux_find_memory_regions_thunk): New function.
44 (linux_find_memory_regions): Rewrite.
45 (struct linux_make_mappings_data): New.
46 (linux_make_mappings_callback)
47 (linux_make_mappings_corefile_notes): New functions.
48 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
49 (linux_init_abi): Call set_gdbarch_core_info_proc.
50 * target.c (target_info_proc): Return 'int'.
51 * target.h (target_info_proc): Update.
52
53 2012-12-14 Pierre Muller <muller@sourceware.org>
54
55 * windows-nat.c (windows_xfer_shared_libraries): Avoid
56 memory leak when OFFSET >= LEN_AVAIL.
57
58 2012-12-13 Tom Tromey <tromey@redhat.com>
59
60 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
61
62 2012-12-13 Tom Tromey <tromey@redhat.com>
63
64 * acinclude.m4 (CY_AC_C_WORKS): Remove.
65
66 2012-12-13 Pierre Muller <muller@sourceware.org>
67
68 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
69 local variable and zero terminate it to avoid possible problems
70 in strcmp.
71
72 2012-12-13 Pedro Alves <palves@redhat.com>
73
74 * coff-pe-read.c: Include coff/internal.h.
75 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
76 Null terminate buffer explicitly instead of memset the whole
77 buffer.
78
79 2012-12-13 Pierre Muller <muller@sourceware.org>
80
81 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
82 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
83 for already defined macros.
84
85 2012-12-13 Pierre Muller <muller@sourceware.org>
86
87 * coff-pe-read.h (pe_text_section_offset): Declare new function.
88 * coff-pe-read.c (debug_coff_pe_read): New static variable.
89 (struct read_pe_section_data): Add section_name field.
90 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
91 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
92 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
93 (get_pe_section_index): New function.
94 (struct pe_sections_info): New type.
95 (get_section_vmas): Use new struct pe_sections_info.
96 (add_pe_exported_sym): Handle unnamed exported function.
97 (add_pe_forwarded_sym): New function.
98 (read_pe_truncate_name): Truncate at last dot.
99 (pe_as16): New function.
100 (read_pe_exported_syms): Use ordinal of function to
101 retrieve correct RVA address of function and handle
102 forwarded symbol.
103 (pe_text_section_offset): New function.
104 (show_debug_coff_pe_read): New function.
105 (_initialize_coff_pe_read): New function adding
106 'set/show debug coff_pe_read' commands.
107
108 * windows-tdep.c (windows_xfer_shared_library): Use
109 pe_text_section_offset function instead of possibly wrong
110 0x1000 constant for .text sextion offset.
111
112 2012-12-13 Pedro Alves <palves@redhat.com>
113
114 * gdbarch.sh (do_read): Set IFS to blank.
115
116 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
117
118 * NEWS: Mention the -catch-load/-catch-unload MI commands.
119
120 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
121
122 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
123 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
124 * breakpoint.c (add_solib_catchpoint): New function that
125 can be used by both CLI and MI, factored out from
126 catch_load_or_unload.
127 (catch_load_or_unload): Strip it down and make it use the
128 new add_solib_catchpoint.
129 * breakpoint.h (add_solib_catchpoint): Declare it.
130 * mi/mi-cmd-break.h: New file.
131 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
132 (setup_breakpoint_reporting): New function used for both
133 catchpoints and breakpoints.
134 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
135 * mi/mi-cmd-catch.c: New file.
136 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
137 and -catch-unload.
138 * mi/mi-cmds.h: Declare the handlers for -catch-load and
139 -catch-unload.
140
141 2012-11-28 Tom Tromey <tromey@redhat.com>
142
143 * dbxread.c (read_dbx_symtab): Update.
144 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
145 (read_ofile_symtab): Add 'objfile' argument.
146 * dwarf2read.c (process_psymtab_comp_unit_reader)
147 (build_type_psymtabs_reader): Update.
148 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
149 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
150 argument.
151 (parse_procedure, parse_partial_symbols): Update.
152 (psymtab_to_symtab_1): Add 'objfile' argument.
153 * psympriv.h (struct partial_symtab) <objfile>: Remove.
154 <read_symtab>: Add 'objfile' argument.
155 (sort_pst_symbols, discard_psymtab): Update.
156 * psymtab.c (partial_map_expand_apply): Update.
157 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
158 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
159 (find_pc_sect_psymbol): Add 'objfile' argument.
160 (lookup_symbol_aux_psymtabs): Update.
161 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
162 Add 'objfile' argument.
163 (find_last_source_symtab_from_partial, dump_psymtab)
164 (dump_psymtabs_for_objfile, read_symtabs_for_function)
165 (expand_partial_symbol_tables, read_psymtabs_with_filename)
166 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
167 (expand_symtabs_matching_via_partial): Update.
168 (sort_pst_symbols): Add 'objfile' argument.
169 (allocate_psymtab): Update.
170 (discard_psymtab): Add 'objfile' argument.
171 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
172 * stabsread.h (end_psymtab): Update.
173 * xcoffread.c (this_symtab_objfile): New global.
174 (process_linenos, enter_line_range, xcoff_next_symbol_text):
175 Update.
176 (read_xcoff_symtab): Add 'objfile' argument.
177 (read_symbol, read_symbol_lineno): Update.
178 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
179 (xcoff_end_psymtab): Add 'objfile' argument.
180 (scan_xcoff_symtab): Update.
181
182 2012-12-12 Paul Koning <paul_koning@dell.com>
183
184 Add support for Python 3.
185 * NEWS: Mention Python 3 support.
186 * varobj.c (value_get_print_value): Use
187 python_string_to_target_string.
188 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
189 of type objects.
190 * python/py-breakpoint.c: Ditto.
191 * python/py-cmd.c: Ditto.
192 * python/py-event.c: Ditto.
193 * python/py-event.h: Ditto.
194 * python/py-evtregistry.c: Ditto.
195 * python/py-finishbreakpoint.c: Ditto.
196 * python/py-frame.c: Ditto.
197 * python/py-function.c: Ditto.
198 * python/py-infthread.c: Ditto.
199 * python/py-lazy-string.c: Ditto.
200 * python/py-progspace.c: Ditto.
201 * /python/py-symbol.c: Ditto.
202 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
203 initialization for Python 3.
204 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
205 of type objects.
206 (infpy_read_memory): Return memoryview object if Python 3.
207 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
208 (infpy_search_memory): Ditto.
209 (get_buffer): New function for Python 3.
210 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
211 of type objects.
212 (objfpy_dealloc): Use Py_TYPE to call tp_free.
213 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
214 of type objects.
215 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
216 (set_attr): Ditto.
217 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
218 instead of PyString methods if Python 3.
219 (print_children): Skip push_dummy_python_frame call if Python 3.
220 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
221 of type objects.
222 (salpy_dealloc): Use Py_TYPE to call tp_free.
223 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
224 of type objects.
225 (field_dealloc): Use Py_TYPE to call tp_free.
226 (typy_dealloc): Ditto.
227 (type_object_as_number): Adjust struct initializations for
228 differences in layout for Python 2 vs. Python 3.
229 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
230 string case for Python 3.
231 (unicode_to_encoded_python_string): Shorten code (no functional
232 change).
233 (python_string_to_target_python_string): Comment that in Python 3
234 returned value is a Python "bytes" type.
235 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
236 (gdb_py_object_from_longest): Omit non-long integer case in Python
237 3.
238 (gdb_py_object_from_ulongest): Ditto.
239 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
240 of type objects.
241 (valpy_dealloc): Use Py_TYPE to call tp_free.
242 (valpy_int): Omit function if Python 3.
243 (convert_value_from_python): Use "%S" format (Python object as a
244 string) if Python 3.
245 (value_object_as_number): Adjust struct initializations for
246 differences in layout for Python 2 vs. Python 3.
247 * python/python-config.py: Adjust syntax for Python 3
248 compatibility.
249 Include "sys.abiflags" string as part of python library name, if
250 that attribute exists (Python 3).
251 * python/python-internal.h (IS_PY3): Define if Python 3.
252 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
253 placeholder value if Python 3.
254 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
255 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
256 analogous Python 3 API function if Python 3.
257 (PyVarObject_HEAD_INIT): Define if not already defined.
258 (Py_TYPE): Ditto.
259 * python/python.c (eval_python_command): Omit Py_FlushLine call if
260 Python 3.
261 Check return values of all Python API calls for error.
262 Supply dummy "python" and "python-interactive" commands if Python
263 initialization failed.
264 (_initialize_python): Convert argc to wchar_t** if Python 3.
265 Add module initialization for Python 3.
266 (finish_python_initialization): Pass wchar_t * argument to
267 PySys_SetPath if Python 3.
268 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
269 (_GdbFile): New class for common output file behavior.
270 (GdbOutFile): Subclass from _GdbFile.
271 (GdbOutputErrorFile): Ditto.
272 (auto_load_packages): Adjust syntax for Python 3 compatibility.
273 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
274 * python/lib/gdb/prompt.py: Use sorted() function rather than
275 sort() method.
276 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
277 Adjust syntax for Python 3 compatibility.
278 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
279 rather than sort() method.
280 Adjust syntax for Python 3 compatibility.
281 * python/lib/gdb/command/type_printers.py: Ditto.
282 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
283 value is a memoryview object if Python 3.
284
285 2012-12-12 Tom Tromey <tromey@redhat.com>
286
287 * coffread.c (coff_objfile_data_key): New global.
288 (coff_symfile_init): Use set_objfile_data.
289 (coff_symfile_read): Use objfile_data.
290 (coff_symfile_finish): Don't free deprecated_sym_private.
291 (coff_free_info): New function.
292 (_initialize_coffread): Initialize coff_objfile_data_key.
293 * mdebugread.c (pending_list): Update comment.
294 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
295 * symfile.c (reread_symbols): Don't mention
296 deprecated_sym_private.
297 * xcoffread.c (xcoff_objfile_data_key): New global.
298 (XCOFF_DATA): New macro.
299 (process_linenos, enter_line_range, xcoff_next_symbol_text)
300 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
301 XCOFF_DATA.
302 (xcoff_new_init) Use set_objfile_data.
303 (xcoff_symfile_finish): Don't free deprecated_sym_private.
304 (init_stringtab, swap_sym, scan_xcoff_symtab)
305 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
306 (xcoff_free_info): New function.
307 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
308
309 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
310
311 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
312
313 2012-12-12 Tom Tromey <tromey@redhat.com>
314
315 * coffread.c (coff_symfile_init): Use set_objfile_data.
316 (coff_symfile_read): Use DBX_SYMFILE_INFO.
317 * dbxread.c (dbx_objfile_data_key): New global.
318 (dbx_symfile_init): Use set_objfile_data.
319 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
320 (dbx_free_symfile_info): New function.
321 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
322 DBX_SYMFILE_INFO.
323 (stabsect_build_psymtabs): Use set_objfile_data.
324 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
325 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
326 set_objfile_data.
327 (free_elfinfo): Use DBX_SYMFILE_INFO.
328 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
329 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
330 * gdb-stabs.h (dbx_objfile_data_key): Declare.
331 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
332 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
333 * somread.c (som_symfile_finish): Don't free
334 deprecated_sym_stab_info.
335
336 2012-12-12 Joel Brobecker <brobecker@adacore.com>
337
338 * gdbarch.sh (software_single_step): Remove trailing space in
339 comment (gdbarch.h is already correct).
340
341 2012-12-11 Tom Tromey <tromey@redhat.com>
342
343 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
344
345 2012-12-11 Tom Tromey <tromey@redhat.com>
346
347 * dsrec.c (report_transfer_performance): Don't declare.
348 (load_srec): Use gettimeofday, print_transfer_performance.
349 * symfile.c (report_transfer_performance): Remove.
350
351 2012-12-11 Pedro Alves <pedro@codesourcery.com>
352 Pedro Alves <palves@redhat.com>
353
354 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
355 NT_PSTATUS note.
356 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
357 differently from LWP IDs.
358
359 2012-12-11 Pedro Alves <palves@redhat.com>
360
361 * configure.ac (detect type of /proc): Remove Unixware handling.
362 * configure: Regenerate.
363 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
364 (ioctl_table) [PCRESET]: Remove entry.
365 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
366 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
367 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
368 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
369 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
370 Unixware in comments throughout.
371 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
372 and remove mention of Unixware.
373
374 2012-12-10 Doug Evans <dje@google.com>
375
376 * dwarf2read.c (dwarf2_cu): Enhance comment.
377 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
378 the DWO file.
379 (dwarf2_record_block_ranges): Ditto.
380
381 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
382
383 * symtab.c (find_pc_sect_symtab): Add comment.
384
385 2012-12-10 Tom Tromey <tromey@redhat.com>
386
387 * defs.h: Don't check for definition of LONGEST.
388 (min, max): Remove duplicates.
389
390 2012-12-10 Tom Tromey <tromey@redhat.com>
391
392 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
393 (dwarf2_fetch_die_loc_cu_off): Rename from
394 dwarf2_fetch_die_location_block. Rewrite to use
395 dwarf2_fetch_die_loc_sect_off.
396 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
397 (dwarf2_fetch_die_loc_cu_off): Rename.
398 * dwarf2loc.c (indirect_pieced_value): Use
399 dwarf2_fetch_die_loc_sect_off.
400 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
401 comment.
402 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
403 * dwarf2expr.c (add_piece): Update.
404 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
405
406 2012-12-10 Tom Tromey <tromey@redhat.com>
407
408 * buildsym.c (struct pending_block): Move from buildsym.h.
409 (pending_blocks): Likewise; now static.
410 (pending_block_obstack): New global.
411 (free_pending_blocks): Free blocks.
412 (record_pending_block): Use pending_block_obstack.
413 * buildsym.h (struct pending_block): Move definition to
414 buildsym.c.
415 (pending_blocks): Don't declare.
416
417 2012-12-10 Pedro Alves <palves@redhat.com>
418
419 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
420 dead SCO code, and adjust function description comment.
421
422 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
423
424 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
425 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
426 CC_HAS_LONG_LONG.
427 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
428 * dwarf2read.c (extract_cu_value): Remove the function.
429 (create_cus_from_index_list): Make the return type void, inline the
430 extract_cu_value caller, include new gdb_static_assert.
431 (create_cus_from_index): Make the return type void, update the function
432 comment, update the create_cus_from_index_list caller.
433 (create_signatured_type_table_from_index): Make the return type void,
434 inline the extract_cu_value caller, include new gdb_static_assert.
435 (dwarf2_read_index): Update the create_cus_from_index and
436 create_signatured_type_table_from_index caller.
437 * printcmd.c (ui_printf): Remove conditionalizations for
438 CC_HAS_LONG_LONG.
439 * config.in: Regenerate.
440 * configure: Regenerate.
441
442 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
443
444 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
445 Update the comment for checked_producer.
446 (check_producer): New forward declaration.
447 (producer_is_gcc_lt_4_3): New function.
448 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
449 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
450
451 2012-12-07 Tom Tromey <tromey@redhat.com>
452
453 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
454 argument, assertion.
455 * c-exp.y (typebase): Add completion productions.
456 * completer.c (expression_completer): Handle tag completion.
457 * expression.h (parse_expression_for_completion): Add argument.
458 * f-lang.c (f_make_symbol_completion_list): Add 'code'
459 argument.
460 * language.h (struct language_defn)
461 <la_make_symbol_completion_list>: Add 'code' argument.
462 * parse.c (expout_tag_completion_type, expout_completion_name):
463 New globals.
464 (mark_struct_expression): Add assertion.
465 (mark_completion_tag): New function.
466 (parse_exp_in_context): Initialize new globals.
467 (parse_expression_for_completion): Add 'code' argument. Handle
468 tag completion.
469 * parser-defs.h (mark_completion_tag): Declare.
470 * symtab.c (default_make_symbol_completion_list_break_on): Add
471 'code' argument. Update.
472 (default_make_symbol_completion_list): Add 'code' argument.
473 (make_symbol_completion_list): Update.
474 (make_symbol_completion_type): New function.
475 * symtab.h (default_make_symbol_completion_list_break_on)
476 (default_make_symbol_completion_list): Update.
477 (make_symbol_completion_type): Declare.
478
479 2012-12-07 Tom Tromey <tromey@redhat.com>
480
481 * expression.h (parse_expression_for_completion): Rename
482 from parse_field_expression.
483 (parse_completion): Rename from in_parse_field.
484 * c-exp.y (lex_one_token): Update.
485 * completer.c (expression_completer): Update.
486 * go-exp.y (lex_one_token): Update.
487 * p-exp.y (yylex): Update.
488 * parse.c (parse_completion): Rename from in_parse_field.
489 (parse_exp_in_context): Update.
490 (parse_expression_for_completion): Rename from
491 parse_field_expression. Update.
492
493 2012-12-07 Tom Tromey <tromey@redhat.com>
494
495 * typeprint.c (_initialize_typeprint): Set completer
496 for "whatis" and "ptype".
497
498 2012-12-07 Joel Brobecker <brobecker@adacore.com>
499
500 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
501 "sim/common/cgen-fpu.h". Remove invalid entries
502 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
503 which actually have an FSF copyright header.
504
505 2012-12-07 Joel Brobecker <brobecker@adacore.com>
506
507 * osf-share/AT386/cma_thread_io.h: Delete.
508 * osf-share/HP800/cma_thread_io.h: Delete.
509 * osf-share/README: Delete.
510 * osf-share/RIOS/cma_thread_io.h: Delete.
511 * osf-share/cma_attr.h: Delete.
512 * osf-share/cma_deb_core.h: Delete.
513 * osf-share/cma_debug_client.h: Delete.
514 * osf-share/cma_errors.h: Delete.
515 * osf-share/cma_handle.h: Delete.
516 * osf-share/cma_init.h: Delete.
517 * osf-share/cma_list.h: Delete.
518 * osf-share/cma_mutex.h: Delete.
519 * osf-share/cma_sched.h: Delete.
520 * osf-share/cma_semaphore_defs.h: Delete.
521 * osf-share/cma_sequence.h: Delete.
522 * osf-share/cma_stack.h: Delete.
523 * osf-share/cma_stack_int.h: Delete.
524 * osf-share/cma_tcb_defs.h: Delete.
525 * osf-share/cma_util.h: Delete.
526 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
527 in osf-share.
528 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
529 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
530 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
531
532 2012-12-06 Pedro Alves <palves@redhat.com>
533 Tom Tromey <tromey@redhat.com>
534
535 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
536
537 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
538
539 PR mi/14741:
540 * mi/mi-cmd-var.c (varobj_update_one): Take value of
541 attribute "dynamic" and "displayhint" from printed child,
542 not the root variable.
543
544 2012-12-06 Joel Brobecker <brobecker@adacore.com>
545
546 * aix-thread.c (getthrds): Fix type of 4th parameter.
547 (get_signaled_thread): Change type of variable ktid to tid_t.
548
549 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
550
551 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
552 value of get_frame_block.
553
554 2012-12-05 Pierre Muller <muller@sourceware.org>
555
556 Avoid memory leaks on struct cmd_list_element.doc field.
557 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
558 if flags contains DOC_ALLOCATED.
559 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
560 flags.
561 (delete_cmd): Handle DOC_ALLOCATED flag.
562 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
563 in flags filed of struct cmd_list_element.
564 (struct cmd_list_element): Document new flag item.
565
566 2012-12-04 Doug Evans <dje@google.com>
567
568 * symmisc.c: Whitespace fixes.
569
570 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
571
572 * i386-tdep.c (i386_skip_prologue): Using symbol table
573 to find the end of prologue for clang compiled binaries.
574 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
575 to find the end of prologue for clang compiled binaries.
576
577 2012-12-03 Doug Evans <dje@google.com>
578
579 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
580 (dw2_find_symbol_file): Delete unused local file_data.
581
582 2012-12-03 Tom Tromey <tromey@redhat.com>
583
584 * ada-exp.y (write_object_renaming, write_var_or_type)
585 (write_ambiguous_var, write_var_from_sym): Make blocks const.
586 * ada-lang.c (replace_operator_with_call)
587 (find_old_style_renaming_symbol): Make blocks const.
588 * ada-lang.h (ada_find_renaming_symbol): Update.
589 (struct ada_symbol_info) <block>: Now const.
590 * breakpoint.c (watch_command_1): Update.
591 * breakpoint.h (struct watchpoint) <exp_valid_block,
592 cond_exp_valid_block>: Now const.
593 * c-exp.y (classify_inner_name, classify_name): Make block
594 argument const.
595 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
596 const.
597 * expression.h (innermost_block, parse_exp_1): Update.
598 (union exp_element) <block>: Now const.
599 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
600 (lookup_struct): Make block argument const.
601 * gdbtypes.h (lookup_template_type): Update.
602 * go-exp.y (classify_name, classify_packaged_name)
603 (package_name_p): Make block argument const.
604 * objc-lang.c (lookup_struct_typedef): Make block argument const.
605 * objc-lang.h (lookup_struct_typedef): Update.
606 * parse.c (parse_exp_in_context, parse_exp_1)
607 (write_exp_elt_block): Make block arguments const.
608 (expression_context_block, innermost_block): Now const.
609 * parser-defs.h (write_exp_elt_block): Update.
610 (expression_context_block, innermost_block, block_found): Now
611 const.
612 * printcmd.c (struct display) <block>: Now const.
613 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
614 * valops.c (address_of_variable): Make block argument const.
615 * value.h (value_of_variable): Update.
616 * varobj.c (struct varobj_root) <valid_block>: Now const.
617
618 2012-11-30 Yao Qi <yao@codesourcery.com>
619
620 * breakpoint.c (print_one_breakpoint_location): Indent code.
621
622 2012-11-30 Yao Qi <yao@codesourcery.com>
623
624 * breakpoint.c (print_one_breakpoint_location): Combine two
625 blocks handling 'hit count' together.
626
627 2012-11-30 Yao Qi <yao@codesourcery.com>
628
629 * infrun.c (error_is_running, ensure_not_running): Move them
630 to ...
631 * infcmd.c (error_is_running, ensure_not_running): ... here.
632 Make them 'static'.
633 * inferior.h: Remove declarations of error_is_running and
634 ensure_not_running.
635
636 2012-11-30 Yao Qi <yao@codesourcery.com>
637
638 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
639 check REGNUM >= 0.
640
641 2012-11-30 Yao Qi <yao@codesourcery.com>
642
643 * infrun.c: Make the declaration of 'init_infwait_state'
644 static.
645 (init_infwait_state): Make it 'static'.
646
647 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
648
649 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
650 return value to void to avoid compiler warning.
651
652 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
653
654 * opencl-lang.c (opencl_print_type): New function.
655 (opencl_language_arch_info): Install it.
656
657 2012-11-29 Tom Tromey <tromey@redhat.com>
658
659 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
660 xvasprintf.
661 * common/common-utils.c (xasprintf, xvasprintf): Remove.
662 * common/common-utils.h (xasprintf, xvasprintf): Remove.
663
664 2012-11-29 Jerome Guitton <guitton@adacore.com>
665
666 * ada-lang.c (ada_is_interface_tag): New function.
667 (ada_is_ignored_field): Add interface tags to the list
668 of ignored fields.
669
670 2012-11-29 Jerome Guitton <guitton@adacore.com>
671
672 * ada-lang.h (ada_tag_value_at_base_address): New function
673 declaration.
674 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
675 New functions.
676 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
677 relocate the class-wide value if need be.
678 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
679 Let ada_tag_value_at_base_address relocate the class-wide access/ref
680 before dereferencing it.
681 * ada-valprint.c (ada_val_print_1): Relocate to base address
682 before displaying the content of an interface-wide ref.
683
684 2012-11-29 Jerome Guitton <guitton@adacore.com>
685
686 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
687
688 2012-11-29 Joel Brobecker <brobecker@adacore.com>
689
690 GDB 7.5.1 released.
691
692 2012-11-29 Yao Qi <yao@codesourcery.com>
693 Tom Tromey <tromey@redhat.com>
694
695 * eval.c (evaluate_subexp_standard): Get the correct pointer
696 type for TYPE_CODE_MEMBERPTR.
697
698 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
699
700 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
701 since now it is being done by binutils' powerpc_init_dialect().
702
703 2012-11-28 Tom Tromey <tromey@redhat.com>
704
705 PR gdb/14290:
706 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
707 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
708 Use it.
709 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
710 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
711 (gdb_bfd_openr_next_archived_file): Use it.
712
713 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
714
715 * configure.ac: Check for linux/perf_event.h.
716 * config.in: Regenerated.
717 * configure: Regenerated.
718
719 2012-11-28 Yao Qi <yao@codesourcery.com>
720
721 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
722 abbreviate 'delete tracepoints' to 'delete tr'.
723 * corefile.c (_initialize_core): Call add_alias_cmd to
724 abbreviate 'set gnutarget' to 'set g'.
725 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
726 'show convenience' to 'show conv'.
727
728 2012-11-27 Joel Brobecker <brobecker@adacore.com>
729
730 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
731 call to sparc_supply_fpregset.
732 (fill_fpregset): Fix first parameter in call to
733 sparc_collect_fpregset.
734
735 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
736 Kazu Hirata <kazu@codesourcery.com>
737 Yao Qi <yao@codesourcery.com>
738
739 * objfiles.c (init_entry_point_info): Call
740 gdbarch_convert_from_func_ptr_addr and
741 gdbarch_addr_bits_remove here ...
742 (entry_point_address_query): ... instead of here.
743 * solib-svr4.c (exec_entry_point): Call
744 gdbarch_addr_bits_remove.
745 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
746 the entry address.
747
748 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
749 Yao Qi <yao@codesourcery.com>
750
751 * eval.c (evaluate_subexp_standard): Add handling of
752 TYPE_CODE_MEMBERPTR when calling functions. Correct the
753 result of ptype for calling a TYPE_CODE_METHODPTR.
754
755 2012-11-27 Yao Qi <yao@codesourcery.com>
756
757 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
758 warning.
759 Add i18n markup.
760
761 2012-11-26 Alexander Larsson <alexl@redhat.com>
762 Jan Kratochvil <jan.kratochvil@redhat.com>
763 Tom Tromey <tromey@redhat.com>
764
765 * NEWS: Mention mini debuginfo feature.
766 * minidebug.c: New file.
767 * configure.ac: Check for lzma.
768 * configure, config.in: Rebuild.
769 * Makefile.in (LIBLZMA): New variable.
770 (CLIBS): Include LIBLZMA.
771 (SFILES): Mention minidebug.c.
772 (COMMON_OBS): Mention minidebug.o.
773 * symfile.c (read_symbols): New function.
774 (syms_from_objfile, reread_symbols): Call it.
775 * symfile.h (find_separate_debug_file_in_section): Declare.
776
777 2012-11-26 Keith Seitz <keiths@redhat.com>
778
779 * exec.c (exec_file_attach): Move cleanup after verifying that
780 memory has in fact been allocated.
781
782 2012-11-26 Tom Tromey <tromey@redhat.com>
783
784 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
785 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
786 SYMBOL_SYMTAB.
787 * skip.c (skip_info): Use SYMBOL_SYMTAB.
788
789 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
790 Pedro Alves <palves@redhat.com>
791
792 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
793 size parameter passed to readlink by one byte.
794 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
795 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
796 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
797 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
798 size by one byte.
799
800 2012-11-26 Yao Qi <yao@codesourcery.com>
801
802 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
803 extraneous parentheses.
804
805 2012-11-26 Yao Qi <yao@codesourcery.com>
806
807 * remote.c (remote_start_remote): Typo fix.
808
809 2012-11-23 David S. Miller <davem@davemloft.net>
810
811 * sparc-tdep.h (struct sparc_fpregset): New data structure.
812 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
813 sparc32_sol2_fpregset): Declare new globals.
814 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
815 'fpregset' argument.
816 * sparc64-tdep.h (sparc64_supply_fpregset,
817 sparc64_collect_fpregset): Likewise.
818 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
819 globals.
820 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
821 (sparc_fpregset): Declare new global.
822 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
823 'fpregset' argument.
824 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
825 into handler.
826 (fill_fpregset): Likewise.
827 (_initialize_sparc_linux_nat): Set sparc_fpregset to
828 sparc32_bsd_fpregset.
829 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
830 sparc32_bsd_fpregset down into handler.
831 (sparc32_linux_collect_core_fpregset): Likewise.
832 * sparc-nat.c (sparc_fpregset): Define.
833 (sparc_supply_fpregset): Add 'fpregset' argument.
834 (sparc_collect_fpregset): Likewise.
835 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
836 into fpregset handler.
837 (sparc_store_inferior_registers): Likewise.
838 (_initialize_sparc_nat): Set sparc_fpregset to
839 sparc32_sunos4_fpregset if NULL.
840 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
841 down into handler.
842 (fill_fpregset): Likewise.
843 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
844 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
845 use it to compute offsets.
846 (sparc32_collect_fpregset): Likewise.
847 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
848 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
849 down into handler.
850 (fill_fpregset): Likewise.
851 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
852 Likewise.
853 (sparc64_linux_collect_core_fpregset): Likewise.
854 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
855 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
856 use it to compute offsets.
857 (sparc64_collect_fpregset): Likewise.
858 (sparc64_bsd_fpregset): Define.
859 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
860 sparc64_bsd_fpregset down into handler.
861 (sparc64fbsd_collect_fpregset): Likewise.
862 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
863 and pass sparc{32,64}_bsd_fpregset down into handler.
864 (sparc64nbsd_collect_fpregset): Likewise.
865 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
866 sparc64_bsd_fpregset down into handler.
867 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
868 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
869 to sparc32_bsd_fpregset.
870 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
871 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
872 (sparc32nbsd_supply_fpregset): Likewise.
873
874 2012-11-21 Tom Tromey <tromey@redhat.com>
875
876 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
877 field.
878 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
879 Remove.
880 * c-typeprint.c (c_type_print_base): Update.
881
882 2012-11-21 Yao Qi <yao@codesourcery.com>
883
884 PR tdep/7438
885 * gdbarch.sh (smash_text_address): Remove.
886 * gdbarch.c, gdbarch.h: Regenerate.
887 * arm-tdep.c (arm_smash_text_address): Remove.
888 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
889 * hppa-tdep.c (hppa_smash_text_address): Remove.
890 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
891 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
892 Caller update.
893 * coffread.c (coff_symtab_read): Caller update.
894 * dbxread.c (process_one_symbol): Likewise.
895 * elfread.c (record_minimal_symbol): Likewise.
896 * somread.c (som_symtab_read): Likewise.
897
898 2012-11-20 Pierre Muller <muller@sourceware.org>
899
900 ARI fixes: sprintf rule.
901 Replace sprintf function calls for char arrays by
902 calls to xsnprintf calls.
903 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
904 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
905 (arm_neon_quad_read, arm_pseudo_read): Ditto.
906 (arm_neon_quad_write, arm_pseudo_write): Ditto.
907 * breakpoint.c (condition_completer): Ditto.
908 (create_tracepoint_from_upload): Ditto.
909 * dwarf2read.c (file_full_name): Ditto.
910 * gcore.c (gcore_command): Ditto.
911 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
912 * go32-nat.c (go32_sysinfo): Ditto.
913 * interps.c (interp_set): Ditto.
914 * m32c-tdep.c (make_types): Ditto.
915 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
916 * remote-m32r-sdi.c (m32r_open): Ditto.
917 * sol-thread.c (td_err_string): Ditto.
918 (td_state_string, solaris_pid_to_str): Ditto.
919 * symtab.c (gdb_mangle_name): Ditto.
920 * cli/cli-script.c (execute_control_command): Ditto.
921 (define_command, document_command): Ditto.
922 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
923 * tui/tui-stack.c (tui_make_status_line): Ditto.
924 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
925
926 2012-11-20 Mike Frysinger <vapier@gentoo.org>
927
928 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
929 it when looking at ptr->func.
930 * command.h (complete_on_cmdlist): Add a fourth arg.
931 * completer.c (complete_line_internal): Add local ignore_help_classes,
932 and set it to 1 when reason is not handle_help. Pass this down to
933 lookup_cmd_1 and complete_on_cmdlist.
934
935 2012-11-20 Tom Tromey <tromey@redhat.com>
936
937 * completer.c (count_struct_fields): Remove.
938 (expression_completer): Don't call count_struct_fields.
939
940 2012-11-20 Pedro Alves <palves@redhat.com>
941
942 * annotate.c (breakpoints_changed): Rename to ...
943 (annotate_breakpoints_changed): ... this.
944 (annotate_stopped, breakpoint_changed): Adjust caller.
945 * annotate.h (breakpoints_changed): Rename to ...
946 (annotate_breakpoints_changed): ... this.
947 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
948 (do_map_commands_command, init_raw_breakpoint, clear_command)
949 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
950
951 2012-11-20 David S. Miller <davem@davemloft.net>
952
953 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
954 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
955 sysconf.
956 (get_cores_used_by_process): Update comment.
957
958 2012-11-20 Yao Qi <yao@codesourcery.com>
959
960 * objfiles.c (init_entry_point_info): Remove trailing spaces.
961
962 2012-11-20 Yao Qi <yao@codesourcery.com>
963
964 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
965 to deprecated_context_hook.
966
967 2012-11-19 Yao Qi <yao@codesourcery.com>
968
969 * infrun.c (infwait_state): Add static.
970
971 2012-11-16 Keith Seitz <keiths@redhat.com>
972
973 PR c++/13615
974 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
975 parameter and pass it to lookup_symbol_file.
976 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
977 to search base classes.
978 (cp_lookup_symbol_namespace): Likewise.
979 (lookup_namespace_scope): Likewise.
980 (lookup_symbol_file): Add SEARCH parameter.
981 If SEARCH is non-zero and no symbol is found, lookup the class
982 and call cp_lookup_nested_symbol.
983 (find_symbol_in_baseclass): New function.
984 (cp_lookup_nested_symbol): Do not let
985 cp_lookup_symbol_in_namespace search through base classes.
986 Do that later when there is no global symbol match.
987
988 2012-11-16 Doug Evans <dje@google.com>
989
990 * main.c (gdb_datadir_provided): New static global.
991 (get_init_files): If --data-directory is provided,
992 and SYSTEM_GDBINIT lives in data-directory, look for it there.
993 * NEWS: Mention it.
994
995 2012-11-15 Pierre Muller <muller@sourceware.org>
996
997 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
998 * gdb_stat.h: Delete. Moved to common directory.
999 * common/gdb_stat.h: New file.
1000 * gdb_wait.h: Delete. Moved to common directory.
1001 * common/gdb_wait.h: New file.
1002 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1003 location.
1004 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1005 location.
1006 (stat.h rule): Adapt to new gdb_stat.h location.
1007 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1008 <sys/stat.h> header.
1009 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1010 <sys/wait.h> header.
1011
1012 2012-11-15 Pierre Muller <muller@sourceware.org>
1013
1014 * configure.ac (AC_HEADER_STAT): Remove.
1015 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1016 and corresponding code.
1017 * configure: Regenerate.
1018 * config.in: Regenerate.
1019
1020 2012-11-15 Pierre Muller <muller@sourceware.org>
1021
1022 ARI xasprintf rule fixes.
1023 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1024 instead of xasprintf.
1025 (open_and_init_dwp_file): Ditto.
1026
1027 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1028
1029 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1030 target types.
1031
1032 2012-11-14 Tom Tromey <tromey@redhat.com>
1033
1034 * configure, config.in: Rebuild.
1035 * configure.ac: Don't check for ctype.h, time.h.
1036 * expprint.c: Don't use HAVE_CTYPE_H.
1037
1038 2012-11-13 Tom Tromey <tromey@redhat.com>
1039
1040 * gdbarch.h, gdbarch.c: Rebuild.
1041 * gdbarch.sh (set_target_gdbarch): Rename from
1042 deprecated_target_gdbarch_select_hack.
1043 * arch-utils.c (gdbarch_update_p): Update.
1044 (set_gdbarch_from_file): Update.
1045
1046 2012-11-14 Pierre Muller <muller@sourceware.org>
1047
1048 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1049 as responsible of contrib/ari directory.
1050
1051 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1052 Yao Qi <yao@codesourcery.com>
1053
1054 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1055 bit of EXC_RETURN.
1056 (arm_m_exception_cache, arm_m_exception_this_id)
1057 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1058 (arm_m_exception_unwind): New.
1059 (arm_gdbarch_init): Register arm_m_exception_unwind.
1060
1061 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1062
1063 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1064 parameter COUNT, for pattern filling of memory regions.
1065 * NEWS: Mention it.
1066
1067 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1068
1069 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1070 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1071 to print_source_lines ().
1072 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1073 flag.
1074 * source.c (print_source_lines_base): Prefix source line with
1075 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1076
1077 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1078
1079 * symtab.h (print_source_lines_flags): New enum.
1080 * source.c (print_source_lines_base): Change noerror to flags.
1081 (print_source_lines): Change noerror to flags.
1082
1083 2012-11-13 Pierre Muller <muller@sourceware.org>
1084
1085 ARI fixes: Avoid sprintf function use rule.
1086 * charset.c (convert_between_encodings): Use xsnprintf.
1087 * cli-out.c (cli_field_int): Likewise.
1088 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1089 * expprint.c (op_name_standard): Likewise.
1090 * frv-tdep.c (set_variant_num_gprs): Likewise.
1091 (set_variant_num_fprs): Likewise.
1092 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1093 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1094 (nto_init_solib_absolute_prefix): Likewise.
1095 * source.c (init_source_path): Likewise.
1096 (print_source_lines_base): Likewise.
1097 * valprint.c (print_wchar): Likewise.
1098 * mi/mi-out.c (mi_field_int): Likewise.
1099 windows-nat.c (windows_pid_to_exec_file): Likewise.
1100 (windows_create_inferior): Likewise.
1101 (_initialize_check_for_gdb_ini): Likewise.
1102
1103 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1104
1105 * frame.h (deprecated_frame_register_read): Renames
1106 frame_register_read.
1107 * frame.c (deprecated_frame_register_read): Renames
1108 frame_register_read. Update all callers.
1109 * i386-tdep.c: Update all callers of frame_register_read.
1110 * infcmd.c: Likewise.
1111 * jit.c: Likewise.
1112 * mips-tdep.c: Likewise.
1113 * mt-tdep.c: Likewise.
1114 * sh64-tdep.c: Likewise.
1115
1116 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1117
1118 * frame.h (frame_register_read): Remove FIXME comment.
1119 * frame.c (frame_register_read): Add suggestion explaining
1120 which function to use in place of this one.
1121
1122 2012-11-12 Tom Tromey <tromey@redhat.com>
1123
1124 * python/python.c (start_type_printers): Initialize 'result_obj'.
1125
1126 2012-11-12 Tom Tromey <tromey@redhat.com>
1127
1128 * NEWS: Update.
1129 * data-directory/Makefile.in (PYTHON_FILES): Add
1130 type_printers.py.
1131 * python/lib/gdb/command/type_printers.py: New file.
1132 * python/lib/gdb/command/types.py (TypePrinter): New class.
1133 (_get_some_type_recognizers, get_type_recognizers,
1134 apply_type_recognizers, register_type_printer): New
1135 functions.
1136 * python/py-objfile.c (objfile_object) <type_printers>: New
1137 field.
1138 (objfpy_dealloc): Decref new field.
1139 (objfpy_new): Set new field.
1140 (objfpy_get_type_printers, objfpy_set_type_printers): New
1141 functions.
1142 (objfile_to_objfile_object): Set new field.
1143 (objfile_getset): Add "type_printers".
1144 * python/py-progspace.c (pspace_object) <type_printers>: New
1145 field.
1146 (pspy_dealloc): Decref new field.
1147 (pspy_new): Set new field.
1148 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1149 (pspace_to_pspace_object): Set new field.
1150 (pspace_getset): Add "type_printers".
1151 * python/python.c (start_type_printers, apply_type_printers,
1152 free_type_printers): New functions.
1153 (_initialize_python): Set gdb.type_printers.
1154 * python/python.h (start_type_printers, apply_type_printers,
1155 free_type_printers): Declare.
1156 * typeprint.c (type_print_raw_options, default_ptype_flags):
1157 Update for new fields.
1158 (do_free_global_table, create_global_typedef_table,
1159 find_global_typedef): New functions.
1160 (find_typedef_in_hash): Use find_global_typedef.
1161 (whatis_exp): Use create_global_typedef_table. Change cleanup
1162 handling.
1163 * typeprint.h (struct type_print_options) <global_typedefs,
1164 global_printers>: New fields.
1165
1166 2012-11-12 Tom Tromey <tromey@redhat.com>
1167
1168 * c-typeprint.c (find_typedef_for_canonicalize,
1169 print_name_maybe_canonical): New functions.
1170 (c_print_type): Look up type name.
1171 (cp_type_print_derivation_info): Add flags argument. Use
1172 print_name_maybe_canonical.
1173 (cp_type_print_method_args): Add wrapping.
1174 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1175 (c_type_print_template_args): New function.
1176 (c_type_print_base): Change wrapping. Use
1177 print_name_maybe_canonical.
1178 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1179 type name lookups.
1180 * gdbtypes.c (types_equal): No longer static.
1181 * gdbtypes.h (types_equal): Declare.
1182 * typeprint.c (type_print_raw_options, default_ptype_flags):
1183 Update.
1184 (struct typedef_hash_table): New.
1185 (hash_typedef_field, eq_typedef_field,
1186 recursively_update_typedef_hash, add_template_parameters,
1187 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1188 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1189 copy_typedef_hash, find_typedef_in_hash): New functions.
1190 * typeprint.h (struct type_print_options) <local_typedefs>:
1191 New field.
1192 (recursively_update_typedef_hash, add_template_parameters,
1193 create_typedef_hash, free_typedef_hash,
1194 make_cleanup_free_typedef_hash, copy_typedef_hash,
1195 find_typedef_in_hash): Declare.
1196
1197 2012-11-12 Tom Tromey <tromey@redhat.com>
1198
1199 * cp-support.c (inspect_type,
1200 replace_typedefs_qualified_name, replace_typedefs): Add
1201 finder, data arguments. Call as needed.
1202 (cp_canonicalize_string_full): New function.
1203 (cp_canonicalize_string_no_typedefs): Rewrite.
1204 * cp-support.h (canonicalization_ftype): New typedef.
1205 (cp_canonicalize_string_full): Declare.
1206
1207 2012-11-12 Tom Tromey <tromey@redhat.com>
1208
1209 * NEWS: Update.
1210 * c-typeprint.c (c_type_print_base): Handle print_method and
1211 print_typedefs flags.
1212 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1213 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1214 options.
1215 * typeprint.c (type_print_raw_options, default_ptype_flags):
1216 Update for new field.s
1217 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1218 (setprinttypelist, showprinttypelist, print_methods,
1219 print_typedefs): New globals.
1220 (set_print_type, show_print_type, set_print_type_methods,
1221 show_print_type_methods, set_print_type_typedefs,
1222 show_print_type_typedefs): New functions.
1223 (_initialize_typeprint): Update documentation. Add "print
1224 type methods" and "print type typedefs" parameters.
1225 * typeprint.h (struct type_print_options) <print_methods,
1226 print_typedefs>: New fields.
1227
1228 2012-11-12 Tom Tromey <tromey@redhat.com>
1229
1230 * c-typeprint.c (cp_type_print_method_args): Add flags
1231 argument. Call c_print_type, not type_print.
1232 (c_type_print_base): Call c_print_type, not type_print.
1233 Update.
1234
1235 2012-11-12 Tom Tromey <tromey@redhat.com>
1236
1237 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1238 to type-printing functions.
1239 * ada-lang.h (ada_print_type): Add argument.
1240 * ada-typeprint.c (print_array_type, print_variant_clauses,
1241 print_variant_part, print_selected_record_field_types,
1242 print_record_field_types, print_unchecked_union_type,
1243 print_func_type, ada_print_type): Add flags argument.
1244 (ada_print_typedef): Update.
1245 * c-exp.y (OPERATOR conversion_type_id): Update.
1246 * c-lang.h (c_print_type, c_type_print_base): Update.
1247 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1248 c_type_print_modifier, c_type_print_args,
1249 c_type_print_varspec_suffix, c_type_print_base): Add flags
1250 argument.
1251 * cp-valprint.c (cp_print_class_member): Update.
1252 * dwarf2read.c (dwarf2_compute_name): Update.
1253 * f-lang.h (f_print_type): Add argument.
1254 * f-typeprint.c (f_print_type): Add flags argument.
1255 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1256 * go-lang.h (go_print_type): Add argument.
1257 * go-typeprint.c (go_print_type): Add flags argument.
1258 * jv-lang.h (java_print_type): Add argument.
1259 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1260 flags argument.
1261 * language.c (unk_lang_print_type): Add flags argument.
1262 * language.h (struct language_defn) <la_print_type>: Add flags
1263 argument.
1264 (LA_PRINT_TYPE): Likewise.
1265 * m2-lang.h (m2_print_type): Add argument.
1266 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1267 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1268 m2_unbounded_array, m2_record_fields): Add flags argument.
1269 * p-lang.h (pascal_print_type, pascal_type_print_base,
1270 pascal_type_print_varspec_prefix): Add argument.
1271 * p-typeprint.c (pascal_print_type,
1272 pascal_type_print_varspec_prefix, pascal_print_func_args,
1273 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1274 flags argument.
1275 * symmisc.c (print_symbol): Update.
1276 * typeprint.c (type_print_raw_options, default_ptype_flags):
1277 New globals.
1278 (type_print): Update.
1279 * typeprint.h (struct type_print_options): New.
1280 (type_print_raw_options): Declare.
1281 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1282
1283 2012-11-10 Keith Seitz <keiths@redhat.com>
1284
1285 * breakpoint.c (clear_command): Add cleanup for
1286 sals.sals if an argument is given.
1287
1288 * linespec.c (parse_linespec): Do cleanups after
1289 parsing a convenience variable.
1290
1291 2012-11-10 Keith Seitz <keiths@redhat.com>
1292
1293 PR gdb/14288
1294 * c-valprint.c (c_val_print): For character arrays
1295 with "print null" option on, print ellipses if
1296 the output is truncated and the next character is not \000.
1297 * valprint.c (MAX_WCHARS): Define.
1298 (WCHAR_BUFLEN): Likewise.
1299 (WCHAR_BUFLEN_MAX): Likewise.
1300 (struct converted_character): New structure.
1301 (count_next_character): New function.
1302 (print_converted_chars_to_obstack): New function.
1303 (generic_printstr): Rewrite using count_next_character
1304 and print_converted_chars_to_obstack.
1305
1306 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1307
1308 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1309 while executing the gdb command.
1310 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1311 are called from prompt_for_continue.
1312 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1313
1314 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1315
1316 PR tui/9584
1317
1318 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1319 but insert the command to execute in readline's buffer.
1320
1321 2012-11-09 Tom Tromey <tromey@redhat.com>
1322
1323 * gdbarch.sh (target_gdbarch): Remove macro.
1324 (get_target_gdbarch): Rename to target_gdbarch.
1325 * gdbarch.c, gdbarch.h: Rebuild.
1326 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1327 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1328 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1329 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1330 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1331 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1332 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1333 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1334 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1335 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1336 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1337 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1338 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1339 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1340 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1341 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1342 target-descriptions.c, target.c, target.h, tracepoint.c,
1343 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1344 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1345 python/py-inferior.c, python/python.c: Update.
1346
1347 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1348
1349 * source.c (print_source_lines_base): Add fullname field giving
1350 full path to file in mi output.
1351 * NEWS: Mention the new fullname field.
1352
1353 2012-11-09 Yao Qi <yao@codesourcery.com>
1354
1355 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1356
1357 2012-11-09 Pedro Alves <palves@redhat.com>
1358
1359 PR gdb/14306
1360
1361 * infrun.c: Include target-descriptions.h.
1362 (follow_exec): Fetch new target description.
1363
1364 2012-11-09 Yao Qi <yao@codesourcery.com>
1365
1366 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1367 0x8d (lea).
1368
1369 2012-11-09 Yao Qi <yao@codesourcery.com>
1370
1371 * breakpoint.c: Declare set_tracepoint_count.
1372 (install_breakpoint): Call set_tracepoint_count if B is a
1373 tracepoint.
1374 (trace_command): Don't call set_tracepoint_count. Re-indent.
1375 (strace_command, ftrace_command):
1376 (create_tracepoint_from_upload): Likewise.
1377
1378 2012-11-09 Pedro Alves <palves@redhat.com>
1379
1380 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1381 (get_target_gdbarch) <gdbarch.h>: New function.
1382 (startup_gdbarch) <gdbarch.h>: Declare.
1383 <gdbarch.c> (target_gdbarch): Delete.
1384 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1385 current inferior's gdbarch.
1386 <gdbarch.c> (get_target_gdbarch): New function.
1387 * inferior.c: Include target-descriptions.h.
1388 (free_inferior): Free target description info.
1389 (add_inferior_with_spaces): Set the inferior's initial
1390 architecture.
1391 (clone_inferior_command): Copy the original inferior's target
1392 description if it was user specified.
1393 (initialize_inferiors): Add comment.
1394 * inferior.h (struct target_desc_info): Forward declare.
1395 (struct inferior) <gdbarch>: New field.
1396 * linux-nat.c: Include target-descriptions.h.
1397 (linux_child_follow_fork): Copy the parent's architecture and
1398 target description to the child.
1399 * target-descriptions.c: Include inferior.h.
1400 (struct target_desc_info): New structure, holding the equivalents
1401 of ...
1402 (target_desc_fetched, current_target_desc)
1403 (target_description_filename): ... these removed globals.
1404 (get_tdesc_info, target_desc_info_from_user_p)
1405 (copy_inferior_target_desc_info, target_desc_info_free): New.
1406 (target_desc_fetched, current_target_desc)
1407 (target_description_filename): Reimplemented as convenience
1408 macros.
1409 (tdesc_filename_cmd_string): New global.
1410 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1411 tdescs filename ..." commands to the per-inferior equivalent.
1412 (show_tdesc_filename_cmd): Get the value to show from the
1413 per-inferior description filename.
1414 (_initilize_target_descriptions): Change the "set/show tdesc
1415 filename" commands' variable.
1416 * target-descriptions.h (struct target_desc, struct target_desc_info)
1417 (struct inferior): Forward declare.
1418 (target_find_description, target_clear_description)
1419 (target_current_description): Adjust comments.
1420 (copy_inferior_target_desc_info, target_desc_info_free)
1421 (target_desc_info_from_user_p). Declare.
1422
1423 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1424
1425 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1426 (tui_target_wait_hook): Remove.
1427 (tui_install_hooks): Install the about_to_proceed observer.
1428 (tui_remove_hooks): And remove it here.
1429
1430 2012-11-08 Tom Tromey <tromey@redhat.com>
1431
1432 * linux-tdep.c (linux_make_siginfo_note): New function.
1433 (linux_make_corefile_notes): Use it.
1434 * corelow.c (get_core_siginfo): New function.
1435 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1436
1437 2012-11-08 Tom Tromey <tromey@redhat.com>
1438
1439 PR gdb/14704:
1440 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1441 (zlib_decompress_section): Remove.
1442 (gdb_bfd_map_section): Only check for compressed section
1443 in mmap case. Use bfd_get_full_section_contents.
1444 * osabi.c (check_note): Add 'sectsize' argument. Read
1445 section data.
1446 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1447 section data. Update for check_note change.
1448 * xcoffread.c (xcoff_initial_scan): Use
1449 bfd_get_full_section_contents.
1450 * py-auto-load.c (auto_load_section_scripts): Use
1451 bfd_get_full_section_contents.
1452 * contrib/cc-with-tweaks.sh: Add -Z option.
1453
1454 2012-11-08 Tom Tromey <tromey@redhat.com>
1455
1456 * python/py-bpevent.c: Include defs.h.
1457 * python/py-continueevent.c: Include defs.h.
1458 * python/py-event.c: Include defs.h.
1459 * python/py-event.h: Don't include defs.h.
1460 * python/py-events.h: Don't include defs.h.
1461 * python/py-evts.c: Include defs.h.
1462 * python/py-exitedevent.c: Include defs.h.
1463 * python/py-newobjfileevent.c: Include defs.h.
1464 * python/py-signalevent.c: Include defs.h.
1465 * python/py-stopevent.c: Include defs.h.
1466 * python/py-threadevent.c: Include defs.h.
1467
1468 2012-11-08 Pierre Muller <muller@sourceware.org>
1469
1470 * update-web-ari.sh (print_heading): Add number of files
1471 checked.
1472 (nb_files): New variable counting the number of sources
1473 files found by gdb_find.sh script.
1474 (debug_awk): New variable to allow extra debug output.
1475 (indexes): Add more information if DEBUG_AWK is set.
1476
1477 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1478
1479 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1480 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1481 following the change in PLT call stubs on linker.
1482
1483 2012-11-08 Pierre Muller <muller@sourceware.org>
1484
1485 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1486 as default language.
1487 (AWK): Use = instead of == for sh test to avoid warning.
1488 (Linux rule): Correct [:digit] into [[:digit:]].
1489 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1490 (vasprintf rule): Adapt to common subdirectory moves.
1491 (xasprintf rule): Idem.
1492 (xvasprintf rule): Idem.
1493 (var_boolean rule): Accept occurence in == or != test.
1494
1495 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1496
1497 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1498
1499 * tui/tui-hooks.c (tui_inferior_exit): New function.
1500 (tui_detach_hook): Remove.
1501 (tui_install_hooks): Install the inferior exit observer.
1502 (tui_remove_hooks): Remove it.
1503
1504 2012-11-08 Yao Qi <yao@codesourcery.com>
1505
1506 PR gdb/14777.
1507 * source.c (_initialize_source): Call add_com_alias to abbreviate
1508 'forward-search' as 'fo'.
1509
1510 2012-11-07 Pedro Alves <palves@redhat.com>
1511
1512 * arm-tdep.c: Make defs.h be the first include.
1513 * coff-pe-read.c: Ditto.
1514 * gnu-nat.c: Ditto.
1515 * go32-nat.c: Ditto.
1516 * i386-nat.c: Ditto.
1517 * ppcnbsd-nat.c: Ditto.
1518 * ada-varobj.h: Don't include defs.h.
1519 * i386-darwin-tdep.h: Ditto.
1520 * i386-nat.h: Ditto.
1521
1522 2012-11-07 Pedro Alves <palves@redhat.com>
1523
1524 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1525 Committee.
1526
1527 2012-11-07 Pierre Muller <muller@sourceware.org>
1528
1529 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1530 File already uses "gdb_dirent.h" header.
1531
1532 2012-11-07 Yao Qi <yao@codesourcery.com>
1533
1534 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1535 tracepoint_count'.
1536
1537 2012-11-06 Tom Tromey <tromey@redhat.com>
1538
1539 * target.h (inferior_has_forked, inferior_has_vforked)
1540 (inferior_has_execd, inferior_has_called_syscall): Remove
1541 declarations.
1542
1543 2012-11-06 Pierre Muller <muller@sourceware.org>
1544
1545 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1546 add missing internalization markup.
1547
1548 2012-11-06 Pedro Alves <palves@redhat.com>
1549
1550 PR gdb/14810
1551
1552 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1553
1554 2012-11-06 Pierre Muller <muller@sourceware.org>
1555
1556 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1557 is not executable.
1558
1559 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1560
1561 * gnulib/update-gnulib.sh: New script.
1562
1563 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1564
1565 * MAINTAINERS: Update my email address.
1566
1567 2012-11-05 Tom Tromey <tromey@redhat.com>
1568
1569 * frame.c (put_frame_register): Don't use temporary buffer.
1570
1571 2012-11-05 Pedro Alves <palves@redhat.com>
1572
1573 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1574 child. Clear 'pending_detach'.
1575 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1576 'pending_detach' in the vfork parent.
1577
1578 2012-11-05 Doug Evans <dje@google.com>
1579
1580 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1581 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1582 * dwarf2read.c: #include "elf-bfd.h".
1583 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1584 (dwop_section_names): Renamed from dwo_section names. All uses
1585 updated. Add entries for .debug_cu_index, .debug_tu_index.
1586 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1587 All uses updated.
1588 (struct dwp_sections): New type.
1589 (struct virtual_dwo_sections): New type.
1590 (struct dwp_hash_table): New type.
1591 (struct dwp_file): New type.
1592 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1593 read in. Handle DWOs coming from DWP files.
1594 (lookup_dwo_file_slot): New function.
1595 (dwarf2_locate_dwo_sections): Move definition closer to use.
1596 (create_dwo_debug_info_hash_table_reader): Renamed from
1597 create_debug_info_hash_table_reader. All callers updated.
1598 (create_dwo_debug_info_hash_table): Renamed from
1599 create_debug_info_hash_table. All callers updated.
1600 (create_dwp_hash_table): New function.
1601 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1602 (lookup_dwo_in_dwp): New function.
1603 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1604 is_dwp. All callers updated.
1605 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1606 (open_and_init_dwo_file): Renamed from init_dwo_file.
1607 All callers updated.
1608 (lookup_dwo_file): Delete.
1609 (dwarf2_locate_dwp_sections): New function.
1610 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1611 (allocate_dwp_loaded_cutus_table): New function.
1612 (open_and_init_dwp_file): New function.
1613 (lookup_dwo_cutu): New function.
1614 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1615
1616 2012-11-03 Yao Qi <yao@codesourcery.com>
1617
1618 Fix PR gdb/14617.
1619 * breakpoint.c (trace_pass_set_count): Call
1620 observer_notify_breakpoint_modified instead of
1621 observer_notify_tracepoint_modified.
1622 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1623
1624 2012-11-02 Tom Tromey <tromey@redhat.com>
1625
1626 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1627 argument to complete_on_enum.
1628
1629 2012-11-02 Tom Tromey <tromey@redhat.com>
1630
1631 * configure: Rebuild.
1632 * configure.ac (build_warnings): Add -Wempty-body.
1633 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1634 * remote.c (handle_notification): Use braces for empty 'else' body.
1635 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1636 'else' body.
1637 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1638 'else' body.
1639 * solib-som.c (som_relocate_section_addresses): Use braces
1640 for empty 'else' body.
1641 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1642 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1643
1644 2012-11-02 Pedro Alves <palves@redhat.com>
1645
1646 PR gdb/14766
1647
1648 * infrun.c (handle_inferior_event)
1649 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1650 null_ptid before handling a vfork child exec or exit. Switch to
1651 the event ptid afterwards.
1652
1653 2012-11-02 Yao Qi <yao@codesourcery.com>
1654
1655 * std-operator.def: Remove OP_LABELED.
1656 * eval.c: Remove the declaration of 'get_label'.
1657 (get_label): Remove.
1658 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1659 Update comment.
1660 Remove local variable 'variantno' and related code.
1661 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1662 with 'fieldno'.
1663 * expprint.c (print_subexp_standard): Likewise.
1664 (dump_subexp_body_standard): Likewise.
1665 * parse.c (operator_length_standard): Likewise.
1666
1667 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1668
1669 Incorporate ARI web page generator into GDB sources.
1670 * contrib/ari/create-web-ari-in-src.sh: New file.
1671 * contrib/ari/gdb_ari.sh: New file.
1672 * contrib/ari/gdb_find.sh: New file.
1673 * contrib/ari/update-web-ari.sh: New file.
1674
1675 2012-10-31 Tom Tromey <tromey@redhat.com>
1676
1677 * gdbarch.c: Rebuild.
1678 * gdbarch.sh: Remove references to gdbarch_swap.
1679 * corelow.c (core_open): Remove obsolete comment.
1680
1681 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1682
1683 PR cli/14772
1684 * c-typeprint.c (c_print_type): Don't print a space for vector
1685 types, this is handled within the suffix.
1686 (c_type_print_varspec_suffix): Add a space to vector suffix.
1687
1688 2012-10-26 Pedro Alves <palves@redhat.com>
1689
1690 * amd64-tdep.c (amd64_relocate_instruction): Use
1691 store_unsigned_integer instead of memcpy.
1692 * i386-tdep.c (i386_relocate_instruction): Ditto.
1693
1694 2012-10-26 Pedro Alves <palves@redhat.com>
1695
1696 * infrun.c (handle_inferior_event): Merge handling of
1697 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1698 switch case.
1699
1700 2012-10-26 Pedro Alves <palves@redhat.com>
1701
1702 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1703 Remove comment.
1704
1705 2012-10-26 Pedro Alves <palves@redhat.com>
1706
1707 * target.c (target_waitstatus_to_string): Handle
1708 TARGET_WAITKIND_VFORK_DONE.
1709
1710 2012-10-26 Pedro Alves <palves@redhat.com>
1711
1712 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1713 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1714
1715 2012-10-24 Tristan Gingold <gingold@adacore.com>
1716
1717 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1718 Add comments.
1719
1720 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1721
1722 * ravenscar-thread.c (ravenscar_wait): Only update the list
1723 of threads and inferior_ptid if the inferior is still alive.
1724
1725 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1726
1727 * ada-lang.c (is_known_support_routine): Use lbasename when
1728 matching the symtab's filename against
1729 known_runtime_file_name_patterns.
1730
1731 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1732
1733 * ada-lang.c (ada_same_array_size_p): New function.
1734 (ada_promote_array_of_integrals): New function.
1735 (coerce_for_assign): Add handling of arrays where the elements
1736 are integrals of a smaller size than the size of the target
1737 array element type.
1738
1739 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1740
1741 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1742 against maximum exponent value.
1743
1744 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1745
1746 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1747 "unwind-seh.c".
1748
1749 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1750
1751 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1752 strip typedef layer when computing the fixed type's field type,
1753 only when computing its size.
1754
1755 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1756
1757 PR gdb/12783
1758 * i386-tdep.c (i386_return_value): Handle complex double and long
1759 double.
1760
1761 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1762
1763 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1764 New local variable args_len.
1765 Quote the name of the executable when computing the command line.
1766
1767 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1768
1769 PR gdb/12796
1770 PR gdb/12798
1771 PR gdb/12800
1772 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1773 AMD64_FTAG_REGNUM.
1774 * amd64-tdep.c (amd64_classify): Classify complex types.
1775 (amd64_return_value): Handle the COMPLEX_X87 class.
1776
1777 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1778
1779 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1780 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1781
1782 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1783
1784 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1785 function.
1786 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1787 to amd64_windows_auto_wide_charset.
1788
1789 2012-10-23 Yao Qi <yao@codesourcery.com>
1790
1791 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1792 * event-top.h: Remove its declaration.
1793 (async_request_quit): Call mark_async_signal_handler instead of
1794 mark_async_signal_handler_wrapper.
1795 (async_do_nothing, async_disconnect): Likewise.
1796 (async_stop_sig): Likewise.
1797 * remote.c (handle_remote_sigint): Likewise.
1798 (handle_remote_sigint_twice): Likewise.
1799
1800 2012-10-23 Yao Qi <yao@codesourcery.com>
1801
1802 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1803 with 'static struct async_signal_handler *'.
1804 (sighup_token, sigquit_token, sigstp_token): Likewise.
1805
1806 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1807
1808 * gdbarch.sh (function_list): Use 'pstring' when printing
1809 a variable which could return NULL.
1810 * gdbarch.c: Regenerate.
1811
1812 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1813 Tom Tromey <tromey@redhat.com>
1814
1815 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1816 inneffective if condition by gdb assertion. Add function
1817 description comment.
1818
1819 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1820
1821 * parser-defs.h (struct exp_descriptor): Document constraint
1822 on return value for "op_name" callbacks.
1823
1824 2012-10-18 Tom Tromey <tromey@redhat.com>
1825
1826 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1827 * symtab.c (iterate_over_some_symtabs): Constify.
1828 * source.h (symtab_to_fullname): Return 'const char *'.
1829 * source.c (symtab_to_fullname): Return 'const char *'.
1830 * python/py-symtab.c (stpy_fullname): Constify.
1831 * cli/cli-cmds.c (edit_command): Constify.
1832 * breakpoint.c (print_breakpoint_location)
1833 (update_static_tracepoint): Constify.
1834
1835 2012-10-18 Tom Tromey <tromey@redhat.com>
1836
1837 * breakpoint.c (compare_breakpoints): Fix comparison.
1838
1839 2012-10-18 Tom Tromey <tromey@redhat.com>
1840
1841 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1842 gdb_wchar_t to convert_between_encodings.
1843
1844 2012-10-17 Yao Qi <yao@codesourcery.com>
1845
1846 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1847 more parameter 'inferior'.
1848 * corefile.c (write_memory_with_notification): Caller update.
1849
1850 * mi/mi-cmd-var.c: Include "mi-main.h".
1851 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1852 to 1 and restore it later.
1853 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1854 and "data-write-memory-bytes.
1855 * mi/mi-interp.c: Include objfiles.h.
1856 (mi_interpreter_init): Call observer_attach_memory_changed.
1857 (mi_memory_changed): New.
1858 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1859 New field.
1860
1861 * NEWS: Mention new MI notification "memory-changed".
1862
1863 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1866
1867 2012-10-15 Doug Evans <dje@google.com>
1868
1869 New option -nh: inhibit loading of ~/.gdbinit.
1870 * NEWS: Mention -nh.
1871 * main.c (captured_main): Recognize and process -nh.
1872 (print_gdb_help): Mention -nh.
1873 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1874
1875 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1876
1877 PR backtrace/14646
1878 PR gdb/14647
1879 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1880 pc_regnum_from_eax.
1881 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1882 nor pc_regnum_from_eax.
1883 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1884 nor pc_regnum_from_eax.
1885
1886 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1887
1888 Fix entry values resolving in inlined frames.
1889 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1890 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1891 entries of FRAME.
1892
1893 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1894
1895 * configure.ac: Build with -DMS_WIN64 if building with Python
1896 enabled using GCC on amd64-windows.
1897 * configure: Regenerate.
1898
1899 2012-10-15 Tom Tromey <tromey@redhat.com>
1900
1901 PR python/14635:
1902 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1903 to Py_None.
1904
1905 2012-10-15 Tom Tromey <tromey@redhat.com>
1906
1907 PR python/14634:
1908 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1909
1910 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1911
1912 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1913 reset thread numbering back to 1.
1914
1915 2012-10-11 Doug Evans <dje@google.com>
1916
1917 PR breakpoints/14643.
1918 * linespec.c (struct ls_parser): New member keyword_ok.
1919 (linespec_lexer_lex_string): Add comment.
1920 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1921 for one.
1922 (parse_linespec): Set keyword_ok.
1923
1924 2012-10-10 Doug Evans <dje@google.com>
1925
1926 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1927 "0x" prefix on address in log message.
1928
1929 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1930 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1931 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1932 (lookup_dwo_file): Add const to dwo_name parameter.
1933 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1934
1935 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1936
1937 Fix crash during stepping on ppc32.
1938 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1939 SYM.
1940
1941 2012-10-03 Doug Evans <dje@google.com>
1942
1943 PR symtab/14601
1944 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1945
1946 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1947
1948 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1949 output and use uint32_t not long to ensure 4 byte size.
1950
1951 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1952
1953 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1954 unref'ed it.
1955
1956 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1957
1958 * target.c (simple_search_memory): Include access length in
1959 warning message.
1960
1961 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1962 Edjunior Machado <emachado@linux.vnet.ibm.com>
1963
1964 PR gdb/13989
1965 * solib.c (solib_find): Prevent GDB from loading native libraries when
1966 debugging a cross-target corefile.
1967
1968 2012-09-28 selven <pcthegreat@gmail.com>
1969
1970 Make definition match declaration.
1971
1972 * regcache.c (regcache_register_status): Change return type to
1973 enum register_status.
1974
1975 2012-09-28 Yao Qi <yao@codesourcery.com>
1976
1977 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1978 write_memory_with_notification instead of write_memory.
1979 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1980 instead of target_write_memory.
1981
1982 2012-09-28 Yao Qi <yao@codesourcery.com>
1983
1984 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1985 when the length of content is not an even number.
1986
1987 2012-09-27 Tom Tromey <tromey@redhat.com>
1988
1989 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1990 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1991
1992 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1993
1994 * sol-thread.c (sol_thread_fetch_registers)
1995 (sol_thread_store_registers): Delete commented out code.
1996
1997 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1998
1999 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2000 Move these functions to sparc-sol-thread.c.
2001 * sparc-sol-thread.c: New file.
2002 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2003 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2004 configurations.
2005 * configure: Regenerate.
2006
2007 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2008
2009 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2010 Remove commented-out code.
2011
2012 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2013
2014 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2015 Enable this code for sparc hosts only.
2016
2017 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2018
2019 * procfs.h (procfs_find_LDT_entry): Add declaration.
2020 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2021 function procfs_find_LDT_entry.
2022
2023 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2024
2025 * procfs.c (proc_get_LDT_entry): Make static.
2026
2027 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2028
2029 * procfs.c (proc_find_memory_regions): Fix declaration.
2030
2031 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2032
2033 * amd64-tdep.c (amd64_return_value): Revert previous change
2034 that used TYPE_LENGTH directly.
2035 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2036 (bfin_store_return_value): Likewise.
2037 * cris-tdep.c (cris_store_return_value): Likewise.
2038 (cris_extract_return_value): Likewise.
2039 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2040 * hppa-tdep.c (hppa64_return_value): Likewise.
2041 * lm32-tdep.c (lm32_store_return_value): Likewise.
2042 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2043 * spu-tdep.c (spu_value_from_register): Likewise.
2044 * vax-tdep.c (vax_return_value): Likewise.
2045
2046 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2047
2048 * gdbtypes.c (lookup_array_range_type): Expand parameters
2049 LOW_BOUND and HIGH_BOUND to LONGEST.
2050 (lookup_string_range_type): Likewise.
2051 * gdbtypes.h (lookup_array_range_type): Likewise.
2052 (lookup_string_range_type): Likewise.
2053 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2054 Expand HIGHBOUND to ssize_t.
2055 (value_string): Likewise.
2056 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2057 (value_string): Likewise.
2058
2059 2012-09-27 Yao Qi <yao@codesourcery.com>
2060
2061 PR breakpoints/13898
2062 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2063 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2064 per breakpoint type.
2065
2066 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2067
2068 * procfs.c: Add gdb_bfd header.
2069 * rs6000-nat.c: Likewise.
2070 * solib-pa64.c: Likewise.
2071 * spu-linux-nat.c: Likewise.
2072 * windows-nat.c: Likewise.
2073
2074 2012-09-26 Tom Tromey <tromey@redhat.com>
2075
2076 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2077
2078 2012-09-26 Tom Tromey <tromey@redhat.com>
2079
2080 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2081 (read_common_block): Handle child DIEs with
2082 DW_AT_data_member_location.
2083 (new_symbol_full): Add special case for common blocks.
2084
2085 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2086 Tom Tromey <tromey@redhat.com>
2087
2088 * dwarf2read.c (read_common_block): Rewrite.
2089 (new_symbol_full): Handle DW_TAG_common_block.
2090 * f-lang.c (head_common_list, find_common_for_function):
2091 Remove.
2092 * f-lang.h (struct common_entry, struct saved_f77_common,
2093 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2094 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2095 BLANK_COMMON_NAME_LOCAL): Remove.
2096 (struct common_block): New.
2097 * f-valprint.c (list_all_visible_commons): Remove.
2098 (info_common_command_for_block): New function.
2099 (info_common_command): Use it.
2100 * stack.c (iterate_over_block_locals): Special case for
2101 COMMON_BLOCK_DOMAIN.
2102 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2103 constant.
2104 (struct general_symbol_info) <value.common_block>: New field.
2105 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2106
2107 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2108 Tom Tromey <tromey@redhat.com>
2109
2110 * f-lang.c (allocate_saved_bf_node,
2111 allocate_saved_function_node, allocate_saved_f77_common_node,
2112 allocate_common_entry_node, tail_common_list, current_common,
2113 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2114 tmp_bf_ptr, add_common_block, add_common_entry,
2115 find_first_common_named, patch_common_entries,
2116 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2117 global_remote_debug, get_bf_for_fcn, saved_function_list,
2118 saved_function_list_end, clear_function_list, struct saved_fcn,
2119 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2120 SAVED_BF, SAVED_BF_PTR): Remove.
2121 * f-lang.h (tail_common_list, current_common,
2122 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2123 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2124 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2125 real_main_c_value): Remove.
2126 * f-valprint.c (there_is_a_visible_common_named): Remove.
2127
2128 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2129
2130 * breakpoint.c (update_global_location_list): Ignore previous
2131 duplicate status of a breakpoint when starting a new scan for
2132 duplicate breakpoints.
2133
2134 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2135 PR breakpoints/14419
2136 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2137 support LLVM compiler.
2138
2139 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2140
2141 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2142 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2143 (bfin_store_return_value): Likewise.
2144 * cris-tdep.c (cris_store_return_value): Likewise.
2145 (cris_extract_return_value): Likewise.
2146 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2147 * hppa-tdep.c (hppa64_return_value): Likewise.
2148 * lm32-tdep.c (lm32_store_return_value): Likewise.
2149 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2150 * spu-tdep.c (spu_value_from_register): Likewise.
2151 * vax-tdep.c (vax_return_value): Likewise.
2152
2153 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2154
2155 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2156 parameter LEN to ssize_t.
2157
2158 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2159
2160 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2161 variable LEN.
2162 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2163 directly.
2164 (alpha_store_return_value): Likewise.
2165 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2166 (amd64_push_arguments): Likewise.
2167 * ax-gdb.c (gen_trace_static_fields): Likewise.
2168 (gen_traced_pop): Likewise.
2169 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2170 * breakpoint.c (update_watchpoint): Likewise.
2171 * findcmd.c (parse_find_args): Use local variable for type
2172 instead of length.
2173 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2174 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2175 (h8300_store_return_value): Likewise.
2176 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2177 Use i386_darwin_arg_type_alignment directly.
2178 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2179 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2180 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2181 (m68hc11_extract_return_value): Likewise.
2182 * mep-tdep.c (mep_push_dummy_call): Likewise.
2183 * printcmd.c (float_type_from_length): Likewise.
2184 * s390-tdep.c (s390_value_from_register): Likewise.
2185 * stack.c (read_frame_arg): Likewise.
2186 * tracepoint.c (encode_actions_1): Likewise.
2187 * valops.c (value_fetch_lazy): Use local variable for type
2188 instead of length. Use TYPE_LENGTH directly.
2189 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2190
2191 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2192
2193 * symtab.c (skip_prologue_sal): Fix typo in comment.
2194
2195 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2196
2197 * linespec.c (create_sals_line_offset): Fix typo in comment.
2198
2199 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2200
2201 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2202 use plongest to print the array size.
2203
2204 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2205
2206 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2207 * p-valprint.c (pascal_type_print_base): Likewise.
2208
2209 2012-09-22 Yao Qi <yao@codesourcery.com>
2210
2211 * remote.c (remote_get_trace_status): Remove setting default
2212 values of fields of 'ts'.
2213
2214 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2215
2216 Fix internal error on canonicalization of clang types.
2217 * cp-name-parser.y (operator): New comment at make_operator call for
2218 new, delete, new[] and delete[].
2219 (exp): Use "sizeof ". Add new comment at make_operator call.
2220
2221 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2222
2223 Fix disassemble without parameters in tailcall frame.
2224 * cli/cli-cmds.c (disassemble_current_function): Use
2225 get_frame_address_in_block.
2226
2227 2012-09-21 Tom Tromey <tromey@redhat.com>
2228
2229 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2230 TYPE_CODE_UNION>: Unify, removing a goto.
2231
2232 2012-09-21 Tom Tromey <tromey@redhat.com>
2233
2234 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2235
2236 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2237
2238 * findvar.c (read_frame_register_value): Mark the result value as
2239 optimized out if any of the input registers have been optimized out.
2240
2241 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2242
2243 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2244
2245 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2246
2247 * eval.c (evaluate_subexp_standard): Eliminate single-use
2248 variable LOWER.
2249
2250 2012-09-21 Yao Qi <yao@codesourcery.com>
2251
2252 * mi/mi-interp.c: Declare mi_record_changed.
2253 (mi_interpreter_init): Call observer_attach_record_changed.
2254 (mi_record_changed): New.
2255 * record.c (record_open): Call observer_notify_record_changed.
2256 (cmd_record_stop): Call observer_notify_record_changed.
2257 * NEWS: Mention it.
2258
2259 2012-09-20 Tom Tromey <tromey@redhat.com>
2260
2261 * NEWS: Update.
2262 * python/python.c (finalize_python): New function.
2263 (_initialize_python): Make a final cleanup.
2264
2265 2012-09-19 Doug Evans <dje@google.com>
2266
2267 * buildsym.h (param_symbols): Delete, unused.
2268 (context_stack): Delete member "params", unused.
2269 * buildsym.c (push_context): Update.
2270 * dwarf2read.c (read_func_scope): Update.
2271
2272 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2273
2274 * sh-tdep.c (sh_register_convert_to_virtual)
2275 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2276 all callers. Just do a memcpy if not the little-endian case.
2277
2278 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2279 set_gdbarch_double_format and set_gdbarch_long_double_format.
2280 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2281 set_gdbarch_double_format.
2282 * sh-tdep.c (sh_gdbarch_init): Likewise.
2283
2284 * NEWS: Document the removal of SH's 'regs' command.
2285 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2286 command.
2287
2288 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2289
2290 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2291 `jump'.
2292
2293 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2294
2295 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2296 language when iterating over symbols.
2297
2298 2012-09-18 Yao Qi <yao@codesourcery.com>
2299
2300 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2301 (mi_interpreter_init): Call observer_attach_tsv_created and
2302 observer_attach_tsv_deleted.
2303 (mi_tsv_created, mi_tsv_deleted): New.
2304 * tracepoint.c (delete_trace_state_variable): Call
2305 observer_notify_tsv_deleted.
2306 (trace_variable_command): Call observer_notify_tsv_created.
2307 (delete_trace_variable_command): Call
2308 observer_notify_tsv_deleted.
2309 (create_tsv_from_upload): Call observer_notify_tsv_created.
2310 * NEWS: Mention it.
2311
2312 2012-09-18 Yao Qi <yao@codesourcery.com>
2313
2314 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2315 if traceframe changed.
2316 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2317 "trace-find".
2318 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2319 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2320 'traceframe_changed'.
2321 (mi_traceframe_changed): New.
2322 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2323 New field.
2324 * NEWS: Mention the new MI notification.
2325
2326 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2327
2328 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2329
2330 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2331
2332 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2333 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2334 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2335 Extend code also for PaX support. Convert all gdb_assert to warning
2336 calls.
2337
2338 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2339
2340 Implement auto-load user conveniences suggested by Doug Evans.
2341 * auto-load.c: Include top.h.
2342 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2343 (_initialize_auto_load): New variable scripts_directory_help. Mention
2344 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2345 scripts-directory. Document in online help one can use also files for
2346 set auto-load safe-path.
2347 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2348 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2349
2350 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2351
2352 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2353 of LEN.
2354
2355 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2356
2357 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2358 ELTLEN and use TYPE_LENGTH directly.
2359 (m2_val_print): Likewise.
2360 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2361 variable LEN and use TYPE_LENGTH directly.
2362 (m68k_svr4_store_return_value): Likewise.
2363 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2364 ARGLEN and use TYPE_LENGTH directly.
2365 (mips_o64_push_dummy_call): Likewise.
2366 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2367 variable LENGTH and use TYPE_LENGTH directly.
2368 (s390_function_arg_float): Likewise.
2369 (s390_function_arg_integer): Likewise.
2370 (s390_push_dummy_call): Likewise.
2371 (s390_return_value_convention): Likewise.
2372 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2373 TYPE_LENGTH directly.
2374
2375 2012-09-17 Yao Qi <yao@codesourcery.com>
2376
2377 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2378 Update comment to add_setshow_integer_cmd.
2379 * cli/cli-setshow.c (do_set_command): Handle case
2380 'var_zuinteger_unlimited'.
2381 (do_show_command): Likewise.
2382 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2383 for command 'remotetimeout'.
2384 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2385 to var_integer.
2386 * source.c (_initialize_source): Call
2387 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2388
2389 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2390
2391 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2392 variable LEN.
2393
2394 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2395
2396 PR 14119
2397 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2398 (frame_pop): Drop also TAILCALL_FRAME frames.
2399 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2400
2401 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2402 Pedro Alves <palves@redhat.com>
2403
2404 PR 14548
2405 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2406 function start if we are already at function start. Both for
2407 reverse-next and for reverse-step into function without line number
2408 info.
2409
2410 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2411
2412 Code cleanup - rename 'inline' depth to 'artificial' depth.
2413 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2414 frame_id_artificial_p, extend the comment.
2415 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2416 * frame.c (fprint_frame_id): Rename at a user, change debug output
2417 text to "artificial=".
2418 (skip_inlined_frames): Rename to ...
2419 (skip_artificial_frames): ... here. Extend the comment.
2420 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2421 (frame_id_inlined_p): Rename to ...
2422 (frame_id_artificial_p): ... here. Rename at a user.
2423 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2424 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2425 at a user.
2426 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2427 Extend the comment.
2428 (frame_id_inlined_p): Rename to ...
2429 (frame_id_artificial_p): ... here.
2430 * inline-frame.c (inline_frame_this_id): Rename at a user.
2431
2432 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2433
2434 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2435 vector variables using vector_size syntax rather than array
2436 syntax.
2437
2438 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2439
2440 * valarith.c (value_concat): Replace unsafe ALLOCA with
2441 XMALLOC/XFREE.
2442
2443 2012-09-14 Pedro Alves <palves@redhat.com>
2444
2445 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2446
2447 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2448
2449 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2450 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2451 data-directory as appropriate.
2452
2453 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2454
2455 * printcmd.c (ui_printf): Eliminate single-use variable
2456 PARAM_LEN.
2457
2458 2012-09-14 Yao Qi <yao@codesourcery.com>
2459 Pedro Alves <palves@redhat.com>
2460
2461 * valops.c (value_assign): Move observer_notify_target_changed
2462 below to replace reinit_frame_cache.
2463
2464 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2465
2466 Refactor Python "gdb" module into a proper Python package, by
2467 introducing a new "_gdb" module for code implemented in C, and
2468 using reload/__import__ instead of exec.
2469 * python/lib/gdb/__init__.py: Import * from _gdb.
2470 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2471 prompt_hook, sys.argv): Moved from finish_python_initialization.
2472 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2473 (packages, auto_load_packages): New list and function replacing
2474 module_dict and auto-loading code, using __file__ instead of
2475 gdb.PYTHONDIR and reload/__import__ instead of exec.
2476 (GdbSetPythonDirectory): Replacing function of the same name
2477 from finish_python_initialization, using reload/__import__ instead
2478 of exec, as well as call auto_load_packages.
2479 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2480 gdb_python_module and not gdb_module.
2481 * python/python-internal.h (gdb_python_module): Declare.
2482 * python/python.c (gdb_python_module): New global.
2483 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2484 (_initialize_python): Rename gdb module to _gdb.
2485 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2486 (finish_python_initialization): Move Python code to
2487 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2488 __main__.
2489
2490 2012-09-13 Pedro Alves <palves@redhat.com>
2491
2492 * Makefile.in (COMMON_OBS): Add registry.o.
2493 * registry.c: New file.
2494 * registry.h (struct registry_container): Declare.
2495 (registry_data_callback): New typedef.
2496 (struct registry_data, struct registry_data_registration, struct
2497 registry_data_registry): New type.
2498 (register_data_with_cleanup, registry_alloc_data)
2499 (registry_callback_adaptor, registry_clear_data)
2500 (registry_container_free_data, registry_set_data, registry_data):
2501 Declare.
2502 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2503 the new common structures and functions.
2504 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2505 callback typedefs.
2506
2507 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2508
2509 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2510 there is an error inserting hardware breakpoints and use the
2511 error message from the target.
2512
2513 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2514 Catch this exception and print the error message contained within.
2515 Do not print the default hardware error breakpoint message in this
2516 case.
2517
2518 2012-09-12 Doug Evans <dje@google.com>
2519
2520 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2521 cu == NULL.
2522
2523 2012-09-11 Doug Evans <dje@google.com>
2524
2525 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2526 .gdb_index symbol attributes if there are none.
2527
2528 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2529
2530 * symtab.h (struct minimal_symbol) [has_size]: New field.
2531 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2532 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2533 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2534 minimal symbols if the symbol's size is actually known.
2535 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2536 of msymbol's size field. Add comment.
2537 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2538 SET_MSYMBOL_SIZE to set the minimal symbol size.
2539
2540 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2541
2542 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2543 minimal_symbol struct object, rather than setting some of its
2544 fields one by one.
2545
2546 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2547
2548 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2549 passed_a_ptr flag when displaying typedef types.
2550
2551 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2552
2553 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2554 the optimized_out flag is preserved.
2555
2556 2012-09-10 Anthony Green <green@moxielogic.com>
2557
2558 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2559 prologue changes in GCC.
2560
2561 2012-09-10 Keith Seitz <keiths@redhat.com>
2562
2563 PR gdb/13483
2564 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2565 (BOOL_CONVERSION_BADNESS): ... this.
2566 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2567 (rank_one_type): Allow all boolean conversions
2568 permitted by the standard.
2569
2570 2012-09-06 Tom Tromey <tromey@redhat.com>
2571
2572 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2573 Don't decref py_objfile.
2574
2575 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2576
2577 Do not enable -lmcheck by default when Python is enabled with
2578 threading support.
2579 * configure.ac: (python_has_threads) New variable, by testing
2580 if WITH_THREAD is defined in Python.h.
2581 Move --enable-lmcheck after --with-python.
2582 Do not enable -lmcheck by default if python_has_threads=yes.
2583 Warn if --enable-lmcheck and python_has_threads=yes.
2584 * configure: Regenerate.
2585
2586 2012-08-31 Yao Qi <yao@codesourcery.com>
2587
2588 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2589 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2590 Update some commands.
2591 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2592 * mi/mi-main.c (mi_cmd_execute): Set
2593 '*parse->cmd->suppress_notification' to 1.
2594
2595 2012-08-31 Yao Qi <yao@codesourcery.com>
2596
2597 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2598
2599 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2600
2601 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2602
2603 2012-08-29 Doug Evans <dje@google.com>
2604
2605 * main.c (print_gdb_help): Remove reference to
2606 --use-deprecated-index-sections.
2607
2608 2012-08-28 Yao Qi <yao@codesourcery.com>
2609
2610 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2611 (init_cmds): Call add_setshow_uinteger_cmd for command
2612 'max-user-call-depth'.
2613 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2614 declaration of 'max_user_call_depth'.
2615 * frame.c (backtrace_limit): Add 'unsigned'.
2616 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2617 'limit'.
2618 * remote.c (remoteaddresssize): Add 'unsigned'.
2619 (remote_address_masked): Change local var 'address_size' to
2620 'unsigned'.
2621 (_initialize_remote): Call add_setshow_uinteger_cmd for
2622 'remoteaddresssize'.
2623 * top.c (history_size): Add 'unsigned'.
2624 (show_commands): Change local variables to 'unsigned'.
2625 (set_history_size_command): Don't check history_size is negative.
2626 Adjust the condition to call unstifle_history and set history_size
2627 to UNIT_MAX.
2628
2629 2012-08-28 Pedro Alves <palves@redhat.com>
2630
2631 PR gdb/14428
2632
2633 * infcmd.c (default_print_one_register_info): New, factored out
2634 from default_print_registers_info.
2635 (default_print_registers_info): Use it. Mark value unavailable if
2636 necessary.
2637 (registers_info): Print user registers with
2638 default_print_one_register_info.
2639
2640 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2641
2642 PR tui/14486
2643 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2644 is not NULL before referencing it.
2645
2646 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2647
2648 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2649 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2650 original PC for it.
2651
2652 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2653 Jan Kratochvil <jan.kratochvil@redhat.com>
2654
2655 * auto-load.c (auto_load_objfile_script): Rename to ...
2656 (auto_load_objfile_script_1): ... here, change variable realname to
2657 parameter realname, document it, add return value, add variable retval.
2658 (auto_load_objfile_script): New function.
2659
2660 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2661
2662 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2663 followed by a whitespace.
2664
2665 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2666
2667 PR gdb/14494.
2668 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2669 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2670 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2671 here.
2672
2673 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2674
2675 * memattr.c (create_mem_region): Fix memory region overlapping
2676 checking.
2677
2678 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2679
2680 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2681 with xmalloc/cleanup.
2682 * mt-tdep.c (mt_push_dummy_call): Likewise.
2683 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2684 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2685
2686 2012-08-24 Yao Qi <yao@codesourcery.com>
2687
2688 * jv-exp.y (push_expression_name): Add "." at the end of error
2689 message.
2690
2691 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2692
2693 Document how to return from "python-interactive" to GDB.
2694 * python/python.c (_initialize_python): Update documentation.
2695
2696 2012-08-23 Pedro Alves <palves@redhat.com>
2697
2698 * infrun.c (_initialize_infrun) <handle command help text>:
2699 Mention that multiple signals are supported.
2700
2701 2012-08-23 Pedro Alves <palves@redhat.com>
2702
2703 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2704 string.
2705
2706 2012-08-23 Yao Qi <yao@codesourcery.com>
2707
2708 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2709 (tfind_1): Don't call registers_changed, set_traceframe_num,
2710 and clear_traceframe_info.
2711 Call set_current_traceframe.
2712 (set_current_traceframe): call set_traceframe_num.
2713
2714 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2715
2716 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2717 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2718
2719 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2720
2721 Enable readline in Python in a GDB-specific way and block the
2722 standard Python readline module to prevent conflicts with GDB.
2723 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2724 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2725 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2726 * python/py-gdb-readline.c: New file.
2727 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2728 prototype.
2729 * python/python.c (_initialize_python): Call
2730 gdbpy_initialize_gdb_readline.
2731
2732 2012-08-22 Keith Seitz <keiths@redhat.com>
2733
2734 * defs.h: Include build-gnulib/config.h
2735
2736 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2737
2738 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2739 and blx pc.
2740
2741 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2742
2743 Add a new "python-interactive" command that starts a standard
2744 Python interactive prompt with "pi" as alias, and add "py" as
2745 an alias to "python".
2746 * NEWS: Mention the new commands.
2747 * python/python.c (eval_python_command): New function.
2748 (python_interactive_command): For "python-interactive" with
2749 arguments, call eval_python_command. For "python-interactive"
2750 without arguments, call PyRun_InteractiveLoop.
2751 (_initialize_python): Add "python-interactive" command with
2752 "pi" as alias, and add "py" as an alias to "python".
2753
2754 2012-08-22 Tom Tromey <tromey@redhat.com>
2755
2756 * defs.h (quit_flag): Don't declare.
2757 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2758 (QUIT): Use new functions.
2759 * event-top.c (command_handler): Use clear_quit_flag.
2760 (handle_sigint): Use set_quit_flag.
2761 (async_request_quit): Use check_quit_flag. Don't check
2762 immediate_quit.
2763 * exceptions.c (throw_exception): Use clear_quit_flag.
2764 * main.c (captured_main): Use clear_quit_flag.
2765 * python/python.c (clear_quit_flag, set_quit_flag)
2766 (check_quit_flag): New functions.
2767 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2768 clear_quit_flag.
2769 * remote.c (remote_wait_as): Use check_quit_flag,
2770 clear_quit_flag.
2771 (remote_start_remote): Call QUIT.
2772 * symfile.c (load_progress): Use check_quit_flag.
2773 * top.c (command_loop): Use clear_quit_flag.
2774 (command_line_input): Call QUIT.
2775 * utils.c (quit_flag): Conditionally define.
2776 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2777 functions.
2778 (prompt_for_continue): Call QUIT. Use quit, not
2779 async_request_quit.
2780 * remote-mips.c (mips_expect_timeout): Call QUIT.
2781 * monitor.c (monitor_expect): Call QUIT.
2782
2783 2012-08-22 Tom Tromey <tromey@redhat.com>
2784
2785 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2786 (async_init_signals): Update.
2787 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2788 (SIGWINCH_HANDLER_BODY): Remove.
2789
2790 2012-08-22 Tom Tromey <tromey@redhat.com>
2791
2792 * jit.c (jit_object_close_impl): Don't malloc the objfile
2793 name.
2794 * objfiles.c (allocate_objfile): Don't malloc the objfile
2795 name.
2796 (free_objfile): Don't free the objfile name.
2797 * objfiles.h (struct objfile) <name>: Update comment.
2798 * symfile.c (reread_symbols): Fix reference counting. Don't
2799 malloc objfile name.
2800
2801 2012-08-22 Tom Tromey <tromey@redhat.com>
2802
2803 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2804 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2805 (symfile_bfd_open): Likewise.
2806 (generic_load): Likewise.
2807 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2808 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2809 gdb_bfd_open.
2810 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2811 Use gdb_bfd_open.
2812 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2813 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2814 (pmon_load_fast): Likewise.
2815 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2816 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2817 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2818 (macho_check_dsym): Likewise.
2819 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2820 (m32r_upload_command): Likewise.
2821 * gdb_bfd.h (gdb_bfd_cache): Declare.
2822 * gdb_bfd.c (struct gdb_bfd_data): New.
2823 (gdb_bfd_cache): New global.
2824 (struct gdb_bfd_cache_search): New.
2825 (hash_bfd): New function.
2826 (eq_bfd): Likewise.
2827 (gdb_bfd_open): Likewise.
2828 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2829 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2830 gdb_bfd_data.
2831 * exec.c (exec_file_attach): Use gdb_bfd_open.
2832 * dsrec.c (load_srec): Use gdb_bfd_open.
2833
2834 2012-08-22 Tom Tromey <tromey@redhat.com>
2835
2836 * dwarf2read.c (macro_start_file): Update.
2837 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2838 (free_objfile_per_bfd_storage): Destroy macro_cache.
2839 (allocate_objfile, free_objfile): Update.
2840 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2841 New field.
2842 (struct objfile) <macro_cache>: Remove.
2843 * symfile.c (reread_symbols): Update.
2844 * symmisc.c (print_symbol_bcache_statistics): Update.
2845 (print_objfile_statistics): Update.
2846
2847 2012-08-22 Tom Tromey <tromey@redhat.com>
2848
2849 * elfread.c (elf_symtab_read): Update.
2850 * objfiles.c (objfiles_bfd_data): New global.
2851 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2852 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2853 (allocate_objfile, free_objfile): Update.
2854 (_initialize_objfiles): Initialize objfiles_bfd_data.
2855 * objfiles.h (struct objfile_per_bfd_storage): New.
2856 (struct objfile) <per_bfd>: New field.
2857 <filename_cache>: Remove.
2858 (set_objfile_per_bfd): Declare.
2859 * symfile.c (reread_symbols): Update. Call
2860 set_objfile_per_bfd.
2861 (allocate_symtab): Update.
2862 * symmisc.c (print_symbol_bcache_statistics): Update.
2863 (print_objfile_statistics): Print the size of the BFD obstack.
2864
2865 2012-08-22 Tom Tromey <tromey@redhat.com>
2866
2867 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2868 * gdb_bfd.c: Use DEFINE_REGISTRY.
2869 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2870 (gdb_bfd_ref): Call bfd_alloc_data.
2871 (gdb_bfd_unref): Call bfd_free_data.
2872
2873 2012-08-22 Tom Tromey <tromey@redhat.com>
2874
2875 * registry.h (struct registry_fields): New.
2876 (REGISTRY_FIELDS): Redefine.
2877 (REGISTRY_ACCESS_FIELD): New macro.
2878 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2879 functions.
2880
2881 2012-08-22 Tom Tromey <tromey@redhat.com>
2882
2883 * auto-load.c (_initialize_auto_load): Update.
2884 * solib-svr4.c (_initialize_svr4_solib): Update
2885 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2886 * solib-darwin.c (_initialize_darwin_solib): Update.
2887 * registry.h: New file.
2888 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2889 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2890 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2891 (register_program_space_data_with_cleanup)
2892 (register_program_space_data, program_space_alloc_data)
2893 (clear_program_space_data, set_program_space_data)
2894 (program_space_data): Don't declare.
2895 * progspace.c: Use DEFINE_REGISTRY.
2896 (struct program_space_data, struct
2897 program_space_data_registration, struct
2898 program_space_data_registry, program_space_data_registry)
2899 (register_program_space_data_with_cleanup)
2900 (register_program_space_data, program_space_alloc_data)
2901 (program_space_free_data, clear_program_space_data)
2902 (set_program_space_data, program_space_data): Remove.
2903 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2904 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2905 (register_objfile_data_with_cleanup, register_objfile_data)
2906 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2907 declare.
2908 * objfiles.c: Use DEFINE_REGISTRY.
2909 (struct objfile_data, struct objfile_data_registration, struct
2910 objfile_data_registry, objfile_data_registry)
2911 (register_objfile_data_with_cleanup, register_objfile_data)
2912 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2913 (set_objfile_data, objfile_data): Remove.
2914 (_initialize_objfiles): Update.
2915 * jit.c (_initialize_jit): Update.
2916 * inflow.c (_initialize_inflow): Update.
2917 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2918 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2919 (register_inferior_data_with_cleanup, register_inferior_data)
2920 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2921 declare.
2922 * inferior.c: Use DEFINE_REGISTRY.
2923 (struct inferior_data, struct inferior_data_registration, struct
2924 inferior_data_registry, inferior_data_registry)
2925 (register_inferior_data_with_cleanup, register_inferior_data)
2926 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2927 (set_inferior_data, inferior_data): Remove.
2928 * auxv.c (_initialize_auxv): Update.
2929 * ada-lang.c (_initialize_ada_language): Update.
2930 * breakpoint.c (_initialize_breakpoint): Update.
2931 * i386-nat.c (i386_use_watchpoints): Update.
2932
2933 2012-08-22 Tom Tromey <tromey@redhat.com>
2934
2935 * exec.c (exec_close, exec_file_attach): Update.
2936 (add_to_section_table): Initialize 'key' field.
2937 (add_target_sections, remove_target_sections): Add 'key' argument.
2938 * exec.h (add_target_sections, remove_target_sections): Add
2939 'key' argument.
2940 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2941 (reload_shared_libraries_1): Update.
2942 * target.h (struct target_section) <key>: New field.
2943
2944 2012-08-22 Tom Tromey <tromey@redhat.com>
2945
2946 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2947
2948 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2949
2950 * symfile.c (allocate_symtab): Use host_address_to_string
2951 function instead of cast of pointer to long which is not
2952 compatible with x86_64-w64-mingw32 build.
2953
2954 2012-08-19 Andrew Pinski <apinski@cavium.com>
2955
2956 * mips-tdep.c (is_octeon): New function.
2957 (is_octeon_bbit_op): New function.
2958 (mips32_next_pc): Handle Octeon's bbit instructions.
2959 (mips32_instruction_has_delay_slot): Likewise.
2960
2961 2012-08-19 Andrew Pinski <apinski@cavium.com>
2962
2963 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2964 before the function.
2965
2966 2012-08-19 Andrew Pinski <apinski@cavium.com>
2967
2968 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2969
2970 2012-08-19 Keith Seitz <keiths@redhat.com>
2971
2972 PR c++/14365
2973 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2974 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2975
2976 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2977
2978 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2979 The typo broke "make TAGS".
2980
2981 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2982
2983 GDB 7.5 released.
2984
2985 2012-08-17 Keith Seitz <keiths@redhat.com>
2986
2987 PR c++/13356
2988 * gdbtypes.c (strict_type_checking): New variable.
2989 (show_strict_type_checking): New function.
2990 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2991 if strict type checking is disabled.
2992 (_initialize_gdbtypes): Add "check type" subcommand.
2993 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2994
2995 2012-08-17 Keith Seitz <keiths@redhat.com>
2996
2997 * language.h (type_mode): Remove.
2998 (type_check): Remove.
2999 (struct language_defn): Remove la_type_check.
3000 (STRICT_TYPE): Remove unused macro.
3001 (type_error): Remove.
3002 * language.c (set_type_range_case): Renamed to ...
3003 (set_range_case): ... this. Update all callers.
3004 Remove type_mode/type_check.
3005 (type_mode): Remove.
3006 (type_check): Remove.
3007 (show_type_command): Remove.
3008 (set_type_command): Remove.
3009 (language_info): Remove type checking output.
3010 (type_error): Remove unused function.
3011 (range_error): Update comment.
3012 (unknown_language_defn): Remove la_type_check.
3013 (auto_language_defn): Likewise.
3014 (local_language_defn): Likewise.
3015 (_initialize_language): Remove "check type" subcommand.
3016 * ada-lang.c (ada_language_defn): Remove la_type_check.
3017 * c-lang.c (c_language_defn): Likewise.
3018 (cplus_language_defn): Likewise.
3019 (asm_language_defn): Likewise.
3020 (minimal_language_defn): Likewise.
3021 * d-lang.c (d_language_defn): Likewise.
3022 * f-lang.c (f_language_defn): Likewise.
3023 * go-lang.c (go_language_defn): Likewise.
3024 * jv-lang.c (java_language_defn): Likewise.
3025 * m2-lang.c (m2_language_defn): Likewise.
3026 * objc-lang.c (objc_language_defn): Likewise.
3027 * opencl-lang.c (opencl_language_defn): Likewise.
3028 * p-lang.c (pascal_language_defn): Likewise.
3029
3030 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3031
3032 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3033
3034 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3035
3036 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3037 New function.
3038 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3039 using the regache. Use ia64_hpux_get_register_from_save_state_t
3040 to access the bsp and bspstore registers if not.
3041
3042 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3043
3044 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3045 * breakpoint.c (detach_breakpoints): Change pid parameter into
3046 a ptid. Adjust code accordingly.
3047 * infrun.c (handle_inferior_event): Delete variable child_pid.
3048 Update call to detach_breakpoints to pass the child ptid for
3049 fork events.
3050 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3051 assert that inferior_ptid's lwp is zero.
3052 (linux_handle_extended_wait): Update call to detach_breakpoints.
3053 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3054 detach_breakpoints.
3055
3056 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3057
3058 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3059 parent, only call detach_breakpoints if tts.tts_event ==
3060 TTEVT_VFORK.
3061
3062 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3063
3064 * dwarf2-frame.c (dwarf2_frame_cache): Use
3065 get_frame_address_in_block instead of get_frame_pc as
3066 the bound for executing the frame's FDE.
3067
3068 2012-08-16 Yao Qi <yao@codesourcery.com>
3069
3070 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3071 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3072 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3073 (c_type_print_varspec_suffix): Likewise.
3074 * eval.c (evaluate_subexp_standard): Likewise.
3075 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3076 (f_type_print_varspec_suffix): Likewise.
3077 * gdbtypes.c (is_scalar_type): Likewise.
3078 (recursive_dump_type): Likewise.
3079 * infcall.c (value_arg_coerce): Likewise.
3080 * m2-valprint.c (m2_val_print): Likewise.
3081 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3082 (pascal_type_print_varspec_suffix): Likewise.
3083 (pascal_type_print_base): Likewise.
3084 * p-valprint.c (pascal_val_print): Likewise.
3085 (pascal_val_print): Likewise.
3086 * valops.c (value_slice): Likewise.
3087 * valprint.c (scalar_type_p): Likewise.
3088 * valarith.c (value_bitstring_subscript): Remove.
3089 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3090 Remove comment on TYPE_CODE_BITSTRING.
3091
3092 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3093 TYPE_CODE_BITSTRING.
3094
3095 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3096 slot 0.
3097
3098 2012-08-16 Yao Qi <yao@codesourcery.com>
3099
3100 * tracepoint.c (trace_find_none_command): Remove.
3101 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3102
3103 2012-08-16 Yao Qi <yao@codesourcery.com>
3104
3105 * remote.c (handle_notification): Remove parameter 'length'.
3106 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3107
3108 2012-08-15 Keith Seitz <keiths@redhat.com>
3109
3110 * gdbtypes.c (opaque_type_resolution): Make static.
3111 Add missing comment.
3112 (overload_debug): Add missing comment.
3113 (show_opaque_type_resolution): Likewise.
3114 (show_overload_debug): Likewise.
3115 (print_bit_vector): Remove unnecessary forward declaration.
3116 (print_arg_types): Likewise.
3117 (dump_fn_fieldlists): Likewise.
3118 (print_cplus_stuff): Likewise.
3119
3120 2012-08-15 Tom Tromey <tromey@redhat.com>
3121
3122 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3123 (gdb_bfd_ref): Initialize new field.
3124 (gdb_bfd_unref): Unref the archive BFD.
3125 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3126 parent archive.
3127
3128 2012-08-15 Tom Tromey <tromey@redhat.com>
3129
3130 PR python/14387:
3131 * python/py-bpevent.c (create_breakpoint_event_object): Update
3132 comment.
3133 * python/py-event.c (evpy_add_attribute): Update comment.
3134 * python/py-exitedevent.c (create_exited_event_object): Fix
3135 reference counting and error handling.
3136 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3137 Fix reference counting.
3138 * python/py-signalevent.c (create_signal_event_object): Fix
3139 reference counting and error handling.
3140 * python/py-stopevent.c (emit_stop_event): Fix reference
3141 counting.
3142 * python/py-threadevent.c (get_event_thread): Return a
3143 borrowed reference.
3144 * python/py-type.c (convert_field): Fix reference counting.
3145
3146 2012-08-15 Tom Tromey <tromey@redhat.com>
3147
3148 * dwarf2read.c (dwarf_decode_macro_bytes)
3149 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3150 as hash key.
3151
3152 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3153
3154 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3155 stepi, nexti, finish, next, step, jump, and continue commands.
3156 * infrun.c (_initialize_infrun): Update help text for the handle
3157 command.
3158
3159 2012-08-14 Doug Evans <dje@google.com>
3160
3161 * gdbtypes.c (struct extra): Delete, unused.
3162
3163 * gdbtypes.c: Whitespace cleanup.
3164 (address_space_name_to_int): Remove "extern" from definition.
3165 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3166
3167 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3168 TYPE_POINTER_TYPE (type).
3169
3170 2012-08-14 Gary Benson <gbenson@redhat.com>
3171
3172 * solib-svr4.c (svr4_free_library_list): Use free_so.
3173
3174 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3175
3176 * .gitignore: Add go-exp.c.
3177
3178 2012-08-13 Doug Evans <dje@google.com>
3179
3180 * value.c (show_convenience): Tweak comment.
3181 (_initialize_values): Mention convenience functions in the help text
3182 for "show convenience".
3183
3184 2012-08-13 Yao Qi <yao@codesourcery.com>
3185
3186 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3187 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3188 TERNOP_SLICE_COUNT.
3189 * eval.c (evaluate_subexp_standard): Likewise.
3190 * expprint.c (print_subexp_standard): Likewise.
3191 (dump_subexp_body_standard): Likewise.
3192 * parse.c (operator_length_standard): Likewise.
3193
3194 2012-08-13 Yao Qi <yao@codesourcery.com>
3195
3196 * std-operator.def: Remove OP_BITSTRING.
3197 * breakpoint.c (watchpoint_exp_is_const): Update.
3198 * eval.c (evaluate_subexp_standard): Remove handling to
3199 OP_BITSTRING.
3200 * expprint.c (print_subexp_standard): Likewise.
3201 (dump_subexp_body_standard): Likewise.
3202 * parse.c (operator_length_standard): Likewise.
3203 * valops.c (value_bitstring): Remove.
3204 * value.h: Remove the declaration of 'value_bitstring'.
3205
3206 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3207
3208 * linespec.c (find_methods): Remove unused variables `i1' and
3209 `name_len'.
3210 (decode_line_full): Likewise for `arg_start'.
3211
3212 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3213
3214 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3215 (zlib_decompress_section): Likewise for `section_data'.
3216 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3217
3218 2012-08-10 Doug Evans <dje@google.com>
3219
3220 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3221 * NEWS: Document them.
3222 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3223 function/strfns.py.
3224 * python/py-type.c (typy_array_1): New function.
3225 (typy_array): Call it.
3226 (typy_vector): New function.
3227 (type_object_methods): Add "vector".
3228 * python/lib/gdb/function/__init__.py: New file.
3229 * python/lib/gdb/function/strfns.py: New file.
3230
3231 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3232
3233 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3234 for TYPE_FIELD_BITPOS.
3235 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3236
3237 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3238
3239 PR cli/10436:
3240 * common/vec.h (VEC_merge): Define.
3241 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3242 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3243 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3244 * completer.c: Include gdb_signals.h.
3245 (signal_completer): Define.
3246 * completer.h (signal_completer): Add prototype.
3247 * infcmd.c (_initialize_infcmd): Assign the command
3248 completer for "signal" to handle_completer.
3249 * infrun.c: Include completer.h.
3250 (handle_completer): Define.
3251 (_initialize_infrun): Declare a new local variable c. Store the
3252 result of add_com("handle") to it. Assign the command
3253 completer for "handle" to handle_completer.
3254
3255 2012-08-09 Yao Qi <yao@codesourcery.com>
3256
3257 * cli/cli-decode.c (set_cmd_prefix): New.
3258 (lookup_cmd_for_prefixlist): New.
3259 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3260 of each cmd_list_element in *prefixlist.
3261 (add_setshow_cmd_full): set_cmd_prefix.
3262 (add_alias_cmd): Likewise.
3263 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3264 Declare 'auto_boolean_enums'.
3265 * cli/cli-setshow.c: Include "observer.h".
3266 (notify_command_param_changed_p): New.
3267 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3268 Remove 'static'.
3269 (do_setshow_command): Split it to ...
3270 (do_set_command, do_show_command): ... them. New.
3271 (do_set_command): Call observer_notify_command_param_changed if
3272 notify_command_param_changed_p returns true.
3273 (cmd_show_list): Caller update.
3274 * auto-load.c (set_auto_load_cmd): Likewise.
3275 * remote.c (show_remote_cmd): Likewise.
3276 * cli/cli-setshow.h: Update declarations.
3277 * top.c (execute_command): Call do_set_command and do_show_command.
3278
3279 * NEWS: Mention new MI notification.
3280 * mi/mi-interp.c: Declare mi_command_param_changed.
3281 (mi_interpreter_init): Attach mi_command_param_changed to
3282 observer command_param_changed.
3283 (mi_command_param_changed): New.
3284 Remove mi_suppress_breakpoint_notifications.
3285 Define global variable mi_suppress_notification.
3286 (mi_breakpoint_created): Update.
3287 (mi_breakpoint_deleted): Likewise.
3288 (mi_breakpoint_modified): Likewise.
3289 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3290 'gdb-set' and set mi_suppress_notification.
3291 * mi/mi-main.h: (mi_suppress_notification): New struct.
3292
3293 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3294 Jan Kratochvil <jan.kratochvil@redhat.com>
3295
3296 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3297
3298 2012-08-09 Yao Qi <yao@codesourcery.com>
3299
3300 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3301 (skiplist): Move it to skip.c.
3302 (init_cmd_lists): Remove code setting enablebreaklist and
3303 skiplist to NULL.
3304 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3305 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3306 skiplist.
3307 * gdbcmd.h: Likewise.
3308 * skip.c (_initialize_step_skip): Move 'skiplist' from
3309 cli/cli-cmds.c.
3310
3311 2012-08-09 Yao Qi <yao@codesourcery.com>
3312
3313 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3314 * gnu-nat.c, symfile.c: Likewise.
3315
3316 2012-08-08 Aaron Gamble <agamble@google.com>
3317
3318 * utils.c (prompt_for_continue_wait_time): New static global.
3319 (make_command_stats_cleanup): Initialize it.
3320 (report_command_stats): Subtract time waiting for user.
3321 (prompt_for_continue): Track time waiting for user.
3322 (defaulted_query): Track time waiting for user.
3323
3324 2012-08-08 Doug Evans <dje@google.com>
3325
3326 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3327 UNOP_MEMVAL_TYPE.
3328 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3329 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3330 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3331 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3332 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3333 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3334 elt.
3335 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3336 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3337 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3338 (dump_prefix_expression): Handle OP_TYPE.
3339
3340 2012-08-08 Keith Seitz <keiths@redhat.com>
3341
3342 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3343 addr_start.
3344
3345 2012-08-08 Doug Evans <dje@google.com>
3346
3347 * linux-thread-db.c: #include "gdb_vecs.h".
3348 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3349 updated.
3350 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3351 (thread_db_load_search): Use a vector to iterate over path elements.
3352 Handle text appearing after "$pdir".
3353
3354 * gdb_string.h: Moved to ...
3355 * common/gdb_string.h: ... here.
3356 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3357 gdb_string.h and gdb_assert.h.
3358
3359 2012-08-08 Yao Qi <yao@codesourcery.com>
3360
3361 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3362 (tic6x_value_to_register): Likewise.
3363 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3364 and set_gdbarch_value_to_register.
3365
3366 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3367 Jean-Marc Saffroy <saffroy@gmail.com>
3368
3369 PR 11804
3370 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3371 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3372 * gcore.c (gcore_create_callback): New function comment. Add modified
3373 parameter. Only write modified regions. Set SEC_READONLY exactly
3374 according to MODIFIED.
3375 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3376 the passed modified value to FUNC.
3377 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3378 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3379 first. New variables modified and has_anonymous. Parse the lines of
3380 smaps file. Add the passed MODIFIED value to FUNC.
3381 * procfs.c (find_memory_regions_callback): Add the passed modified
3382 value.
3383
3384 2012-08-06 Tom Tromey <tromey@redhat.com>
3385
3386 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3387 (dwarf2_frame_cache): Use it.
3388 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3389 cache initialization constraint.
3390
3391 2012-08-06 Tom Tromey <tromey@redhat.com>
3392
3393 PR python/14386:
3394 * varobj.c (update_dynamic_varobj_children): Don't call
3395 PyIter_Check.
3396
3397 2012-08-06 Tom Tromey <tromey@redhat.com>
3398
3399 PR cli/14392:
3400 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3401
3402 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3403
3404 * NEWS: New entry for 'cd' default parameters.
3405 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3406
3407 2012-08-03 Tom Tromey <tromey@redhat.com>
3408
3409 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3410 return.
3411
3412 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3413
3414 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3415 to attempting lseek/write.
3416 (inf_child_fileio_pread): Likewise for pread.
3417
3418 2012-08-02 Yao Qi <yao@codesourcery.com>
3419
3420 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3421 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3422 add_setshow_zinteger_cmd.
3423 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3424 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3425 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3426 instead of add_setshow_zinteger_cmd.
3427 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3428 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3429 instead of add_setshow_zinteger_cmd.
3430 * frame.c (frame_debug): Add 'unsigned'.
3431 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3432 add_setshow_zinteger_cmd.
3433 * frame.h: Update the declaration of 'frame_debug'.
3434 * gdbtypes.c (overload_debug): Add 'unsigned'.
3435 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3436 add_setshow_zinteger_cmd.
3437 * inferior.h: Update declaration of 'debug_infrun'.
3438 * infrun.c (debug_infrun): Add 'unsigned'.
3439 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3440 add_setshow_zinteger_cmd.
3441 * jit.c (jit_debug): Add 'unsigned'.
3442 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3443 add_setshow_zinteger_cmd.
3444 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3445 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3446 instead of add_setshow_zinteger_cmd.
3447 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3448 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3449 add_setshow_zinteger_cmd.
3450 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3451 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3452 instead of add_setshow_zinteger_cmd.
3453 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3454 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3455 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3456 intead of add_setshow_zinteger_cmd.
3457 * mips-tdep.c (mips_debug): Add 'unsigned'.
3458 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3459 instead of add_setshow_zinteger_cmd.
3460 * monitor.c (monitor_debug): Add 'unsigned'.
3461 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3462 add_setshow_zinteger_cmd.
3463 * observer.c (observer_debug): Add 'unsigned'.
3464 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3465 add_setshow_zinteger_cmd.
3466 * parse.c (expressiondebug): Add 'unsigned'.
3467 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3468 add_setshow_zinteger_cmd.
3469 * record.c (record_debug): Add 'unsigned'.
3470 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3471 add_setshow_zinteger_cmd.
3472 * record.h: Update the declaration of 'record_debug'.
3473 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3474 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3475 add_setshow_zinteger_cmd.
3476 * serial.c (global_serial_debug_p): Add 'unsigned'.
3477 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3478 add_setshow_zinteger_cmd.
3479 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3480 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3481 add_setshow_zinteger_cmd.
3482 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3483 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3484 add_setshow_zinteger_cmd.
3485 * target.c (targetdebug): Add 'unsigned'.
3486 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3487 add_setshow_zinteger_cmd.
3488 * valops.c (overload_debug): Add 'unsigned'.
3489 * varobj.c (varobjdebug): Add 'unsigned'.
3490 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3491 add_setshow_zinteger_cmd.
3492 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3493 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3494 instead of add_setshow_zinteger_cmd.
3495
3496 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3497 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3498 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3499 instead of add_setshow_zinteger_cmd.
3500 * gdbarch.c, gdbarch.h: Re-generated.
3501
3502 2012-08-02 Yao Qi <yao@codesourcery.com>
3503
3504 * nto-tdep.c: Don't include cli/cli-decode.h and
3505 cli/cli-cmds.h.
3506 (_initialize_nto_tdep): Remove.
3507 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3508 Remove field.
3509 Remove macro nto_internal_debugging.
3510
3511 2012-08-01 Richard Henderson <rth@redhat.com>
3512
3513 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3514 (mep-*-*) [gdb_target_obs]: Likewise.
3515
3516 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3517
3518 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3519 linux_get_siginfo_type.
3520
3521 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3522
3523 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3524 AT_ENTRY_POINT.
3525 (call_function_by_hand) <ON_STACK>: Call write_memory with
3526 gdbarch_breakpoint_from_pc, if possible.
3527 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3528 here.
3529
3530 2012-07-31 Yao Qi <yao@codesourcery.com>
3531
3532 * tracepoint.c: Add 'static' for some variables.
3533
3534 2012-07-31 Yao Qi <yao@codesourcery.com>
3535
3536 * go32-nat.c: Declare _initialize_go32_nat.
3537 * ser-go32.c: Declare _initialize_ser_dos.
3538 * top.c (do_chdir_cleanup): Add 'static'.
3539
3540 2012-07-30 Keith Seitz <keiths@redhat.com>
3541
3542 * linespec.c (linespec_lex_number): A number followed
3543 by quotes is a valid number, too.
3544
3545 2012-07-30 Tom Tromey <tromey@redhat.com>
3546
3547 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3548
3549 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3550
3551 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3552 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3553
3554 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3555
3556 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3557 invalid or reevaluated to prevent prevent references to possibly
3558 delete'd type objects being left in the varobj.
3559
3560 2012-07-27 Tom Tromey <tromey@redhat.com>
3561 Jan Kratochvil <jan.kratochvil@redhat.com>
3562
3563 * copying.awk: Print buffer-read-only and vi ro markers.
3564 * copying.c: Rebuild.
3565 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3566 * gdbarch.c, gdbarch.h: Rebuild.
3567 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3568 buffer-read-only and vi ro markers.
3569 * features/arm-with-iwmmxt.c: Rebuild.
3570 * features/arm-with-m-fpa-layout.c: Rebuild.
3571 * features/arm-with-m-vfp-d16.c: Rebuild.
3572 * features/arm-with-m.c: Rebuild.
3573 * features/arm-with-neon.c: Rebuild.
3574 * features/arm-with-vfpv2.c: Rebuild.
3575 * features/arm-with-vfpv3.c: Rebuild.
3576 * features/i386/amd64-avx-linux.c: Rebuild.
3577 * features/i386/amd64-avx.c: Rebuild.
3578 * features/i386/amd64-linux.c: Rebuild.
3579 * features/i386/amd64.c: Rebuild.
3580 * features/i386/i386-avx-linux.c: Rebuild.
3581 * features/i386/i386-avx.c: Rebuild.
3582 * features/i386/i386-linux.c: Rebuild.
3583 * features/i386/i386-mmx-linux.c: Rebuild.
3584 * features/i386/i386-mmx.c: Rebuild.
3585 * features/i386/i386.c: Rebuild.
3586 * features/i386/x32-avx-linux.c: Rebuild.
3587 * features/i386/x32-avx.c: Rebuild.
3588 * features/i386/x32-linux.c: Rebuild.
3589 * features/i386/x32.c: Rebuild.
3590 * features/mips-dsp-linux.c: Rebuild.
3591 * features/mips-linux.c: Rebuild.
3592 * features/mips64-dsp-linux.c: Rebuild.
3593 * features/mips64-linux.c: Rebuild.
3594 * features/rs6000/powerpc-32.c: Rebuild.
3595 * features/rs6000/powerpc-32l.c: Rebuild.
3596 * features/rs6000/powerpc-403.c: Rebuild.
3597 * features/rs6000/powerpc-403gc.c: Rebuild.
3598 * features/rs6000/powerpc-405.c: Rebuild.
3599 * features/rs6000/powerpc-505.c: Rebuild.
3600 * features/rs6000/powerpc-601.c: Rebuild.
3601 * features/rs6000/powerpc-602.c: Rebuild.
3602 * features/rs6000/powerpc-603.c: Rebuild.
3603 * features/rs6000/powerpc-604.c: Rebuild.
3604 * features/rs6000/powerpc-64.c: Rebuild.
3605 * features/rs6000/powerpc-64l.c: Rebuild.
3606 * features/rs6000/powerpc-7400.c: Rebuild.
3607 * features/rs6000/powerpc-750.c: Rebuild.
3608 * features/rs6000/powerpc-860.c: Rebuild.
3609 * features/rs6000/powerpc-altivec32.c: Rebuild.
3610 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3611 * features/rs6000/powerpc-altivec64.c: Rebuild.
3612 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3613 * features/rs6000/powerpc-cell32l.c: Rebuild.
3614 * features/rs6000/powerpc-cell64l.c: Rebuild.
3615 * features/rs6000/powerpc-e500.c: Rebuild.
3616 * features/rs6000/powerpc-e500l.c: Rebuild.
3617 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3618 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3619 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3620 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3621 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3622 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3623 * features/rs6000/powerpc-vsx32.c: Rebuild.
3624 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3625 * features/rs6000/powerpc-vsx64.c: Rebuild.
3626 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3627 * features/rs6000/rs6000.c: Rebuild.
3628 * features/s390-linux32.c: Rebuild.
3629 * features/s390-linux32v1.c: Rebuild.
3630 * features/s390-linux32v2.c: Rebuild.
3631 * features/s390-linux64.c: Rebuild.
3632 * features/s390-linux64v1.c: Rebuild.
3633 * features/s390-linux64v2.c: Rebuild.
3634 * features/s390x-linux64.c: Rebuild.
3635 * features/s390x-linux64v1.c: Rebuild.
3636 * features/s390x-linux64v2.c: Rebuild.
3637 * features/tic6x-c62x-linux.c: Rebuild.
3638 * features/tic6x-c62x.c: Rebuild.
3639 * features/tic6x-c64x-linux.c: Rebuild.
3640 * features/tic6x-c64x.c: Rebuild.
3641 * features/tic6x-c64xp-linux.c: Rebuild.
3642 * features/tic6x-c64xp.c: Rebuild.
3643
3644 2012-07-27 Tom Tromey <tromey@redhat.com>
3645
3646 * c-exp.y (classify_name): Avoid assignment in condition.
3647
3648 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3649
3650 * amd64-windows-tdep.c: Include "frame.h".
3651 (amd64_windows_skip_trampoline_code): New function.
3652 (amd64_windows_init_abi): Add trampoline registration.
3653
3654 2012-07-27 Yao Qi <yao@codesourcery.com>
3655
3656 * tracepoint.c (cur_traceframe_number): Remove.
3657 (set_tfile_traceframe): Remove.
3658 (tfile_trace_find, tfile_fetch_registers): Update callers.
3659 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3660 (tfile_open, tfile_trace_find): Likewise.
3661
3662 2012-07-27 Yao Qi <yao@codesourcery.com>
3663
3664 * thread.c (switch_to_thread): Don't call registers_changed.
3665
3666 2012-07-26 Tom Tromey <tromey@redhat.com>
3667
3668 * Makefile.in (SFILES): Remove objc-exp.y.
3669 (YYFILES): Remove objc-exp.c.
3670 (YYOBJ): Remove objc-exp.o.
3671 (local-maintainer-clean): Don't mention objc-exp.c.
3672 * c-exp.y: Include objc-lang.h.
3673 (%union) <class>: New field.
3674 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3675 (exp): Clone subscript production for OBJC_LBRAC. Add various
3676 Objective C productions.
3677 (msglist, msgarglist, msgarg): New productions.
3678 (array_mod, func_mod, operator): Clone productions for
3679 OBJC_LBRAC.
3680 (parse_string_or_char): Handle '@' strings.
3681 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3682 (classify_name): Check la_name_of_this. Recognize ObjC class
3683 names.
3684 * objc-exp.y: Remove.
3685 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3686 * objc-lang.h (objc_parse, objc_error): Don't declare.
3687
3688 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3689
3690 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3691
3692 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3693
3694 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3695 and decrement.
3696
3697 2012-07-26 Tom Tromey <tromey@redhat.com>
3698
3699 * copying.c: Rebuild.
3700 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3701 'no_class'.
3702
3703 2012-07-26 Tom Tromey <tromey@redhat.com>
3704
3705 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3706 immediate_quit.
3707 (print_objfile_statistics): Likewise.
3708 (maintenance_print_symbols): Likewise.
3709 (maintenance_print_msymbols): Likewise.
3710 (maintenance_print_objfiles): Likewise.
3711 * psymtab.c (print_partial_symbols): Call QUIT.
3712 (maintenance_print_psymbols): Likewise. Don't modify
3713 immediate_quit.
3714 * copying.c (show_copying_command): Don't modify immediate_quit.
3715 (show_warranty_command): Likewise.
3716 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3717
3718 2012-07-26 Keith Seitz <keiths@redhat.com>
3719
3720 * linespec.c (linespec_lexer_lex_number): The input
3721 is also a valid number if the next character is a comma
3722 or colon.
3723
3724 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3725
3726 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3727 configure options.
3728
3729 2012-07-26 Tristan Gingold <gingold@adacore.com>
3730
3731 * machoread.c: Include gdb_bfd.h.
3732
3733 2012-07-26 Tristan Gingold <gingold@adacore.com>
3734
3735 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3736 offset.
3737
3738 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3739
3740 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3741 SIZE to size_t.
3742 (dwarf2_evaluate_loc_desc): Likewise.
3743 (dwarf2_loc_desc_needs_frame): Likewise.
3744 (locexpr_describe_location_1): Likewise.
3745 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3746 size_t.
3747 (struct dwarf2_loclist_baton): Likewise.
3748 * dwarf2read.c (struct dwarf_block): Likewise.
3749 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3750 (decode_locdesc): Expand SIZE and I to size_t.
3751
3752 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3753
3754 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3755
3756 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3757
3758 * doublest.c (convert_doublest_to_floatformat): If the exponent
3759 is too small, treat the value as zero. If the exponent is too
3760 large, treat the value as infinity.
3761
3762 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3763
3764 * configure.ac: Add --enable-lmcheck configure option.
3765 * configure: Regenerate.
3766
3767 2012-07-25 Tom Tromey <tromey@redhat.com>
3768
3769 * NEWS: Mention maint info bfds.
3770 * gdb_bfd.c (all_bfds): New global.
3771 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3772 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3773 New functions.
3774
3775 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3776
3777 * configure.tgt: Add v850*-*-rtems*.
3778
3779 2012-07-25 Tom Tromey <tromey@redhat.com>
3780
3781 * macrotab.c (macro_bcache_str): Remove cast.
3782
3783 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3784
3785 * linespec.c (linespec_lexer_lex_number): Update comments,
3786 change the return and add check to make sure the input is
3787 the decimal numbers.
3788 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3789 false, call linespec_lexer_lex_string.
3790
3791 2012-07-24 Tom Tromey <tromey@redhat.com>
3792
3793 * symfile.c (symbol_file_add): Don't open BFD twice.
3794
3795 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3796
3797 * breakpoint.c (create_breakpoint): Store condition for pending
3798 breakpoints.
3799
3800 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3801
3802 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3803 (m68k_return_value): Handle complex types like structures.
3804 (m68k_svr4_return_value): Likewise.
3805
3806 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3807
3808 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3809 parameters to bfd_get_section_name.
3810
3811 2012-07-24 Yao Qi <yao@codesourcery.com>
3812
3813 * cli/cli-setshow.c: Handle case 'var_uinteger'
3814 and 'var_zuninteger' together. Handle case 'var_integer' and
3815 'var_zinteger' together.
3816
3817 2012-07-23 Keith Seitz <keiths@redhat.com>
3818
3819 * linespec.c (convert_linespec_to_sal): Don't add
3820 any symbols to the result vector if symbol_to_sal
3821 returns zero.
3822
3823 2012-07-23 Keith Seitz <keiths@redhat.com>
3824
3825 * linespec.c (decode_objc): Record the function name
3826 in the linespec.
3827
3828 2012-07-23 Tom Tromey <tromey@redhat.com>
3829
3830 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3831 counting.
3832 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3833 (map_vmap): Acquire a reference to the BFD.
3834
3835 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3836
3837 * p-valprint.c (pascal_object_print_value): Replace potentially
3838 unsafe alloca with xmalloc/xfree.
3839 * valops.c (search_struct_method): Likewise.
3840
3841 2012-07-23 Tom Tromey <tromey@redhat.com>
3842
3843 * solib-svr4.c (enable_break): Update.
3844 * bfd-target.h (target_bfd_reopen): Update documentation.
3845
3846 2012-07-23 Tom Tromey <tromey@redhat.com>
3847
3848 * symfile.c (separate_debug_file_exists): Update.
3849 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3850 (reread_symbols): Update.
3851 * elfread.c (build_id_verify): Update.
3852 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3853 bfd_open_maybe_remote.
3854
3855 2012-07-23 Tom Tromey <tromey@redhat.com>
3856
3857 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3858
3859 2012-07-23 Tom Tromey <tromey@redhat.com>
3860
3861 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3862 and 'abfd'.
3863 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3864 and 'abfd'.
3865 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3866 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3867 'abfd'.
3868 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3869 * objfiles.c (allocate_objfile): Acquire a new reference.
3870 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3871 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3872 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3873 a cleanup for 'nbfd'.
3874 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3875 for 'nbfd'.
3876 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3877 make a cleanup for 'abfd'.
3878 (symbol_file_add): Make a BFD cleanup.
3879
3880 2012-07-23 Tom Tromey <tromey@redhat.com>
3881
3882 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3883 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3884 * corelow.c (core_open): Use gdb_bfd_fopen.
3885 * dsrec.c (load_srec): Use gdb_bfd_openr.
3886 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3887 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3888 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3889 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3890 (gdb_bfd_fdopenr): New functions.
3891 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3892 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3893 (gdb_bfd_fdopenr): Declare.
3894 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3895 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3896 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3897 gdb_bfd_openr_next_archived_file.
3898 (macho_check_dsym): Use gdb_bfd_openr.
3899 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3900 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3901 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3902 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3903 gdb_bfd_openr.
3904 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3905 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3906 gdb_bfd_openr_next_archived_file.
3907 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3908 Use gdb_bfd_openr.
3909 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3910 gdb_bfd_openr.
3911 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3912 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3913 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3914 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3915 (symfile_bfd_open): Use gdb_bfd_fopen.
3916 (generic_load): Use gdb_bfd_openr.
3917 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3918
3919 2012-07-23 Tom Tromey <tromey@redhat.com>
3920
3921 * bfd-target.c (target_bfd_reopen): Update.
3922 * cli/cli-dump.c (bfd_openr_with_cleanup)
3923 (bfd_openw_with_cleanup): Update.
3924 * corelow.c (core_open): Update.
3925 * dsrec.c (load_srec): Update.
3926 * exec.c (exec_file_attach): Update.
3927 * gcore.c (create_gcore_bfd): Update.
3928 * gdb_bfd.c (gdb_bfd_ref): Return void.
3929 (gdb_bfd_open): Update.
3930 * gdb_bfd.h (gdb_bfd_ref): Return void.
3931 Update comments.
3932 * jit.c (jit_bfd_try_read_symtab): Update.
3933 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3934 * machoread.c (macho_symfile_read_all_oso): Update.
3935 (macho_check_dsym): Update.
3936 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3937 * remote-m32r-sdi.c (m32r_load): Update.
3938 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3939 * rs6000-nat.c (add_vmap): Update.
3940 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3941 Update.
3942 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3943 * solib-spu.c (spu_bfd_open): Update.
3944 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3945 * spu-linux-nat.c (spu_bfd_open): Update.
3946 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3947 (generic_load): Update.
3948 * windows-nat.c (windows_make_so): Update.
3949
3950 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3951
3952 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3953
3954 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3955
3956 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3957 SIGTRAMP_FRAME unwinding.
3958
3959 2012-07-20 Doug Evans <dje@google.com>
3960
3961 * NEWS: Document new options "set/show use-deprecated-index-sections",
3962 and delete reference to --use-deprecated-index-sections.
3963 * symfile.h (use_deprecated_index_sections): Delete.
3964 * dwarf2read.c (use_deprecated_index_sections): Make static.
3965 (read_index_from_section): Update wording of how to load
3966 deprecated index sections.
3967 (_initialize_dwarf2_read): New options
3968 "set/show use-deprecated-index-sections".
3969 * main.c (captured_main): Delete --use-deprecated-index-sections.
3970
3971 2012-07-20 Pedro Alves <palves@redhat.com>
3972
3973 PR threads/11692
3974 PR gdb/12203
3975
3976 * infrun.c (handle_inferior_event) <new thread>: Don't special
3977 case minus_one_ptid.
3978 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3979 * linux-thread-db.c (thread_get_info_callback): Don't return early
3980 if the thread is zombie.
3981 (thread_from_lwp): Change return type to void. Rewrite stale
3982 comment.
3983 (attach_thread): Don't return early if the thread is zombie,
3984 instead set its "dying" flag.
3985 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3986 (find_new_threads_callback): Don't return early if the thread is
3987 zombie.
3988
3989 2012-07-20 Pedro Alves <palves@redhat.com>
3990
3991 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3992 * target.c (target_wait): Likewise.
3993 (str_comma_list_concat_elem, do_option, target_options_to_string):
3994 New functions.
3995 * target.h (target_options_to_string): Declare.
3996
3997 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3998 Tom Tromey <tromey@redhat.com>
3999
4000 * dwarf2read.c (dwarf_decode_macros)
4001 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4002 DW_MACRO_GNU_transparent_include_alt>: New cases.
4003 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4004 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4005
4006 2012-07-20 Tom Tromey <tromey@redhat.com>
4007
4008 * dwarf2read.c (try_open_dwo_file): Don't call
4009 gdb_bfd_stash_filename.
4010
4011 2012-07-20 Pedro Alves <palves@redhat.com>
4012
4013 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4014 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4015 (i386_process_record): Tweak description comments.
4016
4017 2012-07-20 Pedro Alves <palves@redhat.com>
4018
4019 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4020 (i386_process_record): Use record_read_memory.
4021 * record.c (record_read_memory): New function.
4022 (record_arch_list_add_mem, record_exec_insn): Use
4023 record_read_memory.
4024 * record.h (record_read_memory): Declare.
4025
4026 2012-07-20 Yao Qi <yao@codesourcery.com>
4027
4028 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4029 NULL for xfree.
4030
4031 2012-07-19 Pedro Alves <palves@redhat.com>
4032
4033 * record.c (record_resume): Ask the target beneath to report all
4034 signals.
4035
4036 2012-07-19 Doug Evans <dje@google.com>
4037
4038 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4039 there's no section at address zero.
4040 (dwarf2_record_block_ranges): Ditto.
4041
4042 2012-07-19 Yao Qi <yao@codesourcery.com>
4043
4044 * command.h, remote.c: Fix a typo in comment.
4045
4046 2012-07-19 Tom Tromey <tromey@redhat.com>
4047
4048 PR exp/13206:
4049 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4050 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4051 OP_DECLTYPE>: New cases.
4052 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4053 (type_exp): Add new productions.
4054 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4055 and decltype.
4056 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4057 New case.
4058 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4059 OP_DECLTYPE>: New case.
4060 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4061 New case.
4062 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4063 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4064
4065 2012-07-19 Tom Tromey <tromey@redhat.com>
4066
4067 * c-exp.y (enum token_flags): New.
4068 (struct token) <cxx_only>: Remove.
4069 <flags>: New field.
4070 (tokentab3, tokentab2, ident_tokens): Update.
4071 (lex_one_token): Update. Handle FLAG_SHADOW.
4072
4073 2012-07-19 Tom Tromey <tromey@redhat.com>
4074
4075 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4076 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4077 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4078 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4079 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4080 type_exp production where appropriate.
4081 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4082 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4083 <UNOP_MEMVAL_TYPE>: New case.
4084 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4085 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4086 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4087 <UNOP_MEMVAL_TYPE>: New case.
4088 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4089 UNOP_REINTERPRET_CAST>: Update.
4090 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4091 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4092 UNOP_REINTERPRET_CAST>: Update.
4093 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4094 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4095 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4096 constants.
4097
4098 2012-07-19 Yao Qi <yao@codesourcery.com>
4099 Jan Kratochvil <jan.kratochvil@redhat.com>
4100
4101 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4102 and case 'var_optional_filename' together.
4103 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4104 instead of add_setshow_optional_filename_cmd for setshow command
4105 'args'. Set completer for 'set args'.
4106
4107 2012-07-18 Doug Evans <dje@google.com>
4108
4109 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4110 * common/gdb_vecs.c: New file, contents from utils.c.
4111 * common/host-defs.h: New file, contents from defs.h.
4112 * utils.h: New file, contents from defs.h.
4113 * defs.h: Move all declarations of objects defined in utils.c
4114 to utils.h (except QUIT() and related).
4115 #include "utils.h", "host-defs.h".
4116 * probe.h (probe_p): Move here from gdb_vecs.h.
4117 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4118 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4119 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4120 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4121 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4122 (COMMON_OBS): Add gdb_vecs.o.
4123 (gdb_vecs.o): New rule.
4124
4125 2012-07-18 Keith Seitz <keiths@redhat.com>
4126
4127 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4128 parameter. If non-zero, use SYMNAME as the canonical name
4129 for the SaL.
4130 Update all callers.
4131 (convert_linespec_to_sals): Use add_sal_to_sals for
4132 expressions, too.
4133 (decode_line_full): No need to "fill in missing canonical names"
4134 anymore. Simply make cleanups for the allocated names.
4135
4136 2012-07-18 Keith Seitz <keiths@redhat.com>
4137
4138 * linespec.c (struct linespec): Constify expression,
4139 source_filename, function_name, and label_name.
4140 (symbol_not_found_error): Make all parameters const.
4141 (linespec_parser_delete): No need to check for NULL
4142 when using xfree. Cast const char * to char * for xfree.
4143
4144 2012-07-18 Keith Seitz <keiths@redhat.com>
4145
4146 * breakpoint.c (invalid_thread_id_error): New function.
4147 (find_condition_and_thread): Use invalid_thread_id_error.
4148 (watch_command_1): Likewise.
4149
4150 2012-07-18 Tom Tromey <tromey@redhat.com>
4151
4152 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4153 * contrib/cc-with-tweaks.sh: New file.
4154
4155 2012-07-18 Tom Tromey <tromey@redhat.com>
4156
4157 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4158 (locate_dwz_sections): Recognize .gdb_index.
4159 (create_cus_from_index_list): New function.
4160 (create_cus_from_index): Use it. Handle .dwz data.
4161 (read_index_from_section): New function, extracted from
4162 dwarf2_read_index.
4163 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4164 if needed.
4165
4166 2012-07-18 Tom Tromey <tromey@redhat.com>
4167
4168 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4169 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4170 <is_dwz>: New field.
4171 (struct dwz_file): New.
4172 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4173 (locate_dwz_sections, dwarf2_get_dwz_file)
4174 (get_abbrev_section_for_cu): New functions.
4175 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4176 (read_and_check_type_unit_head): Add abbrev_section argument.
4177 (create_debug_types_hash_table): Update.
4178 (init_cutu_and_read_dies): Use proper abbrev section.
4179 (init_cutu_and_read_dies_no_follow): Likewise.
4180 (set_partial_user): Do nothing if PST==NULL.
4181 (read_comp_units_from_section): New function.
4182 (create_all_comp_units): Use it.
4183 (scan_partial_symbols, partial_die_parent_scope): Update.
4184 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4185 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4186 (find_partial_die): Add offset_in_dwz argument. Update.
4187 (guess_partial_die_structure_name, fixup_partial_die): Update.
4188 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4189 DW_FORM_GNU_strp_alt.
4190 (read_indirect_string_from_dwz): New function.
4191 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4192 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4193 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4194 (follow_die_offset): Add offset_in_dwz argument.
4195 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4196 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4197 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4198 Handle new macro forms.
4199 (dwarf_decode_macros): Update.
4200 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4201 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4202 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4203 (create_debug_types_hash_table): Use correct abbrev section.
4204 (get_debug_line_section): New function.
4205 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4206 (process_full_comp_unit): Pass 'required' argument to
4207 end_symtab_get_static_block.
4208 * buildsym.h (end_symtab_get_static_block): Update.
4209 * buildsym.c (end_symtab_get_static_block): Add 'required'
4210 argument.
4211 (end_symtab, end_expandable_symtab): Update.
4212
4213 2012-07-18 Tom Tromey <tromey@redhat.com>
4214
4215 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4216 (pagesize): Remove.
4217 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4218 (zlib_decompress_section): Remove.
4219 (dwarf2_read_section): Use gdb_bfd_map_section.
4220 (munmap_section_buffer): Remove.
4221 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4222 munmap_section_buffer.
4223 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4224 (struct gdb_bfd_section_data): New.
4225 (free_one_bfd_section): New function.
4226 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4227 (get_section_descriptor, zlib_decompress_section)
4228 (gdb_bfd_map_section): New functions.
4229 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4230
4231 2012-07-18 Tom Tromey <tromey@redhat.com>
4232
4233 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4234
4235 2012-07-18 Tom Tromey <tromey@redhat.com>
4236
4237 * gdb_bfd.c (struct gdb_bfd_data): New.
4238 (gdb_bfd_cache): New global.
4239 (struct gdb_bfd_cache_search): New.
4240 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4241 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4242 * gdb_bfd.h (gdb_bfd_open): Declare.
4243
4244 2012-07-18 Tom Tromey <tromey@redhat.com>
4245
4246 * utils.c (make_cleanup_bfd_unref): Rename from
4247 make_cleanup_bfd_close.
4248 * defs.h (make_cleanup_bfd_unref): Rename from
4249 make_cleanup_bfd_close.
4250 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4251 (bfd_openw_with_cleanup): Update.
4252 * corelow.c (core_open): Update.
4253 * dsrec.c (load_srec): Update.
4254 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4255 * remote-m32r-sdi.c (m32r_load): Update.
4256 * remote-mips.c (mips_load_srec): Update.
4257 (pmon_load_fast): Update.
4258 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4259 Update.
4260 (darwin_bfd_open): Update.
4261 * solib.c (solib_bfd_fopen): Update.
4262 * symfile-mem.c (symbol_file_add_from_memory): Update.
4263 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4264 (symfile_bfd_open): Update.
4265 (generic_load): Update.
4266
4267 2012-07-18 Tom Tromey <tromey@redhat.com>
4268
4269 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4270 (pmon_load_fast): Likewise.
4271 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4272 (m32r_upload_command): Likewise.
4273 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4274 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4275 Use make_cleanup_bfd_close.
4276
4277 2012-07-18 Tom Tromey <tromey@redhat.com>
4278
4279 * symfile.c (symfile_bfd_open): Don't copy name. Call
4280 gdb_bfd_stash_filename.
4281 (load_command): Open the new BFD before freeing the old.
4282 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4283 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4284 Call gdb_bfd_stash_filename.
4285 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4286 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4287 gdb_bfd_stash_filename.
4288 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4289 Free found_pathname.
4290 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4291 gdb_bfd_stash_filename.
4292 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4293 * machoread.c (macho_add_oso_symfile): Call
4294 gdb_bfd_stash_filename.
4295 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4296 gdb_bfd_stash_filename.
4297 (macho_check_dsym): Don't copy filename. Call
4298 gdb_bfd_stash_filename.
4299 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4300 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4301 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4302 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4303 * exec.c (exec_close): Don't free the BFD's filename.
4304 (exec_file_attach): Don't copy the filename. Call
4305 gdb_bfd_stash_filename.
4306 * corelow.c (core_close): Don't free the BFD's filename.
4307 (core_open): Call gdb_bfd_stash_filename.
4308 * corefile.c (reopen_exec_file): Remove #if 0 code.
4309 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4310 pathname.
4311 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4312
4313 2012-07-18 Tom Tromey <tromey@redhat.com>
4314
4315 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4316 gdb_bfd_unref.
4317 (free_dwo_file): Use gdb_bfd_unref.
4318 * cli/cli-dump.c: Include gdb_bfd.h.
4319 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4320 (bfd_openr_with_cleanup): Likewise.
4321 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4322 gdb_bfd_unref.
4323 * utils.c: Include gdb_bfd.h.
4324 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4325 * symfile.c: Include gdb_bfd.h.
4326 (separate_debug_file_exists): Use gdb_bfd_unref.
4327 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4328 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4329 (generic_load): Use gdb_bfd_ref.
4330 (reread_symbols): Use gdb_bfd_unref.
4331 * symfile-mem.c: Include gdb_bfd.h.
4332 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4333 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4334 * solib.c: Include gdb_bfd.h.
4335 (solib_bfd_fopen): Use gdb_bfd_ref.
4336 (solib_bfd_open): Use gdb_bfd_unref.
4337 (free_so_symbols): Use gdb_bfd_unref.
4338 (reload_shared_libraries_1): Use gdb_bfd_unref.
4339 * solib-spu.c: Include gdb_bfd.h.
4340 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4341 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4342 gdb_bfd_unref.
4343 * solib-frv.c: Include gdb_bfd.h.
4344 (enable_break2): Use gdb_bfd_unref.
4345 * solib-dsbt.c: Include gdb_bfd.h.
4346 (enable_break2): Use gdb_bfd_unref.
4347 * solib-darwin.c: Include gdb_bfd.h.
4348 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4349 gdb_bfd_unref.
4350 (darwin_bfd_open): Use gdb_bfd_unref.
4351 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4352 * remote-mips.c: Include gdb_bfd.h.
4353 (mips_load_srec): Use gdb_bfd_ref.
4354 (pmon_load_fast): Use gdb_bfd_ref.
4355 * remote-m32r-sdi.c: Include gdb_bfd.h.
4356 (m32r_load): Use gdb_bfd_ref.
4357 * record.c: Include gdb_bfd.h.
4358 (record_save_cleanups): Use gdb_bfd_unref.
4359 (cmd_record_save): Use gdb_bfd_unref.
4360 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4361 gdb_bfd_unref.
4362 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4363 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4364 * objfiles.c: Include gdb_bfd.h.
4365 (free_objfile): Use gdb_bfd_unref.
4366 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4367 gdb_bfd.c.
4368 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4369 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4370 (macho_check_dsym): Likewise.
4371 * m32r-rom.c: Include gdb_bfd.h.
4372 (m32r_load): Use gdb_bfd_ref.
4373 (m32r_upload_command): Use gdb_bfd_ref.
4374 * jit.c: Include gdb_bfd.h.
4375 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4376 * gdb_bfd.h: New file.
4377 * gdb_bfd.c: New file.
4378 * gcore.c: Include gdb_bfd.h.
4379 (create_gcore_bfd): Use gdb_bfd_ref.
4380 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4381 (gcore_command): Use gdb_bfd_unref.
4382 * exec.c: Include gdb_bfd.h.
4383 (exec_close): Use gdb_bfd_unref.
4384 (exec_close_1): Use gdb_bfd_unref.
4385 (exec_file_attach): Use gdb_bfd_ref.
4386 * elfread.c: Include gdb_bfd.h.
4387 (build_id_verify): Use gdb_bfd_unref.
4388 * dsrec.c: Include gdb_bfd.h.
4389 (load_srec): Use gdb_bfd_ref.
4390 * corelow.c: Include gdb_bfd.h.
4391 (core_close): Use gdb_bfd_unref.
4392 (core_open): Use gdb_bfd_ref.
4393 * bfd-target.c: Include gdb_bfd.h.
4394 (target_bfd_xclose): Use gdb_bfd_unref.
4395 (target_bfd_reopen): Use gdb_bfd_ref.
4396 * Makefile.in (SFILES): Add gdb_bfd.c.
4397 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4398 (COMMON_OBS): Add gdb_bfd.o.
4399
4400 2012-07-18 Keith Seitz <keiths@redhat.com>
4401
4402 * breakpoint.c (find_condition_and_thread): Initialize
4403 TASK and REST.
4404 (create_breakpiont): find_condition_and_thread will now
4405 initialize COND_STRING, THREAD, and REST (and TASK).
4406 (addr_string_to_sals): Likewise.
4407
4408 2012-07-18 Pedro Alves <palves@redhat.com>
4409
4410 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4411 Pull the single step breakpoints out of the target.
4412
4413 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4414
4415 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4416 * stap-probe.c (compile_probe_arg): Likewise.
4417
4418 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4419
4420 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4421 (elf_compile_to_ax): Likewise.
4422 * infrun.c (insert_exception_resume_from_probe): Likewise.
4423 (check_exception_resume): Remove `objfile' variable.
4424 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4425 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4426 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4427 (compare_entries): Rename to...
4428 (compare_probes): ...this. Adjust function to work with
4429 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4430 respectively.
4431 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4432 `VEC (probe_p) *'.
4433 (print_ui_out_info): Adjust argument to be `struct probe *'.
4434 (info_probes_for_ops): Adjust internal computations to use
4435 `VEC (probe_p) *'.
4436 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4437 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4438 gen_info_probes_table_values>: Remove `objfile' argument.
4439 (struct probe) <objfile>: New field.
4440 (find_probe_by_pc): Remove `objfile' argument.
4441 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4442 (stap_get_probe_argument_count): Likewise.
4443 (stap_get_arg): Likewise.
4444 (stap_evaluate_probe_argument): Likewise.
4445 (stap_compile_to_ax): Likewise.
4446 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4447 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4448 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4449 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4450 sym_compile_to_ax>: Likewise.
4451
4452 2012-07-18 Terry Guo <terry.guo@arm.com>
4453
4454 PR 14329
4455 * defs.h (GDB_MI_MSG_WIDTH): New.
4456 * ser_base (ser_base_read_error_fd): New function.
4457 (do_ser_base_readchar): Poll error file descriptor as well as
4458 standard output.
4459 (generic_readchar): Refactor error handling.
4460
4461 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4462
4463 * NEWS: Create a new section for the next release branch.
4464 Rename the section of the current branch, now that it has
4465 been cut.
4466
4467 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4468
4469 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4470 * version.in: Bump version to 7.5.50.20120718-cvs.
4471
4472 2012-07-17 Keith Seitz <keiths@redhat.com>
4473
4474 * linespec.c (linespec_parse_line_offset): Make parameter
4475 const.
4476
4477 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4478
4479 PR 11914
4480 * f-valprint.c (info_common_command): New variable frame_id.
4481 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4482 * printcmd.c (print_variable_and_value): Extend function comment.
4483 Add comment for invalidated FRAME.
4484 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4485 FI form FRAME_ID after each print_frame_local_vars.
4486 (struct print_variable_and_value_data): Change frame to frame_id.
4487 (do_print_variable_and_value): New variable frame, initialize it from
4488 p->frame_id. Add comment for invalidated FRAME.
4489 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4490 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4491 for invalidated FRAME.
4492
4493 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4494 Pedro Alves <palves@redhat.com>
4495
4496 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4497 loop.
4498
4499 2012-07-16 Tom Tromey <tromey@redhat.com>
4500
4501 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4502
4503 2012-07-15 Doug Evans <dje@google.com>
4504
4505 * dwarf2read.c (stmt_list_hash): New struct.
4506 (type_unit_group): Embed "per_cu" member, remove pointer.
4507 New union member "t", move member "tus" into it, all uses updated.
4508 New member "hash", replaces member "line_offset, all uses updated.
4509 (quick_file_names): Replace member "offset" with "hash", all uses
4510 updated.
4511 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4512 (hash_file_name_entry, eq_file_name_entry): Call them.
4513 (hash_type_unit_group, eq_type_unit_group): Ditto.
4514 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4515 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4516 (dw2_get_file_names): Update.
4517 (create_type_unit_group): Replace "per_cu" arg with "cu".
4518 All callers updated. Fix "quick" (.gdb_index) handling.
4519 (get_type_unit_group): Replace "per_cu" arg with "cu".
4520 All callers updated.
4521 (build_type_unit_groups): Don't reset tu_stats.
4522
4523 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4524 "tab_cur_size". Change member "tab" to be a htab_t.
4525 (create_filename_seen_cache): Update.
4526 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4527 (filename_seen): Update.
4528
4529 2012-07-13 Doug Evans <dje@google.com>
4530
4531 * symtab.c (filename_seen): Update comment.
4532
4533 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4534 Doug Evans <dje@google.com>
4535
4536 * buildsym.c (end_symtab_1): Split it to ...
4537 (end_symtab_get_static_block): ... this ...
4538 (end_symtab_from_static_block): ... and this function.
4539 (end_symtab, end_expandable_symtab): Call them.
4540 * buildsym.h (end_symtab_get_static_block)
4541 (end_symtab_from_static_block): New declarations.
4542 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4543 Set its valid CU ranges.
4544
4545 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4546
4547 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4548 DW_OP_GNU_parameter_ref.
4549
4550 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4551
4552 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4553 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4554
4555 2012-07-13 Doug Evans <dje@google.com>
4556
4557 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4558 (filename_seen_cache): New struct.
4559 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4560 (create_filename_seen_cache): New function.
4561 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4562 (filename_seen): Delete arg "first". New arg "cache". All callers
4563 updated.
4564 (output_source_filename_data): New struct.
4565 (output_source_filename): Delete arg "first". New arg "data".
4566 All callers updated.
4567 (sources_info): Delete local "first". New locals "data", "cleanups".
4568 Rewrite to use filename_seen_cache.
4569 (add_partial_filename_data): Delete member "first". New member
4570 "filename_seen_cache". All uses updated.
4571 (make_source_files_completion_list): Rewrite to use
4572 filename_seen_cache.
4573
4574 2012-07-12 Doug Evans <dje@google.com>
4575
4576 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4577
4578 2012-07-10 Doug Evans <dje@google.com>
4579
4580 PR gdb/13498
4581 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4582 all_type_unit_groups, type_unit_groups, tu_stats.
4583 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4584 All uses updated. Add type_unit_group to union "s".
4585 (type_unit_group): New struct.
4586 (IS_TYPE_UNIT_GROUP): New macro.
4587 (abbrev_table): Delete unused member "section".
4588 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4589 (dw2_get_cu): Assert not used with type_unit_group.
4590 (dw2_get_primary_cu): New function.
4591 (dw2_build_type_unit_groups_reader): New function.
4592 (dw2_build_type_unit_groups): New function.
4593 (dw2_get_file_names): Assert not called on type units.
4594 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4595 Redo loop to iterate over type unit groups instead of type units.
4596 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4597 (read_abbrev_offset): New function.
4598 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4599 updated.
4600 (create_partial_symtab): New function.
4601 (process_psymtab_comp_unit_reader): Assert not used with type units.
4602 Call create_partial_symtab.
4603 (process_psymtab_type_unit): Delete.
4604 (hash_type_unit_group, eq_type_unit_group): New functions.
4605 (allocate_type_unit_groups_table): New function.
4606 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4607 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4608 (create_type_unit_group, get_type_unit_group): New functions.
4609 (tu_abbrev_offset): New struct.
4610 (sort_tu_by_abbrev_offset): New function.
4611 (add_type_unit_group_to_table): New function.
4612 (build_type_unit_groups): New function.
4613 (build_type_psymtabs_reader): New function.
4614 (build_type_psymtab_dependencies): New function.
4615 (build_type_psymtabs): Rewrite.
4616 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4617 is seen in a type unit.
4618 (process_queue): Move symtab expansion debugging printfs here.
4619 Call process_full_type_unit for type units.
4620 (compute_symtab_includes): Assert not called for type units.
4621 (process_cu_includes): Don't call compute_symtab_includes for
4622 type units.
4623 (process_full_type_unit): New function.
4624 (process_imported_unit_die): Flag an error if called for type units.
4625 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4626 updated. Assert not called for type units.
4627 (read_file_scope): Call dwarf2_start_symtab.
4628 (setup_type_unit_groups): New function.
4629 (read_type_unit_scope): Rewrite.
4630 (abbrev_table_read_table): Initialize abbrev_table->offset.
4631 (abbrev_table_free_cleanup): New function.
4632 (dwarf2_start_symtab): New function.
4633 (load_full_type_unit): Assert not called for type unit groups.
4634 * buildsym.c (finish_block_internal): New arg "expandable".
4635 All callers updated.
4636 (start_symtab): Move most contents to ...
4637 (restart_symtab): ... here. New function.
4638 (reset_symtab_globals): New function.
4639 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4640 Call reset_symtab_globals.
4641 (end_symtab, end_expandable_symtab): New functions.
4642 (set_missing_symtab, augment_type_symtab): New functions.
4643 * buildsym.h (end_expandable_symtab): Declare.
4644 (augment_type_symtab, restart_symtab): Declare.
4645 * psympriv.h (struct partial_symtab): New member "anonymous".
4646 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4647 anonymous psymtabs.
4648 (read_psymtabs_with_filename): Ditto.
4649 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4650 (expand_symtabs_matching_via_partial): Ditto.
4651 (dump_psymtab): Update.
4652 * dictionary.c (dict_add_pending): New function.
4653 * dictionary.h (dict_add_pending): Declare.
4654
4655 2012-07-09 Doug Evans <dje@google.com>
4656
4657 * buildsym.c (start_subfile): Remove unnecessary check for
4658 name == NULL.
4659
4660 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4661
4662 * dwarf2read.c (load_full_type_unit): Simplify.
4663
4664 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4665 to struct signatured_type **. All uses updated.
4666
4667 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4668 All callers updated.
4669
4670 2012-07-09 Tom Tromey <tromey@redhat.com>
4671
4672 * c-exp.y (check_parameter_typelist): New function.
4673 (parameter_typelist): Call it.
4674 * eval.c (make_params): Handle '(void)' case.
4675 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4676 '(void)' case.
4677
4678 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4679
4680 * common/linux-ptrace.c: Include gdb_assert.h.
4681 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4682 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4683 stdint.h.
4684 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4685 functions.
4686 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4687 * linux-nat.c (linux_child_post_attach)
4688 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4689
4690 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4691
4692 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4693 nptl <2.7 bug workaround for core files.
4694
4695 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4696
4697 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4698 clearing.
4699 (save_siginfo): Remove.
4700 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4701 call.
4702 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4703 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4704 * linux-nat.h (struct lwp_info): Remove field siginfo.
4705
4706 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4707
4708 Code cleanup for the next patch.
4709 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4710 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4711 call for it.
4712 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4713 (ia64_linux_stopped_data_address):
4714 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4715 the return value.
4716 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4717 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4718 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4719 call for it.
4720
4721 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4722
4723 PR 14321
4724 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4725 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4726
4727 2012-07-06 Tom Tromey <tromey@redhat.com>
4728
4729 * c-exp.y (DOTDOTDOT): New token.
4730 (func_mod, exp): Use parameter_typelist.
4731 (parameter_typelist): New production.
4732 (tokentab3): Add "..." token.
4733 * eval.c (make_params): Handle varargs.
4734 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4735 varargs.
4736
4737 2012-07-06 Tom Tromey <tromey@redhat.com>
4738
4739 PR exp/9608:
4740 * c-exp.y (%union) <tvec>: Change type.
4741 (func_mod): Now uses <tvec> type.
4742 (exp): Update for tvec change.
4743 (direct_abs_decl): Push the typelist.
4744 (func_mod): Return a typelist.
4745 (nonempty_typelist): Update for tvec change.
4746 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4747 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4748 * parse.c (pop_type_list): New function.
4749 (push_typelist): New function.
4750 (follow_types): Handle tp_function_with_arguments.
4751 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4752 (enum type_pieces) <tp_function_with_arguments>: New constant.
4753 (union type_stack_elt) <typelist_val>: New field.
4754 (push_typelist): Declare.
4755
4756 2012-07-06 Tom Tromey <tromey@redhat.com>
4757
4758 * c-exp.y (%union) <type_stack>: New field.
4759 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4760 (ptr_operator_ts): New production.
4761 (ptype): Update.
4762 * parse.c (type_stack_reserve): New function.
4763 (check_type_stack_depth): Use it.
4764 (pop_type_stack, append_type_stack, push_type_stack)
4765 (get_type_stack, type_stack_cleanup): New functions.
4766 (follow_types): Handle tp_type_stack.
4767 (_initialize_parse): Simplify initialization.
4768 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4769 constant.
4770 (union type_stack_elt) <stack_val>: New field.
4771 (get_type_stack, append_type_stack, push_type_stack)
4772 (type_stack_cleanup): Declare.
4773
4774 2012-07-06 Tom Tromey <tromey@redhat.com>
4775
4776 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4777 Remove.
4778 (struct type_stack): New.
4779 * parse.c (type_stack, type_stack_size, type_stack_depth):
4780 Remove.
4781 (type_stack): New global.
4782 (parse_exp_in_context, check_type_stack_depth)
4783 (insert_into_type_stack, insert_type, push_type, push_type_int)
4784 (insert_type_address_space, pop_type, pop_type_int)
4785 (_initialize_parse): Update.
4786
4787 2012-07-06 Tom Tromey <tromey@redhat.com>
4788
4789 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4790 Remove %type.
4791
4792 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4793
4794 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4795
4796 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4797 Jan Kratochvil <jan.kratochvil@redhat.com>
4798
4799 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4800 alloca with xmalloc/xfree.
4801
4802 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4803
4804 * MAINTAINERS (Write After Approval): Add myself to the list.
4805
4806 2012-07-05 Doug Evans <dje@google.com>
4807
4808 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4809
4810 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4811
4812 * ax-gdb.c (cli/cli-utils.h): New include.
4813 (linespec.h): Ditto.
4814 (agent_eval_command_one): New function.
4815 (agent_command_1): Ditto.
4816 (agent_command): Call function agent_command_1.
4817 (agent_eval_command): Ditto.
4818 (_initialize_ax_gdb): Change help for "maint agent"
4819 and "maint agent-eval".
4820
4821 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4822
4823 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4824 * cli/cli-utils.c (check_for_argument): New function.
4825 * cli/cli-utils.h (check_for_argument): Ditto.
4826
4827 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4828
4829 * NEWS: Mention x32 ABI support.
4830
4831 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4832
4833 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4834 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4835
4836 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4837 and pc_regnum_from_eax to -1. Update SP regnum from
4838 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4839 needed.
4840
4841 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4842 pc_regnum_from_eax.
4843
4844 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4845
4846 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4847 * dwarf2expr.h: Include gdbtypes.h.
4848 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4849 these forward declarations.
4850 (cu_offset, sect_offset): Move these ...
4851 * gdbtypes.h: Remove include dwarf2expr.h.
4852 (cu_offset, sect_offset): ... here.
4853
4854 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4855
4856 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4857 (amd64_linux_sigtramp_code): This.
4858 (amd64_x32_linux_sigtramp_code): New.
4859 (LINUX_SIGTRAMP_LEN): Updated.
4860 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4861
4862 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4863
4864 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4865
4866 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4867
4868 * config.in: Regenerate.
4869 * configure: Regenerate.
4870 * configure.ac: Remove check for gnu/libc-version.h.
4871 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4872 gnu/libc-version.h.
4873 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4874 variables libc_version, libc_major and libc_minor. Replace sscanf by
4875 inferior_has_bug. Extend the comment.
4876
4877 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4878
4879 * linux-thread-db.c (inferior_has_bug): New function.
4880 (thread_db_find_new_threads_silently): Return boolean as checked by
4881 inferior_has_bug, describe it in the comments.
4882 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4883 earlier. Abort the initialization if it returned non-zero.
4884 (thread_db_new_objfile): Exclude debug files.
4885 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4886 if UNTIL_NO_NEW,
4887
4888 2012-07-02 Doug Evans <dje@google.com>
4889
4890 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4891 related to queue management.
4892
4893 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4894 instead of "debug dwarf2-die" in debugging printfs.
4895 (create_debug_info_hash_table_reader): Ditto.
4896 (create_debug_info_hash_table): Ditto.
4897 (init_dwo_file): Ditto.
4898 (init_cutu_and_read_dies): Add debugging printf.
4899 (init_cutu_and_read_dies_no_follow): Ditto.
4900 (process_psymtab_comp_unit_reader): Ditto.
4901
4902 2012-07-02 Stan Shebs <stan@codesourcery.com>
4903
4904 Add target-side support for dynamic printf.
4905 * NEWS: Mention the additional style.
4906 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4907 (struct bp_location): New field cmd_bytecode.
4908 * breakpoint.c: Include format.h.
4909 (disconnected_dprintf): New global.
4910 (parse_cmd_to_aexpr): New function.
4911 (build_target_command_list): New function.
4912 (insert_bp_location): Call it.
4913 (remove_breakpoints_pid): Skip dprintf breakpoints.
4914 (print_one_breakpoint_location): Ditto.
4915 (dprintf_style_agent): New global.
4916 (dprintf_style_enums): Add dprintf_style_agent.
4917 (update_dprintf_command_list): Add agent case.
4918 (agent_printf_command): New function.
4919 (_initialize_breakpoint): Add new commands.
4920 * common/ax.def (printf): New bytecode.
4921 * ax.h (ax_string): Declare.
4922 * ax-gdb.h (gen_printf): Declare.
4923 * ax-gdb.c: Include cli-utils.h, format.h.
4924 (gen_printf): New function.
4925 (maint_agent_print_command): New function.
4926 (_initialize_ax_gdb): Add maint agent-printf command.
4927 * ax-general.c (ax_string): New function.
4928 (ax_print): Add printf disassembly.
4929 * Makefile.in (SFILES): Add format.c
4930 (COMMON_OBS): Add format.o.
4931 * common/format.h: New file.
4932 * common/format.c: New file.
4933 * printcmd.c: Include format.h.
4934 (ui_printf): Call parse_format_string.
4935 * remote.c (remote_state): New field breakpoint_commands.
4936 (PACKET_BreakpointCommands): New enum.
4937 (remote_breakpoint_commands_feature): New function.
4938 (remote_protocol_features): Add new BreakpointCommands entry.
4939 (remote_can_run_breakpoint_commands): New function.
4940 (remote_add_target_side_commands): New function.
4941 (remote_insert_breakpoint): Call it.
4942 (remote_insert_hw_breakpoint): Ditto.
4943 (_initialize_remote): Add new packet configuration for
4944 target-side breakpoint commands.
4945 * target.h (struct target_ops): New field
4946 to_can_run_breakpoint_commands.
4947 (target_can_run_breakpoint_commands): New macro.
4948 * target.c (update_current_target): Handle
4949 to_can_run_breakpoint_commands.
4950
4951 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4952
4953 Execute -ix and -iex only after system and user gdbinit files.
4954 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4955 processing down after gdbinit files.
4956
4957 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4958
4959 Add fnmatch-gnu module.
4960 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4961 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4962 * gnulib/aclocal.m4: Regenerate.
4963 * gnulib/config.in: Regenerate.
4964 * gnulib/configure: Regenerate.
4965 * gnulib/import/dummy.c: Remove.
4966 * gnulib/import/Makefile.am: Regenerate.
4967 * gnulib/import/Makefile.in: Likewise.
4968 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4969 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4970 * gnulib/import/alloca.c: New file.
4971 * gnulib/import/alloca.in.h: Likewise.
4972 * gnulib/import/config.charset: Likewise.
4973 * gnulib/import/fnmatch.c: Likewise.
4974 * gnulib/import/fnmatch.in.h: Likewise.
4975 * gnulib/import/fnmatch_loop.c: Likewise.
4976 * gnulib/import/localcharset.c: Likewise.
4977 * gnulib/import/localcharset.h: Likewise.
4978 * gnulib/import/m4/alloca.m4: Likewise.
4979 * gnulib/import/m4/codeset.m4: Likewise.
4980 * gnulib/import/m4/configmake.m4: Likewise.
4981 * gnulib/import/m4/fcntl-o.m4: Likewise.
4982 * gnulib/import/m4/fnmatch.m4: Likewise.
4983 * gnulib/import/m4/glibc21.m4: Likewise.
4984 * gnulib/import/m4/localcharset.m4: Likewise.
4985 * gnulib/import/m4/locale-fr.m4: Likewise.
4986 * gnulib/import/m4/locale-ja.m4: Likewise.
4987 * gnulib/import/m4/locale-zh.m4: Likewise.
4988 * gnulib/import/m4/mbrtowc.m4: Likewise.
4989 * gnulib/import/m4/mbsinit.m4: Likewise.
4990 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4991 * gnulib/import/m4/mbstate_t.m4: Likewise.
4992 * gnulib/import/m4/stdbool.m4: Likewise.
4993 * gnulib/import/m4/wchar_h.m4: Likewise.
4994 * gnulib/import/m4/wctype_h.m4: Likewise.
4995 * gnulib/import/m4/wint_t.m4: Likewise.
4996 * gnulib/import/mbrtowc.c: Likewise.
4997 * gnulib/import/mbsinit.c: Likewise.
4998 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4999 * gnulib/import/mbsrtowcs-state.c: Likewise.
5000 * gnulib/import/mbsrtowcs.c: Likewise.
5001 * gnulib/import/ref-add.sin: Likewise.
5002 * gnulib/import/ref-del.sin: Likewise.
5003 * gnulib/import/stdbool.in.h: Likewise.
5004 * gnulib/import/streq.h: Likewise.
5005 * gnulib/import/strnlen1.c: Likewise.
5006 * gnulib/import/strnlen1.h: Likewise.
5007 * gnulib/import/verify.h: Likewise.
5008 * gnulib/import/wchar.in.h: Likewise.
5009 * gnulib/import/wctype.in.h: Likewise.
5010
5011 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5012
5013 Support shell wildcards for 'set auto-load safe-path'.
5014 * auto-load.c: Include fnmatch.h.
5015 (filename_is_in_dir): Rename to ...
5016 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5017 it. Update function comment. Rename dir_len to pattern_len. New
5018 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5019 messages. Use gdb_filename_fnmatch.
5020 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5021 pattern.
5022 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5023 * defs.h (gdb_filename_fnmatch): New declaration.
5024 * utils.c: Include fnmatch.h.
5025 (gdb_filename_fnmatch): New function.
5026
5027 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5028
5029 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5030 `-probe' and `-probe-stap' options.
5031
5032 2012-07-01 Yao Qi <yao@codesourcery.com>
5033
5034 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5035 always_inserted_off, and always_inserted_enums.
5036 Change always_inserted_mode's type to 'enum auto_boolean'.
5037 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5038 callers.
5039 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5040 of add_setshow_enum_cmd.
5041 * infrun.c: Remove can_use_displaced_stepping_auto,
5042 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5043 can_use_displaced_stepping_enum.
5044 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5045 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5046 callers.
5047 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5048 add_setshow_enum_cmd.
5049
5050 2012-06-30 Doug Evans <dje@google.com>
5051
5052 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5053 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5054 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5055
5056 2012-06-29 Doug Evans <dje@google.com>
5057
5058 * linespec.c: #include "stack.h".
5059 (decode_line_with_current_source): Moved here from symtab.c and
5060 renamed from decode_line_spec. All callers updated.
5061 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5062 renamed from decode_line_spec_1. All callers updated.
5063 * linespec.h (decode_line_with_current_source): Move declaration here
5064 from symtab.h and renamed from decode_line_spec.
5065 (decode_line_with_last_displayed): Move declaration here from symtab.h
5066 and renamed from decode_line_spec_1.
5067 * macrocmd.c: #include "linespec.h".
5068 * symtab.c: Remove #include "linespec.h".
5069
5070 2012-06-28 Doug Evans <dje@google.com>
5071
5072 * dwarf2read.c (get_cu_length): New function.
5073 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5074 (create_debug_types_hash_table): Ditto.
5075 (init_cutu_and_read_dies): Ditto.
5076 (init_cutu_and_read_dies_no_follow): Ditto.
5077
5078 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5079
5080 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5081 (struct abbrev_table): Define.
5082 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5083 abbrev_table.
5084 (init_cutu_and_read_dies): Update.
5085 (abbrev_table_alloc_abbrev): New function. Replaces
5086 dwarf_alloc_abbrev. All callers updated.
5087 (abbrev_table_add_abbrev): New function.
5088 (abbrev_table_lookup_abbrev): New function. Replaces
5089 dwarf2_lookup_abbrev. All callers updated.
5090 (abbrev_table_read_table): New function. Contents moved here from
5091 dwarf2_read_abbrevs.
5092 (dwarf2_read_abbrevs): Call it.
5093 (abbrev_table_free): New function.
5094 (dwarf2_free_abbrev_table): Call it.
5095
5096 2012-06-28 Stan Shebs <stan@codesourcery.com>
5097
5098 * osdata.c (info_osdata_command): Filter out "Title" columns
5099 from non-MI uses.
5100 * common/linux-osdata.c (struct osdata_type): Add title field.
5101 (osdata_table): Add titles to each entry.
5102 (linux_command_xfer_osdata): Add a column for title data.
5103
5104 2012-06-28 Stan Shebs <stan@codesourcery.com>
5105
5106 Make logging work for MI.
5107 * NEWS: Mention it.
5108 * interps.h (interp_set_logging_ftype): New typedef.
5109 (struct interp_procs): New field set_logging_proc.
5110 (current_interp_set_logging): Declare.
5111 * interps.c (current_interp_set_logging): New function.
5112 * cli/cli-logging.c: Include interps.h.
5113 (set_logging_redirect): Call current_interp_set_logging.
5114 (pop_output_files): Ditto.
5115 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5116 * mi/mi-console.h (mi_console_set_raw): Declare.
5117 * mi/mi-console.c (mi_console_set_raw): New function.
5118 * mi/mi-interp.c (saved_raw_stdout): New global.
5119 (mi_set_logging): New function.
5120 (_initialize_mi_interp): Add it to interp procs.
5121
5122 2012-06-28 Doug Evans <dje@google.com>
5123
5124 * symtab.c (lookup_symbol_aux_objfile): Use
5125 ALL_OBJFILE_PRIMARY_SYMTABS.
5126
5127 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5128
5129 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5130
5131 * common/buffer.c: Include inttypes.h and stdint.h.
5132 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5133
5134 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5135 Pedro Alves <palves@redhat.com>
5136
5137 * gdbthread.h (ALL_THREADS): New macro.
5138 (thread_list): Declare.
5139 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5140 going, but instead fall through to the stepping handling.
5141 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5142 the passed in signal. Adjust debug output.
5143 (resume_callback): Rename to ...
5144 (linux_nat_resume_callback): ... this. Pass the thread's last
5145 stop signal, if in "pass" state.
5146 (linux_nat_resume): Adjust to rename.
5147 (stop_wait_callback): New assertion. Don't respawn signals;
5148 instead let the LWP remain with SIGNALLED set.
5149 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5150 * remote.c (append_pending_thread_resumptions): New.
5151 (remote_vcont_resume): Call it.
5152 * target.h (target_resume): Extend comment.
5153
5154 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5155
5156 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5157
5158 2012-06-27 Doug Evans <dje@google.com>
5159
5160 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5161 Delete have_addr_base, unused. All uses updated.
5162 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5163 (dwarf2_get_pc_bounds): Add ranges_base.
5164 (dwarf2_record_block_ranges): Ditto.
5165
5166 2012-06-27 Tom Tromey <tromey@redhat.com>
5167
5168 PR macros/7961:
5169 * varobj.c (varobj_create): Update.
5170 (varobj_set_value): Update.
5171 * tracepoint.c (validate_actionline): Update.
5172 (encode_actions_1): Update.
5173 * parse.c (parse_exp_1): Add 'pc' argument.
5174 (parse_exp_in_context): Add 'pc' argument. Change how
5175 expression_context_pc is set.
5176 (parse_expression): Update.
5177 (parse_field_expression): Update.
5178 * expression.h (parse_exp_1): Update.
5179 * eval.c (parse_to_comma_and_eval): Update.
5180 * breakpoint.c (set_breakpoint_condition): Update.
5181 (update_watchpoint): Update.
5182 (init_breakpoint_sal): Update
5183 (find_condition_and_thread): Update.
5184 (watch_command_1): Update.
5185 (update_breakpoint_locations): Update.
5186 * ada-lang.c (ada_read_renaming_var_value): Update.
5187 (create_excep_cond_exprs): Update.
5188
5189 2012-06-27 Doug Evans <dje@google.com>
5190
5191 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5192 type units.
5193
5194 2012-06-26 Doug Evans <dje@google.com>
5195
5196 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5197 prototype.
5198 (error_check_comp_unit_head): New arg abbrev_section. All callers
5199 updated.
5200 (read_and_check_comp_unit_head): Ditto.
5201 (read_and_check_type_unit_head): Ditto.
5202
5203 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5204
5205 New attribute 'last' for gdb.Symtab_and_line.
5206 * NEWS (Python Scripting): Add entry about the new attribute.
5207 * python/py-symtab.c (salpy_get_last): New function which
5208 implements the get method for the 'last' attribute of
5209 gdb.Symtab_and_line.
5210 (sal_object_getset): Add entry for the 'last' attribute.
5211
5212 2012-06-26 Doug Evans <dje@google.com>
5213
5214 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5215 (dwo_sections): Add macinfo, macro.
5216 (dwarf2_locate_dwo_sections): Watch for macro sections.
5217 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5218 All callers updated. Handle DWO files.
5219
5220 * NEWS: Mention new options "set debug dwarf2-read" and
5221 "set debug symtab-create".
5222 * dwarf2read.c (dwarf2_read_debug): New static global.
5223 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5224 (process_queue): Ditto.
5225 (process_full_comp_unit): Ditto.
5226 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5227 * elfread.c (elf_symfile_read): Add debugging printf.
5228 * minsyms.c (install_minimal_symbols): Ditto.
5229 * psymtab.c (allocate_psymtab): Ditto.
5230 * symfile.c (allocate_symtab): Ditto.
5231 * symtab.c (symtab_create_debug): New global.
5232 (_initialize_symtab): Add new option "set debug symtab-create".
5233 * symtab.h (symtab_create_debug): Declare.
5234
5235 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5236 (lookup_dwo_type_unit): Ditto.
5237
5238 2012-06-26 Roland McGrath <roland@hack.frob.com>
5239 H.J. Lu <hongjiu.lu@intel.com>
5240
5241 * amd64-linux-nat.c: Include <sys/user.h>.
5242 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5243 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5244 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5245
5246 * configure.ac: Check if the fs_base and gs_base members of
5247 `struct user_regs_struct' exist.
5248 * config.in: Regenerated.
5249 * configure: Likewise.
5250
5251 2012-06-25 Michael Eager <eager@eagercon.com>
5252
5253 PR python/14291
5254 * python/python.c (gdbpy_write): Check for interrupted output.
5255
5256 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5257
5258 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5259 register as a stack alignment in ARM mode.
5260
5261 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5262
5263 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5264 * gnulib/config.in: Regenerate.
5265 * gnulib/configure: Likewise.
5266 * gnulib/import/m4/extensions.m4: Update it.
5267 * gnulib/import/m4/gnulib-common.m4: Likewise.
5268 * gnulib/import/m4/memmem.m4: Likewise.
5269 * gnulib/import/m4/mmap-anon.m4: Likewise.
5270 * gnulib/import/m4/multiarch.m4: Likewise.
5271 * gnulib/import/stdint.in.h: Likewise.
5272
5273 2012-06-24 Yao Qi <yao@codesourcery.com>
5274
5275 * corefile.c (write_memory_with_notification): New.
5276 * gdbcore.h: Declare write_memory_with_notification.
5277 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5278 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5279 * valops.c (value_assign): Likewise.
5280 * python/py-inferior.c (infpy_write_memory): Call
5281 'write_memory_with_notification'.
5282
5283 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5284
5285 * cc-with-index.sh: Use also -ex "set auto-load no".
5286
5287 2012-06-23 Doug Evans <dje@google.com>
5288
5289 PR 14125
5290 * NEWS: Document additions to .gdb_index.
5291 * dwarf2read.c: #include "gdb/gdb-index.h".
5292 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5293 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5294 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5295 (dwarf2_read_index): Recognize version 7.
5296 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5297 block_kind, domain): All callers updated.
5298 (dw2_find_symbol_file): Handle new index CU values.
5299 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5300 (add_index_entry): New args is_static, kind. All callers updated.
5301 (offset_type_compare, uniquify_cu_indices): New functions
5302 (symbol_kind): New function.
5303 (write_psymtabs_to_index): Remove duplicate CU values.
5304 (write_psymtabs_to_index): Write .gdb_index version 7.
5305
5306 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5307
5308 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5309 * configure: Regenerate.
5310
5311 2012-06-20 Yao Qi <yao@codesourcery.com>
5312
5313 * python/py-inferior.c: Update comments of infpy_read_memory
5314 and infpy_write_memory.
5315
5316 2012-06-19 Tom Tromey <tromey@redhat.com>
5317
5318 PR exp/9514:
5319 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5320 (push_type_address_space): Remove.
5321 * parse.c (insert_into_type_stack): New function.
5322 (insert_type): Likewise.
5323 (insert_type_address_space): Rename from push_type_address_space.
5324 Insert tp_space_identifier.
5325 * c-exp.y (ptr_operator): New production.
5326 (abs_decl): Use ptr_operator.
5327 (space_identifier): Call insert_type_address_space.
5328 (ptype): Don't use const_or_volatile_or_space_identifier.
5329 (const_or_volatile_noopt): Call insert_type.
5330 (conversion_type_id, conversion_declarator): New productions.
5331 (operator): Use conversion_type_id.
5332
5333 2012-06-18 Doug Evans <dje@google.com>
5334
5335 * symtab.h (minimal_symbol): New member created_by_gdb.
5336 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5337 created by gdb.
5338 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5339 (search_symbols): Call it instead of lookup_symbol.
5340 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5341
5342 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5343 Adjust address for DW_OP_GNU_addr_index.
5344 * dwarf2expr.h (dwarf_expr_context): Update comment.
5345 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5346 all callers updated. Handle TLS vars described with
5347 DW_OP_GNU_const_index.
5348 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5349 and DW_OP_GNU_const_index.
5350 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5351
5352 * block.c (find_block_in_blockvector): Make explicit the fact that we
5353 ignore GLOBAL_BLOCK.
5354
5355 2012-06-18 Tom Tromey <tromey@redhat.com>
5356
5357 * c-exp.y (operator): Remove trailing space after "delete" and
5358 "delete[]".
5359
5360 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5361 Jan Kratochvil <jan.kratochvil@redhat.com>
5362
5363 Switch i386 and derived targets to ON_STACK.
5364 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5365 (amd64_dicos_init_abi): Remove its installment.
5366 * dicos-tdep.c (dicos_init_abi): Remove the
5367 set_gdbarch_call_dummy_location call. Update the comment here.
5368 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5369 (i386_dicos_init_abi): Remove its installment.
5370 * i386-tdep.c (i386_push_dummy_code): New function.
5371 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5372 i386_push_dummy_code.
5373
5374 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5375
5376 Remove stale dummy frames.
5377 * breakpoint.c: Include dummy-frame.h.
5378 (longjmp_breakpoint_ops): New variable.
5379 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5380 bp_longjmp_call_dummy.
5381 (bpstat_what, bptype_string, print_one_breakpoint_location)
5382 (init_bp_location): Support bp_longjmp_call_dummy.
5383 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5384 (set_longjmp_breakpoint_for_call_dummy)
5385 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5386 functions.
5387 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5388 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5389 FIXME comment and extend the other comment for bp_call_dummy.
5390 (set_longjmp_breakpoint_for_call_dummy)
5391 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5392 * dummy-frame.c: Include gdbthread.h.
5393 (pop_dummy_frame_bpt): New function.
5394 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5395 (dummy_frame_discard): New function.
5396 (cleanup_dummy_frames): Update the comment about longjmps.
5397 * dummy-frame.h (dummy_frame_discard): New declaration.
5398 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5399 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5400 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5401 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5402 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5403 keep_going if IS_LONGJMP and there is no other reason to stop.
5404
5405 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5406
5407 * remote-sim.c (sim_command_completer): Initialize
5408 variable 'result'.
5409
5410 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5411
5412 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5413 * dwarf2loc.c (call_site_parameter_matches): Support
5414 CALL_SITE_PARAMETER_PARAM_OFFSET.
5415 (needs_dwarf_reg_entry_value): Push stub value.
5416 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5417 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5418 * gdbtypes.h (enum call_site_parameter_kind): New item
5419 CALL_SITE_PARAMETER_PARAM_OFFSET.
5420 (struct call_site.parameter.u): New field param_offset.
5421
5422 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5423
5424 Code cleanup: Generalize call_site.parameter key.
5425 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5426 variable dwarf_reg. New variable kind_u. Update parameters to
5427 push_dwarf_reg_entry_value.
5428 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5429 * dwarf2expr.h (enum call_site_parameter_kind)
5430 (union call_site_parameter_u): Forward declarations.
5431 (struct dwarf_expr_context_funcs): Update parameters and their
5432 description for push_dwarf_reg_entry_value.
5433 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5434 * dwarf2loc.c (call_site_parameter_matches): New function.
5435 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5436 description. Use call_site_parameter_matches.
5437 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5438 Update parameters and their description.
5439 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5440 New variable kind_u. Adjust the caller for updated parameters.
5441 (needs_dwarf_reg_entry_value): Update parameters.
5442 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5443 instead of attr. Update for the changed fields of struct
5444 call_site_parameter.
5445 * gdbtypes.h: Include dwarf2expr.h.
5446 (enum call_site_parameter_kind): New.
5447 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5448 fb_offset into new union u.
5449
5450 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5451
5452 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5453 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5454 for x32.
5455
5456 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5457
5458 * amd64-linux-nat.c (compat_x32_clock_t): New.
5459 (compat_x32_siginfo_t): Likewise.
5460 (compat_x32_siginfo_from_siginfo): Likewise.
5461 (siginfo_from_compat_x32_siginfo): Likewise.
5462 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5463 and siginfo_from_compat_x32_siginfo for x32.
5464
5465 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5466
5467 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5468
5469 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5470
5471 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5472 instead of gdbarch_ptr_bit.
5473 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5474 (amd64_supply_native_gregset): Likewise.
5475 (amd64_collect_native_gregset): Likewise.
5476 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5477 (amd64_supply_xsave): Likewise.
5478 (amd64_collect_fxsave): Likewise.
5479 (amd64_collect_xsave): Likewise.
5480
5481 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5482
5483 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5484 (amd64_linux_read_description): Check DS segment register for
5485 x32 process.
5486
5487 2012-06-15 Tom Tromey <tromey@redhat.com>
5488
5489 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5490 init_cutu_and_read_dies.
5491
5492 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5493
5494 * MAINTAINERS (Write After Approval): Add myself to the list.
5495
5496 2012-06-15 Tom Tromey <tromey@redhat.com>
5497
5498 * valops.c (value_find_oload_method_list): Now static.
5499 * value.h (value_find_oload_method_list): Don't declare.
5500
5501 2012-06-15 Tom Tromey <tromey@redhat.com>
5502
5503 * valops.c (find_overload_match): Use value_ind.
5504
5505 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5506
5507 * infrun.c (handle_inferior_event): Correct indentation.
5508
5509 2012-06-14 Doug Evans <dje@google.com>
5510
5511 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5512 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5513 All uses updated.
5514 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5515 updated. Handle DEBUG_LOC_START_LENGTH.
5516 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5517 (loclist_describe_location): Ditto.
5518
5519 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5520
5521 PR backtrace/13866
5522 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5523 after hiding inline functions.
5524
5525 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5526
5527 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5528 _initialize_inf_ttrace.
5529
5530 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5531
5532 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5533 _initialize_hppa_hpux_nat.
5534
5535 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5536
5537 * remote-sim.c (sim_command_completer): Change type of return
5538 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5539
5540 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5541 Jan Kratochvil <jan.kratochvil@redhat.com>
5542
5543 PR tdep/14222
5544 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5545 stack on a 16-byte boundary.
5546
5547 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5548
5549 * jit.c (finalize_symtab): Set function's return type to 'void' by
5550 default.
5551
5552 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5553 H.J. Lu <hongjiu.lu@intel.com>
5554
5555 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5556 Move bits common to both the classic LP64 and the new x32 ILP32
5557 ABI here.
5558 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5559 (amd64_x32_linux_init_abi): New function.
5560 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5561 subtype.
5562
5563 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5564 * i386-tdep.c (i386_pseudo_register_name): Make public.
5565 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5566 * amd64-tdep.c (amd64_dword_names): Add "eip".
5567 (amd64_x32_pseudo_register_type): New function
5568 (amd64_x32_init_abi): New function.
5569
5570 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5571
5572 PR build/14003
5573 * inferior.h (struct inferior_suspend_state): Comment out.
5574 (struct inferior): Comment out the field suspend.
5575 * infrun.c (struct infcall_suspend_state): Comment out the field
5576 inferior_suspend.
5577 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5578 out its assignment.
5579
5580 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5581
5582 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5583 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5584 function comment. Return ERROR for unresolved cases. Implement
5585 returning proper NAME.
5586 (yylex): Accept also NAME from classify_inner_name.
5587 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5588 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5589 LOC_TYPEDEF type.
5590 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5591
5592 2012-06-13 Tom Tromey <tromey@redhat.com>
5593
5594 * breakpoint.c (condition_completer): New function.
5595 (_initialize_breakpoint): Use it.
5596 * value.c (complete_internalvar): New function.
5597 * value.h (complete_internalvar): Declare.
5598
5599 2012-06-13 Tom Tromey <tromey@redhat.com>
5600
5601 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5602 * breakpoint.c (catch_syscall_completer): Return a VEC.
5603 * cli/cli-cmds.c (complete_command): Update.
5604 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5605 (complete_on_enum): Likewise.
5606 * command.h: Include gdb_vecs.h.
5607 (completer_ftype): Change return type.
5608 (complete_on_cmdlist, complete_on_enum): Likewise.
5609 * completer.c (noop_completer, filename_completer)
5610 (location_completer): Return a VEC.
5611 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5612 to a VEC.
5613 (expression_completer, complete_line_internal, complete_line)
5614 (command_completer): Return a VEC.
5615 (gdb_completion_word_break_characters, line_completion_function):
5616 Update.
5617 * completer.h: Include gdb_vecs.h.
5618 (complete_line, noop_completer, filename_completer)
5619 (expression_completer, location_completer, command_completer):
5620 Update.
5621 * f-lang.c (f_word_break_characters): Return a VEC.
5622 * interps.c (interpreter_completer): Return a VEC.
5623 * language.h (struct language_defn)
5624 <la_make_symbol_completion_list>: Return a VEC.
5625 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5626 * symtab.c (free_completion_list): Take a VEC.
5627 (return_val_size, return_val_index): Remove.
5628 (return_val): Now a VEC.
5629 (completion_list_add_name): Update.
5630 (default_make_symbol_completion_list_break_on)
5631 (default_make_symbol_completion_list, make_symbol_completion_list)
5632 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5633 Return a VEC.
5634 (add_filename_to_list): Update.
5635 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5636 <list>: Now a VEC.
5637 (maybe_add_partial_symtab_filename): Update.
5638 (make_source_files_completion_list): Return a VEC.
5639 * symtab.h (default_make_symbol_completion_list_break_on)
5640 (default_make_symbol_completion_list, make_symbol_completion_list)
5641 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5642 (make_source_files_completion_list): Update.
5643
5644 2012-06-13 Tom Tromey <tromey@redhat.com>
5645
5646 * breakpoint.c (add_catch_command): Use completer_ftype.
5647 * breakpoint.h: Include command.h.
5648 (add_catch_command): Use completer_ftype.
5649 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5650 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5651 Use completer_ftype.
5652 * command.h (completer_ftype): New typedef.
5653 (set_cmd_completer): Use it.
5654 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5655 completer_ftype.
5656
5657 2012-06-13 Pedro Alves <palves@redhat.com>
5658
5659 Partial revert of previous change.
5660
5661 * serial.c (scb_base): New global.
5662 (serial_for_fd): New.
5663 (serial_open, serial_fdopen_ops): Link new serial in open serials
5664 chain.
5665 (do_serial_close): Unlink serial from the open serials chain.
5666
5667 2012-06-12 Pedro Alves <palves@redhat.com>
5668
5669 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5670 threads here.
5671 (prepare_for_detach): No longer context switch here in non-stop
5672 mode.
5673 (fetch_inferior_event): Ditto.
5674 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5675 to the event thread before removing breakpoints. Switch to the
5676 event thread before inserting breakpoints and resuming.
5677 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5678 event thread before resuming.
5679 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5680 Switch to the event thread before removing breakpoints.
5681
5682 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5683
5684 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5685 special characters correctly for the Windows shells. See
5686 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5687 report.
5688 [!__MINGW32__]: Remove extra double quote character from special
5689 characters.
5690
5691 2012-06-11 Stan Shebs <stan@codesourcery.com>
5692
5693 * ui-out.h: Remove #if 0 declarations.
5694 * ui-out.c: Remove #if 0 functions.
5695
5696 2012-06-11 Pedro Alves <palves@redhat.com>
5697
5698 * ser-base.c (run_async_handler_and_reschedule): New.
5699 (fd_event, push_event): Use it.
5700 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5701 reference count to 1.
5702 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5703 instead of xfree.
5704 (serial_is_open, serial_ref, serial_unref): New.
5705 * serial.h (serial_open): Adjust comment.
5706 (serial_is_open): Declare.
5707 (serial_close): Adjust comment.
5708 (serial_ref, serial_unref) Declare.
5709 (struct serial): New field 'refcnt'.
5710
5711 2012-06-11 Pedro Alves <palves@redhat.com>
5712
5713 Remove #if 0'd "connect" command, and unnecessary associated
5714 refcounting and serial reuse bits.
5715
5716 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5717 * serial.c (last_serial_opened): Delete.
5718 (scb_base): Delete.
5719 (serial_open): Adjust.
5720 (serial_for_fd): Delete.
5721 (serial_fdopen_ops, do_serial_close): Adjust.
5722 (serial_fdopen_ops): Adjust.
5723
5724 2012-06-11 Pedro Alves <palves@redhat.com>
5725
5726 * serial.c (do_serial_close): Remove early return when SCB is
5727 null.
5728
5729 2012-06-11 Tom Tromey <tromey@redhat.com>
5730
5731 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5732
5733 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5734
5735 Fix regression by the "ambiguous linespec" series.
5736 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5737 get_last_displayed_symtab and get_last_displayed_line and depending
5738 on CURSAL.
5739
5740 2012-06-11 Tom Tromey <tromey@redhat.com>
5741
5742 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5743 (dw2_find_symbol_file): Use it.
5744
5745 2012-06-11 Michael Eager <eager@eagercon.com>
5746
5747 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5748 * mips-linux-tdep.h (mips_signals): New
5749
5750 2012-06-11 Tom Tromey <tromey@redhat.com>
5751
5752 * infrun.c (handle_inferior_event)
5753 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5754 breakpoint.
5755 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5756 exception logic in all cases. Update comments.
5757 (insert_longjmp_resume_breakpoint): Set the exception resume
5758 breakpoint.
5759
5760 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5761
5762 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5763
5764 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5765
5766 * valarith.c (binop_types_user_defined_p): Fix a typo.
5767
5768 2012-06-08 Yao Qi <yao@codesourcery.com>
5769 Chung-Lin Tang <cltang@codesourcery.com>
5770
5771 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5772 * arch-utils.h: Declare.
5773 * gdbarch.sh: Add return_in_first_hidden_param_p.
5774 * gdbarch.c, gdbarch.h: Regenerated.
5775 * infcall.c (call_function_by_hand): Call
5776 gdbarch_return_in_first_hidden_param_p instead of
5777 language_pass_by_reference.
5778
5779 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5780 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5781 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5782 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5783 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5784 `cplus_return_struct_by_reference'.
5785 (tic6x_return_value): Handle language cplusplus.
5786 (tic6x_return_in_first_hidden_param_p): New.
5787 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5788
5789 2012-06-07 Doug Evans <dje@google.com>
5790
5791 * dwarf2read.c (dwarf2_cu): Add comment.
5792
5793 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5794
5795 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5796 variable.
5797 (mips_eabi_push_dummy_call): Likewise.
5798 (mips_n32n64_push_dummy_call): Likewise.
5799 (mips_o32_push_dummy_call): Likewise.
5800 (mips_o64_push_dummy_call): Likewise.
5801
5802 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5803
5804 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5805
5806 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5807
5808 * mips-tdep.c (mips_pseudo_register_type): Use
5809 mips_float_register_p.
5810
5811 2012-06-06 Pedro Alves <palves@redhat.com>
5812
5813 * infrun.c (handle_inferior_event): Remove calls to
5814 reinit_frame_cache that follow a context_switch call.
5815
5816 2012-06-06 Pedro Alves <palves@redhat.com>
5817
5818 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5819 context_switch and remove stale comment.
5820
5821 2012-06-06 Pedro Alves <palves@redhat.com>
5822
5823 * infrun.c (struct execution_control_state): Remove
5824 `new_thread_event' field.
5825 (handle_inferior_event): Simplify new threads handling; don't
5826 resume the inferior if we find a new thread.
5827
5828 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5829
5830 * NEWS: Document the deprecation of SH's 'regs' command.
5831 * inferior.h (all_registers_info): Add function declaration.
5832 * sh-tdep.c (sh_show_regs): Remove variable.
5833 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5834 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5835 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5836 (sh_show_regs_command): Remove functions.
5837 (sh_gdbarch_init): Don't set sh_show_regs.
5838 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5839 'info all-registers'.
5840 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5841 (sh64_show_regs): Remove functions.
5842 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5843
5844 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5845
5846 * configure.ac: Move development=true below AC_INIT.
5847 * configure: Regenerate.
5848
5849 2012-06-05 Stan Shebs <stan@codesourcery.com>
5850
5851 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5852 gdb_stdout.
5853
5854 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5855
5856 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5857 argument as ssize_t.
5858 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5859 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5860 * target.c (target_read_stack, target_write_memory)
5861 (target_write_raw_memory): Likewise.
5862 * target.h (target_read_stack, target_write_memory)
5863 (target_write_raw_memory): Likewise.
5864
5865 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5866
5867 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5868 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5869 * target.c (target_read_memory): Change LEN to ssize_t.
5870 * target.h (target_read_memory): Change LEN to ssize_t.
5871
5872 2012-06-05 Pedro Alves <palves@redhat.com>
5873
5874 PR backtrace/13866
5875
5876 * breakpoint.c (until_break_command): Only fetch the selected
5877 frame after decode_line_1.
5878
5879 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5880
5881 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5882 event breakpoint at _start, __start or main if a program
5883 interpreter is not found.
5884
5885 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5886
5887 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5888 Add declaration.
5889 * windows-tdep.c: #include "objfiles.h".
5890 (windows_iterate_over_objfiles_in_search_order): New function.
5891 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5892 iterate_over_objfiles_in_search_order gdbarch method to
5893 windows_iterate_over_objfiles_in_search_order.
5894 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5895
5896 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5897
5898 * gdbarch.sh: Add generation of
5899 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5900 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5901 (iterate_over_objfiles_in_search_order): New gdbarch method.
5902 * gdbarch.h, gdbarch.c: Regenerate.
5903 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5904 Add declaration.
5905 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5906 New function.
5907 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5908 out of lookup_symbol_aux_symtabs.
5909 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5910 call to lookup_symbol_aux_objfile.
5911 (struct global_sym_lookup_data): New type.
5912 (lookup_symbol_global_iterator_cb): New function.
5913 (lookup_symbol_global): Search for symbol using
5914 gdbarch_iterate_over_objfiles_in_search_order and
5915 lookup_symbol_global_iterator_cb.
5916 * findvar.c (struct minsym_lookup_data): New type.
5917 (minsym_lookup_iterator_cb): New function.
5918 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5919 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5920 and minsym_lookup_iterator_cb.
5921
5922 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5923
5924 Revert the following patch:
5925 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5926 try locating the symbol in the symbol's own objfile first, before
5927 extending the search to all objfiles.
5928 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5929 out of lookup_symbol_aux_symtabs.
5930 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5931 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5932 Do not search EXCLUDE_OBJFILE.
5933 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5934 (lookup_symbol_global): Search for matches in the block's objfile
5935 first, before searching all other objfiles.
5936
5937 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5938
5939 * breakpoint.c (find_condition_and_thread): Stop parsing
5940 as soon as the first invalid keyword is found.
5941
5942 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5943
5944 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5945
5946 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5947
5948 * config/djgpp/djcheck.sh: Add copyright header.
5949
5950 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5951
5952 * copyright.py (update_files, main): Fix path to update-copyright
5953 script.
5954
5955 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5956
5957 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5958 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5959 for which a reminder to update by hand is printed.
5960
5961 2012-06-04 Doug Evans <dje@google.com>
5962
5963 * buildsym.c (make_blockvector): Add comment.
5964
5965 2012-06-04 Pedro Alves <palves@redhat.com>
5966
5967 * arch-utils.c (default_gdb_signal_from_target): Delete.
5968 * arch-utils.h (default_gdb_signal_from_target): Delete.
5969 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5970 gdbarch_gdb_signal_from_target_p.
5971 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5972 predicate).
5973 * gdbarch.h: Regenerate.
5974 * gdbarch.c: Regenerate.
5975
5976 2012-06-04 Pedro Alves <palves@redhat.com>
5977
5978 * gdbarch.sh (gdb_signal_from_target): Mention that the
5979 implementation of the method must be host independent.
5980 * gdbarch.h: Regenerate.
5981
5982 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5983
5984 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5985 parameters.
5986 (target_read_memory_bfd): New function.
5987 (symbol_file_add_from_memory): Use it.
5988
5989 2012-06-03 Doug Evans <dje@google.com>
5990
5991 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5992 of primary symtab.
5993 (basic_lookup_transparent_type): Ditto.
5994
5995 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5996 (ALL_PRIMARY_SYMTABS): Use it.
5997 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5998 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5999 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6000 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6001 (basic_lookup_transparent_type): Ditto.
6002
6003 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6004
6005 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6006 it to optimize resolution of demangled name.
6007
6008 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6009
6010 * configure.ac (development): Define new variable.
6011 Call AC_CHECK_LIB for mcheck if $development.
6012 (ERROR_ON_WARNING): Enable it by default only if $development.
6013 * config.in: Regenerate.
6014 * configure: Regenerate.
6015
6016 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6017
6018 * target.c (target_read_memory): Make LEN argument as size_t.
6019 * target.h (target_read_memory): Likewise.
6020
6021 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6022
6023 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6024
6025 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6026
6027 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6028 BookE interface for PowerPC server processors if not available
6029 in the Linux Kernel.
6030
6031 2012-05-31 Keith Seitz <keiths@redhat.com>
6032
6033 * linespec.c (decode_objc): Add cleanup to free
6034 INFO.FILE_SYMTABS.
6035 (find_linespec_symbols): Add cleanup to free CLASSES.
6036 * symfile.c (find_separate_debug_file_by_debuglink): Add
6037 cleanup to free DEBUGLINK.
6038 * ui-out.c (clear_header_list): No need to check if
6039 HEADER_NEXT.COLHDR is NULL.
6040 Free HEADER_NEXT.COL_NAME.
6041
6042 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6043
6044 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6045 warning.
6046
6047 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6048
6049 * configure.host (gdb_host_cpu): Handle tilegx*.
6050 (gdb_host): Handle tilegx-*-linux*.
6051 * tilegx-linux-nat.c: New file.
6052 * config/tilegx/linux.mh: New file.
6053
6054 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6055
6056 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6057 tilegx-linux-tdep.o.
6058 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6059 tilegx-linux-tdep.c.
6060 * configure.tgt: Handle tilegx-*-linux*.
6061 * tilegx-tdep.h: New file.
6062 * tilegx-tdep.c: New file.
6063 * tilegx-linux-tdep.c: New file.
6064 * regformats/reg-tilegx.dat: New file.
6065
6066 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6067
6068 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6069 accounting of hw watchpoints on ppc.
6070
6071 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6072
6073 * source.c (openp): Expand tilde in path entries.
6074
6075 2012-05-29 Doug Evans <dje@google.com>
6076
6077 * buildsym.c (block_compar): Fix comment.
6078 (end_symtab): Fix and clarify some comments.
6079
6080 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6081 cleanup_undefined_types.
6082 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6083 All callers updated.
6084
6085 2012-05-29 Tom Tromey <tromey@redhat.com>
6086
6087 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6088 fails.
6089 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6090 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6091 fails.
6092 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6093 fails.
6094
6095 2012-05-29 Tristan Gingold <gingold@adacore.com>
6096
6097 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6098 (struct darwin_info): ... New struct.
6099 (solib_darwin_pspace_data): New variable.
6100 (darwin_pspace_data_cleanup): New function.
6101 (get_darwin_info): Likewise.
6102 (darwin_dyld_version_ok, darwin_load_image_infos)
6103 (darwin_solib_get_all_image_info_addr_at_init)
6104 (darwin_solib_read_all_image_info_addr): Add info argument.
6105 Adjust code.
6106 (darwin_current_sos): Use per pspace structure.
6107 (darwin_solib_create_inferior_hook): Likewise.
6108 (darwin_clear_solib): Likewise.
6109 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6110
6111 2012-05-28 Pedro Alves <palves@redhat.com>
6112
6113 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6114 block that uses them. Clear ecss before handling each event.
6115
6116 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6117
6118 * solib-svr4.c (svr4_current_sos): New comment on
6119 svr4_current_sos_via_xfer_libraries fall back.
6120
6121 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6122
6123 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6124 it as a fallback for TYPE_IS_OPAQUE.
6125 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6126 symbols for lookup_symbol.
6127
6128 2012-05-24 John Steele Scott <toojays@toojays.net>
6129
6130 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6131 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6132 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6133 (check_producer): ... this new function, which also checks for ICC
6134 and caches the result.
6135 (producer_is_icc): New function.
6136 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6137 producer was ICC.
6138
6139 2012-05-24 Pedro Alves <palves@redhat.com>
6140
6141 PR gdb/7205
6142
6143 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6144 (default_gdb_signal_to_target): ... this. Add comment.
6145 (default_gdb_signal_from_host): Rename to ...
6146 (default_gdb_signal_from_target): ... this. Add comment.
6147 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6148 (default_gdb_signal_to_target): ... this.
6149 (default_gdb_signal_from_host): Rename to ...
6150 (default_gdb_signal_from_target): ... this.
6151 * corelow.c (core_open): Adjust to naming change. Replace comment.
6152 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6153 (gdb_signal_from_target): ... this. Adjust to
6154 default_gdb_signal_from_host naming change. Extend comment.
6155 (gdb_signal_to_host): Rename to ...
6156 (gdb_signal_to_target): ... this. Adjust to
6157 default_gdb_signal_to_host naming change.
6158 * gdbarch.h, gdbarch.c: Renegerate.
6159
6160 2012-05-24 Pedro Alves <palves@redhat.com>
6161
6162 PR gdb/7205
6163
6164 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6165
6166 2012-05-24 Pedro Alves <palves@redhat.com>
6167
6168 PR gdb/7205
6169
6170 Replace target_signal with gdb_signal throughout.
6171
6172 2012-05-24 Pedro Alves <palves@redhat.com>
6173
6174 PR tui/14159
6175
6176 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6177 string, instead of reusing the va_list argument.
6178
6179 2012-05-24 Tom Tromey <tromey@redhat.com>
6180
6181 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6182 Remove.
6183
6184 2012-05-23 Doug Evans <dje@google.com>
6185
6186 * symtab.c (search_symbols): Formatting fixes.
6187 (print_symbol_info): Formatting fixes.
6188
6189 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6190 int64_t change to leb128 API.
6191 (read_encoded_value, decode_frame_entry_1): Ditto.
6192 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6193 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6194 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6195 (execute_stack_op): Ditto.
6196 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6197 (safe_read_uleb128, safe_read_sleb128): Ditto.
6198 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6199 (dwarf2_compile_expr_to_ax): Ditto.
6200 (locexpr_describe_location_piece): Ditto.
6201 (disassemble_dwarf_expression): Ditto.
6202 (locexpr_describe_location_1): Ditto.
6203
6204 2012-05-23 Stan Shebs <stan@codesourcery.com>
6205 Kwok Cheung Yeung <kcy@codesourcery.com>
6206
6207 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6208 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6209 (mi-cmd-info.o): New rule.
6210 * osdata.h (info_osdata_command): New declaration.
6211 * osdata.c (info_osdata_command): Change to non-static.
6212 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6213 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6214 * mi/mi-cmd-info.c: New file.
6215
6216 2012-05-23 Doug Evans <dje@google.com>
6217
6218 * symtab.c (search_symbols): Pass NULL for file_matcher to
6219 expand_symtabs_matching if there are no files to match.
6220
6221 * gdbtypes.c (lookup_typename): Simplify.
6222
6223 2012-05-23 Pedro Alves <palves@redhat.com>
6224
6225 * arch-utils.h (default_target_signal_to_host): Delete.
6226 * arch-utils.c (default_target_signal_to_host): Delete.
6227 * gdbarch.sh (target_signal_to_host): Remove.
6228 * gdbarch.h, gdbarch.c: Regenerate.
6229
6230 2012-05-22 Doug Evans <dje@google.com>
6231
6232 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6233 "const gdb_byte *".
6234 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6235 (execute_cfa_program): Update to match API of leb128 functions.
6236 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6237 "const gdb_byte *".
6238 (read_unsigned_leb128, read_signed_leb128): Delete.
6239 (read_initial_length): Change type of buf argument to
6240 "const gdb_byte *".
6241 (read_encoded_value): Update to match API of leb128 functions.
6242 (decode_frame_entry): Change result to "const gdb_byte *", and
6243 similarly for "start" parameter.
6244 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6245 (dwarf2_build_frame_info): Change local frame_ptr to
6246 "const gdb_byte *".
6247 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6248 read_uleb128, read_sleb128. All callers updated.
6249 (safe_skip_leb128): New function.
6250 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6251 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6252 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6253 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6254 read_uleb128, read_sleb128.
6255 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6256 (execute_stack_op): Update to match API of leb128 functions.
6257 * dwarf2expr.h: #include "leb128.h".
6258 (read_uleb128, read_sleb128): Delete.
6259 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6260 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6261 * dwarf2loc.c (debug_loc_kind): New enum.
6262 (decode_debug_loc_addresses): New function.
6263 (decode_debug_loc_dwo_addresses): New function.
6264 (dwarf2_find_location_expression): Rewrite.
6265 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6266 (locexpr_describe_location_piece): Ditto.
6267 (disassemble_dwarf_expression): Ditto.
6268 (locexpr_describe_location_1): Ditto.
6269 (loclist_describe_location): Rewrite.
6270 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6271 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6272 (dwarf2_section_buffer_overflow_complaint): Renamed from
6273 dwarf2_macros_too_long_complaint. All callers updated.
6274 (skip_leb128): Delete.
6275 (init_cu_die_reader): Initialize reader->buffer_end.
6276 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6277 (skip_form_bytes): New arg buffer_end. All callers updated.
6278 Replace call to skip_leb128 with gdb_skip_leb128.
6279 (skip_unknown_opcode): New arg mac_end. All callers updated.
6280 (fill_in_loclist_baton): Initialize baton->from_dwo.
6281
6282 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6283
6284 * mips-linux-nat.c (mips_linux_read_description): Use a more
6285 verbose error message.
6286
6287 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6288
6289 * NEWS: Add MIPS/Linux DSP support.
6290 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6291 (SIGCONTEXT_DSPCTL): New macro.
6292 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6293 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6294 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6295 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6296 (N64_SIGCONTEXT_HI3): Likewise.
6297 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6298 (N64_SIGCONTEXT_LO3): Likewise.
6299 (N64_SIGCONTEXT_DSPCTL): Likewise.
6300 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6301 (mips_linux_o32_sigframe_init): Handle DSP registers.
6302 (mips_linux_n32n64_sigframe_init): Likewise.
6303
6304 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6305
6306 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6307 call to abort.
6308
6309 2012-05-22 Pedro Alves <palves@redhat.com>
6310
6311 * target.h (store_waitstatus): Move declaration ...
6312 * inf-child.h (store_waitstatus): ... here.
6313 * target.c: Move inclusion of gdb_wait.h, and ...
6314 (store_waitstatus): ... this ...
6315 * inf-child.c: ... here.
6316 * linux-nat.c: Include inf-child.h.
6317 * rs6000-nat.c: Include inf-child.h.
6318 * spu-linux-nat.c: Include inf-child.h.
6319
6320 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6321
6322 * tracepoint.c (start_tracing): Add missing i18n markup.
6323 (stop_tracing, set_trace_user): Ditto.
6324 (set_trace_notes, set_trace_stop_notes): Ditto.
6325
6326 2012-05-21 Tom Tromey <tromey@redhat.com>
6327
6328 PR c++/7173:
6329 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6330 types.
6331 * value.h (value_cast_pointers): Update.
6332 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6333 (value_cast): Update.
6334 (update_search_result): New function.
6335 (do_search_struct_field): New, from search_struct_field. Check
6336 for ambiguous results.
6337 (search_struct_field): Rewrite.
6338 * infcall.c (value_arg_coerce): Update.
6339 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6340 value_cast_pointers.
6341 * ada-lang.c (ada_convert_actual): Update.
6342
6343 2012-05-21 Tom Tromey <tromey@redhat.com>
6344
6345 * macroexp.c (macro_stringify): Terminate the string.
6346
6347 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6348
6349 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6350 Describe it.
6351 * auto-load.c (auto_load_expand_dir_vars): New function.
6352 (auto_load_safe_path_vec_update): Use it, remove the
6353 substitute_path_component call thanks to it.
6354 (auto_load_objfile_script): Remove the debug_file_directory processing.
6355 Use auto_load_expand_dir_vars, remove the substitute_path_component
6356 call thanks to it.
6357 * configure: Regenerate.
6358 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6359 path. Escape $ also for $debugdir.
6360 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6361 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6362
6363 2012-05-20 Doug Evans <dje@google.com>
6364
6365 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6366 before use. Check for symtab->includes == NULL before scanning it.
6367
6368 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6369
6370 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6371
6372 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6373
6374 * NEWS: Add microMIPS support and "set mips compression",
6375 "show mips compression" commands.
6376 * mips-tdep.h (mips_isa): New enum.
6377 (gdbarch_tdep): Add mips_isa.
6378 (mips_pc_is_mips16): Update prototype.
6379 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6380 * mips-tdep.c (mips_compression_mips16): New variable.
6381 (mips_compression_micromips): Likewise.
6382 (mips_compression_strings): Likewise.
6383 (mips_compression_string): Likewise.
6384 (is_mips16_isa, is_micromips_isa): New functions.
6385 (is_mips16_addr): Rename to...
6386 (is_compact_addr): ... this.
6387 (unmake_mips16_addr): Likewise to...
6388 (unmake_compact_addr): ... this.
6389 (make_mips16_addr): Likewise to...
6390 (make_compact_addr): ... this.
6391 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6392 functions.
6393 (mips_elf_make_msymbol_special): Handle microMIPS code.
6394 (msymbol_is_special): Rename to...
6395 (msymbol_is_mips16): ... this.
6396 (mips_make_symbol_special, mips_pc_is_mips16): Update
6397 accordingly.
6398 (msymbol_is_mips, msymbol_is_micromips): New functions.
6399 (mips16_to_32_reg): Rename to...
6400 (mips_reg3_to_reg): ... this.
6401 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6402 (mips_pc_isa): Likewise.
6403 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6404 code.
6405 (mips_fetch_instruction): Pass return status instead of printing
6406 an error message if requested. Handle microMIPS code. Bail out
6407 on an invalid ISA.
6408 (micromips_op): New macro.
6409 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6410 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6411 (b6s4_op, b7s3_reg): Likewise.
6412 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6413 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6414 (mips_insn_size): New function.
6415 (mips32_next_pc): Update mips_fetch_instruction call.
6416 (micromips_relative_offset7): New function.
6417 (micromips_relative_offset10): Likewise.
6418 (micromips_relative_offset16): Likewise.
6419 (micromips_pc_insn_size): Likewise.
6420 (micromips_bc1_pc): Likewise.
6421 (micromips_next_pc): Likewise.
6422 (unpack_mips16): Update mips_fetch_instruction call.
6423 (extended_mips16_next_pc): Update according to change to
6424 mips16_to_32_reg.
6425 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6426 code.
6427 (mips16_scan_prologue): Update mips_fetch_instruction call.
6428 Update according to change to mips16_to_32_reg.
6429 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6430 (mips_insn16_frame_base_sniffer): Likewise.
6431 (micromips_decode_imm9): New function.
6432 (micromips_scan_prologue): Likewise.
6433 (mips_micro_frame_cache): Likewise.
6434 (mips_micro_frame_this_id): Likewise.
6435 (mips_micro_frame_prev_register): Likewise.
6436 (mips_micro_frame_sniffer): Likewise.
6437 (mips_micro_frame_unwind): New variable.
6438 (mips_micro_frame_base_address): New function.
6439 (mips_micro_frame_base): New variable.
6440 (mips_micro_frame_base_sniffer): New function.
6441 (mips32_scan_prologue): Update mips_fetch_instruction call.
6442 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6443 rather than for MIPS16.
6444 (mips_insn32_frame_base_sniffer): Likewise.
6445 (mips_addr_bits_remove): Handle microMIPS code.
6446 (deal_with_atomic_sequence): Rename to...
6447 (mips_deal_with_atomic_sequence): ... this. Update the type
6448 of the variable used to hold an instruction. Remove the ISA bit
6449 check. Update mips_fetch_instruction call.
6450 (micromips_deal_with_atomic_sequence): New function.
6451 (deal_with_atomic_sequence): Likewise.
6452 (mips_about_to_return): Handle microMIPS code. Update
6453 mips_fetch_instruction call.
6454 (heuristic_proc_start): Check for the standard MIPS ISA rather
6455 than for MIPS16. Update mips_pc_is_mips16 and
6456 mips_fetch_instruction calls. Handle microMIPS code.
6457 (mips_push_dummy_code): Handle microMIPS code.
6458 (mips_eabi_push_dummy_call): Likewise.
6459 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6460 (mips_o64_push_dummy_call): Handle microMIPS code.
6461 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6462 (is_delayed): Remove function.
6463 (mips_single_step_through_delay): Replace the call to is_delayed
6464 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6465 Handle microMIPS code.
6466 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6467 microMIPS code.
6468 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6469 call.
6470 (micromips_in_function_epilogue_p): New function.
6471 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6472 call.
6473 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6474 Handle microMIPS.
6475 (gdb_print_insn_mips): Likewise.
6476 (mips_breakpoint_from_pc): Likewise.
6477 (mips_remote_breakpoint_from_pc): New function.
6478 (mips32_instruction_has_delay_slot): Simplify making use of the
6479 updated mips_fetch_instruction interface.
6480 (micromips_instruction_has_delay_slot): New function.
6481 (mips16_instruction_has_delay_slot): Simplify making use of the
6482 updated mips_fetch_instruction interface.
6483 (mips_adjust_breakpoint_address): Check for the standard MIPS
6484 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6485 calls. Handle microMIPS code.
6486 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6487 (mips_skip_trampoline_code): Handle microMIPS code.
6488 (global_mips_compression): New function.
6489 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6490 file flags. Register the microMIPS remote breakpoint handler
6491 and heuristic frame unwinder.
6492 (show_mips_compression): New function.
6493 (_initialize_mips_tdep): Add the "set mips compression" and
6494 "show mips compression" commands.
6495
6496 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6497
6498 * ada-lang.c:
6499 * ada-tasks.c:
6500 * ada-varobj.c:
6501 * amd64-darwin-tdep.c:
6502 * arm-symbian-tdep.c:
6503 * arm-tdep.c:
6504 * avr-tdep.c:
6505 * ax-gdb.c:
6506 * bfin-linux-tdep.c:
6507 * breakpoint.c:
6508 * c-valprint.c:
6509 * cli/cli-cmds.c:
6510 * coffread.c:
6511 * cp-support.c:
6512 * cris-tdep.c:
6513 * dwarf2-frame-tailcall.c:
6514 * dwarf2-frame.c:
6515 * dwarf2expr.c:
6516 * dwarf2loc.c:
6517 * dwarf2read.c:
6518 * elfread.c:
6519 * eval.c:
6520 * expprint.c:
6521 * f-valprint.c:
6522 * frv-tdep.c:
6523 * h8300-tdep.c:
6524 * hppa-hpux-tdep.c:
6525 * hppa-tdep.c:
6526 * hppanbsd-tdep.c:
6527 * i386-nto-tdep.c:
6528 * i386-tdep.c:
6529 * i387-tdep.c:
6530 * ia64-tdep.c:
6531 * jit.c:
6532 * linespec.c:
6533 * linux-tdep.c:
6534 * lm32-tdep.c:
6535 * m2-valprint.c:
6536 * m32c-tdep.c:
6537 * m32r-rom.c:
6538 * m32r-tdep.c:
6539 * m68k-tdep.c:
6540 * m68klinux-tdep.c:
6541 * mi/mi-main.c:
6542 * microblaze-tdep.c:
6543 * mips-linux-tdep.c:
6544 * mips-tdep.c:
6545 * mn10300-tdep.c:
6546 * p-valprint.c:
6547 * parse.c:
6548 * ppc-linux-tdep.c:
6549 * ppc-sysv-tdep.c:
6550 * printcmd.c:
6551 * python/py-finishbreakpoint.c:
6552 * python/py-inferior.c:
6553 * python/py-infthread.c:
6554 * python/py-type.c:
6555 * python/python.c:
6556 * remote-fileio.c:
6557 * remote-m32r-sdi.c:
6558 * remote-mips.c:
6559 * reverse.c:
6560 * rl78-tdep.c:
6561 * rs6000-aix-tdep.c:
6562 * rs6000-tdep.c:
6563 * s390-tdep.c:
6564 * score-tdep.c:
6565 * sh64-tdep.c:
6566 * skip.c:
6567 * solib-darwin.c:
6568 * solib-dsbt.c:
6569 * solib-frv.c:
6570 * sparc-tdep.c:
6571 * spu-multiarch.c:
6572 * spu-tdep.c:
6573 * stack.c:
6574 * symfile.c:
6575 * symtab.c:
6576 * tic6x-tdep.c:
6577 * tracepoint.c:
6578 * v850-tdep.c:
6579 * valarith.c:
6580 * valprint.c:
6581 * value.c:
6582 * xcoffread.c:
6583 * xtensa-tdep.c:
6584 * ada-lang.c:
6585 * ada-tasks.c:
6586 * ada-varobj.c:
6587 * amd64-darwin-tdep.c:
6588 * arm-symbian-tdep.c:
6589 * arm-tdep.c: Delete unused variables.
6590
6591 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6592
6593 Rename $ddir to $datadir.
6594 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6595 * auto-load.c (auto_load_safe_path_vec_update)
6596 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6597 * configure: Regenerate.
6598 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6599 Likewise. Remove the 'use $ddir' help string.
6600
6601 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6602
6603 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6604 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6605
6606 2012-05-18 Tom Tromey <tromey@redhat.com>
6607
6608 PR exp/13907:
6609 * valprint.h (struct value_print_options) <symbol_print>: New
6610 field.
6611 * valprint.c (user_print_options): Add default for symbol_print.
6612 (show_symbol_print): New function.
6613 (generic_val_print): Respect symbol_print.
6614 (_initialize_valprint): Add "print symbol" setting.
6615 * f-valprint.c (f_val_print): Respect symbol_print.
6616 * c-valprint.c (c_val_print): Respect symbol_print.
6617 * NEWS: Update.
6618 * printcmd.c (print_address_symbolic): Return int. Ignore some
6619 zero-size symbols.
6620 (print_address_demangle): Return int.
6621 * defs.h: (print_address_symbolic): Return int.
6622 * value.h (print_address_demangle): Return int.
6623
6624 2012-05-18 Tom Tromey <tromey@redhat.com>
6625
6626 * valprint.c (val_print_string): Don't print leading space.
6627 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6628 print space before string or vtbl.
6629 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6630 before string.
6631 * jv-valprint.c (java_value_print): Print space before string.
6632 * go-valprint.c (print_go_string): Print space before string.
6633 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6634 space before string.
6635 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6636 space before string or vtbl.
6637 * auxv.c (fprint_target_auxv): Print space after address.
6638
6639 2012-05-18 Tom Tromey <tromey@redhat.com>
6640
6641 * printcmd.c (print_address_demangle): Remove special case for 0.
6642
6643 2012-05-18 Tom Tromey <tromey@redhat.com>
6644
6645 * printcmd.c (print_address_demangle): Add 'opts' argument.
6646 * p-valprint.c (pascal_val_print): Update.
6647 * jv-valprint.c (java_val_print): Update.
6648 * value.h: Update.
6649 * valprint.c (generic_val_print): Update.
6650 (print_function_pointer_address): Add 'options' argument. Remove
6651 'addressprint' argument. Update.
6652 * m2-valprint.c (print_unpacked_pointer): Update.
6653 * gnu-v3-abi.c (print_one_vtable): Update.
6654 (gnuv3_print_method_ptr): Update.
6655 * f-valprint.c (f_val_print): Update.
6656 * cp-valprint.c (cp_print_value_fields): Update.
6657 * valprint.h (print_function_pointer_address): Update.
6658 * c-valprint.c (c_val_print): Update.
6659
6660 2012-05-18 Tom Tromey <tromey@redhat.com>
6661
6662 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6663 directly corresponding to the found psymtab.
6664 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6665 (dw2_find_pc_sect_symtab): Use it.
6666 * block.h (blockvector_contains_pc): Declare.
6667 * block.c (find_block_in_blockvector): New function.
6668 (blockvector_for_pc_sect): Use it.
6669 (blockvector_contains_pc): New function.
6670
6671 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6672
6673 * mips-tdep.h (mips_write_pc): New prototype.
6674 * mips-tdep.c (mips_write_pc): Make external, add description.
6675 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6676 add description.
6677
6678 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6679
6680 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6681 mips_regnum->pc.
6682 (mips_unwind_pc, mips_write_pc): Likewise.
6683 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6684 gdbarch_read_pc.
6685
6686 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6687
6688 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6689 proc_warn, proc_error, proc_get_status, proc_flags,
6690 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6691 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6692 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6693 proc_stop_process, proc_wait_for_stop, proc_run_process,
6694 proc_set_traced_signals, proc_set_traced_faults,
6695 proc_set_traced_sysentry, proc_set_traced_sysexit,
6696 proc_set_held_signals, proc_get_held_signals,
6697 proc_get_traced_signals, proc_get_traced_faults,
6698 proc_get_traced_sysentry, proc_get_traced_sysexit,
6699 proc_clear_current_fault, proc_set_current_signal,
6700 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6701 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6702 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6703 proc_get_current_thread, proc_get_current_thread,
6704 proc_get_current_thread, proc_update_threads,
6705 proc_update_threads, proc_update_threads, proc_update_threads,
6706 proc_iterate_over_threads, procfs_find_new_threads,
6707 procfs_pid_to_str): Make static. Remove advance declaration.
6708 (proc_cursig): Make static. Conditionalized defintion on
6709 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6710 (proc_syscall, proc_set_kill_on_last_close,
6711 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6712 proc_get_pending_signals, proc_get_signal_actions,
6713 proc_trace_signal, proc_ignore_signal): Delete.
6714
6715 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6716
6717 * coffread.c (cs_section_address): Passing proper argument for
6718 `bfd_get_section_vma'.
6719 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6720 `bfd_get_section_flags'.
6721 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6722 `bfd_get_section_vma'.
6723
6724 2012-05-16 Tom Tromey <tromey@redhat.com>
6725
6726 PR macros/13205:
6727 * macrotab.h: (macro_define_special): Declare.
6728 (enum macro_special_kind): New.
6729 (struct macro_definition) <argc, replacement>: Update comments.
6730 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6731 (macro_define_object_internal): New function.
6732 (macro_define_object): Use it.
6733 (macro_define_special): New function.
6734 (fixup_definition): New function.
6735 (macro_lookup_definition, foreach_macro_in_scope)
6736 (foreach_macro): Use fixup_definition.
6737 * macroexp.h (macro_stringify): Declare.
6738 * macroexp.c (free_buffer_return_text): New function.
6739 (stringify): Constify "arg".
6740 (macro_stringify): New function.
6741 * dwarf2read.c (macro_start_file): Call macro_define_special.
6742
6743 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6744 Maciej W. Rozycki <macro@mips.com>
6745
6746 * breakpoint.h (bp_location): Add related_address member.
6747 * inferior.h (get_return_value): Take a pointer to struct value
6748 instead of struct type for the function requested.
6749 * value.h (using_struct_return): Likewise.
6750 * gdbarch.sh (return_value): Take a pointer to struct value
6751 instead of struct type for the function requested.
6752 * breakpoint.c (set_breakpoint_location_function): Initialize
6753 related_address for bp_gnu_ifunc_resolver breakpoints.
6754 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6755 requested function's address to gdbarch_return_value.
6756 * eval.c (evaluate_subexp_standard): Pass the requested
6757 function's address to using_struct_return.
6758 * infcall.c (call_function_by_hand): Pass the requested
6759 function's address to using_struct_return and
6760 gdbarch_return_value.
6761 * infcmd.c (get_return_value): Take a pointer to struct value
6762 instead of struct type for the function requested.
6763 (print_return_value): Update accordingly.
6764 (finish_command_continuation): Likewise.
6765 * stack.c (return_command): Pass the requested function's
6766 address to using_struct_return and gdbarch_return_value.
6767 * value.c (using_struct_return): Take a pointer to struct value
6768 instead of struct type for the function requested. Pass the
6769 requested function's address to gdbarch_return_value.
6770 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6771 New function_value member, replacing function_type.
6772 (bpfinishpy_dealloc): Update accordingly.
6773 (bpfinishpy_pre_stop_hook): Likewise.
6774 (bpfinishpy_init): Likewise. Record the requested function's
6775 address.
6776 * mips-tdep.c (mips_fval_reg): New enum.
6777 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6778 words put in GP registers.
6779 (mips_o64_push_dummy_call): Update a comment.
6780 (mips_o32_return_value): Take a pointer to struct value instead
6781 of struct type for the function requested and use it to check if
6782 using the MIPS16 calling convention. Return the designated
6783 general purpose registers for floating-point values returned in
6784 MIPS16 mode.
6785 (mips_o64_return_value): Likewise.
6786 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6787 (ppc_sysv_abi_broken_return_value): Likewise.
6788 (ppc64_sysv_abi_return_value): Likewise.
6789 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6790 value instead of struct type for the function requested.
6791 * amd64-tdep.c (amd64_return_value): Likewise.
6792 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6793 * arm-tdep.c (arm_return_value): Likewise.
6794 * avr-tdep.c (avr_return_value): Likewise.
6795 * bfin-tdep.c (bfin_return_value): Likewise.
6796 * cris-tdep.c (cris_return_value): Likewise.
6797 * frv-tdep.c (frv_return_value): Likewise.
6798 * h8300-tdep.c (h8300_return_value): Likewise.
6799 (h8300h_return_value): Likewise.
6800 * hppa-tdep.c (hppa32_return_value): Likewise.
6801 (hppa64_return_value): Likewise.
6802 * i386-tdep.c (i386_return_value): Likewise.
6803 * ia64-tdep.c (ia64_return_value): Likewise.
6804 * iq2000-tdep.c (iq2000_return_value): Likewise.
6805 * lm32-tdep.c (lm32_return_value): Likewise.
6806 * m32c-tdep.c (m32c_return_value): Likewise.
6807 * m32r-tdep.c (m32r_return_value): Likewise.
6808 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6809 * m68k-tdep.c (m68k_return_value): Likewise.
6810 (m68k_svr4_return_value): Likewise.
6811 * m88k-tdep.c (m88k_return_value): Likewise.
6812 * mep-tdep.c (mep_return_value): Likewise.
6813 * microblaze-tdep.c (microblaze_return_value): Likewise.
6814 * mn10300-tdep.c (mn10300_return_value): Likewise.
6815 * moxie-tdep.c (moxie_return_value): Likewise.
6816 * mt-tdep.c (mt_return_value): Likewise.
6817 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6818 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6819 (ppc_sysv_abi_broken_return_value): Likewise.
6820 (ppc64_sysv_abi_return_value): Likewise.
6821 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6822 * rl78-tdep.c (rl78_return_value): Likewise.
6823 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6824 * rx-tdep.c (rx_return_value): Likewise.
6825 * s390-tdep.c (s390_return_value): Likewise.
6826 * score-tdep.c (score_return_value): Likewise.
6827 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6828 (sh_return_value_fpu): Likewise.
6829 * sh64-tdep.c (sh64_return_value): Likewise.
6830 * sparc-tdep.c (sparc32_return_value): Likewise.
6831 * sparc64-tdep.c (sparc64_return_value): Likewise.
6832 * spu-tdep.c (spu_return_value): Likewise.
6833 * tic6x-tdep.c (tic6x_return_value): Likewise.
6834 * v850-tdep.c (v850_return_value): Likewise.
6835 * vax-tdep.c (vax_return_value): Likewise.
6836 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6837 * xtensa-tdep.c (xtensa_return_value): Likewise.
6838 * gdbarch.c: Regenerate.
6839 * gdbarch.h: Regenerate.
6840
6841 2012-05-15 Tom Tromey <tromey@redhat.com>
6842
6843 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6844
6845 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6846
6847 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6848 of command in two error message.
6849
6850 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6851
6852 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6853
6854 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6855
6856 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6857
6858 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6859
6860 * NEWS (show auto-load scripts-directory): Add forgotten command.
6861
6862 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6863
6864 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6865 parameters.
6866
6867 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6868
6869 * amd64-tdep.c: Include features/i386/x32.c and
6870 features/i386/x32-avx.c.
6871 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6872 initialize_tdesc_x32_avx.
6873
6874 2012-05-14 Stan Shebs <stan@codesourcery.com>
6875
6876 Add dynamic printf.
6877 * breakpoint.h (enum bptype): New type bp_dprintf.
6878 (struct breakpoint): New field extra_string.
6879 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6880 (create_breakpoint): Add extra_string arg.
6881 * breakpoint.c (dprintf_breakpoint_ops): New.
6882 (is_breakpoint): Add bp_dprintf.
6883 (bpstat_what): Add dprintf case.
6884 (bptype_string): Ditto.
6885 (print_one_breakpoint_location): Ditto.
6886 (init_bp_location): Ditto.
6887 (bkpt_print_mention): Ditto.
6888 (dprintf_style_enums): New array.
6889 (dprintf_style): New global.
6890 (dprintf_function): New global.
6891 (dprintf_channel): New global.
6892 (update_dprintf_command_list): New function.
6893 (update_dprintf_commands): New function.
6894 (init_breakpoint_sal): Add extra_string argument, handle it.
6895 (create_breakpoint_sal): Add extra_string argument.
6896 (create_breakpoints_sal): Add extra_string argument, update callers.
6897 (find_condition_and_thread): Add extra argument.
6898 (create_breakpoint): Add extra_string argument, record it.
6899 (dprintf_command): New function.
6900 (break_command_1): Add arg to create_breakpoint call.
6901 (handle_gnu_v3_exceptions): Ditto.
6902 (trace_command): Ditto.
6903 (ftrace_command): Ditto.
6904 (strace_command): Ditto.
6905 (bkpt_print_mention): Add dprintf case.
6906 (create_breakpoint_sal_default): Add extra_string argument.
6907 (_initialize_breakpoint): Add new commands.
6908 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6909 * python/py-breakpoint.c (bppy_init): Ditto.
6910 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6911
6912 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6913
6914 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6915
6916 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6917
6918 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6919 unsigned long long.
6920
6921 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6922
6923 Add a new function gdb.find_pc_line to the Python API.
6924 * NEWS (Python Scripting): Add entry about the new function.
6925 * python/python.c (gdbpy_find_pc_line): New function which
6926 implements gdb.find_pc_line.
6927 (GdbMethods): Add entry for the new function.
6928
6929 2012-05-12 Pedro Alves <palves@redhat.com>
6930
6931 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6932 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6933
6934 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6935
6936 * inferior.c: Include completer.h
6937 (initialize_inferiors): Set completer of add-inferior to
6938 filename_completer.
6939
6940 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6941
6942 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6943 gdbarch_ptr_bit for x32 core dump.
6944
6945 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6946
6947 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6948 and features/i386/x32-avx-linux.c.
6949
6950 2012-05-11 Stan Shebs <stan@codesourcery.com>
6951 Kwok Cheung Yeung <kcy@codesourcery.com>
6952
6953 * NEWS: Describe new info os commands.
6954 * common/linux-osdata.c (PID_T, TIME_T): Define.
6955 (MAX_PID_T_STRLEN): New.
6956 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6957 MAX_PID_T_STRLEN.
6958 (command_from_pid): Add comment. Change to use PID_T.
6959 (commandline_from_pid): Change to use PID_T.
6960 (user_from_pid): Add comment.
6961 (get_process_owner): Add comment. Change to use PID_T and
6962 MAX_PID_T_STRLEN.
6963 (get_number_of_cpu_cores): Add comment.
6964 (get_cores_used_by_process): Add comment. Change to use PID_T and
6965 MAX_PID_T_STRLEN.
6966 (linux_xfer_osdata_processes): Change to use PID_T and
6967 MAX_PID_T_STRLEN.
6968 (compare_processes): New function.
6969 (linux_xfer_osdata_processgroups): New function.
6970 (linux_xfer_osdata_threads): Change to use PID_T.
6971 (linux_xfer_osdata_fds): New function.
6972 (format_socket_state, print_sockets): New functions.
6973 (union socket_addr): New union.
6974 (linux_xfer_osdata_isockets): New function.
6975 (time_from_time_t, group_from_gid): New functions.
6976 (linux_xfer_osdata_shm): New function.
6977 (linux_xfer_osdata_sem): New function.
6978 (linux_xfer_osdata_msg): New function.
6979 (linux_xfer_osdata_modules): New function.
6980 (osdata_table): Add new entries.
6981 * common/buffer.c (buffer_xml_printf): Add support for long and
6982 long long format specifiers.
6983
6984 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6985
6986 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6987 (tdesc_x32_avx_linux): Likewise.
6988
6989 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6990
6991 Implement multi-component --with-auto-load-dir.
6992 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6993 entries.
6994 (--with-auto-load-safe-path): Update the default value description.
6995 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6996 New.
6997 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6998 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6999 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7000 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7001 "set auto-load scripts-directory".
7002 * config.in: Regenerate.
7003 * configure: Regenerate.
7004 * configure.ac (--with-auto-load-dir): New configure option.
7005 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7006
7007 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7008
7009 Provide $ddir substitution for --with-auto-load-safe-path.
7010 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7011 entries.
7012 * auto-load.c: Include observer.h.
7013 (auto_load_safe_path_vec_update): Call substitute_path_component for
7014 each component. New variable ddir_subst.
7015 (auto_load_gdb_datadir_changed): New function.
7016 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7017 AUTO_LOAD_SAFE_PATH. New comment.
7018 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7019 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7020 * config.in: Regenerate.
7021 * configure: Regenerate.
7022 * configure.ac (--auto-load-safe-path): Rename
7023 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7024 GDB_DATADIR/auto-load.
7025 * defs.h (substitute_path_component): New declaration.
7026 * top.c: Include observer.h.
7027 (set_gdb_datadir): New function.
7028 (init_main): Install it for "set data-directory".
7029 * utils.c (substitute_path_component): New function.
7030
7031 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7032
7033 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7034 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7035 DEBUG_FILE_DIRECTORY. Handle multiple components of
7036 DEBUG_FILE_DIRECTORY.
7037
7038 2012-05-10 Tom Tromey <tromey@redhat.com>
7039
7040 * dwarf2read.c (recursively_write_psymbols): New function.
7041 (write_psymtabs_to_index): Use it.
7042
7043 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7044 field.
7045 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7046 (load_partial_comp_unit): Update.
7047 (queue_comp_unit): Add argument 'pretend_language'.
7048 (process_queue): Update.
7049 (psymtab_to_symtab_1): Skip dependencies that have a user.
7050 (load_partial_comp_unit_reader): Give meaning to the 'data'
7051 argument.
7052 (load_full_comp_unit): Add 'pretend_language' argument.
7053 (process_full_comp_unit): Add 'pretend_language' argument. Set
7054 language on CU.
7055 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7056 Update.
7057 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7058 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7059 Update.
7060 (prepare_one_comp_unit): Add 'pretend_language' argument.
7061
7062 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7063 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7064 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7065 (dw2_do_instantiate_symtab): Check whether symtab was read in
7066 before queueing.
7067 (dw2_instantiate_symtab): Add assertion. Call
7068 process_cu_includes.
7069 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7070 (partial_symtab_p): New typedef.
7071 (set_partial_user): New function.
7072 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7073 (scan_partial_symbols): Add imported CU to imported_symtabs.
7074 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7075 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7076 (get_symtab, recursively_compute_inclusions)
7077 (compute_symtab_includes, process_cu_includes)
7078 (process_imported_unit_die): New functions.
7079 (process_die) <DW_TAG_imported_unit>: New case.
7080 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7081
7082 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7083 comment.
7084 (struct partial_die_info) <locdesc>: Remove.
7085 <d>: New field.
7086 (process_psymtab_comp_unit): Add 'read_partial' argument.
7087 Update.
7088 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7089 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7090 (add_partial_symbol): Update.
7091 (process_die): Handle DW_TAG_partial_unit.
7092 (read_file_scope): Update comment.
7093 (load_partial_dies): Handle DW_TAG_imported_unit.
7094 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7095 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7096
7097 2012-05-10 Tom Tromey <tromey@redhat.com>
7098
7099 * cc-with-dwz.sh: New file.
7100
7101 2012-05-10 Tom Tromey <tromey@redhat.com>
7102
7103 * symtab.h (struct symtab) <includes, user>: New fields.
7104 * block.h (struct block_iterator) <d, idx, which>: New fields.
7105 * block.c (initialize_block_iterator, find_iterator_symtab)
7106 (block_iterator_step, block_iter_name_step)
7107 (block_iter_match_step): New functions.
7108 (block_iterator_first, block_iterator_next)
7109 (block_iter_name_first, block_iter_name_next)
7110 (block_iter_match_first, block_iter_match_next): Rewrite.
7111 (get_block_symtab): New function.
7112
7113 2012-05-10 Tom Tromey <tromey@redhat.com>
7114
7115 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7116 set_block_symtab.
7117 * jit.c (finalize_symtab): Use allocate_global_block,
7118 set_block_symtab.
7119 * buildsym.c (finish_block_internal): New function, from old
7120 finish_block.
7121 (finish_block): Rewrite.
7122 (end_symtab): Use finish_block_internal, set_block_symtab.
7123 * block.h (struct global_block): New.
7124 (allocate_global_block, set_block_symtab): Declare.
7125 * block.c (allocate_global_block, set_block_symtab): New
7126 functions.
7127
7128 2012-05-10 Tom Tromey <tromey@redhat.com>
7129
7130 * psymtab.c (partial_map_expand_apply): Add assertion.
7131 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7132 (psymtab_to_symtab): Find unshared psymtab.
7133 (dump_psymtab): Print including psymtabs.
7134 (recursively_search_psymtabs): New function.
7135 (expand_symtabs_matching_via_partial): Use it.
7136 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7137 fields.
7138 (enum psymtab_search_status): New.
7139
7140 2012-05-10 Tom Tromey <tromey@redhat.com>
7141
7142 * tracepoint.c (scope_info): Update.
7143 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7144 (find_pc_sect_symtab, search_symbols)
7145 (default_make_symbol_completion_list_break_on)
7146 (make_file_symbol_completion_list): Update.
7147 * symmisc.c (dump_symtab_1): Update.
7148 * stack.c (print_frame_args, iterate_over_block_locals)
7149 (print_frame_labels, iterate_over_block_arg_vars): Update.
7150 * python/py-block.c (block_object) <dict>: Remove.
7151 <block>: New field.
7152 <iter>: Change type.
7153 (blpy_iter): Update.
7154 (blpy_block_syms_iternext): Update.
7155 * psymtab.c (map_block): Use block iterators.
7156 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7157 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7158 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7159 * infrun.c (check_exception_resume): Update.
7160 * cp-support.c (make_symbol_overload_list_block): Update.
7161 * coffread.c (patch_opaque_types): Update.
7162 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7163 * block.h (struct block_iterator): New.
7164 (block_iterator_first, block_iterator_next, block_iter_name_first)
7165 (block_iter_name_next, block_iter_match_first)
7166 (block_iter_match_next): Declare.
7167 (ALL_BLOCK_SYMBOLS): Redefine.
7168 * block.c (block_iterator_first, block_iterator_next)
7169 (block_iter_name_first, block_iter_name_next)
7170 (block_iter_match_first, block_iter_match_next): New functions.
7171 * ada-lang.c (ada_add_block_symbols)
7172 (ada_make_symbol_completion_list): Use block iterator.
7173
7174 2012-05-10 Tom Tromey <tromey@redhat.com>
7175
7176 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7177 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7178 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7179 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7180 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7181 Update.
7182
7183 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7184
7185 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7186 print-file-var-lib2.c, print-file-var-main.c and
7187 print-file-var.exp (located in gdb/testsuite/gdb.base).
7188
7189 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7190
7191 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7192 try locating the symbol in the symbol's own objfile first, before
7193 extending the search to all objfiles.
7194 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7195 out of lookup_symbol_aux_symtabs.
7196 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7197 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7198 Do not search EXCLUDE_OBJFILE.
7199 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7200 (lookup_symbol_global): Search for matches in the block's objfile
7201 first, before searching all other objfiles.
7202
7203 2012-05-10 Tristan Gingold <gingold@adacore.com>
7204
7205 * printcmd.c (set_command): Add pre/post inc/dec.
7206
7207 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7208
7209 * gdb.1: Document -ex option.
7210
7211 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7212
7213 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7214 * inferior.h (AT_SYMBOL): Delete.
7215
7216 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7217
7218 * mips-tdep.c (mips_push_dummy_code): New function.
7219 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7220 ON_STACK and install mips_push_dummy_code as our gdbarch
7221 push_dummy_code routine.
7222
7223 2012-05-09 Pedro Alves <palves@redhat.com>
7224
7225 * target.c (set_maintenance_target_async_permitted): Rename to ...
7226 (set_target_async_command): ... this.
7227 (show_maintenance_target_async_permitted): Rename to ...
7228 (show_target_async_command): ... this.
7229 (initialize_targets): Adjust.
7230
7231 2012-05-08 Doug Evans <dje@google.com>
7232
7233 * go-exp.y (classify_name): Add missing assignment of fields of
7234 yylval.ssym.
7235
7236 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7237
7238 Display the ">" prompt in interactive mode while reading canned
7239 commands, even when the current interpreter is MI.
7240
7241 * interps.c (interp_set_temp): New function.
7242
7243 * interps.h (interp_set_temp): Add prototype.
7244
7245 * cli/cli-script.c (restore_interp): New cleanup function.
7246 (read_command_lines): Temporarily override the current interpreter
7247 with CLI and arrange for restoring the original one.
7248
7249 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7250
7251 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7252
7253 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7254
7255 * probe.c (parse_probes): Move conditional to check for
7256 debuginfo files from here...
7257 * stap-probe.c (stap_get_probes): ... to here.
7258
7259 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7260 H.J. Lu <hongjiu.lu@intel.com>
7261
7262 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7263 `movl %esp, %ebp' for the X32 ABI.
7264
7265 2012-05-07 Tom Tromey <tromey@redhat.com>
7266
7267 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7268 get_DW_TAG_name.
7269 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7270 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7271 (dwarf_stack_op_name): Remove.
7272 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7273 (decode_locdesc): Use get_DW_OP_name.
7274 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7275 (dwarf2_compile_expr_to_ax): Likewise.
7276 (disassemble_dwarf_expression): Likewise.
7277 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7278
7279 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7280
7281 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7282 (sh_linux_sigtramp_cache): New function.
7283 (sh_linux_sigreturn_init): New function.
7284 (sh_linux_rt_sigreturn_init): New function.
7285 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7286 patterns.
7287 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7288 syscall codes.
7289 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7290 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7291 (sh_linux_init_abi): Add init calls to register new tramp_frame
7292 definitions under 32-bit SH, update comments.
7293
7294 2012-05-07 Pedro Alves <palves@redhat.com>
7295
7296 PR gdb/10952
7297
7298 * amd64-linux-tdep.c: Include glibc-tdep.h.
7299 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7300 gdbarch_skip_solib_resolver callback.
7301
7302 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7303
7304 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7305 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7306 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7307 (add_auto_load_safe_path): Change the error message.
7308 (_initialize_auto_load): Change the "safe-path" help text.
7309 * configure: Regenerate
7310 * configure.ac (--without-auto-load-safe-path): Set
7311 WITH_AUTO_LOAD_SAFE_PATH to /.
7312
7313 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7314
7315 * stap-probe.h: Do not include unecessary `probe.h'.
7316
7317 2012-05-05 Alan Modra <amodra@gmail.com>
7318
7319 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7320 bfd_und_section_ptr.
7321 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7322 and bfd_com_section_ptr.
7323
7324 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7325
7326 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7327
7328 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7329
7330 * windows-nat.h (segment_register_p_ftype): New typedef.
7331 (windows_set_segment_register_p): Add declaration.
7332 * windows-nat.c (segment_register_p): New static global.
7333 (windows_set_segment_register_p): New function.
7334 (do_windows_fetch_inferior_registers): Add special handling
7335 for segment registers.
7336 * amd64-windows-nat.c: #include "amd64-tdep.h".
7337 (amd64_windows_segment_register_p): New function.
7338 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7339 * i386-windows-nat.c: #include "i386-tdep.h".
7340 (i386_windows_segment_register_p): New function.
7341 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7342
7343 2012-05-04 Tristan Gingold <gingold@adacore.com>
7344
7345 * printcmd.c (set_command): Emit a warning if the expression is not
7346 an assignment.
7347
7348 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7349
7350 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7351 Make static.
7352
7353 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7354
7355 * stap-probe.c (stap_is_operator): Change declaration.
7356 (stap_get_opcode): Change return value.
7357 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7358 `stap_parse_argument_1'.
7359
7360 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7361
7362 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7363 debug log.
7364
7365 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7366
7367 Add two new methods global_block and static_block to gdb.Symtab
7368 objects.
7369 * NEWS (Python scripting): Add entry about the new methods.
7370 * python/py-symtab.c (stpy_global_block): New function which
7371 implements the gdb.Symtab.global_block() method.
7372 (stpy_static_block): New function which implements the
7373 gdb.Symtab.static_block() method.
7374 (symtab_object_methods): Add entries for the two new methods.
7375
7376 2012-05-03 Doug Evans <dje@google.com>
7377
7378 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7379 files.
7380
7381 2012-05-03 Yao Qi <yao@codesourcery.com>
7382
7383 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7384 space.
7385 (i386_process_record): Ditto.
7386
7387 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7388
7389 * infcall.c (unwind_on_signal_p): Make static.
7390
7391 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7392
7393 * sol-thread.c (solaris_pid_to_str): Make static.
7394 (_initialize_sol_thread): Add prototype.
7395
7396 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7397
7398 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7399
7400 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7401
7402 * MAINTAINERS: Remove myself.
7403
7404 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7405
7406 Fix --without-auto-load-safe-path for MS-Windows host platform.
7407 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7408
7409 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7410
7411 * gdb_curses.h: Undefine KEY_EVENT before including curses
7412 headers. Move "#undef MOUSE_MOVED" before any curses header
7413 inclusion.
7414
7415 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7416
7417 * features/i386/i386-mmx-linux.c: Regenerate.
7418 * features/rs6000/powerpc-32.c: Likewise.
7419 * features/rs6000/powerpc-32l.c: Likewise.
7420 * features/rs6000/powerpc-403.c: Likewise.
7421 * features/rs6000/powerpc-403gc.c: Likewise.
7422 * features/rs6000/powerpc-405.c: Likewise.
7423 * features/rs6000/powerpc-505.c: Likewise.
7424 * features/rs6000/powerpc-601.c: Likewise.
7425 * features/rs6000/powerpc-602.c: Likewise.
7426 * features/rs6000/powerpc-603.c: Likewise.
7427 * features/rs6000/powerpc-604.c: Likewise.
7428 * features/rs6000/powerpc-64.c: Likewise.
7429 * features/rs6000/powerpc-64l.c: Likewise.
7430 * features/rs6000/powerpc-750.c: Likewise.
7431 * features/rs6000/powerpc-860.c: Likewise.
7432 * features/rs6000/powerpc-e500.c: Likewise.
7433 * features/rs6000/powerpc-e500l.c: Likewise.
7434 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7435 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7436 * features/rs6000/rs6000.c: Likewise.
7437
7438 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7439
7440 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7441 variable.
7442 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7443 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7444 (stap_parse_argument) <e>: Likewise.
7445 (handle_stap_probe) <byte_order>: Likewise.
7446
7447 2012-04-30 Doug Evans <dje@google.com>
7448
7449 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7450 init_and_read_dies_worker. All callers updated.
7451 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7452 replaced with init_cutu_and_read_dies.
7453 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7454 (find_partial_die): Remove FIXME. Don't free current CU.
7455
7456 2012-04-30 Sterling Augustine <saugustine@google.com>
7457
7458 * contrib: New directory.
7459 * contrib/test_pubnames_and_indexes.py: New file.
7460
7461 2012-04-30 Doug Evans <dje@google.com>
7462
7463 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7464 All callers updated.
7465 (init_cu_die_reader): Verify the section is non-empty.
7466 (dwarf_decode_line_header): Don't dereference section->asection
7467 until we know the section is present.
7468
7469 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7470
7471 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7472 probes.
7473
7474 2012-04-29 Yao Qi <yao@codesourcery.com>
7475
7476 * gdb-code-style.el: New hook gdb-markup-hook
7477 and gdb-comment-hook.
7478
7479 2012-04-28 Doug Evans <dje@google.com>
7480
7481 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7482 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7483 objfile->obfd.
7484 * symfile.h (dwarf2_debug_sections): New member addr.
7485 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7486 (ctx_no_get_addr_index): New function.
7487 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7488 (ctx_no_get_addr_index): Declare.
7489 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7490 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7491 (dwarf_expr_ctx_funcs): Update.
7492 (needs_get_addr_index): New function.
7493 (needs_frame_ctx_funcs): Update.
7494 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7495 * dwarf2read.c: #include "gdbcore.h".
7496 (dwarf2_per_objfile): New members addr, dwo_files.
7497 (dwarf2_elf_names): Add entry for addr.
7498 (struct dwo_section_names): New type.
7499 (dwo_section_names): New static global.
7500 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7501 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7502 old debug_types_section member updated to use this.
7503 Rename member debug_types_section to info_or_types_section,
7504 all uses updated.
7505 (signatured_type): Rename member type_offset to type_offset_in_tu,
7506 all uses updated. New member type_offset_in_section.
7507 (struct dwo_sections): New type.
7508 (struct dwo_unit): New type.
7509 (struct dwo_file): New type.
7510 (die_reader_specs): New member dwo_file.
7511 (dwarf2_locate_sections): Watch for .debug_addr.
7512 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7513 (dwarf2_read_section): Get bfd of section from bfd's asection,
7514 instead of objfile.
7515 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7516 (create_signatured_type_table_from_index): Initialize
7517 sig_type->info_or_types_section.
7518 (dw2_get_file_names): Statement lists for type units with DWO files
7519 live in the DWO file.
7520 (create_debug_types_hash_table): New function.
7521 (create_all_type_units): Rewrite.
7522 (init_cu_die_reader): New arg dwo_file, all callers updated.
7523 (init_and_read_dies_worker): Get section from
7524 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7525 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7526 continue reading the CU/TU from there.
7527 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7528 updated. Get section from this_cu->info_or_types_section.
7529 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7530 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7531 DW_FORM_GNU_str_index.
7532 (hash_dwo_file, eq_dwo_file): New functions.
7533 (allocate_dwo_file_hash_table): New function.
7534 (hash_dwo_unit, eq_dwo_unit): New functions.
7535 (allocate_dwo_unit_table): New function.
7536 (dwarf2_locate_dwo_sections): New function.
7537 (struct create_dwo_info_table_data): New type.
7538 (create_debug_info_hash_table_reader): New function.
7539 (create_debug_info_hash_table): New function.
7540 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7541 (lookup_dwo_file): New function.
7542 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7543 (free_dwo_file, free_dwo_file_cleanup): New functions.
7544 (free_dwo_file_from_slot, free_dwo_files): New functions.
7545 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7546 (dwarf2_record_block_ranges): Ditto.
7547 (read_partial_die): Ditto.
7548 (process_enumeration_scope): Update to use type_offset_in_section.
7549 (read_full_die_1): New function.
7550 (read_full_die): Rewrite.
7551 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7552 DW_FORM_GNU_str_index.
7553 (read_addr_index_1, read_addr_index): New functions.
7554 (read_addr_index_from_leb128): New function.
7555 (struct dwarf2_read_addr_index_data): New type.
7556 (dwarf2_read_addr_index_reader): New function.
7557 (dwarf2_read_addr_index): New function.
7558 (read_str_index): New function.
7559 (leb128_size): New function.
7560 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7561 If processing a type unit from a DWO file, get the line section
7562 from the DWO file.
7563 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7564 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7565 DW_FORM_GNU_str_index.
7566 (lookup_die_type): Check whether section offset of type's die is
7567 known before looking it up. Remove assert. Condition can
7568 legimately happen for inter-cu type references.
7569 (dwarf_attr_name): Handle Fission attributes.
7570 (dwarf_form_name): Handle Fission forms.
7571 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7572 DW_FORM_GNU_str_index.
7573 (follow_die_sig): Update to use type_offset_in_section.
7574 (decode_locdesc): New case DW_OP_GNU_addr_index.
7575 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7576 DW_FORM_GNU_str_index.
7577 (cu_debug_loc_section): New function.
7578 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7579 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7580 Free DWO files if present.
7581 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7582
7583 Refactor DIE reading.
7584 * dwarf2read.c (dwarf2_per_objfile): Replace members
7585 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7586 (die_reader_specs): New member "die_section". Temporarily make
7587 member "buffer" non-const, pending constifying all info_ptr uses.
7588 (die_reader_func_ftype): New typedef.
7589 (dw2_get_file_names_reader): New function.
7590 (dw2_get_file_names): Rewrite.
7591 (read_and_check_type_unit_head): Rename arg type_offset to
7592 type_offset_in_tu.
7593 (create_all_type_units): Improve debugging message.
7594 Improve dummy type unit check.
7595 (init_cu_die_reader): New arg "section". All callers updated.
7596 (init_and_read_dies_worker): New function.
7597 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7598 (init_cutu_and_read_dies_no_follow): New function.
7599 (init_cutu_and_read_dies_simple): New function.
7600 (process_psymtab_comp_unit_reader): New function.
7601 (process_psymtab_comp_unit): Delete args section,
7602 is_debug_types_section. Rewrite. All callers updated.
7603 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7604 All callers updated. Rewrite.
7605 (load_partial_comp_unit_reader): New function.
7606 (load_partial_comp_unit): Rewrite.
7607 (skip_children): New arg reader. Delete args buffer, cu.
7608 All callers updated.
7609 (skip_one_die): New arg reader. Delete args buffer, cu.
7610 All callers updated.
7611 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7612 All callers updated.
7613 (load_full_comp_unit_reader): New function.
7614 (load_full_comp_unit): Rewrite.
7615 (read_comp_unit): Delete.
7616 (read_die_and_children_1): Delete, contents moved ...
7617 (read_die_and_children): ... here.
7618 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7619 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7620 All callers updated.
7621 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7622 All callers updated.
7623 (find_partial_die): Rewrite load_all_dies support.
7624 (read_attribute_value): New arg reader. Delete args abfd, cu.
7625 All callers updated.
7626 (read_attribute): New arg reader. Delete args abfd, cu.
7627 All callers updated.
7628 (load_full_type_unit): Add assert.
7629 (read_signatured_type_reader): New function.
7630 (read_signatured_type): Rewrite.
7631 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7632 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7633 All callers updated. Set per_cu->cu = NULL after freeing it.
7634 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7635 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7636 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7637 (set_die_type): Update.
7638 (get_die_type_at_offset): Update.
7639 (read_file_scope): Call prepare_one_comp_unit.
7640 (read_type_unit_scope): Ditto.
7641 (prepare_one_comp_unit): Set producer if present.
7642
7643 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7644
7645 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7646 gettext function on `error'.
7647
7648 2012-04-27 Doug Evans <dje@google.com>
7649
7650 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7651 is empty.
7652
7653 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7654 Tom Tromey <tromey@redhat.com>
7655
7656 * breakpoint.c (struct breakpoint_objfile_data)
7657 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7658 <exception_probes>: New fields.
7659 (free_breakpoint_probes): New function.
7660 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7661 `_Unwind_DebugHook'.
7662 (create_exception_master_breakpoint): Likewise.
7663 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7664 * infrun.c: Including necessary header files for handling SystemTap
7665 probes.
7666 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7667 via SystemTap probes.
7668 (check_exception_resume): Remove `func' argument. Handle exception
7669 unwinding breakpoint set via a SystemTap probe.
7670 (insert_exception_resume_from_probe): New function.
7671
7672 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7673 Tom Tromey <tromey@redhat.com>
7674 Jan Kratochvil <jan.kratochvil@redhat.com>
7675
7676 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7677 (COMMON_OBS): Likewise.
7678 (HFILES_NO_SRCDIR): Add `probe'.
7679 * NEWS: Mention support for static and SystemTap probes.
7680 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7681 SystemTap probes' arguments parser.
7682 * arm-linux-tdep.c: Including headers needed to perform the parsing
7683 of SystemTap probes' arguments.
7684 (arm_stap_is_single_operand): New function.
7685 (arm_stap_parse_special_token): Likewise.
7686 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7687 probes' arguments parser.
7688 * ax-gdb.c (require_rvalue): Removing static declaration.
7689 (gen_expr): Likewise.
7690 * ax-gdb.h (gen_expr): Declaring function.
7691 (require_rvalue): Likewise.
7692 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7693 (bkpt_probe_breakpoint_ops): New variable.
7694 (momentary_breakpoint_from_master): Set the `probe' value.
7695 (add_location_to_breakpoint): Likewise.
7696 (break_command_1): Using proper breakpoint_ops according to the
7697 argument passed by the user in the command line.
7698 (bkpt_probe_insert_location): New function.
7699 (bkpt_probe_remove_location): Likewise.
7700 (bkpt_probe_create_sals_from_address): Likewise.
7701 (bkpt_probe_decode_linespec): Likewise.
7702 (tracepoint_probe_create_sals_from_address): Likewise.
7703 (tracepoint_probe_decode_linespec): Likewise.
7704 (tracepoint_probe_breakpoint_ops): New variable.
7705 (trace_command): Using proper breakpoint_ops according to the
7706 argument passed by the user in the command line.
7707 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7708 static probes on breakpoints and tracepoints.
7709 * breakpoint.h (struct bp_location) <probe>: New field.
7710 * cli-utils.c (skip_spaces_const): New function.
7711 (extract_arg): Likewise.
7712 * cli-utils.h (skip_spaces_const): Likewise.
7713 (extract_arg): Likewise.
7714 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7715 * configure.ac: Append `stap-probe.o' to be generated when ELF
7716 support is present.
7717 * configure: Regenerate.
7718 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7719 * elfread.c: Include `probe.h' and `arch-utils.h'.
7720 (probe_key): New variable.
7721 (elf_get_probes): New function.
7722 (elf_get_probe_argument_count): Likewise.
7723 (elf_evaluate_probe_argument): Likewise.
7724 (elf_compile_to_ax): Likewise.
7725 (elf_symfile_relocate_probe): Likewise.
7726 (stap_probe_key_free): Likewise.
7727 (elf_probe_fns): New variable.
7728 (elf_sym_fns): Add `sym_probe_fns' value.
7729 (elf_sym_fns_lazy_psyms): Likewise.
7730 (elf_sym_fns_gdb_index): Likewise.
7731 (_initialize_elfread): Initialize objfile cache for static
7732 probes.
7733 * gdb_vecs.h (struct probe): New forward declaration.
7734 (probe_p): New VEC declaration.
7735 * gdbarch.c: Regenerate.
7736 * gdbarch.h: Regenerate.
7737 * gdbarch.sh (stap_integer_prefix): New variable.
7738 (stap_integer_suffix): Likewise.
7739 (stap_register_prefix): Likewise.
7740 (stap_register_suffix): Likewise.
7741 (stap_register_indirection_prefix): Likewise.
7742 (stap_register_indirection_suffix): Likewise.
7743 (stap_gdb_register_prefix): Likewise.
7744 (stap_gdb_register_suffix): Likewise.
7745 (stap_is_single_operand): New function.
7746 (stap_parse_special_token): Likewise.
7747 (struct stap_parse_info): Forward declaration.
7748 * i386-tdep.c: Including headers needed to perform the parsing
7749 of SystemTap probes' arguments.
7750 (i386_stap_is_single_operand): New function.
7751 (i386_stap_parse_special_token): Likewise.
7752 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7753 probes' arguments parser.
7754 * i386-tdep.h (i386_stap_is_single_operand): New function.
7755 (i386_stap_parse_special_token): Likewise.
7756 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7757 * mipsread.c (ecoff_sym_fns): Likewise.
7758 * objfiles.c (objfile_relocate1): Support relocation for static
7759 probes.
7760 * parse.c (prefixify_expression): Remove static declaration.
7761 (initialize_expout): Likewise.
7762 (reallocate_expout): Likewise.
7763 * parser-defs.h (initialize_expout): Declare function.
7764 (reallocate_expout): Likewise.
7765 (prefixify_expression): Likewise.
7766 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7767 of SystemTap probes' arguments.
7768 (ppc_stap_is_single_operand): New function.
7769 (ppc_stap_parse_special_token): Likewise.
7770 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7771 probes' arguments parser.
7772 * probe.c: New file, for generic statically defined probe support.
7773 * probe.h: Likewise.
7774 * s390-tdep.c: Including headers needed to perform the parsing of
7775 SystemTap probes' arguments.
7776 (s390_stap_is_single_operand): New function.
7777 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7778 probes' arguments parser.
7779 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7780 * stap-probe.c: New file, for SystemTap probe support.
7781 * stap-probe.h: Likewise.
7782 * symfile.h: Include `gdb_vecs.h'.
7783 (struct sym_probe_fns): New struct.
7784 (struct sym_fns) <sym_probe_fns>: New field.
7785 * symtab.c (init_sal): Initialize `probe' field.
7786 * symtab.h (struct probe): Forward declaration.
7787 (struct symtab_and_line) <probe>: New field.
7788 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7789 locations.
7790 (stop_tracing): Likewise.
7791 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7792
7793 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7794 Tom Tromey <tromey@redhat.com>
7795
7796 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7797 and to compile agent expressions.
7798 * infrun.c (siginfo_make_value): New argument `ignore'.
7799 (siginfo_funcs): New struct.
7800 (_initialize_infrun): New argument when calling
7801 `create_internalvar_type_lazy'.
7802 * thread.c (thread_id_make_value): New argument `ignore'.
7803 (thread_funcs): New struct.
7804 (_initialize_thread): New argument when calling
7805 `create_internalvar_type_lazy'.
7806 * tracepoint.c (sdata_make_value): New argument `ignore'.
7807 (sdata_funcs): New struct.
7808 (_initialize_tracepoint): New argument when calling
7809 `create_internalvar_type_lazy'.
7810 * value.c (make_value): New struct.
7811 (create_internalvar_type_lazy): New argument `data'.
7812 (compile_internalvar_to_ax): New function.
7813 (value_of_internalvar): Properly handling `make_value' case.
7814 (clear_internalvar): Likewise.
7815 (show_convenience): Adding `TRY_CATCH' block.
7816 * value.h (internalvar_make_value): Delete, replace by...
7817 (struct internalvar_funcs): ... this.
7818 (create_internalvar_type_lazy) <fun>: Delete argument.
7819 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7820 (compile_internalvar_to_ax): New function.
7821 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7822 (tlb_funcs): New struct.
7823 (_initialize_windows_tdep): New argument when calling
7824 `create_internalvar_type_lazy'.
7825
7826 2012-04-27 Mark Wielaard <mjw@redhat.com>
7827
7828 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7829 see whether it is an address or a constant offset from DW_AT_low_pc.
7830 (dwarf2_record_block_ranges): Likewise.
7831 (read_partial_die): Likewise.
7832
7833 2012-04-26 Mark Wielaard <mjw@redhat.com>
7834
7835 * MAINTAINERS (Write After Approval): Add myself to the list.
7836
7837 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7838
7839 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7840 (proc_prettyprint_signal): Likewise.
7841 (proc_prettyprint_faultset): Likewise.
7842 (proc_prettyprint_fault): Likewise.
7843 (proc_prettyprint_actionset): Likewise.
7844 (proc_prettyprint_flags): Move to new proc-flags.c section.
7845 (proc_prettyfprint_flags): New prototype.
7846 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7847 (proc_syscall, proc_cursig): Likewise.
7848 (proc_set_kill_on_last_close): Likewise.
7849 (proc_unset_kill_on_last_close): Likewise.
7850 (proc_set_watchpoint): Make static.
7851 (proc_delete_dead_threads): Likewise.
7852 (procfs_set_watchpoint): Likewise.
7853 (_initialize_procfs): Add prototype.
7854 * proc-events.c: Include proc-utils.h.
7855 (init_syscall_table): Make static.
7856 * proc-api.c (_initialize_proc_api): Add prototype.
7857 * proc-flags.c: Include proc-utils.h.
7858
7859 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7860
7861 * configure.ac: Add AC_ARG_PROGRAM.
7862 * configure: Regenerate.
7863
7864 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7865
7866 Fix DW_AT_lower_bound defaults for DWARF-4+.
7867 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7868 high. New variable low_default_is_valid. Implement DWARF-4+
7869 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7870 no default by the DWARF standard.
7871
7872 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7873 Maciej W. Rozycki <macro@codesourcery.com>
7874
7875 * infrun.c (handle_inferior_event): Move the check for return
7876 trampolines ahead of the check for function trampolines.
7877 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7878 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7879 (mips_str_mips16_ret_stub): Likewise.
7880 (mips_str_call_fp_stub): Likewise.
7881 (mips_str_call_stub): Likewise.
7882 (mips_str_fn_stub): Likewise.
7883 (mips_str_pic): Likewise.
7884 (mips_in_frame_stub): New function.
7885 (mips_unwind_pc): Return the return address rather than the PC
7886 if the PC of an intermediate frame is inside a call thunk.
7887 (mips_is_stub_suffix): New function.
7888 (mips_is_stub_mode): Likewise.
7889 (mips_get_mips16_fn_stub_pc): Likewise.
7890 (mips_skip_mips16_trampoline_code): Update to handle all the
7891 currently generated stub types. Don't recurse into __fn_stub
7892 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7893 Use cooked register accesses.
7894 (mips_in_return_stub): Reintroduce function.
7895 (mips_skip_trampoline_code): Traverse trampolines recursively.
7896 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7897
7898 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7899
7900 GDB 7.4.1 released.
7901
7902 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7903
7904 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7905 * features/arm-with-m-vfp-d16.xml: New file. Describes
7906 Cortex-M with VFPv4-sp-d16 FPU register layout.
7907 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7908 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7909 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7910 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7911 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7912
7913 2012-04-25 Doug Evans <dje@google.com>
7914
7915 * cli/cli-decode.c (print_doc_line): Use stream instead of
7916 current_uiout.
7917
7918 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7919
7920 * features/arm-with-iwmmxt.c: Regenerate.
7921 * features/arm-with-m-fpa-layout.c: Likewise.
7922 * features/arm-with-m.c: Likewise.
7923 * features/arm-with-neon.c: Likewise.
7924 * features/arm-with-vfpv2.c: Likewise.
7925 * features/arm-with-vfpv3.c: Likewise.
7926 * features/mips-dsp-linux.c: Likewise.
7927 * features/mips-linux.c: Likewise.
7928 * features/mips64-dsp-linux.c: Likewise.
7929 * features/mips64-linux.c: Likewise.
7930 * features/s390-linux32.c: Likewise.
7931 * features/s390-linux32v1.c: Likewise.
7932 * features/s390-linux32v2.c: Likewise.
7933 * features/s390-linux64.c: Likewise.
7934 * features/s390-linux64v1.c: Likewise.
7935 * features/s390-linux64v2.c: Likewise.
7936 * features/s390x-linux64.c: Likewise.
7937 * features/s390x-linux64v1.c: Likewise.
7938 * features/s390x-linux64v2.c: Likewise.
7939 * features/tic6x-c62x-linux.c: Likewise.
7940 * features/tic6x-c62x.c: Likewise.
7941 * features/tic6x-c64x-linux.c: Likewise.
7942 * features/tic6x-c64x.c: Likewise.
7943 * features/tic6x-c64xp-linux.c: Likewise.
7944 * features/tic6x-c64xp.c: Likewise.
7945 * target-descriptions.c: Only generate `field_type' and `type'
7946 variables when needed.
7947
7948 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7949
7950 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7951
7952 2012-04-25 Doug Evans <dje@google.com>
7953
7954 Initial pass at Go language support.
7955 * NEWS: Mention Go.
7956 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7957 go-valprint.c.
7958 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7959 (YYFILES): Add go-exp.c.
7960 (YYOBJ): Add go-exp.o.
7961 (local-maintainer-clean): Delete go-exp.c.
7962 * defs.h (enum language): Add language_go.
7963 * dwarf2read.c: #include "go-lang.h".
7964 (fixup_go_packaging): New function.
7965 (process_full_comp_unit): Call it when processing Go CUs.
7966 (dwarf2_physname): Add Go support.
7967 (read_file_scope): Handle missing language spec for GNU Go.
7968 (set_cu_language): Handle DW_LANG_Go.
7969 * go-exp.y: New file.
7970 * go-lang.h: New file.
7971 * go-lang.c: New file.
7972 * go-typeprint.c: New file.
7973 * go-valprint.c: New file.
7974 * symtab.c: #include "go-lang.h".
7975 (symbol_set_language): Handle language_go.
7976 (symbol_find_demangled_name, symbol_set_names): Ditto.
7977 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7978
7979 2012-04-24 Jim Meyering <meyering@redhat.com>
7980
7981 avoid a few strncpy-induced buffer overruns
7982 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7983 fname and psargs before trying to concatenate.
7984 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7985 "name" before applying strchr.
7986
7987 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7988
7989 * CONTRIBUTE: Use unified diff instead of context diff when
7990 generating patches.
7991
7992 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7993
7994 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7995 code. Handle JR.HB correctly.
7996
7997 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7998
7999 * mips-tdep.c
8000 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8001 with the other MIPS16 helpers.
8002
8003 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8004
8005 * observer.sh: Conditionally declare `args', thus cleaning up
8006 unused instances of this variable.
8007
8008 2012-04-24 Yao Qi <yao@codesourcery.com>
8009
8010 Revert this patch to allow breakpoint always-inserted
8011 in record target.
8012 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8013 * breakpoint.c: Include record.h.
8014 (breakpoints_always_inserted_mode): Return false when the record
8015 target is in use.
8016
8017 * breakpoint.c (iterate_over_bp_locations): New.
8018 * breakpoint.h: Declare.
8019 New typedef walk_bp_location_callback.
8020 * record.c (record_open): Call record_init_record_breakpoints.
8021 (record_sync_record_breakpoints): New.
8022 (record_init_record_breakpoints): New.
8023 * NEWS: Mention supporting breakpoint always-inserted mode in
8024 record target.
8025
8026 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8027
8028 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8029 any thread.
8030
8031 2012-04-24 Yao Qi <yao@codesourcery.com>
8032
8033 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8034 (is_catchpoint): ... it.
8035 (print_one_breakpoint_location): Caller update.
8036 * breakpoint.h: Update declaration.
8037
8038 2012-04-23 David S. Miller <davem@davemloft.net>
8039
8040 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8041
8042 2012-04-23 Tom Tromey <tromey@redhat.com>
8043
8044 * buildsym.c (add_free_pendings): Remove.
8045 * buildsym.h (add_free_pendings): Remove.
8046
8047 2012-04-23 Doug Evans <dje@google.com>
8048
8049 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8050 attr.u.unsnd instead of attr.u.addr.
8051 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8052 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8053 DW_FORM_ref_udata.
8054 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8055 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8056 DW_FORM_ref_udata.
8057 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8058
8059 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8060
8061 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8062 (mips_o32_return_value): Likewise.
8063 (mips_o64_return_value): Likewise.
8064
8065 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8066
8067 * ada-lang.c (ada_evaluate_subexp): Add cases for
8068 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8069 their treatment in eval.c.
8070
8071 2012-04-21 David S. Miller <davem@davemloft.net>
8072
8073 * sparc-tdep.c (X_DISP10): Define.
8074 (sparc_analyze_control_transfer): Handle compare-and-branch.
8075
8076 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8077
8078 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8079 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8080
8081 2012-04-20 Nigel Stephens <nigel@mips.com>
8082 Maciej W. Rozycki <macro@codesourcery.com>
8083
8084 * mips-tdep.c (mips_float_register_p): New function.
8085 (mips_convert_register_float_case_p): Use mips_float_register_p.
8086 (mips_register_type): Likewise.
8087 (mips_print_register): Likewise.
8088 (print_gp_register_row): Likewise.
8089 (mips_print_registers_info): Likewise.
8090
8091 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8092
8093 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8094 of mips16 symbols.
8095
8096 2012-04-20 Andrew Pinski <apinski@cavium.com>
8097
8098 * MAINTAINERS (Write After Approval): Add myself to the list.
8099
8100 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8101
8102 * MAINTAINERS: Update my e-mail address.
8103
8104 2012-04-20 Pedro Alves <palves@redhat.com>
8105
8106 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8107 $srcdir.
8108 * configure: Regenerate.
8109
8110 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8111
8112 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8113 declaration.
8114 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8115
8116 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8117
8118 Fix compilation compatibility with python-2.4
8119 * python/py-type.c (convert_field): Cast ADDRSTRING for
8120 PyObject_SetAttrString as non-const. New comment.
8121
8122 2012-04-19 Tom Tromey <tromey@redhat.com>
8123
8124 * top.c (quit_target): Use all_cleanups.
8125 * main.c (captured_command_loop): Use all_cleanups.
8126 * exceptions.c (throw_exception): Use all_cleanups.
8127
8128 2012-04-19 Pedro Alves <palves@redhat.com>
8129
8130 * Makefile.in (GNULIB_BUILDDIR): New.
8131 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8132 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8133 (CLEANDIRS). Remove gnulib/import.
8134 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8135 (all-lib): Ditto.
8136 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8137 (gnulib/import/Makefile): Replace gnulib/import with
8138 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8139 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8140 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8141 acx_configure_dir.m4.
8142 * acinclude.m4: Include acx_configure_dir.m4.
8143 * acx_configure_dir.m4: New file.
8144 * aclocal.m4: Regenerate.
8145 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8146 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8147 (GNULIB): New variable.
8148 (GNULIB_STDINT_H): Adjust.
8149 (AC_OUTPUT): Don't output gnulib/Makefile.
8150 * gdb/defs.h: Include build-gnulib/config.h.
8151 * aclocal.m4: Regenerate.
8152 * config.in: Regenerate.
8153 * configure: Regenerate.
8154
8155 * gnulib/Makefile.in: New file.
8156 * gnulib/configure.ac: New file.
8157 * gnulib/aclocal.m4: New file.
8158 * gnulib/config.in: New file.
8159 * gnulib/configure: New file.
8160 * gnulib/: Re-run gnulib-tool to adjust.
8161
8162 2012-04-19 Doug Evans <dje@google.com>
8163
8164 * cleanups.h (struct cleanup): Move to cleanups.c.
8165 (make_cleanup_dtor_ftype): New typedef.
8166 (make_cleanup_dtor): Use it.
8167 (ALL_CLEANUPS): Replace with ...
8168 (all_cleanups): ... this. Declare. All uses updated.
8169 * cleanups.c: #include "gdb_assert.h".
8170 (sentinel_cleanup): New static global.
8171 (SENTINEL_CLEANUP): Define.
8172 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8173 (make_my_cleanup2): Assert result is non-NULL.
8174 (all_cleanups): New function.
8175 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8176 of NULL.
8177
8178 2012-04-19 Pedro Alves <palves@redhat.com>
8179
8180 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8181 Adjust paths to gnulib imported files.
8182
8183 2012-04-19 Pedro Alves <palves@redhat.com>
8184
8185 * gnulib/: Move whole directory ...
8186 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8187 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8188 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8189 (aclocal_m4_deps): Adjust.
8190 * aclocal.m4: Regenerate.
8191 * configure: Regenerate.
8192 * configure.ac: Adjust AC_OUTPUT output.
8193
8194 2012-04-19 Yao Qi <yao@codesourcery.com>
8195
8196 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8197 (vec.o): New rule.
8198 * vec.c: Move it ...
8199 * common/vec.c: ... here.
8200 * vec.h: Move it ...
8201 * common/vec.h: ... here.
8202
8203 2012-04-19 Yao Qi <yao@codesourcery.com>
8204
8205 * gdb-code-style.el: New.
8206
8207 2012-04-18 Pedro Alves <palves@redhat.com>
8208
8209 Update gnulib from latest git.
8210 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8211
8212 * gnulib/Makefile.am: Update.
8213 * gnulib/dummy.c: Update.
8214 * gnulib/extra/arg-nonnull.h: Update.
8215 * gnulib/extra/c++defs.h: Update.
8216 * gnulib/extra/update-copyright: Update.
8217 * gnulib/extra/warn-on-use.h: Update.
8218 * gnulib/inttypes.in.h: Update.
8219 * gnulib/m4/00gnulib.m4: Update.
8220 * gnulib/m4/extensions.m4: Update.
8221 * gnulib/m4/gnulib-cache.m4: Update.
8222 * gnulib/m4/gnulib-common.m4: Update.
8223 * gnulib/m4/gnulib-comp.m4: Update.
8224 * gnulib/m4/gnulib-tool.m4: Update.
8225 * gnulib/m4/include_next.m4: Update.
8226 * gnulib/m4/inttypes-pri.m4: Update.
8227 * gnulib/m4/inttypes.m4: Update.
8228 * gnulib/m4/longlong.m4: Update.
8229 * gnulib/m4/memchr.m4: Update.
8230 * gnulib/m4/memmem.m4: Update.
8231 * gnulib/m4/mmap-anon.m4: Update.
8232 * gnulib/m4/multiarch.m4: Update.
8233 * gnulib/m4/onceonly.m4: Update.
8234 * gnulib/m4/stddef_h.m4: Update.
8235 * gnulib/m4/stdint.m4: Update.
8236 * gnulib/m4/string_h.m4: Update.
8237 * gnulib/m4/warn-on-use.m4: Update.
8238 * gnulib/m4/wchar_h.m4: Update.
8239 * gnulib/m4/wchar_t.m4: Update.
8240 * gnulib/m4/wint_t.m4: Update.
8241 * gnulib/memchr.c: Update.
8242 * gnulib/memmem.c: Update.
8243 * gnulib/stddef.in.h: Update.
8244 * gnulib/stdint.in.h: Update.
8245 * gnulib/str-two-way.h: Update.
8246 * gnulib/string.in.h: Update.
8247 * gnulib/wchar.in.h: Update.
8248
8249 * gnulib/extra/arg-nonnull.h: Delete.
8250 * gnulib/extra/c++defs.h: Delete.
8251 * gnulib/extra/warn-on-use.h: Delete.
8252 * gnulib/m4/wchar_h.m4: Delete.
8253 * gnulib/m4/wint_t.m4: Delete.
8254 * gnulib/wchar.in.h: Delete.
8255
8256 * gnulib/extra/snippets/arg-nonnull.h: New.
8257 * gnulib/extra/snippets/c++defs.h: New.
8258 * gnulib/extra/snippets/warn-on-use.h: New.
8259
8260 * aclocal.m4: Regenerate.
8261 * config.in: Regenerate.
8262 * configure: Regenerate.
8263 * gnulib/Makefile.in: Regenerate.
8264
8265 2012-04-18 Pedro Alves <palves@redhat.com>
8266
8267 Reimport the update-copyright module from gnulib
8268 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8269
8270 * configure: Regenerate.
8271 * gnulib/Makefile.am: Update.
8272 * gnulib/Makefile.in: Regenerate.
8273 * gnulib/extra/update-copyright: Update.
8274 * gnulib/m4/gnulib-cache.m4: Update.
8275 * gnulib/m4/gnulib-comp.m4: Update.
8276
8277 2012-04-18 Tristan Gingold <gingold@adacore.com>
8278
8279 * configure.ac (aix): Put -lpthread into libs.
8280 * configure: Regenerate.
8281
8282 2012-04-18 Tom Tromey <tromey@redhat.com>
8283
8284 * linespec.c (convert_linespec_to_sals): Don't use
8285 SYMBOL_OBJ_SECTION.
8286 (compare_msymbols): Arguments are minsym_and_objfile, not
8287 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8288
8289 2012-04-18 Pedro Alves <palves@redhat.com>
8290
8291 Revert gnulib/ part of:
8292 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8293 Copyright year update in most files (performed by copyright.sh).
8294
8295 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8296
8297 Fix 64-bit constants on 32-bit hosts.
8298 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8299 from unsigned long to ULONGEST.
8300 (read_signed_leb128): Change declaration return type from long to
8301 LONGEST.
8302 (dwarf2_const_value_attr): Change declaration parameter value from long
8303 to LONGEST.
8304 (dwarf2_compute_name): Change variable value from long to LONGEST.
8305 (read_unsigned_leb128): Change return type, variable result and some
8306 casts from unsigned long to ULONGEST.
8307 (read_signed_leb128): Change return type, variable result and some
8308 casts from long to LONGEST.
8309 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8310 value from long to LONGEST.
8311 (dwarf2_const_value): Change variable value from long to LONGEST.
8312 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8313 plongest and hex_string.
8314 * symtab.h (struct general_symbol_info): Change ivalue from long to
8315 LONGEST, remove the comment.
8316 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8317 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8318
8319 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8320
8321 PR symtab/7259:
8322 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8323 * ada-lang.c (ada_discrete_type_high_bound)
8324 (ada_discrete_type_low_bound): Fix function comment. Use
8325 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8326 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8327 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8328 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8329 Use TYPE_FIELD_ENUMVAL.
8330 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8331 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8332 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8333 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8334 TYPE_CODE_ENUM.
8335 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8336 * dwarf2read.c (process_enumeration_scope): Likewise.
8337 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8338 field.bitpos.
8339 (class StructMainTypePrettyPrinter): Support also
8340 FIELD_LOC_KIND_ENUMVAL.
8341 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8342 TYPE_CODE_ENUM.
8343 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8344 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8345 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8346 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8347 field enumval.
8348 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8349 accommodate enumval.
8350 (struct call_site): Adjust loc_kind to accommodate enumval.
8351 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8352 (TYPE_FIELD_ENUMVAL): New macros.
8353 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8354 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8355 TYPE_CODE_ENUM.
8356 * p-typeprint.c (pascal_type_print_base): Likewise.
8357 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8358 enumval.
8359 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8360 * python/py-type.c (convert_field): New variable addrstring. Use
8361 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8362 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8363 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8364 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8365 TYPE_CODE_ENUM.
8366 * valprint.c (generic_val_print): Likewise.
8367
8368 2012-04-17 Doug Evans <dje@google.com>
8369
8370 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8371
8372 * dwarf2read.c: Whitespace fixes.
8373 (lookup_signatured_type): Tweak comment.
8374 (get_die_type_at_offset): Fix comment.
8375
8376 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8377
8378 * xcoffread.c (xcoff_secnum_to_sections): New function.
8379 (secnum_to_section, secnum_to_bfd_section): Reimplement
8380 using xcoff_secnum_to_sections. Rename "secnum" parameter
8381 into "n_scnum".
8382 (RECORD_MINIMAL_SYMBOL): Delete.
8383 (record_minimal_symbol): New function.
8384 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8385 by call to record_minimal_symbol and set misc_func_recorded
8386 to 1. Set last_csect_sec to the XCOFF section index instead
8387 of GDB's section_offset index. Update calls to
8388 prim_record_minimal_symbol_and_info to pass the BFD section
8389 as well.
8390
8391 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8392
8393 * xcoffread.c (read_xcoff_symtab): Delete variables
8394 last_csect_val and last_csect_sec and associated code.
8395
8396 2012-04-17 Doug Evans <dje@google.com>
8397
8398 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8399 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8400 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8401 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8402
8403 * cleanups.h: New file.
8404 * cleanups.c: New file.
8405 * Makefile.in (SFILES): Add cleanups.c.
8406 (HFILES_NO_SRCDIR): Add cleanups.h.
8407 (COMMON_OBS): Add cleanups.o.
8408 * defs.h (struct cleanup): Moved to cleanups.h.
8409 (do_cleanups,do_final_cleanups): Ditto.
8410 (discard_cleanups,discard_final_cleanups): Ditto
8411 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8412 (save_cleanups,save_final_cleanups): Ditto.
8413 (restore_cleanups,restore_final_cleanups): Ditto.
8414 (null_cleanup): Ditto.
8415 (make_my_cleanup,make_my_cleanup2): Ditto.
8416 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8417 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8418 (do_cleanups,do_final_cleanups): Ditto.
8419 (discard_cleanups,discard_final_cleanups): Ditto
8420 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8421 (save_cleanups,save_final_cleanups): Ditto.
8422 (restore_cleanups,restore_final_cleanups): Ditto.
8423 (null_cleanup): Ditto.
8424 (make_my_cleanup,make_my_cleanup2): Ditto.
8425 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8426
8427 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8428 make_my_cleanup.
8429 (make_cleanup_dyn_string_delete): Ditto.
8430 (make_cleanup_ui_file_delete): Ditto.
8431 (make_cleanup_ui_out_redirect_pop): Ditto.
8432 (make_cleanup_free_section_addr_info): Ditto.
8433 (make_cleanup_restore_integer): Ditto.
8434 (make_cleanup_unpush_target): Ditto.
8435 (make_cleanup_value_free_to_mark): Ditto.
8436 (make_cleanup_value_free): Ditto.
8437 (make_cleanup_free_so): Ditto.
8438
8439 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8440
8441 New option "set debug auto-load".
8442 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8443 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8444 (auto_load_safe_path_vec_update)
8445 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8446 if DEBUG_AUTO_LOAD.
8447 (file_is_auto_load_safe): New parameters debug_fmt and ....
8448 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8449 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8450 caller by explanatory string.
8451 (_initialize_auto_load): Register "set debug auto-load".
8452 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8453 and ....
8454 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8455 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8456 by explanatory string.
8457 * main.c (captured_main): Likewise.
8458 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8459 (source_section_scripts): Likewise.
8460
8461 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8462
8463 New option "set auto-load safe-path".
8464 * NEWS: New commands "set auto-load safe-path"
8465 and "show auto-load safe-path".
8466 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8467 (auto_load_safe_path, auto_load_safe_path_vec)
8468 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8469 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8470 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8471 (source_gdb_script_for_objfile): New variable is_safe. Call
8472 file_is_auto_load_safe. Return if it is not.
8473 (struct loaded_script): New field loaded.
8474 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8475 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8476 output "Missing" to "No".
8477 (_initialize_auto_load): New variable cmd. Initialize
8478 auto_load_safe_path. Register "set auto-load safe-path",
8479 "show auto-load safe-path" and "add-auto-load-safe-path".
8480 * auto-load.h (maybe_add_script): Add parameter loaded.
8481 (file_is_auto_load_safe): New declaration.
8482 * config.in: Regenerate.
8483 * configure: Regenerate.
8484 * configure.ac: New parameters --with-auto-load-safe-path
8485 and --without-auto-load-safe-path.
8486 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8487 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8488 * main.c (captured_main): Check file_is_auto_load_safe for
8489 LOCAL_GDBINIT.
8490 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8491 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8492 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8493 not.
8494
8495 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8496
8497 auto-load: Implementation.
8498 * NEWS: New descriptions for "info auto-load",
8499 "info auto-load gdb-scripts", "info auto-load python-scripts",
8500 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8501 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8502 and "show auto-load-scripts". New description for "set auto-load",
8503 "show auto-load", "set auto-load gdb-scripts",
8504 "show auto-load gdb-scripts", "set auto-load python-scripts",
8505 "show auto-load python-scripts", "set auto-load local-gdbinit",
8506 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8507 "show auto-load libthread-db".
8508 * auto-load.c: Remove include python/python-internal.h. Add includes
8509 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8510 cli/cli-setshow.h.
8511 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8512 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8513 (gdbpy_global_auto_load): Rename to ...
8514 (global_auto_load): ... here.
8515 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8516 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8517 (script_language_gdb, source_gdb_script_for_objfile): New.
8518 (struct loaded_script): New field language.
8519 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8520 LANGUAGE.
8521 (maybe_add_script): Add parameter language. Drop redundant
8522 entry.full_path initialization. Initialize entry.language and
8523 (*slot)->language.
8524 (auto_load_objfile_script): Change parameter suffix to language.
8525 Remove the call of maybe_add_script.
8526 Call language->source_script_for_objfile.
8527 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8528 New.
8529 (collect_matching_scripts): Adjust it for
8530 struct collect_matching_scripts_data.
8531 (auto_load_info_scripts_pattern_nl): New variable.
8532 (info_auto_load_scripts): Rename to ...
8533 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8534 for struct collect_matching_scripts_data.
8535 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8536 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8537 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8538 (auto_load_info_cmdlist_get): New.
8539 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8540 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8541 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8542 "info auto-load local-gdbinit".
8543 * auto-load.h (struct script_language): New.
8544 (gdbpy_global_auto_load): Rename to ...
8545 (global_auto_load): ... here.
8546 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8547 (auto_load_local_gdbinit_loaded): New declarations.
8548 (maybe_add_script): New parameter language.
8549 (auto_load_objfile_script): Change parameter suffix to language.
8550 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8551 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8552 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8553 declarations.
8554 * linux-thread-db.c: Include auto-load.h and ctype.h.
8555 (auto_load_thread_db, show_auto_load_thread_db): New.
8556 (struct thread_db_info): New field filename.
8557 (delete_thread_db_info): Call xfree for FILENAME.
8558 (try_thread_db_load): Initialize FILENAME.
8559 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8560 if !AUTO_LOAD_THREAD_DB.
8561 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8562 (_initialize_thread_db): Install auto_load_thread_db
8563 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8564 as "info auto-load libthread-db".
8565 * main.c (captured_main): Rename gdbpy_global_auto_load to
8566 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8567 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8568 (print_gdb_help): Extend the help for 'local init file'.
8569 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8570 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8571 (auto_load_scripts): Rename to ...
8572 (auto_load_python_scripts): ... here, update the comment.
8573 (gdbpy_load_auto_script_for_objfile): New declaration.
8574 (show_auto_load_python_scripts, script_language_python)
8575 (gdbpy_load_auto_script_for_objfile): New.
8576 (source_section_scripts): Refactor the code.
8577 (load_auto_scripts_for_objfile): Rename to ...
8578 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8579 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8580 (info_auto_load_python_scripts): New.
8581 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8582 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8583 Register "set auto-load-scripts" as its deprecated alias. Register
8584 "info auto-load python-scripts". Register "info auto-load-scripts" as
8585 its deprecated alias.
8586 (load_auto_scripts_for_objfile): Rename to ...
8587 (gdbpy_load_auto_scripts_for_objfile): ... here.
8588 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8589 (gdbpy_load_auto_scripts_for_objfile): ... here.
8590
8591 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8592
8593 auto-load: Move files.
8594 * Makefile.in (SFILES): Add auto-load.c.
8595 (HFILES_NO_SRCDIR): Add auto-load.h.
8596 (COMMON_OBS): Add auto-load.o.
8597 (distclean): Change .gdbinit for gdb-gdb.gdb.
8598 * auto-load.c: New file, with parts from python/py-auto-load.c.
8599 * auto-load.h: New file, with parts from python/python.h.
8600 * configure: Regenerate.
8601 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8602 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8603 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8604 * main.c: Include auto-load.h.
8605 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8606 command.h, observer.h and progspace.h to auto-load.c. Add include
8607 auto-load.h.
8608 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8609 (struct loaded_script, auto_load_pspace_data)
8610 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8611 (hash_loaded_script_entry, eq_loaded_script_entry)
8612 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8613 (maybe_add_script): Move to auto-load.c.
8614 (source_section_scripts): Change maybe_add_script parameters passing,
8615 use script_not_found_warning_print.
8616 (clear_section_scripts, auto_load_objfile_script)
8617 (auto_load_new_objfile, loaded_script_ptr)
8618 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8619 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8620 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8621 auto_load_new_objfile and info_auto_load_scripts initizations to
8622 auto-load.c.
8623 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8624
8625 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8626
8627 Code cleanup.
8628 * charset.c (find_charset_names): Remove variables ix and elt.
8629 Use free_char_ptr_vec.
8630 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8631 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8632 debugdir_end. New variable debugdir_len.
8633 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8634 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8635 declarations.
8636 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8637 and elt. Use free_char_ptr_vec.
8638 * source.c (add_path): Remove variables argv, arg and argv_index.
8639 New variables dir_vec, back_to, ix and name.
8640 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8641 make_cleanup_freeargv. Remove variable separator. Simplify the code
8642 no longer expecting DIRNAME_SEPARATOR.
8643 (openp): Remove variable p, p1 and len. New variables dir_vec,
8644 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8645 no longer expecting DIRNAME_SEPARATOR.
8646 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8647 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8648 debugdir_end.
8649 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8650 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8651 (dirnames_to_char_ptr_vec): New functions.
8652
8653 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8654
8655 Code cleanup.
8656 * source.c (add_path): Remove always true conditional 'p == 0' and
8657 unindent its code block.
8658
8659 2012-04-17 Pedro Alves <palves@redhat.com>
8660
8661 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8662 (FIELD_BITPOS_LVAL): ... this.
8663 (FIELD_BITPOS): New.
8664 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8665 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8666 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8667 SET_FIELD_BITPOS.
8668 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8669 SET_FIELD_BITPOS.
8670 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8671 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8672 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8673 SET_FIELD_BITPOS.
8674
8675 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8676
8677 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8678 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8679 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8680 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8681 * jv-lang.c (java_link_class_type): Likewise, once.
8682 * stabsread.c (read_enum_type): Likewise.
8683
8684 2012-04-16 Yao Qi <yao@codesourcery.com>
8685
8686 * common/agent.c (agent_run_command): Add one more parameter `len'.
8687 Update callers.
8688 * common/agent.h: Update declaration.
8689 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8690 Update.
8691 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8692
8693 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8694
8695 PR mi/13393
8696 * value.c (value_actual_type): New function.
8697 * value.h (value_actual_type): New declaration.
8698 * varobj.c (update_type_if_necessary): New function.
8699 (varobj_create): Call value_actual_type instead of
8700 value_type.
8701 (install_dynamic_child): distinct changed and type changed MI variable
8702 objects.
8703 (update_dynamic_varobj_children): Updated for install_dynamic_child
8704 change. All callers updated.
8705 (varobj_update): Support for MI variable object type change if
8706 the value changed and RTTI is used to determine the type.
8707 (create_child_with_value): Call value_actual_type instead of
8708 value_type.
8709 (adjust_value_for_child_access): Extended with a new parameter which
8710 specify whether the given value should be casted to enclosing type.
8711 All callers updated.
8712
8713 2012-04-14 Yao Qi <yao@codesourcery.com>
8714
8715 Import gnulib module inttypes from git
8716 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8717 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8718 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8719 gnulib/m4/inttypes-pri.m4
8720 * aclocal.m4, config.in, configure: Regenerated.
8721 * gnulib/Makefile.am: Update.
8722 * gnulib/Makefile.in: Update.
8723 * gnulib/m4/gnulib-cache.m4: Update.
8724 * gnulib/m4/gnulib-comp.m4: Update.
8725 * gnulib/inttypes.in.h: New.
8726 * gnulib/m4/inttypes-pri.m4: New.
8727 * gnulib/m4/inttypes.m4: New.
8728
8729 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8730
8731 * infrun.c (resume): Update PC address to the real PC after
8732 preparing to do displaced stepping.
8733
8734 2012-04-12 Doug Evans <dje@google.com>
8735
8736 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8737 All callers updated.
8738
8739 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8740
8741 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8742
8743 2012-04-12 Doug Evans <dje@google.com>
8744
8745 * dwarf2read.c (create_all_type_units): Renamed from
8746 create_debug_types_hash_table. All callers updated.
8747
8748 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8749 local type_sig to sig_type, type_offset to type_offset_in_tu.
8750 (hash_signatured_type): Renamed from hash_type_signature,
8751 all callers updated.
8752 (eq_signatured_type): Renamed from eq_type_signature,
8753 all callers updated.
8754 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8755 (process_enumeration_scope): Ditto.
8756 (lookup_signatured_type_at_offset): Ditto.
8757 (load_full_type_unit, read_signatured_type): Ditto.
8758
8759 2012-04-12 Yao Qi <yao@codesourcery.com>
8760
8761 * remote.c (async_remote_interrupt): Correct function name in
8762 debug message.
8763 (async_remote_interrupt_twice): Ditto.
8764
8765 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8766
8767 * source.c (find_and_open_source): Consistently pass resulting
8768 full path through xfullpath.
8769
8770 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8771
8772 Provide more specific displaced-stepping memory error message.
8773 * infrun.c (displaced_step_prepare): New variable status. Call
8774 target_read_memory instead of read_memory, provide more specific
8775 error message.
8776
8777 2012-04-11 Tristan Gingold <gingold@adacore.com>
8778
8779 PR gdb/13901
8780 * darwin-nat.c (darwin_execvp): Revert previous patch.
8781
8782 2012-04-11 Tristan Gingold <gingold@adacore.com>
8783
8784 PR gdb/13901
8785 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8786 in case of change.
8787
8788 2012-04-11 Tristan Gingold <gingold@adacore.com>
8789
8790 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8791 warning.
8792
8793 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8794
8795 New command 'explore' which helps explore values and types in
8796 scope.
8797 * NEWS: Add an entry about the new 'explore' command.
8798 * data-directory/Makefile.in: Add gdb/command/explore.py
8799 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8800 command using the GDB Python API.
8801
8802 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8803
8804 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8805 extension in jump target calculation.
8806
8807 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8808
8809 * mips-tdep.c (mips32_next_pc): Handle JALX.
8810
8811 2012-04-10 Yao Qi <yao@codesourcery.com>
8812
8813 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8814
8815 2012-04-10 Yao Qi <yao@codesourcery.com>
8816
8817 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8818 and gnulib/m4/gnulib-tool.m4.
8819
8820 2012-04-10 Doug Evans <dje@google.com>
8821
8822 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8823 (load_partial_dies): Clarify comment.
8824 (find_partial_die): Support rereading type units.
8825 Clarify CU handling, if we know offset is in CU, don't search for the
8826 containing CU. Add comment regarding memory waste.
8827
8828 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8829
8830 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8831 i386/x32-avx and i386/x32-avx-linux.
8832 (i386/x32-expedite): New.
8833 (i386/x32-linux-expedite): Likewise.
8834 (i386/x32-avx-expedite): Likewise.
8835 (i386/x32-avx-linux-expedite): Likewise.
8836 ($(outdir)/i386/x32.dat): Likewise.
8837 ($(outdir)/i386/x32-linux.dat): Likewise.
8838 ($(outdir)/i386/x32-avx.dat): Likewise.
8839 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8840
8841 * features/i386/x32-avx-linux.xml: New file.
8842 * features/i386/x32-avx.xml: Likewise.
8843 * features/i386/x32-core.xml: Likewise.
8844 * features/i386/x32-linux.xml: Likewise.
8845 * features/i386/x32.xml: Likewise.
8846
8847 * features/i386/x32-avx-linux.c: New. Generated.
8848 * features/i386/x32-avx.c: Likewise.
8849 * features/i386/x32-linux.c: Likewise.
8850 * features/i386/x32.c: Likewise.
8851 * regformats/i386/x32-avx-linux.dat: Likewise.
8852 * regformats/i386/x32-avx.dat: Likewise.
8853 * regformats/i386/x32-linux.dat: Likewise.
8854 * regformats/i386/x32.dat: Likewise.
8855
8856 2012-04-10 Tristan Gingold <gingold@adacore.com>
8857
8858 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8859 code to kill the inferior.
8860
8861 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8862
8863 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8864 defines.
8865 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8866 defines.
8867 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8868 (yyvsp): New defines.
8869 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8870 defines.
8871 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8872 defines.
8873 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8874 defines.
8875 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8876 defines.
8877 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8878 defines.
8879
8880 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8881
8882 * sparc64-tdep.c (sparc64_store_arguments)
8883 (sparc64_store_arguments): Fix coding style.
8884
8885 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8886
8887 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8888 complex floats, adjust some related comments and tighten a related
8889 assertion.
8890 (sparc64_extract_return_value): Handle complex floats.
8891
8892 2012-04-07 Doug Evans <dje@google.com>
8893
8894 * dwarf2read.c (load_partial_dies): Change condition to assert.
8895
8896 2012-04-06 Doug Evans <dje@google.com>
8897
8898 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8899 "mov %rsp,%rbp".
8900
8901 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8902
8903 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8904 fencepost error.
8905 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8906 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8907 architecture.
8908
8909 2012-04-05 Keith Seitz <keiths@redhat.com>
8910
8911 * linespec.c (decode_compound): Remove.
8912 (enum offset_relative_sign): New enum.
8913 (struct line_offset): New struct.
8914 (struct linespec): New struct.
8915 (struct linespec_state): Move file_symtabs,
8916 user_filename, and user_function into struct linespec.
8917 Make result an anonymous struct holding vectors of
8918 symbolp and minsym_and_objfile_d.
8919 Add language member.
8920 (enum ls_token_type): New enum.
8921 (linespec_keywords): New array.
8922 (struct ls_token): New struct.
8923 (struct ls_parser): New struct.
8924 (linespec_lexer_lex_number): New function.
8925 (linespec_lexer_lex_keyword): New function.
8926 (is_ada_operator): New function.
8927 (skip_quote_char): New function.
8928 (copy_token_string): New function.
8929 (is_closing_quote_enclosed): New function.
8930 (find_parameter_list_end): New function.
8931 (linespec_lexer_lex_string): New function.
8932 (linespec_lexer_lex_one): New function.
8933 (linespec_lexer_consume_token): New function.
8934 (linespec_lexer_peek_token): New function.
8935 (cplusplus_error): Remove unused function.
8936 (find_methods): Update comment.
8937 (find_toplevel_char): Return const.
8938 (is_objc_method_format): Remove unused function.
8939 (find_toplevel_string): New function.
8940 (is_linespec_boundary): Remove.
8941 (symbol_not_found_error): New function.
8942 (find_method_overload_end): Remove function.
8943 (unexpected_linespec_error): New function.
8944 (keep_name_info): Remove.
8945 (linespec_parse_line_offset): New function.
8946 (linespec_parse_basic): New function.
8947 (canonicalize_linespec): New function.
8948 (decode_line_internal): Remove.
8949 (create_sals_line_offset): New function adapted from
8950 decode_all_digits.
8951 (convert_linespec_to_sals): New function.
8952 (parse_linespec): New function.
8953 (linespec_parser_new): New function.
8954 (linespec_state_destructor): Change parameter type to
8955 struct linespec_state *.
8956 Add language parameter.
8957 Remove freeing of moved members.
8958 (linespec_parser_delete): New function.
8959 (decode_line_full): Use parse_linespec and linespec_parser_new.
8960 (decode_line_1): Likewise.
8961 (decode_indirect): Rename to ...
8962 (linespec_expression_to_pc): ... this and rewrite
8963 to simply find CORE_ADDR, storing this result for later
8964 conversion to SALs.
8965 (locate_first_half): Remove.
8966 (deocde_objc): Add parameter LS.
8967 Initialize new struct collect_info members.
8968 Handle minimal symbols, too.
8969 (decode_compound): Delete.
8970 (lookup_prefix_sym): Rewrite.
8971 (compare_msymbols): New function.
8972 (find_method): Rewrite.
8973 Do not call cplusplus_error.
8974 (symtabs_from_filename): Rewrite.
8975 (collect_function_symbols): Delete.
8976 (find_function_symbols): Rewrite without ARGPTR-style
8977 processing.
8978 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8979 (decode_dollar): Adapted and renamed to ...
8980 (linespec_parse_variable): ... this.
8981 (find_linespec_symbols): New function.
8982 (decode_label): Adapted and renamed to ...
8983 (find_label_symbols): ... this.
8984 (decode_digits_list_mode): Add and use LS argument.
8985 (decode_digits_ordinary): Likewise.
8986 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8987 If in list mode, allow any symbol class. Otherwise, only
8988 permit LOC_BLOCK symbols.
8989 (minsym_found): Update comments.
8990 (search_minsyms_for_name): Do not convert the matching symbol
8991 into a SAL. Simply push the symbol and objfile into the
8992 result vector.
8993 (decode_variable): Delete. Contents adapted into
8994 find_linespec_symbols.
8995
8996 * cp-support.c (SKIP_SPACE): Remove.
8997 (operator_tokens): Remove unused global.
8998 (cp_validate_operator): Remove.
8999 * cp-support.h (cp_validate_operator): Remove declaration.
9000
9001 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9002
9003 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9004 for TYPE_VPTR_FIELDNO.
9005 * valprint.c (valprint_check_validity): Make it global, move the
9006 function comment ...
9007 * value.h (valprint_check_validity): ... to this new declaration.
9008
9009 2012-04-02 Tristan Gingold <gingold@adacore.com>
9010
9011 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9012 the STATE32 api for i386 state.
9013 (i386_darwin_store_inferior_registers): Likewise.
9014
9015 2012-04-02 Tristan Gingold <gingold@adacore.com>
9016
9017 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9018 SS offset.
9019 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9020 format_string.
9021
9022 2012-04-02 Tristan Gingold <gingold@adacore.com>
9023
9024 PR gdb/13901
9025 * darwin-nat.c (darwin_execvp): Set binary preference.
9026
9027 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9028
9029 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9030
9031 2012-03-30 Tom Tromey <tromey@redhat.com>
9032
9033 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9034 of TRY_CATCH. Fix error handling.
9035 * python/py-value.c (convert_value_from_python): Move 'old'
9036 declaration to innermost scope.
9037
9038 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9039 Andrey Smirnov <andrew.smirnov@gmail.com>
9040
9041 -Wshadow warning fix.
9042 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9043 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9044 Adjust code accordingly.
9045
9046 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9047
9048 * ada-lang.c (symbol_completion_add): Rename parameter
9049 "encoded" into "encoded_p". Ajust code and documentation
9050 accordingly.
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 (symbol_completion_add): Rename parameter
9057 "wild_match" into wild_match_p. Update code and documentation
9058 accordingly.
9059
9060 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9061
9062 * ada-lang.c (symbol_completion_match): 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_match): Rename parameter
9071 "wild_match" into "wild_match_p". Adjust code and function
9072 documentation accordingly.
9073
9074 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9075 Andrey Smirnov <andrew.smirnov@gmail.com>
9076
9077 -Wshadow warning fix.
9078 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9079 "symbol_info" into "info". Adjust code accordingly.
9080 (ada_lookup_symbol): Likewise.
9081
9082 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9083
9084 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9085 of this function's documentation.
9086
9087 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9088 Andrey Smirnov <andrew.smirnov@gmail.com>
9089
9090 -Wshadow warning fix.
9091 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9092 variable into "wild_match_p". Adjust code accordingly.
9093
9094 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9095 Andrey Smirnov <andrew.smirnov@gmail.com>
9096
9097 -Wshadow warning fix.
9098 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9099 parameter into "wild_match_p". Adjust code accordingly.
9100 Document this parameter in the function description.
9101
9102 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9103 Andrey Smirnov <andrew.smirnov@gmail.com>
9104
9105 -Wshadow warning fix.
9106 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9107 "wild_match" parameter to "wild_match_p" (-Wshadow).
9108
9109 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9110
9111 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9112 in function documentation.
9113
9114 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9115 Andrey Smirnov <andrew.smirnov@gmail.com>
9116
9117 -Wshadow warning fix.
9118 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9119 variable into wild_match_p. Adjust code accordingly.
9120
9121 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9122 Andrey Smirnov <andrew.smirnov@gmail.com>
9123
9124 * ada-valprint.c (ada_val_print_1): Move the code handling
9125 TYPE_CODE_ENUM inside its own lexical block. Declare
9126 variables len and val there, instead of in the function's
9127 top level block. Avoid declaring deref_val again in a way
9128 that shadows another variable of the same name declared
9129 in one of the up-level blocks. Just re-use the up-level
9130 variable instead.
9131
9132 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9133
9134 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9135 Replace block_found argument by symbol_info. Adjust
9136 implementation accordingly. Add function documentation.
9137 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9138 Fix documentation.
9139 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9140 * ada-exp.y (write_object_renaming): Adjust to new
9141 ada_lookup_encoded_symbol API.
9142
9143 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9144
9145 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9146 documentation.
9147
9148 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9149
9150 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9151 (v850_register_name): Add the mpu and fpu register names.
9152 (v850e_register_name): Add the mpu and fpu register names.
9153 (v850e2_register_name): New function.
9154 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9155 bfd_mach_v850e2v3.
9156
9157 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9158
9159 * NEWS: Add entry for Ada varobj support.
9160
9161 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9162
9163 * varobj.c (default_value_is_changeable_p): New function,
9164 extracted from varobj_value_is_changeable_p. Add declaration.
9165 (ada_value_is_changeable_p): New function, extracted from
9166 varobj_value_is_changeable_p. Add declaration.
9167 (struct language_specific): New field "value_is_changeable_p".
9168 (languages): Add entries for new field.
9169 (varobj_create): Set language before calling install_new_value.
9170 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9171 "value_is_changeable_p" language callback.
9172
9173 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9174
9175 * ada-varobj.h, ada-varobj.c: New files.
9176 * Makefile.in (SFILES): Add ada-varobj.c.
9177 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9178 (COMMON_OBS): Add ada-varobj.o.
9179
9180 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9181
9182 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9183 (struct language_specific): New field "value_has_mutated".
9184 (languages): Set field "value_has_mutated" in each entry of array.
9185 (varobj_value_has_mutated): New function.
9186 (varobj_udpdate): Add handling of type mutation.
9187 (value_of_root): Add handling of type mutation.
9188 (ada_value_has_mutated): New function.
9189
9190 2012-03-28 Pedro Alves <palves@redhat.com>
9191
9192 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9193 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9194
9195 2012-03-28 Tom Tromey <tromey@redhat.com>
9196
9197 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9198 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9199 before returning.
9200
9201 2012-03-28 Tom Tromey <tromey@redhat.com>
9202
9203 * .dir-locals.el: New file.
9204
9205 2012-03-28 Pedro Alves <palves@redhat.com>
9206
9207 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9208
9209 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9210
9211 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9212 handling for r0.
9213
9214 2012-03-27 Pedro Alves <palves@redhat.com>
9215
9216 Eliminate struct ui_stream.
9217
9218 * ui-out.h (struct ui_stream): Delete.
9219 (ui_out_field_stream): Adjust prototype.
9220 (ui_out_stream_new, ui_out_stream_delete)
9221 (make_cleanup_ui_out_stream_delete): Delete declarations.
9222 * ui-out.c (ui_out_field_stream): Change prototype to take a
9223 ui_file instead of a ui_stream. Adjust.
9224 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9225 (make_cleanup_ui_out_stream_delete): Delete.
9226 * breakpoint.c (print_breakpoint_location)
9227 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9228 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9229 * disasm.c (dump_insns): Ditto.
9230 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9231 prototype.
9232 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9233 ui_stream/ui_out_stream_new.
9234 * infcmd.c (print_return_value): Ditto.
9235 * osdata.c (info_osdata_command): Don't allocate a local
9236 ui_stream.
9237 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9238 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9239 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9240 allocate a local ui_stream.
9241 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9242 instead of ui_stream/ui_out_stream_new.
9243 (list_args_or_locals): Don't allocate a local ui_stream.
9244 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9245 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9246 ui_stream/ui_out_stream_new.
9247 * cli/cli-setshow.c (do_setshow_command): Ditto.
9248
9249 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9250
9251 * arm-linux-tdep.c (arm_linux_init_abi): Call
9252 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9253 * arm-tdep.c (arm_process_record): New function.
9254 (deallocate_reg_mem): New function.
9255 (decode_insn): New function.
9256 (thumb_record_branch): New function.
9257 (thumb_record_ldm_stm_swi(): New function.
9258 (thumb_record_misc): New function.
9259 (thumb_record_ld_st_stack): New function.
9260 (thumb_record_ld_st_imm_offset): New function.
9261 (thumb_record_ld_st_reg_offset(): New function.
9262 (thumb_record_add_sub_cmp_mov): New function.
9263 (thumb_record_shift_add_sub): New function.
9264 (arm_record_coproc_data_proc): New function.
9265 (arm_record_coproc): New function.
9266 (arm_record_b_bl): New function.
9267 (arm_record_ld_st_multiple): New function.
9268 (arm_record_ld_st_reg_offset): New function.
9269 (arm_record_ld_st_imm_offset): New function.
9270 (arm_record_data_proc_imm): New function.
9271 (arm_record_data_proc_misc_ld_str): New function.
9272 (arm_record_extension_space): New function.
9273 (arm_record_strx): New function.
9274 (sbo_sbz): New function.
9275 (struct insn_decode_record): New structure for arm insn record.
9276 (REG_ALLOC): New macro for reg allocations.
9277 (MEM_ALLOC): New macro for memory allocations.
9278 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9279
9280 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9281
9282 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9283 (store_register): Likewise.
9284
9285 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9286
9287 * MAINTAINERS (Write After Approval): Add myself to the list.
9288
9289 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9290
9291 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9292 Describe also the option "auto".
9293
9294 2012-03-22 Richard Henderson <rth@redhat.com>
9295
9296 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9297 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9298
9299 2012-03-22 Richard Henderson <rth@redhat.com>
9300
9301 * jit.c (jit_read_code_entry): Compute alignment and offset of
9302 int64_t member before computing entry_size.
9303
9304 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9305
9306 Python scripting: Add new method Value.referenced_value to
9307 gdb.Value which can dereference pointer as well as reference
9308 values.
9309 * NEWS: Add entry under 'Python scripting' about the new method
9310 Value.referenced_value on gdb.Value objects.
9311 * python/py-value.c (valpy_referenced_value): New function
9312 defining a new method on gdb.Value objects which can dereference
9313 pointer and reference values.
9314
9315 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9316
9317 * MAINTAINERS (Write After Approval): Add myself to the list.
9318
9319 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9320
9321 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9322 in addition to "main".
9323
9324 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9325
9326 * expression.h (op_name): Add declaration.
9327 * expprint.c (op_name): Remove declaration. Make non-static.
9328 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9329
9330 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9331
9332 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9333 of struct siginfo.
9334 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9335 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9336 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9337 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9338 (linux_nat_get_siginfo): Likewise.
9339 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9340 (linux_nat_get_siginfo): Likewise.
9341 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9342 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9343 * procfs.c (gdb_siginfo_t): Likewise.
9344
9345 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9346
9347 * .gitignore: Ignore more files.
9348
9349 2012-03-20 Pedro Alves <palves@redhat.com>
9350
9351 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9352 returns.
9353
9354 2012-03-20 Yao Qi <yao@codesourcery.com>
9355
9356 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9357 comment.
9358
9359 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9360
9361 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9362 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9363 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9364 sect_offset.
9365 * dwarf2expr.h (cu_offset, sect_offset): New types.
9366 (struct dwarf_expr_context_funcs) <dwarf_call>
9367 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9368 sect_offset.
9369 (struct dwarf_expr_context) <len>: Improve the comment.
9370 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9371 cu_offset and sect_offset.
9372 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9373 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9374 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9375 * dwarf2loc.h: Include dwarf2expr.h.
9376 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9377 and sect_offset.
9378 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9379 Improve the comment.
9380 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9381 (struct signatured_type, struct line_header, struct partial_die_info)
9382 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9383 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9384 (get_die_type_at_offset, create_cus_from_index)
9385 (create_signatured_type_table_from_index, dw2_get_file_names)
9386 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9387 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9388 (create_debug_types_hash_table, process_psymtab_comp_unit)
9389 (load_partial_comp_unit, create_all_comp_units)
9390 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9391 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9392 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9393 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9394 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9395 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9396 (find_partial_die, read_attribute_value, lookup_die_type)
9397 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9398 (is_ref_attr): New function comment.
9399 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9400 Use cu_offset and sect_offset.
9401 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9402 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9403 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9404 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9405 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9406 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9407 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9408 sect_offset.
9409
9410 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9411
9412 Code cleanup.
9413 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9414 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9415 with xfree.
9416 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9417
9418 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9419
9420 * NEWS: Describe new options --init-command=FILE, -ix and
9421 --init-eval-command=COMMAND, -iex.
9422 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9423 CMDARG_INIT_COMMAND.
9424 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9425 "init-command", "init-eval-command", "ix" and "iex" to the variable
9426 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9427 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9428 (print_gdb_help): Describe --init-command=FILE, -ix and
9429 --init-eval-command=COMMAND, -iex.
9430
9431 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9432
9433 Code cleanup.
9434 * main.c (struct cmdarg): Move it here from main. Add more comments.
9435 (cmdarg_s, VEC (cmdarg_s)): New.
9436 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9437 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9438 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9439 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9440 of CMDARG.
9441
9442 2012-03-19 Tom Tromey <tromey@redhat.com>
9443
9444 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9445
9446 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9447
9448 PR symtab/13777
9449 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9450 GCC >=4.5.
9451
9452 2012-03-16 Chris January <chris.january@allinea.com>
9453
9454 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9455 of clear.
9456
9457 2012-03-16 Chris January <chris.january@allinea.com>
9458
9459 * source.c (add_path): Use memmove instead of strcpy because the
9460 strings overlap.
9461
9462 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9463
9464 * value.h (set_value_parent): Add declaration.
9465 * value.c (set_value_parent): New function.
9466 (value_address): If VALUE->PARENT is not NULL, then use it as
9467 the base address instead of VALUE->LOCATION.address.
9468 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9469 the same as OBJ's address. Adjust V's offset accordingly.
9470 Set V's parent.
9471
9472 2012-03-16 Gary Benson <gbenson@redhat.com>
9473
9474 PR breakpoints/10738
9475 * dwarf2read.c (use_deprecated_index_sections): New global.
9476 (struct partial_die_info): New member may_be_inlined.
9477 (read_partial_die): Set may_be_inlined where appropriate.
9478 (add_partial_subprogram): Add partial symbols for partial
9479 DIEs that may be inlined.
9480 (new_symbol_full): Add inlined subroutines to the current
9481 scope.
9482 (write_psymtabs_to_index): Bump version number.
9483 (dwarf2_read_index): Read only version 6 indices unless
9484 use_deprecated_index_sections is set.
9485 * linespec.c (symbol_and_data_callback): New structure.
9486 (iterate_inline_only): New function.
9487 (iterate_over_all_matching_symtabs): New argument
9488 "include_inline". If nonzero, also call the callback for
9489 symbols representing inlined subroutines.
9490 (lookup_prefix_sym): Pass extra argument to the above.
9491 (find_function_symbols): Likewise.
9492 (add_matching_symbols_to_info): Likewise.
9493 * NEWS: Mention that GDB can now set breakpoints on inlined
9494 functions.
9495
9496 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9497
9498 * p-typeprint.c (pascal_type_print_method_args):
9499 Fix display of parameter of methods.
9500
9501 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9502
9503 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9504 Add missing prototype.
9505
9506 2012-03-16 Yao Qi <yao@codesourcery.com>
9507 Jan Kratochvil <jan.kratochvil@redhat.com>
9508
9509 Fix false compilation warning.
9510 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9511
9512 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9513 Pedro Alves <pedro@codesourcery.com>
9514
9515 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9516 (arm_register_g_packet_guesses): New function.
9517 (arm_gdbarch_init): Don't force a target description with
9518 registers when the executable is detected as M-profile. Instead
9519 set gdbarch->tdep->is_m. Register `g' packet guesses.
9520 (_initialize_arm_tdep): Initialize the new target description.
9521 * features/arm-with-m-fpa-layout.xml: New description.
9522 * features/arm-with-m-fpa-layout.c: New, generated.
9523
9524 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9525
9526 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9527 Update function description.
9528 (insert_bp_location): Do not wipe bl->target_info out.
9529 * mem-break.c: #include "gdb_string.h".
9530 (default_memory_insert_breakpoint): Do not call target_read_memory
9531 with a pointer to the breakpoint's shadow_contents buffer. Use
9532 a local buffer instead.
9533 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9534
9535 2012-03-15 Tom Tromey <tromey@redhat.com>
9536
9537 * NEWS: Mention "info vtbl", not "info vtable".
9538 * cp-support.c (info_vtbl_command): Fix comment.
9539 (_initialize_cp_support): Fix text.
9540
9541 2012-03-15 Tom Tromey <tromey@redhat.com>
9542
9543 * cp-valprint.c (cp_print_value_fields): Use
9544 print_function_pointer_address for vtable slot.
9545
9546 2012-03-15 Tom Tromey <tromey@redhat.com>
9547
9548 * gnu-v3-abi.c (struct value_and_voffset): New.
9549 (hash_value_and_voffset, eq_value_and_voffset)
9550 (compare_value_and_voffset, compute_vtable_size)
9551 (print_one_vtable, gnuv3_print_vtable): New functions.
9552 (init_gnuv3_ops): Initialize 'print_vtable' field.
9553 * cp-support.c (info_vtbl_command): New function.
9554 (_initialize_cp_support): Add "info vtbl".
9555 * cp-abi.h (cplus_print_vtable): Declare.
9556 (struct cp_abi_ops) <print_vtable>: New field.
9557 * cp-abi.c (cplus_print_vtable): New function.
9558 * NEWS: Update.
9559
9560 2012-03-15 Tom Tromey <tromey@redhat.com>
9561
9562 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9563 iterate_over_symbols.
9564
9565 2012-03-14 Doug Evans <dje@google.com>
9566
9567 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9568 DW_OP_GNU_parameter_ref.
9569
9570 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9571
9572 Fix double prompt of 'interpreter-exec mi'.
9573 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9574 (mi_interpreter_resume): use it.
9575 (mi_execute_command_input_handler): New function.
9576 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9577 mi_execute_command_input_handler.
9578
9579 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9580
9581 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9582 prototype.
9583 (darwin_debug_port_info): Make static.
9584 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9585 * machoread.c (_initialize_machoread): Add prototype.
9586 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9587 (i386_darwin_set_control, i386_darwin_get_control)
9588 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9589 i386_darwin_get_status, i386_darwin_get_control):
9590 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9591
9592 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9593
9594 * ax-gdb.c (gen_usual_unary): Remove special handling of
9595 enum and bool types.
9596
9597 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9598
9599 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9600
9601 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9602
9603 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9604
9605 2012-03-13 Chris January <chris.january@allinea.com>
9606
9607 * aix-thread.c (fill_sprs): Store the floating point registers
9608 at the correct offsets into vals.
9609
9610 2012-03-13 Doug Evans <dje@google.com>
9611
9612 * NEWS: Mention symbol-reloading has been deleted.
9613 * symfile.c (symbol_reloading): Delete.
9614 (show_symbol_reloading): Delete.
9615 (_initialize_symfile): Delete set/show symbol-reloading.
9616
9617 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9618 read_in_chain until we have successfully read it in.
9619 (load_full_comp_unit): Ditto.
9620 (read_signatured_type): Add comment.
9621
9622 2012-03-13 Chris January <chris.january@allinea.com>
9623
9624 * stabsread.c (fix_common_block): Change type of valu argument
9625 to CORE_ADDR.
9626
9627 2012-03-13 Chris January <chris.january@allinea.com>
9628
9629 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9630 instruction.
9631
9632 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9633
9634 * common/linux-procfs.c (linux_proc_get_int): New, from
9635 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9636 field.
9637 (linux_proc_get_tgid): Only call linux_proc_get_int.
9638 (linux_proc_get_tracerpid): New.
9639 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9640 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9641 linux_proc_pid_has_state.
9642 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9643 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9644 (linux_ptrace_attach_warnings): New.
9645 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9646 New declaration.
9647 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9648 (linux_nat_attach): New variables ex, buffer, message and message_s.
9649 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9650
9651 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9652
9653 * Makefile.in (linux-ptrace.o): New.
9654 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9655 from linux-nat.c.
9656 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9657 * common/linux-ptrace.c: New file.
9658 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9659 * config/arm/linux.mh: Likewise.
9660 * config/i386/linux.mh: Likewise.
9661 * config/i386/linux64.mh: Likewise.
9662 * config/ia64/linux.mh: Likewise.
9663 * config/m32r/linux.mh: Likewise.
9664 * config/m68k/linux.mh: Likewise.
9665 * config/mips/linux.mh: Likewise.
9666 * config/pa/linux.mh: Likewise.
9667 * config/powerpc/linux.mh: Likewise.
9668 * config/powerpc/ppc64-linux.mh: Likewise.
9669 * config/powerpc/spu-linux.mh: Likewise.
9670 * config/s390/s390.mh: Likewise.
9671 * config/sparc/linux.mh: Likewise.
9672 * config/sparc/linux64.mh: Likewise.
9673 * config/xtensa/linux.mh: Likewise.
9674 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9675 common/linux-procfs.c.
9676 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9677
9678 2012-03-13 Hui Zhu <teawater@gmail.com>
9679 Pedro Alves <palves@redhat.com>
9680
9681 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9682 CREATE_BREAKPOINT_FLAGS_INSERTED.
9683 (create_breakpoint_sal, create_breakpoints_sal)
9684 (base_breakpoint_create_breakpoints_sal)
9685 (tracepoint_create_breakpoints_sal)
9686 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9687 down.
9688 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9689 (ftrace_command, strace_command): Adjust.
9690 (create_tracepoint_from_upload): Pass
9691 CREATE_BREAKPOINT_FLAGS_INSERTED.
9692 * breakpoint.h (enum breakpoint_create_flags): New.
9693 (create_breakpoint): New flags parameter.
9694 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9695 * python/py-breakpoint.c (bppy_init): Adjust.
9696 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9697 * spu-tdep.c (spu_catch_start): Adjust.
9698
9699 2012-03-13 Pedro Alves <palves@redhat.com>
9700 Hui Zhu <teawater@gmail.com>
9701 Yao Qi <yao@codesourcery.com>
9702
9703 * remote.c (struct remote_state): New field `starting_up'.
9704 (remote_start_remote): Set and clear it.
9705 (remote_can_download_tracepoint): If starting up, return false.
9706
9707 2012-03-13 Yao Qi <yao@codesourcery.com>
9708
9709 * inferior.h (struct inferior): Remove fields any_syscall_count,
9710 syscalls_counts and total_syscalls_count. Move them to new
9711 struct catch_syscall_inferior_data in breakpoint.c.
9712 * breakpoint.c: Call DEF_VEC_I(int).
9713 (struct catch_syscall_inferior_data): New.
9714 (get_catch_syscall_inferior_data): New.
9715 (catch_syscall_inferior_data_cleanup): New.
9716 (insert_catch_syscall): Update to access data in
9717 struct catch_syscall_inferior_data.
9718 (insert_catch_syscall): Likewise.
9719 (remove_catch_syscall): Likewise.
9720 (remove_catch_syscall): Likewise.
9721 (is_syscall_catchpoint_enabled): Likewise.
9722 (add_catch_command): Likewise.
9723 (_initialize_breakpoint): Register cleanup.
9724 * breakpoint.h: Removed DEF_VEC_I(int).
9725 * dwarf2loc.c: Call DEF_VEC_I(int).
9726 * mi/mi-main.c: Likewise.
9727
9728 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9729
9730 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9731
9732 2012-03-12 Chris January <chris.january@allinea.com>
9733
9734 * aix-thread.c (_initialize_aix_thread): Add prototype.
9735 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9736 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9737
9738 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9739
9740 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9741 include of "amd64-nat.h".
9742
9743 2012-03-12 Tom Tromey <tromey@redhat.com>
9744
9745 * buildsym.c (record_pending_block): Now static.
9746 * buildsym.h: (record_pending_block): Remove.
9747
9748 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9749
9750 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9751
9752 2012-03-09 Tom Tromey <tromey@redhat.com>
9753
9754 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9755 producer_is_gxx_lt_4_6>: New fields.
9756 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9757
9758 2012-03-09 Tom Tromey <tromey@redhat.com>
9759
9760 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9761
9762 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9763
9764 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9765 prototype.
9766
9767 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9768
9769 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9770
9771 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9772
9773 Fix -Wmissing-prototypes build.
9774 * arm-linux-nat.c (get_thread_id): Make it static.
9775 * xtensa-linux-nat.c (get_thread_id): Likewise.
9776
9777 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9778
9779 * server.c (process_point_options): If a conditional expression
9780 is found, only print a message if remote_debug is nonzero.
9781
9782 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9783
9784 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9785 of internal error for unknown/unsupported types.
9786
9787 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9788
9789 Fix CU relative vs. absolute DIE offsets.
9790 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9791 offset to offset_in_cu.
9792 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9793 TYPE_OFFSET.
9794 (dwarf2_fetch_die_location_block): Rename parameter offset to
9795 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9796
9797 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9798
9799 * libunwind-frame.c: Rename to ...
9800 * ia64-libunwind-tdep.c: ... here.
9801 * libunwind-frame.h: Rename to ...
9802 * ia64-libunwind-tdep.h: ... here.
9803 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9804 ia64-libunwind-tdep.h.
9805 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9806 * README (--with-libunwind): Rename to ...
9807 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9808 * config.in: Regenerate.
9809 * configure: Regenerate.
9810 * configure.ac: New option --with-libunwind-ia64, make the
9811 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9812 Remove AC_DEFINE for HAVE_LIBUNWIND.
9813 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9814 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9815 Rename libunwind-frame in the general comment.
9816 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9817 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9818 Move forward declarations inside #ifndef. Rename libunwind-frame in
9819 the general comment.
9820 * ia64-tdep.c: Rename libunwind-frame.h #include to
9821 ia64-libunwind-tdep.h.
9822 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9823 (ia64_libunwind_descr): Rename libunwind-frame to
9824 ia64-libunwind-tdep in these function comments.
9825 * ia64-tdep.h: Rename libunwind-frame.h #include to
9826 ia64-libunwind-tdep.h.
9827 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9828 ia64-libunwind-tdep in that data comment.
9829
9830 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9831
9832 * libunwind-frame.h (struct frame_unwind): New declaration.
9833
9834 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9835
9836 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9837 "set breakpoint condition-evaluation" command.
9838
9839 2012-03-08 Tristan Gingold <gingold@adacore.com>
9840
9841 * sparc-stub.c: Move to stubs/
9842 * sh-stub.c: Likewise.
9843 * m68k-stub.c: Likewise.
9844 * m32r-stub.c: Likewise.
9845 * i386-stub.c: Likewise.
9846
9847 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9848
9849 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9850 linux_get_siginfo_type.
9851
9852 * m68klinux-nat.c: Include "gdb_proc_service.h".
9853 (PTRACE_GET_THREAD_AREA): Define.
9854 (ps_get_thread_area): New function.
9855
9856 2012-03-08 Yao Qi <yao@codesourcery.com>
9857
9858 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9859 `xsnprintf'.
9860 (remote_query_attached): Likewise.
9861 (remote_static_tracepoint_marker_at): Likewise.
9862 (remote_set_permissions): Likewise.
9863 (remote_detach_1, extended_remote_attach_1): Likewise.
9864 (send_g_packet, remote_vkill): Likewise.
9865 (extended_remote_disable_randomization): Likewise.
9866 (remote_add_target_side_condition): Likewise.
9867 (remote_insert_breakpoint): Likewise.
9868 (remote_remove_breakpoint): Likewise.
9869 (remote_insert_watchpoint): Likewise.
9870 (remote_remove_watchpoint): Likewise.
9871 (remote_insert_hw_breakpoint): Likewise.
9872 (remote_insert_hw_breakpoint): Likewise.
9873 (remote_remove_hw_breakpoint): Likewise.
9874 (remote_download_command_source): Likewise.
9875 (remote_download_tracepoint): Likewise.
9876 (remote_download_trace_state_variable): Likewise.
9877 (remote_disable_tracepoint): Likewise.
9878 (remote_trace_set_readonly_regions): Likewise.
9879 (remote_get_tracepoint_status): Likewise.
9880 (remote_trace_find): Likewise.
9881 (remote_get_trace_state_variable_value): Likewise.
9882 (remote_set_disconnected_tracing): Likewise.
9883 (remote_set_circular_trace_buffer): Likewise.
9884 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9885 (remote_use_agent): Likewise.
9886 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9887 Update callers.
9888
9889 2012-03-07 Pedro Alves <palves@redhat.com>
9890
9891 * NEWS: Mention QProgramSignals.
9892 * inferior.h (update_signals_program_target): Declare.
9893 * infrun.c: (update_signals_program_target): New.
9894 (handle_command): Update the target of the new program signals
9895 array changes.
9896 * remote.c (PACKET_QProgramSignals): New enum.
9897 (last_program_signals_packet): New global.
9898 (remote_program_signals): New.
9899 (remote_start_remote): Update the target with the program signals
9900 list.
9901 (remote_protocol_features): Add entry for QPassSignals.
9902 (remote_open_1): Free anc clear last_program_signals_packet.
9903 (init_remote_ops): Install remote_program_signals.
9904 * target.c (update_current_target): Adjust.
9905 (target_program_signals): New.
9906 * target.h (struct target_ops) <to_program_signals>: New field.
9907 (target_program_signals): Declare.
9908
9909 2012-03-07 Pedro Alves <palves@redhat.com>
9910
9911 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9912 extensions.
9913
9914 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9915
9916 * m68klinux-nat.c (getregs_supplies): Make static.
9917 (getfpregs_supplies): Likewise.
9918 (have_ptrace_getregs): Likewise.
9919
9920 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9921
9922 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9923 in call to get_die_type_at_offset.
9924
9925 2012-03-06 Stan Shebs <stan@codesourcery.com>
9926
9927 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9928 * mi/mi-cmd-disas.c: Ditto.
9929 * mi/mi-cmd-env.c: Ditto.
9930 * mi/mi-cmd-file.c: Ditto.
9931 * mi/mi-cmd-stack.c: Ditto.
9932 * mi/mi-cmd-target.c: Ditto.
9933 * mi/mi-cmd-var.c: Ditto.
9934 * mi/mi-cmds.c: Ditto.
9935 * mi/mi-cmds.h: Ditto.
9936 * mi/mi-console.c: Ditto.
9937 * mi/mi-getopt.c: Ditto.
9938 * mi/mi-getopt.h: Ditto.
9939 * mi/mi-interp.c: Ditto.
9940 * mi/mi-main.c: Ditto.
9941 * mi/mi-out.c: Ditto.
9942 * mi/mi-parse.c: Ditto.
9943 * mi/mi-parse.h: Ditto.
9944 * mi/mi-symbol-cmds.c: Ditto.
9945
9946 * mi/mi-getopt.h: Move mi_opt struct up.
9947 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9948 return.
9949 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9950
9951 2012-03-06 Tom Tromey <tromey@redhat.com>
9952
9953 * proc-service.c (ps_pglobal_lookup): Set the current program
9954 space.
9955
9956 2012-03-06 Pedro Alves <palves@redhat.com>
9957
9958 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9959
9960 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9961
9962 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9963
9964 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9965
9966 Code cleanup.
9967 * common/linux-osdata.c (linux_common_core_of_thread): New function
9968 comment.
9969 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9970 call by linux_common_core_of_thread.
9971 (linux_nat_core_of_thread_1): Remove.
9972 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9973 * linux-thread-db.c: Include linux-osdata.h.
9974 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9975 linux_common_core_of_thread.
9976
9977 2012-03-05 Tom Tromey <tromey@redhat.com>
9978
9979 * value.c (value_primitive_field): Don't fetch contents for
9980 non-virtual bases.
9981
9982 2012-03-05 Tom Tromey <tromey@redhat.com>
9983
9984 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9985
9986 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9987
9988 * s390-nat.c: Include "gregset.h".
9989
9990 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9991
9992 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9993 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9994 (libunwind_load): New variable so_error, use it for dlerror. Try to
9995 load also LIBUNWIND_SO_7.
9996
9997 2012-03-05 Pedro Alves <palves@redhat.com>
9998
9999 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10000 is not NULL, and remove resulting dead code.
10001
10002 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10003
10004 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10005 prologue to sh_analyze_prologue.
10006 (sh_analyze_prologue): Make better use of such an upper limit, and
10007 generally be more cautious about accessing memory.
10008
10009 2012-03-05 Tom Tromey <tromey@redhat.com>
10010
10011 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10012 _initialize_ia64_hpux_tdep.
10013
10014 2012-03-05 Pedro Alves <palves@redhat.com>
10015
10016 PR gdb/13766
10017
10018 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10019 the register state is clear, supply explicit zero, instead of
10020 marking the register unavailable.
10021
10022 2012-03-05 Tristan Gingold <gingold@adacore.com>
10023
10024 * NEWS: Mention OpenVMS ia64 new target.
10025
10026 2012-03-05 Tristan Gingold <gingold@adacore.com>
10027
10028 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10029 (ia64_unw_accessors, ia64_unw_rse_accessors)
10030 (ia64_libunwind_descr): Declare.
10031 * ia64-vms-tdep.c: New file.
10032 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10033 (ia64_libunwind_descr): Make them public.
10034 * configure.tgt: Add ia64-*-*vms*.
10035 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10036 (ALLDEPFILES): Add ia64-vms-tdep.c
10037
10038 2012-03-05 Tristan Gingold <gingold@adacore.com>
10039
10040 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10041 * remote.c (PACKET_qXfer_uib): New enum value.
10042 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10043 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10044 (_initialize_remote): Call add_packet_config_cmd for
10045 xfer:uib packet.
10046
10047 2012-03-05 Tristan Gingold <gingold@adacore.com>
10048
10049 * osabi.c (gdb_osabi_names): Add OpenVMS.
10050 (generic_elf_osabi_sniffer): Likewise.
10051 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10052
10053 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10054
10055 Removed unused code.
10056 * libunwind-frame.c (libunwind_frame_unwind)
10057 (libunwind_frame_base_address): Remove.
10058 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10059
10060 2012-03-04 Yao Qi <yao@codesourcery.com>
10061
10062 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10063 remove trailing new line.
10064 (agent_run_command, agent_run_command): Add _ markup.
10065 (agent_capability_check): Likewise.
10066
10067 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10068
10069 * breakpoint.c (set_condition_evaluation_mode): Set
10070 CONDITION_EVALUATION_MODE unconditionally.
10071
10072 2012-03-03 Yao Qi <yao@codesourcery.com>
10073
10074 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10075 * common/agent.h: Update declaration.
10076 * inf-child.c (inf_child_use_agent): New.
10077 (inf_child_can_use_agent): New.
10078 (inf_child_target): Initialize fields `to_use_agent'
10079 and `to_can_use_agent'.
10080 * agent.c (agent_new_objfile): New.
10081 (_initialize_agent): Add agent_new_objfile to new_objfile
10082 observer.
10083
10084 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10085 New.
10086 (linux_target_install_ops): Initialize field
10087 `to_static_tracepoint_markers_by_strid'.
10088 * remote.c (free_current_marker): Move it to ...
10089 * tracepoint.c (free_current_marker): ... here. New.
10090 (cleanup_target_stop): New.
10091 * tracepoint.h: Declare free_current_marker.
10092 * NEWS: Add one entry about `info static-tracepoint-marker'.
10093
10094 2012-03-03 Yao Qi <yao@codesourcery.com>
10095
10096 * common/agent.c (agent_loaded_p): New.
10097 (agent_look_up_symbols): New global.
10098 * common/agent.h: Declare agent_loaded_p.
10099
10100 2012-03-03 Yao Qi <yao@codesourcery.com>
10101
10102 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10103 (agent_capability_check, agent_capability_invalidate): New.
10104 (symbol_list): New array element.
10105 * common/agent.h (enum agent_capa): New.
10106 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10107
10108 2012-03-03 Yao Qi <yao@codesourcery.com>
10109
10110 * target.h (struct target_ops) <to_use_agent>: New field.
10111 (struct target_ops) <to_can_use_agent>: New field.
10112 (target_use_agent, target_can_use_agent): New macro.
10113 * target.c (update_current_target): Update.
10114 * remote.c: New enum `PACKET_QAgent'.
10115 (remote_protocol_features): Add a new element.
10116 (remote_use_agent, remote_can_use_agent): New.
10117 (init_remote_ops): Initialize field `can_use_agent' with
10118 remote_can_use_agent. Intiailize field `use_agent' with
10119 remote_use_agent.
10120 * common/agent.c (use_agent): New global.
10121 * common/agent.h: Declare it.
10122 * tracepoint.c (info_static_tracepoint_markers_command): Add
10123 comment.
10124 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10125 (COMMON_OBS): Add common/agent.o and agent.o
10126 (common-agent.o): New rule.
10127 * agent.c: New.
10128
10129 2012-03-03 Yao Qi <yao@codesourcery.com>
10130
10131 * common/agent.c: New.
10132 * common/agent.h: New.
10133 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10134 AC_CHECK_HEADERS.
10135 * configure, configh.in: Regenerated.
10136
10137 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10138
10139 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10140 unless it exists for this architecture.
10141
10142 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10143
10144 * language.h (struct language_defn): New "method" la_read_var_value.
10145 * findvar.c: #include "language.h".
10146 (default_read_var_value): Renames read_var_value. Rewrite
10147 function description.
10148 (read_var_value): New function.
10149 * value.h (default_read_var_value): Add prototype.
10150 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10151 New functions.
10152 (ada_language_defn): Add entry for la_read_var_value.
10153 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10154 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10155 language_defn structures to add entry for new la_read_var_value
10156 field.
10157
10158 2012-03-02 Tom Tromey <tromey@redhat.com>
10159 Pedro Alves <palves@redhat.com>
10160
10161 PR breakpoints/13776:
10162 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10163 breakpoints.
10164 (delete_longjmp_breakpoint_at_next_stop): New.
10165 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10166 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10167 before deleting the inferior. Add comments.
10168 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10169 breakpoints immediately, but only on next stop. Move that code
10170 next to where we mark other breakpoints for deletion.
10171
10172 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10173
10174 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10175 marker.
10176 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10177 violation.
10178
10179 2012-03-02 Pedro Alves <palves@redhat.com>
10180
10181 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10182
10183 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10184
10185 Fix -Wmissing-prototypes build.
10186 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10187 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10188 (gdbsim_has_memory): Likewise.
10189
10190 2012-03-02 Yao Qi <yao@codesourcery.com>
10191
10192 Fix -Wmissing-prototypes build.
10193 * charset.c (phony_iconv_open): Make static.
10194 (phony_iconv_close, phony_iconv): Likewise.
10195 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10196 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10197 prototype.
10198 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10199 * ser-mingw.c (create_select_thread): Make static.
10200 * windows-termcap.c (tgetent): New prototype.
10201 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10202
10203 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10204
10205 Fix -Wmissing-prototypes build.
10206 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10207 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10208 (_initialize_loadable): New prototypes.
10209
10210 2012-03-02 Doug Evans <dje@google.com>
10211
10212 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10213 abbrev table, read_comp_unit will do it.
10214
10215 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10216
10217 Fix -Wmissing-prototypes build.
10218 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10219 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10220 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10221 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10222 (_initialize_arm_symbian_tdep): New prototype.
10223 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10224 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10225 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10226 static.
10227 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10228 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10229 prototype.
10230 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10231 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10232 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10233 static.
10234 * moxie-tdep.c (moxie_process_record): Likewise.
10235 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10236 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10237 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10238 (_initialize_rl78_tdep): New prototype.
10239 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10240 (_initialize_rx_tdep): New prototype.
10241 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10242 (_initialize_darwin_solib): New prototype.
10243 * solib-spu.c: Include solib-spu.h.
10244 (_initialize_spu_solib): New prototype.
10245 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10246 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10247 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10248 (tic6x_software_single_step): Make it static.
10249 (_initialize_tic6x_tdep): New prototype.
10250
10251 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10252
10253 Fix -Wmissing-prototypes build.
10254 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10255 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10256
10257 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10258
10259 Fix -Wmissing-prototypes build.
10260 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10261 (frv_have_stopped_data_address): Remove.
10262
10263 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10264
10265 Fix -Wmissing-prototypes build.
10266 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10267 * sh-tdep.c: Include sh64-tdep.h.
10268 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10269 * sh64-tdep.c: Include sh64-tdep.h.
10270 * sh64-tdep.h: New file.
10271
10272 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10273
10274 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10275
10276 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10277
10278 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10279 sp_regnum once the gdbarch_init_osabi hook has been called.
10280
10281 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10282
10283 * mips-tdep.c (mips32_bc1_pc): New function.
10284 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10285 BPOSGE32 and BPOSGE64 instructions.
10286 (deal_with_atomic_sequence): Likewise.
10287 (mips32_instruction_has_delay_slot): Likewise.
10288
10289 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10290 Chris Dearman <chris@mips.com>
10291 Maciej W. Rozycki <macro@codesourcery.com>
10292 Joseph Myers <joseph@codesourcery.com>
10293
10294 * features/mips-dsp.xml: New file.
10295 * features/mips64-dsp.xml: New file.
10296 * features/mips-dsp-linux.xml: New file.
10297 * features/mips64-dsp-linux.xml: New file.
10298 * features/Makefile (WHICH): Add mips-dsp-linux and
10299 mips64-dsp-linux.
10300 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10301 * features/mips-dsp-linux.c: New file.
10302 * features/mips64-dsp-linux.c: New file.
10303 * regformats/mips-dsp-linux.dat: New file.
10304 * regformats/mips64-dsp-linux.dat: New file.
10305 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10306 registers.
10307 (mips64_linux_register_addr): Likewise.
10308 (mips64_linux_regsets_fetch_registers): Likewise.
10309 (mips64_linux_regsets_store_registers): Likewise.
10310 (mips64_linux_fetch_registers): Update call to
10311 mips64_linux_regsets_fetch_registers.
10312 (mips64_linux_store_registers): Update call to
10313 mips64_linux_regsets_store_registers.
10314 (mips_linux_read_description): Probe for DSP registers.
10315 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10316 and initialize_tdesc_mips64_dsp_linux.
10317 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10318 Remove padding of no longer used embedded register slots.
10319 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10320 (MIPS_RESTART_REGNUM): Redefine enum value.
10321 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10322 strings.
10323 (mips_tx39_reg_names): Likewise.
10324 (mips_linux_reg_names): New array of register names for Linux
10325 targets.
10326 (mips_register_name): Check for a null pointer in
10327 mips_processor_reg_names and return an empty string.
10328 (mips_register_type): Exclude embedded registers for the IRIX
10329 and Linux ABIs.
10330 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10331 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10332 DSP registers.
10333 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10334 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10335 (mips_gdbarch_init): Likewise. Initialize internal register
10336 indices for the Linux ABI. Use dynamic numbers to refer to
10337 registers, as applicable, while parsing the target description.
10338 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10339
10340 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10341
10342 * frame.h (read_frame_register_unsigned): Fix typo in function
10343 description.
10344
10345 2012-03-01 Pedro Alves <palves@redhat.com>
10346
10347 * jit-reader.in [!__cplusplus]
10348 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10349
10350 2012-03-01 Pedro Alves <palves@redhat.com>
10351
10352 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10353 * configure: Regenerate.
10354
10355 2012-03-01 Pedro Alves <palves@redhat.com>
10356
10357 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10358 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10359 (ftrace_command, strace_command): Make static.
10360 * d-lang.c (_initialize_d_language): Declare.
10361 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10362 * dwarf2loc.c (_initialize_dwarf2loc):
10363 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10364 * exec.c (exec_get_section_table): Make static.
10365 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10366 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10367 * inferior.c (remove_inferior_command, add_inferior_command)
10368 (clone_inferior_command): Make static.
10369 * linux-nat.c (linux_nat_thread_address_space)
10370 (linux_nat_core_of_thread): Make static.
10371 * linux-tdep.c (_initialize_linux_tdep): Declare.
10372 * objc-lang.c (_initialize_objc_lang): Declare.
10373 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10374 Make static.
10375 (_initialize_opencl_language): Declare.
10376 * record.c (_initialize_record): Declare.
10377 * remote.c (demand_private_info, remote_get_tib_address)
10378 (remote_supports_cond_tracepoints)
10379 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10380 Make static.
10381 * skip.c (_initialize_step_skip): Declare.
10382 * symtab.c (skip_prologue_using_lineinfo): Make static.
10383 * tracepoint.c (delete_trace_state_variable)
10384 (trace_variable_command, delete_trace_variable_command)
10385 (get_uploaded_tsv, find_matching_tracepoint_location)
10386 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10387 Make static.
10388 * value.c (pack_unsigned_long): Make static.
10389 * varobj.c (varobj_ensure_python_env): Make static.
10390 * windows-tdep.c (_initialize_windows_tdep): Declare.
10391 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10392
10393 2012-03-01 Pedro Alves <palves@redhat.com>
10394
10395 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10396 gdbarch parameter.
10397 (linux_init_abi): Install it as has_shared_address_space gdbarch
10398 callback.
10399
10400 2012-03-01 Pedro Alves <palves@redhat.com>
10401
10402 * observer.c (observer_test_first_notification_function)
10403 (observer_test_second_notification_function)
10404 (observer_test_third_notification_function): Add declarations.
10405
10406 2012-03-01 Pedro Alves <palves@redhat.com>
10407
10408 * common/signals.c (default_target_signal_to_host)
10409 (default_target_signal_from_host): Move ...
10410 * arch-utils.c: ... here.
10411 * arch-utils.h (default_target_signal_to_host)
10412 (default_target_signal_from_host): Declare.
10413
10414 * common/signals.c (target_signal_from_command): Move ...
10415 * infrun.c: ... here.
10416 * inferior.h (target_signal_from_command): Declare.
10417 * target.h (target_signal_from_command)
10418 (default_target_signal_from_host, default_target_signal_to_host):
10419 Delete declarations.
10420
10421 * common/signals.c (_initialize_signals): Delete.
10422
10423 2012-03-01 Pedro Alves <palves@redhat.com>
10424
10425 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10426 both __cplusplus and !__cplusplus.
10427
10428 2012-03-01 Pedro Alves <palves@redhat.com>
10429
10430 * psymtab.c (find_and_open_source): Delete declaration.
10431 * source.c (find_and_open_source): Move comment ...
10432 * source.h (find_and_open_source): ... to this new declaration.
10433
10434 2012-03-01 Pedro Alves <palves@redhat.com>
10435
10436 * inline-frame.c: Include inline-frame.h.
10437
10438 2012-03-01 Pedro Alves <palves@redhat.com>
10439
10440 * tui/tui-data.c (set_gen_win_origin): Delete.
10441 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10442 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10443
10444 2012-03-01 Pedro Alves <palves@redhat.com>
10445
10446 * remote.c (encode_actions): Delete declaration.
10447 * tracepoint.c (encode_actions): Make extern.
10448 * tracepoint.h (encode_actions): Declare.
10449
10450 2012-03-01 Pedro Alves <palves@redhat.com>
10451
10452 * python/py-breakpoint.c: Include python.h.
10453 * python/py-continueevent.c (create_continue_event_object): Make
10454 static.
10455 * python/py-lazy-string.c (stpy_get_type): Make static.
10456 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10457 Make static.
10458 * python/py-utils.c (unicode_to_target_python_string): Make
10459 static.
10460 * python/py-value.c: Include python.h.
10461
10462 2012-03-01 Pedro Alves <palves@redhat.com>
10463
10464 * inferior.c (delete_threads_of_inferior): Delete.
10465
10466 2012-03-01 Pedro Alves <palves@redhat.com>
10467
10468 Import fallback definitions from glibc.
10469
10470 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10471 ps_prochandle): Forward declare.
10472 (ps_err_e): Use glibc's comments.
10473 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10474 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10475 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10476 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10477 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10478 (struct ps_prochandle): Adjust comment.
10479
10480 2012-03-01 Pedro Alves <palves@redhat.com>
10481
10482 * ada-lang.c (ada_modulus_from_name): Delete.
10483 * ada-lex.l (lexer_init): Make static.
10484
10485 2012-03-01 Pedro Alves <palves@redhat.com>
10486
10487 PR gdb/13767
10488
10489 * frame.c (read_frame_register_unsigned): New.
10490 * frame.h (read_frame_register_unsigned): Declare.
10491 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10492 Handle it.
10493 (print_i387_control_word): New parameter `control_p'. Handle it.
10494 (i387_print_float_info): Handle unavailable float registers.
10495
10496 2012-03-01 Keith Seitz <keiths@redhat.com>
10497
10498 * linespec.c (decode_line_2): Sort the list of methods
10499 alphabetically before presenting the user with a selection
10500 menu.
10501
10502 2012-03-01 Doug Evans <dje@google.com>
10503
10504 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10505 has_namespace_info.
10506 (dwarf2_read_abbrevs): Remove corresponding initialization.
10507
10508 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10509
10510 * NEWS: Mention new python command class gdb.COMMAND_USER.
10511 * cli/cli-cmds.c (show_user): Print error when used on a python
10512 command.
10513 (init_cli_cmds): Update documentation strings for "show user" and
10514 "set/show max-user-call-depth" to clarify that it does not apply to
10515 python commands.
10516 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10517 error check.
10518 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10519 gdb python api.
10520 * top.c (execute_command): Only execute a user-defined command as a
10521 legacy macro if c->user_commands is set.
10522
10523 2012-03-01 Tom Tromey <tromey@redhat.com>
10524
10525 * valprint.h (struct generic_val_print_decorations): New.
10526 (generic_val_print): Declare.
10527 * valprint.c (generic_val_print): New function.
10528 * p-valprint.c (p_decorations): New global.
10529 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10530 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10531 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10532 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10533 * m2-valprint.c (m2_decorations): New global.
10534 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10535 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10536 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10537 TYPE_CODE_ERROR>: Call generic_val_print.
10538 * f-valprint.c (f_decorations): New global.
10539 (f_val_print): Use print_function_pointer_address.
10540 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10541 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10542 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10543 generic_val_print.
10544 * c-valprint.c (c_decorations): New global.
10545 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10546 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10547 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10548 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10549 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10550 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10551 case.
10552
10553 2012-03-01 Tom Tromey <tromey@redhat.com>
10554
10555 * valprint.c (val_print): Update.
10556 * p-valprint (pascal_val_print): Return void.
10557 * p-lang.h (pascal_val_print): Return void.
10558 * m2-valprint.c (m2_val_print): Return void.
10559 * m2-lang.h (m2_val_print): Return void.
10560 * language.h (struct language_defn) <la_val_print>: Return void.
10561 * language.c (unk_lang_val_print): Return void.
10562 * jv-valprint.c (java_val_print): Return void.
10563 * jv-lang.h (java_val_print): Return void.
10564 * f-valprint.c (f_val_print): Return void.
10565 * f-lang.h (f_val_print): Return void.
10566 * d-valprint.c (d_val_print): Return void.
10567 (dynamic_array_type): Update.
10568 * d-lang.h (d_val_print): Return void.
10569 * c-valprint.c (c_val_print): Return void.
10570 * c-lang.h (c_val_print): Return void.
10571 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10572 void.
10573 * ada-lang.h (ada_val_print): Return void.
10574
10575 2012-03-01 Tom Tromey <tromey@redhat.com>
10576
10577 * value.h (val_print): Return void.
10578 * valprint.c (val_print): Return void.
10579
10580 2012-03-01 Tom Tromey <tromey@redhat.com>
10581
10582 * value.h (common_val_print): Return void.
10583 * valprint.c (common_val_print): Return void.
10584
10585 2012-03-01 Tom Tromey <tromey@redhat.com>
10586
10587 * value.h (value_print): Return void.
10588 * valprint.c (value_print): Return void.
10589 * p-valprint.c (pascal_value_print): Return void.
10590 * p-lang.h (pascal_value_print): Return void.
10591 * language.h (struct language_defn) <la_value_print>: Return
10592 void.
10593 * language.c (unk_lang_value_print): Return void.
10594 * jv-valprint.c (java_value_print): Return void.
10595 * jv-lang.h (java_value_print): Return void.
10596 * f-valprint.c (c_value_print): Don't declare.
10597 Include c-lang.h.
10598 * c-valprint.c (c_value_print): Return void.
10599 * c-lang.h (c_value_print): Return void.
10600 * ada-valprint.c (ada_value_print): Return void.
10601 * ada-lang.h (ada_value_print): Return void.
10602
10603 2012-03-01 Tom Tromey <tromey@redhat.com>
10604
10605 * value.c (value_primitive_field): Handle virtual base classes.
10606
10607 2012-03-01 Tom Tromey <tromey@redhat.com>
10608
10609 * gdbtypes.h (struct vbase): Remove.
10610
10611 2012-03-01 Tom Tromey <tromey@redhat.com>
10612
10613 * c-valprint.c (print_function_pointer_address): Move...
10614 * valprint.c: ... here. Make non-static.
10615 * m2-valprint.c (print_function_pointer_address): Remove.
10616 * valprint.h (print_function_pointer_address): Declare.
10617
10618 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10619
10620 * NEWS: Document the fact that one can provide a condition when
10621 creating an Ada exception catchpoint.
10622
10623 2012-03-01 Tom Tromey <tromey@redhat.com>
10624
10625 * valprint.c (val_print_type_code_flags): Fix placement of
10626 trailing brace.
10627
10628 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10629
10630 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10631 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10632 environment variable before calling update-copyright.
10633
10634 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10635
10636 * gnulib/extra/update-copyright: Update to the latest from
10637 gnulib's git repository.
10638 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10639 variable to 2 instead of 1.
10640
10641 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10642
10643 * varobj.c (c_value_of_variable): Remove dead code.
10644
10645 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10646
10647 * ada-lex.p (processId): Do not modify already encoded IDs.
10648 Update function documentation.
10649
10650 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10651
10652 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10653 "name" with "struct symbol *name_sym".
10654 * ada-exp.y (write_var_or_type): Update call to
10655 ada_find_renaming_symbol.
10656 "name" with "struct symbol *name_sym". Adjust Implementation
10657 accordingly. Adjust the function documentation.
10658
10659 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10660
10661 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10662 * ada-lang.c (ada_find_any_type): Add advance declaration.
10663 Make static. Replace ada_find_any_symbol by
10664 ada_find_any_type_symbol.
10665 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10666 Improve function description. Make static.
10667 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10668 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10669
10670 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10671
10672 * ada-lang.c (struct tag_args): Delete.
10673 (ada_get_tsd_type): Function body moved up in source file.
10674 (ada_tag_name_1, ada_tag_name_2): Delete.
10675 (ada_get_tsd_from_tag): New function.
10676 (ada_tag_name_from_tsd): New function.
10677 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10678 to determine the tag name.
10679
10680 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10681
10682 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10683 declaration.
10684 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10685 function.
10686
10687 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10688
10689 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10690
10691 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10692
10693 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10694 full searches.
10695
10696 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10697
10698 * ada-lang.c (constrained_packed_array_type): If there is a
10699 parallel XA type, use it to determine the array index type.
10700
10701 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10702
10703 * ada-valprint.c (ada_val_print_1): If our value is a reference
10704 to an array descriptor, dereference it before converting it
10705 to a simple array.
10706
10707 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10708
10709 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10710 creating fixed value.
10711 (ada_value_ind, ada_coerce_ref, assign_component)
10712 (ada_evaluate_subexp): Remove call to unwrap_value before
10713 call to ada_to_fixed_value.
10714
10715 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10716
10717 * ada-lang.c (to_fixed_array_type): Set result's type name.
10718
10719 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10720
10721 * ada-lang.c (catch_ada_exception_command_split): Add new
10722 argument cond_string. Add support for condition at end of
10723 "catch exception" commands.
10724 (ada_decode_exception_location): Add new argument cond_string.
10725 Update call to catch_ada_exception_command_split.
10726 (create_ada_exception_catchpoint): Add new argument cond_string.
10727 Set the breakpoint condition if needed.
10728 (catch_ada_exception_command): Update call to
10729 ada_decode_exception_location.
10730 (ada_decode_assert_location): Add function documentation.
10731 Add support for condition at end of "catch assert" command.
10732 (catch_assert_command): Update calls to ada_decode_assert_location
10733 and create_ada_exception_catchpoint.
10734
10735 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10736
10737 Fix disp-step-syscall.exp: fork: single step over fork.
10738 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10739 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10740 comment, change parameters gdbarch and ptid to regcache. Remove
10741 parameter regcache, initialize gdbarch from regcache here.
10742 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10743 New functions.
10744 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10745 instead.
10746 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10747 'syscall'. Make the 'int' check more strict.
10748
10749 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10750
10751 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10752 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10753 (i386_linux_intx80_sysenter_syscall_record): ... here.
10754 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10755 Use the renamed function name.
10756
10757 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10758
10759 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10760 * breakpoint.c (until_break_command): Likewise.
10761 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10762 * infcall.c (call_function_by_hand): Likewise.
10763 * infcmd.c (finish_forward): Likewise.
10764 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10765
10766 2012-02-28 Tristan Gingold <gingold@adacore.com>
10767
10768 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10769 avoid variable assignments inside condition.
10770
10771 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10772
10773 Fix static analysis issue found by cppcheck.
10774 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10775 uninitialized BUF for size 2.
10776
10777 2012-02-27 Chris Dearman <chris@mips.com>
10778 Nathan Froyd <froydnj@codesourcery.com>
10779 Maciej W. Rozycki <macro@codesourcery.com>
10780
10781 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10782 (mips16_instruction_has_delay_slot): Likewise.
10783 (mips_segment_boundary): Likewise.
10784 (mips_adjust_breakpoint_address): Likewise.
10785 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10786
10787 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10788 Maciej W. Rozycki <macro@codesourcery.com>
10789
10790 * infrun.c (handle_inferior_event): Don't proceed through
10791 shared library trampolines if stepping at the machine
10792 instruction level.
10793
10794 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10795
10796 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10797 too.
10798
10799 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10800
10801 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10802 (sh_stub_unwind_sniffer): New functions.
10803 (sh_stub_unwind): New variable.
10804 (sh_gdbarch_init): Wire everything.
10805
10806 2012-02-27 Pedro Alves <palves@redhat.com>
10807
10808 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10809 (linux_nat_post_attach_wait): Adjust to use
10810 linux_proc_pid_is_stopped.
10811 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10812 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10813 based on pid_is_stopped from both linux-nat.c and
10814 gdbserver/linux-low.c, and renamed.
10815
10816 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10817
10818 * remote.c (remote_watchpoint_addr_within_range): New function.
10819 (init_remote_ops): Use it.
10820
10821 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10822
10823 * target.h (target_watchpoint_addr_within_range): Document macro.
10824
10825 2012-02-24 Pedro Alves <palves@redhat.com>
10826
10827 * stack.c (set_last_displayed_sal): Issue internal_error instead
10828 of warning, and issue it after clearing the last displayed sal.
10829
10830 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10831 Pedro Alves <palves@redhat.com>
10832
10833 * breakpoint.c (until_break_command): Install breakpoints after
10834 all frame manipulations.
10835
10836 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10837
10838 * remote.c (remote_supports_cond_breakpoints): New forward
10839 declaration.
10840 (remote_add_target_side_condition): New function.
10841 (remote_insert_breakpoint): Add target-side breakpoint
10842 conditional if supported.
10843 (remote_insert_hw_breakpoint): Likewise.
10844 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10845 hook.
10846
10847 * target.c (update_current_target): Inherit
10848 to_supports_evaluation_of_breakpoint_conditions.
10849 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10850
10851 * target.h (struct target_ops)
10852 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10853 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10854
10855 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10856 (condition_evaluation_both, condition_evaluation_auto,
10857 condition_evaluation_host, condition_evaluation_target,
10858 condition_evaluation_enums, condition_evaluation_mode_1,
10859 condition_evaluation_mode): New static globals.
10860 (translate_condition_evaluation_mode): New function.
10861 (breakpoint_condition_evaluation_mode): New function.
10862 (gdb_evaluates_breakpoint_condition_p): New function.
10863 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10864 (mark_breakpoint_modified): New function.
10865 (mark_breakpoint_location_modified): New function.
10866 (set_condition_evaluation_mode): New function.
10867 (show_condition_evaluation_mode): New function.
10868 (bp_location_compare_addrs): New function.
10869 (get_first_location_gte_addr): New helper function.
10870 (set_breakpoint_condition): Free condition bytecode if locations
10871 has become unconditional. Call mark_breakpoint_modified (...).
10872 (condition_command): Call update_global_location_list (1) for
10873 breakpoints.
10874 (breakpoint_xfer_memory): Use is_breakpoint (...).
10875 (is_breakpoint): New function.
10876 (parse_cond_to_aexpr): New function.
10877 (build_target_condition_list): New function.
10878 (insert_bp_location): Handle target-side conditional
10879 breakpoints and call build_target_condition_list (...).
10880 (update_inserted_breakpoint_locations): New function.
10881 (insert_breakpoint_locations): Handle target-side conditional
10882 breakpoints.
10883 (bpstat_check_breakpoint_conditions): Add comment.
10884 (bp_condition_evaluator): New function.
10885 (bp_location_condition_evaluator): New function.
10886 (print_breakpoint_location): Print information on where the condition
10887 will be evaluated.
10888 (print_one_breakpoint_location): Likewise.
10889 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10890 breakpoint location.
10891 (force_breakpoint_reinsertion): New functions.
10892 (update_global_location_list): Handle target-side breakpoint
10893 conditions.
10894 Reinsert locations that are already inserted if conditions have
10895 changed.
10896 (bp_location_dtor): Free agent expression bytecode.
10897 (disable_breakpoint): Call mark_breakpoint_modified (...).
10898 Call update_global_location_list (...) with parameter 1 for breakpoints.
10899 (disable_command): Call mark_breakpoint_location_modified (...).
10900 Call update_global_location_list (...) with parameter 1 for breakpoints.
10901 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10902 (enable_command): mark_breakpoint_location_modified (...).
10903 (_initialize_breakpoint): Update documentation and add
10904 condition-evaluation breakpoint subcommand.
10905
10906 * breakpoint.h: Include ax.h.
10907 (condition_list): New data structure.
10908 (condition_status): New enum.
10909 (bp_target_info) <cond_list>: New field.
10910 (bp_location) <condition_changed, cond_bytecode>: New fields.
10911 (is_breakpoint): New prototype.
10912
10913 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10914
10915 * remote.c (remote_state) <cond_breakpoints>: New field.
10916 (PACKET_ConditionalBreakpoints): New enum.
10917 (remote_cond_breakpoint_feature): New function.
10918 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10919 (remote_supports_cond_breakpoints): New function.
10920 (_initialize_remote): Add new packet configuration for
10921 target-side conditional breakpoints.
10922
10923 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10924
10925 * NEWS: Mention target-side conditional breakpoint support,
10926 new condition-evaluation breakpoint subcommand and remote
10927 packet extensions.
10928
10929 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10930
10931 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10932 number.
10933
10934 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10935
10936 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10937 (after_prologue): Remove.
10938
10939 2012-02-23 Tom Tromey <tromey@redhat.com>
10940
10941 * jv-valprint.c (java_val_print): Remove dead code.
10942
10943 2012-02-23 Tristan Gingold <gingold@adacore.com>
10944
10945 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10946 known_tasks_element and known_tasks_length fields.
10947 (read_known_tasks_array): Change argument type. Use pointer type
10948 and number of elements from DATA. Adjust.
10949 (read_known_tasks_list): Likewise.
10950 (get_known_tasks_addr): Remove.
10951 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10952 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10953 type and array length. Merge former get_known_tasks_addr code.
10954
10955 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10956
10957 PR backtrace/13716
10958 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10959 it after set_momentary_breakpoint.
10960
10961 2012-02-22 Sterling Augustine <saugustine@google.com>
10962
10963 PR 13689:
10964 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10965
10966 2012-02-22 Gary Benson <gbenson@redhat.com>
10967
10968 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10969 (find_slot_in_mapped_hash): Likewise.
10970
10971 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10972
10973 PR build/13638
10974 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10975 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10976 * configure: Regenerate.
10977
10978 2012-02-21 Tristan Gingold <gingold@adacore.com>
10979 Pedro Alves <palves@redhat.com>
10980
10981 * ia64-tdep.c: Do not include libunwind-ia64.h.
10982 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10983 Include libunwind-ia64.h instead of libunwind.h.
10984 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10985 for libunwind.h existence.
10986 * configure, config.in: Regenerate.
10987
10988 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10989
10990 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10991 instead of value_rtti_target_type.
10992 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10993 instead of value_rtti_target_type.
10994 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10995 value_rtti_target_type.
10996 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10997 (value_rtti_target_type): Rename to ...
10998 (value_rtti_indirect_type): ... here and make it indirect. Update
10999 function comment.
11000 * value.c (readjust_indirect_value_type): New function.
11001 (coerce_ref): Support for enclosing type setting for references
11002 with readjust_indirect_value_type.
11003 * value.h (readjust_value_type): New declaration.
11004 (value_rtti_target_type): Rename to ...
11005 (value_rtti_indirect_type): ... here.
11006
11007 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11008
11009 * MAINTAINERS (Write After Approval): Add myself to the list.
11010
11011 2012-02-20 Doug Evans <dje@google.com>
11012
11013 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11014 Rename objfile_p_char parameter to objfilep.
11015 (build_objfile_section_table): Result is now void. All callers
11016 updated.
11017 * objfiles.h (struct objfile): Tweak comments, whitespace.
11018 (build_objfile_section_table): Update.
11019
11020 * elfread.c (elf_symfile_segments): Fix warning text.
11021
11022 2012-02-20 Tom Tromey <tromey@redhat.com>
11023
11024 PR gdb/13498:
11025 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11026 particular set of file names once.
11027 (dw2_map_symbol_filenames): Likewise.
11028
11029 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11030
11031 Code cleanup.
11032 * main.c (write_files): Remove the declaration.
11033 (external_editor_command): Move the declaration ...
11034 [GDBTK] (external_editor_command): ... here. Fix the comment.
11035
11036 2012-02-20 Tom Tromey <tromey@redhat.com>
11037
11038 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11039 extraneous block.
11040
11041 2012-02-20 Tristan Gingold <gingold@adacore.com>
11042
11043 * darwin-nat.h (enum darwin_msg_state): Add comments.
11044
11045 2012-02-20 Tristan Gingold <gingold@adacore.com>
11046
11047 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11048 value.
11049
11050 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11051
11052 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11053 between function description and implementation.
11054
11055 2012-02-17 Tom Tromey <tromey@redhat.com>
11056
11057 PR python/12070:
11058 * python/py-event.c (event_object_getset): New global.
11059 (event_object_type): Reference it.
11060 * python/py-type.c (field_object_getset): New global.
11061 (field_object_type): Reference it.
11062 * python/python-internal.h (gdb_py_generic_dict): Declare.
11063 * python/py-utils.c (gdb_py_generic_dict): New function.
11064
11065 2012-02-17 Tristan Gingold <gingold@adacore.com>
11066
11067 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11068
11069 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11070
11071 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11072 TYPE_CALLING_CONVENTION annotation.
11073
11074 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11075
11076 * MAINTAINERS: Add rx to target ISA section.
11077 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11078 (ALLDEPFILES): Add rx-tdep.c.
11079
11080 2012-02-16 Tom Tromey <tromey@redhat.com>
11081
11082 * symfile.c (symbol_file_add_main_1): Use inferior's
11083 symfile_flags.
11084 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11085 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11086 inferior.
11087 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11088 inferior.
11089 (follow_exec): Use inferior's symfile_flags.
11090 * inferior.h (struct inferior) <symfile_flags>: New field.
11091
11092 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11093
11094 PR gdb/9734:
11095 * remote-sim.c (gdbsim_create_inferior): Call error() when
11096 sim_create_inferior() fails.
11097
11098 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11099
11100 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11101
11102 2012-02-16 Tom Tromey <tromey@redhat.com>
11103
11104 PR c++/13653:
11105 * thread.c (struct current_thread_cleanup) <was_removable>: New
11106 field.
11107 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11108 (make_cleanup_restore_current_thread): Initialize new field.
11109
11110 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11111
11112 * MAINTAINERS: Add rl78 to target ISA section.
11113 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11114 (ALLDEPFILES): Add rl78-tdep.c.
11115 * NEWS: Mention rl78 as a new target.
11116
11117 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11118
11119 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11120 data.
11121 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11122
11123 2012-02-15 Tom Tromey <tromey@redhat.com>
11124
11125 PR gdb/12659:
11126 * infcmd.c (registers_info): Print just the current register's
11127 name.
11128
11129 2012-02-15 Tom Tromey <tromey@redhat.com>
11130
11131 * python/py-symbol.c (sympy_value): Use _().
11132
11133 2012-02-15 Pedro Alves <palves@redhat.com>
11134
11135 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11136 output to be like native targets'.
11137 (remote_pid_to_str): Special case the null ptid.
11138
11139 2012-02-14 Stan Shebs <stan@codesourcery.com>
11140
11141 * NEWS: Mention enable count command.
11142 * breakpoint.h (struct breakpoint): New field enable_count.
11143 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11144 (enable_breakpoint): Add arg to call.
11145 (struct disp_data): New struct.
11146 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11147 (do_map_enable_once_breakpoint): Create a struct and pass it.
11148 (do_map_enable_delete_breakpoint): Ditto.
11149 (do_map_enable_count_breakpoint): New function.
11150 (enable_count_command): New function.
11151 (bpstat_stop_status): Decrement enable_count.
11152 (print_one_breakpoint_location): Report enable count.
11153 (_initialize_breakpoint): Add enable count command.
11154
11155 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11156
11157 * rl78-tdep.c (reggroups.h): Include.
11158 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11159 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11160 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11161 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11162 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11163 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11164 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11165 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11166 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11167 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11168 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11169 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11170 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11171 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11172 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11173 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11174 beginning of register list.
11175 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11176 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11177 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11178 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11179 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11180 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11181 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11182 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11183 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11184 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11185 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11186 the pseudo registers. Rearrange other pseudo registers too so
11187 that the bank registers appear at the end.
11188 (rl78_register_type): Account for the fact that the byte sized
11189 bank registers are now pseudo-registers.
11190 (rl78_register_name): Rearrange the register name array. Make
11191 initial set of raw banked registers inaccessible.
11192 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11193 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11194 case for copying bytes back and forth between raw and pseudo
11195 versions of the banked registers. Update other cases to reflect
11196 the changed names.
11197 (rl78_return_value): Update to account for changed names of
11198 raw registers.
11199 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11200 rl78_register_sim_regno().
11201
11202 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11203
11204 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11205 the name parameter being passed to find_pc_partial_function().
11206
11207 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11208
11209 * MAINTAINERS: Step down from being ia64 target maintainer.
11210
11211 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11212
11213 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11214 compilation warning.
11215
11216 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11217
11218 Fix crash on loaded shlibs without loaded exec_bfd.
11219 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11220 (set_section_command): Replace exec_bfd by p->bfd.
11221
11222 2012-02-10 Tom Tromey <tromey@redhat.com>
11223
11224 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11225 when we have a C++ qualified name.
11226
11227 2012-02-10 Pedro Alves <palves@redhat.com>
11228
11229 * inferior.c (inferior_pid_to_str): New.
11230 (print_inferior, inferior_command): Use it.
11231
11232 2012-02-10 Pedro Alves <palves@redhat.com>
11233
11234 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11235 the test CFLAGS.
11236 * configure: Regenerate.
11237
11238 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11239
11240 * linespec.c (decode_line_internal): Fix comment correctness.
11241
11242 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11243
11244 PR gdb/12953
11245 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11246 * amd64bsd-nat.c: Add support for debug registers (adapted from
11247 i386bsd-nat.c).
11248 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11249 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11250 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11251 (amd64bsd_dr_get_control): New functions.
11252 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11253 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11254 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11255 watchpoints initialization.
11256 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11257
11258 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11259
11260 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11261 flds_bnds.fields.
11262 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11263
11264 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11265
11266 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11267
11268 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11269
11270 * language.h (symbol_name_cmp_ftype): Renames
11271 symbol_name_match_p_ftype.
11272 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11273 la_get_symbol_name_match_p.
11274 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11275 ada_get_symbol_name_match_p. Update comment.
11276 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11277 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11278 Renames symbol_name_match_p. Update field type.
11279 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11280 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11281 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11282 "la_get_symbol_name_cmp" in comments.
11283 * language.c: Likewise.
11284
11285 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11286
11287 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11288 %eflags offset.
11289 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11290 (amd64_sol2_gregset32_reg_offs): Likewise.
11291
11292 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11293
11294 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11295 of the returned BFD is allocated by GDB.
11296
11297 2012-02-07 Tom Tromey <tromey@redhat.com>
11298
11299 PR python/12027:
11300 * python/python-internal.h (frame_object_type): Declare.
11301 * python/py-symbol.c (sympy_needs_frame): New function.
11302 (sympy_value): New function.
11303 (symbol_object_getset): Add "needs_frame".
11304 (symbol_object_methods): Add "value".
11305 * python/py-frame.c (frame_object_type): No longer static.
11306
11307 2012-02-07 Tom Tromey <tromey@redhat.com>
11308
11309 PR python/13599:
11310 * python/py-symbol.c (sympy_line): New function.
11311 (symbol_object_getset): Add "line".
11312
11313 2012-02-07 Tom Tromey <tromey@redhat.com>
11314
11315 * charset.c (find_charset_names): Check 'in' against NULL.
11316
11317 2012-02-06 Doug Evans <dje@google.com>
11318
11319 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11320 and fields.name members from char * to const char *. All uses updated.
11321 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11322 from char * to const char *. All uses updated.
11323 (type_name_no_tag): Update.
11324 (lookup_unsigned_typename, lookup_signed_typename): Update.
11325 * gdbtypes.c (type_name_no_tag): Change result type
11326 from char * to const char *. All callers updated.
11327 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11328 name parameter from char * to const char *.
11329 * symtab.h (struct cplus_specific): Change type of demangled_name
11330 member from char * to const char *. All uses updated.
11331 (struct general_symbol_info): Change type of name and
11332 mangled_lang.demangled_name members from char * to const char *.
11333 All uses updated.
11334 (symbol_get_demangled_name, symbol_natural_name): Update.
11335 (symbol_demangled_name, symbol_search_name): Update.
11336 * symtab.c (symbol_get_demangled_name): Change result type
11337 from char * to const char *. All callers updated.
11338 (symbol_natural_name, symbol_demangled_name): Ditto.
11339 (symbol_search_name): Ditto.
11340 (completion_list_add_name): Change type of symname,sym_text,
11341 text,word parameters from char * to const char *.
11342 (completion_list_objc_symbol): Change type of sym_text,
11343 text,word parameters from char * to const char *.
11344 * ada-lang.c (find_struct_field): Change type of name parameter
11345 from char * to const char *.
11346 (encoded_ordered_before): Similarly for N0,N1 parameters.
11347 (old_renaming_is_invisible): Similarly for function_name parameter.
11348 (ada_type_name): Change result type from char * to const char *.
11349 All callers updated.
11350 * ada-lang.h (ada_type_name): Update.
11351 * buildsym.c (hashname): Change type of name parameter
11352 from char * to const char *.
11353 * buildsym.h (hashname): Update.
11354 * dbxread.c (end_psymtab): Change type of include_list parameter
11355 from char ** to const char **.
11356 * dwarf2read.c (determine_prefix): Change result type
11357 from char * to const char *. All callers updated.
11358 * f-lang.c (find_common_for_function): Change type of name, funcname
11359 parameters from char * to const char *.
11360 * f-lang.c (find_common_for_function): Update.
11361 * f-valprint.c (list_all_visible_commons): Change type of funcname
11362 parameters from char * to const char *.
11363 * gdbarch.sh (static_transform_name): Change type of name parameter
11364 and result from char * to const char *.
11365 * gdbarch.c: Regenerate.
11366 * gdbarch.h: Regenerate.
11367 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11368 of name parameter from char * to const char *.
11369 * jv-lang.c (java_primitive_type_from_name): Ditto.
11370 (java_demangled_signature_length): Similarly for signature parameter.
11371 (java_demangled_signature_copy): Ditto.
11372 (java_demangle_type_signature): Ditto.
11373 * jv-lang.h (java_primitive_type_from_name): Update.
11374 (java_demangle_type_signature): Update.
11375 * objc-lang.c (specialcmp): Change type of a,b parameters
11376 from char * to const char *.
11377 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11378 from char * to const char *. All callers updated.
11379 * p-lang.h (is_pascal_string_type): Update.
11380 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11381 of name parameter from char * to const char *.
11382 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11383 * utils.c (fprintf_symbol_filtered): Ditto.
11384 * defs.h (fprintf_symbol_filtered): Update.
11385 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11386 * stabsread.h (end_psymtab): Update.
11387 * stack.c (find_frame_funname): Change type of funname parameter
11388 from char ** to const char **.
11389 * stack.h (find_frame_funname): Update.
11390 * typeprint.c (type_print): Change type of varstring parameter
11391 from char * to const char *.
11392 * value.h (type_print): Update.
11393 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11394 from char * to const char *. All callers updated.
11395 (xcoff_end_psymtab): Change type of include_list parameter
11396 from char ** to const char **. All callers updated.
11397 (swap_sym): Similarly for name parameter. All callers updated.
11398 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11399 Use xstrdup.
11400 (process_coff_symbol): Use xstrdup.
11401 * stabsread.c (stabs_method_name_from_physname): Renamed from
11402 update_method_name_from_physname. Change result type from void
11403 to char *. All callers updated.
11404 (read_member_functions): In has_destructor case, store name in objfile
11405 obstack instead of malloc space. In !has_stub case, fix mem leak.
11406
11407 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11408
11409 * configure: Rebuild.
11410 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11411 LDFLAGS.
11412
11413 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11414
11415 * configure.tgt (rl78-*-elf): New target.
11416 * rl78-tdep.c: New file.
11417
11418 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11419
11420 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11421 and continue the loop. Add QUIT statement.
11422
11423 2012-02-03 Tom Tromey <tromey@redhat.com>
11424
11425 PR gdb/13596:
11426 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11427 bfd_lookup_symbol_from_symtab.
11428 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11429 gdb_bfd_lookup_symbol_from_symtab.
11430
11431 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11432
11433 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11434 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11435 symbol. Add assertion that sym2 is never NULL.
11436
11437 2012-02-02 Doug Evans <dje@google.com>
11438
11439 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11440 "name" parameter to const char ** from char **. All callers updated.
11441 (find_pc_partial_function): Ditto.
11442 (cache_pc_function_name): Change type to const char * from char *.
11443 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11444 (find_pc_partial_function): Update.
11445 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11446 type of "name" parameter to const char * from char *.
11447 All uses updated.
11448 * arch-utils.c (generic_in_solib_return_trampoline): Change
11449 type of "name" parameter to const char * from char *.
11450 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11451 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11452 type of "name" parameter to const char * from char *.
11453 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11454 * gdbarch.c: Regenerate.
11455 * gdbarch.h: Regenerate.
11456 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11457 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11458 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11459 type of "name" parameter to const char * from char *.
11460 * skip.c (skip_function_pc): Ditto.
11461 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11462 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11463 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11464 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11465 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11466 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11467 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11468 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11469 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11470
11471 2012-02-02 Pedro Alves <palves@redhat.com>
11472
11473 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11474 the current inferior has no execution. Make sure the current
11475 remote process matches gdb's current inferior.
11476
11477 2012-02-02 Tom Tromey <tromey@redhat.com>
11478
11479 PR gdb/13405:
11480 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11481 read-only memory.
11482
11483 2012-02-02 Tom Tromey <tromey@redhat.com>
11484
11485 PR gdb/9307:
11486 * symtab.c (lookup_language_this): Set block_found.
11487
11488 2012-02-01 Tom Tromey <tromey@redhat.com>
11489
11490 PR gdb/13431:
11491 * jit.c (struct jit_inferior_data): Rewrite.
11492 (struct jit_objfile_data): New.
11493 (get_jit_objfile_data): New function.
11494 (add_objfile_entry): Update.
11495 (jit_read_descriptor): Return int. Replace descriptor_addr
11496 argument with inf_data. Update. Don't call error.
11497 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11498 descriptor here.
11499 (jit_inferior_init): Don't look up descriptor. Don't call error.
11500 (jit_reset_inferior_data_and_breakpoints)
11501 (jit_inferior_created_observer): Remove.
11502 (jit_inferior_exit_hook): Update.
11503 (jit_executable_changed_observer): Remove.
11504 (jit_event_handler): Update.
11505 (free_objfile_data): Reset inferior data if needed.
11506 (_initialize_jit): Update.
11507
11508 2012-02-01 Tom Tromey <tromey@redhat.com>
11509
11510 * jit.c (bfd_open_from_target_memory): Move higher in file.
11511
11512 2012-02-01 Tristan Gingold <gingold@adacore.com>
11513
11514 * libunwind-frame.c (libunwind_load): Display message if dlopen
11515 failed.
11516
11517 2012-02-01 Gary Benson <gbenson@redhat.com>
11518
11519 * symtab.h (symbol_found_callback_ftype): New typedef.
11520 (iterate_over_symbols): Use the above.
11521 * symtab.c (iterate_over_symbols): Likewise.
11522 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11523 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11524 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11525 (iterate_name_matcher): Document return values.
11526 (collect_one_symbol): Likewise.
11527 (collect_function_symbols): Likewise.
11528 (collect_symbols): Likewise.
11529
11530 2012-02-01 Tom Tromey <tromey@redhat.com>
11531
11532 * ada-lang.c (resolve_subexp): Update.
11533 (ada_lookup_symbol_list): Add 'full_search' argument.
11534 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11535 ada_lookup_symbol_list.
11536 (ada_lookup_encoded_symbol): Update.
11537 (get_var_value): Update.
11538 * ada-exp.y (block_lookup): Update.
11539 (write_var_or_type): Update.
11540 (write_name_assoc): Update.
11541 * ada-lang.h (ada_lookup_symbol_list): Update.
11542
11543 2012-01-31 Tom Tromey <tromey@redhat.com>
11544
11545 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11546 comment.
11547
11548 2012-01-31 Doug Evans <dje@google.com>
11549
11550 * symtab.h: Remove outdated comment.
11551 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11552
11553 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11554
11555 Fix build error in Darwin port.
11556 * i386-darwin-nat.c: Include i386-nat.h.
11557
11558 2012-01-30 Tom Tromey <tromey@redhat.com>
11559
11560 PR breakpoints/13568:
11561 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11562 argument. Check for recursive includes.
11563 (dwarf_decode_macros): Create an include hash.
11564
11565 2012-01-30 Michael Eager <eager@eagercon.com>
11566
11567 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11568 * ppc-linux-tdep.c: Include glibc-tdep.h.
11569 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11570 (powerpc_linux_in_plt_stub): New function.
11571 (powerpc_linux_in_dynsym_resolve_code): New function.
11572 (ppc_skip_trampoline_code): New function.
11573 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11574 Use glibc_skip_solib_resolver.
11575
11576 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11577
11578 Code cleanup: Make 1440 bytes of data segment read-only.
11579 * arch-utils.c (endian_enum): Make it const char *const [].
11580 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11581 Likewise.
11582 * breakpoint.c (always_inserted_enums): Likewise.
11583 * cli/cli-cmds.c (script_ext_enums): Likewise.
11584 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11585 enumlist parameter const char *const *.
11586 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11587 const char *const *.
11588 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11589 parameter const char *const *.
11590 * cris-tdep.c (cris_modes): Make it const char *const [].
11591 * filesystem.c (target_file_system_kinds): Likewise.
11592 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11593 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11594 (can_use_displaced_stepping_enum, scheduler_enums)
11595 (exec_direction_names): Likewise.
11596 * language.c (_initialize_language): Make the type_or_range_names and
11597 case_sensitive_names variables const char *const [].
11598 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11599 * python/python.c (python_excp_enums): Likewise.
11600 * remote.c (interrupt_sequence_modes): Likewise.
11601 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11602 * serial.c (logbase_enums): Likewise.
11603 * sh-tdep.c (sh_cc_enum): Likewise.
11604 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11605 Likewise.
11606 * symtab.c (multiple_symbols_modes): Likewise.
11607 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11608 Likewise.
11609 * utils.c (internal_problem_modes): Likewise.
11610
11611 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11612
11613 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11614 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11615 result.
11616
11617 2012-01-27 Doug Evans <dje@google.com>
11618
11619 * configure.ac (with_python): Fix absolute path handling for win32.
11620 * configure: Regenerate.
11621
11622 2012-01-26 Doug Evans <dje@google.com>
11623
11624 * symtab.c: Whitespace cleanup, no code changes.
11625
11626 * symtab.c (lookup_symbol_in_language): Improve comment.
11627 (lookup_symbol_aux): Fix comment.
11628
11629 * psymtab.c (add_psymbol_to_list): Result is now "void".
11630 * psympriv.h (add_psymbol_to_list): Update.
11631
11632 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11633
11634 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11635
11636 Do not open script filenames twice.
11637 * cli/cli-cmds.c (source_script_from_stream): Pass to
11638 source_python_script also STREAM.
11639 * python/py-auto-load.c (source_section_scripts): Pass to
11640 source_python_script_for_objfile also STREAM.
11641 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11642 also INPUT.
11643 * python/python-internal.h (source_python_script_for_objfile): New
11644 parameter file, rename parameter file to filename.
11645 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11646 instead if !_WIN32. Update the function comment.
11647 (source_python_script, source_python_script_for_objfile)
11648 (source_python_script): New parameter file, rename parameter file to
11649 filename. Pass FILENAME to python_run_simple_file.
11650 * python/python.h (source_python_script): New parameter file, rename
11651 parameter file to filename.
11652
11653 2012-01-26 Pedro Alves <palves@redhat.com>
11654
11655 * corelow.c (core_has_fake_pid): Delete.
11656 (core_close): Delete references to `core_has_fake_pid'.
11657 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11658 (core_open): Delete references to `core_has_fake_pid'.
11659 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11660 the removed global.
11661
11662 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11663
11664 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11665 Remove language parameter from name_matcher. Adjust the comment.
11666 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11667 Remove language parameter.
11668 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11669 * linespec.c (iterate_name_matcher): Likewise.
11670 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11671 name_matcher. Adjust call accordingly.
11672 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11673 (maintenance_check_symtabs): Adjust type of parameter "fun".
11674 * psymtab.h (maintenance_check_symtabs): Likewise.
11675
11676 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11677
11678 * language.h (symbol_name_match_p_ftype): New typedef.
11679 (struct language_defn): Replace field la_symbol_name_compare
11680 by la_get_symbol_name_match_p.
11681 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11682 (ada_language_defn): Use it.
11683 * linespec.c (struct symbol_matcher_data): New type.
11684 (iterate_name_matcher): Rewrite.
11685 (iterate_over_all_matching_symtabs): Pass a pointer to
11686 a symbol_matcher_data struct to expand_symtabs_matching
11687 instead of just the lookup name.
11688 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11689 opencl-lang.c, p-lang.c, language.c: Delete field
11690 la_symbol_name_compare, and replace by NULL for new field
11691 la_get_symbol_name_match_p.
11692 * symfile.h (struct quick_symbol_functions): Update comment.
11693
11694 2012-01-25 Tom Tromey <tromey@redhat.com>
11695
11696 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11697 dereferencing.
11698
11699 2012-01-24 Tom Tromey <tromey@redhat.com>
11700
11701 PR symtab/12406:
11702 * solib.c (update_solib_list): Update the program space's
11703 added_solibs and deleted_solibs fields.
11704 * progspace.h (struct program_space) <added_solibs,
11705 deleted_solibs>: New fields.
11706 (clear_program_space_solib_cache): Declare.
11707 * progspace.c (release_program_space): Call
11708 clear_program_space_solib_cache.
11709 (clear_program_space_solib_cache): New function.
11710 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11711 bpstat_stop_status. Use handle_solib_event.
11712 * breakpoint.c: Include gdb_regex.h.
11713 (print_solib_event): New function.
11714 (bpstat_print): Use print_solib_event.
11715 (bpstat_stop_status): Add special case for bp_shlib_event.
11716 (handle_solib_event): New function.
11717 (bpstat_what): Use handle_solib_event.
11718 (struct solib_catchpoint): New.
11719 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11720 (breakpoint_hit_catch_solib, check_status_catch_solib)
11721 (print_it_catch_solib, print_one_catch_solib)
11722 (print_mention_catch_solib, print_recreate_catch_solib): New
11723 functions.
11724 (catch_solib_breakpoint_ops): New global.
11725 (catch_load_or_unload, catch_load_command_1)
11726 (catch_unload_command_1): New functions.
11727 (internal_bkpt_check_status): Add special case for
11728 bp_shlib_event.
11729 (internal_bkpt_print_it): Use print_solib_event.
11730 (initialize_breakpoint_ops): Initialize
11731 catch_solib_breakpoint_ops.
11732 (_initialize_breakpoint): Register "catch load" and "catch
11733 unload".
11734 * breakpoint.h (handle_solib_event): Declare.
11735 * NEWS: Add entry for "catch load" and "catch unload".
11736
11737 2012-01-24 Tom Tromey <tromey@redhat.com>
11738
11739 * ada-lang.c: Include gdb_vecs.h.
11740 * charset.c: Include gdb_vecs.h.
11741 * tracepoint.h: Include gdb_vecs.h.
11742 * gdb_vecs.h: New file.
11743
11744 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11745
11746 * breakpoint.c (breakpoint_hit_catch_fork)
11747 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11748 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11749 * infrun.c (inferior_has_forked, inferior_has_vforked)
11750 (inferior_has_execd, inferior_has_called_syscall): Delete.
11751 (handle_syscall_event): Get syscall_number from the execution
11752 control state's wait status.
11753 (wait_for_inferior): Don't clear syscall_number.
11754
11755 2012-01-24 Pedro Alves <palves@redhat.com>
11756
11757 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11758 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11759 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11760 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11761 `ws' parameter.
11762 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11763 false for events other than TARGET_SIGNAL_TRAP.
11764 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11765 Add `ws' parameter.
11766 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11767 events other than TARGET_SIGNAL_TRAP.
11768 (tracepoint_breakpoint_hit): Add `ws' parameter.
11769 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11770 parameter.
11771 (bpstat_stop_status): Same.
11772 (pc_at_non_inline_function): Same.
11773 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11774 to pass the current event's waitstatus to bpstat_stop_status
11775 and pc_at_non_inline_function.
11776
11777 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11778
11779 Code cleanup.
11780 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11781 Update the function comment for it.
11782 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11783 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11784 for STREAM.
11785
11786 2012-01-24 Pedro Alves <palves@redhat.com>
11787
11788 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11789 outside `bs->stop' block.
11790 (bpstat_what): Rework bp_shlib_event handling.
11791 (internal_bkpt_check_status): If the breakpoint is a
11792 bp_shlib_event, then set bs->stop and bs->print if
11793 stop_on_solib_events is set.
11794
11795 2012-01-24 Gary Benson <gbenson@redhat.com>
11796
11797 Delete #if 0'd out code.
11798 * stack.c (print_frame_label_vars): Remove.
11799 (catch_info): Likewise.
11800 (_initialize_stack): Remove "info catch" command.
11801 * NEWS: Mention the above.
11802
11803 2012-01-24 Pedro Alves <palves@redhat.com>
11804
11805 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11806 it.
11807 (remote_notice_new_inferior): If the remote end doesn't support
11808 the multiprocess extensions, then the PID is fake.
11809 (add_current_inferior_and_thread): New.
11810 (remote_start_remote): Use it.
11811 (extended_remote_attach_1): Adjust.
11812 (extended_remote_create_inferior_1): Use
11813 add_current_inferior_and_thread.
11814
11815 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11816
11817 Fix watchpoints to be specific for each inferior.
11818 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11819 current_program_space.
11820 * i386-nat.c (i386_inferior_data_cleanup): New.
11821 (i386_inferior_data_get): Replace variable inf_data_local by an
11822 inferior_data call.
11823 (i386_use_watchpoints): Initialize i386_inferior_data.
11824 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11825 specific iterate_over_lwps.
11826
11827 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11828
11829 Fix watchpoints across inferior fork.
11830 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11831 comment for linux_nat_iterate_watchpoint_lwps.
11832 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11833 linux_nat_iterate_watchpoint_lwps.
11834 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11835 * i386-linux-nat.c (update_debug_registers_callback): Update the
11836 comment for linux_nat_iterate_watchpoint_lwps.
11837 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11838 linux_nat_iterate_watchpoint_lwps.
11839 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11840 * i386-nat.c: Include inferior.h.
11841 (dr_mirror): Remove.
11842 (i386_inferior_data, struct i386_inferior_data)
11843 (i386_inferior_data_get): New.
11844 (i386_debug_reg_state): Use i386_inferior_data_get.
11845 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11846 (i386_insert_watchpoint, i386_remove_watchpoint)
11847 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11848 (i386_remove_hw_breakpoint): New variable state, use
11849 i386_debug_reg_state instead of DR_MIRROR.
11850 * linux-nat.c (delete_lwp): New declaration.
11851 (num_lwps): Move here from downwards.
11852 (delete_lwp_cleanup): New.
11853 (linux_child_follow_fork): Create new child_lp, call
11854 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11855 PTRACE_DETACH.
11856 (num_lwps): Move upwards.
11857 (linux_nat_iterate_watchpoint_lwps): New.
11858 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11859 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11860
11861 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11862
11863 GDB 7.4 released.
11864
11865 2012-01-23 Pedro Alves <palves@redhat.com>
11866
11867 * top.c (caution): Rename to ...
11868 (confirm): ... this.
11869 (show_caution): Rename to ...
11870 (show_confirm): ... this.
11871 (quit_cover): Adjust.
11872 (init_main): Adjust.
11873 * top.h (caution): Rename to ...
11874 (confirm): ... this.
11875 * utils.c (internal_vproblem, defaulted_query): Adjust.
11876
11877 2012-01-23 Pedro Alves <palves@redhat.com>
11878
11879 * top.c (caution): Update comment.
11880 (execute_command): Don't consider the current value of `caution'.
11881
11882 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11883
11884 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11885
11886 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11887
11888 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11889 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11890 * target.c (target_fileio_pwrite): Remove buffer address from
11891 debug output.
11892 (target_fileio_pread): Likewise.
11893
11894 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11895
11896 * NEWS: Document remote "info proc" and "generate-core-file".
11897
11898 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11899
11900 * gdbarch.sh (find_memory_regions): New callback.
11901 * gdbarch.c, gdbarch.h: Regenerate.
11902
11903 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11904 callback before falling back to target method.
11905
11906 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11907 (linux_target_install_ops): No longer install it.
11908
11909 * linux-tdep.c (linux_find_memory_regions): New function.
11910 (linux_init_abi): Install it.
11911
11912 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11913
11914 * gdbarch.sh (make_corefile_notes): New architecture callback.
11915 * gdbarch.c: Regenerate.
11916 * gdbarch.h: Likewise.
11917
11918 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11919 before target_make_corefile_notes. If NULL is returned, the
11920 target does not support core file generation.
11921
11922 * linux-nat.c: Include "linux-tdep.h".
11923 (find_signalled_thread, find_stop_signal): Remove.
11924 (linux_nat_do_thread_registers): Likewise.
11925 (struct linux_nat_corefile_thread_data): Likewise.
11926 (linux_nat_corefile_thread_callback): Likewise.
11927 (iterate_over_spus): Likewise.
11928 (struct linux_spu_corefile_data): Likewise.
11929 (linux_spu_corefile_callback): Likewise.
11930 (linux_spu_make_corefile_notes): Likewise.
11931 (linux_nat_collect_thread_registers): New function.
11932 (linux_nat_make_corefile_notes): Replace contents by call to
11933 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11934 as native-only callback.
11935
11936 * linux-tdep.h: Include "bfd.h".
11937 (struct regcache): Add forward declaration.
11938 (linux_collect_thread_registers_ftype): New typedef.
11939 (linux_make_corefile_notes): Add prototype.
11940 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11941 "regset.h", and "elf-bfd.h".
11942 (find_signalled_thread, find_stop_signal): New functions.
11943 (linux_spu_make_corefile_notes): Likewise.
11944 (linux_collect_thread_registers): Likewise.
11945 (struct linux_corefile_thread_data): New data structure.
11946 (linux_corefile_thread_callback): New funcion.
11947 (linux_make_corefile_notes): Likewise.
11948 (linux_make_corefile_notes_1): Likewise.
11949 (linux_init_abi): Install it.
11950
11951 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11952
11953 * gdbarch.sh (info_proc): New callback.
11954 * gdbarch.c, gdbarch.h: Regenerate.
11955
11956 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11957 before falling back to the target info_proc callback.
11958
11959 * linux-nat.c: Do not include "cli/cli-utils.h".
11960 (linux_nat_info_proc): Remove.
11961 (linux_target_install_ops): No longer install it.
11962
11963 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11964 (read_mapping): New function.
11965 (linux_info_proc): Likewise.
11966 (linux_init_abi): Install it.
11967
11968 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11969
11970 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11971 * infcmd.c: (info_proc_cmd_1): New function.
11972 (info_proc_cmd): New function, moved here from equivalent routine
11973 orignally in linux-nat.c.
11974 (info_proc_cmd_mappings): Likewise.
11975 (info_proc_cmd_stat): Likewise.
11976 (info_proc_cmd_status): Likewise.
11977 (info_proc_cmd_cwd): Likewise.
11978 (info_proc_cmd_cmdline): Likewise.
11979 (info_proc_cmd_exe): Likewise.
11980 (info_proc_cmd_all): Likewise.
11981 (_initialize_infcmd): Install "info proc" command and subcommands.
11982
11983 * target.h (struct target_ops): Add to_info_proc.
11984 (target_info_proc): Add prototype.
11985 * target.c (target_info_proc): New function.
11986
11987 * procfs.c (procfs_info_proc): Add prototype.
11988 (info_proc_cmd): Rename into ...
11989 (procfs_info_proc): ... this. Update argument types as appropriate
11990 for a to_info_proc implementation. Handle "what" argument.
11991 (procfs_target): Install procfs_info_proc.
11992 (_initialize_procfs): No longer install "info proc" command.
11993
11994 * linux-nat.c: (enum info_proc_what): Remove.
11995 (linux_nat_info_proc_cmd_1): Rename into ...
11996 (linux_nat_info_proc): ... this. Update argument types as appropriate
11997 for a to_info_proc implementation.
11998 (linux_nat_info_proc_cmd): Remove.
11999 (linux_nat_info_proc_cmd_mappings): Likewise.
12000 (linux_nat_info_proc_cmd_stat): Likewise.
12001 (linux_nat_info_proc_cmd_status): Likewise.
12002 (linux_nat_info_proc_cmd_cwd): Likewise.
12003 (linux_nat_info_proc_cmd_cmdline): Likewise.
12004 (linux_nat_info_proc_cmd_exe): Likewise.
12005 (linux_nat_info_proc_cmd_all): Likewise.
12006 (linux_target_install_ops): Install linux_nat_info_proc.
12007 (_initialize_linux_nat): No longer install "info proc" command
12008 and subcommands.
12009
12010 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12011
12012 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12013 * config.in, configure: Regenerate.
12014
12015 * target.h (struct target_ops): Add to_fileio_readlink.
12016 (target_fileio_readlink): Add prototype.
12017 * target.c (target_fileio_readlink): New function.
12018
12019 * inf-child.c: Conditionally include <sys/param.h>.
12020 (inf_child_fileio_readlink): New function.
12021 (inf_child_target): Install it.
12022
12023 * remote.c (PACKET_vFile_readlink): New enum value.
12024 (remote_hostio_readlink): New function.
12025 (init_remote_ops): Install it.
12026 (_initialize_remote): Handle vFile:readlink packet type.
12027
12028 2012-01-20 Pedro Alves <palves@redhat.com>
12029 Ulrich Weigand <ulrich.weigand@linaro.org>
12030
12031 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12032 * config.in, configure: Regenerate.
12033
12034 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12035 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12036 (target_fileio_open): Add prototype.
12037 (target_fileio_pwrite): Likewise.
12038 (target_fileio_pread): Likewise.
12039 (target_fileio_close): Likewise.
12040 (target_fileio_unlink): Likewise.
12041 (target_fileio_read_alloc): Likewise.
12042 (target_fileio_read_stralloc): Likewise.
12043
12044 * target.c: Include "gdb/fileio.h".
12045 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12046 (default_fileio_target): New function.
12047 (target_fileio_open): Likewise.
12048 (target_fileio_pwrite): Likewise.
12049 (target_fileio_pread): Likewise.
12050 (target_fileio_close): Likewise.
12051 (target_fileio_unlink): Likewise.
12052 (target_fileio_close_cleanup): Likewise.
12053 (target_fileio_read_alloc_1): Likewise.
12054 (target_fileio_read_alloc): Likewise.
12055 (target_fileio_read_stralloc): Likewise.
12056
12057 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12058 <fcntl.h>, and <unistd.h>.
12059 (inf_child_fileio_open_flags_to_host): New function.
12060 (inf_child_errno_to_fileio_error): Likewise.
12061 (inf_child_fileio_open): Likewise.
12062 (inf_child_fileio_pwrite): Likewise.
12063 (inf_child_fileio_pread): Likewise.
12064 (inf_child_fileio_close): Likewise.
12065 (inf_child_fileio_unlink): Likewise.
12066 (inf_child_target): Install to_fileio routines.
12067
12068 * remote.c (init_remote_ops): Install to_fileio routines.
12069
12070 2012-01-20 Pedro Alves <palves@redhat.com>
12071 Ulrich Weigand <ulrich.weigand@linaro.org>
12072
12073 * remote.c (remote_multi_process_p): Only check for multi-process
12074 protocol feature, do not check for extended protocol.
12075 (remote_supports_multi_process): Check for extended protocol here.
12076 (set_general_process): Likewise.
12077 (extended_remote_kill): Likewise.
12078 (remote_pid_to_str): Likewise.
12079 (remote_query_supported): Always query multiprocess mode.
12080
12081 2012-01-20 Pedro Alves <palves@redhat.com>
12082 Ulrich Weigand <ulrich.weigand@linaro.org>
12083
12084 * inferior.h (struct inferior): Add fake_pid_p.
12085 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12086 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12087 magic_null_ptid since the remote side doesn't provide a real PID.
12088
12089 2012-01-19 Tom Tromey <tromey@redhat.com>
12090
12091 * NEWS: Combine the two Python sections.
12092
12093 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12094
12095 * target.h (target_close): Update comment on the target's unpush state.
12096
12097 2012-01-19 Pedro Alves <palves@redhat.com>
12098
12099 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12100 linux_nat_async directly instead of going through the target
12101 vector.
12102 * target.c (unpush_target): Close target after unpushing it, not
12103 before.
12104
12105 2012-01-19 Gary Benson <gbenson@redhat.com>
12106
12107 * mdebugread.c (sort_blocks): Replace integer constants with ones
12108 derived from FIRST_LOCAL_BLOCK.
12109
12110 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12111 Jan Kratochvil <jan.kratochvil@redhat.com>
12112
12113 PR gdb/9538
12114 * symfile.c (find_separate_debug_file): New function.
12115 (terminate_after_last_dir_separator): Likewise.
12116 (find_separate_debug_file_by_debuglink): Also try realpath.
12117 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12118 * configure: Regenerate.
12119 * config.in: Regenerate.
12120
12121 2012-01-18 Doug Evans <dje@google.com>
12122
12123 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12124 (main.o): Remove rule.
12125 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12126 (--with-sysroot): Rewrite.
12127 * configure: Regenerate.
12128 * config.in: Regenerate.
12129
12130 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12131
12132 * parse.c (initialize_expout): New function.
12133 (reallocate_expout): Likewise.
12134 (parse_exp_in_context): Use `initialize_expout' and
12135 `reallocate_expout' when appropriate.
12136
12137 2012-01-18 Pedro Alves <palves@redhat.com>
12138
12139 * record.c (struct record_breakpoint, record_breakpoint_p)
12140 (record_breakpoints): New.
12141 (record_insert_breakpoint, record_remove_breakpoint): Manage
12142 record breakpoints list. Only remove breakpoints from the
12143 inferior if they had been inserted there in the first place.
12144
12145 2012-01-17 Doug Evans <dje@google.com>
12146
12147 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12148 if we know we don't have a file name to look for.
12149
12150 2012-01-17 Pedro Alves <palves@redhat.com>
12151
12152 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12153 the frame's stop reason is UNWIND_UNAVAILABLE.
12154
12155 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12156
12157 Fix compilation error.
12158 * m2-exp.y (yyerror): Use ANSI C prototype.
12159
12160 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12161
12162 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12163 (growbuf_by_size): Likewise.
12164 (yyerror): Likewise.
12165 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12166 (modblock): Remove variable (was #if 0'ed).
12167 (parse_number): Convert prototype from K&R to ANSI C.
12168 (yyerror): Likewise.
12169 * objc-exp.y (parse_number): Likewise.
12170 (yyerror): Likewise.
12171 (yylex): Remove #if 0'ed code.
12172 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12173 (yyerror): Likewise.
12174
12175 2012-01-16 Tom Tromey <tromey@redhat.com>
12176
12177 * NEWS: Add item.
12178 * symtab.h (compare_filenames_for_search): Declare.
12179 * symtab.c (compare_filenames_for_search): New function.
12180 (iterate_over_some_symtabs): Use it.
12181 * symfile.h (struct quick_symbol_functions)
12182 <map_symtabs_matching_filename>: Change spec.
12183 * psymtab.c (partial_map_symtabs_matching_filename): Use
12184 compare_filenames_for_search. Update for new spec.
12185 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12186 compare_filenames_for_search. Update for new spec.
12187 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12188
12189 2012-01-16 Tom Tromey <tromey@redhat.com>
12190
12191 PR python/13281:
12192 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12193 (struct main_type) <flag_flag_enum>: New field.
12194 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12195 * NEWS: Add entries.
12196 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12197 enums.
12198 * python/lib/gdb/printing.py (_EnumInstance): New class.
12199 (FlagEnumerationPrinter): Likewise.
12200
12201 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12202
12203 * breakpoint.c (create_sals_from_address_default): New function.
12204 (create_breakpoints_sal_default): Likewise.
12205 (decode_linespec_default): Likewise.
12206 (is_marker_spec): Removed.
12207 (strace_marker_p): New function.
12208 (init_breakpoint_sal): Using `strace_marker_p' instead of
12209 `is_marker_spec'.
12210 (create_breakpoint): Call method `create_sals_from_address' from
12211 breakpoint_ops, replacing code that created SALs conditionally
12212 on the type of the breakpoint. Call method `create_breakpoints_sal',
12213 replacing code that created breakpoints conditionally on the type
12214 wanted.
12215 (base_breakpoint_create_sals_from_address): New function.
12216 (base_breakpoint_create_breakpoints_sal): Likewise.
12217 (base_breakpoint_decode_linespec): Likewise.
12218 (base_breakpoint_ops): Add methods
12219 `base_breakpoint_create_sals_from_address',
12220 `base_breakpoint_create_breakpoints_sal' and
12221 `base_breakpoint_decode_linespec'.
12222 (bkpt_create_sals_from_address): New function.
12223 (bkpt_create_breakpoints_sal): Likewise.
12224 (bkpt_decode_linespec): Likewise.
12225 (tracepoint_create_sals_from_address): Likewise.
12226 (tracepoint_create_breakpoints_sal): Likewise.
12227 (tracepoint_decode_linespec): Likewise.
12228 (strace_marker_create_sals_from_address): Likewise.
12229 (strace_marker_create_breakpoints_sal): Likewise.
12230 (strace_marker_decode_linespec): Likewise.
12231 (strace_marker_breakpoint_ops): New variable.
12232 (addr_string_to_sals): Remove `marker_spec'. Call method
12233 `decode_linespec' from breakpoint_ops, replacing code that decoded
12234 an address string into a SAL. Use `strace_marker_p' instead of
12235 `marker_spec'.
12236 (strace_command): Decide whether we are dealing with a static
12237 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12238 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12239 * breakpoint.h (linespec_result, linespec_sals): New forward
12240 declarations.
12241 (breakpoint_ops) <create_sals_from_address>,
12242 <create_breakpoints_sal>, <decode_linespec>: New methods.
12243
12244 2012-01-14 Doug Evans <dje@google.com>
12245
12246 * NEWS: Update text for "maint set python print-stack".
12247 It is deprecated in gdb 7.4 and deleted in 7.5.
12248
12249 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12250
12251 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12252 including curses.h.
12253
12254 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12255
12256 * configure: Regenerate.
12257 * config.in: Regenerate.
12258
12259 2012-01-12 Keith Seitz <keiths@redhat.com>
12260
12261 PR mi/10586
12262 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12263 (ANONYMOUS_UNION_NAME): Define.
12264 (is_path_expr_parent): New function.
12265 (get_path_expr_parent): New function.
12266 (is_anonymous_child): New function.
12267 (create_child_with_value): If the child is anonymous and without
12268 a name, assign an object name to it.
12269 (c_describe_child): Use get_path_expr_parent to determine
12270 the parent expression.
12271 If there field represents an anonymous struct or union and
12272 has no name, set an appropriate display name and expression.
12273 (cplus_describe_child): Likewise.
12274
12275 2012-01-12 Pedro Alves <palves@redhat.com>
12276
12277 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12278 available when %ebp is found to be zero (outermost).
12279
12280 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12281
12282 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12283 an internal gdb_static_assert.
12284 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12285
12286 2012-01-11 Tom Tromey <tromey@redhat.com>
12287
12288 PR gdb/9598:
12289 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12290 catch" and "catch throw".
12291
12292 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12293
12294 * blockframe.c (block_innermost_frame): Start search from selected
12295 frame, if present, or otherwise the current frame.
12296
12297 * c-exp.y (variable): Update innermost_block for
12298 'block COLONCOLON NAME' clause.
12299 * m2-exp.y (variable): Ditto.
12300 * objc-exp.y (variable): Ditto.
12301
12302 2012-01-10 Tom Tromey <tromey@redhat.com>
12303
12304 PR python/13199:
12305 * python/python.c (finish_python_initialization): Set sys.argv.
12306
12307 2012-01-10 Doug Evans <dje@google.com>
12308
12309 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12310 "want_line_info". All callers updated.
12311 (dwarf_decode_lines_1): New function.
12312 (handle_DW_AT_stmt_list): Add function comment.
12313 New arg "want_line_info". All callers updated.
12314 (read_file_scope,read_type_unit_scope): Move comment from
12315 handle_DW_AT_stmt_list to here.
12316
12317 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12318
12319 Fix regression after libiberty/ update for GCC PR 6057 and others.
12320 * c-exp.y (operator) <OPERATOR DELETE>
12321 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12322 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12323 (make_builtin_type, make_name): New variable i, add gdb_assert.
12324 (operator) <OPERATOR NEW>: Update ARGS to 3.
12325 (operator) <OPERATOR DELETE>: Add trailing space.
12326 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12327 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12328 * cp-support.c (cp_canonicalize_string): Check NULL from
12329 cp_comp_to_string, call warning and return.
12330
12331 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12332
12333 Fix duplicate .o files after omitting libbfd.a.
12334 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12335 (SFILES): Add corelow.c.
12336 (COMMON_OBS): Add corelow.o.
12337 (ALLDEPFILES): Remove corelow.c.
12338 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12339 * config/alpha/alpha-osf3.mh: Likewise.
12340 * config/alpha/fbsd.mh: Likewise.
12341 * config/arm/nbsdaout.mh: Likewise.
12342 * config/arm/nbsdelf.mh: Likewise.
12343 * config/i386/i386gnu.mh: Likewise.
12344 * config/ia64/hpux.mh: Likewise.
12345 * config/ia64/linux.mh: Likewise.
12346 * config/m32r/linux.mh: Likewise.
12347 * config/m68k/linux.mh: Likewise.
12348 * config/mips/irix5.mh: Likewise.
12349 * config/mips/irix6.mh: Likewise.
12350 * config/pa/hpux.mh: Likewise.
12351 * config/pa/linux.mh: Likewise.
12352 * config/powerpc/aix.mh: Likewise.
12353 * config/sparc/linux.mh: Likewise.
12354 * config/sparc/linux64.mh: Likewise.
12355 * config/sparc/sol2.mh: Likewise.
12356 * config/vax/vax.mh: Likewise.
12357 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12358 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12359 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12360 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12361 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12362 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12363 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12364 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12365 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12366 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12367 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12368 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12369 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12370 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12371 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12372 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12373 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12374 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12375 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12376 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12377 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12378 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12379 corelow.o from gdb_target_obs.
12380 * corefile.c (core_target): Update the comment on NULL value.
12381 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12382 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12383 MATCHES. Drop YUMMY set on NULL.
12384 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12385 reclaim CORE_DATA if it is already NULL.
12386
12387 2012-01-09 Doug Evans <dje@google.com>
12388
12389 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12390 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12391
12392 2012-01-09 Keith Seitz <keiths@redhat.com>
12393
12394 * breakpoint.c (wrapper.h): Don't include.
12395
12396 2012-01-09 Keith Seitz <keiths@redhat.com>
12397
12398 * Makefile.in (SFILES): Remove wrapper.c.
12399 (HFILES_NO_SRCDIR): Remove wrapper.h.
12400 (COMMON_OBS): Remove wrapper.o.
12401 * cli/cli-interp.c: Don't inlude wrapper.h.
12402 * corelow.c: Likewise.
12403 (core_open): Replace gdb_target_find_new_threads with
12404 TRY_CATCH around target_find_new_threads.
12405 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12406 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12407 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12408 evaluate_expression.
12409 (varobj_set_value): Likewise for evaluate_expression and
12410 value_assign.
12411 (install_new_variable): Likewise for value_fetch_lazy.
12412 (adjust_value_for_child_access): Likewise for value_ind.
12413 (c_describe_child): Likewise for value_subscript and
12414 value_ind.
12415 (c_value_of_root): Likewise for evaluate_expression.
12416 * wrapper.c: Remove.
12417 * wrapper.h: Remove.
12418
12419 2012-01-09 Doug Evans <dje@google.com>
12420
12421 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12422 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12423 "abfd" args with "section". All callers updated.
12424 Error checking code moved ...
12425 (error_check_comp_unit_head): ... here. New function.
12426 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12427 Delete arg "abfd". New arg "type_offset". All callers updated.
12428 (create_debug_types_hash_table): Simplify by using
12429 read_and_check_type_unit_head.
12430
12431 * parser-defs.h (namecopy): Delete.
12432 * parse.c (namecopy, namecopy_size): Move into copy_name.
12433
12434 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12435
12436 Partially fix duplicate .o files after omitting libbfd.a.
12437 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12438 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12439 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12440 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12441 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12442 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12443 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12444
12445 2012-01-09 Pedro Alves <palves@redhat.com>
12446
12447 * MAINTAINERS: Update my email address.
12448
12449 2012-01-08 Doug Evans <dje@google.com>
12450
12451 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12452 n_type_units. Rename type_comp_units to all_type_units.
12453 All uses updated.
12454 (add_signatured_type_cu_to_table): Renamed from
12455 add_signatured_type_cu_to_list. All callers updated.
12456
12457 * gdbtypes.h (struct cplus_struct_type): Delete member
12458 nfn_fields_total. All uses removed.
12459
12460 2012-01-06 Doug Evans <dje@google.com>
12461
12462 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12463 to top of file.
12464 (dwarf2_find_comp_unit): Delete.
12465 (process_psymtab_comp_unit): Make result "void".
12466 Delete args buffer, info_ptr, buffer_size, and replace with
12467 "section". All callers updated.
12468 (dwarf2_build_psymtabs_hard): Simplify.
12469
12470 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12471 Thiago Jung Bauermann <bauerman@br.ibm.com>
12472
12473 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12474 before `struct gdb_exception'.
12475 * breakpoint.c (update_global_location_list_nothrow)
12476 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12477 * cp-abi.c (value_rtti_type): Likewise.
12478 * cp-support.c (cp_validate_operator): Likewise.
12479 * infrun.c (insert_exception_resume_breakpoint)
12480 (check_exception_resume, keep_going): Likewise.
12481 * mi-interp.c (mi_breakpoint_created)
12482 (mi_breakpoint_modified): Likewise.
12483 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12484 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12485 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12486
12487 2012-01-05 Doug Evans <dje@google.com>
12488
12489 * dwarf2read.c (statement_prologue): Delete, unused.
12490
12491 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12492 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12493
12494 * dwarf2read.c (comp_unit_header): Delete, unused.
12495
12496 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12497
12498 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12499 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12500
12501 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12502
12503 * infrun.c (normal_stop): Don't skip calling the normal_stop
12504 observers if the thread was doing a multi-step, but stopped for
12505 some reason other than stepping.
12506
12507 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12508
12509 * cli/cli-decode.h: Add comments.
12510 (CMD_LIST_AMBIGUOUS): Moved to command.h
12511 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12512 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12513 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12514 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12515 (add_com, add_com_alias, add_info, add_info_alias)
12516 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12517 declarations.
12518 * command.h: Add and adjust comments.
12519 (CMD_LIST_AMBIGUOUS): Moved here.
12520 (help_cmd, help_cmd_list): Delete declarations.
12521
12522 2012-01-04 Doug Evans <dje@google.com>
12523
12524 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12525 All callers updated.
12526 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12527 Replace all arguments with "per_cu". All callers updated.
12528
12529 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12530
12531 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12532 New arg "per_cu". All callers updated.
12533
12534 Delete #if 0'd out code.
12535 * language.c (binop_result_type): Delete.
12536 (simple_type, ordered_type, same_type, integral_type): Delete.
12537 (numeric_type, character_type, string_type, boolean_type): Delete.
12538 (float_type, structured_type): Delete.
12539 * language.h: Update.
12540
12541 2012-01-04 Tom Tromey <tromey@redhat.com>
12542
12543 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12544
12545 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12546
12547 * corefile.c (close_exec_file): Delete.
12548 (reopen_exec_file): Remove commented out code that seems related
12549 to close_exec_file, which is being deleted here.
12550 * inferior.h (close_exec_file): Delete.
12551 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12552
12553 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12554
12555 * ada-lang.c: #include "cli/cli-utils.h".
12556 (get_selections): Use skip_spaces.
12557 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12558 (catch_ada_exception_command_split): Use skip_spaces.
12559 (ada_decode_assert_location): Likewise.
12560
12561 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12562
12563 * linespec.c (decode_line_internal): Check for C++ or Java
12564 compound constructs only if the current language is C, C++
12565 or Java.
12566
12567 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12568
12569 Revert:
12570 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12571 Joel Brobecker <brobecker@adacore.com>
12572 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12573 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12574 3 times.
12575 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12576 fall through into AT_ENTRY_POINT.
12577 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12578 DUMMY_ADDR with it.
12579 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12580 PPC_INSN_SIZE skip to 3 times.
12581
12582 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12583
12584 * linespec.c (add_minsym): Preserve function descriptors.
12585
12586 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12587
12588 * breakpoint.c (all_locations_are_pending): Consider locations
12589 in program spaces executing during startup pending as well.
12590
12591 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12592
12593 Copyright year update in most files of the GDB Project.
12594
12595 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12596
12597 * copyright.sh: Delete.
12598 * copyright.py: Rewrite.
12599
12600 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12601
12602 * gnulib/extra/update-copyright: New file, imported from gnulib.
12603
12604 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12605
12606 * README (Copyright and License Notices): New section.
12607
12608 2012-01-03 Tom Tromey <tromey@redhat.com>
12609
12610 PR python/12533:
12611 * python/py-value.c (valpy_dereference, valpy_get_address
12612 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12613 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12614 (valpy_absolute, valpy_richcompare): Free intermediate values.
12615
12616 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12617
12618 * ada-lang.c: Reformat the copyright notice.
12619
12620 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12621
12622 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12623 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12624 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12625 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12626 Revert this part of:
12627 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12628 Build gdb directly from *.o files not using libgdb.a.
12629 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12630
12631 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12632
12633 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12634 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12635 Reformat the copyright header.
12636
12637 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12638
12639 Revert this part of:
12640 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12641 Remove the gdbtui binary.
12642 * gdb.c (main): Remove args.interpreter_p initialization.
12643 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12644 * main.h (struct captured_main_args): Remove interpreter_p.
12645
12646 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12647
12648 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12649
12650 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12651
12652 * top.c (print_gdb_version): Update copyright year.
12653
12654 2012-01-02 Yao Qi <yao@codesourcery.com>
12655
12656 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12657
12658 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12659 Joel Brobecker <brobecker@adacore.com>
12660
12661 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12662 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12663 3 times.
12664 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12665 fall through into AT_ENTRY_POINT.
12666 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12667 DUMMY_ADDR with it.
12668 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12669 PPC_INSN_SIZE skip to 3 times.
12670
12671 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12672
12673 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12674 the return value.
12675 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12676
12677 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12678
12679 Build gdb directly from *.o files not using libgdb.a.
12680 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12681 (COMMON_OBS): Remove solib-target.o.
12682 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12683 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12684 (LIBGDB_OBS, libgdb.a): Move it above.
12685 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12686 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12687 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12688 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12689 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12690 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12691 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12692 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12693 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12694 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12695 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12696 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12697 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12698 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12699 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12700 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12701 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12702 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12703 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12704 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12705 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12706 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12707 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12708 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12709 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12710 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12711 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12712
12713 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12714
12715 Remove the gdbtui binary.
12716 * .gitignore (/gdbtui): Remove.
12717 * Makefile.in (TUI): Remove.
12718 (SUBDIR_TUI_OBS): Remove tui-main.o.
12719 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12720 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12721 (tui-main.o): Remove.
12722 (all_object_files): Remove tui-main.o.
12723 * NEWS: New note for the gdbtui removal.
12724 * configure: Rebuilt.
12725 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12726 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12727 CONFIG_UNINSTALL respectively.
12728 * gdb.c (main): Remove args.interpreter_p initialization.
12729 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12730 * main.h (struct captured_main_args): Remove interpreter_p.
12731 * tui/tui-main.c: Remove.
12732
12733 2012-01-01 Doug Evans <dje@google.com>
12734
12735 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12736 (dwarf2_physname, read_import_statement): Ditto.
12737 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12738 (process_structure_scope read_subroutine_type): Ditto.
12739 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12740 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12741 (dwarf2_fetch_die_location_block): Ditto.
12742 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12743
12744 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12745 All callers updated.
12746 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12747 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12748 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12749
12750 * dwarf2read.c (load_cu): Move assert to more useful location.
12751
12752 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12753 All callers updated.
12754
12755 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12756 (dwarf2_elf_names): Minor reformat.
12757 (dwarf2_per_cu_data): Tweak comment.
12758 (dwarf2_read_section): Fix comment.
12759 (create_all_comp_units): Fix comment.
12760 (load_full_comp_unit): Fix comment.
12761 (process_full_comp_unit): Fix comment.
12762 (read_signatured_type): Fix comment.
12763
12764 For older changes see ChangeLog-2011.
12765 \f
12766 Local Variables:
12767 mode: change-log
12768 left-margin: 8
12769 fill-column: 74
12770 version-control: never
12771 coding: utf-8
12772 End:
This page took 0.286327 seconds and 5 git commands to generate.