* acinclude.m4 (CY_AC_C_WORKS): Remove.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-13 Tom Tromey <tromey@redhat.com>
2
3 * acinclude.m4 (CY_AC_C_WORKS): Remove.
4
5 2012-12-13 Pierre Muller <muller@sourceware.org>
6
7 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
8 local variable and zero terminate it to avoid possible problems
9 in strcmp.
10
11 2012-12-13 Pedro Alves <palves@redhat.com>
12
13 * coff-pe-read.c: Include coff/internal.h.
14 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
15 Null terminate buffer explicitly instead of memset the whole
16 buffer.
17
18 2012-12-13 Pierre Muller <muller@sourceware.org>
19
20 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
21 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
22 for already defined macros.
23
24 2012-12-13 Pierre Muller <muller@sourceware.org>
25
26 * coff-pe-read.h (pe_text_section_offset): Declare new function.
27 * coff-pe-read.c (debug_coff_pe_read): New static variable.
28 (struct read_pe_section_data): Add section_name field.
29 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
30 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
31 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
32 (get_pe_section_index): New function.
33 (struct pe_sections_info): New type.
34 (get_section_vmas): Use new struct pe_sections_info.
35 (add_pe_exported_sym): Handle unnamed exported function.
36 (add_pe_forwarded_sym): New function.
37 (read_pe_truncate_name): Truncate at last dot.
38 (pe_as16): New function.
39 (read_pe_exported_syms): Use ordinal of function to
40 retrieve correct RVA address of function and handle
41 forwarded symbol.
42 (pe_text_section_offset): New function.
43 (show_debug_coff_pe_read): New function.
44 (_initialize_coff_pe_read): New function adding
45 'set/show debug coff_pe_read' commands.
46
47 * windows-tdep.c (windows_xfer_shared_library): Use
48 pe_text_section_offset function instead of possibly wrong
49 0x1000 constant for .text sextion offset.
50
51 2012-12-13 Pedro Alves <palves@redhat.com>
52
53 * gdbarch.sh (do_read): Set IFS to blank.
54
55 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
56
57 * NEWS: Mention the -catch-load/-catch-unload MI commands.
58
59 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
60
61 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
62 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
63 * breakpoint.c (add_solib_catchpoint): New function that
64 can be used by both CLI and MI, factored out from
65 catch_load_or_unload.
66 (catch_load_or_unload): Strip it down and make it use the
67 new add_solib_catchpoint.
68 * breakpoint.h (add_solib_catchpoint): Declare it.
69 * mi/mi-cmd-break.h: New file.
70 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
71 (setup_breakpoint_reporting): New function used for both
72 catchpoints and breakpoints.
73 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
74 * mi/mi-cmd-catch.c: New file.
75 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
76 and -catch-unload.
77 * mi/mi-cmds.h: Declare the handlers for -catch-load and
78 -catch-unload.
79
80 2012-11-28 Tom Tromey <tromey@redhat.com>
81
82 * dbxread.c (read_dbx_symtab): Update.
83 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
84 (read_ofile_symtab): Add 'objfile' argument.
85 * dwarf2read.c (process_psymtab_comp_unit_reader)
86 (build_type_psymtabs_reader): Update.
87 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
88 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
89 argument.
90 (parse_procedure, parse_partial_symbols): Update.
91 (psymtab_to_symtab_1): Add 'objfile' argument.
92 * psympriv.h (struct partial_symtab) <objfile>: Remove.
93 <read_symtab>: Add 'objfile' argument.
94 (sort_pst_symbols, discard_psymtab): Update.
95 * psymtab.c (partial_map_expand_apply): Update.
96 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
97 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
98 (find_pc_sect_psymbol): Add 'objfile' argument.
99 (lookup_symbol_aux_psymtabs): Update.
100 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
101 Add 'objfile' argument.
102 (find_last_source_symtab_from_partial, dump_psymtab)
103 (dump_psymtabs_for_objfile, read_symtabs_for_function)
104 (expand_partial_symbol_tables, read_psymtabs_with_filename)
105 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
106 (expand_symtabs_matching_via_partial): Update.
107 (sort_pst_symbols): Add 'objfile' argument.
108 (allocate_psymtab): Update.
109 (discard_psymtab): Add 'objfile' argument.
110 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
111 * stabsread.h (end_psymtab): Update.
112 * xcoffread.c (this_symtab_objfile): New global.
113 (process_linenos, enter_line_range, xcoff_next_symbol_text):
114 Update.
115 (read_xcoff_symtab): Add 'objfile' argument.
116 (read_symbol, read_symbol_lineno): Update.
117 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
118 (xcoff_end_psymtab): Add 'objfile' argument.
119 (scan_xcoff_symtab): Update.
120
121 2012-12-12 Paul Koning <paul_koning@dell.com>
122
123 Add support for Python 3.
124 * NEWS: Mention Python 3 support.
125 * varobj.c (value_get_print_value): Use
126 python_string_to_target_string.
127 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
128 of type objects.
129 * python/py-breakpoint.c: Ditto.
130 * python/py-cmd.c: Ditto.
131 * python/py-event.c: Ditto.
132 * python/py-event.h: Ditto.
133 * python/py-evtregistry.c: Ditto.
134 * python/py-finishbreakpoint.c: Ditto.
135 * python/py-frame.c: Ditto.
136 * python/py-function.c: Ditto.
137 * python/py-infthread.c: Ditto.
138 * python/py-lazy-string.c: Ditto.
139 * python/py-progspace.c: Ditto.
140 * /python/py-symbol.c: Ditto.
141 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
142 initialization for Python 3.
143 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
144 of type objects.
145 (infpy_read_memory): Return memoryview object if Python 3.
146 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
147 (infpy_search_memory): Ditto.
148 (get_buffer): New function for Python 3.
149 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
150 of type objects.
151 (objfpy_dealloc): Use Py_TYPE to call tp_free.
152 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
153 of type objects.
154 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
155 (set_attr): Ditto.
156 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
157 instead of PyString methods if Python 3.
158 (print_children): Skip push_dummy_python_frame call if Python 3.
159 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
160 of type objects.
161 (salpy_dealloc): Use Py_TYPE to call tp_free.
162 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
163 of type objects.
164 (field_dealloc): Use Py_TYPE to call tp_free.
165 (typy_dealloc): Ditto.
166 (type_object_as_number): Adjust struct initializations for
167 differences in layout for Python 2 vs. Python 3.
168 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
169 string case for Python 3.
170 (unicode_to_encoded_python_string): Shorten code (no functional
171 change).
172 (python_string_to_target_python_string): Comment that in Python 3
173 returned value is a Python "bytes" type.
174 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
175 (gdb_py_object_from_longest): Omit non-long integer case in Python
176 3.
177 (gdb_py_object_from_ulongest): Ditto.
178 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
179 of type objects.
180 (valpy_dealloc): Use Py_TYPE to call tp_free.
181 (valpy_int): Omit function if Python 3.
182 (convert_value_from_python): Use "%S" format (Python object as a
183 string) if Python 3.
184 (value_object_as_number): Adjust struct initializations for
185 differences in layout for Python 2 vs. Python 3.
186 * python/python-config.py: Adjust syntax for Python 3
187 compatibility.
188 Include "sys.abiflags" string as part of python library name, if
189 that attribute exists (Python 3).
190 * python/python-internal.h (IS_PY3): Define if Python 3.
191 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
192 placeholder value if Python 3.
193 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
194 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
195 analogous Python 3 API function if Python 3.
196 (PyVarObject_HEAD_INIT): Define if not already defined.
197 (Py_TYPE): Ditto.
198 * python/python.c (eval_python_command): Omit Py_FlushLine call if
199 Python 3.
200 Check return values of all Python API calls for error.
201 Supply dummy "python" and "python-interactive" commands if Python
202 initialization failed.
203 (_initialize_python): Convert argc to wchar_t** if Python 3.
204 Add module initialization for Python 3.
205 (finish_python_initialization): Pass wchar_t * argument to
206 PySys_SetPath if Python 3.
207 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
208 (_GdbFile): New class for common output file behavior.
209 (GdbOutFile): Subclass from _GdbFile.
210 (GdbOutputErrorFile): Ditto.
211 (auto_load_packages): Adjust syntax for Python 3 compatibility.
212 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
213 * python/lib/gdb/prompt.py: Use sorted() function rather than
214 sort() method.
215 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
216 Adjust syntax for Python 3 compatibility.
217 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
218 rather than sort() method.
219 Adjust syntax for Python 3 compatibility.
220 * python/lib/gdb/command/type_printers.py: Ditto.
221 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
222 value is a memoryview object if Python 3.
223
224 2012-12-12 Tom Tromey <tromey@redhat.com>
225
226 * coffread.c (coff_objfile_data_key): New global.
227 (coff_symfile_init): Use set_objfile_data.
228 (coff_symfile_read): Use objfile_data.
229 (coff_symfile_finish): Don't free deprecated_sym_private.
230 (coff_free_info): New function.
231 (_initialize_coffread): Initialize coff_objfile_data_key.
232 * mdebugread.c (pending_list): Update comment.
233 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
234 * symfile.c (reread_symbols): Don't mention
235 deprecated_sym_private.
236 * xcoffread.c (xcoff_objfile_data_key): New global.
237 (XCOFF_DATA): New macro.
238 (process_linenos, enter_line_range, xcoff_next_symbol_text)
239 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
240 XCOFF_DATA.
241 (xcoff_new_init) Use set_objfile_data.
242 (xcoff_symfile_finish): Don't free deprecated_sym_private.
243 (init_stringtab, swap_sym, scan_xcoff_symtab)
244 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
245 (xcoff_free_info): New function.
246 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
247
248 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
249
250 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
251
252 2012-12-12 Tom Tromey <tromey@redhat.com>
253
254 * coffread.c (coff_symfile_init): Use set_objfile_data.
255 (coff_symfile_read): Use DBX_SYMFILE_INFO.
256 * dbxread.c (dbx_objfile_data_key): New global.
257 (dbx_symfile_init): Use set_objfile_data.
258 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
259 (dbx_free_symfile_info): New function.
260 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
261 DBX_SYMFILE_INFO.
262 (stabsect_build_psymtabs): Use set_objfile_data.
263 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
264 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
265 set_objfile_data.
266 (free_elfinfo): Use DBX_SYMFILE_INFO.
267 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
268 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
269 * gdb-stabs.h (dbx_objfile_data_key): Declare.
270 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
271 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
272 * somread.c (som_symfile_finish): Don't free
273 deprecated_sym_stab_info.
274
275 2012-12-12 Joel Brobecker <brobecker@adacore.com>
276
277 * gdbarch.sh (software_single_step): Remove trailing space in
278 comment (gdbarch.h is already correct).
279
280 2012-12-11 Tom Tromey <tromey@redhat.com>
281
282 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
283
284 2012-12-11 Tom Tromey <tromey@redhat.com>
285
286 * dsrec.c (report_transfer_performance): Don't declare.
287 (load_srec): Use gettimeofday, print_transfer_performance.
288 * symfile.c (report_transfer_performance): Remove.
289
290 2012-12-11 Pedro Alves <pedro@codesourcery.com>
291 Pedro Alves <palves@redhat.com>
292
293 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
294 NT_PSTATUS note.
295 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
296 differently from LWP IDs.
297
298 2012-12-11 Pedro Alves <palves@redhat.com>
299
300 * configure.ac (detect type of /proc): Remove Unixware handling.
301 * configure: Regenerate.
302 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
303 (ioctl_table) [PCRESET]: Remove entry.
304 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
305 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
306 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
307 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
308 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
309 Unixware in comments throughout.
310 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
311 and remove mention of Unixware.
312
313 2012-12-10 Doug Evans <dje@google.com>
314
315 * dwarf2read.c (dwarf2_cu): Enhance comment.
316 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
317 the DWO file.
318 (dwarf2_record_block_ranges): Ditto.
319
320 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
321
322 * symtab.c (find_pc_sect_symtab): Add comment.
323
324 2012-12-10 Tom Tromey <tromey@redhat.com>
325
326 * defs.h: Don't check for definition of LONGEST.
327 (min, max): Remove duplicates.
328
329 2012-12-10 Tom Tromey <tromey@redhat.com>
330
331 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
332 (dwarf2_fetch_die_loc_cu_off): Rename from
333 dwarf2_fetch_die_location_block. Rewrite to use
334 dwarf2_fetch_die_loc_sect_off.
335 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
336 (dwarf2_fetch_die_loc_cu_off): Rename.
337 * dwarf2loc.c (indirect_pieced_value): Use
338 dwarf2_fetch_die_loc_sect_off.
339 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
340 comment.
341 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
342 * dwarf2expr.c (add_piece): Update.
343 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
344
345 2012-12-10 Tom Tromey <tromey@redhat.com>
346
347 * buildsym.c (struct pending_block): Move from buildsym.h.
348 (pending_blocks): Likewise; now static.
349 (pending_block_obstack): New global.
350 (free_pending_blocks): Free blocks.
351 (record_pending_block): Use pending_block_obstack.
352 * buildsym.h (struct pending_block): Move definition to
353 buildsym.c.
354 (pending_blocks): Don't declare.
355
356 2012-12-10 Pedro Alves <palves@redhat.com>
357
358 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
359 dead SCO code, and adjust function description comment.
360
361 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
362
363 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
364 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
365 CC_HAS_LONG_LONG.
366 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
367 * dwarf2read.c (extract_cu_value): Remove the function.
368 (create_cus_from_index_list): Make the return type void, inline the
369 extract_cu_value caller, include new gdb_static_assert.
370 (create_cus_from_index): Make the return type void, update the function
371 comment, update the create_cus_from_index_list caller.
372 (create_signatured_type_table_from_index): Make the return type void,
373 inline the extract_cu_value caller, include new gdb_static_assert.
374 (dwarf2_read_index): Update the create_cus_from_index and
375 create_signatured_type_table_from_index caller.
376 * printcmd.c (ui_printf): Remove conditionalizations for
377 CC_HAS_LONG_LONG.
378 * config.in: Regenerate.
379 * configure: Regenerate.
380
381 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
382
383 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
384 Update the comment for checked_producer.
385 (check_producer): New forward declaration.
386 (producer_is_gcc_lt_4_3): New function.
387 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
388 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
389
390 2012-12-07 Tom Tromey <tromey@redhat.com>
391
392 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
393 argument, assertion.
394 * c-exp.y (typebase): Add completion productions.
395 * completer.c (expression_completer): Handle tag completion.
396 * expression.h (parse_expression_for_completion): Add argument.
397 * f-lang.c (f_make_symbol_completion_list): Add 'code'
398 argument.
399 * language.h (struct language_defn)
400 <la_make_symbol_completion_list>: Add 'code' argument.
401 * parse.c (expout_tag_completion_type, expout_completion_name):
402 New globals.
403 (mark_struct_expression): Add assertion.
404 (mark_completion_tag): New function.
405 (parse_exp_in_context): Initialize new globals.
406 (parse_expression_for_completion): Add 'code' argument. Handle
407 tag completion.
408 * parser-defs.h (mark_completion_tag): Declare.
409 * symtab.c (default_make_symbol_completion_list_break_on): Add
410 'code' argument. Update.
411 (default_make_symbol_completion_list): Add 'code' argument.
412 (make_symbol_completion_list): Update.
413 (make_symbol_completion_type): New function.
414 * symtab.h (default_make_symbol_completion_list_break_on)
415 (default_make_symbol_completion_list): Update.
416 (make_symbol_completion_type): Declare.
417
418 2012-12-07 Tom Tromey <tromey@redhat.com>
419
420 * expression.h (parse_expression_for_completion): Rename
421 from parse_field_expression.
422 (parse_completion): Rename from in_parse_field.
423 * c-exp.y (lex_one_token): Update.
424 * completer.c (expression_completer): Update.
425 * go-exp.y (lex_one_token): Update.
426 * p-exp.y (yylex): Update.
427 * parse.c (parse_completion): Rename from in_parse_field.
428 (parse_exp_in_context): Update.
429 (parse_expression_for_completion): Rename from
430 parse_field_expression. Update.
431
432 2012-12-07 Tom Tromey <tromey@redhat.com>
433
434 * typeprint.c (_initialize_typeprint): Set completer
435 for "whatis" and "ptype".
436
437 2012-12-07 Joel Brobecker <brobecker@adacore.com>
438
439 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
440 "sim/common/cgen-fpu.h". Remove invalid entries
441 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
442 which actually have an FSF copyright header.
443
444 2012-12-07 Joel Brobecker <brobecker@adacore.com>
445
446 * osf-share/AT386/cma_thread_io.h: Delete.
447 * osf-share/HP800/cma_thread_io.h: Delete.
448 * osf-share/README: Delete.
449 * osf-share/RIOS/cma_thread_io.h: Delete.
450 * osf-share/cma_attr.h: Delete.
451 * osf-share/cma_deb_core.h: Delete.
452 * osf-share/cma_debug_client.h: Delete.
453 * osf-share/cma_errors.h: Delete.
454 * osf-share/cma_handle.h: Delete.
455 * osf-share/cma_init.h: Delete.
456 * osf-share/cma_list.h: Delete.
457 * osf-share/cma_mutex.h: Delete.
458 * osf-share/cma_sched.h: Delete.
459 * osf-share/cma_semaphore_defs.h: Delete.
460 * osf-share/cma_sequence.h: Delete.
461 * osf-share/cma_stack.h: Delete.
462 * osf-share/cma_stack_int.h: Delete.
463 * osf-share/cma_tcb_defs.h: Delete.
464 * osf-share/cma_util.h: Delete.
465 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
466 in osf-share.
467 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
468 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
469 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
470
471 2012-12-06 Pedro Alves <palves@redhat.com>
472 Tom Tromey <tromey@redhat.com>
473
474 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
475
476 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
477
478 PR mi/14741:
479 * mi/mi-cmd-var.c (varobj_update_one): Take value of
480 attribute "dynamic" and "displayhint" from printed child,
481 not the root variable.
482
483 2012-12-06 Joel Brobecker <brobecker@adacore.com>
484
485 * aix-thread.c (getthrds): Fix type of 4th parameter.
486 (get_signaled_thread): Change type of variable ktid to tid_t.
487
488 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
489
490 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
491 value of get_frame_block.
492
493 2012-12-05 Pierre Muller <muller@sourceware.org>
494
495 Avoid memory leaks on struct cmd_list_element.doc field.
496 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
497 if flags contains DOC_ALLOCATED.
498 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
499 flags.
500 (delete_cmd): Handle DOC_ALLOCATED flag.
501 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
502 in flags filed of struct cmd_list_element.
503 (struct cmd_list_element): Document new flag item.
504
505 2012-12-04 Doug Evans <dje@google.com>
506
507 * symmisc.c: Whitespace fixes.
508
509 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
510
511 * i386-tdep.c (i386_skip_prologue): Using symbol table
512 to find the end of prologue for clang compiled binaries.
513 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
514 to find the end of prologue for clang compiled binaries.
515
516 2012-12-03 Doug Evans <dje@google.com>
517
518 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
519 (dw2_find_symbol_file): Delete unused local file_data.
520
521 2012-12-03 Tom Tromey <tromey@redhat.com>
522
523 * ada-exp.y (write_object_renaming, write_var_or_type)
524 (write_ambiguous_var, write_var_from_sym): Make blocks const.
525 * ada-lang.c (replace_operator_with_call)
526 (find_old_style_renaming_symbol): Make blocks const.
527 * ada-lang.h (ada_find_renaming_symbol): Update.
528 (struct ada_symbol_info) <block>: Now const.
529 * breakpoint.c (watch_command_1): Update.
530 * breakpoint.h (struct watchpoint) <exp_valid_block,
531 cond_exp_valid_block>: Now const.
532 * c-exp.y (classify_inner_name, classify_name): Make block
533 argument const.
534 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
535 const.
536 * expression.h (innermost_block, parse_exp_1): Update.
537 (union exp_element) <block>: Now const.
538 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
539 (lookup_struct): Make block argument const.
540 * gdbtypes.h (lookup_template_type): Update.
541 * go-exp.y (classify_name, classify_packaged_name)
542 (package_name_p): Make block argument const.
543 * objc-lang.c (lookup_struct_typedef): Make block argument const.
544 * objc-lang.h (lookup_struct_typedef): Update.
545 * parse.c (parse_exp_in_context, parse_exp_1)
546 (write_exp_elt_block): Make block arguments const.
547 (expression_context_block, innermost_block): Now const.
548 * parser-defs.h (write_exp_elt_block): Update.
549 (expression_context_block, innermost_block, block_found): Now
550 const.
551 * printcmd.c (struct display) <block>: Now const.
552 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
553 * valops.c (address_of_variable): Make block argument const.
554 * value.h (value_of_variable): Update.
555 * varobj.c (struct varobj_root) <valid_block>: Now const.
556
557 2012-11-30 Yao Qi <yao@codesourcery.com>
558
559 * breakpoint.c (print_one_breakpoint_location): Indent code.
560
561 2012-11-30 Yao Qi <yao@codesourcery.com>
562
563 * breakpoint.c (print_one_breakpoint_location): Combine two
564 blocks handling 'hit count' together.
565
566 2012-11-30 Yao Qi <yao@codesourcery.com>
567
568 * infrun.c (error_is_running, ensure_not_running): Move them
569 to ...
570 * infcmd.c (error_is_running, ensure_not_running): ... here.
571 Make them 'static'.
572 * inferior.h: Remove declarations of error_is_running and
573 ensure_not_running.
574
575 2012-11-30 Yao Qi <yao@codesourcery.com>
576
577 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
578 check REGNUM >= 0.
579
580 2012-11-30 Yao Qi <yao@codesourcery.com>
581
582 * infrun.c: Make the declaration of 'init_infwait_state'
583 static.
584 (init_infwait_state): Make it 'static'.
585
586 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
587
588 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
589 return value to void to avoid compiler warning.
590
591 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
592
593 * opencl-lang.c (opencl_print_type): New function.
594 (opencl_language_arch_info): Install it.
595
596 2012-11-29 Tom Tromey <tromey@redhat.com>
597
598 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
599 xvasprintf.
600 * common/common-utils.c (xasprintf, xvasprintf): Remove.
601 * common/common-utils.h (xasprintf, xvasprintf): Remove.
602
603 2012-11-29 Jerome Guitton <guitton@adacore.com>
604
605 * ada-lang.c (ada_is_interface_tag): New function.
606 (ada_is_ignored_field): Add interface tags to the list
607 of ignored fields.
608
609 2012-11-29 Jerome Guitton <guitton@adacore.com>
610
611 * ada-lang.h (ada_tag_value_at_base_address): New function
612 declaration.
613 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
614 New functions.
615 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
616 relocate the class-wide value if need be.
617 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
618 Let ada_tag_value_at_base_address relocate the class-wide access/ref
619 before dereferencing it.
620 * ada-valprint.c (ada_val_print_1): Relocate to base address
621 before displaying the content of an interface-wide ref.
622
623 2012-11-29 Jerome Guitton <guitton@adacore.com>
624
625 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
626
627 2012-11-29 Joel Brobecker <brobecker@adacore.com>
628
629 GDB 7.5.1 released.
630
631 2012-11-29 Yao Qi <yao@codesourcery.com>
632 Tom Tromey <tromey@redhat.com>
633
634 * eval.c (evaluate_subexp_standard): Get the correct pointer
635 type for TYPE_CODE_MEMBERPTR.
636
637 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
638
639 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
640 since now it is being done by binutils' powerpc_init_dialect().
641
642 2012-11-28 Tom Tromey <tromey@redhat.com>
643
644 PR gdb/14290:
645 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
646 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
647 Use it.
648 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
649 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
650 (gdb_bfd_openr_next_archived_file): Use it.
651
652 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
653
654 * configure.ac: Check for linux/perf_event.h.
655 * config.in: Regenerated.
656 * configure: Regenerated.
657
658 2012-11-28 Yao Qi <yao@codesourcery.com>
659
660 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
661 abbreviate 'delete tracepoints' to 'delete tr'.
662 * corefile.c (_initialize_core): Call add_alias_cmd to
663 abbreviate 'set gnutarget' to 'set g'.
664 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
665 'show convenience' to 'show conv'.
666
667 2012-11-27 Joel Brobecker <brobecker@adacore.com>
668
669 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
670 call to sparc_supply_fpregset.
671 (fill_fpregset): Fix first parameter in call to
672 sparc_collect_fpregset.
673
674 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
675 Kazu Hirata <kazu@codesourcery.com>
676 Yao Qi <yao@codesourcery.com>
677
678 * objfiles.c (init_entry_point_info): Call
679 gdbarch_convert_from_func_ptr_addr and
680 gdbarch_addr_bits_remove here ...
681 (entry_point_address_query): ... instead of here.
682 * solib-svr4.c (exec_entry_point): Call
683 gdbarch_addr_bits_remove.
684 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
685 the entry address.
686
687 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
688 Yao Qi <yao@codesourcery.com>
689
690 * eval.c (evaluate_subexp_standard): Add handling of
691 TYPE_CODE_MEMBERPTR when calling functions. Correct the
692 result of ptype for calling a TYPE_CODE_METHODPTR.
693
694 2012-11-27 Yao Qi <yao@codesourcery.com>
695
696 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
697 warning.
698 Add i18n markup.
699
700 2012-11-26 Alexander Larsson <alexl@redhat.com>
701 Jan Kratochvil <jan.kratochvil@redhat.com>
702 Tom Tromey <tromey@redhat.com>
703
704 * NEWS: Mention mini debuginfo feature.
705 * minidebug.c: New file.
706 * configure.ac: Check for lzma.
707 * configure, config.in: Rebuild.
708 * Makefile.in (LIBLZMA): New variable.
709 (CLIBS): Include LIBLZMA.
710 (SFILES): Mention minidebug.c.
711 (COMMON_OBS): Mention minidebug.o.
712 * symfile.c (read_symbols): New function.
713 (syms_from_objfile, reread_symbols): Call it.
714 * symfile.h (find_separate_debug_file_in_section): Declare.
715
716 2012-11-26 Keith Seitz <keiths@redhat.com>
717
718 * exec.c (exec_file_attach): Move cleanup after verifying that
719 memory has in fact been allocated.
720
721 2012-11-26 Tom Tromey <tromey@redhat.com>
722
723 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
724 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
725 SYMBOL_SYMTAB.
726 * skip.c (skip_info): Use SYMBOL_SYMTAB.
727
728 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
729 Pedro Alves <palves@redhat.com>
730
731 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
732 size parameter passed to readlink by one byte.
733 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
734 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
735 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
736 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
737 size by one byte.
738
739 2012-11-26 Yao Qi <yao@codesourcery.com>
740
741 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
742 extraneous parentheses.
743
744 2012-11-26 Yao Qi <yao@codesourcery.com>
745
746 * remote.c (remote_start_remote): Typo fix.
747
748 2012-11-23 David S. Miller <davem@davemloft.net>
749
750 * sparc-tdep.h (struct sparc_fpregset): New data structure.
751 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
752 sparc32_sol2_fpregset): Declare new globals.
753 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
754 'fpregset' argument.
755 * sparc64-tdep.h (sparc64_supply_fpregset,
756 sparc64_collect_fpregset): Likewise.
757 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
758 globals.
759 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
760 (sparc_fpregset): Declare new global.
761 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
762 'fpregset' argument.
763 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
764 into handler.
765 (fill_fpregset): Likewise.
766 (_initialize_sparc_linux_nat): Set sparc_fpregset to
767 sparc32_bsd_fpregset.
768 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
769 sparc32_bsd_fpregset down into handler.
770 (sparc32_linux_collect_core_fpregset): Likewise.
771 * sparc-nat.c (sparc_fpregset): Define.
772 (sparc_supply_fpregset): Add 'fpregset' argument.
773 (sparc_collect_fpregset): Likewise.
774 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
775 into fpregset handler.
776 (sparc_store_inferior_registers): Likewise.
777 (_initialize_sparc_nat): Set sparc_fpregset to
778 sparc32_sunos4_fpregset if NULL.
779 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
780 down into handler.
781 (fill_fpregset): Likewise.
782 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
783 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
784 use it to compute offsets.
785 (sparc32_collect_fpregset): Likewise.
786 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
787 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
788 down into handler.
789 (fill_fpregset): Likewise.
790 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
791 Likewise.
792 (sparc64_linux_collect_core_fpregset): Likewise.
793 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
794 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
795 use it to compute offsets.
796 (sparc64_collect_fpregset): Likewise.
797 (sparc64_bsd_fpregset): Define.
798 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
799 sparc64_bsd_fpregset down into handler.
800 (sparc64fbsd_collect_fpregset): Likewise.
801 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
802 and pass sparc{32,64}_bsd_fpregset down into handler.
803 (sparc64nbsd_collect_fpregset): Likewise.
804 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
805 sparc64_bsd_fpregset down into handler.
806 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
807 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
808 to sparc32_bsd_fpregset.
809 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
810 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
811 (sparc32nbsd_supply_fpregset): Likewise.
812
813 2012-11-21 Tom Tromey <tromey@redhat.com>
814
815 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
816 field.
817 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
818 Remove.
819 * c-typeprint.c (c_type_print_base): Update.
820
821 2012-11-21 Yao Qi <yao@codesourcery.com>
822
823 PR tdep/7438
824 * gdbarch.sh (smash_text_address): Remove.
825 * gdbarch.c, gdbarch.h: Regenerate.
826 * arm-tdep.c (arm_smash_text_address): Remove.
827 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
828 * hppa-tdep.c (hppa_smash_text_address): Remove.
829 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
830 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
831 Caller update.
832 * coffread.c (coff_symtab_read): Caller update.
833 * dbxread.c (process_one_symbol): Likewise.
834 * elfread.c (record_minimal_symbol): Likewise.
835 * somread.c (som_symtab_read): Likewise.
836
837 2012-11-20 Pierre Muller <muller@sourceware.org>
838
839 ARI fixes: sprintf rule.
840 Replace sprintf function calls for char arrays by
841 calls to xsnprintf calls.
842 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
843 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
844 (arm_neon_quad_read, arm_pseudo_read): Ditto.
845 (arm_neon_quad_write, arm_pseudo_write): Ditto.
846 * breakpoint.c (condition_completer): Ditto.
847 (create_tracepoint_from_upload): Ditto.
848 * dwarf2read.c (file_full_name): Ditto.
849 * gcore.c (gcore_command): Ditto.
850 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
851 * go32-nat.c (go32_sysinfo): Ditto.
852 * interps.c (interp_set): Ditto.
853 * m32c-tdep.c (make_types): Ditto.
854 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
855 * remote-m32r-sdi.c (m32r_open): Ditto.
856 * sol-thread.c (td_err_string): Ditto.
857 (td_state_string, solaris_pid_to_str): Ditto.
858 * symtab.c (gdb_mangle_name): Ditto.
859 * cli/cli-script.c (execute_control_command): Ditto.
860 (define_command, document_command): Ditto.
861 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
862 * tui/tui-stack.c (tui_make_status_line): Ditto.
863 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
864
865 2012-11-20 Mike Frysinger <vapier@gentoo.org>
866
867 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
868 it when looking at ptr->func.
869 * command.h (complete_on_cmdlist): Add a fourth arg.
870 * completer.c (complete_line_internal): Add local ignore_help_classes,
871 and set it to 1 when reason is not handle_help. Pass this down to
872 lookup_cmd_1 and complete_on_cmdlist.
873
874 2012-11-20 Tom Tromey <tromey@redhat.com>
875
876 * completer.c (count_struct_fields): Remove.
877 (expression_completer): Don't call count_struct_fields.
878
879 2012-11-20 Pedro Alves <palves@redhat.com>
880
881 * annotate.c (breakpoints_changed): Rename to ...
882 (annotate_breakpoints_changed): ... this.
883 (annotate_stopped, breakpoint_changed): Adjust caller.
884 * annotate.h (breakpoints_changed): Rename to ...
885 (annotate_breakpoints_changed): ... this.
886 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
887 (do_map_commands_command, init_raw_breakpoint, clear_command)
888 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
889
890 2012-11-20 David S. Miller <davem@davemloft.net>
891
892 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
893 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
894 sysconf.
895 (get_cores_used_by_process): Update comment.
896
897 2012-11-20 Yao Qi <yao@codesourcery.com>
898
899 * objfiles.c (init_entry_point_info): Remove trailing spaces.
900
901 2012-11-20 Yao Qi <yao@codesourcery.com>
902
903 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
904 to deprecated_context_hook.
905
906 2012-11-19 Yao Qi <yao@codesourcery.com>
907
908 * infrun.c (infwait_state): Add static.
909
910 2012-11-16 Keith Seitz <keiths@redhat.com>
911
912 PR c++/13615
913 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
914 parameter and pass it to lookup_symbol_file.
915 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
916 to search base classes.
917 (cp_lookup_symbol_namespace): Likewise.
918 (lookup_namespace_scope): Likewise.
919 (lookup_symbol_file): Add SEARCH parameter.
920 If SEARCH is non-zero and no symbol is found, lookup the class
921 and call cp_lookup_nested_symbol.
922 (find_symbol_in_baseclass): New function.
923 (cp_lookup_nested_symbol): Do not let
924 cp_lookup_symbol_in_namespace search through base classes.
925 Do that later when there is no global symbol match.
926
927 2012-11-16 Doug Evans <dje@google.com>
928
929 * main.c (gdb_datadir_provided): New static global.
930 (get_init_files): If --data-directory is provided,
931 and SYSTEM_GDBINIT lives in data-directory, look for it there.
932 * NEWS: Mention it.
933
934 2012-11-15 Pierre Muller <muller@sourceware.org>
935
936 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
937 * gdb_stat.h: Delete. Moved to common directory.
938 * common/gdb_stat.h: New file.
939 * gdb_wait.h: Delete. Moved to common directory.
940 * common/gdb_wait.h: New file.
941 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
942 location.
943 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
944 location.
945 (stat.h rule): Adapt to new gdb_stat.h location.
946 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
947 <sys/stat.h> header.
948 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
949 <sys/wait.h> header.
950
951 2012-11-15 Pierre Muller <muller@sourceware.org>
952
953 * configure.ac (AC_HEADER_STAT): Remove.
954 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
955 and corresponding code.
956 * configure: Regenerate.
957 * config.in: Regenerate.
958
959 2012-11-15 Pierre Muller <muller@sourceware.org>
960
961 ARI xasprintf rule fixes.
962 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
963 instead of xasprintf.
964 (open_and_init_dwp_file): Ditto.
965
966 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
967
968 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
969 target types.
970
971 2012-11-14 Tom Tromey <tromey@redhat.com>
972
973 * configure, config.in: Rebuild.
974 * configure.ac: Don't check for ctype.h, time.h.
975 * expprint.c: Don't use HAVE_CTYPE_H.
976
977 2012-11-13 Tom Tromey <tromey@redhat.com>
978
979 * gdbarch.h, gdbarch.c: Rebuild.
980 * gdbarch.sh (set_target_gdbarch): Rename from
981 deprecated_target_gdbarch_select_hack.
982 * arch-utils.c (gdbarch_update_p): Update.
983 (set_gdbarch_from_file): Update.
984
985 2012-11-14 Pierre Muller <muller@sourceware.org>
986
987 * MAINTAINERS (Responsible Maintainers/misc): Add myself
988 as responsible of contrib/ari directory.
989
990 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
991 Yao Qi <yao@codesourcery.com>
992
993 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
994 bit of EXC_RETURN.
995 (arm_m_exception_cache, arm_m_exception_this_id)
996 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
997 (arm_m_exception_unwind): New.
998 (arm_gdbarch_init): Register arm_m_exception_unwind.
999
1000 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1001
1002 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1003 parameter COUNT, for pattern filling of memory regions.
1004 * NEWS: Mention it.
1005
1006 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1007
1008 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1009 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1010 to print_source_lines ().
1011 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1012 flag.
1013 * source.c (print_source_lines_base): Prefix source line with
1014 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1015
1016 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1017
1018 * symtab.h (print_source_lines_flags): New enum.
1019 * source.c (print_source_lines_base): Change noerror to flags.
1020 (print_source_lines): Change noerror to flags.
1021
1022 2012-11-13 Pierre Muller <muller@sourceware.org>
1023
1024 ARI fixes: Avoid sprintf function use rule.
1025 * charset.c (convert_between_encodings): Use xsnprintf.
1026 * cli-out.c (cli_field_int): Likewise.
1027 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1028 * expprint.c (op_name_standard): Likewise.
1029 * frv-tdep.c (set_variant_num_gprs): Likewise.
1030 (set_variant_num_fprs): Likewise.
1031 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1032 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1033 (nto_init_solib_absolute_prefix): Likewise.
1034 * source.c (init_source_path): Likewise.
1035 (print_source_lines_base): Likewise.
1036 * valprint.c (print_wchar): Likewise.
1037 * mi/mi-out.c (mi_field_int): Likewise.
1038 windows-nat.c (windows_pid_to_exec_file): Likewise.
1039 (windows_create_inferior): Likewise.
1040 (_initialize_check_for_gdb_ini): Likewise.
1041
1042 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1043
1044 * frame.h (deprecated_frame_register_read): Renames
1045 frame_register_read.
1046 * frame.c (deprecated_frame_register_read): Renames
1047 frame_register_read. Update all callers.
1048 * i386-tdep.c: Update all callers of frame_register_read.
1049 * infcmd.c: Likewise.
1050 * jit.c: Likewise.
1051 * mips-tdep.c: Likewise.
1052 * mt-tdep.c: Likewise.
1053 * sh64-tdep.c: Likewise.
1054
1055 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1056
1057 * frame.h (frame_register_read): Remove FIXME comment.
1058 * frame.c (frame_register_read): Add suggestion explaining
1059 which function to use in place of this one.
1060
1061 2012-11-12 Tom Tromey <tromey@redhat.com>
1062
1063 * python/python.c (start_type_printers): Initialize 'result_obj'.
1064
1065 2012-11-12 Tom Tromey <tromey@redhat.com>
1066
1067 * NEWS: Update.
1068 * data-directory/Makefile.in (PYTHON_FILES): Add
1069 type_printers.py.
1070 * python/lib/gdb/command/type_printers.py: New file.
1071 * python/lib/gdb/command/types.py (TypePrinter): New class.
1072 (_get_some_type_recognizers, get_type_recognizers,
1073 apply_type_recognizers, register_type_printer): New
1074 functions.
1075 * python/py-objfile.c (objfile_object) <type_printers>: New
1076 field.
1077 (objfpy_dealloc): Decref new field.
1078 (objfpy_new): Set new field.
1079 (objfpy_get_type_printers, objfpy_set_type_printers): New
1080 functions.
1081 (objfile_to_objfile_object): Set new field.
1082 (objfile_getset): Add "type_printers".
1083 * python/py-progspace.c (pspace_object) <type_printers>: New
1084 field.
1085 (pspy_dealloc): Decref new field.
1086 (pspy_new): Set new field.
1087 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1088 (pspace_to_pspace_object): Set new field.
1089 (pspace_getset): Add "type_printers".
1090 * python/python.c (start_type_printers, apply_type_printers,
1091 free_type_printers): New functions.
1092 (_initialize_python): Set gdb.type_printers.
1093 * python/python.h (start_type_printers, apply_type_printers,
1094 free_type_printers): Declare.
1095 * typeprint.c (type_print_raw_options, default_ptype_flags):
1096 Update for new fields.
1097 (do_free_global_table, create_global_typedef_table,
1098 find_global_typedef): New functions.
1099 (find_typedef_in_hash): Use find_global_typedef.
1100 (whatis_exp): Use create_global_typedef_table. Change cleanup
1101 handling.
1102 * typeprint.h (struct type_print_options) <global_typedefs,
1103 global_printers>: New fields.
1104
1105 2012-11-12 Tom Tromey <tromey@redhat.com>
1106
1107 * c-typeprint.c (find_typedef_for_canonicalize,
1108 print_name_maybe_canonical): New functions.
1109 (c_print_type): Look up type name.
1110 (cp_type_print_derivation_info): Add flags argument. Use
1111 print_name_maybe_canonical.
1112 (cp_type_print_method_args): Add wrapping.
1113 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1114 (c_type_print_template_args): New function.
1115 (c_type_print_base): Change wrapping. Use
1116 print_name_maybe_canonical.
1117 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1118 type name lookups.
1119 * gdbtypes.c (types_equal): No longer static.
1120 * gdbtypes.h (types_equal): Declare.
1121 * typeprint.c (type_print_raw_options, default_ptype_flags):
1122 Update.
1123 (struct typedef_hash_table): New.
1124 (hash_typedef_field, eq_typedef_field,
1125 recursively_update_typedef_hash, add_template_parameters,
1126 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1127 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1128 copy_typedef_hash, find_typedef_in_hash): New functions.
1129 * typeprint.h (struct type_print_options) <local_typedefs>:
1130 New field.
1131 (recursively_update_typedef_hash, add_template_parameters,
1132 create_typedef_hash, free_typedef_hash,
1133 make_cleanup_free_typedef_hash, copy_typedef_hash,
1134 find_typedef_in_hash): Declare.
1135
1136 2012-11-12 Tom Tromey <tromey@redhat.com>
1137
1138 * cp-support.c (inspect_type,
1139 replace_typedefs_qualified_name, replace_typedefs): Add
1140 finder, data arguments. Call as needed.
1141 (cp_canonicalize_string_full): New function.
1142 (cp_canonicalize_string_no_typedefs): Rewrite.
1143 * cp-support.h (canonicalization_ftype): New typedef.
1144 (cp_canonicalize_string_full): Declare.
1145
1146 2012-11-12 Tom Tromey <tromey@redhat.com>
1147
1148 * NEWS: Update.
1149 * c-typeprint.c (c_type_print_base): Handle print_method and
1150 print_typedefs flags.
1151 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1152 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1153 options.
1154 * typeprint.c (type_print_raw_options, default_ptype_flags):
1155 Update for new field.s
1156 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1157 (setprinttypelist, showprinttypelist, print_methods,
1158 print_typedefs): New globals.
1159 (set_print_type, show_print_type, set_print_type_methods,
1160 show_print_type_methods, set_print_type_typedefs,
1161 show_print_type_typedefs): New functions.
1162 (_initialize_typeprint): Update documentation. Add "print
1163 type methods" and "print type typedefs" parameters.
1164 * typeprint.h (struct type_print_options) <print_methods,
1165 print_typedefs>: New fields.
1166
1167 2012-11-12 Tom Tromey <tromey@redhat.com>
1168
1169 * c-typeprint.c (cp_type_print_method_args): Add flags
1170 argument. Call c_print_type, not type_print.
1171 (c_type_print_base): Call c_print_type, not type_print.
1172 Update.
1173
1174 2012-11-12 Tom Tromey <tromey@redhat.com>
1175
1176 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1177 to type-printing functions.
1178 * ada-lang.h (ada_print_type): Add argument.
1179 * ada-typeprint.c (print_array_type, print_variant_clauses,
1180 print_variant_part, print_selected_record_field_types,
1181 print_record_field_types, print_unchecked_union_type,
1182 print_func_type, ada_print_type): Add flags argument.
1183 (ada_print_typedef): Update.
1184 * c-exp.y (OPERATOR conversion_type_id): Update.
1185 * c-lang.h (c_print_type, c_type_print_base): Update.
1186 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1187 c_type_print_modifier, c_type_print_args,
1188 c_type_print_varspec_suffix, c_type_print_base): Add flags
1189 argument.
1190 * cp-valprint.c (cp_print_class_member): Update.
1191 * dwarf2read.c (dwarf2_compute_name): Update.
1192 * f-lang.h (f_print_type): Add argument.
1193 * f-typeprint.c (f_print_type): Add flags argument.
1194 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1195 * go-lang.h (go_print_type): Add argument.
1196 * go-typeprint.c (go_print_type): Add flags argument.
1197 * jv-lang.h (java_print_type): Add argument.
1198 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1199 flags argument.
1200 * language.c (unk_lang_print_type): Add flags argument.
1201 * language.h (struct language_defn) <la_print_type>: Add flags
1202 argument.
1203 (LA_PRINT_TYPE): Likewise.
1204 * m2-lang.h (m2_print_type): Add argument.
1205 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1206 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1207 m2_unbounded_array, m2_record_fields): Add flags argument.
1208 * p-lang.h (pascal_print_type, pascal_type_print_base,
1209 pascal_type_print_varspec_prefix): Add argument.
1210 * p-typeprint.c (pascal_print_type,
1211 pascal_type_print_varspec_prefix, pascal_print_func_args,
1212 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1213 flags argument.
1214 * symmisc.c (print_symbol): Update.
1215 * typeprint.c (type_print_raw_options, default_ptype_flags):
1216 New globals.
1217 (type_print): Update.
1218 * typeprint.h (struct type_print_options): New.
1219 (type_print_raw_options): Declare.
1220 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1221
1222 2012-11-10 Keith Seitz <keiths@redhat.com>
1223
1224 * breakpoint.c (clear_command): Add cleanup for
1225 sals.sals if an argument is given.
1226
1227 * linespec.c (parse_linespec): Do cleanups after
1228 parsing a convenience variable.
1229
1230 2012-11-10 Keith Seitz <keiths@redhat.com>
1231
1232 PR gdb/14288
1233 * c-valprint.c (c_val_print): For character arrays
1234 with "print null" option on, print ellipses if
1235 the output is truncated and the next character is not \000.
1236 * valprint.c (MAX_WCHARS): Define.
1237 (WCHAR_BUFLEN): Likewise.
1238 (WCHAR_BUFLEN_MAX): Likewise.
1239 (struct converted_character): New structure.
1240 (count_next_character): New function.
1241 (print_converted_chars_to_obstack): New function.
1242 (generic_printstr): Rewrite using count_next_character
1243 and print_converted_chars_to_obstack.
1244
1245 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1246
1247 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1248 while executing the gdb command.
1249 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1250 are called from prompt_for_continue.
1251 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1252
1253 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1254
1255 PR tui/9584
1256
1257 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1258 but insert the command to execute in readline's buffer.
1259
1260 2012-11-09 Tom Tromey <tromey@redhat.com>
1261
1262 * gdbarch.sh (target_gdbarch): Remove macro.
1263 (get_target_gdbarch): Rename to target_gdbarch.
1264 * gdbarch.c, gdbarch.h: Rebuild.
1265 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1266 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1267 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1268 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1269 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1270 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1271 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1272 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1273 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1274 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1275 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1276 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1277 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1278 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1279 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1280 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1281 target-descriptions.c, target.c, target.h, tracepoint.c,
1282 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1283 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1284 python/py-inferior.c, python/python.c: Update.
1285
1286 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1287
1288 * source.c (print_source_lines_base): Add fullname field giving
1289 full path to file in mi output.
1290 * NEWS: Mention the new fullname field.
1291
1292 2012-11-09 Yao Qi <yao@codesourcery.com>
1293
1294 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1295
1296 2012-11-09 Pedro Alves <palves@redhat.com>
1297
1298 PR gdb/14306
1299
1300 * infrun.c: Include target-descriptions.h.
1301 (follow_exec): Fetch new target description.
1302
1303 2012-11-09 Yao Qi <yao@codesourcery.com>
1304
1305 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1306 0x8d (lea).
1307
1308 2012-11-09 Yao Qi <yao@codesourcery.com>
1309
1310 * breakpoint.c: Declare set_tracepoint_count.
1311 (install_breakpoint): Call set_tracepoint_count if B is a
1312 tracepoint.
1313 (trace_command): Don't call set_tracepoint_count. Re-indent.
1314 (strace_command, ftrace_command):
1315 (create_tracepoint_from_upload): Likewise.
1316
1317 2012-11-09 Pedro Alves <palves@redhat.com>
1318
1319 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1320 (get_target_gdbarch) <gdbarch.h>: New function.
1321 (startup_gdbarch) <gdbarch.h>: Declare.
1322 <gdbarch.c> (target_gdbarch): Delete.
1323 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1324 current inferior's gdbarch.
1325 <gdbarch.c> (get_target_gdbarch): New function.
1326 * inferior.c: Include target-descriptions.h.
1327 (free_inferior): Free target description info.
1328 (add_inferior_with_spaces): Set the inferior's initial
1329 architecture.
1330 (clone_inferior_command): Copy the original inferior's target
1331 description if it was user specified.
1332 (initialize_inferiors): Add comment.
1333 * inferior.h (struct target_desc_info): Forward declare.
1334 (struct inferior) <gdbarch>: New field.
1335 * linux-nat.c: Include target-descriptions.h.
1336 (linux_child_follow_fork): Copy the parent's architecture and
1337 target description to the child.
1338 * target-descriptions.c: Include inferior.h.
1339 (struct target_desc_info): New structure, holding the equivalents
1340 of ...
1341 (target_desc_fetched, current_target_desc)
1342 (target_description_filename): ... these removed globals.
1343 (get_tdesc_info, target_desc_info_from_user_p)
1344 (copy_inferior_target_desc_info, target_desc_info_free): New.
1345 (target_desc_fetched, current_target_desc)
1346 (target_description_filename): Reimplemented as convenience
1347 macros.
1348 (tdesc_filename_cmd_string): New global.
1349 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1350 tdescs filename ..." commands to the per-inferior equivalent.
1351 (show_tdesc_filename_cmd): Get the value to show from the
1352 per-inferior description filename.
1353 (_initilize_target_descriptions): Change the "set/show tdesc
1354 filename" commands' variable.
1355 * target-descriptions.h (struct target_desc, struct target_desc_info)
1356 (struct inferior): Forward declare.
1357 (target_find_description, target_clear_description)
1358 (target_current_description): Adjust comments.
1359 (copy_inferior_target_desc_info, target_desc_info_free)
1360 (target_desc_info_from_user_p). Declare.
1361
1362 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1363
1364 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1365 (tui_target_wait_hook): Remove.
1366 (tui_install_hooks): Install the about_to_proceed observer.
1367 (tui_remove_hooks): And remove it here.
1368
1369 2012-11-08 Tom Tromey <tromey@redhat.com>
1370
1371 * linux-tdep.c (linux_make_siginfo_note): New function.
1372 (linux_make_corefile_notes): Use it.
1373 * corelow.c (get_core_siginfo): New function.
1374 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1375
1376 2012-11-08 Tom Tromey <tromey@redhat.com>
1377
1378 PR gdb/14704:
1379 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1380 (zlib_decompress_section): Remove.
1381 (gdb_bfd_map_section): Only check for compressed section
1382 in mmap case. Use bfd_get_full_section_contents.
1383 * osabi.c (check_note): Add 'sectsize' argument. Read
1384 section data.
1385 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1386 section data. Update for check_note change.
1387 * xcoffread.c (xcoff_initial_scan): Use
1388 bfd_get_full_section_contents.
1389 * py-auto-load.c (auto_load_section_scripts): Use
1390 bfd_get_full_section_contents.
1391 * contrib/cc-with-tweaks.sh: Add -Z option.
1392
1393 2012-11-08 Tom Tromey <tromey@redhat.com>
1394
1395 * python/py-bpevent.c: Include defs.h.
1396 * python/py-continueevent.c: Include defs.h.
1397 * python/py-event.c: Include defs.h.
1398 * python/py-event.h: Don't include defs.h.
1399 * python/py-events.h: Don't include defs.h.
1400 * python/py-evts.c: Include defs.h.
1401 * python/py-exitedevent.c: Include defs.h.
1402 * python/py-newobjfileevent.c: Include defs.h.
1403 * python/py-signalevent.c: Include defs.h.
1404 * python/py-stopevent.c: Include defs.h.
1405 * python/py-threadevent.c: Include defs.h.
1406
1407 2012-11-08 Pierre Muller <muller@sourceware.org>
1408
1409 * update-web-ari.sh (print_heading): Add number of files
1410 checked.
1411 (nb_files): New variable counting the number of sources
1412 files found by gdb_find.sh script.
1413 (debug_awk): New variable to allow extra debug output.
1414 (indexes): Add more information if DEBUG_AWK is set.
1415
1416 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1417
1418 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1419 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1420 following the change in PLT call stubs on linker.
1421
1422 2012-11-08 Pierre Muller <muller@sourceware.org>
1423
1424 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1425 as default language.
1426 (AWK): Use = instead of == for sh test to avoid warning.
1427 (Linux rule): Correct [:digit] into [[:digit:]].
1428 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1429 (vasprintf rule): Adapt to common subdirectory moves.
1430 (xasprintf rule): Idem.
1431 (xvasprintf rule): Idem.
1432 (var_boolean rule): Accept occurence in == or != test.
1433
1434 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1435
1436 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1437
1438 * tui/tui-hooks.c (tui_inferior_exit): New function.
1439 (tui_detach_hook): Remove.
1440 (tui_install_hooks): Install the inferior exit observer.
1441 (tui_remove_hooks): Remove it.
1442
1443 2012-11-08 Yao Qi <yao@codesourcery.com>
1444
1445 PR gdb/14777.
1446 * source.c (_initialize_source): Call add_com_alias to abbreviate
1447 'forward-search' as 'fo'.
1448
1449 2012-11-07 Pedro Alves <palves@redhat.com>
1450
1451 * arm-tdep.c: Make defs.h be the first include.
1452 * coff-pe-read.c: Ditto.
1453 * gnu-nat.c: Ditto.
1454 * go32-nat.c: Ditto.
1455 * i386-nat.c: Ditto.
1456 * ppcnbsd-nat.c: Ditto.
1457 * ada-varobj.h: Don't include defs.h.
1458 * i386-darwin-tdep.h: Ditto.
1459 * i386-nat.h: Ditto.
1460
1461 2012-11-07 Pedro Alves <palves@redhat.com>
1462
1463 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1464 Committee.
1465
1466 2012-11-07 Pierre Muller <muller@sourceware.org>
1467
1468 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1469 File already uses "gdb_dirent.h" header.
1470
1471 2012-11-07 Yao Qi <yao@codesourcery.com>
1472
1473 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1474 tracepoint_count'.
1475
1476 2012-11-06 Tom Tromey <tromey@redhat.com>
1477
1478 * target.h (inferior_has_forked, inferior_has_vforked)
1479 (inferior_has_execd, inferior_has_called_syscall): Remove
1480 declarations.
1481
1482 2012-11-06 Pierre Muller <muller@sourceware.org>
1483
1484 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1485 add missing internalization markup.
1486
1487 2012-11-06 Pedro Alves <palves@redhat.com>
1488
1489 PR gdb/14810
1490
1491 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1492
1493 2012-11-06 Pierre Muller <muller@sourceware.org>
1494
1495 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1496 is not executable.
1497
1498 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1499
1500 * gnulib/update-gnulib.sh: New script.
1501
1502 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1503
1504 * MAINTAINERS: Update my email address.
1505
1506 2012-11-05 Tom Tromey <tromey@redhat.com>
1507
1508 * frame.c (put_frame_register): Don't use temporary buffer.
1509
1510 2012-11-05 Pedro Alves <palves@redhat.com>
1511
1512 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1513 child. Clear 'pending_detach'.
1514 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1515 'pending_detach' in the vfork parent.
1516
1517 2012-11-05 Doug Evans <dje@google.com>
1518
1519 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1520 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1521 * dwarf2read.c: #include "elf-bfd.h".
1522 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1523 (dwop_section_names): Renamed from dwo_section names. All uses
1524 updated. Add entries for .debug_cu_index, .debug_tu_index.
1525 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1526 All uses updated.
1527 (struct dwp_sections): New type.
1528 (struct virtual_dwo_sections): New type.
1529 (struct dwp_hash_table): New type.
1530 (struct dwp_file): New type.
1531 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1532 read in. Handle DWOs coming from DWP files.
1533 (lookup_dwo_file_slot): New function.
1534 (dwarf2_locate_dwo_sections): Move definition closer to use.
1535 (create_dwo_debug_info_hash_table_reader): Renamed from
1536 create_debug_info_hash_table_reader. All callers updated.
1537 (create_dwo_debug_info_hash_table): Renamed from
1538 create_debug_info_hash_table. All callers updated.
1539 (create_dwp_hash_table): New function.
1540 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1541 (lookup_dwo_in_dwp): New function.
1542 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1543 is_dwp. All callers updated.
1544 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1545 (open_and_init_dwo_file): Renamed from init_dwo_file.
1546 All callers updated.
1547 (lookup_dwo_file): Delete.
1548 (dwarf2_locate_dwp_sections): New function.
1549 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1550 (allocate_dwp_loaded_cutus_table): New function.
1551 (open_and_init_dwp_file): New function.
1552 (lookup_dwo_cutu): New function.
1553 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1554
1555 2012-11-03 Yao Qi <yao@codesourcery.com>
1556
1557 Fix PR gdb/14617.
1558 * breakpoint.c (trace_pass_set_count): Call
1559 observer_notify_breakpoint_modified instead of
1560 observer_notify_tracepoint_modified.
1561 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1562
1563 2012-11-02 Tom Tromey <tromey@redhat.com>
1564
1565 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1566 argument to complete_on_enum.
1567
1568 2012-11-02 Tom Tromey <tromey@redhat.com>
1569
1570 * configure: Rebuild.
1571 * configure.ac (build_warnings): Add -Wempty-body.
1572 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1573 * remote.c (handle_notification): Use braces for empty 'else' body.
1574 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1575 'else' body.
1576 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1577 'else' body.
1578 * solib-som.c (som_relocate_section_addresses): Use braces
1579 for empty 'else' body.
1580 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1581 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1582
1583 2012-11-02 Pedro Alves <palves@redhat.com>
1584
1585 PR gdb/14766
1586
1587 * infrun.c (handle_inferior_event)
1588 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1589 null_ptid before handling a vfork child exec or exit. Switch to
1590 the event ptid afterwards.
1591
1592 2012-11-02 Yao Qi <yao@codesourcery.com>
1593
1594 * std-operator.def: Remove OP_LABELED.
1595 * eval.c: Remove the declaration of 'get_label'.
1596 (get_label): Remove.
1597 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1598 Update comment.
1599 Remove local variable 'variantno' and related code.
1600 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1601 with 'fieldno'.
1602 * expprint.c (print_subexp_standard): Likewise.
1603 (dump_subexp_body_standard): Likewise.
1604 * parse.c (operator_length_standard): Likewise.
1605
1606 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1607
1608 Incorporate ARI web page generator into GDB sources.
1609 * contrib/ari/create-web-ari-in-src.sh: New file.
1610 * contrib/ari/gdb_ari.sh: New file.
1611 * contrib/ari/gdb_find.sh: New file.
1612 * contrib/ari/update-web-ari.sh: New file.
1613
1614 2012-10-31 Tom Tromey <tromey@redhat.com>
1615
1616 * gdbarch.c: Rebuild.
1617 * gdbarch.sh: Remove references to gdbarch_swap.
1618 * corelow.c (core_open): Remove obsolete comment.
1619
1620 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1621
1622 PR cli/14772
1623 * c-typeprint.c (c_print_type): Don't print a space for vector
1624 types, this is handled within the suffix.
1625 (c_type_print_varspec_suffix): Add a space to vector suffix.
1626
1627 2012-10-26 Pedro Alves <palves@redhat.com>
1628
1629 * amd64-tdep.c (amd64_relocate_instruction): Use
1630 store_unsigned_integer instead of memcpy.
1631 * i386-tdep.c (i386_relocate_instruction): Ditto.
1632
1633 2012-10-26 Pedro Alves <palves@redhat.com>
1634
1635 * infrun.c (handle_inferior_event): Merge handling of
1636 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1637 switch case.
1638
1639 2012-10-26 Pedro Alves <palves@redhat.com>
1640
1641 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1642 Remove comment.
1643
1644 2012-10-26 Pedro Alves <palves@redhat.com>
1645
1646 * target.c (target_waitstatus_to_string): Handle
1647 TARGET_WAITKIND_VFORK_DONE.
1648
1649 2012-10-26 Pedro Alves <palves@redhat.com>
1650
1651 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1652 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1653
1654 2012-10-24 Tristan Gingold <gingold@adacore.com>
1655
1656 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1657 Add comments.
1658
1659 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1660
1661 * ravenscar-thread.c (ravenscar_wait): Only update the list
1662 of threads and inferior_ptid if the inferior is still alive.
1663
1664 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1665
1666 * ada-lang.c (is_known_support_routine): Use lbasename when
1667 matching the symtab's filename against
1668 known_runtime_file_name_patterns.
1669
1670 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1671
1672 * ada-lang.c (ada_same_array_size_p): New function.
1673 (ada_promote_array_of_integrals): New function.
1674 (coerce_for_assign): Add handling of arrays where the elements
1675 are integrals of a smaller size than the size of the target
1676 array element type.
1677
1678 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1679
1680 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1681 against maximum exponent value.
1682
1683 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1684
1685 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1686 "unwind-seh.c".
1687
1688 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1689
1690 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1691 strip typedef layer when computing the fixed type's field type,
1692 only when computing its size.
1693
1694 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1695
1696 PR gdb/12783
1697 * i386-tdep.c (i386_return_value): Handle complex double and long
1698 double.
1699
1700 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1701
1702 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1703 New local variable args_len.
1704 Quote the name of the executable when computing the command line.
1705
1706 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1707
1708 PR gdb/12796
1709 PR gdb/12798
1710 PR gdb/12800
1711 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1712 AMD64_FTAG_REGNUM.
1713 * amd64-tdep.c (amd64_classify): Classify complex types.
1714 (amd64_return_value): Handle the COMPLEX_X87 class.
1715
1716 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1717
1718 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1719 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1720
1721 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1722
1723 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1724 function.
1725 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1726 to amd64_windows_auto_wide_charset.
1727
1728 2012-10-23 Yao Qi <yao@codesourcery.com>
1729
1730 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1731 * event-top.h: Remove its declaration.
1732 (async_request_quit): Call mark_async_signal_handler instead of
1733 mark_async_signal_handler_wrapper.
1734 (async_do_nothing, async_disconnect): Likewise.
1735 (async_stop_sig): Likewise.
1736 * remote.c (handle_remote_sigint): Likewise.
1737 (handle_remote_sigint_twice): Likewise.
1738
1739 2012-10-23 Yao Qi <yao@codesourcery.com>
1740
1741 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1742 with 'static struct async_signal_handler *'.
1743 (sighup_token, sigquit_token, sigstp_token): Likewise.
1744
1745 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1746
1747 * gdbarch.sh (function_list): Use 'pstring' when printing
1748 a variable which could return NULL.
1749 * gdbarch.c: Regenerate.
1750
1751 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1752 Tom Tromey <tromey@redhat.com>
1753
1754 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1755 inneffective if condition by gdb assertion. Add function
1756 description comment.
1757
1758 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1759
1760 * parser-defs.h (struct exp_descriptor): Document constraint
1761 on return value for "op_name" callbacks.
1762
1763 2012-10-18 Tom Tromey <tromey@redhat.com>
1764
1765 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1766 * symtab.c (iterate_over_some_symtabs): Constify.
1767 * source.h (symtab_to_fullname): Return 'const char *'.
1768 * source.c (symtab_to_fullname): Return 'const char *'.
1769 * python/py-symtab.c (stpy_fullname): Constify.
1770 * cli/cli-cmds.c (edit_command): Constify.
1771 * breakpoint.c (print_breakpoint_location)
1772 (update_static_tracepoint): Constify.
1773
1774 2012-10-18 Tom Tromey <tromey@redhat.com>
1775
1776 * breakpoint.c (compare_breakpoints): Fix comparison.
1777
1778 2012-10-18 Tom Tromey <tromey@redhat.com>
1779
1780 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1781 gdb_wchar_t to convert_between_encodings.
1782
1783 2012-10-17 Yao Qi <yao@codesourcery.com>
1784
1785 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1786 more parameter 'inferior'.
1787 * corefile.c (write_memory_with_notification): Caller update.
1788
1789 * mi/mi-cmd-var.c: Include "mi-main.h".
1790 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1791 to 1 and restore it later.
1792 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1793 and "data-write-memory-bytes.
1794 * mi/mi-interp.c: Include objfiles.h.
1795 (mi_interpreter_init): Call observer_attach_memory_changed.
1796 (mi_memory_changed): New.
1797 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1798 New field.
1799
1800 * NEWS: Mention new MI notification "memory-changed".
1801
1802 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1803
1804 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1805
1806 2012-10-15 Doug Evans <dje@google.com>
1807
1808 New option -nh: inhibit loading of ~/.gdbinit.
1809 * NEWS: Mention -nh.
1810 * main.c (captured_main): Recognize and process -nh.
1811 (print_gdb_help): Mention -nh.
1812 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1813
1814 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1815
1816 PR backtrace/14646
1817 PR gdb/14647
1818 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1819 pc_regnum_from_eax.
1820 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1821 nor pc_regnum_from_eax.
1822 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1823 nor pc_regnum_from_eax.
1824
1825 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1826
1827 Fix entry values resolving in inlined frames.
1828 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1829 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1830 entries of FRAME.
1831
1832 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1833
1834 * configure.ac: Build with -DMS_WIN64 if building with Python
1835 enabled using GCC on amd64-windows.
1836 * configure: Regenerate.
1837
1838 2012-10-15 Tom Tromey <tromey@redhat.com>
1839
1840 PR python/14635:
1841 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1842 to Py_None.
1843
1844 2012-10-15 Tom Tromey <tromey@redhat.com>
1845
1846 PR python/14634:
1847 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1848
1849 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1850
1851 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1852 reset thread numbering back to 1.
1853
1854 2012-10-11 Doug Evans <dje@google.com>
1855
1856 PR breakpoints/14643.
1857 * linespec.c (struct ls_parser): New member keyword_ok.
1858 (linespec_lexer_lex_string): Add comment.
1859 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1860 for one.
1861 (parse_linespec): Set keyword_ok.
1862
1863 2012-10-10 Doug Evans <dje@google.com>
1864
1865 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1866 "0x" prefix on address in log message.
1867
1868 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1869 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1870 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1871 (lookup_dwo_file): Add const to dwo_name parameter.
1872 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1873
1874 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1875
1876 Fix crash during stepping on ppc32.
1877 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1878 SYM.
1879
1880 2012-10-03 Doug Evans <dje@google.com>
1881
1882 PR symtab/14601
1883 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1884
1885 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1886
1887 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1888 output and use uint32_t not long to ensure 4 byte size.
1889
1890 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1891
1892 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1893 unref'ed it.
1894
1895 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1896
1897 * target.c (simple_search_memory): Include access length in
1898 warning message.
1899
1900 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1901 Edjunior Machado <emachado@linux.vnet.ibm.com>
1902
1903 PR gdb/13989
1904 * solib.c (solib_find): Prevent GDB from loading native libraries when
1905 debugging a cross-target corefile.
1906
1907 2012-09-28 selven <pcthegreat@gmail.com>
1908
1909 Make definition match declaration.
1910
1911 * regcache.c (regcache_register_status): Change return type to
1912 enum register_status.
1913
1914 2012-09-28 Yao Qi <yao@codesourcery.com>
1915
1916 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1917 write_memory_with_notification instead of write_memory.
1918 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1919 instead of target_write_memory.
1920
1921 2012-09-28 Yao Qi <yao@codesourcery.com>
1922
1923 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1924 when the length of content is not an even number.
1925
1926 2012-09-27 Tom Tromey <tromey@redhat.com>
1927
1928 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1929 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1930
1931 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1932
1933 * sol-thread.c (sol_thread_fetch_registers)
1934 (sol_thread_store_registers): Delete commented out code.
1935
1936 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1937
1938 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1939 Move these functions to sparc-sol-thread.c.
1940 * sparc-sol-thread.c: New file.
1941 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1942 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1943 configurations.
1944 * configure: Regenerate.
1945
1946 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1947
1948 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1949 Remove commented-out code.
1950
1951 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1952
1953 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1954 Enable this code for sparc hosts only.
1955
1956 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1957
1958 * procfs.h (procfs_find_LDT_entry): Add declaration.
1959 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1960 function procfs_find_LDT_entry.
1961
1962 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1963
1964 * procfs.c (proc_get_LDT_entry): Make static.
1965
1966 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1967
1968 * procfs.c (proc_find_memory_regions): Fix declaration.
1969
1970 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1971
1972 * amd64-tdep.c (amd64_return_value): Revert previous change
1973 that used TYPE_LENGTH directly.
1974 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1975 (bfin_store_return_value): Likewise.
1976 * cris-tdep.c (cris_store_return_value): Likewise.
1977 (cris_extract_return_value): Likewise.
1978 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1979 * hppa-tdep.c (hppa64_return_value): Likewise.
1980 * lm32-tdep.c (lm32_store_return_value): Likewise.
1981 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1982 * spu-tdep.c (spu_value_from_register): Likewise.
1983 * vax-tdep.c (vax_return_value): Likewise.
1984
1985 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1986
1987 * gdbtypes.c (lookup_array_range_type): Expand parameters
1988 LOW_BOUND and HIGH_BOUND to LONGEST.
1989 (lookup_string_range_type): Likewise.
1990 * gdbtypes.h (lookup_array_range_type): Likewise.
1991 (lookup_string_range_type): Likewise.
1992 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1993 Expand HIGHBOUND to ssize_t.
1994 (value_string): Likewise.
1995 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1996 (value_string): Likewise.
1997
1998 2012-09-27 Yao Qi <yao@codesourcery.com>
1999
2000 PR breakpoints/13898
2001 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2002 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2003 per breakpoint type.
2004
2005 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2006
2007 * procfs.c: Add gdb_bfd header.
2008 * rs6000-nat.c: Likewise.
2009 * solib-pa64.c: Likewise.
2010 * spu-linux-nat.c: Likewise.
2011 * windows-nat.c: Likewise.
2012
2013 2012-09-26 Tom Tromey <tromey@redhat.com>
2014
2015 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2016
2017 2012-09-26 Tom Tromey <tromey@redhat.com>
2018
2019 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2020 (read_common_block): Handle child DIEs with
2021 DW_AT_data_member_location.
2022 (new_symbol_full): Add special case for common blocks.
2023
2024 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2025 Tom Tromey <tromey@redhat.com>
2026
2027 * dwarf2read.c (read_common_block): Rewrite.
2028 (new_symbol_full): Handle DW_TAG_common_block.
2029 * f-lang.c (head_common_list, find_common_for_function):
2030 Remove.
2031 * f-lang.h (struct common_entry, struct saved_f77_common,
2032 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2033 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2034 BLANK_COMMON_NAME_LOCAL): Remove.
2035 (struct common_block): New.
2036 * f-valprint.c (list_all_visible_commons): Remove.
2037 (info_common_command_for_block): New function.
2038 (info_common_command): Use it.
2039 * stack.c (iterate_over_block_locals): Special case for
2040 COMMON_BLOCK_DOMAIN.
2041 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2042 constant.
2043 (struct general_symbol_info) <value.common_block>: New field.
2044 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2045
2046 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2047 Tom Tromey <tromey@redhat.com>
2048
2049 * f-lang.c (allocate_saved_bf_node,
2050 allocate_saved_function_node, allocate_saved_f77_common_node,
2051 allocate_common_entry_node, tail_common_list, current_common,
2052 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2053 tmp_bf_ptr, add_common_block, add_common_entry,
2054 find_first_common_named, patch_common_entries,
2055 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2056 global_remote_debug, get_bf_for_fcn, saved_function_list,
2057 saved_function_list_end, clear_function_list, struct saved_fcn,
2058 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2059 SAVED_BF, SAVED_BF_PTR): Remove.
2060 * f-lang.h (tail_common_list, current_common,
2061 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2062 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2063 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2064 real_main_c_value): Remove.
2065 * f-valprint.c (there_is_a_visible_common_named): Remove.
2066
2067 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2068
2069 * breakpoint.c (update_global_location_list): Ignore previous
2070 duplicate status of a breakpoint when starting a new scan for
2071 duplicate breakpoints.
2072
2073 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2074 PR breakpoints/14419
2075 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2076 support LLVM compiler.
2077
2078 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2079
2080 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2081 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2082 (bfin_store_return_value): Likewise.
2083 * cris-tdep.c (cris_store_return_value): Likewise.
2084 (cris_extract_return_value): Likewise.
2085 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2086 * hppa-tdep.c (hppa64_return_value): Likewise.
2087 * lm32-tdep.c (lm32_store_return_value): Likewise.
2088 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2089 * spu-tdep.c (spu_value_from_register): Likewise.
2090 * vax-tdep.c (vax_return_value): Likewise.
2091
2092 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2093
2094 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2095 parameter LEN to ssize_t.
2096
2097 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2098
2099 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2100 variable LEN.
2101 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2102 directly.
2103 (alpha_store_return_value): Likewise.
2104 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2105 (amd64_push_arguments): Likewise.
2106 * ax-gdb.c (gen_trace_static_fields): Likewise.
2107 (gen_traced_pop): Likewise.
2108 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2109 * breakpoint.c (update_watchpoint): Likewise.
2110 * findcmd.c (parse_find_args): Use local variable for type
2111 instead of length.
2112 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2113 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2114 (h8300_store_return_value): Likewise.
2115 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2116 Use i386_darwin_arg_type_alignment directly.
2117 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2118 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2119 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2120 (m68hc11_extract_return_value): Likewise.
2121 * mep-tdep.c (mep_push_dummy_call): Likewise.
2122 * printcmd.c (float_type_from_length): Likewise.
2123 * s390-tdep.c (s390_value_from_register): Likewise.
2124 * stack.c (read_frame_arg): Likewise.
2125 * tracepoint.c (encode_actions_1): Likewise.
2126 * valops.c (value_fetch_lazy): Use local variable for type
2127 instead of length. Use TYPE_LENGTH directly.
2128 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2129
2130 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2131
2132 * symtab.c (skip_prologue_sal): Fix typo in comment.
2133
2134 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2135
2136 * linespec.c (create_sals_line_offset): Fix typo in comment.
2137
2138 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2139
2140 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2141 use plongest to print the array size.
2142
2143 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2144
2145 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2146 * p-valprint.c (pascal_type_print_base): Likewise.
2147
2148 2012-09-22 Yao Qi <yao@codesourcery.com>
2149
2150 * remote.c (remote_get_trace_status): Remove setting default
2151 values of fields of 'ts'.
2152
2153 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2154
2155 Fix internal error on canonicalization of clang types.
2156 * cp-name-parser.y (operator): New comment at make_operator call for
2157 new, delete, new[] and delete[].
2158 (exp): Use "sizeof ". Add new comment at make_operator call.
2159
2160 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2161
2162 Fix disassemble without parameters in tailcall frame.
2163 * cli/cli-cmds.c (disassemble_current_function): Use
2164 get_frame_address_in_block.
2165
2166 2012-09-21 Tom Tromey <tromey@redhat.com>
2167
2168 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2169 TYPE_CODE_UNION>: Unify, removing a goto.
2170
2171 2012-09-21 Tom Tromey <tromey@redhat.com>
2172
2173 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2174
2175 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2176
2177 * findvar.c (read_frame_register_value): Mark the result value as
2178 optimized out if any of the input registers have been optimized out.
2179
2180 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2181
2182 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2183
2184 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2185
2186 * eval.c (evaluate_subexp_standard): Eliminate single-use
2187 variable LOWER.
2188
2189 2012-09-21 Yao Qi <yao@codesourcery.com>
2190
2191 * mi/mi-interp.c: Declare mi_record_changed.
2192 (mi_interpreter_init): Call observer_attach_record_changed.
2193 (mi_record_changed): New.
2194 * record.c (record_open): Call observer_notify_record_changed.
2195 (cmd_record_stop): Call observer_notify_record_changed.
2196 * NEWS: Mention it.
2197
2198 2012-09-20 Tom Tromey <tromey@redhat.com>
2199
2200 * NEWS: Update.
2201 * python/python.c (finalize_python): New function.
2202 (_initialize_python): Make a final cleanup.
2203
2204 2012-09-19 Doug Evans <dje@google.com>
2205
2206 * buildsym.h (param_symbols): Delete, unused.
2207 (context_stack): Delete member "params", unused.
2208 * buildsym.c (push_context): Update.
2209 * dwarf2read.c (read_func_scope): Update.
2210
2211 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2212
2213 * sh-tdep.c (sh_register_convert_to_virtual)
2214 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2215 all callers. Just do a memcpy if not the little-endian case.
2216
2217 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2218 set_gdbarch_double_format and set_gdbarch_long_double_format.
2219 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2220 set_gdbarch_double_format.
2221 * sh-tdep.c (sh_gdbarch_init): Likewise.
2222
2223 * NEWS: Document the removal of SH's 'regs' command.
2224 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2225 command.
2226
2227 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2228
2229 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2230 `jump'.
2231
2232 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2233
2234 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2235 language when iterating over symbols.
2236
2237 2012-09-18 Yao Qi <yao@codesourcery.com>
2238
2239 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2240 (mi_interpreter_init): Call observer_attach_tsv_created and
2241 observer_attach_tsv_deleted.
2242 (mi_tsv_created, mi_tsv_deleted): New.
2243 * tracepoint.c (delete_trace_state_variable): Call
2244 observer_notify_tsv_deleted.
2245 (trace_variable_command): Call observer_notify_tsv_created.
2246 (delete_trace_variable_command): Call
2247 observer_notify_tsv_deleted.
2248 (create_tsv_from_upload): Call observer_notify_tsv_created.
2249 * NEWS: Mention it.
2250
2251 2012-09-18 Yao Qi <yao@codesourcery.com>
2252
2253 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2254 if traceframe changed.
2255 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2256 "trace-find".
2257 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2258 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2259 'traceframe_changed'.
2260 (mi_traceframe_changed): New.
2261 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2262 New field.
2263 * NEWS: Mention the new MI notification.
2264
2265 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2266
2267 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2268
2269 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2270
2271 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2272 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2273 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2274 Extend code also for PaX support. Convert all gdb_assert to warning
2275 calls.
2276
2277 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2278
2279 Implement auto-load user conveniences suggested by Doug Evans.
2280 * auto-load.c: Include top.h.
2281 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2282 (_initialize_auto_load): New variable scripts_directory_help. Mention
2283 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2284 scripts-directory. Document in online help one can use also files for
2285 set auto-load safe-path.
2286 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2287 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2288
2289 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2290
2291 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2292 of LEN.
2293
2294 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2295
2296 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2297 ELTLEN and use TYPE_LENGTH directly.
2298 (m2_val_print): Likewise.
2299 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2300 variable LEN and use TYPE_LENGTH directly.
2301 (m68k_svr4_store_return_value): Likewise.
2302 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2303 ARGLEN and use TYPE_LENGTH directly.
2304 (mips_o64_push_dummy_call): Likewise.
2305 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2306 variable LENGTH and use TYPE_LENGTH directly.
2307 (s390_function_arg_float): Likewise.
2308 (s390_function_arg_integer): Likewise.
2309 (s390_push_dummy_call): Likewise.
2310 (s390_return_value_convention): Likewise.
2311 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2312 TYPE_LENGTH directly.
2313
2314 2012-09-17 Yao Qi <yao@codesourcery.com>
2315
2316 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2317 Update comment to add_setshow_integer_cmd.
2318 * cli/cli-setshow.c (do_set_command): Handle case
2319 'var_zuinteger_unlimited'.
2320 (do_show_command): Likewise.
2321 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2322 for command 'remotetimeout'.
2323 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2324 to var_integer.
2325 * source.c (_initialize_source): Call
2326 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2327
2328 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2329
2330 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2331 variable LEN.
2332
2333 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2334
2335 PR 14119
2336 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2337 (frame_pop): Drop also TAILCALL_FRAME frames.
2338 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2339
2340 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2341 Pedro Alves <palves@redhat.com>
2342
2343 PR 14548
2344 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2345 function start if we are already at function start. Both for
2346 reverse-next and for reverse-step into function without line number
2347 info.
2348
2349 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2350
2351 Code cleanup - rename 'inline' depth to 'artificial' depth.
2352 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2353 frame_id_artificial_p, extend the comment.
2354 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2355 * frame.c (fprint_frame_id): Rename at a user, change debug output
2356 text to "artificial=".
2357 (skip_inlined_frames): Rename to ...
2358 (skip_artificial_frames): ... here. Extend the comment.
2359 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2360 (frame_id_inlined_p): Rename to ...
2361 (frame_id_artificial_p): ... here. Rename at a user.
2362 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2363 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2364 at a user.
2365 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2366 Extend the comment.
2367 (frame_id_inlined_p): Rename to ...
2368 (frame_id_artificial_p): ... here.
2369 * inline-frame.c (inline_frame_this_id): Rename at a user.
2370
2371 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2372
2373 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2374 vector variables using vector_size syntax rather than array
2375 syntax.
2376
2377 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2378
2379 * valarith.c (value_concat): Replace unsafe ALLOCA with
2380 XMALLOC/XFREE.
2381
2382 2012-09-14 Pedro Alves <palves@redhat.com>
2383
2384 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2385
2386 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2387
2388 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2389 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2390 data-directory as appropriate.
2391
2392 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2393
2394 * printcmd.c (ui_printf): Eliminate single-use variable
2395 PARAM_LEN.
2396
2397 2012-09-14 Yao Qi <yao@codesourcery.com>
2398 Pedro Alves <palves@redhat.com>
2399
2400 * valops.c (value_assign): Move observer_notify_target_changed
2401 below to replace reinit_frame_cache.
2402
2403 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2404
2405 Refactor Python "gdb" module into a proper Python package, by
2406 introducing a new "_gdb" module for code implemented in C, and
2407 using reload/__import__ instead of exec.
2408 * python/lib/gdb/__init__.py: Import * from _gdb.
2409 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2410 prompt_hook, sys.argv): Moved from finish_python_initialization.
2411 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2412 (packages, auto_load_packages): New list and function replacing
2413 module_dict and auto-loading code, using __file__ instead of
2414 gdb.PYTHONDIR and reload/__import__ instead of exec.
2415 (GdbSetPythonDirectory): Replacing function of the same name
2416 from finish_python_initialization, using reload/__import__ instead
2417 of exec, as well as call auto_load_packages.
2418 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2419 gdb_python_module and not gdb_module.
2420 * python/python-internal.h (gdb_python_module): Declare.
2421 * python/python.c (gdb_python_module): New global.
2422 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2423 (_initialize_python): Rename gdb module to _gdb.
2424 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2425 (finish_python_initialization): Move Python code to
2426 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2427 __main__.
2428
2429 2012-09-13 Pedro Alves <palves@redhat.com>
2430
2431 * Makefile.in (COMMON_OBS): Add registry.o.
2432 * registry.c: New file.
2433 * registry.h (struct registry_container): Declare.
2434 (registry_data_callback): New typedef.
2435 (struct registry_data, struct registry_data_registration, struct
2436 registry_data_registry): New type.
2437 (register_data_with_cleanup, registry_alloc_data)
2438 (registry_callback_adaptor, registry_clear_data)
2439 (registry_container_free_data, registry_set_data, registry_data):
2440 Declare.
2441 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2442 the new common structures and functions.
2443 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2444 callback typedefs.
2445
2446 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2447
2448 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2449 there is an error inserting hardware breakpoints and use the
2450 error message from the target.
2451
2452 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2453 Catch this exception and print the error message contained within.
2454 Do not print the default hardware error breakpoint message in this
2455 case.
2456
2457 2012-09-12 Doug Evans <dje@google.com>
2458
2459 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2460 cu == NULL.
2461
2462 2012-09-11 Doug Evans <dje@google.com>
2463
2464 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2465 .gdb_index symbol attributes if there are none.
2466
2467 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2468
2469 * symtab.h (struct minimal_symbol) [has_size]: New field.
2470 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2471 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2472 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2473 minimal symbols if the symbol's size is actually known.
2474 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2475 of msymbol's size field. Add comment.
2476 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2477 SET_MSYMBOL_SIZE to set the minimal symbol size.
2478
2479 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2480
2481 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2482 minimal_symbol struct object, rather than setting some of its
2483 fields one by one.
2484
2485 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2486
2487 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2488 passed_a_ptr flag when displaying typedef types.
2489
2490 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2491
2492 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2493 the optimized_out flag is preserved.
2494
2495 2012-09-10 Anthony Green <green@moxielogic.com>
2496
2497 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2498 prologue changes in GCC.
2499
2500 2012-09-10 Keith Seitz <keiths@redhat.com>
2501
2502 PR gdb/13483
2503 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2504 (BOOL_CONVERSION_BADNESS): ... this.
2505 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2506 (rank_one_type): Allow all boolean conversions
2507 permitted by the standard.
2508
2509 2012-09-06 Tom Tromey <tromey@redhat.com>
2510
2511 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2512 Don't decref py_objfile.
2513
2514 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2515
2516 Do not enable -lmcheck by default when Python is enabled with
2517 threading support.
2518 * configure.ac: (python_has_threads) New variable, by testing
2519 if WITH_THREAD is defined in Python.h.
2520 Move --enable-lmcheck after --with-python.
2521 Do not enable -lmcheck by default if python_has_threads=yes.
2522 Warn if --enable-lmcheck and python_has_threads=yes.
2523 * configure: Regenerate.
2524
2525 2012-08-31 Yao Qi <yao@codesourcery.com>
2526
2527 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2528 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2529 Update some commands.
2530 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2531 * mi/mi-main.c (mi_cmd_execute): Set
2532 '*parse->cmd->suppress_notification' to 1.
2533
2534 2012-08-31 Yao Qi <yao@codesourcery.com>
2535
2536 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2537
2538 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2539
2540 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2541
2542 2012-08-29 Doug Evans <dje@google.com>
2543
2544 * main.c (print_gdb_help): Remove reference to
2545 --use-deprecated-index-sections.
2546
2547 2012-08-28 Yao Qi <yao@codesourcery.com>
2548
2549 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2550 (init_cmds): Call add_setshow_uinteger_cmd for command
2551 'max-user-call-depth'.
2552 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2553 declaration of 'max_user_call_depth'.
2554 * frame.c (backtrace_limit): Add 'unsigned'.
2555 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2556 'limit'.
2557 * remote.c (remoteaddresssize): Add 'unsigned'.
2558 (remote_address_masked): Change local var 'address_size' to
2559 'unsigned'.
2560 (_initialize_remote): Call add_setshow_uinteger_cmd for
2561 'remoteaddresssize'.
2562 * top.c (history_size): Add 'unsigned'.
2563 (show_commands): Change local variables to 'unsigned'.
2564 (set_history_size_command): Don't check history_size is negative.
2565 Adjust the condition to call unstifle_history and set history_size
2566 to UNIT_MAX.
2567
2568 2012-08-28 Pedro Alves <palves@redhat.com>
2569
2570 PR gdb/14428
2571
2572 * infcmd.c (default_print_one_register_info): New, factored out
2573 from default_print_registers_info.
2574 (default_print_registers_info): Use it. Mark value unavailable if
2575 necessary.
2576 (registers_info): Print user registers with
2577 default_print_one_register_info.
2578
2579 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2580
2581 PR tui/14486
2582 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2583 is not NULL before referencing it.
2584
2585 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2586
2587 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2588 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2589 original PC for it.
2590
2591 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2592 Jan Kratochvil <jan.kratochvil@redhat.com>
2593
2594 * auto-load.c (auto_load_objfile_script): Rename to ...
2595 (auto_load_objfile_script_1): ... here, change variable realname to
2596 parameter realname, document it, add return value, add variable retval.
2597 (auto_load_objfile_script): New function.
2598
2599 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2600
2601 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2602 followed by a whitespace.
2603
2604 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2605
2606 PR gdb/14494.
2607 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2608 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2609 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2610 here.
2611
2612 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2613
2614 * memattr.c (create_mem_region): Fix memory region overlapping
2615 checking.
2616
2617 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2618
2619 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2620 with xmalloc/cleanup.
2621 * mt-tdep.c (mt_push_dummy_call): Likewise.
2622 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2623 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2624
2625 2012-08-24 Yao Qi <yao@codesourcery.com>
2626
2627 * jv-exp.y (push_expression_name): Add "." at the end of error
2628 message.
2629
2630 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2631
2632 Document how to return from "python-interactive" to GDB.
2633 * python/python.c (_initialize_python): Update documentation.
2634
2635 2012-08-23 Pedro Alves <palves@redhat.com>
2636
2637 * infrun.c (_initialize_infrun) <handle command help text>:
2638 Mention that multiple signals are supported.
2639
2640 2012-08-23 Pedro Alves <palves@redhat.com>
2641
2642 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2643 string.
2644
2645 2012-08-23 Yao Qi <yao@codesourcery.com>
2646
2647 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2648 (tfind_1): Don't call registers_changed, set_traceframe_num,
2649 and clear_traceframe_info.
2650 Call set_current_traceframe.
2651 (set_current_traceframe): call set_traceframe_num.
2652
2653 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2654
2655 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2656 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2657
2658 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2659
2660 Enable readline in Python in a GDB-specific way and block the
2661 standard Python readline module to prevent conflicts with GDB.
2662 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2663 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2664 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2665 * python/py-gdb-readline.c: New file.
2666 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2667 prototype.
2668 * python/python.c (_initialize_python): Call
2669 gdbpy_initialize_gdb_readline.
2670
2671 2012-08-22 Keith Seitz <keiths@redhat.com>
2672
2673 * defs.h: Include build-gnulib/config.h
2674
2675 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2676
2677 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2678 and blx pc.
2679
2680 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2681
2682 Add a new "python-interactive" command that starts a standard
2683 Python interactive prompt with "pi" as alias, and add "py" as
2684 an alias to "python".
2685 * NEWS: Mention the new commands.
2686 * python/python.c (eval_python_command): New function.
2687 (python_interactive_command): For "python-interactive" with
2688 arguments, call eval_python_command. For "python-interactive"
2689 without arguments, call PyRun_InteractiveLoop.
2690 (_initialize_python): Add "python-interactive" command with
2691 "pi" as alias, and add "py" as an alias to "python".
2692
2693 2012-08-22 Tom Tromey <tromey@redhat.com>
2694
2695 * defs.h (quit_flag): Don't declare.
2696 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2697 (QUIT): Use new functions.
2698 * event-top.c (command_handler): Use clear_quit_flag.
2699 (handle_sigint): Use set_quit_flag.
2700 (async_request_quit): Use check_quit_flag. Don't check
2701 immediate_quit.
2702 * exceptions.c (throw_exception): Use clear_quit_flag.
2703 * main.c (captured_main): Use clear_quit_flag.
2704 * python/python.c (clear_quit_flag, set_quit_flag)
2705 (check_quit_flag): New functions.
2706 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2707 clear_quit_flag.
2708 * remote.c (remote_wait_as): Use check_quit_flag,
2709 clear_quit_flag.
2710 (remote_start_remote): Call QUIT.
2711 * symfile.c (load_progress): Use check_quit_flag.
2712 * top.c (command_loop): Use clear_quit_flag.
2713 (command_line_input): Call QUIT.
2714 * utils.c (quit_flag): Conditionally define.
2715 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2716 functions.
2717 (prompt_for_continue): Call QUIT. Use quit, not
2718 async_request_quit.
2719 * remote-mips.c (mips_expect_timeout): Call QUIT.
2720 * monitor.c (monitor_expect): Call QUIT.
2721
2722 2012-08-22 Tom Tromey <tromey@redhat.com>
2723
2724 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2725 (async_init_signals): Update.
2726 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2727 (SIGWINCH_HANDLER_BODY): Remove.
2728
2729 2012-08-22 Tom Tromey <tromey@redhat.com>
2730
2731 * jit.c (jit_object_close_impl): Don't malloc the objfile
2732 name.
2733 * objfiles.c (allocate_objfile): Don't malloc the objfile
2734 name.
2735 (free_objfile): Don't free the objfile name.
2736 * objfiles.h (struct objfile) <name>: Update comment.
2737 * symfile.c (reread_symbols): Fix reference counting. Don't
2738 malloc objfile name.
2739
2740 2012-08-22 Tom Tromey <tromey@redhat.com>
2741
2742 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2743 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2744 (symfile_bfd_open): Likewise.
2745 (generic_load): Likewise.
2746 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2747 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2748 gdb_bfd_open.
2749 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2750 Use gdb_bfd_open.
2751 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2752 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2753 (pmon_load_fast): Likewise.
2754 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2755 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2756 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2757 (macho_check_dsym): Likewise.
2758 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2759 (m32r_upload_command): Likewise.
2760 * gdb_bfd.h (gdb_bfd_cache): Declare.
2761 * gdb_bfd.c (struct gdb_bfd_data): New.
2762 (gdb_bfd_cache): New global.
2763 (struct gdb_bfd_cache_search): New.
2764 (hash_bfd): New function.
2765 (eq_bfd): Likewise.
2766 (gdb_bfd_open): Likewise.
2767 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2768 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2769 gdb_bfd_data.
2770 * exec.c (exec_file_attach): Use gdb_bfd_open.
2771 * dsrec.c (load_srec): Use gdb_bfd_open.
2772
2773 2012-08-22 Tom Tromey <tromey@redhat.com>
2774
2775 * dwarf2read.c (macro_start_file): Update.
2776 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2777 (free_objfile_per_bfd_storage): Destroy macro_cache.
2778 (allocate_objfile, free_objfile): Update.
2779 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2780 New field.
2781 (struct objfile) <macro_cache>: Remove.
2782 * symfile.c (reread_symbols): Update.
2783 * symmisc.c (print_symbol_bcache_statistics): Update.
2784 (print_objfile_statistics): Update.
2785
2786 2012-08-22 Tom Tromey <tromey@redhat.com>
2787
2788 * elfread.c (elf_symtab_read): Update.
2789 * objfiles.c (objfiles_bfd_data): New global.
2790 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2791 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2792 (allocate_objfile, free_objfile): Update.
2793 (_initialize_objfiles): Initialize objfiles_bfd_data.
2794 * objfiles.h (struct objfile_per_bfd_storage): New.
2795 (struct objfile) <per_bfd>: New field.
2796 <filename_cache>: Remove.
2797 (set_objfile_per_bfd): Declare.
2798 * symfile.c (reread_symbols): Update. Call
2799 set_objfile_per_bfd.
2800 (allocate_symtab): Update.
2801 * symmisc.c (print_symbol_bcache_statistics): Update.
2802 (print_objfile_statistics): Print the size of the BFD obstack.
2803
2804 2012-08-22 Tom Tromey <tromey@redhat.com>
2805
2806 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2807 * gdb_bfd.c: Use DEFINE_REGISTRY.
2808 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2809 (gdb_bfd_ref): Call bfd_alloc_data.
2810 (gdb_bfd_unref): Call bfd_free_data.
2811
2812 2012-08-22 Tom Tromey <tromey@redhat.com>
2813
2814 * registry.h (struct registry_fields): New.
2815 (REGISTRY_FIELDS): Redefine.
2816 (REGISTRY_ACCESS_FIELD): New macro.
2817 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2818 functions.
2819
2820 2012-08-22 Tom Tromey <tromey@redhat.com>
2821
2822 * auto-load.c (_initialize_auto_load): Update.
2823 * solib-svr4.c (_initialize_svr4_solib): Update
2824 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2825 * solib-darwin.c (_initialize_darwin_solib): Update.
2826 * registry.h: New file.
2827 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2828 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2829 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2830 (register_program_space_data_with_cleanup)
2831 (register_program_space_data, program_space_alloc_data)
2832 (clear_program_space_data, set_program_space_data)
2833 (program_space_data): Don't declare.
2834 * progspace.c: Use DEFINE_REGISTRY.
2835 (struct program_space_data, struct
2836 program_space_data_registration, struct
2837 program_space_data_registry, program_space_data_registry)
2838 (register_program_space_data_with_cleanup)
2839 (register_program_space_data, program_space_alloc_data)
2840 (program_space_free_data, clear_program_space_data)
2841 (set_program_space_data, program_space_data): Remove.
2842 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2843 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2844 (register_objfile_data_with_cleanup, register_objfile_data)
2845 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2846 declare.
2847 * objfiles.c: Use DEFINE_REGISTRY.
2848 (struct objfile_data, struct objfile_data_registration, struct
2849 objfile_data_registry, objfile_data_registry)
2850 (register_objfile_data_with_cleanup, register_objfile_data)
2851 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2852 (set_objfile_data, objfile_data): Remove.
2853 (_initialize_objfiles): Update.
2854 * jit.c (_initialize_jit): Update.
2855 * inflow.c (_initialize_inflow): Update.
2856 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2857 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2858 (register_inferior_data_with_cleanup, register_inferior_data)
2859 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2860 declare.
2861 * inferior.c: Use DEFINE_REGISTRY.
2862 (struct inferior_data, struct inferior_data_registration, struct
2863 inferior_data_registry, inferior_data_registry)
2864 (register_inferior_data_with_cleanup, register_inferior_data)
2865 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2866 (set_inferior_data, inferior_data): Remove.
2867 * auxv.c (_initialize_auxv): Update.
2868 * ada-lang.c (_initialize_ada_language): Update.
2869 * breakpoint.c (_initialize_breakpoint): Update.
2870 * i386-nat.c (i386_use_watchpoints): Update.
2871
2872 2012-08-22 Tom Tromey <tromey@redhat.com>
2873
2874 * exec.c (exec_close, exec_file_attach): Update.
2875 (add_to_section_table): Initialize 'key' field.
2876 (add_target_sections, remove_target_sections): Add 'key' argument.
2877 * exec.h (add_target_sections, remove_target_sections): Add
2878 'key' argument.
2879 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2880 (reload_shared_libraries_1): Update.
2881 * target.h (struct target_section) <key>: New field.
2882
2883 2012-08-22 Tom Tromey <tromey@redhat.com>
2884
2885 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2886
2887 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2888
2889 * symfile.c (allocate_symtab): Use host_address_to_string
2890 function instead of cast of pointer to long which is not
2891 compatible with x86_64-w64-mingw32 build.
2892
2893 2012-08-19 Andrew Pinski <apinski@cavium.com>
2894
2895 * mips-tdep.c (is_octeon): New function.
2896 (is_octeon_bbit_op): New function.
2897 (mips32_next_pc): Handle Octeon's bbit instructions.
2898 (mips32_instruction_has_delay_slot): Likewise.
2899
2900 2012-08-19 Andrew Pinski <apinski@cavium.com>
2901
2902 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2903 before the function.
2904
2905 2012-08-19 Andrew Pinski <apinski@cavium.com>
2906
2907 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2908
2909 2012-08-19 Keith Seitz <keiths@redhat.com>
2910
2911 PR c++/14365
2912 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2913 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2914
2915 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2916
2917 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2918 The typo broke "make TAGS".
2919
2920 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2921
2922 GDB 7.5 released.
2923
2924 2012-08-17 Keith Seitz <keiths@redhat.com>
2925
2926 PR c++/13356
2927 * gdbtypes.c (strict_type_checking): New variable.
2928 (show_strict_type_checking): New function.
2929 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2930 if strict type checking is disabled.
2931 (_initialize_gdbtypes): Add "check type" subcommand.
2932 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2933
2934 2012-08-17 Keith Seitz <keiths@redhat.com>
2935
2936 * language.h (type_mode): Remove.
2937 (type_check): Remove.
2938 (struct language_defn): Remove la_type_check.
2939 (STRICT_TYPE): Remove unused macro.
2940 (type_error): Remove.
2941 * language.c (set_type_range_case): Renamed to ...
2942 (set_range_case): ... this. Update all callers.
2943 Remove type_mode/type_check.
2944 (type_mode): Remove.
2945 (type_check): Remove.
2946 (show_type_command): Remove.
2947 (set_type_command): Remove.
2948 (language_info): Remove type checking output.
2949 (type_error): Remove unused function.
2950 (range_error): Update comment.
2951 (unknown_language_defn): Remove la_type_check.
2952 (auto_language_defn): Likewise.
2953 (local_language_defn): Likewise.
2954 (_initialize_language): Remove "check type" subcommand.
2955 * ada-lang.c (ada_language_defn): Remove la_type_check.
2956 * c-lang.c (c_language_defn): Likewise.
2957 (cplus_language_defn): Likewise.
2958 (asm_language_defn): Likewise.
2959 (minimal_language_defn): Likewise.
2960 * d-lang.c (d_language_defn): Likewise.
2961 * f-lang.c (f_language_defn): Likewise.
2962 * go-lang.c (go_language_defn): Likewise.
2963 * jv-lang.c (java_language_defn): Likewise.
2964 * m2-lang.c (m2_language_defn): Likewise.
2965 * objc-lang.c (objc_language_defn): Likewise.
2966 * opencl-lang.c (opencl_language_defn): Likewise.
2967 * p-lang.c (pascal_language_defn): Likewise.
2968
2969 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2970
2971 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2972
2973 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2974
2975 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2976 New function.
2977 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2978 using the regache. Use ia64_hpux_get_register_from_save_state_t
2979 to access the bsp and bspstore registers if not.
2980
2981 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2982
2983 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2984 * breakpoint.c (detach_breakpoints): Change pid parameter into
2985 a ptid. Adjust code accordingly.
2986 * infrun.c (handle_inferior_event): Delete variable child_pid.
2987 Update call to detach_breakpoints to pass the child ptid for
2988 fork events.
2989 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2990 assert that inferior_ptid's lwp is zero.
2991 (linux_handle_extended_wait): Update call to detach_breakpoints.
2992 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2993 detach_breakpoints.
2994
2995 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2996
2997 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2998 parent, only call detach_breakpoints if tts.tts_event ==
2999 TTEVT_VFORK.
3000
3001 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3002
3003 * dwarf2-frame.c (dwarf2_frame_cache): Use
3004 get_frame_address_in_block instead of get_frame_pc as
3005 the bound for executing the frame's FDE.
3006
3007 2012-08-16 Yao Qi <yao@codesourcery.com>
3008
3009 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3010 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3011 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3012 (c_type_print_varspec_suffix): Likewise.
3013 * eval.c (evaluate_subexp_standard): Likewise.
3014 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3015 (f_type_print_varspec_suffix): Likewise.
3016 * gdbtypes.c (is_scalar_type): Likewise.
3017 (recursive_dump_type): Likewise.
3018 * infcall.c (value_arg_coerce): Likewise.
3019 * m2-valprint.c (m2_val_print): Likewise.
3020 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3021 (pascal_type_print_varspec_suffix): Likewise.
3022 (pascal_type_print_base): Likewise.
3023 * p-valprint.c (pascal_val_print): Likewise.
3024 (pascal_val_print): Likewise.
3025 * valops.c (value_slice): Likewise.
3026 * valprint.c (scalar_type_p): Likewise.
3027 * valarith.c (value_bitstring_subscript): Remove.
3028 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3029 Remove comment on TYPE_CODE_BITSTRING.
3030
3031 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3032 TYPE_CODE_BITSTRING.
3033
3034 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3035 slot 0.
3036
3037 2012-08-16 Yao Qi <yao@codesourcery.com>
3038
3039 * tracepoint.c (trace_find_none_command): Remove.
3040 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3041
3042 2012-08-16 Yao Qi <yao@codesourcery.com>
3043
3044 * remote.c (handle_notification): Remove parameter 'length'.
3045 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3046
3047 2012-08-15 Keith Seitz <keiths@redhat.com>
3048
3049 * gdbtypes.c (opaque_type_resolution): Make static.
3050 Add missing comment.
3051 (overload_debug): Add missing comment.
3052 (show_opaque_type_resolution): Likewise.
3053 (show_overload_debug): Likewise.
3054 (print_bit_vector): Remove unnecessary forward declaration.
3055 (print_arg_types): Likewise.
3056 (dump_fn_fieldlists): Likewise.
3057 (print_cplus_stuff): Likewise.
3058
3059 2012-08-15 Tom Tromey <tromey@redhat.com>
3060
3061 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3062 (gdb_bfd_ref): Initialize new field.
3063 (gdb_bfd_unref): Unref the archive BFD.
3064 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3065 parent archive.
3066
3067 2012-08-15 Tom Tromey <tromey@redhat.com>
3068
3069 PR python/14387:
3070 * python/py-bpevent.c (create_breakpoint_event_object): Update
3071 comment.
3072 * python/py-event.c (evpy_add_attribute): Update comment.
3073 * python/py-exitedevent.c (create_exited_event_object): Fix
3074 reference counting and error handling.
3075 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3076 Fix reference counting.
3077 * python/py-signalevent.c (create_signal_event_object): Fix
3078 reference counting and error handling.
3079 * python/py-stopevent.c (emit_stop_event): Fix reference
3080 counting.
3081 * python/py-threadevent.c (get_event_thread): Return a
3082 borrowed reference.
3083 * python/py-type.c (convert_field): Fix reference counting.
3084
3085 2012-08-15 Tom Tromey <tromey@redhat.com>
3086
3087 * dwarf2read.c (dwarf_decode_macro_bytes)
3088 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3089 as hash key.
3090
3091 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3092
3093 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3094 stepi, nexti, finish, next, step, jump, and continue commands.
3095 * infrun.c (_initialize_infrun): Update help text for the handle
3096 command.
3097
3098 2012-08-14 Doug Evans <dje@google.com>
3099
3100 * gdbtypes.c (struct extra): Delete, unused.
3101
3102 * gdbtypes.c: Whitespace cleanup.
3103 (address_space_name_to_int): Remove "extern" from definition.
3104 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3105
3106 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3107 TYPE_POINTER_TYPE (type).
3108
3109 2012-08-14 Gary Benson <gbenson@redhat.com>
3110
3111 * solib-svr4.c (svr4_free_library_list): Use free_so.
3112
3113 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3114
3115 * .gitignore: Add go-exp.c.
3116
3117 2012-08-13 Doug Evans <dje@google.com>
3118
3119 * value.c (show_convenience): Tweak comment.
3120 (_initialize_values): Mention convenience functions in the help text
3121 for "show convenience".
3122
3123 2012-08-13 Yao Qi <yao@codesourcery.com>
3124
3125 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3126 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3127 TERNOP_SLICE_COUNT.
3128 * eval.c (evaluate_subexp_standard): Likewise.
3129 * expprint.c (print_subexp_standard): Likewise.
3130 (dump_subexp_body_standard): Likewise.
3131 * parse.c (operator_length_standard): Likewise.
3132
3133 2012-08-13 Yao Qi <yao@codesourcery.com>
3134
3135 * std-operator.def: Remove OP_BITSTRING.
3136 * breakpoint.c (watchpoint_exp_is_const): Update.
3137 * eval.c (evaluate_subexp_standard): Remove handling to
3138 OP_BITSTRING.
3139 * expprint.c (print_subexp_standard): Likewise.
3140 (dump_subexp_body_standard): Likewise.
3141 * parse.c (operator_length_standard): Likewise.
3142 * valops.c (value_bitstring): Remove.
3143 * value.h: Remove the declaration of 'value_bitstring'.
3144
3145 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3146
3147 * linespec.c (find_methods): Remove unused variables `i1' and
3148 `name_len'.
3149 (decode_line_full): Likewise for `arg_start'.
3150
3151 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3152
3153 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3154 (zlib_decompress_section): Likewise for `section_data'.
3155 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3156
3157 2012-08-10 Doug Evans <dje@google.com>
3158
3159 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3160 * NEWS: Document them.
3161 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3162 function/strfns.py.
3163 * python/py-type.c (typy_array_1): New function.
3164 (typy_array): Call it.
3165 (typy_vector): New function.
3166 (type_object_methods): Add "vector".
3167 * python/lib/gdb/function/__init__.py: New file.
3168 * python/lib/gdb/function/strfns.py: New file.
3169
3170 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3171
3172 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3173 for TYPE_FIELD_BITPOS.
3174 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3175
3176 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3177
3178 PR cli/10436:
3179 * common/vec.h (VEC_merge): Define.
3180 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3181 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3182 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3183 * completer.c: Include gdb_signals.h.
3184 (signal_completer): Define.
3185 * completer.h (signal_completer): Add prototype.
3186 * infcmd.c (_initialize_infcmd): Assign the command
3187 completer for "signal" to handle_completer.
3188 * infrun.c: Include completer.h.
3189 (handle_completer): Define.
3190 (_initialize_infrun): Declare a new local variable c. Store the
3191 result of add_com("handle") to it. Assign the command
3192 completer for "handle" to handle_completer.
3193
3194 2012-08-09 Yao Qi <yao@codesourcery.com>
3195
3196 * cli/cli-decode.c (set_cmd_prefix): New.
3197 (lookup_cmd_for_prefixlist): New.
3198 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3199 of each cmd_list_element in *prefixlist.
3200 (add_setshow_cmd_full): set_cmd_prefix.
3201 (add_alias_cmd): Likewise.
3202 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3203 Declare 'auto_boolean_enums'.
3204 * cli/cli-setshow.c: Include "observer.h".
3205 (notify_command_param_changed_p): New.
3206 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3207 Remove 'static'.
3208 (do_setshow_command): Split it to ...
3209 (do_set_command, do_show_command): ... them. New.
3210 (do_set_command): Call observer_notify_command_param_changed if
3211 notify_command_param_changed_p returns true.
3212 (cmd_show_list): Caller update.
3213 * auto-load.c (set_auto_load_cmd): Likewise.
3214 * remote.c (show_remote_cmd): Likewise.
3215 * cli/cli-setshow.h: Update declarations.
3216 * top.c (execute_command): Call do_set_command and do_show_command.
3217
3218 * NEWS: Mention new MI notification.
3219 * mi/mi-interp.c: Declare mi_command_param_changed.
3220 (mi_interpreter_init): Attach mi_command_param_changed to
3221 observer command_param_changed.
3222 (mi_command_param_changed): New.
3223 Remove mi_suppress_breakpoint_notifications.
3224 Define global variable mi_suppress_notification.
3225 (mi_breakpoint_created): Update.
3226 (mi_breakpoint_deleted): Likewise.
3227 (mi_breakpoint_modified): Likewise.
3228 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3229 'gdb-set' and set mi_suppress_notification.
3230 * mi/mi-main.h: (mi_suppress_notification): New struct.
3231
3232 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3233 Jan Kratochvil <jan.kratochvil@redhat.com>
3234
3235 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3236
3237 2012-08-09 Yao Qi <yao@codesourcery.com>
3238
3239 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3240 (skiplist): Move it to skip.c.
3241 (init_cmd_lists): Remove code setting enablebreaklist and
3242 skiplist to NULL.
3243 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3244 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3245 skiplist.
3246 * gdbcmd.h: Likewise.
3247 * skip.c (_initialize_step_skip): Move 'skiplist' from
3248 cli/cli-cmds.c.
3249
3250 2012-08-09 Yao Qi <yao@codesourcery.com>
3251
3252 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3253 * gnu-nat.c, symfile.c: Likewise.
3254
3255 2012-08-08 Aaron Gamble <agamble@google.com>
3256
3257 * utils.c (prompt_for_continue_wait_time): New static global.
3258 (make_command_stats_cleanup): Initialize it.
3259 (report_command_stats): Subtract time waiting for user.
3260 (prompt_for_continue): Track time waiting for user.
3261 (defaulted_query): Track time waiting for user.
3262
3263 2012-08-08 Doug Evans <dje@google.com>
3264
3265 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3266 UNOP_MEMVAL_TYPE.
3267 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3268 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3269 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3270 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3271 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3272 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3273 elt.
3274 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3275 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3276 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3277 (dump_prefix_expression): Handle OP_TYPE.
3278
3279 2012-08-08 Keith Seitz <keiths@redhat.com>
3280
3281 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3282 addr_start.
3283
3284 2012-08-08 Doug Evans <dje@google.com>
3285
3286 * linux-thread-db.c: #include "gdb_vecs.h".
3287 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3288 updated.
3289 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3290 (thread_db_load_search): Use a vector to iterate over path elements.
3291 Handle text appearing after "$pdir".
3292
3293 * gdb_string.h: Moved to ...
3294 * common/gdb_string.h: ... here.
3295 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3296 gdb_string.h and gdb_assert.h.
3297
3298 2012-08-08 Yao Qi <yao@codesourcery.com>
3299
3300 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3301 (tic6x_value_to_register): Likewise.
3302 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3303 and set_gdbarch_value_to_register.
3304
3305 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3306 Jean-Marc Saffroy <saffroy@gmail.com>
3307
3308 PR 11804
3309 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3310 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3311 * gcore.c (gcore_create_callback): New function comment. Add modified
3312 parameter. Only write modified regions. Set SEC_READONLY exactly
3313 according to MODIFIED.
3314 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3315 the passed modified value to FUNC.
3316 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3317 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3318 first. New variables modified and has_anonymous. Parse the lines of
3319 smaps file. Add the passed MODIFIED value to FUNC.
3320 * procfs.c (find_memory_regions_callback): Add the passed modified
3321 value.
3322
3323 2012-08-06 Tom Tromey <tromey@redhat.com>
3324
3325 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3326 (dwarf2_frame_cache): Use it.
3327 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3328 cache initialization constraint.
3329
3330 2012-08-06 Tom Tromey <tromey@redhat.com>
3331
3332 PR python/14386:
3333 * varobj.c (update_dynamic_varobj_children): Don't call
3334 PyIter_Check.
3335
3336 2012-08-06 Tom Tromey <tromey@redhat.com>
3337
3338 PR cli/14392:
3339 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3340
3341 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3342
3343 * NEWS: New entry for 'cd' default parameters.
3344 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3345
3346 2012-08-03 Tom Tromey <tromey@redhat.com>
3347
3348 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3349 return.
3350
3351 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3352
3353 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3354 to attempting lseek/write.
3355 (inf_child_fileio_pread): Likewise for pread.
3356
3357 2012-08-02 Yao Qi <yao@codesourcery.com>
3358
3359 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3360 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3361 add_setshow_zinteger_cmd.
3362 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3363 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3364 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3365 instead of add_setshow_zinteger_cmd.
3366 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3367 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3368 instead of add_setshow_zinteger_cmd.
3369 * frame.c (frame_debug): Add 'unsigned'.
3370 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3371 add_setshow_zinteger_cmd.
3372 * frame.h: Update the declaration of 'frame_debug'.
3373 * gdbtypes.c (overload_debug): Add 'unsigned'.
3374 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3375 add_setshow_zinteger_cmd.
3376 * inferior.h: Update declaration of 'debug_infrun'.
3377 * infrun.c (debug_infrun): Add 'unsigned'.
3378 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3379 add_setshow_zinteger_cmd.
3380 * jit.c (jit_debug): Add 'unsigned'.
3381 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3382 add_setshow_zinteger_cmd.
3383 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3384 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3385 instead of add_setshow_zinteger_cmd.
3386 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3387 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3388 add_setshow_zinteger_cmd.
3389 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3390 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3391 instead of add_setshow_zinteger_cmd.
3392 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3393 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3394 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3395 intead of add_setshow_zinteger_cmd.
3396 * mips-tdep.c (mips_debug): Add 'unsigned'.
3397 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3398 instead of add_setshow_zinteger_cmd.
3399 * monitor.c (monitor_debug): Add 'unsigned'.
3400 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3401 add_setshow_zinteger_cmd.
3402 * observer.c (observer_debug): Add 'unsigned'.
3403 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3404 add_setshow_zinteger_cmd.
3405 * parse.c (expressiondebug): Add 'unsigned'.
3406 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3407 add_setshow_zinteger_cmd.
3408 * record.c (record_debug): Add 'unsigned'.
3409 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3410 add_setshow_zinteger_cmd.
3411 * record.h: Update the declaration of 'record_debug'.
3412 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3413 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3414 add_setshow_zinteger_cmd.
3415 * serial.c (global_serial_debug_p): Add 'unsigned'.
3416 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3417 add_setshow_zinteger_cmd.
3418 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3419 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3420 add_setshow_zinteger_cmd.
3421 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3422 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3423 add_setshow_zinteger_cmd.
3424 * target.c (targetdebug): Add 'unsigned'.
3425 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3426 add_setshow_zinteger_cmd.
3427 * valops.c (overload_debug): Add 'unsigned'.
3428 * varobj.c (varobjdebug): Add 'unsigned'.
3429 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3430 add_setshow_zinteger_cmd.
3431 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3432 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3433 instead of add_setshow_zinteger_cmd.
3434
3435 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3436 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3437 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3438 instead of add_setshow_zinteger_cmd.
3439 * gdbarch.c, gdbarch.h: Re-generated.
3440
3441 2012-08-02 Yao Qi <yao@codesourcery.com>
3442
3443 * nto-tdep.c: Don't include cli/cli-decode.h and
3444 cli/cli-cmds.h.
3445 (_initialize_nto_tdep): Remove.
3446 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3447 Remove field.
3448 Remove macro nto_internal_debugging.
3449
3450 2012-08-01 Richard Henderson <rth@redhat.com>
3451
3452 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3453 (mep-*-*) [gdb_target_obs]: Likewise.
3454
3455 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3456
3457 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3458 linux_get_siginfo_type.
3459
3460 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3461
3462 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3463 AT_ENTRY_POINT.
3464 (call_function_by_hand) <ON_STACK>: Call write_memory with
3465 gdbarch_breakpoint_from_pc, if possible.
3466 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3467 here.
3468
3469 2012-07-31 Yao Qi <yao@codesourcery.com>
3470
3471 * tracepoint.c: Add 'static' for some variables.
3472
3473 2012-07-31 Yao Qi <yao@codesourcery.com>
3474
3475 * go32-nat.c: Declare _initialize_go32_nat.
3476 * ser-go32.c: Declare _initialize_ser_dos.
3477 * top.c (do_chdir_cleanup): Add 'static'.
3478
3479 2012-07-30 Keith Seitz <keiths@redhat.com>
3480
3481 * linespec.c (linespec_lex_number): A number followed
3482 by quotes is a valid number, too.
3483
3484 2012-07-30 Tom Tromey <tromey@redhat.com>
3485
3486 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3487
3488 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3489
3490 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3491 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3492
3493 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3494
3495 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3496 invalid or reevaluated to prevent prevent references to possibly
3497 delete'd type objects being left in the varobj.
3498
3499 2012-07-27 Tom Tromey <tromey@redhat.com>
3500 Jan Kratochvil <jan.kratochvil@redhat.com>
3501
3502 * copying.awk: Print buffer-read-only and vi ro markers.
3503 * copying.c: Rebuild.
3504 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3505 * gdbarch.c, gdbarch.h: Rebuild.
3506 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3507 buffer-read-only and vi ro markers.
3508 * features/arm-with-iwmmxt.c: Rebuild.
3509 * features/arm-with-m-fpa-layout.c: Rebuild.
3510 * features/arm-with-m-vfp-d16.c: Rebuild.
3511 * features/arm-with-m.c: Rebuild.
3512 * features/arm-with-neon.c: Rebuild.
3513 * features/arm-with-vfpv2.c: Rebuild.
3514 * features/arm-with-vfpv3.c: Rebuild.
3515 * features/i386/amd64-avx-linux.c: Rebuild.
3516 * features/i386/amd64-avx.c: Rebuild.
3517 * features/i386/amd64-linux.c: Rebuild.
3518 * features/i386/amd64.c: Rebuild.
3519 * features/i386/i386-avx-linux.c: Rebuild.
3520 * features/i386/i386-avx.c: Rebuild.
3521 * features/i386/i386-linux.c: Rebuild.
3522 * features/i386/i386-mmx-linux.c: Rebuild.
3523 * features/i386/i386-mmx.c: Rebuild.
3524 * features/i386/i386.c: Rebuild.
3525 * features/i386/x32-avx-linux.c: Rebuild.
3526 * features/i386/x32-avx.c: Rebuild.
3527 * features/i386/x32-linux.c: Rebuild.
3528 * features/i386/x32.c: Rebuild.
3529 * features/mips-dsp-linux.c: Rebuild.
3530 * features/mips-linux.c: Rebuild.
3531 * features/mips64-dsp-linux.c: Rebuild.
3532 * features/mips64-linux.c: Rebuild.
3533 * features/rs6000/powerpc-32.c: Rebuild.
3534 * features/rs6000/powerpc-32l.c: Rebuild.
3535 * features/rs6000/powerpc-403.c: Rebuild.
3536 * features/rs6000/powerpc-403gc.c: Rebuild.
3537 * features/rs6000/powerpc-405.c: Rebuild.
3538 * features/rs6000/powerpc-505.c: Rebuild.
3539 * features/rs6000/powerpc-601.c: Rebuild.
3540 * features/rs6000/powerpc-602.c: Rebuild.
3541 * features/rs6000/powerpc-603.c: Rebuild.
3542 * features/rs6000/powerpc-604.c: Rebuild.
3543 * features/rs6000/powerpc-64.c: Rebuild.
3544 * features/rs6000/powerpc-64l.c: Rebuild.
3545 * features/rs6000/powerpc-7400.c: Rebuild.
3546 * features/rs6000/powerpc-750.c: Rebuild.
3547 * features/rs6000/powerpc-860.c: Rebuild.
3548 * features/rs6000/powerpc-altivec32.c: Rebuild.
3549 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3550 * features/rs6000/powerpc-altivec64.c: Rebuild.
3551 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3552 * features/rs6000/powerpc-cell32l.c: Rebuild.
3553 * features/rs6000/powerpc-cell64l.c: Rebuild.
3554 * features/rs6000/powerpc-e500.c: Rebuild.
3555 * features/rs6000/powerpc-e500l.c: Rebuild.
3556 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3557 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3558 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3559 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3560 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3561 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3562 * features/rs6000/powerpc-vsx32.c: Rebuild.
3563 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3564 * features/rs6000/powerpc-vsx64.c: Rebuild.
3565 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3566 * features/rs6000/rs6000.c: Rebuild.
3567 * features/s390-linux32.c: Rebuild.
3568 * features/s390-linux32v1.c: Rebuild.
3569 * features/s390-linux32v2.c: Rebuild.
3570 * features/s390-linux64.c: Rebuild.
3571 * features/s390-linux64v1.c: Rebuild.
3572 * features/s390-linux64v2.c: Rebuild.
3573 * features/s390x-linux64.c: Rebuild.
3574 * features/s390x-linux64v1.c: Rebuild.
3575 * features/s390x-linux64v2.c: Rebuild.
3576 * features/tic6x-c62x-linux.c: Rebuild.
3577 * features/tic6x-c62x.c: Rebuild.
3578 * features/tic6x-c64x-linux.c: Rebuild.
3579 * features/tic6x-c64x.c: Rebuild.
3580 * features/tic6x-c64xp-linux.c: Rebuild.
3581 * features/tic6x-c64xp.c: Rebuild.
3582
3583 2012-07-27 Tom Tromey <tromey@redhat.com>
3584
3585 * c-exp.y (classify_name): Avoid assignment in condition.
3586
3587 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3588
3589 * amd64-windows-tdep.c: Include "frame.h".
3590 (amd64_windows_skip_trampoline_code): New function.
3591 (amd64_windows_init_abi): Add trampoline registration.
3592
3593 2012-07-27 Yao Qi <yao@codesourcery.com>
3594
3595 * tracepoint.c (cur_traceframe_number): Remove.
3596 (set_tfile_traceframe): Remove.
3597 (tfile_trace_find, tfile_fetch_registers): Update callers.
3598 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3599 (tfile_open, tfile_trace_find): Likewise.
3600
3601 2012-07-27 Yao Qi <yao@codesourcery.com>
3602
3603 * thread.c (switch_to_thread): Don't call registers_changed.
3604
3605 2012-07-26 Tom Tromey <tromey@redhat.com>
3606
3607 * Makefile.in (SFILES): Remove objc-exp.y.
3608 (YYFILES): Remove objc-exp.c.
3609 (YYOBJ): Remove objc-exp.o.
3610 (local-maintainer-clean): Don't mention objc-exp.c.
3611 * c-exp.y: Include objc-lang.h.
3612 (%union) <class>: New field.
3613 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3614 (exp): Clone subscript production for OBJC_LBRAC. Add various
3615 Objective C productions.
3616 (msglist, msgarglist, msgarg): New productions.
3617 (array_mod, func_mod, operator): Clone productions for
3618 OBJC_LBRAC.
3619 (parse_string_or_char): Handle '@' strings.
3620 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3621 (classify_name): Check la_name_of_this. Recognize ObjC class
3622 names.
3623 * objc-exp.y: Remove.
3624 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3625 * objc-lang.h (objc_parse, objc_error): Don't declare.
3626
3627 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3628
3629 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3630
3631 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3632
3633 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3634 and decrement.
3635
3636 2012-07-26 Tom Tromey <tromey@redhat.com>
3637
3638 * copying.c: Rebuild.
3639 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3640 'no_class'.
3641
3642 2012-07-26 Tom Tromey <tromey@redhat.com>
3643
3644 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3645 immediate_quit.
3646 (print_objfile_statistics): Likewise.
3647 (maintenance_print_symbols): Likewise.
3648 (maintenance_print_msymbols): Likewise.
3649 (maintenance_print_objfiles): Likewise.
3650 * psymtab.c (print_partial_symbols): Call QUIT.
3651 (maintenance_print_psymbols): Likewise. Don't modify
3652 immediate_quit.
3653 * copying.c (show_copying_command): Don't modify immediate_quit.
3654 (show_warranty_command): Likewise.
3655 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3656
3657 2012-07-26 Keith Seitz <keiths@redhat.com>
3658
3659 * linespec.c (linespec_lexer_lex_number): The input
3660 is also a valid number if the next character is a comma
3661 or colon.
3662
3663 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3664
3665 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3666 configure options.
3667
3668 2012-07-26 Tristan Gingold <gingold@adacore.com>
3669
3670 * machoread.c: Include gdb_bfd.h.
3671
3672 2012-07-26 Tristan Gingold <gingold@adacore.com>
3673
3674 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3675 offset.
3676
3677 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3678
3679 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3680 SIZE to size_t.
3681 (dwarf2_evaluate_loc_desc): Likewise.
3682 (dwarf2_loc_desc_needs_frame): Likewise.
3683 (locexpr_describe_location_1): Likewise.
3684 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3685 size_t.
3686 (struct dwarf2_loclist_baton): Likewise.
3687 * dwarf2read.c (struct dwarf_block): Likewise.
3688 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3689 (decode_locdesc): Expand SIZE and I to size_t.
3690
3691 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3692
3693 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3694
3695 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3696
3697 * doublest.c (convert_doublest_to_floatformat): If the exponent
3698 is too small, treat the value as zero. If the exponent is too
3699 large, treat the value as infinity.
3700
3701 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3702
3703 * configure.ac: Add --enable-lmcheck configure option.
3704 * configure: Regenerate.
3705
3706 2012-07-25 Tom Tromey <tromey@redhat.com>
3707
3708 * NEWS: Mention maint info bfds.
3709 * gdb_bfd.c (all_bfds): New global.
3710 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3711 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3712 New functions.
3713
3714 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3715
3716 * configure.tgt: Add v850*-*-rtems*.
3717
3718 2012-07-25 Tom Tromey <tromey@redhat.com>
3719
3720 * macrotab.c (macro_bcache_str): Remove cast.
3721
3722 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3723
3724 * linespec.c (linespec_lexer_lex_number): Update comments,
3725 change the return and add check to make sure the input is
3726 the decimal numbers.
3727 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3728 false, call linespec_lexer_lex_string.
3729
3730 2012-07-24 Tom Tromey <tromey@redhat.com>
3731
3732 * symfile.c (symbol_file_add): Don't open BFD twice.
3733
3734 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3735
3736 * breakpoint.c (create_breakpoint): Store condition for pending
3737 breakpoints.
3738
3739 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3740
3741 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3742 (m68k_return_value): Handle complex types like structures.
3743 (m68k_svr4_return_value): Likewise.
3744
3745 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3746
3747 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3748 parameters to bfd_get_section_name.
3749
3750 2012-07-24 Yao Qi <yao@codesourcery.com>
3751
3752 * cli/cli-setshow.c: Handle case 'var_uinteger'
3753 and 'var_zuninteger' together. Handle case 'var_integer' and
3754 'var_zinteger' together.
3755
3756 2012-07-23 Keith Seitz <keiths@redhat.com>
3757
3758 * linespec.c (convert_linespec_to_sal): Don't add
3759 any symbols to the result vector if symbol_to_sal
3760 returns zero.
3761
3762 2012-07-23 Keith Seitz <keiths@redhat.com>
3763
3764 * linespec.c (decode_objc): Record the function name
3765 in the linespec.
3766
3767 2012-07-23 Tom Tromey <tromey@redhat.com>
3768
3769 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3770 counting.
3771 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3772 (map_vmap): Acquire a reference to the BFD.
3773
3774 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3775
3776 * p-valprint.c (pascal_object_print_value): Replace potentially
3777 unsafe alloca with xmalloc/xfree.
3778 * valops.c (search_struct_method): Likewise.
3779
3780 2012-07-23 Tom Tromey <tromey@redhat.com>
3781
3782 * solib-svr4.c (enable_break): Update.
3783 * bfd-target.h (target_bfd_reopen): Update documentation.
3784
3785 2012-07-23 Tom Tromey <tromey@redhat.com>
3786
3787 * symfile.c (separate_debug_file_exists): Update.
3788 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3789 (reread_symbols): Update.
3790 * elfread.c (build_id_verify): Update.
3791 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3792 bfd_open_maybe_remote.
3793
3794 2012-07-23 Tom Tromey <tromey@redhat.com>
3795
3796 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3797
3798 2012-07-23 Tom Tromey <tromey@redhat.com>
3799
3800 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3801 and 'abfd'.
3802 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3803 and 'abfd'.
3804 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3805 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3806 'abfd'.
3807 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3808 * objfiles.c (allocate_objfile): Acquire a new reference.
3809 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3810 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3811 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3812 a cleanup for 'nbfd'.
3813 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3814 for 'nbfd'.
3815 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3816 make a cleanup for 'abfd'.
3817 (symbol_file_add): Make a BFD cleanup.
3818
3819 2012-07-23 Tom Tromey <tromey@redhat.com>
3820
3821 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3822 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3823 * corelow.c (core_open): Use gdb_bfd_fopen.
3824 * dsrec.c (load_srec): Use gdb_bfd_openr.
3825 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3826 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3827 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3828 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3829 (gdb_bfd_fdopenr): New functions.
3830 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3831 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3832 (gdb_bfd_fdopenr): Declare.
3833 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3834 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3835 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3836 gdb_bfd_openr_next_archived_file.
3837 (macho_check_dsym): Use gdb_bfd_openr.
3838 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3839 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3840 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3841 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3842 gdb_bfd_openr.
3843 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3844 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3845 gdb_bfd_openr_next_archived_file.
3846 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3847 Use gdb_bfd_openr.
3848 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3849 gdb_bfd_openr.
3850 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3851 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3852 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3853 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3854 (symfile_bfd_open): Use gdb_bfd_fopen.
3855 (generic_load): Use gdb_bfd_openr.
3856 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3857
3858 2012-07-23 Tom Tromey <tromey@redhat.com>
3859
3860 * bfd-target.c (target_bfd_reopen): Update.
3861 * cli/cli-dump.c (bfd_openr_with_cleanup)
3862 (bfd_openw_with_cleanup): Update.
3863 * corelow.c (core_open): Update.
3864 * dsrec.c (load_srec): Update.
3865 * exec.c (exec_file_attach): Update.
3866 * gcore.c (create_gcore_bfd): Update.
3867 * gdb_bfd.c (gdb_bfd_ref): Return void.
3868 (gdb_bfd_open): Update.
3869 * gdb_bfd.h (gdb_bfd_ref): Return void.
3870 Update comments.
3871 * jit.c (jit_bfd_try_read_symtab): Update.
3872 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3873 * machoread.c (macho_symfile_read_all_oso): Update.
3874 (macho_check_dsym): Update.
3875 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3876 * remote-m32r-sdi.c (m32r_load): Update.
3877 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3878 * rs6000-nat.c (add_vmap): Update.
3879 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3880 Update.
3881 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3882 * solib-spu.c (spu_bfd_open): Update.
3883 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3884 * spu-linux-nat.c (spu_bfd_open): Update.
3885 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3886 (generic_load): Update.
3887 * windows-nat.c (windows_make_so): Update.
3888
3889 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3890
3891 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3892
3893 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3894
3895 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3896 SIGTRAMP_FRAME unwinding.
3897
3898 2012-07-20 Doug Evans <dje@google.com>
3899
3900 * NEWS: Document new options "set/show use-deprecated-index-sections",
3901 and delete reference to --use-deprecated-index-sections.
3902 * symfile.h (use_deprecated_index_sections): Delete.
3903 * dwarf2read.c (use_deprecated_index_sections): Make static.
3904 (read_index_from_section): Update wording of how to load
3905 deprecated index sections.
3906 (_initialize_dwarf2_read): New options
3907 "set/show use-deprecated-index-sections".
3908 * main.c (captured_main): Delete --use-deprecated-index-sections.
3909
3910 2012-07-20 Pedro Alves <palves@redhat.com>
3911
3912 PR threads/11692
3913 PR gdb/12203
3914
3915 * infrun.c (handle_inferior_event) <new thread>: Don't special
3916 case minus_one_ptid.
3917 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3918 * linux-thread-db.c (thread_get_info_callback): Don't return early
3919 if the thread is zombie.
3920 (thread_from_lwp): Change return type to void. Rewrite stale
3921 comment.
3922 (attach_thread): Don't return early if the thread is zombie,
3923 instead set its "dying" flag.
3924 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3925 (find_new_threads_callback): Don't return early if the thread is
3926 zombie.
3927
3928 2012-07-20 Pedro Alves <palves@redhat.com>
3929
3930 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3931 * target.c (target_wait): Likewise.
3932 (str_comma_list_concat_elem, do_option, target_options_to_string):
3933 New functions.
3934 * target.h (target_options_to_string): Declare.
3935
3936 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3937 Tom Tromey <tromey@redhat.com>
3938
3939 * dwarf2read.c (dwarf_decode_macros)
3940 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3941 DW_MACRO_GNU_transparent_include_alt>: New cases.
3942 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3943 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3944
3945 2012-07-20 Tom Tromey <tromey@redhat.com>
3946
3947 * dwarf2read.c (try_open_dwo_file): Don't call
3948 gdb_bfd_stash_filename.
3949
3950 2012-07-20 Pedro Alves <palves@redhat.com>
3951
3952 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3953 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3954 (i386_process_record): Tweak description comments.
3955
3956 2012-07-20 Pedro Alves <palves@redhat.com>
3957
3958 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3959 (i386_process_record): Use record_read_memory.
3960 * record.c (record_read_memory): New function.
3961 (record_arch_list_add_mem, record_exec_insn): Use
3962 record_read_memory.
3963 * record.h (record_read_memory): Declare.
3964
3965 2012-07-20 Yao Qi <yao@codesourcery.com>
3966
3967 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3968 NULL for xfree.
3969
3970 2012-07-19 Pedro Alves <palves@redhat.com>
3971
3972 * record.c (record_resume): Ask the target beneath to report all
3973 signals.
3974
3975 2012-07-19 Doug Evans <dje@google.com>
3976
3977 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3978 there's no section at address zero.
3979 (dwarf2_record_block_ranges): Ditto.
3980
3981 2012-07-19 Yao Qi <yao@codesourcery.com>
3982
3983 * command.h, remote.c: Fix a typo in comment.
3984
3985 2012-07-19 Tom Tromey <tromey@redhat.com>
3986
3987 PR exp/13206:
3988 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3989 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3990 OP_DECLTYPE>: New cases.
3991 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3992 (type_exp): Add new productions.
3993 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3994 and decltype.
3995 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3996 New case.
3997 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3998 OP_DECLTYPE>: New case.
3999 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4000 New case.
4001 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4002 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4003
4004 2012-07-19 Tom Tromey <tromey@redhat.com>
4005
4006 * c-exp.y (enum token_flags): New.
4007 (struct token) <cxx_only>: Remove.
4008 <flags>: New field.
4009 (tokentab3, tokentab2, ident_tokens): Update.
4010 (lex_one_token): Update. Handle FLAG_SHADOW.
4011
4012 2012-07-19 Tom Tromey <tromey@redhat.com>
4013
4014 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4015 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4016 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4017 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4018 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4019 type_exp production where appropriate.
4020 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4021 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4022 <UNOP_MEMVAL_TYPE>: New case.
4023 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4024 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4025 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4026 <UNOP_MEMVAL_TYPE>: New case.
4027 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4028 UNOP_REINTERPRET_CAST>: Update.
4029 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4030 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4031 UNOP_REINTERPRET_CAST>: Update.
4032 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4033 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4034 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4035 constants.
4036
4037 2012-07-19 Yao Qi <yao@codesourcery.com>
4038 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4041 and case 'var_optional_filename' together.
4042 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4043 instead of add_setshow_optional_filename_cmd for setshow command
4044 'args'. Set completer for 'set args'.
4045
4046 2012-07-18 Doug Evans <dje@google.com>
4047
4048 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4049 * common/gdb_vecs.c: New file, contents from utils.c.
4050 * common/host-defs.h: New file, contents from defs.h.
4051 * utils.h: New file, contents from defs.h.
4052 * defs.h: Move all declarations of objects defined in utils.c
4053 to utils.h (except QUIT() and related).
4054 #include "utils.h", "host-defs.h".
4055 * probe.h (probe_p): Move here from gdb_vecs.h.
4056 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4057 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4058 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4059 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4060 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4061 (COMMON_OBS): Add gdb_vecs.o.
4062 (gdb_vecs.o): New rule.
4063
4064 2012-07-18 Keith Seitz <keiths@redhat.com>
4065
4066 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4067 parameter. If non-zero, use SYMNAME as the canonical name
4068 for the SaL.
4069 Update all callers.
4070 (convert_linespec_to_sals): Use add_sal_to_sals for
4071 expressions, too.
4072 (decode_line_full): No need to "fill in missing canonical names"
4073 anymore. Simply make cleanups for the allocated names.
4074
4075 2012-07-18 Keith Seitz <keiths@redhat.com>
4076
4077 * linespec.c (struct linespec): Constify expression,
4078 source_filename, function_name, and label_name.
4079 (symbol_not_found_error): Make all parameters const.
4080 (linespec_parser_delete): No need to check for NULL
4081 when using xfree. Cast const char * to char * for xfree.
4082
4083 2012-07-18 Keith Seitz <keiths@redhat.com>
4084
4085 * breakpoint.c (invalid_thread_id_error): New function.
4086 (find_condition_and_thread): Use invalid_thread_id_error.
4087 (watch_command_1): Likewise.
4088
4089 2012-07-18 Tom Tromey <tromey@redhat.com>
4090
4091 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4092 * contrib/cc-with-tweaks.sh: New file.
4093
4094 2012-07-18 Tom Tromey <tromey@redhat.com>
4095
4096 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4097 (locate_dwz_sections): Recognize .gdb_index.
4098 (create_cus_from_index_list): New function.
4099 (create_cus_from_index): Use it. Handle .dwz data.
4100 (read_index_from_section): New function, extracted from
4101 dwarf2_read_index.
4102 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4103 if needed.
4104
4105 2012-07-18 Tom Tromey <tromey@redhat.com>
4106
4107 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4108 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4109 <is_dwz>: New field.
4110 (struct dwz_file): New.
4111 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4112 (locate_dwz_sections, dwarf2_get_dwz_file)
4113 (get_abbrev_section_for_cu): New functions.
4114 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4115 (read_and_check_type_unit_head): Add abbrev_section argument.
4116 (create_debug_types_hash_table): Update.
4117 (init_cutu_and_read_dies): Use proper abbrev section.
4118 (init_cutu_and_read_dies_no_follow): Likewise.
4119 (set_partial_user): Do nothing if PST==NULL.
4120 (read_comp_units_from_section): New function.
4121 (create_all_comp_units): Use it.
4122 (scan_partial_symbols, partial_die_parent_scope): Update.
4123 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4124 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4125 (find_partial_die): Add offset_in_dwz argument. Update.
4126 (guess_partial_die_structure_name, fixup_partial_die): Update.
4127 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4128 DW_FORM_GNU_strp_alt.
4129 (read_indirect_string_from_dwz): New function.
4130 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4131 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4132 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4133 (follow_die_offset): Add offset_in_dwz argument.
4134 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4135 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4136 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4137 Handle new macro forms.
4138 (dwarf_decode_macros): Update.
4139 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4140 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4141 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4142 (create_debug_types_hash_table): Use correct abbrev section.
4143 (get_debug_line_section): New function.
4144 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4145 (process_full_comp_unit): Pass 'required' argument to
4146 end_symtab_get_static_block.
4147 * buildsym.h (end_symtab_get_static_block): Update.
4148 * buildsym.c (end_symtab_get_static_block): Add 'required'
4149 argument.
4150 (end_symtab, end_expandable_symtab): Update.
4151
4152 2012-07-18 Tom Tromey <tromey@redhat.com>
4153
4154 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4155 (pagesize): Remove.
4156 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4157 (zlib_decompress_section): Remove.
4158 (dwarf2_read_section): Use gdb_bfd_map_section.
4159 (munmap_section_buffer): Remove.
4160 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4161 munmap_section_buffer.
4162 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4163 (struct gdb_bfd_section_data): New.
4164 (free_one_bfd_section): New function.
4165 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4166 (get_section_descriptor, zlib_decompress_section)
4167 (gdb_bfd_map_section): New functions.
4168 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4169
4170 2012-07-18 Tom Tromey <tromey@redhat.com>
4171
4172 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4173
4174 2012-07-18 Tom Tromey <tromey@redhat.com>
4175
4176 * gdb_bfd.c (struct gdb_bfd_data): New.
4177 (gdb_bfd_cache): New global.
4178 (struct gdb_bfd_cache_search): New.
4179 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4180 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4181 * gdb_bfd.h (gdb_bfd_open): Declare.
4182
4183 2012-07-18 Tom Tromey <tromey@redhat.com>
4184
4185 * utils.c (make_cleanup_bfd_unref): Rename from
4186 make_cleanup_bfd_close.
4187 * defs.h (make_cleanup_bfd_unref): Rename from
4188 make_cleanup_bfd_close.
4189 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4190 (bfd_openw_with_cleanup): Update.
4191 * corelow.c (core_open): Update.
4192 * dsrec.c (load_srec): Update.
4193 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4194 * remote-m32r-sdi.c (m32r_load): Update.
4195 * remote-mips.c (mips_load_srec): Update.
4196 (pmon_load_fast): Update.
4197 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4198 Update.
4199 (darwin_bfd_open): Update.
4200 * solib.c (solib_bfd_fopen): Update.
4201 * symfile-mem.c (symbol_file_add_from_memory): Update.
4202 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4203 (symfile_bfd_open): Update.
4204 (generic_load): Update.
4205
4206 2012-07-18 Tom Tromey <tromey@redhat.com>
4207
4208 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4209 (pmon_load_fast): Likewise.
4210 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4211 (m32r_upload_command): Likewise.
4212 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4213 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4214 Use make_cleanup_bfd_close.
4215
4216 2012-07-18 Tom Tromey <tromey@redhat.com>
4217
4218 * symfile.c (symfile_bfd_open): Don't copy name. Call
4219 gdb_bfd_stash_filename.
4220 (load_command): Open the new BFD before freeing the old.
4221 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4222 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4223 Call gdb_bfd_stash_filename.
4224 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4225 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4226 gdb_bfd_stash_filename.
4227 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4228 Free found_pathname.
4229 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4230 gdb_bfd_stash_filename.
4231 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4232 * machoread.c (macho_add_oso_symfile): Call
4233 gdb_bfd_stash_filename.
4234 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4235 gdb_bfd_stash_filename.
4236 (macho_check_dsym): Don't copy filename. Call
4237 gdb_bfd_stash_filename.
4238 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4239 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4240 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4241 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4242 * exec.c (exec_close): Don't free the BFD's filename.
4243 (exec_file_attach): Don't copy the filename. Call
4244 gdb_bfd_stash_filename.
4245 * corelow.c (core_close): Don't free the BFD's filename.
4246 (core_open): Call gdb_bfd_stash_filename.
4247 * corefile.c (reopen_exec_file): Remove #if 0 code.
4248 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4249 pathname.
4250 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4251
4252 2012-07-18 Tom Tromey <tromey@redhat.com>
4253
4254 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4255 gdb_bfd_unref.
4256 (free_dwo_file): Use gdb_bfd_unref.
4257 * cli/cli-dump.c: Include gdb_bfd.h.
4258 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4259 (bfd_openr_with_cleanup): Likewise.
4260 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4261 gdb_bfd_unref.
4262 * utils.c: Include gdb_bfd.h.
4263 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4264 * symfile.c: Include gdb_bfd.h.
4265 (separate_debug_file_exists): Use gdb_bfd_unref.
4266 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4267 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4268 (generic_load): Use gdb_bfd_ref.
4269 (reread_symbols): Use gdb_bfd_unref.
4270 * symfile-mem.c: Include gdb_bfd.h.
4271 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4272 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4273 * solib.c: Include gdb_bfd.h.
4274 (solib_bfd_fopen): Use gdb_bfd_ref.
4275 (solib_bfd_open): Use gdb_bfd_unref.
4276 (free_so_symbols): Use gdb_bfd_unref.
4277 (reload_shared_libraries_1): Use gdb_bfd_unref.
4278 * solib-spu.c: Include gdb_bfd.h.
4279 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4280 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4281 gdb_bfd_unref.
4282 * solib-frv.c: Include gdb_bfd.h.
4283 (enable_break2): Use gdb_bfd_unref.
4284 * solib-dsbt.c: Include gdb_bfd.h.
4285 (enable_break2): Use gdb_bfd_unref.
4286 * solib-darwin.c: Include gdb_bfd.h.
4287 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4288 gdb_bfd_unref.
4289 (darwin_bfd_open): Use gdb_bfd_unref.
4290 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4291 * remote-mips.c: Include gdb_bfd.h.
4292 (mips_load_srec): Use gdb_bfd_ref.
4293 (pmon_load_fast): Use gdb_bfd_ref.
4294 * remote-m32r-sdi.c: Include gdb_bfd.h.
4295 (m32r_load): Use gdb_bfd_ref.
4296 * record.c: Include gdb_bfd.h.
4297 (record_save_cleanups): Use gdb_bfd_unref.
4298 (cmd_record_save): Use gdb_bfd_unref.
4299 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4300 gdb_bfd_unref.
4301 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4302 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4303 * objfiles.c: Include gdb_bfd.h.
4304 (free_objfile): Use gdb_bfd_unref.
4305 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4306 gdb_bfd.c.
4307 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4308 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4309 (macho_check_dsym): Likewise.
4310 * m32r-rom.c: Include gdb_bfd.h.
4311 (m32r_load): Use gdb_bfd_ref.
4312 (m32r_upload_command): Use gdb_bfd_ref.
4313 * jit.c: Include gdb_bfd.h.
4314 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4315 * gdb_bfd.h: New file.
4316 * gdb_bfd.c: New file.
4317 * gcore.c: Include gdb_bfd.h.
4318 (create_gcore_bfd): Use gdb_bfd_ref.
4319 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4320 (gcore_command): Use gdb_bfd_unref.
4321 * exec.c: Include gdb_bfd.h.
4322 (exec_close): Use gdb_bfd_unref.
4323 (exec_close_1): Use gdb_bfd_unref.
4324 (exec_file_attach): Use gdb_bfd_ref.
4325 * elfread.c: Include gdb_bfd.h.
4326 (build_id_verify): Use gdb_bfd_unref.
4327 * dsrec.c: Include gdb_bfd.h.
4328 (load_srec): Use gdb_bfd_ref.
4329 * corelow.c: Include gdb_bfd.h.
4330 (core_close): Use gdb_bfd_unref.
4331 (core_open): Use gdb_bfd_ref.
4332 * bfd-target.c: Include gdb_bfd.h.
4333 (target_bfd_xclose): Use gdb_bfd_unref.
4334 (target_bfd_reopen): Use gdb_bfd_ref.
4335 * Makefile.in (SFILES): Add gdb_bfd.c.
4336 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4337 (COMMON_OBS): Add gdb_bfd.o.
4338
4339 2012-07-18 Keith Seitz <keiths@redhat.com>
4340
4341 * breakpoint.c (find_condition_and_thread): Initialize
4342 TASK and REST.
4343 (create_breakpiont): find_condition_and_thread will now
4344 initialize COND_STRING, THREAD, and REST (and TASK).
4345 (addr_string_to_sals): Likewise.
4346
4347 2012-07-18 Pedro Alves <palves@redhat.com>
4348
4349 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4350 Pull the single step breakpoints out of the target.
4351
4352 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4353
4354 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4355 * stap-probe.c (compile_probe_arg): Likewise.
4356
4357 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4358
4359 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4360 (elf_compile_to_ax): Likewise.
4361 * infrun.c (insert_exception_resume_from_probe): Likewise.
4362 (check_exception_resume): Remove `objfile' variable.
4363 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4364 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4365 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4366 (compare_entries): Rename to...
4367 (compare_probes): ...this. Adjust function to work with
4368 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4369 respectively.
4370 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4371 `VEC (probe_p) *'.
4372 (print_ui_out_info): Adjust argument to be `struct probe *'.
4373 (info_probes_for_ops): Adjust internal computations to use
4374 `VEC (probe_p) *'.
4375 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4376 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4377 gen_info_probes_table_values>: Remove `objfile' argument.
4378 (struct probe) <objfile>: New field.
4379 (find_probe_by_pc): Remove `objfile' argument.
4380 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4381 (stap_get_probe_argument_count): Likewise.
4382 (stap_get_arg): Likewise.
4383 (stap_evaluate_probe_argument): Likewise.
4384 (stap_compile_to_ax): Likewise.
4385 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4386 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4387 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4388 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4389 sym_compile_to_ax>: Likewise.
4390
4391 2012-07-18 Terry Guo <terry.guo@arm.com>
4392
4393 PR 14329
4394 * defs.h (GDB_MI_MSG_WIDTH): New.
4395 * ser_base (ser_base_read_error_fd): New function.
4396 (do_ser_base_readchar): Poll error file descriptor as well as
4397 standard output.
4398 (generic_readchar): Refactor error handling.
4399
4400 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4401
4402 * NEWS: Create a new section for the next release branch.
4403 Rename the section of the current branch, now that it has
4404 been cut.
4405
4406 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4407
4408 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4409 * version.in: Bump version to 7.5.50.20120718-cvs.
4410
4411 2012-07-17 Keith Seitz <keiths@redhat.com>
4412
4413 * linespec.c (linespec_parse_line_offset): Make parameter
4414 const.
4415
4416 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4417
4418 PR 11914
4419 * f-valprint.c (info_common_command): New variable frame_id.
4420 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4421 * printcmd.c (print_variable_and_value): Extend function comment.
4422 Add comment for invalidated FRAME.
4423 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4424 FI form FRAME_ID after each print_frame_local_vars.
4425 (struct print_variable_and_value_data): Change frame to frame_id.
4426 (do_print_variable_and_value): New variable frame, initialize it from
4427 p->frame_id. Add comment for invalidated FRAME.
4428 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4429 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4430 for invalidated FRAME.
4431
4432 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4433 Pedro Alves <palves@redhat.com>
4434
4435 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4436 loop.
4437
4438 2012-07-16 Tom Tromey <tromey@redhat.com>
4439
4440 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4441
4442 2012-07-15 Doug Evans <dje@google.com>
4443
4444 * dwarf2read.c (stmt_list_hash): New struct.
4445 (type_unit_group): Embed "per_cu" member, remove pointer.
4446 New union member "t", move member "tus" into it, all uses updated.
4447 New member "hash", replaces member "line_offset, all uses updated.
4448 (quick_file_names): Replace member "offset" with "hash", all uses
4449 updated.
4450 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4451 (hash_file_name_entry, eq_file_name_entry): Call them.
4452 (hash_type_unit_group, eq_type_unit_group): Ditto.
4453 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4454 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4455 (dw2_get_file_names): Update.
4456 (create_type_unit_group): Replace "per_cu" arg with "cu".
4457 All callers updated. Fix "quick" (.gdb_index) handling.
4458 (get_type_unit_group): Replace "per_cu" arg with "cu".
4459 All callers updated.
4460 (build_type_unit_groups): Don't reset tu_stats.
4461
4462 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4463 "tab_cur_size". Change member "tab" to be a htab_t.
4464 (create_filename_seen_cache): Update.
4465 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4466 (filename_seen): Update.
4467
4468 2012-07-13 Doug Evans <dje@google.com>
4469
4470 * symtab.c (filename_seen): Update comment.
4471
4472 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4473 Doug Evans <dje@google.com>
4474
4475 * buildsym.c (end_symtab_1): Split it to ...
4476 (end_symtab_get_static_block): ... this ...
4477 (end_symtab_from_static_block): ... and this function.
4478 (end_symtab, end_expandable_symtab): Call them.
4479 * buildsym.h (end_symtab_get_static_block)
4480 (end_symtab_from_static_block): New declarations.
4481 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4482 Set its valid CU ranges.
4483
4484 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4485
4486 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4487 DW_OP_GNU_parameter_ref.
4488
4489 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4490
4491 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4492 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4493
4494 2012-07-13 Doug Evans <dje@google.com>
4495
4496 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4497 (filename_seen_cache): New struct.
4498 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4499 (create_filename_seen_cache): New function.
4500 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4501 (filename_seen): Delete arg "first". New arg "cache". All callers
4502 updated.
4503 (output_source_filename_data): New struct.
4504 (output_source_filename): Delete arg "first". New arg "data".
4505 All callers updated.
4506 (sources_info): Delete local "first". New locals "data", "cleanups".
4507 Rewrite to use filename_seen_cache.
4508 (add_partial_filename_data): Delete member "first". New member
4509 "filename_seen_cache". All uses updated.
4510 (make_source_files_completion_list): Rewrite to use
4511 filename_seen_cache.
4512
4513 2012-07-12 Doug Evans <dje@google.com>
4514
4515 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4516
4517 2012-07-10 Doug Evans <dje@google.com>
4518
4519 PR gdb/13498
4520 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4521 all_type_unit_groups, type_unit_groups, tu_stats.
4522 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4523 All uses updated. Add type_unit_group to union "s".
4524 (type_unit_group): New struct.
4525 (IS_TYPE_UNIT_GROUP): New macro.
4526 (abbrev_table): Delete unused member "section".
4527 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4528 (dw2_get_cu): Assert not used with type_unit_group.
4529 (dw2_get_primary_cu): New function.
4530 (dw2_build_type_unit_groups_reader): New function.
4531 (dw2_build_type_unit_groups): New function.
4532 (dw2_get_file_names): Assert not called on type units.
4533 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4534 Redo loop to iterate over type unit groups instead of type units.
4535 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4536 (read_abbrev_offset): New function.
4537 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4538 updated.
4539 (create_partial_symtab): New function.
4540 (process_psymtab_comp_unit_reader): Assert not used with type units.
4541 Call create_partial_symtab.
4542 (process_psymtab_type_unit): Delete.
4543 (hash_type_unit_group, eq_type_unit_group): New functions.
4544 (allocate_type_unit_groups_table): New function.
4545 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4546 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4547 (create_type_unit_group, get_type_unit_group): New functions.
4548 (tu_abbrev_offset): New struct.
4549 (sort_tu_by_abbrev_offset): New function.
4550 (add_type_unit_group_to_table): New function.
4551 (build_type_unit_groups): New function.
4552 (build_type_psymtabs_reader): New function.
4553 (build_type_psymtab_dependencies): New function.
4554 (build_type_psymtabs): Rewrite.
4555 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4556 is seen in a type unit.
4557 (process_queue): Move symtab expansion debugging printfs here.
4558 Call process_full_type_unit for type units.
4559 (compute_symtab_includes): Assert not called for type units.
4560 (process_cu_includes): Don't call compute_symtab_includes for
4561 type units.
4562 (process_full_type_unit): New function.
4563 (process_imported_unit_die): Flag an error if called for type units.
4564 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4565 updated. Assert not called for type units.
4566 (read_file_scope): Call dwarf2_start_symtab.
4567 (setup_type_unit_groups): New function.
4568 (read_type_unit_scope): Rewrite.
4569 (abbrev_table_read_table): Initialize abbrev_table->offset.
4570 (abbrev_table_free_cleanup): New function.
4571 (dwarf2_start_symtab): New function.
4572 (load_full_type_unit): Assert not called for type unit groups.
4573 * buildsym.c (finish_block_internal): New arg "expandable".
4574 All callers updated.
4575 (start_symtab): Move most contents to ...
4576 (restart_symtab): ... here. New function.
4577 (reset_symtab_globals): New function.
4578 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4579 Call reset_symtab_globals.
4580 (end_symtab, end_expandable_symtab): New functions.
4581 (set_missing_symtab, augment_type_symtab): New functions.
4582 * buildsym.h (end_expandable_symtab): Declare.
4583 (augment_type_symtab, restart_symtab): Declare.
4584 * psympriv.h (struct partial_symtab): New member "anonymous".
4585 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4586 anonymous psymtabs.
4587 (read_psymtabs_with_filename): Ditto.
4588 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4589 (expand_symtabs_matching_via_partial): Ditto.
4590 (dump_psymtab): Update.
4591 * dictionary.c (dict_add_pending): New function.
4592 * dictionary.h (dict_add_pending): Declare.
4593
4594 2012-07-09 Doug Evans <dje@google.com>
4595
4596 * buildsym.c (start_subfile): Remove unnecessary check for
4597 name == NULL.
4598
4599 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4600
4601 * dwarf2read.c (load_full_type_unit): Simplify.
4602
4603 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4604 to struct signatured_type **. All uses updated.
4605
4606 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4607 All callers updated.
4608
4609 2012-07-09 Tom Tromey <tromey@redhat.com>
4610
4611 * c-exp.y (check_parameter_typelist): New function.
4612 (parameter_typelist): Call it.
4613 * eval.c (make_params): Handle '(void)' case.
4614 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4615 '(void)' case.
4616
4617 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4618
4619 * common/linux-ptrace.c: Include gdb_assert.h.
4620 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4621 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4622 stdint.h.
4623 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4624 functions.
4625 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4626 * linux-nat.c (linux_child_post_attach)
4627 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4628
4629 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4632 nptl <2.7 bug workaround for core files.
4633
4634 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4635
4636 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4637 clearing.
4638 (save_siginfo): Remove.
4639 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4640 call.
4641 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4642 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4643 * linux-nat.h (struct lwp_info): Remove field siginfo.
4644
4645 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4646
4647 Code cleanup for the next patch.
4648 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4649 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4650 call for it.
4651 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4652 (ia64_linux_stopped_data_address):
4653 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4654 the return value.
4655 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4656 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4657 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4658 call for it.
4659
4660 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4661
4662 PR 14321
4663 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4664 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4665
4666 2012-07-06 Tom Tromey <tromey@redhat.com>
4667
4668 * c-exp.y (DOTDOTDOT): New token.
4669 (func_mod, exp): Use parameter_typelist.
4670 (parameter_typelist): New production.
4671 (tokentab3): Add "..." token.
4672 * eval.c (make_params): Handle varargs.
4673 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4674 varargs.
4675
4676 2012-07-06 Tom Tromey <tromey@redhat.com>
4677
4678 PR exp/9608:
4679 * c-exp.y (%union) <tvec>: Change type.
4680 (func_mod): Now uses <tvec> type.
4681 (exp): Update for tvec change.
4682 (direct_abs_decl): Push the typelist.
4683 (func_mod): Return a typelist.
4684 (nonempty_typelist): Update for tvec change.
4685 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4686 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4687 * parse.c (pop_type_list): New function.
4688 (push_typelist): New function.
4689 (follow_types): Handle tp_function_with_arguments.
4690 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4691 (enum type_pieces) <tp_function_with_arguments>: New constant.
4692 (union type_stack_elt) <typelist_val>: New field.
4693 (push_typelist): Declare.
4694
4695 2012-07-06 Tom Tromey <tromey@redhat.com>
4696
4697 * c-exp.y (%union) <type_stack>: New field.
4698 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4699 (ptr_operator_ts): New production.
4700 (ptype): Update.
4701 * parse.c (type_stack_reserve): New function.
4702 (check_type_stack_depth): Use it.
4703 (pop_type_stack, append_type_stack, push_type_stack)
4704 (get_type_stack, type_stack_cleanup): New functions.
4705 (follow_types): Handle tp_type_stack.
4706 (_initialize_parse): Simplify initialization.
4707 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4708 constant.
4709 (union type_stack_elt) <stack_val>: New field.
4710 (get_type_stack, append_type_stack, push_type_stack)
4711 (type_stack_cleanup): Declare.
4712
4713 2012-07-06 Tom Tromey <tromey@redhat.com>
4714
4715 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4716 Remove.
4717 (struct type_stack): New.
4718 * parse.c (type_stack, type_stack_size, type_stack_depth):
4719 Remove.
4720 (type_stack): New global.
4721 (parse_exp_in_context, check_type_stack_depth)
4722 (insert_into_type_stack, insert_type, push_type, push_type_int)
4723 (insert_type_address_space, pop_type, pop_type_int)
4724 (_initialize_parse): Update.
4725
4726 2012-07-06 Tom Tromey <tromey@redhat.com>
4727
4728 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4729 Remove %type.
4730
4731 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4732
4733 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4734
4735 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4736 Jan Kratochvil <jan.kratochvil@redhat.com>
4737
4738 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4739 alloca with xmalloc/xfree.
4740
4741 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4742
4743 * MAINTAINERS (Write After Approval): Add myself to the list.
4744
4745 2012-07-05 Doug Evans <dje@google.com>
4746
4747 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4748
4749 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4750
4751 * ax-gdb.c (cli/cli-utils.h): New include.
4752 (linespec.h): Ditto.
4753 (agent_eval_command_one): New function.
4754 (agent_command_1): Ditto.
4755 (agent_command): Call function agent_command_1.
4756 (agent_eval_command): Ditto.
4757 (_initialize_ax_gdb): Change help for "maint agent"
4758 and "maint agent-eval".
4759
4760 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4761
4762 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4763 * cli/cli-utils.c (check_for_argument): New function.
4764 * cli/cli-utils.h (check_for_argument): Ditto.
4765
4766 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4767
4768 * NEWS: Mention x32 ABI support.
4769
4770 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4771
4772 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4773 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4774
4775 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4776 and pc_regnum_from_eax to -1. Update SP regnum from
4777 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4778 needed.
4779
4780 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4781 pc_regnum_from_eax.
4782
4783 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4784
4785 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4786 * dwarf2expr.h: Include gdbtypes.h.
4787 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4788 these forward declarations.
4789 (cu_offset, sect_offset): Move these ...
4790 * gdbtypes.h: Remove include dwarf2expr.h.
4791 (cu_offset, sect_offset): ... here.
4792
4793 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4794
4795 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4796 (amd64_linux_sigtramp_code): This.
4797 (amd64_x32_linux_sigtramp_code): New.
4798 (LINUX_SIGTRAMP_LEN): Updated.
4799 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4800
4801 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4802
4803 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4804
4805 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4806
4807 * config.in: Regenerate.
4808 * configure: Regenerate.
4809 * configure.ac: Remove check for gnu/libc-version.h.
4810 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4811 gnu/libc-version.h.
4812 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4813 variables libc_version, libc_major and libc_minor. Replace sscanf by
4814 inferior_has_bug. Extend the comment.
4815
4816 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4817
4818 * linux-thread-db.c (inferior_has_bug): New function.
4819 (thread_db_find_new_threads_silently): Return boolean as checked by
4820 inferior_has_bug, describe it in the comments.
4821 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4822 earlier. Abort the initialization if it returned non-zero.
4823 (thread_db_new_objfile): Exclude debug files.
4824 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4825 if UNTIL_NO_NEW,
4826
4827 2012-07-02 Doug Evans <dje@google.com>
4828
4829 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4830 related to queue management.
4831
4832 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4833 instead of "debug dwarf2-die" in debugging printfs.
4834 (create_debug_info_hash_table_reader): Ditto.
4835 (create_debug_info_hash_table): Ditto.
4836 (init_dwo_file): Ditto.
4837 (init_cutu_and_read_dies): Add debugging printf.
4838 (init_cutu_and_read_dies_no_follow): Ditto.
4839 (process_psymtab_comp_unit_reader): Ditto.
4840
4841 2012-07-02 Stan Shebs <stan@codesourcery.com>
4842
4843 Add target-side support for dynamic printf.
4844 * NEWS: Mention the additional style.
4845 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4846 (struct bp_location): New field cmd_bytecode.
4847 * breakpoint.c: Include format.h.
4848 (disconnected_dprintf): New global.
4849 (parse_cmd_to_aexpr): New function.
4850 (build_target_command_list): New function.
4851 (insert_bp_location): Call it.
4852 (remove_breakpoints_pid): Skip dprintf breakpoints.
4853 (print_one_breakpoint_location): Ditto.
4854 (dprintf_style_agent): New global.
4855 (dprintf_style_enums): Add dprintf_style_agent.
4856 (update_dprintf_command_list): Add agent case.
4857 (agent_printf_command): New function.
4858 (_initialize_breakpoint): Add new commands.
4859 * common/ax.def (printf): New bytecode.
4860 * ax.h (ax_string): Declare.
4861 * ax-gdb.h (gen_printf): Declare.
4862 * ax-gdb.c: Include cli-utils.h, format.h.
4863 (gen_printf): New function.
4864 (maint_agent_print_command): New function.
4865 (_initialize_ax_gdb): Add maint agent-printf command.
4866 * ax-general.c (ax_string): New function.
4867 (ax_print): Add printf disassembly.
4868 * Makefile.in (SFILES): Add format.c
4869 (COMMON_OBS): Add format.o.
4870 * common/format.h: New file.
4871 * common/format.c: New file.
4872 * printcmd.c: Include format.h.
4873 (ui_printf): Call parse_format_string.
4874 * remote.c (remote_state): New field breakpoint_commands.
4875 (PACKET_BreakpointCommands): New enum.
4876 (remote_breakpoint_commands_feature): New function.
4877 (remote_protocol_features): Add new BreakpointCommands entry.
4878 (remote_can_run_breakpoint_commands): New function.
4879 (remote_add_target_side_commands): New function.
4880 (remote_insert_breakpoint): Call it.
4881 (remote_insert_hw_breakpoint): Ditto.
4882 (_initialize_remote): Add new packet configuration for
4883 target-side breakpoint commands.
4884 * target.h (struct target_ops): New field
4885 to_can_run_breakpoint_commands.
4886 (target_can_run_breakpoint_commands): New macro.
4887 * target.c (update_current_target): Handle
4888 to_can_run_breakpoint_commands.
4889
4890 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4891
4892 Execute -ix and -iex only after system and user gdbinit files.
4893 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4894 processing down after gdbinit files.
4895
4896 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4897
4898 Add fnmatch-gnu module.
4899 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4900 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4901 * gnulib/aclocal.m4: Regenerate.
4902 * gnulib/config.in: Regenerate.
4903 * gnulib/configure: Regenerate.
4904 * gnulib/import/dummy.c: Remove.
4905 * gnulib/import/Makefile.am: Regenerate.
4906 * gnulib/import/Makefile.in: Likewise.
4907 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4908 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4909 * gnulib/import/alloca.c: New file.
4910 * gnulib/import/alloca.in.h: Likewise.
4911 * gnulib/import/config.charset: Likewise.
4912 * gnulib/import/fnmatch.c: Likewise.
4913 * gnulib/import/fnmatch.in.h: Likewise.
4914 * gnulib/import/fnmatch_loop.c: Likewise.
4915 * gnulib/import/localcharset.c: Likewise.
4916 * gnulib/import/localcharset.h: Likewise.
4917 * gnulib/import/m4/alloca.m4: Likewise.
4918 * gnulib/import/m4/codeset.m4: Likewise.
4919 * gnulib/import/m4/configmake.m4: Likewise.
4920 * gnulib/import/m4/fcntl-o.m4: Likewise.
4921 * gnulib/import/m4/fnmatch.m4: Likewise.
4922 * gnulib/import/m4/glibc21.m4: Likewise.
4923 * gnulib/import/m4/localcharset.m4: Likewise.
4924 * gnulib/import/m4/locale-fr.m4: Likewise.
4925 * gnulib/import/m4/locale-ja.m4: Likewise.
4926 * gnulib/import/m4/locale-zh.m4: Likewise.
4927 * gnulib/import/m4/mbrtowc.m4: Likewise.
4928 * gnulib/import/m4/mbsinit.m4: Likewise.
4929 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4930 * gnulib/import/m4/mbstate_t.m4: Likewise.
4931 * gnulib/import/m4/stdbool.m4: Likewise.
4932 * gnulib/import/m4/wchar_h.m4: Likewise.
4933 * gnulib/import/m4/wctype_h.m4: Likewise.
4934 * gnulib/import/m4/wint_t.m4: Likewise.
4935 * gnulib/import/mbrtowc.c: Likewise.
4936 * gnulib/import/mbsinit.c: Likewise.
4937 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4938 * gnulib/import/mbsrtowcs-state.c: Likewise.
4939 * gnulib/import/mbsrtowcs.c: Likewise.
4940 * gnulib/import/ref-add.sin: Likewise.
4941 * gnulib/import/ref-del.sin: Likewise.
4942 * gnulib/import/stdbool.in.h: Likewise.
4943 * gnulib/import/streq.h: Likewise.
4944 * gnulib/import/strnlen1.c: Likewise.
4945 * gnulib/import/strnlen1.h: Likewise.
4946 * gnulib/import/verify.h: Likewise.
4947 * gnulib/import/wchar.in.h: Likewise.
4948 * gnulib/import/wctype.in.h: Likewise.
4949
4950 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4951
4952 Support shell wildcards for 'set auto-load safe-path'.
4953 * auto-load.c: Include fnmatch.h.
4954 (filename_is_in_dir): Rename to ...
4955 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4956 it. Update function comment. Rename dir_len to pattern_len. New
4957 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4958 messages. Use gdb_filename_fnmatch.
4959 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4960 pattern.
4961 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4962 * defs.h (gdb_filename_fnmatch): New declaration.
4963 * utils.c: Include fnmatch.h.
4964 (gdb_filename_fnmatch): New function.
4965
4966 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4967
4968 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4969 `-probe' and `-probe-stap' options.
4970
4971 2012-07-01 Yao Qi <yao@codesourcery.com>
4972
4973 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4974 always_inserted_off, and always_inserted_enums.
4975 Change always_inserted_mode's type to 'enum auto_boolean'.
4976 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4977 callers.
4978 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4979 of add_setshow_enum_cmd.
4980 * infrun.c: Remove can_use_displaced_stepping_auto,
4981 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4982 can_use_displaced_stepping_enum.
4983 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4984 (show_can_use_displaced_stepping, use_displaced_stepping): Update
4985 callers.
4986 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4987 add_setshow_enum_cmd.
4988
4989 2012-06-30 Doug Evans <dje@google.com>
4990
4991 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4992 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4993 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4994
4995 2012-06-29 Doug Evans <dje@google.com>
4996
4997 * linespec.c: #include "stack.h".
4998 (decode_line_with_current_source): Moved here from symtab.c and
4999 renamed from decode_line_spec. All callers updated.
5000 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5001 renamed from decode_line_spec_1. All callers updated.
5002 * linespec.h (decode_line_with_current_source): Move declaration here
5003 from symtab.h and renamed from decode_line_spec.
5004 (decode_line_with_last_displayed): Move declaration here from symtab.h
5005 and renamed from decode_line_spec_1.
5006 * macrocmd.c: #include "linespec.h".
5007 * symtab.c: Remove #include "linespec.h".
5008
5009 2012-06-28 Doug Evans <dje@google.com>
5010
5011 * dwarf2read.c (get_cu_length): New function.
5012 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5013 (create_debug_types_hash_table): Ditto.
5014 (init_cutu_and_read_dies): Ditto.
5015 (init_cutu_and_read_dies_no_follow): Ditto.
5016
5017 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5018
5019 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5020 (struct abbrev_table): Define.
5021 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5022 abbrev_table.
5023 (init_cutu_and_read_dies): Update.
5024 (abbrev_table_alloc_abbrev): New function. Replaces
5025 dwarf_alloc_abbrev. All callers updated.
5026 (abbrev_table_add_abbrev): New function.
5027 (abbrev_table_lookup_abbrev): New function. Replaces
5028 dwarf2_lookup_abbrev. All callers updated.
5029 (abbrev_table_read_table): New function. Contents moved here from
5030 dwarf2_read_abbrevs.
5031 (dwarf2_read_abbrevs): Call it.
5032 (abbrev_table_free): New function.
5033 (dwarf2_free_abbrev_table): Call it.
5034
5035 2012-06-28 Stan Shebs <stan@codesourcery.com>
5036
5037 * osdata.c (info_osdata_command): Filter out "Title" columns
5038 from non-MI uses.
5039 * common/linux-osdata.c (struct osdata_type): Add title field.
5040 (osdata_table): Add titles to each entry.
5041 (linux_command_xfer_osdata): Add a column for title data.
5042
5043 2012-06-28 Stan Shebs <stan@codesourcery.com>
5044
5045 Make logging work for MI.
5046 * NEWS: Mention it.
5047 * interps.h (interp_set_logging_ftype): New typedef.
5048 (struct interp_procs): New field set_logging_proc.
5049 (current_interp_set_logging): Declare.
5050 * interps.c (current_interp_set_logging): New function.
5051 * cli/cli-logging.c: Include interps.h.
5052 (set_logging_redirect): Call current_interp_set_logging.
5053 (pop_output_files): Ditto.
5054 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5055 * mi/mi-console.h (mi_console_set_raw): Declare.
5056 * mi/mi-console.c (mi_console_set_raw): New function.
5057 * mi/mi-interp.c (saved_raw_stdout): New global.
5058 (mi_set_logging): New function.
5059 (_initialize_mi_interp): Add it to interp procs.
5060
5061 2012-06-28 Doug Evans <dje@google.com>
5062
5063 * symtab.c (lookup_symbol_aux_objfile): Use
5064 ALL_OBJFILE_PRIMARY_SYMTABS.
5065
5066 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5067
5068 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5069
5070 * common/buffer.c: Include inttypes.h and stdint.h.
5071 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5072
5073 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5074 Pedro Alves <palves@redhat.com>
5075
5076 * gdbthread.h (ALL_THREADS): New macro.
5077 (thread_list): Declare.
5078 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5079 going, but instead fall through to the stepping handling.
5080 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5081 the passed in signal. Adjust debug output.
5082 (resume_callback): Rename to ...
5083 (linux_nat_resume_callback): ... this. Pass the thread's last
5084 stop signal, if in "pass" state.
5085 (linux_nat_resume): Adjust to rename.
5086 (stop_wait_callback): New assertion. Don't respawn signals;
5087 instead let the LWP remain with SIGNALLED set.
5088 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5089 * remote.c (append_pending_thread_resumptions): New.
5090 (remote_vcont_resume): Call it.
5091 * target.h (target_resume): Extend comment.
5092
5093 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5094
5095 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5096
5097 2012-06-27 Doug Evans <dje@google.com>
5098
5099 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5100 Delete have_addr_base, unused. All uses updated.
5101 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5102 (dwarf2_get_pc_bounds): Add ranges_base.
5103 (dwarf2_record_block_ranges): Ditto.
5104
5105 2012-06-27 Tom Tromey <tromey@redhat.com>
5106
5107 PR macros/7961:
5108 * varobj.c (varobj_create): Update.
5109 (varobj_set_value): Update.
5110 * tracepoint.c (validate_actionline): Update.
5111 (encode_actions_1): Update.
5112 * parse.c (parse_exp_1): Add 'pc' argument.
5113 (parse_exp_in_context): Add 'pc' argument. Change how
5114 expression_context_pc is set.
5115 (parse_expression): Update.
5116 (parse_field_expression): Update.
5117 * expression.h (parse_exp_1): Update.
5118 * eval.c (parse_to_comma_and_eval): Update.
5119 * breakpoint.c (set_breakpoint_condition): Update.
5120 (update_watchpoint): Update.
5121 (init_breakpoint_sal): Update
5122 (find_condition_and_thread): Update.
5123 (watch_command_1): Update.
5124 (update_breakpoint_locations): Update.
5125 * ada-lang.c (ada_read_renaming_var_value): Update.
5126 (create_excep_cond_exprs): Update.
5127
5128 2012-06-27 Doug Evans <dje@google.com>
5129
5130 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5131 type units.
5132
5133 2012-06-26 Doug Evans <dje@google.com>
5134
5135 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5136 prototype.
5137 (error_check_comp_unit_head): New arg abbrev_section. All callers
5138 updated.
5139 (read_and_check_comp_unit_head): Ditto.
5140 (read_and_check_type_unit_head): Ditto.
5141
5142 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5143
5144 New attribute 'last' for gdb.Symtab_and_line.
5145 * NEWS (Python Scripting): Add entry about the new attribute.
5146 * python/py-symtab.c (salpy_get_last): New function which
5147 implements the get method for the 'last' attribute of
5148 gdb.Symtab_and_line.
5149 (sal_object_getset): Add entry for the 'last' attribute.
5150
5151 2012-06-26 Doug Evans <dje@google.com>
5152
5153 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5154 (dwo_sections): Add macinfo, macro.
5155 (dwarf2_locate_dwo_sections): Watch for macro sections.
5156 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5157 All callers updated. Handle DWO files.
5158
5159 * NEWS: Mention new options "set debug dwarf2-read" and
5160 "set debug symtab-create".
5161 * dwarf2read.c (dwarf2_read_debug): New static global.
5162 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5163 (process_queue): Ditto.
5164 (process_full_comp_unit): Ditto.
5165 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5166 * elfread.c (elf_symfile_read): Add debugging printf.
5167 * minsyms.c (install_minimal_symbols): Ditto.
5168 * psymtab.c (allocate_psymtab): Ditto.
5169 * symfile.c (allocate_symtab): Ditto.
5170 * symtab.c (symtab_create_debug): New global.
5171 (_initialize_symtab): Add new option "set debug symtab-create".
5172 * symtab.h (symtab_create_debug): Declare.
5173
5174 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5175 (lookup_dwo_type_unit): Ditto.
5176
5177 2012-06-26 Roland McGrath <roland@hack.frob.com>
5178 H.J. Lu <hongjiu.lu@intel.com>
5179
5180 * amd64-linux-nat.c: Include <sys/user.h>.
5181 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5182 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5183 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5184
5185 * configure.ac: Check if the fs_base and gs_base members of
5186 `struct user_regs_struct' exist.
5187 * config.in: Regenerated.
5188 * configure: Likewise.
5189
5190 2012-06-25 Michael Eager <eager@eagercon.com>
5191
5192 PR python/14291
5193 * python/python.c (gdbpy_write): Check for interrupted output.
5194
5195 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5196
5197 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5198 register as a stack alignment in ARM mode.
5199
5200 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5201
5202 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5203 * gnulib/config.in: Regenerate.
5204 * gnulib/configure: Likewise.
5205 * gnulib/import/m4/extensions.m4: Update it.
5206 * gnulib/import/m4/gnulib-common.m4: Likewise.
5207 * gnulib/import/m4/memmem.m4: Likewise.
5208 * gnulib/import/m4/mmap-anon.m4: Likewise.
5209 * gnulib/import/m4/multiarch.m4: Likewise.
5210 * gnulib/import/stdint.in.h: Likewise.
5211
5212 2012-06-24 Yao Qi <yao@codesourcery.com>
5213
5214 * corefile.c (write_memory_with_notification): New.
5215 * gdbcore.h: Declare write_memory_with_notification.
5216 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5217 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5218 * valops.c (value_assign): Likewise.
5219 * python/py-inferior.c (infpy_write_memory): Call
5220 'write_memory_with_notification'.
5221
5222 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5223
5224 * cc-with-index.sh: Use also -ex "set auto-load no".
5225
5226 2012-06-23 Doug Evans <dje@google.com>
5227
5228 PR 14125
5229 * NEWS: Document additions to .gdb_index.
5230 * dwarf2read.c: #include "gdb/gdb-index.h".
5231 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5232 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5233 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5234 (dwarf2_read_index): Recognize version 7.
5235 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5236 block_kind, domain): All callers updated.
5237 (dw2_find_symbol_file): Handle new index CU values.
5238 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5239 (add_index_entry): New args is_static, kind. All callers updated.
5240 (offset_type_compare, uniquify_cu_indices): New functions
5241 (symbol_kind): New function.
5242 (write_psymtabs_to_index): Remove duplicate CU values.
5243 (write_psymtabs_to_index): Write .gdb_index version 7.
5244
5245 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5246
5247 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5248 * configure: Regenerate.
5249
5250 2012-06-20 Yao Qi <yao@codesourcery.com>
5251
5252 * python/py-inferior.c: Update comments of infpy_read_memory
5253 and infpy_write_memory.
5254
5255 2012-06-19 Tom Tromey <tromey@redhat.com>
5256
5257 PR exp/9514:
5258 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5259 (push_type_address_space): Remove.
5260 * parse.c (insert_into_type_stack): New function.
5261 (insert_type): Likewise.
5262 (insert_type_address_space): Rename from push_type_address_space.
5263 Insert tp_space_identifier.
5264 * c-exp.y (ptr_operator): New production.
5265 (abs_decl): Use ptr_operator.
5266 (space_identifier): Call insert_type_address_space.
5267 (ptype): Don't use const_or_volatile_or_space_identifier.
5268 (const_or_volatile_noopt): Call insert_type.
5269 (conversion_type_id, conversion_declarator): New productions.
5270 (operator): Use conversion_type_id.
5271
5272 2012-06-18 Doug Evans <dje@google.com>
5273
5274 * symtab.h (minimal_symbol): New member created_by_gdb.
5275 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5276 created by gdb.
5277 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5278 (search_symbols): Call it instead of lookup_symbol.
5279 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5280
5281 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5282 Adjust address for DW_OP_GNU_addr_index.
5283 * dwarf2expr.h (dwarf_expr_context): Update comment.
5284 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5285 all callers updated. Handle TLS vars described with
5286 DW_OP_GNU_const_index.
5287 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5288 and DW_OP_GNU_const_index.
5289 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5290
5291 * block.c (find_block_in_blockvector): Make explicit the fact that we
5292 ignore GLOBAL_BLOCK.
5293
5294 2012-06-18 Tom Tromey <tromey@redhat.com>
5295
5296 * c-exp.y (operator): Remove trailing space after "delete" and
5297 "delete[]".
5298
5299 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5300 Jan Kratochvil <jan.kratochvil@redhat.com>
5301
5302 Switch i386 and derived targets to ON_STACK.
5303 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5304 (amd64_dicos_init_abi): Remove its installment.
5305 * dicos-tdep.c (dicos_init_abi): Remove the
5306 set_gdbarch_call_dummy_location call. Update the comment here.
5307 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5308 (i386_dicos_init_abi): Remove its installment.
5309 * i386-tdep.c (i386_push_dummy_code): New function.
5310 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5311 i386_push_dummy_code.
5312
5313 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5314
5315 Remove stale dummy frames.
5316 * breakpoint.c: Include dummy-frame.h.
5317 (longjmp_breakpoint_ops): New variable.
5318 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5319 bp_longjmp_call_dummy.
5320 (bpstat_what, bptype_string, print_one_breakpoint_location)
5321 (init_bp_location): Support bp_longjmp_call_dummy.
5322 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5323 (set_longjmp_breakpoint_for_call_dummy)
5324 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5325 functions.
5326 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5327 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5328 FIXME comment and extend the other comment for bp_call_dummy.
5329 (set_longjmp_breakpoint_for_call_dummy)
5330 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5331 * dummy-frame.c: Include gdbthread.h.
5332 (pop_dummy_frame_bpt): New function.
5333 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5334 (dummy_frame_discard): New function.
5335 (cleanup_dummy_frames): Update the comment about longjmps.
5336 * dummy-frame.h (dummy_frame_discard): New declaration.
5337 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5338 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5339 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5340 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5341 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5342 keep_going if IS_LONGJMP and there is no other reason to stop.
5343
5344 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5345
5346 * remote-sim.c (sim_command_completer): Initialize
5347 variable 'result'.
5348
5349 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5350
5351 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5352 * dwarf2loc.c (call_site_parameter_matches): Support
5353 CALL_SITE_PARAMETER_PARAM_OFFSET.
5354 (needs_dwarf_reg_entry_value): Push stub value.
5355 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5356 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5357 * gdbtypes.h (enum call_site_parameter_kind): New item
5358 CALL_SITE_PARAMETER_PARAM_OFFSET.
5359 (struct call_site.parameter.u): New field param_offset.
5360
5361 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5362
5363 Code cleanup: Generalize call_site.parameter key.
5364 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5365 variable dwarf_reg. New variable kind_u. Update parameters to
5366 push_dwarf_reg_entry_value.
5367 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5368 * dwarf2expr.h (enum call_site_parameter_kind)
5369 (union call_site_parameter_u): Forward declarations.
5370 (struct dwarf_expr_context_funcs): Update parameters and their
5371 description for push_dwarf_reg_entry_value.
5372 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5373 * dwarf2loc.c (call_site_parameter_matches): New function.
5374 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5375 description. Use call_site_parameter_matches.
5376 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5377 Update parameters and their description.
5378 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5379 New variable kind_u. Adjust the caller for updated parameters.
5380 (needs_dwarf_reg_entry_value): Update parameters.
5381 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5382 instead of attr. Update for the changed fields of struct
5383 call_site_parameter.
5384 * gdbtypes.h: Include dwarf2expr.h.
5385 (enum call_site_parameter_kind): New.
5386 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5387 fb_offset into new union u.
5388
5389 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5390
5391 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5392 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5393 for x32.
5394
5395 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5396
5397 * amd64-linux-nat.c (compat_x32_clock_t): New.
5398 (compat_x32_siginfo_t): Likewise.
5399 (compat_x32_siginfo_from_siginfo): Likewise.
5400 (siginfo_from_compat_x32_siginfo): Likewise.
5401 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5402 and siginfo_from_compat_x32_siginfo for x32.
5403
5404 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5405
5406 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5407
5408 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5409
5410 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5411 instead of gdbarch_ptr_bit.
5412 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5413 (amd64_supply_native_gregset): Likewise.
5414 (amd64_collect_native_gregset): Likewise.
5415 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5416 (amd64_supply_xsave): Likewise.
5417 (amd64_collect_fxsave): Likewise.
5418 (amd64_collect_xsave): Likewise.
5419
5420 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5421
5422 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5423 (amd64_linux_read_description): Check DS segment register for
5424 x32 process.
5425
5426 2012-06-15 Tom Tromey <tromey@redhat.com>
5427
5428 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5429 init_cutu_and_read_dies.
5430
5431 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5432
5433 * MAINTAINERS (Write After Approval): Add myself to the list.
5434
5435 2012-06-15 Tom Tromey <tromey@redhat.com>
5436
5437 * valops.c (value_find_oload_method_list): Now static.
5438 * value.h (value_find_oload_method_list): Don't declare.
5439
5440 2012-06-15 Tom Tromey <tromey@redhat.com>
5441
5442 * valops.c (find_overload_match): Use value_ind.
5443
5444 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5445
5446 * infrun.c (handle_inferior_event): Correct indentation.
5447
5448 2012-06-14 Doug Evans <dje@google.com>
5449
5450 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5451 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5452 All uses updated.
5453 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5454 updated. Handle DEBUG_LOC_START_LENGTH.
5455 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5456 (loclist_describe_location): Ditto.
5457
5458 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5459
5460 PR backtrace/13866
5461 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5462 after hiding inline functions.
5463
5464 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5465
5466 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5467 _initialize_inf_ttrace.
5468
5469 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5470
5471 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5472 _initialize_hppa_hpux_nat.
5473
5474 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5475
5476 * remote-sim.c (sim_command_completer): Change type of return
5477 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5478
5479 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5480 Jan Kratochvil <jan.kratochvil@redhat.com>
5481
5482 PR tdep/14222
5483 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5484 stack on a 16-byte boundary.
5485
5486 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5487
5488 * jit.c (finalize_symtab): Set function's return type to 'void' by
5489 default.
5490
5491 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5492 H.J. Lu <hongjiu.lu@intel.com>
5493
5494 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5495 Move bits common to both the classic LP64 and the new x32 ILP32
5496 ABI here.
5497 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5498 (amd64_x32_linux_init_abi): New function.
5499 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5500 subtype.
5501
5502 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5503 * i386-tdep.c (i386_pseudo_register_name): Make public.
5504 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5505 * amd64-tdep.c (amd64_dword_names): Add "eip".
5506 (amd64_x32_pseudo_register_type): New function
5507 (amd64_x32_init_abi): New function.
5508
5509 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5510
5511 PR build/14003
5512 * inferior.h (struct inferior_suspend_state): Comment out.
5513 (struct inferior): Comment out the field suspend.
5514 * infrun.c (struct infcall_suspend_state): Comment out the field
5515 inferior_suspend.
5516 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5517 out its assignment.
5518
5519 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5520
5521 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5522 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5523 function comment. Return ERROR for unresolved cases. Implement
5524 returning proper NAME.
5525 (yylex): Accept also NAME from classify_inner_name.
5526 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5527 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5528 LOC_TYPEDEF type.
5529 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5530
5531 2012-06-13 Tom Tromey <tromey@redhat.com>
5532
5533 * breakpoint.c (condition_completer): New function.
5534 (_initialize_breakpoint): Use it.
5535 * value.c (complete_internalvar): New function.
5536 * value.h (complete_internalvar): Declare.
5537
5538 2012-06-13 Tom Tromey <tromey@redhat.com>
5539
5540 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5541 * breakpoint.c (catch_syscall_completer): Return a VEC.
5542 * cli/cli-cmds.c (complete_command): Update.
5543 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5544 (complete_on_enum): Likewise.
5545 * command.h: Include gdb_vecs.h.
5546 (completer_ftype): Change return type.
5547 (complete_on_cmdlist, complete_on_enum): Likewise.
5548 * completer.c (noop_completer, filename_completer)
5549 (location_completer): Return a VEC.
5550 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5551 to a VEC.
5552 (expression_completer, complete_line_internal, complete_line)
5553 (command_completer): Return a VEC.
5554 (gdb_completion_word_break_characters, line_completion_function):
5555 Update.
5556 * completer.h: Include gdb_vecs.h.
5557 (complete_line, noop_completer, filename_completer)
5558 (expression_completer, location_completer, command_completer):
5559 Update.
5560 * f-lang.c (f_word_break_characters): Return a VEC.
5561 * interps.c (interpreter_completer): Return a VEC.
5562 * language.h (struct language_defn)
5563 <la_make_symbol_completion_list>: Return a VEC.
5564 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5565 * symtab.c (free_completion_list): Take a VEC.
5566 (return_val_size, return_val_index): Remove.
5567 (return_val): Now a VEC.
5568 (completion_list_add_name): Update.
5569 (default_make_symbol_completion_list_break_on)
5570 (default_make_symbol_completion_list, make_symbol_completion_list)
5571 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5572 Return a VEC.
5573 (add_filename_to_list): Update.
5574 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5575 <list>: Now a VEC.
5576 (maybe_add_partial_symtab_filename): Update.
5577 (make_source_files_completion_list): Return a VEC.
5578 * symtab.h (default_make_symbol_completion_list_break_on)
5579 (default_make_symbol_completion_list, make_symbol_completion_list)
5580 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5581 (make_source_files_completion_list): Update.
5582
5583 2012-06-13 Tom Tromey <tromey@redhat.com>
5584
5585 * breakpoint.c (add_catch_command): Use completer_ftype.
5586 * breakpoint.h: Include command.h.
5587 (add_catch_command): Use completer_ftype.
5588 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5589 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5590 Use completer_ftype.
5591 * command.h (completer_ftype): New typedef.
5592 (set_cmd_completer): Use it.
5593 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5594 completer_ftype.
5595
5596 2012-06-13 Pedro Alves <palves@redhat.com>
5597
5598 Partial revert of previous change.
5599
5600 * serial.c (scb_base): New global.
5601 (serial_for_fd): New.
5602 (serial_open, serial_fdopen_ops): Link new serial in open serials
5603 chain.
5604 (do_serial_close): Unlink serial from the open serials chain.
5605
5606 2012-06-12 Pedro Alves <palves@redhat.com>
5607
5608 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5609 threads here.
5610 (prepare_for_detach): No longer context switch here in non-stop
5611 mode.
5612 (fetch_inferior_event): Ditto.
5613 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5614 to the event thread before removing breakpoints. Switch to the
5615 event thread before inserting breakpoints and resuming.
5616 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5617 event thread before resuming.
5618 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5619 Switch to the event thread before removing breakpoints.
5620
5621 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5622
5623 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5624 special characters correctly for the Windows shells. See
5625 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5626 report.
5627 [!__MINGW32__]: Remove extra double quote character from special
5628 characters.
5629
5630 2012-06-11 Stan Shebs <stan@codesourcery.com>
5631
5632 * ui-out.h: Remove #if 0 declarations.
5633 * ui-out.c: Remove #if 0 functions.
5634
5635 2012-06-11 Pedro Alves <palves@redhat.com>
5636
5637 * ser-base.c (run_async_handler_and_reschedule): New.
5638 (fd_event, push_event): Use it.
5639 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5640 reference count to 1.
5641 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5642 instead of xfree.
5643 (serial_is_open, serial_ref, serial_unref): New.
5644 * serial.h (serial_open): Adjust comment.
5645 (serial_is_open): Declare.
5646 (serial_close): Adjust comment.
5647 (serial_ref, serial_unref) Declare.
5648 (struct serial): New field 'refcnt'.
5649
5650 2012-06-11 Pedro Alves <palves@redhat.com>
5651
5652 Remove #if 0'd "connect" command, and unnecessary associated
5653 refcounting and serial reuse bits.
5654
5655 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5656 * serial.c (last_serial_opened): Delete.
5657 (scb_base): Delete.
5658 (serial_open): Adjust.
5659 (serial_for_fd): Delete.
5660 (serial_fdopen_ops, do_serial_close): Adjust.
5661 (serial_fdopen_ops): Adjust.
5662
5663 2012-06-11 Pedro Alves <palves@redhat.com>
5664
5665 * serial.c (do_serial_close): Remove early return when SCB is
5666 null.
5667
5668 2012-06-11 Tom Tromey <tromey@redhat.com>
5669
5670 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5671
5672 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5673
5674 Fix regression by the "ambiguous linespec" series.
5675 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5676 get_last_displayed_symtab and get_last_displayed_line and depending
5677 on CURSAL.
5678
5679 2012-06-11 Tom Tromey <tromey@redhat.com>
5680
5681 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5682 (dw2_find_symbol_file): Use it.
5683
5684 2012-06-11 Michael Eager <eager@eagercon.com>
5685
5686 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5687 * mips-linux-tdep.h (mips_signals): New
5688
5689 2012-06-11 Tom Tromey <tromey@redhat.com>
5690
5691 * infrun.c (handle_inferior_event)
5692 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5693 breakpoint.
5694 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5695 exception logic in all cases. Update comments.
5696 (insert_longjmp_resume_breakpoint): Set the exception resume
5697 breakpoint.
5698
5699 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5700
5701 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5702
5703 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5704
5705 * valarith.c (binop_types_user_defined_p): Fix a typo.
5706
5707 2012-06-08 Yao Qi <yao@codesourcery.com>
5708 Chung-Lin Tang <cltang@codesourcery.com>
5709
5710 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5711 * arch-utils.h: Declare.
5712 * gdbarch.sh: Add return_in_first_hidden_param_p.
5713 * gdbarch.c, gdbarch.h: Regenerated.
5714 * infcall.c (call_function_by_hand): Call
5715 gdbarch_return_in_first_hidden_param_p instead of
5716 language_pass_by_reference.
5717
5718 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5719 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5720 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5721 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5722 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5723 `cplus_return_struct_by_reference'.
5724 (tic6x_return_value): Handle language cplusplus.
5725 (tic6x_return_in_first_hidden_param_p): New.
5726 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5727
5728 2012-06-07 Doug Evans <dje@google.com>
5729
5730 * dwarf2read.c (dwarf2_cu): Add comment.
5731
5732 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5733
5734 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5735 variable.
5736 (mips_eabi_push_dummy_call): Likewise.
5737 (mips_n32n64_push_dummy_call): Likewise.
5738 (mips_o32_push_dummy_call): Likewise.
5739 (mips_o64_push_dummy_call): Likewise.
5740
5741 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5742
5743 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5744
5745 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5746
5747 * mips-tdep.c (mips_pseudo_register_type): Use
5748 mips_float_register_p.
5749
5750 2012-06-06 Pedro Alves <palves@redhat.com>
5751
5752 * infrun.c (handle_inferior_event): Remove calls to
5753 reinit_frame_cache that follow a context_switch call.
5754
5755 2012-06-06 Pedro Alves <palves@redhat.com>
5756
5757 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5758 context_switch and remove stale comment.
5759
5760 2012-06-06 Pedro Alves <palves@redhat.com>
5761
5762 * infrun.c (struct execution_control_state): Remove
5763 `new_thread_event' field.
5764 (handle_inferior_event): Simplify new threads handling; don't
5765 resume the inferior if we find a new thread.
5766
5767 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5768
5769 * NEWS: Document the deprecation of SH's 'regs' command.
5770 * inferior.h (all_registers_info): Add function declaration.
5771 * sh-tdep.c (sh_show_regs): Remove variable.
5772 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5773 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5774 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5775 (sh_show_regs_command): Remove functions.
5776 (sh_gdbarch_init): Don't set sh_show_regs.
5777 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5778 'info all-registers'.
5779 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5780 (sh64_show_regs): Remove functions.
5781 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5782
5783 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5784
5785 * configure.ac: Move development=true below AC_INIT.
5786 * configure: Regenerate.
5787
5788 2012-06-05 Stan Shebs <stan@codesourcery.com>
5789
5790 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5791 gdb_stdout.
5792
5793 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5794
5795 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5796 argument as ssize_t.
5797 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5798 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5799 * target.c (target_read_stack, target_write_memory)
5800 (target_write_raw_memory): Likewise.
5801 * target.h (target_read_stack, target_write_memory)
5802 (target_write_raw_memory): Likewise.
5803
5804 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5805
5806 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5807 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5808 * target.c (target_read_memory): Change LEN to ssize_t.
5809 * target.h (target_read_memory): Change LEN to ssize_t.
5810
5811 2012-06-05 Pedro Alves <palves@redhat.com>
5812
5813 PR backtrace/13866
5814
5815 * breakpoint.c (until_break_command): Only fetch the selected
5816 frame after decode_line_1.
5817
5818 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5819
5820 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5821 event breakpoint at _start, __start or main if a program
5822 interpreter is not found.
5823
5824 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5825
5826 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5827 Add declaration.
5828 * windows-tdep.c: #include "objfiles.h".
5829 (windows_iterate_over_objfiles_in_search_order): New function.
5830 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5831 iterate_over_objfiles_in_search_order gdbarch method to
5832 windows_iterate_over_objfiles_in_search_order.
5833 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5834
5835 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5836
5837 * gdbarch.sh: Add generation of
5838 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5839 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5840 (iterate_over_objfiles_in_search_order): New gdbarch method.
5841 * gdbarch.h, gdbarch.c: Regenerate.
5842 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5843 Add declaration.
5844 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5845 New function.
5846 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5847 out of lookup_symbol_aux_symtabs.
5848 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5849 call to lookup_symbol_aux_objfile.
5850 (struct global_sym_lookup_data): New type.
5851 (lookup_symbol_global_iterator_cb): New function.
5852 (lookup_symbol_global): Search for symbol using
5853 gdbarch_iterate_over_objfiles_in_search_order and
5854 lookup_symbol_global_iterator_cb.
5855 * findvar.c (struct minsym_lookup_data): New type.
5856 (minsym_lookup_iterator_cb): New function.
5857 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5858 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5859 and minsym_lookup_iterator_cb.
5860
5861 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5862
5863 Revert the following patch:
5864 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5865 try locating the symbol in the symbol's own objfile first, before
5866 extending the search to all objfiles.
5867 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5868 out of lookup_symbol_aux_symtabs.
5869 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5870 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5871 Do not search EXCLUDE_OBJFILE.
5872 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5873 (lookup_symbol_global): Search for matches in the block's objfile
5874 first, before searching all other objfiles.
5875
5876 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5877
5878 * breakpoint.c (find_condition_and_thread): Stop parsing
5879 as soon as the first invalid keyword is found.
5880
5881 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5882
5883 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5884
5885 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5886
5887 * config/djgpp/djcheck.sh: Add copyright header.
5888
5889 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5890
5891 * copyright.py (update_files, main): Fix path to update-copyright
5892 script.
5893
5894 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5895
5896 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5897 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5898 for which a reminder to update by hand is printed.
5899
5900 2012-06-04 Doug Evans <dje@google.com>
5901
5902 * buildsym.c (make_blockvector): Add comment.
5903
5904 2012-06-04 Pedro Alves <palves@redhat.com>
5905
5906 * arch-utils.c (default_gdb_signal_from_target): Delete.
5907 * arch-utils.h (default_gdb_signal_from_target): Delete.
5908 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5909 gdbarch_gdb_signal_from_target_p.
5910 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5911 predicate).
5912 * gdbarch.h: Regenerate.
5913 * gdbarch.c: Regenerate.
5914
5915 2012-06-04 Pedro Alves <palves@redhat.com>
5916
5917 * gdbarch.sh (gdb_signal_from_target): Mention that the
5918 implementation of the method must be host independent.
5919 * gdbarch.h: Regenerate.
5920
5921 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5922
5923 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5924 parameters.
5925 (target_read_memory_bfd): New function.
5926 (symbol_file_add_from_memory): Use it.
5927
5928 2012-06-03 Doug Evans <dje@google.com>
5929
5930 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5931 of primary symtab.
5932 (basic_lookup_transparent_type): Ditto.
5933
5934 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5935 (ALL_PRIMARY_SYMTABS): Use it.
5936 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5937 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5938 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5939 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5940 (basic_lookup_transparent_type): Ditto.
5941
5942 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5943
5944 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5945 it to optimize resolution of demangled name.
5946
5947 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5948
5949 * configure.ac (development): Define new variable.
5950 Call AC_CHECK_LIB for mcheck if $development.
5951 (ERROR_ON_WARNING): Enable it by default only if $development.
5952 * config.in: Regenerate.
5953 * configure: Regenerate.
5954
5955 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5956
5957 * target.c (target_read_memory): Make LEN argument as size_t.
5958 * target.h (target_read_memory): Likewise.
5959
5960 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5961
5962 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5963
5964 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5965
5966 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5967 BookE interface for PowerPC server processors if not available
5968 in the Linux Kernel.
5969
5970 2012-05-31 Keith Seitz <keiths@redhat.com>
5971
5972 * linespec.c (decode_objc): Add cleanup to free
5973 INFO.FILE_SYMTABS.
5974 (find_linespec_symbols): Add cleanup to free CLASSES.
5975 * symfile.c (find_separate_debug_file_by_debuglink): Add
5976 cleanup to free DEBUGLINK.
5977 * ui-out.c (clear_header_list): No need to check if
5978 HEADER_NEXT.COLHDR is NULL.
5979 Free HEADER_NEXT.COL_NAME.
5980
5981 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5982
5983 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5984 warning.
5985
5986 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5987
5988 * configure.host (gdb_host_cpu): Handle tilegx*.
5989 (gdb_host): Handle tilegx-*-linux*.
5990 * tilegx-linux-nat.c: New file.
5991 * config/tilegx/linux.mh: New file.
5992
5993 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5994
5995 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5996 tilegx-linux-tdep.o.
5997 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5998 tilegx-linux-tdep.c.
5999 * configure.tgt: Handle tilegx-*-linux*.
6000 * tilegx-tdep.h: New file.
6001 * tilegx-tdep.c: New file.
6002 * tilegx-linux-tdep.c: New file.
6003 * regformats/reg-tilegx.dat: New file.
6004
6005 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6006
6007 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6008 accounting of hw watchpoints on ppc.
6009
6010 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6011
6012 * source.c (openp): Expand tilde in path entries.
6013
6014 2012-05-29 Doug Evans <dje@google.com>
6015
6016 * buildsym.c (block_compar): Fix comment.
6017 (end_symtab): Fix and clarify some comments.
6018
6019 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6020 cleanup_undefined_types.
6021 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6022 All callers updated.
6023
6024 2012-05-29 Tom Tromey <tromey@redhat.com>
6025
6026 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6027 fails.
6028 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6029 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6030 fails.
6031 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6032 fails.
6033
6034 2012-05-29 Tristan Gingold <gingold@adacore.com>
6035
6036 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6037 (struct darwin_info): ... New struct.
6038 (solib_darwin_pspace_data): New variable.
6039 (darwin_pspace_data_cleanup): New function.
6040 (get_darwin_info): Likewise.
6041 (darwin_dyld_version_ok, darwin_load_image_infos)
6042 (darwin_solib_get_all_image_info_addr_at_init)
6043 (darwin_solib_read_all_image_info_addr): Add info argument.
6044 Adjust code.
6045 (darwin_current_sos): Use per pspace structure.
6046 (darwin_solib_create_inferior_hook): Likewise.
6047 (darwin_clear_solib): Likewise.
6048 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6049
6050 2012-05-28 Pedro Alves <palves@redhat.com>
6051
6052 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6053 block that uses them. Clear ecss before handling each event.
6054
6055 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6056
6057 * solib-svr4.c (svr4_current_sos): New comment on
6058 svr4_current_sos_via_xfer_libraries fall back.
6059
6060 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6061
6062 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6063 it as a fallback for TYPE_IS_OPAQUE.
6064 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6065 symbols for lookup_symbol.
6066
6067 2012-05-24 John Steele Scott <toojays@toojays.net>
6068
6069 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6070 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6071 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6072 (check_producer): ... this new function, which also checks for ICC
6073 and caches the result.
6074 (producer_is_icc): New function.
6075 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6076 producer was ICC.
6077
6078 2012-05-24 Pedro Alves <palves@redhat.com>
6079
6080 PR gdb/7205
6081
6082 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6083 (default_gdb_signal_to_target): ... this. Add comment.
6084 (default_gdb_signal_from_host): Rename to ...
6085 (default_gdb_signal_from_target): ... this. Add comment.
6086 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6087 (default_gdb_signal_to_target): ... this.
6088 (default_gdb_signal_from_host): Rename to ...
6089 (default_gdb_signal_from_target): ... this.
6090 * corelow.c (core_open): Adjust to naming change. Replace comment.
6091 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6092 (gdb_signal_from_target): ... this. Adjust to
6093 default_gdb_signal_from_host naming change. Extend comment.
6094 (gdb_signal_to_host): Rename to ...
6095 (gdb_signal_to_target): ... this. Adjust to
6096 default_gdb_signal_to_host naming change.
6097 * gdbarch.h, gdbarch.c: Renegerate.
6098
6099 2012-05-24 Pedro Alves <palves@redhat.com>
6100
6101 PR gdb/7205
6102
6103 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6104
6105 2012-05-24 Pedro Alves <palves@redhat.com>
6106
6107 PR gdb/7205
6108
6109 Replace target_signal with gdb_signal throughout.
6110
6111 2012-05-24 Pedro Alves <palves@redhat.com>
6112
6113 PR tui/14159
6114
6115 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6116 string, instead of reusing the va_list argument.
6117
6118 2012-05-24 Tom Tromey <tromey@redhat.com>
6119
6120 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6121 Remove.
6122
6123 2012-05-23 Doug Evans <dje@google.com>
6124
6125 * symtab.c (search_symbols): Formatting fixes.
6126 (print_symbol_info): Formatting fixes.
6127
6128 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6129 int64_t change to leb128 API.
6130 (read_encoded_value, decode_frame_entry_1): Ditto.
6131 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6132 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6133 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6134 (execute_stack_op): Ditto.
6135 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6136 (safe_read_uleb128, safe_read_sleb128): Ditto.
6137 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6138 (dwarf2_compile_expr_to_ax): Ditto.
6139 (locexpr_describe_location_piece): Ditto.
6140 (disassemble_dwarf_expression): Ditto.
6141 (locexpr_describe_location_1): Ditto.
6142
6143 2012-05-23 Stan Shebs <stan@codesourcery.com>
6144 Kwok Cheung Yeung <kcy@codesourcery.com>
6145
6146 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6147 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6148 (mi-cmd-info.o): New rule.
6149 * osdata.h (info_osdata_command): New declaration.
6150 * osdata.c (info_osdata_command): Change to non-static.
6151 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6152 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6153 * mi/mi-cmd-info.c: New file.
6154
6155 2012-05-23 Doug Evans <dje@google.com>
6156
6157 * symtab.c (search_symbols): Pass NULL for file_matcher to
6158 expand_symtabs_matching if there are no files to match.
6159
6160 * gdbtypes.c (lookup_typename): Simplify.
6161
6162 2012-05-23 Pedro Alves <palves@redhat.com>
6163
6164 * arch-utils.h (default_target_signal_to_host): Delete.
6165 * arch-utils.c (default_target_signal_to_host): Delete.
6166 * gdbarch.sh (target_signal_to_host): Remove.
6167 * gdbarch.h, gdbarch.c: Regenerate.
6168
6169 2012-05-22 Doug Evans <dje@google.com>
6170
6171 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6172 "const gdb_byte *".
6173 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6174 (execute_cfa_program): Update to match API of leb128 functions.
6175 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6176 "const gdb_byte *".
6177 (read_unsigned_leb128, read_signed_leb128): Delete.
6178 (read_initial_length): Change type of buf argument to
6179 "const gdb_byte *".
6180 (read_encoded_value): Update to match API of leb128 functions.
6181 (decode_frame_entry): Change result to "const gdb_byte *", and
6182 similarly for "start" parameter.
6183 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6184 (dwarf2_build_frame_info): Change local frame_ptr to
6185 "const gdb_byte *".
6186 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6187 read_uleb128, read_sleb128. All callers updated.
6188 (safe_skip_leb128): New function.
6189 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6190 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6191 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6192 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6193 read_uleb128, read_sleb128.
6194 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6195 (execute_stack_op): Update to match API of leb128 functions.
6196 * dwarf2expr.h: #include "leb128.h".
6197 (read_uleb128, read_sleb128): Delete.
6198 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6199 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6200 * dwarf2loc.c (debug_loc_kind): New enum.
6201 (decode_debug_loc_addresses): New function.
6202 (decode_debug_loc_dwo_addresses): New function.
6203 (dwarf2_find_location_expression): Rewrite.
6204 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6205 (locexpr_describe_location_piece): Ditto.
6206 (disassemble_dwarf_expression): Ditto.
6207 (locexpr_describe_location_1): Ditto.
6208 (loclist_describe_location): Rewrite.
6209 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6210 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6211 (dwarf2_section_buffer_overflow_complaint): Renamed from
6212 dwarf2_macros_too_long_complaint. All callers updated.
6213 (skip_leb128): Delete.
6214 (init_cu_die_reader): Initialize reader->buffer_end.
6215 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6216 (skip_form_bytes): New arg buffer_end. All callers updated.
6217 Replace call to skip_leb128 with gdb_skip_leb128.
6218 (skip_unknown_opcode): New arg mac_end. All callers updated.
6219 (fill_in_loclist_baton): Initialize baton->from_dwo.
6220
6221 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6222
6223 * mips-linux-nat.c (mips_linux_read_description): Use a more
6224 verbose error message.
6225
6226 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6227
6228 * NEWS: Add MIPS/Linux DSP support.
6229 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6230 (SIGCONTEXT_DSPCTL): New macro.
6231 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6232 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6233 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6234 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6235 (N64_SIGCONTEXT_HI3): Likewise.
6236 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6237 (N64_SIGCONTEXT_LO3): Likewise.
6238 (N64_SIGCONTEXT_DSPCTL): Likewise.
6239 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6240 (mips_linux_o32_sigframe_init): Handle DSP registers.
6241 (mips_linux_n32n64_sigframe_init): Likewise.
6242
6243 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6244
6245 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6246 call to abort.
6247
6248 2012-05-22 Pedro Alves <palves@redhat.com>
6249
6250 * target.h (store_waitstatus): Move declaration ...
6251 * inf-child.h (store_waitstatus): ... here.
6252 * target.c: Move inclusion of gdb_wait.h, and ...
6253 (store_waitstatus): ... this ...
6254 * inf-child.c: ... here.
6255 * linux-nat.c: Include inf-child.h.
6256 * rs6000-nat.c: Include inf-child.h.
6257 * spu-linux-nat.c: Include inf-child.h.
6258
6259 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6260
6261 * tracepoint.c (start_tracing): Add missing i18n markup.
6262 (stop_tracing, set_trace_user): Ditto.
6263 (set_trace_notes, set_trace_stop_notes): Ditto.
6264
6265 2012-05-21 Tom Tromey <tromey@redhat.com>
6266
6267 PR c++/7173:
6268 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6269 types.
6270 * value.h (value_cast_pointers): Update.
6271 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6272 (value_cast): Update.
6273 (update_search_result): New function.
6274 (do_search_struct_field): New, from search_struct_field. Check
6275 for ambiguous results.
6276 (search_struct_field): Rewrite.
6277 * infcall.c (value_arg_coerce): Update.
6278 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6279 value_cast_pointers.
6280 * ada-lang.c (ada_convert_actual): Update.
6281
6282 2012-05-21 Tom Tromey <tromey@redhat.com>
6283
6284 * macroexp.c (macro_stringify): Terminate the string.
6285
6286 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6287
6288 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6289 Describe it.
6290 * auto-load.c (auto_load_expand_dir_vars): New function.
6291 (auto_load_safe_path_vec_update): Use it, remove the
6292 substitute_path_component call thanks to it.
6293 (auto_load_objfile_script): Remove the debug_file_directory processing.
6294 Use auto_load_expand_dir_vars, remove the substitute_path_component
6295 call thanks to it.
6296 * configure: Regenerate.
6297 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6298 path. Escape $ also for $debugdir.
6299 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6300 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6301
6302 2012-05-20 Doug Evans <dje@google.com>
6303
6304 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6305 before use. Check for symtab->includes == NULL before scanning it.
6306
6307 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6308
6309 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6310
6311 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6312
6313 * NEWS: Add microMIPS support and "set mips compression",
6314 "show mips compression" commands.
6315 * mips-tdep.h (mips_isa): New enum.
6316 (gdbarch_tdep): Add mips_isa.
6317 (mips_pc_is_mips16): Update prototype.
6318 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6319 * mips-tdep.c (mips_compression_mips16): New variable.
6320 (mips_compression_micromips): Likewise.
6321 (mips_compression_strings): Likewise.
6322 (mips_compression_string): Likewise.
6323 (is_mips16_isa, is_micromips_isa): New functions.
6324 (is_mips16_addr): Rename to...
6325 (is_compact_addr): ... this.
6326 (unmake_mips16_addr): Likewise to...
6327 (unmake_compact_addr): ... this.
6328 (make_mips16_addr): Likewise to...
6329 (make_compact_addr): ... this.
6330 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6331 functions.
6332 (mips_elf_make_msymbol_special): Handle microMIPS code.
6333 (msymbol_is_special): Rename to...
6334 (msymbol_is_mips16): ... this.
6335 (mips_make_symbol_special, mips_pc_is_mips16): Update
6336 accordingly.
6337 (msymbol_is_mips, msymbol_is_micromips): New functions.
6338 (mips16_to_32_reg): Rename to...
6339 (mips_reg3_to_reg): ... this.
6340 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6341 (mips_pc_isa): Likewise.
6342 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6343 code.
6344 (mips_fetch_instruction): Pass return status instead of printing
6345 an error message if requested. Handle microMIPS code. Bail out
6346 on an invalid ISA.
6347 (micromips_op): New macro.
6348 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6349 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6350 (b6s4_op, b7s3_reg): Likewise.
6351 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6352 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6353 (mips_insn_size): New function.
6354 (mips32_next_pc): Update mips_fetch_instruction call.
6355 (micromips_relative_offset7): New function.
6356 (micromips_relative_offset10): Likewise.
6357 (micromips_relative_offset16): Likewise.
6358 (micromips_pc_insn_size): Likewise.
6359 (micromips_bc1_pc): Likewise.
6360 (micromips_next_pc): Likewise.
6361 (unpack_mips16): Update mips_fetch_instruction call.
6362 (extended_mips16_next_pc): Update according to change to
6363 mips16_to_32_reg.
6364 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6365 code.
6366 (mips16_scan_prologue): Update mips_fetch_instruction call.
6367 Update according to change to mips16_to_32_reg.
6368 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6369 (mips_insn16_frame_base_sniffer): Likewise.
6370 (micromips_decode_imm9): New function.
6371 (micromips_scan_prologue): Likewise.
6372 (mips_micro_frame_cache): Likewise.
6373 (mips_micro_frame_this_id): Likewise.
6374 (mips_micro_frame_prev_register): Likewise.
6375 (mips_micro_frame_sniffer): Likewise.
6376 (mips_micro_frame_unwind): New variable.
6377 (mips_micro_frame_base_address): New function.
6378 (mips_micro_frame_base): New variable.
6379 (mips_micro_frame_base_sniffer): New function.
6380 (mips32_scan_prologue): Update mips_fetch_instruction call.
6381 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6382 rather than for MIPS16.
6383 (mips_insn32_frame_base_sniffer): Likewise.
6384 (mips_addr_bits_remove): Handle microMIPS code.
6385 (deal_with_atomic_sequence): Rename to...
6386 (mips_deal_with_atomic_sequence): ... this. Update the type
6387 of the variable used to hold an instruction. Remove the ISA bit
6388 check. Update mips_fetch_instruction call.
6389 (micromips_deal_with_atomic_sequence): New function.
6390 (deal_with_atomic_sequence): Likewise.
6391 (mips_about_to_return): Handle microMIPS code. Update
6392 mips_fetch_instruction call.
6393 (heuristic_proc_start): Check for the standard MIPS ISA rather
6394 than for MIPS16. Update mips_pc_is_mips16 and
6395 mips_fetch_instruction calls. Handle microMIPS code.
6396 (mips_push_dummy_code): Handle microMIPS code.
6397 (mips_eabi_push_dummy_call): Likewise.
6398 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6399 (mips_o64_push_dummy_call): Handle microMIPS code.
6400 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6401 (is_delayed): Remove function.
6402 (mips_single_step_through_delay): Replace the call to is_delayed
6403 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6404 Handle microMIPS code.
6405 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6406 microMIPS code.
6407 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6408 call.
6409 (micromips_in_function_epilogue_p): New function.
6410 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6411 call.
6412 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6413 Handle microMIPS.
6414 (gdb_print_insn_mips): Likewise.
6415 (mips_breakpoint_from_pc): Likewise.
6416 (mips_remote_breakpoint_from_pc): New function.
6417 (mips32_instruction_has_delay_slot): Simplify making use of the
6418 updated mips_fetch_instruction interface.
6419 (micromips_instruction_has_delay_slot): New function.
6420 (mips16_instruction_has_delay_slot): Simplify making use of the
6421 updated mips_fetch_instruction interface.
6422 (mips_adjust_breakpoint_address): Check for the standard MIPS
6423 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6424 calls. Handle microMIPS code.
6425 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6426 (mips_skip_trampoline_code): Handle microMIPS code.
6427 (global_mips_compression): New function.
6428 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6429 file flags. Register the microMIPS remote breakpoint handler
6430 and heuristic frame unwinder.
6431 (show_mips_compression): New function.
6432 (_initialize_mips_tdep): Add the "set mips compression" and
6433 "show mips compression" commands.
6434
6435 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6436
6437 * ada-lang.c:
6438 * ada-tasks.c:
6439 * ada-varobj.c:
6440 * amd64-darwin-tdep.c:
6441 * arm-symbian-tdep.c:
6442 * arm-tdep.c:
6443 * avr-tdep.c:
6444 * ax-gdb.c:
6445 * bfin-linux-tdep.c:
6446 * breakpoint.c:
6447 * c-valprint.c:
6448 * cli/cli-cmds.c:
6449 * coffread.c:
6450 * cp-support.c:
6451 * cris-tdep.c:
6452 * dwarf2-frame-tailcall.c:
6453 * dwarf2-frame.c:
6454 * dwarf2expr.c:
6455 * dwarf2loc.c:
6456 * dwarf2read.c:
6457 * elfread.c:
6458 * eval.c:
6459 * expprint.c:
6460 * f-valprint.c:
6461 * frv-tdep.c:
6462 * h8300-tdep.c:
6463 * hppa-hpux-tdep.c:
6464 * hppa-tdep.c:
6465 * hppanbsd-tdep.c:
6466 * i386-nto-tdep.c:
6467 * i386-tdep.c:
6468 * i387-tdep.c:
6469 * ia64-tdep.c:
6470 * jit.c:
6471 * linespec.c:
6472 * linux-tdep.c:
6473 * lm32-tdep.c:
6474 * m2-valprint.c:
6475 * m32c-tdep.c:
6476 * m32r-rom.c:
6477 * m32r-tdep.c:
6478 * m68k-tdep.c:
6479 * m68klinux-tdep.c:
6480 * mi/mi-main.c:
6481 * microblaze-tdep.c:
6482 * mips-linux-tdep.c:
6483 * mips-tdep.c:
6484 * mn10300-tdep.c:
6485 * p-valprint.c:
6486 * parse.c:
6487 * ppc-linux-tdep.c:
6488 * ppc-sysv-tdep.c:
6489 * printcmd.c:
6490 * python/py-finishbreakpoint.c:
6491 * python/py-inferior.c:
6492 * python/py-infthread.c:
6493 * python/py-type.c:
6494 * python/python.c:
6495 * remote-fileio.c:
6496 * remote-m32r-sdi.c:
6497 * remote-mips.c:
6498 * reverse.c:
6499 * rl78-tdep.c:
6500 * rs6000-aix-tdep.c:
6501 * rs6000-tdep.c:
6502 * s390-tdep.c:
6503 * score-tdep.c:
6504 * sh64-tdep.c:
6505 * skip.c:
6506 * solib-darwin.c:
6507 * solib-dsbt.c:
6508 * solib-frv.c:
6509 * sparc-tdep.c:
6510 * spu-multiarch.c:
6511 * spu-tdep.c:
6512 * stack.c:
6513 * symfile.c:
6514 * symtab.c:
6515 * tic6x-tdep.c:
6516 * tracepoint.c:
6517 * v850-tdep.c:
6518 * valarith.c:
6519 * valprint.c:
6520 * value.c:
6521 * xcoffread.c:
6522 * xtensa-tdep.c:
6523 * ada-lang.c:
6524 * ada-tasks.c:
6525 * ada-varobj.c:
6526 * amd64-darwin-tdep.c:
6527 * arm-symbian-tdep.c:
6528 * arm-tdep.c: Delete unused variables.
6529
6530 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6531
6532 Rename $ddir to $datadir.
6533 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6534 * auto-load.c (auto_load_safe_path_vec_update)
6535 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6536 * configure: Regenerate.
6537 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6538 Likewise. Remove the 'use $ddir' help string.
6539
6540 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6541
6542 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6543 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6544
6545 2012-05-18 Tom Tromey <tromey@redhat.com>
6546
6547 PR exp/13907:
6548 * valprint.h (struct value_print_options) <symbol_print>: New
6549 field.
6550 * valprint.c (user_print_options): Add default for symbol_print.
6551 (show_symbol_print): New function.
6552 (generic_val_print): Respect symbol_print.
6553 (_initialize_valprint): Add "print symbol" setting.
6554 * f-valprint.c (f_val_print): Respect symbol_print.
6555 * c-valprint.c (c_val_print): Respect symbol_print.
6556 * NEWS: Update.
6557 * printcmd.c (print_address_symbolic): Return int. Ignore some
6558 zero-size symbols.
6559 (print_address_demangle): Return int.
6560 * defs.h: (print_address_symbolic): Return int.
6561 * value.h (print_address_demangle): Return int.
6562
6563 2012-05-18 Tom Tromey <tromey@redhat.com>
6564
6565 * valprint.c (val_print_string): Don't print leading space.
6566 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6567 print space before string or vtbl.
6568 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6569 before string.
6570 * jv-valprint.c (java_value_print): Print space before string.
6571 * go-valprint.c (print_go_string): Print space before string.
6572 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6573 space before string.
6574 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6575 space before string or vtbl.
6576 * auxv.c (fprint_target_auxv): Print space after address.
6577
6578 2012-05-18 Tom Tromey <tromey@redhat.com>
6579
6580 * printcmd.c (print_address_demangle): Remove special case for 0.
6581
6582 2012-05-18 Tom Tromey <tromey@redhat.com>
6583
6584 * printcmd.c (print_address_demangle): Add 'opts' argument.
6585 * p-valprint.c (pascal_val_print): Update.
6586 * jv-valprint.c (java_val_print): Update.
6587 * value.h: Update.
6588 * valprint.c (generic_val_print): Update.
6589 (print_function_pointer_address): Add 'options' argument. Remove
6590 'addressprint' argument. Update.
6591 * m2-valprint.c (print_unpacked_pointer): Update.
6592 * gnu-v3-abi.c (print_one_vtable): Update.
6593 (gnuv3_print_method_ptr): Update.
6594 * f-valprint.c (f_val_print): Update.
6595 * cp-valprint.c (cp_print_value_fields): Update.
6596 * valprint.h (print_function_pointer_address): Update.
6597 * c-valprint.c (c_val_print): Update.
6598
6599 2012-05-18 Tom Tromey <tromey@redhat.com>
6600
6601 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6602 directly corresponding to the found psymtab.
6603 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6604 (dw2_find_pc_sect_symtab): Use it.
6605 * block.h (blockvector_contains_pc): Declare.
6606 * block.c (find_block_in_blockvector): New function.
6607 (blockvector_for_pc_sect): Use it.
6608 (blockvector_contains_pc): New function.
6609
6610 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6611
6612 * mips-tdep.h (mips_write_pc): New prototype.
6613 * mips-tdep.c (mips_write_pc): Make external, add description.
6614 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6615 add description.
6616
6617 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6618
6619 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6620 mips_regnum->pc.
6621 (mips_unwind_pc, mips_write_pc): Likewise.
6622 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6623 gdbarch_read_pc.
6624
6625 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6626
6627 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6628 proc_warn, proc_error, proc_get_status, proc_flags,
6629 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6630 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6631 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6632 proc_stop_process, proc_wait_for_stop, proc_run_process,
6633 proc_set_traced_signals, proc_set_traced_faults,
6634 proc_set_traced_sysentry, proc_set_traced_sysexit,
6635 proc_set_held_signals, proc_get_held_signals,
6636 proc_get_traced_signals, proc_get_traced_faults,
6637 proc_get_traced_sysentry, proc_get_traced_sysexit,
6638 proc_clear_current_fault, proc_set_current_signal,
6639 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6640 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6641 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6642 proc_get_current_thread, proc_get_current_thread,
6643 proc_get_current_thread, proc_update_threads,
6644 proc_update_threads, proc_update_threads, proc_update_threads,
6645 proc_iterate_over_threads, procfs_find_new_threads,
6646 procfs_pid_to_str): Make static. Remove advance declaration.
6647 (proc_cursig): Make static. Conditionalized defintion on
6648 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6649 (proc_syscall, proc_set_kill_on_last_close,
6650 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6651 proc_get_pending_signals, proc_get_signal_actions,
6652 proc_trace_signal, proc_ignore_signal): Delete.
6653
6654 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6655
6656 * coffread.c (cs_section_address): Passing proper argument for
6657 `bfd_get_section_vma'.
6658 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6659 `bfd_get_section_flags'.
6660 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6661 `bfd_get_section_vma'.
6662
6663 2012-05-16 Tom Tromey <tromey@redhat.com>
6664
6665 PR macros/13205:
6666 * macrotab.h: (macro_define_special): Declare.
6667 (enum macro_special_kind): New.
6668 (struct macro_definition) <argc, replacement>: Update comments.
6669 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6670 (macro_define_object_internal): New function.
6671 (macro_define_object): Use it.
6672 (macro_define_special): New function.
6673 (fixup_definition): New function.
6674 (macro_lookup_definition, foreach_macro_in_scope)
6675 (foreach_macro): Use fixup_definition.
6676 * macroexp.h (macro_stringify): Declare.
6677 * macroexp.c (free_buffer_return_text): New function.
6678 (stringify): Constify "arg".
6679 (macro_stringify): New function.
6680 * dwarf2read.c (macro_start_file): Call macro_define_special.
6681
6682 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6683 Maciej W. Rozycki <macro@mips.com>
6684
6685 * breakpoint.h (bp_location): Add related_address member.
6686 * inferior.h (get_return_value): Take a pointer to struct value
6687 instead of struct type for the function requested.
6688 * value.h (using_struct_return): Likewise.
6689 * gdbarch.sh (return_value): Take a pointer to struct value
6690 instead of struct type for the function requested.
6691 * breakpoint.c (set_breakpoint_location_function): Initialize
6692 related_address for bp_gnu_ifunc_resolver breakpoints.
6693 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6694 requested function's address to gdbarch_return_value.
6695 * eval.c (evaluate_subexp_standard): Pass the requested
6696 function's address to using_struct_return.
6697 * infcall.c (call_function_by_hand): Pass the requested
6698 function's address to using_struct_return and
6699 gdbarch_return_value.
6700 * infcmd.c (get_return_value): Take a pointer to struct value
6701 instead of struct type for the function requested.
6702 (print_return_value): Update accordingly.
6703 (finish_command_continuation): Likewise.
6704 * stack.c (return_command): Pass the requested function's
6705 address to using_struct_return and gdbarch_return_value.
6706 * value.c (using_struct_return): Take a pointer to struct value
6707 instead of struct type for the function requested. Pass the
6708 requested function's address to gdbarch_return_value.
6709 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6710 New function_value member, replacing function_type.
6711 (bpfinishpy_dealloc): Update accordingly.
6712 (bpfinishpy_pre_stop_hook): Likewise.
6713 (bpfinishpy_init): Likewise. Record the requested function's
6714 address.
6715 * mips-tdep.c (mips_fval_reg): New enum.
6716 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6717 words put in GP registers.
6718 (mips_o64_push_dummy_call): Update a comment.
6719 (mips_o32_return_value): Take a pointer to struct value instead
6720 of struct type for the function requested and use it to check if
6721 using the MIPS16 calling convention. Return the designated
6722 general purpose registers for floating-point values returned in
6723 MIPS16 mode.
6724 (mips_o64_return_value): Likewise.
6725 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6726 (ppc_sysv_abi_broken_return_value): Likewise.
6727 (ppc64_sysv_abi_return_value): Likewise.
6728 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6729 value instead of struct type for the function requested.
6730 * amd64-tdep.c (amd64_return_value): Likewise.
6731 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6732 * arm-tdep.c (arm_return_value): Likewise.
6733 * avr-tdep.c (avr_return_value): Likewise.
6734 * bfin-tdep.c (bfin_return_value): Likewise.
6735 * cris-tdep.c (cris_return_value): Likewise.
6736 * frv-tdep.c (frv_return_value): Likewise.
6737 * h8300-tdep.c (h8300_return_value): Likewise.
6738 (h8300h_return_value): Likewise.
6739 * hppa-tdep.c (hppa32_return_value): Likewise.
6740 (hppa64_return_value): Likewise.
6741 * i386-tdep.c (i386_return_value): Likewise.
6742 * ia64-tdep.c (ia64_return_value): Likewise.
6743 * iq2000-tdep.c (iq2000_return_value): Likewise.
6744 * lm32-tdep.c (lm32_return_value): Likewise.
6745 * m32c-tdep.c (m32c_return_value): Likewise.
6746 * m32r-tdep.c (m32r_return_value): Likewise.
6747 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6748 * m68k-tdep.c (m68k_return_value): Likewise.
6749 (m68k_svr4_return_value): Likewise.
6750 * m88k-tdep.c (m88k_return_value): Likewise.
6751 * mep-tdep.c (mep_return_value): Likewise.
6752 * microblaze-tdep.c (microblaze_return_value): Likewise.
6753 * mn10300-tdep.c (mn10300_return_value): Likewise.
6754 * moxie-tdep.c (moxie_return_value): Likewise.
6755 * mt-tdep.c (mt_return_value): Likewise.
6756 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6757 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6758 (ppc_sysv_abi_broken_return_value): Likewise.
6759 (ppc64_sysv_abi_return_value): Likewise.
6760 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6761 * rl78-tdep.c (rl78_return_value): Likewise.
6762 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6763 * rx-tdep.c (rx_return_value): Likewise.
6764 * s390-tdep.c (s390_return_value): Likewise.
6765 * score-tdep.c (score_return_value): Likewise.
6766 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6767 (sh_return_value_fpu): Likewise.
6768 * sh64-tdep.c (sh64_return_value): Likewise.
6769 * sparc-tdep.c (sparc32_return_value): Likewise.
6770 * sparc64-tdep.c (sparc64_return_value): Likewise.
6771 * spu-tdep.c (spu_return_value): Likewise.
6772 * tic6x-tdep.c (tic6x_return_value): Likewise.
6773 * v850-tdep.c (v850_return_value): Likewise.
6774 * vax-tdep.c (vax_return_value): Likewise.
6775 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6776 * xtensa-tdep.c (xtensa_return_value): Likewise.
6777 * gdbarch.c: Regenerate.
6778 * gdbarch.h: Regenerate.
6779
6780 2012-05-15 Tom Tromey <tromey@redhat.com>
6781
6782 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6783
6784 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6785
6786 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6787 of command in two error message.
6788
6789 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6790
6791 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6792
6793 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6794
6795 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6796
6797 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6798
6799 * NEWS (show auto-load scripts-directory): Add forgotten command.
6800
6801 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6802
6803 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6804 parameters.
6805
6806 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6807
6808 * amd64-tdep.c: Include features/i386/x32.c and
6809 features/i386/x32-avx.c.
6810 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6811 initialize_tdesc_x32_avx.
6812
6813 2012-05-14 Stan Shebs <stan@codesourcery.com>
6814
6815 Add dynamic printf.
6816 * breakpoint.h (enum bptype): New type bp_dprintf.
6817 (struct breakpoint): New field extra_string.
6818 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6819 (create_breakpoint): Add extra_string arg.
6820 * breakpoint.c (dprintf_breakpoint_ops): New.
6821 (is_breakpoint): Add bp_dprintf.
6822 (bpstat_what): Add dprintf case.
6823 (bptype_string): Ditto.
6824 (print_one_breakpoint_location): Ditto.
6825 (init_bp_location): Ditto.
6826 (bkpt_print_mention): Ditto.
6827 (dprintf_style_enums): New array.
6828 (dprintf_style): New global.
6829 (dprintf_function): New global.
6830 (dprintf_channel): New global.
6831 (update_dprintf_command_list): New function.
6832 (update_dprintf_commands): New function.
6833 (init_breakpoint_sal): Add extra_string argument, handle it.
6834 (create_breakpoint_sal): Add extra_string argument.
6835 (create_breakpoints_sal): Add extra_string argument, update callers.
6836 (find_condition_and_thread): Add extra argument.
6837 (create_breakpoint): Add extra_string argument, record it.
6838 (dprintf_command): New function.
6839 (break_command_1): Add arg to create_breakpoint call.
6840 (handle_gnu_v3_exceptions): Ditto.
6841 (trace_command): Ditto.
6842 (ftrace_command): Ditto.
6843 (strace_command): Ditto.
6844 (bkpt_print_mention): Add dprintf case.
6845 (create_breakpoint_sal_default): Add extra_string argument.
6846 (_initialize_breakpoint): Add new commands.
6847 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6848 * python/py-breakpoint.c (bppy_init): Ditto.
6849 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6850
6851 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6852
6853 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6854
6855 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6856
6857 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6858 unsigned long long.
6859
6860 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6861
6862 Add a new function gdb.find_pc_line to the Python API.
6863 * NEWS (Python Scripting): Add entry about the new function.
6864 * python/python.c (gdbpy_find_pc_line): New function which
6865 implements gdb.find_pc_line.
6866 (GdbMethods): Add entry for the new function.
6867
6868 2012-05-12 Pedro Alves <palves@redhat.com>
6869
6870 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6871 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6872
6873 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6874
6875 * inferior.c: Include completer.h
6876 (initialize_inferiors): Set completer of add-inferior to
6877 filename_completer.
6878
6879 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6880
6881 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6882 gdbarch_ptr_bit for x32 core dump.
6883
6884 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6885
6886 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6887 and features/i386/x32-avx-linux.c.
6888
6889 2012-05-11 Stan Shebs <stan@codesourcery.com>
6890 Kwok Cheung Yeung <kcy@codesourcery.com>
6891
6892 * NEWS: Describe new info os commands.
6893 * common/linux-osdata.c (PID_T, TIME_T): Define.
6894 (MAX_PID_T_STRLEN): New.
6895 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6896 MAX_PID_T_STRLEN.
6897 (command_from_pid): Add comment. Change to use PID_T.
6898 (commandline_from_pid): Change to use PID_T.
6899 (user_from_pid): Add comment.
6900 (get_process_owner): Add comment. Change to use PID_T and
6901 MAX_PID_T_STRLEN.
6902 (get_number_of_cpu_cores): Add comment.
6903 (get_cores_used_by_process): Add comment. Change to use PID_T and
6904 MAX_PID_T_STRLEN.
6905 (linux_xfer_osdata_processes): Change to use PID_T and
6906 MAX_PID_T_STRLEN.
6907 (compare_processes): New function.
6908 (linux_xfer_osdata_processgroups): New function.
6909 (linux_xfer_osdata_threads): Change to use PID_T.
6910 (linux_xfer_osdata_fds): New function.
6911 (format_socket_state, print_sockets): New functions.
6912 (union socket_addr): New union.
6913 (linux_xfer_osdata_isockets): New function.
6914 (time_from_time_t, group_from_gid): New functions.
6915 (linux_xfer_osdata_shm): New function.
6916 (linux_xfer_osdata_sem): New function.
6917 (linux_xfer_osdata_msg): New function.
6918 (linux_xfer_osdata_modules): New function.
6919 (osdata_table): Add new entries.
6920 * common/buffer.c (buffer_xml_printf): Add support for long and
6921 long long format specifiers.
6922
6923 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6924
6925 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6926 (tdesc_x32_avx_linux): Likewise.
6927
6928 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6929
6930 Implement multi-component --with-auto-load-dir.
6931 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6932 entries.
6933 (--with-auto-load-safe-path): Update the default value description.
6934 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6935 New.
6936 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6937 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6938 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6939 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6940 "set auto-load scripts-directory".
6941 * config.in: Regenerate.
6942 * configure: Regenerate.
6943 * configure.ac (--with-auto-load-dir): New configure option.
6944 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6945
6946 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6947
6948 Provide $ddir substitution for --with-auto-load-safe-path.
6949 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6950 entries.
6951 * auto-load.c: Include observer.h.
6952 (auto_load_safe_path_vec_update): Call substitute_path_component for
6953 each component. New variable ddir_subst.
6954 (auto_load_gdb_datadir_changed): New function.
6955 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6956 AUTO_LOAD_SAFE_PATH. New comment.
6957 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6958 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6959 * config.in: Regenerate.
6960 * configure: Regenerate.
6961 * configure.ac (--auto-load-safe-path): Rename
6962 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6963 GDB_DATADIR/auto-load.
6964 * defs.h (substitute_path_component): New declaration.
6965 * top.c: Include observer.h.
6966 (set_gdb_datadir): New function.
6967 (init_main): Install it for "set data-directory".
6968 * utils.c (substitute_path_component): New function.
6969
6970 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6971
6972 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6973 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6974 DEBUG_FILE_DIRECTORY. Handle multiple components of
6975 DEBUG_FILE_DIRECTORY.
6976
6977 2012-05-10 Tom Tromey <tromey@redhat.com>
6978
6979 * dwarf2read.c (recursively_write_psymbols): New function.
6980 (write_psymtabs_to_index): Use it.
6981
6982 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6983 field.
6984 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6985 (load_partial_comp_unit): Update.
6986 (queue_comp_unit): Add argument 'pretend_language'.
6987 (process_queue): Update.
6988 (psymtab_to_symtab_1): Skip dependencies that have a user.
6989 (load_partial_comp_unit_reader): Give meaning to the 'data'
6990 argument.
6991 (load_full_comp_unit): Add 'pretend_language' argument.
6992 (process_full_comp_unit): Add 'pretend_language' argument. Set
6993 language on CU.
6994 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6995 Update.
6996 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6997 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6998 Update.
6999 (prepare_one_comp_unit): Add 'pretend_language' argument.
7000
7001 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7002 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7003 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7004 (dw2_do_instantiate_symtab): Check whether symtab was read in
7005 before queueing.
7006 (dw2_instantiate_symtab): Add assertion. Call
7007 process_cu_includes.
7008 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7009 (partial_symtab_p): New typedef.
7010 (set_partial_user): New function.
7011 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7012 (scan_partial_symbols): Add imported CU to imported_symtabs.
7013 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7014 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7015 (get_symtab, recursively_compute_inclusions)
7016 (compute_symtab_includes, process_cu_includes)
7017 (process_imported_unit_die): New functions.
7018 (process_die) <DW_TAG_imported_unit>: New case.
7019 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7020
7021 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7022 comment.
7023 (struct partial_die_info) <locdesc>: Remove.
7024 <d>: New field.
7025 (process_psymtab_comp_unit): Add 'read_partial' argument.
7026 Update.
7027 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7028 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7029 (add_partial_symbol): Update.
7030 (process_die): Handle DW_TAG_partial_unit.
7031 (read_file_scope): Update comment.
7032 (load_partial_dies): Handle DW_TAG_imported_unit.
7033 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7034 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7035
7036 2012-05-10 Tom Tromey <tromey@redhat.com>
7037
7038 * cc-with-dwz.sh: New file.
7039
7040 2012-05-10 Tom Tromey <tromey@redhat.com>
7041
7042 * symtab.h (struct symtab) <includes, user>: New fields.
7043 * block.h (struct block_iterator) <d, idx, which>: New fields.
7044 * block.c (initialize_block_iterator, find_iterator_symtab)
7045 (block_iterator_step, block_iter_name_step)
7046 (block_iter_match_step): New functions.
7047 (block_iterator_first, block_iterator_next)
7048 (block_iter_name_first, block_iter_name_next)
7049 (block_iter_match_first, block_iter_match_next): Rewrite.
7050 (get_block_symtab): New function.
7051
7052 2012-05-10 Tom Tromey <tromey@redhat.com>
7053
7054 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7055 set_block_symtab.
7056 * jit.c (finalize_symtab): Use allocate_global_block,
7057 set_block_symtab.
7058 * buildsym.c (finish_block_internal): New function, from old
7059 finish_block.
7060 (finish_block): Rewrite.
7061 (end_symtab): Use finish_block_internal, set_block_symtab.
7062 * block.h (struct global_block): New.
7063 (allocate_global_block, set_block_symtab): Declare.
7064 * block.c (allocate_global_block, set_block_symtab): New
7065 functions.
7066
7067 2012-05-10 Tom Tromey <tromey@redhat.com>
7068
7069 * psymtab.c (partial_map_expand_apply): Add assertion.
7070 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7071 (psymtab_to_symtab): Find unshared psymtab.
7072 (dump_psymtab): Print including psymtabs.
7073 (recursively_search_psymtabs): New function.
7074 (expand_symtabs_matching_via_partial): Use it.
7075 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7076 fields.
7077 (enum psymtab_search_status): New.
7078
7079 2012-05-10 Tom Tromey <tromey@redhat.com>
7080
7081 * tracepoint.c (scope_info): Update.
7082 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7083 (find_pc_sect_symtab, search_symbols)
7084 (default_make_symbol_completion_list_break_on)
7085 (make_file_symbol_completion_list): Update.
7086 * symmisc.c (dump_symtab_1): Update.
7087 * stack.c (print_frame_args, iterate_over_block_locals)
7088 (print_frame_labels, iterate_over_block_arg_vars): Update.
7089 * python/py-block.c (block_object) <dict>: Remove.
7090 <block>: New field.
7091 <iter>: Change type.
7092 (blpy_iter): Update.
7093 (blpy_block_syms_iternext): Update.
7094 * psymtab.c (map_block): Use block iterators.
7095 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7096 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7097 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7098 * infrun.c (check_exception_resume): Update.
7099 * cp-support.c (make_symbol_overload_list_block): Update.
7100 * coffread.c (patch_opaque_types): Update.
7101 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7102 * block.h (struct block_iterator): New.
7103 (block_iterator_first, block_iterator_next, block_iter_name_first)
7104 (block_iter_name_next, block_iter_match_first)
7105 (block_iter_match_next): Declare.
7106 (ALL_BLOCK_SYMBOLS): Redefine.
7107 * block.c (block_iterator_first, block_iterator_next)
7108 (block_iter_name_first, block_iter_name_next)
7109 (block_iter_match_first, block_iter_match_next): New functions.
7110 * ada-lang.c (ada_add_block_symbols)
7111 (ada_make_symbol_completion_list): Use block iterator.
7112
7113 2012-05-10 Tom Tromey <tromey@redhat.com>
7114
7115 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7116 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7117 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7118 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7119 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7120 Update.
7121
7122 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7123
7124 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7125 print-file-var-lib2.c, print-file-var-main.c and
7126 print-file-var.exp (located in gdb/testsuite/gdb.base).
7127
7128 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7129
7130 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7131 try locating the symbol in the symbol's own objfile first, before
7132 extending the search to all objfiles.
7133 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7134 out of lookup_symbol_aux_symtabs.
7135 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7136 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7137 Do not search EXCLUDE_OBJFILE.
7138 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7139 (lookup_symbol_global): Search for matches in the block's objfile
7140 first, before searching all other objfiles.
7141
7142 2012-05-10 Tristan Gingold <gingold@adacore.com>
7143
7144 * printcmd.c (set_command): Add pre/post inc/dec.
7145
7146 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7147
7148 * gdb.1: Document -ex option.
7149
7150 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7151
7152 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7153 * inferior.h (AT_SYMBOL): Delete.
7154
7155 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7156
7157 * mips-tdep.c (mips_push_dummy_code): New function.
7158 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7159 ON_STACK and install mips_push_dummy_code as our gdbarch
7160 push_dummy_code routine.
7161
7162 2012-05-09 Pedro Alves <palves@redhat.com>
7163
7164 * target.c (set_maintenance_target_async_permitted): Rename to ...
7165 (set_target_async_command): ... this.
7166 (show_maintenance_target_async_permitted): Rename to ...
7167 (show_target_async_command): ... this.
7168 (initialize_targets): Adjust.
7169
7170 2012-05-08 Doug Evans <dje@google.com>
7171
7172 * go-exp.y (classify_name): Add missing assignment of fields of
7173 yylval.ssym.
7174
7175 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7176
7177 Display the ">" prompt in interactive mode while reading canned
7178 commands, even when the current interpreter is MI.
7179
7180 * interps.c (interp_set_temp): New function.
7181
7182 * interps.h (interp_set_temp): Add prototype.
7183
7184 * cli/cli-script.c (restore_interp): New cleanup function.
7185 (read_command_lines): Temporarily override the current interpreter
7186 with CLI and arrange for restoring the original one.
7187
7188 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7189
7190 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7191
7192 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7193
7194 * probe.c (parse_probes): Move conditional to check for
7195 debuginfo files from here...
7196 * stap-probe.c (stap_get_probes): ... to here.
7197
7198 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7199 H.J. Lu <hongjiu.lu@intel.com>
7200
7201 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7202 `movl %esp, %ebp' for the X32 ABI.
7203
7204 2012-05-07 Tom Tromey <tromey@redhat.com>
7205
7206 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7207 get_DW_TAG_name.
7208 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7209 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7210 (dwarf_stack_op_name): Remove.
7211 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7212 (decode_locdesc): Use get_DW_OP_name.
7213 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7214 (dwarf2_compile_expr_to_ax): Likewise.
7215 (disassemble_dwarf_expression): Likewise.
7216 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7217
7218 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7219
7220 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7221 (sh_linux_sigtramp_cache): New function.
7222 (sh_linux_sigreturn_init): New function.
7223 (sh_linux_rt_sigreturn_init): New function.
7224 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7225 patterns.
7226 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7227 syscall codes.
7228 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7229 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7230 (sh_linux_init_abi): Add init calls to register new tramp_frame
7231 definitions under 32-bit SH, update comments.
7232
7233 2012-05-07 Pedro Alves <palves@redhat.com>
7234
7235 PR gdb/10952
7236
7237 * amd64-linux-tdep.c: Include glibc-tdep.h.
7238 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7239 gdbarch_skip_solib_resolver callback.
7240
7241 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7242
7243 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7244 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7245 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7246 (add_auto_load_safe_path): Change the error message.
7247 (_initialize_auto_load): Change the "safe-path" help text.
7248 * configure: Regenerate
7249 * configure.ac (--without-auto-load-safe-path): Set
7250 WITH_AUTO_LOAD_SAFE_PATH to /.
7251
7252 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7253
7254 * stap-probe.h: Do not include unecessary `probe.h'.
7255
7256 2012-05-05 Alan Modra <amodra@gmail.com>
7257
7258 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7259 bfd_und_section_ptr.
7260 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7261 and bfd_com_section_ptr.
7262
7263 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7264
7265 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7266
7267 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7268
7269 * windows-nat.h (segment_register_p_ftype): New typedef.
7270 (windows_set_segment_register_p): Add declaration.
7271 * windows-nat.c (segment_register_p): New static global.
7272 (windows_set_segment_register_p): New function.
7273 (do_windows_fetch_inferior_registers): Add special handling
7274 for segment registers.
7275 * amd64-windows-nat.c: #include "amd64-tdep.h".
7276 (amd64_windows_segment_register_p): New function.
7277 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7278 * i386-windows-nat.c: #include "i386-tdep.h".
7279 (i386_windows_segment_register_p): New function.
7280 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7281
7282 2012-05-04 Tristan Gingold <gingold@adacore.com>
7283
7284 * printcmd.c (set_command): Emit a warning if the expression is not
7285 an assignment.
7286
7287 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7288
7289 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7290 Make static.
7291
7292 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7293
7294 * stap-probe.c (stap_is_operator): Change declaration.
7295 (stap_get_opcode): Change return value.
7296 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7297 `stap_parse_argument_1'.
7298
7299 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7300
7301 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7302 debug log.
7303
7304 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7305
7306 Add two new methods global_block and static_block to gdb.Symtab
7307 objects.
7308 * NEWS (Python scripting): Add entry about the new methods.
7309 * python/py-symtab.c (stpy_global_block): New function which
7310 implements the gdb.Symtab.global_block() method.
7311 (stpy_static_block): New function which implements the
7312 gdb.Symtab.static_block() method.
7313 (symtab_object_methods): Add entries for the two new methods.
7314
7315 2012-05-03 Doug Evans <dje@google.com>
7316
7317 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7318 files.
7319
7320 2012-05-03 Yao Qi <yao@codesourcery.com>
7321
7322 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7323 space.
7324 (i386_process_record): Ditto.
7325
7326 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7327
7328 * infcall.c (unwind_on_signal_p): Make static.
7329
7330 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7331
7332 * sol-thread.c (solaris_pid_to_str): Make static.
7333 (_initialize_sol_thread): Add prototype.
7334
7335 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7336
7337 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7338
7339 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7340
7341 * MAINTAINERS: Remove myself.
7342
7343 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7344
7345 Fix --without-auto-load-safe-path for MS-Windows host platform.
7346 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7347
7348 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7349
7350 * gdb_curses.h: Undefine KEY_EVENT before including curses
7351 headers. Move "#undef MOUSE_MOVED" before any curses header
7352 inclusion.
7353
7354 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7355
7356 * features/i386/i386-mmx-linux.c: Regenerate.
7357 * features/rs6000/powerpc-32.c: Likewise.
7358 * features/rs6000/powerpc-32l.c: Likewise.
7359 * features/rs6000/powerpc-403.c: Likewise.
7360 * features/rs6000/powerpc-403gc.c: Likewise.
7361 * features/rs6000/powerpc-405.c: Likewise.
7362 * features/rs6000/powerpc-505.c: Likewise.
7363 * features/rs6000/powerpc-601.c: Likewise.
7364 * features/rs6000/powerpc-602.c: Likewise.
7365 * features/rs6000/powerpc-603.c: Likewise.
7366 * features/rs6000/powerpc-604.c: Likewise.
7367 * features/rs6000/powerpc-64.c: Likewise.
7368 * features/rs6000/powerpc-64l.c: Likewise.
7369 * features/rs6000/powerpc-750.c: Likewise.
7370 * features/rs6000/powerpc-860.c: Likewise.
7371 * features/rs6000/powerpc-e500.c: Likewise.
7372 * features/rs6000/powerpc-e500l.c: Likewise.
7373 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7374 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7375 * features/rs6000/rs6000.c: Likewise.
7376
7377 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7378
7379 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7380 variable.
7381 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7382 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7383 (stap_parse_argument) <e>: Likewise.
7384 (handle_stap_probe) <byte_order>: Likewise.
7385
7386 2012-04-30 Doug Evans <dje@google.com>
7387
7388 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7389 init_and_read_dies_worker. All callers updated.
7390 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7391 replaced with init_cutu_and_read_dies.
7392 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7393 (find_partial_die): Remove FIXME. Don't free current CU.
7394
7395 2012-04-30 Sterling Augustine <saugustine@google.com>
7396
7397 * contrib: New directory.
7398 * contrib/test_pubnames_and_indexes.py: New file.
7399
7400 2012-04-30 Doug Evans <dje@google.com>
7401
7402 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7403 All callers updated.
7404 (init_cu_die_reader): Verify the section is non-empty.
7405 (dwarf_decode_line_header): Don't dereference section->asection
7406 until we know the section is present.
7407
7408 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7409
7410 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7411 probes.
7412
7413 2012-04-29 Yao Qi <yao@codesourcery.com>
7414
7415 * gdb-code-style.el: New hook gdb-markup-hook
7416 and gdb-comment-hook.
7417
7418 2012-04-28 Doug Evans <dje@google.com>
7419
7420 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7421 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7422 objfile->obfd.
7423 * symfile.h (dwarf2_debug_sections): New member addr.
7424 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7425 (ctx_no_get_addr_index): New function.
7426 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7427 (ctx_no_get_addr_index): Declare.
7428 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7429 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7430 (dwarf_expr_ctx_funcs): Update.
7431 (needs_get_addr_index): New function.
7432 (needs_frame_ctx_funcs): Update.
7433 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7434 * dwarf2read.c: #include "gdbcore.h".
7435 (dwarf2_per_objfile): New members addr, dwo_files.
7436 (dwarf2_elf_names): Add entry for addr.
7437 (struct dwo_section_names): New type.
7438 (dwo_section_names): New static global.
7439 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7440 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7441 old debug_types_section member updated to use this.
7442 Rename member debug_types_section to info_or_types_section,
7443 all uses updated.
7444 (signatured_type): Rename member type_offset to type_offset_in_tu,
7445 all uses updated. New member type_offset_in_section.
7446 (struct dwo_sections): New type.
7447 (struct dwo_unit): New type.
7448 (struct dwo_file): New type.
7449 (die_reader_specs): New member dwo_file.
7450 (dwarf2_locate_sections): Watch for .debug_addr.
7451 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7452 (dwarf2_read_section): Get bfd of section from bfd's asection,
7453 instead of objfile.
7454 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7455 (create_signatured_type_table_from_index): Initialize
7456 sig_type->info_or_types_section.
7457 (dw2_get_file_names): Statement lists for type units with DWO files
7458 live in the DWO file.
7459 (create_debug_types_hash_table): New function.
7460 (create_all_type_units): Rewrite.
7461 (init_cu_die_reader): New arg dwo_file, all callers updated.
7462 (init_and_read_dies_worker): Get section from
7463 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7464 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7465 continue reading the CU/TU from there.
7466 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7467 updated. Get section from this_cu->info_or_types_section.
7468 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7469 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7470 DW_FORM_GNU_str_index.
7471 (hash_dwo_file, eq_dwo_file): New functions.
7472 (allocate_dwo_file_hash_table): New function.
7473 (hash_dwo_unit, eq_dwo_unit): New functions.
7474 (allocate_dwo_unit_table): New function.
7475 (dwarf2_locate_dwo_sections): New function.
7476 (struct create_dwo_info_table_data): New type.
7477 (create_debug_info_hash_table_reader): New function.
7478 (create_debug_info_hash_table): New function.
7479 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7480 (lookup_dwo_file): New function.
7481 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7482 (free_dwo_file, free_dwo_file_cleanup): New functions.
7483 (free_dwo_file_from_slot, free_dwo_files): New functions.
7484 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7485 (dwarf2_record_block_ranges): Ditto.
7486 (read_partial_die): Ditto.
7487 (process_enumeration_scope): Update to use type_offset_in_section.
7488 (read_full_die_1): New function.
7489 (read_full_die): Rewrite.
7490 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7491 DW_FORM_GNU_str_index.
7492 (read_addr_index_1, read_addr_index): New functions.
7493 (read_addr_index_from_leb128): New function.
7494 (struct dwarf2_read_addr_index_data): New type.
7495 (dwarf2_read_addr_index_reader): New function.
7496 (dwarf2_read_addr_index): New function.
7497 (read_str_index): New function.
7498 (leb128_size): New function.
7499 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7500 If processing a type unit from a DWO file, get the line section
7501 from the DWO file.
7502 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7503 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7504 DW_FORM_GNU_str_index.
7505 (lookup_die_type): Check whether section offset of type's die is
7506 known before looking it up. Remove assert. Condition can
7507 legimately happen for inter-cu type references.
7508 (dwarf_attr_name): Handle Fission attributes.
7509 (dwarf_form_name): Handle Fission forms.
7510 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7511 DW_FORM_GNU_str_index.
7512 (follow_die_sig): Update to use type_offset_in_section.
7513 (decode_locdesc): New case DW_OP_GNU_addr_index.
7514 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7515 DW_FORM_GNU_str_index.
7516 (cu_debug_loc_section): New function.
7517 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7518 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7519 Free DWO files if present.
7520 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7521
7522 Refactor DIE reading.
7523 * dwarf2read.c (dwarf2_per_objfile): Replace members
7524 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7525 (die_reader_specs): New member "die_section". Temporarily make
7526 member "buffer" non-const, pending constifying all info_ptr uses.
7527 (die_reader_func_ftype): New typedef.
7528 (dw2_get_file_names_reader): New function.
7529 (dw2_get_file_names): Rewrite.
7530 (read_and_check_type_unit_head): Rename arg type_offset to
7531 type_offset_in_tu.
7532 (create_all_type_units): Improve debugging message.
7533 Improve dummy type unit check.
7534 (init_cu_die_reader): New arg "section". All callers updated.
7535 (init_and_read_dies_worker): New function.
7536 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7537 (init_cutu_and_read_dies_no_follow): New function.
7538 (init_cutu_and_read_dies_simple): New function.
7539 (process_psymtab_comp_unit_reader): New function.
7540 (process_psymtab_comp_unit): Delete args section,
7541 is_debug_types_section. Rewrite. All callers updated.
7542 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7543 All callers updated. Rewrite.
7544 (load_partial_comp_unit_reader): New function.
7545 (load_partial_comp_unit): Rewrite.
7546 (skip_children): New arg reader. Delete args buffer, cu.
7547 All callers updated.
7548 (skip_one_die): New arg reader. Delete args buffer, cu.
7549 All callers updated.
7550 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7551 All callers updated.
7552 (load_full_comp_unit_reader): New function.
7553 (load_full_comp_unit): Rewrite.
7554 (read_comp_unit): Delete.
7555 (read_die_and_children_1): Delete, contents moved ...
7556 (read_die_and_children): ... here.
7557 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7558 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7559 All callers updated.
7560 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7561 All callers updated.
7562 (find_partial_die): Rewrite load_all_dies support.
7563 (read_attribute_value): New arg reader. Delete args abfd, cu.
7564 All callers updated.
7565 (read_attribute): New arg reader. Delete args abfd, cu.
7566 All callers updated.
7567 (load_full_type_unit): Add assert.
7568 (read_signatured_type_reader): New function.
7569 (read_signatured_type): Rewrite.
7570 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7571 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7572 All callers updated. Set per_cu->cu = NULL after freeing it.
7573 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7574 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7575 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7576 (set_die_type): Update.
7577 (get_die_type_at_offset): Update.
7578 (read_file_scope): Call prepare_one_comp_unit.
7579 (read_type_unit_scope): Ditto.
7580 (prepare_one_comp_unit): Set producer if present.
7581
7582 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7583
7584 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7585 gettext function on `error'.
7586
7587 2012-04-27 Doug Evans <dje@google.com>
7588
7589 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7590 is empty.
7591
7592 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7593 Tom Tromey <tromey@redhat.com>
7594
7595 * breakpoint.c (struct breakpoint_objfile_data)
7596 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7597 <exception_probes>: New fields.
7598 (free_breakpoint_probes): New function.
7599 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7600 `_Unwind_DebugHook'.
7601 (create_exception_master_breakpoint): Likewise.
7602 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7603 * infrun.c: Including necessary header files for handling SystemTap
7604 probes.
7605 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7606 via SystemTap probes.
7607 (check_exception_resume): Remove `func' argument. Handle exception
7608 unwinding breakpoint set via a SystemTap probe.
7609 (insert_exception_resume_from_probe): New function.
7610
7611 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7612 Tom Tromey <tromey@redhat.com>
7613 Jan Kratochvil <jan.kratochvil@redhat.com>
7614
7615 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7616 (COMMON_OBS): Likewise.
7617 (HFILES_NO_SRCDIR): Add `probe'.
7618 * NEWS: Mention support for static and SystemTap probes.
7619 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7620 SystemTap probes' arguments parser.
7621 * arm-linux-tdep.c: Including headers needed to perform the parsing
7622 of SystemTap probes' arguments.
7623 (arm_stap_is_single_operand): New function.
7624 (arm_stap_parse_special_token): Likewise.
7625 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7626 probes' arguments parser.
7627 * ax-gdb.c (require_rvalue): Removing static declaration.
7628 (gen_expr): Likewise.
7629 * ax-gdb.h (gen_expr): Declaring function.
7630 (require_rvalue): Likewise.
7631 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7632 (bkpt_probe_breakpoint_ops): New variable.
7633 (momentary_breakpoint_from_master): Set the `probe' value.
7634 (add_location_to_breakpoint): Likewise.
7635 (break_command_1): Using proper breakpoint_ops according to the
7636 argument passed by the user in the command line.
7637 (bkpt_probe_insert_location): New function.
7638 (bkpt_probe_remove_location): Likewise.
7639 (bkpt_probe_create_sals_from_address): Likewise.
7640 (bkpt_probe_decode_linespec): Likewise.
7641 (tracepoint_probe_create_sals_from_address): Likewise.
7642 (tracepoint_probe_decode_linespec): Likewise.
7643 (tracepoint_probe_breakpoint_ops): New variable.
7644 (trace_command): Using proper breakpoint_ops according to the
7645 argument passed by the user in the command line.
7646 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7647 static probes on breakpoints and tracepoints.
7648 * breakpoint.h (struct bp_location) <probe>: New field.
7649 * cli-utils.c (skip_spaces_const): New function.
7650 (extract_arg): Likewise.
7651 * cli-utils.h (skip_spaces_const): Likewise.
7652 (extract_arg): Likewise.
7653 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7654 * configure.ac: Append `stap-probe.o' to be generated when ELF
7655 support is present.
7656 * configure: Regenerate.
7657 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7658 * elfread.c: Include `probe.h' and `arch-utils.h'.
7659 (probe_key): New variable.
7660 (elf_get_probes): New function.
7661 (elf_get_probe_argument_count): Likewise.
7662 (elf_evaluate_probe_argument): Likewise.
7663 (elf_compile_to_ax): Likewise.
7664 (elf_symfile_relocate_probe): Likewise.
7665 (stap_probe_key_free): Likewise.
7666 (elf_probe_fns): New variable.
7667 (elf_sym_fns): Add `sym_probe_fns' value.
7668 (elf_sym_fns_lazy_psyms): Likewise.
7669 (elf_sym_fns_gdb_index): Likewise.
7670 (_initialize_elfread): Initialize objfile cache for static
7671 probes.
7672 * gdb_vecs.h (struct probe): New forward declaration.
7673 (probe_p): New VEC declaration.
7674 * gdbarch.c: Regenerate.
7675 * gdbarch.h: Regenerate.
7676 * gdbarch.sh (stap_integer_prefix): New variable.
7677 (stap_integer_suffix): Likewise.
7678 (stap_register_prefix): Likewise.
7679 (stap_register_suffix): Likewise.
7680 (stap_register_indirection_prefix): Likewise.
7681 (stap_register_indirection_suffix): Likewise.
7682 (stap_gdb_register_prefix): Likewise.
7683 (stap_gdb_register_suffix): Likewise.
7684 (stap_is_single_operand): New function.
7685 (stap_parse_special_token): Likewise.
7686 (struct stap_parse_info): Forward declaration.
7687 * i386-tdep.c: Including headers needed to perform the parsing
7688 of SystemTap probes' arguments.
7689 (i386_stap_is_single_operand): New function.
7690 (i386_stap_parse_special_token): Likewise.
7691 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7692 probes' arguments parser.
7693 * i386-tdep.h (i386_stap_is_single_operand): New function.
7694 (i386_stap_parse_special_token): Likewise.
7695 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7696 * mipsread.c (ecoff_sym_fns): Likewise.
7697 * objfiles.c (objfile_relocate1): Support relocation for static
7698 probes.
7699 * parse.c (prefixify_expression): Remove static declaration.
7700 (initialize_expout): Likewise.
7701 (reallocate_expout): Likewise.
7702 * parser-defs.h (initialize_expout): Declare function.
7703 (reallocate_expout): Likewise.
7704 (prefixify_expression): Likewise.
7705 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7706 of SystemTap probes' arguments.
7707 (ppc_stap_is_single_operand): New function.
7708 (ppc_stap_parse_special_token): Likewise.
7709 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7710 probes' arguments parser.
7711 * probe.c: New file, for generic statically defined probe support.
7712 * probe.h: Likewise.
7713 * s390-tdep.c: Including headers needed to perform the parsing of
7714 SystemTap probes' arguments.
7715 (s390_stap_is_single_operand): New function.
7716 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7717 probes' arguments parser.
7718 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7719 * stap-probe.c: New file, for SystemTap probe support.
7720 * stap-probe.h: Likewise.
7721 * symfile.h: Include `gdb_vecs.h'.
7722 (struct sym_probe_fns): New struct.
7723 (struct sym_fns) <sym_probe_fns>: New field.
7724 * symtab.c (init_sal): Initialize `probe' field.
7725 * symtab.h (struct probe): Forward declaration.
7726 (struct symtab_and_line) <probe>: New field.
7727 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7728 locations.
7729 (stop_tracing): Likewise.
7730 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7731
7732 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7733 Tom Tromey <tromey@redhat.com>
7734
7735 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7736 and to compile agent expressions.
7737 * infrun.c (siginfo_make_value): New argument `ignore'.
7738 (siginfo_funcs): New struct.
7739 (_initialize_infrun): New argument when calling
7740 `create_internalvar_type_lazy'.
7741 * thread.c (thread_id_make_value): New argument `ignore'.
7742 (thread_funcs): New struct.
7743 (_initialize_thread): New argument when calling
7744 `create_internalvar_type_lazy'.
7745 * tracepoint.c (sdata_make_value): New argument `ignore'.
7746 (sdata_funcs): New struct.
7747 (_initialize_tracepoint): New argument when calling
7748 `create_internalvar_type_lazy'.
7749 * value.c (make_value): New struct.
7750 (create_internalvar_type_lazy): New argument `data'.
7751 (compile_internalvar_to_ax): New function.
7752 (value_of_internalvar): Properly handling `make_value' case.
7753 (clear_internalvar): Likewise.
7754 (show_convenience): Adding `TRY_CATCH' block.
7755 * value.h (internalvar_make_value): Delete, replace by...
7756 (struct internalvar_funcs): ... this.
7757 (create_internalvar_type_lazy) <fun>: Delete argument.
7758 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7759 (compile_internalvar_to_ax): New function.
7760 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7761 (tlb_funcs): New struct.
7762 (_initialize_windows_tdep): New argument when calling
7763 `create_internalvar_type_lazy'.
7764
7765 2012-04-27 Mark Wielaard <mjw@redhat.com>
7766
7767 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7768 see whether it is an address or a constant offset from DW_AT_low_pc.
7769 (dwarf2_record_block_ranges): Likewise.
7770 (read_partial_die): Likewise.
7771
7772 2012-04-26 Mark Wielaard <mjw@redhat.com>
7773
7774 * MAINTAINERS (Write After Approval): Add myself to the list.
7775
7776 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7777
7778 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7779 (proc_prettyprint_signal): Likewise.
7780 (proc_prettyprint_faultset): Likewise.
7781 (proc_prettyprint_fault): Likewise.
7782 (proc_prettyprint_actionset): Likewise.
7783 (proc_prettyprint_flags): Move to new proc-flags.c section.
7784 (proc_prettyfprint_flags): New prototype.
7785 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7786 (proc_syscall, proc_cursig): Likewise.
7787 (proc_set_kill_on_last_close): Likewise.
7788 (proc_unset_kill_on_last_close): Likewise.
7789 (proc_set_watchpoint): Make static.
7790 (proc_delete_dead_threads): Likewise.
7791 (procfs_set_watchpoint): Likewise.
7792 (_initialize_procfs): Add prototype.
7793 * proc-events.c: Include proc-utils.h.
7794 (init_syscall_table): Make static.
7795 * proc-api.c (_initialize_proc_api): Add prototype.
7796 * proc-flags.c: Include proc-utils.h.
7797
7798 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7799
7800 * configure.ac: Add AC_ARG_PROGRAM.
7801 * configure: Regenerate.
7802
7803 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7804
7805 Fix DW_AT_lower_bound defaults for DWARF-4+.
7806 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7807 high. New variable low_default_is_valid. Implement DWARF-4+
7808 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7809 no default by the DWARF standard.
7810
7811 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7812 Maciej W. Rozycki <macro@codesourcery.com>
7813
7814 * infrun.c (handle_inferior_event): Move the check for return
7815 trampolines ahead of the check for function trampolines.
7816 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7817 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7818 (mips_str_mips16_ret_stub): Likewise.
7819 (mips_str_call_fp_stub): Likewise.
7820 (mips_str_call_stub): Likewise.
7821 (mips_str_fn_stub): Likewise.
7822 (mips_str_pic): Likewise.
7823 (mips_in_frame_stub): New function.
7824 (mips_unwind_pc): Return the return address rather than the PC
7825 if the PC of an intermediate frame is inside a call thunk.
7826 (mips_is_stub_suffix): New function.
7827 (mips_is_stub_mode): Likewise.
7828 (mips_get_mips16_fn_stub_pc): Likewise.
7829 (mips_skip_mips16_trampoline_code): Update to handle all the
7830 currently generated stub types. Don't recurse into __fn_stub
7831 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7832 Use cooked register accesses.
7833 (mips_in_return_stub): Reintroduce function.
7834 (mips_skip_trampoline_code): Traverse trampolines recursively.
7835 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7836
7837 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7838
7839 GDB 7.4.1 released.
7840
7841 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7842
7843 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7844 * features/arm-with-m-vfp-d16.xml: New file. Describes
7845 Cortex-M with VFPv4-sp-d16 FPU register layout.
7846 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7847 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7848 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7849 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7850 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7851
7852 2012-04-25 Doug Evans <dje@google.com>
7853
7854 * cli/cli-decode.c (print_doc_line): Use stream instead of
7855 current_uiout.
7856
7857 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7858
7859 * features/arm-with-iwmmxt.c: Regenerate.
7860 * features/arm-with-m-fpa-layout.c: Likewise.
7861 * features/arm-with-m.c: Likewise.
7862 * features/arm-with-neon.c: Likewise.
7863 * features/arm-with-vfpv2.c: Likewise.
7864 * features/arm-with-vfpv3.c: Likewise.
7865 * features/mips-dsp-linux.c: Likewise.
7866 * features/mips-linux.c: Likewise.
7867 * features/mips64-dsp-linux.c: Likewise.
7868 * features/mips64-linux.c: Likewise.
7869 * features/s390-linux32.c: Likewise.
7870 * features/s390-linux32v1.c: Likewise.
7871 * features/s390-linux32v2.c: Likewise.
7872 * features/s390-linux64.c: Likewise.
7873 * features/s390-linux64v1.c: Likewise.
7874 * features/s390-linux64v2.c: Likewise.
7875 * features/s390x-linux64.c: Likewise.
7876 * features/s390x-linux64v1.c: Likewise.
7877 * features/s390x-linux64v2.c: Likewise.
7878 * features/tic6x-c62x-linux.c: Likewise.
7879 * features/tic6x-c62x.c: Likewise.
7880 * features/tic6x-c64x-linux.c: Likewise.
7881 * features/tic6x-c64x.c: Likewise.
7882 * features/tic6x-c64xp-linux.c: Likewise.
7883 * features/tic6x-c64xp.c: Likewise.
7884 * target-descriptions.c: Only generate `field_type' and `type'
7885 variables when needed.
7886
7887 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7888
7889 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7890
7891 2012-04-25 Doug Evans <dje@google.com>
7892
7893 Initial pass at Go language support.
7894 * NEWS: Mention Go.
7895 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7896 go-valprint.c.
7897 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7898 (YYFILES): Add go-exp.c.
7899 (YYOBJ): Add go-exp.o.
7900 (local-maintainer-clean): Delete go-exp.c.
7901 * defs.h (enum language): Add language_go.
7902 * dwarf2read.c: #include "go-lang.h".
7903 (fixup_go_packaging): New function.
7904 (process_full_comp_unit): Call it when processing Go CUs.
7905 (dwarf2_physname): Add Go support.
7906 (read_file_scope): Handle missing language spec for GNU Go.
7907 (set_cu_language): Handle DW_LANG_Go.
7908 * go-exp.y: New file.
7909 * go-lang.h: New file.
7910 * go-lang.c: New file.
7911 * go-typeprint.c: New file.
7912 * go-valprint.c: New file.
7913 * symtab.c: #include "go-lang.h".
7914 (symbol_set_language): Handle language_go.
7915 (symbol_find_demangled_name, symbol_set_names): Ditto.
7916 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7917
7918 2012-04-24 Jim Meyering <meyering@redhat.com>
7919
7920 avoid a few strncpy-induced buffer overruns
7921 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7922 fname and psargs before trying to concatenate.
7923 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7924 "name" before applying strchr.
7925
7926 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7927
7928 * CONTRIBUTE: Use unified diff instead of context diff when
7929 generating patches.
7930
7931 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7932
7933 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7934 code. Handle JR.HB correctly.
7935
7936 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7937
7938 * mips-tdep.c
7939 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7940 with the other MIPS16 helpers.
7941
7942 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7943
7944 * observer.sh: Conditionally declare `args', thus cleaning up
7945 unused instances of this variable.
7946
7947 2012-04-24 Yao Qi <yao@codesourcery.com>
7948
7949 Revert this patch to allow breakpoint always-inserted
7950 in record target.
7951 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7952 * breakpoint.c: Include record.h.
7953 (breakpoints_always_inserted_mode): Return false when the record
7954 target is in use.
7955
7956 * breakpoint.c (iterate_over_bp_locations): New.
7957 * breakpoint.h: Declare.
7958 New typedef walk_bp_location_callback.
7959 * record.c (record_open): Call record_init_record_breakpoints.
7960 (record_sync_record_breakpoints): New.
7961 (record_init_record_breakpoints): New.
7962 * NEWS: Mention supporting breakpoint always-inserted mode in
7963 record target.
7964
7965 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7966
7967 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7968 any thread.
7969
7970 2012-04-24 Yao Qi <yao@codesourcery.com>
7971
7972 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7973 (is_catchpoint): ... it.
7974 (print_one_breakpoint_location): Caller update.
7975 * breakpoint.h: Update declaration.
7976
7977 2012-04-23 David S. Miller <davem@davemloft.net>
7978
7979 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7980
7981 2012-04-23 Tom Tromey <tromey@redhat.com>
7982
7983 * buildsym.c (add_free_pendings): Remove.
7984 * buildsym.h (add_free_pendings): Remove.
7985
7986 2012-04-23 Doug Evans <dje@google.com>
7987
7988 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7989 attr.u.unsnd instead of attr.u.addr.
7990 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7991 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7992 DW_FORM_ref_udata.
7993 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7994 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7995 DW_FORM_ref_udata.
7996 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7997
7998 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7999
8000 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8001 (mips_o32_return_value): Likewise.
8002 (mips_o64_return_value): Likewise.
8003
8004 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8005
8006 * ada-lang.c (ada_evaluate_subexp): Add cases for
8007 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8008 their treatment in eval.c.
8009
8010 2012-04-21 David S. Miller <davem@davemloft.net>
8011
8012 * sparc-tdep.c (X_DISP10): Define.
8013 (sparc_analyze_control_transfer): Handle compare-and-branch.
8014
8015 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8016
8017 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8018 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8019
8020 2012-04-20 Nigel Stephens <nigel@mips.com>
8021 Maciej W. Rozycki <macro@codesourcery.com>
8022
8023 * mips-tdep.c (mips_float_register_p): New function.
8024 (mips_convert_register_float_case_p): Use mips_float_register_p.
8025 (mips_register_type): Likewise.
8026 (mips_print_register): Likewise.
8027 (print_gp_register_row): Likewise.
8028 (mips_print_registers_info): Likewise.
8029
8030 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8031
8032 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8033 of mips16 symbols.
8034
8035 2012-04-20 Andrew Pinski <apinski@cavium.com>
8036
8037 * MAINTAINERS (Write After Approval): Add myself to the list.
8038
8039 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8040
8041 * MAINTAINERS: Update my e-mail address.
8042
8043 2012-04-20 Pedro Alves <palves@redhat.com>
8044
8045 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8046 $srcdir.
8047 * configure: Regenerate.
8048
8049 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8050
8051 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8052 declaration.
8053 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8054
8055 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8056
8057 Fix compilation compatibility with python-2.4
8058 * python/py-type.c (convert_field): Cast ADDRSTRING for
8059 PyObject_SetAttrString as non-const. New comment.
8060
8061 2012-04-19 Tom Tromey <tromey@redhat.com>
8062
8063 * top.c (quit_target): Use all_cleanups.
8064 * main.c (captured_command_loop): Use all_cleanups.
8065 * exceptions.c (throw_exception): Use all_cleanups.
8066
8067 2012-04-19 Pedro Alves <palves@redhat.com>
8068
8069 * Makefile.in (GNULIB_BUILDDIR): New.
8070 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8071 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8072 (CLEANDIRS). Remove gnulib/import.
8073 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8074 (all-lib): Ditto.
8075 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8076 (gnulib/import/Makefile): Replace gnulib/import with
8077 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8078 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8079 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8080 acx_configure_dir.m4.
8081 * acinclude.m4: Include acx_configure_dir.m4.
8082 * acx_configure_dir.m4: New file.
8083 * aclocal.m4: Regenerate.
8084 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8085 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8086 (GNULIB): New variable.
8087 (GNULIB_STDINT_H): Adjust.
8088 (AC_OUTPUT): Don't output gnulib/Makefile.
8089 * gdb/defs.h: Include build-gnulib/config.h.
8090 * aclocal.m4: Regenerate.
8091 * config.in: Regenerate.
8092 * configure: Regenerate.
8093
8094 * gnulib/Makefile.in: New file.
8095 * gnulib/configure.ac: New file.
8096 * gnulib/aclocal.m4: New file.
8097 * gnulib/config.in: New file.
8098 * gnulib/configure: New file.
8099 * gnulib/: Re-run gnulib-tool to adjust.
8100
8101 2012-04-19 Doug Evans <dje@google.com>
8102
8103 * cleanups.h (struct cleanup): Move to cleanups.c.
8104 (make_cleanup_dtor_ftype): New typedef.
8105 (make_cleanup_dtor): Use it.
8106 (ALL_CLEANUPS): Replace with ...
8107 (all_cleanups): ... this. Declare. All uses updated.
8108 * cleanups.c: #include "gdb_assert.h".
8109 (sentinel_cleanup): New static global.
8110 (SENTINEL_CLEANUP): Define.
8111 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8112 (make_my_cleanup2): Assert result is non-NULL.
8113 (all_cleanups): New function.
8114 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8115 of NULL.
8116
8117 2012-04-19 Pedro Alves <palves@redhat.com>
8118
8119 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8120 Adjust paths to gnulib imported files.
8121
8122 2012-04-19 Pedro Alves <palves@redhat.com>
8123
8124 * gnulib/: Move whole directory ...
8125 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8126 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8127 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8128 (aclocal_m4_deps): Adjust.
8129 * aclocal.m4: Regenerate.
8130 * configure: Regenerate.
8131 * configure.ac: Adjust AC_OUTPUT output.
8132
8133 2012-04-19 Yao Qi <yao@codesourcery.com>
8134
8135 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8136 (vec.o): New rule.
8137 * vec.c: Move it ...
8138 * common/vec.c: ... here.
8139 * vec.h: Move it ...
8140 * common/vec.h: ... here.
8141
8142 2012-04-19 Yao Qi <yao@codesourcery.com>
8143
8144 * gdb-code-style.el: New.
8145
8146 2012-04-18 Pedro Alves <palves@redhat.com>
8147
8148 Update gnulib from latest git.
8149 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8150
8151 * gnulib/Makefile.am: Update.
8152 * gnulib/dummy.c: Update.
8153 * gnulib/extra/arg-nonnull.h: Update.
8154 * gnulib/extra/c++defs.h: Update.
8155 * gnulib/extra/update-copyright: Update.
8156 * gnulib/extra/warn-on-use.h: Update.
8157 * gnulib/inttypes.in.h: Update.
8158 * gnulib/m4/00gnulib.m4: Update.
8159 * gnulib/m4/extensions.m4: Update.
8160 * gnulib/m4/gnulib-cache.m4: Update.
8161 * gnulib/m4/gnulib-common.m4: Update.
8162 * gnulib/m4/gnulib-comp.m4: Update.
8163 * gnulib/m4/gnulib-tool.m4: Update.
8164 * gnulib/m4/include_next.m4: Update.
8165 * gnulib/m4/inttypes-pri.m4: Update.
8166 * gnulib/m4/inttypes.m4: Update.
8167 * gnulib/m4/longlong.m4: Update.
8168 * gnulib/m4/memchr.m4: Update.
8169 * gnulib/m4/memmem.m4: Update.
8170 * gnulib/m4/mmap-anon.m4: Update.
8171 * gnulib/m4/multiarch.m4: Update.
8172 * gnulib/m4/onceonly.m4: Update.
8173 * gnulib/m4/stddef_h.m4: Update.
8174 * gnulib/m4/stdint.m4: Update.
8175 * gnulib/m4/string_h.m4: Update.
8176 * gnulib/m4/warn-on-use.m4: Update.
8177 * gnulib/m4/wchar_h.m4: Update.
8178 * gnulib/m4/wchar_t.m4: Update.
8179 * gnulib/m4/wint_t.m4: Update.
8180 * gnulib/memchr.c: Update.
8181 * gnulib/memmem.c: Update.
8182 * gnulib/stddef.in.h: Update.
8183 * gnulib/stdint.in.h: Update.
8184 * gnulib/str-two-way.h: Update.
8185 * gnulib/string.in.h: Update.
8186 * gnulib/wchar.in.h: Update.
8187
8188 * gnulib/extra/arg-nonnull.h: Delete.
8189 * gnulib/extra/c++defs.h: Delete.
8190 * gnulib/extra/warn-on-use.h: Delete.
8191 * gnulib/m4/wchar_h.m4: Delete.
8192 * gnulib/m4/wint_t.m4: Delete.
8193 * gnulib/wchar.in.h: Delete.
8194
8195 * gnulib/extra/snippets/arg-nonnull.h: New.
8196 * gnulib/extra/snippets/c++defs.h: New.
8197 * gnulib/extra/snippets/warn-on-use.h: New.
8198
8199 * aclocal.m4: Regenerate.
8200 * config.in: Regenerate.
8201 * configure: Regenerate.
8202 * gnulib/Makefile.in: Regenerate.
8203
8204 2012-04-18 Pedro Alves <palves@redhat.com>
8205
8206 Reimport the update-copyright module from gnulib
8207 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8208
8209 * configure: Regenerate.
8210 * gnulib/Makefile.am: Update.
8211 * gnulib/Makefile.in: Regenerate.
8212 * gnulib/extra/update-copyright: Update.
8213 * gnulib/m4/gnulib-cache.m4: Update.
8214 * gnulib/m4/gnulib-comp.m4: Update.
8215
8216 2012-04-18 Tristan Gingold <gingold@adacore.com>
8217
8218 * configure.ac (aix): Put -lpthread into libs.
8219 * configure: Regenerate.
8220
8221 2012-04-18 Tom Tromey <tromey@redhat.com>
8222
8223 * linespec.c (convert_linespec_to_sals): Don't use
8224 SYMBOL_OBJ_SECTION.
8225 (compare_msymbols): Arguments are minsym_and_objfile, not
8226 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8227
8228 2012-04-18 Pedro Alves <palves@redhat.com>
8229
8230 Revert gnulib/ part of:
8231 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8232 Copyright year update in most files (performed by copyright.sh).
8233
8234 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8235
8236 Fix 64-bit constants on 32-bit hosts.
8237 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8238 from unsigned long to ULONGEST.
8239 (read_signed_leb128): Change declaration return type from long to
8240 LONGEST.
8241 (dwarf2_const_value_attr): Change declaration parameter value from long
8242 to LONGEST.
8243 (dwarf2_compute_name): Change variable value from long to LONGEST.
8244 (read_unsigned_leb128): Change return type, variable result and some
8245 casts from unsigned long to ULONGEST.
8246 (read_signed_leb128): Change return type, variable result and some
8247 casts from long to LONGEST.
8248 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8249 value from long to LONGEST.
8250 (dwarf2_const_value): Change variable value from long to LONGEST.
8251 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8252 plongest and hex_string.
8253 * symtab.h (struct general_symbol_info): Change ivalue from long to
8254 LONGEST, remove the comment.
8255 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8256 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8257
8258 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8259
8260 PR symtab/7259:
8261 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8262 * ada-lang.c (ada_discrete_type_high_bound)
8263 (ada_discrete_type_low_bound): Fix function comment. Use
8264 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8265 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8266 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8267 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8268 Use TYPE_FIELD_ENUMVAL.
8269 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8270 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8271 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8272 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8273 TYPE_CODE_ENUM.
8274 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8275 * dwarf2read.c (process_enumeration_scope): Likewise.
8276 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8277 field.bitpos.
8278 (class StructMainTypePrettyPrinter): Support also
8279 FIELD_LOC_KIND_ENUMVAL.
8280 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8281 TYPE_CODE_ENUM.
8282 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8283 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8284 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8285 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8286 field enumval.
8287 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8288 accommodate enumval.
8289 (struct call_site): Adjust loc_kind to accommodate enumval.
8290 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8291 (TYPE_FIELD_ENUMVAL): New macros.
8292 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8293 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8294 TYPE_CODE_ENUM.
8295 * p-typeprint.c (pascal_type_print_base): Likewise.
8296 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8297 enumval.
8298 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8299 * python/py-type.c (convert_field): New variable addrstring. Use
8300 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8301 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8302 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8303 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8304 TYPE_CODE_ENUM.
8305 * valprint.c (generic_val_print): Likewise.
8306
8307 2012-04-17 Doug Evans <dje@google.com>
8308
8309 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8310
8311 * dwarf2read.c: Whitespace fixes.
8312 (lookup_signatured_type): Tweak comment.
8313 (get_die_type_at_offset): Fix comment.
8314
8315 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8316
8317 * xcoffread.c (xcoff_secnum_to_sections): New function.
8318 (secnum_to_section, secnum_to_bfd_section): Reimplement
8319 using xcoff_secnum_to_sections. Rename "secnum" parameter
8320 into "n_scnum".
8321 (RECORD_MINIMAL_SYMBOL): Delete.
8322 (record_minimal_symbol): New function.
8323 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8324 by call to record_minimal_symbol and set misc_func_recorded
8325 to 1. Set last_csect_sec to the XCOFF section index instead
8326 of GDB's section_offset index. Update calls to
8327 prim_record_minimal_symbol_and_info to pass the BFD section
8328 as well.
8329
8330 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8331
8332 * xcoffread.c (read_xcoff_symtab): Delete variables
8333 last_csect_val and last_csect_sec and associated code.
8334
8335 2012-04-17 Doug Evans <dje@google.com>
8336
8337 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8338 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8339 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8340 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8341
8342 * cleanups.h: New file.
8343 * cleanups.c: New file.
8344 * Makefile.in (SFILES): Add cleanups.c.
8345 (HFILES_NO_SRCDIR): Add cleanups.h.
8346 (COMMON_OBS): Add cleanups.o.
8347 * defs.h (struct cleanup): Moved to cleanups.h.
8348 (do_cleanups,do_final_cleanups): Ditto.
8349 (discard_cleanups,discard_final_cleanups): Ditto
8350 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8351 (save_cleanups,save_final_cleanups): Ditto.
8352 (restore_cleanups,restore_final_cleanups): Ditto.
8353 (null_cleanup): Ditto.
8354 (make_my_cleanup,make_my_cleanup2): Ditto.
8355 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8356 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8357 (do_cleanups,do_final_cleanups): Ditto.
8358 (discard_cleanups,discard_final_cleanups): Ditto
8359 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8360 (save_cleanups,save_final_cleanups): Ditto.
8361 (restore_cleanups,restore_final_cleanups): Ditto.
8362 (null_cleanup): Ditto.
8363 (make_my_cleanup,make_my_cleanup2): Ditto.
8364 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8365
8366 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8367 make_my_cleanup.
8368 (make_cleanup_dyn_string_delete): Ditto.
8369 (make_cleanup_ui_file_delete): Ditto.
8370 (make_cleanup_ui_out_redirect_pop): Ditto.
8371 (make_cleanup_free_section_addr_info): Ditto.
8372 (make_cleanup_restore_integer): Ditto.
8373 (make_cleanup_unpush_target): Ditto.
8374 (make_cleanup_value_free_to_mark): Ditto.
8375 (make_cleanup_value_free): Ditto.
8376 (make_cleanup_free_so): Ditto.
8377
8378 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8379
8380 New option "set debug auto-load".
8381 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8382 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8383 (auto_load_safe_path_vec_update)
8384 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8385 if DEBUG_AUTO_LOAD.
8386 (file_is_auto_load_safe): New parameters debug_fmt and ....
8387 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8388 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8389 caller by explanatory string.
8390 (_initialize_auto_load): Register "set debug auto-load".
8391 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8392 and ....
8393 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8394 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8395 by explanatory string.
8396 * main.c (captured_main): Likewise.
8397 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8398 (source_section_scripts): Likewise.
8399
8400 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8401
8402 New option "set auto-load safe-path".
8403 * NEWS: New commands "set auto-load safe-path"
8404 and "show auto-load safe-path".
8405 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8406 (auto_load_safe_path, auto_load_safe_path_vec)
8407 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8408 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8409 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8410 (source_gdb_script_for_objfile): New variable is_safe. Call
8411 file_is_auto_load_safe. Return if it is not.
8412 (struct loaded_script): New field loaded.
8413 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8414 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8415 output "Missing" to "No".
8416 (_initialize_auto_load): New variable cmd. Initialize
8417 auto_load_safe_path. Register "set auto-load safe-path",
8418 "show auto-load safe-path" and "add-auto-load-safe-path".
8419 * auto-load.h (maybe_add_script): Add parameter loaded.
8420 (file_is_auto_load_safe): New declaration.
8421 * config.in: Regenerate.
8422 * configure: Regenerate.
8423 * configure.ac: New parameters --with-auto-load-safe-path
8424 and --without-auto-load-safe-path.
8425 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8426 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8427 * main.c (captured_main): Check file_is_auto_load_safe for
8428 LOCAL_GDBINIT.
8429 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8430 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8431 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8432 not.
8433
8434 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 auto-load: Implementation.
8437 * NEWS: New descriptions for "info auto-load",
8438 "info auto-load gdb-scripts", "info auto-load python-scripts",
8439 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8440 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8441 and "show auto-load-scripts". New description for "set auto-load",
8442 "show auto-load", "set auto-load gdb-scripts",
8443 "show auto-load gdb-scripts", "set auto-load python-scripts",
8444 "show auto-load python-scripts", "set auto-load local-gdbinit",
8445 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8446 "show auto-load libthread-db".
8447 * auto-load.c: Remove include python/python-internal.h. Add includes
8448 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8449 cli/cli-setshow.h.
8450 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8451 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8452 (gdbpy_global_auto_load): Rename to ...
8453 (global_auto_load): ... here.
8454 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8455 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8456 (script_language_gdb, source_gdb_script_for_objfile): New.
8457 (struct loaded_script): New field language.
8458 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8459 LANGUAGE.
8460 (maybe_add_script): Add parameter language. Drop redundant
8461 entry.full_path initialization. Initialize entry.language and
8462 (*slot)->language.
8463 (auto_load_objfile_script): Change parameter suffix to language.
8464 Remove the call of maybe_add_script.
8465 Call language->source_script_for_objfile.
8466 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8467 New.
8468 (collect_matching_scripts): Adjust it for
8469 struct collect_matching_scripts_data.
8470 (auto_load_info_scripts_pattern_nl): New variable.
8471 (info_auto_load_scripts): Rename to ...
8472 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8473 for struct collect_matching_scripts_data.
8474 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8475 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8476 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8477 (auto_load_info_cmdlist_get): New.
8478 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8479 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8480 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8481 "info auto-load local-gdbinit".
8482 * auto-load.h (struct script_language): New.
8483 (gdbpy_global_auto_load): Rename to ...
8484 (global_auto_load): ... here.
8485 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8486 (auto_load_local_gdbinit_loaded): New declarations.
8487 (maybe_add_script): New parameter language.
8488 (auto_load_objfile_script): Change parameter suffix to language.
8489 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8490 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8491 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8492 declarations.
8493 * linux-thread-db.c: Include auto-load.h and ctype.h.
8494 (auto_load_thread_db, show_auto_load_thread_db): New.
8495 (struct thread_db_info): New field filename.
8496 (delete_thread_db_info): Call xfree for FILENAME.
8497 (try_thread_db_load): Initialize FILENAME.
8498 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8499 if !AUTO_LOAD_THREAD_DB.
8500 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8501 (_initialize_thread_db): Install auto_load_thread_db
8502 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8503 as "info auto-load libthread-db".
8504 * main.c (captured_main): Rename gdbpy_global_auto_load to
8505 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8506 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8507 (print_gdb_help): Extend the help for 'local init file'.
8508 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8509 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8510 (auto_load_scripts): Rename to ...
8511 (auto_load_python_scripts): ... here, update the comment.
8512 (gdbpy_load_auto_script_for_objfile): New declaration.
8513 (show_auto_load_python_scripts, script_language_python)
8514 (gdbpy_load_auto_script_for_objfile): New.
8515 (source_section_scripts): Refactor the code.
8516 (load_auto_scripts_for_objfile): Rename to ...
8517 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8518 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8519 (info_auto_load_python_scripts): New.
8520 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8521 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8522 Register "set auto-load-scripts" as its deprecated alias. Register
8523 "info auto-load python-scripts". Register "info auto-load-scripts" as
8524 its deprecated alias.
8525 (load_auto_scripts_for_objfile): Rename to ...
8526 (gdbpy_load_auto_scripts_for_objfile): ... here.
8527 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8528 (gdbpy_load_auto_scripts_for_objfile): ... here.
8529
8530 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8531
8532 auto-load: Move files.
8533 * Makefile.in (SFILES): Add auto-load.c.
8534 (HFILES_NO_SRCDIR): Add auto-load.h.
8535 (COMMON_OBS): Add auto-load.o.
8536 (distclean): Change .gdbinit for gdb-gdb.gdb.
8537 * auto-load.c: New file, with parts from python/py-auto-load.c.
8538 * auto-load.h: New file, with parts from python/python.h.
8539 * configure: Regenerate.
8540 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8541 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8542 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8543 * main.c: Include auto-load.h.
8544 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8545 command.h, observer.h and progspace.h to auto-load.c. Add include
8546 auto-load.h.
8547 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8548 (struct loaded_script, auto_load_pspace_data)
8549 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8550 (hash_loaded_script_entry, eq_loaded_script_entry)
8551 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8552 (maybe_add_script): Move to auto-load.c.
8553 (source_section_scripts): Change maybe_add_script parameters passing,
8554 use script_not_found_warning_print.
8555 (clear_section_scripts, auto_load_objfile_script)
8556 (auto_load_new_objfile, loaded_script_ptr)
8557 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8558 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8559 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8560 auto_load_new_objfile and info_auto_load_scripts initizations to
8561 auto-load.c.
8562 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8563
8564 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8565
8566 Code cleanup.
8567 * charset.c (find_charset_names): Remove variables ix and elt.
8568 Use free_char_ptr_vec.
8569 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8570 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8571 debugdir_end. New variable debugdir_len.
8572 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8573 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8574 declarations.
8575 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8576 and elt. Use free_char_ptr_vec.
8577 * source.c (add_path): Remove variables argv, arg and argv_index.
8578 New variables dir_vec, back_to, ix and name.
8579 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8580 make_cleanup_freeargv. Remove variable separator. Simplify the code
8581 no longer expecting DIRNAME_SEPARATOR.
8582 (openp): Remove variable p, p1 and len. New variables dir_vec,
8583 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8584 no longer expecting DIRNAME_SEPARATOR.
8585 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8586 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8587 debugdir_end.
8588 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8589 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8590 (dirnames_to_char_ptr_vec): New functions.
8591
8592 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8593
8594 Code cleanup.
8595 * source.c (add_path): Remove always true conditional 'p == 0' and
8596 unindent its code block.
8597
8598 2012-04-17 Pedro Alves <palves@redhat.com>
8599
8600 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8601 (FIELD_BITPOS_LVAL): ... this.
8602 (FIELD_BITPOS): New.
8603 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8604 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8605 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8606 SET_FIELD_BITPOS.
8607 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8608 SET_FIELD_BITPOS.
8609 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8610 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8611 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8612 SET_FIELD_BITPOS.
8613
8614 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8615
8616 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8617 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8618 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8619 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8620 * jv-lang.c (java_link_class_type): Likewise, once.
8621 * stabsread.c (read_enum_type): Likewise.
8622
8623 2012-04-16 Yao Qi <yao@codesourcery.com>
8624
8625 * common/agent.c (agent_run_command): Add one more parameter `len'.
8626 Update callers.
8627 * common/agent.h: Update declaration.
8628 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8629 Update.
8630 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8631
8632 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8633
8634 PR mi/13393
8635 * value.c (value_actual_type): New function.
8636 * value.h (value_actual_type): New declaration.
8637 * varobj.c (update_type_if_necessary): New function.
8638 (varobj_create): Call value_actual_type instead of
8639 value_type.
8640 (install_dynamic_child): distinct changed and type changed MI variable
8641 objects.
8642 (update_dynamic_varobj_children): Updated for install_dynamic_child
8643 change. All callers updated.
8644 (varobj_update): Support for MI variable object type change if
8645 the value changed and RTTI is used to determine the type.
8646 (create_child_with_value): Call value_actual_type instead of
8647 value_type.
8648 (adjust_value_for_child_access): Extended with a new parameter which
8649 specify whether the given value should be casted to enclosing type.
8650 All callers updated.
8651
8652 2012-04-14 Yao Qi <yao@codesourcery.com>
8653
8654 Import gnulib module inttypes from git
8655 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8656 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8657 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8658 gnulib/m4/inttypes-pri.m4
8659 * aclocal.m4, config.in, configure: Regenerated.
8660 * gnulib/Makefile.am: Update.
8661 * gnulib/Makefile.in: Update.
8662 * gnulib/m4/gnulib-cache.m4: Update.
8663 * gnulib/m4/gnulib-comp.m4: Update.
8664 * gnulib/inttypes.in.h: New.
8665 * gnulib/m4/inttypes-pri.m4: New.
8666 * gnulib/m4/inttypes.m4: New.
8667
8668 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8669
8670 * infrun.c (resume): Update PC address to the real PC after
8671 preparing to do displaced stepping.
8672
8673 2012-04-12 Doug Evans <dje@google.com>
8674
8675 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8676 All callers updated.
8677
8678 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8679
8680 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8681
8682 2012-04-12 Doug Evans <dje@google.com>
8683
8684 * dwarf2read.c (create_all_type_units): Renamed from
8685 create_debug_types_hash_table. All callers updated.
8686
8687 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8688 local type_sig to sig_type, type_offset to type_offset_in_tu.
8689 (hash_signatured_type): Renamed from hash_type_signature,
8690 all callers updated.
8691 (eq_signatured_type): Renamed from eq_type_signature,
8692 all callers updated.
8693 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8694 (process_enumeration_scope): Ditto.
8695 (lookup_signatured_type_at_offset): Ditto.
8696 (load_full_type_unit, read_signatured_type): Ditto.
8697
8698 2012-04-12 Yao Qi <yao@codesourcery.com>
8699
8700 * remote.c (async_remote_interrupt): Correct function name in
8701 debug message.
8702 (async_remote_interrupt_twice): Ditto.
8703
8704 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8705
8706 * source.c (find_and_open_source): Consistently pass resulting
8707 full path through xfullpath.
8708
8709 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8710
8711 Provide more specific displaced-stepping memory error message.
8712 * infrun.c (displaced_step_prepare): New variable status. Call
8713 target_read_memory instead of read_memory, provide more specific
8714 error message.
8715
8716 2012-04-11 Tristan Gingold <gingold@adacore.com>
8717
8718 PR gdb/13901
8719 * darwin-nat.c (darwin_execvp): Revert previous patch.
8720
8721 2012-04-11 Tristan Gingold <gingold@adacore.com>
8722
8723 PR gdb/13901
8724 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8725 in case of change.
8726
8727 2012-04-11 Tristan Gingold <gingold@adacore.com>
8728
8729 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8730 warning.
8731
8732 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8733
8734 New command 'explore' which helps explore values and types in
8735 scope.
8736 * NEWS: Add an entry about the new 'explore' command.
8737 * data-directory/Makefile.in: Add gdb/command/explore.py
8738 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8739 command using the GDB Python API.
8740
8741 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8742
8743 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8744 extension in jump target calculation.
8745
8746 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8747
8748 * mips-tdep.c (mips32_next_pc): Handle JALX.
8749
8750 2012-04-10 Yao Qi <yao@codesourcery.com>
8751
8752 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8753
8754 2012-04-10 Yao Qi <yao@codesourcery.com>
8755
8756 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8757 and gnulib/m4/gnulib-tool.m4.
8758
8759 2012-04-10 Doug Evans <dje@google.com>
8760
8761 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8762 (load_partial_dies): Clarify comment.
8763 (find_partial_die): Support rereading type units.
8764 Clarify CU handling, if we know offset is in CU, don't search for the
8765 containing CU. Add comment regarding memory waste.
8766
8767 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8768
8769 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8770 i386/x32-avx and i386/x32-avx-linux.
8771 (i386/x32-expedite): New.
8772 (i386/x32-linux-expedite): Likewise.
8773 (i386/x32-avx-expedite): Likewise.
8774 (i386/x32-avx-linux-expedite): Likewise.
8775 ($(outdir)/i386/x32.dat): Likewise.
8776 ($(outdir)/i386/x32-linux.dat): Likewise.
8777 ($(outdir)/i386/x32-avx.dat): Likewise.
8778 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8779
8780 * features/i386/x32-avx-linux.xml: New file.
8781 * features/i386/x32-avx.xml: Likewise.
8782 * features/i386/x32-core.xml: Likewise.
8783 * features/i386/x32-linux.xml: Likewise.
8784 * features/i386/x32.xml: Likewise.
8785
8786 * features/i386/x32-avx-linux.c: New. Generated.
8787 * features/i386/x32-avx.c: Likewise.
8788 * features/i386/x32-linux.c: Likewise.
8789 * features/i386/x32.c: Likewise.
8790 * regformats/i386/x32-avx-linux.dat: Likewise.
8791 * regformats/i386/x32-avx.dat: Likewise.
8792 * regformats/i386/x32-linux.dat: Likewise.
8793 * regformats/i386/x32.dat: Likewise.
8794
8795 2012-04-10 Tristan Gingold <gingold@adacore.com>
8796
8797 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8798 code to kill the inferior.
8799
8800 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8801
8802 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8803 defines.
8804 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8805 defines.
8806 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8807 (yyvsp): New defines.
8808 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8809 defines.
8810 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8811 defines.
8812 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8813 defines.
8814 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8815 defines.
8816 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8817 defines.
8818
8819 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8820
8821 * sparc64-tdep.c (sparc64_store_arguments)
8822 (sparc64_store_arguments): Fix coding style.
8823
8824 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8825
8826 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8827 complex floats, adjust some related comments and tighten a related
8828 assertion.
8829 (sparc64_extract_return_value): Handle complex floats.
8830
8831 2012-04-07 Doug Evans <dje@google.com>
8832
8833 * dwarf2read.c (load_partial_dies): Change condition to assert.
8834
8835 2012-04-06 Doug Evans <dje@google.com>
8836
8837 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8838 "mov %rsp,%rbp".
8839
8840 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8841
8842 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8843 fencepost error.
8844 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8845 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8846 architecture.
8847
8848 2012-04-05 Keith Seitz <keiths@redhat.com>
8849
8850 * linespec.c (decode_compound): Remove.
8851 (enum offset_relative_sign): New enum.
8852 (struct line_offset): New struct.
8853 (struct linespec): New struct.
8854 (struct linespec_state): Move file_symtabs,
8855 user_filename, and user_function into struct linespec.
8856 Make result an anonymous struct holding vectors of
8857 symbolp and minsym_and_objfile_d.
8858 Add language member.
8859 (enum ls_token_type): New enum.
8860 (linespec_keywords): New array.
8861 (struct ls_token): New struct.
8862 (struct ls_parser): New struct.
8863 (linespec_lexer_lex_number): New function.
8864 (linespec_lexer_lex_keyword): New function.
8865 (is_ada_operator): New function.
8866 (skip_quote_char): New function.
8867 (copy_token_string): New function.
8868 (is_closing_quote_enclosed): New function.
8869 (find_parameter_list_end): New function.
8870 (linespec_lexer_lex_string): New function.
8871 (linespec_lexer_lex_one): New function.
8872 (linespec_lexer_consume_token): New function.
8873 (linespec_lexer_peek_token): New function.
8874 (cplusplus_error): Remove unused function.
8875 (find_methods): Update comment.
8876 (find_toplevel_char): Return const.
8877 (is_objc_method_format): Remove unused function.
8878 (find_toplevel_string): New function.
8879 (is_linespec_boundary): Remove.
8880 (symbol_not_found_error): New function.
8881 (find_method_overload_end): Remove function.
8882 (unexpected_linespec_error): New function.
8883 (keep_name_info): Remove.
8884 (linespec_parse_line_offset): New function.
8885 (linespec_parse_basic): New function.
8886 (canonicalize_linespec): New function.
8887 (decode_line_internal): Remove.
8888 (create_sals_line_offset): New function adapted from
8889 decode_all_digits.
8890 (convert_linespec_to_sals): New function.
8891 (parse_linespec): New function.
8892 (linespec_parser_new): New function.
8893 (linespec_state_destructor): Change parameter type to
8894 struct linespec_state *.
8895 Add language parameter.
8896 Remove freeing of moved members.
8897 (linespec_parser_delete): New function.
8898 (decode_line_full): Use parse_linespec and linespec_parser_new.
8899 (decode_line_1): Likewise.
8900 (decode_indirect): Rename to ...
8901 (linespec_expression_to_pc): ... this and rewrite
8902 to simply find CORE_ADDR, storing this result for later
8903 conversion to SALs.
8904 (locate_first_half): Remove.
8905 (deocde_objc): Add parameter LS.
8906 Initialize new struct collect_info members.
8907 Handle minimal symbols, too.
8908 (decode_compound): Delete.
8909 (lookup_prefix_sym): Rewrite.
8910 (compare_msymbols): New function.
8911 (find_method): Rewrite.
8912 Do not call cplusplus_error.
8913 (symtabs_from_filename): Rewrite.
8914 (collect_function_symbols): Delete.
8915 (find_function_symbols): Rewrite without ARGPTR-style
8916 processing.
8917 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8918 (decode_dollar): Adapted and renamed to ...
8919 (linespec_parse_variable): ... this.
8920 (find_linespec_symbols): New function.
8921 (decode_label): Adapted and renamed to ...
8922 (find_label_symbols): ... this.
8923 (decode_digits_list_mode): Add and use LS argument.
8924 (decode_digits_ordinary): Likewise.
8925 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8926 If in list mode, allow any symbol class. Otherwise, only
8927 permit LOC_BLOCK symbols.
8928 (minsym_found): Update comments.
8929 (search_minsyms_for_name): Do not convert the matching symbol
8930 into a SAL. Simply push the symbol and objfile into the
8931 result vector.
8932 (decode_variable): Delete. Contents adapted into
8933 find_linespec_symbols.
8934
8935 * cp-support.c (SKIP_SPACE): Remove.
8936 (operator_tokens): Remove unused global.
8937 (cp_validate_operator): Remove.
8938 * cp-support.h (cp_validate_operator): Remove declaration.
8939
8940 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8941
8942 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8943 for TYPE_VPTR_FIELDNO.
8944 * valprint.c (valprint_check_validity): Make it global, move the
8945 function comment ...
8946 * value.h (valprint_check_validity): ... to this new declaration.
8947
8948 2012-04-02 Tristan Gingold <gingold@adacore.com>
8949
8950 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8951 the STATE32 api for i386 state.
8952 (i386_darwin_store_inferior_registers): Likewise.
8953
8954 2012-04-02 Tristan Gingold <gingold@adacore.com>
8955
8956 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8957 SS offset.
8958 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8959 format_string.
8960
8961 2012-04-02 Tristan Gingold <gingold@adacore.com>
8962
8963 PR gdb/13901
8964 * darwin-nat.c (darwin_execvp): Set binary preference.
8965
8966 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8967
8968 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8969
8970 2012-03-30 Tom Tromey <tromey@redhat.com>
8971
8972 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8973 of TRY_CATCH. Fix error handling.
8974 * python/py-value.c (convert_value_from_python): Move 'old'
8975 declaration to innermost scope.
8976
8977 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8978 Andrey Smirnov <andrew.smirnov@gmail.com>
8979
8980 -Wshadow warning fix.
8981 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8982 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8983 Adjust code accordingly.
8984
8985 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8986
8987 * ada-lang.c (symbol_completion_add): Rename parameter
8988 "encoded" into "encoded_p". Ajust code and documentation
8989 accordingly.
8990
8991 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8992 Andrey Smirnov <andrew.smirnov@gmail.com>
8993
8994 -Wshadow warning fix.
8995 * ada-lang.c (symbol_completion_add): Rename parameter
8996 "wild_match" into wild_match_p. Update code and documentation
8997 accordingly.
8998
8999 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9000
9001 * ada-lang.c (symbol_completion_match): Rename parameter
9002 "encoded" into "encoded_p". Ajust code and documentation
9003 accordingly.
9004
9005 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9006 Andrey Smirnov <andrew.smirnov@gmail.com>
9007
9008 -Wshadow warning fix.
9009 * ada-lang.c (symbol_completion_match): Rename parameter
9010 "wild_match" into "wild_match_p". Adjust code and function
9011 documentation accordingly.
9012
9013 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9014 Andrey Smirnov <andrew.smirnov@gmail.com>
9015
9016 -Wshadow warning fix.
9017 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9018 "symbol_info" into "info". Adjust code accordingly.
9019 (ada_lookup_symbol): Likewise.
9020
9021 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9022
9023 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9024 of this function's documentation.
9025
9026 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9027 Andrey Smirnov <andrew.smirnov@gmail.com>
9028
9029 -Wshadow warning fix.
9030 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9031 variable into "wild_match_p". Adjust code accordingly.
9032
9033 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9034 Andrey Smirnov <andrew.smirnov@gmail.com>
9035
9036 -Wshadow warning fix.
9037 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9038 parameter into "wild_match_p". Adjust code accordingly.
9039 Document this parameter in the function description.
9040
9041 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9042 Andrey Smirnov <andrew.smirnov@gmail.com>
9043
9044 -Wshadow warning fix.
9045 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9046 "wild_match" parameter to "wild_match_p" (-Wshadow).
9047
9048 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9049
9050 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9051 in function documentation.
9052
9053 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9054 Andrey Smirnov <andrew.smirnov@gmail.com>
9055
9056 -Wshadow warning fix.
9057 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9058 variable into wild_match_p. Adjust code accordingly.
9059
9060 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9061 Andrey Smirnov <andrew.smirnov@gmail.com>
9062
9063 * ada-valprint.c (ada_val_print_1): Move the code handling
9064 TYPE_CODE_ENUM inside its own lexical block. Declare
9065 variables len and val there, instead of in the function's
9066 top level block. Avoid declaring deref_val again in a way
9067 that shadows another variable of the same name declared
9068 in one of the up-level blocks. Just re-use the up-level
9069 variable instead.
9070
9071 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9072
9073 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9074 Replace block_found argument by symbol_info. Adjust
9075 implementation accordingly. Add function documentation.
9076 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9077 Fix documentation.
9078 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9079 * ada-exp.y (write_object_renaming): Adjust to new
9080 ada_lookup_encoded_symbol API.
9081
9082 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9083
9084 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9085 documentation.
9086
9087 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9088
9089 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9090 (v850_register_name): Add the mpu and fpu register names.
9091 (v850e_register_name): Add the mpu and fpu register names.
9092 (v850e2_register_name): New function.
9093 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9094 bfd_mach_v850e2v3.
9095
9096 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9097
9098 * NEWS: Add entry for Ada varobj support.
9099
9100 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9101
9102 * varobj.c (default_value_is_changeable_p): New function,
9103 extracted from varobj_value_is_changeable_p. Add declaration.
9104 (ada_value_is_changeable_p): New function, extracted from
9105 varobj_value_is_changeable_p. Add declaration.
9106 (struct language_specific): New field "value_is_changeable_p".
9107 (languages): Add entries for new field.
9108 (varobj_create): Set language before calling install_new_value.
9109 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9110 "value_is_changeable_p" language callback.
9111
9112 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9113
9114 * ada-varobj.h, ada-varobj.c: New files.
9115 * Makefile.in (SFILES): Add ada-varobj.c.
9116 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9117 (COMMON_OBS): Add ada-varobj.o.
9118
9119 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9120
9121 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9122 (struct language_specific): New field "value_has_mutated".
9123 (languages): Set field "value_has_mutated" in each entry of array.
9124 (varobj_value_has_mutated): New function.
9125 (varobj_udpdate): Add handling of type mutation.
9126 (value_of_root): Add handling of type mutation.
9127 (ada_value_has_mutated): New function.
9128
9129 2012-03-28 Pedro Alves <palves@redhat.com>
9130
9131 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9132 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9133
9134 2012-03-28 Tom Tromey <tromey@redhat.com>
9135
9136 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9137 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9138 before returning.
9139
9140 2012-03-28 Tom Tromey <tromey@redhat.com>
9141
9142 * .dir-locals.el: New file.
9143
9144 2012-03-28 Pedro Alves <palves@redhat.com>
9145
9146 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9147
9148 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9149
9150 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9151 handling for r0.
9152
9153 2012-03-27 Pedro Alves <palves@redhat.com>
9154
9155 Eliminate struct ui_stream.
9156
9157 * ui-out.h (struct ui_stream): Delete.
9158 (ui_out_field_stream): Adjust prototype.
9159 (ui_out_stream_new, ui_out_stream_delete)
9160 (make_cleanup_ui_out_stream_delete): Delete declarations.
9161 * ui-out.c (ui_out_field_stream): Change prototype to take a
9162 ui_file instead of a ui_stream. Adjust.
9163 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9164 (make_cleanup_ui_out_stream_delete): Delete.
9165 * breakpoint.c (print_breakpoint_location)
9166 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9167 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9168 * disasm.c (dump_insns): Ditto.
9169 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9170 prototype.
9171 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9172 ui_stream/ui_out_stream_new.
9173 * infcmd.c (print_return_value): Ditto.
9174 * osdata.c (info_osdata_command): Don't allocate a local
9175 ui_stream.
9176 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9177 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9178 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9179 allocate a local ui_stream.
9180 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9181 instead of ui_stream/ui_out_stream_new.
9182 (list_args_or_locals): Don't allocate a local ui_stream.
9183 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9184 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9185 ui_stream/ui_out_stream_new.
9186 * cli/cli-setshow.c (do_setshow_command): Ditto.
9187
9188 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9189
9190 * arm-linux-tdep.c (arm_linux_init_abi): Call
9191 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9192 * arm-tdep.c (arm_process_record): New function.
9193 (deallocate_reg_mem): New function.
9194 (decode_insn): New function.
9195 (thumb_record_branch): New function.
9196 (thumb_record_ldm_stm_swi(): New function.
9197 (thumb_record_misc): New function.
9198 (thumb_record_ld_st_stack): New function.
9199 (thumb_record_ld_st_imm_offset): New function.
9200 (thumb_record_ld_st_reg_offset(): New function.
9201 (thumb_record_add_sub_cmp_mov): New function.
9202 (thumb_record_shift_add_sub): New function.
9203 (arm_record_coproc_data_proc): New function.
9204 (arm_record_coproc): New function.
9205 (arm_record_b_bl): New function.
9206 (arm_record_ld_st_multiple): New function.
9207 (arm_record_ld_st_reg_offset): New function.
9208 (arm_record_ld_st_imm_offset): New function.
9209 (arm_record_data_proc_imm): New function.
9210 (arm_record_data_proc_misc_ld_str): New function.
9211 (arm_record_extension_space): New function.
9212 (arm_record_strx): New function.
9213 (sbo_sbz): New function.
9214 (struct insn_decode_record): New structure for arm insn record.
9215 (REG_ALLOC): New macro for reg allocations.
9216 (MEM_ALLOC): New macro for memory allocations.
9217 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9218
9219 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9220
9221 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9222 (store_register): Likewise.
9223
9224 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9225
9226 * MAINTAINERS (Write After Approval): Add myself to the list.
9227
9228 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9229
9230 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9231 Describe also the option "auto".
9232
9233 2012-03-22 Richard Henderson <rth@redhat.com>
9234
9235 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9236 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9237
9238 2012-03-22 Richard Henderson <rth@redhat.com>
9239
9240 * jit.c (jit_read_code_entry): Compute alignment and offset of
9241 int64_t member before computing entry_size.
9242
9243 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9244
9245 Python scripting: Add new method Value.referenced_value to
9246 gdb.Value which can dereference pointer as well as reference
9247 values.
9248 * NEWS: Add entry under 'Python scripting' about the new method
9249 Value.referenced_value on gdb.Value objects.
9250 * python/py-value.c (valpy_referenced_value): New function
9251 defining a new method on gdb.Value objects which can dereference
9252 pointer and reference values.
9253
9254 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9255
9256 * MAINTAINERS (Write After Approval): Add myself to the list.
9257
9258 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9259
9260 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9261 in addition to "main".
9262
9263 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9264
9265 * expression.h (op_name): Add declaration.
9266 * expprint.c (op_name): Remove declaration. Make non-static.
9267 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9268
9269 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9270
9271 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9272 of struct siginfo.
9273 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9274 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9275 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9276 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9277 (linux_nat_get_siginfo): Likewise.
9278 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9279 (linux_nat_get_siginfo): Likewise.
9280 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9281 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9282 * procfs.c (gdb_siginfo_t): Likewise.
9283
9284 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9285
9286 * .gitignore: Ignore more files.
9287
9288 2012-03-20 Pedro Alves <palves@redhat.com>
9289
9290 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9291 returns.
9292
9293 2012-03-20 Yao Qi <yao@codesourcery.com>
9294
9295 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9296 comment.
9297
9298 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9299
9300 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9301 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9302 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9303 sect_offset.
9304 * dwarf2expr.h (cu_offset, sect_offset): New types.
9305 (struct dwarf_expr_context_funcs) <dwarf_call>
9306 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9307 sect_offset.
9308 (struct dwarf_expr_context) <len>: Improve the comment.
9309 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9310 cu_offset and sect_offset.
9311 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9312 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9313 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9314 * dwarf2loc.h: Include dwarf2expr.h.
9315 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9316 and sect_offset.
9317 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9318 Improve the comment.
9319 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9320 (struct signatured_type, struct line_header, struct partial_die_info)
9321 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9322 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9323 (get_die_type_at_offset, create_cus_from_index)
9324 (create_signatured_type_table_from_index, dw2_get_file_names)
9325 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9326 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9327 (create_debug_types_hash_table, process_psymtab_comp_unit)
9328 (load_partial_comp_unit, create_all_comp_units)
9329 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9330 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9331 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9332 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9333 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9334 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9335 (find_partial_die, read_attribute_value, lookup_die_type)
9336 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9337 (is_ref_attr): New function comment.
9338 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9339 Use cu_offset and sect_offset.
9340 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9341 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9342 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9343 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9344 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9345 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9346 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9347 sect_offset.
9348
9349 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9350
9351 Code cleanup.
9352 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9353 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9354 with xfree.
9355 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9356
9357 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9358
9359 * NEWS: Describe new options --init-command=FILE, -ix and
9360 --init-eval-command=COMMAND, -iex.
9361 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9362 CMDARG_INIT_COMMAND.
9363 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9364 "init-command", "init-eval-command", "ix" and "iex" to the variable
9365 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9366 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9367 (print_gdb_help): Describe --init-command=FILE, -ix and
9368 --init-eval-command=COMMAND, -iex.
9369
9370 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9371
9372 Code cleanup.
9373 * main.c (struct cmdarg): Move it here from main. Add more comments.
9374 (cmdarg_s, VEC (cmdarg_s)): New.
9375 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9376 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9377 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9378 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9379 of CMDARG.
9380
9381 2012-03-19 Tom Tromey <tromey@redhat.com>
9382
9383 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9384
9385 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9386
9387 PR symtab/13777
9388 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9389 GCC >=4.5.
9390
9391 2012-03-16 Chris January <chris.january@allinea.com>
9392
9393 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9394 of clear.
9395
9396 2012-03-16 Chris January <chris.january@allinea.com>
9397
9398 * source.c (add_path): Use memmove instead of strcpy because the
9399 strings overlap.
9400
9401 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9402
9403 * value.h (set_value_parent): Add declaration.
9404 * value.c (set_value_parent): New function.
9405 (value_address): If VALUE->PARENT is not NULL, then use it as
9406 the base address instead of VALUE->LOCATION.address.
9407 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9408 the same as OBJ's address. Adjust V's offset accordingly.
9409 Set V's parent.
9410
9411 2012-03-16 Gary Benson <gbenson@redhat.com>
9412
9413 PR breakpoints/10738
9414 * dwarf2read.c (use_deprecated_index_sections): New global.
9415 (struct partial_die_info): New member may_be_inlined.
9416 (read_partial_die): Set may_be_inlined where appropriate.
9417 (add_partial_subprogram): Add partial symbols for partial
9418 DIEs that may be inlined.
9419 (new_symbol_full): Add inlined subroutines to the current
9420 scope.
9421 (write_psymtabs_to_index): Bump version number.
9422 (dwarf2_read_index): Read only version 6 indices unless
9423 use_deprecated_index_sections is set.
9424 * linespec.c (symbol_and_data_callback): New structure.
9425 (iterate_inline_only): New function.
9426 (iterate_over_all_matching_symtabs): New argument
9427 "include_inline". If nonzero, also call the callback for
9428 symbols representing inlined subroutines.
9429 (lookup_prefix_sym): Pass extra argument to the above.
9430 (find_function_symbols): Likewise.
9431 (add_matching_symbols_to_info): Likewise.
9432 * NEWS: Mention that GDB can now set breakpoints on inlined
9433 functions.
9434
9435 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9436
9437 * p-typeprint.c (pascal_type_print_method_args):
9438 Fix display of parameter of methods.
9439
9440 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9441
9442 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9443 Add missing prototype.
9444
9445 2012-03-16 Yao Qi <yao@codesourcery.com>
9446 Jan Kratochvil <jan.kratochvil@redhat.com>
9447
9448 Fix false compilation warning.
9449 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9450
9451 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9452 Pedro Alves <pedro@codesourcery.com>
9453
9454 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9455 (arm_register_g_packet_guesses): New function.
9456 (arm_gdbarch_init): Don't force a target description with
9457 registers when the executable is detected as M-profile. Instead
9458 set gdbarch->tdep->is_m. Register `g' packet guesses.
9459 (_initialize_arm_tdep): Initialize the new target description.
9460 * features/arm-with-m-fpa-layout.xml: New description.
9461 * features/arm-with-m-fpa-layout.c: New, generated.
9462
9463 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9464
9465 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9466 Update function description.
9467 (insert_bp_location): Do not wipe bl->target_info out.
9468 * mem-break.c: #include "gdb_string.h".
9469 (default_memory_insert_breakpoint): Do not call target_read_memory
9470 with a pointer to the breakpoint's shadow_contents buffer. Use
9471 a local buffer instead.
9472 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9473
9474 2012-03-15 Tom Tromey <tromey@redhat.com>
9475
9476 * NEWS: Mention "info vtbl", not "info vtable".
9477 * cp-support.c (info_vtbl_command): Fix comment.
9478 (_initialize_cp_support): Fix text.
9479
9480 2012-03-15 Tom Tromey <tromey@redhat.com>
9481
9482 * cp-valprint.c (cp_print_value_fields): Use
9483 print_function_pointer_address for vtable slot.
9484
9485 2012-03-15 Tom Tromey <tromey@redhat.com>
9486
9487 * gnu-v3-abi.c (struct value_and_voffset): New.
9488 (hash_value_and_voffset, eq_value_and_voffset)
9489 (compare_value_and_voffset, compute_vtable_size)
9490 (print_one_vtable, gnuv3_print_vtable): New functions.
9491 (init_gnuv3_ops): Initialize 'print_vtable' field.
9492 * cp-support.c (info_vtbl_command): New function.
9493 (_initialize_cp_support): Add "info vtbl".
9494 * cp-abi.h (cplus_print_vtable): Declare.
9495 (struct cp_abi_ops) <print_vtable>: New field.
9496 * cp-abi.c (cplus_print_vtable): New function.
9497 * NEWS: Update.
9498
9499 2012-03-15 Tom Tromey <tromey@redhat.com>
9500
9501 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9502 iterate_over_symbols.
9503
9504 2012-03-14 Doug Evans <dje@google.com>
9505
9506 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9507 DW_OP_GNU_parameter_ref.
9508
9509 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9510
9511 Fix double prompt of 'interpreter-exec mi'.
9512 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9513 (mi_interpreter_resume): use it.
9514 (mi_execute_command_input_handler): New function.
9515 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9516 mi_execute_command_input_handler.
9517
9518 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9519
9520 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9521 prototype.
9522 (darwin_debug_port_info): Make static.
9523 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9524 * machoread.c (_initialize_machoread): Add prototype.
9525 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9526 (i386_darwin_set_control, i386_darwin_get_control)
9527 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9528 i386_darwin_get_status, i386_darwin_get_control):
9529 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9530
9531 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9532
9533 * ax-gdb.c (gen_usual_unary): Remove special handling of
9534 enum and bool types.
9535
9536 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9537
9538 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9539
9540 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9541
9542 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9543
9544 2012-03-13 Chris January <chris.january@allinea.com>
9545
9546 * aix-thread.c (fill_sprs): Store the floating point registers
9547 at the correct offsets into vals.
9548
9549 2012-03-13 Doug Evans <dje@google.com>
9550
9551 * NEWS: Mention symbol-reloading has been deleted.
9552 * symfile.c (symbol_reloading): Delete.
9553 (show_symbol_reloading): Delete.
9554 (_initialize_symfile): Delete set/show symbol-reloading.
9555
9556 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9557 read_in_chain until we have successfully read it in.
9558 (load_full_comp_unit): Ditto.
9559 (read_signatured_type): Add comment.
9560
9561 2012-03-13 Chris January <chris.january@allinea.com>
9562
9563 * stabsread.c (fix_common_block): Change type of valu argument
9564 to CORE_ADDR.
9565
9566 2012-03-13 Chris January <chris.january@allinea.com>
9567
9568 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9569 instruction.
9570
9571 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9572
9573 * common/linux-procfs.c (linux_proc_get_int): New, from
9574 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9575 field.
9576 (linux_proc_get_tgid): Only call linux_proc_get_int.
9577 (linux_proc_get_tracerpid): New.
9578 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9579 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9580 linux_proc_pid_has_state.
9581 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9582 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9583 (linux_ptrace_attach_warnings): New.
9584 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9585 New declaration.
9586 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9587 (linux_nat_attach): New variables ex, buffer, message and message_s.
9588 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9589
9590 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9591
9592 * Makefile.in (linux-ptrace.o): New.
9593 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9594 from linux-nat.c.
9595 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9596 * common/linux-ptrace.c: New file.
9597 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9598 * config/arm/linux.mh: Likewise.
9599 * config/i386/linux.mh: Likewise.
9600 * config/i386/linux64.mh: Likewise.
9601 * config/ia64/linux.mh: Likewise.
9602 * config/m32r/linux.mh: Likewise.
9603 * config/m68k/linux.mh: Likewise.
9604 * config/mips/linux.mh: Likewise.
9605 * config/pa/linux.mh: Likewise.
9606 * config/powerpc/linux.mh: Likewise.
9607 * config/powerpc/ppc64-linux.mh: Likewise.
9608 * config/powerpc/spu-linux.mh: Likewise.
9609 * config/s390/s390.mh: Likewise.
9610 * config/sparc/linux.mh: Likewise.
9611 * config/sparc/linux64.mh: Likewise.
9612 * config/xtensa/linux.mh: Likewise.
9613 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9614 common/linux-procfs.c.
9615 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9616
9617 2012-03-13 Hui Zhu <teawater@gmail.com>
9618 Pedro Alves <palves@redhat.com>
9619
9620 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9621 CREATE_BREAKPOINT_FLAGS_INSERTED.
9622 (create_breakpoint_sal, create_breakpoints_sal)
9623 (base_breakpoint_create_breakpoints_sal)
9624 (tracepoint_create_breakpoints_sal)
9625 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9626 down.
9627 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9628 (ftrace_command, strace_command): Adjust.
9629 (create_tracepoint_from_upload): Pass
9630 CREATE_BREAKPOINT_FLAGS_INSERTED.
9631 * breakpoint.h (enum breakpoint_create_flags): New.
9632 (create_breakpoint): New flags parameter.
9633 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9634 * python/py-breakpoint.c (bppy_init): Adjust.
9635 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9636 * spu-tdep.c (spu_catch_start): Adjust.
9637
9638 2012-03-13 Pedro Alves <palves@redhat.com>
9639 Hui Zhu <teawater@gmail.com>
9640 Yao Qi <yao@codesourcery.com>
9641
9642 * remote.c (struct remote_state): New field `starting_up'.
9643 (remote_start_remote): Set and clear it.
9644 (remote_can_download_tracepoint): If starting up, return false.
9645
9646 2012-03-13 Yao Qi <yao@codesourcery.com>
9647
9648 * inferior.h (struct inferior): Remove fields any_syscall_count,
9649 syscalls_counts and total_syscalls_count. Move them to new
9650 struct catch_syscall_inferior_data in breakpoint.c.
9651 * breakpoint.c: Call DEF_VEC_I(int).
9652 (struct catch_syscall_inferior_data): New.
9653 (get_catch_syscall_inferior_data): New.
9654 (catch_syscall_inferior_data_cleanup): New.
9655 (insert_catch_syscall): Update to access data in
9656 struct catch_syscall_inferior_data.
9657 (insert_catch_syscall): Likewise.
9658 (remove_catch_syscall): Likewise.
9659 (remove_catch_syscall): Likewise.
9660 (is_syscall_catchpoint_enabled): Likewise.
9661 (add_catch_command): Likewise.
9662 (_initialize_breakpoint): Register cleanup.
9663 * breakpoint.h: Removed DEF_VEC_I(int).
9664 * dwarf2loc.c: Call DEF_VEC_I(int).
9665 * mi/mi-main.c: Likewise.
9666
9667 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9668
9669 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9670
9671 2012-03-12 Chris January <chris.january@allinea.com>
9672
9673 * aix-thread.c (_initialize_aix_thread): Add prototype.
9674 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9675 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9676
9677 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9678
9679 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9680 include of "amd64-nat.h".
9681
9682 2012-03-12 Tom Tromey <tromey@redhat.com>
9683
9684 * buildsym.c (record_pending_block): Now static.
9685 * buildsym.h: (record_pending_block): Remove.
9686
9687 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9688
9689 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9690
9691 2012-03-09 Tom Tromey <tromey@redhat.com>
9692
9693 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9694 producer_is_gxx_lt_4_6>: New fields.
9695 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9696
9697 2012-03-09 Tom Tromey <tromey@redhat.com>
9698
9699 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9700
9701 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9702
9703 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9704 prototype.
9705
9706 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9707
9708 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9709
9710 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9711
9712 Fix -Wmissing-prototypes build.
9713 * arm-linux-nat.c (get_thread_id): Make it static.
9714 * xtensa-linux-nat.c (get_thread_id): Likewise.
9715
9716 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9717
9718 * server.c (process_point_options): If a conditional expression
9719 is found, only print a message if remote_debug is nonzero.
9720
9721 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9722
9723 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9724 of internal error for unknown/unsupported types.
9725
9726 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9727
9728 Fix CU relative vs. absolute DIE offsets.
9729 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9730 offset to offset_in_cu.
9731 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9732 TYPE_OFFSET.
9733 (dwarf2_fetch_die_location_block): Rename parameter offset to
9734 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9735
9736 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9737
9738 * libunwind-frame.c: Rename to ...
9739 * ia64-libunwind-tdep.c: ... here.
9740 * libunwind-frame.h: Rename to ...
9741 * ia64-libunwind-tdep.h: ... here.
9742 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9743 ia64-libunwind-tdep.h.
9744 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9745 * README (--with-libunwind): Rename to ...
9746 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9747 * config.in: Regenerate.
9748 * configure: Regenerate.
9749 * configure.ac: New option --with-libunwind-ia64, make the
9750 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9751 Remove AC_DEFINE for HAVE_LIBUNWIND.
9752 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9753 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9754 Rename libunwind-frame in the general comment.
9755 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9756 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9757 Move forward declarations inside #ifndef. Rename libunwind-frame in
9758 the general comment.
9759 * ia64-tdep.c: Rename libunwind-frame.h #include to
9760 ia64-libunwind-tdep.h.
9761 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9762 (ia64_libunwind_descr): Rename libunwind-frame to
9763 ia64-libunwind-tdep in these function comments.
9764 * ia64-tdep.h: Rename libunwind-frame.h #include to
9765 ia64-libunwind-tdep.h.
9766 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9767 ia64-libunwind-tdep in that data comment.
9768
9769 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9770
9771 * libunwind-frame.h (struct frame_unwind): New declaration.
9772
9773 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9774
9775 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9776 "set breakpoint condition-evaluation" command.
9777
9778 2012-03-08 Tristan Gingold <gingold@adacore.com>
9779
9780 * sparc-stub.c: Move to stubs/
9781 * sh-stub.c: Likewise.
9782 * m68k-stub.c: Likewise.
9783 * m32r-stub.c: Likewise.
9784 * i386-stub.c: Likewise.
9785
9786 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9787
9788 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9789 linux_get_siginfo_type.
9790
9791 * m68klinux-nat.c: Include "gdb_proc_service.h".
9792 (PTRACE_GET_THREAD_AREA): Define.
9793 (ps_get_thread_area): New function.
9794
9795 2012-03-08 Yao Qi <yao@codesourcery.com>
9796
9797 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9798 `xsnprintf'.
9799 (remote_query_attached): Likewise.
9800 (remote_static_tracepoint_marker_at): Likewise.
9801 (remote_set_permissions): Likewise.
9802 (remote_detach_1, extended_remote_attach_1): Likewise.
9803 (send_g_packet, remote_vkill): Likewise.
9804 (extended_remote_disable_randomization): Likewise.
9805 (remote_add_target_side_condition): Likewise.
9806 (remote_insert_breakpoint): Likewise.
9807 (remote_remove_breakpoint): Likewise.
9808 (remote_insert_watchpoint): Likewise.
9809 (remote_remove_watchpoint): Likewise.
9810 (remote_insert_hw_breakpoint): Likewise.
9811 (remote_insert_hw_breakpoint): Likewise.
9812 (remote_remove_hw_breakpoint): Likewise.
9813 (remote_download_command_source): Likewise.
9814 (remote_download_tracepoint): Likewise.
9815 (remote_download_trace_state_variable): Likewise.
9816 (remote_disable_tracepoint): Likewise.
9817 (remote_trace_set_readonly_regions): Likewise.
9818 (remote_get_tracepoint_status): Likewise.
9819 (remote_trace_find): Likewise.
9820 (remote_get_trace_state_variable_value): Likewise.
9821 (remote_set_disconnected_tracing): Likewise.
9822 (remote_set_circular_trace_buffer): Likewise.
9823 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9824 (remote_use_agent): Likewise.
9825 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9826 Update callers.
9827
9828 2012-03-07 Pedro Alves <palves@redhat.com>
9829
9830 * NEWS: Mention QProgramSignals.
9831 * inferior.h (update_signals_program_target): Declare.
9832 * infrun.c: (update_signals_program_target): New.
9833 (handle_command): Update the target of the new program signals
9834 array changes.
9835 * remote.c (PACKET_QProgramSignals): New enum.
9836 (last_program_signals_packet): New global.
9837 (remote_program_signals): New.
9838 (remote_start_remote): Update the target with the program signals
9839 list.
9840 (remote_protocol_features): Add entry for QPassSignals.
9841 (remote_open_1): Free anc clear last_program_signals_packet.
9842 (init_remote_ops): Install remote_program_signals.
9843 * target.c (update_current_target): Adjust.
9844 (target_program_signals): New.
9845 * target.h (struct target_ops) <to_program_signals>: New field.
9846 (target_program_signals): Declare.
9847
9848 2012-03-07 Pedro Alves <palves@redhat.com>
9849
9850 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9851 extensions.
9852
9853 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9854
9855 * m68klinux-nat.c (getregs_supplies): Make static.
9856 (getfpregs_supplies): Likewise.
9857 (have_ptrace_getregs): Likewise.
9858
9859 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9860
9861 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9862 in call to get_die_type_at_offset.
9863
9864 2012-03-06 Stan Shebs <stan@codesourcery.com>
9865
9866 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9867 * mi/mi-cmd-disas.c: Ditto.
9868 * mi/mi-cmd-env.c: Ditto.
9869 * mi/mi-cmd-file.c: Ditto.
9870 * mi/mi-cmd-stack.c: Ditto.
9871 * mi/mi-cmd-target.c: Ditto.
9872 * mi/mi-cmd-var.c: Ditto.
9873 * mi/mi-cmds.c: Ditto.
9874 * mi/mi-cmds.h: Ditto.
9875 * mi/mi-console.c: Ditto.
9876 * mi/mi-getopt.c: Ditto.
9877 * mi/mi-getopt.h: Ditto.
9878 * mi/mi-interp.c: Ditto.
9879 * mi/mi-main.c: Ditto.
9880 * mi/mi-out.c: Ditto.
9881 * mi/mi-parse.c: Ditto.
9882 * mi/mi-parse.h: Ditto.
9883 * mi/mi-symbol-cmds.c: Ditto.
9884
9885 * mi/mi-getopt.h: Move mi_opt struct up.
9886 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9887 return.
9888 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9889
9890 2012-03-06 Tom Tromey <tromey@redhat.com>
9891
9892 * proc-service.c (ps_pglobal_lookup): Set the current program
9893 space.
9894
9895 2012-03-06 Pedro Alves <palves@redhat.com>
9896
9897 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9898
9899 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9900
9901 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9902
9903 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9904
9905 Code cleanup.
9906 * common/linux-osdata.c (linux_common_core_of_thread): New function
9907 comment.
9908 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9909 call by linux_common_core_of_thread.
9910 (linux_nat_core_of_thread_1): Remove.
9911 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9912 * linux-thread-db.c: Include linux-osdata.h.
9913 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9914 linux_common_core_of_thread.
9915
9916 2012-03-05 Tom Tromey <tromey@redhat.com>
9917
9918 * value.c (value_primitive_field): Don't fetch contents for
9919 non-virtual bases.
9920
9921 2012-03-05 Tom Tromey <tromey@redhat.com>
9922
9923 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9924
9925 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9926
9927 * s390-nat.c: Include "gregset.h".
9928
9929 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9930
9931 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9932 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9933 (libunwind_load): New variable so_error, use it for dlerror. Try to
9934 load also LIBUNWIND_SO_7.
9935
9936 2012-03-05 Pedro Alves <palves@redhat.com>
9937
9938 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9939 is not NULL, and remove resulting dead code.
9940
9941 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9942
9943 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9944 prologue to sh_analyze_prologue.
9945 (sh_analyze_prologue): Make better use of such an upper limit, and
9946 generally be more cautious about accessing memory.
9947
9948 2012-03-05 Tom Tromey <tromey@redhat.com>
9949
9950 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9951 _initialize_ia64_hpux_tdep.
9952
9953 2012-03-05 Pedro Alves <palves@redhat.com>
9954
9955 PR gdb/13766
9956
9957 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9958 the register state is clear, supply explicit zero, instead of
9959 marking the register unavailable.
9960
9961 2012-03-05 Tristan Gingold <gingold@adacore.com>
9962
9963 * NEWS: Mention OpenVMS ia64 new target.
9964
9965 2012-03-05 Tristan Gingold <gingold@adacore.com>
9966
9967 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9968 (ia64_unw_accessors, ia64_unw_rse_accessors)
9969 (ia64_libunwind_descr): Declare.
9970 * ia64-vms-tdep.c: New file.
9971 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9972 (ia64_libunwind_descr): Make them public.
9973 * configure.tgt: Add ia64-*-*vms*.
9974 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9975 (ALLDEPFILES): Add ia64-vms-tdep.c
9976
9977 2012-03-05 Tristan Gingold <gingold@adacore.com>
9978
9979 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9980 * remote.c (PACKET_qXfer_uib): New enum value.
9981 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9982 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9983 (_initialize_remote): Call add_packet_config_cmd for
9984 xfer:uib packet.
9985
9986 2012-03-05 Tristan Gingold <gingold@adacore.com>
9987
9988 * osabi.c (gdb_osabi_names): Add OpenVMS.
9989 (generic_elf_osabi_sniffer): Likewise.
9990 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9991
9992 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9993
9994 Removed unused code.
9995 * libunwind-frame.c (libunwind_frame_unwind)
9996 (libunwind_frame_base_address): Remove.
9997 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9998
9999 2012-03-04 Yao Qi <yao@codesourcery.com>
10000
10001 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10002 remove trailing new line.
10003 (agent_run_command, agent_run_command): Add _ markup.
10004 (agent_capability_check): Likewise.
10005
10006 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10007
10008 * breakpoint.c (set_condition_evaluation_mode): Set
10009 CONDITION_EVALUATION_MODE unconditionally.
10010
10011 2012-03-03 Yao Qi <yao@codesourcery.com>
10012
10013 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10014 * common/agent.h: Update declaration.
10015 * inf-child.c (inf_child_use_agent): New.
10016 (inf_child_can_use_agent): New.
10017 (inf_child_target): Initialize fields `to_use_agent'
10018 and `to_can_use_agent'.
10019 * agent.c (agent_new_objfile): New.
10020 (_initialize_agent): Add agent_new_objfile to new_objfile
10021 observer.
10022
10023 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10024 New.
10025 (linux_target_install_ops): Initialize field
10026 `to_static_tracepoint_markers_by_strid'.
10027 * remote.c (free_current_marker): Move it to ...
10028 * tracepoint.c (free_current_marker): ... here. New.
10029 (cleanup_target_stop): New.
10030 * tracepoint.h: Declare free_current_marker.
10031 * NEWS: Add one entry about `info static-tracepoint-marker'.
10032
10033 2012-03-03 Yao Qi <yao@codesourcery.com>
10034
10035 * common/agent.c (agent_loaded_p): New.
10036 (agent_look_up_symbols): New global.
10037 * common/agent.h: Declare agent_loaded_p.
10038
10039 2012-03-03 Yao Qi <yao@codesourcery.com>
10040
10041 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10042 (agent_capability_check, agent_capability_invalidate): New.
10043 (symbol_list): New array element.
10044 * common/agent.h (enum agent_capa): New.
10045 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10046
10047 2012-03-03 Yao Qi <yao@codesourcery.com>
10048
10049 * target.h (struct target_ops) <to_use_agent>: New field.
10050 (struct target_ops) <to_can_use_agent>: New field.
10051 (target_use_agent, target_can_use_agent): New macro.
10052 * target.c (update_current_target): Update.
10053 * remote.c: New enum `PACKET_QAgent'.
10054 (remote_protocol_features): Add a new element.
10055 (remote_use_agent, remote_can_use_agent): New.
10056 (init_remote_ops): Initialize field `can_use_agent' with
10057 remote_can_use_agent. Intiailize field `use_agent' with
10058 remote_use_agent.
10059 * common/agent.c (use_agent): New global.
10060 * common/agent.h: Declare it.
10061 * tracepoint.c (info_static_tracepoint_markers_command): Add
10062 comment.
10063 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10064 (COMMON_OBS): Add common/agent.o and agent.o
10065 (common-agent.o): New rule.
10066 * agent.c: New.
10067
10068 2012-03-03 Yao Qi <yao@codesourcery.com>
10069
10070 * common/agent.c: New.
10071 * common/agent.h: New.
10072 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10073 AC_CHECK_HEADERS.
10074 * configure, configh.in: Regenerated.
10075
10076 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10077
10078 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10079 unless it exists for this architecture.
10080
10081 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10082
10083 * language.h (struct language_defn): New "method" la_read_var_value.
10084 * findvar.c: #include "language.h".
10085 (default_read_var_value): Renames read_var_value. Rewrite
10086 function description.
10087 (read_var_value): New function.
10088 * value.h (default_read_var_value): Add prototype.
10089 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10090 New functions.
10091 (ada_language_defn): Add entry for la_read_var_value.
10092 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10093 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10094 language_defn structures to add entry for new la_read_var_value
10095 field.
10096
10097 2012-03-02 Tom Tromey <tromey@redhat.com>
10098 Pedro Alves <palves@redhat.com>
10099
10100 PR breakpoints/13776:
10101 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10102 breakpoints.
10103 (delete_longjmp_breakpoint_at_next_stop): New.
10104 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10105 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10106 before deleting the inferior. Add comments.
10107 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10108 breakpoints immediately, but only on next stop. Move that code
10109 next to where we mark other breakpoints for deletion.
10110
10111 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10112
10113 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10114 marker.
10115 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10116 violation.
10117
10118 2012-03-02 Pedro Alves <palves@redhat.com>
10119
10120 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10121
10122 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10123
10124 Fix -Wmissing-prototypes build.
10125 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10126 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10127 (gdbsim_has_memory): Likewise.
10128
10129 2012-03-02 Yao Qi <yao@codesourcery.com>
10130
10131 Fix -Wmissing-prototypes build.
10132 * charset.c (phony_iconv_open): Make static.
10133 (phony_iconv_close, phony_iconv): Likewise.
10134 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10135 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10136 prototype.
10137 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10138 * ser-mingw.c (create_select_thread): Make static.
10139 * windows-termcap.c (tgetent): New prototype.
10140 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10141
10142 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10143
10144 Fix -Wmissing-prototypes build.
10145 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10146 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10147 (_initialize_loadable): New prototypes.
10148
10149 2012-03-02 Doug Evans <dje@google.com>
10150
10151 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10152 abbrev table, read_comp_unit will do it.
10153
10154 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10155
10156 Fix -Wmissing-prototypes build.
10157 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10158 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10159 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10160 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10161 (_initialize_arm_symbian_tdep): New prototype.
10162 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10163 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10164 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10165 static.
10166 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10167 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10168 prototype.
10169 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10170 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10171 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10172 static.
10173 * moxie-tdep.c (moxie_process_record): Likewise.
10174 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10175 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10176 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10177 (_initialize_rl78_tdep): New prototype.
10178 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10179 (_initialize_rx_tdep): New prototype.
10180 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10181 (_initialize_darwin_solib): New prototype.
10182 * solib-spu.c: Include solib-spu.h.
10183 (_initialize_spu_solib): New prototype.
10184 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10185 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10186 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10187 (tic6x_software_single_step): Make it static.
10188 (_initialize_tic6x_tdep): New prototype.
10189
10190 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10191
10192 Fix -Wmissing-prototypes build.
10193 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10194 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10195
10196 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10197
10198 Fix -Wmissing-prototypes build.
10199 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10200 (frv_have_stopped_data_address): Remove.
10201
10202 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10203
10204 Fix -Wmissing-prototypes build.
10205 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10206 * sh-tdep.c: Include sh64-tdep.h.
10207 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10208 * sh64-tdep.c: Include sh64-tdep.h.
10209 * sh64-tdep.h: New file.
10210
10211 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10212
10213 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10214
10215 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10216
10217 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10218 sp_regnum once the gdbarch_init_osabi hook has been called.
10219
10220 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10221
10222 * mips-tdep.c (mips32_bc1_pc): New function.
10223 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10224 BPOSGE32 and BPOSGE64 instructions.
10225 (deal_with_atomic_sequence): Likewise.
10226 (mips32_instruction_has_delay_slot): Likewise.
10227
10228 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10229 Chris Dearman <chris@mips.com>
10230 Maciej W. Rozycki <macro@codesourcery.com>
10231 Joseph Myers <joseph@codesourcery.com>
10232
10233 * features/mips-dsp.xml: New file.
10234 * features/mips64-dsp.xml: New file.
10235 * features/mips-dsp-linux.xml: New file.
10236 * features/mips64-dsp-linux.xml: New file.
10237 * features/Makefile (WHICH): Add mips-dsp-linux and
10238 mips64-dsp-linux.
10239 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10240 * features/mips-dsp-linux.c: New file.
10241 * features/mips64-dsp-linux.c: New file.
10242 * regformats/mips-dsp-linux.dat: New file.
10243 * regformats/mips64-dsp-linux.dat: New file.
10244 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10245 registers.
10246 (mips64_linux_register_addr): Likewise.
10247 (mips64_linux_regsets_fetch_registers): Likewise.
10248 (mips64_linux_regsets_store_registers): Likewise.
10249 (mips64_linux_fetch_registers): Update call to
10250 mips64_linux_regsets_fetch_registers.
10251 (mips64_linux_store_registers): Update call to
10252 mips64_linux_regsets_store_registers.
10253 (mips_linux_read_description): Probe for DSP registers.
10254 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10255 and initialize_tdesc_mips64_dsp_linux.
10256 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10257 Remove padding of no longer used embedded register slots.
10258 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10259 (MIPS_RESTART_REGNUM): Redefine enum value.
10260 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10261 strings.
10262 (mips_tx39_reg_names): Likewise.
10263 (mips_linux_reg_names): New array of register names for Linux
10264 targets.
10265 (mips_register_name): Check for a null pointer in
10266 mips_processor_reg_names and return an empty string.
10267 (mips_register_type): Exclude embedded registers for the IRIX
10268 and Linux ABIs.
10269 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10270 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10271 DSP registers.
10272 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10273 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10274 (mips_gdbarch_init): Likewise. Initialize internal register
10275 indices for the Linux ABI. Use dynamic numbers to refer to
10276 registers, as applicable, while parsing the target description.
10277 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10278
10279 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10280
10281 * frame.h (read_frame_register_unsigned): Fix typo in function
10282 description.
10283
10284 2012-03-01 Pedro Alves <palves@redhat.com>
10285
10286 * jit-reader.in [!__cplusplus]
10287 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10288
10289 2012-03-01 Pedro Alves <palves@redhat.com>
10290
10291 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10292 * configure: Regenerate.
10293
10294 2012-03-01 Pedro Alves <palves@redhat.com>
10295
10296 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10297 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10298 (ftrace_command, strace_command): Make static.
10299 * d-lang.c (_initialize_d_language): Declare.
10300 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10301 * dwarf2loc.c (_initialize_dwarf2loc):
10302 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10303 * exec.c (exec_get_section_table): Make static.
10304 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10305 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10306 * inferior.c (remove_inferior_command, add_inferior_command)
10307 (clone_inferior_command): Make static.
10308 * linux-nat.c (linux_nat_thread_address_space)
10309 (linux_nat_core_of_thread): Make static.
10310 * linux-tdep.c (_initialize_linux_tdep): Declare.
10311 * objc-lang.c (_initialize_objc_lang): Declare.
10312 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10313 Make static.
10314 (_initialize_opencl_language): Declare.
10315 * record.c (_initialize_record): Declare.
10316 * remote.c (demand_private_info, remote_get_tib_address)
10317 (remote_supports_cond_tracepoints)
10318 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10319 Make static.
10320 * skip.c (_initialize_step_skip): Declare.
10321 * symtab.c (skip_prologue_using_lineinfo): Make static.
10322 * tracepoint.c (delete_trace_state_variable)
10323 (trace_variable_command, delete_trace_variable_command)
10324 (get_uploaded_tsv, find_matching_tracepoint_location)
10325 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10326 Make static.
10327 * value.c (pack_unsigned_long): Make static.
10328 * varobj.c (varobj_ensure_python_env): Make static.
10329 * windows-tdep.c (_initialize_windows_tdep): Declare.
10330 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10331
10332 2012-03-01 Pedro Alves <palves@redhat.com>
10333
10334 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10335 gdbarch parameter.
10336 (linux_init_abi): Install it as has_shared_address_space gdbarch
10337 callback.
10338
10339 2012-03-01 Pedro Alves <palves@redhat.com>
10340
10341 * observer.c (observer_test_first_notification_function)
10342 (observer_test_second_notification_function)
10343 (observer_test_third_notification_function): Add declarations.
10344
10345 2012-03-01 Pedro Alves <palves@redhat.com>
10346
10347 * common/signals.c (default_target_signal_to_host)
10348 (default_target_signal_from_host): Move ...
10349 * arch-utils.c: ... here.
10350 * arch-utils.h (default_target_signal_to_host)
10351 (default_target_signal_from_host): Declare.
10352
10353 * common/signals.c (target_signal_from_command): Move ...
10354 * infrun.c: ... here.
10355 * inferior.h (target_signal_from_command): Declare.
10356 * target.h (target_signal_from_command)
10357 (default_target_signal_from_host, default_target_signal_to_host):
10358 Delete declarations.
10359
10360 * common/signals.c (_initialize_signals): Delete.
10361
10362 2012-03-01 Pedro Alves <palves@redhat.com>
10363
10364 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10365 both __cplusplus and !__cplusplus.
10366
10367 2012-03-01 Pedro Alves <palves@redhat.com>
10368
10369 * psymtab.c (find_and_open_source): Delete declaration.
10370 * source.c (find_and_open_source): Move comment ...
10371 * source.h (find_and_open_source): ... to this new declaration.
10372
10373 2012-03-01 Pedro Alves <palves@redhat.com>
10374
10375 * inline-frame.c: Include inline-frame.h.
10376
10377 2012-03-01 Pedro Alves <palves@redhat.com>
10378
10379 * tui/tui-data.c (set_gen_win_origin): Delete.
10380 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10381 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10382
10383 2012-03-01 Pedro Alves <palves@redhat.com>
10384
10385 * remote.c (encode_actions): Delete declaration.
10386 * tracepoint.c (encode_actions): Make extern.
10387 * tracepoint.h (encode_actions): Declare.
10388
10389 2012-03-01 Pedro Alves <palves@redhat.com>
10390
10391 * python/py-breakpoint.c: Include python.h.
10392 * python/py-continueevent.c (create_continue_event_object): Make
10393 static.
10394 * python/py-lazy-string.c (stpy_get_type): Make static.
10395 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10396 Make static.
10397 * python/py-utils.c (unicode_to_target_python_string): Make
10398 static.
10399 * python/py-value.c: Include python.h.
10400
10401 2012-03-01 Pedro Alves <palves@redhat.com>
10402
10403 * inferior.c (delete_threads_of_inferior): Delete.
10404
10405 2012-03-01 Pedro Alves <palves@redhat.com>
10406
10407 Import fallback definitions from glibc.
10408
10409 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10410 ps_prochandle): Forward declare.
10411 (ps_err_e): Use glibc's comments.
10412 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10413 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10414 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10415 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10416 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10417 (struct ps_prochandle): Adjust comment.
10418
10419 2012-03-01 Pedro Alves <palves@redhat.com>
10420
10421 * ada-lang.c (ada_modulus_from_name): Delete.
10422 * ada-lex.l (lexer_init): Make static.
10423
10424 2012-03-01 Pedro Alves <palves@redhat.com>
10425
10426 PR gdb/13767
10427
10428 * frame.c (read_frame_register_unsigned): New.
10429 * frame.h (read_frame_register_unsigned): Declare.
10430 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10431 Handle it.
10432 (print_i387_control_word): New parameter `control_p'. Handle it.
10433 (i387_print_float_info): Handle unavailable float registers.
10434
10435 2012-03-01 Keith Seitz <keiths@redhat.com>
10436
10437 * linespec.c (decode_line_2): Sort the list of methods
10438 alphabetically before presenting the user with a selection
10439 menu.
10440
10441 2012-03-01 Doug Evans <dje@google.com>
10442
10443 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10444 has_namespace_info.
10445 (dwarf2_read_abbrevs): Remove corresponding initialization.
10446
10447 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10448
10449 * NEWS: Mention new python command class gdb.COMMAND_USER.
10450 * cli/cli-cmds.c (show_user): Print error when used on a python
10451 command.
10452 (init_cli_cmds): Update documentation strings for "show user" and
10453 "set/show max-user-call-depth" to clarify that it does not apply to
10454 python commands.
10455 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10456 error check.
10457 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10458 gdb python api.
10459 * top.c (execute_command): Only execute a user-defined command as a
10460 legacy macro if c->user_commands is set.
10461
10462 2012-03-01 Tom Tromey <tromey@redhat.com>
10463
10464 * valprint.h (struct generic_val_print_decorations): New.
10465 (generic_val_print): Declare.
10466 * valprint.c (generic_val_print): New function.
10467 * p-valprint.c (p_decorations): New global.
10468 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10469 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10470 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10471 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10472 * m2-valprint.c (m2_decorations): New global.
10473 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10474 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10475 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10476 TYPE_CODE_ERROR>: Call generic_val_print.
10477 * f-valprint.c (f_decorations): New global.
10478 (f_val_print): Use print_function_pointer_address.
10479 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10480 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10481 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10482 generic_val_print.
10483 * c-valprint.c (c_decorations): New global.
10484 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10485 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10486 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10487 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10488 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10489 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10490 case.
10491
10492 2012-03-01 Tom Tromey <tromey@redhat.com>
10493
10494 * valprint.c (val_print): Update.
10495 * p-valprint (pascal_val_print): Return void.
10496 * p-lang.h (pascal_val_print): Return void.
10497 * m2-valprint.c (m2_val_print): Return void.
10498 * m2-lang.h (m2_val_print): Return void.
10499 * language.h (struct language_defn) <la_val_print>: Return void.
10500 * language.c (unk_lang_val_print): Return void.
10501 * jv-valprint.c (java_val_print): Return void.
10502 * jv-lang.h (java_val_print): Return void.
10503 * f-valprint.c (f_val_print): Return void.
10504 * f-lang.h (f_val_print): Return void.
10505 * d-valprint.c (d_val_print): Return void.
10506 (dynamic_array_type): Update.
10507 * d-lang.h (d_val_print): Return void.
10508 * c-valprint.c (c_val_print): Return void.
10509 * c-lang.h (c_val_print): Return void.
10510 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10511 void.
10512 * ada-lang.h (ada_val_print): Return void.
10513
10514 2012-03-01 Tom Tromey <tromey@redhat.com>
10515
10516 * value.h (val_print): Return void.
10517 * valprint.c (val_print): Return void.
10518
10519 2012-03-01 Tom Tromey <tromey@redhat.com>
10520
10521 * value.h (common_val_print): Return void.
10522 * valprint.c (common_val_print): Return void.
10523
10524 2012-03-01 Tom Tromey <tromey@redhat.com>
10525
10526 * value.h (value_print): Return void.
10527 * valprint.c (value_print): Return void.
10528 * p-valprint.c (pascal_value_print): Return void.
10529 * p-lang.h (pascal_value_print): Return void.
10530 * language.h (struct language_defn) <la_value_print>: Return
10531 void.
10532 * language.c (unk_lang_value_print): Return void.
10533 * jv-valprint.c (java_value_print): Return void.
10534 * jv-lang.h (java_value_print): Return void.
10535 * f-valprint.c (c_value_print): Don't declare.
10536 Include c-lang.h.
10537 * c-valprint.c (c_value_print): Return void.
10538 * c-lang.h (c_value_print): Return void.
10539 * ada-valprint.c (ada_value_print): Return void.
10540 * ada-lang.h (ada_value_print): Return void.
10541
10542 2012-03-01 Tom Tromey <tromey@redhat.com>
10543
10544 * value.c (value_primitive_field): Handle virtual base classes.
10545
10546 2012-03-01 Tom Tromey <tromey@redhat.com>
10547
10548 * gdbtypes.h (struct vbase): Remove.
10549
10550 2012-03-01 Tom Tromey <tromey@redhat.com>
10551
10552 * c-valprint.c (print_function_pointer_address): Move...
10553 * valprint.c: ... here. Make non-static.
10554 * m2-valprint.c (print_function_pointer_address): Remove.
10555 * valprint.h (print_function_pointer_address): Declare.
10556
10557 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10558
10559 * NEWS: Document the fact that one can provide a condition when
10560 creating an Ada exception catchpoint.
10561
10562 2012-03-01 Tom Tromey <tromey@redhat.com>
10563
10564 * valprint.c (val_print_type_code_flags): Fix placement of
10565 trailing brace.
10566
10567 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10568
10569 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10570 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10571 environment variable before calling update-copyright.
10572
10573 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10574
10575 * gnulib/extra/update-copyright: Update to the latest from
10576 gnulib's git repository.
10577 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10578 variable to 2 instead of 1.
10579
10580 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10581
10582 * varobj.c (c_value_of_variable): Remove dead code.
10583
10584 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10585
10586 * ada-lex.p (processId): Do not modify already encoded IDs.
10587 Update function documentation.
10588
10589 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10590
10591 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10592 "name" with "struct symbol *name_sym".
10593 * ada-exp.y (write_var_or_type): Update call to
10594 ada_find_renaming_symbol.
10595 "name" with "struct symbol *name_sym". Adjust Implementation
10596 accordingly. Adjust the function documentation.
10597
10598 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10599
10600 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10601 * ada-lang.c (ada_find_any_type): Add advance declaration.
10602 Make static. Replace ada_find_any_symbol by
10603 ada_find_any_type_symbol.
10604 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10605 Improve function description. Make static.
10606 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10607 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10608
10609 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10610
10611 * ada-lang.c (struct tag_args): Delete.
10612 (ada_get_tsd_type): Function body moved up in source file.
10613 (ada_tag_name_1, ada_tag_name_2): Delete.
10614 (ada_get_tsd_from_tag): New function.
10615 (ada_tag_name_from_tsd): New function.
10616 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10617 to determine the tag name.
10618
10619 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10620
10621 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10622 declaration.
10623 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10624 function.
10625
10626 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10627
10628 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10629
10630 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10631
10632 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10633 full searches.
10634
10635 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10636
10637 * ada-lang.c (constrained_packed_array_type): If there is a
10638 parallel XA type, use it to determine the array index type.
10639
10640 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10641
10642 * ada-valprint.c (ada_val_print_1): If our value is a reference
10643 to an array descriptor, dereference it before converting it
10644 to a simple array.
10645
10646 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10647
10648 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10649 creating fixed value.
10650 (ada_value_ind, ada_coerce_ref, assign_component)
10651 (ada_evaluate_subexp): Remove call to unwrap_value before
10652 call to ada_to_fixed_value.
10653
10654 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10655
10656 * ada-lang.c (to_fixed_array_type): Set result's type name.
10657
10658 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10659
10660 * ada-lang.c (catch_ada_exception_command_split): Add new
10661 argument cond_string. Add support for condition at end of
10662 "catch exception" commands.
10663 (ada_decode_exception_location): Add new argument cond_string.
10664 Update call to catch_ada_exception_command_split.
10665 (create_ada_exception_catchpoint): Add new argument cond_string.
10666 Set the breakpoint condition if needed.
10667 (catch_ada_exception_command): Update call to
10668 ada_decode_exception_location.
10669 (ada_decode_assert_location): Add function documentation.
10670 Add support for condition at end of "catch assert" command.
10671 (catch_assert_command): Update calls to ada_decode_assert_location
10672 and create_ada_exception_catchpoint.
10673
10674 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10675
10676 Fix disp-step-syscall.exp: fork: single step over fork.
10677 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10678 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10679 comment, change parameters gdbarch and ptid to regcache. Remove
10680 parameter regcache, initialize gdbarch from regcache here.
10681 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10682 New functions.
10683 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10684 instead.
10685 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10686 'syscall'. Make the 'int' check more strict.
10687
10688 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10689
10690 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10691 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10692 (i386_linux_intx80_sysenter_syscall_record): ... here.
10693 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10694 Use the renamed function name.
10695
10696 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10697
10698 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10699 * breakpoint.c (until_break_command): Likewise.
10700 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10701 * infcall.c (call_function_by_hand): Likewise.
10702 * infcmd.c (finish_forward): Likewise.
10703 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10704
10705 2012-02-28 Tristan Gingold <gingold@adacore.com>
10706
10707 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10708 avoid variable assignments inside condition.
10709
10710 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10711
10712 Fix static analysis issue found by cppcheck.
10713 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10714 uninitialized BUF for size 2.
10715
10716 2012-02-27 Chris Dearman <chris@mips.com>
10717 Nathan Froyd <froydnj@codesourcery.com>
10718 Maciej W. Rozycki <macro@codesourcery.com>
10719
10720 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10721 (mips16_instruction_has_delay_slot): Likewise.
10722 (mips_segment_boundary): Likewise.
10723 (mips_adjust_breakpoint_address): Likewise.
10724 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10725
10726 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10727 Maciej W. Rozycki <macro@codesourcery.com>
10728
10729 * infrun.c (handle_inferior_event): Don't proceed through
10730 shared library trampolines if stepping at the machine
10731 instruction level.
10732
10733 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10734
10735 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10736 too.
10737
10738 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10739
10740 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10741 (sh_stub_unwind_sniffer): New functions.
10742 (sh_stub_unwind): New variable.
10743 (sh_gdbarch_init): Wire everything.
10744
10745 2012-02-27 Pedro Alves <palves@redhat.com>
10746
10747 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10748 (linux_nat_post_attach_wait): Adjust to use
10749 linux_proc_pid_is_stopped.
10750 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10751 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10752 based on pid_is_stopped from both linux-nat.c and
10753 gdbserver/linux-low.c, and renamed.
10754
10755 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10756
10757 * remote.c (remote_watchpoint_addr_within_range): New function.
10758 (init_remote_ops): Use it.
10759
10760 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10761
10762 * target.h (target_watchpoint_addr_within_range): Document macro.
10763
10764 2012-02-24 Pedro Alves <palves@redhat.com>
10765
10766 * stack.c (set_last_displayed_sal): Issue internal_error instead
10767 of warning, and issue it after clearing the last displayed sal.
10768
10769 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10770 Pedro Alves <palves@redhat.com>
10771
10772 * breakpoint.c (until_break_command): Install breakpoints after
10773 all frame manipulations.
10774
10775 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10776
10777 * remote.c (remote_supports_cond_breakpoints): New forward
10778 declaration.
10779 (remote_add_target_side_condition): New function.
10780 (remote_insert_breakpoint): Add target-side breakpoint
10781 conditional if supported.
10782 (remote_insert_hw_breakpoint): Likewise.
10783 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10784 hook.
10785
10786 * target.c (update_current_target): Inherit
10787 to_supports_evaluation_of_breakpoint_conditions.
10788 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10789
10790 * target.h (struct target_ops)
10791 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10792 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10793
10794 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10795 (condition_evaluation_both, condition_evaluation_auto,
10796 condition_evaluation_host, condition_evaluation_target,
10797 condition_evaluation_enums, condition_evaluation_mode_1,
10798 condition_evaluation_mode): New static globals.
10799 (translate_condition_evaluation_mode): New function.
10800 (breakpoint_condition_evaluation_mode): New function.
10801 (gdb_evaluates_breakpoint_condition_p): New function.
10802 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10803 (mark_breakpoint_modified): New function.
10804 (mark_breakpoint_location_modified): New function.
10805 (set_condition_evaluation_mode): New function.
10806 (show_condition_evaluation_mode): New function.
10807 (bp_location_compare_addrs): New function.
10808 (get_first_location_gte_addr): New helper function.
10809 (set_breakpoint_condition): Free condition bytecode if locations
10810 has become unconditional. Call mark_breakpoint_modified (...).
10811 (condition_command): Call update_global_location_list (1) for
10812 breakpoints.
10813 (breakpoint_xfer_memory): Use is_breakpoint (...).
10814 (is_breakpoint): New function.
10815 (parse_cond_to_aexpr): New function.
10816 (build_target_condition_list): New function.
10817 (insert_bp_location): Handle target-side conditional
10818 breakpoints and call build_target_condition_list (...).
10819 (update_inserted_breakpoint_locations): New function.
10820 (insert_breakpoint_locations): Handle target-side conditional
10821 breakpoints.
10822 (bpstat_check_breakpoint_conditions): Add comment.
10823 (bp_condition_evaluator): New function.
10824 (bp_location_condition_evaluator): New function.
10825 (print_breakpoint_location): Print information on where the condition
10826 will be evaluated.
10827 (print_one_breakpoint_location): Likewise.
10828 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10829 breakpoint location.
10830 (force_breakpoint_reinsertion): New functions.
10831 (update_global_location_list): Handle target-side breakpoint
10832 conditions.
10833 Reinsert locations that are already inserted if conditions have
10834 changed.
10835 (bp_location_dtor): Free agent expression bytecode.
10836 (disable_breakpoint): Call mark_breakpoint_modified (...).
10837 Call update_global_location_list (...) with parameter 1 for breakpoints.
10838 (disable_command): Call mark_breakpoint_location_modified (...).
10839 Call update_global_location_list (...) with parameter 1 for breakpoints.
10840 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10841 (enable_command): mark_breakpoint_location_modified (...).
10842 (_initialize_breakpoint): Update documentation and add
10843 condition-evaluation breakpoint subcommand.
10844
10845 * breakpoint.h: Include ax.h.
10846 (condition_list): New data structure.
10847 (condition_status): New enum.
10848 (bp_target_info) <cond_list>: New field.
10849 (bp_location) <condition_changed, cond_bytecode>: New fields.
10850 (is_breakpoint): New prototype.
10851
10852 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10853
10854 * remote.c (remote_state) <cond_breakpoints>: New field.
10855 (PACKET_ConditionalBreakpoints): New enum.
10856 (remote_cond_breakpoint_feature): New function.
10857 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10858 (remote_supports_cond_breakpoints): New function.
10859 (_initialize_remote): Add new packet configuration for
10860 target-side conditional breakpoints.
10861
10862 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10863
10864 * NEWS: Mention target-side conditional breakpoint support,
10865 new condition-evaluation breakpoint subcommand and remote
10866 packet extensions.
10867
10868 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10869
10870 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10871 number.
10872
10873 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10874
10875 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10876 (after_prologue): Remove.
10877
10878 2012-02-23 Tom Tromey <tromey@redhat.com>
10879
10880 * jv-valprint.c (java_val_print): Remove dead code.
10881
10882 2012-02-23 Tristan Gingold <gingold@adacore.com>
10883
10884 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10885 known_tasks_element and known_tasks_length fields.
10886 (read_known_tasks_array): Change argument type. Use pointer type
10887 and number of elements from DATA. Adjust.
10888 (read_known_tasks_list): Likewise.
10889 (get_known_tasks_addr): Remove.
10890 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10891 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10892 type and array length. Merge former get_known_tasks_addr code.
10893
10894 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10895
10896 PR backtrace/13716
10897 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10898 it after set_momentary_breakpoint.
10899
10900 2012-02-22 Sterling Augustine <saugustine@google.com>
10901
10902 PR 13689:
10903 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10904
10905 2012-02-22 Gary Benson <gbenson@redhat.com>
10906
10907 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10908 (find_slot_in_mapped_hash): Likewise.
10909
10910 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10911
10912 PR build/13638
10913 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10914 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10915 * configure: Regenerate.
10916
10917 2012-02-21 Tristan Gingold <gingold@adacore.com>
10918 Pedro Alves <palves@redhat.com>
10919
10920 * ia64-tdep.c: Do not include libunwind-ia64.h.
10921 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10922 Include libunwind-ia64.h instead of libunwind.h.
10923 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10924 for libunwind.h existence.
10925 * configure, config.in: Regenerate.
10926
10927 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10928
10929 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10930 instead of value_rtti_target_type.
10931 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10932 instead of value_rtti_target_type.
10933 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10934 value_rtti_target_type.
10935 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10936 (value_rtti_target_type): Rename to ...
10937 (value_rtti_indirect_type): ... here and make it indirect. Update
10938 function comment.
10939 * value.c (readjust_indirect_value_type): New function.
10940 (coerce_ref): Support for enclosing type setting for references
10941 with readjust_indirect_value_type.
10942 * value.h (readjust_value_type): New declaration.
10943 (value_rtti_target_type): Rename to ...
10944 (value_rtti_indirect_type): ... here.
10945
10946 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10947
10948 * MAINTAINERS (Write After Approval): Add myself to the list.
10949
10950 2012-02-20 Doug Evans <dje@google.com>
10951
10952 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10953 Rename objfile_p_char parameter to objfilep.
10954 (build_objfile_section_table): Result is now void. All callers
10955 updated.
10956 * objfiles.h (struct objfile): Tweak comments, whitespace.
10957 (build_objfile_section_table): Update.
10958
10959 * elfread.c (elf_symfile_segments): Fix warning text.
10960
10961 2012-02-20 Tom Tromey <tromey@redhat.com>
10962
10963 PR gdb/13498:
10964 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10965 particular set of file names once.
10966 (dw2_map_symbol_filenames): Likewise.
10967
10968 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10969
10970 Code cleanup.
10971 * main.c (write_files): Remove the declaration.
10972 (external_editor_command): Move the declaration ...
10973 [GDBTK] (external_editor_command): ... here. Fix the comment.
10974
10975 2012-02-20 Tom Tromey <tromey@redhat.com>
10976
10977 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10978 extraneous block.
10979
10980 2012-02-20 Tristan Gingold <gingold@adacore.com>
10981
10982 * darwin-nat.h (enum darwin_msg_state): Add comments.
10983
10984 2012-02-20 Tristan Gingold <gingold@adacore.com>
10985
10986 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10987 value.
10988
10989 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10990
10991 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10992 between function description and implementation.
10993
10994 2012-02-17 Tom Tromey <tromey@redhat.com>
10995
10996 PR python/12070:
10997 * python/py-event.c (event_object_getset): New global.
10998 (event_object_type): Reference it.
10999 * python/py-type.c (field_object_getset): New global.
11000 (field_object_type): Reference it.
11001 * python/python-internal.h (gdb_py_generic_dict): Declare.
11002 * python/py-utils.c (gdb_py_generic_dict): New function.
11003
11004 2012-02-17 Tristan Gingold <gingold@adacore.com>
11005
11006 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11007
11008 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11009
11010 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11011 TYPE_CALLING_CONVENTION annotation.
11012
11013 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11014
11015 * MAINTAINERS: Add rx to target ISA section.
11016 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11017 (ALLDEPFILES): Add rx-tdep.c.
11018
11019 2012-02-16 Tom Tromey <tromey@redhat.com>
11020
11021 * symfile.c (symbol_file_add_main_1): Use inferior's
11022 symfile_flags.
11023 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11024 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11025 inferior.
11026 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11027 inferior.
11028 (follow_exec): Use inferior's symfile_flags.
11029 * inferior.h (struct inferior) <symfile_flags>: New field.
11030
11031 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11032
11033 PR gdb/9734:
11034 * remote-sim.c (gdbsim_create_inferior): Call error() when
11035 sim_create_inferior() fails.
11036
11037 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11038
11039 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11040
11041 2012-02-16 Tom Tromey <tromey@redhat.com>
11042
11043 PR c++/13653:
11044 * thread.c (struct current_thread_cleanup) <was_removable>: New
11045 field.
11046 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11047 (make_cleanup_restore_current_thread): Initialize new field.
11048
11049 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11050
11051 * MAINTAINERS: Add rl78 to target ISA section.
11052 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11053 (ALLDEPFILES): Add rl78-tdep.c.
11054 * NEWS: Mention rl78 as a new target.
11055
11056 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11057
11058 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11059 data.
11060 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11061
11062 2012-02-15 Tom Tromey <tromey@redhat.com>
11063
11064 PR gdb/12659:
11065 * infcmd.c (registers_info): Print just the current register's
11066 name.
11067
11068 2012-02-15 Tom Tromey <tromey@redhat.com>
11069
11070 * python/py-symbol.c (sympy_value): Use _().
11071
11072 2012-02-15 Pedro Alves <palves@redhat.com>
11073
11074 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11075 output to be like native targets'.
11076 (remote_pid_to_str): Special case the null ptid.
11077
11078 2012-02-14 Stan Shebs <stan@codesourcery.com>
11079
11080 * NEWS: Mention enable count command.
11081 * breakpoint.h (struct breakpoint): New field enable_count.
11082 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11083 (enable_breakpoint): Add arg to call.
11084 (struct disp_data): New struct.
11085 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11086 (do_map_enable_once_breakpoint): Create a struct and pass it.
11087 (do_map_enable_delete_breakpoint): Ditto.
11088 (do_map_enable_count_breakpoint): New function.
11089 (enable_count_command): New function.
11090 (bpstat_stop_status): Decrement enable_count.
11091 (print_one_breakpoint_location): Report enable count.
11092 (_initialize_breakpoint): Add enable count command.
11093
11094 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11095
11096 * rl78-tdep.c (reggroups.h): Include.
11097 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11098 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11099 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11100 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11101 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11102 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11103 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11104 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11105 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11106 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11107 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11108 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11109 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11110 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11111 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11112 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11113 beginning of register list.
11114 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11115 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11116 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11117 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11118 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11119 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11120 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11121 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11122 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11123 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11124 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11125 the pseudo registers. Rearrange other pseudo registers too so
11126 that the bank registers appear at the end.
11127 (rl78_register_type): Account for the fact that the byte sized
11128 bank registers are now pseudo-registers.
11129 (rl78_register_name): Rearrange the register name array. Make
11130 initial set of raw banked registers inaccessible.
11131 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11132 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11133 case for copying bytes back and forth between raw and pseudo
11134 versions of the banked registers. Update other cases to reflect
11135 the changed names.
11136 (rl78_return_value): Update to account for changed names of
11137 raw registers.
11138 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11139 rl78_register_sim_regno().
11140
11141 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11142
11143 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11144 the name parameter being passed to find_pc_partial_function().
11145
11146 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11147
11148 * MAINTAINERS: Step down from being ia64 target maintainer.
11149
11150 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11151
11152 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11153 compilation warning.
11154
11155 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11156
11157 Fix crash on loaded shlibs without loaded exec_bfd.
11158 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11159 (set_section_command): Replace exec_bfd by p->bfd.
11160
11161 2012-02-10 Tom Tromey <tromey@redhat.com>
11162
11163 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11164 when we have a C++ qualified name.
11165
11166 2012-02-10 Pedro Alves <palves@redhat.com>
11167
11168 * inferior.c (inferior_pid_to_str): New.
11169 (print_inferior, inferior_command): Use it.
11170
11171 2012-02-10 Pedro Alves <palves@redhat.com>
11172
11173 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11174 the test CFLAGS.
11175 * configure: Regenerate.
11176
11177 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11178
11179 * linespec.c (decode_line_internal): Fix comment correctness.
11180
11181 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11182
11183 PR gdb/12953
11184 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11185 * amd64bsd-nat.c: Add support for debug registers (adapted from
11186 i386bsd-nat.c).
11187 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11188 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11189 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11190 (amd64bsd_dr_get_control): New functions.
11191 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11192 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11193 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11194 watchpoints initialization.
11195 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11196
11197 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11198
11199 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11200 flds_bnds.fields.
11201 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11202
11203 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11204
11205 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11206
11207 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11208
11209 * language.h (symbol_name_cmp_ftype): Renames
11210 symbol_name_match_p_ftype.
11211 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11212 la_get_symbol_name_match_p.
11213 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11214 ada_get_symbol_name_match_p. Update comment.
11215 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11216 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11217 Renames symbol_name_match_p. Update field type.
11218 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11219 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11220 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11221 "la_get_symbol_name_cmp" in comments.
11222 * language.c: Likewise.
11223
11224 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11225
11226 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11227 %eflags offset.
11228 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11229 (amd64_sol2_gregset32_reg_offs): Likewise.
11230
11231 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11232
11233 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11234 of the returned BFD is allocated by GDB.
11235
11236 2012-02-07 Tom Tromey <tromey@redhat.com>
11237
11238 PR python/12027:
11239 * python/python-internal.h (frame_object_type): Declare.
11240 * python/py-symbol.c (sympy_needs_frame): New function.
11241 (sympy_value): New function.
11242 (symbol_object_getset): Add "needs_frame".
11243 (symbol_object_methods): Add "value".
11244 * python/py-frame.c (frame_object_type): No longer static.
11245
11246 2012-02-07 Tom Tromey <tromey@redhat.com>
11247
11248 PR python/13599:
11249 * python/py-symbol.c (sympy_line): New function.
11250 (symbol_object_getset): Add "line".
11251
11252 2012-02-07 Tom Tromey <tromey@redhat.com>
11253
11254 * charset.c (find_charset_names): Check 'in' against NULL.
11255
11256 2012-02-06 Doug Evans <dje@google.com>
11257
11258 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11259 and fields.name members from char * to const char *. All uses updated.
11260 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11261 from char * to const char *. All uses updated.
11262 (type_name_no_tag): Update.
11263 (lookup_unsigned_typename, lookup_signed_typename): Update.
11264 * gdbtypes.c (type_name_no_tag): Change result type
11265 from char * to const char *. All callers updated.
11266 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11267 name parameter from char * to const char *.
11268 * symtab.h (struct cplus_specific): Change type of demangled_name
11269 member from char * to const char *. All uses updated.
11270 (struct general_symbol_info): Change type of name and
11271 mangled_lang.demangled_name members from char * to const char *.
11272 All uses updated.
11273 (symbol_get_demangled_name, symbol_natural_name): Update.
11274 (symbol_demangled_name, symbol_search_name): Update.
11275 * symtab.c (symbol_get_demangled_name): Change result type
11276 from char * to const char *. All callers updated.
11277 (symbol_natural_name, symbol_demangled_name): Ditto.
11278 (symbol_search_name): Ditto.
11279 (completion_list_add_name): Change type of symname,sym_text,
11280 text,word parameters from char * to const char *.
11281 (completion_list_objc_symbol): Change type of sym_text,
11282 text,word parameters from char * to const char *.
11283 * ada-lang.c (find_struct_field): Change type of name parameter
11284 from char * to const char *.
11285 (encoded_ordered_before): Similarly for N0,N1 parameters.
11286 (old_renaming_is_invisible): Similarly for function_name parameter.
11287 (ada_type_name): Change result type from char * to const char *.
11288 All callers updated.
11289 * ada-lang.h (ada_type_name): Update.
11290 * buildsym.c (hashname): Change type of name parameter
11291 from char * to const char *.
11292 * buildsym.h (hashname): Update.
11293 * dbxread.c (end_psymtab): Change type of include_list parameter
11294 from char ** to const char **.
11295 * dwarf2read.c (determine_prefix): Change result type
11296 from char * to const char *. All callers updated.
11297 * f-lang.c (find_common_for_function): Change type of name, funcname
11298 parameters from char * to const char *.
11299 * f-lang.c (find_common_for_function): Update.
11300 * f-valprint.c (list_all_visible_commons): Change type of funcname
11301 parameters from char * to const char *.
11302 * gdbarch.sh (static_transform_name): Change type of name parameter
11303 and result from char * to const char *.
11304 * gdbarch.c: Regenerate.
11305 * gdbarch.h: Regenerate.
11306 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11307 of name parameter from char * to const char *.
11308 * jv-lang.c (java_primitive_type_from_name): Ditto.
11309 (java_demangled_signature_length): Similarly for signature parameter.
11310 (java_demangled_signature_copy): Ditto.
11311 (java_demangle_type_signature): Ditto.
11312 * jv-lang.h (java_primitive_type_from_name): Update.
11313 (java_demangle_type_signature): Update.
11314 * objc-lang.c (specialcmp): Change type of a,b parameters
11315 from char * to const char *.
11316 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11317 from char * to const char *. All callers updated.
11318 * p-lang.h (is_pascal_string_type): Update.
11319 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11320 of name parameter from char * to const char *.
11321 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11322 * utils.c (fprintf_symbol_filtered): Ditto.
11323 * defs.h (fprintf_symbol_filtered): Update.
11324 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11325 * stabsread.h (end_psymtab): Update.
11326 * stack.c (find_frame_funname): Change type of funname parameter
11327 from char ** to const char **.
11328 * stack.h (find_frame_funname): Update.
11329 * typeprint.c (type_print): Change type of varstring parameter
11330 from char * to const char *.
11331 * value.h (type_print): Update.
11332 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11333 from char * to const char *. All callers updated.
11334 (xcoff_end_psymtab): Change type of include_list parameter
11335 from char ** to const char **. All callers updated.
11336 (swap_sym): Similarly for name parameter. All callers updated.
11337 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11338 Use xstrdup.
11339 (process_coff_symbol): Use xstrdup.
11340 * stabsread.c (stabs_method_name_from_physname): Renamed from
11341 update_method_name_from_physname. Change result type from void
11342 to char *. All callers updated.
11343 (read_member_functions): In has_destructor case, store name in objfile
11344 obstack instead of malloc space. In !has_stub case, fix mem leak.
11345
11346 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11347
11348 * configure: Rebuild.
11349 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11350 LDFLAGS.
11351
11352 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11353
11354 * configure.tgt (rl78-*-elf): New target.
11355 * rl78-tdep.c: New file.
11356
11357 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11358
11359 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11360 and continue the loop. Add QUIT statement.
11361
11362 2012-02-03 Tom Tromey <tromey@redhat.com>
11363
11364 PR gdb/13596:
11365 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11366 bfd_lookup_symbol_from_symtab.
11367 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11368 gdb_bfd_lookup_symbol_from_symtab.
11369
11370 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11371
11372 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11373 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11374 symbol. Add assertion that sym2 is never NULL.
11375
11376 2012-02-02 Doug Evans <dje@google.com>
11377
11378 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11379 "name" parameter to const char ** from char **. All callers updated.
11380 (find_pc_partial_function): Ditto.
11381 (cache_pc_function_name): Change type to const char * from char *.
11382 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11383 (find_pc_partial_function): Update.
11384 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11385 type of "name" parameter to const char * from char *.
11386 All uses updated.
11387 * arch-utils.c (generic_in_solib_return_trampoline): Change
11388 type of "name" parameter to const char * from char *.
11389 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11390 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11391 type of "name" parameter to const char * from char *.
11392 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11393 * gdbarch.c: Regenerate.
11394 * gdbarch.h: Regenerate.
11395 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11396 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11397 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11398 type of "name" parameter to const char * from char *.
11399 * skip.c (skip_function_pc): Ditto.
11400 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11401 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11402 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11403 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11404 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11405 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11406 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11407 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11408 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11409
11410 2012-02-02 Pedro Alves <palves@redhat.com>
11411
11412 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11413 the current inferior has no execution. Make sure the current
11414 remote process matches gdb's current inferior.
11415
11416 2012-02-02 Tom Tromey <tromey@redhat.com>
11417
11418 PR gdb/13405:
11419 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11420 read-only memory.
11421
11422 2012-02-02 Tom Tromey <tromey@redhat.com>
11423
11424 PR gdb/9307:
11425 * symtab.c (lookup_language_this): Set block_found.
11426
11427 2012-02-01 Tom Tromey <tromey@redhat.com>
11428
11429 PR gdb/13431:
11430 * jit.c (struct jit_inferior_data): Rewrite.
11431 (struct jit_objfile_data): New.
11432 (get_jit_objfile_data): New function.
11433 (add_objfile_entry): Update.
11434 (jit_read_descriptor): Return int. Replace descriptor_addr
11435 argument with inf_data. Update. Don't call error.
11436 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11437 descriptor here.
11438 (jit_inferior_init): Don't look up descriptor. Don't call error.
11439 (jit_reset_inferior_data_and_breakpoints)
11440 (jit_inferior_created_observer): Remove.
11441 (jit_inferior_exit_hook): Update.
11442 (jit_executable_changed_observer): Remove.
11443 (jit_event_handler): Update.
11444 (free_objfile_data): Reset inferior data if needed.
11445 (_initialize_jit): Update.
11446
11447 2012-02-01 Tom Tromey <tromey@redhat.com>
11448
11449 * jit.c (bfd_open_from_target_memory): Move higher in file.
11450
11451 2012-02-01 Tristan Gingold <gingold@adacore.com>
11452
11453 * libunwind-frame.c (libunwind_load): Display message if dlopen
11454 failed.
11455
11456 2012-02-01 Gary Benson <gbenson@redhat.com>
11457
11458 * symtab.h (symbol_found_callback_ftype): New typedef.
11459 (iterate_over_symbols): Use the above.
11460 * symtab.c (iterate_over_symbols): Likewise.
11461 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11462 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11463 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11464 (iterate_name_matcher): Document return values.
11465 (collect_one_symbol): Likewise.
11466 (collect_function_symbols): Likewise.
11467 (collect_symbols): Likewise.
11468
11469 2012-02-01 Tom Tromey <tromey@redhat.com>
11470
11471 * ada-lang.c (resolve_subexp): Update.
11472 (ada_lookup_symbol_list): Add 'full_search' argument.
11473 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11474 ada_lookup_symbol_list.
11475 (ada_lookup_encoded_symbol): Update.
11476 (get_var_value): Update.
11477 * ada-exp.y (block_lookup): Update.
11478 (write_var_or_type): Update.
11479 (write_name_assoc): Update.
11480 * ada-lang.h (ada_lookup_symbol_list): Update.
11481
11482 2012-01-31 Tom Tromey <tromey@redhat.com>
11483
11484 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11485 comment.
11486
11487 2012-01-31 Doug Evans <dje@google.com>
11488
11489 * symtab.h: Remove outdated comment.
11490 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11491
11492 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11493
11494 Fix build error in Darwin port.
11495 * i386-darwin-nat.c: Include i386-nat.h.
11496
11497 2012-01-30 Tom Tromey <tromey@redhat.com>
11498
11499 PR breakpoints/13568:
11500 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11501 argument. Check for recursive includes.
11502 (dwarf_decode_macros): Create an include hash.
11503
11504 2012-01-30 Michael Eager <eager@eagercon.com>
11505
11506 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11507 * ppc-linux-tdep.c: Include glibc-tdep.h.
11508 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11509 (powerpc_linux_in_plt_stub): New function.
11510 (powerpc_linux_in_dynsym_resolve_code): New function.
11511 (ppc_skip_trampoline_code): New function.
11512 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11513 Use glibc_skip_solib_resolver.
11514
11515 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11516
11517 Code cleanup: Make 1440 bytes of data segment read-only.
11518 * arch-utils.c (endian_enum): Make it const char *const [].
11519 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11520 Likewise.
11521 * breakpoint.c (always_inserted_enums): Likewise.
11522 * cli/cli-cmds.c (script_ext_enums): Likewise.
11523 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11524 enumlist parameter const char *const *.
11525 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11526 const char *const *.
11527 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11528 parameter const char *const *.
11529 * cris-tdep.c (cris_modes): Make it const char *const [].
11530 * filesystem.c (target_file_system_kinds): Likewise.
11531 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11532 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11533 (can_use_displaced_stepping_enum, scheduler_enums)
11534 (exec_direction_names): Likewise.
11535 * language.c (_initialize_language): Make the type_or_range_names and
11536 case_sensitive_names variables const char *const [].
11537 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11538 * python/python.c (python_excp_enums): Likewise.
11539 * remote.c (interrupt_sequence_modes): Likewise.
11540 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11541 * serial.c (logbase_enums): Likewise.
11542 * sh-tdep.c (sh_cc_enum): Likewise.
11543 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11544 Likewise.
11545 * symtab.c (multiple_symbols_modes): Likewise.
11546 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11547 Likewise.
11548 * utils.c (internal_problem_modes): Likewise.
11549
11550 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11551
11552 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11553 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11554 result.
11555
11556 2012-01-27 Doug Evans <dje@google.com>
11557
11558 * configure.ac (with_python): Fix absolute path handling for win32.
11559 * configure: Regenerate.
11560
11561 2012-01-26 Doug Evans <dje@google.com>
11562
11563 * symtab.c: Whitespace cleanup, no code changes.
11564
11565 * symtab.c (lookup_symbol_in_language): Improve comment.
11566 (lookup_symbol_aux): Fix comment.
11567
11568 * psymtab.c (add_psymbol_to_list): Result is now "void".
11569 * psympriv.h (add_psymbol_to_list): Update.
11570
11571 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11572
11573 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11574
11575 Do not open script filenames twice.
11576 * cli/cli-cmds.c (source_script_from_stream): Pass to
11577 source_python_script also STREAM.
11578 * python/py-auto-load.c (source_section_scripts): Pass to
11579 source_python_script_for_objfile also STREAM.
11580 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11581 also INPUT.
11582 * python/python-internal.h (source_python_script_for_objfile): New
11583 parameter file, rename parameter file to filename.
11584 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11585 instead if !_WIN32. Update the function comment.
11586 (source_python_script, source_python_script_for_objfile)
11587 (source_python_script): New parameter file, rename parameter file to
11588 filename. Pass FILENAME to python_run_simple_file.
11589 * python/python.h (source_python_script): New parameter file, rename
11590 parameter file to filename.
11591
11592 2012-01-26 Pedro Alves <palves@redhat.com>
11593
11594 * corelow.c (core_has_fake_pid): Delete.
11595 (core_close): Delete references to `core_has_fake_pid'.
11596 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11597 (core_open): Delete references to `core_has_fake_pid'.
11598 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11599 the removed global.
11600
11601 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11602
11603 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11604 Remove language parameter from name_matcher. Adjust the comment.
11605 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11606 Remove language parameter.
11607 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11608 * linespec.c (iterate_name_matcher): Likewise.
11609 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11610 name_matcher. Adjust call accordingly.
11611 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11612 (maintenance_check_symtabs): Adjust type of parameter "fun".
11613 * psymtab.h (maintenance_check_symtabs): Likewise.
11614
11615 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11616
11617 * language.h (symbol_name_match_p_ftype): New typedef.
11618 (struct language_defn): Replace field la_symbol_name_compare
11619 by la_get_symbol_name_match_p.
11620 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11621 (ada_language_defn): Use it.
11622 * linespec.c (struct symbol_matcher_data): New type.
11623 (iterate_name_matcher): Rewrite.
11624 (iterate_over_all_matching_symtabs): Pass a pointer to
11625 a symbol_matcher_data struct to expand_symtabs_matching
11626 instead of just the lookup name.
11627 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11628 opencl-lang.c, p-lang.c, language.c: Delete field
11629 la_symbol_name_compare, and replace by NULL for new field
11630 la_get_symbol_name_match_p.
11631 * symfile.h (struct quick_symbol_functions): Update comment.
11632
11633 2012-01-25 Tom Tromey <tromey@redhat.com>
11634
11635 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11636 dereferencing.
11637
11638 2012-01-24 Tom Tromey <tromey@redhat.com>
11639
11640 PR symtab/12406:
11641 * solib.c (update_solib_list): Update the program space's
11642 added_solibs and deleted_solibs fields.
11643 * progspace.h (struct program_space) <added_solibs,
11644 deleted_solibs>: New fields.
11645 (clear_program_space_solib_cache): Declare.
11646 * progspace.c (release_program_space): Call
11647 clear_program_space_solib_cache.
11648 (clear_program_space_solib_cache): New function.
11649 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11650 bpstat_stop_status. Use handle_solib_event.
11651 * breakpoint.c: Include gdb_regex.h.
11652 (print_solib_event): New function.
11653 (bpstat_print): Use print_solib_event.
11654 (bpstat_stop_status): Add special case for bp_shlib_event.
11655 (handle_solib_event): New function.
11656 (bpstat_what): Use handle_solib_event.
11657 (struct solib_catchpoint): New.
11658 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11659 (breakpoint_hit_catch_solib, check_status_catch_solib)
11660 (print_it_catch_solib, print_one_catch_solib)
11661 (print_mention_catch_solib, print_recreate_catch_solib): New
11662 functions.
11663 (catch_solib_breakpoint_ops): New global.
11664 (catch_load_or_unload, catch_load_command_1)
11665 (catch_unload_command_1): New functions.
11666 (internal_bkpt_check_status): Add special case for
11667 bp_shlib_event.
11668 (internal_bkpt_print_it): Use print_solib_event.
11669 (initialize_breakpoint_ops): Initialize
11670 catch_solib_breakpoint_ops.
11671 (_initialize_breakpoint): Register "catch load" and "catch
11672 unload".
11673 * breakpoint.h (handle_solib_event): Declare.
11674 * NEWS: Add entry for "catch load" and "catch unload".
11675
11676 2012-01-24 Tom Tromey <tromey@redhat.com>
11677
11678 * ada-lang.c: Include gdb_vecs.h.
11679 * charset.c: Include gdb_vecs.h.
11680 * tracepoint.h: Include gdb_vecs.h.
11681 * gdb_vecs.h: New file.
11682
11683 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11684
11685 * breakpoint.c (breakpoint_hit_catch_fork)
11686 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11687 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11688 * infrun.c (inferior_has_forked, inferior_has_vforked)
11689 (inferior_has_execd, inferior_has_called_syscall): Delete.
11690 (handle_syscall_event): Get syscall_number from the execution
11691 control state's wait status.
11692 (wait_for_inferior): Don't clear syscall_number.
11693
11694 2012-01-24 Pedro Alves <palves@redhat.com>
11695
11696 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11697 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11698 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11699 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11700 `ws' parameter.
11701 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11702 false for events other than TARGET_SIGNAL_TRAP.
11703 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11704 Add `ws' parameter.
11705 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11706 events other than TARGET_SIGNAL_TRAP.
11707 (tracepoint_breakpoint_hit): Add `ws' parameter.
11708 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11709 parameter.
11710 (bpstat_stop_status): Same.
11711 (pc_at_non_inline_function): Same.
11712 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11713 to pass the current event's waitstatus to bpstat_stop_status
11714 and pc_at_non_inline_function.
11715
11716 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11717
11718 Code cleanup.
11719 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11720 Update the function comment for it.
11721 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11722 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11723 for STREAM.
11724
11725 2012-01-24 Pedro Alves <palves@redhat.com>
11726
11727 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11728 outside `bs->stop' block.
11729 (bpstat_what): Rework bp_shlib_event handling.
11730 (internal_bkpt_check_status): If the breakpoint is a
11731 bp_shlib_event, then set bs->stop and bs->print if
11732 stop_on_solib_events is set.
11733
11734 2012-01-24 Gary Benson <gbenson@redhat.com>
11735
11736 Delete #if 0'd out code.
11737 * stack.c (print_frame_label_vars): Remove.
11738 (catch_info): Likewise.
11739 (_initialize_stack): Remove "info catch" command.
11740 * NEWS: Mention the above.
11741
11742 2012-01-24 Pedro Alves <palves@redhat.com>
11743
11744 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11745 it.
11746 (remote_notice_new_inferior): If the remote end doesn't support
11747 the multiprocess extensions, then the PID is fake.
11748 (add_current_inferior_and_thread): New.
11749 (remote_start_remote): Use it.
11750 (extended_remote_attach_1): Adjust.
11751 (extended_remote_create_inferior_1): Use
11752 add_current_inferior_and_thread.
11753
11754 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11755
11756 Fix watchpoints to be specific for each inferior.
11757 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11758 current_program_space.
11759 * i386-nat.c (i386_inferior_data_cleanup): New.
11760 (i386_inferior_data_get): Replace variable inf_data_local by an
11761 inferior_data call.
11762 (i386_use_watchpoints): Initialize i386_inferior_data.
11763 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11764 specific iterate_over_lwps.
11765
11766 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11767
11768 Fix watchpoints across inferior fork.
11769 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11770 comment for linux_nat_iterate_watchpoint_lwps.
11771 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11772 linux_nat_iterate_watchpoint_lwps.
11773 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11774 * i386-linux-nat.c (update_debug_registers_callback): Update the
11775 comment for linux_nat_iterate_watchpoint_lwps.
11776 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11777 linux_nat_iterate_watchpoint_lwps.
11778 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11779 * i386-nat.c: Include inferior.h.
11780 (dr_mirror): Remove.
11781 (i386_inferior_data, struct i386_inferior_data)
11782 (i386_inferior_data_get): New.
11783 (i386_debug_reg_state): Use i386_inferior_data_get.
11784 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11785 (i386_insert_watchpoint, i386_remove_watchpoint)
11786 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11787 (i386_remove_hw_breakpoint): New variable state, use
11788 i386_debug_reg_state instead of DR_MIRROR.
11789 * linux-nat.c (delete_lwp): New declaration.
11790 (num_lwps): Move here from downwards.
11791 (delete_lwp_cleanup): New.
11792 (linux_child_follow_fork): Create new child_lp, call
11793 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11794 PTRACE_DETACH.
11795 (num_lwps): Move upwards.
11796 (linux_nat_iterate_watchpoint_lwps): New.
11797 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11798 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11799
11800 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11801
11802 GDB 7.4 released.
11803
11804 2012-01-23 Pedro Alves <palves@redhat.com>
11805
11806 * top.c (caution): Rename to ...
11807 (confirm): ... this.
11808 (show_caution): Rename to ...
11809 (show_confirm): ... this.
11810 (quit_cover): Adjust.
11811 (init_main): Adjust.
11812 * top.h (caution): Rename to ...
11813 (confirm): ... this.
11814 * utils.c (internal_vproblem, defaulted_query): Adjust.
11815
11816 2012-01-23 Pedro Alves <palves@redhat.com>
11817
11818 * top.c (caution): Update comment.
11819 (execute_command): Don't consider the current value of `caution'.
11820
11821 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11822
11823 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11824
11825 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11826
11827 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11828 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11829 * target.c (target_fileio_pwrite): Remove buffer address from
11830 debug output.
11831 (target_fileio_pread): Likewise.
11832
11833 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11834
11835 * NEWS: Document remote "info proc" and "generate-core-file".
11836
11837 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11838
11839 * gdbarch.sh (find_memory_regions): New callback.
11840 * gdbarch.c, gdbarch.h: Regenerate.
11841
11842 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11843 callback before falling back to target method.
11844
11845 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11846 (linux_target_install_ops): No longer install it.
11847
11848 * linux-tdep.c (linux_find_memory_regions): New function.
11849 (linux_init_abi): Install it.
11850
11851 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11852
11853 * gdbarch.sh (make_corefile_notes): New architecture callback.
11854 * gdbarch.c: Regenerate.
11855 * gdbarch.h: Likewise.
11856
11857 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11858 before target_make_corefile_notes. If NULL is returned, the
11859 target does not support core file generation.
11860
11861 * linux-nat.c: Include "linux-tdep.h".
11862 (find_signalled_thread, find_stop_signal): Remove.
11863 (linux_nat_do_thread_registers): Likewise.
11864 (struct linux_nat_corefile_thread_data): Likewise.
11865 (linux_nat_corefile_thread_callback): Likewise.
11866 (iterate_over_spus): Likewise.
11867 (struct linux_spu_corefile_data): Likewise.
11868 (linux_spu_corefile_callback): Likewise.
11869 (linux_spu_make_corefile_notes): Likewise.
11870 (linux_nat_collect_thread_registers): New function.
11871 (linux_nat_make_corefile_notes): Replace contents by call to
11872 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11873 as native-only callback.
11874
11875 * linux-tdep.h: Include "bfd.h".
11876 (struct regcache): Add forward declaration.
11877 (linux_collect_thread_registers_ftype): New typedef.
11878 (linux_make_corefile_notes): Add prototype.
11879 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11880 "regset.h", and "elf-bfd.h".
11881 (find_signalled_thread, find_stop_signal): New functions.
11882 (linux_spu_make_corefile_notes): Likewise.
11883 (linux_collect_thread_registers): Likewise.
11884 (struct linux_corefile_thread_data): New data structure.
11885 (linux_corefile_thread_callback): New funcion.
11886 (linux_make_corefile_notes): Likewise.
11887 (linux_make_corefile_notes_1): Likewise.
11888 (linux_init_abi): Install it.
11889
11890 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11891
11892 * gdbarch.sh (info_proc): New callback.
11893 * gdbarch.c, gdbarch.h: Regenerate.
11894
11895 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11896 before falling back to the target info_proc callback.
11897
11898 * linux-nat.c: Do not include "cli/cli-utils.h".
11899 (linux_nat_info_proc): Remove.
11900 (linux_target_install_ops): No longer install it.
11901
11902 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11903 (read_mapping): New function.
11904 (linux_info_proc): Likewise.
11905 (linux_init_abi): Install it.
11906
11907 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11908
11909 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11910 * infcmd.c: (info_proc_cmd_1): New function.
11911 (info_proc_cmd): New function, moved here from equivalent routine
11912 orignally in linux-nat.c.
11913 (info_proc_cmd_mappings): Likewise.
11914 (info_proc_cmd_stat): Likewise.
11915 (info_proc_cmd_status): Likewise.
11916 (info_proc_cmd_cwd): Likewise.
11917 (info_proc_cmd_cmdline): Likewise.
11918 (info_proc_cmd_exe): Likewise.
11919 (info_proc_cmd_all): Likewise.
11920 (_initialize_infcmd): Install "info proc" command and subcommands.
11921
11922 * target.h (struct target_ops): Add to_info_proc.
11923 (target_info_proc): Add prototype.
11924 * target.c (target_info_proc): New function.
11925
11926 * procfs.c (procfs_info_proc): Add prototype.
11927 (info_proc_cmd): Rename into ...
11928 (procfs_info_proc): ... this. Update argument types as appropriate
11929 for a to_info_proc implementation. Handle "what" argument.
11930 (procfs_target): Install procfs_info_proc.
11931 (_initialize_procfs): No longer install "info proc" command.
11932
11933 * linux-nat.c: (enum info_proc_what): Remove.
11934 (linux_nat_info_proc_cmd_1): Rename into ...
11935 (linux_nat_info_proc): ... this. Update argument types as appropriate
11936 for a to_info_proc implementation.
11937 (linux_nat_info_proc_cmd): Remove.
11938 (linux_nat_info_proc_cmd_mappings): Likewise.
11939 (linux_nat_info_proc_cmd_stat): Likewise.
11940 (linux_nat_info_proc_cmd_status): Likewise.
11941 (linux_nat_info_proc_cmd_cwd): Likewise.
11942 (linux_nat_info_proc_cmd_cmdline): Likewise.
11943 (linux_nat_info_proc_cmd_exe): Likewise.
11944 (linux_nat_info_proc_cmd_all): Likewise.
11945 (linux_target_install_ops): Install linux_nat_info_proc.
11946 (_initialize_linux_nat): No longer install "info proc" command
11947 and subcommands.
11948
11949 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11950
11951 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11952 * config.in, configure: Regenerate.
11953
11954 * target.h (struct target_ops): Add to_fileio_readlink.
11955 (target_fileio_readlink): Add prototype.
11956 * target.c (target_fileio_readlink): New function.
11957
11958 * inf-child.c: Conditionally include <sys/param.h>.
11959 (inf_child_fileio_readlink): New function.
11960 (inf_child_target): Install it.
11961
11962 * remote.c (PACKET_vFile_readlink): New enum value.
11963 (remote_hostio_readlink): New function.
11964 (init_remote_ops): Install it.
11965 (_initialize_remote): Handle vFile:readlink packet type.
11966
11967 2012-01-20 Pedro Alves <palves@redhat.com>
11968 Ulrich Weigand <ulrich.weigand@linaro.org>
11969
11970 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11971 * config.in, configure: Regenerate.
11972
11973 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11974 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11975 (target_fileio_open): Add prototype.
11976 (target_fileio_pwrite): Likewise.
11977 (target_fileio_pread): Likewise.
11978 (target_fileio_close): Likewise.
11979 (target_fileio_unlink): Likewise.
11980 (target_fileio_read_alloc): Likewise.
11981 (target_fileio_read_stralloc): Likewise.
11982
11983 * target.c: Include "gdb/fileio.h".
11984 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11985 (default_fileio_target): New function.
11986 (target_fileio_open): Likewise.
11987 (target_fileio_pwrite): Likewise.
11988 (target_fileio_pread): Likewise.
11989 (target_fileio_close): Likewise.
11990 (target_fileio_unlink): Likewise.
11991 (target_fileio_close_cleanup): Likewise.
11992 (target_fileio_read_alloc_1): Likewise.
11993 (target_fileio_read_alloc): Likewise.
11994 (target_fileio_read_stralloc): Likewise.
11995
11996 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11997 <fcntl.h>, and <unistd.h>.
11998 (inf_child_fileio_open_flags_to_host): New function.
11999 (inf_child_errno_to_fileio_error): Likewise.
12000 (inf_child_fileio_open): Likewise.
12001 (inf_child_fileio_pwrite): Likewise.
12002 (inf_child_fileio_pread): Likewise.
12003 (inf_child_fileio_close): Likewise.
12004 (inf_child_fileio_unlink): Likewise.
12005 (inf_child_target): Install to_fileio routines.
12006
12007 * remote.c (init_remote_ops): Install to_fileio routines.
12008
12009 2012-01-20 Pedro Alves <palves@redhat.com>
12010 Ulrich Weigand <ulrich.weigand@linaro.org>
12011
12012 * remote.c (remote_multi_process_p): Only check for multi-process
12013 protocol feature, do not check for extended protocol.
12014 (remote_supports_multi_process): Check for extended protocol here.
12015 (set_general_process): Likewise.
12016 (extended_remote_kill): Likewise.
12017 (remote_pid_to_str): Likewise.
12018 (remote_query_supported): Always query multiprocess mode.
12019
12020 2012-01-20 Pedro Alves <palves@redhat.com>
12021 Ulrich Weigand <ulrich.weigand@linaro.org>
12022
12023 * inferior.h (struct inferior): Add fake_pid_p.
12024 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12025 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12026 magic_null_ptid since the remote side doesn't provide a real PID.
12027
12028 2012-01-19 Tom Tromey <tromey@redhat.com>
12029
12030 * NEWS: Combine the two Python sections.
12031
12032 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12033
12034 * target.h (target_close): Update comment on the target's unpush state.
12035
12036 2012-01-19 Pedro Alves <palves@redhat.com>
12037
12038 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12039 linux_nat_async directly instead of going through the target
12040 vector.
12041 * target.c (unpush_target): Close target after unpushing it, not
12042 before.
12043
12044 2012-01-19 Gary Benson <gbenson@redhat.com>
12045
12046 * mdebugread.c (sort_blocks): Replace integer constants with ones
12047 derived from FIRST_LOCAL_BLOCK.
12048
12049 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12050 Jan Kratochvil <jan.kratochvil@redhat.com>
12051
12052 PR gdb/9538
12053 * symfile.c (find_separate_debug_file): New function.
12054 (terminate_after_last_dir_separator): Likewise.
12055 (find_separate_debug_file_by_debuglink): Also try realpath.
12056 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12057 * configure: Regenerate.
12058 * config.in: Regenerate.
12059
12060 2012-01-18 Doug Evans <dje@google.com>
12061
12062 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12063 (main.o): Remove rule.
12064 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12065 (--with-sysroot): Rewrite.
12066 * configure: Regenerate.
12067 * config.in: Regenerate.
12068
12069 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12070
12071 * parse.c (initialize_expout): New function.
12072 (reallocate_expout): Likewise.
12073 (parse_exp_in_context): Use `initialize_expout' and
12074 `reallocate_expout' when appropriate.
12075
12076 2012-01-18 Pedro Alves <palves@redhat.com>
12077
12078 * record.c (struct record_breakpoint, record_breakpoint_p)
12079 (record_breakpoints): New.
12080 (record_insert_breakpoint, record_remove_breakpoint): Manage
12081 record breakpoints list. Only remove breakpoints from the
12082 inferior if they had been inserted there in the first place.
12083
12084 2012-01-17 Doug Evans <dje@google.com>
12085
12086 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12087 if we know we don't have a file name to look for.
12088
12089 2012-01-17 Pedro Alves <palves@redhat.com>
12090
12091 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12092 the frame's stop reason is UNWIND_UNAVAILABLE.
12093
12094 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12095
12096 Fix compilation error.
12097 * m2-exp.y (yyerror): Use ANSI C prototype.
12098
12099 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12100
12101 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12102 (growbuf_by_size): Likewise.
12103 (yyerror): Likewise.
12104 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12105 (modblock): Remove variable (was #if 0'ed).
12106 (parse_number): Convert prototype from K&R to ANSI C.
12107 (yyerror): Likewise.
12108 * objc-exp.y (parse_number): Likewise.
12109 (yyerror): Likewise.
12110 (yylex): Remove #if 0'ed code.
12111 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12112 (yyerror): Likewise.
12113
12114 2012-01-16 Tom Tromey <tromey@redhat.com>
12115
12116 * NEWS: Add item.
12117 * symtab.h (compare_filenames_for_search): Declare.
12118 * symtab.c (compare_filenames_for_search): New function.
12119 (iterate_over_some_symtabs): Use it.
12120 * symfile.h (struct quick_symbol_functions)
12121 <map_symtabs_matching_filename>: Change spec.
12122 * psymtab.c (partial_map_symtabs_matching_filename): Use
12123 compare_filenames_for_search. Update for new spec.
12124 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12125 compare_filenames_for_search. Update for new spec.
12126 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12127
12128 2012-01-16 Tom Tromey <tromey@redhat.com>
12129
12130 PR python/13281:
12131 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12132 (struct main_type) <flag_flag_enum>: New field.
12133 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12134 * NEWS: Add entries.
12135 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12136 enums.
12137 * python/lib/gdb/printing.py (_EnumInstance): New class.
12138 (FlagEnumerationPrinter): Likewise.
12139
12140 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12141
12142 * breakpoint.c (create_sals_from_address_default): New function.
12143 (create_breakpoints_sal_default): Likewise.
12144 (decode_linespec_default): Likewise.
12145 (is_marker_spec): Removed.
12146 (strace_marker_p): New function.
12147 (init_breakpoint_sal): Using `strace_marker_p' instead of
12148 `is_marker_spec'.
12149 (create_breakpoint): Call method `create_sals_from_address' from
12150 breakpoint_ops, replacing code that created SALs conditionally
12151 on the type of the breakpoint. Call method `create_breakpoints_sal',
12152 replacing code that created breakpoints conditionally on the type
12153 wanted.
12154 (base_breakpoint_create_sals_from_address): New function.
12155 (base_breakpoint_create_breakpoints_sal): Likewise.
12156 (base_breakpoint_decode_linespec): Likewise.
12157 (base_breakpoint_ops): Add methods
12158 `base_breakpoint_create_sals_from_address',
12159 `base_breakpoint_create_breakpoints_sal' and
12160 `base_breakpoint_decode_linespec'.
12161 (bkpt_create_sals_from_address): New function.
12162 (bkpt_create_breakpoints_sal): Likewise.
12163 (bkpt_decode_linespec): Likewise.
12164 (tracepoint_create_sals_from_address): Likewise.
12165 (tracepoint_create_breakpoints_sal): Likewise.
12166 (tracepoint_decode_linespec): Likewise.
12167 (strace_marker_create_sals_from_address): Likewise.
12168 (strace_marker_create_breakpoints_sal): Likewise.
12169 (strace_marker_decode_linespec): Likewise.
12170 (strace_marker_breakpoint_ops): New variable.
12171 (addr_string_to_sals): Remove `marker_spec'. Call method
12172 `decode_linespec' from breakpoint_ops, replacing code that decoded
12173 an address string into a SAL. Use `strace_marker_p' instead of
12174 `marker_spec'.
12175 (strace_command): Decide whether we are dealing with a static
12176 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12177 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12178 * breakpoint.h (linespec_result, linespec_sals): New forward
12179 declarations.
12180 (breakpoint_ops) <create_sals_from_address>,
12181 <create_breakpoints_sal>, <decode_linespec>: New methods.
12182
12183 2012-01-14 Doug Evans <dje@google.com>
12184
12185 * NEWS: Update text for "maint set python print-stack".
12186 It is deprecated in gdb 7.4 and deleted in 7.5.
12187
12188 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12189
12190 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12191 including curses.h.
12192
12193 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12194
12195 * configure: Regenerate.
12196 * config.in: Regenerate.
12197
12198 2012-01-12 Keith Seitz <keiths@redhat.com>
12199
12200 PR mi/10586
12201 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12202 (ANONYMOUS_UNION_NAME): Define.
12203 (is_path_expr_parent): New function.
12204 (get_path_expr_parent): New function.
12205 (is_anonymous_child): New function.
12206 (create_child_with_value): If the child is anonymous and without
12207 a name, assign an object name to it.
12208 (c_describe_child): Use get_path_expr_parent to determine
12209 the parent expression.
12210 If there field represents an anonymous struct or union and
12211 has no name, set an appropriate display name and expression.
12212 (cplus_describe_child): Likewise.
12213
12214 2012-01-12 Pedro Alves <palves@redhat.com>
12215
12216 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12217 available when %ebp is found to be zero (outermost).
12218
12219 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12220
12221 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12222 an internal gdb_static_assert.
12223 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12224
12225 2012-01-11 Tom Tromey <tromey@redhat.com>
12226
12227 PR gdb/9598:
12228 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12229 catch" and "catch throw".
12230
12231 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12232
12233 * blockframe.c (block_innermost_frame): Start search from selected
12234 frame, if present, or otherwise the current frame.
12235
12236 * c-exp.y (variable): Update innermost_block for
12237 'block COLONCOLON NAME' clause.
12238 * m2-exp.y (variable): Ditto.
12239 * objc-exp.y (variable): Ditto.
12240
12241 2012-01-10 Tom Tromey <tromey@redhat.com>
12242
12243 PR python/13199:
12244 * python/python.c (finish_python_initialization): Set sys.argv.
12245
12246 2012-01-10 Doug Evans <dje@google.com>
12247
12248 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12249 "want_line_info". All callers updated.
12250 (dwarf_decode_lines_1): New function.
12251 (handle_DW_AT_stmt_list): Add function comment.
12252 New arg "want_line_info". All callers updated.
12253 (read_file_scope,read_type_unit_scope): Move comment from
12254 handle_DW_AT_stmt_list to here.
12255
12256 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12257
12258 Fix regression after libiberty/ update for GCC PR 6057 and others.
12259 * c-exp.y (operator) <OPERATOR DELETE>
12260 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12261 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12262 (make_builtin_type, make_name): New variable i, add gdb_assert.
12263 (operator) <OPERATOR NEW>: Update ARGS to 3.
12264 (operator) <OPERATOR DELETE>: Add trailing space.
12265 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12266 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12267 * cp-support.c (cp_canonicalize_string): Check NULL from
12268 cp_comp_to_string, call warning and return.
12269
12270 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12271
12272 Fix duplicate .o files after omitting libbfd.a.
12273 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12274 (SFILES): Add corelow.c.
12275 (COMMON_OBS): Add corelow.o.
12276 (ALLDEPFILES): Remove corelow.c.
12277 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12278 * config/alpha/alpha-osf3.mh: Likewise.
12279 * config/alpha/fbsd.mh: Likewise.
12280 * config/arm/nbsdaout.mh: Likewise.
12281 * config/arm/nbsdelf.mh: Likewise.
12282 * config/i386/i386gnu.mh: Likewise.
12283 * config/ia64/hpux.mh: Likewise.
12284 * config/ia64/linux.mh: Likewise.
12285 * config/m32r/linux.mh: Likewise.
12286 * config/m68k/linux.mh: Likewise.
12287 * config/mips/irix5.mh: Likewise.
12288 * config/mips/irix6.mh: Likewise.
12289 * config/pa/hpux.mh: Likewise.
12290 * config/pa/linux.mh: Likewise.
12291 * config/powerpc/aix.mh: Likewise.
12292 * config/sparc/linux.mh: Likewise.
12293 * config/sparc/linux64.mh: Likewise.
12294 * config/sparc/sol2.mh: Likewise.
12295 * config/vax/vax.mh: Likewise.
12296 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12297 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12298 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12299 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12300 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12301 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12302 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12303 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12304 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12305 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12306 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12307 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12308 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12309 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12310 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12311 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12312 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12313 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12314 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12315 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12316 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12317 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12318 corelow.o from gdb_target_obs.
12319 * corefile.c (core_target): Update the comment on NULL value.
12320 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12321 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12322 MATCHES. Drop YUMMY set on NULL.
12323 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12324 reclaim CORE_DATA if it is already NULL.
12325
12326 2012-01-09 Doug Evans <dje@google.com>
12327
12328 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12329 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12330
12331 2012-01-09 Keith Seitz <keiths@redhat.com>
12332
12333 * breakpoint.c (wrapper.h): Don't include.
12334
12335 2012-01-09 Keith Seitz <keiths@redhat.com>
12336
12337 * Makefile.in (SFILES): Remove wrapper.c.
12338 (HFILES_NO_SRCDIR): Remove wrapper.h.
12339 (COMMON_OBS): Remove wrapper.o.
12340 * cli/cli-interp.c: Don't inlude wrapper.h.
12341 * corelow.c: Likewise.
12342 (core_open): Replace gdb_target_find_new_threads with
12343 TRY_CATCH around target_find_new_threads.
12344 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12345 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12346 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12347 evaluate_expression.
12348 (varobj_set_value): Likewise for evaluate_expression and
12349 value_assign.
12350 (install_new_variable): Likewise for value_fetch_lazy.
12351 (adjust_value_for_child_access): Likewise for value_ind.
12352 (c_describe_child): Likewise for value_subscript and
12353 value_ind.
12354 (c_value_of_root): Likewise for evaluate_expression.
12355 * wrapper.c: Remove.
12356 * wrapper.h: Remove.
12357
12358 2012-01-09 Doug Evans <dje@google.com>
12359
12360 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12361 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12362 "abfd" args with "section". All callers updated.
12363 Error checking code moved ...
12364 (error_check_comp_unit_head): ... here. New function.
12365 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12366 Delete arg "abfd". New arg "type_offset". All callers updated.
12367 (create_debug_types_hash_table): Simplify by using
12368 read_and_check_type_unit_head.
12369
12370 * parser-defs.h (namecopy): Delete.
12371 * parse.c (namecopy, namecopy_size): Move into copy_name.
12372
12373 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12374
12375 Partially fix duplicate .o files after omitting libbfd.a.
12376 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12377 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12378 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12379 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12380 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12381 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12382 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12383
12384 2012-01-09 Pedro Alves <palves@redhat.com>
12385
12386 * MAINTAINERS: Update my email address.
12387
12388 2012-01-08 Doug Evans <dje@google.com>
12389
12390 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12391 n_type_units. Rename type_comp_units to all_type_units.
12392 All uses updated.
12393 (add_signatured_type_cu_to_table): Renamed from
12394 add_signatured_type_cu_to_list. All callers updated.
12395
12396 * gdbtypes.h (struct cplus_struct_type): Delete member
12397 nfn_fields_total. All uses removed.
12398
12399 2012-01-06 Doug Evans <dje@google.com>
12400
12401 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12402 to top of file.
12403 (dwarf2_find_comp_unit): Delete.
12404 (process_psymtab_comp_unit): Make result "void".
12405 Delete args buffer, info_ptr, buffer_size, and replace with
12406 "section". All callers updated.
12407 (dwarf2_build_psymtabs_hard): Simplify.
12408
12409 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12410 Thiago Jung Bauermann <bauerman@br.ibm.com>
12411
12412 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12413 before `struct gdb_exception'.
12414 * breakpoint.c (update_global_location_list_nothrow)
12415 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12416 * cp-abi.c (value_rtti_type): Likewise.
12417 * cp-support.c (cp_validate_operator): Likewise.
12418 * infrun.c (insert_exception_resume_breakpoint)
12419 (check_exception_resume, keep_going): Likewise.
12420 * mi-interp.c (mi_breakpoint_created)
12421 (mi_breakpoint_modified): Likewise.
12422 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12423 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12424 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12425
12426 2012-01-05 Doug Evans <dje@google.com>
12427
12428 * dwarf2read.c (statement_prologue): Delete, unused.
12429
12430 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12431 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12432
12433 * dwarf2read.c (comp_unit_header): Delete, unused.
12434
12435 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12436
12437 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12438 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12439
12440 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12441
12442 * infrun.c (normal_stop): Don't skip calling the normal_stop
12443 observers if the thread was doing a multi-step, but stopped for
12444 some reason other than stepping.
12445
12446 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12447
12448 * cli/cli-decode.h: Add comments.
12449 (CMD_LIST_AMBIGUOUS): Moved to command.h
12450 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12451 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12452 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12453 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12454 (add_com, add_com_alias, add_info, add_info_alias)
12455 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12456 declarations.
12457 * command.h: Add and adjust comments.
12458 (CMD_LIST_AMBIGUOUS): Moved here.
12459 (help_cmd, help_cmd_list): Delete declarations.
12460
12461 2012-01-04 Doug Evans <dje@google.com>
12462
12463 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12464 All callers updated.
12465 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12466 Replace all arguments with "per_cu". All callers updated.
12467
12468 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12469
12470 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12471 New arg "per_cu". All callers updated.
12472
12473 Delete #if 0'd out code.
12474 * language.c (binop_result_type): Delete.
12475 (simple_type, ordered_type, same_type, integral_type): Delete.
12476 (numeric_type, character_type, string_type, boolean_type): Delete.
12477 (float_type, structured_type): Delete.
12478 * language.h: Update.
12479
12480 2012-01-04 Tom Tromey <tromey@redhat.com>
12481
12482 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12483
12484 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12485
12486 * corefile.c (close_exec_file): Delete.
12487 (reopen_exec_file): Remove commented out code that seems related
12488 to close_exec_file, which is being deleted here.
12489 * inferior.h (close_exec_file): Delete.
12490 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12491
12492 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12493
12494 * ada-lang.c: #include "cli/cli-utils.h".
12495 (get_selections): Use skip_spaces.
12496 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12497 (catch_ada_exception_command_split): Use skip_spaces.
12498 (ada_decode_assert_location): Likewise.
12499
12500 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12501
12502 * linespec.c (decode_line_internal): Check for C++ or Java
12503 compound constructs only if the current language is C, C++
12504 or Java.
12505
12506 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12507
12508 Revert:
12509 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12510 Joel Brobecker <brobecker@adacore.com>
12511 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12512 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12513 3 times.
12514 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12515 fall through into AT_ENTRY_POINT.
12516 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12517 DUMMY_ADDR with it.
12518 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12519 PPC_INSN_SIZE skip to 3 times.
12520
12521 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12522
12523 * linespec.c (add_minsym): Preserve function descriptors.
12524
12525 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12526
12527 * breakpoint.c (all_locations_are_pending): Consider locations
12528 in program spaces executing during startup pending as well.
12529
12530 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12531
12532 Copyright year update in most files of the GDB Project.
12533
12534 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12535
12536 * copyright.sh: Delete.
12537 * copyright.py: Rewrite.
12538
12539 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12540
12541 * gnulib/extra/update-copyright: New file, imported from gnulib.
12542
12543 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12544
12545 * README (Copyright and License Notices): New section.
12546
12547 2012-01-03 Tom Tromey <tromey@redhat.com>
12548
12549 PR python/12533:
12550 * python/py-value.c (valpy_dereference, valpy_get_address
12551 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12552 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12553 (valpy_absolute, valpy_richcompare): Free intermediate values.
12554
12555 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12556
12557 * ada-lang.c: Reformat the copyright notice.
12558
12559 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12560
12561 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12562 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12563 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12564 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12565 Revert this part of:
12566 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12567 Build gdb directly from *.o files not using libgdb.a.
12568 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12569
12570 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12571
12572 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12573 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12574 Reformat the copyright header.
12575
12576 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12577
12578 Revert this part of:
12579 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12580 Remove the gdbtui binary.
12581 * gdb.c (main): Remove args.interpreter_p initialization.
12582 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12583 * main.h (struct captured_main_args): Remove interpreter_p.
12584
12585 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12586
12587 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12588
12589 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12590
12591 * top.c (print_gdb_version): Update copyright year.
12592
12593 2012-01-02 Yao Qi <yao@codesourcery.com>
12594
12595 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12596
12597 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12598 Joel Brobecker <brobecker@adacore.com>
12599
12600 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12601 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12602 3 times.
12603 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12604 fall through into AT_ENTRY_POINT.
12605 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12606 DUMMY_ADDR with it.
12607 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12608 PPC_INSN_SIZE skip to 3 times.
12609
12610 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12611
12612 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12613 the return value.
12614 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12615
12616 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12617
12618 Build gdb directly from *.o files not using libgdb.a.
12619 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12620 (COMMON_OBS): Remove solib-target.o.
12621 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12622 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12623 (LIBGDB_OBS, libgdb.a): Move it above.
12624 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12625 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12626 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12627 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12628 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12629 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12630 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12631 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12632 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12633 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12634 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12635 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12636 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12637 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12638 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12639 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12640 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12641 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12642 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12643 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12644 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12645 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12646 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12647 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12648 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12649 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12650 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12651
12652 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12653
12654 Remove the gdbtui binary.
12655 * .gitignore (/gdbtui): Remove.
12656 * Makefile.in (TUI): Remove.
12657 (SUBDIR_TUI_OBS): Remove tui-main.o.
12658 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12659 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12660 (tui-main.o): Remove.
12661 (all_object_files): Remove tui-main.o.
12662 * NEWS: New note for the gdbtui removal.
12663 * configure: Rebuilt.
12664 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12665 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12666 CONFIG_UNINSTALL respectively.
12667 * gdb.c (main): Remove args.interpreter_p initialization.
12668 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12669 * main.h (struct captured_main_args): Remove interpreter_p.
12670 * tui/tui-main.c: Remove.
12671
12672 2012-01-01 Doug Evans <dje@google.com>
12673
12674 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12675 (dwarf2_physname, read_import_statement): Ditto.
12676 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12677 (process_structure_scope read_subroutine_type): Ditto.
12678 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12679 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12680 (dwarf2_fetch_die_location_block): Ditto.
12681 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12682
12683 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12684 All callers updated.
12685 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12686 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12687 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12688
12689 * dwarf2read.c (load_cu): Move assert to more useful location.
12690
12691 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12692 All callers updated.
12693
12694 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12695 (dwarf2_elf_names): Minor reformat.
12696 (dwarf2_per_cu_data): Tweak comment.
12697 (dwarf2_read_section): Fix comment.
12698 (create_all_comp_units): Fix comment.
12699 (load_full_comp_unit): Fix comment.
12700 (process_full_comp_unit): Fix comment.
12701 (read_signatured_type): Fix comment.
12702
12703 For older changes see ChangeLog-2011.
12704 \f
12705 Local Variables:
12706 mode: change-log
12707 left-margin: 8
12708 fill-column: 74
12709 version-control: never
12710 coding: utf-8
12711 End:
This page took 0.430508 seconds and 5 git commands to generate.