2012-12-13 Pedro Alves <palves@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2012-12-13 Pedro Alves <palves@redhat.com>
2
3 * coff-pe-read.c: Include coff/internal.h.
4 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
5 Null terminate buffer explicitly instead of memset the whole
6 buffer.
7
8 2012-12-13 Pierre Muller <muller@sourceware.org>
9
10 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
11 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
12 for already defined macros.
13
14 2012-12-13 Pierre Muller <muller@sourceware.org>
15
16 * coff-pe-read.h (pe_text_section_offset): Declare new function.
17 * coff-pe-read.c (debug_coff_pe_read): New static variable.
18 (struct read_pe_section_data): Add section_name field.
19 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
20 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
21 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
22 (get_pe_section_index): New function.
23 (struct pe_sections_info): New type.
24 (get_section_vmas): Use new struct pe_sections_info.
25 (add_pe_exported_sym): Handle unnamed exported function.
26 (add_pe_forwarded_sym): New function.
27 (read_pe_truncate_name): Truncate at last dot.
28 (pe_as16): New function.
29 (read_pe_exported_syms): Use ordinal of function to
30 retrieve correct RVA address of function and handle
31 forwarded symbol.
32 (pe_text_section_offset): New function.
33 (show_debug_coff_pe_read): New function.
34 (_initialize_coff_pe_read): New function adding
35 'set/show debug coff_pe_read' commands.
36
37 * windows-tdep.c (windows_xfer_shared_library): Use
38 pe_text_section_offset function instead of possibly wrong
39 0x1000 constant for .text sextion offset.
40
41 2012-12-13 Pedro Alves <palves@redhat.com>
42
43 * gdbarch.sh (do_read): Set IFS to blank.
44
45 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
46
47 * NEWS: Mention the -catch-load/-catch-unload MI commands.
48
49 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
50
51 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
52 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
53 * breakpoint.c (add_solib_catchpoint): New function that
54 can be used by both CLI and MI, factored out from
55 catch_load_or_unload.
56 (catch_load_or_unload): Strip it down and make it use the
57 new add_solib_catchpoint.
58 * breakpoint.h (add_solib_catchpoint): Declare it.
59 * mi/mi-cmd-break.h: New file.
60 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
61 (setup_breakpoint_reporting): New function used for both
62 catchpoints and breakpoints.
63 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
64 * mi/mi-cmd-catch.c: New file.
65 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
66 and -catch-unload.
67 * mi/mi-cmds.h: Declare the handlers for -catch-load and
68 -catch-unload.
69
70 2012-11-28 Tom Tromey <tromey@redhat.com>
71
72 * dbxread.c (read_dbx_symtab): Update.
73 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
74 (read_ofile_symtab): Add 'objfile' argument.
75 * dwarf2read.c (process_psymtab_comp_unit_reader)
76 (build_type_psymtabs_reader): Update.
77 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
78 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
79 argument.
80 (parse_procedure, parse_partial_symbols): Update.
81 (psymtab_to_symtab_1): Add 'objfile' argument.
82 * psympriv.h (struct partial_symtab) <objfile>: Remove.
83 <read_symtab>: Add 'objfile' argument.
84 (sort_pst_symbols, discard_psymtab): Update.
85 * psymtab.c (partial_map_expand_apply): Update.
86 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
87 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
88 (find_pc_sect_psymbol): Add 'objfile' argument.
89 (lookup_symbol_aux_psymtabs): Update.
90 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
91 Add 'objfile' argument.
92 (find_last_source_symtab_from_partial, dump_psymtab)
93 (dump_psymtabs_for_objfile, read_symtabs_for_function)
94 (expand_partial_symbol_tables, read_psymtabs_with_filename)
95 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
96 (expand_symtabs_matching_via_partial): Update.
97 (sort_pst_symbols): Add 'objfile' argument.
98 (allocate_psymtab): Update.
99 (discard_psymtab): Add 'objfile' argument.
100 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
101 * stabsread.h (end_psymtab): Update.
102 * xcoffread.c (this_symtab_objfile): New global.
103 (process_linenos, enter_line_range, xcoff_next_symbol_text):
104 Update.
105 (read_xcoff_symtab): Add 'objfile' argument.
106 (read_symbol, read_symbol_lineno): Update.
107 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
108 (xcoff_end_psymtab): Add 'objfile' argument.
109 (scan_xcoff_symtab): Update.
110
111 2012-12-12 Paul Koning <paul_koning@dell.com>
112
113 Add support for Python 3.
114 * NEWS: Mention Python 3 support.
115 * varobj.c (value_get_print_value): Use
116 python_string_to_target_string.
117 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
118 of type objects.
119 * python/py-breakpoint.c: Ditto.
120 * python/py-cmd.c: Ditto.
121 * python/py-event.c: Ditto.
122 * python/py-event.h: Ditto.
123 * python/py-evtregistry.c: Ditto.
124 * python/py-finishbreakpoint.c: Ditto.
125 * python/py-frame.c: Ditto.
126 * python/py-function.c: Ditto.
127 * python/py-infthread.c: Ditto.
128 * python/py-lazy-string.c: Ditto.
129 * python/py-progspace.c: Ditto.
130 * /python/py-symbol.c: Ditto.
131 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
132 initialization for Python 3.
133 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
134 of type objects.
135 (infpy_read_memory): Return memoryview object if Python 3.
136 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
137 (infpy_search_memory): Ditto.
138 (get_buffer): New function for Python 3.
139 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
140 of type objects.
141 (objfpy_dealloc): Use Py_TYPE to call tp_free.
142 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
143 of type objects.
144 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
145 (set_attr): Ditto.
146 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
147 instead of PyString methods if Python 3.
148 (print_children): Skip push_dummy_python_frame call if Python 3.
149 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
150 of type objects.
151 (salpy_dealloc): Use Py_TYPE to call tp_free.
152 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
153 of type objects.
154 (field_dealloc): Use Py_TYPE to call tp_free.
155 (typy_dealloc): Ditto.
156 (type_object_as_number): Adjust struct initializations for
157 differences in layout for Python 2 vs. Python 3.
158 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
159 string case for Python 3.
160 (unicode_to_encoded_python_string): Shorten code (no functional
161 change).
162 (python_string_to_target_python_string): Comment that in Python 3
163 returned value is a Python "bytes" type.
164 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
165 (gdb_py_object_from_longest): Omit non-long integer case in Python
166 3.
167 (gdb_py_object_from_ulongest): Ditto.
168 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
169 of type objects.
170 (valpy_dealloc): Use Py_TYPE to call tp_free.
171 (valpy_int): Omit function if Python 3.
172 (convert_value_from_python): Use "%S" format (Python object as a
173 string) if Python 3.
174 (value_object_as_number): Adjust struct initializations for
175 differences in layout for Python 2 vs. Python 3.
176 * python/python-config.py: Adjust syntax for Python 3
177 compatibility.
178 Include "sys.abiflags" string as part of python library name, if
179 that attribute exists (Python 3).
180 * python/python-internal.h (IS_PY3): Define if Python 3.
181 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
182 placeholder value if Python 3.
183 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
184 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
185 analogous Python 3 API function if Python 3.
186 (PyVarObject_HEAD_INIT): Define if not already defined.
187 (Py_TYPE): Ditto.
188 * python/python.c (eval_python_command): Omit Py_FlushLine call if
189 Python 3.
190 Check return values of all Python API calls for error.
191 Supply dummy "python" and "python-interactive" commands if Python
192 initialization failed.
193 (_initialize_python): Convert argc to wchar_t** if Python 3.
194 Add module initialization for Python 3.
195 (finish_python_initialization): Pass wchar_t * argument to
196 PySys_SetPath if Python 3.
197 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
198 (_GdbFile): New class for common output file behavior.
199 (GdbOutFile): Subclass from _GdbFile.
200 (GdbOutputErrorFile): Ditto.
201 (auto_load_packages): Adjust syntax for Python 3 compatibility.
202 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
203 * python/lib/gdb/prompt.py: Use sorted() function rather than
204 sort() method.
205 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
206 Adjust syntax for Python 3 compatibility.
207 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
208 rather than sort() method.
209 Adjust syntax for Python 3 compatibility.
210 * python/lib/gdb/command/type_printers.py: Ditto.
211 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
212 value is a memoryview object if Python 3.
213
214 2012-12-12 Tom Tromey <tromey@redhat.com>
215
216 * coffread.c (coff_objfile_data_key): New global.
217 (coff_symfile_init): Use set_objfile_data.
218 (coff_symfile_read): Use objfile_data.
219 (coff_symfile_finish): Don't free deprecated_sym_private.
220 (coff_free_info): New function.
221 (_initialize_coffread): Initialize coff_objfile_data_key.
222 * mdebugread.c (pending_list): Update comment.
223 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
224 * symfile.c (reread_symbols): Don't mention
225 deprecated_sym_private.
226 * xcoffread.c (xcoff_objfile_data_key): New global.
227 (XCOFF_DATA): New macro.
228 (process_linenos, enter_line_range, xcoff_next_symbol_text)
229 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
230 XCOFF_DATA.
231 (xcoff_new_init) Use set_objfile_data.
232 (xcoff_symfile_finish): Don't free deprecated_sym_private.
233 (init_stringtab, swap_sym, scan_xcoff_symtab)
234 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
235 (xcoff_free_info): New function.
236 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
237
238 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
239
240 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
241
242 2012-12-12 Tom Tromey <tromey@redhat.com>
243
244 * coffread.c (coff_symfile_init): Use set_objfile_data.
245 (coff_symfile_read): Use DBX_SYMFILE_INFO.
246 * dbxread.c (dbx_objfile_data_key): New global.
247 (dbx_symfile_init): Use set_objfile_data.
248 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
249 (dbx_free_symfile_info): New function.
250 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
251 DBX_SYMFILE_INFO.
252 (stabsect_build_psymtabs): Use set_objfile_data.
253 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
254 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
255 set_objfile_data.
256 (free_elfinfo): Use DBX_SYMFILE_INFO.
257 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
258 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
259 * gdb-stabs.h (dbx_objfile_data_key): Declare.
260 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
261 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
262 * somread.c (som_symfile_finish): Don't free
263 deprecated_sym_stab_info.
264
265 2012-12-12 Joel Brobecker <brobecker@adacore.com>
266
267 * gdbarch.sh (software_single_step): Remove trailing space in
268 comment (gdbarch.h is already correct).
269
270 2012-12-11 Tom Tromey <tromey@redhat.com>
271
272 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
273
274 2012-12-11 Tom Tromey <tromey@redhat.com>
275
276 * dsrec.c (report_transfer_performance): Don't declare.
277 (load_srec): Use gettimeofday, print_transfer_performance.
278 * symfile.c (report_transfer_performance): Remove.
279
280 2012-12-11 Pedro Alves <pedro@codesourcery.com>
281 Pedro Alves <palves@redhat.com>
282
283 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
284 NT_PSTATUS note.
285 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
286 differently from LWP IDs.
287
288 2012-12-11 Pedro Alves <palves@redhat.com>
289
290 * configure.ac (detect type of /proc): Remove Unixware handling.
291 * configure: Regenerate.
292 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
293 (ioctl_table) [PCRESET]: Remove entry.
294 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
295 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
296 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
297 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
298 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
299 Unixware in comments throughout.
300 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
301 and remove mention of Unixware.
302
303 2012-12-10 Doug Evans <dje@google.com>
304
305 * dwarf2read.c (dwarf2_cu): Enhance comment.
306 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
307 the DWO file.
308 (dwarf2_record_block_ranges): Ditto.
309
310 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
311
312 * symtab.c (find_pc_sect_symtab): Add comment.
313
314 2012-12-10 Tom Tromey <tromey@redhat.com>
315
316 * defs.h: Don't check for definition of LONGEST.
317 (min, max): Remove duplicates.
318
319 2012-12-10 Tom Tromey <tromey@redhat.com>
320
321 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
322 (dwarf2_fetch_die_loc_cu_off): Rename from
323 dwarf2_fetch_die_location_block. Rewrite to use
324 dwarf2_fetch_die_loc_sect_off.
325 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
326 (dwarf2_fetch_die_loc_cu_off): Rename.
327 * dwarf2loc.c (indirect_pieced_value): Use
328 dwarf2_fetch_die_loc_sect_off.
329 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
330 comment.
331 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
332 * dwarf2expr.c (add_piece): Update.
333 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
334
335 2012-12-10 Tom Tromey <tromey@redhat.com>
336
337 * buildsym.c (struct pending_block): Move from buildsym.h.
338 (pending_blocks): Likewise; now static.
339 (pending_block_obstack): New global.
340 (free_pending_blocks): Free blocks.
341 (record_pending_block): Use pending_block_obstack.
342 * buildsym.h (struct pending_block): Move definition to
343 buildsym.c.
344 (pending_blocks): Don't declare.
345
346 2012-12-10 Pedro Alves <palves@redhat.com>
347
348 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
349 dead SCO code, and adjust function description comment.
350
351 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
352
353 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
354 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
355 CC_HAS_LONG_LONG.
356 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
357 * dwarf2read.c (extract_cu_value): Remove the function.
358 (create_cus_from_index_list): Make the return type void, inline the
359 extract_cu_value caller, include new gdb_static_assert.
360 (create_cus_from_index): Make the return type void, update the function
361 comment, update the create_cus_from_index_list caller.
362 (create_signatured_type_table_from_index): Make the return type void,
363 inline the extract_cu_value caller, include new gdb_static_assert.
364 (dwarf2_read_index): Update the create_cus_from_index and
365 create_signatured_type_table_from_index caller.
366 * printcmd.c (ui_printf): Remove conditionalizations for
367 CC_HAS_LONG_LONG.
368 * config.in: Regenerate.
369 * configure: Regenerate.
370
371 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
372
373 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
374 Update the comment for checked_producer.
375 (check_producer): New forward declaration.
376 (producer_is_gcc_lt_4_3): New function.
377 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
378 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
379
380 2012-12-07 Tom Tromey <tromey@redhat.com>
381
382 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
383 argument, assertion.
384 * c-exp.y (typebase): Add completion productions.
385 * completer.c (expression_completer): Handle tag completion.
386 * expression.h (parse_expression_for_completion): Add argument.
387 * f-lang.c (f_make_symbol_completion_list): Add 'code'
388 argument.
389 * language.h (struct language_defn)
390 <la_make_symbol_completion_list>: Add 'code' argument.
391 * parse.c (expout_tag_completion_type, expout_completion_name):
392 New globals.
393 (mark_struct_expression): Add assertion.
394 (mark_completion_tag): New function.
395 (parse_exp_in_context): Initialize new globals.
396 (parse_expression_for_completion): Add 'code' argument. Handle
397 tag completion.
398 * parser-defs.h (mark_completion_tag): Declare.
399 * symtab.c (default_make_symbol_completion_list_break_on): Add
400 'code' argument. Update.
401 (default_make_symbol_completion_list): Add 'code' argument.
402 (make_symbol_completion_list): Update.
403 (make_symbol_completion_type): New function.
404 * symtab.h (default_make_symbol_completion_list_break_on)
405 (default_make_symbol_completion_list): Update.
406 (make_symbol_completion_type): Declare.
407
408 2012-12-07 Tom Tromey <tromey@redhat.com>
409
410 * expression.h (parse_expression_for_completion): Rename
411 from parse_field_expression.
412 (parse_completion): Rename from in_parse_field.
413 * c-exp.y (lex_one_token): Update.
414 * completer.c (expression_completer): Update.
415 * go-exp.y (lex_one_token): Update.
416 * p-exp.y (yylex): Update.
417 * parse.c (parse_completion): Rename from in_parse_field.
418 (parse_exp_in_context): Update.
419 (parse_expression_for_completion): Rename from
420 parse_field_expression. Update.
421
422 2012-12-07 Tom Tromey <tromey@redhat.com>
423
424 * typeprint.c (_initialize_typeprint): Set completer
425 for "whatis" and "ptype".
426
427 2012-12-07 Joel Brobecker <brobecker@adacore.com>
428
429 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
430 "sim/common/cgen-fpu.h". Remove invalid entries
431 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
432 which actually have an FSF copyright header.
433
434 2012-12-07 Joel Brobecker <brobecker@adacore.com>
435
436 * osf-share/AT386/cma_thread_io.h: Delete.
437 * osf-share/HP800/cma_thread_io.h: Delete.
438 * osf-share/README: Delete.
439 * osf-share/RIOS/cma_thread_io.h: Delete.
440 * osf-share/cma_attr.h: Delete.
441 * osf-share/cma_deb_core.h: Delete.
442 * osf-share/cma_debug_client.h: Delete.
443 * osf-share/cma_errors.h: Delete.
444 * osf-share/cma_handle.h: Delete.
445 * osf-share/cma_init.h: Delete.
446 * osf-share/cma_list.h: Delete.
447 * osf-share/cma_mutex.h: Delete.
448 * osf-share/cma_sched.h: Delete.
449 * osf-share/cma_semaphore_defs.h: Delete.
450 * osf-share/cma_sequence.h: Delete.
451 * osf-share/cma_stack.h: Delete.
452 * osf-share/cma_stack_int.h: Delete.
453 * osf-share/cma_tcb_defs.h: Delete.
454 * osf-share/cma_util.h: Delete.
455 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
456 in osf-share.
457 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
458 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
459 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
460
461 2012-12-06 Pedro Alves <palves@redhat.com>
462 Tom Tromey <tromey@redhat.com>
463
464 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
465
466 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
467
468 PR mi/14741:
469 * mi/mi-cmd-var.c (varobj_update_one): Take value of
470 attribute "dynamic" and "displayhint" from printed child,
471 not the root variable.
472
473 2012-12-06 Joel Brobecker <brobecker@adacore.com>
474
475 * aix-thread.c (getthrds): Fix type of 4th parameter.
476 (get_signaled_thread): Change type of variable ktid to tid_t.
477
478 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
479
480 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
481 value of get_frame_block.
482
483 2012-12-05 Pierre Muller <muller@sourceware.org>
484
485 Avoid memory leaks on struct cmd_list_element.doc field.
486 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
487 if flags contains DOC_ALLOCATED.
488 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
489 flags.
490 (delete_cmd): Handle DOC_ALLOCATED flag.
491 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
492 in flags filed of struct cmd_list_element.
493 (struct cmd_list_element): Document new flag item.
494
495 2012-12-04 Doug Evans <dje@google.com>
496
497 * symmisc.c: Whitespace fixes.
498
499 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
500
501 * i386-tdep.c (i386_skip_prologue): Using symbol table
502 to find the end of prologue for clang compiled binaries.
503 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
504 to find the end of prologue for clang compiled binaries.
505
506 2012-12-03 Doug Evans <dje@google.com>
507
508 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
509 (dw2_find_symbol_file): Delete unused local file_data.
510
511 2012-12-03 Tom Tromey <tromey@redhat.com>
512
513 * ada-exp.y (write_object_renaming, write_var_or_type)
514 (write_ambiguous_var, write_var_from_sym): Make blocks const.
515 * ada-lang.c (replace_operator_with_call)
516 (find_old_style_renaming_symbol): Make blocks const.
517 * ada-lang.h (ada_find_renaming_symbol): Update.
518 (struct ada_symbol_info) <block>: Now const.
519 * breakpoint.c (watch_command_1): Update.
520 * breakpoint.h (struct watchpoint) <exp_valid_block,
521 cond_exp_valid_block>: Now const.
522 * c-exp.y (classify_inner_name, classify_name): Make block
523 argument const.
524 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
525 const.
526 * expression.h (innermost_block, parse_exp_1): Update.
527 (union exp_element) <block>: Now const.
528 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
529 (lookup_struct): Make block argument const.
530 * gdbtypes.h (lookup_template_type): Update.
531 * go-exp.y (classify_name, classify_packaged_name)
532 (package_name_p): Make block argument const.
533 * objc-lang.c (lookup_struct_typedef): Make block argument const.
534 * objc-lang.h (lookup_struct_typedef): Update.
535 * parse.c (parse_exp_in_context, parse_exp_1)
536 (write_exp_elt_block): Make block arguments const.
537 (expression_context_block, innermost_block): Now const.
538 * parser-defs.h (write_exp_elt_block): Update.
539 (expression_context_block, innermost_block, block_found): Now
540 const.
541 * printcmd.c (struct display) <block>: Now const.
542 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
543 * valops.c (address_of_variable): Make block argument const.
544 * value.h (value_of_variable): Update.
545 * varobj.c (struct varobj_root) <valid_block>: Now const.
546
547 2012-11-30 Yao Qi <yao@codesourcery.com>
548
549 * breakpoint.c (print_one_breakpoint_location): Indent code.
550
551 2012-11-30 Yao Qi <yao@codesourcery.com>
552
553 * breakpoint.c (print_one_breakpoint_location): Combine two
554 blocks handling 'hit count' together.
555
556 2012-11-30 Yao Qi <yao@codesourcery.com>
557
558 * infrun.c (error_is_running, ensure_not_running): Move them
559 to ...
560 * infcmd.c (error_is_running, ensure_not_running): ... here.
561 Make them 'static'.
562 * inferior.h: Remove declarations of error_is_running and
563 ensure_not_running.
564
565 2012-11-30 Yao Qi <yao@codesourcery.com>
566
567 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
568 check REGNUM >= 0.
569
570 2012-11-30 Yao Qi <yao@codesourcery.com>
571
572 * infrun.c: Make the declaration of 'init_infwait_state'
573 static.
574 (init_infwait_state): Make it 'static'.
575
576 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
577
578 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
579 return value to void to avoid compiler warning.
580
581 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
582
583 * opencl-lang.c (opencl_print_type): New function.
584 (opencl_language_arch_info): Install it.
585
586 2012-11-29 Tom Tromey <tromey@redhat.com>
587
588 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
589 xvasprintf.
590 * common/common-utils.c (xasprintf, xvasprintf): Remove.
591 * common/common-utils.h (xasprintf, xvasprintf): Remove.
592
593 2012-11-29 Jerome Guitton <guitton@adacore.com>
594
595 * ada-lang.c (ada_is_interface_tag): New function.
596 (ada_is_ignored_field): Add interface tags to the list
597 of ignored fields.
598
599 2012-11-29 Jerome Guitton <guitton@adacore.com>
600
601 * ada-lang.h (ada_tag_value_at_base_address): New function
602 declaration.
603 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
604 New functions.
605 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
606 relocate the class-wide value if need be.
607 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
608 Let ada_tag_value_at_base_address relocate the class-wide access/ref
609 before dereferencing it.
610 * ada-valprint.c (ada_val_print_1): Relocate to base address
611 before displaying the content of an interface-wide ref.
612
613 2012-11-29 Jerome Guitton <guitton@adacore.com>
614
615 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
616
617 2012-11-29 Joel Brobecker <brobecker@adacore.com>
618
619 GDB 7.5.1 released.
620
621 2012-11-29 Yao Qi <yao@codesourcery.com>
622 Tom Tromey <tromey@redhat.com>
623
624 * eval.c (evaluate_subexp_standard): Get the correct pointer
625 type for TYPE_CODE_MEMBERPTR.
626
627 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
628
629 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
630 since now it is being done by binutils' powerpc_init_dialect().
631
632 2012-11-28 Tom Tromey <tromey@redhat.com>
633
634 PR gdb/14290:
635 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
636 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
637 Use it.
638 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
639 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
640 (gdb_bfd_openr_next_archived_file): Use it.
641
642 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
643
644 * configure.ac: Check for linux/perf_event.h.
645 * config.in: Regenerated.
646 * configure: Regenerated.
647
648 2012-11-28 Yao Qi <yao@codesourcery.com>
649
650 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
651 abbreviate 'delete tracepoints' to 'delete tr'.
652 * corefile.c (_initialize_core): Call add_alias_cmd to
653 abbreviate 'set gnutarget' to 'set g'.
654 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
655 'show convenience' to 'show conv'.
656
657 2012-11-27 Joel Brobecker <brobecker@adacore.com>
658
659 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
660 call to sparc_supply_fpregset.
661 (fill_fpregset): Fix first parameter in call to
662 sparc_collect_fpregset.
663
664 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
665 Kazu Hirata <kazu@codesourcery.com>
666 Yao Qi <yao@codesourcery.com>
667
668 * objfiles.c (init_entry_point_info): Call
669 gdbarch_convert_from_func_ptr_addr and
670 gdbarch_addr_bits_remove here ...
671 (entry_point_address_query): ... instead of here.
672 * solib-svr4.c (exec_entry_point): Call
673 gdbarch_addr_bits_remove.
674 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
675 the entry address.
676
677 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
678 Yao Qi <yao@codesourcery.com>
679
680 * eval.c (evaluate_subexp_standard): Add handling of
681 TYPE_CODE_MEMBERPTR when calling functions. Correct the
682 result of ptype for calling a TYPE_CODE_METHODPTR.
683
684 2012-11-27 Yao Qi <yao@codesourcery.com>
685
686 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
687 warning.
688 Add i18n markup.
689
690 2012-11-26 Alexander Larsson <alexl@redhat.com>
691 Jan Kratochvil <jan.kratochvil@redhat.com>
692 Tom Tromey <tromey@redhat.com>
693
694 * NEWS: Mention mini debuginfo feature.
695 * minidebug.c: New file.
696 * configure.ac: Check for lzma.
697 * configure, config.in: Rebuild.
698 * Makefile.in (LIBLZMA): New variable.
699 (CLIBS): Include LIBLZMA.
700 (SFILES): Mention minidebug.c.
701 (COMMON_OBS): Mention minidebug.o.
702 * symfile.c (read_symbols): New function.
703 (syms_from_objfile, reread_symbols): Call it.
704 * symfile.h (find_separate_debug_file_in_section): Declare.
705
706 2012-11-26 Keith Seitz <keiths@redhat.com>
707
708 * exec.c (exec_file_attach): Move cleanup after verifying that
709 memory has in fact been allocated.
710
711 2012-11-26 Tom Tromey <tromey@redhat.com>
712
713 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
714 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
715 SYMBOL_SYMTAB.
716 * skip.c (skip_info): Use SYMBOL_SYMTAB.
717
718 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
719 Pedro Alves <palves@redhat.com>
720
721 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
722 size parameter passed to readlink by one byte.
723 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
724 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
725 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
726 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
727 size by one byte.
728
729 2012-11-26 Yao Qi <yao@codesourcery.com>
730
731 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
732 extraneous parentheses.
733
734 2012-11-26 Yao Qi <yao@codesourcery.com>
735
736 * remote.c (remote_start_remote): Typo fix.
737
738 2012-11-23 David S. Miller <davem@davemloft.net>
739
740 * sparc-tdep.h (struct sparc_fpregset): New data structure.
741 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
742 sparc32_sol2_fpregset): Declare new globals.
743 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
744 'fpregset' argument.
745 * sparc64-tdep.h (sparc64_supply_fpregset,
746 sparc64_collect_fpregset): Likewise.
747 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
748 globals.
749 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
750 (sparc_fpregset): Declare new global.
751 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
752 'fpregset' argument.
753 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
754 into handler.
755 (fill_fpregset): Likewise.
756 (_initialize_sparc_linux_nat): Set sparc_fpregset to
757 sparc32_bsd_fpregset.
758 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
759 sparc32_bsd_fpregset down into handler.
760 (sparc32_linux_collect_core_fpregset): Likewise.
761 * sparc-nat.c (sparc_fpregset): Define.
762 (sparc_supply_fpregset): Add 'fpregset' argument.
763 (sparc_collect_fpregset): Likewise.
764 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
765 into fpregset handler.
766 (sparc_store_inferior_registers): Likewise.
767 (_initialize_sparc_nat): Set sparc_fpregset to
768 sparc32_sunos4_fpregset if NULL.
769 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
770 down into handler.
771 (fill_fpregset): Likewise.
772 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
773 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
774 use it to compute offsets.
775 (sparc32_collect_fpregset): Likewise.
776 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
777 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
778 down into handler.
779 (fill_fpregset): Likewise.
780 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
781 Likewise.
782 (sparc64_linux_collect_core_fpregset): Likewise.
783 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
784 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
785 use it to compute offsets.
786 (sparc64_collect_fpregset): Likewise.
787 (sparc64_bsd_fpregset): Define.
788 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
789 sparc64_bsd_fpregset down into handler.
790 (sparc64fbsd_collect_fpregset): Likewise.
791 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
792 and pass sparc{32,64}_bsd_fpregset down into handler.
793 (sparc64nbsd_collect_fpregset): Likewise.
794 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
795 sparc64_bsd_fpregset down into handler.
796 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
797 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
798 to sparc32_bsd_fpregset.
799 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
800 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
801 (sparc32nbsd_supply_fpregset): Likewise.
802
803 2012-11-21 Tom Tromey <tromey@redhat.com>
804
805 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
806 field.
807 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
808 Remove.
809 * c-typeprint.c (c_type_print_base): Update.
810
811 2012-11-21 Yao Qi <yao@codesourcery.com>
812
813 PR tdep/7438
814 * gdbarch.sh (smash_text_address): Remove.
815 * gdbarch.c, gdbarch.h: Regenerate.
816 * arm-tdep.c (arm_smash_text_address): Remove.
817 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
818 * hppa-tdep.c (hppa_smash_text_address): Remove.
819 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
820 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
821 Caller update.
822 * coffread.c (coff_symtab_read): Caller update.
823 * dbxread.c (process_one_symbol): Likewise.
824 * elfread.c (record_minimal_symbol): Likewise.
825 * somread.c (som_symtab_read): Likewise.
826
827 2012-11-20 Pierre Muller <muller@sourceware.org>
828
829 ARI fixes: sprintf rule.
830 Replace sprintf function calls for char arrays by
831 calls to xsnprintf calls.
832 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
833 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
834 (arm_neon_quad_read, arm_pseudo_read): Ditto.
835 (arm_neon_quad_write, arm_pseudo_write): Ditto.
836 * breakpoint.c (condition_completer): Ditto.
837 (create_tracepoint_from_upload): Ditto.
838 * dwarf2read.c (file_full_name): Ditto.
839 * gcore.c (gcore_command): Ditto.
840 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
841 * go32-nat.c (go32_sysinfo): Ditto.
842 * interps.c (interp_set): Ditto.
843 * m32c-tdep.c (make_types): Ditto.
844 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
845 * remote-m32r-sdi.c (m32r_open): Ditto.
846 * sol-thread.c (td_err_string): Ditto.
847 (td_state_string, solaris_pid_to_str): Ditto.
848 * symtab.c (gdb_mangle_name): Ditto.
849 * cli/cli-script.c (execute_control_command): Ditto.
850 (define_command, document_command): Ditto.
851 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
852 * tui/tui-stack.c (tui_make_status_line): Ditto.
853 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
854
855 2012-11-20 Mike Frysinger <vapier@gentoo.org>
856
857 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
858 it when looking at ptr->func.
859 * command.h (complete_on_cmdlist): Add a fourth arg.
860 * completer.c (complete_line_internal): Add local ignore_help_classes,
861 and set it to 1 when reason is not handle_help. Pass this down to
862 lookup_cmd_1 and complete_on_cmdlist.
863
864 2012-11-20 Tom Tromey <tromey@redhat.com>
865
866 * completer.c (count_struct_fields): Remove.
867 (expression_completer): Don't call count_struct_fields.
868
869 2012-11-20 Pedro Alves <palves@redhat.com>
870
871 * annotate.c (breakpoints_changed): Rename to ...
872 (annotate_breakpoints_changed): ... this.
873 (annotate_stopped, breakpoint_changed): Adjust caller.
874 * annotate.h (breakpoints_changed): Rename to ...
875 (annotate_breakpoints_changed): ... this.
876 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
877 (do_map_commands_command, init_raw_breakpoint, clear_command)
878 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
879
880 2012-11-20 David S. Miller <davem@davemloft.net>
881
882 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
883 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
884 sysconf.
885 (get_cores_used_by_process): Update comment.
886
887 2012-11-20 Yao Qi <yao@codesourcery.com>
888
889 * objfiles.c (init_entry_point_info): Remove trailing spaces.
890
891 2012-11-20 Yao Qi <yao@codesourcery.com>
892
893 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
894 to deprecated_context_hook.
895
896 2012-11-19 Yao Qi <yao@codesourcery.com>
897
898 * infrun.c (infwait_state): Add static.
899
900 2012-11-16 Keith Seitz <keiths@redhat.com>
901
902 PR c++/13615
903 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
904 parameter and pass it to lookup_symbol_file.
905 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
906 to search base classes.
907 (cp_lookup_symbol_namespace): Likewise.
908 (lookup_namespace_scope): Likewise.
909 (lookup_symbol_file): Add SEARCH parameter.
910 If SEARCH is non-zero and no symbol is found, lookup the class
911 and call cp_lookup_nested_symbol.
912 (find_symbol_in_baseclass): New function.
913 (cp_lookup_nested_symbol): Do not let
914 cp_lookup_symbol_in_namespace search through base classes.
915 Do that later when there is no global symbol match.
916
917 2012-11-16 Doug Evans <dje@google.com>
918
919 * main.c (gdb_datadir_provided): New static global.
920 (get_init_files): If --data-directory is provided,
921 and SYSTEM_GDBINIT lives in data-directory, look for it there.
922 * NEWS: Mention it.
923
924 2012-11-15 Pierre Muller <muller@sourceware.org>
925
926 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
927 * gdb_stat.h: Delete. Moved to common directory.
928 * common/gdb_stat.h: New file.
929 * gdb_wait.h: Delete. Moved to common directory.
930 * common/gdb_wait.h: New file.
931 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
932 location.
933 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
934 location.
935 (stat.h rule): Adapt to new gdb_stat.h location.
936 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
937 <sys/stat.h> header.
938 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
939 <sys/wait.h> header.
940
941 2012-11-15 Pierre Muller <muller@sourceware.org>
942
943 * configure.ac (AC_HEADER_STAT): Remove.
944 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
945 and corresponding code.
946 * configure: Regenerate.
947 * config.in: Regenerate.
948
949 2012-11-15 Pierre Muller <muller@sourceware.org>
950
951 ARI xasprintf rule fixes.
952 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
953 instead of xasprintf.
954 (open_and_init_dwp_file): Ditto.
955
956 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
957
958 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
959 target types.
960
961 2012-11-14 Tom Tromey <tromey@redhat.com>
962
963 * configure, config.in: Rebuild.
964 * configure.ac: Don't check for ctype.h, time.h.
965 * expprint.c: Don't use HAVE_CTYPE_H.
966
967 2012-11-13 Tom Tromey <tromey@redhat.com>
968
969 * gdbarch.h, gdbarch.c: Rebuild.
970 * gdbarch.sh (set_target_gdbarch): Rename from
971 deprecated_target_gdbarch_select_hack.
972 * arch-utils.c (gdbarch_update_p): Update.
973 (set_gdbarch_from_file): Update.
974
975 2012-11-14 Pierre Muller <muller@sourceware.org>
976
977 * MAINTAINERS (Responsible Maintainers/misc): Add myself
978 as responsible of contrib/ari directory.
979
980 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
981 Yao Qi <yao@codesourcery.com>
982
983 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
984 bit of EXC_RETURN.
985 (arm_m_exception_cache, arm_m_exception_this_id)
986 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
987 (arm_m_exception_unwind): New.
988 (arm_gdbarch_init): Register arm_m_exception_unwind.
989
990 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
991
992 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
993 parameter COUNT, for pattern filling of memory regions.
994 * NEWS: Mention it.
995
996 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
997
998 * disasm.h (DISASSEMBLY_FILENAME): New macro.
999 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1000 to print_source_lines ().
1001 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1002 flag.
1003 * source.c (print_source_lines_base): Prefix source line with
1004 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1005
1006 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1007
1008 * symtab.h (print_source_lines_flags): New enum.
1009 * source.c (print_source_lines_base): Change noerror to flags.
1010 (print_source_lines): Change noerror to flags.
1011
1012 2012-11-13 Pierre Muller <muller@sourceware.org>
1013
1014 ARI fixes: Avoid sprintf function use rule.
1015 * charset.c (convert_between_encodings): Use xsnprintf.
1016 * cli-out.c (cli_field_int): Likewise.
1017 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1018 * expprint.c (op_name_standard): Likewise.
1019 * frv-tdep.c (set_variant_num_gprs): Likewise.
1020 (set_variant_num_fprs): Likewise.
1021 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1022 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1023 (nto_init_solib_absolute_prefix): Likewise.
1024 * source.c (init_source_path): Likewise.
1025 (print_source_lines_base): Likewise.
1026 * valprint.c (print_wchar): Likewise.
1027 * mi/mi-out.c (mi_field_int): Likewise.
1028 windows-nat.c (windows_pid_to_exec_file): Likewise.
1029 (windows_create_inferior): Likewise.
1030 (_initialize_check_for_gdb_ini): Likewise.
1031
1032 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1033
1034 * frame.h (deprecated_frame_register_read): Renames
1035 frame_register_read.
1036 * frame.c (deprecated_frame_register_read): Renames
1037 frame_register_read. Update all callers.
1038 * i386-tdep.c: Update all callers of frame_register_read.
1039 * infcmd.c: Likewise.
1040 * jit.c: Likewise.
1041 * mips-tdep.c: Likewise.
1042 * mt-tdep.c: Likewise.
1043 * sh64-tdep.c: Likewise.
1044
1045 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1046
1047 * frame.h (frame_register_read): Remove FIXME comment.
1048 * frame.c (frame_register_read): Add suggestion explaining
1049 which function to use in place of this one.
1050
1051 2012-11-12 Tom Tromey <tromey@redhat.com>
1052
1053 * python/python.c (start_type_printers): Initialize 'result_obj'.
1054
1055 2012-11-12 Tom Tromey <tromey@redhat.com>
1056
1057 * NEWS: Update.
1058 * data-directory/Makefile.in (PYTHON_FILES): Add
1059 type_printers.py.
1060 * python/lib/gdb/command/type_printers.py: New file.
1061 * python/lib/gdb/command/types.py (TypePrinter): New class.
1062 (_get_some_type_recognizers, get_type_recognizers,
1063 apply_type_recognizers, register_type_printer): New
1064 functions.
1065 * python/py-objfile.c (objfile_object) <type_printers>: New
1066 field.
1067 (objfpy_dealloc): Decref new field.
1068 (objfpy_new): Set new field.
1069 (objfpy_get_type_printers, objfpy_set_type_printers): New
1070 functions.
1071 (objfile_to_objfile_object): Set new field.
1072 (objfile_getset): Add "type_printers".
1073 * python/py-progspace.c (pspace_object) <type_printers>: New
1074 field.
1075 (pspy_dealloc): Decref new field.
1076 (pspy_new): Set new field.
1077 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1078 (pspace_to_pspace_object): Set new field.
1079 (pspace_getset): Add "type_printers".
1080 * python/python.c (start_type_printers, apply_type_printers,
1081 free_type_printers): New functions.
1082 (_initialize_python): Set gdb.type_printers.
1083 * python/python.h (start_type_printers, apply_type_printers,
1084 free_type_printers): Declare.
1085 * typeprint.c (type_print_raw_options, default_ptype_flags):
1086 Update for new fields.
1087 (do_free_global_table, create_global_typedef_table,
1088 find_global_typedef): New functions.
1089 (find_typedef_in_hash): Use find_global_typedef.
1090 (whatis_exp): Use create_global_typedef_table. Change cleanup
1091 handling.
1092 * typeprint.h (struct type_print_options) <global_typedefs,
1093 global_printers>: New fields.
1094
1095 2012-11-12 Tom Tromey <tromey@redhat.com>
1096
1097 * c-typeprint.c (find_typedef_for_canonicalize,
1098 print_name_maybe_canonical): New functions.
1099 (c_print_type): Look up type name.
1100 (cp_type_print_derivation_info): Add flags argument. Use
1101 print_name_maybe_canonical.
1102 (cp_type_print_method_args): Add wrapping.
1103 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1104 (c_type_print_template_args): New function.
1105 (c_type_print_base): Change wrapping. Use
1106 print_name_maybe_canonical.
1107 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1108 type name lookups.
1109 * gdbtypes.c (types_equal): No longer static.
1110 * gdbtypes.h (types_equal): Declare.
1111 * typeprint.c (type_print_raw_options, default_ptype_flags):
1112 Update.
1113 (struct typedef_hash_table): New.
1114 (hash_typedef_field, eq_typedef_field,
1115 recursively_update_typedef_hash, add_template_parameters,
1116 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1117 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1118 copy_typedef_hash, find_typedef_in_hash): New functions.
1119 * typeprint.h (struct type_print_options) <local_typedefs>:
1120 New field.
1121 (recursively_update_typedef_hash, add_template_parameters,
1122 create_typedef_hash, free_typedef_hash,
1123 make_cleanup_free_typedef_hash, copy_typedef_hash,
1124 find_typedef_in_hash): Declare.
1125
1126 2012-11-12 Tom Tromey <tromey@redhat.com>
1127
1128 * cp-support.c (inspect_type,
1129 replace_typedefs_qualified_name, replace_typedefs): Add
1130 finder, data arguments. Call as needed.
1131 (cp_canonicalize_string_full): New function.
1132 (cp_canonicalize_string_no_typedefs): Rewrite.
1133 * cp-support.h (canonicalization_ftype): New typedef.
1134 (cp_canonicalize_string_full): Declare.
1135
1136 2012-11-12 Tom Tromey <tromey@redhat.com>
1137
1138 * NEWS: Update.
1139 * c-typeprint.c (c_type_print_base): Handle print_method and
1140 print_typedefs flags.
1141 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1142 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1143 options.
1144 * typeprint.c (type_print_raw_options, default_ptype_flags):
1145 Update for new field.s
1146 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1147 (setprinttypelist, showprinttypelist, print_methods,
1148 print_typedefs): New globals.
1149 (set_print_type, show_print_type, set_print_type_methods,
1150 show_print_type_methods, set_print_type_typedefs,
1151 show_print_type_typedefs): New functions.
1152 (_initialize_typeprint): Update documentation. Add "print
1153 type methods" and "print type typedefs" parameters.
1154 * typeprint.h (struct type_print_options) <print_methods,
1155 print_typedefs>: New fields.
1156
1157 2012-11-12 Tom Tromey <tromey@redhat.com>
1158
1159 * c-typeprint.c (cp_type_print_method_args): Add flags
1160 argument. Call c_print_type, not type_print.
1161 (c_type_print_base): Call c_print_type, not type_print.
1162 Update.
1163
1164 2012-11-12 Tom Tromey <tromey@redhat.com>
1165
1166 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1167 to type-printing functions.
1168 * ada-lang.h (ada_print_type): Add argument.
1169 * ada-typeprint.c (print_array_type, print_variant_clauses,
1170 print_variant_part, print_selected_record_field_types,
1171 print_record_field_types, print_unchecked_union_type,
1172 print_func_type, ada_print_type): Add flags argument.
1173 (ada_print_typedef): Update.
1174 * c-exp.y (OPERATOR conversion_type_id): Update.
1175 * c-lang.h (c_print_type, c_type_print_base): Update.
1176 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1177 c_type_print_modifier, c_type_print_args,
1178 c_type_print_varspec_suffix, c_type_print_base): Add flags
1179 argument.
1180 * cp-valprint.c (cp_print_class_member): Update.
1181 * dwarf2read.c (dwarf2_compute_name): Update.
1182 * f-lang.h (f_print_type): Add argument.
1183 * f-typeprint.c (f_print_type): Add flags argument.
1184 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1185 * go-lang.h (go_print_type): Add argument.
1186 * go-typeprint.c (go_print_type): Add flags argument.
1187 * jv-lang.h (java_print_type): Add argument.
1188 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1189 flags argument.
1190 * language.c (unk_lang_print_type): Add flags argument.
1191 * language.h (struct language_defn) <la_print_type>: Add flags
1192 argument.
1193 (LA_PRINT_TYPE): Likewise.
1194 * m2-lang.h (m2_print_type): Add argument.
1195 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1196 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1197 m2_unbounded_array, m2_record_fields): Add flags argument.
1198 * p-lang.h (pascal_print_type, pascal_type_print_base,
1199 pascal_type_print_varspec_prefix): Add argument.
1200 * p-typeprint.c (pascal_print_type,
1201 pascal_type_print_varspec_prefix, pascal_print_func_args,
1202 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1203 flags argument.
1204 * symmisc.c (print_symbol): Update.
1205 * typeprint.c (type_print_raw_options, default_ptype_flags):
1206 New globals.
1207 (type_print): Update.
1208 * typeprint.h (struct type_print_options): New.
1209 (type_print_raw_options): Declare.
1210 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1211
1212 2012-11-10 Keith Seitz <keiths@redhat.com>
1213
1214 * breakpoint.c (clear_command): Add cleanup for
1215 sals.sals if an argument is given.
1216
1217 * linespec.c (parse_linespec): Do cleanups after
1218 parsing a convenience variable.
1219
1220 2012-11-10 Keith Seitz <keiths@redhat.com>
1221
1222 PR gdb/14288
1223 * c-valprint.c (c_val_print): For character arrays
1224 with "print null" option on, print ellipses if
1225 the output is truncated and the next character is not \000.
1226 * valprint.c (MAX_WCHARS): Define.
1227 (WCHAR_BUFLEN): Likewise.
1228 (WCHAR_BUFLEN_MAX): Likewise.
1229 (struct converted_character): New structure.
1230 (count_next_character): New function.
1231 (print_converted_chars_to_obstack): New function.
1232 (generic_printstr): Rewrite using count_next_character
1233 and print_converted_chars_to_obstack.
1234
1235 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1236
1237 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1238 while executing the gdb command.
1239 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1240 are called from prompt_for_continue.
1241 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1242
1243 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1244
1245 PR tui/9584
1246
1247 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1248 but insert the command to execute in readline's buffer.
1249
1250 2012-11-09 Tom Tromey <tromey@redhat.com>
1251
1252 * gdbarch.sh (target_gdbarch): Remove macro.
1253 (get_target_gdbarch): Rename to target_gdbarch.
1254 * gdbarch.c, gdbarch.h: Rebuild.
1255 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1256 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1257 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1258 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1259 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1260 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1261 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1262 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1263 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1264 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1265 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1266 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1267 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1268 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1269 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1270 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1271 target-descriptions.c, target.c, target.h, tracepoint.c,
1272 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1273 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1274 python/py-inferior.c, python/python.c: Update.
1275
1276 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1277
1278 * source.c (print_source_lines_base): Add fullname field giving
1279 full path to file in mi output.
1280 * NEWS: Mention the new fullname field.
1281
1282 2012-11-09 Yao Qi <yao@codesourcery.com>
1283
1284 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1285
1286 2012-11-09 Pedro Alves <palves@redhat.com>
1287
1288 PR gdb/14306
1289
1290 * infrun.c: Include target-descriptions.h.
1291 (follow_exec): Fetch new target description.
1292
1293 2012-11-09 Yao Qi <yao@codesourcery.com>
1294
1295 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1296 0x8d (lea).
1297
1298 2012-11-09 Yao Qi <yao@codesourcery.com>
1299
1300 * breakpoint.c: Declare set_tracepoint_count.
1301 (install_breakpoint): Call set_tracepoint_count if B is a
1302 tracepoint.
1303 (trace_command): Don't call set_tracepoint_count. Re-indent.
1304 (strace_command, ftrace_command):
1305 (create_tracepoint_from_upload): Likewise.
1306
1307 2012-11-09 Pedro Alves <palves@redhat.com>
1308
1309 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1310 (get_target_gdbarch) <gdbarch.h>: New function.
1311 (startup_gdbarch) <gdbarch.h>: Declare.
1312 <gdbarch.c> (target_gdbarch): Delete.
1313 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1314 current inferior's gdbarch.
1315 <gdbarch.c> (get_target_gdbarch): New function.
1316 * inferior.c: Include target-descriptions.h.
1317 (free_inferior): Free target description info.
1318 (add_inferior_with_spaces): Set the inferior's initial
1319 architecture.
1320 (clone_inferior_command): Copy the original inferior's target
1321 description if it was user specified.
1322 (initialize_inferiors): Add comment.
1323 * inferior.h (struct target_desc_info): Forward declare.
1324 (struct inferior) <gdbarch>: New field.
1325 * linux-nat.c: Include target-descriptions.h.
1326 (linux_child_follow_fork): Copy the parent's architecture and
1327 target description to the child.
1328 * target-descriptions.c: Include inferior.h.
1329 (struct target_desc_info): New structure, holding the equivalents
1330 of ...
1331 (target_desc_fetched, current_target_desc)
1332 (target_description_filename): ... these removed globals.
1333 (get_tdesc_info, target_desc_info_from_user_p)
1334 (copy_inferior_target_desc_info, target_desc_info_free): New.
1335 (target_desc_fetched, current_target_desc)
1336 (target_description_filename): Reimplemented as convenience
1337 macros.
1338 (tdesc_filename_cmd_string): New global.
1339 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1340 tdescs filename ..." commands to the per-inferior equivalent.
1341 (show_tdesc_filename_cmd): Get the value to show from the
1342 per-inferior description filename.
1343 (_initilize_target_descriptions): Change the "set/show tdesc
1344 filename" commands' variable.
1345 * target-descriptions.h (struct target_desc, struct target_desc_info)
1346 (struct inferior): Forward declare.
1347 (target_find_description, target_clear_description)
1348 (target_current_description): Adjust comments.
1349 (copy_inferior_target_desc_info, target_desc_info_free)
1350 (target_desc_info_from_user_p). Declare.
1351
1352 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1353
1354 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1355 (tui_target_wait_hook): Remove.
1356 (tui_install_hooks): Install the about_to_proceed observer.
1357 (tui_remove_hooks): And remove it here.
1358
1359 2012-11-08 Tom Tromey <tromey@redhat.com>
1360
1361 * linux-tdep.c (linux_make_siginfo_note): New function.
1362 (linux_make_corefile_notes): Use it.
1363 * corelow.c (get_core_siginfo): New function.
1364 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1365
1366 2012-11-08 Tom Tromey <tromey@redhat.com>
1367
1368 PR gdb/14704:
1369 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1370 (zlib_decompress_section): Remove.
1371 (gdb_bfd_map_section): Only check for compressed section
1372 in mmap case. Use bfd_get_full_section_contents.
1373 * osabi.c (check_note): Add 'sectsize' argument. Read
1374 section data.
1375 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1376 section data. Update for check_note change.
1377 * xcoffread.c (xcoff_initial_scan): Use
1378 bfd_get_full_section_contents.
1379 * py-auto-load.c (auto_load_section_scripts): Use
1380 bfd_get_full_section_contents.
1381 * contrib/cc-with-tweaks.sh: Add -Z option.
1382
1383 2012-11-08 Tom Tromey <tromey@redhat.com>
1384
1385 * python/py-bpevent.c: Include defs.h.
1386 * python/py-continueevent.c: Include defs.h.
1387 * python/py-event.c: Include defs.h.
1388 * python/py-event.h: Don't include defs.h.
1389 * python/py-events.h: Don't include defs.h.
1390 * python/py-evts.c: Include defs.h.
1391 * python/py-exitedevent.c: Include defs.h.
1392 * python/py-newobjfileevent.c: Include defs.h.
1393 * python/py-signalevent.c: Include defs.h.
1394 * python/py-stopevent.c: Include defs.h.
1395 * python/py-threadevent.c: Include defs.h.
1396
1397 2012-11-08 Pierre Muller <muller@sourceware.org>
1398
1399 * update-web-ari.sh (print_heading): Add number of files
1400 checked.
1401 (nb_files): New variable counting the number of sources
1402 files found by gdb_find.sh script.
1403 (debug_awk): New variable to allow extra debug output.
1404 (indexes): Add more information if DEBUG_AWK is set.
1405
1406 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1407
1408 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1409 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1410 following the change in PLT call stubs on linker.
1411
1412 2012-11-08 Pierre Muller <muller@sourceware.org>
1413
1414 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1415 as default language.
1416 (AWK): Use = instead of == for sh test to avoid warning.
1417 (Linux rule): Correct [:digit] into [[:digit:]].
1418 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1419 (vasprintf rule): Adapt to common subdirectory moves.
1420 (xasprintf rule): Idem.
1421 (xvasprintf rule): Idem.
1422 (var_boolean rule): Accept occurence in == or != test.
1423
1424 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1425
1426 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1427
1428 * tui/tui-hooks.c (tui_inferior_exit): New function.
1429 (tui_detach_hook): Remove.
1430 (tui_install_hooks): Install the inferior exit observer.
1431 (tui_remove_hooks): Remove it.
1432
1433 2012-11-08 Yao Qi <yao@codesourcery.com>
1434
1435 PR gdb/14777.
1436 * source.c (_initialize_source): Call add_com_alias to abbreviate
1437 'forward-search' as 'fo'.
1438
1439 2012-11-07 Pedro Alves <palves@redhat.com>
1440
1441 * arm-tdep.c: Make defs.h be the first include.
1442 * coff-pe-read.c: Ditto.
1443 * gnu-nat.c: Ditto.
1444 * go32-nat.c: Ditto.
1445 * i386-nat.c: Ditto.
1446 * ppcnbsd-nat.c: Ditto.
1447 * ada-varobj.h: Don't include defs.h.
1448 * i386-darwin-tdep.h: Ditto.
1449 * i386-nat.h: Ditto.
1450
1451 2012-11-07 Pedro Alves <palves@redhat.com>
1452
1453 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1454 Committee.
1455
1456 2012-11-07 Pierre Muller <muller@sourceware.org>
1457
1458 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1459 File already uses "gdb_dirent.h" header.
1460
1461 2012-11-07 Yao Qi <yao@codesourcery.com>
1462
1463 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1464 tracepoint_count'.
1465
1466 2012-11-06 Tom Tromey <tromey@redhat.com>
1467
1468 * target.h (inferior_has_forked, inferior_has_vforked)
1469 (inferior_has_execd, inferior_has_called_syscall): Remove
1470 declarations.
1471
1472 2012-11-06 Pierre Muller <muller@sourceware.org>
1473
1474 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1475 add missing internalization markup.
1476
1477 2012-11-06 Pedro Alves <palves@redhat.com>
1478
1479 PR gdb/14810
1480
1481 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1482
1483 2012-11-06 Pierre Muller <muller@sourceware.org>
1484
1485 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1486 is not executable.
1487
1488 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1489
1490 * gnulib/update-gnulib.sh: New script.
1491
1492 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1493
1494 * MAINTAINERS: Update my email address.
1495
1496 2012-11-05 Tom Tromey <tromey@redhat.com>
1497
1498 * frame.c (put_frame_register): Don't use temporary buffer.
1499
1500 2012-11-05 Pedro Alves <palves@redhat.com>
1501
1502 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1503 child. Clear 'pending_detach'.
1504 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1505 'pending_detach' in the vfork parent.
1506
1507 2012-11-05 Doug Evans <dje@google.com>
1508
1509 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1510 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1511 * dwarf2read.c: #include "elf-bfd.h".
1512 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1513 (dwop_section_names): Renamed from dwo_section names. All uses
1514 updated. Add entries for .debug_cu_index, .debug_tu_index.
1515 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1516 All uses updated.
1517 (struct dwp_sections): New type.
1518 (struct virtual_dwo_sections): New type.
1519 (struct dwp_hash_table): New type.
1520 (struct dwp_file): New type.
1521 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1522 read in. Handle DWOs coming from DWP files.
1523 (lookup_dwo_file_slot): New function.
1524 (dwarf2_locate_dwo_sections): Move definition closer to use.
1525 (create_dwo_debug_info_hash_table_reader): Renamed from
1526 create_debug_info_hash_table_reader. All callers updated.
1527 (create_dwo_debug_info_hash_table): Renamed from
1528 create_debug_info_hash_table. All callers updated.
1529 (create_dwp_hash_table): New function.
1530 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1531 (lookup_dwo_in_dwp): New function.
1532 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1533 is_dwp. All callers updated.
1534 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1535 (open_and_init_dwo_file): Renamed from init_dwo_file.
1536 All callers updated.
1537 (lookup_dwo_file): Delete.
1538 (dwarf2_locate_dwp_sections): New function.
1539 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1540 (allocate_dwp_loaded_cutus_table): New function.
1541 (open_and_init_dwp_file): New function.
1542 (lookup_dwo_cutu): New function.
1543 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1544
1545 2012-11-03 Yao Qi <yao@codesourcery.com>
1546
1547 Fix PR gdb/14617.
1548 * breakpoint.c (trace_pass_set_count): Call
1549 observer_notify_breakpoint_modified instead of
1550 observer_notify_tracepoint_modified.
1551 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1552
1553 2012-11-02 Tom Tromey <tromey@redhat.com>
1554
1555 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1556 argument to complete_on_enum.
1557
1558 2012-11-02 Tom Tromey <tromey@redhat.com>
1559
1560 * configure: Rebuild.
1561 * configure.ac (build_warnings): Add -Wempty-body.
1562 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1563 * remote.c (handle_notification): Use braces for empty 'else' body.
1564 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1565 'else' body.
1566 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1567 'else' body.
1568 * solib-som.c (som_relocate_section_addresses): Use braces
1569 for empty 'else' body.
1570 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1571 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1572
1573 2012-11-02 Pedro Alves <palves@redhat.com>
1574
1575 PR gdb/14766
1576
1577 * infrun.c (handle_inferior_event)
1578 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1579 null_ptid before handling a vfork child exec or exit. Switch to
1580 the event ptid afterwards.
1581
1582 2012-11-02 Yao Qi <yao@codesourcery.com>
1583
1584 * std-operator.def: Remove OP_LABELED.
1585 * eval.c: Remove the declaration of 'get_label'.
1586 (get_label): Remove.
1587 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1588 Update comment.
1589 Remove local variable 'variantno' and related code.
1590 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1591 with 'fieldno'.
1592 * expprint.c (print_subexp_standard): Likewise.
1593 (dump_subexp_body_standard): Likewise.
1594 * parse.c (operator_length_standard): Likewise.
1595
1596 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1597
1598 Incorporate ARI web page generator into GDB sources.
1599 * contrib/ari/create-web-ari-in-src.sh: New file.
1600 * contrib/ari/gdb_ari.sh: New file.
1601 * contrib/ari/gdb_find.sh: New file.
1602 * contrib/ari/update-web-ari.sh: New file.
1603
1604 2012-10-31 Tom Tromey <tromey@redhat.com>
1605
1606 * gdbarch.c: Rebuild.
1607 * gdbarch.sh: Remove references to gdbarch_swap.
1608 * corelow.c (core_open): Remove obsolete comment.
1609
1610 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1611
1612 PR cli/14772
1613 * c-typeprint.c (c_print_type): Don't print a space for vector
1614 types, this is handled within the suffix.
1615 (c_type_print_varspec_suffix): Add a space to vector suffix.
1616
1617 2012-10-26 Pedro Alves <palves@redhat.com>
1618
1619 * amd64-tdep.c (amd64_relocate_instruction): Use
1620 store_unsigned_integer instead of memcpy.
1621 * i386-tdep.c (i386_relocate_instruction): Ditto.
1622
1623 2012-10-26 Pedro Alves <palves@redhat.com>
1624
1625 * infrun.c (handle_inferior_event): Merge handling of
1626 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1627 switch case.
1628
1629 2012-10-26 Pedro Alves <palves@redhat.com>
1630
1631 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1632 Remove comment.
1633
1634 2012-10-26 Pedro Alves <palves@redhat.com>
1635
1636 * target.c (target_waitstatus_to_string): Handle
1637 TARGET_WAITKIND_VFORK_DONE.
1638
1639 2012-10-26 Pedro Alves <palves@redhat.com>
1640
1641 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1642 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1643
1644 2012-10-24 Tristan Gingold <gingold@adacore.com>
1645
1646 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1647 Add comments.
1648
1649 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1650
1651 * ravenscar-thread.c (ravenscar_wait): Only update the list
1652 of threads and inferior_ptid if the inferior is still alive.
1653
1654 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1655
1656 * ada-lang.c (is_known_support_routine): Use lbasename when
1657 matching the symtab's filename against
1658 known_runtime_file_name_patterns.
1659
1660 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1661
1662 * ada-lang.c (ada_same_array_size_p): New function.
1663 (ada_promote_array_of_integrals): New function.
1664 (coerce_for_assign): Add handling of arrays where the elements
1665 are integrals of a smaller size than the size of the target
1666 array element type.
1667
1668 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1669
1670 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1671 against maximum exponent value.
1672
1673 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1674
1675 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1676 "unwind-seh.c".
1677
1678 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1679
1680 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1681 strip typedef layer when computing the fixed type's field type,
1682 only when computing its size.
1683
1684 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1685
1686 PR gdb/12783
1687 * i386-tdep.c (i386_return_value): Handle complex double and long
1688 double.
1689
1690 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1691
1692 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1693 New local variable args_len.
1694 Quote the name of the executable when computing the command line.
1695
1696 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1697
1698 PR gdb/12796
1699 PR gdb/12798
1700 PR gdb/12800
1701 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1702 AMD64_FTAG_REGNUM.
1703 * amd64-tdep.c (amd64_classify): Classify complex types.
1704 (amd64_return_value): Handle the COMPLEX_X87 class.
1705
1706 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1707
1708 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1709 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1710
1711 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1712
1713 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1714 function.
1715 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1716 to amd64_windows_auto_wide_charset.
1717
1718 2012-10-23 Yao Qi <yao@codesourcery.com>
1719
1720 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1721 * event-top.h: Remove its declaration.
1722 (async_request_quit): Call mark_async_signal_handler instead of
1723 mark_async_signal_handler_wrapper.
1724 (async_do_nothing, async_disconnect): Likewise.
1725 (async_stop_sig): Likewise.
1726 * remote.c (handle_remote_sigint): Likewise.
1727 (handle_remote_sigint_twice): Likewise.
1728
1729 2012-10-23 Yao Qi <yao@codesourcery.com>
1730
1731 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1732 with 'static struct async_signal_handler *'.
1733 (sighup_token, sigquit_token, sigstp_token): Likewise.
1734
1735 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1736
1737 * gdbarch.sh (function_list): Use 'pstring' when printing
1738 a variable which could return NULL.
1739 * gdbarch.c: Regenerate.
1740
1741 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1742 Tom Tromey <tromey@redhat.com>
1743
1744 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1745 inneffective if condition by gdb assertion. Add function
1746 description comment.
1747
1748 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1749
1750 * parser-defs.h (struct exp_descriptor): Document constraint
1751 on return value for "op_name" callbacks.
1752
1753 2012-10-18 Tom Tromey <tromey@redhat.com>
1754
1755 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1756 * symtab.c (iterate_over_some_symtabs): Constify.
1757 * source.h (symtab_to_fullname): Return 'const char *'.
1758 * source.c (symtab_to_fullname): Return 'const char *'.
1759 * python/py-symtab.c (stpy_fullname): Constify.
1760 * cli/cli-cmds.c (edit_command): Constify.
1761 * breakpoint.c (print_breakpoint_location)
1762 (update_static_tracepoint): Constify.
1763
1764 2012-10-18 Tom Tromey <tromey@redhat.com>
1765
1766 * breakpoint.c (compare_breakpoints): Fix comparison.
1767
1768 2012-10-18 Tom Tromey <tromey@redhat.com>
1769
1770 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1771 gdb_wchar_t to convert_between_encodings.
1772
1773 2012-10-17 Yao Qi <yao@codesourcery.com>
1774
1775 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1776 more parameter 'inferior'.
1777 * corefile.c (write_memory_with_notification): Caller update.
1778
1779 * mi/mi-cmd-var.c: Include "mi-main.h".
1780 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1781 to 1 and restore it later.
1782 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1783 and "data-write-memory-bytes.
1784 * mi/mi-interp.c: Include objfiles.h.
1785 (mi_interpreter_init): Call observer_attach_memory_changed.
1786 (mi_memory_changed): New.
1787 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1788 New field.
1789
1790 * NEWS: Mention new MI notification "memory-changed".
1791
1792 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1793
1794 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1795
1796 2012-10-15 Doug Evans <dje@google.com>
1797
1798 New option -nh: inhibit loading of ~/.gdbinit.
1799 * NEWS: Mention -nh.
1800 * main.c (captured_main): Recognize and process -nh.
1801 (print_gdb_help): Mention -nh.
1802 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1803
1804 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1805
1806 PR backtrace/14646
1807 PR gdb/14647
1808 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1809 pc_regnum_from_eax.
1810 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1811 nor pc_regnum_from_eax.
1812 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1813 nor pc_regnum_from_eax.
1814
1815 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1816
1817 Fix entry values resolving in inlined frames.
1818 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1819 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1820 entries of FRAME.
1821
1822 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1823
1824 * configure.ac: Build with -DMS_WIN64 if building with Python
1825 enabled using GCC on amd64-windows.
1826 * configure: Regenerate.
1827
1828 2012-10-15 Tom Tromey <tromey@redhat.com>
1829
1830 PR python/14635:
1831 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1832 to Py_None.
1833
1834 2012-10-15 Tom Tromey <tromey@redhat.com>
1835
1836 PR python/14634:
1837 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1838
1839 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1840
1841 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1842 reset thread numbering back to 1.
1843
1844 2012-10-11 Doug Evans <dje@google.com>
1845
1846 PR breakpoints/14643.
1847 * linespec.c (struct ls_parser): New member keyword_ok.
1848 (linespec_lexer_lex_string): Add comment.
1849 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1850 for one.
1851 (parse_linespec): Set keyword_ok.
1852
1853 2012-10-10 Doug Evans <dje@google.com>
1854
1855 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1856 "0x" prefix on address in log message.
1857
1858 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1859 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1860 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1861 (lookup_dwo_file): Add const to dwo_name parameter.
1862 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1863
1864 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1865
1866 Fix crash during stepping on ppc32.
1867 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1868 SYM.
1869
1870 2012-10-03 Doug Evans <dje@google.com>
1871
1872 PR symtab/14601
1873 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1874
1875 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1876
1877 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1878 output and use uint32_t not long to ensure 4 byte size.
1879
1880 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1881
1882 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1883 unref'ed it.
1884
1885 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1886
1887 * target.c (simple_search_memory): Include access length in
1888 warning message.
1889
1890 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1891 Edjunior Machado <emachado@linux.vnet.ibm.com>
1892
1893 PR gdb/13989
1894 * solib.c (solib_find): Prevent GDB from loading native libraries when
1895 debugging a cross-target corefile.
1896
1897 2012-09-28 selven <pcthegreat@gmail.com>
1898
1899 Make definition match declaration.
1900
1901 * regcache.c (regcache_register_status): Change return type to
1902 enum register_status.
1903
1904 2012-09-28 Yao Qi <yao@codesourcery.com>
1905
1906 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1907 write_memory_with_notification instead of write_memory.
1908 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1909 instead of target_write_memory.
1910
1911 2012-09-28 Yao Qi <yao@codesourcery.com>
1912
1913 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1914 when the length of content is not an even number.
1915
1916 2012-09-27 Tom Tromey <tromey@redhat.com>
1917
1918 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1919 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1920
1921 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1922
1923 * sol-thread.c (sol_thread_fetch_registers)
1924 (sol_thread_store_registers): Delete commented out code.
1925
1926 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1927
1928 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1929 Move these functions to sparc-sol-thread.c.
1930 * sparc-sol-thread.c: New file.
1931 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1932 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1933 configurations.
1934 * configure: Regenerate.
1935
1936 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1937
1938 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1939 Remove commented-out code.
1940
1941 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1942
1943 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1944 Enable this code for sparc hosts only.
1945
1946 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1947
1948 * procfs.h (procfs_find_LDT_entry): Add declaration.
1949 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1950 function procfs_find_LDT_entry.
1951
1952 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1953
1954 * procfs.c (proc_get_LDT_entry): Make static.
1955
1956 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1957
1958 * procfs.c (proc_find_memory_regions): Fix declaration.
1959
1960 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1961
1962 * amd64-tdep.c (amd64_return_value): Revert previous change
1963 that used TYPE_LENGTH directly.
1964 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1965 (bfin_store_return_value): Likewise.
1966 * cris-tdep.c (cris_store_return_value): Likewise.
1967 (cris_extract_return_value): Likewise.
1968 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1969 * hppa-tdep.c (hppa64_return_value): Likewise.
1970 * lm32-tdep.c (lm32_store_return_value): Likewise.
1971 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1972 * spu-tdep.c (spu_value_from_register): Likewise.
1973 * vax-tdep.c (vax_return_value): Likewise.
1974
1975 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1976
1977 * gdbtypes.c (lookup_array_range_type): Expand parameters
1978 LOW_BOUND and HIGH_BOUND to LONGEST.
1979 (lookup_string_range_type): Likewise.
1980 * gdbtypes.h (lookup_array_range_type): Likewise.
1981 (lookup_string_range_type): Likewise.
1982 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1983 Expand HIGHBOUND to ssize_t.
1984 (value_string): Likewise.
1985 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1986 (value_string): Likewise.
1987
1988 2012-09-27 Yao Qi <yao@codesourcery.com>
1989
1990 PR breakpoints/13898
1991 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1992 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1993 per breakpoint type.
1994
1995 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1996
1997 * procfs.c: Add gdb_bfd header.
1998 * rs6000-nat.c: Likewise.
1999 * solib-pa64.c: Likewise.
2000 * spu-linux-nat.c: Likewise.
2001 * windows-nat.c: Likewise.
2002
2003 2012-09-26 Tom Tromey <tromey@redhat.com>
2004
2005 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2006
2007 2012-09-26 Tom Tromey <tromey@redhat.com>
2008
2009 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2010 (read_common_block): Handle child DIEs with
2011 DW_AT_data_member_location.
2012 (new_symbol_full): Add special case for common blocks.
2013
2014 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2015 Tom Tromey <tromey@redhat.com>
2016
2017 * dwarf2read.c (read_common_block): Rewrite.
2018 (new_symbol_full): Handle DW_TAG_common_block.
2019 * f-lang.c (head_common_list, find_common_for_function):
2020 Remove.
2021 * f-lang.h (struct common_entry, struct saved_f77_common,
2022 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2023 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2024 BLANK_COMMON_NAME_LOCAL): Remove.
2025 (struct common_block): New.
2026 * f-valprint.c (list_all_visible_commons): Remove.
2027 (info_common_command_for_block): New function.
2028 (info_common_command): Use it.
2029 * stack.c (iterate_over_block_locals): Special case for
2030 COMMON_BLOCK_DOMAIN.
2031 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2032 constant.
2033 (struct general_symbol_info) <value.common_block>: New field.
2034 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2035
2036 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2037 Tom Tromey <tromey@redhat.com>
2038
2039 * f-lang.c (allocate_saved_bf_node,
2040 allocate_saved_function_node, allocate_saved_f77_common_node,
2041 allocate_common_entry_node, tail_common_list, current_common,
2042 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2043 tmp_bf_ptr, add_common_block, add_common_entry,
2044 find_first_common_named, patch_common_entries,
2045 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2046 global_remote_debug, get_bf_for_fcn, saved_function_list,
2047 saved_function_list_end, clear_function_list, struct saved_fcn,
2048 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2049 SAVED_BF, SAVED_BF_PTR): Remove.
2050 * f-lang.h (tail_common_list, current_common,
2051 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2052 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2053 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2054 real_main_c_value): Remove.
2055 * f-valprint.c (there_is_a_visible_common_named): Remove.
2056
2057 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2058
2059 * breakpoint.c (update_global_location_list): Ignore previous
2060 duplicate status of a breakpoint when starting a new scan for
2061 duplicate breakpoints.
2062
2063 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2064 PR breakpoints/14419
2065 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2066 support LLVM compiler.
2067
2068 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2069
2070 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2071 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2072 (bfin_store_return_value): Likewise.
2073 * cris-tdep.c (cris_store_return_value): Likewise.
2074 (cris_extract_return_value): Likewise.
2075 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2076 * hppa-tdep.c (hppa64_return_value): Likewise.
2077 * lm32-tdep.c (lm32_store_return_value): Likewise.
2078 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2079 * spu-tdep.c (spu_value_from_register): Likewise.
2080 * vax-tdep.c (vax_return_value): Likewise.
2081
2082 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2083
2084 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2085 parameter LEN to ssize_t.
2086
2087 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2088
2089 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2090 variable LEN.
2091 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2092 directly.
2093 (alpha_store_return_value): Likewise.
2094 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2095 (amd64_push_arguments): Likewise.
2096 * ax-gdb.c (gen_trace_static_fields): Likewise.
2097 (gen_traced_pop): Likewise.
2098 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2099 * breakpoint.c (update_watchpoint): Likewise.
2100 * findcmd.c (parse_find_args): Use local variable for type
2101 instead of length.
2102 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2103 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2104 (h8300_store_return_value): Likewise.
2105 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2106 Use i386_darwin_arg_type_alignment directly.
2107 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2108 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2109 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2110 (m68hc11_extract_return_value): Likewise.
2111 * mep-tdep.c (mep_push_dummy_call): Likewise.
2112 * printcmd.c (float_type_from_length): Likewise.
2113 * s390-tdep.c (s390_value_from_register): Likewise.
2114 * stack.c (read_frame_arg): Likewise.
2115 * tracepoint.c (encode_actions_1): Likewise.
2116 * valops.c (value_fetch_lazy): Use local variable for type
2117 instead of length. Use TYPE_LENGTH directly.
2118 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2119
2120 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2121
2122 * symtab.c (skip_prologue_sal): Fix typo in comment.
2123
2124 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2125
2126 * linespec.c (create_sals_line_offset): Fix typo in comment.
2127
2128 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2129
2130 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2131 use plongest to print the array size.
2132
2133 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2134
2135 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2136 * p-valprint.c (pascal_type_print_base): Likewise.
2137
2138 2012-09-22 Yao Qi <yao@codesourcery.com>
2139
2140 * remote.c (remote_get_trace_status): Remove setting default
2141 values of fields of 'ts'.
2142
2143 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2144
2145 Fix internal error on canonicalization of clang types.
2146 * cp-name-parser.y (operator): New comment at make_operator call for
2147 new, delete, new[] and delete[].
2148 (exp): Use "sizeof ". Add new comment at make_operator call.
2149
2150 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2151
2152 Fix disassemble without parameters in tailcall frame.
2153 * cli/cli-cmds.c (disassemble_current_function): Use
2154 get_frame_address_in_block.
2155
2156 2012-09-21 Tom Tromey <tromey@redhat.com>
2157
2158 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2159 TYPE_CODE_UNION>: Unify, removing a goto.
2160
2161 2012-09-21 Tom Tromey <tromey@redhat.com>
2162
2163 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2164
2165 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2166
2167 * findvar.c (read_frame_register_value): Mark the result value as
2168 optimized out if any of the input registers have been optimized out.
2169
2170 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2171
2172 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2173
2174 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2175
2176 * eval.c (evaluate_subexp_standard): Eliminate single-use
2177 variable LOWER.
2178
2179 2012-09-21 Yao Qi <yao@codesourcery.com>
2180
2181 * mi/mi-interp.c: Declare mi_record_changed.
2182 (mi_interpreter_init): Call observer_attach_record_changed.
2183 (mi_record_changed): New.
2184 * record.c (record_open): Call observer_notify_record_changed.
2185 (cmd_record_stop): Call observer_notify_record_changed.
2186 * NEWS: Mention it.
2187
2188 2012-09-20 Tom Tromey <tromey@redhat.com>
2189
2190 * NEWS: Update.
2191 * python/python.c (finalize_python): New function.
2192 (_initialize_python): Make a final cleanup.
2193
2194 2012-09-19 Doug Evans <dje@google.com>
2195
2196 * buildsym.h (param_symbols): Delete, unused.
2197 (context_stack): Delete member "params", unused.
2198 * buildsym.c (push_context): Update.
2199 * dwarf2read.c (read_func_scope): Update.
2200
2201 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2202
2203 * sh-tdep.c (sh_register_convert_to_virtual)
2204 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2205 all callers. Just do a memcpy if not the little-endian case.
2206
2207 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2208 set_gdbarch_double_format and set_gdbarch_long_double_format.
2209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2210 set_gdbarch_double_format.
2211 * sh-tdep.c (sh_gdbarch_init): Likewise.
2212
2213 * NEWS: Document the removal of SH's 'regs' command.
2214 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2215 command.
2216
2217 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2218
2219 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2220 `jump'.
2221
2222 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2223
2224 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2225 language when iterating over symbols.
2226
2227 2012-09-18 Yao Qi <yao@codesourcery.com>
2228
2229 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2230 (mi_interpreter_init): Call observer_attach_tsv_created and
2231 observer_attach_tsv_deleted.
2232 (mi_tsv_created, mi_tsv_deleted): New.
2233 * tracepoint.c (delete_trace_state_variable): Call
2234 observer_notify_tsv_deleted.
2235 (trace_variable_command): Call observer_notify_tsv_created.
2236 (delete_trace_variable_command): Call
2237 observer_notify_tsv_deleted.
2238 (create_tsv_from_upload): Call observer_notify_tsv_created.
2239 * NEWS: Mention it.
2240
2241 2012-09-18 Yao Qi <yao@codesourcery.com>
2242
2243 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2244 if traceframe changed.
2245 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2246 "trace-find".
2247 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2248 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2249 'traceframe_changed'.
2250 (mi_traceframe_changed): New.
2251 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2252 New field.
2253 * NEWS: Mention the new MI notification.
2254
2255 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2256
2257 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2258
2259 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2260
2261 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2262 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2263 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2264 Extend code also for PaX support. Convert all gdb_assert to warning
2265 calls.
2266
2267 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2268
2269 Implement auto-load user conveniences suggested by Doug Evans.
2270 * auto-load.c: Include top.h.
2271 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2272 (_initialize_auto_load): New variable scripts_directory_help. Mention
2273 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2274 scripts-directory. Document in online help one can use also files for
2275 set auto-load safe-path.
2276 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2277 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2278
2279 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2280
2281 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2282 of LEN.
2283
2284 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2285
2286 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2287 ELTLEN and use TYPE_LENGTH directly.
2288 (m2_val_print): Likewise.
2289 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2290 variable LEN and use TYPE_LENGTH directly.
2291 (m68k_svr4_store_return_value): Likewise.
2292 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2293 ARGLEN and use TYPE_LENGTH directly.
2294 (mips_o64_push_dummy_call): Likewise.
2295 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2296 variable LENGTH and use TYPE_LENGTH directly.
2297 (s390_function_arg_float): Likewise.
2298 (s390_function_arg_integer): Likewise.
2299 (s390_push_dummy_call): Likewise.
2300 (s390_return_value_convention): Likewise.
2301 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2302 TYPE_LENGTH directly.
2303
2304 2012-09-17 Yao Qi <yao@codesourcery.com>
2305
2306 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2307 Update comment to add_setshow_integer_cmd.
2308 * cli/cli-setshow.c (do_set_command): Handle case
2309 'var_zuinteger_unlimited'.
2310 (do_show_command): Likewise.
2311 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2312 for command 'remotetimeout'.
2313 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2314 to var_integer.
2315 * source.c (_initialize_source): Call
2316 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2317
2318 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2319
2320 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2321 variable LEN.
2322
2323 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2324
2325 PR 14119
2326 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2327 (frame_pop): Drop also TAILCALL_FRAME frames.
2328 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2329
2330 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2331 Pedro Alves <palves@redhat.com>
2332
2333 PR 14548
2334 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2335 function start if we are already at function start. Both for
2336 reverse-next and for reverse-step into function without line number
2337 info.
2338
2339 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 Code cleanup - rename 'inline' depth to 'artificial' depth.
2342 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2343 frame_id_artificial_p, extend the comment.
2344 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2345 * frame.c (fprint_frame_id): Rename at a user, change debug output
2346 text to "artificial=".
2347 (skip_inlined_frames): Rename to ...
2348 (skip_artificial_frames): ... here. Extend the comment.
2349 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2350 (frame_id_inlined_p): Rename to ...
2351 (frame_id_artificial_p): ... here. Rename at a user.
2352 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2353 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2354 at a user.
2355 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2356 Extend the comment.
2357 (frame_id_inlined_p): Rename to ...
2358 (frame_id_artificial_p): ... here.
2359 * inline-frame.c (inline_frame_this_id): Rename at a user.
2360
2361 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2362
2363 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2364 vector variables using vector_size syntax rather than array
2365 syntax.
2366
2367 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2368
2369 * valarith.c (value_concat): Replace unsafe ALLOCA with
2370 XMALLOC/XFREE.
2371
2372 2012-09-14 Pedro Alves <palves@redhat.com>
2373
2374 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2375
2376 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2377
2378 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2379 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2380 data-directory as appropriate.
2381
2382 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2383
2384 * printcmd.c (ui_printf): Eliminate single-use variable
2385 PARAM_LEN.
2386
2387 2012-09-14 Yao Qi <yao@codesourcery.com>
2388 Pedro Alves <palves@redhat.com>
2389
2390 * valops.c (value_assign): Move observer_notify_target_changed
2391 below to replace reinit_frame_cache.
2392
2393 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2394
2395 Refactor Python "gdb" module into a proper Python package, by
2396 introducing a new "_gdb" module for code implemented in C, and
2397 using reload/__import__ instead of exec.
2398 * python/lib/gdb/__init__.py: Import * from _gdb.
2399 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2400 prompt_hook, sys.argv): Moved from finish_python_initialization.
2401 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2402 (packages, auto_load_packages): New list and function replacing
2403 module_dict and auto-loading code, using __file__ instead of
2404 gdb.PYTHONDIR and reload/__import__ instead of exec.
2405 (GdbSetPythonDirectory): Replacing function of the same name
2406 from finish_python_initialization, using reload/__import__ instead
2407 of exec, as well as call auto_load_packages.
2408 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2409 gdb_python_module and not gdb_module.
2410 * python/python-internal.h (gdb_python_module): Declare.
2411 * python/python.c (gdb_python_module): New global.
2412 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2413 (_initialize_python): Rename gdb module to _gdb.
2414 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2415 (finish_python_initialization): Move Python code to
2416 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2417 __main__.
2418
2419 2012-09-13 Pedro Alves <palves@redhat.com>
2420
2421 * Makefile.in (COMMON_OBS): Add registry.o.
2422 * registry.c: New file.
2423 * registry.h (struct registry_container): Declare.
2424 (registry_data_callback): New typedef.
2425 (struct registry_data, struct registry_data_registration, struct
2426 registry_data_registry): New type.
2427 (register_data_with_cleanup, registry_alloc_data)
2428 (registry_callback_adaptor, registry_clear_data)
2429 (registry_container_free_data, registry_set_data, registry_data):
2430 Declare.
2431 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2432 the new common structures and functions.
2433 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2434 callback typedefs.
2435
2436 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2437
2438 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2439 there is an error inserting hardware breakpoints and use the
2440 error message from the target.
2441
2442 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2443 Catch this exception and print the error message contained within.
2444 Do not print the default hardware error breakpoint message in this
2445 case.
2446
2447 2012-09-12 Doug Evans <dje@google.com>
2448
2449 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2450 cu == NULL.
2451
2452 2012-09-11 Doug Evans <dje@google.com>
2453
2454 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2455 .gdb_index symbol attributes if there are none.
2456
2457 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2458
2459 * symtab.h (struct minimal_symbol) [has_size]: New field.
2460 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2461 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2462 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2463 minimal symbols if the symbol's size is actually known.
2464 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2465 of msymbol's size field. Add comment.
2466 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2467 SET_MSYMBOL_SIZE to set the minimal symbol size.
2468
2469 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2470
2471 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2472 minimal_symbol struct object, rather than setting some of its
2473 fields one by one.
2474
2475 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2476
2477 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2478 passed_a_ptr flag when displaying typedef types.
2479
2480 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2481
2482 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2483 the optimized_out flag is preserved.
2484
2485 2012-09-10 Anthony Green <green@moxielogic.com>
2486
2487 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2488 prologue changes in GCC.
2489
2490 2012-09-10 Keith Seitz <keiths@redhat.com>
2491
2492 PR gdb/13483
2493 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2494 (BOOL_CONVERSION_BADNESS): ... this.
2495 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2496 (rank_one_type): Allow all boolean conversions
2497 permitted by the standard.
2498
2499 2012-09-06 Tom Tromey <tromey@redhat.com>
2500
2501 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2502 Don't decref py_objfile.
2503
2504 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2505
2506 Do not enable -lmcheck by default when Python is enabled with
2507 threading support.
2508 * configure.ac: (python_has_threads) New variable, by testing
2509 if WITH_THREAD is defined in Python.h.
2510 Move --enable-lmcheck after --with-python.
2511 Do not enable -lmcheck by default if python_has_threads=yes.
2512 Warn if --enable-lmcheck and python_has_threads=yes.
2513 * configure: Regenerate.
2514
2515 2012-08-31 Yao Qi <yao@codesourcery.com>
2516
2517 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2518 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2519 Update some commands.
2520 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2521 * mi/mi-main.c (mi_cmd_execute): Set
2522 '*parse->cmd->suppress_notification' to 1.
2523
2524 2012-08-31 Yao Qi <yao@codesourcery.com>
2525
2526 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2527
2528 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2529
2530 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2531
2532 2012-08-29 Doug Evans <dje@google.com>
2533
2534 * main.c (print_gdb_help): Remove reference to
2535 --use-deprecated-index-sections.
2536
2537 2012-08-28 Yao Qi <yao@codesourcery.com>
2538
2539 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2540 (init_cmds): Call add_setshow_uinteger_cmd for command
2541 'max-user-call-depth'.
2542 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2543 declaration of 'max_user_call_depth'.
2544 * frame.c (backtrace_limit): Add 'unsigned'.
2545 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2546 'limit'.
2547 * remote.c (remoteaddresssize): Add 'unsigned'.
2548 (remote_address_masked): Change local var 'address_size' to
2549 'unsigned'.
2550 (_initialize_remote): Call add_setshow_uinteger_cmd for
2551 'remoteaddresssize'.
2552 * top.c (history_size): Add 'unsigned'.
2553 (show_commands): Change local variables to 'unsigned'.
2554 (set_history_size_command): Don't check history_size is negative.
2555 Adjust the condition to call unstifle_history and set history_size
2556 to UNIT_MAX.
2557
2558 2012-08-28 Pedro Alves <palves@redhat.com>
2559
2560 PR gdb/14428
2561
2562 * infcmd.c (default_print_one_register_info): New, factored out
2563 from default_print_registers_info.
2564 (default_print_registers_info): Use it. Mark value unavailable if
2565 necessary.
2566 (registers_info): Print user registers with
2567 default_print_one_register_info.
2568
2569 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2570
2571 PR tui/14486
2572 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2573 is not NULL before referencing it.
2574
2575 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2576
2577 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2578 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2579 original PC for it.
2580
2581 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2582 Jan Kratochvil <jan.kratochvil@redhat.com>
2583
2584 * auto-load.c (auto_load_objfile_script): Rename to ...
2585 (auto_load_objfile_script_1): ... here, change variable realname to
2586 parameter realname, document it, add return value, add variable retval.
2587 (auto_load_objfile_script): New function.
2588
2589 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2590
2591 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2592 followed by a whitespace.
2593
2594 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2595
2596 PR gdb/14494.
2597 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2598 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2599 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2600 here.
2601
2602 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2603
2604 * memattr.c (create_mem_region): Fix memory region overlapping
2605 checking.
2606
2607 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2608
2609 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2610 with xmalloc/cleanup.
2611 * mt-tdep.c (mt_push_dummy_call): Likewise.
2612 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2613 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2614
2615 2012-08-24 Yao Qi <yao@codesourcery.com>
2616
2617 * jv-exp.y (push_expression_name): Add "." at the end of error
2618 message.
2619
2620 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2621
2622 Document how to return from "python-interactive" to GDB.
2623 * python/python.c (_initialize_python): Update documentation.
2624
2625 2012-08-23 Pedro Alves <palves@redhat.com>
2626
2627 * infrun.c (_initialize_infrun) <handle command help text>:
2628 Mention that multiple signals are supported.
2629
2630 2012-08-23 Pedro Alves <palves@redhat.com>
2631
2632 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2633 string.
2634
2635 2012-08-23 Yao Qi <yao@codesourcery.com>
2636
2637 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2638 (tfind_1): Don't call registers_changed, set_traceframe_num,
2639 and clear_traceframe_info.
2640 Call set_current_traceframe.
2641 (set_current_traceframe): call set_traceframe_num.
2642
2643 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2644
2645 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2646 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2647
2648 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2649
2650 Enable readline in Python in a GDB-specific way and block the
2651 standard Python readline module to prevent conflicts with GDB.
2652 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2653 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2654 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2655 * python/py-gdb-readline.c: New file.
2656 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2657 prototype.
2658 * python/python.c (_initialize_python): Call
2659 gdbpy_initialize_gdb_readline.
2660
2661 2012-08-22 Keith Seitz <keiths@redhat.com>
2662
2663 * defs.h: Include build-gnulib/config.h
2664
2665 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2666
2667 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2668 and blx pc.
2669
2670 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2671
2672 Add a new "python-interactive" command that starts a standard
2673 Python interactive prompt with "pi" as alias, and add "py" as
2674 an alias to "python".
2675 * NEWS: Mention the new commands.
2676 * python/python.c (eval_python_command): New function.
2677 (python_interactive_command): For "python-interactive" with
2678 arguments, call eval_python_command. For "python-interactive"
2679 without arguments, call PyRun_InteractiveLoop.
2680 (_initialize_python): Add "python-interactive" command with
2681 "pi" as alias, and add "py" as an alias to "python".
2682
2683 2012-08-22 Tom Tromey <tromey@redhat.com>
2684
2685 * defs.h (quit_flag): Don't declare.
2686 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2687 (QUIT): Use new functions.
2688 * event-top.c (command_handler): Use clear_quit_flag.
2689 (handle_sigint): Use set_quit_flag.
2690 (async_request_quit): Use check_quit_flag. Don't check
2691 immediate_quit.
2692 * exceptions.c (throw_exception): Use clear_quit_flag.
2693 * main.c (captured_main): Use clear_quit_flag.
2694 * python/python.c (clear_quit_flag, set_quit_flag)
2695 (check_quit_flag): New functions.
2696 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2697 clear_quit_flag.
2698 * remote.c (remote_wait_as): Use check_quit_flag,
2699 clear_quit_flag.
2700 (remote_start_remote): Call QUIT.
2701 * symfile.c (load_progress): Use check_quit_flag.
2702 * top.c (command_loop): Use clear_quit_flag.
2703 (command_line_input): Call QUIT.
2704 * utils.c (quit_flag): Conditionally define.
2705 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2706 functions.
2707 (prompt_for_continue): Call QUIT. Use quit, not
2708 async_request_quit.
2709 * remote-mips.c (mips_expect_timeout): Call QUIT.
2710 * monitor.c (monitor_expect): Call QUIT.
2711
2712 2012-08-22 Tom Tromey <tromey@redhat.com>
2713
2714 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2715 (async_init_signals): Update.
2716 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2717 (SIGWINCH_HANDLER_BODY): Remove.
2718
2719 2012-08-22 Tom Tromey <tromey@redhat.com>
2720
2721 * jit.c (jit_object_close_impl): Don't malloc the objfile
2722 name.
2723 * objfiles.c (allocate_objfile): Don't malloc the objfile
2724 name.
2725 (free_objfile): Don't free the objfile name.
2726 * objfiles.h (struct objfile) <name>: Update comment.
2727 * symfile.c (reread_symbols): Fix reference counting. Don't
2728 malloc objfile name.
2729
2730 2012-08-22 Tom Tromey <tromey@redhat.com>
2731
2732 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2733 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2734 (symfile_bfd_open): Likewise.
2735 (generic_load): Likewise.
2736 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2737 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2738 gdb_bfd_open.
2739 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2740 Use gdb_bfd_open.
2741 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2742 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2743 (pmon_load_fast): Likewise.
2744 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2745 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2746 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2747 (macho_check_dsym): Likewise.
2748 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2749 (m32r_upload_command): Likewise.
2750 * gdb_bfd.h (gdb_bfd_cache): Declare.
2751 * gdb_bfd.c (struct gdb_bfd_data): New.
2752 (gdb_bfd_cache): New global.
2753 (struct gdb_bfd_cache_search): New.
2754 (hash_bfd): New function.
2755 (eq_bfd): Likewise.
2756 (gdb_bfd_open): Likewise.
2757 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2758 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2759 gdb_bfd_data.
2760 * exec.c (exec_file_attach): Use gdb_bfd_open.
2761 * dsrec.c (load_srec): Use gdb_bfd_open.
2762
2763 2012-08-22 Tom Tromey <tromey@redhat.com>
2764
2765 * dwarf2read.c (macro_start_file): Update.
2766 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2767 (free_objfile_per_bfd_storage): Destroy macro_cache.
2768 (allocate_objfile, free_objfile): Update.
2769 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2770 New field.
2771 (struct objfile) <macro_cache>: Remove.
2772 * symfile.c (reread_symbols): Update.
2773 * symmisc.c (print_symbol_bcache_statistics): Update.
2774 (print_objfile_statistics): Update.
2775
2776 2012-08-22 Tom Tromey <tromey@redhat.com>
2777
2778 * elfread.c (elf_symtab_read): Update.
2779 * objfiles.c (objfiles_bfd_data): New global.
2780 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2781 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2782 (allocate_objfile, free_objfile): Update.
2783 (_initialize_objfiles): Initialize objfiles_bfd_data.
2784 * objfiles.h (struct objfile_per_bfd_storage): New.
2785 (struct objfile) <per_bfd>: New field.
2786 <filename_cache>: Remove.
2787 (set_objfile_per_bfd): Declare.
2788 * symfile.c (reread_symbols): Update. Call
2789 set_objfile_per_bfd.
2790 (allocate_symtab): Update.
2791 * symmisc.c (print_symbol_bcache_statistics): Update.
2792 (print_objfile_statistics): Print the size of the BFD obstack.
2793
2794 2012-08-22 Tom Tromey <tromey@redhat.com>
2795
2796 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2797 * gdb_bfd.c: Use DEFINE_REGISTRY.
2798 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2799 (gdb_bfd_ref): Call bfd_alloc_data.
2800 (gdb_bfd_unref): Call bfd_free_data.
2801
2802 2012-08-22 Tom Tromey <tromey@redhat.com>
2803
2804 * registry.h (struct registry_fields): New.
2805 (REGISTRY_FIELDS): Redefine.
2806 (REGISTRY_ACCESS_FIELD): New macro.
2807 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2808 functions.
2809
2810 2012-08-22 Tom Tromey <tromey@redhat.com>
2811
2812 * auto-load.c (_initialize_auto_load): Update.
2813 * solib-svr4.c (_initialize_svr4_solib): Update
2814 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2815 * solib-darwin.c (_initialize_darwin_solib): Update.
2816 * registry.h: New file.
2817 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2818 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2819 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2820 (register_program_space_data_with_cleanup)
2821 (register_program_space_data, program_space_alloc_data)
2822 (clear_program_space_data, set_program_space_data)
2823 (program_space_data): Don't declare.
2824 * progspace.c: Use DEFINE_REGISTRY.
2825 (struct program_space_data, struct
2826 program_space_data_registration, struct
2827 program_space_data_registry, program_space_data_registry)
2828 (register_program_space_data_with_cleanup)
2829 (register_program_space_data, program_space_alloc_data)
2830 (program_space_free_data, clear_program_space_data)
2831 (set_program_space_data, program_space_data): Remove.
2832 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2833 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2834 (register_objfile_data_with_cleanup, register_objfile_data)
2835 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2836 declare.
2837 * objfiles.c: Use DEFINE_REGISTRY.
2838 (struct objfile_data, struct objfile_data_registration, struct
2839 objfile_data_registry, objfile_data_registry)
2840 (register_objfile_data_with_cleanup, register_objfile_data)
2841 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2842 (set_objfile_data, objfile_data): Remove.
2843 (_initialize_objfiles): Update.
2844 * jit.c (_initialize_jit): Update.
2845 * inflow.c (_initialize_inflow): Update.
2846 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2847 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2848 (register_inferior_data_with_cleanup, register_inferior_data)
2849 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2850 declare.
2851 * inferior.c: Use DEFINE_REGISTRY.
2852 (struct inferior_data, struct inferior_data_registration, struct
2853 inferior_data_registry, inferior_data_registry)
2854 (register_inferior_data_with_cleanup, register_inferior_data)
2855 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2856 (set_inferior_data, inferior_data): Remove.
2857 * auxv.c (_initialize_auxv): Update.
2858 * ada-lang.c (_initialize_ada_language): Update.
2859 * breakpoint.c (_initialize_breakpoint): Update.
2860 * i386-nat.c (i386_use_watchpoints): Update.
2861
2862 2012-08-22 Tom Tromey <tromey@redhat.com>
2863
2864 * exec.c (exec_close, exec_file_attach): Update.
2865 (add_to_section_table): Initialize 'key' field.
2866 (add_target_sections, remove_target_sections): Add 'key' argument.
2867 * exec.h (add_target_sections, remove_target_sections): Add
2868 'key' argument.
2869 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2870 (reload_shared_libraries_1): Update.
2871 * target.h (struct target_section) <key>: New field.
2872
2873 2012-08-22 Tom Tromey <tromey@redhat.com>
2874
2875 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2876
2877 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2878
2879 * symfile.c (allocate_symtab): Use host_address_to_string
2880 function instead of cast of pointer to long which is not
2881 compatible with x86_64-w64-mingw32 build.
2882
2883 2012-08-19 Andrew Pinski <apinski@cavium.com>
2884
2885 * mips-tdep.c (is_octeon): New function.
2886 (is_octeon_bbit_op): New function.
2887 (mips32_next_pc): Handle Octeon's bbit instructions.
2888 (mips32_instruction_has_delay_slot): Likewise.
2889
2890 2012-08-19 Andrew Pinski <apinski@cavium.com>
2891
2892 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2893 before the function.
2894
2895 2012-08-19 Andrew Pinski <apinski@cavium.com>
2896
2897 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2898
2899 2012-08-19 Keith Seitz <keiths@redhat.com>
2900
2901 PR c++/14365
2902 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2903 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2904
2905 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2906
2907 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2908 The typo broke "make TAGS".
2909
2910 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2911
2912 GDB 7.5 released.
2913
2914 2012-08-17 Keith Seitz <keiths@redhat.com>
2915
2916 PR c++/13356
2917 * gdbtypes.c (strict_type_checking): New variable.
2918 (show_strict_type_checking): New function.
2919 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2920 if strict type checking is disabled.
2921 (_initialize_gdbtypes): Add "check type" subcommand.
2922 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2923
2924 2012-08-17 Keith Seitz <keiths@redhat.com>
2925
2926 * language.h (type_mode): Remove.
2927 (type_check): Remove.
2928 (struct language_defn): Remove la_type_check.
2929 (STRICT_TYPE): Remove unused macro.
2930 (type_error): Remove.
2931 * language.c (set_type_range_case): Renamed to ...
2932 (set_range_case): ... this. Update all callers.
2933 Remove type_mode/type_check.
2934 (type_mode): Remove.
2935 (type_check): Remove.
2936 (show_type_command): Remove.
2937 (set_type_command): Remove.
2938 (language_info): Remove type checking output.
2939 (type_error): Remove unused function.
2940 (range_error): Update comment.
2941 (unknown_language_defn): Remove la_type_check.
2942 (auto_language_defn): Likewise.
2943 (local_language_defn): Likewise.
2944 (_initialize_language): Remove "check type" subcommand.
2945 * ada-lang.c (ada_language_defn): Remove la_type_check.
2946 * c-lang.c (c_language_defn): Likewise.
2947 (cplus_language_defn): Likewise.
2948 (asm_language_defn): Likewise.
2949 (minimal_language_defn): Likewise.
2950 * d-lang.c (d_language_defn): Likewise.
2951 * f-lang.c (f_language_defn): Likewise.
2952 * go-lang.c (go_language_defn): Likewise.
2953 * jv-lang.c (java_language_defn): Likewise.
2954 * m2-lang.c (m2_language_defn): Likewise.
2955 * objc-lang.c (objc_language_defn): Likewise.
2956 * opencl-lang.c (opencl_language_defn): Likewise.
2957 * p-lang.c (pascal_language_defn): Likewise.
2958
2959 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2960
2961 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2962
2963 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2964
2965 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2966 New function.
2967 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2968 using the regache. Use ia64_hpux_get_register_from_save_state_t
2969 to access the bsp and bspstore registers if not.
2970
2971 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2972
2973 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2974 * breakpoint.c (detach_breakpoints): Change pid parameter into
2975 a ptid. Adjust code accordingly.
2976 * infrun.c (handle_inferior_event): Delete variable child_pid.
2977 Update call to detach_breakpoints to pass the child ptid for
2978 fork events.
2979 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2980 assert that inferior_ptid's lwp is zero.
2981 (linux_handle_extended_wait): Update call to detach_breakpoints.
2982 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2983 detach_breakpoints.
2984
2985 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2986
2987 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2988 parent, only call detach_breakpoints if tts.tts_event ==
2989 TTEVT_VFORK.
2990
2991 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2992
2993 * dwarf2-frame.c (dwarf2_frame_cache): Use
2994 get_frame_address_in_block instead of get_frame_pc as
2995 the bound for executing the frame's FDE.
2996
2997 2012-08-16 Yao Qi <yao@codesourcery.com>
2998
2999 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3000 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3001 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3002 (c_type_print_varspec_suffix): Likewise.
3003 * eval.c (evaluate_subexp_standard): Likewise.
3004 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3005 (f_type_print_varspec_suffix): Likewise.
3006 * gdbtypes.c (is_scalar_type): Likewise.
3007 (recursive_dump_type): Likewise.
3008 * infcall.c (value_arg_coerce): Likewise.
3009 * m2-valprint.c (m2_val_print): Likewise.
3010 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3011 (pascal_type_print_varspec_suffix): Likewise.
3012 (pascal_type_print_base): Likewise.
3013 * p-valprint.c (pascal_val_print): Likewise.
3014 (pascal_val_print): Likewise.
3015 * valops.c (value_slice): Likewise.
3016 * valprint.c (scalar_type_p): Likewise.
3017 * valarith.c (value_bitstring_subscript): Remove.
3018 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3019 Remove comment on TYPE_CODE_BITSTRING.
3020
3021 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3022 TYPE_CODE_BITSTRING.
3023
3024 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3025 slot 0.
3026
3027 2012-08-16 Yao Qi <yao@codesourcery.com>
3028
3029 * tracepoint.c (trace_find_none_command): Remove.
3030 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3031
3032 2012-08-16 Yao Qi <yao@codesourcery.com>
3033
3034 * remote.c (handle_notification): Remove parameter 'length'.
3035 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3036
3037 2012-08-15 Keith Seitz <keiths@redhat.com>
3038
3039 * gdbtypes.c (opaque_type_resolution): Make static.
3040 Add missing comment.
3041 (overload_debug): Add missing comment.
3042 (show_opaque_type_resolution): Likewise.
3043 (show_overload_debug): Likewise.
3044 (print_bit_vector): Remove unnecessary forward declaration.
3045 (print_arg_types): Likewise.
3046 (dump_fn_fieldlists): Likewise.
3047 (print_cplus_stuff): Likewise.
3048
3049 2012-08-15 Tom Tromey <tromey@redhat.com>
3050
3051 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3052 (gdb_bfd_ref): Initialize new field.
3053 (gdb_bfd_unref): Unref the archive BFD.
3054 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3055 parent archive.
3056
3057 2012-08-15 Tom Tromey <tromey@redhat.com>
3058
3059 PR python/14387:
3060 * python/py-bpevent.c (create_breakpoint_event_object): Update
3061 comment.
3062 * python/py-event.c (evpy_add_attribute): Update comment.
3063 * python/py-exitedevent.c (create_exited_event_object): Fix
3064 reference counting and error handling.
3065 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3066 Fix reference counting.
3067 * python/py-signalevent.c (create_signal_event_object): Fix
3068 reference counting and error handling.
3069 * python/py-stopevent.c (emit_stop_event): Fix reference
3070 counting.
3071 * python/py-threadevent.c (get_event_thread): Return a
3072 borrowed reference.
3073 * python/py-type.c (convert_field): Fix reference counting.
3074
3075 2012-08-15 Tom Tromey <tromey@redhat.com>
3076
3077 * dwarf2read.c (dwarf_decode_macro_bytes)
3078 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3079 as hash key.
3080
3081 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3082
3083 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3084 stepi, nexti, finish, next, step, jump, and continue commands.
3085 * infrun.c (_initialize_infrun): Update help text for the handle
3086 command.
3087
3088 2012-08-14 Doug Evans <dje@google.com>
3089
3090 * gdbtypes.c (struct extra): Delete, unused.
3091
3092 * gdbtypes.c: Whitespace cleanup.
3093 (address_space_name_to_int): Remove "extern" from definition.
3094 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3095
3096 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3097 TYPE_POINTER_TYPE (type).
3098
3099 2012-08-14 Gary Benson <gbenson@redhat.com>
3100
3101 * solib-svr4.c (svr4_free_library_list): Use free_so.
3102
3103 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3104
3105 * .gitignore: Add go-exp.c.
3106
3107 2012-08-13 Doug Evans <dje@google.com>
3108
3109 * value.c (show_convenience): Tweak comment.
3110 (_initialize_values): Mention convenience functions in the help text
3111 for "show convenience".
3112
3113 2012-08-13 Yao Qi <yao@codesourcery.com>
3114
3115 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3116 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3117 TERNOP_SLICE_COUNT.
3118 * eval.c (evaluate_subexp_standard): Likewise.
3119 * expprint.c (print_subexp_standard): Likewise.
3120 (dump_subexp_body_standard): Likewise.
3121 * parse.c (operator_length_standard): Likewise.
3122
3123 2012-08-13 Yao Qi <yao@codesourcery.com>
3124
3125 * std-operator.def: Remove OP_BITSTRING.
3126 * breakpoint.c (watchpoint_exp_is_const): Update.
3127 * eval.c (evaluate_subexp_standard): Remove handling to
3128 OP_BITSTRING.
3129 * expprint.c (print_subexp_standard): Likewise.
3130 (dump_subexp_body_standard): Likewise.
3131 * parse.c (operator_length_standard): Likewise.
3132 * valops.c (value_bitstring): Remove.
3133 * value.h: Remove the declaration of 'value_bitstring'.
3134
3135 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3136
3137 * linespec.c (find_methods): Remove unused variables `i1' and
3138 `name_len'.
3139 (decode_line_full): Likewise for `arg_start'.
3140
3141 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3142
3143 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3144 (zlib_decompress_section): Likewise for `section_data'.
3145 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3146
3147 2012-08-10 Doug Evans <dje@google.com>
3148
3149 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3150 * NEWS: Document them.
3151 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3152 function/strfns.py.
3153 * python/py-type.c (typy_array_1): New function.
3154 (typy_array): Call it.
3155 (typy_vector): New function.
3156 (type_object_methods): Add "vector".
3157 * python/lib/gdb/function/__init__.py: New file.
3158 * python/lib/gdb/function/strfns.py: New file.
3159
3160 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3161
3162 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3163 for TYPE_FIELD_BITPOS.
3164 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3165
3166 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3167
3168 PR cli/10436:
3169 * common/vec.h (VEC_merge): Define.
3170 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3171 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3172 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3173 * completer.c: Include gdb_signals.h.
3174 (signal_completer): Define.
3175 * completer.h (signal_completer): Add prototype.
3176 * infcmd.c (_initialize_infcmd): Assign the command
3177 completer for "signal" to handle_completer.
3178 * infrun.c: Include completer.h.
3179 (handle_completer): Define.
3180 (_initialize_infrun): Declare a new local variable c. Store the
3181 result of add_com("handle") to it. Assign the command
3182 completer for "handle" to handle_completer.
3183
3184 2012-08-09 Yao Qi <yao@codesourcery.com>
3185
3186 * cli/cli-decode.c (set_cmd_prefix): New.
3187 (lookup_cmd_for_prefixlist): New.
3188 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3189 of each cmd_list_element in *prefixlist.
3190 (add_setshow_cmd_full): set_cmd_prefix.
3191 (add_alias_cmd): Likewise.
3192 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3193 Declare 'auto_boolean_enums'.
3194 * cli/cli-setshow.c: Include "observer.h".
3195 (notify_command_param_changed_p): New.
3196 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3197 Remove 'static'.
3198 (do_setshow_command): Split it to ...
3199 (do_set_command, do_show_command): ... them. New.
3200 (do_set_command): Call observer_notify_command_param_changed if
3201 notify_command_param_changed_p returns true.
3202 (cmd_show_list): Caller update.
3203 * auto-load.c (set_auto_load_cmd): Likewise.
3204 * remote.c (show_remote_cmd): Likewise.
3205 * cli/cli-setshow.h: Update declarations.
3206 * top.c (execute_command): Call do_set_command and do_show_command.
3207
3208 * NEWS: Mention new MI notification.
3209 * mi/mi-interp.c: Declare mi_command_param_changed.
3210 (mi_interpreter_init): Attach mi_command_param_changed to
3211 observer command_param_changed.
3212 (mi_command_param_changed): New.
3213 Remove mi_suppress_breakpoint_notifications.
3214 Define global variable mi_suppress_notification.
3215 (mi_breakpoint_created): Update.
3216 (mi_breakpoint_deleted): Likewise.
3217 (mi_breakpoint_modified): Likewise.
3218 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3219 'gdb-set' and set mi_suppress_notification.
3220 * mi/mi-main.h: (mi_suppress_notification): New struct.
3221
3222 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3223 Jan Kratochvil <jan.kratochvil@redhat.com>
3224
3225 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3226
3227 2012-08-09 Yao Qi <yao@codesourcery.com>
3228
3229 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3230 (skiplist): Move it to skip.c.
3231 (init_cmd_lists): Remove code setting enablebreaklist and
3232 skiplist to NULL.
3233 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3234 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3235 skiplist.
3236 * gdbcmd.h: Likewise.
3237 * skip.c (_initialize_step_skip): Move 'skiplist' from
3238 cli/cli-cmds.c.
3239
3240 2012-08-09 Yao Qi <yao@codesourcery.com>
3241
3242 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3243 * gnu-nat.c, symfile.c: Likewise.
3244
3245 2012-08-08 Aaron Gamble <agamble@google.com>
3246
3247 * utils.c (prompt_for_continue_wait_time): New static global.
3248 (make_command_stats_cleanup): Initialize it.
3249 (report_command_stats): Subtract time waiting for user.
3250 (prompt_for_continue): Track time waiting for user.
3251 (defaulted_query): Track time waiting for user.
3252
3253 2012-08-08 Doug Evans <dje@google.com>
3254
3255 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3256 UNOP_MEMVAL_TYPE.
3257 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3258 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3259 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3260 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3261 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3262 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3263 elt.
3264 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3265 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3266 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3267 (dump_prefix_expression): Handle OP_TYPE.
3268
3269 2012-08-08 Keith Seitz <keiths@redhat.com>
3270
3271 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3272 addr_start.
3273
3274 2012-08-08 Doug Evans <dje@google.com>
3275
3276 * linux-thread-db.c: #include "gdb_vecs.h".
3277 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3278 updated.
3279 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3280 (thread_db_load_search): Use a vector to iterate over path elements.
3281 Handle text appearing after "$pdir".
3282
3283 * gdb_string.h: Moved to ...
3284 * common/gdb_string.h: ... here.
3285 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3286 gdb_string.h and gdb_assert.h.
3287
3288 2012-08-08 Yao Qi <yao@codesourcery.com>
3289
3290 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3291 (tic6x_value_to_register): Likewise.
3292 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3293 and set_gdbarch_value_to_register.
3294
3295 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3296 Jean-Marc Saffroy <saffroy@gmail.com>
3297
3298 PR 11804
3299 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3300 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3301 * gcore.c (gcore_create_callback): New function comment. Add modified
3302 parameter. Only write modified regions. Set SEC_READONLY exactly
3303 according to MODIFIED.
3304 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3305 the passed modified value to FUNC.
3306 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3307 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3308 first. New variables modified and has_anonymous. Parse the lines of
3309 smaps file. Add the passed MODIFIED value to FUNC.
3310 * procfs.c (find_memory_regions_callback): Add the passed modified
3311 value.
3312
3313 2012-08-06 Tom Tromey <tromey@redhat.com>
3314
3315 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3316 (dwarf2_frame_cache): Use it.
3317 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3318 cache initialization constraint.
3319
3320 2012-08-06 Tom Tromey <tromey@redhat.com>
3321
3322 PR python/14386:
3323 * varobj.c (update_dynamic_varobj_children): Don't call
3324 PyIter_Check.
3325
3326 2012-08-06 Tom Tromey <tromey@redhat.com>
3327
3328 PR cli/14392:
3329 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3330
3331 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3332
3333 * NEWS: New entry for 'cd' default parameters.
3334 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3335
3336 2012-08-03 Tom Tromey <tromey@redhat.com>
3337
3338 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3339 return.
3340
3341 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3342
3343 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3344 to attempting lseek/write.
3345 (inf_child_fileio_pread): Likewise for pread.
3346
3347 2012-08-02 Yao Qi <yao@codesourcery.com>
3348
3349 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3350 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3351 add_setshow_zinteger_cmd.
3352 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3353 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3354 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3355 instead of add_setshow_zinteger_cmd.
3356 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3357 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3358 instead of add_setshow_zinteger_cmd.
3359 * frame.c (frame_debug): Add 'unsigned'.
3360 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3361 add_setshow_zinteger_cmd.
3362 * frame.h: Update the declaration of 'frame_debug'.
3363 * gdbtypes.c (overload_debug): Add 'unsigned'.
3364 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3365 add_setshow_zinteger_cmd.
3366 * inferior.h: Update declaration of 'debug_infrun'.
3367 * infrun.c (debug_infrun): Add 'unsigned'.
3368 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3369 add_setshow_zinteger_cmd.
3370 * jit.c (jit_debug): Add 'unsigned'.
3371 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3372 add_setshow_zinteger_cmd.
3373 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3374 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3375 instead of add_setshow_zinteger_cmd.
3376 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3377 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3378 add_setshow_zinteger_cmd.
3379 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3380 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3381 instead of add_setshow_zinteger_cmd.
3382 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3383 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3384 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3385 intead of add_setshow_zinteger_cmd.
3386 * mips-tdep.c (mips_debug): Add 'unsigned'.
3387 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3388 instead of add_setshow_zinteger_cmd.
3389 * monitor.c (monitor_debug): Add 'unsigned'.
3390 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3391 add_setshow_zinteger_cmd.
3392 * observer.c (observer_debug): Add 'unsigned'.
3393 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3394 add_setshow_zinteger_cmd.
3395 * parse.c (expressiondebug): Add 'unsigned'.
3396 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3397 add_setshow_zinteger_cmd.
3398 * record.c (record_debug): Add 'unsigned'.
3399 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3400 add_setshow_zinteger_cmd.
3401 * record.h: Update the declaration of 'record_debug'.
3402 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3403 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3404 add_setshow_zinteger_cmd.
3405 * serial.c (global_serial_debug_p): Add 'unsigned'.
3406 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3407 add_setshow_zinteger_cmd.
3408 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3409 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3410 add_setshow_zinteger_cmd.
3411 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3412 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3413 add_setshow_zinteger_cmd.
3414 * target.c (targetdebug): Add 'unsigned'.
3415 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3416 add_setshow_zinteger_cmd.
3417 * valops.c (overload_debug): Add 'unsigned'.
3418 * varobj.c (varobjdebug): Add 'unsigned'.
3419 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3420 add_setshow_zinteger_cmd.
3421 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3422 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3423 instead of add_setshow_zinteger_cmd.
3424
3425 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3426 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3427 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3428 instead of add_setshow_zinteger_cmd.
3429 * gdbarch.c, gdbarch.h: Re-generated.
3430
3431 2012-08-02 Yao Qi <yao@codesourcery.com>
3432
3433 * nto-tdep.c: Don't include cli/cli-decode.h and
3434 cli/cli-cmds.h.
3435 (_initialize_nto_tdep): Remove.
3436 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3437 Remove field.
3438 Remove macro nto_internal_debugging.
3439
3440 2012-08-01 Richard Henderson <rth@redhat.com>
3441
3442 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3443 (mep-*-*) [gdb_target_obs]: Likewise.
3444
3445 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3446
3447 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3448 linux_get_siginfo_type.
3449
3450 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3451
3452 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3453 AT_ENTRY_POINT.
3454 (call_function_by_hand) <ON_STACK>: Call write_memory with
3455 gdbarch_breakpoint_from_pc, if possible.
3456 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3457 here.
3458
3459 2012-07-31 Yao Qi <yao@codesourcery.com>
3460
3461 * tracepoint.c: Add 'static' for some variables.
3462
3463 2012-07-31 Yao Qi <yao@codesourcery.com>
3464
3465 * go32-nat.c: Declare _initialize_go32_nat.
3466 * ser-go32.c: Declare _initialize_ser_dos.
3467 * top.c (do_chdir_cleanup): Add 'static'.
3468
3469 2012-07-30 Keith Seitz <keiths@redhat.com>
3470
3471 * linespec.c (linespec_lex_number): A number followed
3472 by quotes is a valid number, too.
3473
3474 2012-07-30 Tom Tromey <tromey@redhat.com>
3475
3476 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3477
3478 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3479
3480 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3481 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3482
3483 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3484
3485 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3486 invalid or reevaluated to prevent prevent references to possibly
3487 delete'd type objects being left in the varobj.
3488
3489 2012-07-27 Tom Tromey <tromey@redhat.com>
3490 Jan Kratochvil <jan.kratochvil@redhat.com>
3491
3492 * copying.awk: Print buffer-read-only and vi ro markers.
3493 * copying.c: Rebuild.
3494 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3495 * gdbarch.c, gdbarch.h: Rebuild.
3496 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3497 buffer-read-only and vi ro markers.
3498 * features/arm-with-iwmmxt.c: Rebuild.
3499 * features/arm-with-m-fpa-layout.c: Rebuild.
3500 * features/arm-with-m-vfp-d16.c: Rebuild.
3501 * features/arm-with-m.c: Rebuild.
3502 * features/arm-with-neon.c: Rebuild.
3503 * features/arm-with-vfpv2.c: Rebuild.
3504 * features/arm-with-vfpv3.c: Rebuild.
3505 * features/i386/amd64-avx-linux.c: Rebuild.
3506 * features/i386/amd64-avx.c: Rebuild.
3507 * features/i386/amd64-linux.c: Rebuild.
3508 * features/i386/amd64.c: Rebuild.
3509 * features/i386/i386-avx-linux.c: Rebuild.
3510 * features/i386/i386-avx.c: Rebuild.
3511 * features/i386/i386-linux.c: Rebuild.
3512 * features/i386/i386-mmx-linux.c: Rebuild.
3513 * features/i386/i386-mmx.c: Rebuild.
3514 * features/i386/i386.c: Rebuild.
3515 * features/i386/x32-avx-linux.c: Rebuild.
3516 * features/i386/x32-avx.c: Rebuild.
3517 * features/i386/x32-linux.c: Rebuild.
3518 * features/i386/x32.c: Rebuild.
3519 * features/mips-dsp-linux.c: Rebuild.
3520 * features/mips-linux.c: Rebuild.
3521 * features/mips64-dsp-linux.c: Rebuild.
3522 * features/mips64-linux.c: Rebuild.
3523 * features/rs6000/powerpc-32.c: Rebuild.
3524 * features/rs6000/powerpc-32l.c: Rebuild.
3525 * features/rs6000/powerpc-403.c: Rebuild.
3526 * features/rs6000/powerpc-403gc.c: Rebuild.
3527 * features/rs6000/powerpc-405.c: Rebuild.
3528 * features/rs6000/powerpc-505.c: Rebuild.
3529 * features/rs6000/powerpc-601.c: Rebuild.
3530 * features/rs6000/powerpc-602.c: Rebuild.
3531 * features/rs6000/powerpc-603.c: Rebuild.
3532 * features/rs6000/powerpc-604.c: Rebuild.
3533 * features/rs6000/powerpc-64.c: Rebuild.
3534 * features/rs6000/powerpc-64l.c: Rebuild.
3535 * features/rs6000/powerpc-7400.c: Rebuild.
3536 * features/rs6000/powerpc-750.c: Rebuild.
3537 * features/rs6000/powerpc-860.c: Rebuild.
3538 * features/rs6000/powerpc-altivec32.c: Rebuild.
3539 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3540 * features/rs6000/powerpc-altivec64.c: Rebuild.
3541 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3542 * features/rs6000/powerpc-cell32l.c: Rebuild.
3543 * features/rs6000/powerpc-cell64l.c: Rebuild.
3544 * features/rs6000/powerpc-e500.c: Rebuild.
3545 * features/rs6000/powerpc-e500l.c: Rebuild.
3546 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3547 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3548 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3549 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3550 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3551 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3552 * features/rs6000/powerpc-vsx32.c: Rebuild.
3553 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3554 * features/rs6000/powerpc-vsx64.c: Rebuild.
3555 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3556 * features/rs6000/rs6000.c: Rebuild.
3557 * features/s390-linux32.c: Rebuild.
3558 * features/s390-linux32v1.c: Rebuild.
3559 * features/s390-linux32v2.c: Rebuild.
3560 * features/s390-linux64.c: Rebuild.
3561 * features/s390-linux64v1.c: Rebuild.
3562 * features/s390-linux64v2.c: Rebuild.
3563 * features/s390x-linux64.c: Rebuild.
3564 * features/s390x-linux64v1.c: Rebuild.
3565 * features/s390x-linux64v2.c: Rebuild.
3566 * features/tic6x-c62x-linux.c: Rebuild.
3567 * features/tic6x-c62x.c: Rebuild.
3568 * features/tic6x-c64x-linux.c: Rebuild.
3569 * features/tic6x-c64x.c: Rebuild.
3570 * features/tic6x-c64xp-linux.c: Rebuild.
3571 * features/tic6x-c64xp.c: Rebuild.
3572
3573 2012-07-27 Tom Tromey <tromey@redhat.com>
3574
3575 * c-exp.y (classify_name): Avoid assignment in condition.
3576
3577 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3578
3579 * amd64-windows-tdep.c: Include "frame.h".
3580 (amd64_windows_skip_trampoline_code): New function.
3581 (amd64_windows_init_abi): Add trampoline registration.
3582
3583 2012-07-27 Yao Qi <yao@codesourcery.com>
3584
3585 * tracepoint.c (cur_traceframe_number): Remove.
3586 (set_tfile_traceframe): Remove.
3587 (tfile_trace_find, tfile_fetch_registers): Update callers.
3588 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3589 (tfile_open, tfile_trace_find): Likewise.
3590
3591 2012-07-27 Yao Qi <yao@codesourcery.com>
3592
3593 * thread.c (switch_to_thread): Don't call registers_changed.
3594
3595 2012-07-26 Tom Tromey <tromey@redhat.com>
3596
3597 * Makefile.in (SFILES): Remove objc-exp.y.
3598 (YYFILES): Remove objc-exp.c.
3599 (YYOBJ): Remove objc-exp.o.
3600 (local-maintainer-clean): Don't mention objc-exp.c.
3601 * c-exp.y: Include objc-lang.h.
3602 (%union) <class>: New field.
3603 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3604 (exp): Clone subscript production for OBJC_LBRAC. Add various
3605 Objective C productions.
3606 (msglist, msgarglist, msgarg): New productions.
3607 (array_mod, func_mod, operator): Clone productions for
3608 OBJC_LBRAC.
3609 (parse_string_or_char): Handle '@' strings.
3610 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3611 (classify_name): Check la_name_of_this. Recognize ObjC class
3612 names.
3613 * objc-exp.y: Remove.
3614 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3615 * objc-lang.h (objc_parse, objc_error): Don't declare.
3616
3617 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3618
3619 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3620
3621 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3622
3623 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3624 and decrement.
3625
3626 2012-07-26 Tom Tromey <tromey@redhat.com>
3627
3628 * copying.c: Rebuild.
3629 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3630 'no_class'.
3631
3632 2012-07-26 Tom Tromey <tromey@redhat.com>
3633
3634 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3635 immediate_quit.
3636 (print_objfile_statistics): Likewise.
3637 (maintenance_print_symbols): Likewise.
3638 (maintenance_print_msymbols): Likewise.
3639 (maintenance_print_objfiles): Likewise.
3640 * psymtab.c (print_partial_symbols): Call QUIT.
3641 (maintenance_print_psymbols): Likewise. Don't modify
3642 immediate_quit.
3643 * copying.c (show_copying_command): Don't modify immediate_quit.
3644 (show_warranty_command): Likewise.
3645 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3646
3647 2012-07-26 Keith Seitz <keiths@redhat.com>
3648
3649 * linespec.c (linespec_lexer_lex_number): The input
3650 is also a valid number if the next character is a comma
3651 or colon.
3652
3653 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3654
3655 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3656 configure options.
3657
3658 2012-07-26 Tristan Gingold <gingold@adacore.com>
3659
3660 * machoread.c: Include gdb_bfd.h.
3661
3662 2012-07-26 Tristan Gingold <gingold@adacore.com>
3663
3664 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3665 offset.
3666
3667 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3668
3669 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3670 SIZE to size_t.
3671 (dwarf2_evaluate_loc_desc): Likewise.
3672 (dwarf2_loc_desc_needs_frame): Likewise.
3673 (locexpr_describe_location_1): Likewise.
3674 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3675 size_t.
3676 (struct dwarf2_loclist_baton): Likewise.
3677 * dwarf2read.c (struct dwarf_block): Likewise.
3678 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3679 (decode_locdesc): Expand SIZE and I to size_t.
3680
3681 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3682
3683 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3684
3685 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3686
3687 * doublest.c (convert_doublest_to_floatformat): If the exponent
3688 is too small, treat the value as zero. If the exponent is too
3689 large, treat the value as infinity.
3690
3691 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3692
3693 * configure.ac: Add --enable-lmcheck configure option.
3694 * configure: Regenerate.
3695
3696 2012-07-25 Tom Tromey <tromey@redhat.com>
3697
3698 * NEWS: Mention maint info bfds.
3699 * gdb_bfd.c (all_bfds): New global.
3700 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3701 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3702 New functions.
3703
3704 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3705
3706 * configure.tgt: Add v850*-*-rtems*.
3707
3708 2012-07-25 Tom Tromey <tromey@redhat.com>
3709
3710 * macrotab.c (macro_bcache_str): Remove cast.
3711
3712 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3713
3714 * linespec.c (linespec_lexer_lex_number): Update comments,
3715 change the return and add check to make sure the input is
3716 the decimal numbers.
3717 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3718 false, call linespec_lexer_lex_string.
3719
3720 2012-07-24 Tom Tromey <tromey@redhat.com>
3721
3722 * symfile.c (symbol_file_add): Don't open BFD twice.
3723
3724 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3725
3726 * breakpoint.c (create_breakpoint): Store condition for pending
3727 breakpoints.
3728
3729 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3730
3731 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3732 (m68k_return_value): Handle complex types like structures.
3733 (m68k_svr4_return_value): Likewise.
3734
3735 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3736
3737 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3738 parameters to bfd_get_section_name.
3739
3740 2012-07-24 Yao Qi <yao@codesourcery.com>
3741
3742 * cli/cli-setshow.c: Handle case 'var_uinteger'
3743 and 'var_zuninteger' together. Handle case 'var_integer' and
3744 'var_zinteger' together.
3745
3746 2012-07-23 Keith Seitz <keiths@redhat.com>
3747
3748 * linespec.c (convert_linespec_to_sal): Don't add
3749 any symbols to the result vector if symbol_to_sal
3750 returns zero.
3751
3752 2012-07-23 Keith Seitz <keiths@redhat.com>
3753
3754 * linespec.c (decode_objc): Record the function name
3755 in the linespec.
3756
3757 2012-07-23 Tom Tromey <tromey@redhat.com>
3758
3759 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3760 counting.
3761 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3762 (map_vmap): Acquire a reference to the BFD.
3763
3764 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3765
3766 * p-valprint.c (pascal_object_print_value): Replace potentially
3767 unsafe alloca with xmalloc/xfree.
3768 * valops.c (search_struct_method): Likewise.
3769
3770 2012-07-23 Tom Tromey <tromey@redhat.com>
3771
3772 * solib-svr4.c (enable_break): Update.
3773 * bfd-target.h (target_bfd_reopen): Update documentation.
3774
3775 2012-07-23 Tom Tromey <tromey@redhat.com>
3776
3777 * symfile.c (separate_debug_file_exists): Update.
3778 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3779 (reread_symbols): Update.
3780 * elfread.c (build_id_verify): Update.
3781 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3782 bfd_open_maybe_remote.
3783
3784 2012-07-23 Tom Tromey <tromey@redhat.com>
3785
3786 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3787
3788 2012-07-23 Tom Tromey <tromey@redhat.com>
3789
3790 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3791 and 'abfd'.
3792 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3793 and 'abfd'.
3794 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3795 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3796 'abfd'.
3797 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3798 * objfiles.c (allocate_objfile): Acquire a new reference.
3799 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3800 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3801 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3802 a cleanup for 'nbfd'.
3803 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3804 for 'nbfd'.
3805 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3806 make a cleanup for 'abfd'.
3807 (symbol_file_add): Make a BFD cleanup.
3808
3809 2012-07-23 Tom Tromey <tromey@redhat.com>
3810
3811 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3812 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3813 * corelow.c (core_open): Use gdb_bfd_fopen.
3814 * dsrec.c (load_srec): Use gdb_bfd_openr.
3815 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3816 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3817 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3818 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3819 (gdb_bfd_fdopenr): New functions.
3820 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3821 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3822 (gdb_bfd_fdopenr): Declare.
3823 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3824 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3825 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3826 gdb_bfd_openr_next_archived_file.
3827 (macho_check_dsym): Use gdb_bfd_openr.
3828 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3829 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3830 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3831 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3832 gdb_bfd_openr.
3833 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3834 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3835 gdb_bfd_openr_next_archived_file.
3836 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3837 Use gdb_bfd_openr.
3838 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3839 gdb_bfd_openr.
3840 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3841 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3842 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3843 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3844 (symfile_bfd_open): Use gdb_bfd_fopen.
3845 (generic_load): Use gdb_bfd_openr.
3846 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3847
3848 2012-07-23 Tom Tromey <tromey@redhat.com>
3849
3850 * bfd-target.c (target_bfd_reopen): Update.
3851 * cli/cli-dump.c (bfd_openr_with_cleanup)
3852 (bfd_openw_with_cleanup): Update.
3853 * corelow.c (core_open): Update.
3854 * dsrec.c (load_srec): Update.
3855 * exec.c (exec_file_attach): Update.
3856 * gcore.c (create_gcore_bfd): Update.
3857 * gdb_bfd.c (gdb_bfd_ref): Return void.
3858 (gdb_bfd_open): Update.
3859 * gdb_bfd.h (gdb_bfd_ref): Return void.
3860 Update comments.
3861 * jit.c (jit_bfd_try_read_symtab): Update.
3862 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3863 * machoread.c (macho_symfile_read_all_oso): Update.
3864 (macho_check_dsym): Update.
3865 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3866 * remote-m32r-sdi.c (m32r_load): Update.
3867 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3868 * rs6000-nat.c (add_vmap): Update.
3869 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3870 Update.
3871 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3872 * solib-spu.c (spu_bfd_open): Update.
3873 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3874 * spu-linux-nat.c (spu_bfd_open): Update.
3875 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3876 (generic_load): Update.
3877 * windows-nat.c (windows_make_so): Update.
3878
3879 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3880
3881 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3882
3883 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3884
3885 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3886 SIGTRAMP_FRAME unwinding.
3887
3888 2012-07-20 Doug Evans <dje@google.com>
3889
3890 * NEWS: Document new options "set/show use-deprecated-index-sections",
3891 and delete reference to --use-deprecated-index-sections.
3892 * symfile.h (use_deprecated_index_sections): Delete.
3893 * dwarf2read.c (use_deprecated_index_sections): Make static.
3894 (read_index_from_section): Update wording of how to load
3895 deprecated index sections.
3896 (_initialize_dwarf2_read): New options
3897 "set/show use-deprecated-index-sections".
3898 * main.c (captured_main): Delete --use-deprecated-index-sections.
3899
3900 2012-07-20 Pedro Alves <palves@redhat.com>
3901
3902 PR threads/11692
3903 PR gdb/12203
3904
3905 * infrun.c (handle_inferior_event) <new thread>: Don't special
3906 case minus_one_ptid.
3907 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3908 * linux-thread-db.c (thread_get_info_callback): Don't return early
3909 if the thread is zombie.
3910 (thread_from_lwp): Change return type to void. Rewrite stale
3911 comment.
3912 (attach_thread): Don't return early if the thread is zombie,
3913 instead set its "dying" flag.
3914 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3915 (find_new_threads_callback): Don't return early if the thread is
3916 zombie.
3917
3918 2012-07-20 Pedro Alves <palves@redhat.com>
3919
3920 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3921 * target.c (target_wait): Likewise.
3922 (str_comma_list_concat_elem, do_option, target_options_to_string):
3923 New functions.
3924 * target.h (target_options_to_string): Declare.
3925
3926 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3927 Tom Tromey <tromey@redhat.com>
3928
3929 * dwarf2read.c (dwarf_decode_macros)
3930 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3931 DW_MACRO_GNU_transparent_include_alt>: New cases.
3932 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3933 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3934
3935 2012-07-20 Tom Tromey <tromey@redhat.com>
3936
3937 * dwarf2read.c (try_open_dwo_file): Don't call
3938 gdb_bfd_stash_filename.
3939
3940 2012-07-20 Pedro Alves <palves@redhat.com>
3941
3942 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3943 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3944 (i386_process_record): Tweak description comments.
3945
3946 2012-07-20 Pedro Alves <palves@redhat.com>
3947
3948 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3949 (i386_process_record): Use record_read_memory.
3950 * record.c (record_read_memory): New function.
3951 (record_arch_list_add_mem, record_exec_insn): Use
3952 record_read_memory.
3953 * record.h (record_read_memory): Declare.
3954
3955 2012-07-20 Yao Qi <yao@codesourcery.com>
3956
3957 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3958 NULL for xfree.
3959
3960 2012-07-19 Pedro Alves <palves@redhat.com>
3961
3962 * record.c (record_resume): Ask the target beneath to report all
3963 signals.
3964
3965 2012-07-19 Doug Evans <dje@google.com>
3966
3967 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3968 there's no section at address zero.
3969 (dwarf2_record_block_ranges): Ditto.
3970
3971 2012-07-19 Yao Qi <yao@codesourcery.com>
3972
3973 * command.h, remote.c: Fix a typo in comment.
3974
3975 2012-07-19 Tom Tromey <tromey@redhat.com>
3976
3977 PR exp/13206:
3978 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3979 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3980 OP_DECLTYPE>: New cases.
3981 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3982 (type_exp): Add new productions.
3983 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3984 and decltype.
3985 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3986 New case.
3987 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3988 OP_DECLTYPE>: New case.
3989 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3990 New case.
3991 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3992 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3993
3994 2012-07-19 Tom Tromey <tromey@redhat.com>
3995
3996 * c-exp.y (enum token_flags): New.
3997 (struct token) <cxx_only>: Remove.
3998 <flags>: New field.
3999 (tokentab3, tokentab2, ident_tokens): Update.
4000 (lex_one_token): Update. Handle FLAG_SHADOW.
4001
4002 2012-07-19 Tom Tromey <tromey@redhat.com>
4003
4004 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4005 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4006 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4007 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4008 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4009 type_exp production where appropriate.
4010 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4011 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4012 <UNOP_MEMVAL_TYPE>: New case.
4013 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4014 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4015 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4016 <UNOP_MEMVAL_TYPE>: New case.
4017 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4018 UNOP_REINTERPRET_CAST>: Update.
4019 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4020 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4021 UNOP_REINTERPRET_CAST>: Update.
4022 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4023 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4024 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4025 constants.
4026
4027 2012-07-19 Yao Qi <yao@codesourcery.com>
4028 Jan Kratochvil <jan.kratochvil@redhat.com>
4029
4030 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4031 and case 'var_optional_filename' together.
4032 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4033 instead of add_setshow_optional_filename_cmd for setshow command
4034 'args'. Set completer for 'set args'.
4035
4036 2012-07-18 Doug Evans <dje@google.com>
4037
4038 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4039 * common/gdb_vecs.c: New file, contents from utils.c.
4040 * common/host-defs.h: New file, contents from defs.h.
4041 * utils.h: New file, contents from defs.h.
4042 * defs.h: Move all declarations of objects defined in utils.c
4043 to utils.h (except QUIT() and related).
4044 #include "utils.h", "host-defs.h".
4045 * probe.h (probe_p): Move here from gdb_vecs.h.
4046 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4047 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4048 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4049 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4050 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4051 (COMMON_OBS): Add gdb_vecs.o.
4052 (gdb_vecs.o): New rule.
4053
4054 2012-07-18 Keith Seitz <keiths@redhat.com>
4055
4056 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4057 parameter. If non-zero, use SYMNAME as the canonical name
4058 for the SaL.
4059 Update all callers.
4060 (convert_linespec_to_sals): Use add_sal_to_sals for
4061 expressions, too.
4062 (decode_line_full): No need to "fill in missing canonical names"
4063 anymore. Simply make cleanups for the allocated names.
4064
4065 2012-07-18 Keith Seitz <keiths@redhat.com>
4066
4067 * linespec.c (struct linespec): Constify expression,
4068 source_filename, function_name, and label_name.
4069 (symbol_not_found_error): Make all parameters const.
4070 (linespec_parser_delete): No need to check for NULL
4071 when using xfree. Cast const char * to char * for xfree.
4072
4073 2012-07-18 Keith Seitz <keiths@redhat.com>
4074
4075 * breakpoint.c (invalid_thread_id_error): New function.
4076 (find_condition_and_thread): Use invalid_thread_id_error.
4077 (watch_command_1): Likewise.
4078
4079 2012-07-18 Tom Tromey <tromey@redhat.com>
4080
4081 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4082 * contrib/cc-with-tweaks.sh: New file.
4083
4084 2012-07-18 Tom Tromey <tromey@redhat.com>
4085
4086 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4087 (locate_dwz_sections): Recognize .gdb_index.
4088 (create_cus_from_index_list): New function.
4089 (create_cus_from_index): Use it. Handle .dwz data.
4090 (read_index_from_section): New function, extracted from
4091 dwarf2_read_index.
4092 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4093 if needed.
4094
4095 2012-07-18 Tom Tromey <tromey@redhat.com>
4096
4097 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4098 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4099 <is_dwz>: New field.
4100 (struct dwz_file): New.
4101 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4102 (locate_dwz_sections, dwarf2_get_dwz_file)
4103 (get_abbrev_section_for_cu): New functions.
4104 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4105 (read_and_check_type_unit_head): Add abbrev_section argument.
4106 (create_debug_types_hash_table): Update.
4107 (init_cutu_and_read_dies): Use proper abbrev section.
4108 (init_cutu_and_read_dies_no_follow): Likewise.
4109 (set_partial_user): Do nothing if PST==NULL.
4110 (read_comp_units_from_section): New function.
4111 (create_all_comp_units): Use it.
4112 (scan_partial_symbols, partial_die_parent_scope): Update.
4113 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4114 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4115 (find_partial_die): Add offset_in_dwz argument. Update.
4116 (guess_partial_die_structure_name, fixup_partial_die): Update.
4117 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4118 DW_FORM_GNU_strp_alt.
4119 (read_indirect_string_from_dwz): New function.
4120 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4121 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4122 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4123 (follow_die_offset): Add offset_in_dwz argument.
4124 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4125 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4126 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4127 Handle new macro forms.
4128 (dwarf_decode_macros): Update.
4129 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4130 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4131 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4132 (create_debug_types_hash_table): Use correct abbrev section.
4133 (get_debug_line_section): New function.
4134 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4135 (process_full_comp_unit): Pass 'required' argument to
4136 end_symtab_get_static_block.
4137 * buildsym.h (end_symtab_get_static_block): Update.
4138 * buildsym.c (end_symtab_get_static_block): Add 'required'
4139 argument.
4140 (end_symtab, end_expandable_symtab): Update.
4141
4142 2012-07-18 Tom Tromey <tromey@redhat.com>
4143
4144 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4145 (pagesize): Remove.
4146 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4147 (zlib_decompress_section): Remove.
4148 (dwarf2_read_section): Use gdb_bfd_map_section.
4149 (munmap_section_buffer): Remove.
4150 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4151 munmap_section_buffer.
4152 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4153 (struct gdb_bfd_section_data): New.
4154 (free_one_bfd_section): New function.
4155 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4156 (get_section_descriptor, zlib_decompress_section)
4157 (gdb_bfd_map_section): New functions.
4158 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4159
4160 2012-07-18 Tom Tromey <tromey@redhat.com>
4161
4162 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4163
4164 2012-07-18 Tom Tromey <tromey@redhat.com>
4165
4166 * gdb_bfd.c (struct gdb_bfd_data): New.
4167 (gdb_bfd_cache): New global.
4168 (struct gdb_bfd_cache_search): New.
4169 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4170 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4171 * gdb_bfd.h (gdb_bfd_open): Declare.
4172
4173 2012-07-18 Tom Tromey <tromey@redhat.com>
4174
4175 * utils.c (make_cleanup_bfd_unref): Rename from
4176 make_cleanup_bfd_close.
4177 * defs.h (make_cleanup_bfd_unref): Rename from
4178 make_cleanup_bfd_close.
4179 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4180 (bfd_openw_with_cleanup): Update.
4181 * corelow.c (core_open): Update.
4182 * dsrec.c (load_srec): Update.
4183 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4184 * remote-m32r-sdi.c (m32r_load): Update.
4185 * remote-mips.c (mips_load_srec): Update.
4186 (pmon_load_fast): Update.
4187 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4188 Update.
4189 (darwin_bfd_open): Update.
4190 * solib.c (solib_bfd_fopen): Update.
4191 * symfile-mem.c (symbol_file_add_from_memory): Update.
4192 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4193 (symfile_bfd_open): Update.
4194 (generic_load): Update.
4195
4196 2012-07-18 Tom Tromey <tromey@redhat.com>
4197
4198 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4199 (pmon_load_fast): Likewise.
4200 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4201 (m32r_upload_command): Likewise.
4202 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4203 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4204 Use make_cleanup_bfd_close.
4205
4206 2012-07-18 Tom Tromey <tromey@redhat.com>
4207
4208 * symfile.c (symfile_bfd_open): Don't copy name. Call
4209 gdb_bfd_stash_filename.
4210 (load_command): Open the new BFD before freeing the old.
4211 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4212 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4213 Call gdb_bfd_stash_filename.
4214 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4215 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4216 gdb_bfd_stash_filename.
4217 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4218 Free found_pathname.
4219 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4220 gdb_bfd_stash_filename.
4221 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4222 * machoread.c (macho_add_oso_symfile): Call
4223 gdb_bfd_stash_filename.
4224 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4225 gdb_bfd_stash_filename.
4226 (macho_check_dsym): Don't copy filename. Call
4227 gdb_bfd_stash_filename.
4228 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4229 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4230 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4231 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4232 * exec.c (exec_close): Don't free the BFD's filename.
4233 (exec_file_attach): Don't copy the filename. Call
4234 gdb_bfd_stash_filename.
4235 * corelow.c (core_close): Don't free the BFD's filename.
4236 (core_open): Call gdb_bfd_stash_filename.
4237 * corefile.c (reopen_exec_file): Remove #if 0 code.
4238 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4239 pathname.
4240 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4241
4242 2012-07-18 Tom Tromey <tromey@redhat.com>
4243
4244 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4245 gdb_bfd_unref.
4246 (free_dwo_file): Use gdb_bfd_unref.
4247 * cli/cli-dump.c: Include gdb_bfd.h.
4248 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4249 (bfd_openr_with_cleanup): Likewise.
4250 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4251 gdb_bfd_unref.
4252 * utils.c: Include gdb_bfd.h.
4253 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4254 * symfile.c: Include gdb_bfd.h.
4255 (separate_debug_file_exists): Use gdb_bfd_unref.
4256 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4257 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4258 (generic_load): Use gdb_bfd_ref.
4259 (reread_symbols): Use gdb_bfd_unref.
4260 * symfile-mem.c: Include gdb_bfd.h.
4261 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4262 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4263 * solib.c: Include gdb_bfd.h.
4264 (solib_bfd_fopen): Use gdb_bfd_ref.
4265 (solib_bfd_open): Use gdb_bfd_unref.
4266 (free_so_symbols): Use gdb_bfd_unref.
4267 (reload_shared_libraries_1): Use gdb_bfd_unref.
4268 * solib-spu.c: Include gdb_bfd.h.
4269 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4270 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4271 gdb_bfd_unref.
4272 * solib-frv.c: Include gdb_bfd.h.
4273 (enable_break2): Use gdb_bfd_unref.
4274 * solib-dsbt.c: Include gdb_bfd.h.
4275 (enable_break2): Use gdb_bfd_unref.
4276 * solib-darwin.c: Include gdb_bfd.h.
4277 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4278 gdb_bfd_unref.
4279 (darwin_bfd_open): Use gdb_bfd_unref.
4280 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4281 * remote-mips.c: Include gdb_bfd.h.
4282 (mips_load_srec): Use gdb_bfd_ref.
4283 (pmon_load_fast): Use gdb_bfd_ref.
4284 * remote-m32r-sdi.c: Include gdb_bfd.h.
4285 (m32r_load): Use gdb_bfd_ref.
4286 * record.c: Include gdb_bfd.h.
4287 (record_save_cleanups): Use gdb_bfd_unref.
4288 (cmd_record_save): Use gdb_bfd_unref.
4289 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4290 gdb_bfd_unref.
4291 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4292 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4293 * objfiles.c: Include gdb_bfd.h.
4294 (free_objfile): Use gdb_bfd_unref.
4295 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4296 gdb_bfd.c.
4297 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4298 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4299 (macho_check_dsym): Likewise.
4300 * m32r-rom.c: Include gdb_bfd.h.
4301 (m32r_load): Use gdb_bfd_ref.
4302 (m32r_upload_command): Use gdb_bfd_ref.
4303 * jit.c: Include gdb_bfd.h.
4304 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4305 * gdb_bfd.h: New file.
4306 * gdb_bfd.c: New file.
4307 * gcore.c: Include gdb_bfd.h.
4308 (create_gcore_bfd): Use gdb_bfd_ref.
4309 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4310 (gcore_command): Use gdb_bfd_unref.
4311 * exec.c: Include gdb_bfd.h.
4312 (exec_close): Use gdb_bfd_unref.
4313 (exec_close_1): Use gdb_bfd_unref.
4314 (exec_file_attach): Use gdb_bfd_ref.
4315 * elfread.c: Include gdb_bfd.h.
4316 (build_id_verify): Use gdb_bfd_unref.
4317 * dsrec.c: Include gdb_bfd.h.
4318 (load_srec): Use gdb_bfd_ref.
4319 * corelow.c: Include gdb_bfd.h.
4320 (core_close): Use gdb_bfd_unref.
4321 (core_open): Use gdb_bfd_ref.
4322 * bfd-target.c: Include gdb_bfd.h.
4323 (target_bfd_xclose): Use gdb_bfd_unref.
4324 (target_bfd_reopen): Use gdb_bfd_ref.
4325 * Makefile.in (SFILES): Add gdb_bfd.c.
4326 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4327 (COMMON_OBS): Add gdb_bfd.o.
4328
4329 2012-07-18 Keith Seitz <keiths@redhat.com>
4330
4331 * breakpoint.c (find_condition_and_thread): Initialize
4332 TASK and REST.
4333 (create_breakpiont): find_condition_and_thread will now
4334 initialize COND_STRING, THREAD, and REST (and TASK).
4335 (addr_string_to_sals): Likewise.
4336
4337 2012-07-18 Pedro Alves <palves@redhat.com>
4338
4339 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4340 Pull the single step breakpoints out of the target.
4341
4342 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4343
4344 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4345 * stap-probe.c (compile_probe_arg): Likewise.
4346
4347 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4348
4349 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4350 (elf_compile_to_ax): Likewise.
4351 * infrun.c (insert_exception_resume_from_probe): Likewise.
4352 (check_exception_resume): Remove `objfile' variable.
4353 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4354 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4355 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4356 (compare_entries): Rename to...
4357 (compare_probes): ...this. Adjust function to work with
4358 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4359 respectively.
4360 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4361 `VEC (probe_p) *'.
4362 (print_ui_out_info): Adjust argument to be `struct probe *'.
4363 (info_probes_for_ops): Adjust internal computations to use
4364 `VEC (probe_p) *'.
4365 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4366 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4367 gen_info_probes_table_values>: Remove `objfile' argument.
4368 (struct probe) <objfile>: New field.
4369 (find_probe_by_pc): Remove `objfile' argument.
4370 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4371 (stap_get_probe_argument_count): Likewise.
4372 (stap_get_arg): Likewise.
4373 (stap_evaluate_probe_argument): Likewise.
4374 (stap_compile_to_ax): Likewise.
4375 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4376 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4377 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4378 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4379 sym_compile_to_ax>: Likewise.
4380
4381 2012-07-18 Terry Guo <terry.guo@arm.com>
4382
4383 PR 14329
4384 * defs.h (GDB_MI_MSG_WIDTH): New.
4385 * ser_base (ser_base_read_error_fd): New function.
4386 (do_ser_base_readchar): Poll error file descriptor as well as
4387 standard output.
4388 (generic_readchar): Refactor error handling.
4389
4390 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4391
4392 * NEWS: Create a new section for the next release branch.
4393 Rename the section of the current branch, now that it has
4394 been cut.
4395
4396 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4397
4398 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4399 * version.in: Bump version to 7.5.50.20120718-cvs.
4400
4401 2012-07-17 Keith Seitz <keiths@redhat.com>
4402
4403 * linespec.c (linespec_parse_line_offset): Make parameter
4404 const.
4405
4406 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4407
4408 PR 11914
4409 * f-valprint.c (info_common_command): New variable frame_id.
4410 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4411 * printcmd.c (print_variable_and_value): Extend function comment.
4412 Add comment for invalidated FRAME.
4413 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4414 FI form FRAME_ID after each print_frame_local_vars.
4415 (struct print_variable_and_value_data): Change frame to frame_id.
4416 (do_print_variable_and_value): New variable frame, initialize it from
4417 p->frame_id. Add comment for invalidated FRAME.
4418 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4419 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4420 for invalidated FRAME.
4421
4422 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4423 Pedro Alves <palves@redhat.com>
4424
4425 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4426 loop.
4427
4428 2012-07-16 Tom Tromey <tromey@redhat.com>
4429
4430 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4431
4432 2012-07-15 Doug Evans <dje@google.com>
4433
4434 * dwarf2read.c (stmt_list_hash): New struct.
4435 (type_unit_group): Embed "per_cu" member, remove pointer.
4436 New union member "t", move member "tus" into it, all uses updated.
4437 New member "hash", replaces member "line_offset, all uses updated.
4438 (quick_file_names): Replace member "offset" with "hash", all uses
4439 updated.
4440 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4441 (hash_file_name_entry, eq_file_name_entry): Call them.
4442 (hash_type_unit_group, eq_type_unit_group): Ditto.
4443 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4444 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4445 (dw2_get_file_names): Update.
4446 (create_type_unit_group): Replace "per_cu" arg with "cu".
4447 All callers updated. Fix "quick" (.gdb_index) handling.
4448 (get_type_unit_group): Replace "per_cu" arg with "cu".
4449 All callers updated.
4450 (build_type_unit_groups): Don't reset tu_stats.
4451
4452 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4453 "tab_cur_size". Change member "tab" to be a htab_t.
4454 (create_filename_seen_cache): Update.
4455 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4456 (filename_seen): Update.
4457
4458 2012-07-13 Doug Evans <dje@google.com>
4459
4460 * symtab.c (filename_seen): Update comment.
4461
4462 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4463 Doug Evans <dje@google.com>
4464
4465 * buildsym.c (end_symtab_1): Split it to ...
4466 (end_symtab_get_static_block): ... this ...
4467 (end_symtab_from_static_block): ... and this function.
4468 (end_symtab, end_expandable_symtab): Call them.
4469 * buildsym.h (end_symtab_get_static_block)
4470 (end_symtab_from_static_block): New declarations.
4471 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4472 Set its valid CU ranges.
4473
4474 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4475
4476 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4477 DW_OP_GNU_parameter_ref.
4478
4479 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4480
4481 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4482 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4483
4484 2012-07-13 Doug Evans <dje@google.com>
4485
4486 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4487 (filename_seen_cache): New struct.
4488 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4489 (create_filename_seen_cache): New function.
4490 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4491 (filename_seen): Delete arg "first". New arg "cache". All callers
4492 updated.
4493 (output_source_filename_data): New struct.
4494 (output_source_filename): Delete arg "first". New arg "data".
4495 All callers updated.
4496 (sources_info): Delete local "first". New locals "data", "cleanups".
4497 Rewrite to use filename_seen_cache.
4498 (add_partial_filename_data): Delete member "first". New member
4499 "filename_seen_cache". All uses updated.
4500 (make_source_files_completion_list): Rewrite to use
4501 filename_seen_cache.
4502
4503 2012-07-12 Doug Evans <dje@google.com>
4504
4505 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4506
4507 2012-07-10 Doug Evans <dje@google.com>
4508
4509 PR gdb/13498
4510 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4511 all_type_unit_groups, type_unit_groups, tu_stats.
4512 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4513 All uses updated. Add type_unit_group to union "s".
4514 (type_unit_group): New struct.
4515 (IS_TYPE_UNIT_GROUP): New macro.
4516 (abbrev_table): Delete unused member "section".
4517 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4518 (dw2_get_cu): Assert not used with type_unit_group.
4519 (dw2_get_primary_cu): New function.
4520 (dw2_build_type_unit_groups_reader): New function.
4521 (dw2_build_type_unit_groups): New function.
4522 (dw2_get_file_names): Assert not called on type units.
4523 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4524 Redo loop to iterate over type unit groups instead of type units.
4525 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4526 (read_abbrev_offset): New function.
4527 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4528 updated.
4529 (create_partial_symtab): New function.
4530 (process_psymtab_comp_unit_reader): Assert not used with type units.
4531 Call create_partial_symtab.
4532 (process_psymtab_type_unit): Delete.
4533 (hash_type_unit_group, eq_type_unit_group): New functions.
4534 (allocate_type_unit_groups_table): New function.
4535 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4536 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4537 (create_type_unit_group, get_type_unit_group): New functions.
4538 (tu_abbrev_offset): New struct.
4539 (sort_tu_by_abbrev_offset): New function.
4540 (add_type_unit_group_to_table): New function.
4541 (build_type_unit_groups): New function.
4542 (build_type_psymtabs_reader): New function.
4543 (build_type_psymtab_dependencies): New function.
4544 (build_type_psymtabs): Rewrite.
4545 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4546 is seen in a type unit.
4547 (process_queue): Move symtab expansion debugging printfs here.
4548 Call process_full_type_unit for type units.
4549 (compute_symtab_includes): Assert not called for type units.
4550 (process_cu_includes): Don't call compute_symtab_includes for
4551 type units.
4552 (process_full_type_unit): New function.
4553 (process_imported_unit_die): Flag an error if called for type units.
4554 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4555 updated. Assert not called for type units.
4556 (read_file_scope): Call dwarf2_start_symtab.
4557 (setup_type_unit_groups): New function.
4558 (read_type_unit_scope): Rewrite.
4559 (abbrev_table_read_table): Initialize abbrev_table->offset.
4560 (abbrev_table_free_cleanup): New function.
4561 (dwarf2_start_symtab): New function.
4562 (load_full_type_unit): Assert not called for type unit groups.
4563 * buildsym.c (finish_block_internal): New arg "expandable".
4564 All callers updated.
4565 (start_symtab): Move most contents to ...
4566 (restart_symtab): ... here. New function.
4567 (reset_symtab_globals): New function.
4568 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4569 Call reset_symtab_globals.
4570 (end_symtab, end_expandable_symtab): New functions.
4571 (set_missing_symtab, augment_type_symtab): New functions.
4572 * buildsym.h (end_expandable_symtab): Declare.
4573 (augment_type_symtab, restart_symtab): Declare.
4574 * psympriv.h (struct partial_symtab): New member "anonymous".
4575 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4576 anonymous psymtabs.
4577 (read_psymtabs_with_filename): Ditto.
4578 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4579 (expand_symtabs_matching_via_partial): Ditto.
4580 (dump_psymtab): Update.
4581 * dictionary.c (dict_add_pending): New function.
4582 * dictionary.h (dict_add_pending): Declare.
4583
4584 2012-07-09 Doug Evans <dje@google.com>
4585
4586 * buildsym.c (start_subfile): Remove unnecessary check for
4587 name == NULL.
4588
4589 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4590
4591 * dwarf2read.c (load_full_type_unit): Simplify.
4592
4593 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4594 to struct signatured_type **. All uses updated.
4595
4596 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4597 All callers updated.
4598
4599 2012-07-09 Tom Tromey <tromey@redhat.com>
4600
4601 * c-exp.y (check_parameter_typelist): New function.
4602 (parameter_typelist): Call it.
4603 * eval.c (make_params): Handle '(void)' case.
4604 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4605 '(void)' case.
4606
4607 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4608
4609 * common/linux-ptrace.c: Include gdb_assert.h.
4610 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4611 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4612 stdint.h.
4613 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4614 functions.
4615 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4616 * linux-nat.c (linux_child_post_attach)
4617 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4618
4619 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4620
4621 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4622 nptl <2.7 bug workaround for core files.
4623
4624 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4625
4626 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4627 clearing.
4628 (save_siginfo): Remove.
4629 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4630 call.
4631 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4632 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4633 * linux-nat.h (struct lwp_info): Remove field siginfo.
4634
4635 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4636
4637 Code cleanup for the next patch.
4638 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4639 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4640 call for it.
4641 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4642 (ia64_linux_stopped_data_address):
4643 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4644 the return value.
4645 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4646 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4647 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4648 call for it.
4649
4650 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4651
4652 PR 14321
4653 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4654 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4655
4656 2012-07-06 Tom Tromey <tromey@redhat.com>
4657
4658 * c-exp.y (DOTDOTDOT): New token.
4659 (func_mod, exp): Use parameter_typelist.
4660 (parameter_typelist): New production.
4661 (tokentab3): Add "..." token.
4662 * eval.c (make_params): Handle varargs.
4663 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4664 varargs.
4665
4666 2012-07-06 Tom Tromey <tromey@redhat.com>
4667
4668 PR exp/9608:
4669 * c-exp.y (%union) <tvec>: Change type.
4670 (func_mod): Now uses <tvec> type.
4671 (exp): Update for tvec change.
4672 (direct_abs_decl): Push the typelist.
4673 (func_mod): Return a typelist.
4674 (nonempty_typelist): Update for tvec change.
4675 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4676 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4677 * parse.c (pop_type_list): New function.
4678 (push_typelist): New function.
4679 (follow_types): Handle tp_function_with_arguments.
4680 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4681 (enum type_pieces) <tp_function_with_arguments>: New constant.
4682 (union type_stack_elt) <typelist_val>: New field.
4683 (push_typelist): Declare.
4684
4685 2012-07-06 Tom Tromey <tromey@redhat.com>
4686
4687 * c-exp.y (%union) <type_stack>: New field.
4688 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4689 (ptr_operator_ts): New production.
4690 (ptype): Update.
4691 * parse.c (type_stack_reserve): New function.
4692 (check_type_stack_depth): Use it.
4693 (pop_type_stack, append_type_stack, push_type_stack)
4694 (get_type_stack, type_stack_cleanup): New functions.
4695 (follow_types): Handle tp_type_stack.
4696 (_initialize_parse): Simplify initialization.
4697 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4698 constant.
4699 (union type_stack_elt) <stack_val>: New field.
4700 (get_type_stack, append_type_stack, push_type_stack)
4701 (type_stack_cleanup): Declare.
4702
4703 2012-07-06 Tom Tromey <tromey@redhat.com>
4704
4705 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4706 Remove.
4707 (struct type_stack): New.
4708 * parse.c (type_stack, type_stack_size, type_stack_depth):
4709 Remove.
4710 (type_stack): New global.
4711 (parse_exp_in_context, check_type_stack_depth)
4712 (insert_into_type_stack, insert_type, push_type, push_type_int)
4713 (insert_type_address_space, pop_type, pop_type_int)
4714 (_initialize_parse): Update.
4715
4716 2012-07-06 Tom Tromey <tromey@redhat.com>
4717
4718 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4719 Remove %type.
4720
4721 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4722
4723 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4724
4725 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4726 Jan Kratochvil <jan.kratochvil@redhat.com>
4727
4728 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4729 alloca with xmalloc/xfree.
4730
4731 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4732
4733 * MAINTAINERS (Write After Approval): Add myself to the list.
4734
4735 2012-07-05 Doug Evans <dje@google.com>
4736
4737 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4738
4739 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4740
4741 * ax-gdb.c (cli/cli-utils.h): New include.
4742 (linespec.h): Ditto.
4743 (agent_eval_command_one): New function.
4744 (agent_command_1): Ditto.
4745 (agent_command): Call function agent_command_1.
4746 (agent_eval_command): Ditto.
4747 (_initialize_ax_gdb): Change help for "maint agent"
4748 and "maint agent-eval".
4749
4750 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4751
4752 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4753 * cli/cli-utils.c (check_for_argument): New function.
4754 * cli/cli-utils.h (check_for_argument): Ditto.
4755
4756 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4757
4758 * NEWS: Mention x32 ABI support.
4759
4760 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4761
4762 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4763 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4764
4765 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4766 and pc_regnum_from_eax to -1. Update SP regnum from
4767 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4768 needed.
4769
4770 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4771 pc_regnum_from_eax.
4772
4773 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4774
4775 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4776 * dwarf2expr.h: Include gdbtypes.h.
4777 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4778 these forward declarations.
4779 (cu_offset, sect_offset): Move these ...
4780 * gdbtypes.h: Remove include dwarf2expr.h.
4781 (cu_offset, sect_offset): ... here.
4782
4783 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4784
4785 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4786 (amd64_linux_sigtramp_code): This.
4787 (amd64_x32_linux_sigtramp_code): New.
4788 (LINUX_SIGTRAMP_LEN): Updated.
4789 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4790
4791 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4792
4793 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4794
4795 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4796
4797 * config.in: Regenerate.
4798 * configure: Regenerate.
4799 * configure.ac: Remove check for gnu/libc-version.h.
4800 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4801 gnu/libc-version.h.
4802 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4803 variables libc_version, libc_major and libc_minor. Replace sscanf by
4804 inferior_has_bug. Extend the comment.
4805
4806 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4807
4808 * linux-thread-db.c (inferior_has_bug): New function.
4809 (thread_db_find_new_threads_silently): Return boolean as checked by
4810 inferior_has_bug, describe it in the comments.
4811 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4812 earlier. Abort the initialization if it returned non-zero.
4813 (thread_db_new_objfile): Exclude debug files.
4814 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4815 if UNTIL_NO_NEW,
4816
4817 2012-07-02 Doug Evans <dje@google.com>
4818
4819 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4820 related to queue management.
4821
4822 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4823 instead of "debug dwarf2-die" in debugging printfs.
4824 (create_debug_info_hash_table_reader): Ditto.
4825 (create_debug_info_hash_table): Ditto.
4826 (init_dwo_file): Ditto.
4827 (init_cutu_and_read_dies): Add debugging printf.
4828 (init_cutu_and_read_dies_no_follow): Ditto.
4829 (process_psymtab_comp_unit_reader): Ditto.
4830
4831 2012-07-02 Stan Shebs <stan@codesourcery.com>
4832
4833 Add target-side support for dynamic printf.
4834 * NEWS: Mention the additional style.
4835 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4836 (struct bp_location): New field cmd_bytecode.
4837 * breakpoint.c: Include format.h.
4838 (disconnected_dprintf): New global.
4839 (parse_cmd_to_aexpr): New function.
4840 (build_target_command_list): New function.
4841 (insert_bp_location): Call it.
4842 (remove_breakpoints_pid): Skip dprintf breakpoints.
4843 (print_one_breakpoint_location): Ditto.
4844 (dprintf_style_agent): New global.
4845 (dprintf_style_enums): Add dprintf_style_agent.
4846 (update_dprintf_command_list): Add agent case.
4847 (agent_printf_command): New function.
4848 (_initialize_breakpoint): Add new commands.
4849 * common/ax.def (printf): New bytecode.
4850 * ax.h (ax_string): Declare.
4851 * ax-gdb.h (gen_printf): Declare.
4852 * ax-gdb.c: Include cli-utils.h, format.h.
4853 (gen_printf): New function.
4854 (maint_agent_print_command): New function.
4855 (_initialize_ax_gdb): Add maint agent-printf command.
4856 * ax-general.c (ax_string): New function.
4857 (ax_print): Add printf disassembly.
4858 * Makefile.in (SFILES): Add format.c
4859 (COMMON_OBS): Add format.o.
4860 * common/format.h: New file.
4861 * common/format.c: New file.
4862 * printcmd.c: Include format.h.
4863 (ui_printf): Call parse_format_string.
4864 * remote.c (remote_state): New field breakpoint_commands.
4865 (PACKET_BreakpointCommands): New enum.
4866 (remote_breakpoint_commands_feature): New function.
4867 (remote_protocol_features): Add new BreakpointCommands entry.
4868 (remote_can_run_breakpoint_commands): New function.
4869 (remote_add_target_side_commands): New function.
4870 (remote_insert_breakpoint): Call it.
4871 (remote_insert_hw_breakpoint): Ditto.
4872 (_initialize_remote): Add new packet configuration for
4873 target-side breakpoint commands.
4874 * target.h (struct target_ops): New field
4875 to_can_run_breakpoint_commands.
4876 (target_can_run_breakpoint_commands): New macro.
4877 * target.c (update_current_target): Handle
4878 to_can_run_breakpoint_commands.
4879
4880 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4881
4882 Execute -ix and -iex only after system and user gdbinit files.
4883 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4884 processing down after gdbinit files.
4885
4886 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4887
4888 Add fnmatch-gnu module.
4889 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4890 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4891 * gnulib/aclocal.m4: Regenerate.
4892 * gnulib/config.in: Regenerate.
4893 * gnulib/configure: Regenerate.
4894 * gnulib/import/dummy.c: Remove.
4895 * gnulib/import/Makefile.am: Regenerate.
4896 * gnulib/import/Makefile.in: Likewise.
4897 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4898 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4899 * gnulib/import/alloca.c: New file.
4900 * gnulib/import/alloca.in.h: Likewise.
4901 * gnulib/import/config.charset: Likewise.
4902 * gnulib/import/fnmatch.c: Likewise.
4903 * gnulib/import/fnmatch.in.h: Likewise.
4904 * gnulib/import/fnmatch_loop.c: Likewise.
4905 * gnulib/import/localcharset.c: Likewise.
4906 * gnulib/import/localcharset.h: Likewise.
4907 * gnulib/import/m4/alloca.m4: Likewise.
4908 * gnulib/import/m4/codeset.m4: Likewise.
4909 * gnulib/import/m4/configmake.m4: Likewise.
4910 * gnulib/import/m4/fcntl-o.m4: Likewise.
4911 * gnulib/import/m4/fnmatch.m4: Likewise.
4912 * gnulib/import/m4/glibc21.m4: Likewise.
4913 * gnulib/import/m4/localcharset.m4: Likewise.
4914 * gnulib/import/m4/locale-fr.m4: Likewise.
4915 * gnulib/import/m4/locale-ja.m4: Likewise.
4916 * gnulib/import/m4/locale-zh.m4: Likewise.
4917 * gnulib/import/m4/mbrtowc.m4: Likewise.
4918 * gnulib/import/m4/mbsinit.m4: Likewise.
4919 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4920 * gnulib/import/m4/mbstate_t.m4: Likewise.
4921 * gnulib/import/m4/stdbool.m4: Likewise.
4922 * gnulib/import/m4/wchar_h.m4: Likewise.
4923 * gnulib/import/m4/wctype_h.m4: Likewise.
4924 * gnulib/import/m4/wint_t.m4: Likewise.
4925 * gnulib/import/mbrtowc.c: Likewise.
4926 * gnulib/import/mbsinit.c: Likewise.
4927 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4928 * gnulib/import/mbsrtowcs-state.c: Likewise.
4929 * gnulib/import/mbsrtowcs.c: Likewise.
4930 * gnulib/import/ref-add.sin: Likewise.
4931 * gnulib/import/ref-del.sin: Likewise.
4932 * gnulib/import/stdbool.in.h: Likewise.
4933 * gnulib/import/streq.h: Likewise.
4934 * gnulib/import/strnlen1.c: Likewise.
4935 * gnulib/import/strnlen1.h: Likewise.
4936 * gnulib/import/verify.h: Likewise.
4937 * gnulib/import/wchar.in.h: Likewise.
4938 * gnulib/import/wctype.in.h: Likewise.
4939
4940 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4941
4942 Support shell wildcards for 'set auto-load safe-path'.
4943 * auto-load.c: Include fnmatch.h.
4944 (filename_is_in_dir): Rename to ...
4945 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4946 it. Update function comment. Rename dir_len to pattern_len. New
4947 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4948 messages. Use gdb_filename_fnmatch.
4949 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4950 pattern.
4951 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4952 * defs.h (gdb_filename_fnmatch): New declaration.
4953 * utils.c: Include fnmatch.h.
4954 (gdb_filename_fnmatch): New function.
4955
4956 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4957
4958 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4959 `-probe' and `-probe-stap' options.
4960
4961 2012-07-01 Yao Qi <yao@codesourcery.com>
4962
4963 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4964 always_inserted_off, and always_inserted_enums.
4965 Change always_inserted_mode's type to 'enum auto_boolean'.
4966 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4967 callers.
4968 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4969 of add_setshow_enum_cmd.
4970 * infrun.c: Remove can_use_displaced_stepping_auto,
4971 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4972 can_use_displaced_stepping_enum.
4973 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4974 (show_can_use_displaced_stepping, use_displaced_stepping): Update
4975 callers.
4976 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4977 add_setshow_enum_cmd.
4978
4979 2012-06-30 Doug Evans <dje@google.com>
4980
4981 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4982 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4983 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4984
4985 2012-06-29 Doug Evans <dje@google.com>
4986
4987 * linespec.c: #include "stack.h".
4988 (decode_line_with_current_source): Moved here from symtab.c and
4989 renamed from decode_line_spec. All callers updated.
4990 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4991 renamed from decode_line_spec_1. All callers updated.
4992 * linespec.h (decode_line_with_current_source): Move declaration here
4993 from symtab.h and renamed from decode_line_spec.
4994 (decode_line_with_last_displayed): Move declaration here from symtab.h
4995 and renamed from decode_line_spec_1.
4996 * macrocmd.c: #include "linespec.h".
4997 * symtab.c: Remove #include "linespec.h".
4998
4999 2012-06-28 Doug Evans <dje@google.com>
5000
5001 * dwarf2read.c (get_cu_length): New function.
5002 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5003 (create_debug_types_hash_table): Ditto.
5004 (init_cutu_and_read_dies): Ditto.
5005 (init_cutu_and_read_dies_no_follow): Ditto.
5006
5007 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5008
5009 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5010 (struct abbrev_table): Define.
5011 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5012 abbrev_table.
5013 (init_cutu_and_read_dies): Update.
5014 (abbrev_table_alloc_abbrev): New function. Replaces
5015 dwarf_alloc_abbrev. All callers updated.
5016 (abbrev_table_add_abbrev): New function.
5017 (abbrev_table_lookup_abbrev): New function. Replaces
5018 dwarf2_lookup_abbrev. All callers updated.
5019 (abbrev_table_read_table): New function. Contents moved here from
5020 dwarf2_read_abbrevs.
5021 (dwarf2_read_abbrevs): Call it.
5022 (abbrev_table_free): New function.
5023 (dwarf2_free_abbrev_table): Call it.
5024
5025 2012-06-28 Stan Shebs <stan@codesourcery.com>
5026
5027 * osdata.c (info_osdata_command): Filter out "Title" columns
5028 from non-MI uses.
5029 * common/linux-osdata.c (struct osdata_type): Add title field.
5030 (osdata_table): Add titles to each entry.
5031 (linux_command_xfer_osdata): Add a column for title data.
5032
5033 2012-06-28 Stan Shebs <stan@codesourcery.com>
5034
5035 Make logging work for MI.
5036 * NEWS: Mention it.
5037 * interps.h (interp_set_logging_ftype): New typedef.
5038 (struct interp_procs): New field set_logging_proc.
5039 (current_interp_set_logging): Declare.
5040 * interps.c (current_interp_set_logging): New function.
5041 * cli/cli-logging.c: Include interps.h.
5042 (set_logging_redirect): Call current_interp_set_logging.
5043 (pop_output_files): Ditto.
5044 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5045 * mi/mi-console.h (mi_console_set_raw): Declare.
5046 * mi/mi-console.c (mi_console_set_raw): New function.
5047 * mi/mi-interp.c (saved_raw_stdout): New global.
5048 (mi_set_logging): New function.
5049 (_initialize_mi_interp): Add it to interp procs.
5050
5051 2012-06-28 Doug Evans <dje@google.com>
5052
5053 * symtab.c (lookup_symbol_aux_objfile): Use
5054 ALL_OBJFILE_PRIMARY_SYMTABS.
5055
5056 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5057
5058 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5059
5060 * common/buffer.c: Include inttypes.h and stdint.h.
5061 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5062
5063 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5064 Pedro Alves <palves@redhat.com>
5065
5066 * gdbthread.h (ALL_THREADS): New macro.
5067 (thread_list): Declare.
5068 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5069 going, but instead fall through to the stepping handling.
5070 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5071 the passed in signal. Adjust debug output.
5072 (resume_callback): Rename to ...
5073 (linux_nat_resume_callback): ... this. Pass the thread's last
5074 stop signal, if in "pass" state.
5075 (linux_nat_resume): Adjust to rename.
5076 (stop_wait_callback): New assertion. Don't respawn signals;
5077 instead let the LWP remain with SIGNALLED set.
5078 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5079 * remote.c (append_pending_thread_resumptions): New.
5080 (remote_vcont_resume): Call it.
5081 * target.h (target_resume): Extend comment.
5082
5083 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5084
5085 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5086
5087 2012-06-27 Doug Evans <dje@google.com>
5088
5089 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5090 Delete have_addr_base, unused. All uses updated.
5091 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5092 (dwarf2_get_pc_bounds): Add ranges_base.
5093 (dwarf2_record_block_ranges): Ditto.
5094
5095 2012-06-27 Tom Tromey <tromey@redhat.com>
5096
5097 PR macros/7961:
5098 * varobj.c (varobj_create): Update.
5099 (varobj_set_value): Update.
5100 * tracepoint.c (validate_actionline): Update.
5101 (encode_actions_1): Update.
5102 * parse.c (parse_exp_1): Add 'pc' argument.
5103 (parse_exp_in_context): Add 'pc' argument. Change how
5104 expression_context_pc is set.
5105 (parse_expression): Update.
5106 (parse_field_expression): Update.
5107 * expression.h (parse_exp_1): Update.
5108 * eval.c (parse_to_comma_and_eval): Update.
5109 * breakpoint.c (set_breakpoint_condition): Update.
5110 (update_watchpoint): Update.
5111 (init_breakpoint_sal): Update
5112 (find_condition_and_thread): Update.
5113 (watch_command_1): Update.
5114 (update_breakpoint_locations): Update.
5115 * ada-lang.c (ada_read_renaming_var_value): Update.
5116 (create_excep_cond_exprs): Update.
5117
5118 2012-06-27 Doug Evans <dje@google.com>
5119
5120 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5121 type units.
5122
5123 2012-06-26 Doug Evans <dje@google.com>
5124
5125 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5126 prototype.
5127 (error_check_comp_unit_head): New arg abbrev_section. All callers
5128 updated.
5129 (read_and_check_comp_unit_head): Ditto.
5130 (read_and_check_type_unit_head): Ditto.
5131
5132 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5133
5134 New attribute 'last' for gdb.Symtab_and_line.
5135 * NEWS (Python Scripting): Add entry about the new attribute.
5136 * python/py-symtab.c (salpy_get_last): New function which
5137 implements the get method for the 'last' attribute of
5138 gdb.Symtab_and_line.
5139 (sal_object_getset): Add entry for the 'last' attribute.
5140
5141 2012-06-26 Doug Evans <dje@google.com>
5142
5143 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5144 (dwo_sections): Add macinfo, macro.
5145 (dwarf2_locate_dwo_sections): Watch for macro sections.
5146 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5147 All callers updated. Handle DWO files.
5148
5149 * NEWS: Mention new options "set debug dwarf2-read" and
5150 "set debug symtab-create".
5151 * dwarf2read.c (dwarf2_read_debug): New static global.
5152 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5153 (process_queue): Ditto.
5154 (process_full_comp_unit): Ditto.
5155 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5156 * elfread.c (elf_symfile_read): Add debugging printf.
5157 * minsyms.c (install_minimal_symbols): Ditto.
5158 * psymtab.c (allocate_psymtab): Ditto.
5159 * symfile.c (allocate_symtab): Ditto.
5160 * symtab.c (symtab_create_debug): New global.
5161 (_initialize_symtab): Add new option "set debug symtab-create".
5162 * symtab.h (symtab_create_debug): Declare.
5163
5164 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5165 (lookup_dwo_type_unit): Ditto.
5166
5167 2012-06-26 Roland McGrath <roland@hack.frob.com>
5168 H.J. Lu <hongjiu.lu@intel.com>
5169
5170 * amd64-linux-nat.c: Include <sys/user.h>.
5171 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5172 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5173 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5174
5175 * configure.ac: Check if the fs_base and gs_base members of
5176 `struct user_regs_struct' exist.
5177 * config.in: Regenerated.
5178 * configure: Likewise.
5179
5180 2012-06-25 Michael Eager <eager@eagercon.com>
5181
5182 PR python/14291
5183 * python/python.c (gdbpy_write): Check for interrupted output.
5184
5185 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5186
5187 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5188 register as a stack alignment in ARM mode.
5189
5190 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5191
5192 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5193 * gnulib/config.in: Regenerate.
5194 * gnulib/configure: Likewise.
5195 * gnulib/import/m4/extensions.m4: Update it.
5196 * gnulib/import/m4/gnulib-common.m4: Likewise.
5197 * gnulib/import/m4/memmem.m4: Likewise.
5198 * gnulib/import/m4/mmap-anon.m4: Likewise.
5199 * gnulib/import/m4/multiarch.m4: Likewise.
5200 * gnulib/import/stdint.in.h: Likewise.
5201
5202 2012-06-24 Yao Qi <yao@codesourcery.com>
5203
5204 * corefile.c (write_memory_with_notification): New.
5205 * gdbcore.h: Declare write_memory_with_notification.
5206 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5207 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5208 * valops.c (value_assign): Likewise.
5209 * python/py-inferior.c (infpy_write_memory): Call
5210 'write_memory_with_notification'.
5211
5212 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5213
5214 * cc-with-index.sh: Use also -ex "set auto-load no".
5215
5216 2012-06-23 Doug Evans <dje@google.com>
5217
5218 PR 14125
5219 * NEWS: Document additions to .gdb_index.
5220 * dwarf2read.c: #include "gdb/gdb-index.h".
5221 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5222 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5223 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5224 (dwarf2_read_index): Recognize version 7.
5225 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5226 block_kind, domain): All callers updated.
5227 (dw2_find_symbol_file): Handle new index CU values.
5228 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5229 (add_index_entry): New args is_static, kind. All callers updated.
5230 (offset_type_compare, uniquify_cu_indices): New functions
5231 (symbol_kind): New function.
5232 (write_psymtabs_to_index): Remove duplicate CU values.
5233 (write_psymtabs_to_index): Write .gdb_index version 7.
5234
5235 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5236
5237 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5238 * configure: Regenerate.
5239
5240 2012-06-20 Yao Qi <yao@codesourcery.com>
5241
5242 * python/py-inferior.c: Update comments of infpy_read_memory
5243 and infpy_write_memory.
5244
5245 2012-06-19 Tom Tromey <tromey@redhat.com>
5246
5247 PR exp/9514:
5248 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5249 (push_type_address_space): Remove.
5250 * parse.c (insert_into_type_stack): New function.
5251 (insert_type): Likewise.
5252 (insert_type_address_space): Rename from push_type_address_space.
5253 Insert tp_space_identifier.
5254 * c-exp.y (ptr_operator): New production.
5255 (abs_decl): Use ptr_operator.
5256 (space_identifier): Call insert_type_address_space.
5257 (ptype): Don't use const_or_volatile_or_space_identifier.
5258 (const_or_volatile_noopt): Call insert_type.
5259 (conversion_type_id, conversion_declarator): New productions.
5260 (operator): Use conversion_type_id.
5261
5262 2012-06-18 Doug Evans <dje@google.com>
5263
5264 * symtab.h (minimal_symbol): New member created_by_gdb.
5265 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5266 created by gdb.
5267 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5268 (search_symbols): Call it instead of lookup_symbol.
5269 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5270
5271 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5272 Adjust address for DW_OP_GNU_addr_index.
5273 * dwarf2expr.h (dwarf_expr_context): Update comment.
5274 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5275 all callers updated. Handle TLS vars described with
5276 DW_OP_GNU_const_index.
5277 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5278 and DW_OP_GNU_const_index.
5279 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5280
5281 * block.c (find_block_in_blockvector): Make explicit the fact that we
5282 ignore GLOBAL_BLOCK.
5283
5284 2012-06-18 Tom Tromey <tromey@redhat.com>
5285
5286 * c-exp.y (operator): Remove trailing space after "delete" and
5287 "delete[]".
5288
5289 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5290 Jan Kratochvil <jan.kratochvil@redhat.com>
5291
5292 Switch i386 and derived targets to ON_STACK.
5293 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5294 (amd64_dicos_init_abi): Remove its installment.
5295 * dicos-tdep.c (dicos_init_abi): Remove the
5296 set_gdbarch_call_dummy_location call. Update the comment here.
5297 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5298 (i386_dicos_init_abi): Remove its installment.
5299 * i386-tdep.c (i386_push_dummy_code): New function.
5300 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5301 i386_push_dummy_code.
5302
5303 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5304
5305 Remove stale dummy frames.
5306 * breakpoint.c: Include dummy-frame.h.
5307 (longjmp_breakpoint_ops): New variable.
5308 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5309 bp_longjmp_call_dummy.
5310 (bpstat_what, bptype_string, print_one_breakpoint_location)
5311 (init_bp_location): Support bp_longjmp_call_dummy.
5312 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5313 (set_longjmp_breakpoint_for_call_dummy)
5314 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5315 functions.
5316 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5317 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5318 FIXME comment and extend the other comment for bp_call_dummy.
5319 (set_longjmp_breakpoint_for_call_dummy)
5320 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5321 * dummy-frame.c: Include gdbthread.h.
5322 (pop_dummy_frame_bpt): New function.
5323 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5324 (dummy_frame_discard): New function.
5325 (cleanup_dummy_frames): Update the comment about longjmps.
5326 * dummy-frame.h (dummy_frame_discard): New declaration.
5327 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5328 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5329 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5330 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5331 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5332 keep_going if IS_LONGJMP and there is no other reason to stop.
5333
5334 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5335
5336 * remote-sim.c (sim_command_completer): Initialize
5337 variable 'result'.
5338
5339 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5340
5341 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5342 * dwarf2loc.c (call_site_parameter_matches): Support
5343 CALL_SITE_PARAMETER_PARAM_OFFSET.
5344 (needs_dwarf_reg_entry_value): Push stub value.
5345 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5346 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5347 * gdbtypes.h (enum call_site_parameter_kind): New item
5348 CALL_SITE_PARAMETER_PARAM_OFFSET.
5349 (struct call_site.parameter.u): New field param_offset.
5350
5351 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5352
5353 Code cleanup: Generalize call_site.parameter key.
5354 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5355 variable dwarf_reg. New variable kind_u. Update parameters to
5356 push_dwarf_reg_entry_value.
5357 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5358 * dwarf2expr.h (enum call_site_parameter_kind)
5359 (union call_site_parameter_u): Forward declarations.
5360 (struct dwarf_expr_context_funcs): Update parameters and their
5361 description for push_dwarf_reg_entry_value.
5362 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5363 * dwarf2loc.c (call_site_parameter_matches): New function.
5364 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5365 description. Use call_site_parameter_matches.
5366 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5367 Update parameters and their description.
5368 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5369 New variable kind_u. Adjust the caller for updated parameters.
5370 (needs_dwarf_reg_entry_value): Update parameters.
5371 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5372 instead of attr. Update for the changed fields of struct
5373 call_site_parameter.
5374 * gdbtypes.h: Include dwarf2expr.h.
5375 (enum call_site_parameter_kind): New.
5376 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5377 fb_offset into new union u.
5378
5379 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5380
5381 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5382 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5383 for x32.
5384
5385 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5386
5387 * amd64-linux-nat.c (compat_x32_clock_t): New.
5388 (compat_x32_siginfo_t): Likewise.
5389 (compat_x32_siginfo_from_siginfo): Likewise.
5390 (siginfo_from_compat_x32_siginfo): Likewise.
5391 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5392 and siginfo_from_compat_x32_siginfo for x32.
5393
5394 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5395
5396 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5397
5398 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5399
5400 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5401 instead of gdbarch_ptr_bit.
5402 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5403 (amd64_supply_native_gregset): Likewise.
5404 (amd64_collect_native_gregset): Likewise.
5405 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5406 (amd64_supply_xsave): Likewise.
5407 (amd64_collect_fxsave): Likewise.
5408 (amd64_collect_xsave): Likewise.
5409
5410 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5411
5412 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5413 (amd64_linux_read_description): Check DS segment register for
5414 x32 process.
5415
5416 2012-06-15 Tom Tromey <tromey@redhat.com>
5417
5418 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5419 init_cutu_and_read_dies.
5420
5421 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5422
5423 * MAINTAINERS (Write After Approval): Add myself to the list.
5424
5425 2012-06-15 Tom Tromey <tromey@redhat.com>
5426
5427 * valops.c (value_find_oload_method_list): Now static.
5428 * value.h (value_find_oload_method_list): Don't declare.
5429
5430 2012-06-15 Tom Tromey <tromey@redhat.com>
5431
5432 * valops.c (find_overload_match): Use value_ind.
5433
5434 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5435
5436 * infrun.c (handle_inferior_event): Correct indentation.
5437
5438 2012-06-14 Doug Evans <dje@google.com>
5439
5440 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5441 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5442 All uses updated.
5443 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5444 updated. Handle DEBUG_LOC_START_LENGTH.
5445 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5446 (loclist_describe_location): Ditto.
5447
5448 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5449
5450 PR backtrace/13866
5451 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5452 after hiding inline functions.
5453
5454 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5455
5456 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5457 _initialize_inf_ttrace.
5458
5459 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5460
5461 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5462 _initialize_hppa_hpux_nat.
5463
5464 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5465
5466 * remote-sim.c (sim_command_completer): Change type of return
5467 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5468
5469 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5470 Jan Kratochvil <jan.kratochvil@redhat.com>
5471
5472 PR tdep/14222
5473 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5474 stack on a 16-byte boundary.
5475
5476 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5477
5478 * jit.c (finalize_symtab): Set function's return type to 'void' by
5479 default.
5480
5481 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5482 H.J. Lu <hongjiu.lu@intel.com>
5483
5484 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5485 Move bits common to both the classic LP64 and the new x32 ILP32
5486 ABI here.
5487 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5488 (amd64_x32_linux_init_abi): New function.
5489 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5490 subtype.
5491
5492 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5493 * i386-tdep.c (i386_pseudo_register_name): Make public.
5494 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5495 * amd64-tdep.c (amd64_dword_names): Add "eip".
5496 (amd64_x32_pseudo_register_type): New function
5497 (amd64_x32_init_abi): New function.
5498
5499 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5500
5501 PR build/14003
5502 * inferior.h (struct inferior_suspend_state): Comment out.
5503 (struct inferior): Comment out the field suspend.
5504 * infrun.c (struct infcall_suspend_state): Comment out the field
5505 inferior_suspend.
5506 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5507 out its assignment.
5508
5509 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5510
5511 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5512 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5513 function comment. Return ERROR for unresolved cases. Implement
5514 returning proper NAME.
5515 (yylex): Accept also NAME from classify_inner_name.
5516 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5517 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5518 LOC_TYPEDEF type.
5519 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5520
5521 2012-06-13 Tom Tromey <tromey@redhat.com>
5522
5523 * breakpoint.c (condition_completer): New function.
5524 (_initialize_breakpoint): Use it.
5525 * value.c (complete_internalvar): New function.
5526 * value.h (complete_internalvar): Declare.
5527
5528 2012-06-13 Tom Tromey <tromey@redhat.com>
5529
5530 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5531 * breakpoint.c (catch_syscall_completer): Return a VEC.
5532 * cli/cli-cmds.c (complete_command): Update.
5533 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5534 (complete_on_enum): Likewise.
5535 * command.h: Include gdb_vecs.h.
5536 (completer_ftype): Change return type.
5537 (complete_on_cmdlist, complete_on_enum): Likewise.
5538 * completer.c (noop_completer, filename_completer)
5539 (location_completer): Return a VEC.
5540 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5541 to a VEC.
5542 (expression_completer, complete_line_internal, complete_line)
5543 (command_completer): Return a VEC.
5544 (gdb_completion_word_break_characters, line_completion_function):
5545 Update.
5546 * completer.h: Include gdb_vecs.h.
5547 (complete_line, noop_completer, filename_completer)
5548 (expression_completer, location_completer, command_completer):
5549 Update.
5550 * f-lang.c (f_word_break_characters): Return a VEC.
5551 * interps.c (interpreter_completer): Return a VEC.
5552 * language.h (struct language_defn)
5553 <la_make_symbol_completion_list>: Return a VEC.
5554 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5555 * symtab.c (free_completion_list): Take a VEC.
5556 (return_val_size, return_val_index): Remove.
5557 (return_val): Now a VEC.
5558 (completion_list_add_name): Update.
5559 (default_make_symbol_completion_list_break_on)
5560 (default_make_symbol_completion_list, make_symbol_completion_list)
5561 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5562 Return a VEC.
5563 (add_filename_to_list): Update.
5564 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5565 <list>: Now a VEC.
5566 (maybe_add_partial_symtab_filename): Update.
5567 (make_source_files_completion_list): Return a VEC.
5568 * symtab.h (default_make_symbol_completion_list_break_on)
5569 (default_make_symbol_completion_list, make_symbol_completion_list)
5570 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5571 (make_source_files_completion_list): Update.
5572
5573 2012-06-13 Tom Tromey <tromey@redhat.com>
5574
5575 * breakpoint.c (add_catch_command): Use completer_ftype.
5576 * breakpoint.h: Include command.h.
5577 (add_catch_command): Use completer_ftype.
5578 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5579 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5580 Use completer_ftype.
5581 * command.h (completer_ftype): New typedef.
5582 (set_cmd_completer): Use it.
5583 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5584 completer_ftype.
5585
5586 2012-06-13 Pedro Alves <palves@redhat.com>
5587
5588 Partial revert of previous change.
5589
5590 * serial.c (scb_base): New global.
5591 (serial_for_fd): New.
5592 (serial_open, serial_fdopen_ops): Link new serial in open serials
5593 chain.
5594 (do_serial_close): Unlink serial from the open serials chain.
5595
5596 2012-06-12 Pedro Alves <palves@redhat.com>
5597
5598 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5599 threads here.
5600 (prepare_for_detach): No longer context switch here in non-stop
5601 mode.
5602 (fetch_inferior_event): Ditto.
5603 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5604 to the event thread before removing breakpoints. Switch to the
5605 event thread before inserting breakpoints and resuming.
5606 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5607 event thread before resuming.
5608 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5609 Switch to the event thread before removing breakpoints.
5610
5611 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5612
5613 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5614 special characters correctly for the Windows shells. See
5615 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5616 report.
5617 [!__MINGW32__]: Remove extra double quote character from special
5618 characters.
5619
5620 2012-06-11 Stan Shebs <stan@codesourcery.com>
5621
5622 * ui-out.h: Remove #if 0 declarations.
5623 * ui-out.c: Remove #if 0 functions.
5624
5625 2012-06-11 Pedro Alves <palves@redhat.com>
5626
5627 * ser-base.c (run_async_handler_and_reschedule): New.
5628 (fd_event, push_event): Use it.
5629 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5630 reference count to 1.
5631 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5632 instead of xfree.
5633 (serial_is_open, serial_ref, serial_unref): New.
5634 * serial.h (serial_open): Adjust comment.
5635 (serial_is_open): Declare.
5636 (serial_close): Adjust comment.
5637 (serial_ref, serial_unref) Declare.
5638 (struct serial): New field 'refcnt'.
5639
5640 2012-06-11 Pedro Alves <palves@redhat.com>
5641
5642 Remove #if 0'd "connect" command, and unnecessary associated
5643 refcounting and serial reuse bits.
5644
5645 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5646 * serial.c (last_serial_opened): Delete.
5647 (scb_base): Delete.
5648 (serial_open): Adjust.
5649 (serial_for_fd): Delete.
5650 (serial_fdopen_ops, do_serial_close): Adjust.
5651 (serial_fdopen_ops): Adjust.
5652
5653 2012-06-11 Pedro Alves <palves@redhat.com>
5654
5655 * serial.c (do_serial_close): Remove early return when SCB is
5656 null.
5657
5658 2012-06-11 Tom Tromey <tromey@redhat.com>
5659
5660 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5661
5662 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5663
5664 Fix regression by the "ambiguous linespec" series.
5665 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5666 get_last_displayed_symtab and get_last_displayed_line and depending
5667 on CURSAL.
5668
5669 2012-06-11 Tom Tromey <tromey@redhat.com>
5670
5671 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5672 (dw2_find_symbol_file): Use it.
5673
5674 2012-06-11 Michael Eager <eager@eagercon.com>
5675
5676 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5677 * mips-linux-tdep.h (mips_signals): New
5678
5679 2012-06-11 Tom Tromey <tromey@redhat.com>
5680
5681 * infrun.c (handle_inferior_event)
5682 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5683 breakpoint.
5684 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5685 exception logic in all cases. Update comments.
5686 (insert_longjmp_resume_breakpoint): Set the exception resume
5687 breakpoint.
5688
5689 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5690
5691 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5692
5693 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5694
5695 * valarith.c (binop_types_user_defined_p): Fix a typo.
5696
5697 2012-06-08 Yao Qi <yao@codesourcery.com>
5698 Chung-Lin Tang <cltang@codesourcery.com>
5699
5700 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5701 * arch-utils.h: Declare.
5702 * gdbarch.sh: Add return_in_first_hidden_param_p.
5703 * gdbarch.c, gdbarch.h: Regenerated.
5704 * infcall.c (call_function_by_hand): Call
5705 gdbarch_return_in_first_hidden_param_p instead of
5706 language_pass_by_reference.
5707
5708 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5709 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5710 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5711 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5712 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5713 `cplus_return_struct_by_reference'.
5714 (tic6x_return_value): Handle language cplusplus.
5715 (tic6x_return_in_first_hidden_param_p): New.
5716 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5717
5718 2012-06-07 Doug Evans <dje@google.com>
5719
5720 * dwarf2read.c (dwarf2_cu): Add comment.
5721
5722 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5723
5724 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5725 variable.
5726 (mips_eabi_push_dummy_call): Likewise.
5727 (mips_n32n64_push_dummy_call): Likewise.
5728 (mips_o32_push_dummy_call): Likewise.
5729 (mips_o64_push_dummy_call): Likewise.
5730
5731 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5732
5733 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5734
5735 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5736
5737 * mips-tdep.c (mips_pseudo_register_type): Use
5738 mips_float_register_p.
5739
5740 2012-06-06 Pedro Alves <palves@redhat.com>
5741
5742 * infrun.c (handle_inferior_event): Remove calls to
5743 reinit_frame_cache that follow a context_switch call.
5744
5745 2012-06-06 Pedro Alves <palves@redhat.com>
5746
5747 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5748 context_switch and remove stale comment.
5749
5750 2012-06-06 Pedro Alves <palves@redhat.com>
5751
5752 * infrun.c (struct execution_control_state): Remove
5753 `new_thread_event' field.
5754 (handle_inferior_event): Simplify new threads handling; don't
5755 resume the inferior if we find a new thread.
5756
5757 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5758
5759 * NEWS: Document the deprecation of SH's 'regs' command.
5760 * inferior.h (all_registers_info): Add function declaration.
5761 * sh-tdep.c (sh_show_regs): Remove variable.
5762 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5763 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5764 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5765 (sh_show_regs_command): Remove functions.
5766 (sh_gdbarch_init): Don't set sh_show_regs.
5767 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5768 'info all-registers'.
5769 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5770 (sh64_show_regs): Remove functions.
5771 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5772
5773 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5774
5775 * configure.ac: Move development=true below AC_INIT.
5776 * configure: Regenerate.
5777
5778 2012-06-05 Stan Shebs <stan@codesourcery.com>
5779
5780 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5781 gdb_stdout.
5782
5783 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5784
5785 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5786 argument as ssize_t.
5787 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5788 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5789 * target.c (target_read_stack, target_write_memory)
5790 (target_write_raw_memory): Likewise.
5791 * target.h (target_read_stack, target_write_memory)
5792 (target_write_raw_memory): Likewise.
5793
5794 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5795
5796 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5797 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5798 * target.c (target_read_memory): Change LEN to ssize_t.
5799 * target.h (target_read_memory): Change LEN to ssize_t.
5800
5801 2012-06-05 Pedro Alves <palves@redhat.com>
5802
5803 PR backtrace/13866
5804
5805 * breakpoint.c (until_break_command): Only fetch the selected
5806 frame after decode_line_1.
5807
5808 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5809
5810 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5811 event breakpoint at _start, __start or main if a program
5812 interpreter is not found.
5813
5814 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5815
5816 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5817 Add declaration.
5818 * windows-tdep.c: #include "objfiles.h".
5819 (windows_iterate_over_objfiles_in_search_order): New function.
5820 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5821 iterate_over_objfiles_in_search_order gdbarch method to
5822 windows_iterate_over_objfiles_in_search_order.
5823 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5824
5825 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5826
5827 * gdbarch.sh: Add generation of
5828 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5829 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5830 (iterate_over_objfiles_in_search_order): New gdbarch method.
5831 * gdbarch.h, gdbarch.c: Regenerate.
5832 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5833 Add declaration.
5834 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5835 New function.
5836 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5837 out of lookup_symbol_aux_symtabs.
5838 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5839 call to lookup_symbol_aux_objfile.
5840 (struct global_sym_lookup_data): New type.
5841 (lookup_symbol_global_iterator_cb): New function.
5842 (lookup_symbol_global): Search for symbol using
5843 gdbarch_iterate_over_objfiles_in_search_order and
5844 lookup_symbol_global_iterator_cb.
5845 * findvar.c (struct minsym_lookup_data): New type.
5846 (minsym_lookup_iterator_cb): New function.
5847 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5848 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5849 and minsym_lookup_iterator_cb.
5850
5851 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5852
5853 Revert the following patch:
5854 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5855 try locating the symbol in the symbol's own objfile first, before
5856 extending the search to all objfiles.
5857 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5858 out of lookup_symbol_aux_symtabs.
5859 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5860 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5861 Do not search EXCLUDE_OBJFILE.
5862 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5863 (lookup_symbol_global): Search for matches in the block's objfile
5864 first, before searching all other objfiles.
5865
5866 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5867
5868 * breakpoint.c (find_condition_and_thread): Stop parsing
5869 as soon as the first invalid keyword is found.
5870
5871 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5872
5873 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5874
5875 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5876
5877 * config/djgpp/djcheck.sh: Add copyright header.
5878
5879 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5880
5881 * copyright.py (update_files, main): Fix path to update-copyright
5882 script.
5883
5884 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5885
5886 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5887 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5888 for which a reminder to update by hand is printed.
5889
5890 2012-06-04 Doug Evans <dje@google.com>
5891
5892 * buildsym.c (make_blockvector): Add comment.
5893
5894 2012-06-04 Pedro Alves <palves@redhat.com>
5895
5896 * arch-utils.c (default_gdb_signal_from_target): Delete.
5897 * arch-utils.h (default_gdb_signal_from_target): Delete.
5898 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5899 gdbarch_gdb_signal_from_target_p.
5900 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5901 predicate).
5902 * gdbarch.h: Regenerate.
5903 * gdbarch.c: Regenerate.
5904
5905 2012-06-04 Pedro Alves <palves@redhat.com>
5906
5907 * gdbarch.sh (gdb_signal_from_target): Mention that the
5908 implementation of the method must be host independent.
5909 * gdbarch.h: Regenerate.
5910
5911 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5912
5913 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5914 parameters.
5915 (target_read_memory_bfd): New function.
5916 (symbol_file_add_from_memory): Use it.
5917
5918 2012-06-03 Doug Evans <dje@google.com>
5919
5920 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5921 of primary symtab.
5922 (basic_lookup_transparent_type): Ditto.
5923
5924 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5925 (ALL_PRIMARY_SYMTABS): Use it.
5926 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5927 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5928 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5929 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5930 (basic_lookup_transparent_type): Ditto.
5931
5932 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5933
5934 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5935 it to optimize resolution of demangled name.
5936
5937 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5938
5939 * configure.ac (development): Define new variable.
5940 Call AC_CHECK_LIB for mcheck if $development.
5941 (ERROR_ON_WARNING): Enable it by default only if $development.
5942 * config.in: Regenerate.
5943 * configure: Regenerate.
5944
5945 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5946
5947 * target.c (target_read_memory): Make LEN argument as size_t.
5948 * target.h (target_read_memory): Likewise.
5949
5950 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5951
5952 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5953
5954 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5955
5956 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5957 BookE interface for PowerPC server processors if not available
5958 in the Linux Kernel.
5959
5960 2012-05-31 Keith Seitz <keiths@redhat.com>
5961
5962 * linespec.c (decode_objc): Add cleanup to free
5963 INFO.FILE_SYMTABS.
5964 (find_linespec_symbols): Add cleanup to free CLASSES.
5965 * symfile.c (find_separate_debug_file_by_debuglink): Add
5966 cleanup to free DEBUGLINK.
5967 * ui-out.c (clear_header_list): No need to check if
5968 HEADER_NEXT.COLHDR is NULL.
5969 Free HEADER_NEXT.COL_NAME.
5970
5971 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5972
5973 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5974 warning.
5975
5976 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5977
5978 * configure.host (gdb_host_cpu): Handle tilegx*.
5979 (gdb_host): Handle tilegx-*-linux*.
5980 * tilegx-linux-nat.c: New file.
5981 * config/tilegx/linux.mh: New file.
5982
5983 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5984
5985 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5986 tilegx-linux-tdep.o.
5987 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5988 tilegx-linux-tdep.c.
5989 * configure.tgt: Handle tilegx-*-linux*.
5990 * tilegx-tdep.h: New file.
5991 * tilegx-tdep.c: New file.
5992 * tilegx-linux-tdep.c: New file.
5993 * regformats/reg-tilegx.dat: New file.
5994
5995 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5996
5997 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5998 accounting of hw watchpoints on ppc.
5999
6000 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6001
6002 * source.c (openp): Expand tilde in path entries.
6003
6004 2012-05-29 Doug Evans <dje@google.com>
6005
6006 * buildsym.c (block_compar): Fix comment.
6007 (end_symtab): Fix and clarify some comments.
6008
6009 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6010 cleanup_undefined_types.
6011 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6012 All callers updated.
6013
6014 2012-05-29 Tom Tromey <tromey@redhat.com>
6015
6016 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6017 fails.
6018 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6019 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6020 fails.
6021 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6022 fails.
6023
6024 2012-05-29 Tristan Gingold <gingold@adacore.com>
6025
6026 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6027 (struct darwin_info): ... New struct.
6028 (solib_darwin_pspace_data): New variable.
6029 (darwin_pspace_data_cleanup): New function.
6030 (get_darwin_info): Likewise.
6031 (darwin_dyld_version_ok, darwin_load_image_infos)
6032 (darwin_solib_get_all_image_info_addr_at_init)
6033 (darwin_solib_read_all_image_info_addr): Add info argument.
6034 Adjust code.
6035 (darwin_current_sos): Use per pspace structure.
6036 (darwin_solib_create_inferior_hook): Likewise.
6037 (darwin_clear_solib): Likewise.
6038 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6039
6040 2012-05-28 Pedro Alves <palves@redhat.com>
6041
6042 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6043 block that uses them. Clear ecss before handling each event.
6044
6045 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6046
6047 * solib-svr4.c (svr4_current_sos): New comment on
6048 svr4_current_sos_via_xfer_libraries fall back.
6049
6050 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6051
6052 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6053 it as a fallback for TYPE_IS_OPAQUE.
6054 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6055 symbols for lookup_symbol.
6056
6057 2012-05-24 John Steele Scott <toojays@toojays.net>
6058
6059 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6060 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6061 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6062 (check_producer): ... this new function, which also checks for ICC
6063 and caches the result.
6064 (producer_is_icc): New function.
6065 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6066 producer was ICC.
6067
6068 2012-05-24 Pedro Alves <palves@redhat.com>
6069
6070 PR gdb/7205
6071
6072 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6073 (default_gdb_signal_to_target): ... this. Add comment.
6074 (default_gdb_signal_from_host): Rename to ...
6075 (default_gdb_signal_from_target): ... this. Add comment.
6076 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6077 (default_gdb_signal_to_target): ... this.
6078 (default_gdb_signal_from_host): Rename to ...
6079 (default_gdb_signal_from_target): ... this.
6080 * corelow.c (core_open): Adjust to naming change. Replace comment.
6081 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6082 (gdb_signal_from_target): ... this. Adjust to
6083 default_gdb_signal_from_host naming change. Extend comment.
6084 (gdb_signal_to_host): Rename to ...
6085 (gdb_signal_to_target): ... this. Adjust to
6086 default_gdb_signal_to_host naming change.
6087 * gdbarch.h, gdbarch.c: Renegerate.
6088
6089 2012-05-24 Pedro Alves <palves@redhat.com>
6090
6091 PR gdb/7205
6092
6093 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6094
6095 2012-05-24 Pedro Alves <palves@redhat.com>
6096
6097 PR gdb/7205
6098
6099 Replace target_signal with gdb_signal throughout.
6100
6101 2012-05-24 Pedro Alves <palves@redhat.com>
6102
6103 PR tui/14159
6104
6105 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6106 string, instead of reusing the va_list argument.
6107
6108 2012-05-24 Tom Tromey <tromey@redhat.com>
6109
6110 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6111 Remove.
6112
6113 2012-05-23 Doug Evans <dje@google.com>
6114
6115 * symtab.c (search_symbols): Formatting fixes.
6116 (print_symbol_info): Formatting fixes.
6117
6118 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6119 int64_t change to leb128 API.
6120 (read_encoded_value, decode_frame_entry_1): Ditto.
6121 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6122 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6123 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6124 (execute_stack_op): Ditto.
6125 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6126 (safe_read_uleb128, safe_read_sleb128): Ditto.
6127 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6128 (dwarf2_compile_expr_to_ax): Ditto.
6129 (locexpr_describe_location_piece): Ditto.
6130 (disassemble_dwarf_expression): Ditto.
6131 (locexpr_describe_location_1): Ditto.
6132
6133 2012-05-23 Stan Shebs <stan@codesourcery.com>
6134 Kwok Cheung Yeung <kcy@codesourcery.com>
6135
6136 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6137 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6138 (mi-cmd-info.o): New rule.
6139 * osdata.h (info_osdata_command): New declaration.
6140 * osdata.c (info_osdata_command): Change to non-static.
6141 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6142 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6143 * mi/mi-cmd-info.c: New file.
6144
6145 2012-05-23 Doug Evans <dje@google.com>
6146
6147 * symtab.c (search_symbols): Pass NULL for file_matcher to
6148 expand_symtabs_matching if there are no files to match.
6149
6150 * gdbtypes.c (lookup_typename): Simplify.
6151
6152 2012-05-23 Pedro Alves <palves@redhat.com>
6153
6154 * arch-utils.h (default_target_signal_to_host): Delete.
6155 * arch-utils.c (default_target_signal_to_host): Delete.
6156 * gdbarch.sh (target_signal_to_host): Remove.
6157 * gdbarch.h, gdbarch.c: Regenerate.
6158
6159 2012-05-22 Doug Evans <dje@google.com>
6160
6161 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6162 "const gdb_byte *".
6163 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6164 (execute_cfa_program): Update to match API of leb128 functions.
6165 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6166 "const gdb_byte *".
6167 (read_unsigned_leb128, read_signed_leb128): Delete.
6168 (read_initial_length): Change type of buf argument to
6169 "const gdb_byte *".
6170 (read_encoded_value): Update to match API of leb128 functions.
6171 (decode_frame_entry): Change result to "const gdb_byte *", and
6172 similarly for "start" parameter.
6173 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6174 (dwarf2_build_frame_info): Change local frame_ptr to
6175 "const gdb_byte *".
6176 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6177 read_uleb128, read_sleb128. All callers updated.
6178 (safe_skip_leb128): New function.
6179 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6180 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6181 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6182 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6183 read_uleb128, read_sleb128.
6184 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6185 (execute_stack_op): Update to match API of leb128 functions.
6186 * dwarf2expr.h: #include "leb128.h".
6187 (read_uleb128, read_sleb128): Delete.
6188 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6189 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6190 * dwarf2loc.c (debug_loc_kind): New enum.
6191 (decode_debug_loc_addresses): New function.
6192 (decode_debug_loc_dwo_addresses): New function.
6193 (dwarf2_find_location_expression): Rewrite.
6194 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6195 (locexpr_describe_location_piece): Ditto.
6196 (disassemble_dwarf_expression): Ditto.
6197 (locexpr_describe_location_1): Ditto.
6198 (loclist_describe_location): Rewrite.
6199 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6200 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6201 (dwarf2_section_buffer_overflow_complaint): Renamed from
6202 dwarf2_macros_too_long_complaint. All callers updated.
6203 (skip_leb128): Delete.
6204 (init_cu_die_reader): Initialize reader->buffer_end.
6205 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6206 (skip_form_bytes): New arg buffer_end. All callers updated.
6207 Replace call to skip_leb128 with gdb_skip_leb128.
6208 (skip_unknown_opcode): New arg mac_end. All callers updated.
6209 (fill_in_loclist_baton): Initialize baton->from_dwo.
6210
6211 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6212
6213 * mips-linux-nat.c (mips_linux_read_description): Use a more
6214 verbose error message.
6215
6216 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6217
6218 * NEWS: Add MIPS/Linux DSP support.
6219 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6220 (SIGCONTEXT_DSPCTL): New macro.
6221 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6222 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6223 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6224 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6225 (N64_SIGCONTEXT_HI3): Likewise.
6226 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6227 (N64_SIGCONTEXT_LO3): Likewise.
6228 (N64_SIGCONTEXT_DSPCTL): Likewise.
6229 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6230 (mips_linux_o32_sigframe_init): Handle DSP registers.
6231 (mips_linux_n32n64_sigframe_init): Likewise.
6232
6233 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6234
6235 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6236 call to abort.
6237
6238 2012-05-22 Pedro Alves <palves@redhat.com>
6239
6240 * target.h (store_waitstatus): Move declaration ...
6241 * inf-child.h (store_waitstatus): ... here.
6242 * target.c: Move inclusion of gdb_wait.h, and ...
6243 (store_waitstatus): ... this ...
6244 * inf-child.c: ... here.
6245 * linux-nat.c: Include inf-child.h.
6246 * rs6000-nat.c: Include inf-child.h.
6247 * spu-linux-nat.c: Include inf-child.h.
6248
6249 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6250
6251 * tracepoint.c (start_tracing): Add missing i18n markup.
6252 (stop_tracing, set_trace_user): Ditto.
6253 (set_trace_notes, set_trace_stop_notes): Ditto.
6254
6255 2012-05-21 Tom Tromey <tromey@redhat.com>
6256
6257 PR c++/7173:
6258 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6259 types.
6260 * value.h (value_cast_pointers): Update.
6261 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6262 (value_cast): Update.
6263 (update_search_result): New function.
6264 (do_search_struct_field): New, from search_struct_field. Check
6265 for ambiguous results.
6266 (search_struct_field): Rewrite.
6267 * infcall.c (value_arg_coerce): Update.
6268 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6269 value_cast_pointers.
6270 * ada-lang.c (ada_convert_actual): Update.
6271
6272 2012-05-21 Tom Tromey <tromey@redhat.com>
6273
6274 * macroexp.c (macro_stringify): Terminate the string.
6275
6276 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6277
6278 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6279 Describe it.
6280 * auto-load.c (auto_load_expand_dir_vars): New function.
6281 (auto_load_safe_path_vec_update): Use it, remove the
6282 substitute_path_component call thanks to it.
6283 (auto_load_objfile_script): Remove the debug_file_directory processing.
6284 Use auto_load_expand_dir_vars, remove the substitute_path_component
6285 call thanks to it.
6286 * configure: Regenerate.
6287 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6288 path. Escape $ also for $debugdir.
6289 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6290 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6291
6292 2012-05-20 Doug Evans <dje@google.com>
6293
6294 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6295 before use. Check for symtab->includes == NULL before scanning it.
6296
6297 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6298
6299 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6300
6301 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6302
6303 * NEWS: Add microMIPS support and "set mips compression",
6304 "show mips compression" commands.
6305 * mips-tdep.h (mips_isa): New enum.
6306 (gdbarch_tdep): Add mips_isa.
6307 (mips_pc_is_mips16): Update prototype.
6308 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6309 * mips-tdep.c (mips_compression_mips16): New variable.
6310 (mips_compression_micromips): Likewise.
6311 (mips_compression_strings): Likewise.
6312 (mips_compression_string): Likewise.
6313 (is_mips16_isa, is_micromips_isa): New functions.
6314 (is_mips16_addr): Rename to...
6315 (is_compact_addr): ... this.
6316 (unmake_mips16_addr): Likewise to...
6317 (unmake_compact_addr): ... this.
6318 (make_mips16_addr): Likewise to...
6319 (make_compact_addr): ... this.
6320 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6321 functions.
6322 (mips_elf_make_msymbol_special): Handle microMIPS code.
6323 (msymbol_is_special): Rename to...
6324 (msymbol_is_mips16): ... this.
6325 (mips_make_symbol_special, mips_pc_is_mips16): Update
6326 accordingly.
6327 (msymbol_is_mips, msymbol_is_micromips): New functions.
6328 (mips16_to_32_reg): Rename to...
6329 (mips_reg3_to_reg): ... this.
6330 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6331 (mips_pc_isa): Likewise.
6332 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6333 code.
6334 (mips_fetch_instruction): Pass return status instead of printing
6335 an error message if requested. Handle microMIPS code. Bail out
6336 on an invalid ISA.
6337 (micromips_op): New macro.
6338 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6339 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6340 (b6s4_op, b7s3_reg): Likewise.
6341 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6342 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6343 (mips_insn_size): New function.
6344 (mips32_next_pc): Update mips_fetch_instruction call.
6345 (micromips_relative_offset7): New function.
6346 (micromips_relative_offset10): Likewise.
6347 (micromips_relative_offset16): Likewise.
6348 (micromips_pc_insn_size): Likewise.
6349 (micromips_bc1_pc): Likewise.
6350 (micromips_next_pc): Likewise.
6351 (unpack_mips16): Update mips_fetch_instruction call.
6352 (extended_mips16_next_pc): Update according to change to
6353 mips16_to_32_reg.
6354 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6355 code.
6356 (mips16_scan_prologue): Update mips_fetch_instruction call.
6357 Update according to change to mips16_to_32_reg.
6358 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6359 (mips_insn16_frame_base_sniffer): Likewise.
6360 (micromips_decode_imm9): New function.
6361 (micromips_scan_prologue): Likewise.
6362 (mips_micro_frame_cache): Likewise.
6363 (mips_micro_frame_this_id): Likewise.
6364 (mips_micro_frame_prev_register): Likewise.
6365 (mips_micro_frame_sniffer): Likewise.
6366 (mips_micro_frame_unwind): New variable.
6367 (mips_micro_frame_base_address): New function.
6368 (mips_micro_frame_base): New variable.
6369 (mips_micro_frame_base_sniffer): New function.
6370 (mips32_scan_prologue): Update mips_fetch_instruction call.
6371 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6372 rather than for MIPS16.
6373 (mips_insn32_frame_base_sniffer): Likewise.
6374 (mips_addr_bits_remove): Handle microMIPS code.
6375 (deal_with_atomic_sequence): Rename to...
6376 (mips_deal_with_atomic_sequence): ... this. Update the type
6377 of the variable used to hold an instruction. Remove the ISA bit
6378 check. Update mips_fetch_instruction call.
6379 (micromips_deal_with_atomic_sequence): New function.
6380 (deal_with_atomic_sequence): Likewise.
6381 (mips_about_to_return): Handle microMIPS code. Update
6382 mips_fetch_instruction call.
6383 (heuristic_proc_start): Check for the standard MIPS ISA rather
6384 than for MIPS16. Update mips_pc_is_mips16 and
6385 mips_fetch_instruction calls. Handle microMIPS code.
6386 (mips_push_dummy_code): Handle microMIPS code.
6387 (mips_eabi_push_dummy_call): Likewise.
6388 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6389 (mips_o64_push_dummy_call): Handle microMIPS code.
6390 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6391 (is_delayed): Remove function.
6392 (mips_single_step_through_delay): Replace the call to is_delayed
6393 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6394 Handle microMIPS code.
6395 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6396 microMIPS code.
6397 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6398 call.
6399 (micromips_in_function_epilogue_p): New function.
6400 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6401 call.
6402 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6403 Handle microMIPS.
6404 (gdb_print_insn_mips): Likewise.
6405 (mips_breakpoint_from_pc): Likewise.
6406 (mips_remote_breakpoint_from_pc): New function.
6407 (mips32_instruction_has_delay_slot): Simplify making use of the
6408 updated mips_fetch_instruction interface.
6409 (micromips_instruction_has_delay_slot): New function.
6410 (mips16_instruction_has_delay_slot): Simplify making use of the
6411 updated mips_fetch_instruction interface.
6412 (mips_adjust_breakpoint_address): Check for the standard MIPS
6413 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6414 calls. Handle microMIPS code.
6415 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6416 (mips_skip_trampoline_code): Handle microMIPS code.
6417 (global_mips_compression): New function.
6418 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6419 file flags. Register the microMIPS remote breakpoint handler
6420 and heuristic frame unwinder.
6421 (show_mips_compression): New function.
6422 (_initialize_mips_tdep): Add the "set mips compression" and
6423 "show mips compression" commands.
6424
6425 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6426
6427 * ada-lang.c:
6428 * ada-tasks.c:
6429 * ada-varobj.c:
6430 * amd64-darwin-tdep.c:
6431 * arm-symbian-tdep.c:
6432 * arm-tdep.c:
6433 * avr-tdep.c:
6434 * ax-gdb.c:
6435 * bfin-linux-tdep.c:
6436 * breakpoint.c:
6437 * c-valprint.c:
6438 * cli/cli-cmds.c:
6439 * coffread.c:
6440 * cp-support.c:
6441 * cris-tdep.c:
6442 * dwarf2-frame-tailcall.c:
6443 * dwarf2-frame.c:
6444 * dwarf2expr.c:
6445 * dwarf2loc.c:
6446 * dwarf2read.c:
6447 * elfread.c:
6448 * eval.c:
6449 * expprint.c:
6450 * f-valprint.c:
6451 * frv-tdep.c:
6452 * h8300-tdep.c:
6453 * hppa-hpux-tdep.c:
6454 * hppa-tdep.c:
6455 * hppanbsd-tdep.c:
6456 * i386-nto-tdep.c:
6457 * i386-tdep.c:
6458 * i387-tdep.c:
6459 * ia64-tdep.c:
6460 * jit.c:
6461 * linespec.c:
6462 * linux-tdep.c:
6463 * lm32-tdep.c:
6464 * m2-valprint.c:
6465 * m32c-tdep.c:
6466 * m32r-rom.c:
6467 * m32r-tdep.c:
6468 * m68k-tdep.c:
6469 * m68klinux-tdep.c:
6470 * mi/mi-main.c:
6471 * microblaze-tdep.c:
6472 * mips-linux-tdep.c:
6473 * mips-tdep.c:
6474 * mn10300-tdep.c:
6475 * p-valprint.c:
6476 * parse.c:
6477 * ppc-linux-tdep.c:
6478 * ppc-sysv-tdep.c:
6479 * printcmd.c:
6480 * python/py-finishbreakpoint.c:
6481 * python/py-inferior.c:
6482 * python/py-infthread.c:
6483 * python/py-type.c:
6484 * python/python.c:
6485 * remote-fileio.c:
6486 * remote-m32r-sdi.c:
6487 * remote-mips.c:
6488 * reverse.c:
6489 * rl78-tdep.c:
6490 * rs6000-aix-tdep.c:
6491 * rs6000-tdep.c:
6492 * s390-tdep.c:
6493 * score-tdep.c:
6494 * sh64-tdep.c:
6495 * skip.c:
6496 * solib-darwin.c:
6497 * solib-dsbt.c:
6498 * solib-frv.c:
6499 * sparc-tdep.c:
6500 * spu-multiarch.c:
6501 * spu-tdep.c:
6502 * stack.c:
6503 * symfile.c:
6504 * symtab.c:
6505 * tic6x-tdep.c:
6506 * tracepoint.c:
6507 * v850-tdep.c:
6508 * valarith.c:
6509 * valprint.c:
6510 * value.c:
6511 * xcoffread.c:
6512 * xtensa-tdep.c:
6513 * ada-lang.c:
6514 * ada-tasks.c:
6515 * ada-varobj.c:
6516 * amd64-darwin-tdep.c:
6517 * arm-symbian-tdep.c:
6518 * arm-tdep.c: Delete unused variables.
6519
6520 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6521
6522 Rename $ddir to $datadir.
6523 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6524 * auto-load.c (auto_load_safe_path_vec_update)
6525 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6526 * configure: Regenerate.
6527 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6528 Likewise. Remove the 'use $ddir' help string.
6529
6530 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6531
6532 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6533 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6534
6535 2012-05-18 Tom Tromey <tromey@redhat.com>
6536
6537 PR exp/13907:
6538 * valprint.h (struct value_print_options) <symbol_print>: New
6539 field.
6540 * valprint.c (user_print_options): Add default for symbol_print.
6541 (show_symbol_print): New function.
6542 (generic_val_print): Respect symbol_print.
6543 (_initialize_valprint): Add "print symbol" setting.
6544 * f-valprint.c (f_val_print): Respect symbol_print.
6545 * c-valprint.c (c_val_print): Respect symbol_print.
6546 * NEWS: Update.
6547 * printcmd.c (print_address_symbolic): Return int. Ignore some
6548 zero-size symbols.
6549 (print_address_demangle): Return int.
6550 * defs.h: (print_address_symbolic): Return int.
6551 * value.h (print_address_demangle): Return int.
6552
6553 2012-05-18 Tom Tromey <tromey@redhat.com>
6554
6555 * valprint.c (val_print_string): Don't print leading space.
6556 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6557 print space before string or vtbl.
6558 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6559 before string.
6560 * jv-valprint.c (java_value_print): Print space before string.
6561 * go-valprint.c (print_go_string): Print space before string.
6562 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6563 space before string.
6564 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6565 space before string or vtbl.
6566 * auxv.c (fprint_target_auxv): Print space after address.
6567
6568 2012-05-18 Tom Tromey <tromey@redhat.com>
6569
6570 * printcmd.c (print_address_demangle): Remove special case for 0.
6571
6572 2012-05-18 Tom Tromey <tromey@redhat.com>
6573
6574 * printcmd.c (print_address_demangle): Add 'opts' argument.
6575 * p-valprint.c (pascal_val_print): Update.
6576 * jv-valprint.c (java_val_print): Update.
6577 * value.h: Update.
6578 * valprint.c (generic_val_print): Update.
6579 (print_function_pointer_address): Add 'options' argument. Remove
6580 'addressprint' argument. Update.
6581 * m2-valprint.c (print_unpacked_pointer): Update.
6582 * gnu-v3-abi.c (print_one_vtable): Update.
6583 (gnuv3_print_method_ptr): Update.
6584 * f-valprint.c (f_val_print): Update.
6585 * cp-valprint.c (cp_print_value_fields): Update.
6586 * valprint.h (print_function_pointer_address): Update.
6587 * c-valprint.c (c_val_print): Update.
6588
6589 2012-05-18 Tom Tromey <tromey@redhat.com>
6590
6591 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6592 directly corresponding to the found psymtab.
6593 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6594 (dw2_find_pc_sect_symtab): Use it.
6595 * block.h (blockvector_contains_pc): Declare.
6596 * block.c (find_block_in_blockvector): New function.
6597 (blockvector_for_pc_sect): Use it.
6598 (blockvector_contains_pc): New function.
6599
6600 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6601
6602 * mips-tdep.h (mips_write_pc): New prototype.
6603 * mips-tdep.c (mips_write_pc): Make external, add description.
6604 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6605 add description.
6606
6607 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6608
6609 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6610 mips_regnum->pc.
6611 (mips_unwind_pc, mips_write_pc): Likewise.
6612 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6613 gdbarch_read_pc.
6614
6615 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6616
6617 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6618 proc_warn, proc_error, proc_get_status, proc_flags,
6619 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6620 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6621 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6622 proc_stop_process, proc_wait_for_stop, proc_run_process,
6623 proc_set_traced_signals, proc_set_traced_faults,
6624 proc_set_traced_sysentry, proc_set_traced_sysexit,
6625 proc_set_held_signals, proc_get_held_signals,
6626 proc_get_traced_signals, proc_get_traced_faults,
6627 proc_get_traced_sysentry, proc_get_traced_sysexit,
6628 proc_clear_current_fault, proc_set_current_signal,
6629 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6630 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6631 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6632 proc_get_current_thread, proc_get_current_thread,
6633 proc_get_current_thread, proc_update_threads,
6634 proc_update_threads, proc_update_threads, proc_update_threads,
6635 proc_iterate_over_threads, procfs_find_new_threads,
6636 procfs_pid_to_str): Make static. Remove advance declaration.
6637 (proc_cursig): Make static. Conditionalized defintion on
6638 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6639 (proc_syscall, proc_set_kill_on_last_close,
6640 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6641 proc_get_pending_signals, proc_get_signal_actions,
6642 proc_trace_signal, proc_ignore_signal): Delete.
6643
6644 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6645
6646 * coffread.c (cs_section_address): Passing proper argument for
6647 `bfd_get_section_vma'.
6648 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6649 `bfd_get_section_flags'.
6650 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6651 `bfd_get_section_vma'.
6652
6653 2012-05-16 Tom Tromey <tromey@redhat.com>
6654
6655 PR macros/13205:
6656 * macrotab.h: (macro_define_special): Declare.
6657 (enum macro_special_kind): New.
6658 (struct macro_definition) <argc, replacement>: Update comments.
6659 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6660 (macro_define_object_internal): New function.
6661 (macro_define_object): Use it.
6662 (macro_define_special): New function.
6663 (fixup_definition): New function.
6664 (macro_lookup_definition, foreach_macro_in_scope)
6665 (foreach_macro): Use fixup_definition.
6666 * macroexp.h (macro_stringify): Declare.
6667 * macroexp.c (free_buffer_return_text): New function.
6668 (stringify): Constify "arg".
6669 (macro_stringify): New function.
6670 * dwarf2read.c (macro_start_file): Call macro_define_special.
6671
6672 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6673 Maciej W. Rozycki <macro@mips.com>
6674
6675 * breakpoint.h (bp_location): Add related_address member.
6676 * inferior.h (get_return_value): Take a pointer to struct value
6677 instead of struct type for the function requested.
6678 * value.h (using_struct_return): Likewise.
6679 * gdbarch.sh (return_value): Take a pointer to struct value
6680 instead of struct type for the function requested.
6681 * breakpoint.c (set_breakpoint_location_function): Initialize
6682 related_address for bp_gnu_ifunc_resolver breakpoints.
6683 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6684 requested function's address to gdbarch_return_value.
6685 * eval.c (evaluate_subexp_standard): Pass the requested
6686 function's address to using_struct_return.
6687 * infcall.c (call_function_by_hand): Pass the requested
6688 function's address to using_struct_return and
6689 gdbarch_return_value.
6690 * infcmd.c (get_return_value): Take a pointer to struct value
6691 instead of struct type for the function requested.
6692 (print_return_value): Update accordingly.
6693 (finish_command_continuation): Likewise.
6694 * stack.c (return_command): Pass the requested function's
6695 address to using_struct_return and gdbarch_return_value.
6696 * value.c (using_struct_return): Take a pointer to struct value
6697 instead of struct type for the function requested. Pass the
6698 requested function's address to gdbarch_return_value.
6699 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6700 New function_value member, replacing function_type.
6701 (bpfinishpy_dealloc): Update accordingly.
6702 (bpfinishpy_pre_stop_hook): Likewise.
6703 (bpfinishpy_init): Likewise. Record the requested function's
6704 address.
6705 * mips-tdep.c (mips_fval_reg): New enum.
6706 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6707 words put in GP registers.
6708 (mips_o64_push_dummy_call): Update a comment.
6709 (mips_o32_return_value): Take a pointer to struct value instead
6710 of struct type for the function requested and use it to check if
6711 using the MIPS16 calling convention. Return the designated
6712 general purpose registers for floating-point values returned in
6713 MIPS16 mode.
6714 (mips_o64_return_value): Likewise.
6715 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6716 (ppc_sysv_abi_broken_return_value): Likewise.
6717 (ppc64_sysv_abi_return_value): Likewise.
6718 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6719 value instead of struct type for the function requested.
6720 * amd64-tdep.c (amd64_return_value): Likewise.
6721 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6722 * arm-tdep.c (arm_return_value): Likewise.
6723 * avr-tdep.c (avr_return_value): Likewise.
6724 * bfin-tdep.c (bfin_return_value): Likewise.
6725 * cris-tdep.c (cris_return_value): Likewise.
6726 * frv-tdep.c (frv_return_value): Likewise.
6727 * h8300-tdep.c (h8300_return_value): Likewise.
6728 (h8300h_return_value): Likewise.
6729 * hppa-tdep.c (hppa32_return_value): Likewise.
6730 (hppa64_return_value): Likewise.
6731 * i386-tdep.c (i386_return_value): Likewise.
6732 * ia64-tdep.c (ia64_return_value): Likewise.
6733 * iq2000-tdep.c (iq2000_return_value): Likewise.
6734 * lm32-tdep.c (lm32_return_value): Likewise.
6735 * m32c-tdep.c (m32c_return_value): Likewise.
6736 * m32r-tdep.c (m32r_return_value): Likewise.
6737 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6738 * m68k-tdep.c (m68k_return_value): Likewise.
6739 (m68k_svr4_return_value): Likewise.
6740 * m88k-tdep.c (m88k_return_value): Likewise.
6741 * mep-tdep.c (mep_return_value): Likewise.
6742 * microblaze-tdep.c (microblaze_return_value): Likewise.
6743 * mn10300-tdep.c (mn10300_return_value): Likewise.
6744 * moxie-tdep.c (moxie_return_value): Likewise.
6745 * mt-tdep.c (mt_return_value): Likewise.
6746 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6747 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6748 (ppc_sysv_abi_broken_return_value): Likewise.
6749 (ppc64_sysv_abi_return_value): Likewise.
6750 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6751 * rl78-tdep.c (rl78_return_value): Likewise.
6752 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6753 * rx-tdep.c (rx_return_value): Likewise.
6754 * s390-tdep.c (s390_return_value): Likewise.
6755 * score-tdep.c (score_return_value): Likewise.
6756 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6757 (sh_return_value_fpu): Likewise.
6758 * sh64-tdep.c (sh64_return_value): Likewise.
6759 * sparc-tdep.c (sparc32_return_value): Likewise.
6760 * sparc64-tdep.c (sparc64_return_value): Likewise.
6761 * spu-tdep.c (spu_return_value): Likewise.
6762 * tic6x-tdep.c (tic6x_return_value): Likewise.
6763 * v850-tdep.c (v850_return_value): Likewise.
6764 * vax-tdep.c (vax_return_value): Likewise.
6765 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6766 * xtensa-tdep.c (xtensa_return_value): Likewise.
6767 * gdbarch.c: Regenerate.
6768 * gdbarch.h: Regenerate.
6769
6770 2012-05-15 Tom Tromey <tromey@redhat.com>
6771
6772 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6773
6774 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6775
6776 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6777 of command in two error message.
6778
6779 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6780
6781 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6782
6783 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6784
6785 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6786
6787 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6788
6789 * NEWS (show auto-load scripts-directory): Add forgotten command.
6790
6791 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6792
6793 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6794 parameters.
6795
6796 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6797
6798 * amd64-tdep.c: Include features/i386/x32.c and
6799 features/i386/x32-avx.c.
6800 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6801 initialize_tdesc_x32_avx.
6802
6803 2012-05-14 Stan Shebs <stan@codesourcery.com>
6804
6805 Add dynamic printf.
6806 * breakpoint.h (enum bptype): New type bp_dprintf.
6807 (struct breakpoint): New field extra_string.
6808 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6809 (create_breakpoint): Add extra_string arg.
6810 * breakpoint.c (dprintf_breakpoint_ops): New.
6811 (is_breakpoint): Add bp_dprintf.
6812 (bpstat_what): Add dprintf case.
6813 (bptype_string): Ditto.
6814 (print_one_breakpoint_location): Ditto.
6815 (init_bp_location): Ditto.
6816 (bkpt_print_mention): Ditto.
6817 (dprintf_style_enums): New array.
6818 (dprintf_style): New global.
6819 (dprintf_function): New global.
6820 (dprintf_channel): New global.
6821 (update_dprintf_command_list): New function.
6822 (update_dprintf_commands): New function.
6823 (init_breakpoint_sal): Add extra_string argument, handle it.
6824 (create_breakpoint_sal): Add extra_string argument.
6825 (create_breakpoints_sal): Add extra_string argument, update callers.
6826 (find_condition_and_thread): Add extra argument.
6827 (create_breakpoint): Add extra_string argument, record it.
6828 (dprintf_command): New function.
6829 (break_command_1): Add arg to create_breakpoint call.
6830 (handle_gnu_v3_exceptions): Ditto.
6831 (trace_command): Ditto.
6832 (ftrace_command): Ditto.
6833 (strace_command): Ditto.
6834 (bkpt_print_mention): Add dprintf case.
6835 (create_breakpoint_sal_default): Add extra_string argument.
6836 (_initialize_breakpoint): Add new commands.
6837 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6838 * python/py-breakpoint.c (bppy_init): Ditto.
6839 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6840
6841 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6842
6843 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6844
6845 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6846
6847 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6848 unsigned long long.
6849
6850 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6851
6852 Add a new function gdb.find_pc_line to the Python API.
6853 * NEWS (Python Scripting): Add entry about the new function.
6854 * python/python.c (gdbpy_find_pc_line): New function which
6855 implements gdb.find_pc_line.
6856 (GdbMethods): Add entry for the new function.
6857
6858 2012-05-12 Pedro Alves <palves@redhat.com>
6859
6860 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6861 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6862
6863 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6864
6865 * inferior.c: Include completer.h
6866 (initialize_inferiors): Set completer of add-inferior to
6867 filename_completer.
6868
6869 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6870
6871 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6872 gdbarch_ptr_bit for x32 core dump.
6873
6874 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6875
6876 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6877 and features/i386/x32-avx-linux.c.
6878
6879 2012-05-11 Stan Shebs <stan@codesourcery.com>
6880 Kwok Cheung Yeung <kcy@codesourcery.com>
6881
6882 * NEWS: Describe new info os commands.
6883 * common/linux-osdata.c (PID_T, TIME_T): Define.
6884 (MAX_PID_T_STRLEN): New.
6885 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6886 MAX_PID_T_STRLEN.
6887 (command_from_pid): Add comment. Change to use PID_T.
6888 (commandline_from_pid): Change to use PID_T.
6889 (user_from_pid): Add comment.
6890 (get_process_owner): Add comment. Change to use PID_T and
6891 MAX_PID_T_STRLEN.
6892 (get_number_of_cpu_cores): Add comment.
6893 (get_cores_used_by_process): Add comment. Change to use PID_T and
6894 MAX_PID_T_STRLEN.
6895 (linux_xfer_osdata_processes): Change to use PID_T and
6896 MAX_PID_T_STRLEN.
6897 (compare_processes): New function.
6898 (linux_xfer_osdata_processgroups): New function.
6899 (linux_xfer_osdata_threads): Change to use PID_T.
6900 (linux_xfer_osdata_fds): New function.
6901 (format_socket_state, print_sockets): New functions.
6902 (union socket_addr): New union.
6903 (linux_xfer_osdata_isockets): New function.
6904 (time_from_time_t, group_from_gid): New functions.
6905 (linux_xfer_osdata_shm): New function.
6906 (linux_xfer_osdata_sem): New function.
6907 (linux_xfer_osdata_msg): New function.
6908 (linux_xfer_osdata_modules): New function.
6909 (osdata_table): Add new entries.
6910 * common/buffer.c (buffer_xml_printf): Add support for long and
6911 long long format specifiers.
6912
6913 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6914
6915 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6916 (tdesc_x32_avx_linux): Likewise.
6917
6918 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6919
6920 Implement multi-component --with-auto-load-dir.
6921 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6922 entries.
6923 (--with-auto-load-safe-path): Update the default value description.
6924 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6925 New.
6926 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6927 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6928 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6929 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6930 "set auto-load scripts-directory".
6931 * config.in: Regenerate.
6932 * configure: Regenerate.
6933 * configure.ac (--with-auto-load-dir): New configure option.
6934 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6935
6936 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6937
6938 Provide $ddir substitution for --with-auto-load-safe-path.
6939 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6940 entries.
6941 * auto-load.c: Include observer.h.
6942 (auto_load_safe_path_vec_update): Call substitute_path_component for
6943 each component. New variable ddir_subst.
6944 (auto_load_gdb_datadir_changed): New function.
6945 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6946 AUTO_LOAD_SAFE_PATH. New comment.
6947 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6948 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6949 * config.in: Regenerate.
6950 * configure: Regenerate.
6951 * configure.ac (--auto-load-safe-path): Rename
6952 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6953 GDB_DATADIR/auto-load.
6954 * defs.h (substitute_path_component): New declaration.
6955 * top.c: Include observer.h.
6956 (set_gdb_datadir): New function.
6957 (init_main): Install it for "set data-directory".
6958 * utils.c (substitute_path_component): New function.
6959
6960 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6961
6962 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6963 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6964 DEBUG_FILE_DIRECTORY. Handle multiple components of
6965 DEBUG_FILE_DIRECTORY.
6966
6967 2012-05-10 Tom Tromey <tromey@redhat.com>
6968
6969 * dwarf2read.c (recursively_write_psymbols): New function.
6970 (write_psymtabs_to_index): Use it.
6971
6972 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6973 field.
6974 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6975 (load_partial_comp_unit): Update.
6976 (queue_comp_unit): Add argument 'pretend_language'.
6977 (process_queue): Update.
6978 (psymtab_to_symtab_1): Skip dependencies that have a user.
6979 (load_partial_comp_unit_reader): Give meaning to the 'data'
6980 argument.
6981 (load_full_comp_unit): Add 'pretend_language' argument.
6982 (process_full_comp_unit): Add 'pretend_language' argument. Set
6983 language on CU.
6984 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6985 Update.
6986 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6987 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6988 Update.
6989 (prepare_one_comp_unit): Add 'pretend_language' argument.
6990
6991 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6992 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6993 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6994 (dw2_do_instantiate_symtab): Check whether symtab was read in
6995 before queueing.
6996 (dw2_instantiate_symtab): Add assertion. Call
6997 process_cu_includes.
6998 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6999 (partial_symtab_p): New typedef.
7000 (set_partial_user): New function.
7001 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7002 (scan_partial_symbols): Add imported CU to imported_symtabs.
7003 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7004 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7005 (get_symtab, recursively_compute_inclusions)
7006 (compute_symtab_includes, process_cu_includes)
7007 (process_imported_unit_die): New functions.
7008 (process_die) <DW_TAG_imported_unit>: New case.
7009 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7010
7011 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7012 comment.
7013 (struct partial_die_info) <locdesc>: Remove.
7014 <d>: New field.
7015 (process_psymtab_comp_unit): Add 'read_partial' argument.
7016 Update.
7017 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7018 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7019 (add_partial_symbol): Update.
7020 (process_die): Handle DW_TAG_partial_unit.
7021 (read_file_scope): Update comment.
7022 (load_partial_dies): Handle DW_TAG_imported_unit.
7023 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7024 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7025
7026 2012-05-10 Tom Tromey <tromey@redhat.com>
7027
7028 * cc-with-dwz.sh: New file.
7029
7030 2012-05-10 Tom Tromey <tromey@redhat.com>
7031
7032 * symtab.h (struct symtab) <includes, user>: New fields.
7033 * block.h (struct block_iterator) <d, idx, which>: New fields.
7034 * block.c (initialize_block_iterator, find_iterator_symtab)
7035 (block_iterator_step, block_iter_name_step)
7036 (block_iter_match_step): New functions.
7037 (block_iterator_first, block_iterator_next)
7038 (block_iter_name_first, block_iter_name_next)
7039 (block_iter_match_first, block_iter_match_next): Rewrite.
7040 (get_block_symtab): New function.
7041
7042 2012-05-10 Tom Tromey <tromey@redhat.com>
7043
7044 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7045 set_block_symtab.
7046 * jit.c (finalize_symtab): Use allocate_global_block,
7047 set_block_symtab.
7048 * buildsym.c (finish_block_internal): New function, from old
7049 finish_block.
7050 (finish_block): Rewrite.
7051 (end_symtab): Use finish_block_internal, set_block_symtab.
7052 * block.h (struct global_block): New.
7053 (allocate_global_block, set_block_symtab): Declare.
7054 * block.c (allocate_global_block, set_block_symtab): New
7055 functions.
7056
7057 2012-05-10 Tom Tromey <tromey@redhat.com>
7058
7059 * psymtab.c (partial_map_expand_apply): Add assertion.
7060 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7061 (psymtab_to_symtab): Find unshared psymtab.
7062 (dump_psymtab): Print including psymtabs.
7063 (recursively_search_psymtabs): New function.
7064 (expand_symtabs_matching_via_partial): Use it.
7065 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7066 fields.
7067 (enum psymtab_search_status): New.
7068
7069 2012-05-10 Tom Tromey <tromey@redhat.com>
7070
7071 * tracepoint.c (scope_info): Update.
7072 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7073 (find_pc_sect_symtab, search_symbols)
7074 (default_make_symbol_completion_list_break_on)
7075 (make_file_symbol_completion_list): Update.
7076 * symmisc.c (dump_symtab_1): Update.
7077 * stack.c (print_frame_args, iterate_over_block_locals)
7078 (print_frame_labels, iterate_over_block_arg_vars): Update.
7079 * python/py-block.c (block_object) <dict>: Remove.
7080 <block>: New field.
7081 <iter>: Change type.
7082 (blpy_iter): Update.
7083 (blpy_block_syms_iternext): Update.
7084 * psymtab.c (map_block): Use block iterators.
7085 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7086 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7087 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7088 * infrun.c (check_exception_resume): Update.
7089 * cp-support.c (make_symbol_overload_list_block): Update.
7090 * coffread.c (patch_opaque_types): Update.
7091 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7092 * block.h (struct block_iterator): New.
7093 (block_iterator_first, block_iterator_next, block_iter_name_first)
7094 (block_iter_name_next, block_iter_match_first)
7095 (block_iter_match_next): Declare.
7096 (ALL_BLOCK_SYMBOLS): Redefine.
7097 * block.c (block_iterator_first, block_iterator_next)
7098 (block_iter_name_first, block_iter_name_next)
7099 (block_iter_match_first, block_iter_match_next): New functions.
7100 * ada-lang.c (ada_add_block_symbols)
7101 (ada_make_symbol_completion_list): Use block iterator.
7102
7103 2012-05-10 Tom Tromey <tromey@redhat.com>
7104
7105 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7106 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7107 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7108 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7109 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7110 Update.
7111
7112 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7113
7114 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7115 print-file-var-lib2.c, print-file-var-main.c and
7116 print-file-var.exp (located in gdb/testsuite/gdb.base).
7117
7118 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7119
7120 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7121 try locating the symbol in the symbol's own objfile first, before
7122 extending the search to all objfiles.
7123 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7124 out of lookup_symbol_aux_symtabs.
7125 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7126 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7127 Do not search EXCLUDE_OBJFILE.
7128 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7129 (lookup_symbol_global): Search for matches in the block's objfile
7130 first, before searching all other objfiles.
7131
7132 2012-05-10 Tristan Gingold <gingold@adacore.com>
7133
7134 * printcmd.c (set_command): Add pre/post inc/dec.
7135
7136 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7137
7138 * gdb.1: Document -ex option.
7139
7140 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7141
7142 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7143 * inferior.h (AT_SYMBOL): Delete.
7144
7145 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7146
7147 * mips-tdep.c (mips_push_dummy_code): New function.
7148 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7149 ON_STACK and install mips_push_dummy_code as our gdbarch
7150 push_dummy_code routine.
7151
7152 2012-05-09 Pedro Alves <palves@redhat.com>
7153
7154 * target.c (set_maintenance_target_async_permitted): Rename to ...
7155 (set_target_async_command): ... this.
7156 (show_maintenance_target_async_permitted): Rename to ...
7157 (show_target_async_command): ... this.
7158 (initialize_targets): Adjust.
7159
7160 2012-05-08 Doug Evans <dje@google.com>
7161
7162 * go-exp.y (classify_name): Add missing assignment of fields of
7163 yylval.ssym.
7164
7165 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7166
7167 Display the ">" prompt in interactive mode while reading canned
7168 commands, even when the current interpreter is MI.
7169
7170 * interps.c (interp_set_temp): New function.
7171
7172 * interps.h (interp_set_temp): Add prototype.
7173
7174 * cli/cli-script.c (restore_interp): New cleanup function.
7175 (read_command_lines): Temporarily override the current interpreter
7176 with CLI and arrange for restoring the original one.
7177
7178 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7179
7180 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7181
7182 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7183
7184 * probe.c (parse_probes): Move conditional to check for
7185 debuginfo files from here...
7186 * stap-probe.c (stap_get_probes): ... to here.
7187
7188 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7189 H.J. Lu <hongjiu.lu@intel.com>
7190
7191 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7192 `movl %esp, %ebp' for the X32 ABI.
7193
7194 2012-05-07 Tom Tromey <tromey@redhat.com>
7195
7196 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7197 get_DW_TAG_name.
7198 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7199 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7200 (dwarf_stack_op_name): Remove.
7201 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7202 (decode_locdesc): Use get_DW_OP_name.
7203 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7204 (dwarf2_compile_expr_to_ax): Likewise.
7205 (disassemble_dwarf_expression): Likewise.
7206 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7207
7208 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7209
7210 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7211 (sh_linux_sigtramp_cache): New function.
7212 (sh_linux_sigreturn_init): New function.
7213 (sh_linux_rt_sigreturn_init): New function.
7214 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7215 patterns.
7216 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7217 syscall codes.
7218 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7219 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7220 (sh_linux_init_abi): Add init calls to register new tramp_frame
7221 definitions under 32-bit SH, update comments.
7222
7223 2012-05-07 Pedro Alves <palves@redhat.com>
7224
7225 PR gdb/10952
7226
7227 * amd64-linux-tdep.c: Include glibc-tdep.h.
7228 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7229 gdbarch_skip_solib_resolver callback.
7230
7231 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7232
7233 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7234 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7235 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7236 (add_auto_load_safe_path): Change the error message.
7237 (_initialize_auto_load): Change the "safe-path" help text.
7238 * configure: Regenerate
7239 * configure.ac (--without-auto-load-safe-path): Set
7240 WITH_AUTO_LOAD_SAFE_PATH to /.
7241
7242 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7243
7244 * stap-probe.h: Do not include unecessary `probe.h'.
7245
7246 2012-05-05 Alan Modra <amodra@gmail.com>
7247
7248 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7249 bfd_und_section_ptr.
7250 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7251 and bfd_com_section_ptr.
7252
7253 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7254
7255 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7256
7257 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7258
7259 * windows-nat.h (segment_register_p_ftype): New typedef.
7260 (windows_set_segment_register_p): Add declaration.
7261 * windows-nat.c (segment_register_p): New static global.
7262 (windows_set_segment_register_p): New function.
7263 (do_windows_fetch_inferior_registers): Add special handling
7264 for segment registers.
7265 * amd64-windows-nat.c: #include "amd64-tdep.h".
7266 (amd64_windows_segment_register_p): New function.
7267 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7268 * i386-windows-nat.c: #include "i386-tdep.h".
7269 (i386_windows_segment_register_p): New function.
7270 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7271
7272 2012-05-04 Tristan Gingold <gingold@adacore.com>
7273
7274 * printcmd.c (set_command): Emit a warning if the expression is not
7275 an assignment.
7276
7277 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7278
7279 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7280 Make static.
7281
7282 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7283
7284 * stap-probe.c (stap_is_operator): Change declaration.
7285 (stap_get_opcode): Change return value.
7286 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7287 `stap_parse_argument_1'.
7288
7289 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7290
7291 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7292 debug log.
7293
7294 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7295
7296 Add two new methods global_block and static_block to gdb.Symtab
7297 objects.
7298 * NEWS (Python scripting): Add entry about the new methods.
7299 * python/py-symtab.c (stpy_global_block): New function which
7300 implements the gdb.Symtab.global_block() method.
7301 (stpy_static_block): New function which implements the
7302 gdb.Symtab.static_block() method.
7303 (symtab_object_methods): Add entries for the two new methods.
7304
7305 2012-05-03 Doug Evans <dje@google.com>
7306
7307 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7308 files.
7309
7310 2012-05-03 Yao Qi <yao@codesourcery.com>
7311
7312 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7313 space.
7314 (i386_process_record): Ditto.
7315
7316 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7317
7318 * infcall.c (unwind_on_signal_p): Make static.
7319
7320 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7321
7322 * sol-thread.c (solaris_pid_to_str): Make static.
7323 (_initialize_sol_thread): Add prototype.
7324
7325 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7326
7327 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7328
7329 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7330
7331 * MAINTAINERS: Remove myself.
7332
7333 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7334
7335 Fix --without-auto-load-safe-path for MS-Windows host platform.
7336 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7337
7338 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7339
7340 * gdb_curses.h: Undefine KEY_EVENT before including curses
7341 headers. Move "#undef MOUSE_MOVED" before any curses header
7342 inclusion.
7343
7344 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7345
7346 * features/i386/i386-mmx-linux.c: Regenerate.
7347 * features/rs6000/powerpc-32.c: Likewise.
7348 * features/rs6000/powerpc-32l.c: Likewise.
7349 * features/rs6000/powerpc-403.c: Likewise.
7350 * features/rs6000/powerpc-403gc.c: Likewise.
7351 * features/rs6000/powerpc-405.c: Likewise.
7352 * features/rs6000/powerpc-505.c: Likewise.
7353 * features/rs6000/powerpc-601.c: Likewise.
7354 * features/rs6000/powerpc-602.c: Likewise.
7355 * features/rs6000/powerpc-603.c: Likewise.
7356 * features/rs6000/powerpc-604.c: Likewise.
7357 * features/rs6000/powerpc-64.c: Likewise.
7358 * features/rs6000/powerpc-64l.c: Likewise.
7359 * features/rs6000/powerpc-750.c: Likewise.
7360 * features/rs6000/powerpc-860.c: Likewise.
7361 * features/rs6000/powerpc-e500.c: Likewise.
7362 * features/rs6000/powerpc-e500l.c: Likewise.
7363 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7364 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7365 * features/rs6000/rs6000.c: Likewise.
7366
7367 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7368
7369 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7370 variable.
7371 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7372 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7373 (stap_parse_argument) <e>: Likewise.
7374 (handle_stap_probe) <byte_order>: Likewise.
7375
7376 2012-04-30 Doug Evans <dje@google.com>
7377
7378 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7379 init_and_read_dies_worker. All callers updated.
7380 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7381 replaced with init_cutu_and_read_dies.
7382 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7383 (find_partial_die): Remove FIXME. Don't free current CU.
7384
7385 2012-04-30 Sterling Augustine <saugustine@google.com>
7386
7387 * contrib: New directory.
7388 * contrib/test_pubnames_and_indexes.py: New file.
7389
7390 2012-04-30 Doug Evans <dje@google.com>
7391
7392 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7393 All callers updated.
7394 (init_cu_die_reader): Verify the section is non-empty.
7395 (dwarf_decode_line_header): Don't dereference section->asection
7396 until we know the section is present.
7397
7398 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7399
7400 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7401 probes.
7402
7403 2012-04-29 Yao Qi <yao@codesourcery.com>
7404
7405 * gdb-code-style.el: New hook gdb-markup-hook
7406 and gdb-comment-hook.
7407
7408 2012-04-28 Doug Evans <dje@google.com>
7409
7410 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7411 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7412 objfile->obfd.
7413 * symfile.h (dwarf2_debug_sections): New member addr.
7414 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7415 (ctx_no_get_addr_index): New function.
7416 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7417 (ctx_no_get_addr_index): Declare.
7418 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7419 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7420 (dwarf_expr_ctx_funcs): Update.
7421 (needs_get_addr_index): New function.
7422 (needs_frame_ctx_funcs): Update.
7423 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7424 * dwarf2read.c: #include "gdbcore.h".
7425 (dwarf2_per_objfile): New members addr, dwo_files.
7426 (dwarf2_elf_names): Add entry for addr.
7427 (struct dwo_section_names): New type.
7428 (dwo_section_names): New static global.
7429 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7430 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7431 old debug_types_section member updated to use this.
7432 Rename member debug_types_section to info_or_types_section,
7433 all uses updated.
7434 (signatured_type): Rename member type_offset to type_offset_in_tu,
7435 all uses updated. New member type_offset_in_section.
7436 (struct dwo_sections): New type.
7437 (struct dwo_unit): New type.
7438 (struct dwo_file): New type.
7439 (die_reader_specs): New member dwo_file.
7440 (dwarf2_locate_sections): Watch for .debug_addr.
7441 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7442 (dwarf2_read_section): Get bfd of section from bfd's asection,
7443 instead of objfile.
7444 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7445 (create_signatured_type_table_from_index): Initialize
7446 sig_type->info_or_types_section.
7447 (dw2_get_file_names): Statement lists for type units with DWO files
7448 live in the DWO file.
7449 (create_debug_types_hash_table): New function.
7450 (create_all_type_units): Rewrite.
7451 (init_cu_die_reader): New arg dwo_file, all callers updated.
7452 (init_and_read_dies_worker): Get section from
7453 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7454 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7455 continue reading the CU/TU from there.
7456 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7457 updated. Get section from this_cu->info_or_types_section.
7458 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7459 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7460 DW_FORM_GNU_str_index.
7461 (hash_dwo_file, eq_dwo_file): New functions.
7462 (allocate_dwo_file_hash_table): New function.
7463 (hash_dwo_unit, eq_dwo_unit): New functions.
7464 (allocate_dwo_unit_table): New function.
7465 (dwarf2_locate_dwo_sections): New function.
7466 (struct create_dwo_info_table_data): New type.
7467 (create_debug_info_hash_table_reader): New function.
7468 (create_debug_info_hash_table): New function.
7469 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7470 (lookup_dwo_file): New function.
7471 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7472 (free_dwo_file, free_dwo_file_cleanup): New functions.
7473 (free_dwo_file_from_slot, free_dwo_files): New functions.
7474 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7475 (dwarf2_record_block_ranges): Ditto.
7476 (read_partial_die): Ditto.
7477 (process_enumeration_scope): Update to use type_offset_in_section.
7478 (read_full_die_1): New function.
7479 (read_full_die): Rewrite.
7480 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7481 DW_FORM_GNU_str_index.
7482 (read_addr_index_1, read_addr_index): New functions.
7483 (read_addr_index_from_leb128): New function.
7484 (struct dwarf2_read_addr_index_data): New type.
7485 (dwarf2_read_addr_index_reader): New function.
7486 (dwarf2_read_addr_index): New function.
7487 (read_str_index): New function.
7488 (leb128_size): New function.
7489 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7490 If processing a type unit from a DWO file, get the line section
7491 from the DWO file.
7492 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7493 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7494 DW_FORM_GNU_str_index.
7495 (lookup_die_type): Check whether section offset of type's die is
7496 known before looking it up. Remove assert. Condition can
7497 legimately happen for inter-cu type references.
7498 (dwarf_attr_name): Handle Fission attributes.
7499 (dwarf_form_name): Handle Fission forms.
7500 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7501 DW_FORM_GNU_str_index.
7502 (follow_die_sig): Update to use type_offset_in_section.
7503 (decode_locdesc): New case DW_OP_GNU_addr_index.
7504 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7505 DW_FORM_GNU_str_index.
7506 (cu_debug_loc_section): New function.
7507 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7508 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7509 Free DWO files if present.
7510 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7511
7512 Refactor DIE reading.
7513 * dwarf2read.c (dwarf2_per_objfile): Replace members
7514 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7515 (die_reader_specs): New member "die_section". Temporarily make
7516 member "buffer" non-const, pending constifying all info_ptr uses.
7517 (die_reader_func_ftype): New typedef.
7518 (dw2_get_file_names_reader): New function.
7519 (dw2_get_file_names): Rewrite.
7520 (read_and_check_type_unit_head): Rename arg type_offset to
7521 type_offset_in_tu.
7522 (create_all_type_units): Improve debugging message.
7523 Improve dummy type unit check.
7524 (init_cu_die_reader): New arg "section". All callers updated.
7525 (init_and_read_dies_worker): New function.
7526 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7527 (init_cutu_and_read_dies_no_follow): New function.
7528 (init_cutu_and_read_dies_simple): New function.
7529 (process_psymtab_comp_unit_reader): New function.
7530 (process_psymtab_comp_unit): Delete args section,
7531 is_debug_types_section. Rewrite. All callers updated.
7532 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7533 All callers updated. Rewrite.
7534 (load_partial_comp_unit_reader): New function.
7535 (load_partial_comp_unit): Rewrite.
7536 (skip_children): New arg reader. Delete args buffer, cu.
7537 All callers updated.
7538 (skip_one_die): New arg reader. Delete args buffer, cu.
7539 All callers updated.
7540 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7541 All callers updated.
7542 (load_full_comp_unit_reader): New function.
7543 (load_full_comp_unit): Rewrite.
7544 (read_comp_unit): Delete.
7545 (read_die_and_children_1): Delete, contents moved ...
7546 (read_die_and_children): ... here.
7547 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7548 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7549 All callers updated.
7550 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7551 All callers updated.
7552 (find_partial_die): Rewrite load_all_dies support.
7553 (read_attribute_value): New arg reader. Delete args abfd, cu.
7554 All callers updated.
7555 (read_attribute): New arg reader. Delete args abfd, cu.
7556 All callers updated.
7557 (load_full_type_unit): Add assert.
7558 (read_signatured_type_reader): New function.
7559 (read_signatured_type): Rewrite.
7560 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7561 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7562 All callers updated. Set per_cu->cu = NULL after freeing it.
7563 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7564 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7565 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7566 (set_die_type): Update.
7567 (get_die_type_at_offset): Update.
7568 (read_file_scope): Call prepare_one_comp_unit.
7569 (read_type_unit_scope): Ditto.
7570 (prepare_one_comp_unit): Set producer if present.
7571
7572 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7573
7574 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7575 gettext function on `error'.
7576
7577 2012-04-27 Doug Evans <dje@google.com>
7578
7579 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7580 is empty.
7581
7582 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7583 Tom Tromey <tromey@redhat.com>
7584
7585 * breakpoint.c (struct breakpoint_objfile_data)
7586 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7587 <exception_probes>: New fields.
7588 (free_breakpoint_probes): New function.
7589 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7590 `_Unwind_DebugHook'.
7591 (create_exception_master_breakpoint): Likewise.
7592 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7593 * infrun.c: Including necessary header files for handling SystemTap
7594 probes.
7595 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7596 via SystemTap probes.
7597 (check_exception_resume): Remove `func' argument. Handle exception
7598 unwinding breakpoint set via a SystemTap probe.
7599 (insert_exception_resume_from_probe): New function.
7600
7601 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7602 Tom Tromey <tromey@redhat.com>
7603 Jan Kratochvil <jan.kratochvil@redhat.com>
7604
7605 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7606 (COMMON_OBS): Likewise.
7607 (HFILES_NO_SRCDIR): Add `probe'.
7608 * NEWS: Mention support for static and SystemTap probes.
7609 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7610 SystemTap probes' arguments parser.
7611 * arm-linux-tdep.c: Including headers needed to perform the parsing
7612 of SystemTap probes' arguments.
7613 (arm_stap_is_single_operand): New function.
7614 (arm_stap_parse_special_token): Likewise.
7615 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7616 probes' arguments parser.
7617 * ax-gdb.c (require_rvalue): Removing static declaration.
7618 (gen_expr): Likewise.
7619 * ax-gdb.h (gen_expr): Declaring function.
7620 (require_rvalue): Likewise.
7621 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7622 (bkpt_probe_breakpoint_ops): New variable.
7623 (momentary_breakpoint_from_master): Set the `probe' value.
7624 (add_location_to_breakpoint): Likewise.
7625 (break_command_1): Using proper breakpoint_ops according to the
7626 argument passed by the user in the command line.
7627 (bkpt_probe_insert_location): New function.
7628 (bkpt_probe_remove_location): Likewise.
7629 (bkpt_probe_create_sals_from_address): Likewise.
7630 (bkpt_probe_decode_linespec): Likewise.
7631 (tracepoint_probe_create_sals_from_address): Likewise.
7632 (tracepoint_probe_decode_linespec): Likewise.
7633 (tracepoint_probe_breakpoint_ops): New variable.
7634 (trace_command): Using proper breakpoint_ops according to the
7635 argument passed by the user in the command line.
7636 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7637 static probes on breakpoints and tracepoints.
7638 * breakpoint.h (struct bp_location) <probe>: New field.
7639 * cli-utils.c (skip_spaces_const): New function.
7640 (extract_arg): Likewise.
7641 * cli-utils.h (skip_spaces_const): Likewise.
7642 (extract_arg): Likewise.
7643 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7644 * configure.ac: Append `stap-probe.o' to be generated when ELF
7645 support is present.
7646 * configure: Regenerate.
7647 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7648 * elfread.c: Include `probe.h' and `arch-utils.h'.
7649 (probe_key): New variable.
7650 (elf_get_probes): New function.
7651 (elf_get_probe_argument_count): Likewise.
7652 (elf_evaluate_probe_argument): Likewise.
7653 (elf_compile_to_ax): Likewise.
7654 (elf_symfile_relocate_probe): Likewise.
7655 (stap_probe_key_free): Likewise.
7656 (elf_probe_fns): New variable.
7657 (elf_sym_fns): Add `sym_probe_fns' value.
7658 (elf_sym_fns_lazy_psyms): Likewise.
7659 (elf_sym_fns_gdb_index): Likewise.
7660 (_initialize_elfread): Initialize objfile cache for static
7661 probes.
7662 * gdb_vecs.h (struct probe): New forward declaration.
7663 (probe_p): New VEC declaration.
7664 * gdbarch.c: Regenerate.
7665 * gdbarch.h: Regenerate.
7666 * gdbarch.sh (stap_integer_prefix): New variable.
7667 (stap_integer_suffix): Likewise.
7668 (stap_register_prefix): Likewise.
7669 (stap_register_suffix): Likewise.
7670 (stap_register_indirection_prefix): Likewise.
7671 (stap_register_indirection_suffix): Likewise.
7672 (stap_gdb_register_prefix): Likewise.
7673 (stap_gdb_register_suffix): Likewise.
7674 (stap_is_single_operand): New function.
7675 (stap_parse_special_token): Likewise.
7676 (struct stap_parse_info): Forward declaration.
7677 * i386-tdep.c: Including headers needed to perform the parsing
7678 of SystemTap probes' arguments.
7679 (i386_stap_is_single_operand): New function.
7680 (i386_stap_parse_special_token): Likewise.
7681 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7682 probes' arguments parser.
7683 * i386-tdep.h (i386_stap_is_single_operand): New function.
7684 (i386_stap_parse_special_token): Likewise.
7685 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7686 * mipsread.c (ecoff_sym_fns): Likewise.
7687 * objfiles.c (objfile_relocate1): Support relocation for static
7688 probes.
7689 * parse.c (prefixify_expression): Remove static declaration.
7690 (initialize_expout): Likewise.
7691 (reallocate_expout): Likewise.
7692 * parser-defs.h (initialize_expout): Declare function.
7693 (reallocate_expout): Likewise.
7694 (prefixify_expression): Likewise.
7695 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7696 of SystemTap probes' arguments.
7697 (ppc_stap_is_single_operand): New function.
7698 (ppc_stap_parse_special_token): Likewise.
7699 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7700 probes' arguments parser.
7701 * probe.c: New file, for generic statically defined probe support.
7702 * probe.h: Likewise.
7703 * s390-tdep.c: Including headers needed to perform the parsing of
7704 SystemTap probes' arguments.
7705 (s390_stap_is_single_operand): New function.
7706 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7707 probes' arguments parser.
7708 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7709 * stap-probe.c: New file, for SystemTap probe support.
7710 * stap-probe.h: Likewise.
7711 * symfile.h: Include `gdb_vecs.h'.
7712 (struct sym_probe_fns): New struct.
7713 (struct sym_fns) <sym_probe_fns>: New field.
7714 * symtab.c (init_sal): Initialize `probe' field.
7715 * symtab.h (struct probe): Forward declaration.
7716 (struct symtab_and_line) <probe>: New field.
7717 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7718 locations.
7719 (stop_tracing): Likewise.
7720 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7721
7722 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7723 Tom Tromey <tromey@redhat.com>
7724
7725 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7726 and to compile agent expressions.
7727 * infrun.c (siginfo_make_value): New argument `ignore'.
7728 (siginfo_funcs): New struct.
7729 (_initialize_infrun): New argument when calling
7730 `create_internalvar_type_lazy'.
7731 * thread.c (thread_id_make_value): New argument `ignore'.
7732 (thread_funcs): New struct.
7733 (_initialize_thread): New argument when calling
7734 `create_internalvar_type_lazy'.
7735 * tracepoint.c (sdata_make_value): New argument `ignore'.
7736 (sdata_funcs): New struct.
7737 (_initialize_tracepoint): New argument when calling
7738 `create_internalvar_type_lazy'.
7739 * value.c (make_value): New struct.
7740 (create_internalvar_type_lazy): New argument `data'.
7741 (compile_internalvar_to_ax): New function.
7742 (value_of_internalvar): Properly handling `make_value' case.
7743 (clear_internalvar): Likewise.
7744 (show_convenience): Adding `TRY_CATCH' block.
7745 * value.h (internalvar_make_value): Delete, replace by...
7746 (struct internalvar_funcs): ... this.
7747 (create_internalvar_type_lazy) <fun>: Delete argument.
7748 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7749 (compile_internalvar_to_ax): New function.
7750 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7751 (tlb_funcs): New struct.
7752 (_initialize_windows_tdep): New argument when calling
7753 `create_internalvar_type_lazy'.
7754
7755 2012-04-27 Mark Wielaard <mjw@redhat.com>
7756
7757 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7758 see whether it is an address or a constant offset from DW_AT_low_pc.
7759 (dwarf2_record_block_ranges): Likewise.
7760 (read_partial_die): Likewise.
7761
7762 2012-04-26 Mark Wielaard <mjw@redhat.com>
7763
7764 * MAINTAINERS (Write After Approval): Add myself to the list.
7765
7766 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7767
7768 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7769 (proc_prettyprint_signal): Likewise.
7770 (proc_prettyprint_faultset): Likewise.
7771 (proc_prettyprint_fault): Likewise.
7772 (proc_prettyprint_actionset): Likewise.
7773 (proc_prettyprint_flags): Move to new proc-flags.c section.
7774 (proc_prettyfprint_flags): New prototype.
7775 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7776 (proc_syscall, proc_cursig): Likewise.
7777 (proc_set_kill_on_last_close): Likewise.
7778 (proc_unset_kill_on_last_close): Likewise.
7779 (proc_set_watchpoint): Make static.
7780 (proc_delete_dead_threads): Likewise.
7781 (procfs_set_watchpoint): Likewise.
7782 (_initialize_procfs): Add prototype.
7783 * proc-events.c: Include proc-utils.h.
7784 (init_syscall_table): Make static.
7785 * proc-api.c (_initialize_proc_api): Add prototype.
7786 * proc-flags.c: Include proc-utils.h.
7787
7788 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7789
7790 * configure.ac: Add AC_ARG_PROGRAM.
7791 * configure: Regenerate.
7792
7793 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7794
7795 Fix DW_AT_lower_bound defaults for DWARF-4+.
7796 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7797 high. New variable low_default_is_valid. Implement DWARF-4+
7798 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7799 no default by the DWARF standard.
7800
7801 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7802 Maciej W. Rozycki <macro@codesourcery.com>
7803
7804 * infrun.c (handle_inferior_event): Move the check for return
7805 trampolines ahead of the check for function trampolines.
7806 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7807 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7808 (mips_str_mips16_ret_stub): Likewise.
7809 (mips_str_call_fp_stub): Likewise.
7810 (mips_str_call_stub): Likewise.
7811 (mips_str_fn_stub): Likewise.
7812 (mips_str_pic): Likewise.
7813 (mips_in_frame_stub): New function.
7814 (mips_unwind_pc): Return the return address rather than the PC
7815 if the PC of an intermediate frame is inside a call thunk.
7816 (mips_is_stub_suffix): New function.
7817 (mips_is_stub_mode): Likewise.
7818 (mips_get_mips16_fn_stub_pc): Likewise.
7819 (mips_skip_mips16_trampoline_code): Update to handle all the
7820 currently generated stub types. Don't recurse into __fn_stub
7821 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7822 Use cooked register accesses.
7823 (mips_in_return_stub): Reintroduce function.
7824 (mips_skip_trampoline_code): Traverse trampolines recursively.
7825 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7826
7827 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7828
7829 GDB 7.4.1 released.
7830
7831 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7832
7833 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7834 * features/arm-with-m-vfp-d16.xml: New file. Describes
7835 Cortex-M with VFPv4-sp-d16 FPU register layout.
7836 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7837 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7838 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7839 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7840 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7841
7842 2012-04-25 Doug Evans <dje@google.com>
7843
7844 * cli/cli-decode.c (print_doc_line): Use stream instead of
7845 current_uiout.
7846
7847 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7848
7849 * features/arm-with-iwmmxt.c: Regenerate.
7850 * features/arm-with-m-fpa-layout.c: Likewise.
7851 * features/arm-with-m.c: Likewise.
7852 * features/arm-with-neon.c: Likewise.
7853 * features/arm-with-vfpv2.c: Likewise.
7854 * features/arm-with-vfpv3.c: Likewise.
7855 * features/mips-dsp-linux.c: Likewise.
7856 * features/mips-linux.c: Likewise.
7857 * features/mips64-dsp-linux.c: Likewise.
7858 * features/mips64-linux.c: Likewise.
7859 * features/s390-linux32.c: Likewise.
7860 * features/s390-linux32v1.c: Likewise.
7861 * features/s390-linux32v2.c: Likewise.
7862 * features/s390-linux64.c: Likewise.
7863 * features/s390-linux64v1.c: Likewise.
7864 * features/s390-linux64v2.c: Likewise.
7865 * features/s390x-linux64.c: Likewise.
7866 * features/s390x-linux64v1.c: Likewise.
7867 * features/s390x-linux64v2.c: Likewise.
7868 * features/tic6x-c62x-linux.c: Likewise.
7869 * features/tic6x-c62x.c: Likewise.
7870 * features/tic6x-c64x-linux.c: Likewise.
7871 * features/tic6x-c64x.c: Likewise.
7872 * features/tic6x-c64xp-linux.c: Likewise.
7873 * features/tic6x-c64xp.c: Likewise.
7874 * target-descriptions.c: Only generate `field_type' and `type'
7875 variables when needed.
7876
7877 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7878
7879 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7880
7881 2012-04-25 Doug Evans <dje@google.com>
7882
7883 Initial pass at Go language support.
7884 * NEWS: Mention Go.
7885 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7886 go-valprint.c.
7887 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7888 (YYFILES): Add go-exp.c.
7889 (YYOBJ): Add go-exp.o.
7890 (local-maintainer-clean): Delete go-exp.c.
7891 * defs.h (enum language): Add language_go.
7892 * dwarf2read.c: #include "go-lang.h".
7893 (fixup_go_packaging): New function.
7894 (process_full_comp_unit): Call it when processing Go CUs.
7895 (dwarf2_physname): Add Go support.
7896 (read_file_scope): Handle missing language spec for GNU Go.
7897 (set_cu_language): Handle DW_LANG_Go.
7898 * go-exp.y: New file.
7899 * go-lang.h: New file.
7900 * go-lang.c: New file.
7901 * go-typeprint.c: New file.
7902 * go-valprint.c: New file.
7903 * symtab.c: #include "go-lang.h".
7904 (symbol_set_language): Handle language_go.
7905 (symbol_find_demangled_name, symbol_set_names): Ditto.
7906 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7907
7908 2012-04-24 Jim Meyering <meyering@redhat.com>
7909
7910 avoid a few strncpy-induced buffer overruns
7911 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7912 fname and psargs before trying to concatenate.
7913 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7914 "name" before applying strchr.
7915
7916 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7917
7918 * CONTRIBUTE: Use unified diff instead of context diff when
7919 generating patches.
7920
7921 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7922
7923 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7924 code. Handle JR.HB correctly.
7925
7926 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7927
7928 * mips-tdep.c
7929 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7930 with the other MIPS16 helpers.
7931
7932 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7933
7934 * observer.sh: Conditionally declare `args', thus cleaning up
7935 unused instances of this variable.
7936
7937 2012-04-24 Yao Qi <yao@codesourcery.com>
7938
7939 Revert this patch to allow breakpoint always-inserted
7940 in record target.
7941 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7942 * breakpoint.c: Include record.h.
7943 (breakpoints_always_inserted_mode): Return false when the record
7944 target is in use.
7945
7946 * breakpoint.c (iterate_over_bp_locations): New.
7947 * breakpoint.h: Declare.
7948 New typedef walk_bp_location_callback.
7949 * record.c (record_open): Call record_init_record_breakpoints.
7950 (record_sync_record_breakpoints): New.
7951 (record_init_record_breakpoints): New.
7952 * NEWS: Mention supporting breakpoint always-inserted mode in
7953 record target.
7954
7955 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7956
7957 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7958 any thread.
7959
7960 2012-04-24 Yao Qi <yao@codesourcery.com>
7961
7962 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7963 (is_catchpoint): ... it.
7964 (print_one_breakpoint_location): Caller update.
7965 * breakpoint.h: Update declaration.
7966
7967 2012-04-23 David S. Miller <davem@davemloft.net>
7968
7969 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7970
7971 2012-04-23 Tom Tromey <tromey@redhat.com>
7972
7973 * buildsym.c (add_free_pendings): Remove.
7974 * buildsym.h (add_free_pendings): Remove.
7975
7976 2012-04-23 Doug Evans <dje@google.com>
7977
7978 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7979 attr.u.unsnd instead of attr.u.addr.
7980 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7981 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7982 DW_FORM_ref_udata.
7983 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7984 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7985 DW_FORM_ref_udata.
7986 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7987
7988 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7989
7990 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7991 (mips_o32_return_value): Likewise.
7992 (mips_o64_return_value): Likewise.
7993
7994 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7995
7996 * ada-lang.c (ada_evaluate_subexp): Add cases for
7997 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7998 their treatment in eval.c.
7999
8000 2012-04-21 David S. Miller <davem@davemloft.net>
8001
8002 * sparc-tdep.c (X_DISP10): Define.
8003 (sparc_analyze_control_transfer): Handle compare-and-branch.
8004
8005 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8006
8007 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8008 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8009
8010 2012-04-20 Nigel Stephens <nigel@mips.com>
8011 Maciej W. Rozycki <macro@codesourcery.com>
8012
8013 * mips-tdep.c (mips_float_register_p): New function.
8014 (mips_convert_register_float_case_p): Use mips_float_register_p.
8015 (mips_register_type): Likewise.
8016 (mips_print_register): Likewise.
8017 (print_gp_register_row): Likewise.
8018 (mips_print_registers_info): Likewise.
8019
8020 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8021
8022 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8023 of mips16 symbols.
8024
8025 2012-04-20 Andrew Pinski <apinski@cavium.com>
8026
8027 * MAINTAINERS (Write After Approval): Add myself to the list.
8028
8029 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8030
8031 * MAINTAINERS: Update my e-mail address.
8032
8033 2012-04-20 Pedro Alves <palves@redhat.com>
8034
8035 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8036 $srcdir.
8037 * configure: Regenerate.
8038
8039 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8040
8041 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8042 declaration.
8043 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8044
8045 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8046
8047 Fix compilation compatibility with python-2.4
8048 * python/py-type.c (convert_field): Cast ADDRSTRING for
8049 PyObject_SetAttrString as non-const. New comment.
8050
8051 2012-04-19 Tom Tromey <tromey@redhat.com>
8052
8053 * top.c (quit_target): Use all_cleanups.
8054 * main.c (captured_command_loop): Use all_cleanups.
8055 * exceptions.c (throw_exception): Use all_cleanups.
8056
8057 2012-04-19 Pedro Alves <palves@redhat.com>
8058
8059 * Makefile.in (GNULIB_BUILDDIR): New.
8060 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8061 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8062 (CLEANDIRS). Remove gnulib/import.
8063 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8064 (all-lib): Ditto.
8065 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8066 (gnulib/import/Makefile): Replace gnulib/import with
8067 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8068 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8069 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8070 acx_configure_dir.m4.
8071 * acinclude.m4: Include acx_configure_dir.m4.
8072 * acx_configure_dir.m4: New file.
8073 * aclocal.m4: Regenerate.
8074 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8075 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8076 (GNULIB): New variable.
8077 (GNULIB_STDINT_H): Adjust.
8078 (AC_OUTPUT): Don't output gnulib/Makefile.
8079 * gdb/defs.h: Include build-gnulib/config.h.
8080 * aclocal.m4: Regenerate.
8081 * config.in: Regenerate.
8082 * configure: Regenerate.
8083
8084 * gnulib/Makefile.in: New file.
8085 * gnulib/configure.ac: New file.
8086 * gnulib/aclocal.m4: New file.
8087 * gnulib/config.in: New file.
8088 * gnulib/configure: New file.
8089 * gnulib/: Re-run gnulib-tool to adjust.
8090
8091 2012-04-19 Doug Evans <dje@google.com>
8092
8093 * cleanups.h (struct cleanup): Move to cleanups.c.
8094 (make_cleanup_dtor_ftype): New typedef.
8095 (make_cleanup_dtor): Use it.
8096 (ALL_CLEANUPS): Replace with ...
8097 (all_cleanups): ... this. Declare. All uses updated.
8098 * cleanups.c: #include "gdb_assert.h".
8099 (sentinel_cleanup): New static global.
8100 (SENTINEL_CLEANUP): Define.
8101 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8102 (make_my_cleanup2): Assert result is non-NULL.
8103 (all_cleanups): New function.
8104 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8105 of NULL.
8106
8107 2012-04-19 Pedro Alves <palves@redhat.com>
8108
8109 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8110 Adjust paths to gnulib imported files.
8111
8112 2012-04-19 Pedro Alves <palves@redhat.com>
8113
8114 * gnulib/: Move whole directory ...
8115 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8116 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8117 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8118 (aclocal_m4_deps): Adjust.
8119 * aclocal.m4: Regenerate.
8120 * configure: Regenerate.
8121 * configure.ac: Adjust AC_OUTPUT output.
8122
8123 2012-04-19 Yao Qi <yao@codesourcery.com>
8124
8125 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8126 (vec.o): New rule.
8127 * vec.c: Move it ...
8128 * common/vec.c: ... here.
8129 * vec.h: Move it ...
8130 * common/vec.h: ... here.
8131
8132 2012-04-19 Yao Qi <yao@codesourcery.com>
8133
8134 * gdb-code-style.el: New.
8135
8136 2012-04-18 Pedro Alves <palves@redhat.com>
8137
8138 Update gnulib from latest git.
8139 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8140
8141 * gnulib/Makefile.am: Update.
8142 * gnulib/dummy.c: Update.
8143 * gnulib/extra/arg-nonnull.h: Update.
8144 * gnulib/extra/c++defs.h: Update.
8145 * gnulib/extra/update-copyright: Update.
8146 * gnulib/extra/warn-on-use.h: Update.
8147 * gnulib/inttypes.in.h: Update.
8148 * gnulib/m4/00gnulib.m4: Update.
8149 * gnulib/m4/extensions.m4: Update.
8150 * gnulib/m4/gnulib-cache.m4: Update.
8151 * gnulib/m4/gnulib-common.m4: Update.
8152 * gnulib/m4/gnulib-comp.m4: Update.
8153 * gnulib/m4/gnulib-tool.m4: Update.
8154 * gnulib/m4/include_next.m4: Update.
8155 * gnulib/m4/inttypes-pri.m4: Update.
8156 * gnulib/m4/inttypes.m4: Update.
8157 * gnulib/m4/longlong.m4: Update.
8158 * gnulib/m4/memchr.m4: Update.
8159 * gnulib/m4/memmem.m4: Update.
8160 * gnulib/m4/mmap-anon.m4: Update.
8161 * gnulib/m4/multiarch.m4: Update.
8162 * gnulib/m4/onceonly.m4: Update.
8163 * gnulib/m4/stddef_h.m4: Update.
8164 * gnulib/m4/stdint.m4: Update.
8165 * gnulib/m4/string_h.m4: Update.
8166 * gnulib/m4/warn-on-use.m4: Update.
8167 * gnulib/m4/wchar_h.m4: Update.
8168 * gnulib/m4/wchar_t.m4: Update.
8169 * gnulib/m4/wint_t.m4: Update.
8170 * gnulib/memchr.c: Update.
8171 * gnulib/memmem.c: Update.
8172 * gnulib/stddef.in.h: Update.
8173 * gnulib/stdint.in.h: Update.
8174 * gnulib/str-two-way.h: Update.
8175 * gnulib/string.in.h: Update.
8176 * gnulib/wchar.in.h: Update.
8177
8178 * gnulib/extra/arg-nonnull.h: Delete.
8179 * gnulib/extra/c++defs.h: Delete.
8180 * gnulib/extra/warn-on-use.h: Delete.
8181 * gnulib/m4/wchar_h.m4: Delete.
8182 * gnulib/m4/wint_t.m4: Delete.
8183 * gnulib/wchar.in.h: Delete.
8184
8185 * gnulib/extra/snippets/arg-nonnull.h: New.
8186 * gnulib/extra/snippets/c++defs.h: New.
8187 * gnulib/extra/snippets/warn-on-use.h: New.
8188
8189 * aclocal.m4: Regenerate.
8190 * config.in: Regenerate.
8191 * configure: Regenerate.
8192 * gnulib/Makefile.in: Regenerate.
8193
8194 2012-04-18 Pedro Alves <palves@redhat.com>
8195
8196 Reimport the update-copyright module from gnulib
8197 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8198
8199 * configure: Regenerate.
8200 * gnulib/Makefile.am: Update.
8201 * gnulib/Makefile.in: Regenerate.
8202 * gnulib/extra/update-copyright: Update.
8203 * gnulib/m4/gnulib-cache.m4: Update.
8204 * gnulib/m4/gnulib-comp.m4: Update.
8205
8206 2012-04-18 Tristan Gingold <gingold@adacore.com>
8207
8208 * configure.ac (aix): Put -lpthread into libs.
8209 * configure: Regenerate.
8210
8211 2012-04-18 Tom Tromey <tromey@redhat.com>
8212
8213 * linespec.c (convert_linespec_to_sals): Don't use
8214 SYMBOL_OBJ_SECTION.
8215 (compare_msymbols): Arguments are minsym_and_objfile, not
8216 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8217
8218 2012-04-18 Pedro Alves <palves@redhat.com>
8219
8220 Revert gnulib/ part of:
8221 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8222 Copyright year update in most files (performed by copyright.sh).
8223
8224 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8225
8226 Fix 64-bit constants on 32-bit hosts.
8227 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8228 from unsigned long to ULONGEST.
8229 (read_signed_leb128): Change declaration return type from long to
8230 LONGEST.
8231 (dwarf2_const_value_attr): Change declaration parameter value from long
8232 to LONGEST.
8233 (dwarf2_compute_name): Change variable value from long to LONGEST.
8234 (read_unsigned_leb128): Change return type, variable result and some
8235 casts from unsigned long to ULONGEST.
8236 (read_signed_leb128): Change return type, variable result and some
8237 casts from long to LONGEST.
8238 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8239 value from long to LONGEST.
8240 (dwarf2_const_value): Change variable value from long to LONGEST.
8241 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8242 plongest and hex_string.
8243 * symtab.h (struct general_symbol_info): Change ivalue from long to
8244 LONGEST, remove the comment.
8245 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8246 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8247
8248 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8249
8250 PR symtab/7259:
8251 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8252 * ada-lang.c (ada_discrete_type_high_bound)
8253 (ada_discrete_type_low_bound): Fix function comment. Use
8254 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8255 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8256 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8257 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8258 Use TYPE_FIELD_ENUMVAL.
8259 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8260 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8261 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8262 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8263 TYPE_CODE_ENUM.
8264 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8265 * dwarf2read.c (process_enumeration_scope): Likewise.
8266 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8267 field.bitpos.
8268 (class StructMainTypePrettyPrinter): Support also
8269 FIELD_LOC_KIND_ENUMVAL.
8270 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8271 TYPE_CODE_ENUM.
8272 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8273 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8274 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8275 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8276 field enumval.
8277 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8278 accommodate enumval.
8279 (struct call_site): Adjust loc_kind to accommodate enumval.
8280 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8281 (TYPE_FIELD_ENUMVAL): New macros.
8282 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8283 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8284 TYPE_CODE_ENUM.
8285 * p-typeprint.c (pascal_type_print_base): Likewise.
8286 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8287 enumval.
8288 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8289 * python/py-type.c (convert_field): New variable addrstring. Use
8290 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8291 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8292 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8293 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8294 TYPE_CODE_ENUM.
8295 * valprint.c (generic_val_print): Likewise.
8296
8297 2012-04-17 Doug Evans <dje@google.com>
8298
8299 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8300
8301 * dwarf2read.c: Whitespace fixes.
8302 (lookup_signatured_type): Tweak comment.
8303 (get_die_type_at_offset): Fix comment.
8304
8305 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8306
8307 * xcoffread.c (xcoff_secnum_to_sections): New function.
8308 (secnum_to_section, secnum_to_bfd_section): Reimplement
8309 using xcoff_secnum_to_sections. Rename "secnum" parameter
8310 into "n_scnum".
8311 (RECORD_MINIMAL_SYMBOL): Delete.
8312 (record_minimal_symbol): New function.
8313 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8314 by call to record_minimal_symbol and set misc_func_recorded
8315 to 1. Set last_csect_sec to the XCOFF section index instead
8316 of GDB's section_offset index. Update calls to
8317 prim_record_minimal_symbol_and_info to pass the BFD section
8318 as well.
8319
8320 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8321
8322 * xcoffread.c (read_xcoff_symtab): Delete variables
8323 last_csect_val and last_csect_sec and associated code.
8324
8325 2012-04-17 Doug Evans <dje@google.com>
8326
8327 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8328 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8329 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8330 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8331
8332 * cleanups.h: New file.
8333 * cleanups.c: New file.
8334 * Makefile.in (SFILES): Add cleanups.c.
8335 (HFILES_NO_SRCDIR): Add cleanups.h.
8336 (COMMON_OBS): Add cleanups.o.
8337 * defs.h (struct cleanup): Moved to cleanups.h.
8338 (do_cleanups,do_final_cleanups): Ditto.
8339 (discard_cleanups,discard_final_cleanups): Ditto
8340 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8341 (save_cleanups,save_final_cleanups): Ditto.
8342 (restore_cleanups,restore_final_cleanups): Ditto.
8343 (null_cleanup): Ditto.
8344 (make_my_cleanup,make_my_cleanup2): Ditto.
8345 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8346 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8347 (do_cleanups,do_final_cleanups): Ditto.
8348 (discard_cleanups,discard_final_cleanups): Ditto
8349 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8350 (save_cleanups,save_final_cleanups): Ditto.
8351 (restore_cleanups,restore_final_cleanups): Ditto.
8352 (null_cleanup): Ditto.
8353 (make_my_cleanup,make_my_cleanup2): Ditto.
8354 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8355
8356 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8357 make_my_cleanup.
8358 (make_cleanup_dyn_string_delete): Ditto.
8359 (make_cleanup_ui_file_delete): Ditto.
8360 (make_cleanup_ui_out_redirect_pop): Ditto.
8361 (make_cleanup_free_section_addr_info): Ditto.
8362 (make_cleanup_restore_integer): Ditto.
8363 (make_cleanup_unpush_target): Ditto.
8364 (make_cleanup_value_free_to_mark): Ditto.
8365 (make_cleanup_value_free): Ditto.
8366 (make_cleanup_free_so): Ditto.
8367
8368 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8369
8370 New option "set debug auto-load".
8371 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8372 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8373 (auto_load_safe_path_vec_update)
8374 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8375 if DEBUG_AUTO_LOAD.
8376 (file_is_auto_load_safe): New parameters debug_fmt and ....
8377 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8378 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8379 caller by explanatory string.
8380 (_initialize_auto_load): Register "set debug auto-load".
8381 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8382 and ....
8383 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8384 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8385 by explanatory string.
8386 * main.c (captured_main): Likewise.
8387 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8388 (source_section_scripts): Likewise.
8389
8390 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8391
8392 New option "set auto-load safe-path".
8393 * NEWS: New commands "set auto-load safe-path"
8394 and "show auto-load safe-path".
8395 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8396 (auto_load_safe_path, auto_load_safe_path_vec)
8397 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8398 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8399 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8400 (source_gdb_script_for_objfile): New variable is_safe. Call
8401 file_is_auto_load_safe. Return if it is not.
8402 (struct loaded_script): New field loaded.
8403 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8404 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8405 output "Missing" to "No".
8406 (_initialize_auto_load): New variable cmd. Initialize
8407 auto_load_safe_path. Register "set auto-load safe-path",
8408 "show auto-load safe-path" and "add-auto-load-safe-path".
8409 * auto-load.h (maybe_add_script): Add parameter loaded.
8410 (file_is_auto_load_safe): New declaration.
8411 * config.in: Regenerate.
8412 * configure: Regenerate.
8413 * configure.ac: New parameters --with-auto-load-safe-path
8414 and --without-auto-load-safe-path.
8415 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8416 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8417 * main.c (captured_main): Check file_is_auto_load_safe for
8418 LOCAL_GDBINIT.
8419 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8420 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8421 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8422 not.
8423
8424 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8425
8426 auto-load: Implementation.
8427 * NEWS: New descriptions for "info auto-load",
8428 "info auto-load gdb-scripts", "info auto-load python-scripts",
8429 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8430 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8431 and "show auto-load-scripts". New description for "set auto-load",
8432 "show auto-load", "set auto-load gdb-scripts",
8433 "show auto-load gdb-scripts", "set auto-load python-scripts",
8434 "show auto-load python-scripts", "set auto-load local-gdbinit",
8435 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8436 "show auto-load libthread-db".
8437 * auto-load.c: Remove include python/python-internal.h. Add includes
8438 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8439 cli/cli-setshow.h.
8440 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8441 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8442 (gdbpy_global_auto_load): Rename to ...
8443 (global_auto_load): ... here.
8444 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8445 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8446 (script_language_gdb, source_gdb_script_for_objfile): New.
8447 (struct loaded_script): New field language.
8448 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8449 LANGUAGE.
8450 (maybe_add_script): Add parameter language. Drop redundant
8451 entry.full_path initialization. Initialize entry.language and
8452 (*slot)->language.
8453 (auto_load_objfile_script): Change parameter suffix to language.
8454 Remove the call of maybe_add_script.
8455 Call language->source_script_for_objfile.
8456 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8457 New.
8458 (collect_matching_scripts): Adjust it for
8459 struct collect_matching_scripts_data.
8460 (auto_load_info_scripts_pattern_nl): New variable.
8461 (info_auto_load_scripts): Rename to ...
8462 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8463 for struct collect_matching_scripts_data.
8464 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8465 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8466 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8467 (auto_load_info_cmdlist_get): New.
8468 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8469 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8470 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8471 "info auto-load local-gdbinit".
8472 * auto-load.h (struct script_language): New.
8473 (gdbpy_global_auto_load): Rename to ...
8474 (global_auto_load): ... here.
8475 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8476 (auto_load_local_gdbinit_loaded): New declarations.
8477 (maybe_add_script): New parameter language.
8478 (auto_load_objfile_script): Change parameter suffix to language.
8479 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8480 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8481 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8482 declarations.
8483 * linux-thread-db.c: Include auto-load.h and ctype.h.
8484 (auto_load_thread_db, show_auto_load_thread_db): New.
8485 (struct thread_db_info): New field filename.
8486 (delete_thread_db_info): Call xfree for FILENAME.
8487 (try_thread_db_load): Initialize FILENAME.
8488 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8489 if !AUTO_LOAD_THREAD_DB.
8490 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8491 (_initialize_thread_db): Install auto_load_thread_db
8492 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8493 as "info auto-load libthread-db".
8494 * main.c (captured_main): Rename gdbpy_global_auto_load to
8495 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8496 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8497 (print_gdb_help): Extend the help for 'local init file'.
8498 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8499 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8500 (auto_load_scripts): Rename to ...
8501 (auto_load_python_scripts): ... here, update the comment.
8502 (gdbpy_load_auto_script_for_objfile): New declaration.
8503 (show_auto_load_python_scripts, script_language_python)
8504 (gdbpy_load_auto_script_for_objfile): New.
8505 (source_section_scripts): Refactor the code.
8506 (load_auto_scripts_for_objfile): Rename to ...
8507 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8508 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8509 (info_auto_load_python_scripts): New.
8510 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8511 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8512 Register "set auto-load-scripts" as its deprecated alias. Register
8513 "info auto-load python-scripts". Register "info auto-load-scripts" as
8514 its deprecated alias.
8515 (load_auto_scripts_for_objfile): Rename to ...
8516 (gdbpy_load_auto_scripts_for_objfile): ... here.
8517 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8518 (gdbpy_load_auto_scripts_for_objfile): ... here.
8519
8520 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8521
8522 auto-load: Move files.
8523 * Makefile.in (SFILES): Add auto-load.c.
8524 (HFILES_NO_SRCDIR): Add auto-load.h.
8525 (COMMON_OBS): Add auto-load.o.
8526 (distclean): Change .gdbinit for gdb-gdb.gdb.
8527 * auto-load.c: New file, with parts from python/py-auto-load.c.
8528 * auto-load.h: New file, with parts from python/python.h.
8529 * configure: Regenerate.
8530 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8531 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8532 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8533 * main.c: Include auto-load.h.
8534 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8535 command.h, observer.h and progspace.h to auto-load.c. Add include
8536 auto-load.h.
8537 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8538 (struct loaded_script, auto_load_pspace_data)
8539 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8540 (hash_loaded_script_entry, eq_loaded_script_entry)
8541 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8542 (maybe_add_script): Move to auto-load.c.
8543 (source_section_scripts): Change maybe_add_script parameters passing,
8544 use script_not_found_warning_print.
8545 (clear_section_scripts, auto_load_objfile_script)
8546 (auto_load_new_objfile, loaded_script_ptr)
8547 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8548 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8549 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8550 auto_load_new_objfile and info_auto_load_scripts initizations to
8551 auto-load.c.
8552 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8553
8554 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8555
8556 Code cleanup.
8557 * charset.c (find_charset_names): Remove variables ix and elt.
8558 Use free_char_ptr_vec.
8559 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8560 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8561 debugdir_end. New variable debugdir_len.
8562 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8563 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8564 declarations.
8565 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8566 and elt. Use free_char_ptr_vec.
8567 * source.c (add_path): Remove variables argv, arg and argv_index.
8568 New variables dir_vec, back_to, ix and name.
8569 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8570 make_cleanup_freeargv. Remove variable separator. Simplify the code
8571 no longer expecting DIRNAME_SEPARATOR.
8572 (openp): Remove variable p, p1 and len. New variables dir_vec,
8573 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8574 no longer expecting DIRNAME_SEPARATOR.
8575 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8576 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8577 debugdir_end.
8578 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8579 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8580 (dirnames_to_char_ptr_vec): New functions.
8581
8582 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8583
8584 Code cleanup.
8585 * source.c (add_path): Remove always true conditional 'p == 0' and
8586 unindent its code block.
8587
8588 2012-04-17 Pedro Alves <palves@redhat.com>
8589
8590 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8591 (FIELD_BITPOS_LVAL): ... this.
8592 (FIELD_BITPOS): New.
8593 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8594 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8595 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8596 SET_FIELD_BITPOS.
8597 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8598 SET_FIELD_BITPOS.
8599 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8600 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8601 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8602 SET_FIELD_BITPOS.
8603
8604 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8605
8606 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8607 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8608 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8609 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8610 * jv-lang.c (java_link_class_type): Likewise, once.
8611 * stabsread.c (read_enum_type): Likewise.
8612
8613 2012-04-16 Yao Qi <yao@codesourcery.com>
8614
8615 * common/agent.c (agent_run_command): Add one more parameter `len'.
8616 Update callers.
8617 * common/agent.h: Update declaration.
8618 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8619 Update.
8620 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8621
8622 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8623
8624 PR mi/13393
8625 * value.c (value_actual_type): New function.
8626 * value.h (value_actual_type): New declaration.
8627 * varobj.c (update_type_if_necessary): New function.
8628 (varobj_create): Call value_actual_type instead of
8629 value_type.
8630 (install_dynamic_child): distinct changed and type changed MI variable
8631 objects.
8632 (update_dynamic_varobj_children): Updated for install_dynamic_child
8633 change. All callers updated.
8634 (varobj_update): Support for MI variable object type change if
8635 the value changed and RTTI is used to determine the type.
8636 (create_child_with_value): Call value_actual_type instead of
8637 value_type.
8638 (adjust_value_for_child_access): Extended with a new parameter which
8639 specify whether the given value should be casted to enclosing type.
8640 All callers updated.
8641
8642 2012-04-14 Yao Qi <yao@codesourcery.com>
8643
8644 Import gnulib module inttypes from git
8645 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8646 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8647 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8648 gnulib/m4/inttypes-pri.m4
8649 * aclocal.m4, config.in, configure: Regenerated.
8650 * gnulib/Makefile.am: Update.
8651 * gnulib/Makefile.in: Update.
8652 * gnulib/m4/gnulib-cache.m4: Update.
8653 * gnulib/m4/gnulib-comp.m4: Update.
8654 * gnulib/inttypes.in.h: New.
8655 * gnulib/m4/inttypes-pri.m4: New.
8656 * gnulib/m4/inttypes.m4: New.
8657
8658 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8659
8660 * infrun.c (resume): Update PC address to the real PC after
8661 preparing to do displaced stepping.
8662
8663 2012-04-12 Doug Evans <dje@google.com>
8664
8665 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8666 All callers updated.
8667
8668 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8669
8670 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8671
8672 2012-04-12 Doug Evans <dje@google.com>
8673
8674 * dwarf2read.c (create_all_type_units): Renamed from
8675 create_debug_types_hash_table. All callers updated.
8676
8677 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8678 local type_sig to sig_type, type_offset to type_offset_in_tu.
8679 (hash_signatured_type): Renamed from hash_type_signature,
8680 all callers updated.
8681 (eq_signatured_type): Renamed from eq_type_signature,
8682 all callers updated.
8683 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8684 (process_enumeration_scope): Ditto.
8685 (lookup_signatured_type_at_offset): Ditto.
8686 (load_full_type_unit, read_signatured_type): Ditto.
8687
8688 2012-04-12 Yao Qi <yao@codesourcery.com>
8689
8690 * remote.c (async_remote_interrupt): Correct function name in
8691 debug message.
8692 (async_remote_interrupt_twice): Ditto.
8693
8694 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8695
8696 * source.c (find_and_open_source): Consistently pass resulting
8697 full path through xfullpath.
8698
8699 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8700
8701 Provide more specific displaced-stepping memory error message.
8702 * infrun.c (displaced_step_prepare): New variable status. Call
8703 target_read_memory instead of read_memory, provide more specific
8704 error message.
8705
8706 2012-04-11 Tristan Gingold <gingold@adacore.com>
8707
8708 PR gdb/13901
8709 * darwin-nat.c (darwin_execvp): Revert previous patch.
8710
8711 2012-04-11 Tristan Gingold <gingold@adacore.com>
8712
8713 PR gdb/13901
8714 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8715 in case of change.
8716
8717 2012-04-11 Tristan Gingold <gingold@adacore.com>
8718
8719 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8720 warning.
8721
8722 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8723
8724 New command 'explore' which helps explore values and types in
8725 scope.
8726 * NEWS: Add an entry about the new 'explore' command.
8727 * data-directory/Makefile.in: Add gdb/command/explore.py
8728 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8729 command using the GDB Python API.
8730
8731 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8732
8733 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8734 extension in jump target calculation.
8735
8736 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8737
8738 * mips-tdep.c (mips32_next_pc): Handle JALX.
8739
8740 2012-04-10 Yao Qi <yao@codesourcery.com>
8741
8742 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8743
8744 2012-04-10 Yao Qi <yao@codesourcery.com>
8745
8746 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8747 and gnulib/m4/gnulib-tool.m4.
8748
8749 2012-04-10 Doug Evans <dje@google.com>
8750
8751 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8752 (load_partial_dies): Clarify comment.
8753 (find_partial_die): Support rereading type units.
8754 Clarify CU handling, if we know offset is in CU, don't search for the
8755 containing CU. Add comment regarding memory waste.
8756
8757 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8758
8759 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8760 i386/x32-avx and i386/x32-avx-linux.
8761 (i386/x32-expedite): New.
8762 (i386/x32-linux-expedite): Likewise.
8763 (i386/x32-avx-expedite): Likewise.
8764 (i386/x32-avx-linux-expedite): Likewise.
8765 ($(outdir)/i386/x32.dat): Likewise.
8766 ($(outdir)/i386/x32-linux.dat): Likewise.
8767 ($(outdir)/i386/x32-avx.dat): Likewise.
8768 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8769
8770 * features/i386/x32-avx-linux.xml: New file.
8771 * features/i386/x32-avx.xml: Likewise.
8772 * features/i386/x32-core.xml: Likewise.
8773 * features/i386/x32-linux.xml: Likewise.
8774 * features/i386/x32.xml: Likewise.
8775
8776 * features/i386/x32-avx-linux.c: New. Generated.
8777 * features/i386/x32-avx.c: Likewise.
8778 * features/i386/x32-linux.c: Likewise.
8779 * features/i386/x32.c: Likewise.
8780 * regformats/i386/x32-avx-linux.dat: Likewise.
8781 * regformats/i386/x32-avx.dat: Likewise.
8782 * regformats/i386/x32-linux.dat: Likewise.
8783 * regformats/i386/x32.dat: Likewise.
8784
8785 2012-04-10 Tristan Gingold <gingold@adacore.com>
8786
8787 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8788 code to kill the inferior.
8789
8790 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8791
8792 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8793 defines.
8794 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8795 defines.
8796 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8797 (yyvsp): New defines.
8798 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8799 defines.
8800 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8801 defines.
8802 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8803 defines.
8804 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8805 defines.
8806 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8807 defines.
8808
8809 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8810
8811 * sparc64-tdep.c (sparc64_store_arguments)
8812 (sparc64_store_arguments): Fix coding style.
8813
8814 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8815
8816 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8817 complex floats, adjust some related comments and tighten a related
8818 assertion.
8819 (sparc64_extract_return_value): Handle complex floats.
8820
8821 2012-04-07 Doug Evans <dje@google.com>
8822
8823 * dwarf2read.c (load_partial_dies): Change condition to assert.
8824
8825 2012-04-06 Doug Evans <dje@google.com>
8826
8827 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8828 "mov %rsp,%rbp".
8829
8830 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8831
8832 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8833 fencepost error.
8834 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8835 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8836 architecture.
8837
8838 2012-04-05 Keith Seitz <keiths@redhat.com>
8839
8840 * linespec.c (decode_compound): Remove.
8841 (enum offset_relative_sign): New enum.
8842 (struct line_offset): New struct.
8843 (struct linespec): New struct.
8844 (struct linespec_state): Move file_symtabs,
8845 user_filename, and user_function into struct linespec.
8846 Make result an anonymous struct holding vectors of
8847 symbolp and minsym_and_objfile_d.
8848 Add language member.
8849 (enum ls_token_type): New enum.
8850 (linespec_keywords): New array.
8851 (struct ls_token): New struct.
8852 (struct ls_parser): New struct.
8853 (linespec_lexer_lex_number): New function.
8854 (linespec_lexer_lex_keyword): New function.
8855 (is_ada_operator): New function.
8856 (skip_quote_char): New function.
8857 (copy_token_string): New function.
8858 (is_closing_quote_enclosed): New function.
8859 (find_parameter_list_end): New function.
8860 (linespec_lexer_lex_string): New function.
8861 (linespec_lexer_lex_one): New function.
8862 (linespec_lexer_consume_token): New function.
8863 (linespec_lexer_peek_token): New function.
8864 (cplusplus_error): Remove unused function.
8865 (find_methods): Update comment.
8866 (find_toplevel_char): Return const.
8867 (is_objc_method_format): Remove unused function.
8868 (find_toplevel_string): New function.
8869 (is_linespec_boundary): Remove.
8870 (symbol_not_found_error): New function.
8871 (find_method_overload_end): Remove function.
8872 (unexpected_linespec_error): New function.
8873 (keep_name_info): Remove.
8874 (linespec_parse_line_offset): New function.
8875 (linespec_parse_basic): New function.
8876 (canonicalize_linespec): New function.
8877 (decode_line_internal): Remove.
8878 (create_sals_line_offset): New function adapted from
8879 decode_all_digits.
8880 (convert_linespec_to_sals): New function.
8881 (parse_linespec): New function.
8882 (linespec_parser_new): New function.
8883 (linespec_state_destructor): Change parameter type to
8884 struct linespec_state *.
8885 Add language parameter.
8886 Remove freeing of moved members.
8887 (linespec_parser_delete): New function.
8888 (decode_line_full): Use parse_linespec and linespec_parser_new.
8889 (decode_line_1): Likewise.
8890 (decode_indirect): Rename to ...
8891 (linespec_expression_to_pc): ... this and rewrite
8892 to simply find CORE_ADDR, storing this result for later
8893 conversion to SALs.
8894 (locate_first_half): Remove.
8895 (deocde_objc): Add parameter LS.
8896 Initialize new struct collect_info members.
8897 Handle minimal symbols, too.
8898 (decode_compound): Delete.
8899 (lookup_prefix_sym): Rewrite.
8900 (compare_msymbols): New function.
8901 (find_method): Rewrite.
8902 Do not call cplusplus_error.
8903 (symtabs_from_filename): Rewrite.
8904 (collect_function_symbols): Delete.
8905 (find_function_symbols): Rewrite without ARGPTR-style
8906 processing.
8907 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8908 (decode_dollar): Adapted and renamed to ...
8909 (linespec_parse_variable): ... this.
8910 (find_linespec_symbols): New function.
8911 (decode_label): Adapted and renamed to ...
8912 (find_label_symbols): ... this.
8913 (decode_digits_list_mode): Add and use LS argument.
8914 (decode_digits_ordinary): Likewise.
8915 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8916 If in list mode, allow any symbol class. Otherwise, only
8917 permit LOC_BLOCK symbols.
8918 (minsym_found): Update comments.
8919 (search_minsyms_for_name): Do not convert the matching symbol
8920 into a SAL. Simply push the symbol and objfile into the
8921 result vector.
8922 (decode_variable): Delete. Contents adapted into
8923 find_linespec_symbols.
8924
8925 * cp-support.c (SKIP_SPACE): Remove.
8926 (operator_tokens): Remove unused global.
8927 (cp_validate_operator): Remove.
8928 * cp-support.h (cp_validate_operator): Remove declaration.
8929
8930 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8931
8932 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8933 for TYPE_VPTR_FIELDNO.
8934 * valprint.c (valprint_check_validity): Make it global, move the
8935 function comment ...
8936 * value.h (valprint_check_validity): ... to this new declaration.
8937
8938 2012-04-02 Tristan Gingold <gingold@adacore.com>
8939
8940 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8941 the STATE32 api for i386 state.
8942 (i386_darwin_store_inferior_registers): Likewise.
8943
8944 2012-04-02 Tristan Gingold <gingold@adacore.com>
8945
8946 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8947 SS offset.
8948 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8949 format_string.
8950
8951 2012-04-02 Tristan Gingold <gingold@adacore.com>
8952
8953 PR gdb/13901
8954 * darwin-nat.c (darwin_execvp): Set binary preference.
8955
8956 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8957
8958 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8959
8960 2012-03-30 Tom Tromey <tromey@redhat.com>
8961
8962 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8963 of TRY_CATCH. Fix error handling.
8964 * python/py-value.c (convert_value_from_python): Move 'old'
8965 declaration to innermost scope.
8966
8967 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8968 Andrey Smirnov <andrew.smirnov@gmail.com>
8969
8970 -Wshadow warning fix.
8971 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8972 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8973 Adjust code accordingly.
8974
8975 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8976
8977 * ada-lang.c (symbol_completion_add): Rename parameter
8978 "encoded" into "encoded_p". Ajust code and documentation
8979 accordingly.
8980
8981 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8982 Andrey Smirnov <andrew.smirnov@gmail.com>
8983
8984 -Wshadow warning fix.
8985 * ada-lang.c (symbol_completion_add): Rename parameter
8986 "wild_match" into wild_match_p. Update code and documentation
8987 accordingly.
8988
8989 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8990
8991 * ada-lang.c (symbol_completion_match): Rename parameter
8992 "encoded" into "encoded_p". Ajust code and documentation
8993 accordingly.
8994
8995 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8996 Andrey Smirnov <andrew.smirnov@gmail.com>
8997
8998 -Wshadow warning fix.
8999 * ada-lang.c (symbol_completion_match): Rename parameter
9000 "wild_match" into "wild_match_p". Adjust code and function
9001 documentation accordingly.
9002
9003 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9004 Andrey Smirnov <andrew.smirnov@gmail.com>
9005
9006 -Wshadow warning fix.
9007 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9008 "symbol_info" into "info". Adjust code accordingly.
9009 (ada_lookup_symbol): Likewise.
9010
9011 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9012
9013 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9014 of this function's documentation.
9015
9016 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9017 Andrey Smirnov <andrew.smirnov@gmail.com>
9018
9019 -Wshadow warning fix.
9020 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9021 variable into "wild_match_p". Adjust code accordingly.
9022
9023 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9024 Andrey Smirnov <andrew.smirnov@gmail.com>
9025
9026 -Wshadow warning fix.
9027 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9028 parameter into "wild_match_p". Adjust code accordingly.
9029 Document this parameter in the function description.
9030
9031 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9032 Andrey Smirnov <andrew.smirnov@gmail.com>
9033
9034 -Wshadow warning fix.
9035 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9036 "wild_match" parameter to "wild_match_p" (-Wshadow).
9037
9038 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9039
9040 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9041 in function documentation.
9042
9043 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9044 Andrey Smirnov <andrew.smirnov@gmail.com>
9045
9046 -Wshadow warning fix.
9047 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9048 variable into wild_match_p. Adjust code accordingly.
9049
9050 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9051 Andrey Smirnov <andrew.smirnov@gmail.com>
9052
9053 * ada-valprint.c (ada_val_print_1): Move the code handling
9054 TYPE_CODE_ENUM inside its own lexical block. Declare
9055 variables len and val there, instead of in the function's
9056 top level block. Avoid declaring deref_val again in a way
9057 that shadows another variable of the same name declared
9058 in one of the up-level blocks. Just re-use the up-level
9059 variable instead.
9060
9061 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9062
9063 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9064 Replace block_found argument by symbol_info. Adjust
9065 implementation accordingly. Add function documentation.
9066 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9067 Fix documentation.
9068 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9069 * ada-exp.y (write_object_renaming): Adjust to new
9070 ada_lookup_encoded_symbol API.
9071
9072 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9073
9074 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9075 documentation.
9076
9077 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9078
9079 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9080 (v850_register_name): Add the mpu and fpu register names.
9081 (v850e_register_name): Add the mpu and fpu register names.
9082 (v850e2_register_name): New function.
9083 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9084 bfd_mach_v850e2v3.
9085
9086 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9087
9088 * NEWS: Add entry for Ada varobj support.
9089
9090 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9091
9092 * varobj.c (default_value_is_changeable_p): New function,
9093 extracted from varobj_value_is_changeable_p. Add declaration.
9094 (ada_value_is_changeable_p): New function, extracted from
9095 varobj_value_is_changeable_p. Add declaration.
9096 (struct language_specific): New field "value_is_changeable_p".
9097 (languages): Add entries for new field.
9098 (varobj_create): Set language before calling install_new_value.
9099 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9100 "value_is_changeable_p" language callback.
9101
9102 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9103
9104 * ada-varobj.h, ada-varobj.c: New files.
9105 * Makefile.in (SFILES): Add ada-varobj.c.
9106 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9107 (COMMON_OBS): Add ada-varobj.o.
9108
9109 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9110
9111 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9112 (struct language_specific): New field "value_has_mutated".
9113 (languages): Set field "value_has_mutated" in each entry of array.
9114 (varobj_value_has_mutated): New function.
9115 (varobj_udpdate): Add handling of type mutation.
9116 (value_of_root): Add handling of type mutation.
9117 (ada_value_has_mutated): New function.
9118
9119 2012-03-28 Pedro Alves <palves@redhat.com>
9120
9121 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9122 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9123
9124 2012-03-28 Tom Tromey <tromey@redhat.com>
9125
9126 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9127 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9128 before returning.
9129
9130 2012-03-28 Tom Tromey <tromey@redhat.com>
9131
9132 * .dir-locals.el: New file.
9133
9134 2012-03-28 Pedro Alves <palves@redhat.com>
9135
9136 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9137
9138 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9139
9140 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9141 handling for r0.
9142
9143 2012-03-27 Pedro Alves <palves@redhat.com>
9144
9145 Eliminate struct ui_stream.
9146
9147 * ui-out.h (struct ui_stream): Delete.
9148 (ui_out_field_stream): Adjust prototype.
9149 (ui_out_stream_new, ui_out_stream_delete)
9150 (make_cleanup_ui_out_stream_delete): Delete declarations.
9151 * ui-out.c (ui_out_field_stream): Change prototype to take a
9152 ui_file instead of a ui_stream. Adjust.
9153 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9154 (make_cleanup_ui_out_stream_delete): Delete.
9155 * breakpoint.c (print_breakpoint_location)
9156 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9157 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9158 * disasm.c (dump_insns): Ditto.
9159 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9160 prototype.
9161 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9162 ui_stream/ui_out_stream_new.
9163 * infcmd.c (print_return_value): Ditto.
9164 * osdata.c (info_osdata_command): Don't allocate a local
9165 ui_stream.
9166 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9167 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9168 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9169 allocate a local ui_stream.
9170 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9171 instead of ui_stream/ui_out_stream_new.
9172 (list_args_or_locals): Don't allocate a local ui_stream.
9173 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9174 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9175 ui_stream/ui_out_stream_new.
9176 * cli/cli-setshow.c (do_setshow_command): Ditto.
9177
9178 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9179
9180 * arm-linux-tdep.c (arm_linux_init_abi): Call
9181 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9182 * arm-tdep.c (arm_process_record): New function.
9183 (deallocate_reg_mem): New function.
9184 (decode_insn): New function.
9185 (thumb_record_branch): New function.
9186 (thumb_record_ldm_stm_swi(): New function.
9187 (thumb_record_misc): New function.
9188 (thumb_record_ld_st_stack): New function.
9189 (thumb_record_ld_st_imm_offset): New function.
9190 (thumb_record_ld_st_reg_offset(): New function.
9191 (thumb_record_add_sub_cmp_mov): New function.
9192 (thumb_record_shift_add_sub): New function.
9193 (arm_record_coproc_data_proc): New function.
9194 (arm_record_coproc): New function.
9195 (arm_record_b_bl): New function.
9196 (arm_record_ld_st_multiple): New function.
9197 (arm_record_ld_st_reg_offset): New function.
9198 (arm_record_ld_st_imm_offset): New function.
9199 (arm_record_data_proc_imm): New function.
9200 (arm_record_data_proc_misc_ld_str): New function.
9201 (arm_record_extension_space): New function.
9202 (arm_record_strx): New function.
9203 (sbo_sbz): New function.
9204 (struct insn_decode_record): New structure for arm insn record.
9205 (REG_ALLOC): New macro for reg allocations.
9206 (MEM_ALLOC): New macro for memory allocations.
9207 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9208
9209 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9210
9211 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9212 (store_register): Likewise.
9213
9214 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9215
9216 * MAINTAINERS (Write After Approval): Add myself to the list.
9217
9218 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9219
9220 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9221 Describe also the option "auto".
9222
9223 2012-03-22 Richard Henderson <rth@redhat.com>
9224
9225 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9226 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9227
9228 2012-03-22 Richard Henderson <rth@redhat.com>
9229
9230 * jit.c (jit_read_code_entry): Compute alignment and offset of
9231 int64_t member before computing entry_size.
9232
9233 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9234
9235 Python scripting: Add new method Value.referenced_value to
9236 gdb.Value which can dereference pointer as well as reference
9237 values.
9238 * NEWS: Add entry under 'Python scripting' about the new method
9239 Value.referenced_value on gdb.Value objects.
9240 * python/py-value.c (valpy_referenced_value): New function
9241 defining a new method on gdb.Value objects which can dereference
9242 pointer and reference values.
9243
9244 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9245
9246 * MAINTAINERS (Write After Approval): Add myself to the list.
9247
9248 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9249
9250 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9251 in addition to "main".
9252
9253 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9254
9255 * expression.h (op_name): Add declaration.
9256 * expprint.c (op_name): Remove declaration. Make non-static.
9257 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9258
9259 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9260
9261 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9262 of struct siginfo.
9263 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9264 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9265 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9266 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9267 (linux_nat_get_siginfo): Likewise.
9268 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9269 (linux_nat_get_siginfo): Likewise.
9270 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9271 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9272 * procfs.c (gdb_siginfo_t): Likewise.
9273
9274 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9275
9276 * .gitignore: Ignore more files.
9277
9278 2012-03-20 Pedro Alves <palves@redhat.com>
9279
9280 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9281 returns.
9282
9283 2012-03-20 Yao Qi <yao@codesourcery.com>
9284
9285 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9286 comment.
9287
9288 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9289
9290 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9291 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9292 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9293 sect_offset.
9294 * dwarf2expr.h (cu_offset, sect_offset): New types.
9295 (struct dwarf_expr_context_funcs) <dwarf_call>
9296 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9297 sect_offset.
9298 (struct dwarf_expr_context) <len>: Improve the comment.
9299 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9300 cu_offset and sect_offset.
9301 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9302 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9303 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9304 * dwarf2loc.h: Include dwarf2expr.h.
9305 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9306 and sect_offset.
9307 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9308 Improve the comment.
9309 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9310 (struct signatured_type, struct line_header, struct partial_die_info)
9311 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9312 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9313 (get_die_type_at_offset, create_cus_from_index)
9314 (create_signatured_type_table_from_index, dw2_get_file_names)
9315 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9316 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9317 (create_debug_types_hash_table, process_psymtab_comp_unit)
9318 (load_partial_comp_unit, create_all_comp_units)
9319 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9320 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9321 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9322 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9323 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9324 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9325 (find_partial_die, read_attribute_value, lookup_die_type)
9326 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9327 (is_ref_attr): New function comment.
9328 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9329 Use cu_offset and sect_offset.
9330 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9331 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9332 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9333 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9334 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9335 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9336 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9337 sect_offset.
9338
9339 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9340
9341 Code cleanup.
9342 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9343 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9344 with xfree.
9345 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9346
9347 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9348
9349 * NEWS: Describe new options --init-command=FILE, -ix and
9350 --init-eval-command=COMMAND, -iex.
9351 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9352 CMDARG_INIT_COMMAND.
9353 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9354 "init-command", "init-eval-command", "ix" and "iex" to the variable
9355 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9356 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9357 (print_gdb_help): Describe --init-command=FILE, -ix and
9358 --init-eval-command=COMMAND, -iex.
9359
9360 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9361
9362 Code cleanup.
9363 * main.c (struct cmdarg): Move it here from main. Add more comments.
9364 (cmdarg_s, VEC (cmdarg_s)): New.
9365 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9366 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9367 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9368 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9369 of CMDARG.
9370
9371 2012-03-19 Tom Tromey <tromey@redhat.com>
9372
9373 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9374
9375 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9376
9377 PR symtab/13777
9378 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9379 GCC >=4.5.
9380
9381 2012-03-16 Chris January <chris.january@allinea.com>
9382
9383 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9384 of clear.
9385
9386 2012-03-16 Chris January <chris.january@allinea.com>
9387
9388 * source.c (add_path): Use memmove instead of strcpy because the
9389 strings overlap.
9390
9391 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9392
9393 * value.h (set_value_parent): Add declaration.
9394 * value.c (set_value_parent): New function.
9395 (value_address): If VALUE->PARENT is not NULL, then use it as
9396 the base address instead of VALUE->LOCATION.address.
9397 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9398 the same as OBJ's address. Adjust V's offset accordingly.
9399 Set V's parent.
9400
9401 2012-03-16 Gary Benson <gbenson@redhat.com>
9402
9403 PR breakpoints/10738
9404 * dwarf2read.c (use_deprecated_index_sections): New global.
9405 (struct partial_die_info): New member may_be_inlined.
9406 (read_partial_die): Set may_be_inlined where appropriate.
9407 (add_partial_subprogram): Add partial symbols for partial
9408 DIEs that may be inlined.
9409 (new_symbol_full): Add inlined subroutines to the current
9410 scope.
9411 (write_psymtabs_to_index): Bump version number.
9412 (dwarf2_read_index): Read only version 6 indices unless
9413 use_deprecated_index_sections is set.
9414 * linespec.c (symbol_and_data_callback): New structure.
9415 (iterate_inline_only): New function.
9416 (iterate_over_all_matching_symtabs): New argument
9417 "include_inline". If nonzero, also call the callback for
9418 symbols representing inlined subroutines.
9419 (lookup_prefix_sym): Pass extra argument to the above.
9420 (find_function_symbols): Likewise.
9421 (add_matching_symbols_to_info): Likewise.
9422 * NEWS: Mention that GDB can now set breakpoints on inlined
9423 functions.
9424
9425 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9426
9427 * p-typeprint.c (pascal_type_print_method_args):
9428 Fix display of parameter of methods.
9429
9430 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9431
9432 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9433 Add missing prototype.
9434
9435 2012-03-16 Yao Qi <yao@codesourcery.com>
9436 Jan Kratochvil <jan.kratochvil@redhat.com>
9437
9438 Fix false compilation warning.
9439 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9440
9441 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9442 Pedro Alves <pedro@codesourcery.com>
9443
9444 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9445 (arm_register_g_packet_guesses): New function.
9446 (arm_gdbarch_init): Don't force a target description with
9447 registers when the executable is detected as M-profile. Instead
9448 set gdbarch->tdep->is_m. Register `g' packet guesses.
9449 (_initialize_arm_tdep): Initialize the new target description.
9450 * features/arm-with-m-fpa-layout.xml: New description.
9451 * features/arm-with-m-fpa-layout.c: New, generated.
9452
9453 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9454
9455 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9456 Update function description.
9457 (insert_bp_location): Do not wipe bl->target_info out.
9458 * mem-break.c: #include "gdb_string.h".
9459 (default_memory_insert_breakpoint): Do not call target_read_memory
9460 with a pointer to the breakpoint's shadow_contents buffer. Use
9461 a local buffer instead.
9462 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9463
9464 2012-03-15 Tom Tromey <tromey@redhat.com>
9465
9466 * NEWS: Mention "info vtbl", not "info vtable".
9467 * cp-support.c (info_vtbl_command): Fix comment.
9468 (_initialize_cp_support): Fix text.
9469
9470 2012-03-15 Tom Tromey <tromey@redhat.com>
9471
9472 * cp-valprint.c (cp_print_value_fields): Use
9473 print_function_pointer_address for vtable slot.
9474
9475 2012-03-15 Tom Tromey <tromey@redhat.com>
9476
9477 * gnu-v3-abi.c (struct value_and_voffset): New.
9478 (hash_value_and_voffset, eq_value_and_voffset)
9479 (compare_value_and_voffset, compute_vtable_size)
9480 (print_one_vtable, gnuv3_print_vtable): New functions.
9481 (init_gnuv3_ops): Initialize 'print_vtable' field.
9482 * cp-support.c (info_vtbl_command): New function.
9483 (_initialize_cp_support): Add "info vtbl".
9484 * cp-abi.h (cplus_print_vtable): Declare.
9485 (struct cp_abi_ops) <print_vtable>: New field.
9486 * cp-abi.c (cplus_print_vtable): New function.
9487 * NEWS: Update.
9488
9489 2012-03-15 Tom Tromey <tromey@redhat.com>
9490
9491 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9492 iterate_over_symbols.
9493
9494 2012-03-14 Doug Evans <dje@google.com>
9495
9496 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9497 DW_OP_GNU_parameter_ref.
9498
9499 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9500
9501 Fix double prompt of 'interpreter-exec mi'.
9502 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9503 (mi_interpreter_resume): use it.
9504 (mi_execute_command_input_handler): New function.
9505 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9506 mi_execute_command_input_handler.
9507
9508 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9509
9510 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9511 prototype.
9512 (darwin_debug_port_info): Make static.
9513 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9514 * machoread.c (_initialize_machoread): Add prototype.
9515 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9516 (i386_darwin_set_control, i386_darwin_get_control)
9517 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9518 i386_darwin_get_status, i386_darwin_get_control):
9519 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9520
9521 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9522
9523 * ax-gdb.c (gen_usual_unary): Remove special handling of
9524 enum and bool types.
9525
9526 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9527
9528 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9529
9530 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9531
9532 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9533
9534 2012-03-13 Chris January <chris.january@allinea.com>
9535
9536 * aix-thread.c (fill_sprs): Store the floating point registers
9537 at the correct offsets into vals.
9538
9539 2012-03-13 Doug Evans <dje@google.com>
9540
9541 * NEWS: Mention symbol-reloading has been deleted.
9542 * symfile.c (symbol_reloading): Delete.
9543 (show_symbol_reloading): Delete.
9544 (_initialize_symfile): Delete set/show symbol-reloading.
9545
9546 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9547 read_in_chain until we have successfully read it in.
9548 (load_full_comp_unit): Ditto.
9549 (read_signatured_type): Add comment.
9550
9551 2012-03-13 Chris January <chris.january@allinea.com>
9552
9553 * stabsread.c (fix_common_block): Change type of valu argument
9554 to CORE_ADDR.
9555
9556 2012-03-13 Chris January <chris.january@allinea.com>
9557
9558 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9559 instruction.
9560
9561 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9562
9563 * common/linux-procfs.c (linux_proc_get_int): New, from
9564 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9565 field.
9566 (linux_proc_get_tgid): Only call linux_proc_get_int.
9567 (linux_proc_get_tracerpid): New.
9568 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9569 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9570 linux_proc_pid_has_state.
9571 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9572 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9573 (linux_ptrace_attach_warnings): New.
9574 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9575 New declaration.
9576 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9577 (linux_nat_attach): New variables ex, buffer, message and message_s.
9578 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9579
9580 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9581
9582 * Makefile.in (linux-ptrace.o): New.
9583 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9584 from linux-nat.c.
9585 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9586 * common/linux-ptrace.c: New file.
9587 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9588 * config/arm/linux.mh: Likewise.
9589 * config/i386/linux.mh: Likewise.
9590 * config/i386/linux64.mh: Likewise.
9591 * config/ia64/linux.mh: Likewise.
9592 * config/m32r/linux.mh: Likewise.
9593 * config/m68k/linux.mh: Likewise.
9594 * config/mips/linux.mh: Likewise.
9595 * config/pa/linux.mh: Likewise.
9596 * config/powerpc/linux.mh: Likewise.
9597 * config/powerpc/ppc64-linux.mh: Likewise.
9598 * config/powerpc/spu-linux.mh: Likewise.
9599 * config/s390/s390.mh: Likewise.
9600 * config/sparc/linux.mh: Likewise.
9601 * config/sparc/linux64.mh: Likewise.
9602 * config/xtensa/linux.mh: Likewise.
9603 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9604 common/linux-procfs.c.
9605 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9606
9607 2012-03-13 Hui Zhu <teawater@gmail.com>
9608 Pedro Alves <palves@redhat.com>
9609
9610 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9611 CREATE_BREAKPOINT_FLAGS_INSERTED.
9612 (create_breakpoint_sal, create_breakpoints_sal)
9613 (base_breakpoint_create_breakpoints_sal)
9614 (tracepoint_create_breakpoints_sal)
9615 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9616 down.
9617 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9618 (ftrace_command, strace_command): Adjust.
9619 (create_tracepoint_from_upload): Pass
9620 CREATE_BREAKPOINT_FLAGS_INSERTED.
9621 * breakpoint.h (enum breakpoint_create_flags): New.
9622 (create_breakpoint): New flags parameter.
9623 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9624 * python/py-breakpoint.c (bppy_init): Adjust.
9625 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9626 * spu-tdep.c (spu_catch_start): Adjust.
9627
9628 2012-03-13 Pedro Alves <palves@redhat.com>
9629 Hui Zhu <teawater@gmail.com>
9630 Yao Qi <yao@codesourcery.com>
9631
9632 * remote.c (struct remote_state): New field `starting_up'.
9633 (remote_start_remote): Set and clear it.
9634 (remote_can_download_tracepoint): If starting up, return false.
9635
9636 2012-03-13 Yao Qi <yao@codesourcery.com>
9637
9638 * inferior.h (struct inferior): Remove fields any_syscall_count,
9639 syscalls_counts and total_syscalls_count. Move them to new
9640 struct catch_syscall_inferior_data in breakpoint.c.
9641 * breakpoint.c: Call DEF_VEC_I(int).
9642 (struct catch_syscall_inferior_data): New.
9643 (get_catch_syscall_inferior_data): New.
9644 (catch_syscall_inferior_data_cleanup): New.
9645 (insert_catch_syscall): Update to access data in
9646 struct catch_syscall_inferior_data.
9647 (insert_catch_syscall): Likewise.
9648 (remove_catch_syscall): Likewise.
9649 (remove_catch_syscall): Likewise.
9650 (is_syscall_catchpoint_enabled): Likewise.
9651 (add_catch_command): Likewise.
9652 (_initialize_breakpoint): Register cleanup.
9653 * breakpoint.h: Removed DEF_VEC_I(int).
9654 * dwarf2loc.c: Call DEF_VEC_I(int).
9655 * mi/mi-main.c: Likewise.
9656
9657 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9658
9659 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9660
9661 2012-03-12 Chris January <chris.january@allinea.com>
9662
9663 * aix-thread.c (_initialize_aix_thread): Add prototype.
9664 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9665 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9666
9667 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9668
9669 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9670 include of "amd64-nat.h".
9671
9672 2012-03-12 Tom Tromey <tromey@redhat.com>
9673
9674 * buildsym.c (record_pending_block): Now static.
9675 * buildsym.h: (record_pending_block): Remove.
9676
9677 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9678
9679 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9680
9681 2012-03-09 Tom Tromey <tromey@redhat.com>
9682
9683 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9684 producer_is_gxx_lt_4_6>: New fields.
9685 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9686
9687 2012-03-09 Tom Tromey <tromey@redhat.com>
9688
9689 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9690
9691 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9692
9693 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9694 prototype.
9695
9696 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9697
9698 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9699
9700 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9701
9702 Fix -Wmissing-prototypes build.
9703 * arm-linux-nat.c (get_thread_id): Make it static.
9704 * xtensa-linux-nat.c (get_thread_id): Likewise.
9705
9706 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9707
9708 * server.c (process_point_options): If a conditional expression
9709 is found, only print a message if remote_debug is nonzero.
9710
9711 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9712
9713 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9714 of internal error for unknown/unsupported types.
9715
9716 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9717
9718 Fix CU relative vs. absolute DIE offsets.
9719 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9720 offset to offset_in_cu.
9721 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9722 TYPE_OFFSET.
9723 (dwarf2_fetch_die_location_block): Rename parameter offset to
9724 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9725
9726 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9727
9728 * libunwind-frame.c: Rename to ...
9729 * ia64-libunwind-tdep.c: ... here.
9730 * libunwind-frame.h: Rename to ...
9731 * ia64-libunwind-tdep.h: ... here.
9732 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9733 ia64-libunwind-tdep.h.
9734 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9735 * README (--with-libunwind): Rename to ...
9736 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9737 * config.in: Regenerate.
9738 * configure: Regenerate.
9739 * configure.ac: New option --with-libunwind-ia64, make the
9740 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9741 Remove AC_DEFINE for HAVE_LIBUNWIND.
9742 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9743 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9744 Rename libunwind-frame in the general comment.
9745 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9746 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9747 Move forward declarations inside #ifndef. Rename libunwind-frame in
9748 the general comment.
9749 * ia64-tdep.c: Rename libunwind-frame.h #include to
9750 ia64-libunwind-tdep.h.
9751 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9752 (ia64_libunwind_descr): Rename libunwind-frame to
9753 ia64-libunwind-tdep in these function comments.
9754 * ia64-tdep.h: Rename libunwind-frame.h #include to
9755 ia64-libunwind-tdep.h.
9756 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9757 ia64-libunwind-tdep in that data comment.
9758
9759 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9760
9761 * libunwind-frame.h (struct frame_unwind): New declaration.
9762
9763 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9764
9765 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9766 "set breakpoint condition-evaluation" command.
9767
9768 2012-03-08 Tristan Gingold <gingold@adacore.com>
9769
9770 * sparc-stub.c: Move to stubs/
9771 * sh-stub.c: Likewise.
9772 * m68k-stub.c: Likewise.
9773 * m32r-stub.c: Likewise.
9774 * i386-stub.c: Likewise.
9775
9776 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9777
9778 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9779 linux_get_siginfo_type.
9780
9781 * m68klinux-nat.c: Include "gdb_proc_service.h".
9782 (PTRACE_GET_THREAD_AREA): Define.
9783 (ps_get_thread_area): New function.
9784
9785 2012-03-08 Yao Qi <yao@codesourcery.com>
9786
9787 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9788 `xsnprintf'.
9789 (remote_query_attached): Likewise.
9790 (remote_static_tracepoint_marker_at): Likewise.
9791 (remote_set_permissions): Likewise.
9792 (remote_detach_1, extended_remote_attach_1): Likewise.
9793 (send_g_packet, remote_vkill): Likewise.
9794 (extended_remote_disable_randomization): Likewise.
9795 (remote_add_target_side_condition): Likewise.
9796 (remote_insert_breakpoint): Likewise.
9797 (remote_remove_breakpoint): Likewise.
9798 (remote_insert_watchpoint): Likewise.
9799 (remote_remove_watchpoint): Likewise.
9800 (remote_insert_hw_breakpoint): Likewise.
9801 (remote_insert_hw_breakpoint): Likewise.
9802 (remote_remove_hw_breakpoint): Likewise.
9803 (remote_download_command_source): Likewise.
9804 (remote_download_tracepoint): Likewise.
9805 (remote_download_trace_state_variable): Likewise.
9806 (remote_disable_tracepoint): Likewise.
9807 (remote_trace_set_readonly_regions): Likewise.
9808 (remote_get_tracepoint_status): Likewise.
9809 (remote_trace_find): Likewise.
9810 (remote_get_trace_state_variable_value): Likewise.
9811 (remote_set_disconnected_tracing): Likewise.
9812 (remote_set_circular_trace_buffer): Likewise.
9813 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9814 (remote_use_agent): Likewise.
9815 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9816 Update callers.
9817
9818 2012-03-07 Pedro Alves <palves@redhat.com>
9819
9820 * NEWS: Mention QProgramSignals.
9821 * inferior.h (update_signals_program_target): Declare.
9822 * infrun.c: (update_signals_program_target): New.
9823 (handle_command): Update the target of the new program signals
9824 array changes.
9825 * remote.c (PACKET_QProgramSignals): New enum.
9826 (last_program_signals_packet): New global.
9827 (remote_program_signals): New.
9828 (remote_start_remote): Update the target with the program signals
9829 list.
9830 (remote_protocol_features): Add entry for QPassSignals.
9831 (remote_open_1): Free anc clear last_program_signals_packet.
9832 (init_remote_ops): Install remote_program_signals.
9833 * target.c (update_current_target): Adjust.
9834 (target_program_signals): New.
9835 * target.h (struct target_ops) <to_program_signals>: New field.
9836 (target_program_signals): Declare.
9837
9838 2012-03-07 Pedro Alves <palves@redhat.com>
9839
9840 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9841 extensions.
9842
9843 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9844
9845 * m68klinux-nat.c (getregs_supplies): Make static.
9846 (getfpregs_supplies): Likewise.
9847 (have_ptrace_getregs): Likewise.
9848
9849 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9850
9851 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9852 in call to get_die_type_at_offset.
9853
9854 2012-03-06 Stan Shebs <stan@codesourcery.com>
9855
9856 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9857 * mi/mi-cmd-disas.c: Ditto.
9858 * mi/mi-cmd-env.c: Ditto.
9859 * mi/mi-cmd-file.c: Ditto.
9860 * mi/mi-cmd-stack.c: Ditto.
9861 * mi/mi-cmd-target.c: Ditto.
9862 * mi/mi-cmd-var.c: Ditto.
9863 * mi/mi-cmds.c: Ditto.
9864 * mi/mi-cmds.h: Ditto.
9865 * mi/mi-console.c: Ditto.
9866 * mi/mi-getopt.c: Ditto.
9867 * mi/mi-getopt.h: Ditto.
9868 * mi/mi-interp.c: Ditto.
9869 * mi/mi-main.c: Ditto.
9870 * mi/mi-out.c: Ditto.
9871 * mi/mi-parse.c: Ditto.
9872 * mi/mi-parse.h: Ditto.
9873 * mi/mi-symbol-cmds.c: Ditto.
9874
9875 * mi/mi-getopt.h: Move mi_opt struct up.
9876 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9877 return.
9878 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9879
9880 2012-03-06 Tom Tromey <tromey@redhat.com>
9881
9882 * proc-service.c (ps_pglobal_lookup): Set the current program
9883 space.
9884
9885 2012-03-06 Pedro Alves <palves@redhat.com>
9886
9887 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9888
9889 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9890
9891 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9892
9893 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9894
9895 Code cleanup.
9896 * common/linux-osdata.c (linux_common_core_of_thread): New function
9897 comment.
9898 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9899 call by linux_common_core_of_thread.
9900 (linux_nat_core_of_thread_1): Remove.
9901 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9902 * linux-thread-db.c: Include linux-osdata.h.
9903 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9904 linux_common_core_of_thread.
9905
9906 2012-03-05 Tom Tromey <tromey@redhat.com>
9907
9908 * value.c (value_primitive_field): Don't fetch contents for
9909 non-virtual bases.
9910
9911 2012-03-05 Tom Tromey <tromey@redhat.com>
9912
9913 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9914
9915 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9916
9917 * s390-nat.c: Include "gregset.h".
9918
9919 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9920
9921 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9922 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9923 (libunwind_load): New variable so_error, use it for dlerror. Try to
9924 load also LIBUNWIND_SO_7.
9925
9926 2012-03-05 Pedro Alves <palves@redhat.com>
9927
9928 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9929 is not NULL, and remove resulting dead code.
9930
9931 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9932
9933 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9934 prologue to sh_analyze_prologue.
9935 (sh_analyze_prologue): Make better use of such an upper limit, and
9936 generally be more cautious about accessing memory.
9937
9938 2012-03-05 Tom Tromey <tromey@redhat.com>
9939
9940 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9941 _initialize_ia64_hpux_tdep.
9942
9943 2012-03-05 Pedro Alves <palves@redhat.com>
9944
9945 PR gdb/13766
9946
9947 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9948 the register state is clear, supply explicit zero, instead of
9949 marking the register unavailable.
9950
9951 2012-03-05 Tristan Gingold <gingold@adacore.com>
9952
9953 * NEWS: Mention OpenVMS ia64 new target.
9954
9955 2012-03-05 Tristan Gingold <gingold@adacore.com>
9956
9957 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9958 (ia64_unw_accessors, ia64_unw_rse_accessors)
9959 (ia64_libunwind_descr): Declare.
9960 * ia64-vms-tdep.c: New file.
9961 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9962 (ia64_libunwind_descr): Make them public.
9963 * configure.tgt: Add ia64-*-*vms*.
9964 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9965 (ALLDEPFILES): Add ia64-vms-tdep.c
9966
9967 2012-03-05 Tristan Gingold <gingold@adacore.com>
9968
9969 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9970 * remote.c (PACKET_qXfer_uib): New enum value.
9971 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9972 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9973 (_initialize_remote): Call add_packet_config_cmd for
9974 xfer:uib packet.
9975
9976 2012-03-05 Tristan Gingold <gingold@adacore.com>
9977
9978 * osabi.c (gdb_osabi_names): Add OpenVMS.
9979 (generic_elf_osabi_sniffer): Likewise.
9980 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9981
9982 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9983
9984 Removed unused code.
9985 * libunwind-frame.c (libunwind_frame_unwind)
9986 (libunwind_frame_base_address): Remove.
9987 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9988
9989 2012-03-04 Yao Qi <yao@codesourcery.com>
9990
9991 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9992 remove trailing new line.
9993 (agent_run_command, agent_run_command): Add _ markup.
9994 (agent_capability_check): Likewise.
9995
9996 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9997
9998 * breakpoint.c (set_condition_evaluation_mode): Set
9999 CONDITION_EVALUATION_MODE unconditionally.
10000
10001 2012-03-03 Yao Qi <yao@codesourcery.com>
10002
10003 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10004 * common/agent.h: Update declaration.
10005 * inf-child.c (inf_child_use_agent): New.
10006 (inf_child_can_use_agent): New.
10007 (inf_child_target): Initialize fields `to_use_agent'
10008 and `to_can_use_agent'.
10009 * agent.c (agent_new_objfile): New.
10010 (_initialize_agent): Add agent_new_objfile to new_objfile
10011 observer.
10012
10013 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10014 New.
10015 (linux_target_install_ops): Initialize field
10016 `to_static_tracepoint_markers_by_strid'.
10017 * remote.c (free_current_marker): Move it to ...
10018 * tracepoint.c (free_current_marker): ... here. New.
10019 (cleanup_target_stop): New.
10020 * tracepoint.h: Declare free_current_marker.
10021 * NEWS: Add one entry about `info static-tracepoint-marker'.
10022
10023 2012-03-03 Yao Qi <yao@codesourcery.com>
10024
10025 * common/agent.c (agent_loaded_p): New.
10026 (agent_look_up_symbols): New global.
10027 * common/agent.h: Declare agent_loaded_p.
10028
10029 2012-03-03 Yao Qi <yao@codesourcery.com>
10030
10031 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10032 (agent_capability_check, agent_capability_invalidate): New.
10033 (symbol_list): New array element.
10034 * common/agent.h (enum agent_capa): New.
10035 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10036
10037 2012-03-03 Yao Qi <yao@codesourcery.com>
10038
10039 * target.h (struct target_ops) <to_use_agent>: New field.
10040 (struct target_ops) <to_can_use_agent>: New field.
10041 (target_use_agent, target_can_use_agent): New macro.
10042 * target.c (update_current_target): Update.
10043 * remote.c: New enum `PACKET_QAgent'.
10044 (remote_protocol_features): Add a new element.
10045 (remote_use_agent, remote_can_use_agent): New.
10046 (init_remote_ops): Initialize field `can_use_agent' with
10047 remote_can_use_agent. Intiailize field `use_agent' with
10048 remote_use_agent.
10049 * common/agent.c (use_agent): New global.
10050 * common/agent.h: Declare it.
10051 * tracepoint.c (info_static_tracepoint_markers_command): Add
10052 comment.
10053 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10054 (COMMON_OBS): Add common/agent.o and agent.o
10055 (common-agent.o): New rule.
10056 * agent.c: New.
10057
10058 2012-03-03 Yao Qi <yao@codesourcery.com>
10059
10060 * common/agent.c: New.
10061 * common/agent.h: New.
10062 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10063 AC_CHECK_HEADERS.
10064 * configure, configh.in: Regenerated.
10065
10066 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10067
10068 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10069 unless it exists for this architecture.
10070
10071 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10072
10073 * language.h (struct language_defn): New "method" la_read_var_value.
10074 * findvar.c: #include "language.h".
10075 (default_read_var_value): Renames read_var_value. Rewrite
10076 function description.
10077 (read_var_value): New function.
10078 * value.h (default_read_var_value): Add prototype.
10079 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10080 New functions.
10081 (ada_language_defn): Add entry for la_read_var_value.
10082 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10083 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10084 language_defn structures to add entry for new la_read_var_value
10085 field.
10086
10087 2012-03-02 Tom Tromey <tromey@redhat.com>
10088 Pedro Alves <palves@redhat.com>
10089
10090 PR breakpoints/13776:
10091 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10092 breakpoints.
10093 (delete_longjmp_breakpoint_at_next_stop): New.
10094 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10095 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10096 before deleting the inferior. Add comments.
10097 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10098 breakpoints immediately, but only on next stop. Move that code
10099 next to where we mark other breakpoints for deletion.
10100
10101 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10102
10103 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10104 marker.
10105 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10106 violation.
10107
10108 2012-03-02 Pedro Alves <palves@redhat.com>
10109
10110 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10111
10112 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10113
10114 Fix -Wmissing-prototypes build.
10115 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10116 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10117 (gdbsim_has_memory): Likewise.
10118
10119 2012-03-02 Yao Qi <yao@codesourcery.com>
10120
10121 Fix -Wmissing-prototypes build.
10122 * charset.c (phony_iconv_open): Make static.
10123 (phony_iconv_close, phony_iconv): Likewise.
10124 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10125 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10126 prototype.
10127 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10128 * ser-mingw.c (create_select_thread): Make static.
10129 * windows-termcap.c (tgetent): New prototype.
10130 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10131
10132 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10133
10134 Fix -Wmissing-prototypes build.
10135 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10136 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10137 (_initialize_loadable): New prototypes.
10138
10139 2012-03-02 Doug Evans <dje@google.com>
10140
10141 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10142 abbrev table, read_comp_unit will do it.
10143
10144 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10145
10146 Fix -Wmissing-prototypes build.
10147 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10148 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10149 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10150 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10151 (_initialize_arm_symbian_tdep): New prototype.
10152 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10153 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10154 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10155 static.
10156 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10157 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10158 prototype.
10159 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10160 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10161 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10162 static.
10163 * moxie-tdep.c (moxie_process_record): Likewise.
10164 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10165 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10166 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10167 (_initialize_rl78_tdep): New prototype.
10168 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10169 (_initialize_rx_tdep): New prototype.
10170 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10171 (_initialize_darwin_solib): New prototype.
10172 * solib-spu.c: Include solib-spu.h.
10173 (_initialize_spu_solib): New prototype.
10174 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10175 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10176 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10177 (tic6x_software_single_step): Make it static.
10178 (_initialize_tic6x_tdep): New prototype.
10179
10180 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10181
10182 Fix -Wmissing-prototypes build.
10183 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10184 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10185
10186 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10187
10188 Fix -Wmissing-prototypes build.
10189 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10190 (frv_have_stopped_data_address): Remove.
10191
10192 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10193
10194 Fix -Wmissing-prototypes build.
10195 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10196 * sh-tdep.c: Include sh64-tdep.h.
10197 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10198 * sh64-tdep.c: Include sh64-tdep.h.
10199 * sh64-tdep.h: New file.
10200
10201 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10202
10203 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10204
10205 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10206
10207 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10208 sp_regnum once the gdbarch_init_osabi hook has been called.
10209
10210 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10211
10212 * mips-tdep.c (mips32_bc1_pc): New function.
10213 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10214 BPOSGE32 and BPOSGE64 instructions.
10215 (deal_with_atomic_sequence): Likewise.
10216 (mips32_instruction_has_delay_slot): Likewise.
10217
10218 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10219 Chris Dearman <chris@mips.com>
10220 Maciej W. Rozycki <macro@codesourcery.com>
10221 Joseph Myers <joseph@codesourcery.com>
10222
10223 * features/mips-dsp.xml: New file.
10224 * features/mips64-dsp.xml: New file.
10225 * features/mips-dsp-linux.xml: New file.
10226 * features/mips64-dsp-linux.xml: New file.
10227 * features/Makefile (WHICH): Add mips-dsp-linux and
10228 mips64-dsp-linux.
10229 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10230 * features/mips-dsp-linux.c: New file.
10231 * features/mips64-dsp-linux.c: New file.
10232 * regformats/mips-dsp-linux.dat: New file.
10233 * regformats/mips64-dsp-linux.dat: New file.
10234 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10235 registers.
10236 (mips64_linux_register_addr): Likewise.
10237 (mips64_linux_regsets_fetch_registers): Likewise.
10238 (mips64_linux_regsets_store_registers): Likewise.
10239 (mips64_linux_fetch_registers): Update call to
10240 mips64_linux_regsets_fetch_registers.
10241 (mips64_linux_store_registers): Update call to
10242 mips64_linux_regsets_store_registers.
10243 (mips_linux_read_description): Probe for DSP registers.
10244 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10245 and initialize_tdesc_mips64_dsp_linux.
10246 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10247 Remove padding of no longer used embedded register slots.
10248 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10249 (MIPS_RESTART_REGNUM): Redefine enum value.
10250 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10251 strings.
10252 (mips_tx39_reg_names): Likewise.
10253 (mips_linux_reg_names): New array of register names for Linux
10254 targets.
10255 (mips_register_name): Check for a null pointer in
10256 mips_processor_reg_names and return an empty string.
10257 (mips_register_type): Exclude embedded registers for the IRIX
10258 and Linux ABIs.
10259 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10260 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10261 DSP registers.
10262 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10263 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10264 (mips_gdbarch_init): Likewise. Initialize internal register
10265 indices for the Linux ABI. Use dynamic numbers to refer to
10266 registers, as applicable, while parsing the target description.
10267 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10268
10269 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10270
10271 * frame.h (read_frame_register_unsigned): Fix typo in function
10272 description.
10273
10274 2012-03-01 Pedro Alves <palves@redhat.com>
10275
10276 * jit-reader.in [!__cplusplus]
10277 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10278
10279 2012-03-01 Pedro Alves <palves@redhat.com>
10280
10281 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10282 * configure: Regenerate.
10283
10284 2012-03-01 Pedro Alves <palves@redhat.com>
10285
10286 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10287 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10288 (ftrace_command, strace_command): Make static.
10289 * d-lang.c (_initialize_d_language): Declare.
10290 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10291 * dwarf2loc.c (_initialize_dwarf2loc):
10292 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10293 * exec.c (exec_get_section_table): Make static.
10294 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10295 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10296 * inferior.c (remove_inferior_command, add_inferior_command)
10297 (clone_inferior_command): Make static.
10298 * linux-nat.c (linux_nat_thread_address_space)
10299 (linux_nat_core_of_thread): Make static.
10300 * linux-tdep.c (_initialize_linux_tdep): Declare.
10301 * objc-lang.c (_initialize_objc_lang): Declare.
10302 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10303 Make static.
10304 (_initialize_opencl_language): Declare.
10305 * record.c (_initialize_record): Declare.
10306 * remote.c (demand_private_info, remote_get_tib_address)
10307 (remote_supports_cond_tracepoints)
10308 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10309 Make static.
10310 * skip.c (_initialize_step_skip): Declare.
10311 * symtab.c (skip_prologue_using_lineinfo): Make static.
10312 * tracepoint.c (delete_trace_state_variable)
10313 (trace_variable_command, delete_trace_variable_command)
10314 (get_uploaded_tsv, find_matching_tracepoint_location)
10315 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10316 Make static.
10317 * value.c (pack_unsigned_long): Make static.
10318 * varobj.c (varobj_ensure_python_env): Make static.
10319 * windows-tdep.c (_initialize_windows_tdep): Declare.
10320 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10321
10322 2012-03-01 Pedro Alves <palves@redhat.com>
10323
10324 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10325 gdbarch parameter.
10326 (linux_init_abi): Install it as has_shared_address_space gdbarch
10327 callback.
10328
10329 2012-03-01 Pedro Alves <palves@redhat.com>
10330
10331 * observer.c (observer_test_first_notification_function)
10332 (observer_test_second_notification_function)
10333 (observer_test_third_notification_function): Add declarations.
10334
10335 2012-03-01 Pedro Alves <palves@redhat.com>
10336
10337 * common/signals.c (default_target_signal_to_host)
10338 (default_target_signal_from_host): Move ...
10339 * arch-utils.c: ... here.
10340 * arch-utils.h (default_target_signal_to_host)
10341 (default_target_signal_from_host): Declare.
10342
10343 * common/signals.c (target_signal_from_command): Move ...
10344 * infrun.c: ... here.
10345 * inferior.h (target_signal_from_command): Declare.
10346 * target.h (target_signal_from_command)
10347 (default_target_signal_from_host, default_target_signal_to_host):
10348 Delete declarations.
10349
10350 * common/signals.c (_initialize_signals): Delete.
10351
10352 2012-03-01 Pedro Alves <palves@redhat.com>
10353
10354 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10355 both __cplusplus and !__cplusplus.
10356
10357 2012-03-01 Pedro Alves <palves@redhat.com>
10358
10359 * psymtab.c (find_and_open_source): Delete declaration.
10360 * source.c (find_and_open_source): Move comment ...
10361 * source.h (find_and_open_source): ... to this new declaration.
10362
10363 2012-03-01 Pedro Alves <palves@redhat.com>
10364
10365 * inline-frame.c: Include inline-frame.h.
10366
10367 2012-03-01 Pedro Alves <palves@redhat.com>
10368
10369 * tui/tui-data.c (set_gen_win_origin): Delete.
10370 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10371 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10372
10373 2012-03-01 Pedro Alves <palves@redhat.com>
10374
10375 * remote.c (encode_actions): Delete declaration.
10376 * tracepoint.c (encode_actions): Make extern.
10377 * tracepoint.h (encode_actions): Declare.
10378
10379 2012-03-01 Pedro Alves <palves@redhat.com>
10380
10381 * python/py-breakpoint.c: Include python.h.
10382 * python/py-continueevent.c (create_continue_event_object): Make
10383 static.
10384 * python/py-lazy-string.c (stpy_get_type): Make static.
10385 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10386 Make static.
10387 * python/py-utils.c (unicode_to_target_python_string): Make
10388 static.
10389 * python/py-value.c: Include python.h.
10390
10391 2012-03-01 Pedro Alves <palves@redhat.com>
10392
10393 * inferior.c (delete_threads_of_inferior): Delete.
10394
10395 2012-03-01 Pedro Alves <palves@redhat.com>
10396
10397 Import fallback definitions from glibc.
10398
10399 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10400 ps_prochandle): Forward declare.
10401 (ps_err_e): Use glibc's comments.
10402 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10403 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10404 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10405 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10406 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10407 (struct ps_prochandle): Adjust comment.
10408
10409 2012-03-01 Pedro Alves <palves@redhat.com>
10410
10411 * ada-lang.c (ada_modulus_from_name): Delete.
10412 * ada-lex.l (lexer_init): Make static.
10413
10414 2012-03-01 Pedro Alves <palves@redhat.com>
10415
10416 PR gdb/13767
10417
10418 * frame.c (read_frame_register_unsigned): New.
10419 * frame.h (read_frame_register_unsigned): Declare.
10420 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10421 Handle it.
10422 (print_i387_control_word): New parameter `control_p'. Handle it.
10423 (i387_print_float_info): Handle unavailable float registers.
10424
10425 2012-03-01 Keith Seitz <keiths@redhat.com>
10426
10427 * linespec.c (decode_line_2): Sort the list of methods
10428 alphabetically before presenting the user with a selection
10429 menu.
10430
10431 2012-03-01 Doug Evans <dje@google.com>
10432
10433 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10434 has_namespace_info.
10435 (dwarf2_read_abbrevs): Remove corresponding initialization.
10436
10437 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10438
10439 * NEWS: Mention new python command class gdb.COMMAND_USER.
10440 * cli/cli-cmds.c (show_user): Print error when used on a python
10441 command.
10442 (init_cli_cmds): Update documentation strings for "show user" and
10443 "set/show max-user-call-depth" to clarify that it does not apply to
10444 python commands.
10445 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10446 error check.
10447 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10448 gdb python api.
10449 * top.c (execute_command): Only execute a user-defined command as a
10450 legacy macro if c->user_commands is set.
10451
10452 2012-03-01 Tom Tromey <tromey@redhat.com>
10453
10454 * valprint.h (struct generic_val_print_decorations): New.
10455 (generic_val_print): Declare.
10456 * valprint.c (generic_val_print): New function.
10457 * p-valprint.c (p_decorations): New global.
10458 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10459 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10460 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10461 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10462 * m2-valprint.c (m2_decorations): New global.
10463 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10464 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10465 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10466 TYPE_CODE_ERROR>: Call generic_val_print.
10467 * f-valprint.c (f_decorations): New global.
10468 (f_val_print): Use print_function_pointer_address.
10469 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10470 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10471 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10472 generic_val_print.
10473 * c-valprint.c (c_decorations): New global.
10474 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10475 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10476 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10477 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10478 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10479 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10480 case.
10481
10482 2012-03-01 Tom Tromey <tromey@redhat.com>
10483
10484 * valprint.c (val_print): Update.
10485 * p-valprint (pascal_val_print): Return void.
10486 * p-lang.h (pascal_val_print): Return void.
10487 * m2-valprint.c (m2_val_print): Return void.
10488 * m2-lang.h (m2_val_print): Return void.
10489 * language.h (struct language_defn) <la_val_print>: Return void.
10490 * language.c (unk_lang_val_print): Return void.
10491 * jv-valprint.c (java_val_print): Return void.
10492 * jv-lang.h (java_val_print): Return void.
10493 * f-valprint.c (f_val_print): Return void.
10494 * f-lang.h (f_val_print): Return void.
10495 * d-valprint.c (d_val_print): Return void.
10496 (dynamic_array_type): Update.
10497 * d-lang.h (d_val_print): Return void.
10498 * c-valprint.c (c_val_print): Return void.
10499 * c-lang.h (c_val_print): Return void.
10500 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10501 void.
10502 * ada-lang.h (ada_val_print): Return void.
10503
10504 2012-03-01 Tom Tromey <tromey@redhat.com>
10505
10506 * value.h (val_print): Return void.
10507 * valprint.c (val_print): Return void.
10508
10509 2012-03-01 Tom Tromey <tromey@redhat.com>
10510
10511 * value.h (common_val_print): Return void.
10512 * valprint.c (common_val_print): Return void.
10513
10514 2012-03-01 Tom Tromey <tromey@redhat.com>
10515
10516 * value.h (value_print): Return void.
10517 * valprint.c (value_print): Return void.
10518 * p-valprint.c (pascal_value_print): Return void.
10519 * p-lang.h (pascal_value_print): Return void.
10520 * language.h (struct language_defn) <la_value_print>: Return
10521 void.
10522 * language.c (unk_lang_value_print): Return void.
10523 * jv-valprint.c (java_value_print): Return void.
10524 * jv-lang.h (java_value_print): Return void.
10525 * f-valprint.c (c_value_print): Don't declare.
10526 Include c-lang.h.
10527 * c-valprint.c (c_value_print): Return void.
10528 * c-lang.h (c_value_print): Return void.
10529 * ada-valprint.c (ada_value_print): Return void.
10530 * ada-lang.h (ada_value_print): Return void.
10531
10532 2012-03-01 Tom Tromey <tromey@redhat.com>
10533
10534 * value.c (value_primitive_field): Handle virtual base classes.
10535
10536 2012-03-01 Tom Tromey <tromey@redhat.com>
10537
10538 * gdbtypes.h (struct vbase): Remove.
10539
10540 2012-03-01 Tom Tromey <tromey@redhat.com>
10541
10542 * c-valprint.c (print_function_pointer_address): Move...
10543 * valprint.c: ... here. Make non-static.
10544 * m2-valprint.c (print_function_pointer_address): Remove.
10545 * valprint.h (print_function_pointer_address): Declare.
10546
10547 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10548
10549 * NEWS: Document the fact that one can provide a condition when
10550 creating an Ada exception catchpoint.
10551
10552 2012-03-01 Tom Tromey <tromey@redhat.com>
10553
10554 * valprint.c (val_print_type_code_flags): Fix placement of
10555 trailing brace.
10556
10557 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10558
10559 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10560 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10561 environment variable before calling update-copyright.
10562
10563 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10564
10565 * gnulib/extra/update-copyright: Update to the latest from
10566 gnulib's git repository.
10567 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10568 variable to 2 instead of 1.
10569
10570 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10571
10572 * varobj.c (c_value_of_variable): Remove dead code.
10573
10574 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10575
10576 * ada-lex.p (processId): Do not modify already encoded IDs.
10577 Update function documentation.
10578
10579 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10580
10581 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10582 "name" with "struct symbol *name_sym".
10583 * ada-exp.y (write_var_or_type): Update call to
10584 ada_find_renaming_symbol.
10585 "name" with "struct symbol *name_sym". Adjust Implementation
10586 accordingly. Adjust the function documentation.
10587
10588 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10589
10590 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10591 * ada-lang.c (ada_find_any_type): Add advance declaration.
10592 Make static. Replace ada_find_any_symbol by
10593 ada_find_any_type_symbol.
10594 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10595 Improve function description. Make static.
10596 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10597 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10598
10599 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10600
10601 * ada-lang.c (struct tag_args): Delete.
10602 (ada_get_tsd_type): Function body moved up in source file.
10603 (ada_tag_name_1, ada_tag_name_2): Delete.
10604 (ada_get_tsd_from_tag): New function.
10605 (ada_tag_name_from_tsd): New function.
10606 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10607 to determine the tag name.
10608
10609 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10610
10611 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10612 declaration.
10613 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10614 function.
10615
10616 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10617
10618 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10619
10620 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10621
10622 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10623 full searches.
10624
10625 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10626
10627 * ada-lang.c (constrained_packed_array_type): If there is a
10628 parallel XA type, use it to determine the array index type.
10629
10630 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10631
10632 * ada-valprint.c (ada_val_print_1): If our value is a reference
10633 to an array descriptor, dereference it before converting it
10634 to a simple array.
10635
10636 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10637
10638 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10639 creating fixed value.
10640 (ada_value_ind, ada_coerce_ref, assign_component)
10641 (ada_evaluate_subexp): Remove call to unwrap_value before
10642 call to ada_to_fixed_value.
10643
10644 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10645
10646 * ada-lang.c (to_fixed_array_type): Set result's type name.
10647
10648 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10649
10650 * ada-lang.c (catch_ada_exception_command_split): Add new
10651 argument cond_string. Add support for condition at end of
10652 "catch exception" commands.
10653 (ada_decode_exception_location): Add new argument cond_string.
10654 Update call to catch_ada_exception_command_split.
10655 (create_ada_exception_catchpoint): Add new argument cond_string.
10656 Set the breakpoint condition if needed.
10657 (catch_ada_exception_command): Update call to
10658 ada_decode_exception_location.
10659 (ada_decode_assert_location): Add function documentation.
10660 Add support for condition at end of "catch assert" command.
10661 (catch_assert_command): Update calls to ada_decode_assert_location
10662 and create_ada_exception_catchpoint.
10663
10664 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10665
10666 Fix disp-step-syscall.exp: fork: single step over fork.
10667 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10668 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10669 comment, change parameters gdbarch and ptid to regcache. Remove
10670 parameter regcache, initialize gdbarch from regcache here.
10671 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10672 New functions.
10673 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10674 instead.
10675 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10676 'syscall'. Make the 'int' check more strict.
10677
10678 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10679
10680 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10681 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10682 (i386_linux_intx80_sysenter_syscall_record): ... here.
10683 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10684 Use the renamed function name.
10685
10686 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10687
10688 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10689 * breakpoint.c (until_break_command): Likewise.
10690 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10691 * infcall.c (call_function_by_hand): Likewise.
10692 * infcmd.c (finish_forward): Likewise.
10693 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10694
10695 2012-02-28 Tristan Gingold <gingold@adacore.com>
10696
10697 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10698 avoid variable assignments inside condition.
10699
10700 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10701
10702 Fix static analysis issue found by cppcheck.
10703 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10704 uninitialized BUF for size 2.
10705
10706 2012-02-27 Chris Dearman <chris@mips.com>
10707 Nathan Froyd <froydnj@codesourcery.com>
10708 Maciej W. Rozycki <macro@codesourcery.com>
10709
10710 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10711 (mips16_instruction_has_delay_slot): Likewise.
10712 (mips_segment_boundary): Likewise.
10713 (mips_adjust_breakpoint_address): Likewise.
10714 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10715
10716 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10717 Maciej W. Rozycki <macro@codesourcery.com>
10718
10719 * infrun.c (handle_inferior_event): Don't proceed through
10720 shared library trampolines if stepping at the machine
10721 instruction level.
10722
10723 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10724
10725 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10726 too.
10727
10728 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10729
10730 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10731 (sh_stub_unwind_sniffer): New functions.
10732 (sh_stub_unwind): New variable.
10733 (sh_gdbarch_init): Wire everything.
10734
10735 2012-02-27 Pedro Alves <palves@redhat.com>
10736
10737 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10738 (linux_nat_post_attach_wait): Adjust to use
10739 linux_proc_pid_is_stopped.
10740 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10741 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10742 based on pid_is_stopped from both linux-nat.c and
10743 gdbserver/linux-low.c, and renamed.
10744
10745 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10746
10747 * remote.c (remote_watchpoint_addr_within_range): New function.
10748 (init_remote_ops): Use it.
10749
10750 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10751
10752 * target.h (target_watchpoint_addr_within_range): Document macro.
10753
10754 2012-02-24 Pedro Alves <palves@redhat.com>
10755
10756 * stack.c (set_last_displayed_sal): Issue internal_error instead
10757 of warning, and issue it after clearing the last displayed sal.
10758
10759 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10760 Pedro Alves <palves@redhat.com>
10761
10762 * breakpoint.c (until_break_command): Install breakpoints after
10763 all frame manipulations.
10764
10765 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10766
10767 * remote.c (remote_supports_cond_breakpoints): New forward
10768 declaration.
10769 (remote_add_target_side_condition): New function.
10770 (remote_insert_breakpoint): Add target-side breakpoint
10771 conditional if supported.
10772 (remote_insert_hw_breakpoint): Likewise.
10773 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10774 hook.
10775
10776 * target.c (update_current_target): Inherit
10777 to_supports_evaluation_of_breakpoint_conditions.
10778 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10779
10780 * target.h (struct target_ops)
10781 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10782 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10783
10784 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10785 (condition_evaluation_both, condition_evaluation_auto,
10786 condition_evaluation_host, condition_evaluation_target,
10787 condition_evaluation_enums, condition_evaluation_mode_1,
10788 condition_evaluation_mode): New static globals.
10789 (translate_condition_evaluation_mode): New function.
10790 (breakpoint_condition_evaluation_mode): New function.
10791 (gdb_evaluates_breakpoint_condition_p): New function.
10792 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10793 (mark_breakpoint_modified): New function.
10794 (mark_breakpoint_location_modified): New function.
10795 (set_condition_evaluation_mode): New function.
10796 (show_condition_evaluation_mode): New function.
10797 (bp_location_compare_addrs): New function.
10798 (get_first_location_gte_addr): New helper function.
10799 (set_breakpoint_condition): Free condition bytecode if locations
10800 has become unconditional. Call mark_breakpoint_modified (...).
10801 (condition_command): Call update_global_location_list (1) for
10802 breakpoints.
10803 (breakpoint_xfer_memory): Use is_breakpoint (...).
10804 (is_breakpoint): New function.
10805 (parse_cond_to_aexpr): New function.
10806 (build_target_condition_list): New function.
10807 (insert_bp_location): Handle target-side conditional
10808 breakpoints and call build_target_condition_list (...).
10809 (update_inserted_breakpoint_locations): New function.
10810 (insert_breakpoint_locations): Handle target-side conditional
10811 breakpoints.
10812 (bpstat_check_breakpoint_conditions): Add comment.
10813 (bp_condition_evaluator): New function.
10814 (bp_location_condition_evaluator): New function.
10815 (print_breakpoint_location): Print information on where the condition
10816 will be evaluated.
10817 (print_one_breakpoint_location): Likewise.
10818 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10819 breakpoint location.
10820 (force_breakpoint_reinsertion): New functions.
10821 (update_global_location_list): Handle target-side breakpoint
10822 conditions.
10823 Reinsert locations that are already inserted if conditions have
10824 changed.
10825 (bp_location_dtor): Free agent expression bytecode.
10826 (disable_breakpoint): Call mark_breakpoint_modified (...).
10827 Call update_global_location_list (...) with parameter 1 for breakpoints.
10828 (disable_command): Call mark_breakpoint_location_modified (...).
10829 Call update_global_location_list (...) with parameter 1 for breakpoints.
10830 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10831 (enable_command): mark_breakpoint_location_modified (...).
10832 (_initialize_breakpoint): Update documentation and add
10833 condition-evaluation breakpoint subcommand.
10834
10835 * breakpoint.h: Include ax.h.
10836 (condition_list): New data structure.
10837 (condition_status): New enum.
10838 (bp_target_info) <cond_list>: New field.
10839 (bp_location) <condition_changed, cond_bytecode>: New fields.
10840 (is_breakpoint): New prototype.
10841
10842 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10843
10844 * remote.c (remote_state) <cond_breakpoints>: New field.
10845 (PACKET_ConditionalBreakpoints): New enum.
10846 (remote_cond_breakpoint_feature): New function.
10847 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10848 (remote_supports_cond_breakpoints): New function.
10849 (_initialize_remote): Add new packet configuration for
10850 target-side conditional breakpoints.
10851
10852 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10853
10854 * NEWS: Mention target-side conditional breakpoint support,
10855 new condition-evaluation breakpoint subcommand and remote
10856 packet extensions.
10857
10858 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10859
10860 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10861 number.
10862
10863 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10864
10865 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10866 (after_prologue): Remove.
10867
10868 2012-02-23 Tom Tromey <tromey@redhat.com>
10869
10870 * jv-valprint.c (java_val_print): Remove dead code.
10871
10872 2012-02-23 Tristan Gingold <gingold@adacore.com>
10873
10874 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10875 known_tasks_element and known_tasks_length fields.
10876 (read_known_tasks_array): Change argument type. Use pointer type
10877 and number of elements from DATA. Adjust.
10878 (read_known_tasks_list): Likewise.
10879 (get_known_tasks_addr): Remove.
10880 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10881 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10882 type and array length. Merge former get_known_tasks_addr code.
10883
10884 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10885
10886 PR backtrace/13716
10887 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10888 it after set_momentary_breakpoint.
10889
10890 2012-02-22 Sterling Augustine <saugustine@google.com>
10891
10892 PR 13689:
10893 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10894
10895 2012-02-22 Gary Benson <gbenson@redhat.com>
10896
10897 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10898 (find_slot_in_mapped_hash): Likewise.
10899
10900 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10901
10902 PR build/13638
10903 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10904 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10905 * configure: Regenerate.
10906
10907 2012-02-21 Tristan Gingold <gingold@adacore.com>
10908 Pedro Alves <palves@redhat.com>
10909
10910 * ia64-tdep.c: Do not include libunwind-ia64.h.
10911 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10912 Include libunwind-ia64.h instead of libunwind.h.
10913 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10914 for libunwind.h existence.
10915 * configure, config.in: Regenerate.
10916
10917 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10918
10919 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10920 instead of value_rtti_target_type.
10921 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10922 instead of value_rtti_target_type.
10923 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10924 value_rtti_target_type.
10925 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10926 (value_rtti_target_type): Rename to ...
10927 (value_rtti_indirect_type): ... here and make it indirect. Update
10928 function comment.
10929 * value.c (readjust_indirect_value_type): New function.
10930 (coerce_ref): Support for enclosing type setting for references
10931 with readjust_indirect_value_type.
10932 * value.h (readjust_value_type): New declaration.
10933 (value_rtti_target_type): Rename to ...
10934 (value_rtti_indirect_type): ... here.
10935
10936 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10937
10938 * MAINTAINERS (Write After Approval): Add myself to the list.
10939
10940 2012-02-20 Doug Evans <dje@google.com>
10941
10942 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10943 Rename objfile_p_char parameter to objfilep.
10944 (build_objfile_section_table): Result is now void. All callers
10945 updated.
10946 * objfiles.h (struct objfile): Tweak comments, whitespace.
10947 (build_objfile_section_table): Update.
10948
10949 * elfread.c (elf_symfile_segments): Fix warning text.
10950
10951 2012-02-20 Tom Tromey <tromey@redhat.com>
10952
10953 PR gdb/13498:
10954 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10955 particular set of file names once.
10956 (dw2_map_symbol_filenames): Likewise.
10957
10958 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10959
10960 Code cleanup.
10961 * main.c (write_files): Remove the declaration.
10962 (external_editor_command): Move the declaration ...
10963 [GDBTK] (external_editor_command): ... here. Fix the comment.
10964
10965 2012-02-20 Tom Tromey <tromey@redhat.com>
10966
10967 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10968 extraneous block.
10969
10970 2012-02-20 Tristan Gingold <gingold@adacore.com>
10971
10972 * darwin-nat.h (enum darwin_msg_state): Add comments.
10973
10974 2012-02-20 Tristan Gingold <gingold@adacore.com>
10975
10976 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10977 value.
10978
10979 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10980
10981 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10982 between function description and implementation.
10983
10984 2012-02-17 Tom Tromey <tromey@redhat.com>
10985
10986 PR python/12070:
10987 * python/py-event.c (event_object_getset): New global.
10988 (event_object_type): Reference it.
10989 * python/py-type.c (field_object_getset): New global.
10990 (field_object_type): Reference it.
10991 * python/python-internal.h (gdb_py_generic_dict): Declare.
10992 * python/py-utils.c (gdb_py_generic_dict): New function.
10993
10994 2012-02-17 Tristan Gingold <gingold@adacore.com>
10995
10996 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10997
10998 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10999
11000 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11001 TYPE_CALLING_CONVENTION annotation.
11002
11003 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11004
11005 * MAINTAINERS: Add rx to target ISA section.
11006 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11007 (ALLDEPFILES): Add rx-tdep.c.
11008
11009 2012-02-16 Tom Tromey <tromey@redhat.com>
11010
11011 * symfile.c (symbol_file_add_main_1): Use inferior's
11012 symfile_flags.
11013 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11014 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11015 inferior.
11016 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11017 inferior.
11018 (follow_exec): Use inferior's symfile_flags.
11019 * inferior.h (struct inferior) <symfile_flags>: New field.
11020
11021 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11022
11023 PR gdb/9734:
11024 * remote-sim.c (gdbsim_create_inferior): Call error() when
11025 sim_create_inferior() fails.
11026
11027 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11028
11029 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11030
11031 2012-02-16 Tom Tromey <tromey@redhat.com>
11032
11033 PR c++/13653:
11034 * thread.c (struct current_thread_cleanup) <was_removable>: New
11035 field.
11036 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11037 (make_cleanup_restore_current_thread): Initialize new field.
11038
11039 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11040
11041 * MAINTAINERS: Add rl78 to target ISA section.
11042 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11043 (ALLDEPFILES): Add rl78-tdep.c.
11044 * NEWS: Mention rl78 as a new target.
11045
11046 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11047
11048 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11049 data.
11050 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11051
11052 2012-02-15 Tom Tromey <tromey@redhat.com>
11053
11054 PR gdb/12659:
11055 * infcmd.c (registers_info): Print just the current register's
11056 name.
11057
11058 2012-02-15 Tom Tromey <tromey@redhat.com>
11059
11060 * python/py-symbol.c (sympy_value): Use _().
11061
11062 2012-02-15 Pedro Alves <palves@redhat.com>
11063
11064 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11065 output to be like native targets'.
11066 (remote_pid_to_str): Special case the null ptid.
11067
11068 2012-02-14 Stan Shebs <stan@codesourcery.com>
11069
11070 * NEWS: Mention enable count command.
11071 * breakpoint.h (struct breakpoint): New field enable_count.
11072 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11073 (enable_breakpoint): Add arg to call.
11074 (struct disp_data): New struct.
11075 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11076 (do_map_enable_once_breakpoint): Create a struct and pass it.
11077 (do_map_enable_delete_breakpoint): Ditto.
11078 (do_map_enable_count_breakpoint): New function.
11079 (enable_count_command): New function.
11080 (bpstat_stop_status): Decrement enable_count.
11081 (print_one_breakpoint_location): Report enable count.
11082 (_initialize_breakpoint): Add enable count command.
11083
11084 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11085
11086 * rl78-tdep.c (reggroups.h): Include.
11087 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11088 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11089 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11090 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11091 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11092 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11093 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11094 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11095 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11096 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11097 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11098 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11099 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11100 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11101 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11102 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11103 beginning of register list.
11104 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11105 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11106 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11107 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11108 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11109 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11110 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11111 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11112 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11113 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11114 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11115 the pseudo registers. Rearrange other pseudo registers too so
11116 that the bank registers appear at the end.
11117 (rl78_register_type): Account for the fact that the byte sized
11118 bank registers are now pseudo-registers.
11119 (rl78_register_name): Rearrange the register name array. Make
11120 initial set of raw banked registers inaccessible.
11121 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11122 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11123 case for copying bytes back and forth between raw and pseudo
11124 versions of the banked registers. Update other cases to reflect
11125 the changed names.
11126 (rl78_return_value): Update to account for changed names of
11127 raw registers.
11128 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11129 rl78_register_sim_regno().
11130
11131 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11132
11133 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11134 the name parameter being passed to find_pc_partial_function().
11135
11136 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11137
11138 * MAINTAINERS: Step down from being ia64 target maintainer.
11139
11140 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11141
11142 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11143 compilation warning.
11144
11145 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11146
11147 Fix crash on loaded shlibs without loaded exec_bfd.
11148 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11149 (set_section_command): Replace exec_bfd by p->bfd.
11150
11151 2012-02-10 Tom Tromey <tromey@redhat.com>
11152
11153 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11154 when we have a C++ qualified name.
11155
11156 2012-02-10 Pedro Alves <palves@redhat.com>
11157
11158 * inferior.c (inferior_pid_to_str): New.
11159 (print_inferior, inferior_command): Use it.
11160
11161 2012-02-10 Pedro Alves <palves@redhat.com>
11162
11163 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11164 the test CFLAGS.
11165 * configure: Regenerate.
11166
11167 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11168
11169 * linespec.c (decode_line_internal): Fix comment correctness.
11170
11171 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11172
11173 PR gdb/12953
11174 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11175 * amd64bsd-nat.c: Add support for debug registers (adapted from
11176 i386bsd-nat.c).
11177 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11178 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11179 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11180 (amd64bsd_dr_get_control): New functions.
11181 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11182 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11183 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11184 watchpoints initialization.
11185 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11186
11187 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11188
11189 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11190 flds_bnds.fields.
11191 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11192
11193 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11194
11195 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11196
11197 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11198
11199 * language.h (symbol_name_cmp_ftype): Renames
11200 symbol_name_match_p_ftype.
11201 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11202 la_get_symbol_name_match_p.
11203 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11204 ada_get_symbol_name_match_p. Update comment.
11205 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11206 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11207 Renames symbol_name_match_p. Update field type.
11208 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11209 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11210 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11211 "la_get_symbol_name_cmp" in comments.
11212 * language.c: Likewise.
11213
11214 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11215
11216 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11217 %eflags offset.
11218 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11219 (amd64_sol2_gregset32_reg_offs): Likewise.
11220
11221 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11222
11223 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11224 of the returned BFD is allocated by GDB.
11225
11226 2012-02-07 Tom Tromey <tromey@redhat.com>
11227
11228 PR python/12027:
11229 * python/python-internal.h (frame_object_type): Declare.
11230 * python/py-symbol.c (sympy_needs_frame): New function.
11231 (sympy_value): New function.
11232 (symbol_object_getset): Add "needs_frame".
11233 (symbol_object_methods): Add "value".
11234 * python/py-frame.c (frame_object_type): No longer static.
11235
11236 2012-02-07 Tom Tromey <tromey@redhat.com>
11237
11238 PR python/13599:
11239 * python/py-symbol.c (sympy_line): New function.
11240 (symbol_object_getset): Add "line".
11241
11242 2012-02-07 Tom Tromey <tromey@redhat.com>
11243
11244 * charset.c (find_charset_names): Check 'in' against NULL.
11245
11246 2012-02-06 Doug Evans <dje@google.com>
11247
11248 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11249 and fields.name members from char * to const char *. All uses updated.
11250 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11251 from char * to const char *. All uses updated.
11252 (type_name_no_tag): Update.
11253 (lookup_unsigned_typename, lookup_signed_typename): Update.
11254 * gdbtypes.c (type_name_no_tag): Change result type
11255 from char * to const char *. All callers updated.
11256 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11257 name parameter from char * to const char *.
11258 * symtab.h (struct cplus_specific): Change type of demangled_name
11259 member from char * to const char *. All uses updated.
11260 (struct general_symbol_info): Change type of name and
11261 mangled_lang.demangled_name members from char * to const char *.
11262 All uses updated.
11263 (symbol_get_demangled_name, symbol_natural_name): Update.
11264 (symbol_demangled_name, symbol_search_name): Update.
11265 * symtab.c (symbol_get_demangled_name): Change result type
11266 from char * to const char *. All callers updated.
11267 (symbol_natural_name, symbol_demangled_name): Ditto.
11268 (symbol_search_name): Ditto.
11269 (completion_list_add_name): Change type of symname,sym_text,
11270 text,word parameters from char * to const char *.
11271 (completion_list_objc_symbol): Change type of sym_text,
11272 text,word parameters from char * to const char *.
11273 * ada-lang.c (find_struct_field): Change type of name parameter
11274 from char * to const char *.
11275 (encoded_ordered_before): Similarly for N0,N1 parameters.
11276 (old_renaming_is_invisible): Similarly for function_name parameter.
11277 (ada_type_name): Change result type from char * to const char *.
11278 All callers updated.
11279 * ada-lang.h (ada_type_name): Update.
11280 * buildsym.c (hashname): Change type of name parameter
11281 from char * to const char *.
11282 * buildsym.h (hashname): Update.
11283 * dbxread.c (end_psymtab): Change type of include_list parameter
11284 from char ** to const char **.
11285 * dwarf2read.c (determine_prefix): Change result type
11286 from char * to const char *. All callers updated.
11287 * f-lang.c (find_common_for_function): Change type of name, funcname
11288 parameters from char * to const char *.
11289 * f-lang.c (find_common_for_function): Update.
11290 * f-valprint.c (list_all_visible_commons): Change type of funcname
11291 parameters from char * to const char *.
11292 * gdbarch.sh (static_transform_name): Change type of name parameter
11293 and result from char * to const char *.
11294 * gdbarch.c: Regenerate.
11295 * gdbarch.h: Regenerate.
11296 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11297 of name parameter from char * to const char *.
11298 * jv-lang.c (java_primitive_type_from_name): Ditto.
11299 (java_demangled_signature_length): Similarly for signature parameter.
11300 (java_demangled_signature_copy): Ditto.
11301 (java_demangle_type_signature): Ditto.
11302 * jv-lang.h (java_primitive_type_from_name): Update.
11303 (java_demangle_type_signature): Update.
11304 * objc-lang.c (specialcmp): Change type of a,b parameters
11305 from char * to const char *.
11306 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11307 from char * to const char *. All callers updated.
11308 * p-lang.h (is_pascal_string_type): Update.
11309 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11310 of name parameter from char * to const char *.
11311 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11312 * utils.c (fprintf_symbol_filtered): Ditto.
11313 * defs.h (fprintf_symbol_filtered): Update.
11314 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11315 * stabsread.h (end_psymtab): Update.
11316 * stack.c (find_frame_funname): Change type of funname parameter
11317 from char ** to const char **.
11318 * stack.h (find_frame_funname): Update.
11319 * typeprint.c (type_print): Change type of varstring parameter
11320 from char * to const char *.
11321 * value.h (type_print): Update.
11322 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11323 from char * to const char *. All callers updated.
11324 (xcoff_end_psymtab): Change type of include_list parameter
11325 from char ** to const char **. All callers updated.
11326 (swap_sym): Similarly for name parameter. All callers updated.
11327 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11328 Use xstrdup.
11329 (process_coff_symbol): Use xstrdup.
11330 * stabsread.c (stabs_method_name_from_physname): Renamed from
11331 update_method_name_from_physname. Change result type from void
11332 to char *. All callers updated.
11333 (read_member_functions): In has_destructor case, store name in objfile
11334 obstack instead of malloc space. In !has_stub case, fix mem leak.
11335
11336 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11337
11338 * configure: Rebuild.
11339 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11340 LDFLAGS.
11341
11342 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11343
11344 * configure.tgt (rl78-*-elf): New target.
11345 * rl78-tdep.c: New file.
11346
11347 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11348
11349 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11350 and continue the loop. Add QUIT statement.
11351
11352 2012-02-03 Tom Tromey <tromey@redhat.com>
11353
11354 PR gdb/13596:
11355 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11356 bfd_lookup_symbol_from_symtab.
11357 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11358 gdb_bfd_lookup_symbol_from_symtab.
11359
11360 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11361
11362 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11363 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11364 symbol. Add assertion that sym2 is never NULL.
11365
11366 2012-02-02 Doug Evans <dje@google.com>
11367
11368 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11369 "name" parameter to const char ** from char **. All callers updated.
11370 (find_pc_partial_function): Ditto.
11371 (cache_pc_function_name): Change type to const char * from char *.
11372 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11373 (find_pc_partial_function): Update.
11374 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11375 type of "name" parameter to const char * from char *.
11376 All uses updated.
11377 * arch-utils.c (generic_in_solib_return_trampoline): Change
11378 type of "name" parameter to const char * from char *.
11379 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11380 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11381 type of "name" parameter to const char * from char *.
11382 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11383 * gdbarch.c: Regenerate.
11384 * gdbarch.h: Regenerate.
11385 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11386 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11387 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11388 type of "name" parameter to const char * from char *.
11389 * skip.c (skip_function_pc): Ditto.
11390 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11391 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11392 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11393 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11394 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11395 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11396 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11397 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11398 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11399
11400 2012-02-02 Pedro Alves <palves@redhat.com>
11401
11402 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11403 the current inferior has no execution. Make sure the current
11404 remote process matches gdb's current inferior.
11405
11406 2012-02-02 Tom Tromey <tromey@redhat.com>
11407
11408 PR gdb/13405:
11409 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11410 read-only memory.
11411
11412 2012-02-02 Tom Tromey <tromey@redhat.com>
11413
11414 PR gdb/9307:
11415 * symtab.c (lookup_language_this): Set block_found.
11416
11417 2012-02-01 Tom Tromey <tromey@redhat.com>
11418
11419 PR gdb/13431:
11420 * jit.c (struct jit_inferior_data): Rewrite.
11421 (struct jit_objfile_data): New.
11422 (get_jit_objfile_data): New function.
11423 (add_objfile_entry): Update.
11424 (jit_read_descriptor): Return int. Replace descriptor_addr
11425 argument with inf_data. Update. Don't call error.
11426 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11427 descriptor here.
11428 (jit_inferior_init): Don't look up descriptor. Don't call error.
11429 (jit_reset_inferior_data_and_breakpoints)
11430 (jit_inferior_created_observer): Remove.
11431 (jit_inferior_exit_hook): Update.
11432 (jit_executable_changed_observer): Remove.
11433 (jit_event_handler): Update.
11434 (free_objfile_data): Reset inferior data if needed.
11435 (_initialize_jit): Update.
11436
11437 2012-02-01 Tom Tromey <tromey@redhat.com>
11438
11439 * jit.c (bfd_open_from_target_memory): Move higher in file.
11440
11441 2012-02-01 Tristan Gingold <gingold@adacore.com>
11442
11443 * libunwind-frame.c (libunwind_load): Display message if dlopen
11444 failed.
11445
11446 2012-02-01 Gary Benson <gbenson@redhat.com>
11447
11448 * symtab.h (symbol_found_callback_ftype): New typedef.
11449 (iterate_over_symbols): Use the above.
11450 * symtab.c (iterate_over_symbols): Likewise.
11451 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11452 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11453 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11454 (iterate_name_matcher): Document return values.
11455 (collect_one_symbol): Likewise.
11456 (collect_function_symbols): Likewise.
11457 (collect_symbols): Likewise.
11458
11459 2012-02-01 Tom Tromey <tromey@redhat.com>
11460
11461 * ada-lang.c (resolve_subexp): Update.
11462 (ada_lookup_symbol_list): Add 'full_search' argument.
11463 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11464 ada_lookup_symbol_list.
11465 (ada_lookup_encoded_symbol): Update.
11466 (get_var_value): Update.
11467 * ada-exp.y (block_lookup): Update.
11468 (write_var_or_type): Update.
11469 (write_name_assoc): Update.
11470 * ada-lang.h (ada_lookup_symbol_list): Update.
11471
11472 2012-01-31 Tom Tromey <tromey@redhat.com>
11473
11474 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11475 comment.
11476
11477 2012-01-31 Doug Evans <dje@google.com>
11478
11479 * symtab.h: Remove outdated comment.
11480 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11481
11482 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11483
11484 Fix build error in Darwin port.
11485 * i386-darwin-nat.c: Include i386-nat.h.
11486
11487 2012-01-30 Tom Tromey <tromey@redhat.com>
11488
11489 PR breakpoints/13568:
11490 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11491 argument. Check for recursive includes.
11492 (dwarf_decode_macros): Create an include hash.
11493
11494 2012-01-30 Michael Eager <eager@eagercon.com>
11495
11496 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11497 * ppc-linux-tdep.c: Include glibc-tdep.h.
11498 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11499 (powerpc_linux_in_plt_stub): New function.
11500 (powerpc_linux_in_dynsym_resolve_code): New function.
11501 (ppc_skip_trampoline_code): New function.
11502 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11503 Use glibc_skip_solib_resolver.
11504
11505 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11506
11507 Code cleanup: Make 1440 bytes of data segment read-only.
11508 * arch-utils.c (endian_enum): Make it const char *const [].
11509 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11510 Likewise.
11511 * breakpoint.c (always_inserted_enums): Likewise.
11512 * cli/cli-cmds.c (script_ext_enums): Likewise.
11513 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11514 enumlist parameter const char *const *.
11515 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11516 const char *const *.
11517 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11518 parameter const char *const *.
11519 * cris-tdep.c (cris_modes): Make it const char *const [].
11520 * filesystem.c (target_file_system_kinds): Likewise.
11521 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11522 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11523 (can_use_displaced_stepping_enum, scheduler_enums)
11524 (exec_direction_names): Likewise.
11525 * language.c (_initialize_language): Make the type_or_range_names and
11526 case_sensitive_names variables const char *const [].
11527 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11528 * python/python.c (python_excp_enums): Likewise.
11529 * remote.c (interrupt_sequence_modes): Likewise.
11530 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11531 * serial.c (logbase_enums): Likewise.
11532 * sh-tdep.c (sh_cc_enum): Likewise.
11533 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11534 Likewise.
11535 * symtab.c (multiple_symbols_modes): Likewise.
11536 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11537 Likewise.
11538 * utils.c (internal_problem_modes): Likewise.
11539
11540 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11541
11542 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11543 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11544 result.
11545
11546 2012-01-27 Doug Evans <dje@google.com>
11547
11548 * configure.ac (with_python): Fix absolute path handling for win32.
11549 * configure: Regenerate.
11550
11551 2012-01-26 Doug Evans <dje@google.com>
11552
11553 * symtab.c: Whitespace cleanup, no code changes.
11554
11555 * symtab.c (lookup_symbol_in_language): Improve comment.
11556 (lookup_symbol_aux): Fix comment.
11557
11558 * psymtab.c (add_psymbol_to_list): Result is now "void".
11559 * psympriv.h (add_psymbol_to_list): Update.
11560
11561 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11562
11563 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11564
11565 Do not open script filenames twice.
11566 * cli/cli-cmds.c (source_script_from_stream): Pass to
11567 source_python_script also STREAM.
11568 * python/py-auto-load.c (source_section_scripts): Pass to
11569 source_python_script_for_objfile also STREAM.
11570 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11571 also INPUT.
11572 * python/python-internal.h (source_python_script_for_objfile): New
11573 parameter file, rename parameter file to filename.
11574 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11575 instead if !_WIN32. Update the function comment.
11576 (source_python_script, source_python_script_for_objfile)
11577 (source_python_script): New parameter file, rename parameter file to
11578 filename. Pass FILENAME to python_run_simple_file.
11579 * python/python.h (source_python_script): New parameter file, rename
11580 parameter file to filename.
11581
11582 2012-01-26 Pedro Alves <palves@redhat.com>
11583
11584 * corelow.c (core_has_fake_pid): Delete.
11585 (core_close): Delete references to `core_has_fake_pid'.
11586 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11587 (core_open): Delete references to `core_has_fake_pid'.
11588 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11589 the removed global.
11590
11591 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11592
11593 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11594 Remove language parameter from name_matcher. Adjust the comment.
11595 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11596 Remove language parameter.
11597 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11598 * linespec.c (iterate_name_matcher): Likewise.
11599 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11600 name_matcher. Adjust call accordingly.
11601 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11602 (maintenance_check_symtabs): Adjust type of parameter "fun".
11603 * psymtab.h (maintenance_check_symtabs): Likewise.
11604
11605 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11606
11607 * language.h (symbol_name_match_p_ftype): New typedef.
11608 (struct language_defn): Replace field la_symbol_name_compare
11609 by la_get_symbol_name_match_p.
11610 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11611 (ada_language_defn): Use it.
11612 * linespec.c (struct symbol_matcher_data): New type.
11613 (iterate_name_matcher): Rewrite.
11614 (iterate_over_all_matching_symtabs): Pass a pointer to
11615 a symbol_matcher_data struct to expand_symtabs_matching
11616 instead of just the lookup name.
11617 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11618 opencl-lang.c, p-lang.c, language.c: Delete field
11619 la_symbol_name_compare, and replace by NULL for new field
11620 la_get_symbol_name_match_p.
11621 * symfile.h (struct quick_symbol_functions): Update comment.
11622
11623 2012-01-25 Tom Tromey <tromey@redhat.com>
11624
11625 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11626 dereferencing.
11627
11628 2012-01-24 Tom Tromey <tromey@redhat.com>
11629
11630 PR symtab/12406:
11631 * solib.c (update_solib_list): Update the program space's
11632 added_solibs and deleted_solibs fields.
11633 * progspace.h (struct program_space) <added_solibs,
11634 deleted_solibs>: New fields.
11635 (clear_program_space_solib_cache): Declare.
11636 * progspace.c (release_program_space): Call
11637 clear_program_space_solib_cache.
11638 (clear_program_space_solib_cache): New function.
11639 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11640 bpstat_stop_status. Use handle_solib_event.
11641 * breakpoint.c: Include gdb_regex.h.
11642 (print_solib_event): New function.
11643 (bpstat_print): Use print_solib_event.
11644 (bpstat_stop_status): Add special case for bp_shlib_event.
11645 (handle_solib_event): New function.
11646 (bpstat_what): Use handle_solib_event.
11647 (struct solib_catchpoint): New.
11648 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11649 (breakpoint_hit_catch_solib, check_status_catch_solib)
11650 (print_it_catch_solib, print_one_catch_solib)
11651 (print_mention_catch_solib, print_recreate_catch_solib): New
11652 functions.
11653 (catch_solib_breakpoint_ops): New global.
11654 (catch_load_or_unload, catch_load_command_1)
11655 (catch_unload_command_1): New functions.
11656 (internal_bkpt_check_status): Add special case for
11657 bp_shlib_event.
11658 (internal_bkpt_print_it): Use print_solib_event.
11659 (initialize_breakpoint_ops): Initialize
11660 catch_solib_breakpoint_ops.
11661 (_initialize_breakpoint): Register "catch load" and "catch
11662 unload".
11663 * breakpoint.h (handle_solib_event): Declare.
11664 * NEWS: Add entry for "catch load" and "catch unload".
11665
11666 2012-01-24 Tom Tromey <tromey@redhat.com>
11667
11668 * ada-lang.c: Include gdb_vecs.h.
11669 * charset.c: Include gdb_vecs.h.
11670 * tracepoint.h: Include gdb_vecs.h.
11671 * gdb_vecs.h: New file.
11672
11673 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11674
11675 * breakpoint.c (breakpoint_hit_catch_fork)
11676 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11677 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11678 * infrun.c (inferior_has_forked, inferior_has_vforked)
11679 (inferior_has_execd, inferior_has_called_syscall): Delete.
11680 (handle_syscall_event): Get syscall_number from the execution
11681 control state's wait status.
11682 (wait_for_inferior): Don't clear syscall_number.
11683
11684 2012-01-24 Pedro Alves <palves@redhat.com>
11685
11686 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11687 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11688 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11689 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11690 `ws' parameter.
11691 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11692 false for events other than TARGET_SIGNAL_TRAP.
11693 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11694 Add `ws' parameter.
11695 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11696 events other than TARGET_SIGNAL_TRAP.
11697 (tracepoint_breakpoint_hit): Add `ws' parameter.
11698 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11699 parameter.
11700 (bpstat_stop_status): Same.
11701 (pc_at_non_inline_function): Same.
11702 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11703 to pass the current event's waitstatus to bpstat_stop_status
11704 and pc_at_non_inline_function.
11705
11706 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11707
11708 Code cleanup.
11709 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11710 Update the function comment for it.
11711 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11712 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11713 for STREAM.
11714
11715 2012-01-24 Pedro Alves <palves@redhat.com>
11716
11717 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11718 outside `bs->stop' block.
11719 (bpstat_what): Rework bp_shlib_event handling.
11720 (internal_bkpt_check_status): If the breakpoint is a
11721 bp_shlib_event, then set bs->stop and bs->print if
11722 stop_on_solib_events is set.
11723
11724 2012-01-24 Gary Benson <gbenson@redhat.com>
11725
11726 Delete #if 0'd out code.
11727 * stack.c (print_frame_label_vars): Remove.
11728 (catch_info): Likewise.
11729 (_initialize_stack): Remove "info catch" command.
11730 * NEWS: Mention the above.
11731
11732 2012-01-24 Pedro Alves <palves@redhat.com>
11733
11734 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11735 it.
11736 (remote_notice_new_inferior): If the remote end doesn't support
11737 the multiprocess extensions, then the PID is fake.
11738 (add_current_inferior_and_thread): New.
11739 (remote_start_remote): Use it.
11740 (extended_remote_attach_1): Adjust.
11741 (extended_remote_create_inferior_1): Use
11742 add_current_inferior_and_thread.
11743
11744 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11745
11746 Fix watchpoints to be specific for each inferior.
11747 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11748 current_program_space.
11749 * i386-nat.c (i386_inferior_data_cleanup): New.
11750 (i386_inferior_data_get): Replace variable inf_data_local by an
11751 inferior_data call.
11752 (i386_use_watchpoints): Initialize i386_inferior_data.
11753 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11754 specific iterate_over_lwps.
11755
11756 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11757
11758 Fix watchpoints across inferior fork.
11759 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11760 comment for linux_nat_iterate_watchpoint_lwps.
11761 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11762 linux_nat_iterate_watchpoint_lwps.
11763 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11764 * i386-linux-nat.c (update_debug_registers_callback): Update the
11765 comment for linux_nat_iterate_watchpoint_lwps.
11766 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11767 linux_nat_iterate_watchpoint_lwps.
11768 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11769 * i386-nat.c: Include inferior.h.
11770 (dr_mirror): Remove.
11771 (i386_inferior_data, struct i386_inferior_data)
11772 (i386_inferior_data_get): New.
11773 (i386_debug_reg_state): Use i386_inferior_data_get.
11774 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11775 (i386_insert_watchpoint, i386_remove_watchpoint)
11776 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11777 (i386_remove_hw_breakpoint): New variable state, use
11778 i386_debug_reg_state instead of DR_MIRROR.
11779 * linux-nat.c (delete_lwp): New declaration.
11780 (num_lwps): Move here from downwards.
11781 (delete_lwp_cleanup): New.
11782 (linux_child_follow_fork): Create new child_lp, call
11783 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11784 PTRACE_DETACH.
11785 (num_lwps): Move upwards.
11786 (linux_nat_iterate_watchpoint_lwps): New.
11787 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11788 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11789
11790 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11791
11792 GDB 7.4 released.
11793
11794 2012-01-23 Pedro Alves <palves@redhat.com>
11795
11796 * top.c (caution): Rename to ...
11797 (confirm): ... this.
11798 (show_caution): Rename to ...
11799 (show_confirm): ... this.
11800 (quit_cover): Adjust.
11801 (init_main): Adjust.
11802 * top.h (caution): Rename to ...
11803 (confirm): ... this.
11804 * utils.c (internal_vproblem, defaulted_query): Adjust.
11805
11806 2012-01-23 Pedro Alves <palves@redhat.com>
11807
11808 * top.c (caution): Update comment.
11809 (execute_command): Don't consider the current value of `caution'.
11810
11811 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11812
11813 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11814
11815 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11816
11817 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11818 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11819 * target.c (target_fileio_pwrite): Remove buffer address from
11820 debug output.
11821 (target_fileio_pread): Likewise.
11822
11823 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11824
11825 * NEWS: Document remote "info proc" and "generate-core-file".
11826
11827 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11828
11829 * gdbarch.sh (find_memory_regions): New callback.
11830 * gdbarch.c, gdbarch.h: Regenerate.
11831
11832 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11833 callback before falling back to target method.
11834
11835 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11836 (linux_target_install_ops): No longer install it.
11837
11838 * linux-tdep.c (linux_find_memory_regions): New function.
11839 (linux_init_abi): Install it.
11840
11841 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11842
11843 * gdbarch.sh (make_corefile_notes): New architecture callback.
11844 * gdbarch.c: Regenerate.
11845 * gdbarch.h: Likewise.
11846
11847 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11848 before target_make_corefile_notes. If NULL is returned, the
11849 target does not support core file generation.
11850
11851 * linux-nat.c: Include "linux-tdep.h".
11852 (find_signalled_thread, find_stop_signal): Remove.
11853 (linux_nat_do_thread_registers): Likewise.
11854 (struct linux_nat_corefile_thread_data): Likewise.
11855 (linux_nat_corefile_thread_callback): Likewise.
11856 (iterate_over_spus): Likewise.
11857 (struct linux_spu_corefile_data): Likewise.
11858 (linux_spu_corefile_callback): Likewise.
11859 (linux_spu_make_corefile_notes): Likewise.
11860 (linux_nat_collect_thread_registers): New function.
11861 (linux_nat_make_corefile_notes): Replace contents by call to
11862 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11863 as native-only callback.
11864
11865 * linux-tdep.h: Include "bfd.h".
11866 (struct regcache): Add forward declaration.
11867 (linux_collect_thread_registers_ftype): New typedef.
11868 (linux_make_corefile_notes): Add prototype.
11869 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11870 "regset.h", and "elf-bfd.h".
11871 (find_signalled_thread, find_stop_signal): New functions.
11872 (linux_spu_make_corefile_notes): Likewise.
11873 (linux_collect_thread_registers): Likewise.
11874 (struct linux_corefile_thread_data): New data structure.
11875 (linux_corefile_thread_callback): New funcion.
11876 (linux_make_corefile_notes): Likewise.
11877 (linux_make_corefile_notes_1): Likewise.
11878 (linux_init_abi): Install it.
11879
11880 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11881
11882 * gdbarch.sh (info_proc): New callback.
11883 * gdbarch.c, gdbarch.h: Regenerate.
11884
11885 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11886 before falling back to the target info_proc callback.
11887
11888 * linux-nat.c: Do not include "cli/cli-utils.h".
11889 (linux_nat_info_proc): Remove.
11890 (linux_target_install_ops): No longer install it.
11891
11892 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11893 (read_mapping): New function.
11894 (linux_info_proc): Likewise.
11895 (linux_init_abi): Install it.
11896
11897 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11898
11899 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11900 * infcmd.c: (info_proc_cmd_1): New function.
11901 (info_proc_cmd): New function, moved here from equivalent routine
11902 orignally in linux-nat.c.
11903 (info_proc_cmd_mappings): Likewise.
11904 (info_proc_cmd_stat): Likewise.
11905 (info_proc_cmd_status): Likewise.
11906 (info_proc_cmd_cwd): Likewise.
11907 (info_proc_cmd_cmdline): Likewise.
11908 (info_proc_cmd_exe): Likewise.
11909 (info_proc_cmd_all): Likewise.
11910 (_initialize_infcmd): Install "info proc" command and subcommands.
11911
11912 * target.h (struct target_ops): Add to_info_proc.
11913 (target_info_proc): Add prototype.
11914 * target.c (target_info_proc): New function.
11915
11916 * procfs.c (procfs_info_proc): Add prototype.
11917 (info_proc_cmd): Rename into ...
11918 (procfs_info_proc): ... this. Update argument types as appropriate
11919 for a to_info_proc implementation. Handle "what" argument.
11920 (procfs_target): Install procfs_info_proc.
11921 (_initialize_procfs): No longer install "info proc" command.
11922
11923 * linux-nat.c: (enum info_proc_what): Remove.
11924 (linux_nat_info_proc_cmd_1): Rename into ...
11925 (linux_nat_info_proc): ... this. Update argument types as appropriate
11926 for a to_info_proc implementation.
11927 (linux_nat_info_proc_cmd): Remove.
11928 (linux_nat_info_proc_cmd_mappings): Likewise.
11929 (linux_nat_info_proc_cmd_stat): Likewise.
11930 (linux_nat_info_proc_cmd_status): Likewise.
11931 (linux_nat_info_proc_cmd_cwd): Likewise.
11932 (linux_nat_info_proc_cmd_cmdline): Likewise.
11933 (linux_nat_info_proc_cmd_exe): Likewise.
11934 (linux_nat_info_proc_cmd_all): Likewise.
11935 (linux_target_install_ops): Install linux_nat_info_proc.
11936 (_initialize_linux_nat): No longer install "info proc" command
11937 and subcommands.
11938
11939 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11940
11941 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11942 * config.in, configure: Regenerate.
11943
11944 * target.h (struct target_ops): Add to_fileio_readlink.
11945 (target_fileio_readlink): Add prototype.
11946 * target.c (target_fileio_readlink): New function.
11947
11948 * inf-child.c: Conditionally include <sys/param.h>.
11949 (inf_child_fileio_readlink): New function.
11950 (inf_child_target): Install it.
11951
11952 * remote.c (PACKET_vFile_readlink): New enum value.
11953 (remote_hostio_readlink): New function.
11954 (init_remote_ops): Install it.
11955 (_initialize_remote): Handle vFile:readlink packet type.
11956
11957 2012-01-20 Pedro Alves <palves@redhat.com>
11958 Ulrich Weigand <ulrich.weigand@linaro.org>
11959
11960 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11961 * config.in, configure: Regenerate.
11962
11963 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11964 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11965 (target_fileio_open): Add prototype.
11966 (target_fileio_pwrite): Likewise.
11967 (target_fileio_pread): Likewise.
11968 (target_fileio_close): Likewise.
11969 (target_fileio_unlink): Likewise.
11970 (target_fileio_read_alloc): Likewise.
11971 (target_fileio_read_stralloc): Likewise.
11972
11973 * target.c: Include "gdb/fileio.h".
11974 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11975 (default_fileio_target): New function.
11976 (target_fileio_open): Likewise.
11977 (target_fileio_pwrite): Likewise.
11978 (target_fileio_pread): Likewise.
11979 (target_fileio_close): Likewise.
11980 (target_fileio_unlink): Likewise.
11981 (target_fileio_close_cleanup): Likewise.
11982 (target_fileio_read_alloc_1): Likewise.
11983 (target_fileio_read_alloc): Likewise.
11984 (target_fileio_read_stralloc): Likewise.
11985
11986 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11987 <fcntl.h>, and <unistd.h>.
11988 (inf_child_fileio_open_flags_to_host): New function.
11989 (inf_child_errno_to_fileio_error): Likewise.
11990 (inf_child_fileio_open): Likewise.
11991 (inf_child_fileio_pwrite): Likewise.
11992 (inf_child_fileio_pread): Likewise.
11993 (inf_child_fileio_close): Likewise.
11994 (inf_child_fileio_unlink): Likewise.
11995 (inf_child_target): Install to_fileio routines.
11996
11997 * remote.c (init_remote_ops): Install to_fileio routines.
11998
11999 2012-01-20 Pedro Alves <palves@redhat.com>
12000 Ulrich Weigand <ulrich.weigand@linaro.org>
12001
12002 * remote.c (remote_multi_process_p): Only check for multi-process
12003 protocol feature, do not check for extended protocol.
12004 (remote_supports_multi_process): Check for extended protocol here.
12005 (set_general_process): Likewise.
12006 (extended_remote_kill): Likewise.
12007 (remote_pid_to_str): Likewise.
12008 (remote_query_supported): Always query multiprocess mode.
12009
12010 2012-01-20 Pedro Alves <palves@redhat.com>
12011 Ulrich Weigand <ulrich.weigand@linaro.org>
12012
12013 * inferior.h (struct inferior): Add fake_pid_p.
12014 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12015 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12016 magic_null_ptid since the remote side doesn't provide a real PID.
12017
12018 2012-01-19 Tom Tromey <tromey@redhat.com>
12019
12020 * NEWS: Combine the two Python sections.
12021
12022 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12023
12024 * target.h (target_close): Update comment on the target's unpush state.
12025
12026 2012-01-19 Pedro Alves <palves@redhat.com>
12027
12028 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12029 linux_nat_async directly instead of going through the target
12030 vector.
12031 * target.c (unpush_target): Close target after unpushing it, not
12032 before.
12033
12034 2012-01-19 Gary Benson <gbenson@redhat.com>
12035
12036 * mdebugread.c (sort_blocks): Replace integer constants with ones
12037 derived from FIRST_LOCAL_BLOCK.
12038
12039 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12040 Jan Kratochvil <jan.kratochvil@redhat.com>
12041
12042 PR gdb/9538
12043 * symfile.c (find_separate_debug_file): New function.
12044 (terminate_after_last_dir_separator): Likewise.
12045 (find_separate_debug_file_by_debuglink): Also try realpath.
12046 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12047 * configure: Regenerate.
12048 * config.in: Regenerate.
12049
12050 2012-01-18 Doug Evans <dje@google.com>
12051
12052 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12053 (main.o): Remove rule.
12054 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12055 (--with-sysroot): Rewrite.
12056 * configure: Regenerate.
12057 * config.in: Regenerate.
12058
12059 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12060
12061 * parse.c (initialize_expout): New function.
12062 (reallocate_expout): Likewise.
12063 (parse_exp_in_context): Use `initialize_expout' and
12064 `reallocate_expout' when appropriate.
12065
12066 2012-01-18 Pedro Alves <palves@redhat.com>
12067
12068 * record.c (struct record_breakpoint, record_breakpoint_p)
12069 (record_breakpoints): New.
12070 (record_insert_breakpoint, record_remove_breakpoint): Manage
12071 record breakpoints list. Only remove breakpoints from the
12072 inferior if they had been inserted there in the first place.
12073
12074 2012-01-17 Doug Evans <dje@google.com>
12075
12076 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12077 if we know we don't have a file name to look for.
12078
12079 2012-01-17 Pedro Alves <palves@redhat.com>
12080
12081 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12082 the frame's stop reason is UNWIND_UNAVAILABLE.
12083
12084 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12085
12086 Fix compilation error.
12087 * m2-exp.y (yyerror): Use ANSI C prototype.
12088
12089 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12090
12091 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12092 (growbuf_by_size): Likewise.
12093 (yyerror): Likewise.
12094 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12095 (modblock): Remove variable (was #if 0'ed).
12096 (parse_number): Convert prototype from K&R to ANSI C.
12097 (yyerror): Likewise.
12098 * objc-exp.y (parse_number): Likewise.
12099 (yyerror): Likewise.
12100 (yylex): Remove #if 0'ed code.
12101 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12102 (yyerror): Likewise.
12103
12104 2012-01-16 Tom Tromey <tromey@redhat.com>
12105
12106 * NEWS: Add item.
12107 * symtab.h (compare_filenames_for_search): Declare.
12108 * symtab.c (compare_filenames_for_search): New function.
12109 (iterate_over_some_symtabs): Use it.
12110 * symfile.h (struct quick_symbol_functions)
12111 <map_symtabs_matching_filename>: Change spec.
12112 * psymtab.c (partial_map_symtabs_matching_filename): Use
12113 compare_filenames_for_search. Update for new spec.
12114 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12115 compare_filenames_for_search. Update for new spec.
12116 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12117
12118 2012-01-16 Tom Tromey <tromey@redhat.com>
12119
12120 PR python/13281:
12121 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12122 (struct main_type) <flag_flag_enum>: New field.
12123 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12124 * NEWS: Add entries.
12125 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12126 enums.
12127 * python/lib/gdb/printing.py (_EnumInstance): New class.
12128 (FlagEnumerationPrinter): Likewise.
12129
12130 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12131
12132 * breakpoint.c (create_sals_from_address_default): New function.
12133 (create_breakpoints_sal_default): Likewise.
12134 (decode_linespec_default): Likewise.
12135 (is_marker_spec): Removed.
12136 (strace_marker_p): New function.
12137 (init_breakpoint_sal): Using `strace_marker_p' instead of
12138 `is_marker_spec'.
12139 (create_breakpoint): Call method `create_sals_from_address' from
12140 breakpoint_ops, replacing code that created SALs conditionally
12141 on the type of the breakpoint. Call method `create_breakpoints_sal',
12142 replacing code that created breakpoints conditionally on the type
12143 wanted.
12144 (base_breakpoint_create_sals_from_address): New function.
12145 (base_breakpoint_create_breakpoints_sal): Likewise.
12146 (base_breakpoint_decode_linespec): Likewise.
12147 (base_breakpoint_ops): Add methods
12148 `base_breakpoint_create_sals_from_address',
12149 `base_breakpoint_create_breakpoints_sal' and
12150 `base_breakpoint_decode_linespec'.
12151 (bkpt_create_sals_from_address): New function.
12152 (bkpt_create_breakpoints_sal): Likewise.
12153 (bkpt_decode_linespec): Likewise.
12154 (tracepoint_create_sals_from_address): Likewise.
12155 (tracepoint_create_breakpoints_sal): Likewise.
12156 (tracepoint_decode_linespec): Likewise.
12157 (strace_marker_create_sals_from_address): Likewise.
12158 (strace_marker_create_breakpoints_sal): Likewise.
12159 (strace_marker_decode_linespec): Likewise.
12160 (strace_marker_breakpoint_ops): New variable.
12161 (addr_string_to_sals): Remove `marker_spec'. Call method
12162 `decode_linespec' from breakpoint_ops, replacing code that decoded
12163 an address string into a SAL. Use `strace_marker_p' instead of
12164 `marker_spec'.
12165 (strace_command): Decide whether we are dealing with a static
12166 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12167 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12168 * breakpoint.h (linespec_result, linespec_sals): New forward
12169 declarations.
12170 (breakpoint_ops) <create_sals_from_address>,
12171 <create_breakpoints_sal>, <decode_linespec>: New methods.
12172
12173 2012-01-14 Doug Evans <dje@google.com>
12174
12175 * NEWS: Update text for "maint set python print-stack".
12176 It is deprecated in gdb 7.4 and deleted in 7.5.
12177
12178 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12179
12180 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12181 including curses.h.
12182
12183 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12184
12185 * configure: Regenerate.
12186 * config.in: Regenerate.
12187
12188 2012-01-12 Keith Seitz <keiths@redhat.com>
12189
12190 PR mi/10586
12191 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12192 (ANONYMOUS_UNION_NAME): Define.
12193 (is_path_expr_parent): New function.
12194 (get_path_expr_parent): New function.
12195 (is_anonymous_child): New function.
12196 (create_child_with_value): If the child is anonymous and without
12197 a name, assign an object name to it.
12198 (c_describe_child): Use get_path_expr_parent to determine
12199 the parent expression.
12200 If there field represents an anonymous struct or union and
12201 has no name, set an appropriate display name and expression.
12202 (cplus_describe_child): Likewise.
12203
12204 2012-01-12 Pedro Alves <palves@redhat.com>
12205
12206 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12207 available when %ebp is found to be zero (outermost).
12208
12209 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12210
12211 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12212 an internal gdb_static_assert.
12213 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12214
12215 2012-01-11 Tom Tromey <tromey@redhat.com>
12216
12217 PR gdb/9598:
12218 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12219 catch" and "catch throw".
12220
12221 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12222
12223 * blockframe.c (block_innermost_frame): Start search from selected
12224 frame, if present, or otherwise the current frame.
12225
12226 * c-exp.y (variable): Update innermost_block for
12227 'block COLONCOLON NAME' clause.
12228 * m2-exp.y (variable): Ditto.
12229 * objc-exp.y (variable): Ditto.
12230
12231 2012-01-10 Tom Tromey <tromey@redhat.com>
12232
12233 PR python/13199:
12234 * python/python.c (finish_python_initialization): Set sys.argv.
12235
12236 2012-01-10 Doug Evans <dje@google.com>
12237
12238 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12239 "want_line_info". All callers updated.
12240 (dwarf_decode_lines_1): New function.
12241 (handle_DW_AT_stmt_list): Add function comment.
12242 New arg "want_line_info". All callers updated.
12243 (read_file_scope,read_type_unit_scope): Move comment from
12244 handle_DW_AT_stmt_list to here.
12245
12246 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12247
12248 Fix regression after libiberty/ update for GCC PR 6057 and others.
12249 * c-exp.y (operator) <OPERATOR DELETE>
12250 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12251 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12252 (make_builtin_type, make_name): New variable i, add gdb_assert.
12253 (operator) <OPERATOR NEW>: Update ARGS to 3.
12254 (operator) <OPERATOR DELETE>: Add trailing space.
12255 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12256 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12257 * cp-support.c (cp_canonicalize_string): Check NULL from
12258 cp_comp_to_string, call warning and return.
12259
12260 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12261
12262 Fix duplicate .o files after omitting libbfd.a.
12263 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12264 (SFILES): Add corelow.c.
12265 (COMMON_OBS): Add corelow.o.
12266 (ALLDEPFILES): Remove corelow.c.
12267 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12268 * config/alpha/alpha-osf3.mh: Likewise.
12269 * config/alpha/fbsd.mh: Likewise.
12270 * config/arm/nbsdaout.mh: Likewise.
12271 * config/arm/nbsdelf.mh: Likewise.
12272 * config/i386/i386gnu.mh: Likewise.
12273 * config/ia64/hpux.mh: Likewise.
12274 * config/ia64/linux.mh: Likewise.
12275 * config/m32r/linux.mh: Likewise.
12276 * config/m68k/linux.mh: Likewise.
12277 * config/mips/irix5.mh: Likewise.
12278 * config/mips/irix6.mh: Likewise.
12279 * config/pa/hpux.mh: Likewise.
12280 * config/pa/linux.mh: Likewise.
12281 * config/powerpc/aix.mh: Likewise.
12282 * config/sparc/linux.mh: Likewise.
12283 * config/sparc/linux64.mh: Likewise.
12284 * config/sparc/sol2.mh: Likewise.
12285 * config/vax/vax.mh: Likewise.
12286 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12287 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12288 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12289 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12290 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12291 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12292 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12293 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12294 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12295 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12296 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12297 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12298 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12299 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12300 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12301 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12302 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12303 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12304 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12305 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12306 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12307 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12308 corelow.o from gdb_target_obs.
12309 * corefile.c (core_target): Update the comment on NULL value.
12310 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12311 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12312 MATCHES. Drop YUMMY set on NULL.
12313 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12314 reclaim CORE_DATA if it is already NULL.
12315
12316 2012-01-09 Doug Evans <dje@google.com>
12317
12318 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12319 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12320
12321 2012-01-09 Keith Seitz <keiths@redhat.com>
12322
12323 * breakpoint.c (wrapper.h): Don't include.
12324
12325 2012-01-09 Keith Seitz <keiths@redhat.com>
12326
12327 * Makefile.in (SFILES): Remove wrapper.c.
12328 (HFILES_NO_SRCDIR): Remove wrapper.h.
12329 (COMMON_OBS): Remove wrapper.o.
12330 * cli/cli-interp.c: Don't inlude wrapper.h.
12331 * corelow.c: Likewise.
12332 (core_open): Replace gdb_target_find_new_threads with
12333 TRY_CATCH around target_find_new_threads.
12334 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12335 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12336 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12337 evaluate_expression.
12338 (varobj_set_value): Likewise for evaluate_expression and
12339 value_assign.
12340 (install_new_variable): Likewise for value_fetch_lazy.
12341 (adjust_value_for_child_access): Likewise for value_ind.
12342 (c_describe_child): Likewise for value_subscript and
12343 value_ind.
12344 (c_value_of_root): Likewise for evaluate_expression.
12345 * wrapper.c: Remove.
12346 * wrapper.h: Remove.
12347
12348 2012-01-09 Doug Evans <dje@google.com>
12349
12350 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12351 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12352 "abfd" args with "section". All callers updated.
12353 Error checking code moved ...
12354 (error_check_comp_unit_head): ... here. New function.
12355 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12356 Delete arg "abfd". New arg "type_offset". All callers updated.
12357 (create_debug_types_hash_table): Simplify by using
12358 read_and_check_type_unit_head.
12359
12360 * parser-defs.h (namecopy): Delete.
12361 * parse.c (namecopy, namecopy_size): Move into copy_name.
12362
12363 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12364
12365 Partially fix duplicate .o files after omitting libbfd.a.
12366 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12367 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12368 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12369 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12370 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12371 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12372 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12373
12374 2012-01-09 Pedro Alves <palves@redhat.com>
12375
12376 * MAINTAINERS: Update my email address.
12377
12378 2012-01-08 Doug Evans <dje@google.com>
12379
12380 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12381 n_type_units. Rename type_comp_units to all_type_units.
12382 All uses updated.
12383 (add_signatured_type_cu_to_table): Renamed from
12384 add_signatured_type_cu_to_list. All callers updated.
12385
12386 * gdbtypes.h (struct cplus_struct_type): Delete member
12387 nfn_fields_total. All uses removed.
12388
12389 2012-01-06 Doug Evans <dje@google.com>
12390
12391 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12392 to top of file.
12393 (dwarf2_find_comp_unit): Delete.
12394 (process_psymtab_comp_unit): Make result "void".
12395 Delete args buffer, info_ptr, buffer_size, and replace with
12396 "section". All callers updated.
12397 (dwarf2_build_psymtabs_hard): Simplify.
12398
12399 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12400 Thiago Jung Bauermann <bauerman@br.ibm.com>
12401
12402 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12403 before `struct gdb_exception'.
12404 * breakpoint.c (update_global_location_list_nothrow)
12405 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12406 * cp-abi.c (value_rtti_type): Likewise.
12407 * cp-support.c (cp_validate_operator): Likewise.
12408 * infrun.c (insert_exception_resume_breakpoint)
12409 (check_exception_resume, keep_going): Likewise.
12410 * mi-interp.c (mi_breakpoint_created)
12411 (mi_breakpoint_modified): Likewise.
12412 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12413 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12414 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12415
12416 2012-01-05 Doug Evans <dje@google.com>
12417
12418 * dwarf2read.c (statement_prologue): Delete, unused.
12419
12420 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12421 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12422
12423 * dwarf2read.c (comp_unit_header): Delete, unused.
12424
12425 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12426
12427 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12428 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12429
12430 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12431
12432 * infrun.c (normal_stop): Don't skip calling the normal_stop
12433 observers if the thread was doing a multi-step, but stopped for
12434 some reason other than stepping.
12435
12436 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12437
12438 * cli/cli-decode.h: Add comments.
12439 (CMD_LIST_AMBIGUOUS): Moved to command.h
12440 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12441 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12442 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12443 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12444 (add_com, add_com_alias, add_info, add_info_alias)
12445 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12446 declarations.
12447 * command.h: Add and adjust comments.
12448 (CMD_LIST_AMBIGUOUS): Moved here.
12449 (help_cmd, help_cmd_list): Delete declarations.
12450
12451 2012-01-04 Doug Evans <dje@google.com>
12452
12453 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12454 All callers updated.
12455 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12456 Replace all arguments with "per_cu". All callers updated.
12457
12458 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12459
12460 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12461 New arg "per_cu". All callers updated.
12462
12463 Delete #if 0'd out code.
12464 * language.c (binop_result_type): Delete.
12465 (simple_type, ordered_type, same_type, integral_type): Delete.
12466 (numeric_type, character_type, string_type, boolean_type): Delete.
12467 (float_type, structured_type): Delete.
12468 * language.h: Update.
12469
12470 2012-01-04 Tom Tromey <tromey@redhat.com>
12471
12472 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12473
12474 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12475
12476 * corefile.c (close_exec_file): Delete.
12477 (reopen_exec_file): Remove commented out code that seems related
12478 to close_exec_file, which is being deleted here.
12479 * inferior.h (close_exec_file): Delete.
12480 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12481
12482 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12483
12484 * ada-lang.c: #include "cli/cli-utils.h".
12485 (get_selections): Use skip_spaces.
12486 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12487 (catch_ada_exception_command_split): Use skip_spaces.
12488 (ada_decode_assert_location): Likewise.
12489
12490 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12491
12492 * linespec.c (decode_line_internal): Check for C++ or Java
12493 compound constructs only if the current language is C, C++
12494 or Java.
12495
12496 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12497
12498 Revert:
12499 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12500 Joel Brobecker <brobecker@adacore.com>
12501 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12502 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12503 3 times.
12504 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12505 fall through into AT_ENTRY_POINT.
12506 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12507 DUMMY_ADDR with it.
12508 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12509 PPC_INSN_SIZE skip to 3 times.
12510
12511 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12512
12513 * linespec.c (add_minsym): Preserve function descriptors.
12514
12515 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12516
12517 * breakpoint.c (all_locations_are_pending): Consider locations
12518 in program spaces executing during startup pending as well.
12519
12520 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12521
12522 Copyright year update in most files of the GDB Project.
12523
12524 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12525
12526 * copyright.sh: Delete.
12527 * copyright.py: Rewrite.
12528
12529 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12530
12531 * gnulib/extra/update-copyright: New file, imported from gnulib.
12532
12533 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12534
12535 * README (Copyright and License Notices): New section.
12536
12537 2012-01-03 Tom Tromey <tromey@redhat.com>
12538
12539 PR python/12533:
12540 * python/py-value.c (valpy_dereference, valpy_get_address
12541 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12542 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12543 (valpy_absolute, valpy_richcompare): Free intermediate values.
12544
12545 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12546
12547 * ada-lang.c: Reformat the copyright notice.
12548
12549 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12550
12551 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12552 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12553 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12554 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12555 Revert this part of:
12556 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12557 Build gdb directly from *.o files not using libgdb.a.
12558 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12559
12560 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12561
12562 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12563 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12564 Reformat the copyright header.
12565
12566 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12567
12568 Revert this part of:
12569 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12570 Remove the gdbtui binary.
12571 * gdb.c (main): Remove args.interpreter_p initialization.
12572 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12573 * main.h (struct captured_main_args): Remove interpreter_p.
12574
12575 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12576
12577 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12578
12579 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12580
12581 * top.c (print_gdb_version): Update copyright year.
12582
12583 2012-01-02 Yao Qi <yao@codesourcery.com>
12584
12585 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12586
12587 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12588 Joel Brobecker <brobecker@adacore.com>
12589
12590 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12591 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12592 3 times.
12593 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12594 fall through into AT_ENTRY_POINT.
12595 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12596 DUMMY_ADDR with it.
12597 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12598 PPC_INSN_SIZE skip to 3 times.
12599
12600 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12601
12602 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12603 the return value.
12604 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12605
12606 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12607
12608 Build gdb directly from *.o files not using libgdb.a.
12609 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12610 (COMMON_OBS): Remove solib-target.o.
12611 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12612 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12613 (LIBGDB_OBS, libgdb.a): Move it above.
12614 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12615 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12616 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12617 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12618 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12619 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12620 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12621 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12622 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12623 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12624 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12625 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12626 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12627 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12628 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12629 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12630 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12631 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12632 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12633 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12634 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12635 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12636 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12637 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12638 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12639 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12640 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12641
12642 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12643
12644 Remove the gdbtui binary.
12645 * .gitignore (/gdbtui): Remove.
12646 * Makefile.in (TUI): Remove.
12647 (SUBDIR_TUI_OBS): Remove tui-main.o.
12648 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12649 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12650 (tui-main.o): Remove.
12651 (all_object_files): Remove tui-main.o.
12652 * NEWS: New note for the gdbtui removal.
12653 * configure: Rebuilt.
12654 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12655 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12656 CONFIG_UNINSTALL respectively.
12657 * gdb.c (main): Remove args.interpreter_p initialization.
12658 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12659 * main.h (struct captured_main_args): Remove interpreter_p.
12660 * tui/tui-main.c: Remove.
12661
12662 2012-01-01 Doug Evans <dje@google.com>
12663
12664 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12665 (dwarf2_physname, read_import_statement): Ditto.
12666 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12667 (process_structure_scope read_subroutine_type): Ditto.
12668 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12669 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12670 (dwarf2_fetch_die_location_block): Ditto.
12671 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12672
12673 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12674 All callers updated.
12675 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12676 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12677 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12678
12679 * dwarf2read.c (load_cu): Move assert to more useful location.
12680
12681 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12682 All callers updated.
12683
12684 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12685 (dwarf2_elf_names): Minor reformat.
12686 (dwarf2_per_cu_data): Tweak comment.
12687 (dwarf2_read_section): Fix comment.
12688 (create_all_comp_units): Fix comment.
12689 (load_full_comp_unit): Fix comment.
12690 (process_full_comp_unit): Fix comment.
12691 (read_signatured_type): Fix comment.
12692
12693 For older changes see ChangeLog-2011.
12694 \f
12695 Local Variables:
12696 mode: change-log
12697 left-margin: 8
12698 fill-column: 74
12699 version-control: never
12700 coding: utf-8
12701 End: