1 2012-11-28 Tom Tromey <tromey@redhat.com>
3 * dbxread.c (read_dbx_symtab): Update.
4 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
5 (read_ofile_symtab): Add 'objfile' argument.
6 * dwarf2read.c (process_psymtab_comp_unit_reader)
7 (build_type_psymtabs_reader): Update.
8 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
9 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
11 (parse_procedure, parse_partial_symbols): Update.
12 (psymtab_to_symtab_1): Add 'objfile' argument.
13 * psympriv.h (struct partial_symtab) <objfile>: Remove.
14 <read_symtab>: Add 'objfile' argument.
15 (sort_pst_symbols, discard_psymtab): Update.
16 * psymtab.c (partial_map_expand_apply): Update.
17 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
18 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
19 (find_pc_sect_psymbol): Add 'objfile' argument.
20 (lookup_symbol_aux_psymtabs): Update.
21 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
22 Add 'objfile' argument.
23 (find_last_source_symtab_from_partial, dump_psymtab)
24 (dump_psymtabs_for_objfile, read_symtabs_for_function)
25 (expand_partial_symbol_tables, read_psymtabs_with_filename)
26 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
27 (expand_symtabs_matching_via_partial): Update.
28 (sort_pst_symbols): Add 'objfile' argument.
29 (allocate_psymtab): Update.
30 (discard_psymtab): Add 'objfile' argument.
31 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
32 * stabsread.h (end_psymtab): Update.
33 * xcoffread.c (this_symtab_objfile): New global.
34 (process_linenos, enter_line_range, xcoff_next_symbol_text):
36 (read_xcoff_symtab): Add 'objfile' argument.
37 (read_symbol, read_symbol_lineno): Update.
38 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
39 (xcoff_end_psymtab): Add 'objfile' argument.
40 (scan_xcoff_symtab): Update.
42 2012-12-12 Paul Koning <paul_koning@dell.com>
44 Add support for Python 3.
45 * NEWS: Mention Python 3 support.
46 * varobj.c (value_get_print_value): Use
47 python_string_to_target_string.
48 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
50 * python/py-breakpoint.c: Ditto.
51 * python/py-cmd.c: Ditto.
52 * python/py-event.c: Ditto.
53 * python/py-event.h: Ditto.
54 * python/py-evtregistry.c: Ditto.
55 * python/py-finishbreakpoint.c: Ditto.
56 * python/py-frame.c: Ditto.
57 * python/py-function.c: Ditto.
58 * python/py-infthread.c: Ditto.
59 * python/py-lazy-string.c: Ditto.
60 * python/py-progspace.c: Ditto.
61 * /python/py-symbol.c: Ditto.
62 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
63 initialization for Python 3.
64 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
66 (infpy_read_memory): Return memoryview object if Python 3.
67 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
68 (infpy_search_memory): Ditto.
69 (get_buffer): New function for Python 3.
70 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
72 (objfpy_dealloc): Use Py_TYPE to call tp_free.
73 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
75 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
77 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
78 instead of PyString methods if Python 3.
79 (print_children): Skip push_dummy_python_frame call if Python 3.
80 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
82 (salpy_dealloc): Use Py_TYPE to call tp_free.
83 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
85 (field_dealloc): Use Py_TYPE to call tp_free.
86 (typy_dealloc): Ditto.
87 (type_object_as_number): Adjust struct initializations for
88 differences in layout for Python 2 vs. Python 3.
89 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
90 string case for Python 3.
91 (unicode_to_encoded_python_string): Shorten code (no functional
93 (python_string_to_target_python_string): Comment that in Python 3
94 returned value is a Python "bytes" type.
95 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
96 (gdb_py_object_from_longest): Omit non-long integer case in Python
98 (gdb_py_object_from_ulongest): Ditto.
99 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
101 (valpy_dealloc): Use Py_TYPE to call tp_free.
102 (valpy_int): Omit function if Python 3.
103 (convert_value_from_python): Use "%S" format (Python object as a
105 (value_object_as_number): Adjust struct initializations for
106 differences in layout for Python 2 vs. Python 3.
107 * python/python-config.py: Adjust syntax for Python 3
109 Include "sys.abiflags" string as part of python library name, if
110 that attribute exists (Python 3).
111 * python/python-internal.h (IS_PY3): Define if Python 3.
112 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
113 placeholder value if Python 3.
114 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
115 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
116 analogous Python 3 API function if Python 3.
117 (PyVarObject_HEAD_INIT): Define if not already defined.
119 * python/python.c (eval_python_command): Omit Py_FlushLine call if
121 Check return values of all Python API calls for error.
122 Supply dummy "python" and "python-interactive" commands if Python
123 initialization failed.
124 (_initialize_python): Convert argc to wchar_t** if Python 3.
125 Add module initialization for Python 3.
126 (finish_python_initialization): Pass wchar_t * argument to
127 PySys_SetPath if Python 3.
128 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
129 (_GdbFile): New class for common output file behavior.
130 (GdbOutFile): Subclass from _GdbFile.
131 (GdbOutputErrorFile): Ditto.
132 (auto_load_packages): Adjust syntax for Python 3 compatibility.
133 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
134 * python/lib/gdb/prompt.py: Use sorted() function rather than
136 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
137 Adjust syntax for Python 3 compatibility.
138 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
139 rather than sort() method.
140 Adjust syntax for Python 3 compatibility.
141 * python/lib/gdb/command/type_printers.py: Ditto.
142 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
143 value is a memoryview object if Python 3.
145 2012-12-12 Tom Tromey <tromey@redhat.com>
147 * coffread.c (coff_objfile_data_key): New global.
148 (coff_symfile_init): Use set_objfile_data.
149 (coff_symfile_read): Use objfile_data.
150 (coff_symfile_finish): Don't free deprecated_sym_private.
151 (coff_free_info): New function.
152 (_initialize_coffread): Initialize coff_objfile_data_key.
153 * mdebugread.c (pending_list): Update comment.
154 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
155 * symfile.c (reread_symbols): Don't mention
156 deprecated_sym_private.
157 * xcoffread.c (xcoff_objfile_data_key): New global.
158 (XCOFF_DATA): New macro.
159 (process_linenos, enter_line_range, xcoff_next_symbol_text)
160 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
162 (xcoff_new_init) Use set_objfile_data.
163 (xcoff_symfile_finish): Don't free deprecated_sym_private.
164 (init_stringtab, swap_sym, scan_xcoff_symtab)
165 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
166 (xcoff_free_info): New function.
167 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
169 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
171 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
173 2012-12-12 Tom Tromey <tromey@redhat.com>
175 * coffread.c (coff_symfile_init): Use set_objfile_data.
176 (coff_symfile_read): Use DBX_SYMFILE_INFO.
177 * dbxread.c (dbx_objfile_data_key): New global.
178 (dbx_symfile_init): Use set_objfile_data.
179 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
180 (dbx_free_symfile_info): New function.
181 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
183 (stabsect_build_psymtabs): Use set_objfile_data.
184 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
185 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
187 (free_elfinfo): Use DBX_SYMFILE_INFO.
188 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
189 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
190 * gdb-stabs.h (dbx_objfile_data_key): Declare.
191 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
192 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
193 * somread.c (som_symfile_finish): Don't free
194 deprecated_sym_stab_info.
196 2012-12-12 Joel Brobecker <brobecker@adacore.com>
198 * gdbarch.sh (software_single_step): Remove trailing space in
199 comment (gdbarch.h is already correct).
201 2012-12-11 Tom Tromey <tromey@redhat.com>
203 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
205 2012-12-11 Tom Tromey <tromey@redhat.com>
207 * dsrec.c (report_transfer_performance): Don't declare.
208 (load_srec): Use gettimeofday, print_transfer_performance.
209 * symfile.c (report_transfer_performance): Remove.
211 2012-12-11 Pedro Alves <pedro@codesourcery.com>
212 Pedro Alves <palves@redhat.com>
214 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
216 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
217 differently from LWP IDs.
219 2012-12-11 Pedro Alves <palves@redhat.com>
221 * configure.ac (detect type of /proc): Remove Unixware handling.
222 * configure: Regenerate.
223 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
224 (ioctl_table) [PCRESET]: Remove entry.
225 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
226 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
227 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
228 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
229 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
230 Unixware in comments throughout.
231 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
232 and remove mention of Unixware.
234 2012-12-10 Doug Evans <dje@google.com>
236 * dwarf2read.c (dwarf2_cu): Enhance comment.
237 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
239 (dwarf2_record_block_ranges): Ditto.
241 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
243 * symtab.c (find_pc_sect_symtab): Add comment.
245 2012-12-10 Tom Tromey <tromey@redhat.com>
247 * defs.h: Don't check for definition of LONGEST.
248 (min, max): Remove duplicates.
250 2012-12-10 Tom Tromey <tromey@redhat.com>
252 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
253 (dwarf2_fetch_die_loc_cu_off): Rename from
254 dwarf2_fetch_die_location_block. Rewrite to use
255 dwarf2_fetch_die_loc_sect_off.
256 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
257 (dwarf2_fetch_die_loc_cu_off): Rename.
258 * dwarf2loc.c (indirect_pieced_value): Use
259 dwarf2_fetch_die_loc_sect_off.
260 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
262 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
263 * dwarf2expr.c (add_piece): Update.
264 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
266 2012-12-10 Tom Tromey <tromey@redhat.com>
268 * buildsym.c (struct pending_block): Move from buildsym.h.
269 (pending_blocks): Likewise; now static.
270 (pending_block_obstack): New global.
271 (free_pending_blocks): Free blocks.
272 (record_pending_block): Use pending_block_obstack.
273 * buildsym.h (struct pending_block): Move definition to
275 (pending_blocks): Don't declare.
277 2012-12-10 Pedro Alves <palves@redhat.com>
279 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
280 dead SCO code, and adjust function description comment.
282 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
284 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
285 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
287 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
288 * dwarf2read.c (extract_cu_value): Remove the function.
289 (create_cus_from_index_list): Make the return type void, inline the
290 extract_cu_value caller, include new gdb_static_assert.
291 (create_cus_from_index): Make the return type void, update the function
292 comment, update the create_cus_from_index_list caller.
293 (create_signatured_type_table_from_index): Make the return type void,
294 inline the extract_cu_value caller, include new gdb_static_assert.
295 (dwarf2_read_index): Update the create_cus_from_index and
296 create_signatured_type_table_from_index caller.
297 * printcmd.c (ui_printf): Remove conditionalizations for
299 * config.in: Regenerate.
300 * configure: Regenerate.
302 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
304 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
305 Update the comment for checked_producer.
306 (check_producer): New forward declaration.
307 (producer_is_gcc_lt_4_3): New function.
308 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
309 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
311 2012-12-07 Tom Tromey <tromey@redhat.com>
313 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
315 * c-exp.y (typebase): Add completion productions.
316 * completer.c (expression_completer): Handle tag completion.
317 * expression.h (parse_expression_for_completion): Add argument.
318 * f-lang.c (f_make_symbol_completion_list): Add 'code'
320 * language.h (struct language_defn)
321 <la_make_symbol_completion_list>: Add 'code' argument.
322 * parse.c (expout_tag_completion_type, expout_completion_name):
324 (mark_struct_expression): Add assertion.
325 (mark_completion_tag): New function.
326 (parse_exp_in_context): Initialize new globals.
327 (parse_expression_for_completion): Add 'code' argument. Handle
329 * parser-defs.h (mark_completion_tag): Declare.
330 * symtab.c (default_make_symbol_completion_list_break_on): Add
331 'code' argument. Update.
332 (default_make_symbol_completion_list): Add 'code' argument.
333 (make_symbol_completion_list): Update.
334 (make_symbol_completion_type): New function.
335 * symtab.h (default_make_symbol_completion_list_break_on)
336 (default_make_symbol_completion_list): Update.
337 (make_symbol_completion_type): Declare.
339 2012-12-07 Tom Tromey <tromey@redhat.com>
341 * expression.h (parse_expression_for_completion): Rename
342 from parse_field_expression.
343 (parse_completion): Rename from in_parse_field.
344 * c-exp.y (lex_one_token): Update.
345 * completer.c (expression_completer): Update.
346 * go-exp.y (lex_one_token): Update.
347 * p-exp.y (yylex): Update.
348 * parse.c (parse_completion): Rename from in_parse_field.
349 (parse_exp_in_context): Update.
350 (parse_expression_for_completion): Rename from
351 parse_field_expression. Update.
353 2012-12-07 Tom Tromey <tromey@redhat.com>
355 * typeprint.c (_initialize_typeprint): Set completer
356 for "whatis" and "ptype".
358 2012-12-07 Joel Brobecker <brobecker@adacore.com>
360 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
361 "sim/common/cgen-fpu.h". Remove invalid entries
362 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
363 which actually have an FSF copyright header.
365 2012-12-07 Joel Brobecker <brobecker@adacore.com>
367 * osf-share/AT386/cma_thread_io.h: Delete.
368 * osf-share/HP800/cma_thread_io.h: Delete.
369 * osf-share/README: Delete.
370 * osf-share/RIOS/cma_thread_io.h: Delete.
371 * osf-share/cma_attr.h: Delete.
372 * osf-share/cma_deb_core.h: Delete.
373 * osf-share/cma_debug_client.h: Delete.
374 * osf-share/cma_errors.h: Delete.
375 * osf-share/cma_handle.h: Delete.
376 * osf-share/cma_init.h: Delete.
377 * osf-share/cma_list.h: Delete.
378 * osf-share/cma_mutex.h: Delete.
379 * osf-share/cma_sched.h: Delete.
380 * osf-share/cma_semaphore_defs.h: Delete.
381 * osf-share/cma_sequence.h: Delete.
382 * osf-share/cma_stack.h: Delete.
383 * osf-share/cma_stack_int.h: Delete.
384 * osf-share/cma_tcb_defs.h: Delete.
385 * osf-share/cma_util.h: Delete.
386 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
388 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
389 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
390 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
392 2012-12-06 Pedro Alves <palves@redhat.com>
393 Tom Tromey <tromey@redhat.com>
395 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
397 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
400 * mi/mi-cmd-var.c (varobj_update_one): Take value of
401 attribute "dynamic" and "displayhint" from printed child,
402 not the root variable.
404 2012-12-06 Joel Brobecker <brobecker@adacore.com>
406 * aix-thread.c (getthrds): Fix type of 4th parameter.
407 (get_signaled_thread): Change type of variable ktid to tid_t.
409 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
411 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
412 value of get_frame_block.
414 2012-12-05 Pierre Muller <muller@sourceware.org>
416 Avoid memory leaks on struct cmd_list_element.doc field.
417 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
418 if flags contains DOC_ALLOCATED.
419 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
421 (delete_cmd): Handle DOC_ALLOCATED flag.
422 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
423 in flags filed of struct cmd_list_element.
424 (struct cmd_list_element): Document new flag item.
426 2012-12-04 Doug Evans <dje@google.com>
428 * symmisc.c: Whitespace fixes.
430 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
432 * i386-tdep.c (i386_skip_prologue): Using symbol table
433 to find the end of prologue for clang compiled binaries.
434 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
435 to find the end of prologue for clang compiled binaries.
437 2012-12-03 Doug Evans <dje@google.com>
439 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
440 (dw2_find_symbol_file): Delete unused local file_data.
442 2012-12-03 Tom Tromey <tromey@redhat.com>
444 * ada-exp.y (write_object_renaming, write_var_or_type)
445 (write_ambiguous_var, write_var_from_sym): Make blocks const.
446 * ada-lang.c (replace_operator_with_call)
447 (find_old_style_renaming_symbol): Make blocks const.
448 * ada-lang.h (ada_find_renaming_symbol): Update.
449 (struct ada_symbol_info) <block>: Now const.
450 * breakpoint.c (watch_command_1): Update.
451 * breakpoint.h (struct watchpoint) <exp_valid_block,
452 cond_exp_valid_block>: Now const.
453 * c-exp.y (classify_inner_name, classify_name): Make block
455 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
457 * expression.h (innermost_block, parse_exp_1): Update.
458 (union exp_element) <block>: Now const.
459 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
460 (lookup_struct): Make block argument const.
461 * gdbtypes.h (lookup_template_type): Update.
462 * go-exp.y (classify_name, classify_packaged_name)
463 (package_name_p): Make block argument const.
464 * objc-lang.c (lookup_struct_typedef): Make block argument const.
465 * objc-lang.h (lookup_struct_typedef): Update.
466 * parse.c (parse_exp_in_context, parse_exp_1)
467 (write_exp_elt_block): Make block arguments const.
468 (expression_context_block, innermost_block): Now const.
469 * parser-defs.h (write_exp_elt_block): Update.
470 (expression_context_block, innermost_block, block_found): Now
472 * printcmd.c (struct display) <block>: Now const.
473 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
474 * valops.c (address_of_variable): Make block argument const.
475 * value.h (value_of_variable): Update.
476 * varobj.c (struct varobj_root) <valid_block>: Now const.
478 2012-11-30 Yao Qi <yao@codesourcery.com>
480 * breakpoint.c (print_one_breakpoint_location): Indent code.
482 2012-11-30 Yao Qi <yao@codesourcery.com>
484 * breakpoint.c (print_one_breakpoint_location): Combine two
485 blocks handling 'hit count' together.
487 2012-11-30 Yao Qi <yao@codesourcery.com>
489 * infrun.c (error_is_running, ensure_not_running): Move them
491 * infcmd.c (error_is_running, ensure_not_running): ... here.
493 * inferior.h: Remove declarations of error_is_running and
496 2012-11-30 Yao Qi <yao@codesourcery.com>
498 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
501 2012-11-30 Yao Qi <yao@codesourcery.com>
503 * infrun.c: Make the declaration of 'init_infwait_state'
505 (init_infwait_state): Make it 'static'.
507 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
509 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
510 return value to void to avoid compiler warning.
512 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
514 * opencl-lang.c (opencl_print_type): New function.
515 (opencl_language_arch_info): Install it.
517 2012-11-29 Tom Tromey <tromey@redhat.com>
519 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
521 * common/common-utils.c (xasprintf, xvasprintf): Remove.
522 * common/common-utils.h (xasprintf, xvasprintf): Remove.
524 2012-11-29 Jerome Guitton <guitton@adacore.com>
526 * ada-lang.c (ada_is_interface_tag): New function.
527 (ada_is_ignored_field): Add interface tags to the list
530 2012-11-29 Jerome Guitton <guitton@adacore.com>
532 * ada-lang.h (ada_tag_value_at_base_address): New function
534 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
536 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
537 relocate the class-wide value if need be.
538 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
539 Let ada_tag_value_at_base_address relocate the class-wide access/ref
540 before dereferencing it.
541 * ada-valprint.c (ada_val_print_1): Relocate to base address
542 before displaying the content of an interface-wide ref.
544 2012-11-29 Jerome Guitton <guitton@adacore.com>
546 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
548 2012-11-29 Joel Brobecker <brobecker@adacore.com>
552 2012-11-29 Yao Qi <yao@codesourcery.com>
553 Tom Tromey <tromey@redhat.com>
555 * eval.c (evaluate_subexp_standard): Get the correct pointer
556 type for TYPE_CODE_MEMBERPTR.
558 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
560 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
561 since now it is being done by binutils' powerpc_init_dialect().
563 2012-11-28 Tom Tromey <tromey@redhat.com>
566 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
567 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
569 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
570 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
571 (gdb_bfd_openr_next_archived_file): Use it.
573 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
575 * configure.ac: Check for linux/perf_event.h.
576 * config.in: Regenerated.
577 * configure: Regenerated.
579 2012-11-28 Yao Qi <yao@codesourcery.com>
581 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
582 abbreviate 'delete tracepoints' to 'delete tr'.
583 * corefile.c (_initialize_core): Call add_alias_cmd to
584 abbreviate 'set gnutarget' to 'set g'.
585 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
586 'show convenience' to 'show conv'.
588 2012-11-27 Joel Brobecker <brobecker@adacore.com>
590 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
591 call to sparc_supply_fpregset.
592 (fill_fpregset): Fix first parameter in call to
593 sparc_collect_fpregset.
595 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
596 Kazu Hirata <kazu@codesourcery.com>
597 Yao Qi <yao@codesourcery.com>
599 * objfiles.c (init_entry_point_info): Call
600 gdbarch_convert_from_func_ptr_addr and
601 gdbarch_addr_bits_remove here ...
602 (entry_point_address_query): ... instead of here.
603 * solib-svr4.c (exec_entry_point): Call
604 gdbarch_addr_bits_remove.
605 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
608 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
609 Yao Qi <yao@codesourcery.com>
611 * eval.c (evaluate_subexp_standard): Add handling of
612 TYPE_CODE_MEMBERPTR when calling functions. Correct the
613 result of ptype for calling a TYPE_CODE_METHODPTR.
615 2012-11-27 Yao Qi <yao@codesourcery.com>
617 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
621 2012-11-26 Alexander Larsson <alexl@redhat.com>
622 Jan Kratochvil <jan.kratochvil@redhat.com>
623 Tom Tromey <tromey@redhat.com>
625 * NEWS: Mention mini debuginfo feature.
626 * minidebug.c: New file.
627 * configure.ac: Check for lzma.
628 * configure, config.in: Rebuild.
629 * Makefile.in (LIBLZMA): New variable.
630 (CLIBS): Include LIBLZMA.
631 (SFILES): Mention minidebug.c.
632 (COMMON_OBS): Mention minidebug.o.
633 * symfile.c (read_symbols): New function.
634 (syms_from_objfile, reread_symbols): Call it.
635 * symfile.h (find_separate_debug_file_in_section): Declare.
637 2012-11-26 Keith Seitz <keiths@redhat.com>
639 * exec.c (exec_file_attach): Move cleanup after verifying that
640 memory has in fact been allocated.
642 2012-11-26 Tom Tromey <tromey@redhat.com>
644 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
645 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
647 * skip.c (skip_info): Use SYMBOL_SYMTAB.
649 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
650 Pedro Alves <palves@redhat.com>
652 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
653 size parameter passed to readlink by one byte.
654 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
655 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
656 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
657 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
660 2012-11-26 Yao Qi <yao@codesourcery.com>
662 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
663 extraneous parentheses.
665 2012-11-26 Yao Qi <yao@codesourcery.com>
667 * remote.c (remote_start_remote): Typo fix.
669 2012-11-23 David S. Miller <davem@davemloft.net>
671 * sparc-tdep.h (struct sparc_fpregset): New data structure.
672 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
673 sparc32_sol2_fpregset): Declare new globals.
674 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
676 * sparc64-tdep.h (sparc64_supply_fpregset,
677 sparc64_collect_fpregset): Likewise.
678 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
680 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
681 (sparc_fpregset): Declare new global.
682 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
684 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
686 (fill_fpregset): Likewise.
687 (_initialize_sparc_linux_nat): Set sparc_fpregset to
688 sparc32_bsd_fpregset.
689 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
690 sparc32_bsd_fpregset down into handler.
691 (sparc32_linux_collect_core_fpregset): Likewise.
692 * sparc-nat.c (sparc_fpregset): Define.
693 (sparc_supply_fpregset): Add 'fpregset' argument.
694 (sparc_collect_fpregset): Likewise.
695 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
696 into fpregset handler.
697 (sparc_store_inferior_registers): Likewise.
698 (_initialize_sparc_nat): Set sparc_fpregset to
699 sparc32_sunos4_fpregset if NULL.
700 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
702 (fill_fpregset): Likewise.
703 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
704 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
705 use it to compute offsets.
706 (sparc32_collect_fpregset): Likewise.
707 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
708 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
710 (fill_fpregset): Likewise.
711 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
713 (sparc64_linux_collect_core_fpregset): Likewise.
714 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
715 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
716 use it to compute offsets.
717 (sparc64_collect_fpregset): Likewise.
718 (sparc64_bsd_fpregset): Define.
719 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
720 sparc64_bsd_fpregset down into handler.
721 (sparc64fbsd_collect_fpregset): Likewise.
722 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
723 and pass sparc{32,64}_bsd_fpregset down into handler.
724 (sparc64nbsd_collect_fpregset): Likewise.
725 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
726 sparc64_bsd_fpregset down into handler.
727 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
728 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
729 to sparc32_bsd_fpregset.
730 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
731 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
732 (sparc32nbsd_supply_fpregset): Likewise.
734 2012-11-21 Tom Tromey <tromey@redhat.com>
736 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
738 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
740 * c-typeprint.c (c_type_print_base): Update.
742 2012-11-21 Yao Qi <yao@codesourcery.com>
745 * gdbarch.sh (smash_text_address): Remove.
746 * gdbarch.c, gdbarch.h: Regenerate.
747 * arm-tdep.c (arm_smash_text_address): Remove.
748 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
749 * hppa-tdep.c (hppa_smash_text_address): Remove.
750 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
751 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
753 * coffread.c (coff_symtab_read): Caller update.
754 * dbxread.c (process_one_symbol): Likewise.
755 * elfread.c (record_minimal_symbol): Likewise.
756 * somread.c (som_symtab_read): Likewise.
758 2012-11-20 Pierre Muller <muller@sourceware.org>
760 ARI fixes: sprintf rule.
761 Replace sprintf function calls for char arrays by
762 calls to xsnprintf calls.
763 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
764 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
765 (arm_neon_quad_read, arm_pseudo_read): Ditto.
766 (arm_neon_quad_write, arm_pseudo_write): Ditto.
767 * breakpoint.c (condition_completer): Ditto.
768 (create_tracepoint_from_upload): Ditto.
769 * dwarf2read.c (file_full_name): Ditto.
770 * gcore.c (gcore_command): Ditto.
771 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
772 * go32-nat.c (go32_sysinfo): Ditto.
773 * interps.c (interp_set): Ditto.
774 * m32c-tdep.c (make_types): Ditto.
775 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
776 * remote-m32r-sdi.c (m32r_open): Ditto.
777 * sol-thread.c (td_err_string): Ditto.
778 (td_state_string, solaris_pid_to_str): Ditto.
779 * symtab.c (gdb_mangle_name): Ditto.
780 * cli/cli-script.c (execute_control_command): Ditto.
781 (define_command, document_command): Ditto.
782 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
783 * tui/tui-stack.c (tui_make_status_line): Ditto.
784 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
786 2012-11-20 Mike Frysinger <vapier@gentoo.org>
788 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
789 it when looking at ptr->func.
790 * command.h (complete_on_cmdlist): Add a fourth arg.
791 * completer.c (complete_line_internal): Add local ignore_help_classes,
792 and set it to 1 when reason is not handle_help. Pass this down to
793 lookup_cmd_1 and complete_on_cmdlist.
795 2012-11-20 Tom Tromey <tromey@redhat.com>
797 * completer.c (count_struct_fields): Remove.
798 (expression_completer): Don't call count_struct_fields.
800 2012-11-20 Pedro Alves <palves@redhat.com>
802 * annotate.c (breakpoints_changed): Rename to ...
803 (annotate_breakpoints_changed): ... this.
804 (annotate_stopped, breakpoint_changed): Adjust caller.
805 * annotate.h (breakpoints_changed): Rename to ...
806 (annotate_breakpoints_changed): ... this.
807 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
808 (do_map_commands_command, init_raw_breakpoint, clear_command)
809 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
811 2012-11-20 David S. Miller <davem@davemloft.net>
813 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
814 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
816 (get_cores_used_by_process): Update comment.
818 2012-11-20 Yao Qi <yao@codesourcery.com>
820 * objfiles.c (init_entry_point_info): Remove trailing spaces.
822 2012-11-20 Yao Qi <yao@codesourcery.com>
824 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
825 to deprecated_context_hook.
827 2012-11-19 Yao Qi <yao@codesourcery.com>
829 * infrun.c (infwait_state): Add static.
831 2012-11-16 Keith Seitz <keiths@redhat.com>
834 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
835 parameter and pass it to lookup_symbol_file.
836 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
837 to search base classes.
838 (cp_lookup_symbol_namespace): Likewise.
839 (lookup_namespace_scope): Likewise.
840 (lookup_symbol_file): Add SEARCH parameter.
841 If SEARCH is non-zero and no symbol is found, lookup the class
842 and call cp_lookup_nested_symbol.
843 (find_symbol_in_baseclass): New function.
844 (cp_lookup_nested_symbol): Do not let
845 cp_lookup_symbol_in_namespace search through base classes.
846 Do that later when there is no global symbol match.
848 2012-11-16 Doug Evans <dje@google.com>
850 * main.c (gdb_datadir_provided): New static global.
851 (get_init_files): If --data-directory is provided,
852 and SYSTEM_GDBINIT lives in data-directory, look for it there.
855 2012-11-15 Pierre Muller <muller@sourceware.org>
857 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
858 * gdb_stat.h: Delete. Moved to common directory.
859 * common/gdb_stat.h: New file.
860 * gdb_wait.h: Delete. Moved to common directory.
861 * common/gdb_wait.h: New file.
862 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
864 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
866 (stat.h rule): Adapt to new gdb_stat.h location.
867 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
869 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
872 2012-11-15 Pierre Muller <muller@sourceware.org>
874 * configure.ac (AC_HEADER_STAT): Remove.
875 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
876 and corresponding code.
877 * configure: Regenerate.
878 * config.in: Regenerate.
880 2012-11-15 Pierre Muller <muller@sourceware.org>
882 ARI xasprintf rule fixes.
883 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
884 instead of xasprintf.
885 (open_and_init_dwp_file): Ditto.
887 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
889 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
892 2012-11-14 Tom Tromey <tromey@redhat.com>
894 * configure, config.in: Rebuild.
895 * configure.ac: Don't check for ctype.h, time.h.
896 * expprint.c: Don't use HAVE_CTYPE_H.
898 2012-11-13 Tom Tromey <tromey@redhat.com>
900 * gdbarch.h, gdbarch.c: Rebuild.
901 * gdbarch.sh (set_target_gdbarch): Rename from
902 deprecated_target_gdbarch_select_hack.
903 * arch-utils.c (gdbarch_update_p): Update.
904 (set_gdbarch_from_file): Update.
906 2012-11-14 Pierre Muller <muller@sourceware.org>
908 * MAINTAINERS (Responsible Maintainers/misc): Add myself
909 as responsible of contrib/ari directory.
911 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
912 Yao Qi <yao@codesourcery.com>
914 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
916 (arm_m_exception_cache, arm_m_exception_this_id)
917 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
918 (arm_m_exception_unwind): New.
919 (arm_gdbarch_init): Register arm_m_exception_unwind.
921 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
923 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
924 parameter COUNT, for pattern filling of memory regions.
927 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
929 * disasm.h (DISASSEMBLY_FILENAME): New macro.
930 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
931 to print_source_lines ().
932 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
934 * source.c (print_source_lines_base): Prefix source line with
935 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
937 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
939 * symtab.h (print_source_lines_flags): New enum.
940 * source.c (print_source_lines_base): Change noerror to flags.
941 (print_source_lines): Change noerror to flags.
943 2012-11-13 Pierre Muller <muller@sourceware.org>
945 ARI fixes: Avoid sprintf function use rule.
946 * charset.c (convert_between_encodings): Use xsnprintf.
947 * cli-out.c (cli_field_int): Likewise.
948 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
949 * expprint.c (op_name_standard): Likewise.
950 * frv-tdep.c (set_variant_num_gprs): Likewise.
951 (set_variant_num_fprs): Likewise.
952 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
953 * nto-tdep.c (nto_find_and_open_solib): Likewise.
954 (nto_init_solib_absolute_prefix): Likewise.
955 * source.c (init_source_path): Likewise.
956 (print_source_lines_base): Likewise.
957 * valprint.c (print_wchar): Likewise.
958 * mi/mi-out.c (mi_field_int): Likewise.
959 windows-nat.c (windows_pid_to_exec_file): Likewise.
960 (windows_create_inferior): Likewise.
961 (_initialize_check_for_gdb_ini): Likewise.
963 2012-11-12 Joel Brobecker <brobecker@adacore.com>
965 * frame.h (deprecated_frame_register_read): Renames
967 * frame.c (deprecated_frame_register_read): Renames
968 frame_register_read. Update all callers.
969 * i386-tdep.c: Update all callers of frame_register_read.
970 * infcmd.c: Likewise.
972 * mips-tdep.c: Likewise.
973 * mt-tdep.c: Likewise.
974 * sh64-tdep.c: Likewise.
976 2012-11-12 Joel Brobecker <brobecker@adacore.com>
978 * frame.h (frame_register_read): Remove FIXME comment.
979 * frame.c (frame_register_read): Add suggestion explaining
980 which function to use in place of this one.
982 2012-11-12 Tom Tromey <tromey@redhat.com>
984 * python/python.c (start_type_printers): Initialize 'result_obj'.
986 2012-11-12 Tom Tromey <tromey@redhat.com>
989 * data-directory/Makefile.in (PYTHON_FILES): Add
991 * python/lib/gdb/command/type_printers.py: New file.
992 * python/lib/gdb/command/types.py (TypePrinter): New class.
993 (_get_some_type_recognizers, get_type_recognizers,
994 apply_type_recognizers, register_type_printer): New
996 * python/py-objfile.c (objfile_object) <type_printers>: New
998 (objfpy_dealloc): Decref new field.
999 (objfpy_new): Set new field.
1000 (objfpy_get_type_printers, objfpy_set_type_printers): New
1002 (objfile_to_objfile_object): Set new field.
1003 (objfile_getset): Add "type_printers".
1004 * python/py-progspace.c (pspace_object) <type_printers>: New
1006 (pspy_dealloc): Decref new field.
1007 (pspy_new): Set new field.
1008 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1009 (pspace_to_pspace_object): Set new field.
1010 (pspace_getset): Add "type_printers".
1011 * python/python.c (start_type_printers, apply_type_printers,
1012 free_type_printers): New functions.
1013 (_initialize_python): Set gdb.type_printers.
1014 * python/python.h (start_type_printers, apply_type_printers,
1015 free_type_printers): Declare.
1016 * typeprint.c (type_print_raw_options, default_ptype_flags):
1017 Update for new fields.
1018 (do_free_global_table, create_global_typedef_table,
1019 find_global_typedef): New functions.
1020 (find_typedef_in_hash): Use find_global_typedef.
1021 (whatis_exp): Use create_global_typedef_table. Change cleanup
1023 * typeprint.h (struct type_print_options) <global_typedefs,
1024 global_printers>: New fields.
1026 2012-11-12 Tom Tromey <tromey@redhat.com>
1028 * c-typeprint.c (find_typedef_for_canonicalize,
1029 print_name_maybe_canonical): New functions.
1030 (c_print_type): Look up type name.
1031 (cp_type_print_derivation_info): Add flags argument. Use
1032 print_name_maybe_canonical.
1033 (cp_type_print_method_args): Add wrapping.
1034 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1035 (c_type_print_template_args): New function.
1036 (c_type_print_base): Change wrapping. Use
1037 print_name_maybe_canonical.
1038 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1040 * gdbtypes.c (types_equal): No longer static.
1041 * gdbtypes.h (types_equal): Declare.
1042 * typeprint.c (type_print_raw_options, default_ptype_flags):
1044 (struct typedef_hash_table): New.
1045 (hash_typedef_field, eq_typedef_field,
1046 recursively_update_typedef_hash, add_template_parameters,
1047 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1048 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1049 copy_typedef_hash, find_typedef_in_hash): New functions.
1050 * typeprint.h (struct type_print_options) <local_typedefs>:
1052 (recursively_update_typedef_hash, add_template_parameters,
1053 create_typedef_hash, free_typedef_hash,
1054 make_cleanup_free_typedef_hash, copy_typedef_hash,
1055 find_typedef_in_hash): Declare.
1057 2012-11-12 Tom Tromey <tromey@redhat.com>
1059 * cp-support.c (inspect_type,
1060 replace_typedefs_qualified_name, replace_typedefs): Add
1061 finder, data arguments. Call as needed.
1062 (cp_canonicalize_string_full): New function.
1063 (cp_canonicalize_string_no_typedefs): Rewrite.
1064 * cp-support.h (canonicalization_ftype): New typedef.
1065 (cp_canonicalize_string_full): Declare.
1067 2012-11-12 Tom Tromey <tromey@redhat.com>
1070 * c-typeprint.c (c_type_print_base): Handle print_method and
1071 print_typedefs flags.
1072 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1073 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1075 * typeprint.c (type_print_raw_options, default_ptype_flags):
1076 Update for new field.s
1077 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1078 (setprinttypelist, showprinttypelist, print_methods,
1079 print_typedefs): New globals.
1080 (set_print_type, show_print_type, set_print_type_methods,
1081 show_print_type_methods, set_print_type_typedefs,
1082 show_print_type_typedefs): New functions.
1083 (_initialize_typeprint): Update documentation. Add "print
1084 type methods" and "print type typedefs" parameters.
1085 * typeprint.h (struct type_print_options) <print_methods,
1086 print_typedefs>: New fields.
1088 2012-11-12 Tom Tromey <tromey@redhat.com>
1090 * c-typeprint.c (cp_type_print_method_args): Add flags
1091 argument. Call c_print_type, not type_print.
1092 (c_type_print_base): Call c_print_type, not type_print.
1095 2012-11-12 Tom Tromey <tromey@redhat.com>
1097 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1098 to type-printing functions.
1099 * ada-lang.h (ada_print_type): Add argument.
1100 * ada-typeprint.c (print_array_type, print_variant_clauses,
1101 print_variant_part, print_selected_record_field_types,
1102 print_record_field_types, print_unchecked_union_type,
1103 print_func_type, ada_print_type): Add flags argument.
1104 (ada_print_typedef): Update.
1105 * c-exp.y (OPERATOR conversion_type_id): Update.
1106 * c-lang.h (c_print_type, c_type_print_base): Update.
1107 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1108 c_type_print_modifier, c_type_print_args,
1109 c_type_print_varspec_suffix, c_type_print_base): Add flags
1111 * cp-valprint.c (cp_print_class_member): Update.
1112 * dwarf2read.c (dwarf2_compute_name): Update.
1113 * f-lang.h (f_print_type): Add argument.
1114 * f-typeprint.c (f_print_type): Add flags argument.
1115 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1116 * go-lang.h (go_print_type): Add argument.
1117 * go-typeprint.c (go_print_type): Add flags argument.
1118 * jv-lang.h (java_print_type): Add argument.
1119 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1121 * language.c (unk_lang_print_type): Add flags argument.
1122 * language.h (struct language_defn) <la_print_type>: Add flags
1124 (LA_PRINT_TYPE): Likewise.
1125 * m2-lang.h (m2_print_type): Add argument.
1126 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1127 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1128 m2_unbounded_array, m2_record_fields): Add flags argument.
1129 * p-lang.h (pascal_print_type, pascal_type_print_base,
1130 pascal_type_print_varspec_prefix): Add argument.
1131 * p-typeprint.c (pascal_print_type,
1132 pascal_type_print_varspec_prefix, pascal_print_func_args,
1133 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1135 * symmisc.c (print_symbol): Update.
1136 * typeprint.c (type_print_raw_options, default_ptype_flags):
1138 (type_print): Update.
1139 * typeprint.h (struct type_print_options): New.
1140 (type_print_raw_options): Declare.
1141 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1143 2012-11-10 Keith Seitz <keiths@redhat.com>
1145 * breakpoint.c (clear_command): Add cleanup for
1146 sals.sals if an argument is given.
1148 * linespec.c (parse_linespec): Do cleanups after
1149 parsing a convenience variable.
1151 2012-11-10 Keith Seitz <keiths@redhat.com>
1154 * c-valprint.c (c_val_print): For character arrays
1155 with "print null" option on, print ellipses if
1156 the output is truncated and the next character is not \000.
1157 * valprint.c (MAX_WCHARS): Define.
1158 (WCHAR_BUFLEN): Likewise.
1159 (WCHAR_BUFLEN_MAX): Likewise.
1160 (struct converted_character): New structure.
1161 (count_next_character): New function.
1162 (print_converted_chars_to_obstack): New function.
1163 (generic_printstr): Rewrite using count_next_character
1164 and print_converted_chars_to_obstack.
1166 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1168 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1169 while executing the gdb command.
1170 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1171 are called from prompt_for_continue.
1172 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1174 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1178 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1179 but insert the command to execute in readline's buffer.
1181 2012-11-09 Tom Tromey <tromey@redhat.com>
1183 * gdbarch.sh (target_gdbarch): Remove macro.
1184 (get_target_gdbarch): Rename to target_gdbarch.
1185 * gdbarch.c, gdbarch.h: Rebuild.
1186 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1187 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1188 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1189 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1190 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1191 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1192 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1193 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1194 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1195 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1196 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1197 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1198 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1199 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1200 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1201 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1202 target-descriptions.c, target.c, target.h, tracepoint.c,
1203 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1204 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1205 python/py-inferior.c, python/python.c: Update.
1207 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1209 * source.c (print_source_lines_base): Add fullname field giving
1210 full path to file in mi output.
1211 * NEWS: Mention the new fullname field.
1213 2012-11-09 Yao Qi <yao@codesourcery.com>
1215 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1217 2012-11-09 Pedro Alves <palves@redhat.com>
1221 * infrun.c: Include target-descriptions.h.
1222 (follow_exec): Fetch new target description.
1224 2012-11-09 Yao Qi <yao@codesourcery.com>
1226 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1229 2012-11-09 Yao Qi <yao@codesourcery.com>
1231 * breakpoint.c: Declare set_tracepoint_count.
1232 (install_breakpoint): Call set_tracepoint_count if B is a
1234 (trace_command): Don't call set_tracepoint_count. Re-indent.
1235 (strace_command, ftrace_command):
1236 (create_tracepoint_from_upload): Likewise.
1238 2012-11-09 Pedro Alves <palves@redhat.com>
1240 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1241 (get_target_gdbarch) <gdbarch.h>: New function.
1242 (startup_gdbarch) <gdbarch.h>: Declare.
1243 <gdbarch.c> (target_gdbarch): Delete.
1244 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1245 current inferior's gdbarch.
1246 <gdbarch.c> (get_target_gdbarch): New function.
1247 * inferior.c: Include target-descriptions.h.
1248 (free_inferior): Free target description info.
1249 (add_inferior_with_spaces): Set the inferior's initial
1251 (clone_inferior_command): Copy the original inferior's target
1252 description if it was user specified.
1253 (initialize_inferiors): Add comment.
1254 * inferior.h (struct target_desc_info): Forward declare.
1255 (struct inferior) <gdbarch>: New field.
1256 * linux-nat.c: Include target-descriptions.h.
1257 (linux_child_follow_fork): Copy the parent's architecture and
1258 target description to the child.
1259 * target-descriptions.c: Include inferior.h.
1260 (struct target_desc_info): New structure, holding the equivalents
1262 (target_desc_fetched, current_target_desc)
1263 (target_description_filename): ... these removed globals.
1264 (get_tdesc_info, target_desc_info_from_user_p)
1265 (copy_inferior_target_desc_info, target_desc_info_free): New.
1266 (target_desc_fetched, current_target_desc)
1267 (target_description_filename): Reimplemented as convenience
1269 (tdesc_filename_cmd_string): New global.
1270 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1271 tdescs filename ..." commands to the per-inferior equivalent.
1272 (show_tdesc_filename_cmd): Get the value to show from the
1273 per-inferior description filename.
1274 (_initilize_target_descriptions): Change the "set/show tdesc
1275 filename" commands' variable.
1276 * target-descriptions.h (struct target_desc, struct target_desc_info)
1277 (struct inferior): Forward declare.
1278 (target_find_description, target_clear_description)
1279 (target_current_description): Adjust comments.
1280 (copy_inferior_target_desc_info, target_desc_info_free)
1281 (target_desc_info_from_user_p). Declare.
1283 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1285 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1286 (tui_target_wait_hook): Remove.
1287 (tui_install_hooks): Install the about_to_proceed observer.
1288 (tui_remove_hooks): And remove it here.
1290 2012-11-08 Tom Tromey <tromey@redhat.com>
1292 * linux-tdep.c (linux_make_siginfo_note): New function.
1293 (linux_make_corefile_notes): Use it.
1294 * corelow.c (get_core_siginfo): New function.
1295 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1297 2012-11-08 Tom Tromey <tromey@redhat.com>
1300 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1301 (zlib_decompress_section): Remove.
1302 (gdb_bfd_map_section): Only check for compressed section
1303 in mmap case. Use bfd_get_full_section_contents.
1304 * osabi.c (check_note): Add 'sectsize' argument. Read
1306 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1307 section data. Update for check_note change.
1308 * xcoffread.c (xcoff_initial_scan): Use
1309 bfd_get_full_section_contents.
1310 * py-auto-load.c (auto_load_section_scripts): Use
1311 bfd_get_full_section_contents.
1312 * contrib/cc-with-tweaks.sh: Add -Z option.
1314 2012-11-08 Tom Tromey <tromey@redhat.com>
1316 * python/py-bpevent.c: Include defs.h.
1317 * python/py-continueevent.c: Include defs.h.
1318 * python/py-event.c: Include defs.h.
1319 * python/py-event.h: Don't include defs.h.
1320 * python/py-events.h: Don't include defs.h.
1321 * python/py-evts.c: Include defs.h.
1322 * python/py-exitedevent.c: Include defs.h.
1323 * python/py-newobjfileevent.c: Include defs.h.
1324 * python/py-signalevent.c: Include defs.h.
1325 * python/py-stopevent.c: Include defs.h.
1326 * python/py-threadevent.c: Include defs.h.
1328 2012-11-08 Pierre Muller <muller@sourceware.org>
1330 * update-web-ari.sh (print_heading): Add number of files
1332 (nb_files): New variable counting the number of sources
1333 files found by gdb_find.sh script.
1334 (debug_awk): New variable to allow extra debug output.
1335 (indexes): Add more information if DEBUG_AWK is set.
1337 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1339 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1340 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1341 following the change in PLT call stubs on linker.
1343 2012-11-08 Pierre Muller <muller@sourceware.org>
1345 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1346 as default language.
1347 (AWK): Use = instead of == for sh test to avoid warning.
1348 (Linux rule): Correct [:digit] into [[:digit:]].
1349 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1350 (vasprintf rule): Adapt to common subdirectory moves.
1351 (xasprintf rule): Idem.
1352 (xvasprintf rule): Idem.
1353 (var_boolean rule): Accept occurence in == or != test.
1355 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1357 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1359 * tui/tui-hooks.c (tui_inferior_exit): New function.
1360 (tui_detach_hook): Remove.
1361 (tui_install_hooks): Install the inferior exit observer.
1362 (tui_remove_hooks): Remove it.
1364 2012-11-08 Yao Qi <yao@codesourcery.com>
1367 * source.c (_initialize_source): Call add_com_alias to abbreviate
1368 'forward-search' as 'fo'.
1370 2012-11-07 Pedro Alves <palves@redhat.com>
1372 * arm-tdep.c: Make defs.h be the first include.
1373 * coff-pe-read.c: Ditto.
1375 * go32-nat.c: Ditto.
1376 * i386-nat.c: Ditto.
1377 * ppcnbsd-nat.c: Ditto.
1378 * ada-varobj.h: Don't include defs.h.
1379 * i386-darwin-tdep.h: Ditto.
1380 * i386-nat.h: Ditto.
1382 2012-11-07 Pedro Alves <palves@redhat.com>
1384 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1387 2012-11-07 Pierre Muller <muller@sourceware.org>
1389 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1390 File already uses "gdb_dirent.h" header.
1392 2012-11-07 Yao Qi <yao@codesourcery.com>
1394 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1397 2012-11-06 Tom Tromey <tromey@redhat.com>
1399 * target.h (inferior_has_forked, inferior_has_vforked)
1400 (inferior_has_execd, inferior_has_called_syscall): Remove
1403 2012-11-06 Pierre Muller <muller@sourceware.org>
1405 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1406 add missing internalization markup.
1408 2012-11-06 Pedro Alves <palves@redhat.com>
1412 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1414 2012-11-06 Pierre Muller <muller@sourceware.org>
1416 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1419 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1421 * gnulib/update-gnulib.sh: New script.
1423 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1425 * MAINTAINERS: Update my email address.
1427 2012-11-05 Tom Tromey <tromey@redhat.com>
1429 * frame.c (put_frame_register): Don't use temporary buffer.
1431 2012-11-05 Pedro Alves <palves@redhat.com>
1433 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1434 child. Clear 'pending_detach'.
1435 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1436 'pending_detach' in the vfork parent.
1438 2012-11-05 Doug Evans <dje@google.com>
1440 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1441 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1442 * dwarf2read.c: #include "elf-bfd.h".
1443 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1444 (dwop_section_names): Renamed from dwo_section names. All uses
1445 updated. Add entries for .debug_cu_index, .debug_tu_index.
1446 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1448 (struct dwp_sections): New type.
1449 (struct virtual_dwo_sections): New type.
1450 (struct dwp_hash_table): New type.
1451 (struct dwp_file): New type.
1452 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1453 read in. Handle DWOs coming from DWP files.
1454 (lookup_dwo_file_slot): New function.
1455 (dwarf2_locate_dwo_sections): Move definition closer to use.
1456 (create_dwo_debug_info_hash_table_reader): Renamed from
1457 create_debug_info_hash_table_reader. All callers updated.
1458 (create_dwo_debug_info_hash_table): Renamed from
1459 create_debug_info_hash_table. All callers updated.
1460 (create_dwp_hash_table): New function.
1461 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1462 (lookup_dwo_in_dwp): New function.
1463 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1464 is_dwp. All callers updated.
1465 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1466 (open_and_init_dwo_file): Renamed from init_dwo_file.
1467 All callers updated.
1468 (lookup_dwo_file): Delete.
1469 (dwarf2_locate_dwp_sections): New function.
1470 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1471 (allocate_dwp_loaded_cutus_table): New function.
1472 (open_and_init_dwp_file): New function.
1473 (lookup_dwo_cutu): New function.
1474 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1476 2012-11-03 Yao Qi <yao@codesourcery.com>
1479 * breakpoint.c (trace_pass_set_count): Call
1480 observer_notify_breakpoint_modified instead of
1481 observer_notify_tracepoint_modified.
1482 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1484 2012-11-02 Tom Tromey <tromey@redhat.com>
1486 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1487 argument to complete_on_enum.
1489 2012-11-02 Tom Tromey <tromey@redhat.com>
1491 * configure: Rebuild.
1492 * configure.ac (build_warnings): Add -Wempty-body.
1493 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1494 * remote.c (handle_notification): Use braces for empty 'else' body.
1495 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1497 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1499 * solib-som.c (som_relocate_section_addresses): Use braces
1500 for empty 'else' body.
1501 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1502 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1504 2012-11-02 Pedro Alves <palves@redhat.com>
1508 * infrun.c (handle_inferior_event)
1509 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1510 null_ptid before handling a vfork child exec or exit. Switch to
1511 the event ptid afterwards.
1513 2012-11-02 Yao Qi <yao@codesourcery.com>
1515 * std-operator.def: Remove OP_LABELED.
1516 * eval.c: Remove the declaration of 'get_label'.
1517 (get_label): Remove.
1518 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1520 Remove local variable 'variantno' and related code.
1521 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1523 * expprint.c (print_subexp_standard): Likewise.
1524 (dump_subexp_body_standard): Likewise.
1525 * parse.c (operator_length_standard): Likewise.
1527 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1529 Incorporate ARI web page generator into GDB sources.
1530 * contrib/ari/create-web-ari-in-src.sh: New file.
1531 * contrib/ari/gdb_ari.sh: New file.
1532 * contrib/ari/gdb_find.sh: New file.
1533 * contrib/ari/update-web-ari.sh: New file.
1535 2012-10-31 Tom Tromey <tromey@redhat.com>
1537 * gdbarch.c: Rebuild.
1538 * gdbarch.sh: Remove references to gdbarch_swap.
1539 * corelow.c (core_open): Remove obsolete comment.
1541 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1544 * c-typeprint.c (c_print_type): Don't print a space for vector
1545 types, this is handled within the suffix.
1546 (c_type_print_varspec_suffix): Add a space to vector suffix.
1548 2012-10-26 Pedro Alves <palves@redhat.com>
1550 * amd64-tdep.c (amd64_relocate_instruction): Use
1551 store_unsigned_integer instead of memcpy.
1552 * i386-tdep.c (i386_relocate_instruction): Ditto.
1554 2012-10-26 Pedro Alves <palves@redhat.com>
1556 * infrun.c (handle_inferior_event): Merge handling of
1557 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1560 2012-10-26 Pedro Alves <palves@redhat.com>
1562 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1565 2012-10-26 Pedro Alves <palves@redhat.com>
1567 * target.c (target_waitstatus_to_string): Handle
1568 TARGET_WAITKIND_VFORK_DONE.
1570 2012-10-26 Pedro Alves <palves@redhat.com>
1572 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1573 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1575 2012-10-24 Tristan Gingold <gingold@adacore.com>
1577 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1580 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1582 * ravenscar-thread.c (ravenscar_wait): Only update the list
1583 of threads and inferior_ptid if the inferior is still alive.
1585 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1587 * ada-lang.c (is_known_support_routine): Use lbasename when
1588 matching the symtab's filename against
1589 known_runtime_file_name_patterns.
1591 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1593 * ada-lang.c (ada_same_array_size_p): New function.
1594 (ada_promote_array_of_integrals): New function.
1595 (coerce_for_assign): Add handling of arrays where the elements
1596 are integrals of a smaller size than the size of the target
1599 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1601 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1602 against maximum exponent value.
1604 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1606 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1609 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1611 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1612 strip typedef layer when computing the fixed type's field type,
1613 only when computing its size.
1615 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1618 * i386-tdep.c (i386_return_value): Handle complex double and long
1621 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1623 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1624 New local variable args_len.
1625 Quote the name of the executable when computing the command line.
1627 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1632 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1634 * amd64-tdep.c (amd64_classify): Classify complex types.
1635 (amd64_return_value): Handle the COMPLEX_X87 class.
1637 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1639 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1640 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1642 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1644 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1646 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1647 to amd64_windows_auto_wide_charset.
1649 2012-10-23 Yao Qi <yao@codesourcery.com>
1651 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1652 * event-top.h: Remove its declaration.
1653 (async_request_quit): Call mark_async_signal_handler instead of
1654 mark_async_signal_handler_wrapper.
1655 (async_do_nothing, async_disconnect): Likewise.
1656 (async_stop_sig): Likewise.
1657 * remote.c (handle_remote_sigint): Likewise.
1658 (handle_remote_sigint_twice): Likewise.
1660 2012-10-23 Yao Qi <yao@codesourcery.com>
1662 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1663 with 'static struct async_signal_handler *'.
1664 (sighup_token, sigquit_token, sigstp_token): Likewise.
1666 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1668 * gdbarch.sh (function_list): Use 'pstring' when printing
1669 a variable which could return NULL.
1670 * gdbarch.c: Regenerate.
1672 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1673 Tom Tromey <tromey@redhat.com>
1675 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1676 inneffective if condition by gdb assertion. Add function
1677 description comment.
1679 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1681 * parser-defs.h (struct exp_descriptor): Document constraint
1682 on return value for "op_name" callbacks.
1684 2012-10-18 Tom Tromey <tromey@redhat.com>
1686 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1687 * symtab.c (iterate_over_some_symtabs): Constify.
1688 * source.h (symtab_to_fullname): Return 'const char *'.
1689 * source.c (symtab_to_fullname): Return 'const char *'.
1690 * python/py-symtab.c (stpy_fullname): Constify.
1691 * cli/cli-cmds.c (edit_command): Constify.
1692 * breakpoint.c (print_breakpoint_location)
1693 (update_static_tracepoint): Constify.
1695 2012-10-18 Tom Tromey <tromey@redhat.com>
1697 * breakpoint.c (compare_breakpoints): Fix comparison.
1699 2012-10-18 Tom Tromey <tromey@redhat.com>
1701 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1702 gdb_wchar_t to convert_between_encodings.
1704 2012-10-17 Yao Qi <yao@codesourcery.com>
1706 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1707 more parameter 'inferior'.
1708 * corefile.c (write_memory_with_notification): Caller update.
1710 * mi/mi-cmd-var.c: Include "mi-main.h".
1711 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1712 to 1 and restore it later.
1713 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1714 and "data-write-memory-bytes.
1715 * mi/mi-interp.c: Include objfiles.h.
1716 (mi_interpreter_init): Call observer_attach_memory_changed.
1717 (mi_memory_changed): New.
1718 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1721 * NEWS: Mention new MI notification "memory-changed".
1723 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1725 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1727 2012-10-15 Doug Evans <dje@google.com>
1729 New option -nh: inhibit loading of ~/.gdbinit.
1730 * NEWS: Mention -nh.
1731 * main.c (captured_main): Recognize and process -nh.
1732 (print_gdb_help): Mention -nh.
1733 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1735 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1739 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1741 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1742 nor pc_regnum_from_eax.
1743 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1744 nor pc_regnum_from_eax.
1746 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1748 Fix entry values resolving in inlined frames.
1749 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1750 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1753 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1755 * configure.ac: Build with -DMS_WIN64 if building with Python
1756 enabled using GCC on amd64-windows.
1757 * configure: Regenerate.
1759 2012-10-15 Tom Tromey <tromey@redhat.com>
1762 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1765 2012-10-15 Tom Tromey <tromey@redhat.com>
1768 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1770 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1772 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1773 reset thread numbering back to 1.
1775 2012-10-11 Doug Evans <dje@google.com>
1777 PR breakpoints/14643.
1778 * linespec.c (struct ls_parser): New member keyword_ok.
1779 (linespec_lexer_lex_string): Add comment.
1780 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1782 (parse_linespec): Set keyword_ok.
1784 2012-10-10 Doug Evans <dje@google.com>
1786 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1787 "0x" prefix on address in log message.
1789 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1790 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1791 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1792 (lookup_dwo_file): Add const to dwo_name parameter.
1793 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1795 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1797 Fix crash during stepping on ppc32.
1798 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1801 2012-10-03 Doug Evans <dje@google.com>
1804 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1806 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1808 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1809 output and use uint32_t not long to ensure 4 byte size.
1811 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1813 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1816 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1818 * target.c (simple_search_memory): Include access length in
1821 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1822 Edjunior Machado <emachado@linux.vnet.ibm.com>
1825 * solib.c (solib_find): Prevent GDB from loading native libraries when
1826 debugging a cross-target corefile.
1828 2012-09-28 selven <pcthegreat@gmail.com>
1830 Make definition match declaration.
1832 * regcache.c (regcache_register_status): Change return type to
1833 enum register_status.
1835 2012-09-28 Yao Qi <yao@codesourcery.com>
1837 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1838 write_memory_with_notification instead of write_memory.
1839 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1840 instead of target_write_memory.
1842 2012-09-28 Yao Qi <yao@codesourcery.com>
1844 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1845 when the length of content is not an even number.
1847 2012-09-27 Tom Tromey <tromey@redhat.com>
1849 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1850 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1852 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1854 * sol-thread.c (sol_thread_fetch_registers)
1855 (sol_thread_store_registers): Delete commented out code.
1857 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1859 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1860 Move these functions to sparc-sol-thread.c.
1861 * sparc-sol-thread.c: New file.
1862 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1863 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1865 * configure: Regenerate.
1867 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1869 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1870 Remove commented-out code.
1872 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1874 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1875 Enable this code for sparc hosts only.
1877 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1879 * procfs.h (procfs_find_LDT_entry): Add declaration.
1880 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1881 function procfs_find_LDT_entry.
1883 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1885 * procfs.c (proc_get_LDT_entry): Make static.
1887 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1889 * procfs.c (proc_find_memory_regions): Fix declaration.
1891 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1893 * amd64-tdep.c (amd64_return_value): Revert previous change
1894 that used TYPE_LENGTH directly.
1895 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1896 (bfin_store_return_value): Likewise.
1897 * cris-tdep.c (cris_store_return_value): Likewise.
1898 (cris_extract_return_value): Likewise.
1899 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1900 * hppa-tdep.c (hppa64_return_value): Likewise.
1901 * lm32-tdep.c (lm32_store_return_value): Likewise.
1902 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1903 * spu-tdep.c (spu_value_from_register): Likewise.
1904 * vax-tdep.c (vax_return_value): Likewise.
1906 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1908 * gdbtypes.c (lookup_array_range_type): Expand parameters
1909 LOW_BOUND and HIGH_BOUND to LONGEST.
1910 (lookup_string_range_type): Likewise.
1911 * gdbtypes.h (lookup_array_range_type): Likewise.
1912 (lookup_string_range_type): Likewise.
1913 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1914 Expand HIGHBOUND to ssize_t.
1915 (value_string): Likewise.
1916 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1917 (value_string): Likewise.
1919 2012-09-27 Yao Qi <yao@codesourcery.com>
1921 PR breakpoints/13898
1922 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1923 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1924 per breakpoint type.
1926 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1928 * procfs.c: Add gdb_bfd header.
1929 * rs6000-nat.c: Likewise.
1930 * solib-pa64.c: Likewise.
1931 * spu-linux-nat.c: Likewise.
1932 * windows-nat.c: Likewise.
1934 2012-09-26 Tom Tromey <tromey@redhat.com>
1936 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1938 2012-09-26 Tom Tromey <tromey@redhat.com>
1940 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1941 (read_common_block): Handle child DIEs with
1942 DW_AT_data_member_location.
1943 (new_symbol_full): Add special case for common blocks.
1945 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1946 Tom Tromey <tromey@redhat.com>
1948 * dwarf2read.c (read_common_block): Rewrite.
1949 (new_symbol_full): Handle DW_TAG_common_block.
1950 * f-lang.c (head_common_list, find_common_for_function):
1952 * f-lang.h (struct common_entry, struct saved_f77_common,
1953 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1954 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1955 BLANK_COMMON_NAME_LOCAL): Remove.
1956 (struct common_block): New.
1957 * f-valprint.c (list_all_visible_commons): Remove.
1958 (info_common_command_for_block): New function.
1959 (info_common_command): Use it.
1960 * stack.c (iterate_over_block_locals): Special case for
1961 COMMON_BLOCK_DOMAIN.
1962 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1964 (struct general_symbol_info) <value.common_block>: New field.
1965 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1967 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1968 Tom Tromey <tromey@redhat.com>
1970 * f-lang.c (allocate_saved_bf_node,
1971 allocate_saved_function_node, allocate_saved_f77_common_node,
1972 allocate_common_entry_node, tail_common_list, current_common,
1973 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1974 tmp_bf_ptr, add_common_block, add_common_entry,
1975 find_first_common_named, patch_common_entries,
1976 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1977 global_remote_debug, get_bf_for_fcn, saved_function_list,
1978 saved_function_list_end, clear_function_list, struct saved_fcn,
1979 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1980 SAVED_BF, SAVED_BF_PTR): Remove.
1981 * f-lang.h (tail_common_list, current_common,
1982 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1983 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1984 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1985 real_main_c_value): Remove.
1986 * f-valprint.c (there_is_a_visible_common_named): Remove.
1988 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1990 * breakpoint.c (update_global_location_list): Ignore previous
1991 duplicate status of a breakpoint when starting a new scan for
1992 duplicate breakpoints.
1994 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1995 PR breakpoints/14419
1996 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1997 support LLVM compiler.
1999 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2001 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2002 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2003 (bfin_store_return_value): Likewise.
2004 * cris-tdep.c (cris_store_return_value): Likewise.
2005 (cris_extract_return_value): Likewise.
2006 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2007 * hppa-tdep.c (hppa64_return_value): Likewise.
2008 * lm32-tdep.c (lm32_store_return_value): Likewise.
2009 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2010 * spu-tdep.c (spu_value_from_register): Likewise.
2011 * vax-tdep.c (vax_return_value): Likewise.
2013 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2015 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2016 parameter LEN to ssize_t.
2018 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2020 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2022 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2024 (alpha_store_return_value): Likewise.
2025 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2026 (amd64_push_arguments): Likewise.
2027 * ax-gdb.c (gen_trace_static_fields): Likewise.
2028 (gen_traced_pop): Likewise.
2029 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2030 * breakpoint.c (update_watchpoint): Likewise.
2031 * findcmd.c (parse_find_args): Use local variable for type
2033 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2034 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2035 (h8300_store_return_value): Likewise.
2036 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2037 Use i386_darwin_arg_type_alignment directly.
2038 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2039 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2040 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2041 (m68hc11_extract_return_value): Likewise.
2042 * mep-tdep.c (mep_push_dummy_call): Likewise.
2043 * printcmd.c (float_type_from_length): Likewise.
2044 * s390-tdep.c (s390_value_from_register): Likewise.
2045 * stack.c (read_frame_arg): Likewise.
2046 * tracepoint.c (encode_actions_1): Likewise.
2047 * valops.c (value_fetch_lazy): Use local variable for type
2048 instead of length. Use TYPE_LENGTH directly.
2049 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2051 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2053 * symtab.c (skip_prologue_sal): Fix typo in comment.
2055 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2057 * linespec.c (create_sals_line_offset): Fix typo in comment.
2059 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2061 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2062 use plongest to print the array size.
2064 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2066 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2067 * p-valprint.c (pascal_type_print_base): Likewise.
2069 2012-09-22 Yao Qi <yao@codesourcery.com>
2071 * remote.c (remote_get_trace_status): Remove setting default
2072 values of fields of 'ts'.
2074 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2076 Fix internal error on canonicalization of clang types.
2077 * cp-name-parser.y (operator): New comment at make_operator call for
2078 new, delete, new[] and delete[].
2079 (exp): Use "sizeof ". Add new comment at make_operator call.
2081 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2083 Fix disassemble without parameters in tailcall frame.
2084 * cli/cli-cmds.c (disassemble_current_function): Use
2085 get_frame_address_in_block.
2087 2012-09-21 Tom Tromey <tromey@redhat.com>
2089 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2090 TYPE_CODE_UNION>: Unify, removing a goto.
2092 2012-09-21 Tom Tromey <tromey@redhat.com>
2094 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2096 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2098 * findvar.c (read_frame_register_value): Mark the result value as
2099 optimized out if any of the input registers have been optimized out.
2101 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2103 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2105 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2107 * eval.c (evaluate_subexp_standard): Eliminate single-use
2110 2012-09-21 Yao Qi <yao@codesourcery.com>
2112 * mi/mi-interp.c: Declare mi_record_changed.
2113 (mi_interpreter_init): Call observer_attach_record_changed.
2114 (mi_record_changed): New.
2115 * record.c (record_open): Call observer_notify_record_changed.
2116 (cmd_record_stop): Call observer_notify_record_changed.
2119 2012-09-20 Tom Tromey <tromey@redhat.com>
2122 * python/python.c (finalize_python): New function.
2123 (_initialize_python): Make a final cleanup.
2125 2012-09-19 Doug Evans <dje@google.com>
2127 * buildsym.h (param_symbols): Delete, unused.
2128 (context_stack): Delete member "params", unused.
2129 * buildsym.c (push_context): Update.
2130 * dwarf2read.c (read_func_scope): Update.
2132 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2134 * sh-tdep.c (sh_register_convert_to_virtual)
2135 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2136 all callers. Just do a memcpy if not the little-endian case.
2138 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2139 set_gdbarch_double_format and set_gdbarch_long_double_format.
2140 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2141 set_gdbarch_double_format.
2142 * sh-tdep.c (sh_gdbarch_init): Likewise.
2144 * NEWS: Document the removal of SH's 'regs' command.
2145 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2148 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2150 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2153 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2155 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2156 language when iterating over symbols.
2158 2012-09-18 Yao Qi <yao@codesourcery.com>
2160 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2161 (mi_interpreter_init): Call observer_attach_tsv_created and
2162 observer_attach_tsv_deleted.
2163 (mi_tsv_created, mi_tsv_deleted): New.
2164 * tracepoint.c (delete_trace_state_variable): Call
2165 observer_notify_tsv_deleted.
2166 (trace_variable_command): Call observer_notify_tsv_created.
2167 (delete_trace_variable_command): Call
2168 observer_notify_tsv_deleted.
2169 (create_tsv_from_upload): Call observer_notify_tsv_created.
2172 2012-09-18 Yao Qi <yao@codesourcery.com>
2174 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2175 if traceframe changed.
2176 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2178 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2179 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2180 'traceframe_changed'.
2181 (mi_traceframe_changed): New.
2182 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2184 * NEWS: Mention the new MI notification.
2186 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2188 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2190 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2192 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2193 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2194 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2195 Extend code also for PaX support. Convert all gdb_assert to warning
2198 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2200 Implement auto-load user conveniences suggested by Doug Evans.
2201 * auto-load.c: Include top.h.
2202 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2203 (_initialize_auto_load): New variable scripts_directory_help. Mention
2204 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2205 scripts-directory. Document in online help one can use also files for
2206 set auto-load safe-path.
2207 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2208 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2210 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2212 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2215 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2217 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2218 ELTLEN and use TYPE_LENGTH directly.
2219 (m2_val_print): Likewise.
2220 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2221 variable LEN and use TYPE_LENGTH directly.
2222 (m68k_svr4_store_return_value): Likewise.
2223 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2224 ARGLEN and use TYPE_LENGTH directly.
2225 (mips_o64_push_dummy_call): Likewise.
2226 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2227 variable LENGTH and use TYPE_LENGTH directly.
2228 (s390_function_arg_float): Likewise.
2229 (s390_function_arg_integer): Likewise.
2230 (s390_push_dummy_call): Likewise.
2231 (s390_return_value_convention): Likewise.
2232 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2233 TYPE_LENGTH directly.
2235 2012-09-17 Yao Qi <yao@codesourcery.com>
2237 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2238 Update comment to add_setshow_integer_cmd.
2239 * cli/cli-setshow.c (do_set_command): Handle case
2240 'var_zuinteger_unlimited'.
2241 (do_show_command): Likewise.
2242 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2243 for command 'remotetimeout'.
2244 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2246 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
2247 for command 'set listsize'.
2249 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2251 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2254 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2257 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2258 (frame_pop): Drop also TAILCALL_FRAME frames.
2259 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2261 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2262 Pedro Alves <palves@redhat.com>
2265 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2266 function start if we are already at function start. Both for
2267 reverse-next and for reverse-step into function without line number
2270 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2272 Code cleanup - rename 'inline' depth to 'artificial' depth.
2273 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2274 frame_id_artificial_p, extend the comment.
2275 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2276 * frame.c (fprint_frame_id): Rename at a user, change debug output
2277 text to "artificial=".
2278 (skip_inlined_frames): Rename to ...
2279 (skip_artificial_frames): ... here. Extend the comment.
2280 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2281 (frame_id_inlined_p): Rename to ...
2282 (frame_id_artificial_p): ... here. Rename at a user.
2283 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2284 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2286 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2288 (frame_id_inlined_p): Rename to ...
2289 (frame_id_artificial_p): ... here.
2290 * inline-frame.c (inline_frame_this_id): Rename at a user.
2292 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2294 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2295 vector variables using vector_size syntax rather than array
2298 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2300 * valarith.c (value_concat): Replace unsafe ALLOCA with
2303 2012-09-14 Pedro Alves <palves@redhat.com>
2305 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2307 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2309 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2310 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2311 data-directory as appropriate.
2313 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2315 * printcmd.c (ui_printf): Eliminate single-use variable
2318 2012-09-14 Yao Qi <yao@codesourcery.com>
2319 Pedro Alves <palves@redhat.com>
2321 * valops.c (value_assign): Move observer_notify_target_changed
2322 below to replace reinit_frame_cache.
2324 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2326 Refactor Python "gdb" module into a proper Python package, by
2327 introducing a new "_gdb" module for code implemented in C, and
2328 using reload/__import__ instead of exec.
2329 * python/lib/gdb/__init__.py: Import * from _gdb.
2330 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2331 prompt_hook, sys.argv): Moved from finish_python_initialization.
2332 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2333 (packages, auto_load_packages): New list and function replacing
2334 module_dict and auto-loading code, using __file__ instead of
2335 gdb.PYTHONDIR and reload/__import__ instead of exec.
2336 (GdbSetPythonDirectory): Replacing function of the same name
2337 from finish_python_initialization, using reload/__import__ instead
2338 of exec, as well as call auto_load_packages.
2339 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2340 gdb_python_module and not gdb_module.
2341 * python/python-internal.h (gdb_python_module): Declare.
2342 * python/python.c (gdb_python_module): New global.
2343 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2344 (_initialize_python): Rename gdb module to _gdb.
2345 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2346 (finish_python_initialization): Move Python code to
2347 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2350 2012-09-13 Pedro Alves <palves@redhat.com>
2352 * Makefile.in (COMMON_OBS): Add registry.o.
2353 * registry.c: New file.
2354 * registry.h (struct registry_container): Declare.
2355 (registry_data_callback): New typedef.
2356 (struct registry_data, struct registry_data_registration, struct
2357 registry_data_registry): New type.
2358 (register_data_with_cleanup, registry_alloc_data)
2359 (registry_callback_adaptor, registry_clear_data)
2360 (registry_container_free_data, registry_set_data, registry_data):
2362 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2363 the new common structures and functions.
2364 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2367 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2369 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2370 there is an error inserting hardware breakpoints and use the
2371 error message from the target.
2373 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2374 Catch this exception and print the error message contained within. Do not
2375 print the default hardware error breakpoint message in this case.
2377 2012-09-12 Doug Evans <dje@google.com>
2379 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2382 2012-09-11 Doug Evans <dje@google.com>
2384 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2385 .gdb_index symbol attributes if there are none.
2387 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2389 * symtab.h (struct minimal_symbol) [has_size]: New field.
2390 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2391 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2392 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2393 minimal symbols if the symbol's size is actually known.
2394 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2395 of msymbol's size field. Add comment.
2396 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2397 SET_MSYMBOL_SIZE to set the minimal symbol size.
2399 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2401 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2402 minimal_symbol struct object, rather than setting some of its
2405 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2407 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2408 passed_a_ptr flag when displaying typedef types.
2410 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2412 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2413 the optimized_out flag is preserved.
2415 2012-09-10 Anthony Green <green@moxielogic.com>
2417 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2418 prologue changes in GCC.
2420 2012-09-10 Keith Seitz <keiths@redhat.com>
2423 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2424 (BOOL_CONVERSION_BADNESS): ... this.
2425 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2426 (rank_one_type): Allow all boolean conversions
2427 permitted by the standard.
2429 2012-09-06 Tom Tromey <tromey@redhat.com>
2431 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2432 Don't decref py_objfile.
2434 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2436 Do not enable -lmcheck by default when Python is enabled with
2438 * configure.ac: (python_has_threads) New variable, by testing
2439 if WITH_THREAD is defined in Python.h.
2440 Move --enable-lmcheck after --with-python.
2441 Do not enable -lmcheck by default if python_has_threads=yes.
2442 Warn if --enable-lmcheck and python_has_threads=yes.
2443 * configure: Regenerate.
2445 2012-08-31 Yao Qi <yao@codesourcery.com>
2447 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2448 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2449 Update some commands.
2450 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2451 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2454 2012-08-31 Yao Qi <yao@codesourcery.com>
2456 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2458 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2460 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2462 2012-08-29 Doug Evans <dje@google.com>
2464 * main.c (print_gdb_help): Remove reference to
2465 --use-deprecated-index-sections.
2467 2012-08-28 Yao Qi <yao@codesourcery.com>
2469 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2470 (init_cmds): Call add_setshow_uinteger_cmd for command
2471 'max-user-call-depth'.
2472 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2473 declaration of 'max_user_call_depth'.
2474 * frame.c (backtrace_limit): Add 'unsigned'.
2475 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2477 * remote.c (remoteaddresssize): Add 'unsigned'.
2478 (remote_address_masked): Change local var 'address_size' to
2480 (_initialize_remote): Call add_setshow_uinteger_cmd for
2481 'remoteaddresssize'.
2482 * top.c (history_size): Add 'unsigned'.
2483 (show_commands): Change local variables to 'unsigned'.
2484 (set_history_size_command): Don't check history_size is negative.
2485 Adjust the condition to call unstifle_history and set history_size
2488 2012-08-28 Pedro Alves <palves@redhat.com>
2492 * infcmd.c (default_print_one_register_info): New, factored out
2493 from default_print_registers_info.
2494 (default_print_registers_info): Use it. Mark value unavailable if
2496 (registers_info): Print user registers with
2497 default_print_one_register_info.
2499 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2502 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2503 is not NULL before referencing it.
2505 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2507 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2508 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2511 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2512 Jan Kratochvil <jan.kratochvil@redhat.com>
2514 * auto-load.c (auto_load_objfile_script): Rename to ...
2515 (auto_load_objfile_script_1): ... here, change variable realname to
2516 parameter realname, document it, add return value, add variable retval.
2517 (auto_load_objfile_script): New function.
2519 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2521 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2522 followed by a whitespace.
2524 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2527 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2528 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2529 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2532 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2534 * memattr.c (create_mem_region): Fix memory region overlapping
2537 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2539 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2540 with xmalloc/cleanup.
2541 * mt-tdep.c (mt_push_dummy_call): Likewise.
2542 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2543 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2545 2012-08-24 Yao Qi <yao@codesourcery.com>
2547 * jv-exp.y (push_expression_name): Add "." at the end of error
2550 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2552 Document how to return from "python-interactive" to GDB.
2553 * python/python.c (_initialize_python): Update documentation.
2555 2012-08-23 Pedro Alves <palves@redhat.com>
2557 * infrun.c (_initialize_infrun) <handle command help text>:
2558 Mention that multiple signals are supported.
2560 2012-08-23 Pedro Alves <palves@redhat.com>
2562 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2565 2012-08-23 Yao Qi <yao@codesourcery.com>
2567 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2568 (tfind_1): Don't call registers_changed, set_traceframe_num,
2569 and clear_traceframe_info.
2570 Call set_current_traceframe.
2571 (set_current_traceframe): call set_traceframe_num.
2573 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2575 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2576 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2578 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2580 Enable readline in Python in a GDB-specific way and block the
2581 standard Python readline module to prevent conflicts with GDB.
2582 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2583 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2584 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2585 * python/py-gdb-readline.c: New file.
2586 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2588 * python/python.c (_initialize_python): Call
2589 gdbpy_initialize_gdb_readline.
2591 2012-08-22 Keith Seitz <keiths@redhat.com>
2593 * defs.h: Include build-gnulib/config.h
2595 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2597 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2600 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2602 Add a new "python-interactive" command that starts a standard
2603 Python interactive prompt with "pi" as alias, and add "py" as
2604 an alias to "python".
2605 * NEWS: Mention the new commands.
2606 * python/python.c (eval_python_command): New function.
2607 (python_interactive_command): For "python-interactive" with
2608 arguments, call eval_python_command. For "python-interactive"
2609 without arguments, call PyRun_InteractiveLoop.
2610 (_initialize_python): Add "python-interactive" command with
2611 "pi" as alias, and add "py" as an alias to "python".
2613 2012-08-22 Tom Tromey <tromey@redhat.com>
2615 * defs.h (quit_flag): Don't declare.
2616 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2617 (QUIT): Use new functions.
2618 * event-top.c (command_handler): Use clear_quit_flag.
2619 (handle_sigint): Use set_quit_flag.
2620 (async_request_quit): Use check_quit_flag. Don't check
2622 * exceptions.c (throw_exception): Use clear_quit_flag.
2623 * main.c (captured_main): Use clear_quit_flag.
2624 * python/python.c (clear_quit_flag, set_quit_flag)
2625 (check_quit_flag): New functions.
2626 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2628 * remote.c (remote_wait_as): Use check_quit_flag,
2630 (remote_start_remote): Call QUIT.
2631 * symfile.c (load_progress): Use check_quit_flag.
2632 * top.c (command_loop): Use clear_quit_flag.
2633 (command_line_input): Call QUIT.
2634 * utils.c (quit_flag): Conditionally define.
2635 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2637 (prompt_for_continue): Call QUIT. Use quit, not
2639 * remote-mips.c (mips_expect_timeout): Call QUIT.
2640 * monitor.c (monitor_expect): Call QUIT.
2642 2012-08-22 Tom Tromey <tromey@redhat.com>
2644 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2645 (async_init_signals): Update.
2646 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2647 (SIGWINCH_HANDLER_BODY): Remove.
2649 2012-08-22 Tom Tromey <tromey@redhat.com>
2651 * jit.c (jit_object_close_impl): Don't malloc the objfile
2653 * objfiles.c (allocate_objfile): Don't malloc the objfile
2655 (free_objfile): Don't free the objfile name.
2656 * objfiles.h (struct objfile) <name>: Update comment.
2657 * symfile.c (reread_symbols): Fix reference counting. Don't
2658 malloc objfile name.
2660 2012-08-22 Tom Tromey <tromey@redhat.com>
2662 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2663 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2664 (symfile_bfd_open): Likewise.
2665 (generic_load): Likewise.
2666 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2667 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2669 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2671 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2672 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2673 (pmon_load_fast): Likewise.
2674 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2675 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2676 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2677 (macho_check_dsym): Likewise.
2678 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2679 (m32r_upload_command): Likewise.
2680 * gdb_bfd.h (gdb_bfd_cache): Declare.
2681 * gdb_bfd.c (struct gdb_bfd_data): New.
2682 (gdb_bfd_cache): New global.
2683 (struct gdb_bfd_cache_search): New.
2684 (hash_bfd): New function.
2686 (gdb_bfd_open): Likewise.
2687 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2688 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2690 * exec.c (exec_file_attach): Use gdb_bfd_open.
2691 * dsrec.c (load_srec): Use gdb_bfd_open.
2693 2012-08-22 Tom Tromey <tromey@redhat.com>
2695 * dwarf2read.c (macro_start_file): Update.
2696 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2697 (free_objfile_per_bfd_storage): Destroy macro_cache.
2698 (allocate_objfile, free_objfile): Update.
2699 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2701 (struct objfile) <macro_cache>: Remove.
2702 * symfile.c (reread_symbols): Update.
2703 * symmisc.c (print_symbol_bcache_statistics): Update.
2704 (print_objfile_statistics): Update.
2706 2012-08-22 Tom Tromey <tromey@redhat.com>
2708 * elfread.c (elf_symtab_read): Update.
2709 * objfiles.c (objfiles_bfd_data): New global.
2710 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2711 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2712 (allocate_objfile, free_objfile): Update.
2713 (_initialize_objfiles): Initialize objfiles_bfd_data.
2714 * objfiles.h (struct objfile_per_bfd_storage): New.
2715 (struct objfile) <per_bfd>: New field.
2716 <filename_cache>: Remove.
2717 (set_objfile_per_bfd): Declare.
2718 * symfile.c (reread_symbols): Update. Call
2719 set_objfile_per_bfd.
2720 (allocate_symtab): Update.
2721 * symmisc.c (print_symbol_bcache_statistics): Update.
2722 (print_objfile_statistics): Print the size of the BFD obstack.
2724 2012-08-22 Tom Tromey <tromey@redhat.com>
2726 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2727 * gdb_bfd.c: Use DEFINE_REGISTRY.
2728 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2729 (gdb_bfd_ref): Call bfd_alloc_data.
2730 (gdb_bfd_unref): Call bfd_free_data.
2732 2012-08-22 Tom Tromey <tromey@redhat.com>
2734 * registry.h (struct registry_fields): New.
2735 (REGISTRY_FIELDS): Redefine.
2736 (REGISTRY_ACCESS_FIELD): New macro.
2737 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2740 2012-08-22 Tom Tromey <tromey@redhat.com>
2742 * auto-load.c (_initialize_auto_load): Update.
2743 * solib-svr4.c (_initialize_svr4_solib): Update
2744 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2745 * solib-darwin.c (_initialize_darwin_solib): Update.
2746 * registry.h: New file.
2747 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2748 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2749 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2750 (register_program_space_data_with_cleanup)
2751 (register_program_space_data, program_space_alloc_data)
2752 (clear_program_space_data, set_program_space_data)
2753 (program_space_data): Don't declare.
2754 * progspace.c: Use DEFINE_REGISTRY.
2755 (struct program_space_data, struct
2756 program_space_data_registration, struct
2757 program_space_data_registry, program_space_data_registry)
2758 (register_program_space_data_with_cleanup)
2759 (register_program_space_data, program_space_alloc_data)
2760 (program_space_free_data, clear_program_space_data)
2761 (set_program_space_data, program_space_data): Remove.
2762 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2763 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2764 (register_objfile_data_with_cleanup, register_objfile_data)
2765 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2767 * objfiles.c: Use DEFINE_REGISTRY.
2768 (struct objfile_data, struct objfile_data_registration, struct
2769 objfile_data_registry, objfile_data_registry)
2770 (register_objfile_data_with_cleanup, register_objfile_data)
2771 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2772 (set_objfile_data, objfile_data): Remove.
2773 (_initialize_objfiles): Update.
2774 * jit.c (_initialize_jit): Update.
2775 * inflow.c (_initialize_inflow): Update.
2776 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2777 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2778 (register_inferior_data_with_cleanup, register_inferior_data)
2779 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2781 * inferior.c: Use DEFINE_REGISTRY.
2782 (struct inferior_data, struct inferior_data_registration, struct
2783 inferior_data_registry, inferior_data_registry)
2784 (register_inferior_data_with_cleanup, register_inferior_data)
2785 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2786 (set_inferior_data, inferior_data): Remove.
2787 * auxv.c (_initialize_auxv): Update.
2788 * ada-lang.c (_initialize_ada_language): Update.
2789 * breakpoint.c (_initialize_breakpoint): Update.
2790 * i386-nat.c (i386_use_watchpoints): Update.
2792 2012-08-22 Tom Tromey <tromey@redhat.com>
2794 * exec.c (exec_close, exec_file_attach): Update.
2795 (add_to_section_table): Initialize 'key' field.
2796 (add_target_sections, remove_target_sections): Add 'key' argument.
2797 * exec.h (add_target_sections, remove_target_sections): Add
2799 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2800 (reload_shared_libraries_1): Update.
2801 * target.h (struct target_section) <key>: New field.
2803 2012-08-22 Tom Tromey <tromey@redhat.com>
2805 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2807 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2809 * symfile.c (allocate_symtab): Use host_address_to_string
2810 function instead of cast of pointer to long which is not
2811 compatible with x86_64-w64-mingw32 build.
2813 2012-08-19 Andrew Pinski <apinski@cavium.com>
2815 * mips-tdep.c (is_octeon): New function.
2816 (is_octeon_bbit_op): New function.
2817 (mips32_next_pc): Handle Octeon's bbit instructions.
2818 (mips32_instruction_has_delay_slot): Likewise.
2820 2012-08-19 Andrew Pinski <apinski@cavium.com>
2822 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2823 before the function.
2825 2012-08-19 Andrew Pinski <apinski@cavium.com>
2827 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2829 2012-08-19 Keith Seitz <keiths@redhat.com>
2832 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2833 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2835 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2837 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2838 The typo broke "make TAGS".
2840 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2844 2012-08-17 Keith Seitz <keiths@redhat.com>
2847 * gdbtypes.c (strict_type_checking): New variable.
2848 (show_strict_type_checking): New function.
2849 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2850 if strict type checking is disabled.
2851 (_initialize_gdbtypes): Add "check type" subcommand.
2852 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2854 2012-08-17 Keith Seitz <keiths@redhat.com>
2856 * language.h (type_mode): Remove.
2857 (type_check): Remove.
2858 (struct language_defn): Remove la_type_check.
2859 (STRICT_TYPE): Remove unused macro.
2860 (type_error): Remove.
2861 * language.c (set_type_range_case): Renamed to ...
2862 (set_range_case): ... this. Update all callers.
2863 Remove type_mode/type_check.
2864 (type_mode): Remove.
2865 (type_check): Remove.
2866 (show_type_command): Remove.
2867 (set_type_command): Remove.
2868 (language_info): Remove type checking output.
2869 (type_error): Remove unused function.
2870 (range_error): Update comment.
2871 (unknown_language_defn): Remove la_type_check.
2872 (auto_language_defn): Likewise.
2873 (local_language_defn): Likewise.
2874 (_initialize_language): Remove "check type" subcommand.
2875 * ada-lang.c (ada_language_defn): Remove la_type_check.
2876 * c-lang.c (c_language_defn): Likewise.
2877 (cplus_language_defn): Likewise.
2878 (asm_language_defn): Likewise.
2879 (minimal_language_defn): Likewise.
2880 * d-lang.c (d_language_defn): Likewise.
2881 * f-lang.c (f_language_defn): Likewise.
2882 * go-lang.c (go_language_defn): Likewise.
2883 * jv-lang.c (java_language_defn): Likewise.
2884 * m2-lang.c (m2_language_defn): Likewise.
2885 * objc-lang.c (objc_language_defn): Likewise.
2886 * opencl-lang.c (opencl_language_defn): Likewise.
2887 * p-lang.c (pascal_language_defn): Likewise.
2889 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2891 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2893 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2895 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2897 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2898 using the regache. Use ia64_hpux_get_register_from_save_state_t
2899 to access the bsp and bspstore registers if not.
2901 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2903 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2904 * breakpoint.c (detach_breakpoints): Change pid parameter into
2905 a ptid. Adjust code accordingly.
2906 * infrun.c (handle_inferior_event): Delete variable child_pid.
2907 Update call to detach_breakpoints to pass the child ptid for
2909 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2910 assert that inferior_ptid's lwp is zero.
2911 (linux_handle_extended_wait): Update call to detach_breakpoints.
2912 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2915 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2917 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2918 parent, only call detach_breakpoints if tts.tts_event ==
2921 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2923 * dwarf2-frame.c (dwarf2_frame_cache): Use
2924 get_frame_address_in_block instead of get_frame_pc as
2925 the bound for executing the frame's FDE.
2927 2012-08-16 Yao Qi <yao@codesourcery.com>
2929 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2930 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2931 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2932 (c_type_print_varspec_suffix): Likewise.
2933 * eval.c (evaluate_subexp_standard): Likewise.
2934 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2935 (f_type_print_varspec_suffix): Likewise.
2936 * gdbtypes.c (is_scalar_type): Likewise.
2937 (recursive_dump_type): Likewise.
2938 * infcall.c (value_arg_coerce): Likewise.
2939 * m2-valprint.c (m2_val_print): Likewise.
2940 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2941 (pascal_type_print_varspec_suffix): Likewise.
2942 (pascal_type_print_base): Likewise.
2943 * p-valprint.c (pascal_val_print): Likewise.
2944 (pascal_val_print): Likewise.
2945 * valops.c (value_slice): Likewise.
2946 * valprint.c (scalar_type_p): Likewise.
2947 * valarith.c (value_bitstring_subscript): Remove.
2948 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2949 Remove comment on TYPE_CODE_BITSTRING.
2951 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2952 TYPE_CODE_BITSTRING.
2954 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2957 2012-08-16 Yao Qi <yao@codesourcery.com>
2959 * tracepoint.c (trace_find_none_command): Remove.
2960 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2962 2012-08-16 Yao Qi <yao@codesourcery.com>
2964 * remote.c (handle_notification): Remove parameter 'length'.
2965 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2967 2012-08-15 Keith Seitz <keiths@redhat.com>
2969 * gdbtypes.c (opaque_type_resolution): Make static.
2970 Add missing comment.
2971 (overload_debug): Add missing comment.
2972 (show_opaque_type_resolution): Likewise.
2973 (show_overload_debug): Likewise.
2974 (print_bit_vector): Remove unnecessary forward declaration.
2975 (print_arg_types): Likewise.
2976 (dump_fn_fieldlists): Likewise.
2977 (print_cplus_stuff): Likewise.
2979 2012-08-15 Tom Tromey <tromey@redhat.com>
2981 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2982 (gdb_bfd_ref): Initialize new field.
2983 (gdb_bfd_unref): Unref the archive BFD.
2984 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2987 2012-08-15 Tom Tromey <tromey@redhat.com>
2990 * python/py-bpevent.c (create_breakpoint_event_object): Update
2992 * python/py-event.c (evpy_add_attribute): Update comment.
2993 * python/py-exitedevent.c (create_exited_event_object): Fix
2994 reference counting and error handling.
2995 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2996 Fix reference counting.
2997 * python/py-signalevent.c (create_signal_event_object): Fix
2998 reference counting and error handling.
2999 * python/py-stopevent.c (emit_stop_event): Fix reference
3001 * python/py-threadevent.c (get_event_thread): Return a
3003 * python/py-type.c (convert_field): Fix reference counting.
3005 2012-08-15 Tom Tromey <tromey@redhat.com>
3007 * dwarf2read.c (dwarf_decode_macro_bytes)
3008 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3011 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3013 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3014 stepi, nexti, finish, next, step, jump, and continue commands.
3015 * infrun.c (_initialize_infrun): Update help text for the handle
3018 2012-08-14 Doug Evans <dje@google.com>
3020 * gdbtypes.c (struct extra): Delete, unused.
3022 * gdbtypes.c: Whitespace cleanup.
3023 (address_space_name_to_int): Remove "extern" from definition.
3024 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3026 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3027 TYPE_POINTER_TYPE (type).
3029 2012-08-14 Gary Benson <gbenson@redhat.com>
3031 * solib-svr4.c (svr4_free_library_list): Use free_so.
3033 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3035 * .gitignore: Add go-exp.c.
3037 2012-08-13 Doug Evans <dje@google.com>
3039 * value.c (show_convenience): Tweak comment.
3040 (_initialize_values): Mention convenience functions in the help text
3041 for "show convenience".
3043 2012-08-13 Yao Qi <yao@codesourcery.com>
3045 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3046 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3048 * eval.c (evaluate_subexp_standard): Likewise.
3049 * expprint.c (print_subexp_standard): Likewise.
3050 (dump_subexp_body_standard): Likewise.
3051 * parse.c (operator_length_standard): Likewise.
3053 2012-08-13 Yao Qi <yao@codesourcery.com>
3055 * std-operator.def: Remove OP_BITSTRING.
3056 * breakpoint.c (watchpoint_exp_is_const): Update.
3057 * eval.c (evaluate_subexp_standard): Remove handling to
3059 * expprint.c (print_subexp_standard): Likewise.
3060 (dump_subexp_body_standard): Likewise.
3061 * parse.c (operator_length_standard): Likewise.
3062 * valops.c (value_bitstring): Remove.
3063 * value.h: Remove the declaration of 'value_bitstring'.
3065 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3067 * linespec.c (find_methods): Remove unused variables `i1' and
3069 (decode_line_full): Likewise for `arg_start'.
3071 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3073 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3074 (zlib_decompress_section): Likewise for `section_data'.
3075 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3077 2012-08-10 Doug Evans <dje@google.com>
3079 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3080 * NEWS: Document them.
3081 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3083 * python/py-type.c (typy_array_1): New function.
3084 (typy_array): Call it.
3085 (typy_vector): New function.
3086 (type_object_methods): Add "vector".
3087 * python/lib/gdb/function/__init__.py: New file.
3088 * python/lib/gdb/function/strfns.py: New file.
3090 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3092 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3093 for TYPE_FIELD_BITPOS.
3094 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3096 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3099 * common/vec.h (VEC_merge): Define.
3100 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3101 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3102 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3103 * completer.c: Include gdb_signals.h.
3104 (signal_completer): Define.
3105 * completer.h (signal_completer): Add prototype.
3106 * infcmd.c (_initialize_infcmd): Assign the command
3107 completer for "signal" to handle_completer.
3108 * infrun.c: Include completer.h.
3109 (handle_completer): Define.
3110 (_initialize_infrun): Declare a new local variable c. Store the
3111 result of add_com("handle") to it. Assign the command
3112 completer for "handle" to handle_completer.
3114 2012-08-09 Yao Qi <yao@codesourcery.com>
3116 * cli/cli-decode.c (set_cmd_prefix): New.
3117 (lookup_cmd_for_prefixlist): New.
3118 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3119 of each cmd_list_element in *prefixlist.
3120 (add_setshow_cmd_full): set_cmd_prefix.
3121 (add_alias_cmd): Likewise.
3122 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3123 Declare 'auto_boolean_enums'.
3124 * cli/cli-setshow.c: Include "observer.h".
3125 (notify_command_param_changed_p): New.
3126 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3128 (do_setshow_command): Split it to ...
3129 (do_set_command, do_show_command): ... them. New.
3130 (do_set_command): Call observer_notify_command_param_changed if
3131 notify_command_param_changed_p returns true.
3132 (cmd_show_list): Caller update.
3133 * auto-load.c (set_auto_load_cmd): Likewise.
3134 * remote.c (show_remote_cmd): Likewise.
3135 * cli/cli-setshow.h: Update declarations.
3136 * top.c (execute_command): Call do_set_command and do_show_command.
3138 * NEWS: Mention new MI notification.
3139 * mi/mi-interp.c: Declare mi_command_param_changed.
3140 (mi_interpreter_init): Attach mi_command_param_changed to
3141 observer command_param_changed.
3142 (mi_command_param_changed): New.
3143 Remove mi_suppress_breakpoint_notifications.
3144 Define global variable mi_suppress_notification.
3145 (mi_breakpoint_created): Update.
3146 (mi_breakpoint_deleted): Likewise.
3147 (mi_breakpoint_modified): Likewise.
3148 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3149 'gdb-set' and set mi_suppress_notification.
3150 * mi/mi-main.h: (mi_suppress_notification): New struct.
3152 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3153 Jan Kratochvil <jan.kratochvil@redhat.com>
3155 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3157 2012-08-09 Yao Qi <yao@codesourcery.com>
3159 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3160 (skiplist): Move it to skip.c.
3161 (init_cmd_lists): Remove code setting enablebreaklist and
3163 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3164 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3166 * gdbcmd.h: Likewise.
3167 * skip.c (_initialize_step_skip): Move 'skiplist' from
3170 2012-08-09 Yao Qi <yao@codesourcery.com>
3172 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3173 * gnu-nat.c, symfile.c: Likewise.
3175 2012-08-08 Aaron Gamble <agamble@google.com>
3177 * utils.c (prompt_for_continue_wait_time): New static global.
3178 (make_command_stats_cleanup): Initialize it.
3179 (report_command_stats): Subtract time waiting for user.
3180 (prompt_for_continue): Track time waiting for user.
3181 (defaulted_query): Track time waiting for user.
3183 2012-08-08 Doug Evans <dje@google.com>
3185 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3187 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3188 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3189 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3190 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3191 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3192 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3194 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3195 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3196 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3197 (dump_prefix_expression): Handle OP_TYPE.
3199 2012-08-08 Keith Seitz <keiths@redhat.com>
3201 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3204 2012-08-08 Doug Evans <dje@google.com>
3206 * linux-thread-db.c: #include "gdb_vecs.h".
3207 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3209 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3210 (thread_db_load_search): Use a vector to iterate over path elements.
3211 Handle text appearing after "$pdir".
3213 * gdb_string.h: Moved to ...
3214 * common/gdb_string.h: ... here.
3215 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3216 gdb_string.h and gdb_assert.h.
3218 2012-08-08 Yao Qi <yao@codesourcery.com>
3220 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3221 (tic6x_value_to_register): Likewise.
3222 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3223 and set_gdbarch_value_to_register.
3225 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3226 Jean-Marc Saffroy <saffroy@gmail.com>
3229 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3230 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3231 * gcore.c (gcore_create_callback): New function comment. Add modified
3232 parameter. Only write modified regions. Set SEC_READONLY exactly
3233 according to MODIFIED.
3234 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3235 the passed modified value to FUNC.
3236 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3237 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3238 first. New variables modified and has_anonymous. Parse the lines of
3239 smaps file. Add the passed MODIFIED value to FUNC.
3240 * procfs.c (find_memory_regions_callback): Add the passed modified
3243 2012-08-06 Tom Tromey <tromey@redhat.com>
3245 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3246 (dwarf2_frame_cache): Use it.
3247 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3248 cache initialization constraint.
3250 2012-08-06 Tom Tromey <tromey@redhat.com>
3253 * varobj.c (update_dynamic_varobj_children): Don't call
3256 2012-08-06 Tom Tromey <tromey@redhat.com>
3259 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3261 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3263 * NEWS: New entry for 'cd' default parameters.
3264 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3266 2012-08-03 Tom Tromey <tromey@redhat.com>
3268 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3271 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3273 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3274 to attempting lseek/write.
3275 (inf_child_fileio_pread): Likewise for pread.
3277 2012-08-02 Yao Qi <yao@codesourcery.com>
3279 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3280 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3281 add_setshow_zinteger_cmd.
3282 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3283 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3284 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3285 instead of add_setshow_zinteger_cmd.
3286 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3287 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3288 instead of add_setshow_zinteger_cmd.
3289 * frame.c (frame_debug): Add 'unsigned'.
3290 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3291 add_setshow_zinteger_cmd.
3292 * frame.h: Update the declaration of 'frame_debug'.
3293 * gdbtypes.c (overload_debug): Add 'unsigned'.
3294 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3295 add_setshow_zinteger_cmd.
3296 * inferior.h: Update declaration of 'debug_infrun'.
3297 * infrun.c (debug_infrun): Add 'unsigned'.
3298 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3299 add_setshow_zinteger_cmd.
3300 * jit.c (jit_debug): Add 'unsigned'.
3301 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3302 add_setshow_zinteger_cmd.
3303 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3304 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3305 instead of add_setshow_zinteger_cmd.
3306 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3307 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3308 add_setshow_zinteger_cmd.
3309 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3310 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3311 instead of add_setshow_zinteger_cmd.
3312 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3313 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3314 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3315 intead of add_setshow_zinteger_cmd.
3316 * mips-tdep.c (mips_debug): Add 'unsigned'.
3317 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3318 instead of add_setshow_zinteger_cmd.
3319 * monitor.c (monitor_debug): Add 'unsigned'.
3320 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3321 add_setshow_zinteger_cmd.
3322 * observer.c (observer_debug): Add 'unsigned'.
3323 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3324 add_setshow_zinteger_cmd.
3325 * parse.c (expressiondebug): Add 'unsigned'.
3326 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3327 add_setshow_zinteger_cmd.
3328 * record.c (record_debug): Add 'unsigned'.
3329 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3330 add_setshow_zinteger_cmd.
3331 * record.h: Update the declaration of 'record_debug'.
3332 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3333 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3334 add_setshow_zinteger_cmd.
3335 * serial.c (global_serial_debug_p): Add 'unsigned'.
3336 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3337 add_setshow_zinteger_cmd.
3338 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3339 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3340 add_setshow_zinteger_cmd.
3341 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3342 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3343 add_setshow_zinteger_cmd.
3344 * target.c (targetdebug): Add 'unsigned'.
3345 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3346 add_setshow_zinteger_cmd.
3347 * valops.c (overload_debug): Add 'unsigned'.
3348 * varobj.c (varobjdebug): Add 'unsigned'.
3349 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3350 add_setshow_zinteger_cmd.
3351 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3352 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3353 instead of add_setshow_zinteger_cmd.
3355 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3356 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3357 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3358 instead of add_setshow_zinteger_cmd.
3359 * gdbarch.c, gdbarch.h: Re-generated.
3361 2012-08-02 Yao Qi <yao@codesourcery.com>
3363 * nto-tdep.c: Don't include cli/cli-decode.h and
3365 (_initialize_nto_tdep): Remove.
3366 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3368 Remove macro nto_internal_debugging.
3370 2012-08-01 Richard Henderson <rth@redhat.com>
3372 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3373 (mep-*-*) [gdb_target_obs]: Likewise.
3375 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3377 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3378 linux_get_siginfo_type.
3380 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3382 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3384 (call_function_by_hand) <ON_STACK>: Call write_memory with
3385 gdbarch_breakpoint_from_pc, if possible.
3386 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3389 2012-07-31 Yao Qi <yao@codesourcery.com>
3391 * tracepoint.c: Add 'static' for some variables.
3393 2012-07-31 Yao Qi <yao@codesourcery.com>
3395 * go32-nat.c: Declare _initialize_go32_nat.
3396 * ser-go32.c: Declare _initialize_ser_dos.
3397 * top.c (do_chdir_cleanup): Add 'static'.
3399 2012-07-30 Keith Seitz <keiths@redhat.com>
3401 * linespec.c (linespec_lex_number): A number followed
3402 by quotes is a valid number, too.
3404 2012-07-30 Tom Tromey <tromey@redhat.com>
3406 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3408 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3410 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3411 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3413 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3415 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3416 invalid or reevaluated to prevent prevent references to possibly
3417 delete'd type objects being left in the varobj.
3419 2012-07-27 Tom Tromey <tromey@redhat.com>
3420 Jan Kratochvil <jan.kratochvil@redhat.com>
3422 * copying.awk: Print buffer-read-only and vi ro markers.
3423 * copying.c: Rebuild.
3424 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3425 * gdbarch.c, gdbarch.h: Rebuild.
3426 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3427 buffer-read-only and vi ro markers.
3428 * features/arm-with-iwmmxt.c: Rebuild.
3429 * features/arm-with-m-fpa-layout.c: Rebuild.
3430 * features/arm-with-m-vfp-d16.c: Rebuild.
3431 * features/arm-with-m.c: Rebuild.
3432 * features/arm-with-neon.c: Rebuild.
3433 * features/arm-with-vfpv2.c: Rebuild.
3434 * features/arm-with-vfpv3.c: Rebuild.
3435 * features/i386/amd64-avx-linux.c: Rebuild.
3436 * features/i386/amd64-avx.c: Rebuild.
3437 * features/i386/amd64-linux.c: Rebuild.
3438 * features/i386/amd64.c: Rebuild.
3439 * features/i386/i386-avx-linux.c: Rebuild.
3440 * features/i386/i386-avx.c: Rebuild.
3441 * features/i386/i386-linux.c: Rebuild.
3442 * features/i386/i386-mmx-linux.c: Rebuild.
3443 * features/i386/i386-mmx.c: Rebuild.
3444 * features/i386/i386.c: Rebuild.
3445 * features/i386/x32-avx-linux.c: Rebuild.
3446 * features/i386/x32-avx.c: Rebuild.
3447 * features/i386/x32-linux.c: Rebuild.
3448 * features/i386/x32.c: Rebuild.
3449 * features/mips-dsp-linux.c: Rebuild.
3450 * features/mips-linux.c: Rebuild.
3451 * features/mips64-dsp-linux.c: Rebuild.
3452 * features/mips64-linux.c: Rebuild.
3453 * features/rs6000/powerpc-32.c: Rebuild.
3454 * features/rs6000/powerpc-32l.c: Rebuild.
3455 * features/rs6000/powerpc-403.c: Rebuild.
3456 * features/rs6000/powerpc-403gc.c: Rebuild.
3457 * features/rs6000/powerpc-405.c: Rebuild.
3458 * features/rs6000/powerpc-505.c: Rebuild.
3459 * features/rs6000/powerpc-601.c: Rebuild.
3460 * features/rs6000/powerpc-602.c: Rebuild.
3461 * features/rs6000/powerpc-603.c: Rebuild.
3462 * features/rs6000/powerpc-604.c: Rebuild.
3463 * features/rs6000/powerpc-64.c: Rebuild.
3464 * features/rs6000/powerpc-64l.c: Rebuild.
3465 * features/rs6000/powerpc-7400.c: Rebuild.
3466 * features/rs6000/powerpc-750.c: Rebuild.
3467 * features/rs6000/powerpc-860.c: Rebuild.
3468 * features/rs6000/powerpc-altivec32.c: Rebuild.
3469 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3470 * features/rs6000/powerpc-altivec64.c: Rebuild.
3471 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3472 * features/rs6000/powerpc-cell32l.c: Rebuild.
3473 * features/rs6000/powerpc-cell64l.c: Rebuild.
3474 * features/rs6000/powerpc-e500.c: Rebuild.
3475 * features/rs6000/powerpc-e500l.c: Rebuild.
3476 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3477 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3478 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3479 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3480 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3481 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3482 * features/rs6000/powerpc-vsx32.c: Rebuild.
3483 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3484 * features/rs6000/powerpc-vsx64.c: Rebuild.
3485 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3486 * features/rs6000/rs6000.c: Rebuild.
3487 * features/s390-linux32.c: Rebuild.
3488 * features/s390-linux32v1.c: Rebuild.
3489 * features/s390-linux32v2.c: Rebuild.
3490 * features/s390-linux64.c: Rebuild.
3491 * features/s390-linux64v1.c: Rebuild.
3492 * features/s390-linux64v2.c: Rebuild.
3493 * features/s390x-linux64.c: Rebuild.
3494 * features/s390x-linux64v1.c: Rebuild.
3495 * features/s390x-linux64v2.c: Rebuild.
3496 * features/tic6x-c62x-linux.c: Rebuild.
3497 * features/tic6x-c62x.c: Rebuild.
3498 * features/tic6x-c64x-linux.c: Rebuild.
3499 * features/tic6x-c64x.c: Rebuild.
3500 * features/tic6x-c64xp-linux.c: Rebuild.
3501 * features/tic6x-c64xp.c: Rebuild.
3503 2012-07-27 Tom Tromey <tromey@redhat.com>
3505 * c-exp.y (classify_name): Avoid assignment in condition.
3507 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3509 * amd64-windows-tdep.c: Include "frame.h".
3510 (amd64_windows_skip_trampoline_code): New function.
3511 (amd64_windows_init_abi): Add trampoline registration.
3513 2012-07-27 Yao Qi <yao@codesourcery.com>
3515 * tracepoint.c (cur_traceframe_number): Remove.
3516 (set_tfile_traceframe): Remove.
3517 (tfile_trace_find, tfile_fetch_registers): Update callers.
3518 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3519 (tfile_open, tfile_trace_find): Likewise.
3521 2012-07-27 Yao Qi <yao@codesourcery.com>
3523 * thread.c (switch_to_thread): Don't call registers_changed.
3525 2012-07-26 Tom Tromey <tromey@redhat.com>
3527 * Makefile.in (SFILES): Remove objc-exp.y.
3528 (YYFILES): Remove objc-exp.c.
3529 (YYOBJ): Remove objc-exp.o.
3530 (local-maintainer-clean): Don't mention objc-exp.c.
3531 * c-exp.y: Include objc-lang.h.
3532 (%union) <class>: New field.
3533 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3534 (exp): Clone subscript production for OBJC_LBRAC. Add various
3535 Objective C productions.
3536 (msglist, msgarglist, msgarg): New productions.
3537 (array_mod, func_mod, operator): Clone productions for
3539 (parse_string_or_char): Handle '@' strings.
3540 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3541 (classify_name): Check la_name_of_this. Recognize ObjC class
3543 * objc-exp.y: Remove.
3544 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3545 * objc-lang.h (objc_parse, objc_error): Don't declare.
3547 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3549 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3551 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3553 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3556 2012-07-26 Tom Tromey <tromey@redhat.com>
3558 * copying.c: Rebuild.
3559 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3562 2012-07-26 Tom Tromey <tromey@redhat.com>
3564 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3566 (print_objfile_statistics): Likewise.
3567 (maintenance_print_symbols): Likewise.
3568 (maintenance_print_msymbols): Likewise.
3569 (maintenance_print_objfiles): Likewise.
3570 * psymtab.c (print_partial_symbols): Call QUIT.
3571 (maintenance_print_psymbols): Likewise. Don't modify
3573 * copying.c (show_copying_command): Don't modify immediate_quit.
3574 (show_warranty_command): Likewise.
3575 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3577 2012-07-26 Keith Seitz <keiths@redhat.com>
3579 * linespec.c (linespec_lexer_lex_number): The input
3580 is also a valid number if the next character is a comma
3583 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3585 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3588 2012-07-26 Tristan Gingold <gingold@adacore.com>
3590 * machoread.c: Include gdb_bfd.h.
3592 2012-07-26 Tristan Gingold <gingold@adacore.com>
3594 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3597 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3599 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3601 (dwarf2_evaluate_loc_desc): Likewise.
3602 (dwarf2_loc_desc_needs_frame): Likewise.
3603 (locexpr_describe_location_1): Likewise.
3604 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3606 (struct dwarf2_loclist_baton): Likewise.
3607 * dwarf2read.c (struct dwarf_block): Likewise.
3608 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3609 (decode_locdesc): Expand SIZE and I to size_t.
3611 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3613 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3615 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3617 * doublest.c (convert_doublest_to_floatformat): If the exponent
3618 is too small, treat the value as zero. If the exponent is too
3619 large, treat the value as infinity.
3621 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3623 * configure.ac: Add --enable-lmcheck configure option.
3624 * configure: Regenerate.
3626 2012-07-25 Tom Tromey <tromey@redhat.com>
3628 * NEWS: Mention maint info bfds.
3629 * gdb_bfd.c (all_bfds): New global.
3630 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3631 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3634 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3636 * configure.tgt: Add v850*-*-rtems*.
3638 2012-07-25 Tom Tromey <tromey@redhat.com>
3640 * macrotab.c (macro_bcache_str): Remove cast.
3642 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3644 * linespec.c (linespec_lexer_lex_number): Update comments,
3645 change the return and add check to make sure the input is
3646 the decimal numbers.
3647 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3648 false, call linespec_lexer_lex_string.
3650 2012-07-24 Tom Tromey <tromey@redhat.com>
3652 * symfile.c (symbol_file_add): Don't open BFD twice.
3654 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3656 * breakpoint.c (create_breakpoint): Store condition for pending
3659 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3661 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3662 (m68k_return_value): Handle complex types like structures.
3663 (m68k_svr4_return_value): Likewise.
3665 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3667 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3668 parameters to bfd_get_section_name.
3670 2012-07-24 Yao Qi <yao@codesourcery.com>
3672 * cli/cli-setshow.c: Handle case 'var_uinteger'
3673 and 'var_zuninteger' together. Handle case 'var_integer' and
3674 'var_zinteger' together.
3676 2012-07-23 Keith Seitz <keiths@redhat.com>
3678 * linespec.c (convert_linespec_to_sal): Don't add
3679 any symbols to the result vector if symbol_to_sal
3682 2012-07-23 Keith Seitz <keiths@redhat.com>
3684 * linespec.c (decode_objc): Record the function name
3687 2012-07-23 Tom Tromey <tromey@redhat.com>
3689 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3691 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3692 (map_vmap): Acquire a reference to the BFD.
3694 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3696 * p-valprint.c (pascal_object_print_value): Replace potentially
3697 unsafe alloca with xmalloc/xfree.
3698 * valops.c (search_struct_method): Likewise.
3700 2012-07-23 Tom Tromey <tromey@redhat.com>
3702 * solib-svr4.c (enable_break): Update.
3703 * bfd-target.h (target_bfd_reopen): Update documentation.
3705 2012-07-23 Tom Tromey <tromey@redhat.com>
3707 * symfile.c (separate_debug_file_exists): Update.
3708 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3709 (reread_symbols): Update.
3710 * elfread.c (build_id_verify): Update.
3711 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3712 bfd_open_maybe_remote.
3714 2012-07-23 Tom Tromey <tromey@redhat.com>
3716 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3718 2012-07-23 Tom Tromey <tromey@redhat.com>
3720 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3722 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3724 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3725 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3727 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3728 * objfiles.c (allocate_objfile): Acquire a new reference.
3729 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3730 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3731 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3732 a cleanup for 'nbfd'.
3733 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3735 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3736 make a cleanup for 'abfd'.
3737 (symbol_file_add): Make a BFD cleanup.
3739 2012-07-23 Tom Tromey <tromey@redhat.com>
3741 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3742 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3743 * corelow.c (core_open): Use gdb_bfd_fopen.
3744 * dsrec.c (load_srec): Use gdb_bfd_openr.
3745 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3746 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3747 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3748 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3749 (gdb_bfd_fdopenr): New functions.
3750 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3751 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3752 (gdb_bfd_fdopenr): Declare.
3753 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3754 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3755 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3756 gdb_bfd_openr_next_archived_file.
3757 (macho_check_dsym): Use gdb_bfd_openr.
3758 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3759 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3760 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3761 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3763 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3764 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3765 gdb_bfd_openr_next_archived_file.
3766 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3768 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3770 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3771 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3772 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3773 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3774 (symfile_bfd_open): Use gdb_bfd_fopen.
3775 (generic_load): Use gdb_bfd_openr.
3776 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3778 2012-07-23 Tom Tromey <tromey@redhat.com>
3780 * bfd-target.c (target_bfd_reopen): Update.
3781 * cli/cli-dump.c (bfd_openr_with_cleanup)
3782 (bfd_openw_with_cleanup): Update.
3783 * corelow.c (core_open): Update.
3784 * dsrec.c (load_srec): Update.
3785 * exec.c (exec_file_attach): Update.
3786 * gcore.c (create_gcore_bfd): Update.
3787 * gdb_bfd.c (gdb_bfd_ref): Return void.
3788 (gdb_bfd_open): Update.
3789 * gdb_bfd.h (gdb_bfd_ref): Return void.
3791 * jit.c (jit_bfd_try_read_symtab): Update.
3792 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3793 * machoread.c (macho_symfile_read_all_oso): Update.
3794 (macho_check_dsym): Update.
3795 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3796 * remote-m32r-sdi.c (m32r_load): Update.
3797 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3798 * rs6000-nat.c (add_vmap): Update.
3799 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3801 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3802 * solib-spu.c (spu_bfd_open): Update.
3803 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3804 * spu-linux-nat.c (spu_bfd_open): Update.
3805 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3806 (generic_load): Update.
3807 * windows-nat.c (windows_make_so): Update.
3809 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3811 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3813 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3815 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3816 SIGTRAMP_FRAME unwinding.
3818 2012-07-20 Doug Evans <dje@google.com>
3820 * NEWS: Document new options "set/show use-deprecated-index-sections",
3821 and delete reference to --use-deprecated-index-sections.
3822 * symfile.h (use_deprecated_index_sections): Delete.
3823 * dwarf2read.c (use_deprecated_index_sections): Make static.
3824 (read_index_from_section): Update wording of how to load
3825 deprecated index sections.
3826 (_initialize_dwarf2_read): New options
3827 "set/show use-deprecated-index-sections".
3828 * main.c (captured_main): Delete --use-deprecated-index-sections.
3830 2012-07-20 Pedro Alves <palves@redhat.com>
3835 * infrun.c (handle_inferior_event) <new thread>: Don't special
3836 case minus_one_ptid.
3837 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3838 * linux-thread-db.c (thread_get_info_callback): Don't return early
3839 if the thread is zombie.
3840 (thread_from_lwp): Change return type to void. Rewrite stale
3842 (attach_thread): Don't return early if the thread is zombie,
3843 instead set its "dying" flag.
3844 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3845 (find_new_threads_callback): Don't return early if the thread is
3848 2012-07-20 Pedro Alves <palves@redhat.com>
3850 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3851 * target.c (target_wait): Likewise.
3852 (str_comma_list_concat_elem, do_option, target_options_to_string):
3854 * target.h (target_options_to_string): Declare.
3856 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3857 Tom Tromey <tromey@redhat.com>
3859 * dwarf2read.c (dwarf_decode_macros)
3860 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3861 DW_MACRO_GNU_transparent_include_alt>: New cases.
3862 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3863 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3865 2012-07-20 Tom Tromey <tromey@redhat.com>
3867 * dwarf2read.c (try_open_dwo_file): Don't call
3868 gdb_bfd_stash_filename.
3870 2012-07-20 Pedro Alves <palves@redhat.com>
3872 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3873 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3874 (i386_process_record): Tweak description comments.
3876 2012-07-20 Pedro Alves <palves@redhat.com>
3878 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3879 (i386_process_record): Use record_read_memory.
3880 * record.c (record_read_memory): New function.
3881 (record_arch_list_add_mem, record_exec_insn): Use
3883 * record.h (record_read_memory): Declare.
3885 2012-07-20 Yao Qi <yao@codesourcery.com>
3887 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3890 2012-07-19 Pedro Alves <palves@redhat.com>
3892 * record.c (record_resume): Ask the target beneath to report all
3895 2012-07-19 Doug Evans <dje@google.com>
3897 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3898 there's no section at address zero.
3899 (dwarf2_record_block_ranges): Ditto.
3901 2012-07-19 Yao Qi <yao@codesourcery.com>
3903 * command.h, remote.c: Fix a typo in comment.
3905 2012-07-19 Tom Tromey <tromey@redhat.com>
3908 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3909 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3910 OP_DECLTYPE>: New cases.
3911 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3912 (type_exp): Add new productions.
3913 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3915 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3917 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3918 OP_DECLTYPE>: New case.
3919 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3921 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3922 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3924 2012-07-19 Tom Tromey <tromey@redhat.com>
3926 * c-exp.y (enum token_flags): New.
3927 (struct token) <cxx_only>: Remove.
3929 (tokentab3, tokentab2, ident_tokens): Update.
3930 (lex_one_token): Update. Handle FLAG_SHADOW.
3932 2012-07-19 Tom Tromey <tromey@redhat.com>
3934 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3935 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3936 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3937 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3938 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3939 type_exp production where appropriate.
3940 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3941 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3942 <UNOP_MEMVAL_TYPE>: New case.
3943 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3944 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3945 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3946 <UNOP_MEMVAL_TYPE>: New case.
3947 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3948 UNOP_REINTERPRET_CAST>: Update.
3949 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3950 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3951 UNOP_REINTERPRET_CAST>: Update.
3952 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3953 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3954 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3957 2012-07-19 Yao Qi <yao@codesourcery.com>
3958 Jan Kratochvil <jan.kratochvil@redhat.com>
3960 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3961 and case 'var_optional_filename' together.
3962 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3963 instead of add_setshow_optional_filename_cmd for setshow command
3964 'args'. Set completer for 'set args'.
3966 2012-07-18 Doug Evans <dje@google.com>
3968 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3969 * common/gdb_vecs.c: New file, contents from utils.c.
3970 * common/host-defs.h: New file, contents from defs.h.
3971 * utils.h: New file, contents from defs.h.
3972 * defs.h: Move all declarations of objects defined in utils.c
3973 to utils.h (except QUIT() and related).
3974 #include "utils.h", "host-defs.h".
3975 * probe.h (probe_p): Move here from gdb_vecs.h.
3976 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3977 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3978 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3979 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3980 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3981 (COMMON_OBS): Add gdb_vecs.o.
3982 (gdb_vecs.o): New rule.
3984 2012-07-18 Keith Seitz <keiths@redhat.com>
3986 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3987 parameter. If non-zero, use SYMNAME as the canonical name
3990 (convert_linespec_to_sals): Use add_sal_to_sals for
3992 (decode_line_full): No need to "fill in missing canonical names"
3993 anymore. Simply make cleanups for the allocated names.
3995 2012-07-18 Keith Seitz <keiths@redhat.com>
3997 * linespec.c (struct linespec): Constify expression,
3998 source_filename, function_name, and label_name.
3999 (symbol_not_found_error): Make all parameters const.
4000 (linespec_parser_delete): No need to check for NULL
4001 when using xfree. Cast const char * to char * for xfree.
4003 2012-07-18 Keith Seitz <keiths@redhat.com>
4005 * breakpoint.c (invalid_thread_id_error): New function.
4006 (find_condition_and_thread): Use invalid_thread_id_error.
4007 (watch_command_1): Likewise.
4009 2012-07-18 Tom Tromey <tromey@redhat.com>
4011 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4012 * contrib/cc-with-tweaks.sh: New file.
4014 2012-07-18 Tom Tromey <tromey@redhat.com>
4016 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4017 (locate_dwz_sections): Recognize .gdb_index.
4018 (create_cus_from_index_list): New function.
4019 (create_cus_from_index): Use it. Handle .dwz data.
4020 (read_index_from_section): New function, extracted from
4022 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4025 2012-07-18 Tom Tromey <tromey@redhat.com>
4027 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4028 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4029 <is_dwz>: New field.
4030 (struct dwz_file): New.
4031 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4032 (locate_dwz_sections, dwarf2_get_dwz_file)
4033 (get_abbrev_section_for_cu): New functions.
4034 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4035 (read_and_check_type_unit_head): Add abbrev_section argument.
4036 (create_debug_types_hash_table): Update.
4037 (init_cutu_and_read_dies): Use proper abbrev section.
4038 (init_cutu_and_read_dies_no_follow): Likewise.
4039 (set_partial_user): Do nothing if PST==NULL.
4040 (read_comp_units_from_section): New function.
4041 (create_all_comp_units): Use it.
4042 (scan_partial_symbols, partial_die_parent_scope): Update.
4043 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4044 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4045 (find_partial_die): Add offset_in_dwz argument. Update.
4046 (guess_partial_die_structure_name, fixup_partial_die): Update.
4047 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4048 DW_FORM_GNU_strp_alt.
4049 (read_indirect_string_from_dwz): New function.
4050 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4051 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4052 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4053 (follow_die_offset): Add offset_in_dwz argument.
4054 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4055 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4056 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4057 Handle new macro forms.
4058 (dwarf_decode_macros): Update.
4059 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4060 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4061 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4062 (create_debug_types_hash_table): Use correct abbrev section.
4063 (get_debug_line_section): New function.
4064 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4065 (process_full_comp_unit): Pass 'required' argument to
4066 end_symtab_get_static_block.
4067 * buildsym.h (end_symtab_get_static_block): Update.
4068 * buildsym.c (end_symtab_get_static_block): Add 'required'
4070 (end_symtab, end_expandable_symtab): Update.
4072 2012-07-18 Tom Tromey <tromey@redhat.com>
4074 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4076 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4077 (zlib_decompress_section): Remove.
4078 (dwarf2_read_section): Use gdb_bfd_map_section.
4079 (munmap_section_buffer): Remove.
4080 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4081 munmap_section_buffer.
4082 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4083 (struct gdb_bfd_section_data): New.
4084 (free_one_bfd_section): New function.
4085 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4086 (get_section_descriptor, zlib_decompress_section)
4087 (gdb_bfd_map_section): New functions.
4088 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4090 2012-07-18 Tom Tromey <tromey@redhat.com>
4092 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4094 2012-07-18 Tom Tromey <tromey@redhat.com>
4096 * gdb_bfd.c (struct gdb_bfd_data): New.
4097 (gdb_bfd_cache): New global.
4098 (struct gdb_bfd_cache_search): New.
4099 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4100 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4101 * gdb_bfd.h (gdb_bfd_open): Declare.
4103 2012-07-18 Tom Tromey <tromey@redhat.com>
4105 * utils.c (make_cleanup_bfd_unref): Rename from
4106 make_cleanup_bfd_close.
4107 * defs.h (make_cleanup_bfd_unref): Rename from
4108 make_cleanup_bfd_close.
4109 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4110 (bfd_openw_with_cleanup): Update.
4111 * corelow.c (core_open): Update.
4112 * dsrec.c (load_srec): Update.
4113 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4114 * remote-m32r-sdi.c (m32r_load): Update.
4115 * remote-mips.c (mips_load_srec): Update.
4116 (pmon_load_fast): Update.
4117 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4119 (darwin_bfd_open): Update.
4120 * solib.c (solib_bfd_fopen): Update.
4121 * symfile-mem.c (symbol_file_add_from_memory): Update.
4122 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4123 (symfile_bfd_open): Update.
4124 (generic_load): Update.
4126 2012-07-18 Tom Tromey <tromey@redhat.com>
4128 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4129 (pmon_load_fast): Likewise.
4130 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4131 (m32r_upload_command): Likewise.
4132 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4133 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4134 Use make_cleanup_bfd_close.
4136 2012-07-18 Tom Tromey <tromey@redhat.com>
4138 * symfile.c (symfile_bfd_open): Don't copy name. Call
4139 gdb_bfd_stash_filename.
4140 (load_command): Open the new BFD before freeing the old.
4141 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4142 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4143 Call gdb_bfd_stash_filename.
4144 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4145 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4146 gdb_bfd_stash_filename.
4147 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4148 Free found_pathname.
4149 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4150 gdb_bfd_stash_filename.
4151 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4152 * machoread.c (macho_add_oso_symfile): Call
4153 gdb_bfd_stash_filename.
4154 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4155 gdb_bfd_stash_filename.
4156 (macho_check_dsym): Don't copy filename. Call
4157 gdb_bfd_stash_filename.
4158 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4159 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4160 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4161 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4162 * exec.c (exec_close): Don't free the BFD's filename.
4163 (exec_file_attach): Don't copy the filename. Call
4164 gdb_bfd_stash_filename.
4165 * corelow.c (core_close): Don't free the BFD's filename.
4166 (core_open): Call gdb_bfd_stash_filename.
4167 * corefile.c (reopen_exec_file): Remove #if 0 code.
4168 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4170 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4172 2012-07-18 Tom Tromey <tromey@redhat.com>
4174 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4176 (free_dwo_file): Use gdb_bfd_unref.
4177 * cli/cli-dump.c: Include gdb_bfd.h.
4178 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4179 (bfd_openr_with_cleanup): Likewise.
4180 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4182 * utils.c: Include gdb_bfd.h.
4183 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4184 * symfile.c: Include gdb_bfd.h.
4185 (separate_debug_file_exists): Use gdb_bfd_unref.
4186 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4187 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4188 (generic_load): Use gdb_bfd_ref.
4189 (reread_symbols): Use gdb_bfd_unref.
4190 * symfile-mem.c: Include gdb_bfd.h.
4191 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4192 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4193 * solib.c: Include gdb_bfd.h.
4194 (solib_bfd_fopen): Use gdb_bfd_ref.
4195 (solib_bfd_open): Use gdb_bfd_unref.
4196 (free_so_symbols): Use gdb_bfd_unref.
4197 (reload_shared_libraries_1): Use gdb_bfd_unref.
4198 * solib-spu.c: Include gdb_bfd.h.
4199 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4200 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4202 * solib-frv.c: Include gdb_bfd.h.
4203 (enable_break2): Use gdb_bfd_unref.
4204 * solib-dsbt.c: Include gdb_bfd.h.
4205 (enable_break2): Use gdb_bfd_unref.
4206 * solib-darwin.c: Include gdb_bfd.h.
4207 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4209 (darwin_bfd_open): Use gdb_bfd_unref.
4210 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4211 * remote-mips.c: Include gdb_bfd.h.
4212 (mips_load_srec): Use gdb_bfd_ref.
4213 (pmon_load_fast): Use gdb_bfd_ref.
4214 * remote-m32r-sdi.c: Include gdb_bfd.h.
4215 (m32r_load): Use gdb_bfd_ref.
4216 * record.c: Include gdb_bfd.h.
4217 (record_save_cleanups): Use gdb_bfd_unref.
4218 (cmd_record_save): Use gdb_bfd_unref.
4219 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4221 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4222 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4223 * objfiles.c: Include gdb_bfd.h.
4224 (free_objfile): Use gdb_bfd_unref.
4225 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4227 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4228 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4229 (macho_check_dsym): Likewise.
4230 * m32r-rom.c: Include gdb_bfd.h.
4231 (m32r_load): Use gdb_bfd_ref.
4232 (m32r_upload_command): Use gdb_bfd_ref.
4233 * jit.c: Include gdb_bfd.h.
4234 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4235 * gdb_bfd.h: New file.
4236 * gdb_bfd.c: New file.
4237 * gcore.c: Include gdb_bfd.h.
4238 (create_gcore_bfd): Use gdb_bfd_ref.
4239 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4240 (gcore_command): Use gdb_bfd_unref.
4241 * exec.c: Include gdb_bfd.h.
4242 (exec_close): Use gdb_bfd_unref.
4243 (exec_close_1): Use gdb_bfd_unref.
4244 (exec_file_attach): Use gdb_bfd_ref.
4245 * elfread.c: Include gdb_bfd.h.
4246 (build_id_verify): Use gdb_bfd_unref.
4247 * dsrec.c: Include gdb_bfd.h.
4248 (load_srec): Use gdb_bfd_ref.
4249 * corelow.c: Include gdb_bfd.h.
4250 (core_close): Use gdb_bfd_unref.
4251 (core_open): Use gdb_bfd_ref.
4252 * bfd-target.c: Include gdb_bfd.h.
4253 (target_bfd_xclose): Use gdb_bfd_unref.
4254 (target_bfd_reopen): Use gdb_bfd_ref.
4255 * Makefile.in (SFILES): Add gdb_bfd.c.
4256 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4257 (COMMON_OBS): Add gdb_bfd.o.
4259 2012-07-18 Keith Seitz <keiths@redhat.com>
4261 * breakpoint.c (find_condition_and_thread): Initialize
4263 (create_breakpiont): find_condition_and_thread will now
4264 initialize COND_STRING, THREAD, and REST (and TASK).
4265 (addr_string_to_sals): Likewise.
4267 2012-07-18 Pedro Alves <palves@redhat.com>
4269 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4270 Pull the single step breakpoints out of the target.
4272 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4274 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4275 * stap-probe.c (compile_probe_arg): Likewise.
4277 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4279 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4280 (elf_compile_to_ax): Likewise.
4281 * infrun.c (insert_exception_resume_from_probe): Likewise.
4282 (check_exception_resume): Remove `objfile' variable.
4283 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4284 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4285 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4286 (compare_entries): Rename to...
4287 (compare_probes): ...this. Adjust function to work with
4288 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4290 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4292 (print_ui_out_info): Adjust argument to be `struct probe *'.
4293 (info_probes_for_ops): Adjust internal computations to use
4295 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4296 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4297 gen_info_probes_table_values>: Remove `objfile' argument.
4298 (struct probe) <objfile>: New field.
4299 (find_probe_by_pc): Remove `objfile' argument.
4300 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4301 (stap_get_probe_argument_count): Likewise.
4302 (stap_get_arg): Likewise.
4303 (stap_evaluate_probe_argument): Likewise.
4304 (stap_compile_to_ax): Likewise.
4305 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4306 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4307 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4308 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4309 sym_compile_to_ax>: Likewise.
4311 2012-07-18 Terry Guo <terry.guo@arm.com>
4314 * defs.h (GDB_MI_MSG_WIDTH): New.
4315 * ser_base (ser_base_read_error_fd): New function.
4316 (do_ser_base_readchar): Poll error file descriptor as well as
4318 (generic_readchar): Refactor error handling.
4320 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4322 * NEWS: Create a new section for the next release branch.
4323 Rename the section of the current branch, now that it has
4326 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4328 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4329 * version.in: Bump version to 7.5.50.20120718-cvs.
4331 2012-07-17 Keith Seitz <keiths@redhat.com>
4333 * linespec.c (linespec_parse_line_offset): Make parameter
4336 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4339 * f-valprint.c (info_common_command): New variable frame_id.
4340 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4341 * printcmd.c (print_variable_and_value): Extend function comment.
4342 Add comment for invalidated FRAME.
4343 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4344 FI form FRAME_ID after each print_frame_local_vars.
4345 (struct print_variable_and_value_data): Change frame to frame_id.
4346 (do_print_variable_and_value): New variable frame, initialize it from
4347 p->frame_id. Add comment for invalidated FRAME.
4348 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4349 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4350 for invalidated FRAME.
4352 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4353 Pedro Alves <palves@redhat.com>
4355 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4358 2012-07-16 Tom Tromey <tromey@redhat.com>
4360 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4362 2012-07-15 Doug Evans <dje@google.com>
4364 * dwarf2read.c (stmt_list_hash): New struct.
4365 (type_unit_group): Embed "per_cu" member, remove pointer.
4366 New union member "t", move member "tus" into it, all uses updated.
4367 New member "hash", replaces member "line_offset, all uses updated.
4368 (quick_file_names): Replace member "offset" with "hash", all uses
4370 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4371 (hash_file_name_entry, eq_file_name_entry): Call them.
4372 (hash_type_unit_group, eq_type_unit_group): Ditto.
4373 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4374 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4375 (dw2_get_file_names): Update.
4376 (create_type_unit_group): Replace "per_cu" arg with "cu".
4377 All callers updated. Fix "quick" (.gdb_index) handling.
4378 (get_type_unit_group): Replace "per_cu" arg with "cu".
4379 All callers updated.
4380 (build_type_unit_groups): Don't reset tu_stats.
4382 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4383 "tab_cur_size". Change member "tab" to be a htab_t.
4384 (create_filename_seen_cache): Update.
4385 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4386 (filename_seen): Update.
4388 2012-07-13 Doug Evans <dje@google.com>
4390 * symtab.c (filename_seen): Update comment.
4392 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4393 Doug Evans <dje@google.com>
4395 * buildsym.c (end_symtab_1): Split it to ...
4396 (end_symtab_get_static_block): ... this ...
4397 (end_symtab_from_static_block): ... and this function.
4398 (end_symtab, end_expandable_symtab): Call them.
4399 * buildsym.h (end_symtab_get_static_block)
4400 (end_symtab_from_static_block): New declarations.
4401 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4402 Set its valid CU ranges.
4404 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4406 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4407 DW_OP_GNU_parameter_ref.
4409 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4411 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4412 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4414 2012-07-13 Doug Evans <dje@google.com>
4416 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4417 (filename_seen_cache): New struct.
4418 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4419 (create_filename_seen_cache): New function.
4420 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4421 (filename_seen): Delete arg "first". New arg "cache". All callers
4423 (output_source_filename_data): New struct.
4424 (output_source_filename): Delete arg "first". New arg "data".
4425 All callers updated.
4426 (sources_info): Delete local "first". New locals "data", "cleanups".
4427 Rewrite to use filename_seen_cache.
4428 (add_partial_filename_data): Delete member "first". New member
4429 "filename_seen_cache". All uses updated.
4430 (make_source_files_completion_list): Rewrite to use
4431 filename_seen_cache.
4433 2012-07-12 Doug Evans <dje@google.com>
4435 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4437 2012-07-10 Doug Evans <dje@google.com>
4440 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4441 all_type_unit_groups, type_unit_groups, tu_stats.
4442 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4443 All uses updated. Add type_unit_group to union "s".
4444 (type_unit_group): New struct.
4445 (IS_TYPE_UNIT_GROUP): New macro.
4446 (abbrev_table): Delete unused member "section".
4447 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4448 (dw2_get_cu): Assert not used with type_unit_group.
4449 (dw2_get_primary_cu): New function.
4450 (dw2_build_type_unit_groups_reader): New function.
4451 (dw2_build_type_unit_groups): New function.
4452 (dw2_get_file_names): Assert not called on type units.
4453 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4454 Redo loop to iterate over type unit groups instead of type units.
4455 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4456 (read_abbrev_offset): New function.
4457 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4459 (create_partial_symtab): New function.
4460 (process_psymtab_comp_unit_reader): Assert not used with type units.
4461 Call create_partial_symtab.
4462 (process_psymtab_type_unit): Delete.
4463 (hash_type_unit_group, eq_type_unit_group): New functions.
4464 (allocate_type_unit_groups_table): New function.
4465 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4466 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4467 (create_type_unit_group, get_type_unit_group): New functions.
4468 (tu_abbrev_offset): New struct.
4469 (sort_tu_by_abbrev_offset): New function.
4470 (add_type_unit_group_to_table): New function.
4471 (build_type_unit_groups): New function.
4472 (build_type_psymtabs_reader): New function.
4473 (build_type_psymtab_dependencies): New function.
4474 (build_type_psymtabs): Rewrite.
4475 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4476 is seen in a type unit.
4477 (process_queue): Move symtab expansion debugging printfs here.
4478 Call process_full_type_unit for type units.
4479 (compute_symtab_includes): Assert not called for type units.
4480 (process_cu_includes): Don't call compute_symtab_includes for
4482 (process_full_type_unit): New function.
4483 (process_imported_unit_die): Flag an error if called for type units.
4484 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4485 updated. Assert not called for type units.
4486 (read_file_scope): Call dwarf2_start_symtab.
4487 (setup_type_unit_groups): New function.
4488 (read_type_unit_scope): Rewrite.
4489 (abbrev_table_read_table): Initialize abbrev_table->offset.
4490 (abbrev_table_free_cleanup): New function.
4491 (dwarf2_start_symtab): New function.
4492 (load_full_type_unit): Assert not called for type unit groups.
4493 * buildsym.c (finish_block_internal): New arg "expandable".
4494 All callers updated.
4495 (start_symtab): Move most contents to ...
4496 (restart_symtab): ... here. New function.
4497 (reset_symtab_globals): New function.
4498 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4499 Call reset_symtab_globals.
4500 (end_symtab, end_expandable_symtab): New functions.
4501 (set_missing_symtab, augment_type_symtab): New functions.
4502 * buildsym.h (end_expandable_symtab): Declare.
4503 (augment_type_symtab, restart_symtab): Declare.
4504 * psympriv.h (struct partial_symtab): New member "anonymous".
4505 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4507 (read_psymtabs_with_filename): Ditto.
4508 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4509 (expand_symtabs_matching_via_partial): Ditto.
4510 (dump_psymtab): Update.
4511 * dictionary.c (dict_add_pending): New function.
4512 * dictionary.h (dict_add_pending): Declare.
4514 2012-07-09 Doug Evans <dje@google.com>
4516 * buildsym.c (start_subfile): Remove unnecessary check for
4519 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4521 * dwarf2read.c (load_full_type_unit): Simplify.
4523 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4524 to struct signatured_type **. All uses updated.
4526 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4527 All callers updated.
4529 2012-07-09 Tom Tromey <tromey@redhat.com>
4531 * c-exp.y (check_parameter_typelist): New function.
4532 (parameter_typelist): Call it.
4533 * eval.c (make_params): Handle '(void)' case.
4534 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4537 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4539 * common/linux-ptrace.c: Include gdb_assert.h.
4540 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4541 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4543 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4545 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4546 * linux-nat.c (linux_child_post_attach)
4547 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4549 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4551 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4552 nptl <2.7 bug workaround for core files.
4554 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4556 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4558 (save_siginfo): Remove.
4559 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4561 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4562 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4563 * linux-nat.h (struct lwp_info): Remove field siginfo.
4565 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4567 Code cleanup for the next patch.
4568 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4569 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4571 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4572 (ia64_linux_stopped_data_address):
4573 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4575 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4576 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4577 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4580 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4583 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4584 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4586 2012-07-06 Tom Tromey <tromey@redhat.com>
4588 * c-exp.y (DOTDOTDOT): New token.
4589 (func_mod, exp): Use parameter_typelist.
4590 (parameter_typelist): New production.
4591 (tokentab3): Add "..." token.
4592 * eval.c (make_params): Handle varargs.
4593 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4596 2012-07-06 Tom Tromey <tromey@redhat.com>
4599 * c-exp.y (%union) <tvec>: Change type.
4600 (func_mod): Now uses <tvec> type.
4601 (exp): Update for tvec change.
4602 (direct_abs_decl): Push the typelist.
4603 (func_mod): Return a typelist.
4604 (nonempty_typelist): Update for tvec change.
4605 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4606 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4607 * parse.c (pop_type_list): New function.
4608 (push_typelist): New function.
4609 (follow_types): Handle tp_function_with_arguments.
4610 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4611 (enum type_pieces) <tp_function_with_arguments>: New constant.
4612 (union type_stack_elt) <typelist_val>: New field.
4613 (push_typelist): Declare.
4615 2012-07-06 Tom Tromey <tromey@redhat.com>
4617 * c-exp.y (%union) <type_stack>: New field.
4618 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4619 (ptr_operator_ts): New production.
4621 * parse.c (type_stack_reserve): New function.
4622 (check_type_stack_depth): Use it.
4623 (pop_type_stack, append_type_stack, push_type_stack)
4624 (get_type_stack, type_stack_cleanup): New functions.
4625 (follow_types): Handle tp_type_stack.
4626 (_initialize_parse): Simplify initialization.
4627 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4629 (union type_stack_elt) <stack_val>: New field.
4630 (get_type_stack, append_type_stack, push_type_stack)
4631 (type_stack_cleanup): Declare.
4633 2012-07-06 Tom Tromey <tromey@redhat.com>
4635 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4637 (struct type_stack): New.
4638 * parse.c (type_stack, type_stack_size, type_stack_depth):
4640 (type_stack): New global.
4641 (parse_exp_in_context, check_type_stack_depth)
4642 (insert_into_type_stack, insert_type, push_type, push_type_int)
4643 (insert_type_address_space, pop_type, pop_type_int)
4644 (_initialize_parse): Update.
4646 2012-07-06 Tom Tromey <tromey@redhat.com>
4648 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4651 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4653 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4655 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4656 Jan Kratochvil <jan.kratochvil@redhat.com>
4658 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4659 alloca with xmalloc/xfree.
4661 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4663 * MAINTAINERS (Write After Approval): Add myself to the list.
4665 2012-07-05 Doug Evans <dje@google.com>
4667 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4669 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4671 * ax-gdb.c (cli/cli-utils.h): New include.
4672 (linespec.h): Ditto.
4673 (agent_eval_command_one): New function.
4674 (agent_command_1): Ditto.
4675 (agent_command): Call function agent_command_1.
4676 (agent_eval_command): Ditto.
4677 (_initialize_ax_gdb): Change help for "maint agent"
4678 and "maint agent-eval".
4680 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4682 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4683 * cli/cli-utils.c (check_for_argument): New function.
4684 * cli/cli-utils.h (check_for_argument): Ditto.
4686 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4688 * NEWS: Mention x32 ABI support.
4690 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4692 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4693 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4695 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4696 and pc_regnum_from_eax to -1. Update SP regnum from
4697 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4700 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4703 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4705 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4706 * dwarf2expr.h: Include gdbtypes.h.
4707 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4708 these forward declarations.
4709 (cu_offset, sect_offset): Move these ...
4710 * gdbtypes.h: Remove include dwarf2expr.h.
4711 (cu_offset, sect_offset): ... here.
4713 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4715 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4716 (amd64_linux_sigtramp_code): This.
4717 (amd64_x32_linux_sigtramp_code): New.
4718 (LINUX_SIGTRAMP_LEN): Updated.
4719 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4721 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4723 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4725 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4727 * config.in: Regenerate.
4728 * configure: Regenerate.
4729 * configure.ac: Remove check for gnu/libc-version.h.
4730 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4732 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4733 variables libc_version, libc_major and libc_minor. Replace sscanf by
4734 inferior_has_bug. Extend the comment.
4736 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4738 * linux-thread-db.c (inferior_has_bug): New function.
4739 (thread_db_find_new_threads_silently): Return boolean as checked by
4740 inferior_has_bug, describe it in the comments.
4741 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4742 earlier. Abort the initialization if it returned non-zero.
4743 (thread_db_new_objfile): Exclude debug files.
4744 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4747 2012-07-02 Doug Evans <dje@google.com>
4749 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4750 related to queue management.
4752 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4753 instead of "debug dwarf2-die" in debugging printfs.
4754 (create_debug_info_hash_table_reader): Ditto.
4755 (create_debug_info_hash_table): Ditto.
4756 (init_dwo_file): Ditto.
4757 (init_cutu_and_read_dies): Add debugging printf.
4758 (init_cutu_and_read_dies_no_follow): Ditto.
4759 (process_psymtab_comp_unit_reader): Ditto.
4761 2012-07-02 Stan Shebs <stan@codesourcery.com>
4763 Add target-side support for dynamic printf.
4764 * NEWS: Mention the additional style.
4765 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4766 (struct bp_location): New field cmd_bytecode.
4767 * breakpoint.c: Include format.h.
4768 (disconnected_dprintf): New global.
4769 (parse_cmd_to_aexpr): New function.
4770 (build_target_command_list): New function.
4771 (insert_bp_location): Call it.
4772 (remove_breakpoints_pid): Skip dprintf breakpoints.
4773 (print_one_breakpoint_location): Ditto.
4774 (dprintf_style_agent): New global.
4775 (dprintf_style_enums): Add dprintf_style_agent.
4776 (update_dprintf_command_list): Add agent case.
4777 (agent_printf_command): New function.
4778 (_initialize_breakpoint): Add new commands.
4779 * common/ax.def (printf): New bytecode.
4780 * ax.h (ax_string): Declare.
4781 * ax-gdb.h (gen_printf): Declare.
4782 * ax-gdb.c: Include cli-utils.h, format.h.
4783 (gen_printf): New function.
4784 (maint_agent_print_command): New function.
4785 (_initialize_ax_gdb): Add maint agent-printf command.
4786 * ax-general.c (ax_string): New function.
4787 (ax_print): Add printf disassembly.
4788 * Makefile.in (SFILES): Add format.c
4789 (COMMON_OBS): Add format.o.
4790 * common/format.h: New file.
4791 * common/format.c: New file.
4792 * printcmd.c: Include format.h.
4793 (ui_printf): Call parse_format_string.
4794 * remote.c (remote_state): New field breakpoint_commands.
4795 (PACKET_BreakpointCommands): New enum.
4796 (remote_breakpoint_commands_feature): New function.
4797 (remote_protocol_features): Add new BreakpointCommands entry.
4798 (remote_can_run_breakpoint_commands): New function.
4799 (remote_add_target_side_commands): New function.
4800 (remote_insert_breakpoint): Call it.
4801 (remote_insert_hw_breakpoint): Ditto.
4802 (_initialize_remote): Add new packet configuration for
4803 target-side breakpoint commands.
4804 * target.h (struct target_ops): New field
4805 to_can_run_breakpoint_commands.
4806 (target_can_run_breakpoint_commands): New macro.
4807 * target.c (update_current_target): Handle
4808 to_can_run_breakpoint_commands.
4810 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4812 Execute -ix and -iex only after system and user gdbinit files.
4813 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4814 processing down after gdbinit files.
4816 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4818 Add fnmatch-gnu module.
4819 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4820 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4821 * gnulib/aclocal.m4: Regenerate.
4822 * gnulib/config.in: Regenerate.
4823 * gnulib/configure: Regenerate.
4824 * gnulib/import/dummy.c: Remove.
4825 * gnulib/import/Makefile.am: Regenerate.
4826 * gnulib/import/Makefile.in: Likewise.
4827 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4828 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4829 * gnulib/import/alloca.c: New file.
4830 * gnulib/import/alloca.in.h: Likewise.
4831 * gnulib/import/config.charset: Likewise.
4832 * gnulib/import/fnmatch.c: Likewise.
4833 * gnulib/import/fnmatch.in.h: Likewise.
4834 * gnulib/import/fnmatch_loop.c: Likewise.
4835 * gnulib/import/localcharset.c: Likewise.
4836 * gnulib/import/localcharset.h: Likewise.
4837 * gnulib/import/m4/alloca.m4: Likewise.
4838 * gnulib/import/m4/codeset.m4: Likewise.
4839 * gnulib/import/m4/configmake.m4: Likewise.
4840 * gnulib/import/m4/fcntl-o.m4: Likewise.
4841 * gnulib/import/m4/fnmatch.m4: Likewise.
4842 * gnulib/import/m4/glibc21.m4: Likewise.
4843 * gnulib/import/m4/localcharset.m4: Likewise.
4844 * gnulib/import/m4/locale-fr.m4: Likewise.
4845 * gnulib/import/m4/locale-ja.m4: Likewise.
4846 * gnulib/import/m4/locale-zh.m4: Likewise.
4847 * gnulib/import/m4/mbrtowc.m4: Likewise.
4848 * gnulib/import/m4/mbsinit.m4: Likewise.
4849 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4850 * gnulib/import/m4/mbstate_t.m4: Likewise.
4851 * gnulib/import/m4/stdbool.m4: Likewise.
4852 * gnulib/import/m4/wchar_h.m4: Likewise.
4853 * gnulib/import/m4/wctype_h.m4: Likewise.
4854 * gnulib/import/m4/wint_t.m4: Likewise.
4855 * gnulib/import/mbrtowc.c: Likewise.
4856 * gnulib/import/mbsinit.c: Likewise.
4857 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4858 * gnulib/import/mbsrtowcs-state.c: Likewise.
4859 * gnulib/import/mbsrtowcs.c: Likewise.
4860 * gnulib/import/ref-add.sin: Likewise.
4861 * gnulib/import/ref-del.sin: Likewise.
4862 * gnulib/import/stdbool.in.h: Likewise.
4863 * gnulib/import/streq.h: Likewise.
4864 * gnulib/import/strnlen1.c: Likewise.
4865 * gnulib/import/strnlen1.h: Likewise.
4866 * gnulib/import/verify.h: Likewise.
4867 * gnulib/import/wchar.in.h: Likewise.
4868 * gnulib/import/wctype.in.h: Likewise.
4870 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4872 Support shell wildcards for 'set auto-load safe-path'.
4873 * auto-load.c: Include fnmatch.h.
4874 (filename_is_in_dir): Rename to ...
4875 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4876 it. Update function comment. Rename dir_len to pattern_len. New
4877 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4878 messages. Use gdb_filename_fnmatch.
4879 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4881 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4882 * defs.h (gdb_filename_fnmatch): New declaration.
4883 * utils.c: Include fnmatch.h.
4884 (gdb_filename_fnmatch): New function.
4886 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4888 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4889 `-probe' and `-probe-stap' options.
4891 2012-07-01 Yao Qi <yao@codesourcery.com>
4893 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4894 always_inserted_off, and always_inserted_enums.
4895 Change always_inserted_mode's type to 'enum auto_boolean'.
4896 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4898 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4899 of add_setshow_enum_cmd.
4900 * infrun.c: Remove can_use_displaced_stepping_auto,
4901 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4902 can_use_displaced_stepping_enum.
4903 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4904 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4905 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4906 add_setshow_enum_cmd.
4908 2012-06-30 Doug Evans <dje@google.com>
4910 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4911 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4912 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4914 2012-06-29 Doug Evans <dje@google.com>
4916 * linespec.c: #include "stack.h".
4917 (decode_line_with_current_source): Moved here from symtab.c and
4918 renamed from decode_line_spec. All callers updated.
4919 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4920 renamed from decode_line_spec_1. All callers updated.
4921 * linespec.h (decode_line_with_current_source): Move declaration here
4922 from symtab.h and renamed from decode_line_spec.
4923 (decode_line_with_last_displayed): Move declaration here from symtab.h
4924 and renamed from decode_line_spec_1.
4925 * macrocmd.c: #include "linespec.h".
4926 * symtab.c: Remove #include "linespec.h".
4928 2012-06-28 Doug Evans <dje@google.com>
4930 * dwarf2read.c (get_cu_length): New function.
4931 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4932 (create_debug_types_hash_table): Ditto.
4933 (init_cutu_and_read_dies): Ditto.
4934 (init_cutu_and_read_dies_no_follow): Ditto.
4936 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4938 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4939 (struct abbrev_table): Define.
4940 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4942 (init_cutu_and_read_dies): Update.
4943 (abbrev_table_alloc_abbrev): New function. Replaces
4944 dwarf_alloc_abbrev. All callers updated.
4945 (abbrev_table_add_abbrev): New function.
4946 (abbrev_table_lookup_abbrev): New function. Replaces
4947 dwarf2_lookup_abbrev. All callers updated.
4948 (abbrev_table_read_table): New function. Contents moved here from
4949 dwarf2_read_abbrevs.
4950 (dwarf2_read_abbrevs): Call it.
4951 (abbrev_table_free): New function.
4952 (dwarf2_free_abbrev_table): Call it.
4954 2012-06-28 Stan Shebs <stan@codesourcery.com>
4956 * osdata.c (info_osdata_command): Filter out "Title" columns
4958 * common/linux-osdata.c (struct osdata_type): Add title field.
4959 (osdata_table): Add titles to each entry.
4960 (linux_command_xfer_osdata): Add a column for title data.
4962 2012-06-28 Stan Shebs <stan@codesourcery.com>
4964 Make logging work for MI.
4966 * interps.h (interp_set_logging_ftype): New typedef.
4967 (struct interp_procs): New field set_logging_proc.
4968 (current_interp_set_logging): Declare.
4969 * interps.c (current_interp_set_logging): New function.
4970 * cli/cli-logging.c: Include interps.h.
4971 (set_logging_redirect): Call current_interp_set_logging.
4972 (pop_output_files): Ditto.
4973 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4974 * mi/mi-console.h (mi_console_set_raw): Declare.
4975 * mi/mi-console.c (mi_console_set_raw): New function.
4976 * mi/mi-interp.c (saved_raw_stdout): New global.
4977 (mi_set_logging): New function.
4978 (_initialize_mi_interp): Add it to interp procs.
4980 2012-06-28 Doug Evans <dje@google.com>
4982 * symtab.c (lookup_symbol_aux_objfile): Use
4983 ALL_OBJFILE_PRIMARY_SYMTABS.
4985 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4987 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4989 * common/buffer.c: Include inttypes.h and stdint.h.
4990 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4992 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4993 Pedro Alves <palves@redhat.com>
4995 * gdbthread.h (ALL_THREADS): New macro.
4996 (thread_list): Declare.
4997 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4998 going, but instead fall through to the stepping handling.
4999 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5000 the passed in signal. Adjust debug output.
5001 (resume_callback): Rename to ...
5002 (linux_nat_resume_callback): ... this. Pass the thread's last
5003 stop signal, if in "pass" state.
5004 (linux_nat_resume): Adjust to rename.
5005 (stop_wait_callback): New assertion. Don't respawn signals;
5006 instead let the LWP remain with SIGNALLED set.
5007 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5008 * remote.c (append_pending_thread_resumptions): New.
5009 (remote_vcont_resume): Call it.
5010 * target.h (target_resume): Extend comment.
5012 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5014 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5016 2012-06-27 Doug Evans <dje@google.com>
5018 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5019 Delete have_addr_base, unused. All uses updated.
5020 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5021 (dwarf2_get_pc_bounds): Add ranges_base.
5022 (dwarf2_record_block_ranges): Ditto.
5024 2012-06-27 Tom Tromey <tromey@redhat.com>
5027 * varobj.c (varobj_create): Update.
5028 (varobj_set_value): Update.
5029 * tracepoint.c (validate_actionline): Update.
5030 (encode_actions_1): Update.
5031 * parse.c (parse_exp_1): Add 'pc' argument.
5032 (parse_exp_in_context): Add 'pc' argument. Change how
5033 expression_context_pc is set.
5034 (parse_expression): Update.
5035 (parse_field_expression): Update.
5036 * expression.h (parse_exp_1): Update.
5037 * eval.c (parse_to_comma_and_eval): Update.
5038 * breakpoint.c (set_breakpoint_condition): Update.
5039 (update_watchpoint): Update.
5040 (init_breakpoint_sal): Update
5041 (find_condition_and_thread): Update.
5042 (watch_command_1): Update.
5043 (update_breakpoint_locations): Update.
5044 * ada-lang.c (ada_read_renaming_var_value): Update.
5045 (create_excep_cond_exprs): Update.
5047 2012-06-27 Doug Evans <dje@google.com>
5049 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5052 2012-06-26 Doug Evans <dje@google.com>
5054 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5056 (error_check_comp_unit_head): New arg abbrev_section. All callers
5058 (read_and_check_comp_unit_head): Ditto.
5059 (read_and_check_type_unit_head): Ditto.
5061 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5063 New attribute 'last' for gdb.Symtab_and_line.
5064 * NEWS (Python Scripting): Add entry about the new attribute.
5065 * python/py-symtab.c (salpy_get_last): New function which
5066 implements the get method for the 'last' attribute of
5067 gdb.Symtab_and_line.
5068 (sal_object_getset): Add entry for the 'last' attribute.
5070 2012-06-26 Doug Evans <dje@google.com>
5072 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5073 (dwo_sections): Add macinfo, macro.
5074 (dwarf2_locate_dwo_sections): Watch for macro sections.
5075 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5076 All callers updated. Handle DWO files.
5078 * NEWS: Mention new options "set debug dwarf2-read" and
5079 "set debug symtab-create".
5080 * dwarf2read.c (dwarf2_read_debug): New static global.
5081 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5082 (process_queue): Ditto.
5083 (process_full_comp_unit): Ditto.
5084 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5085 * elfread.c (elf_symfile_read): Add debugging printf.
5086 * minsyms.c (install_minimal_symbols): Ditto.
5087 * psymtab.c (allocate_psymtab): Ditto.
5088 * symfile.c (allocate_symtab): Ditto.
5089 * symtab.c (symtab_create_debug): New global.
5090 (_initialize_symtab): Add new option "set debug symtab-create".
5091 * symtab.h (symtab_create_debug): Declare.
5093 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5094 (lookup_dwo_type_unit): Ditto.
5096 2012-06-26 Roland McGrath <roland@hack.frob.com>
5097 H.J. Lu <hongjiu.lu@intel.com>
5099 * amd64-linux-nat.c: Include <sys/user.h>.
5100 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5101 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5102 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5104 * configure.ac: Check if the fs_base and gs_base members of
5105 `struct user_regs_struct' exist.
5106 * config.in: Regenerated.
5107 * configure: Likewise.
5109 2012-06-25 Michael Eager <eager@eagercon.com>
5112 * python/python.c (gdbpy_write): Check for interrupted output.
5114 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5116 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5117 register as a stack alignment in ARM mode.
5119 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5121 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5122 * gnulib/config.in: Regenerate.
5123 * gnulib/configure: Likewise.
5124 * gnulib/import/m4/extensions.m4: Update it.
5125 * gnulib/import/m4/gnulib-common.m4: Likewise.
5126 * gnulib/import/m4/memmem.m4: Likewise.
5127 * gnulib/import/m4/mmap-anon.m4: Likewise.
5128 * gnulib/import/m4/multiarch.m4: Likewise.
5129 * gnulib/import/stdint.in.h: Likewise.
5131 2012-06-24 Yao Qi <yao@codesourcery.com>
5133 * corefile.c (write_memory_with_notification): New.
5134 * gdbcore.h: Declare write_memory_with_notification.
5135 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5136 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5137 * valops.c (value_assign): Likewise.
5138 * python/py-inferior.c (infpy_write_memory): Call
5139 'write_memory_with_notification'.
5141 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5143 * cc-with-index.sh: Use also -ex "set auto-load no".
5145 2012-06-23 Doug Evans <dje@google.com>
5148 * NEWS: Document additions to .gdb_index.
5149 * dwarf2read.c: #include "gdb/gdb-index.h".
5150 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5151 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5152 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5153 (dwarf2_read_index): Recognize version 7.
5154 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5155 block_kind, domain): All callers updated.
5156 (dw2_find_symbol_file): Handle new index CU values.
5157 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5158 (add_index_entry): New args is_static, kind. All callers updated.
5159 (offset_type_compare, uniquify_cu_indices): New functions
5160 (symbol_kind): New function.
5161 (write_psymtabs_to_index): Remove duplicate CU values.
5162 (write_psymtabs_to_index): Write .gdb_index version 7.
5164 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5166 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5167 * configure: Regenerate.
5169 2012-06-20 Yao Qi <yao@codesourcery.com>
5171 * python/py-inferior.c: Update comments of infpy_read_memory
5172 and infpy_write_memory.
5174 2012-06-19 Tom Tromey <tromey@redhat.com>
5177 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5178 (push_type_address_space): Remove.
5179 * parse.c (insert_into_type_stack): New function.
5180 (insert_type): Likewise.
5181 (insert_type_address_space): Rename from push_type_address_space.
5182 Insert tp_space_identifier.
5183 * c-exp.y (ptr_operator): New production.
5184 (abs_decl): Use ptr_operator.
5185 (space_identifier): Call insert_type_address_space.
5186 (ptype): Don't use const_or_volatile_or_space_identifier.
5187 (const_or_volatile_noopt): Call insert_type.
5188 (conversion_type_id, conversion_declarator): New productions.
5189 (operator): Use conversion_type_id.
5191 2012-06-18 Doug Evans <dje@google.com>
5193 * symtab.h (minimal_symbol): New member created_by_gdb.
5194 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5196 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5197 (search_symbols): Call it instead of lookup_symbol.
5198 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5200 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5201 Adjust address for DW_OP_GNU_addr_index.
5202 * dwarf2expr.h (dwarf_expr_context): Update comment.
5203 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5204 all callers updated. Handle TLS vars described with
5205 DW_OP_GNU_const_index.
5206 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5207 and DW_OP_GNU_const_index.
5208 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5210 * block.c (find_block_in_blockvector): Make explicit the fact that we
5211 ignore GLOBAL_BLOCK.
5213 2012-06-18 Tom Tromey <tromey@redhat.com>
5215 * c-exp.y (operator): Remove trailing space after "delete" and
5218 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5219 Jan Kratochvil <jan.kratochvil@redhat.com>
5221 Switch i386 and derived targets to ON_STACK.
5222 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5223 (amd64_dicos_init_abi): Remove its installment.
5224 * dicos-tdep.c (dicos_init_abi): Remove the
5225 set_gdbarch_call_dummy_location call. Update the comment here.
5226 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5227 (i386_dicos_init_abi): Remove its installment.
5228 * i386-tdep.c (i386_push_dummy_code): New function.
5229 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5230 i386_push_dummy_code.
5232 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5234 Remove stale dummy frames.
5235 * breakpoint.c: Include dummy-frame.h.
5236 (longjmp_breakpoint_ops): New variable.
5237 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5238 bp_longjmp_call_dummy.
5239 (bpstat_what, bptype_string, print_one_breakpoint_location)
5240 (init_bp_location): Support bp_longjmp_call_dummy.
5241 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5242 (set_longjmp_breakpoint_for_call_dummy)
5243 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5245 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5246 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5247 FIXME comment and extend the other comment for bp_call_dummy.
5248 (set_longjmp_breakpoint_for_call_dummy)
5249 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5250 * dummy-frame.c: Include gdbthread.h.
5251 (pop_dummy_frame_bpt): New function.
5252 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5253 (dummy_frame_discard): New function.
5254 (cleanup_dummy_frames): Update the comment about longjmps.
5255 * dummy-frame.h (dummy_frame_discard): New declaration.
5256 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5257 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5258 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5259 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5260 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5261 keep_going if IS_LONGJMP and there is no other reason to stop.
5263 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5265 * remote-sim.c (sim_command_completer): Initialize
5268 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5270 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5271 * dwarf2loc.c (call_site_parameter_matches): Support
5272 CALL_SITE_PARAMETER_PARAM_OFFSET.
5273 (needs_dwarf_reg_entry_value): Push stub value.
5274 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5275 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5276 * gdbtypes.h (enum call_site_parameter_kind): New item
5277 CALL_SITE_PARAMETER_PARAM_OFFSET.
5278 (struct call_site.parameter.u): New field param_offset.
5280 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5282 Code cleanup: Generalize call_site.parameter key.
5283 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5284 variable dwarf_reg. New variable kind_u. Update parameters to
5285 push_dwarf_reg_entry_value.
5286 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5287 * dwarf2expr.h (enum call_site_parameter_kind)
5288 (union call_site_parameter_u): Forward declarations.
5289 (struct dwarf_expr_context_funcs): Update parameters and their
5290 description for push_dwarf_reg_entry_value.
5291 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5292 * dwarf2loc.c (call_site_parameter_matches): New function.
5293 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5294 description. Use call_site_parameter_matches.
5295 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5296 Update parameters and their description.
5297 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5298 New variable kind_u. Adjust the caller for updated parameters.
5299 (needs_dwarf_reg_entry_value): Update parameters.
5300 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5301 instead of attr. Update for the changed fields of struct
5302 call_site_parameter.
5303 * gdbtypes.h: Include dwarf2expr.h.
5304 (enum call_site_parameter_kind): New.
5305 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5306 fb_offset into new union u.
5308 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5310 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5311 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5314 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5316 * amd64-linux-nat.c (compat_x32_clock_t): New.
5317 (compat_x32_siginfo_t): Likewise.
5318 (compat_x32_siginfo_from_siginfo): Likewise.
5319 (siginfo_from_compat_x32_siginfo): Likewise.
5320 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5321 and siginfo_from_compat_x32_siginfo for x32.
5323 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5325 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5327 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5329 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5330 instead of gdbarch_ptr_bit.
5331 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5332 (amd64_supply_native_gregset): Likewise.
5333 (amd64_collect_native_gregset): Likewise.
5334 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5335 (amd64_supply_xsave): Likewise.
5336 (amd64_collect_fxsave): Likewise.
5337 (amd64_collect_xsave): Likewise.
5339 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5341 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5342 (amd64_linux_read_description): Check DS segment register for
5345 2012-06-15 Tom Tromey <tromey@redhat.com>
5347 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5348 init_cutu_and_read_dies.
5350 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5352 * MAINTAINERS (Write After Approval): Add myself to the list.
5354 2012-06-15 Tom Tromey <tromey@redhat.com>
5356 * valops.c (value_find_oload_method_list): Now static.
5357 * value.h (value_find_oload_method_list): Don't declare.
5359 2012-06-15 Tom Tromey <tromey@redhat.com>
5361 * valops.c (find_overload_match): Use value_ind.
5363 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5365 * infrun.c (handle_inferior_event): Correct indentation.
5367 2012-06-14 Doug Evans <dje@google.com>
5369 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5370 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5372 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5373 updated. Handle DEBUG_LOC_START_LENGTH.
5374 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5375 (loclist_describe_location): Ditto.
5377 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5380 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5381 after hiding inline functions.
5383 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5385 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5386 _initialize_inf_ttrace.
5388 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5390 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5391 _initialize_hppa_hpux_nat.
5393 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5395 * remote-sim.c (sim_command_completer): Change type of return
5396 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5398 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5399 Jan Kratochvil <jan.kratochvil@redhat.com>
5402 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5403 stack on a 16-byte boundary.
5405 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5407 * jit.c (finalize_symtab): Set function's return type to 'void' by
5410 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5411 H.J. Lu <hongjiu.lu@intel.com>
5413 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5414 Move bits common to both the classic LP64 and the new x32 ILP32
5416 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5417 (amd64_x32_linux_init_abi): New function.
5418 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5421 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5422 * i386-tdep.c (i386_pseudo_register_name): Make public.
5423 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5424 * amd64-tdep.c (amd64_dword_names): Add "eip".
5425 (amd64_x32_pseudo_register_type): New function
5426 (amd64_x32_init_abi): New function.
5428 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5431 * inferior.h (struct inferior_suspend_state): Comment out.
5432 (struct inferior): Comment out the field suspend.
5433 * infrun.c (struct infcall_suspend_state): Comment out the field
5435 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5438 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5440 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5441 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5442 function comment. Return ERROR for unresolved cases. Implement
5443 returning proper NAME.
5444 (yylex): Accept also NAME from classify_inner_name.
5445 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5446 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5448 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5450 2012-06-13 Tom Tromey <tromey@redhat.com>
5452 * breakpoint.c (condition_completer): New function.
5453 (_initialize_breakpoint): Use it.
5454 * value.c (complete_internalvar): New function.
5455 * value.h (complete_internalvar): Declare.
5457 2012-06-13 Tom Tromey <tromey@redhat.com>
5459 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5460 * breakpoint.c (catch_syscall_completer): Return a VEC.
5461 * cli/cli-cmds.c (complete_command): Update.
5462 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5463 (complete_on_enum): Likewise.
5464 * command.h: Include gdb_vecs.h.
5465 (completer_ftype): Change return type.
5466 (complete_on_cmdlist, complete_on_enum): Likewise.
5467 * completer.c (noop_completer, filename_completer)
5468 (location_completer): Return a VEC.
5469 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5471 (expression_completer, complete_line_internal, complete_line)
5472 (command_completer): Return a VEC.
5473 (gdb_completion_word_break_characters, line_completion_function):
5475 * completer.h: Include gdb_vecs.h.
5476 (complete_line, noop_completer, filename_completer)
5477 (expression_completer, location_completer, command_completer):
5479 * f-lang.c (f_word_break_characters): Return a VEC.
5480 * interps.c (interpreter_completer): Return a VEC.
5481 * language.h (struct language_defn)
5482 <la_make_symbol_completion_list>: Return a VEC.
5483 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5484 * symtab.c (free_completion_list): Take a VEC.
5485 (return_val_size, return_val_index): Remove.
5486 (return_val): Now a VEC.
5487 (completion_list_add_name): Update.
5488 (default_make_symbol_completion_list_break_on)
5489 (default_make_symbol_completion_list, make_symbol_completion_list)
5490 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5492 (add_filename_to_list): Update.
5493 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5495 (maybe_add_partial_symtab_filename): Update.
5496 (make_source_files_completion_list): Return a VEC.
5497 * symtab.h (default_make_symbol_completion_list_break_on)
5498 (default_make_symbol_completion_list, make_symbol_completion_list)
5499 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5500 (make_source_files_completion_list): Update.
5502 2012-06-13 Tom Tromey <tromey@redhat.com>
5504 * breakpoint.c (add_catch_command): Use completer_ftype.
5505 * breakpoint.h: Include command.h.
5506 (add_catch_command): Use completer_ftype.
5507 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5508 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5509 Use completer_ftype.
5510 * command.h (completer_ftype): New typedef.
5511 (set_cmd_completer): Use it.
5512 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5515 2012-06-13 Pedro Alves <palves@redhat.com>
5517 Partial revert of previous change.
5519 * serial.c (scb_base): New global.
5520 (serial_for_fd): New.
5521 (serial_open, serial_fdopen_ops): Link new serial in open serials
5523 (do_serial_close): Unlink serial from the open serials chain.
5525 2012-06-12 Pedro Alves <palves@redhat.com>
5527 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5529 (prepare_for_detach): No longer context switch here in non-stop
5531 (fetch_inferior_event): Ditto.
5532 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5533 to the event thread before removing breakpoints. Switch to the
5534 event thread before inserting breakpoints and resuming.
5535 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5536 event thread before resuming.
5537 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5538 Switch to the event thread before removing breakpoints.
5540 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5542 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5543 special characters correctly for the Windows shells. See
5544 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5546 [!__MINGW32__]: Remove extra double quote character from special
5549 2012-06-11 Stan Shebs <stan@codesourcery.com>
5551 * ui-out.h: Remove #if 0 declarations.
5552 * ui-out.c: Remove #if 0 functions.
5554 2012-06-11 Pedro Alves <palves@redhat.com>
5556 * ser-base.c (run_async_handler_and_reschedule): New.
5557 (fd_event, push_event): Use it.
5558 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5559 reference count to 1.
5560 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5562 (serial_is_open, serial_ref, serial_unref): New.
5563 * serial.h (serial_open): Adjust comment.
5564 (serial_is_open): Declare.
5565 (serial_close): Adjust comment.
5566 (serial_ref, serial_unref) Declare.
5567 (struct serial): New field 'refcnt'.
5569 2012-06-11 Pedro Alves <palves@redhat.com>
5571 Remove #if 0'd "connect" command, and unnecessary associated
5572 refcounting and serial reuse bits.
5574 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5575 * serial.c (last_serial_opened): Delete.
5577 (serial_open): Adjust.
5578 (serial_for_fd): Delete.
5579 (serial_fdopen_ops, do_serial_close): Adjust.
5580 (serial_fdopen_ops): Adjust.
5582 2012-06-11 Pedro Alves <palves@redhat.com>
5584 * serial.c (do_serial_close): Remove early return when SCB is
5587 2012-06-11 Tom Tromey <tromey@redhat.com>
5589 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5591 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5593 Fix regression by the "ambiguous linespec" series.
5594 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5595 get_last_displayed_symtab and get_last_displayed_line and depending
5598 2012-06-11 Tom Tromey <tromey@redhat.com>
5600 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5601 (dw2_find_symbol_file): Use it.
5603 2012-06-11 Michael Eager <eager@eagercon.com>
5605 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5606 * mips-linux-tdep.h (mips_signals): New
5608 2012-06-11 Tom Tromey <tromey@redhat.com>
5610 * infrun.c (handle_inferior_event)
5611 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5613 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5614 exception logic in all cases. Update comments.
5615 (insert_longjmp_resume_breakpoint): Set the exception resume
5618 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5620 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5622 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5624 * valarith.c (binop_types_user_defined_p): Fix a typo.
5626 2012-06-08 Yao Qi <yao@codesourcery.com>
5627 Chung-Lin Tang <cltang@codesourcery.com>
5629 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5630 * arch-utils.h: Declare.
5631 * gdbarch.sh: Add return_in_first_hidden_param_p.
5632 * gdbarch.c, gdbarch.h: Regenerated.
5633 * infcall.c (call_function_by_hand): Call
5634 gdbarch_return_in_first_hidden_param_p instead of
5635 language_pass_by_reference.
5637 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5638 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5639 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5640 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5641 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5642 `cplus_return_struct_by_reference'.
5643 (tic6x_return_value): Handle language cplusplus.
5644 (tic6x_return_in_first_hidden_param_p): New.
5645 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5647 2012-06-07 Doug Evans <dje@google.com>
5649 * dwarf2read.c (dwarf2_cu): Add comment.
5651 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5653 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5655 (mips_eabi_push_dummy_call): Likewise.
5656 (mips_n32n64_push_dummy_call): Likewise.
5657 (mips_o32_push_dummy_call): Likewise.
5658 (mips_o64_push_dummy_call): Likewise.
5660 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5662 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5664 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5666 * mips-tdep.c (mips_pseudo_register_type): Use
5667 mips_float_register_p.
5669 2012-06-06 Pedro Alves <palves@redhat.com>
5671 * infrun.c (handle_inferior_event): Remove calls to
5672 reinit_frame_cache that follow a context_switch call.
5674 2012-06-06 Pedro Alves <palves@redhat.com>
5676 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5677 context_switch and remove stale comment.
5679 2012-06-06 Pedro Alves <palves@redhat.com>
5681 * infrun.c (struct execution_control_state): Remove
5682 `new_thread_event' field.
5683 (handle_inferior_event): Simplify new threads handling; don't
5684 resume the inferior if we find a new thread.
5686 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5688 * NEWS: Document the deprecation of SH's 'regs' command.
5689 * inferior.h (all_registers_info): Add function declaration.
5690 * sh-tdep.c (sh_show_regs): Remove variable.
5691 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5692 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5693 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5694 (sh_show_regs_command): Remove functions.
5695 (sh_gdbarch_init): Don't set sh_show_regs.
5696 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5697 'info all-registers'.
5698 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5699 (sh64_show_regs): Remove functions.
5700 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5702 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5704 * configure.ac: Move development=true below AC_INIT.
5705 * configure: Regenerate.
5707 2012-06-05 Stan Shebs <stan@codesourcery.com>
5709 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5712 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5714 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5715 argument as ssize_t.
5716 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5717 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5718 * target.c (target_read_stack, target_write_memory)
5719 (target_write_raw_memory): Likewise.
5720 * target.h (target_read_stack, target_write_memory)
5721 (target_write_raw_memory): Likewise.
5723 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5725 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5726 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5727 * target.c (target_read_memory): Change LEN to ssize_t.
5728 * target.h (target_read_memory): Change LEN to ssize_t.
5730 2012-06-05 Pedro Alves <palves@redhat.com>
5734 * breakpoint.c (until_break_command): Only fetch the selected
5735 frame after decode_line_1.
5737 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5739 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5740 event breakpoint at _start, __start or main if a program
5741 interpreter is not found.
5743 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5745 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5747 * windows-tdep.c: #include "objfiles.h".
5748 (windows_iterate_over_objfiles_in_search_order): New function.
5749 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5750 iterate_over_objfiles_in_search_order gdbarch method to
5751 windows_iterate_over_objfiles_in_search_order.
5752 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5754 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5756 * gdbarch.sh: Add generation of
5757 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5758 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5759 (iterate_over_objfiles_in_search_order): New gdbarch method.
5760 * gdbarch.h, gdbarch.c: Regenerate.
5761 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5763 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5765 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5766 out of lookup_symbol_aux_symtabs.
5767 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5768 call to lookup_symbol_aux_objfile.
5769 (struct global_sym_lookup_data): New type.
5770 (lookup_symbol_global_iterator_cb): New function.
5771 (lookup_symbol_global): Search for symbol using
5772 gdbarch_iterate_over_objfiles_in_search_order and
5773 lookup_symbol_global_iterator_cb.
5774 * findvar.c (struct minsym_lookup_data): New type.
5775 (minsym_lookup_iterator_cb): New function.
5776 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5777 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5778 and minsym_lookup_iterator_cb.
5780 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5782 Revert the following patch:
5783 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5784 try locating the symbol in the symbol's own objfile first, before
5785 extending the search to all objfiles.
5786 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5787 out of lookup_symbol_aux_symtabs.
5788 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5789 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5790 Do not search EXCLUDE_OBJFILE.
5791 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5792 (lookup_symbol_global): Search for matches in the block's objfile
5793 first, before searching all other objfiles.
5795 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5797 * breakpoint.c (find_condition_and_thread): Stop parsing
5798 as soon as the first invalid keyword is found.
5800 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5802 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5804 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5806 * config/djgpp/djcheck.sh: Add copyright header.
5808 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5810 * copyright.py (update_files, main): Fix path to update-copyright
5813 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5815 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5816 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5817 for which a reminder to update by hand is printed.
5819 2012-06-04 Doug Evans <dje@google.com>
5821 * buildsym.c (make_blockvector): Add comment.
5823 2012-06-04 Pedro Alves <palves@redhat.com>
5825 * arch-utils.c (default_gdb_signal_from_target): Delete.
5826 * arch-utils.h (default_gdb_signal_from_target): Delete.
5827 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5828 gdbarch_gdb_signal_from_target_p.
5829 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5831 * gdbarch.h: Regenerate.
5832 * gdbarch.c: Regenerate.
5834 2012-06-04 Pedro Alves <palves@redhat.com>
5836 * gdbarch.sh (gdb_signal_from_target): Mention that the
5837 implementation of the method must be host independent.
5838 * gdbarch.h: Regenerate.
5840 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5842 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5844 (target_read_memory_bfd): New function.
5845 (symbol_file_add_from_memory): Use it.
5847 2012-06-03 Doug Evans <dje@google.com>
5849 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5851 (basic_lookup_transparent_type): Ditto.
5853 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5854 (ALL_PRIMARY_SYMTABS): Use it.
5855 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5856 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5857 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5858 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5859 (basic_lookup_transparent_type): Ditto.
5861 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5863 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5864 it to optimize resolution of demangled name.
5866 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5868 * configure.ac (development): Define new variable.
5869 Call AC_CHECK_LIB for mcheck if $development.
5870 (ERROR_ON_WARNING): Enable it by default only if $development.
5871 * config.in: Regenerate.
5872 * configure: Regenerate.
5874 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5876 * target.c (target_read_memory): Make LEN argument as size_t.
5877 * target.h (target_read_memory): Likewise.
5879 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5881 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5883 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5885 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5886 BookE interface for PowerPC server processors if not available
5887 in the Linux Kernel.
5889 2012-05-31 Keith Seitz <keiths@redhat.com>
5891 * linespec.c (decode_objc): Add cleanup to free
5893 (find_linespec_symbols): Add cleanup to free CLASSES.
5894 * symfile.c (find_separate_debug_file_by_debuglink): Add
5895 cleanup to free DEBUGLINK.
5896 * ui-out.c (clear_header_list): No need to check if
5897 HEADER_NEXT.COLHDR is NULL.
5898 Free HEADER_NEXT.COL_NAME.
5900 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5902 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5905 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5907 * configure.host (gdb_host_cpu): Handle tilegx*.
5908 (gdb_host): Handle tilegx-*-linux*.
5909 * tilegx-linux-nat.c: New file.
5910 * config/tilegx/linux.mh: New file.
5912 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5914 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5915 tilegx-linux-tdep.o.
5916 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5917 tilegx-linux-tdep.c.
5918 * configure.tgt: Handle tilegx-*-linux*.
5919 * tilegx-tdep.h: New file.
5920 * tilegx-tdep.c: New file.
5921 * tilegx-linux-tdep.c: New file.
5922 * regformats/reg-tilegx.dat: New file.
5924 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5926 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5927 accounting of hw watchpoints on ppc.
5929 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5931 * source.c (openp): Expand tilde in path entries.
5933 2012-05-29 Doug Evans <dje@google.com>
5935 * buildsym.c (block_compar): Fix comment.
5936 (end_symtab): Fix and clarify some comments.
5938 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5939 cleanup_undefined_types.
5940 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5941 All callers updated.
5943 2012-05-29 Tom Tromey <tromey@redhat.com>
5945 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5947 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5948 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5950 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5953 2012-05-29 Tristan Gingold <gingold@adacore.com>
5955 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5956 (struct darwin_info): ... New struct.
5957 (solib_darwin_pspace_data): New variable.
5958 (darwin_pspace_data_cleanup): New function.
5959 (get_darwin_info): Likewise.
5960 (darwin_dyld_version_ok, darwin_load_image_infos)
5961 (darwin_solib_get_all_image_info_addr_at_init)
5962 (darwin_solib_read_all_image_info_addr): Add info argument.
5964 (darwin_current_sos): Use per pspace structure.
5965 (darwin_solib_create_inferior_hook): Likewise.
5966 (darwin_clear_solib): Likewise.
5967 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5969 2012-05-28 Pedro Alves <palves@redhat.com>
5971 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5972 block that uses them. Clear ecss before handling each event.
5974 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5976 * solib-svr4.c (svr4_current_sos): New comment on
5977 svr4_current_sos_via_xfer_libraries fall back.
5979 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5981 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5982 it as a fallback for TYPE_IS_OPAQUE.
5983 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5984 symbols for lookup_symbol.
5986 2012-05-24 John Steele Scott <toojays@toojays.net>
5988 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5989 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5990 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5991 (check_producer): ... this new function, which also checks for ICC
5992 and caches the result.
5993 (producer_is_icc): New function.
5994 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5997 2012-05-24 Pedro Alves <palves@redhat.com>
6001 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6002 (default_gdb_signal_to_target): ... this. Add comment.
6003 (default_gdb_signal_from_host): Rename to ...
6004 (default_gdb_signal_from_target): ... this. Add comment.
6005 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6006 (default_gdb_signal_to_target): ... this.
6007 (default_gdb_signal_from_host): Rename to ...
6008 (default_gdb_signal_from_target): ... this.
6009 * corelow.c (core_open): Adjust to naming change. Replace comment.
6010 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6011 (gdb_signal_from_target): ... this. Adjust to
6012 default_gdb_signal_from_host naming change. Extend comment.
6013 (gdb_signal_to_host): Rename to ...
6014 (gdb_signal_to_target): ... this. Adjust to
6015 default_gdb_signal_to_host naming change.
6016 * gdbarch.h, gdbarch.c: Renegerate.
6018 2012-05-24 Pedro Alves <palves@redhat.com>
6022 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6024 2012-05-24 Pedro Alves <palves@redhat.com>
6028 Replace target_signal with gdb_signal throughout.
6030 2012-05-24 Pedro Alves <palves@redhat.com>
6034 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6035 string, instead of reusing the va_list argument.
6037 2012-05-24 Tom Tromey <tromey@redhat.com>
6039 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6042 2012-05-23 Doug Evans <dje@google.com>
6044 * symtab.c (search_symbols): Formatting fixes.
6045 (print_symbol_info): Formatting fixes.
6047 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6048 int64_t change to leb128 API.
6049 (read_encoded_value, decode_frame_entry_1): Ditto.
6050 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6051 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6052 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6053 (execute_stack_op): Ditto.
6054 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6055 (safe_read_uleb128, safe_read_sleb128): Ditto.
6056 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6057 (dwarf2_compile_expr_to_ax): Ditto.
6058 (locexpr_describe_location_piece): Ditto.
6059 (disassemble_dwarf_expression): Ditto.
6060 (locexpr_describe_location_1): Ditto.
6062 2012-05-23 Stan Shebs <stan@codesourcery.com>
6063 Kwok Cheung Yeung <kcy@codesourcery.com>
6065 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6066 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6067 (mi-cmd-info.o): New rule.
6068 * osdata.h (info_osdata_command): New declaration.
6069 * osdata.c (info_osdata_command): Change to non-static.
6070 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6071 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6072 * mi/mi-cmd-info.c: New file.
6074 2012-05-23 Doug Evans <dje@google.com>
6076 * symtab.c (search_symbols): Pass NULL for file_matcher to
6077 expand_symtabs_matching if there are no files to match.
6079 * gdbtypes.c (lookup_typename): Simplify.
6081 2012-05-23 Pedro Alves <palves@redhat.com>
6083 * arch-utils.h (default_target_signal_to_host): Delete.
6084 * arch-utils.c (default_target_signal_to_host): Delete.
6085 * gdbarch.sh (target_signal_to_host): Remove.
6086 * gdbarch.h, gdbarch.c: Regenerate.
6088 2012-05-22 Doug Evans <dje@google.com>
6090 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6092 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6093 (execute_cfa_program): Update to match API of leb128 functions.
6094 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6096 (read_unsigned_leb128, read_signed_leb128): Delete.
6097 (read_initial_length): Change type of buf argument to
6099 (read_encoded_value): Update to match API of leb128 functions.
6100 (decode_frame_entry): Change result to "const gdb_byte *", and
6101 similarly for "start" parameter.
6102 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6103 (dwarf2_build_frame_info): Change local frame_ptr to
6105 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6106 read_uleb128, read_sleb128. All callers updated.
6107 (safe_skip_leb128): New function.
6108 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6109 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6110 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6111 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6112 read_uleb128, read_sleb128.
6113 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6114 (execute_stack_op): Update to match API of leb128 functions.
6115 * dwarf2expr.h: #include "leb128.h".
6116 (read_uleb128, read_sleb128): Delete.
6117 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6118 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6119 * dwarf2loc.c (debug_loc_kind): New enum.
6120 (decode_debug_loc_addresses): New function.
6121 (decode_debug_loc_dwo_addresses): New function.
6122 (dwarf2_find_location_expression): Rewrite.
6123 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6124 (locexpr_describe_location_piece): Ditto.
6125 (disassemble_dwarf_expression): Ditto.
6126 (locexpr_describe_location_1): Ditto.
6127 (loclist_describe_location): Rewrite.
6128 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6129 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6130 (dwarf2_section_buffer_overflow_complaint): Renamed from
6131 dwarf2_macros_too_long_complaint. All callers updated.
6132 (skip_leb128): Delete.
6133 (init_cu_die_reader): Initialize reader->buffer_end.
6134 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6135 (skip_form_bytes): New arg buffer_end. All callers updated.
6136 Replace call to skip_leb128 with gdb_skip_leb128.
6137 (skip_unknown_opcode): New arg mac_end. All callers updated.
6138 (fill_in_loclist_baton): Initialize baton->from_dwo.
6140 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6142 * mips-linux-nat.c (mips_linux_read_description): Use a more
6143 verbose error message.
6145 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6147 * NEWS: Add MIPS/Linux DSP support.
6148 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6149 (SIGCONTEXT_DSPCTL): New macro.
6150 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6151 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6152 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6153 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6154 (N64_SIGCONTEXT_HI3): Likewise.
6155 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6156 (N64_SIGCONTEXT_LO3): Likewise.
6157 (N64_SIGCONTEXT_DSPCTL): Likewise.
6158 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6159 (mips_linux_o32_sigframe_init): Handle DSP registers.
6160 (mips_linux_n32n64_sigframe_init): Likewise.
6162 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6164 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6167 2012-05-22 Pedro Alves <palves@redhat.com>
6169 * target.h (store_waitstatus): Move declaration ...
6170 * inf-child.h (store_waitstatus): ... here.
6171 * target.c: Move inclusion of gdb_wait.h, and ...
6172 (store_waitstatus): ... this ...
6173 * inf-child.c: ... here.
6174 * linux-nat.c: Include inf-child.h.
6175 * rs6000-nat.c: Include inf-child.h.
6176 * spu-linux-nat.c: Include inf-child.h.
6178 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6180 * tracepoint.c (start_tracing): Add missing i18n markup.
6181 (stop_tracing, set_trace_user): Ditto.
6182 (set_trace_notes, set_trace_stop_notes): Ditto.
6184 2012-05-21 Tom Tromey <tromey@redhat.com>
6187 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6189 * value.h (value_cast_pointers): Update.
6190 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6191 (value_cast): Update.
6192 (update_search_result): New function.
6193 (do_search_struct_field): New, from search_struct_field. Check
6194 for ambiguous results.
6195 (search_struct_field): Rewrite.
6196 * infcall.c (value_arg_coerce): Update.
6197 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6198 value_cast_pointers.
6199 * ada-lang.c (ada_convert_actual): Update.
6201 2012-05-21 Tom Tromey <tromey@redhat.com>
6203 * macroexp.c (macro_stringify): Terminate the string.
6205 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6207 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6209 * auto-load.c (auto_load_expand_dir_vars): New function.
6210 (auto_load_safe_path_vec_update): Use it, remove the
6211 substitute_path_component call thanks to it.
6212 (auto_load_objfile_script): Remove the debug_file_directory processing.
6213 Use auto_load_expand_dir_vars, remove the substitute_path_component
6215 * configure: Regenerate.
6216 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6217 path. Escape $ also for $debugdir.
6218 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6219 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6221 2012-05-20 Doug Evans <dje@google.com>
6223 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6224 before use. Check for symtab->includes == NULL before scanning it.
6226 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6228 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6230 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6232 * NEWS: Add microMIPS support and "set mips compression",
6233 "show mips compression" commands.
6234 * mips-tdep.h (mips_isa): New enum.
6235 (gdbarch_tdep): Add mips_isa.
6236 (mips_pc_is_mips16): Update prototype.
6237 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6238 * mips-tdep.c (mips_compression_mips16): New variable.
6239 (mips_compression_micromips): Likewise.
6240 (mips_compression_strings): Likewise.
6241 (mips_compression_string): Likewise.
6242 (is_mips16_isa, is_micromips_isa): New functions.
6243 (is_mips16_addr): Rename to...
6244 (is_compact_addr): ... this.
6245 (unmake_mips16_addr): Likewise to...
6246 (unmake_compact_addr): ... this.
6247 (make_mips16_addr): Likewise to...
6248 (make_compact_addr): ... this.
6249 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6251 (mips_elf_make_msymbol_special): Handle microMIPS code.
6252 (msymbol_is_special): Rename to...
6253 (msymbol_is_mips16): ... this.
6254 (mips_make_symbol_special, mips_pc_is_mips16): Update
6256 (msymbol_is_mips, msymbol_is_micromips): New functions.
6257 (mips16_to_32_reg): Rename to...
6258 (mips_reg3_to_reg): ... this.
6259 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6260 (mips_pc_isa): Likewise.
6261 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6263 (mips_fetch_instruction): Pass return status instead of printing
6264 an error message if requested. Handle microMIPS code. Bail out
6266 (micromips_op): New macro.
6267 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6268 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6269 (b6s4_op, b7s3_reg): Likewise.
6270 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6271 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6272 (mips_insn_size): New function.
6273 (mips32_next_pc): Update mips_fetch_instruction call.
6274 (micromips_relative_offset7): New function.
6275 (micromips_relative_offset10): Likewise.
6276 (micromips_relative_offset16): Likewise.
6277 (micromips_pc_insn_size): Likewise.
6278 (micromips_bc1_pc): Likewise.
6279 (micromips_next_pc): Likewise.
6280 (unpack_mips16): Update mips_fetch_instruction call.
6281 (extended_mips16_next_pc): Update according to change to
6283 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6285 (mips16_scan_prologue): Update mips_fetch_instruction call.
6286 Update according to change to mips16_to_32_reg.
6287 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6288 (mips_insn16_frame_base_sniffer): Likewise.
6289 (micromips_decode_imm9): New function.
6290 (micromips_scan_prologue): Likewise.
6291 (mips_micro_frame_cache): Likewise.
6292 (mips_micro_frame_this_id): Likewise.
6293 (mips_micro_frame_prev_register): Likewise.
6294 (mips_micro_frame_sniffer): Likewise.
6295 (mips_micro_frame_unwind): New variable.
6296 (mips_micro_frame_base_address): New function.
6297 (mips_micro_frame_base): New variable.
6298 (mips_micro_frame_base_sniffer): New function.
6299 (mips32_scan_prologue): Update mips_fetch_instruction call.
6300 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6301 rather than for MIPS16.
6302 (mips_insn32_frame_base_sniffer): Likewise.
6303 (mips_addr_bits_remove): Handle microMIPS code.
6304 (deal_with_atomic_sequence): Rename to...
6305 (mips_deal_with_atomic_sequence): ... this. Update the type
6306 of the variable used to hold an instruction. Remove the ISA bit
6307 check. Update mips_fetch_instruction call.
6308 (micromips_deal_with_atomic_sequence): New function.
6309 (deal_with_atomic_sequence): Likewise.
6310 (mips_about_to_return): Handle microMIPS code. Update
6311 mips_fetch_instruction call.
6312 (heuristic_proc_start): Check for the standard MIPS ISA rather
6313 than for MIPS16. Update mips_pc_is_mips16 and
6314 mips_fetch_instruction calls. Handle microMIPS code.
6315 (mips_push_dummy_code): Handle microMIPS code.
6316 (mips_eabi_push_dummy_call): Likewise.
6317 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6318 (mips_o64_push_dummy_call): Handle microMIPS code.
6319 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6320 (is_delayed): Remove function.
6321 (mips_single_step_through_delay): Replace the call to is_delayed
6322 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6323 Handle microMIPS code.
6324 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6326 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6328 (micromips_in_function_epilogue_p): New function.
6329 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6331 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6333 (gdb_print_insn_mips): Likewise.
6334 (mips_breakpoint_from_pc): Likewise.
6335 (mips_remote_breakpoint_from_pc): New function.
6336 (mips32_instruction_has_delay_slot): Simplify making use of the
6337 updated mips_fetch_instruction interface.
6338 (micromips_instruction_has_delay_slot): New function.
6339 (mips16_instruction_has_delay_slot): Simplify making use of the
6340 updated mips_fetch_instruction interface.
6341 (mips_adjust_breakpoint_address): Check for the standard MIPS
6342 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6343 calls. Handle microMIPS code.
6344 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6345 (mips_skip_trampoline_code): Handle microMIPS code.
6346 (global_mips_compression): New function.
6347 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6348 file flags. Register the microMIPS remote breakpoint handler
6349 and heuristic frame unwinder.
6350 (show_mips_compression): New function.
6351 (_initialize_mips_tdep): Add the "set mips compression" and
6352 "show mips compression" commands.
6354 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6359 * amd64-darwin-tdep.c:
6360 * arm-symbian-tdep.c:
6364 * bfin-linux-tdep.c:
6371 * dwarf2-frame-tailcall.c:
6400 * microblaze-tdep.c:
6401 * mips-linux-tdep.c:
6409 * python/py-finishbreakpoint.c:
6410 * python/py-inferior.c:
6411 * python/py-infthread.c:
6415 * remote-m32r-sdi.c:
6419 * rs6000-aix-tdep.c:
6445 * amd64-darwin-tdep.c:
6446 * arm-symbian-tdep.c:
6447 * arm-tdep.c: Delete unused variables.
6449 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6451 Rename $ddir to $datadir.
6452 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6453 * auto-load.c (auto_load_safe_path_vec_update)
6454 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6455 * configure: Regenerate.
6456 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6457 Likewise. Remove the 'use $ddir' help string.
6459 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6461 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6462 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6464 2012-05-18 Tom Tromey <tromey@redhat.com>
6467 * valprint.h (struct value_print_options) <symbol_print>: New
6469 * valprint.c (user_print_options): Add default for symbol_print.
6470 (show_symbol_print): New function.
6471 (generic_val_print): Respect symbol_print.
6472 (_initialize_valprint): Add "print symbol" setting.
6473 * f-valprint.c (f_val_print): Respect symbol_print.
6474 * c-valprint.c (c_val_print): Respect symbol_print.
6476 * printcmd.c (print_address_symbolic): Return int. Ignore some
6478 (print_address_demangle): Return int.
6479 * defs.h: (print_address_symbolic): Return int.
6480 * value.h (print_address_demangle): Return int.
6482 2012-05-18 Tom Tromey <tromey@redhat.com>
6484 * valprint.c (val_print_string): Don't print leading space.
6485 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6486 print space before string or vtbl.
6487 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6489 * jv-valprint.c (java_value_print): Print space before string.
6490 * go-valprint.c (print_go_string): Print space before string.
6491 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6492 space before string.
6493 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6494 space before string or vtbl.
6495 * auxv.c (fprint_target_auxv): Print space after address.
6497 2012-05-18 Tom Tromey <tromey@redhat.com>
6499 * printcmd.c (print_address_demangle): Remove special case for 0.
6501 2012-05-18 Tom Tromey <tromey@redhat.com>
6503 * printcmd.c (print_address_demangle): Add 'opts' argument.
6504 * p-valprint.c (pascal_val_print): Update.
6505 * jv-valprint.c (java_val_print): Update.
6507 * valprint.c (generic_val_print): Update.
6508 (print_function_pointer_address): Add 'options' argument. Remove
6509 'addressprint' argument. Update.
6510 * m2-valprint.c (print_unpacked_pointer): Update.
6511 * gnu-v3-abi.c (print_one_vtable): Update.
6512 (gnuv3_print_method_ptr): Update.
6513 * f-valprint.c (f_val_print): Update.
6514 * cp-valprint.c (cp_print_value_fields): Update.
6515 * valprint.h (print_function_pointer_address): Update.
6516 * c-valprint.c (c_val_print): Update.
6518 2012-05-18 Tom Tromey <tromey@redhat.com>
6520 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6521 directly corresponding to the found psymtab.
6522 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6523 (dw2_find_pc_sect_symtab): Use it.
6524 * block.h (blockvector_contains_pc): Declare.
6525 * block.c (find_block_in_blockvector): New function.
6526 (blockvector_for_pc_sect): Use it.
6527 (blockvector_contains_pc): New function.
6529 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6531 * mips-tdep.h (mips_write_pc): New prototype.
6532 * mips-tdep.c (mips_write_pc): Make external, add description.
6533 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6536 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6538 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6540 (mips_unwind_pc, mips_write_pc): Likewise.
6541 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6544 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6546 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6547 proc_warn, proc_error, proc_get_status, proc_flags,
6548 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6549 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6550 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6551 proc_stop_process, proc_wait_for_stop, proc_run_process,
6552 proc_set_traced_signals, proc_set_traced_faults,
6553 proc_set_traced_sysentry, proc_set_traced_sysexit,
6554 proc_set_held_signals, proc_get_held_signals,
6555 proc_get_traced_signals, proc_get_traced_faults,
6556 proc_get_traced_sysentry, proc_get_traced_sysexit,
6557 proc_clear_current_fault, proc_set_current_signal,
6558 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6559 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6560 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6561 proc_get_current_thread, proc_get_current_thread,
6562 proc_get_current_thread, proc_update_threads,
6563 proc_update_threads, proc_update_threads, proc_update_threads,
6564 proc_iterate_over_threads, procfs_find_new_threads,
6565 procfs_pid_to_str): Make static. Remove advance declaration.
6566 (proc_cursig): Make static. Conditionalized defintion on
6567 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6568 (proc_syscall, proc_set_kill_on_last_close,
6569 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6570 proc_get_pending_signals, proc_get_signal_actions,
6571 proc_trace_signal, proc_ignore_signal): Delete.
6573 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6575 * coffread.c (cs_section_address): Passing proper argument for
6576 `bfd_get_section_vma'.
6577 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6578 `bfd_get_section_flags'.
6579 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6580 `bfd_get_section_vma'.
6582 2012-05-16 Tom Tromey <tromey@redhat.com>
6585 * macrotab.h: (macro_define_special): Declare.
6586 (enum macro_special_kind): New.
6587 (struct macro_definition) <argc, replacement>: Update comments.
6588 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6589 (macro_define_object_internal): New function.
6590 (macro_define_object): Use it.
6591 (macro_define_special): New function.
6592 (fixup_definition): New function.
6593 (macro_lookup_definition, foreach_macro_in_scope)
6594 (foreach_macro): Use fixup_definition.
6595 * macroexp.h (macro_stringify): Declare.
6596 * macroexp.c (free_buffer_return_text): New function.
6597 (stringify): Constify "arg".
6598 (macro_stringify): New function.
6599 * dwarf2read.c (macro_start_file): Call macro_define_special.
6601 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6602 Maciej W. Rozycki <macro@mips.com>
6604 * breakpoint.h (bp_location): Add related_address member.
6605 * inferior.h (get_return_value): Take a pointer to struct value
6606 instead of struct type for the function requested.
6607 * value.h (using_struct_return): Likewise.
6608 * gdbarch.sh (return_value): Take a pointer to struct value
6609 instead of struct type for the function requested.
6610 * breakpoint.c (set_breakpoint_location_function): Initialize
6611 related_address for bp_gnu_ifunc_resolver breakpoints.
6612 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6613 requested function's address to gdbarch_return_value.
6614 * eval.c (evaluate_subexp_standard): Pass the requested
6615 function's address to using_struct_return.
6616 * infcall.c (call_function_by_hand): Pass the requested
6617 function's address to using_struct_return and
6618 gdbarch_return_value.
6619 * infcmd.c (get_return_value): Take a pointer to struct value
6620 instead of struct type for the function requested.
6621 (print_return_value): Update accordingly.
6622 (finish_command_continuation): Likewise.
6623 * stack.c (return_command): Pass the requested function's
6624 address to using_struct_return and gdbarch_return_value.
6625 * value.c (using_struct_return): Take a pointer to struct value
6626 instead of struct type for the function requested. Pass the
6627 requested function's address to gdbarch_return_value.
6628 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6629 New function_value member, replacing function_type.
6630 (bpfinishpy_dealloc): Update accordingly.
6631 (bpfinishpy_pre_stop_hook): Likewise.
6632 (bpfinishpy_init): Likewise. Record the requested function's
6634 * mips-tdep.c (mips_fval_reg): New enum.
6635 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6636 words put in GP registers.
6637 (mips_o64_push_dummy_call): Update a comment.
6638 (mips_o32_return_value): Take a pointer to struct value instead
6639 of struct type for the function requested and use it to check if
6640 using the MIPS16 calling convention. Return the designated
6641 general purpose registers for floating-point values returned in
6643 (mips_o64_return_value): Likewise.
6644 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6645 (ppc_sysv_abi_broken_return_value): Likewise.
6646 (ppc64_sysv_abi_return_value): Likewise.
6647 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6648 value instead of struct type for the function requested.
6649 * amd64-tdep.c (amd64_return_value): Likewise.
6650 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6651 * arm-tdep.c (arm_return_value): Likewise.
6652 * avr-tdep.c (avr_return_value): Likewise.
6653 * bfin-tdep.c (bfin_return_value): Likewise.
6654 * cris-tdep.c (cris_return_value): Likewise.
6655 * frv-tdep.c (frv_return_value): Likewise.
6656 * h8300-tdep.c (h8300_return_value): Likewise.
6657 (h8300h_return_value): Likewise.
6658 * hppa-tdep.c (hppa32_return_value): Likewise.
6659 (hppa64_return_value): Likewise.
6660 * i386-tdep.c (i386_return_value): Likewise.
6661 * ia64-tdep.c (ia64_return_value): Likewise.
6662 * iq2000-tdep.c (iq2000_return_value): Likewise.
6663 * lm32-tdep.c (lm32_return_value): Likewise.
6664 * m32c-tdep.c (m32c_return_value): Likewise.
6665 * m32r-tdep.c (m32r_return_value): Likewise.
6666 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6667 * m68k-tdep.c (m68k_return_value): Likewise.
6668 (m68k_svr4_return_value): Likewise.
6669 * m88k-tdep.c (m88k_return_value): Likewise.
6670 * mep-tdep.c (mep_return_value): Likewise.
6671 * microblaze-tdep.c (microblaze_return_value): Likewise.
6672 * mn10300-tdep.c (mn10300_return_value): Likewise.
6673 * moxie-tdep.c (moxie_return_value): Likewise.
6674 * mt-tdep.c (mt_return_value): Likewise.
6675 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6676 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6677 (ppc_sysv_abi_broken_return_value): Likewise.
6678 (ppc64_sysv_abi_return_value): Likewise.
6679 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6680 * rl78-tdep.c (rl78_return_value): Likewise.
6681 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6682 * rx-tdep.c (rx_return_value): Likewise.
6683 * s390-tdep.c (s390_return_value): Likewise.
6684 * score-tdep.c (score_return_value): Likewise.
6685 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6686 (sh_return_value_fpu): Likewise.
6687 * sh64-tdep.c (sh64_return_value): Likewise.
6688 * sparc-tdep.c (sparc32_return_value): Likewise.
6689 * sparc64-tdep.c (sparc64_return_value): Likewise.
6690 * spu-tdep.c (spu_return_value): Likewise.
6691 * tic6x-tdep.c (tic6x_return_value): Likewise.
6692 * v850-tdep.c (v850_return_value): Likewise.
6693 * vax-tdep.c (vax_return_value): Likewise.
6694 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6695 * xtensa-tdep.c (xtensa_return_value): Likewise.
6696 * gdbarch.c: Regenerate.
6697 * gdbarch.h: Regenerate.
6699 2012-05-15 Tom Tromey <tromey@redhat.com>
6701 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6703 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6705 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6706 of command in two error message.
6708 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6710 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6712 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6714 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6716 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6718 * NEWS (show auto-load scripts-directory): Add forgotten command.
6720 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6722 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6725 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6727 * amd64-tdep.c: Include features/i386/x32.c and
6728 features/i386/x32-avx.c.
6729 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6730 initialize_tdesc_x32_avx.
6732 2012-05-14 Stan Shebs <stan@codesourcery.com>
6735 * breakpoint.h (enum bptype): New type bp_dprintf.
6736 (struct breakpoint): New field extra_string.
6737 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6738 (create_breakpoint): Add extra_string arg.
6739 * breakpoint.c (dprintf_breakpoint_ops): New.
6740 (is_breakpoint): Add bp_dprintf.
6741 (bpstat_what): Add dprintf case.
6742 (bptype_string): Ditto.
6743 (print_one_breakpoint_location): Ditto.
6744 (init_bp_location): Ditto.
6745 (bkpt_print_mention): Ditto.
6746 (dprintf_style_enums): New array.
6747 (dprintf_style): New global.
6748 (dprintf_function): New global.
6749 (dprintf_channel): New global.
6750 (update_dprintf_command_list): New function.
6751 (update_dprintf_commands): New function.
6752 (init_breakpoint_sal): Add extra_string argument, handle it.
6753 (create_breakpoint_sal): Add extra_string argument.
6754 (create_breakpoints_sal): Add extra_string argument, update callers.
6755 (find_condition_and_thread): Add extra argument.
6756 (create_breakpoint): Add extra_string argument, record it.
6757 (dprintf_command): New function.
6758 (break_command_1): Add arg to create_breakpoint call.
6759 (handle_gnu_v3_exceptions): Ditto.
6760 (trace_command): Ditto.
6761 (ftrace_command): Ditto.
6762 (strace_command): Ditto.
6763 (bkpt_print_mention): Add dprintf case.
6764 (create_breakpoint_sal_default): Add extra_string argument.
6765 (_initialize_breakpoint): Add new commands.
6766 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6767 * python/py-breakpoint.c (bppy_init): Ditto.
6768 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6770 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6772 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6774 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6776 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6779 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6781 Add a new function gdb.find_pc_line to the Python API.
6782 * NEWS (Python Scripting): Add entry about the new function.
6783 * python/python.c (gdbpy_find_pc_line): New function which
6784 implements gdb.find_pc_line.
6785 (GdbMethods): Add entry for the new function.
6787 2012-05-12 Pedro Alves <palves@redhat.com>
6789 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6790 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6792 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6794 * inferior.c: Include completer.h
6795 (initialize_inferiors): Set completer of add-inferior to
6798 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6800 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6801 gdbarch_ptr_bit for x32 core dump.
6803 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6805 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6806 and features/i386/x32-avx-linux.c.
6808 2012-05-11 Stan Shebs <stan@codesourcery.com>
6809 Kwok Cheung Yeung <kcy@codesourcery.com>
6811 * NEWS: Describe new info os commands.
6812 * common/linux-osdata.c (PID_T, TIME_T): Define.
6813 (MAX_PID_T_STRLEN): New.
6814 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6816 (command_from_pid): Add comment. Change to use PID_T.
6817 (commandline_from_pid): Change to use PID_T.
6818 (user_from_pid): Add comment.
6819 (get_process_owner): Add comment. Change to use PID_T and
6821 (get_number_of_cpu_cores): Add comment.
6822 (get_cores_used_by_process): Add comment. Change to use PID_T and
6824 (linux_xfer_osdata_processes): Change to use PID_T and
6826 (compare_processes): New function.
6827 (linux_xfer_osdata_processgroups): New function.
6828 (linux_xfer_osdata_threads): Change to use PID_T.
6829 (linux_xfer_osdata_fds): New function.
6830 (format_socket_state, print_sockets): New functions.
6831 (union socket_addr): New union.
6832 (linux_xfer_osdata_isockets): New function.
6833 (time_from_time_t, group_from_gid): New functions.
6834 (linux_xfer_osdata_shm): New function.
6835 (linux_xfer_osdata_sem): New function.
6836 (linux_xfer_osdata_msg): New function.
6837 (linux_xfer_osdata_modules): New function.
6838 (osdata_table): Add new entries.
6839 * common/buffer.c (buffer_xml_printf): Add support for long and
6840 long long format specifiers.
6842 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6844 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6845 (tdesc_x32_avx_linux): Likewise.
6847 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6849 Implement multi-component --with-auto-load-dir.
6850 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6852 (--with-auto-load-safe-path): Update the default value description.
6853 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6855 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6856 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6857 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6858 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6859 "set auto-load scripts-directory".
6860 * config.in: Regenerate.
6861 * configure: Regenerate.
6862 * configure.ac (--with-auto-load-dir): New configure option.
6863 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6865 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6867 Provide $ddir substitution for --with-auto-load-safe-path.
6868 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6870 * auto-load.c: Include observer.h.
6871 (auto_load_safe_path_vec_update): Call substitute_path_component for
6872 each component. New variable ddir_subst.
6873 (auto_load_gdb_datadir_changed): New function.
6874 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6875 AUTO_LOAD_SAFE_PATH. New comment.
6876 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6877 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6878 * config.in: Regenerate.
6879 * configure: Regenerate.
6880 * configure.ac (--auto-load-safe-path): Rename
6881 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6882 GDB_DATADIR/auto-load.
6883 * defs.h (substitute_path_component): New declaration.
6884 * top.c: Include observer.h.
6885 (set_gdb_datadir): New function.
6886 (init_main): Install it for "set data-directory".
6887 * utils.c (substitute_path_component): New function.
6889 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6891 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6892 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6893 DEBUG_FILE_DIRECTORY. Handle multiple components of
6894 DEBUG_FILE_DIRECTORY.
6896 2012-05-10 Tom Tromey <tromey@redhat.com>
6898 * dwarf2read.c (recursively_write_psymbols): New function.
6899 (write_psymtabs_to_index): Use it.
6901 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6903 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6904 (load_partial_comp_unit): Update.
6905 (queue_comp_unit): Add argument 'pretend_language'.
6906 (process_queue): Update.
6907 (psymtab_to_symtab_1): Skip dependencies that have a user.
6908 (load_partial_comp_unit_reader): Give meaning to the 'data'
6910 (load_full_comp_unit): Add 'pretend_language' argument.
6911 (process_full_comp_unit): Add 'pretend_language' argument. Set
6913 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6915 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6916 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6918 (prepare_one_comp_unit): Add 'pretend_language' argument.
6920 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6921 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6922 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6923 (dw2_do_instantiate_symtab): Check whether symtab was read in
6925 (dw2_instantiate_symtab): Add assertion. Call
6926 process_cu_includes.
6927 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6928 (partial_symtab_p): New typedef.
6929 (set_partial_user): New function.
6930 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6931 (scan_partial_symbols): Add imported CU to imported_symtabs.
6932 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6933 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6934 (get_symtab, recursively_compute_inclusions)
6935 (compute_symtab_includes, process_cu_includes)
6936 (process_imported_unit_die): New functions.
6937 (process_die) <DW_TAG_imported_unit>: New case.
6938 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6940 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6942 (struct partial_die_info) <locdesc>: Remove.
6944 (process_psymtab_comp_unit): Add 'read_partial' argument.
6946 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6947 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6948 (add_partial_symbol): Update.
6949 (process_die): Handle DW_TAG_partial_unit.
6950 (read_file_scope): Update comment.
6951 (load_partial_dies): Handle DW_TAG_imported_unit.
6952 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6953 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6955 2012-05-10 Tom Tromey <tromey@redhat.com>
6957 * cc-with-dwz.sh: New file.
6959 2012-05-10 Tom Tromey <tromey@redhat.com>
6961 * symtab.h (struct symtab) <includes, user>: New fields.
6962 * block.h (struct block_iterator) <d, idx, which>: New fields.
6963 * block.c (initialize_block_iterator, find_iterator_symtab)
6964 (block_iterator_step, block_iter_name_step)
6965 (block_iter_match_step): New functions.
6966 (block_iterator_first, block_iterator_next)
6967 (block_iter_name_first, block_iter_name_next)
6968 (block_iter_match_first, block_iter_match_next): Rewrite.
6969 (get_block_symtab): New function.
6971 2012-05-10 Tom Tromey <tromey@redhat.com>
6973 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6975 * jit.c (finalize_symtab): Use allocate_global_block,
6977 * buildsym.c (finish_block_internal): New function, from old
6979 (finish_block): Rewrite.
6980 (end_symtab): Use finish_block_internal, set_block_symtab.
6981 * block.h (struct global_block): New.
6982 (allocate_global_block, set_block_symtab): Declare.
6983 * block.c (allocate_global_block, set_block_symtab): New
6986 2012-05-10 Tom Tromey <tromey@redhat.com>
6988 * psymtab.c (partial_map_expand_apply): Add assertion.
6989 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6990 (psymtab_to_symtab): Find unshared psymtab.
6991 (dump_psymtab): Print including psymtabs.
6992 (recursively_search_psymtabs): New function.
6993 (expand_symtabs_matching_via_partial): Use it.
6994 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6996 (enum psymtab_search_status): New.
6998 2012-05-10 Tom Tromey <tromey@redhat.com>
7000 * tracepoint.c (scope_info): Update.
7001 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7002 (find_pc_sect_symtab, search_symbols)
7003 (default_make_symbol_completion_list_break_on)
7004 (make_file_symbol_completion_list): Update.
7005 * symmisc.c (dump_symtab_1): Update.
7006 * stack.c (print_frame_args, iterate_over_block_locals)
7007 (print_frame_labels, iterate_over_block_arg_vars): Update.
7008 * python/py-block.c (block_object) <dict>: Remove.
7010 <iter>: Change type.
7011 (blpy_iter): Update.
7012 (blpy_block_syms_iternext): Update.
7013 * psymtab.c (map_block): Use block iterators.
7014 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7015 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7016 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7017 * infrun.c (check_exception_resume): Update.
7018 * cp-support.c (make_symbol_overload_list_block): Update.
7019 * coffread.c (patch_opaque_types): Update.
7020 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7021 * block.h (struct block_iterator): New.
7022 (block_iterator_first, block_iterator_next, block_iter_name_first)
7023 (block_iter_name_next, block_iter_match_first)
7024 (block_iter_match_next): Declare.
7025 (ALL_BLOCK_SYMBOLS): Redefine.
7026 * block.c (block_iterator_first, block_iterator_next)
7027 (block_iter_name_first, block_iter_name_next)
7028 (block_iter_match_first, block_iter_match_next): New functions.
7029 * ada-lang.c (ada_add_block_symbols)
7030 (ada_make_symbol_completion_list): Use block iterator.
7032 2012-05-10 Tom Tromey <tromey@redhat.com>
7034 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7035 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7036 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7037 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7038 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7041 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7043 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7044 print-file-var-lib2.c, print-file-var-main.c and
7045 print-file-var.exp (located in gdb/testsuite/gdb.base).
7047 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7049 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7050 try locating the symbol in the symbol's own objfile first, before
7051 extending the search to all objfiles.
7052 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7053 out of lookup_symbol_aux_symtabs.
7054 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7055 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7056 Do not search EXCLUDE_OBJFILE.
7057 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7058 (lookup_symbol_global): Search for matches in the block's objfile
7059 first, before searching all other objfiles.
7061 2012-05-10 Tristan Gingold <gingold@adacore.com>
7063 * printcmd.c (set_command): Add pre/post inc/dec.
7065 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7067 * gdb.1: Document -ex option.
7069 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7071 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7072 * inferior.h (AT_SYMBOL): Delete.
7074 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7076 * mips-tdep.c (mips_push_dummy_code): New function.
7077 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7078 ON_STACK and install mips_push_dummy_code as our gdbarch
7079 push_dummy_code routine.
7081 2012-05-09 Pedro Alves <palves@redhat.com>
7083 * target.c (set_maintenance_target_async_permitted): Rename to ...
7084 (set_target_async_command): ... this.
7085 (show_maintenance_target_async_permitted): Rename to ...
7086 (show_target_async_command): ... this.
7087 (initialize_targets): Adjust.
7089 2012-05-08 Doug Evans <dje@google.com>
7091 * go-exp.y (classify_name): Add missing assignment of fields of
7094 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7096 Display the ">" prompt in interactive mode while reading canned
7097 commands, even when the current interpreter is MI.
7099 * interps.c (interp_set_temp): New function.
7101 * interps.h (interp_set_temp): Add prototype.
7103 * cli/cli-script.c (restore_interp): New cleanup function.
7104 (read_command_lines): Temporarily override the current interpreter
7105 with CLI and arrange for restoring the original one.
7107 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7109 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7111 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7113 * probe.c (parse_probes): Move conditional to check for
7114 debuginfo files from here...
7115 * stap-probe.c (stap_get_probes): ... to here.
7117 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7118 H.J. Lu <hongjiu.lu@intel.com>
7120 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7121 `movl %esp, %ebp' for the X32 ABI.
7123 2012-05-07 Tom Tromey <tromey@redhat.com>
7125 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7127 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7128 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7129 (dwarf_stack_op_name): Remove.
7130 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7131 (decode_locdesc): Use get_DW_OP_name.
7132 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7133 (dwarf2_compile_expr_to_ax): Likewise.
7134 (disassemble_dwarf_expression): Likewise.
7135 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7137 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7139 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7140 (sh_linux_sigtramp_cache): New function.
7141 (sh_linux_sigreturn_init): New function.
7142 (sh_linux_rt_sigreturn_init): New function.
7143 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7145 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7147 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7148 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7149 (sh_linux_init_abi): Add init calls to register new tramp_frame
7150 definitions under 32-bit SH, update comments.
7152 2012-05-07 Pedro Alves <palves@redhat.com>
7156 * amd64-linux-tdep.c: Include glibc-tdep.h.
7157 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7158 gdbarch_skip_solib_resolver callback.
7160 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7162 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7163 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7164 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7165 (add_auto_load_safe_path): Change the error message.
7166 (_initialize_auto_load): Change the "safe-path" help text.
7167 * configure: Regenerate
7168 * configure.ac (--without-auto-load-safe-path): Set
7169 WITH_AUTO_LOAD_SAFE_PATH to /.
7171 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7173 * stap-probe.h: Do not include unecessary `probe.h'.
7175 2012-05-05 Alan Modra <amodra@gmail.com>
7177 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7178 bfd_und_section_ptr.
7179 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7180 and bfd_com_section_ptr.
7182 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7184 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7186 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7188 * windows-nat.h (segment_register_p_ftype): New typedef.
7189 (windows_set_segment_register_p): Add declaration.
7190 * windows-nat.c (segment_register_p): New static global.
7191 (windows_set_segment_register_p): New function.
7192 (do_windows_fetch_inferior_registers): Add special handling
7193 for segment registers.
7194 * amd64-windows-nat.c: #include "amd64-tdep.h".
7195 (amd64_windows_segment_register_p): New function.
7196 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7197 * i386-windows-nat.c: #include "i386-tdep.h".
7198 (i386_windows_segment_register_p): New function.
7199 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7201 2012-05-04 Tristan Gingold <gingold@adacore.com>
7203 * printcmd.c (set_command): Emit a warning if the expression is not
7206 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7208 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7211 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7213 * stap-probe.c (stap_is_operator): Change declaration.
7214 (stap_get_opcode): Change return value.
7215 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7216 `stap_parse_argument_1'.
7218 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7220 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7223 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7225 Add two new methods global_block and static_block to gdb.Symtab
7227 * NEWS (Python scripting): Add entry about the new methods.
7228 * python/py-symtab.c (stpy_global_block): New function which
7229 implements the gdb.Symtab.global_block() method.
7230 (stpy_static_block): New function which implements the
7231 gdb.Symtab.static_block() method.
7232 (symtab_object_methods): Add entries for the two new methods.
7234 2012-05-03 Doug Evans <dje@google.com>
7236 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7239 2012-05-03 Yao Qi <yao@codesourcery.com>
7241 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7243 (i386_process_record): Ditto.
7245 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7247 * infcall.c (unwind_on_signal_p): Make static.
7249 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7251 * sol-thread.c (solaris_pid_to_str): Make static.
7252 (_initialize_sol_thread): Add prototype.
7254 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7256 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7258 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7260 * MAINTAINERS: Remove myself.
7262 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7264 Fix --without-auto-load-safe-path for MS-Windows host platform.
7265 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7267 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7269 * gdb_curses.h: Undefine KEY_EVENT before including curses
7270 headers. Move "#undef MOUSE_MOVED" before any curses header
7273 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7275 * features/i386/i386-mmx-linux.c: Regenerate.
7276 * features/rs6000/powerpc-32.c: Likewise.
7277 * features/rs6000/powerpc-32l.c: Likewise.
7278 * features/rs6000/powerpc-403.c: Likewise.
7279 * features/rs6000/powerpc-403gc.c: Likewise.
7280 * features/rs6000/powerpc-405.c: Likewise.
7281 * features/rs6000/powerpc-505.c: Likewise.
7282 * features/rs6000/powerpc-601.c: Likewise.
7283 * features/rs6000/powerpc-602.c: Likewise.
7284 * features/rs6000/powerpc-603.c: Likewise.
7285 * features/rs6000/powerpc-604.c: Likewise.
7286 * features/rs6000/powerpc-64.c: Likewise.
7287 * features/rs6000/powerpc-64l.c: Likewise.
7288 * features/rs6000/powerpc-750.c: Likewise.
7289 * features/rs6000/powerpc-860.c: Likewise.
7290 * features/rs6000/powerpc-e500.c: Likewise.
7291 * features/rs6000/powerpc-e500l.c: Likewise.
7292 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7293 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7294 * features/rs6000/rs6000.c: Likewise.
7296 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7298 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7300 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7301 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7302 (stap_parse_argument) <e>: Likewise.
7303 (handle_stap_probe) <byte_order>: Likewise.
7305 2012-04-30 Doug Evans <dje@google.com>
7307 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7308 init_and_read_dies_worker. All callers updated.
7309 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7310 replaced with init_cutu_and_read_dies.
7311 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7312 (find_partial_die): Remove FIXME. Don't free current CU.
7314 2012-04-30 Sterling Augustine <saugustine@google.com>
7316 * contrib: New directory.
7317 * contrib/test_pubnames_and_indexes.py: New file.
7319 2012-04-30 Doug Evans <dje@google.com>
7321 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7322 All callers updated.
7323 (init_cu_die_reader): Verify the section is non-empty.
7324 (dwarf_decode_line_header): Don't dereference section->asection
7325 until we know the section is present.
7327 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7329 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7332 2012-04-29 Yao Qi <yao@codesourcery.com>
7334 * gdb-code-style.el: New hook gdb-markup-hook
7335 and gdb-comment-hook.
7337 2012-04-28 Doug Evans <dje@google.com>
7339 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7340 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7342 * symfile.h (dwarf2_debug_sections): New member addr.
7343 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7344 (ctx_no_get_addr_index): New function.
7345 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7346 (ctx_no_get_addr_index): Declare.
7347 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7348 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7349 (dwarf_expr_ctx_funcs): Update.
7350 (needs_get_addr_index): New function.
7351 (needs_frame_ctx_funcs): Update.
7352 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7353 * dwarf2read.c: #include "gdbcore.h".
7354 (dwarf2_per_objfile): New members addr, dwo_files.
7355 (dwarf2_elf_names): Add entry for addr.
7356 (struct dwo_section_names): New type.
7357 (dwo_section_names): New static global.
7358 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7359 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7360 old debug_types_section member updated to use this.
7361 Rename member debug_types_section to info_or_types_section,
7363 (signatured_type): Rename member type_offset to type_offset_in_tu,
7364 all uses updated. New member type_offset_in_section.
7365 (struct dwo_sections): New type.
7366 (struct dwo_unit): New type.
7367 (struct dwo_file): New type.
7368 (die_reader_specs): New member dwo_file.
7369 (dwarf2_locate_sections): Watch for .debug_addr.
7370 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7371 (dwarf2_read_section): Get bfd of section from bfd's asection,
7373 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7374 (create_signatured_type_table_from_index): Initialize
7375 sig_type->info_or_types_section.
7376 (dw2_get_file_names): Statement lists for type units with DWO files
7377 live in the DWO file.
7378 (create_debug_types_hash_table): New function.
7379 (create_all_type_units): Rewrite.
7380 (init_cu_die_reader): New arg dwo_file, all callers updated.
7381 (init_and_read_dies_worker): Get section from
7382 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7383 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7384 continue reading the CU/TU from there.
7385 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7386 updated. Get section from this_cu->info_or_types_section.
7387 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7388 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7389 DW_FORM_GNU_str_index.
7390 (hash_dwo_file, eq_dwo_file): New functions.
7391 (allocate_dwo_file_hash_table): New function.
7392 (hash_dwo_unit, eq_dwo_unit): New functions.
7393 (allocate_dwo_unit_table): New function.
7394 (dwarf2_locate_dwo_sections): New function.
7395 (struct create_dwo_info_table_data): New type.
7396 (create_debug_info_hash_table_reader): New function.
7397 (create_debug_info_hash_table): New function.
7398 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7399 (lookup_dwo_file): New function.
7400 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7401 (free_dwo_file, free_dwo_file_cleanup): New functions.
7402 (free_dwo_file_from_slot, free_dwo_files): New functions.
7403 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7404 (dwarf2_record_block_ranges): Ditto.
7405 (read_partial_die): Ditto.
7406 (process_enumeration_scope): Update to use type_offset_in_section.
7407 (read_full_die_1): New function.
7408 (read_full_die): Rewrite.
7409 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7410 DW_FORM_GNU_str_index.
7411 (read_addr_index_1, read_addr_index): New functions.
7412 (read_addr_index_from_leb128): New function.
7413 (struct dwarf2_read_addr_index_data): New type.
7414 (dwarf2_read_addr_index_reader): New function.
7415 (dwarf2_read_addr_index): New function.
7416 (read_str_index): New function.
7417 (leb128_size): New function.
7418 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7419 If processing a type unit from a DWO file, get the line section
7421 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7422 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7423 DW_FORM_GNU_str_index.
7424 (lookup_die_type): Check whether section offset of type's die is
7425 known before looking it up. Remove assert. Condition can
7426 legimately happen for inter-cu type references.
7427 (dwarf_attr_name): Handle Fission attributes.
7428 (dwarf_form_name): Handle Fission forms.
7429 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7430 DW_FORM_GNU_str_index.
7431 (follow_die_sig): Update to use type_offset_in_section.
7432 (decode_locdesc): New case DW_OP_GNU_addr_index.
7433 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7434 DW_FORM_GNU_str_index.
7435 (cu_debug_loc_section): New function.
7436 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7437 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7438 Free DWO files if present.
7439 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7441 Refactor DIE reading.
7442 * dwarf2read.c (dwarf2_per_objfile): Replace members
7443 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7444 (die_reader_specs): New member "die_section". Temporarily make
7445 member "buffer" non-const, pending constifying all info_ptr uses.
7446 (die_reader_func_ftype): New typedef.
7447 (dw2_get_file_names_reader): New function.
7448 (dw2_get_file_names): Rewrite.
7449 (read_and_check_type_unit_head): Rename arg type_offset to
7451 (create_all_type_units): Improve debugging message.
7452 Improve dummy type unit check.
7453 (init_cu_die_reader): New arg "section". All callers updated.
7454 (init_and_read_dies_worker): New function.
7455 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7456 (init_cutu_and_read_dies_no_follow): New function.
7457 (init_cutu_and_read_dies_simple): New function.
7458 (process_psymtab_comp_unit_reader): New function.
7459 (process_psymtab_comp_unit): Delete args section,
7460 is_debug_types_section. Rewrite. All callers updated.
7461 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7462 All callers updated. Rewrite.
7463 (load_partial_comp_unit_reader): New function.
7464 (load_partial_comp_unit): Rewrite.
7465 (skip_children): New arg reader. Delete args buffer, cu.
7466 All callers updated.
7467 (skip_one_die): New arg reader. Delete args buffer, cu.
7468 All callers updated.
7469 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7470 All callers updated.
7471 (load_full_comp_unit_reader): New function.
7472 (load_full_comp_unit): Rewrite.
7473 (read_comp_unit): Delete.
7474 (read_die_and_children_1): Delete, contents moved ...
7475 (read_die_and_children): ... here.
7476 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7477 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7478 All callers updated.
7479 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7480 All callers updated.
7481 (find_partial_die): Rewrite load_all_dies support.
7482 (read_attribute_value): New arg reader. Delete args abfd, cu.
7483 All callers updated.
7484 (read_attribute): New arg reader. Delete args abfd, cu.
7485 All callers updated.
7486 (load_full_type_unit): Add assert.
7487 (read_signatured_type_reader): New function.
7488 (read_signatured_type): Rewrite.
7489 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7490 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7491 All callers updated. Set per_cu->cu = NULL after freeing it.
7492 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7493 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7494 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7495 (set_die_type): Update.
7496 (get_die_type_at_offset): Update.
7497 (read_file_scope): Call prepare_one_comp_unit.
7498 (read_type_unit_scope): Ditto.
7499 (prepare_one_comp_unit): Set producer if present.
7501 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7503 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7504 gettext function on `error'.
7506 2012-04-27 Doug Evans <dje@google.com>
7508 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7511 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7512 Tom Tromey <tromey@redhat.com>
7514 * breakpoint.c (struct breakpoint_objfile_data)
7515 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7516 <exception_probes>: New fields.
7517 (free_breakpoint_probes): New function.
7518 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7519 `_Unwind_DebugHook'.
7520 (create_exception_master_breakpoint): Likewise.
7521 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7522 * infrun.c: Including necessary header files for handling SystemTap
7524 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7525 via SystemTap probes.
7526 (check_exception_resume): Remove `func' argument. Handle exception
7527 unwinding breakpoint set via a SystemTap probe.
7528 (insert_exception_resume_from_probe): New function.
7530 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7531 Tom Tromey <tromey@redhat.com>
7532 Jan Kratochvil <jan.kratochvil@redhat.com>
7534 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7535 (COMMON_OBS): Likewise.
7536 (HFILES_NO_SRCDIR): Add `probe'.
7537 * NEWS: Mention support for static and SystemTap probes.
7538 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7539 SystemTap probes' arguments parser.
7540 * arm-linux-tdep.c: Including headers needed to perform the parsing
7541 of SystemTap probes' arguments.
7542 (arm_stap_is_single_operand): New function.
7543 (arm_stap_parse_special_token): Likewise.
7544 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7545 probes' arguments parser.
7546 * ax-gdb.c (require_rvalue): Removing static declaration.
7547 (gen_expr): Likewise.
7548 * ax-gdb.h (gen_expr): Declaring function.
7549 (require_rvalue): Likewise.
7550 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7551 (bkpt_probe_breakpoint_ops): New variable.
7552 (momentary_breakpoint_from_master): Set the `probe' value.
7553 (add_location_to_breakpoint): Likewise.
7554 (break_command_1): Using proper breakpoint_ops according to the
7555 argument passed by the user in the command line.
7556 (bkpt_probe_insert_location): New function.
7557 (bkpt_probe_remove_location): Likewise.
7558 (bkpt_probe_create_sals_from_address): Likewise.
7559 (bkpt_probe_decode_linespec): Likewise.
7560 (tracepoint_probe_create_sals_from_address): Likewise.
7561 (tracepoint_probe_decode_linespec): Likewise.
7562 (tracepoint_probe_breakpoint_ops): New variable.
7563 (trace_command): Using proper breakpoint_ops according to the
7564 argument passed by the user in the command line.
7565 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7566 static probes on breakpoints and tracepoints.
7567 * breakpoint.h (struct bp_location) <probe>: New field.
7568 * cli-utils.c (skip_spaces_const): New function.
7569 (extract_arg): Likewise.
7570 * cli-utils.h (skip_spaces_const): Likewise.
7571 (extract_arg): Likewise.
7572 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7573 * configure.ac: Append `stap-probe.o' to be generated when ELF
7575 * configure: Regenerate.
7576 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7577 * elfread.c: Include `probe.h' and `arch-utils.h'.
7578 (probe_key): New variable.
7579 (elf_get_probes): New function.
7580 (elf_get_probe_argument_count): Likewise.
7581 (elf_evaluate_probe_argument): Likewise.
7582 (elf_compile_to_ax): Likewise.
7583 (elf_symfile_relocate_probe): Likewise.
7584 (stap_probe_key_free): Likewise.
7585 (elf_probe_fns): New variable.
7586 (elf_sym_fns): Add `sym_probe_fns' value.
7587 (elf_sym_fns_lazy_psyms): Likewise.
7588 (elf_sym_fns_gdb_index): Likewise.
7589 (_initialize_elfread): Initialize objfile cache for static
7591 * gdb_vecs.h (struct probe): New forward declaration.
7592 (probe_p): New VEC declaration.
7593 * gdbarch.c: Regenerate.
7594 * gdbarch.h: Regenerate.
7595 * gdbarch.sh (stap_integer_prefix): New variable.
7596 (stap_integer_suffix): Likewise.
7597 (stap_register_prefix): Likewise.
7598 (stap_register_suffix): Likewise.
7599 (stap_register_indirection_prefix): Likewise.
7600 (stap_register_indirection_suffix): Likewise.
7601 (stap_gdb_register_prefix): Likewise.
7602 (stap_gdb_register_suffix): Likewise.
7603 (stap_is_single_operand): New function.
7604 (stap_parse_special_token): Likewise.
7605 (struct stap_parse_info): Forward declaration.
7606 * i386-tdep.c: Including headers needed to perform the parsing
7607 of SystemTap probes' arguments.
7608 (i386_stap_is_single_operand): New function.
7609 (i386_stap_parse_special_token): Likewise.
7610 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7611 probes' arguments parser.
7612 * i386-tdep.h (i386_stap_is_single_operand): New function.
7613 (i386_stap_parse_special_token): Likewise.
7614 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7615 * mipsread.c (ecoff_sym_fns): Likewise.
7616 * objfiles.c (objfile_relocate1): Support relocation for static
7618 * parse.c (prefixify_expression): Remove static declaration.
7619 (initialize_expout): Likewise.
7620 (reallocate_expout): Likewise.
7621 * parser-defs.h (initialize_expout): Declare function.
7622 (reallocate_expout): Likewise.
7623 (prefixify_expression): Likewise.
7624 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7625 of SystemTap probes' arguments.
7626 (ppc_stap_is_single_operand): New function.
7627 (ppc_stap_parse_special_token): Likewise.
7628 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7629 probes' arguments parser.
7630 * probe.c: New file, for generic statically defined probe support.
7631 * probe.h: Likewise.
7632 * s390-tdep.c: Including headers needed to perform the parsing of
7633 SystemTap probes' arguments.
7634 (s390_stap_is_single_operand): New function.
7635 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7636 probes' arguments parser.
7637 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7638 * stap-probe.c: New file, for SystemTap probe support.
7639 * stap-probe.h: Likewise.
7640 * symfile.h: Include `gdb_vecs.h'.
7641 (struct sym_probe_fns): New struct.
7642 (struct sym_fns) <sym_probe_fns>: New field.
7643 * symtab.c (init_sal): Initialize `probe' field.
7644 * symtab.h (struct probe): Forward declaration.
7645 (struct symtab_and_line) <probe>: New field.
7646 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7648 (stop_tracing): Likewise.
7649 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7651 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7652 Tom Tromey <tromey@redhat.com>
7654 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7655 and to compile agent expressions.
7656 * infrun.c (siginfo_make_value): New argument `ignore'.
7657 (siginfo_funcs): New struct.
7658 (_initialize_infrun): New argument when calling
7659 `create_internalvar_type_lazy'.
7660 * thread.c (thread_id_make_value): New argument `ignore'.
7661 (thread_funcs): New struct.
7662 (_initialize_thread): New argument when calling
7663 `create_internalvar_type_lazy'.
7664 * tracepoint.c (sdata_make_value): New argument `ignore'.
7665 (sdata_funcs): New struct.
7666 (_initialize_tracepoint): New argument when calling
7667 `create_internalvar_type_lazy'.
7668 * value.c (make_value): New struct.
7669 (create_internalvar_type_lazy): New argument `data'.
7670 (compile_internalvar_to_ax): New function.
7671 (value_of_internalvar): Properly handling `make_value' case.
7672 (clear_internalvar): Likewise.
7673 (show_convenience): Adding `TRY_CATCH' block.
7674 * value.h (internalvar_make_value): Delete, replace by...
7675 (struct internalvar_funcs): ... this.
7676 (create_internalvar_type_lazy) <fun>: Delete argument.
7677 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7678 (compile_internalvar_to_ax): New function.
7679 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7680 (tlb_funcs): New struct.
7681 (_initialize_windows_tdep): New argument when calling
7682 `create_internalvar_type_lazy'.
7684 2012-04-27 Mark Wielaard <mjw@redhat.com>
7686 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7687 see whether it is an address or a constant offset from DW_AT_low_pc.
7688 (dwarf2_record_block_ranges): Likewise.
7689 (read_partial_die): Likewise.
7691 2012-04-26 Mark Wielaard <mjw@redhat.com>
7693 * MAINTAINERS (Write After Approval): Add myself to the list.
7695 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7697 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7698 (proc_prettyprint_signal): Likewise.
7699 (proc_prettyprint_faultset): Likewise.
7700 (proc_prettyprint_fault): Likewise.
7701 (proc_prettyprint_actionset): Likewise.
7702 (proc_prettyprint_flags): Move to new proc-flags.c section.
7703 (proc_prettyfprint_flags): New prototype.
7704 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7705 (proc_syscall, proc_cursig): Likewise.
7706 (proc_set_kill_on_last_close): Likewise.
7707 (proc_unset_kill_on_last_close): Likewise.
7708 (proc_set_watchpoint): Make static.
7709 (proc_delete_dead_threads): Likewise.
7710 (procfs_set_watchpoint): Likewise.
7711 (_initialize_procfs): Add prototype.
7712 * proc-events.c: Include proc-utils.h.
7713 (init_syscall_table): Make static.
7714 * proc-api.c (_initialize_proc_api): Add prototype.
7715 * proc-flags.c: Include proc-utils.h.
7717 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7719 * configure.ac: Add AC_ARG_PROGRAM.
7720 * configure: Regenerate.
7722 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7724 Fix DW_AT_lower_bound defaults for DWARF-4+.
7725 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7726 high. New variable low_default_is_valid. Implement DWARF-4+
7727 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7728 no default by the DWARF standard.
7730 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7731 Maciej W. Rozycki <macro@codesourcery.com>
7733 * infrun.c (handle_inferior_event): Move the check for return
7734 trampolines ahead of the check for function trampolines.
7735 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7736 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7737 (mips_str_mips16_ret_stub): Likewise.
7738 (mips_str_call_fp_stub): Likewise.
7739 (mips_str_call_stub): Likewise.
7740 (mips_str_fn_stub): Likewise.
7741 (mips_str_pic): Likewise.
7742 (mips_in_frame_stub): New function.
7743 (mips_unwind_pc): Return the return address rather than the PC
7744 if the PC of an intermediate frame is inside a call thunk.
7745 (mips_is_stub_suffix): New function.
7746 (mips_is_stub_mode): Likewise.
7747 (mips_get_mips16_fn_stub_pc): Likewise.
7748 (mips_skip_mips16_trampoline_code): Update to handle all the
7749 currently generated stub types. Don't recurse into __fn_stub
7750 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7751 Use cooked register accesses.
7752 (mips_in_return_stub): Reintroduce function.
7753 (mips_skip_trampoline_code): Traverse trampolines recursively.
7754 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7756 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7760 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7762 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7763 * features/arm-with-m-vfp-d16.xml: New file. Describes
7764 Cortex-M with VFPv4-sp-d16 FPU register layout.
7765 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7766 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7767 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7768 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7769 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7771 2012-04-25 Doug Evans <dje@google.com>
7773 * cli/cli-decode.c (print_doc_line): Use stream instead of
7776 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7778 * features/arm-with-iwmmxt.c: Regenerate.
7779 * features/arm-with-m-fpa-layout.c: Likewise.
7780 * features/arm-with-m.c: Likewise.
7781 * features/arm-with-neon.c: Likewise.
7782 * features/arm-with-vfpv2.c: Likewise.
7783 * features/arm-with-vfpv3.c: Likewise.
7784 * features/mips-dsp-linux.c: Likewise.
7785 * features/mips-linux.c: Likewise.
7786 * features/mips64-dsp-linux.c: Likewise.
7787 * features/mips64-linux.c: Likewise.
7788 * features/s390-linux32.c: Likewise.
7789 * features/s390-linux32v1.c: Likewise.
7790 * features/s390-linux32v2.c: Likewise.
7791 * features/s390-linux64.c: Likewise.
7792 * features/s390-linux64v1.c: Likewise.
7793 * features/s390-linux64v2.c: Likewise.
7794 * features/s390x-linux64.c: Likewise.
7795 * features/s390x-linux64v1.c: Likewise.
7796 * features/s390x-linux64v2.c: Likewise.
7797 * features/tic6x-c62x-linux.c: Likewise.
7798 * features/tic6x-c62x.c: Likewise.
7799 * features/tic6x-c64x-linux.c: Likewise.
7800 * features/tic6x-c64x.c: Likewise.
7801 * features/tic6x-c64xp-linux.c: Likewise.
7802 * features/tic6x-c64xp.c: Likewise.
7803 * target-descriptions.c: Only generate `field_type' and `type'
7804 variables when needed.
7806 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7808 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7810 2012-04-25 Doug Evans <dje@google.com>
7812 Initial pass at Go language support.
7814 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7816 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7817 (YYFILES): Add go-exp.c.
7818 (YYOBJ): Add go-exp.o.
7819 (local-maintainer-clean): Delete go-exp.c.
7820 * defs.h (enum language): Add language_go.
7821 * dwarf2read.c: #include "go-lang.h".
7822 (fixup_go_packaging): New function.
7823 (process_full_comp_unit): Call it when processing Go CUs.
7824 (dwarf2_physname): Add Go support.
7825 (read_file_scope): Handle missing language spec for GNU Go.
7826 (set_cu_language): Handle DW_LANG_Go.
7827 * go-exp.y: New file.
7828 * go-lang.h: New file.
7829 * go-lang.c: New file.
7830 * go-typeprint.c: New file.
7831 * go-valprint.c: New file.
7832 * symtab.c: #include "go-lang.h".
7833 (symbol_set_language): Handle language_go.
7834 (symbol_find_demangled_name, symbol_set_names): Ditto.
7835 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7837 2012-04-24 Jim Meyering <meyering@redhat.com>
7839 avoid a few strncpy-induced buffer overruns
7840 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7841 fname and psargs before trying to concatenate.
7842 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7843 "name" before applying strchr.
7845 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7847 * CONTRIBUTE: Use unified diff instead of context diff when
7850 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7852 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7853 code. Handle JR.HB correctly.
7855 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7858 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7859 with the other MIPS16 helpers.
7861 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7863 * observer.sh: Conditionally declare `args', thus cleaning up
7864 unused instances of this variable.
7866 2012-04-24 Yao Qi <yao@codesourcery.com>
7868 Revert this patch to allow breakpoint always-inserted
7870 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7871 * breakpoint.c: Include record.h.
7872 (breakpoints_always_inserted_mode): Return false when the record
7875 * breakpoint.c (iterate_over_bp_locations): New.
7876 * breakpoint.h: Declare.
7877 New typedef walk_bp_location_callback.
7878 * record.c (record_open): Call record_init_record_breakpoints.
7879 (record_sync_record_breakpoints): New.
7880 (record_init_record_breakpoints): New.
7881 * NEWS: Mention supporting breakpoint always-inserted mode in
7884 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7886 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7889 2012-04-24 Yao Qi <yao@codesourcery.com>
7891 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7892 (is_catchpoint): ... it.
7893 (print_one_breakpoint_location): Caller update.
7894 * breakpoint.h: Update declaration.
7896 2012-04-23 David S. Miller <davem@davemloft.net>
7898 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7900 2012-04-23 Tom Tromey <tromey@redhat.com>
7902 * buildsym.c (add_free_pendings): Remove.
7903 * buildsym.h (add_free_pendings): Remove.
7905 2012-04-23 Doug Evans <dje@google.com>
7907 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7908 attr.u.unsnd instead of attr.u.addr.
7909 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7910 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7912 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7913 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7915 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7917 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7919 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7920 (mips_o32_return_value): Likewise.
7921 (mips_o64_return_value): Likewise.
7923 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7925 * ada-lang.c (ada_evaluate_subexp): Add cases for
7926 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7927 their treatment in eval.c.
7929 2012-04-21 David S. Miller <davem@davemloft.net>
7931 * sparc-tdep.c (X_DISP10): Define.
7932 (sparc_analyze_control_transfer): Handle compare-and-branch.
7934 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7936 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7937 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7939 2012-04-20 Nigel Stephens <nigel@mips.com>
7940 Maciej W. Rozycki <macro@codesourcery.com>
7942 * mips-tdep.c (mips_float_register_p): New function.
7943 (mips_convert_register_float_case_p): Use mips_float_register_p.
7944 (mips_register_type): Likewise.
7945 (mips_print_register): Likewise.
7946 (print_gp_register_row): Likewise.
7947 (mips_print_registers_info): Likewise.
7949 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7951 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7954 2012-04-20 Andrew Pinski <apinski@cavium.com>
7956 * MAINTAINERS (Write After Approval): Add myself to the list.
7958 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7960 * MAINTAINERS: Update my e-mail address.
7962 2012-04-20 Pedro Alves <palves@redhat.com>
7964 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7966 * configure: Regenerate.
7968 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7970 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7972 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7974 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7976 Fix compilation compatibility with python-2.4
7977 * python/py-type.c (convert_field): Cast ADDRSTRING for
7978 PyObject_SetAttrString as non-const. New comment.
7980 2012-04-19 Tom Tromey <tromey@redhat.com>
7982 * top.c (quit_target): Use all_cleanups.
7983 * main.c (captured_command_loop): Use all_cleanups.
7984 * exceptions.c (throw_exception): Use all_cleanups.
7986 2012-04-19 Pedro Alves <palves@redhat.com>
7988 * Makefile.in (GNULIB_BUILDDIR): New.
7989 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7990 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7991 (CLEANDIRS). Remove gnulib/import.
7992 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7994 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7995 (gnulib/import/Makefile): Replace gnulib/import with
7996 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7997 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7998 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7999 acx_configure_dir.m4.
8000 * acinclude.m4: Include acx_configure_dir.m4.
8001 * acx_configure_dir.m4: New file.
8002 * aclocal.m4: Regenerate.
8003 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8004 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8005 (GNULIB): New variable.
8006 (GNULIB_STDINT_H): Adjust.
8007 (AC_OUTPUT): Don't output gnulib/Makefile.
8008 * gdb/defs.h: Include build-gnulib/config.h.
8009 * aclocal.m4: Regenerate.
8010 * config.in: Regenerate.
8011 * configure: Regenerate.
8013 * gnulib/Makefile.in: New file.
8014 * gnulib/configure.ac: New file.
8015 * gnulib/aclocal.m4: New file.
8016 * gnulib/config.in: New file.
8017 * gnulib/configure: New file.
8018 * gnulib/: Re-run gnulib-tool to adjust.
8020 2012-04-19 Doug Evans <dje@google.com>
8022 * cleanups.h (struct cleanup): Move to cleanups.c.
8023 (make_cleanup_dtor_ftype): New typedef.
8024 (make_cleanup_dtor): Use it.
8025 (ALL_CLEANUPS): Replace with ...
8026 (all_cleanups): ... this. Declare. All uses updated.
8027 * cleanups.c: #include "gdb_assert.h".
8028 (sentinel_cleanup): New static global.
8029 (SENTINEL_CLEANUP): Define.
8030 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8031 (make_my_cleanup2): Assert result is non-NULL.
8032 (all_cleanups): New function.
8033 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8036 2012-04-19 Pedro Alves <palves@redhat.com>
8038 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8039 Adjust paths to gnulib imported files.
8041 2012-04-19 Pedro Alves <palves@redhat.com>
8043 * gnulib/: Move whole directory ...
8044 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8045 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8046 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8047 (aclocal_m4_deps): Adjust.
8048 * aclocal.m4: Regenerate.
8049 * configure: Regenerate.
8050 * configure.ac: Adjust AC_OUTPUT output.
8052 2012-04-19 Yao Qi <yao@codesourcery.com>
8054 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8056 * vec.c: Move it ...
8057 * common/vec.c: ... here.
8058 * vec.h: Move it ...
8059 * common/vec.h: ... here.
8061 2012-04-19 Yao Qi <yao@codesourcery.com>
8063 * gdb-code-style.el: New.
8065 2012-04-18 Pedro Alves <palves@redhat.com>
8067 Update gnulib from latest git.
8068 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8070 * gnulib/Makefile.am: Update.
8071 * gnulib/dummy.c: Update.
8072 * gnulib/extra/arg-nonnull.h: Update.
8073 * gnulib/extra/c++defs.h: Update.
8074 * gnulib/extra/update-copyright: Update.
8075 * gnulib/extra/warn-on-use.h: Update.
8076 * gnulib/inttypes.in.h: Update.
8077 * gnulib/m4/00gnulib.m4: Update.
8078 * gnulib/m4/extensions.m4: Update.
8079 * gnulib/m4/gnulib-cache.m4: Update.
8080 * gnulib/m4/gnulib-common.m4: Update.
8081 * gnulib/m4/gnulib-comp.m4: Update.
8082 * gnulib/m4/gnulib-tool.m4: Update.
8083 * gnulib/m4/include_next.m4: Update.
8084 * gnulib/m4/inttypes-pri.m4: Update.
8085 * gnulib/m4/inttypes.m4: Update.
8086 * gnulib/m4/longlong.m4: Update.
8087 * gnulib/m4/memchr.m4: Update.
8088 * gnulib/m4/memmem.m4: Update.
8089 * gnulib/m4/mmap-anon.m4: Update.
8090 * gnulib/m4/multiarch.m4: Update.
8091 * gnulib/m4/onceonly.m4: Update.
8092 * gnulib/m4/stddef_h.m4: Update.
8093 * gnulib/m4/stdint.m4: Update.
8094 * gnulib/m4/string_h.m4: Update.
8095 * gnulib/m4/warn-on-use.m4: Update.
8096 * gnulib/m4/wchar_h.m4: Update.
8097 * gnulib/m4/wchar_t.m4: Update.
8098 * gnulib/m4/wint_t.m4: Update.
8099 * gnulib/memchr.c: Update.
8100 * gnulib/memmem.c: Update.
8101 * gnulib/stddef.in.h: Update.
8102 * gnulib/stdint.in.h: Update.
8103 * gnulib/str-two-way.h: Update.
8104 * gnulib/string.in.h: Update.
8105 * gnulib/wchar.in.h: Update.
8107 * gnulib/extra/arg-nonnull.h: Delete.
8108 * gnulib/extra/c++defs.h: Delete.
8109 * gnulib/extra/warn-on-use.h: Delete.
8110 * gnulib/m4/wchar_h.m4: Delete.
8111 * gnulib/m4/wint_t.m4: Delete.
8112 * gnulib/wchar.in.h: Delete.
8114 * gnulib/extra/snippets/arg-nonnull.h: New.
8115 * gnulib/extra/snippets/c++defs.h: New.
8116 * gnulib/extra/snippets/warn-on-use.h: New.
8118 * aclocal.m4: Regenerate.
8119 * config.in: Regenerate.
8120 * configure: Regenerate.
8121 * gnulib/Makefile.in: Regenerate.
8123 2012-04-18 Pedro Alves <palves@redhat.com>
8125 Reimport the update-copyright module from gnulib
8126 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8128 * configure: Regenerate.
8129 * gnulib/Makefile.am: Update.
8130 * gnulib/Makefile.in: Regenerate.
8131 * gnulib/extra/update-copyright: Update.
8132 * gnulib/m4/gnulib-cache.m4: Update.
8133 * gnulib/m4/gnulib-comp.m4: Update.
8135 2012-04-18 Tristan Gingold <gingold@adacore.com>
8137 * configure.ac (aix): Put -lpthread into libs.
8138 * configure: Regenerate.
8140 2012-04-18 Tom Tromey <tromey@redhat.com>
8142 * linespec.c (convert_linespec_to_sals): Don't use
8144 (compare_msymbols): Arguments are minsym_and_objfile, not
8145 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8147 2012-04-18 Pedro Alves <palves@redhat.com>
8149 Revert gnulib/ part of:
8150 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8151 Copyright year update in most files (performed by copyright.sh).
8153 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8155 Fix 64-bit constants on 32-bit hosts.
8156 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8157 from unsigned long to ULONGEST.
8158 (read_signed_leb128): Change declaration return type from long to
8160 (dwarf2_const_value_attr): Change declaration parameter value from long
8162 (dwarf2_compute_name): Change variable value from long to LONGEST.
8163 (read_unsigned_leb128): Change return type, variable result and some
8164 casts from unsigned long to ULONGEST.
8165 (read_signed_leb128): Change return type, variable result and some
8166 casts from long to LONGEST.
8167 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8168 value from long to LONGEST.
8169 (dwarf2_const_value): Change variable value from long to LONGEST.
8170 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8171 plongest and hex_string.
8172 * symtab.h (struct general_symbol_info): Change ivalue from long to
8173 LONGEST, remove the comment.
8174 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8175 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8177 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8180 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8181 * ada-lang.c (ada_discrete_type_high_bound)
8182 (ada_discrete_type_low_bound): Fix function comment. Use
8183 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8184 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8185 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8186 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8187 Use TYPE_FIELD_ENUMVAL.
8188 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8189 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8190 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8191 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8193 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8194 * dwarf2read.c (process_enumeration_scope): Likewise.
8195 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8197 (class StructMainTypePrettyPrinter): Support also
8198 FIELD_LOC_KIND_ENUMVAL.
8199 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8201 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8202 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8203 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8204 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8206 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8207 accommodate enumval.
8208 (struct call_site): Adjust loc_kind to accommodate enumval.
8209 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8210 (TYPE_FIELD_ENUMVAL): New macros.
8211 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8212 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8214 * p-typeprint.c (pascal_type_print_base): Likewise.
8215 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8217 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8218 * python/py-type.c (convert_field): New variable addrstring. Use
8219 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8220 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8221 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8222 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8224 * valprint.c (generic_val_print): Likewise.
8226 2012-04-17 Doug Evans <dje@google.com>
8228 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8230 * dwarf2read.c: Whitespace fixes.
8231 (lookup_signatured_type): Tweak comment.
8232 (get_die_type_at_offset): Fix comment.
8234 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8236 * xcoffread.c (xcoff_secnum_to_sections): New function.
8237 (secnum_to_section, secnum_to_bfd_section): Reimplement
8238 using xcoff_secnum_to_sections. Rename "secnum" parameter
8240 (RECORD_MINIMAL_SYMBOL): Delete.
8241 (record_minimal_symbol): New function.
8242 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8243 by call to record_minimal_symbol and set misc_func_recorded
8244 to 1. Set last_csect_sec to the XCOFF section index instead
8245 of GDB's section_offset index. Update calls to
8246 prim_record_minimal_symbol_and_info to pass the BFD section
8249 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8251 * xcoffread.c (read_xcoff_symtab): Delete variables
8252 last_csect_val and last_csect_sec and associated code.
8254 2012-04-17 Doug Evans <dje@google.com>
8256 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8257 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8258 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8259 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8261 * cleanups.h: New file.
8262 * cleanups.c: New file.
8263 * Makefile.in (SFILES): Add cleanups.c.
8264 (HFILES_NO_SRCDIR): Add cleanups.h.
8265 (COMMON_OBS): Add cleanups.o.
8266 * defs.h (struct cleanup): Moved to cleanups.h.
8267 (do_cleanups,do_final_cleanups): Ditto.
8268 (discard_cleanups,discard_final_cleanups): Ditto
8269 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8270 (save_cleanups,save_final_cleanups): Ditto.
8271 (restore_cleanups,restore_final_cleanups): Ditto.
8272 (null_cleanup): Ditto.
8273 (make_my_cleanup,make_my_cleanup2): Ditto.
8274 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8275 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8276 (do_cleanups,do_final_cleanups): Ditto.
8277 (discard_cleanups,discard_final_cleanups): Ditto
8278 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8279 (save_cleanups,save_final_cleanups): Ditto.
8280 (restore_cleanups,restore_final_cleanups): Ditto.
8281 (null_cleanup): Ditto.
8282 (make_my_cleanup,make_my_cleanup2): Ditto.
8283 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8285 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8287 (make_cleanup_dyn_string_delete): Ditto.
8288 (make_cleanup_ui_file_delete): Ditto.
8289 (make_cleanup_ui_out_redirect_pop): Ditto.
8290 (make_cleanup_free_section_addr_info): Ditto.
8291 (make_cleanup_restore_integer): Ditto.
8292 (make_cleanup_unpush_target): Ditto.
8293 (make_cleanup_value_free_to_mark): Ditto.
8294 (make_cleanup_value_free): Ditto.
8295 (make_cleanup_free_so): Ditto.
8297 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8299 New option "set debug auto-load".
8300 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8301 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8302 (auto_load_safe_path_vec_update)
8303 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8305 (file_is_auto_load_safe): New parameters debug_fmt and ....
8306 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8307 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8308 caller by explanatory string.
8309 (_initialize_auto_load): Register "set debug auto-load".
8310 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8312 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8313 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8314 by explanatory string.
8315 * main.c (captured_main): Likewise.
8316 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8317 (source_section_scripts): Likewise.
8319 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8321 New option "set auto-load safe-path".
8322 * NEWS: New commands "set auto-load safe-path"
8323 and "show auto-load safe-path".
8324 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8325 (auto_load_safe_path, auto_load_safe_path_vec)
8326 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8327 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8328 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8329 (source_gdb_script_for_objfile): New variable is_safe. Call
8330 file_is_auto_load_safe. Return if it is not.
8331 (struct loaded_script): New field loaded.
8332 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8333 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8334 output "Missing" to "No".
8335 (_initialize_auto_load): New variable cmd. Initialize
8336 auto_load_safe_path. Register "set auto-load safe-path",
8337 "show auto-load safe-path" and "add-auto-load-safe-path".
8338 * auto-load.h (maybe_add_script): Add parameter loaded.
8339 (file_is_auto_load_safe): New declaration.
8340 * config.in: Regenerate.
8341 * configure: Regenerate.
8342 * configure.ac: New parameters --with-auto-load-safe-path
8343 and --without-auto-load-safe-path.
8344 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8345 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8346 * main.c (captured_main): Check file_is_auto_load_safe for
8348 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8349 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8350 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8353 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8355 auto-load: Implementation.
8356 * NEWS: New descriptions for "info auto-load",
8357 "info auto-load gdb-scripts", "info auto-load python-scripts",
8358 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8359 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8360 and "show auto-load-scripts". New description for "set auto-load",
8361 "show auto-load", "set auto-load gdb-scripts",
8362 "show auto-load gdb-scripts", "set auto-load python-scripts",
8363 "show auto-load python-scripts", "set auto-load local-gdbinit",
8364 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8365 "show auto-load libthread-db".
8366 * auto-load.c: Remove include python/python-internal.h. Add includes
8367 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8369 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8370 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8371 (gdbpy_global_auto_load): Rename to ...
8372 (global_auto_load): ... here.
8373 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8374 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8375 (script_language_gdb, source_gdb_script_for_objfile): New.
8376 (struct loaded_script): New field language.
8377 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8379 (maybe_add_script): Add parameter language. Drop redundant
8380 entry.full_path initialization. Initialize entry.language and
8382 (auto_load_objfile_script): Change parameter suffix to language.
8383 Remove the call of maybe_add_script.
8384 Call language->source_script_for_objfile.
8385 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8387 (collect_matching_scripts): Adjust it for
8388 struct collect_matching_scripts_data.
8389 (auto_load_info_scripts_pattern_nl): New variable.
8390 (info_auto_load_scripts): Rename to ...
8391 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8392 for struct collect_matching_scripts_data.
8393 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8394 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8395 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8396 (auto_load_info_cmdlist_get): New.
8397 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8398 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8399 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8400 "info auto-load local-gdbinit".
8401 * auto-load.h (struct script_language): New.
8402 (gdbpy_global_auto_load): Rename to ...
8403 (global_auto_load): ... here.
8404 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8405 (auto_load_local_gdbinit_loaded): New declarations.
8406 (maybe_add_script): New parameter language.
8407 (auto_load_objfile_script): Change parameter suffix to language.
8408 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8409 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8410 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8412 * linux-thread-db.c: Include auto-load.h and ctype.h.
8413 (auto_load_thread_db, show_auto_load_thread_db): New.
8414 (struct thread_db_info): New field filename.
8415 (delete_thread_db_info): Call xfree for FILENAME.
8416 (try_thread_db_load): Initialize FILENAME.
8417 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8418 if !AUTO_LOAD_THREAD_DB.
8419 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8420 (_initialize_thread_db): Install auto_load_thread_db
8421 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8422 as "info auto-load libthread-db".
8423 * main.c (captured_main): Rename gdbpy_global_auto_load to
8424 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8425 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8426 (print_gdb_help): Extend the help for 'local init file'.
8427 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8428 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8429 (auto_load_scripts): Rename to ...
8430 (auto_load_python_scripts): ... here, update the comment.
8431 (gdbpy_load_auto_script_for_objfile): New declaration.
8432 (show_auto_load_python_scripts, script_language_python)
8433 (gdbpy_load_auto_script_for_objfile): New.
8434 (source_section_scripts): Refactor the code.
8435 (load_auto_scripts_for_objfile): Rename to ...
8436 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8437 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8438 (info_auto_load_python_scripts): New.
8439 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8440 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8441 Register "set auto-load-scripts" as its deprecated alias. Register
8442 "info auto-load python-scripts". Register "info auto-load-scripts" as
8443 its deprecated alias.
8444 (load_auto_scripts_for_objfile): Rename to ...
8445 (gdbpy_load_auto_scripts_for_objfile): ... here.
8446 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8447 (gdbpy_load_auto_scripts_for_objfile): ... here.
8449 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8451 auto-load: Move files.
8452 * Makefile.in (SFILES): Add auto-load.c.
8453 (HFILES_NO_SRCDIR): Add auto-load.h.
8454 (COMMON_OBS): Add auto-load.o.
8455 (distclean): Change .gdbinit for gdb-gdb.gdb.
8456 * auto-load.c: New file, with parts from python/py-auto-load.c.
8457 * auto-load.h: New file, with parts from python/python.h.
8458 * configure: Regenerate.
8459 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8460 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8461 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8462 * main.c: Include auto-load.h.
8463 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8464 command.h, observer.h and progspace.h to auto-load.c. Add include
8466 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8467 (struct loaded_script, auto_load_pspace_data)
8468 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8469 (hash_loaded_script_entry, eq_loaded_script_entry)
8470 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8471 (maybe_add_script): Move to auto-load.c.
8472 (source_section_scripts): Change maybe_add_script parameters passing,
8473 use script_not_found_warning_print.
8474 (clear_section_scripts, auto_load_objfile_script)
8475 (auto_load_new_objfile, loaded_script_ptr)
8476 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8477 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8478 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8479 auto_load_new_objfile and info_auto_load_scripts initizations to
8481 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8483 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8486 * charset.c (find_charset_names): Remove variables ix and elt.
8487 Use free_char_ptr_vec.
8488 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8489 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8490 debugdir_end. New variable debugdir_len.
8491 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8492 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8494 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8495 and elt. Use free_char_ptr_vec.
8496 * source.c (add_path): Remove variables argv, arg and argv_index.
8497 New variables dir_vec, back_to, ix and name.
8498 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8499 make_cleanup_freeargv. Remove variable separator. Simplify the code
8500 no longer expecting DIRNAME_SEPARATOR.
8501 (openp): Remove variable p, p1 and len. New variables dir_vec,
8502 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8503 no longer expecting DIRNAME_SEPARATOR.
8504 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8505 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8507 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8508 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8509 (dirnames_to_char_ptr_vec): New functions.
8511 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8514 * source.c (add_path): Remove always true conditional 'p == 0' and
8515 unindent its code block.
8517 2012-04-17 Pedro Alves <palves@redhat.com>
8519 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8520 (FIELD_BITPOS_LVAL): ... this.
8521 (FIELD_BITPOS): New.
8522 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8523 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8524 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8526 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8528 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8529 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8530 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8533 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8535 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8536 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8537 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8538 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8539 * jv-lang.c (java_link_class_type): Likewise, once.
8540 * stabsread.c (read_enum_type): Likewise.
8542 2012-04-16 Yao Qi <yao@codesourcery.com>
8544 * common/agent.c (agent_run_command): Add one more parameter `len'.
8546 * common/agent.h: Update declaration.
8547 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8549 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8551 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8554 * value.c (value_actual_type): New function.
8555 * value.h (value_actual_type): New declaration.
8556 * varobj.c (update_type_if_necessary): New function.
8557 (varobj_create): Call value_actual_type instead of
8559 (install_dynamic_child): distinct changed and type changed MI variable
8561 (update_dynamic_varobj_children): Updated for install_dynamic_child
8562 change. All callers updated.
8563 (varobj_update): Support for MI variable object type change if
8564 the value changed and RTTI is used to determine the type.
8565 (create_child_with_value): Call value_actual_type instead of
8567 (adjust_value_for_child_access): Extended with a new parameter which
8568 specify whether the given value should be casted to enclosing type.
8569 All callers updated.
8571 2012-04-14 Yao Qi <yao@codesourcery.com>
8573 Import gnulib module inttypes from git
8574 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8575 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8576 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8577 gnulib/m4/inttypes-pri.m4
8578 * aclocal.m4, config.in, configure: Regenerated.
8579 * gnulib/Makefile.am: Update.
8580 * gnulib/Makefile.in: Update.
8581 * gnulib/m4/gnulib-cache.m4: Update.
8582 * gnulib/m4/gnulib-comp.m4: Update.
8583 * gnulib/inttypes.in.h: New.
8584 * gnulib/m4/inttypes-pri.m4: New.
8585 * gnulib/m4/inttypes.m4: New.
8587 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8589 * infrun.c (resume): Update PC address to the real PC after
8590 preparing to do displaced stepping.
8592 2012-04-12 Doug Evans <dje@google.com>
8594 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8595 All callers updated.
8597 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8599 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8601 2012-04-12 Doug Evans <dje@google.com>
8603 * dwarf2read.c (create_all_type_units): Renamed from
8604 create_debug_types_hash_table. All callers updated.
8606 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8607 local type_sig to sig_type, type_offset to type_offset_in_tu.
8608 (hash_signatured_type): Renamed from hash_type_signature,
8609 all callers updated.
8610 (eq_signatured_type): Renamed from eq_type_signature,
8611 all callers updated.
8612 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8613 (process_enumeration_scope): Ditto.
8614 (lookup_signatured_type_at_offset): Ditto.
8615 (load_full_type_unit, read_signatured_type): Ditto.
8617 2012-04-12 Yao Qi <yao@codesourcery.com>
8619 * remote.c (async_remote_interrupt): Correct function name in
8621 (async_remote_interrupt_twice): Ditto.
8623 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8625 * source.c (find_and_open_source): Consistently pass resulting
8626 full path through xfullpath.
8628 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8630 Provide more specific displaced-stepping memory error message.
8631 * infrun.c (displaced_step_prepare): New variable status. Call
8632 target_read_memory instead of read_memory, provide more specific
8635 2012-04-11 Tristan Gingold <gingold@adacore.com>
8638 * darwin-nat.c (darwin_execvp): Revert previous patch.
8640 2012-04-11 Tristan Gingold <gingold@adacore.com>
8643 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8646 2012-04-11 Tristan Gingold <gingold@adacore.com>
8648 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8651 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8653 New command 'explore' which helps explore values and types in
8655 * NEWS: Add an entry about the new 'explore' command.
8656 * data-directory/Makefile.in: Add gdb/command/explore.py
8657 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8658 command using the GDB Python API.
8660 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8662 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8663 extension in jump target calculation.
8665 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8667 * mips-tdep.c (mips32_next_pc): Handle JALX.
8669 2012-04-10 Yao Qi <yao@codesourcery.com>
8671 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8673 2012-04-10 Yao Qi <yao@codesourcery.com>
8675 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8676 and gnulib/m4/gnulib-tool.m4.
8678 2012-04-10 Doug Evans <dje@google.com>
8680 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8681 (load_partial_dies): Clarify comment.
8682 (find_partial_die): Support rereading type units.
8683 Clarify CU handling, if we know offset is in CU, don't search for the
8684 containing CU. Add comment regarding memory waste.
8686 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8688 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8689 i386/x32-avx and i386/x32-avx-linux.
8690 (i386/x32-expedite): New.
8691 (i386/x32-linux-expedite): Likewise.
8692 (i386/x32-avx-expedite): Likewise.
8693 (i386/x32-avx-linux-expedite): Likewise.
8694 ($(outdir)/i386/x32.dat): Likewise.
8695 ($(outdir)/i386/x32-linux.dat): Likewise.
8696 ($(outdir)/i386/x32-avx.dat): Likewise.
8697 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8699 * features/i386/x32-avx-linux.xml: New file.
8700 * features/i386/x32-avx.xml: Likewise.
8701 * features/i386/x32-core.xml: Likewise.
8702 * features/i386/x32-linux.xml: Likewise.
8703 * features/i386/x32.xml: Likewise.
8705 * features/i386/x32-avx-linux.c: New. Generated.
8706 * features/i386/x32-avx.c: Likewise.
8707 * features/i386/x32-linux.c: Likewise.
8708 * features/i386/x32.c: Likewise.
8709 * regformats/i386/x32-avx-linux.dat: Likewise.
8710 * regformats/i386/x32-avx.dat: Likewise.
8711 * regformats/i386/x32-linux.dat: Likewise.
8712 * regformats/i386/x32.dat: Likewise.
8714 2012-04-10 Tristan Gingold <gingold@adacore.com>
8716 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8717 code to kill the inferior.
8719 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8721 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8723 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8725 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8726 (yyvsp): New defines.
8727 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8729 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8731 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8733 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8735 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8738 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8740 * sparc64-tdep.c (sparc64_store_arguments)
8741 (sparc64_store_arguments): Fix coding style.
8743 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8745 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8746 complex floats, adjust some related comments and tighten a related
8748 (sparc64_extract_return_value): Handle complex floats.
8750 2012-04-07 Doug Evans <dje@google.com>
8752 * dwarf2read.c (load_partial_dies): Change condition to assert.
8754 2012-04-06 Doug Evans <dje@google.com>
8756 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8759 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8761 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8763 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8764 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8767 2012-04-05 Keith Seitz <keiths@redhat.com>
8769 * linespec.c (decode_compound): Remove.
8770 (enum offset_relative_sign): New enum.
8771 (struct line_offset): New struct.
8772 (struct linespec): New struct.
8773 (struct linespec_state): Move file_symtabs,
8774 user_filename, and user_function into struct linespec.
8775 Make result an anonymous struct holding vectors of
8776 symbolp and minsym_and_objfile_d.
8777 Add language member.
8778 (enum ls_token_type): New enum.
8779 (linespec_keywords): New array.
8780 (struct ls_token): New struct.
8781 (struct ls_parser): New struct.
8782 (linespec_lexer_lex_number): New function.
8783 (linespec_lexer_lex_keyword): New function.
8784 (is_ada_operator): New function.
8785 (skip_quote_char): New function.
8786 (copy_token_string): New function.
8787 (is_closing_quote_enclosed): New function.
8788 (find_parameter_list_end): New function.
8789 (linespec_lexer_lex_string): New function.
8790 (linespec_lexer_lex_one): New function.
8791 (linespec_lexer_consume_token): New function.
8792 (linespec_lexer_peek_token): New function.
8793 (cplusplus_error): Remove unused function.
8794 (find_methods): Update comment.
8795 (find_toplevel_char): Return const.
8796 (is_objc_method_format): Remove unused function.
8797 (find_toplevel_string): New function.
8798 (is_linespec_boundary): Remove.
8799 (symbol_not_found_error): New function.
8800 (find_method_overload_end): Remove function.
8801 (unexpected_linespec_error): New function.
8802 (keep_name_info): Remove.
8803 (linespec_parse_line_offset): New function.
8804 (linespec_parse_basic): New function.
8805 (canonicalize_linespec): New function.
8806 (decode_line_internal): Remove.
8807 (create_sals_line_offset): New function adapted from
8809 (convert_linespec_to_sals): New function.
8810 (parse_linespec): New function.
8811 (linespec_parser_new): New function.
8812 (linespec_state_destructor): Change parameter type to
8813 struct linespec_state *.
8814 Add language parameter.
8815 Remove freeing of moved members.
8816 (linespec_parser_delete): New function.
8817 (decode_line_full): Use parse_linespec and linespec_parser_new.
8818 (decode_line_1): Likewise.
8819 (decode_indirect): Rename to ...
8820 (linespec_expression_to_pc): ... this and rewrite
8821 to simply find CORE_ADDR, storing this result for later
8823 (locate_first_half): Remove.
8824 (deocde_objc): Add parameter LS.
8825 Initialize new struct collect_info members.
8826 Handle minimal symbols, too.
8827 (decode_compound): Delete.
8828 (lookup_prefix_sym): Rewrite.
8829 (compare_msymbols): New function.
8830 (find_method): Rewrite.
8831 Do not call cplusplus_error.
8832 (symtabs_from_filename): Rewrite.
8833 (collect_function_symbols): Delete.
8834 (find_function_symbols): Rewrite without ARGPTR-style
8836 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8837 (decode_dollar): Adapted and renamed to ...
8838 (linespec_parse_variable): ... this.
8839 (find_linespec_symbols): New function.
8840 (decode_label): Adapted and renamed to ...
8841 (find_label_symbols): ... this.
8842 (decode_digits_list_mode): Add and use LS argument.
8843 (decode_digits_ordinary): Likewise.
8844 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8845 If in list mode, allow any symbol class. Otherwise, only
8846 permit LOC_BLOCK symbols.
8847 (minsym_found): Update comments.
8848 (search_minsyms_for_name): Do not convert the matching symbol
8849 into a SAL. Simply push the symbol and objfile into the
8851 (decode_variable): Delete. Contents adapted into
8852 find_linespec_symbols.
8854 * cp-support.c (SKIP_SPACE): Remove.
8855 (operator_tokens): Remove unused global.
8856 (cp_validate_operator): Remove.
8857 * cp-support.h (cp_validate_operator): Remove declaration.
8859 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8861 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8862 for TYPE_VPTR_FIELDNO.
8863 * valprint.c (valprint_check_validity): Make it global, move the
8864 function comment ...
8865 * value.h (valprint_check_validity): ... to this new declaration.
8867 2012-04-02 Tristan Gingold <gingold@adacore.com>
8869 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8870 the STATE32 api for i386 state.
8871 (i386_darwin_store_inferior_registers): Likewise.
8873 2012-04-02 Tristan Gingold <gingold@adacore.com>
8875 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8877 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8880 2012-04-02 Tristan Gingold <gingold@adacore.com>
8883 * darwin-nat.c (darwin_execvp): Set binary preference.
8885 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8887 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8889 2012-03-30 Tom Tromey <tromey@redhat.com>
8891 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8892 of TRY_CATCH. Fix error handling.
8893 * python/py-value.c (convert_value_from_python): Move 'old'
8894 declaration to innermost scope.
8896 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8897 Andrey Smirnov <andrew.smirnov@gmail.com>
8899 -Wshadow warning fix.
8900 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8901 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8902 Adjust code accordingly.
8904 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8906 * ada-lang.c (symbol_completion_add): Rename parameter
8907 "encoded" into "encoded_p". Ajust code and documentation
8910 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8911 Andrey Smirnov <andrew.smirnov@gmail.com>
8913 -Wshadow warning fix.
8914 * ada-lang.c (symbol_completion_add): Rename parameter
8915 "wild_match" into wild_match_p. Update code and documentation
8918 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8920 * ada-lang.c (symbol_completion_match): Rename parameter
8921 "encoded" into "encoded_p". Ajust code and documentation
8924 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8925 Andrey Smirnov <andrew.smirnov@gmail.com>
8927 -Wshadow warning fix.
8928 * ada-lang.c (symbol_completion_match): Rename parameter
8929 "wild_match" into "wild_match_p". Adjust code and function
8930 documentation accordingly.
8932 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8933 Andrey Smirnov <andrew.smirnov@gmail.com>
8935 -Wshadow warning fix.
8936 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8937 "symbol_info" into "info". Adjust code accordingly.
8938 (ada_lookup_symbol): Likewise.
8940 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8942 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8943 of this function's documentation.
8945 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8946 Andrey Smirnov <andrew.smirnov@gmail.com>
8948 -Wshadow warning fix.
8949 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8950 variable into "wild_match_p". Adjust code accordingly.
8952 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8953 Andrey Smirnov <andrew.smirnov@gmail.com>
8955 -Wshadow warning fix.
8956 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8957 parameter into "wild_match_p". Adjust code accordingly.
8958 Document this parameter in the function description.
8960 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8961 Andrey Smirnov <andrew.smirnov@gmail.com>
8963 -Wshadow warning fix.
8964 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8965 "wild_match" parameter to "wild_match_p" (-Wshadow).
8967 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8969 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8970 in function documentation.
8972 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8973 Andrey Smirnov <andrew.smirnov@gmail.com>
8975 -Wshadow warning fix.
8976 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8977 variable into wild_match_p. Adjust code accordingly.
8979 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8980 Andrey Smirnov <andrew.smirnov@gmail.com>
8982 * ada-valprint.c (ada_val_print_1): Move the code handling
8983 TYPE_CODE_ENUM inside its own lexical block. Declare
8984 variables len and val there, instead of in the function's
8985 top level block. Avoid declaring deref_val again in a way
8986 that shadows another variable of the same name declared
8987 in one of the up-level blocks. Just re-use the up-level
8990 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8992 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8993 Replace block_found argument by symbol_info. Adjust
8994 implementation accordingly. Add function documentation.
8995 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8997 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8998 * ada-exp.y (write_object_renaming): Adjust to new
8999 ada_lookup_encoded_symbol API.
9001 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9003 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9006 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9008 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9009 (v850_register_name): Add the mpu and fpu register names.
9010 (v850e_register_name): Add the mpu and fpu register names.
9011 (v850e2_register_name): New function.
9012 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9015 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9017 * NEWS: Add entry for Ada varobj support.
9019 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9021 * varobj.c (default_value_is_changeable_p): New function,
9022 extracted from varobj_value_is_changeable_p. Add declaration.
9023 (ada_value_is_changeable_p): New function, extracted from
9024 varobj_value_is_changeable_p. Add declaration.
9025 (struct language_specific): New field "value_is_changeable_p".
9026 (languages): Add entries for new field.
9027 (varobj_create): Set language before calling install_new_value.
9028 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9029 "value_is_changeable_p" language callback.
9031 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9033 * ada-varobj.h, ada-varobj.c: New files.
9034 * Makefile.in (SFILES): Add ada-varobj.c.
9035 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9036 (COMMON_OBS): Add ada-varobj.o.
9038 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9040 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9041 (struct language_specific): New field "value_has_mutated".
9042 (languages): Set field "value_has_mutated" in each entry of array.
9043 (varobj_value_has_mutated): New function.
9044 (varobj_udpdate): Add handling of type mutation.
9045 (value_of_root): Add handling of type mutation.
9046 (ada_value_has_mutated): New function.
9048 2012-03-28 Pedro Alves <palves@redhat.com>
9050 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9051 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9053 2012-03-28 Tom Tromey <tromey@redhat.com>
9055 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9056 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9059 2012-03-28 Tom Tromey <tromey@redhat.com>
9061 * .dir-locals.el: New file.
9063 2012-03-28 Pedro Alves <palves@redhat.com>
9065 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9067 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9069 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9072 2012-03-27 Pedro Alves <palves@redhat.com>
9074 Eliminate struct ui_stream.
9076 * ui-out.h (struct ui_stream): Delete.
9077 (ui_out_field_stream): Adjust prototype.
9078 (ui_out_stream_new, ui_out_stream_delete)
9079 (make_cleanup_ui_out_stream_delete): Delete declarations.
9080 * ui-out.c (ui_out_field_stream): Change prototype to take a
9081 ui_file instead of a ui_stream. Adjust.
9082 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9083 (make_cleanup_ui_out_stream_delete): Delete.
9084 * breakpoint.c (print_breakpoint_location)
9085 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9086 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9087 * disasm.c (dump_insns): Ditto.
9088 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9090 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9091 ui_stream/ui_out_stream_new.
9092 * infcmd.c (print_return_value): Ditto.
9093 * osdata.c (info_osdata_command): Don't allocate a local
9095 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9096 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9097 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9098 allocate a local ui_stream.
9099 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9100 instead of ui_stream/ui_out_stream_new.
9101 (list_args_or_locals): Don't allocate a local ui_stream.
9102 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9103 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9104 ui_stream/ui_out_stream_new.
9105 * cli/cli-setshow.c (do_setshow_command): Ditto.
9107 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9109 * arm-linux-tdep.c (arm_linux_init_abi): Call
9110 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9111 * arm-tdep.c (arm_process_record): New function.
9112 (deallocate_reg_mem): New function.
9113 (decode_insn): New function.
9114 (thumb_record_branch): New function.
9115 (thumb_record_ldm_stm_swi(): New function.
9116 (thumb_record_misc): New function.
9117 (thumb_record_ld_st_stack): New function.
9118 (thumb_record_ld_st_imm_offset): New function.
9119 (thumb_record_ld_st_reg_offset(): New function.
9120 (thumb_record_add_sub_cmp_mov): New function.
9121 (thumb_record_shift_add_sub): New function.
9122 (arm_record_coproc_data_proc): New function.
9123 (arm_record_coproc): New function.
9124 (arm_record_b_bl): New function.
9125 (arm_record_ld_st_multiple): New function.
9126 (arm_record_ld_st_reg_offset): New function.
9127 (arm_record_ld_st_imm_offset): New function.
9128 (arm_record_data_proc_imm): New function.
9129 (arm_record_data_proc_misc_ld_str): New function.
9130 (arm_record_extension_space): New function.
9131 (arm_record_strx): New function.
9132 (sbo_sbz): New function.
9133 (struct insn_decode_record): New structure for arm insn record.
9134 (REG_ALLOC): New macro for reg allocations.
9135 (MEM_ALLOC): New macro for memory allocations.
9136 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9138 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9140 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9141 (store_register): Likewise.
9143 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9145 * MAINTAINERS (Write After Approval): Add myself to the list.
9147 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9149 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9150 Describe also the option "auto".
9152 2012-03-22 Richard Henderson <rth@redhat.com>
9154 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9155 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9157 2012-03-22 Richard Henderson <rth@redhat.com>
9159 * jit.c (jit_read_code_entry): Compute alignment and offset of
9160 int64_t member before computing entry_size.
9162 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9164 Python scripting: Add new method Value.referenced_value to
9165 gdb.Value which can dereference pointer as well as reference
9167 * NEWS: Add entry under 'Python scripting' about the new method
9168 Value.referenced_value on gdb.Value objects.
9169 * python/py-value.c (valpy_referenced_value): New function
9170 defining a new method on gdb.Value objects which can dereference
9171 pointer and reference values.
9173 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9175 * MAINTAINERS (Write After Approval): Add myself to the list.
9177 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9179 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9180 in addition to "main".
9182 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9184 * expression.h (op_name): Add declaration.
9185 * expprint.c (op_name): Remove declaration. Make non-static.
9186 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9188 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9190 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9192 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9193 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9194 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9195 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9196 (linux_nat_get_siginfo): Likewise.
9197 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9198 (linux_nat_get_siginfo): Likewise.
9199 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9200 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9201 * procfs.c (gdb_siginfo_t): Likewise.
9203 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9205 * .gitignore: Ignore more files.
9207 2012-03-20 Pedro Alves <palves@redhat.com>
9209 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9212 2012-03-20 Yao Qi <yao@codesourcery.com>
9214 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9217 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9219 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9220 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9221 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9223 * dwarf2expr.h (cu_offset, sect_offset): New types.
9224 (struct dwarf_expr_context_funcs) <dwarf_call>
9225 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9227 (struct dwarf_expr_context) <len>: Improve the comment.
9228 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9229 cu_offset and sect_offset.
9230 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9231 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9232 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9233 * dwarf2loc.h: Include dwarf2expr.h.
9234 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9236 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9237 Improve the comment.
9238 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9239 (struct signatured_type, struct line_header, struct partial_die_info)
9240 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9241 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9242 (get_die_type_at_offset, create_cus_from_index)
9243 (create_signatured_type_table_from_index, dw2_get_file_names)
9244 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9245 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9246 (create_debug_types_hash_table, process_psymtab_comp_unit)
9247 (load_partial_comp_unit, create_all_comp_units)
9248 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9249 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9250 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9251 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9252 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9253 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9254 (find_partial_die, read_attribute_value, lookup_die_type)
9255 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9256 (is_ref_attr): New function comment.
9257 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9258 Use cu_offset and sect_offset.
9259 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9260 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9261 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9262 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9263 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9264 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9265 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9268 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9271 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9272 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9274 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9276 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9278 * NEWS: Describe new options --init-command=FILE, -ix and
9279 --init-eval-command=COMMAND, -iex.
9280 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9281 CMDARG_INIT_COMMAND.
9282 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9283 "init-command", "init-eval-command", "ix" and "iex" to the variable
9284 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9285 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9286 (print_gdb_help): Describe --init-command=FILE, -ix and
9287 --init-eval-command=COMMAND, -iex.
9289 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9292 * main.c (struct cmdarg): Move it here from main. Add more comments.
9293 (cmdarg_s, VEC (cmdarg_s)): New.
9294 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9295 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9296 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9297 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9300 2012-03-19 Tom Tromey <tromey@redhat.com>
9302 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9304 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9307 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9310 2012-03-16 Chris January <chris.january@allinea.com>
9312 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9315 2012-03-16 Chris January <chris.january@allinea.com>
9317 * source.c (add_path): Use memmove instead of strcpy because the
9320 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9322 * value.h (set_value_parent): Add declaration.
9323 * value.c (set_value_parent): New function.
9324 (value_address): If VALUE->PARENT is not NULL, then use it as
9325 the base address instead of VALUE->LOCATION.address.
9326 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9327 the same as OBJ's address. Adjust V's offset accordingly.
9330 2012-03-16 Gary Benson <gbenson@redhat.com>
9332 PR breakpoints/10738
9333 * dwarf2read.c (use_deprecated_index_sections): New global.
9334 (struct partial_die_info): New member may_be_inlined.
9335 (read_partial_die): Set may_be_inlined where appropriate.
9336 (add_partial_subprogram): Add partial symbols for partial
9337 DIEs that may be inlined.
9338 (new_symbol_full): Add inlined subroutines to the current
9340 (write_psymtabs_to_index): Bump version number.
9341 (dwarf2_read_index): Read only version 6 indices unless
9342 use_deprecated_index_sections is set.
9343 * linespec.c (symbol_and_data_callback): New structure.
9344 (iterate_inline_only): New function.
9345 (iterate_over_all_matching_symtabs): New argument
9346 "include_inline". If nonzero, also call the callback for
9347 symbols representing inlined subroutines.
9348 (lookup_prefix_sym): Pass extra argument to the above.
9349 (find_function_symbols): Likewise.
9350 (add_matching_symbols_to_info): Likewise.
9351 * NEWS: Mention that GDB can now set breakpoints on inlined
9354 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9356 * p-typeprint.c (pascal_type_print_method_args):
9357 Fix display of parameter of methods.
9359 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9361 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9362 Add missing prototype.
9364 2012-03-16 Yao Qi <yao@codesourcery.com>
9365 Jan Kratochvil <jan.kratochvil@redhat.com>
9367 Fix false compilation warning.
9368 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9370 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9371 Pedro Alves <pedro@codesourcery.com>
9373 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9374 (arm_register_g_packet_guesses): New function.
9375 (arm_gdbarch_init): Don't force a target description with
9376 registers when the executable is detected as M-profile. Instead
9377 set gdbarch->tdep->is_m. Register `g' packet guesses.
9378 (_initialize_arm_tdep): Initialize the new target description.
9379 * features/arm-with-m-fpa-layout.xml: New description.
9380 * features/arm-with-m-fpa-layout.c: New, generated.
9382 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9384 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9385 Update function description.
9386 (insert_bp_location): Do not wipe bl->target_info out.
9387 * mem-break.c: #include "gdb_string.h".
9388 (default_memory_insert_breakpoint): Do not call target_read_memory
9389 with a pointer to the breakpoint's shadow_contents buffer. Use
9390 a local buffer instead.
9391 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9393 2012-03-15 Tom Tromey <tromey@redhat.com>
9395 * NEWS: Mention "info vtbl", not "info vtable".
9396 * cp-support.c (info_vtbl_command): Fix comment.
9397 (_initialize_cp_support): Fix text.
9399 2012-03-15 Tom Tromey <tromey@redhat.com>
9401 * cp-valprint.c (cp_print_value_fields): Use
9402 print_function_pointer_address for vtable slot.
9404 2012-03-15 Tom Tromey <tromey@redhat.com>
9406 * gnu-v3-abi.c (struct value_and_voffset): New.
9407 (hash_value_and_voffset, eq_value_and_voffset)
9408 (compare_value_and_voffset, compute_vtable_size)
9409 (print_one_vtable, gnuv3_print_vtable): New functions.
9410 (init_gnuv3_ops): Initialize 'print_vtable' field.
9411 * cp-support.c (info_vtbl_command): New function.
9412 (_initialize_cp_support): Add "info vtbl".
9413 * cp-abi.h (cplus_print_vtable): Declare.
9414 (struct cp_abi_ops) <print_vtable>: New field.
9415 * cp-abi.c (cplus_print_vtable): New function.
9418 2012-03-15 Tom Tromey <tromey@redhat.com>
9420 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9421 iterate_over_symbols.
9423 2012-03-14 Doug Evans <dje@google.com>
9425 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9426 DW_OP_GNU_parameter_ref.
9428 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9430 Fix double prompt of 'interpreter-exec mi'.
9431 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9432 (mi_interpreter_resume): use it.
9433 (mi_execute_command_input_handler): New function.
9434 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9435 mi_execute_command_input_handler.
9437 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9439 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9441 (darwin_debug_port_info): Make static.
9442 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9443 * machoread.c (_initialize_machoread): Add prototype.
9444 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9445 (i386_darwin_set_control, i386_darwin_get_control)
9446 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9447 i386_darwin_get_status, i386_darwin_get_control):
9448 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9450 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9452 * ax-gdb.c (gen_usual_unary): Remove special handling of
9453 enum and bool types.
9455 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9457 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9459 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9461 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9463 2012-03-13 Chris January <chris.january@allinea.com>
9465 * aix-thread.c (fill_sprs): Store the floating point registers
9466 at the correct offsets into vals.
9468 2012-03-13 Doug Evans <dje@google.com>
9470 * NEWS: Mention symbol-reloading has been deleted.
9471 * symfile.c (symbol_reloading): Delete.
9472 (show_symbol_reloading): Delete.
9473 (_initialize_symfile): Delete set/show symbol-reloading.
9475 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9476 read_in_chain until we have successfully read it in.
9477 (load_full_comp_unit): Ditto.
9478 (read_signatured_type): Add comment.
9480 2012-03-13 Chris January <chris.january@allinea.com>
9482 * stabsread.c (fix_common_block): Change type of valu argument
9485 2012-03-13 Chris January <chris.january@allinea.com>
9487 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9490 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9492 * common/linux-procfs.c (linux_proc_get_int): New, from
9493 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9495 (linux_proc_get_tgid): Only call linux_proc_get_int.
9496 (linux_proc_get_tracerpid): New.
9497 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9498 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9499 linux_proc_pid_has_state.
9500 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9501 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9502 (linux_ptrace_attach_warnings): New.
9503 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9505 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9506 (linux_nat_attach): New variables ex, buffer, message and message_s.
9507 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9509 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9511 * Makefile.in (linux-ptrace.o): New.
9512 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9514 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9515 * common/linux-ptrace.c: New file.
9516 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9517 * config/arm/linux.mh: Likewise.
9518 * config/i386/linux.mh: Likewise.
9519 * config/i386/linux64.mh: Likewise.
9520 * config/ia64/linux.mh: Likewise.
9521 * config/m32r/linux.mh: Likewise.
9522 * config/m68k/linux.mh: Likewise.
9523 * config/mips/linux.mh: Likewise.
9524 * config/pa/linux.mh: Likewise.
9525 * config/powerpc/linux.mh: Likewise.
9526 * config/powerpc/ppc64-linux.mh: Likewise.
9527 * config/powerpc/spu-linux.mh: Likewise.
9528 * config/s390/s390.mh: Likewise.
9529 * config/sparc/linux.mh: Likewise.
9530 * config/sparc/linux64.mh: Likewise.
9531 * config/xtensa/linux.mh: Likewise.
9532 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9533 common/linux-procfs.c.
9534 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9536 2012-03-13 Hui Zhu <teawater@gmail.com>
9537 Pedro Alves <palves@redhat.com>
9539 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9540 CREATE_BREAKPOINT_FLAGS_INSERTED.
9541 (create_breakpoint_sal, create_breakpoints_sal)
9542 (base_breakpoint_create_breakpoints_sal)
9543 (tracepoint_create_breakpoints_sal)
9544 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9546 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9547 (ftrace_command, strace_command): Adjust.
9548 (create_tracepoint_from_upload): Pass
9549 CREATE_BREAKPOINT_FLAGS_INSERTED.
9550 * breakpoint.h (enum breakpoint_create_flags): New.
9551 (create_breakpoint): New flags parameter.
9552 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9553 * python/py-breakpoint.c (bppy_init): Adjust.
9554 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9555 * spu-tdep.c (spu_catch_start): Adjust.
9557 2012-03-13 Pedro Alves <palves@redhat.com>
9558 Hui Zhu <teawater@gmail.com>
9559 Yao Qi <yao@codesourcery.com>
9561 * remote.c (struct remote_state): New field `starting_up'.
9562 (remote_start_remote): Set and clear it.
9563 (remote_can_download_tracepoint): If starting up, return false.
9565 2012-03-13 Yao Qi <yao@codesourcery.com>
9567 * inferior.h (struct inferior): Remove fields any_syscall_count,
9568 syscalls_counts and total_syscalls_count. Move them to new
9569 struct catch_syscall_inferior_data in breakpoint.c.
9570 * breakpoint.c: Call DEF_VEC_I(int).
9571 (struct catch_syscall_inferior_data): New.
9572 (get_catch_syscall_inferior_data): New.
9573 (catch_syscall_inferior_data_cleanup): New.
9574 (insert_catch_syscall): Update to access data in
9575 struct catch_syscall_inferior_data.
9576 (insert_catch_syscall): Likewise.
9577 (remove_catch_syscall): Likewise.
9578 (remove_catch_syscall): Likewise.
9579 (is_syscall_catchpoint_enabled): Likewise.
9580 (add_catch_command): Likewise.
9581 (_initialize_breakpoint): Register cleanup.
9582 * breakpoint.h: Removed DEF_VEC_I(int).
9583 * dwarf2loc.c: Call DEF_VEC_I(int).
9584 * mi/mi-main.c: Likewise.
9586 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9588 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9590 2012-03-12 Chris January <chris.january@allinea.com>
9592 * aix-thread.c (_initialize_aix_thread): Add prototype.
9593 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9594 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9596 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9598 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9599 include of "amd64-nat.h".
9601 2012-03-12 Tom Tromey <tromey@redhat.com>
9603 * buildsym.c (record_pending_block): Now static.
9604 * buildsym.h: (record_pending_block): Remove.
9606 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9608 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9610 2012-03-09 Tom Tromey <tromey@redhat.com>
9612 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9613 producer_is_gxx_lt_4_6>: New fields.
9614 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9616 2012-03-09 Tom Tromey <tromey@redhat.com>
9618 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9620 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9622 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9625 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9627 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9629 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9631 Fix -Wmissing-prototypes build.
9632 * arm-linux-nat.c (get_thread_id): Make it static.
9633 * xtensa-linux-nat.c (get_thread_id): Likewise.
9635 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9637 * server.c (process_point_options): If a conditional expression
9638 is found, only print a message if remote_debug is nonzero.
9640 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9642 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9643 of internal error for unknown/unsupported types.
9645 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9647 Fix CU relative vs. absolute DIE offsets.
9648 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9649 offset to offset_in_cu.
9650 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9652 (dwarf2_fetch_die_location_block): Rename parameter offset to
9653 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9655 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9657 * libunwind-frame.c: Rename to ...
9658 * ia64-libunwind-tdep.c: ... here.
9659 * libunwind-frame.h: Rename to ...
9660 * ia64-libunwind-tdep.h: ... here.
9661 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9662 ia64-libunwind-tdep.h.
9663 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9664 * README (--with-libunwind): Rename to ...
9665 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9666 * config.in: Regenerate.
9667 * configure: Regenerate.
9668 * configure.ac: New option --with-libunwind-ia64, make the
9669 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9670 Remove AC_DEFINE for HAVE_LIBUNWIND.
9671 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9672 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9673 Rename libunwind-frame in the general comment.
9674 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9675 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9676 Move forward declarations inside #ifndef. Rename libunwind-frame in
9677 the general comment.
9678 * ia64-tdep.c: Rename libunwind-frame.h #include to
9679 ia64-libunwind-tdep.h.
9680 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9681 (ia64_libunwind_descr): Rename libunwind-frame to
9682 ia64-libunwind-tdep in these function comments.
9683 * ia64-tdep.h: Rename libunwind-frame.h #include to
9684 ia64-libunwind-tdep.h.
9685 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9686 ia64-libunwind-tdep in that data comment.
9688 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9690 * libunwind-frame.h (struct frame_unwind): New declaration.
9692 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9694 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9695 "set breakpoint condition-evaluation" command.
9697 2012-03-08 Tristan Gingold <gingold@adacore.com>
9699 * sparc-stub.c: Move to stubs/
9700 * sh-stub.c: Likewise.
9701 * m68k-stub.c: Likewise.
9702 * m32r-stub.c: Likewise.
9703 * i386-stub.c: Likewise.
9705 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9707 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9708 linux_get_siginfo_type.
9710 * m68klinux-nat.c: Include "gdb_proc_service.h".
9711 (PTRACE_GET_THREAD_AREA): Define.
9712 (ps_get_thread_area): New function.
9714 2012-03-08 Yao Qi <yao@codesourcery.com>
9716 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9718 (remote_query_attached): Likewise.
9719 (remote_static_tracepoint_marker_at): Likewise.
9720 (remote_set_permissions): Likewise.
9721 (remote_detach_1, extended_remote_attach_1): Likewise.
9722 (send_g_packet, remote_vkill): Likewise.
9723 (extended_remote_disable_randomization): Likewise.
9724 (remote_add_target_side_condition): Likewise.
9725 (remote_insert_breakpoint): Likewise.
9726 (remote_remove_breakpoint): Likewise.
9727 (remote_insert_watchpoint): Likewise.
9728 (remote_remove_watchpoint): Likewise.
9729 (remote_insert_hw_breakpoint): Likewise.
9730 (remote_insert_hw_breakpoint): Likewise.
9731 (remote_remove_hw_breakpoint): Likewise.
9732 (remote_download_command_source): Likewise.
9733 (remote_download_tracepoint): Likewise.
9734 (remote_download_trace_state_variable): Likewise.
9735 (remote_disable_tracepoint): Likewise.
9736 (remote_trace_set_readonly_regions): Likewise.
9737 (remote_get_tracepoint_status): Likewise.
9738 (remote_trace_find): Likewise.
9739 (remote_get_trace_state_variable_value): Likewise.
9740 (remote_set_disconnected_tracing): Likewise.
9741 (remote_set_circular_trace_buffer): Likewise.
9742 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9743 (remote_use_agent): Likewise.
9744 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9747 2012-03-07 Pedro Alves <palves@redhat.com>
9749 * NEWS: Mention QProgramSignals.
9750 * inferior.h (update_signals_program_target): Declare.
9751 * infrun.c: (update_signals_program_target): New.
9752 (handle_command): Update the target of the new program signals
9754 * remote.c (PACKET_QProgramSignals): New enum.
9755 (last_program_signals_packet): New global.
9756 (remote_program_signals): New.
9757 (remote_start_remote): Update the target with the program signals
9759 (remote_protocol_features): Add entry for QPassSignals.
9760 (remote_open_1): Free anc clear last_program_signals_packet.
9761 (init_remote_ops): Install remote_program_signals.
9762 * target.c (update_current_target): Adjust.
9763 (target_program_signals): New.
9764 * target.h (struct target_ops) <to_program_signals>: New field.
9765 (target_program_signals): Declare.
9767 2012-03-07 Pedro Alves <palves@redhat.com>
9769 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9772 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9774 * m68klinux-nat.c (getregs_supplies): Make static.
9775 (getfpregs_supplies): Likewise.
9776 (have_ptrace_getregs): Likewise.
9778 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9780 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9781 in call to get_die_type_at_offset.
9783 2012-03-06 Stan Shebs <stan@codesourcery.com>
9785 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9786 * mi/mi-cmd-disas.c: Ditto.
9787 * mi/mi-cmd-env.c: Ditto.
9788 * mi/mi-cmd-file.c: Ditto.
9789 * mi/mi-cmd-stack.c: Ditto.
9790 * mi/mi-cmd-target.c: Ditto.
9791 * mi/mi-cmd-var.c: Ditto.
9792 * mi/mi-cmds.c: Ditto.
9793 * mi/mi-cmds.h: Ditto.
9794 * mi/mi-console.c: Ditto.
9795 * mi/mi-getopt.c: Ditto.
9796 * mi/mi-getopt.h: Ditto.
9797 * mi/mi-interp.c: Ditto.
9798 * mi/mi-main.c: Ditto.
9799 * mi/mi-out.c: Ditto.
9800 * mi/mi-parse.c: Ditto.
9801 * mi/mi-parse.h: Ditto.
9802 * mi/mi-symbol-cmds.c: Ditto.
9804 * mi/mi-getopt.h: Move mi_opt struct up.
9805 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9807 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9809 2012-03-06 Tom Tromey <tromey@redhat.com>
9811 * proc-service.c (ps_pglobal_lookup): Set the current program
9814 2012-03-06 Pedro Alves <palves@redhat.com>
9816 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9818 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9820 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9822 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9825 * common/linux-osdata.c (linux_common_core_of_thread): New function
9827 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9828 call by linux_common_core_of_thread.
9829 (linux_nat_core_of_thread_1): Remove.
9830 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9831 * linux-thread-db.c: Include linux-osdata.h.
9832 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9833 linux_common_core_of_thread.
9835 2012-03-05 Tom Tromey <tromey@redhat.com>
9837 * value.c (value_primitive_field): Don't fetch contents for
9840 2012-03-05 Tom Tromey <tromey@redhat.com>
9842 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9844 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9846 * s390-nat.c: Include "gregset.h".
9848 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9850 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9851 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9852 (libunwind_load): New variable so_error, use it for dlerror. Try to
9853 load also LIBUNWIND_SO_7.
9855 2012-03-05 Pedro Alves <palves@redhat.com>
9857 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9858 is not NULL, and remove resulting dead code.
9860 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9862 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9863 prologue to sh_analyze_prologue.
9864 (sh_analyze_prologue): Make better use of such an upper limit, and
9865 generally be more cautious about accessing memory.
9867 2012-03-05 Tom Tromey <tromey@redhat.com>
9869 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9870 _initialize_ia64_hpux_tdep.
9872 2012-03-05 Pedro Alves <palves@redhat.com>
9876 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9877 the register state is clear, supply explicit zero, instead of
9878 marking the register unavailable.
9880 2012-03-05 Tristan Gingold <gingold@adacore.com>
9882 * NEWS: Mention OpenVMS ia64 new target.
9884 2012-03-05 Tristan Gingold <gingold@adacore.com>
9886 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9887 (ia64_unw_accessors, ia64_unw_rse_accessors)
9888 (ia64_libunwind_descr): Declare.
9889 * ia64-vms-tdep.c: New file.
9890 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9891 (ia64_libunwind_descr): Make them public.
9892 * configure.tgt: Add ia64-*-*vms*.
9893 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9894 (ALLDEPFILES): Add ia64-vms-tdep.c
9896 2012-03-05 Tristan Gingold <gingold@adacore.com>
9898 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9899 * remote.c (PACKET_qXfer_uib): New enum value.
9900 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9901 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9902 (_initialize_remote): Call add_packet_config_cmd for
9905 2012-03-05 Tristan Gingold <gingold@adacore.com>
9907 * osabi.c (gdb_osabi_names): Add OpenVMS.
9908 (generic_elf_osabi_sniffer): Likewise.
9909 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9911 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9913 Removed unused code.
9914 * libunwind-frame.c (libunwind_frame_unwind)
9915 (libunwind_frame_base_address): Remove.
9916 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9918 2012-03-04 Yao Qi <yao@codesourcery.com>
9920 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9921 remove trailing new line.
9922 (agent_run_command, agent_run_command): Add _ markup.
9923 (agent_capability_check): Likewise.
9925 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9927 * breakpoint.c (set_condition_evaluation_mode): Set
9928 CONDITION_EVALUATION_MODE unconditionally.
9930 2012-03-03 Yao Qi <yao@codesourcery.com>
9932 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9933 * common/agent.h: Update declaration.
9934 * inf-child.c (inf_child_use_agent): New.
9935 (inf_child_can_use_agent): New.
9936 (inf_child_target): Initialize fields `to_use_agent'
9937 and `to_can_use_agent'.
9938 * agent.c (agent_new_objfile): New.
9939 (_initialize_agent): Add agent_new_objfile to new_objfile
9942 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9944 (linux_target_install_ops): Initialize field
9945 `to_static_tracepoint_markers_by_strid'.
9946 * remote.c (free_current_marker): Move it to ...
9947 * tracepoint.c (free_current_marker): ... here. New.
9948 (cleanup_target_stop): New.
9949 * tracepoint.h: Declare free_current_marker.
9950 * NEWS: Add one entry about `info static-tracepoint-marker'.
9952 2012-03-03 Yao Qi <yao@codesourcery.com>
9954 * common/agent.c (agent_loaded_p): New.
9955 (agent_look_up_symbols): New global.
9956 * common/agent.h: Declare agent_loaded_p.
9958 2012-03-03 Yao Qi <yao@codesourcery.com>
9960 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9961 (agent_capability_check, agent_capability_invalidate): New.
9962 (symbol_list): New array element.
9963 * common/agent.h (enum agent_capa): New.
9964 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9966 2012-03-03 Yao Qi <yao@codesourcery.com>
9968 * target.h (struct target_ops) <to_use_agent>: New field.
9969 (struct target_ops) <to_can_use_agent>: New field.
9970 (target_use_agent, target_can_use_agent): New macro.
9971 * target.c (update_current_target): Update.
9972 * remote.c: New enum `PACKET_QAgent'.
9973 (remote_protocol_features): Add a new element.
9974 (remote_use_agent, remote_can_use_agent): New.
9975 (init_remote_ops): Initialize field `can_use_agent' with
9976 remote_can_use_agent. Intiailize field `use_agent' with
9978 * common/agent.c (use_agent): New global.
9979 * common/agent.h: Declare it.
9980 * tracepoint.c (info_static_tracepoint_markers_command): Add
9982 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9983 (COMMON_OBS): Add common/agent.o and agent.o
9984 (common-agent.o): New rule.
9987 2012-03-03 Yao Qi <yao@codesourcery.com>
9989 * common/agent.c: New.
9990 * common/agent.h: New.
9991 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9993 * configure, configh.in: Regenerated.
9995 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9997 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9998 unless it exists for this architecture.
10000 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10002 * language.h (struct language_defn): New "method" la_read_var_value.
10003 * findvar.c: #include "language.h".
10004 (default_read_var_value): Renames read_var_value. Rewrite
10005 function description.
10006 (read_var_value): New function.
10007 * value.h (default_read_var_value): Add prototype.
10008 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10010 (ada_language_defn): Add entry for la_read_var_value.
10011 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10012 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10013 language_defn structures to add entry for new la_read_var_value
10016 2012-03-02 Tom Tromey <tromey@redhat.com>
10017 Pedro Alves <palves@redhat.com>
10019 PR breakpoints/13776:
10020 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10022 (delete_longjmp_breakpoint_at_next_stop): New.
10023 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10024 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10025 before deleting the inferior. Add comments.
10026 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10027 breakpoints immediately, but only on next stop. Move that code
10028 next to where we mark other breakpoints for deletion.
10030 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10032 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10034 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10037 2012-03-02 Pedro Alves <palves@redhat.com>
10039 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10041 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10043 Fix -Wmissing-prototypes build.
10044 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10045 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10046 (gdbsim_has_memory): Likewise.
10048 2012-03-02 Yao Qi <yao@codesourcery.com>
10050 Fix -Wmissing-prototypes build.
10051 * charset.c (phony_iconv_open): Make static.
10052 (phony_iconv_close, phony_iconv): Likewise.
10053 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10054 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10056 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10057 * ser-mingw.c (create_select_thread): Make static.
10058 * windows-termcap.c (tgetent): New prototype.
10059 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10061 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10063 Fix -Wmissing-prototypes build.
10064 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10065 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10066 (_initialize_loadable): New prototypes.
10068 2012-03-02 Doug Evans <dje@google.com>
10070 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10071 abbrev table, read_comp_unit will do it.
10073 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10075 Fix -Wmissing-prototypes build.
10076 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10077 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10078 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10079 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10080 (_initialize_arm_symbian_tdep): New prototype.
10081 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10082 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10083 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10085 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10086 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10088 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10089 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10090 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10092 * moxie-tdep.c (moxie_process_record): Likewise.
10093 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10094 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10095 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10096 (_initialize_rl78_tdep): New prototype.
10097 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10098 (_initialize_rx_tdep): New prototype.
10099 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10100 (_initialize_darwin_solib): New prototype.
10101 * solib-spu.c: Include solib-spu.h.
10102 (_initialize_spu_solib): New prototype.
10103 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10104 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10105 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10106 (tic6x_software_single_step): Make it static.
10107 (_initialize_tic6x_tdep): New prototype.
10109 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10111 Fix -Wmissing-prototypes build.
10112 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10113 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10115 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10117 Fix -Wmissing-prototypes build.
10118 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10119 (frv_have_stopped_data_address): Remove.
10121 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10123 Fix -Wmissing-prototypes build.
10124 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10125 * sh-tdep.c: Include sh64-tdep.h.
10126 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10127 * sh64-tdep.c: Include sh64-tdep.h.
10128 * sh64-tdep.h: New file.
10130 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10132 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10134 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10136 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10137 sp_regnum once the gdbarch_init_osabi hook has been called.
10139 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10141 * mips-tdep.c (mips32_bc1_pc): New function.
10142 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10143 BPOSGE32 and BPOSGE64 instructions.
10144 (deal_with_atomic_sequence): Likewise.
10145 (mips32_instruction_has_delay_slot): Likewise.
10147 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10148 Chris Dearman <chris@mips.com>
10149 Maciej W. Rozycki <macro@codesourcery.com>
10150 Joseph Myers <joseph@codesourcery.com>
10152 * features/mips-dsp.xml: New file.
10153 * features/mips64-dsp.xml: New file.
10154 * features/mips-dsp-linux.xml: New file.
10155 * features/mips64-dsp-linux.xml: New file.
10156 * features/Makefile (WHICH): Add mips-dsp-linux and
10158 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10159 * features/mips-dsp-linux.c: New file.
10160 * features/mips64-dsp-linux.c: New file.
10161 * regformats/mips-dsp-linux.dat: New file.
10162 * regformats/mips64-dsp-linux.dat: New file.
10163 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10165 (mips64_linux_register_addr): Likewise.
10166 (mips64_linux_regsets_fetch_registers): Likewise.
10167 (mips64_linux_regsets_store_registers): Likewise.
10168 (mips64_linux_fetch_registers): Update call to
10169 mips64_linux_regsets_fetch_registers.
10170 (mips64_linux_store_registers): Update call to
10171 mips64_linux_regsets_store_registers.
10172 (mips_linux_read_description): Probe for DSP registers.
10173 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10174 and initialize_tdesc_mips64_dsp_linux.
10175 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10176 Remove padding of no longer used embedded register slots.
10177 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10178 (MIPS_RESTART_REGNUM): Redefine enum value.
10179 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10181 (mips_tx39_reg_names): Likewise.
10182 (mips_linux_reg_names): New array of register names for Linux
10184 (mips_register_name): Check for a null pointer in
10185 mips_processor_reg_names and return an empty string.
10186 (mips_register_type): Exclude embedded registers for the IRIX
10188 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10189 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10191 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10192 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10193 (mips_gdbarch_init): Likewise. Initialize internal register
10194 indices for the Linux ABI. Use dynamic numbers to refer to
10195 registers, as applicable, while parsing the target description.
10196 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10198 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10200 * frame.h (read_frame_register_unsigned): Fix typo in function
10203 2012-03-01 Pedro Alves <palves@redhat.com>
10205 * jit-reader.in [!__cplusplus]
10206 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10208 2012-03-01 Pedro Alves <palves@redhat.com>
10210 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10211 * configure: Regenerate.
10213 2012-03-01 Pedro Alves <palves@redhat.com>
10215 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10216 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10217 (ftrace_command, strace_command): Make static.
10218 * d-lang.c (_initialize_d_language): Declare.
10219 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10220 * dwarf2loc.c (_initialize_dwarf2loc):
10221 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10222 * exec.c (exec_get_section_table): Make static.
10223 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10224 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10225 * inferior.c (remove_inferior_command, add_inferior_command)
10226 (clone_inferior_command): Make static.
10227 * linux-nat.c (linux_nat_thread_address_space)
10228 (linux_nat_core_of_thread): Make static.
10229 * linux-tdep.c (_initialize_linux_tdep): Declare.
10230 * objc-lang.c (_initialize_objc_lang): Declare.
10231 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10233 (_initialize_opencl_language): Declare.
10234 * record.c (_initialize_record): Declare.
10235 * remote.c (demand_private_info, remote_get_tib_address)
10236 (remote_supports_cond_tracepoints)
10237 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10239 * skip.c (_initialize_step_skip): Declare.
10240 * symtab.c (skip_prologue_using_lineinfo): Make static.
10241 * tracepoint.c (delete_trace_state_variable)
10242 (trace_variable_command, delete_trace_variable_command)
10243 (get_uploaded_tsv, find_matching_tracepoint_location)
10244 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10246 * value.c (pack_unsigned_long): Make static.
10247 * varobj.c (varobj_ensure_python_env): Make static.
10248 * windows-tdep.c (_initialize_windows_tdep): Declare.
10249 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10251 2012-03-01 Pedro Alves <palves@redhat.com>
10253 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10255 (linux_init_abi): Install it as has_shared_address_space gdbarch
10258 2012-03-01 Pedro Alves <palves@redhat.com>
10260 * observer.c (observer_test_first_notification_function)
10261 (observer_test_second_notification_function)
10262 (observer_test_third_notification_function): Add declarations.
10264 2012-03-01 Pedro Alves <palves@redhat.com>
10266 * common/signals.c (default_target_signal_to_host)
10267 (default_target_signal_from_host): Move ...
10268 * arch-utils.c: ... here.
10269 * arch-utils.h (default_target_signal_to_host)
10270 (default_target_signal_from_host): Declare.
10272 * common/signals.c (target_signal_from_command): Move ...
10273 * infrun.c: ... here.
10274 * inferior.h (target_signal_from_command): Declare.
10275 * target.h (target_signal_from_command)
10276 (default_target_signal_from_host, default_target_signal_to_host):
10277 Delete declarations.
10279 * common/signals.c (_initialize_signals): Delete.
10281 2012-03-01 Pedro Alves <palves@redhat.com>
10283 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10284 both __cplusplus and !__cplusplus.
10286 2012-03-01 Pedro Alves <palves@redhat.com>
10288 * psymtab.c (find_and_open_source): Delete declaration.
10289 * source.c (find_and_open_source): Move comment ...
10290 * source.h (find_and_open_source): ... to this new declaration.
10292 2012-03-01 Pedro Alves <palves@redhat.com>
10294 * inline-frame.c: Include inline-frame.h.
10296 2012-03-01 Pedro Alves <palves@redhat.com>
10298 * tui/tui-data.c (set_gen_win_origin): Delete.
10299 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10300 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10302 2012-03-01 Pedro Alves <palves@redhat.com>
10304 * remote.c (encode_actions): Delete declaration.
10305 * tracepoint.c (encode_actions): Make extern.
10306 * tracepoint.h (encode_actions): Declare.
10308 2012-03-01 Pedro Alves <palves@redhat.com>
10310 * python/py-breakpoint.c: Include python.h.
10311 * python/py-continueevent.c (create_continue_event_object): Make
10313 * python/py-lazy-string.c (stpy_get_type): Make static.
10314 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10316 * python/py-utils.c (unicode_to_target_python_string): Make
10318 * python/py-value.c: Include python.h.
10320 2012-03-01 Pedro Alves <palves@redhat.com>
10322 * inferior.c (delete_threads_of_inferior): Delete.
10324 2012-03-01 Pedro Alves <palves@redhat.com>
10326 Import fallback definitions from glibc.
10328 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10329 ps_prochandle): Forward declare.
10330 (ps_err_e): Use glibc's comments.
10331 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10332 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10333 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10334 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10335 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10336 (struct ps_prochandle): Adjust comment.
10338 2012-03-01 Pedro Alves <palves@redhat.com>
10340 * ada-lang.c (ada_modulus_from_name): Delete.
10341 * ada-lex.l (lexer_init): Make static.
10343 2012-03-01 Pedro Alves <palves@redhat.com>
10347 * frame.c (read_frame_register_unsigned): New.
10348 * frame.h (read_frame_register_unsigned): Declare.
10349 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10351 (print_i387_control_word): New parameter `control_p'. Handle it.
10352 (i387_print_float_info): Handle unavailable float registers.
10354 2012-03-01 Keith Seitz <keiths@redhat.com>
10356 * linespec.c (decode_line_2): Sort the list of methods
10357 alphabetically before presenting the user with a selection
10360 2012-03-01 Doug Evans <dje@google.com>
10362 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10363 has_namespace_info.
10364 (dwarf2_read_abbrevs): Remove corresponding initialization.
10366 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10368 * NEWS: Mention new python command class gdb.COMMAND_USER.
10369 * cli/cli-cmds.c (show_user): Print error when used on a python
10371 (init_cli_cmds): Update documentation strings for "show user" and
10372 "set/show max-user-call-depth" to clarify that it does not apply to
10374 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10376 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10378 * top.c (execute_command): Only execute a user-defined command as a
10379 legacy macro if c->user_commands is set.
10381 2012-03-01 Tom Tromey <tromey@redhat.com>
10383 * valprint.h (struct generic_val_print_decorations): New.
10384 (generic_val_print): Declare.
10385 * valprint.c (generic_val_print): New function.
10386 * p-valprint.c (p_decorations): New global.
10387 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10388 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10389 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10390 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10391 * m2-valprint.c (m2_decorations): New global.
10392 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10393 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10394 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10395 TYPE_CODE_ERROR>: Call generic_val_print.
10396 * f-valprint.c (f_decorations): New global.
10397 (f_val_print): Use print_function_pointer_address.
10398 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10399 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10400 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10402 * c-valprint.c (c_decorations): New global.
10403 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10404 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10405 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10406 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10407 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10408 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10411 2012-03-01 Tom Tromey <tromey@redhat.com>
10413 * valprint.c (val_print): Update.
10414 * p-valprint (pascal_val_print): Return void.
10415 * p-lang.h (pascal_val_print): Return void.
10416 * m2-valprint.c (m2_val_print): Return void.
10417 * m2-lang.h (m2_val_print): Return void.
10418 * language.h (struct language_defn) <la_val_print>: Return void.
10419 * language.c (unk_lang_val_print): Return void.
10420 * jv-valprint.c (java_val_print): Return void.
10421 * jv-lang.h (java_val_print): Return void.
10422 * f-valprint.c (f_val_print): Return void.
10423 * f-lang.h (f_val_print): Return void.
10424 * d-valprint.c (d_val_print): Return void.
10425 (dynamic_array_type): Update.
10426 * d-lang.h (d_val_print): Return void.
10427 * c-valprint.c (c_val_print): Return void.
10428 * c-lang.h (c_val_print): Return void.
10429 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10431 * ada-lang.h (ada_val_print): Return void.
10433 2012-03-01 Tom Tromey <tromey@redhat.com>
10435 * value.h (val_print): Return void.
10436 * valprint.c (val_print): Return void.
10438 2012-03-01 Tom Tromey <tromey@redhat.com>
10440 * value.h (common_val_print): Return void.
10441 * valprint.c (common_val_print): Return void.
10443 2012-03-01 Tom Tromey <tromey@redhat.com>
10445 * value.h (value_print): Return void.
10446 * valprint.c (value_print): Return void.
10447 * p-valprint.c (pascal_value_print): Return void.
10448 * p-lang.h (pascal_value_print): Return void.
10449 * language.h (struct language_defn) <la_value_print>: Return
10451 * language.c (unk_lang_value_print): Return void.
10452 * jv-valprint.c (java_value_print): Return void.
10453 * jv-lang.h (java_value_print): Return void.
10454 * f-valprint.c (c_value_print): Don't declare.
10456 * c-valprint.c (c_value_print): Return void.
10457 * c-lang.h (c_value_print): Return void.
10458 * ada-valprint.c (ada_value_print): Return void.
10459 * ada-lang.h (ada_value_print): Return void.
10461 2012-03-01 Tom Tromey <tromey@redhat.com>
10463 * value.c (value_primitive_field): Handle virtual base classes.
10465 2012-03-01 Tom Tromey <tromey@redhat.com>
10467 * gdbtypes.h (struct vbase): Remove.
10469 2012-03-01 Tom Tromey <tromey@redhat.com>
10471 * c-valprint.c (print_function_pointer_address): Move...
10472 * valprint.c: ... here. Make non-static.
10473 * m2-valprint.c (print_function_pointer_address): Remove.
10474 * valprint.h (print_function_pointer_address): Declare.
10476 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10478 * NEWS: Document the fact that one can provide a condition when
10479 creating an Ada exception catchpoint.
10481 2012-03-01 Tom Tromey <tromey@redhat.com>
10483 * valprint.c (val_print_type_code_flags): Fix placement of
10486 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10488 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10489 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10490 environment variable before calling update-copyright.
10492 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10494 * gnulib/extra/update-copyright: Update to the latest from
10495 gnulib's git repository.
10496 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10497 variable to 2 instead of 1.
10499 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10501 * varobj.c (c_value_of_variable): Remove dead code.
10503 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10505 * ada-lex.p (processId): Do not modify already encoded IDs.
10506 Update function documentation.
10508 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10510 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10511 "name" with "struct symbol *name_sym".
10512 * ada-exp.y (write_var_or_type): Update call to
10513 ada_find_renaming_symbol.
10514 "name" with "struct symbol *name_sym". Adjust Implementation
10515 accordingly. Adjust the function documentation.
10517 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10519 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10520 * ada-lang.c (ada_find_any_type): Add advance declaration.
10521 Make static. Replace ada_find_any_symbol by
10522 ada_find_any_type_symbol.
10523 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10524 Improve function description. Make static.
10525 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10526 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10528 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10530 * ada-lang.c (struct tag_args): Delete.
10531 (ada_get_tsd_type): Function body moved up in source file.
10532 (ada_tag_name_1, ada_tag_name_2): Delete.
10533 (ada_get_tsd_from_tag): New function.
10534 (ada_tag_name_from_tsd): New function.
10535 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10536 to determine the tag name.
10538 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10540 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10542 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10545 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10547 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10549 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10551 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10554 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10556 * ada-lang.c (constrained_packed_array_type): If there is a
10557 parallel XA type, use it to determine the array index type.
10559 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10561 * ada-valprint.c (ada_val_print_1): If our value is a reference
10562 to an array descriptor, dereference it before converting it
10565 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10567 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10568 creating fixed value.
10569 (ada_value_ind, ada_coerce_ref, assign_component)
10570 (ada_evaluate_subexp): Remove call to unwrap_value before
10571 call to ada_to_fixed_value.
10573 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10575 * ada-lang.c (to_fixed_array_type): Set result's type name.
10577 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10579 * ada-lang.c (catch_ada_exception_command_split): Add new
10580 argument cond_string. Add support for condition at end of
10581 "catch exception" commands.
10582 (ada_decode_exception_location): Add new argument cond_string.
10583 Update call to catch_ada_exception_command_split.
10584 (create_ada_exception_catchpoint): Add new argument cond_string.
10585 Set the breakpoint condition if needed.
10586 (catch_ada_exception_command): Update call to
10587 ada_decode_exception_location.
10588 (ada_decode_assert_location): Add function documentation.
10589 Add support for condition at end of "catch assert" command.
10590 (catch_assert_command): Update calls to ada_decode_assert_location
10591 and create_ada_exception_catchpoint.
10593 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10595 Fix disp-step-syscall.exp: fork: single step over fork.
10596 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10597 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10598 comment, change parameters gdbarch and ptid to regcache. Remove
10599 parameter regcache, initialize gdbarch from regcache here.
10600 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10602 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10604 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10605 'syscall'. Make the 'int' check more strict.
10607 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10609 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10610 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10611 (i386_linux_intx80_sysenter_syscall_record): ... here.
10612 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10613 Use the renamed function name.
10615 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10617 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10618 * breakpoint.c (until_break_command): Likewise.
10619 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10620 * infcall.c (call_function_by_hand): Likewise.
10621 * infcmd.c (finish_forward): Likewise.
10622 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10624 2012-02-28 Tristan Gingold <gingold@adacore.com>
10626 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10627 avoid variable assignments inside condition.
10629 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10631 Fix static analysis issue found by cppcheck.
10632 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10633 uninitialized BUF for size 2.
10635 2012-02-27 Chris Dearman <chris@mips.com>
10636 Nathan Froyd <froydnj@codesourcery.com>
10637 Maciej W. Rozycki <macro@codesourcery.com>
10639 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10640 (mips16_instruction_has_delay_slot): Likewise.
10641 (mips_segment_boundary): Likewise.
10642 (mips_adjust_breakpoint_address): Likewise.
10643 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10645 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10646 Maciej W. Rozycki <macro@codesourcery.com>
10648 * infrun.c (handle_inferior_event): Don't proceed through
10649 shared library trampolines if stepping at the machine
10652 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10654 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10657 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10659 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10660 (sh_stub_unwind_sniffer): New functions.
10661 (sh_stub_unwind): New variable.
10662 (sh_gdbarch_init): Wire everything.
10664 2012-02-27 Pedro Alves <palves@redhat.com>
10666 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10667 (linux_nat_post_attach_wait): Adjust to use
10668 linux_proc_pid_is_stopped.
10669 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10670 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10671 based on pid_is_stopped from both linux-nat.c and
10672 gdbserver/linux-low.c, and renamed.
10674 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10676 * remote.c (remote_watchpoint_addr_within_range): New function.
10677 (init_remote_ops): Use it.
10679 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10681 * target.h (target_watchpoint_addr_within_range): Document macro.
10683 2012-02-24 Pedro Alves <palves@redhat.com>
10685 * stack.c (set_last_displayed_sal): Issue internal_error instead
10686 of warning, and issue it after clearing the last displayed sal.
10688 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10689 Pedro Alves <palves@redhat.com>
10691 * breakpoint.c (until_break_command): Install breakpoints after
10692 all frame manipulations.
10694 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10696 * remote.c (remote_supports_cond_breakpoints): New forward
10698 (remote_add_target_side_condition): New function.
10699 (remote_insert_breakpoint): Add target-side breakpoint
10700 conditional if supported.
10701 (remote_insert_hw_breakpoint): Likewise.
10702 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10705 * target.c (update_current_target): Inherit
10706 to_supports_evaluation_of_breakpoint_conditions.
10707 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10709 * target.h (struct target_ops)
10710 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10711 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10713 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10714 (condition_evaluation_both, condition_evaluation_auto,
10715 condition_evaluation_host, condition_evaluation_target,
10716 condition_evaluation_enums, condition_evaluation_mode_1,
10717 condition_evaluation_mode): New static globals.
10718 (translate_condition_evaluation_mode): New function.
10719 (breakpoint_condition_evaluation_mode): New function.
10720 (gdb_evaluates_breakpoint_condition_p): New function.
10721 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10722 (mark_breakpoint_modified): New function.
10723 (mark_breakpoint_location_modified): New function.
10724 (set_condition_evaluation_mode): New function.
10725 (show_condition_evaluation_mode): New function.
10726 (bp_location_compare_addrs): New function.
10727 (get_first_location_gte_addr): New helper function.
10728 (set_breakpoint_condition): Free condition bytecode if locations
10729 has become unconditional. Call mark_breakpoint_modified (...).
10730 (condition_command): Call update_global_location_list (1) for
10732 (breakpoint_xfer_memory): Use is_breakpoint (...).
10733 (is_breakpoint): New function.
10734 (parse_cond_to_aexpr): New function.
10735 (build_target_condition_list): New function.
10736 (insert_bp_location): Handle target-side conditional
10737 breakpoints and call build_target_condition_list (...).
10738 (update_inserted_breakpoint_locations): New function.
10739 (insert_breakpoint_locations): Handle target-side conditional
10741 (bpstat_check_breakpoint_conditions): Add comment.
10742 (bp_condition_evaluator): New function.
10743 (bp_location_condition_evaluator): New function.
10744 (print_breakpoint_location): Print information on where the condition
10746 (print_one_breakpoint_location): Likewise.
10747 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10748 breakpoint location.
10749 (force_breakpoint_reinsertion): New functions.
10750 (update_global_location_list): Handle target-side breakpoint
10752 Reinsert locations that are already inserted if conditions have
10754 (bp_location_dtor): Free agent expression bytecode.
10755 (disable_breakpoint): Call mark_breakpoint_modified (...).
10756 Call update_global_location_list (...) with parameter 1 for breakpoints.
10757 (disable_command): Call mark_breakpoint_location_modified (...).
10758 Call update_global_location_list (...) with parameter 1 for breakpoints.
10759 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10760 (enable_command): mark_breakpoint_location_modified (...).
10761 (_initialize_breakpoint): Update documentation and add
10762 condition-evaluation breakpoint subcommand.
10764 * breakpoint.h: Include ax.h.
10765 (condition_list): New data structure.
10766 (condition_status): New enum.
10767 (bp_target_info) <cond_list>: New field.
10768 (bp_location) <condition_changed, cond_bytecode>: New fields.
10769 (is_breakpoint): New prototype.
10771 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10773 * remote.c (remote_state) <cond_breakpoints>: New field.
10774 (PACKET_ConditionalBreakpoints): New enum.
10775 (remote_cond_breakpoint_feature): New function.
10776 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10777 (remote_supports_cond_breakpoints): New function.
10778 (_initialize_remote): Add new packet configuration for
10779 target-side conditional breakpoints.
10781 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10783 * NEWS: Mention target-side conditional breakpoint support,
10784 new condition-evaluation breakpoint subcommand and remote
10787 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10789 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10792 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10794 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10795 (after_prologue): Remove.
10797 2012-02-23 Tom Tromey <tromey@redhat.com>
10799 * jv-valprint.c (java_val_print): Remove dead code.
10801 2012-02-23 Tristan Gingold <gingold@adacore.com>
10803 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10804 known_tasks_element and known_tasks_length fields.
10805 (read_known_tasks_array): Change argument type. Use pointer type
10806 and number of elements from DATA. Adjust.
10807 (read_known_tasks_list): Likewise.
10808 (get_known_tasks_addr): Remove.
10809 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10810 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10811 type and array length. Merge former get_known_tasks_addr code.
10813 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10816 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10817 it after set_momentary_breakpoint.
10819 2012-02-22 Sterling Augustine <saugustine@google.com>
10822 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10824 2012-02-22 Gary Benson <gbenson@redhat.com>
10826 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10827 (find_slot_in_mapped_hash): Likewise.
10829 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10832 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10833 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10834 * configure: Regenerate.
10836 2012-02-21 Tristan Gingold <gingold@adacore.com>
10837 Pedro Alves <palves@redhat.com>
10839 * ia64-tdep.c: Do not include libunwind-ia64.h.
10840 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10841 Include libunwind-ia64.h instead of libunwind.h.
10842 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10843 for libunwind.h existence.
10844 * configure, config.in: Regenerate.
10846 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10848 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10849 instead of value_rtti_target_type.
10850 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10851 instead of value_rtti_target_type.
10852 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10853 value_rtti_target_type.
10854 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10855 (value_rtti_target_type): Rename to ...
10856 (value_rtti_indirect_type): ... here and make it indirect. Update
10858 * value.c (readjust_indirect_value_type): New function.
10859 (coerce_ref): Support for enclosing type setting for references
10860 with readjust_indirect_value_type.
10861 * value.h (readjust_value_type): New declaration.
10862 (value_rtti_target_type): Rename to ...
10863 (value_rtti_indirect_type): ... here.
10865 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10867 * MAINTAINERS (Write After Approval): Add myself to the list.
10869 2012-02-20 Doug Evans <dje@google.com>
10871 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10872 Rename objfile_p_char parameter to objfilep.
10873 (build_objfile_section_table): Result is now void. All callers
10875 * objfiles.h (struct objfile): Tweak comments, whitespace.
10876 (build_objfile_section_table): Update.
10878 * elfread.c (elf_symfile_segments): Fix warning text.
10880 2012-02-20 Tom Tromey <tromey@redhat.com>
10883 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10884 particular set of file names once.
10885 (dw2_map_symbol_filenames): Likewise.
10887 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10890 * main.c (write_files): Remove the declaration.
10891 (external_editor_command): Move the declaration ...
10892 [GDBTK] (external_editor_command): ... here. Fix the comment.
10894 2012-02-20 Tom Tromey <tromey@redhat.com>
10896 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10899 2012-02-20 Tristan Gingold <gingold@adacore.com>
10901 * darwin-nat.h (enum darwin_msg_state): Add comments.
10903 2012-02-20 Tristan Gingold <gingold@adacore.com>
10905 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10908 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10910 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10911 between function description and implementation.
10913 2012-02-17 Tom Tromey <tromey@redhat.com>
10916 * python/py-event.c (event_object_getset): New global.
10917 (event_object_type): Reference it.
10918 * python/py-type.c (field_object_getset): New global.
10919 (field_object_type): Reference it.
10920 * python/python-internal.h (gdb_py_generic_dict): Declare.
10921 * python/py-utils.c (gdb_py_generic_dict): New function.
10923 2012-02-17 Tristan Gingold <gingold@adacore.com>
10925 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10927 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10929 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10930 TYPE_CALLING_CONVENTION annotation.
10932 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10934 * MAINTAINERS: Add rx to target ISA section.
10935 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10936 (ALLDEPFILES): Add rx-tdep.c.
10938 2012-02-16 Tom Tromey <tromey@redhat.com>
10940 * symfile.c (symbol_file_add_main_1): Use inferior's
10942 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10943 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10945 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10947 (follow_exec): Use inferior's symfile_flags.
10948 * inferior.h (struct inferior) <symfile_flags>: New field.
10950 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10953 * remote-sim.c (gdbsim_create_inferior): Call error() when
10954 sim_create_inferior() fails.
10956 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10958 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10960 2012-02-16 Tom Tromey <tromey@redhat.com>
10963 * thread.c (struct current_thread_cleanup) <was_removable>: New
10965 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10966 (make_cleanup_restore_current_thread): Initialize new field.
10968 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10970 * MAINTAINERS: Add rl78 to target ISA section.
10971 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10972 (ALLDEPFILES): Add rl78-tdep.c.
10973 * NEWS: Mention rl78 as a new target.
10975 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10977 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10979 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10981 2012-02-15 Tom Tromey <tromey@redhat.com>
10984 * infcmd.c (registers_info): Print just the current register's
10987 2012-02-15 Tom Tromey <tromey@redhat.com>
10989 * python/py-symbol.c (sympy_value): Use _().
10991 2012-02-15 Pedro Alves <palves@redhat.com>
10993 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10994 output to be like native targets'.
10995 (remote_pid_to_str): Special case the null ptid.
10997 2012-02-14 Stan Shebs <stan@codesourcery.com>
10999 * NEWS: Mention enable count command.
11000 * breakpoint.h (struct breakpoint): New field enable_count.
11001 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11002 (enable_breakpoint): Add arg to call.
11003 (struct disp_data): New struct.
11004 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11005 (do_map_enable_once_breakpoint): Create a struct and pass it.
11006 (do_map_enable_delete_breakpoint): Ditto.
11007 (do_map_enable_count_breakpoint): New function.
11008 (enable_count_command): New function.
11009 (bpstat_stop_status): Decrement enable_count.
11010 (print_one_breakpoint_location): Report enable count.
11011 (_initialize_breakpoint): Add enable count command.
11013 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11015 * rl78-tdep.c (reggroups.h): Include.
11016 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11017 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11018 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11019 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11020 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11021 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11022 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11023 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11024 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11025 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11026 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11027 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11028 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11029 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11030 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11031 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11032 beginning of register list.
11033 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11034 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11035 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11036 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11037 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11038 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11039 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11040 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11041 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11042 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11043 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11044 the pseudo registers. Rearrange other pseudo registers too so
11045 that the bank registers appear at the end.
11046 (rl78_register_type): Account for the fact that the byte sized
11047 bank registers are now pseudo-registers.
11048 (rl78_register_name): Rearrange the register name array. Make
11049 initial set of raw banked registers inaccessible.
11050 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11051 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11052 case for copying bytes back and forth between raw and pseudo
11053 versions of the banked registers. Update other cases to reflect
11055 (rl78_return_value): Update to account for changed names of
11057 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11058 rl78_register_sim_regno().
11060 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11062 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11063 the name parameter being passed to find_pc_partial_function().
11065 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11067 * MAINTAINERS: Step down from being ia64 target maintainer.
11069 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11071 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11072 compilation warning.
11074 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11076 Fix crash on loaded shlibs without loaded exec_bfd.
11077 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11078 (set_section_command): Replace exec_bfd by p->bfd.
11080 2012-02-10 Tom Tromey <tromey@redhat.com>
11082 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11083 when we have a C++ qualified name.
11085 2012-02-10 Pedro Alves <palves@redhat.com>
11087 * inferior.c (inferior_pid_to_str): New.
11088 (print_inferior, inferior_command): Use it.
11090 2012-02-10 Pedro Alves <palves@redhat.com>
11092 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11094 * configure: Regenerate.
11096 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11098 * linespec.c (decode_line_internal): Fix comment correctness.
11100 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11103 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11104 * amd64bsd-nat.c: Add support for debug registers (adapted from
11106 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11107 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11108 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11109 (amd64bsd_dr_get_control): New functions.
11110 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11111 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11112 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11113 watchpoints initialization.
11114 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11116 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11118 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11120 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11122 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11124 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11126 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11128 * language.h (symbol_name_cmp_ftype): Renames
11129 symbol_name_match_p_ftype.
11130 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11131 la_get_symbol_name_match_p.
11132 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11133 ada_get_symbol_name_match_p. Update comment.
11134 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11135 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11136 Renames symbol_name_match_p. Update field type.
11137 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11138 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11139 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11140 "la_get_symbol_name_cmp" in comments.
11141 * language.c: Likewise.
11143 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11145 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11147 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11148 (amd64_sol2_gregset32_reg_offs): Likewise.
11150 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11152 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11153 of the returned BFD is allocated by GDB.
11155 2012-02-07 Tom Tromey <tromey@redhat.com>
11158 * python/python-internal.h (frame_object_type): Declare.
11159 * python/py-symbol.c (sympy_needs_frame): New function.
11160 (sympy_value): New function.
11161 (symbol_object_getset): Add "needs_frame".
11162 (symbol_object_methods): Add "value".
11163 * python/py-frame.c (frame_object_type): No longer static.
11165 2012-02-07 Tom Tromey <tromey@redhat.com>
11168 * python/py-symbol.c (sympy_line): New function.
11169 (symbol_object_getset): Add "line".
11171 2012-02-07 Tom Tromey <tromey@redhat.com>
11173 * charset.c (find_charset_names): Check 'in' against NULL.
11175 2012-02-06 Doug Evans <dje@google.com>
11177 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11178 and fields.name members from char * to const char *. All uses updated.
11179 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11180 from char * to const char *. All uses updated.
11181 (type_name_no_tag): Update.
11182 (lookup_unsigned_typename, lookup_signed_typename): Update.
11183 * gdbtypes.c (type_name_no_tag): Change result type
11184 from char * to const char *. All callers updated.
11185 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11186 name parameter from char * to const char *.
11187 * symtab.h (struct cplus_specific): Change type of demangled_name
11188 member from char * to const char *. All uses updated.
11189 (struct general_symbol_info): Change type of name and
11190 mangled_lang.demangled_name members from char * to const char *.
11192 (symbol_get_demangled_name, symbol_natural_name): Update.
11193 (symbol_demangled_name, symbol_search_name): Update.
11194 * symtab.c (symbol_get_demangled_name): Change result type
11195 from char * to const char *. All callers updated.
11196 (symbol_natural_name, symbol_demangled_name): Ditto.
11197 (symbol_search_name): Ditto.
11198 (completion_list_add_name): Change type of symname,sym_text,
11199 text,word parameters from char * to const char *.
11200 (completion_list_objc_symbol): Change type of sym_text,
11201 text,word parameters from char * to const char *.
11202 * ada-lang.c (find_struct_field): Change type of name parameter
11203 from char * to const char *.
11204 (encoded_ordered_before): Similarly for N0,N1 parameters.
11205 (old_renaming_is_invisible): Similarly for function_name parameter.
11206 (ada_type_name): Change result type from char * to const char *.
11207 All callers updated.
11208 * ada-lang.h (ada_type_name): Update.
11209 * buildsym.c (hashname): Change type of name parameter
11210 from char * to const char *.
11211 * buildsym.h (hashname): Update.
11212 * dbxread.c (end_psymtab): Change type of include_list parameter
11213 from char ** to const char **.
11214 * dwarf2read.c (determine_prefix): Change result type
11215 from char * to const char *. All callers updated.
11216 * f-lang.c (find_common_for_function): Change type of name, funcname
11217 parameters from char * to const char *.
11218 * f-lang.c (find_common_for_function): Update.
11219 * f-valprint.c (list_all_visible_commons): Change type of funcname
11220 parameters from char * to const char *.
11221 * gdbarch.sh (static_transform_name): Change type of name parameter
11222 and result from char * to const char *.
11223 * gdbarch.c: Regenerate.
11224 * gdbarch.h: Regenerate.
11225 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11226 of name parameter from char * to const char *.
11227 * jv-lang.c (java_primitive_type_from_name): Ditto.
11228 (java_demangled_signature_length): Similarly for signature parameter.
11229 (java_demangled_signature_copy): Ditto.
11230 (java_demangle_type_signature): Ditto.
11231 * jv-lang.h (java_primitive_type_from_name): Update.
11232 (java_demangle_type_signature): Update.
11233 * objc-lang.c (specialcmp): Change type of a,b parameters
11234 from char * to const char *.
11235 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11236 from char * to const char *. All callers updated.
11237 * p-lang.h (is_pascal_string_type): Update.
11238 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11239 of name parameter from char * to const char *.
11240 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11241 * utils.c (fprintf_symbol_filtered): Ditto.
11242 * defs.h (fprintf_symbol_filtered): Update.
11243 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11244 * stabsread.h (end_psymtab): Update.
11245 * stack.c (find_frame_funname): Change type of funname parameter
11246 from char ** to const char **.
11247 * stack.h (find_frame_funname): Update.
11248 * typeprint.c (type_print): Change type of varstring parameter
11249 from char * to const char *.
11250 * value.h (type_print): Update.
11251 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11252 from char * to const char *. All callers updated.
11253 (xcoff_end_psymtab): Change type of include_list parameter
11254 from char ** to const char **. All callers updated.
11255 (swap_sym): Similarly for name parameter. All callers updated.
11256 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11258 (process_coff_symbol): Use xstrdup.
11259 * stabsread.c (stabs_method_name_from_physname): Renamed from
11260 update_method_name_from_physname. Change result type from void
11261 to char *. All callers updated.
11262 (read_member_functions): In has_destructor case, store name in objfile
11263 obstack instead of malloc space. In !has_stub case, fix mem leak.
11265 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11267 * configure: Rebuild.
11268 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11271 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11273 * configure.tgt (rl78-*-elf): New target.
11274 * rl78-tdep.c: New file.
11276 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11278 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11279 and continue the loop. Add QUIT statement.
11281 2012-02-03 Tom Tromey <tromey@redhat.com>
11284 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11285 bfd_lookup_symbol_from_symtab.
11286 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11287 gdb_bfd_lookup_symbol_from_symtab.
11289 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11291 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11292 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11293 symbol. Add assertion that sym2 is never NULL.
11295 2012-02-02 Doug Evans <dje@google.com>
11297 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11298 "name" parameter to const char ** from char **. All callers updated.
11299 (find_pc_partial_function): Ditto.
11300 (cache_pc_function_name): Change type to const char * from char *.
11301 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11302 (find_pc_partial_function): Update.
11303 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11304 type of "name" parameter to const char * from char *.
11306 * arch-utils.c (generic_in_solib_return_trampoline): Change
11307 type of "name" parameter to const char * from char *.
11308 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11309 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11310 type of "name" parameter to const char * from char *.
11311 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11312 * gdbarch.c: Regenerate.
11313 * gdbarch.h: Regenerate.
11314 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11315 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11316 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11317 type of "name" parameter to const char * from char *.
11318 * skip.c (skip_function_pc): Ditto.
11319 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11320 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11321 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11322 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11323 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11324 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11325 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11326 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11327 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11329 2012-02-02 Pedro Alves <palves@redhat.com>
11331 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11332 the current inferior has no execution. Make sure the current
11333 remote process matches gdb's current inferior.
11335 2012-02-02 Tom Tromey <tromey@redhat.com>
11338 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11341 2012-02-02 Tom Tromey <tromey@redhat.com>
11344 * symtab.c (lookup_language_this): Set block_found.
11346 2012-02-01 Tom Tromey <tromey@redhat.com>
11349 * jit.c (struct jit_inferior_data): Rewrite.
11350 (struct jit_objfile_data): New.
11351 (get_jit_objfile_data): New function.
11352 (add_objfile_entry): Update.
11353 (jit_read_descriptor): Return int. Replace descriptor_addr
11354 argument with inf_data. Update. Don't call error.
11355 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11357 (jit_inferior_init): Don't look up descriptor. Don't call error.
11358 (jit_reset_inferior_data_and_breakpoints)
11359 (jit_inferior_created_observer): Remove.
11360 (jit_inferior_exit_hook): Update.
11361 (jit_executable_changed_observer): Remove.
11362 (jit_event_handler): Update.
11363 (free_objfile_data): Reset inferior data if needed.
11364 (_initialize_jit): Update.
11366 2012-02-01 Tom Tromey <tromey@redhat.com>
11368 * jit.c (bfd_open_from_target_memory): Move higher in file.
11370 2012-02-01 Tristan Gingold <gingold@adacore.com>
11372 * libunwind-frame.c (libunwind_load): Display message if dlopen
11375 2012-02-01 Gary Benson <gbenson@redhat.com>
11377 * symtab.h (symbol_found_callback_ftype): New typedef.
11378 (iterate_over_symbols): Use the above.
11379 * symtab.c (iterate_over_symbols): Likewise.
11380 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11381 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11382 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11383 (iterate_name_matcher): Document return values.
11384 (collect_one_symbol): Likewise.
11385 (collect_function_symbols): Likewise.
11386 (collect_symbols): Likewise.
11388 2012-02-01 Tom Tromey <tromey@redhat.com>
11390 * ada-lang.c (resolve_subexp): Update.
11391 (ada_lookup_symbol_list): Add 'full_search' argument.
11392 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11393 ada_lookup_symbol_list.
11394 (ada_lookup_encoded_symbol): Update.
11395 (get_var_value): Update.
11396 * ada-exp.y (block_lookup): Update.
11397 (write_var_or_type): Update.
11398 (write_name_assoc): Update.
11399 * ada-lang.h (ada_lookup_symbol_list): Update.
11401 2012-01-31 Tom Tromey <tromey@redhat.com>
11403 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11406 2012-01-31 Doug Evans <dje@google.com>
11408 * symtab.h: Remove outdated comment.
11409 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11411 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11413 Fix build error in Darwin port.
11414 * i386-darwin-nat.c: Include i386-nat.h.
11416 2012-01-30 Tom Tromey <tromey@redhat.com>
11418 PR breakpoints/13568:
11419 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11420 argument. Check for recursive includes.
11421 (dwarf_decode_macros): Create an include hash.
11423 2012-01-30 Michael Eager <eager@eagercon.com>
11425 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11426 * ppc-linux-tdep.c: Include glibc-tdep.h.
11427 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11428 (powerpc_linux_in_plt_stub): New function.
11429 (powerpc_linux_in_dynsym_resolve_code): New function.
11430 (ppc_skip_trampoline_code): New function.
11431 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11432 Use glibc_skip_solib_resolver.
11434 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11436 Code cleanup: Make 1440 bytes of data segment read-only.
11437 * arch-utils.c (endian_enum): Make it const char *const [].
11438 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11440 * breakpoint.c (always_inserted_enums): Likewise.
11441 * cli/cli-cmds.c (script_ext_enums): Likewise.
11442 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11443 enumlist parameter const char *const *.
11444 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11445 const char *const *.
11446 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11447 parameter const char *const *.
11448 * cris-tdep.c (cris_modes): Make it const char *const [].
11449 * filesystem.c (target_file_system_kinds): Likewise.
11450 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11451 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11452 (can_use_displaced_stepping_enum, scheduler_enums)
11453 (exec_direction_names): Likewise.
11454 * language.c (_initialize_language): Make the type_or_range_names and
11455 case_sensitive_names variables const char *const [].
11456 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11457 * python/python.c (python_excp_enums): Likewise.
11458 * remote.c (interrupt_sequence_modes): Likewise.
11459 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11460 * serial.c (logbase_enums): Likewise.
11461 * sh-tdep.c (sh_cc_enum): Likewise.
11462 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11464 * symtab.c (multiple_symbols_modes): Likewise.
11465 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11467 * utils.c (internal_problem_modes): Likewise.
11469 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11471 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11472 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11475 2012-01-27 Doug Evans <dje@google.com>
11477 * configure.ac (with_python): Fix absolute path handling for win32.
11478 * configure: Regenerate.
11480 2012-01-26 Doug Evans <dje@google.com>
11482 * symtab.c: Whitespace cleanup, no code changes.
11484 * symtab.c (lookup_symbol_in_language): Improve comment.
11485 (lookup_symbol_aux): Fix comment.
11487 * psymtab.c (add_psymbol_to_list): Result is now "void".
11488 * psympriv.h (add_psymbol_to_list): Update.
11490 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11492 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11494 Do not open script filenames twice.
11495 * cli/cli-cmds.c (source_script_from_stream): Pass to
11496 source_python_script also STREAM.
11497 * python/py-auto-load.c (source_section_scripts): Pass to
11498 source_python_script_for_objfile also STREAM.
11499 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11501 * python/python-internal.h (source_python_script_for_objfile): New
11502 parameter file, rename parameter file to filename.
11503 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11504 instead if !_WIN32. Update the function comment.
11505 (source_python_script, source_python_script_for_objfile)
11506 (source_python_script): New parameter file, rename parameter file to
11507 filename. Pass FILENAME to python_run_simple_file.
11508 * python/python.h (source_python_script): New parameter file, rename
11509 parameter file to filename.
11511 2012-01-26 Pedro Alves <palves@redhat.com>
11513 * corelow.c (core_has_fake_pid): Delete.
11514 (core_close): Delete references to `core_has_fake_pid'.
11515 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11516 (core_open): Delete references to `core_has_fake_pid'.
11517 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11518 the removed global.
11520 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11522 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11523 Remove language parameter from name_matcher. Adjust the comment.
11524 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11525 Remove language parameter.
11526 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11527 * linespec.c (iterate_name_matcher): Likewise.
11528 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11529 name_matcher. Adjust call accordingly.
11530 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11531 (maintenance_check_symtabs): Adjust type of parameter "fun".
11532 * psymtab.h (maintenance_check_symtabs): Likewise.
11534 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11536 * language.h (symbol_name_match_p_ftype): New typedef.
11537 (struct language_defn): Replace field la_symbol_name_compare
11538 by la_get_symbol_name_match_p.
11539 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11540 (ada_language_defn): Use it.
11541 * linespec.c (struct symbol_matcher_data): New type.
11542 (iterate_name_matcher): Rewrite.
11543 (iterate_over_all_matching_symtabs): Pass a pointer to
11544 a symbol_matcher_data struct to expand_symtabs_matching
11545 instead of just the lookup name.
11546 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11547 opencl-lang.c, p-lang.c, language.c: Delete field
11548 la_symbol_name_compare, and replace by NULL for new field
11549 la_get_symbol_name_match_p.
11550 * symfile.h (struct quick_symbol_functions): Update comment.
11552 2012-01-25 Tom Tromey <tromey@redhat.com>
11554 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11557 2012-01-24 Tom Tromey <tromey@redhat.com>
11560 * solib.c (update_solib_list): Update the program space's
11561 added_solibs and deleted_solibs fields.
11562 * progspace.h (struct program_space) <added_solibs,
11563 deleted_solibs>: New fields.
11564 (clear_program_space_solib_cache): Declare.
11565 * progspace.c (release_program_space): Call
11566 clear_program_space_solib_cache.
11567 (clear_program_space_solib_cache): New function.
11568 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11569 bpstat_stop_status. Use handle_solib_event.
11570 * breakpoint.c: Include gdb_regex.h.
11571 (print_solib_event): New function.
11572 (bpstat_print): Use print_solib_event.
11573 (bpstat_stop_status): Add special case for bp_shlib_event.
11574 (handle_solib_event): New function.
11575 (bpstat_what): Use handle_solib_event.
11576 (struct solib_catchpoint): New.
11577 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11578 (breakpoint_hit_catch_solib, check_status_catch_solib)
11579 (print_it_catch_solib, print_one_catch_solib)
11580 (print_mention_catch_solib, print_recreate_catch_solib): New
11582 (catch_solib_breakpoint_ops): New global.
11583 (catch_load_or_unload, catch_load_command_1)
11584 (catch_unload_command_1): New functions.
11585 (internal_bkpt_check_status): Add special case for
11587 (internal_bkpt_print_it): Use print_solib_event.
11588 (initialize_breakpoint_ops): Initialize
11589 catch_solib_breakpoint_ops.
11590 (_initialize_breakpoint): Register "catch load" and "catch
11592 * breakpoint.h (handle_solib_event): Declare.
11593 * NEWS: Add entry for "catch load" and "catch unload".
11595 2012-01-24 Tom Tromey <tromey@redhat.com>
11597 * ada-lang.c: Include gdb_vecs.h.
11598 * charset.c: Include gdb_vecs.h.
11599 * tracepoint.h: Include gdb_vecs.h.
11600 * gdb_vecs.h: New file.
11602 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11604 * breakpoint.c (breakpoint_hit_catch_fork)
11605 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11606 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11607 * infrun.c (inferior_has_forked, inferior_has_vforked)
11608 (inferior_has_execd, inferior_has_called_syscall): Delete.
11609 (handle_syscall_event): Get syscall_number from the execution
11610 control state's wait status.
11611 (wait_for_inferior): Don't clear syscall_number.
11613 2012-01-24 Pedro Alves <palves@redhat.com>
11615 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11616 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11617 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11618 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11620 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11621 false for events other than TARGET_SIGNAL_TRAP.
11622 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11623 Add `ws' parameter.
11624 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11625 events other than TARGET_SIGNAL_TRAP.
11626 (tracepoint_breakpoint_hit): Add `ws' parameter.
11627 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11629 (bpstat_stop_status): Same.
11630 (pc_at_non_inline_function): Same.
11631 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11632 to pass the current event's waitstatus to bpstat_stop_status
11633 and pc_at_non_inline_function.
11635 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11638 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11639 Update the function comment for it.
11640 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11641 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11644 2012-01-24 Pedro Alves <palves@redhat.com>
11646 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11647 outside `bs->stop' block.
11648 (bpstat_what): Rework bp_shlib_event handling.
11649 (internal_bkpt_check_status): If the breakpoint is a
11650 bp_shlib_event, then set bs->stop and bs->print if
11651 stop_on_solib_events is set.
11653 2012-01-24 Gary Benson <gbenson@redhat.com>
11655 Delete #if 0'd out code.
11656 * stack.c (print_frame_label_vars): Remove.
11657 (catch_info): Likewise.
11658 (_initialize_stack): Remove "info catch" command.
11659 * NEWS: Mention the above.
11661 2012-01-24 Pedro Alves <palves@redhat.com>
11663 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11665 (remote_notice_new_inferior): If the remote end doesn't support
11666 the multiprocess extensions, then the PID is fake.
11667 (add_current_inferior_and_thread): New.
11668 (remote_start_remote): Use it.
11669 (extended_remote_attach_1): Adjust.
11670 (extended_remote_create_inferior_1): Use
11671 add_current_inferior_and_thread.
11673 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11675 Fix watchpoints to be specific for each inferior.
11676 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11677 current_program_space.
11678 * i386-nat.c (i386_inferior_data_cleanup): New.
11679 (i386_inferior_data_get): Replace variable inf_data_local by an
11680 inferior_data call.
11681 (i386_use_watchpoints): Initialize i386_inferior_data.
11682 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11683 specific iterate_over_lwps.
11685 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11687 Fix watchpoints across inferior fork.
11688 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11689 comment for linux_nat_iterate_watchpoint_lwps.
11690 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11691 linux_nat_iterate_watchpoint_lwps.
11692 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11693 * i386-linux-nat.c (update_debug_registers_callback): Update the
11694 comment for linux_nat_iterate_watchpoint_lwps.
11695 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11696 linux_nat_iterate_watchpoint_lwps.
11697 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11698 * i386-nat.c: Include inferior.h.
11699 (dr_mirror): Remove.
11700 (i386_inferior_data, struct i386_inferior_data)
11701 (i386_inferior_data_get): New.
11702 (i386_debug_reg_state): Use i386_inferior_data_get.
11703 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11704 (i386_insert_watchpoint, i386_remove_watchpoint)
11705 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11706 (i386_remove_hw_breakpoint): New variable state, use
11707 i386_debug_reg_state instead of DR_MIRROR.
11708 * linux-nat.c (delete_lwp): New declaration.
11709 (num_lwps): Move here from downwards.
11710 (delete_lwp_cleanup): New.
11711 (linux_child_follow_fork): Create new child_lp, call
11712 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11714 (num_lwps): Move upwards.
11715 (linux_nat_iterate_watchpoint_lwps): New.
11716 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11717 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11719 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11723 2012-01-23 Pedro Alves <palves@redhat.com>
11725 * top.c (caution): Rename to ...
11726 (confirm): ... this.
11727 (show_caution): Rename to ...
11728 (show_confirm): ... this.
11729 (quit_cover): Adjust.
11730 (init_main): Adjust.
11731 * top.h (caution): Rename to ...
11732 (confirm): ... this.
11733 * utils.c (internal_vproblem, defaulted_query): Adjust.
11735 2012-01-23 Pedro Alves <palves@redhat.com>
11737 * top.c (caution): Update comment.
11738 (execute_command): Don't consider the current value of `caution'.
11740 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11742 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11744 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11746 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11747 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11748 * target.c (target_fileio_pwrite): Remove buffer address from
11750 (target_fileio_pread): Likewise.
11752 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11754 * NEWS: Document remote "info proc" and "generate-core-file".
11756 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11758 * gdbarch.sh (find_memory_regions): New callback.
11759 * gdbarch.c, gdbarch.h: Regenerate.
11761 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11762 callback before falling back to target method.
11764 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11765 (linux_target_install_ops): No longer install it.
11767 * linux-tdep.c (linux_find_memory_regions): New function.
11768 (linux_init_abi): Install it.
11770 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11772 * gdbarch.sh (make_corefile_notes): New architecture callback.
11773 * gdbarch.c: Regenerate.
11774 * gdbarch.h: Likewise.
11776 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11777 before target_make_corefile_notes. If NULL is returned, the
11778 target does not support core file generation.
11780 * linux-nat.c: Include "linux-tdep.h".
11781 (find_signalled_thread, find_stop_signal): Remove.
11782 (linux_nat_do_thread_registers): Likewise.
11783 (struct linux_nat_corefile_thread_data): Likewise.
11784 (linux_nat_corefile_thread_callback): Likewise.
11785 (iterate_over_spus): Likewise.
11786 (struct linux_spu_corefile_data): Likewise.
11787 (linux_spu_corefile_callback): Likewise.
11788 (linux_spu_make_corefile_notes): Likewise.
11789 (linux_nat_collect_thread_registers): New function.
11790 (linux_nat_make_corefile_notes): Replace contents by call to
11791 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11792 as native-only callback.
11794 * linux-tdep.h: Include "bfd.h".
11795 (struct regcache): Add forward declaration.
11796 (linux_collect_thread_registers_ftype): New typedef.
11797 (linux_make_corefile_notes): Add prototype.
11798 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11799 "regset.h", and "elf-bfd.h".
11800 (find_signalled_thread, find_stop_signal): New functions.
11801 (linux_spu_make_corefile_notes): Likewise.
11802 (linux_collect_thread_registers): Likewise.
11803 (struct linux_corefile_thread_data): New data structure.
11804 (linux_corefile_thread_callback): New funcion.
11805 (linux_make_corefile_notes): Likewise.
11806 (linux_make_corefile_notes_1): Likewise.
11807 (linux_init_abi): Install it.
11809 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11811 * gdbarch.sh (info_proc): New callback.
11812 * gdbarch.c, gdbarch.h: Regenerate.
11814 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11815 before falling back to the target info_proc callback.
11817 * linux-nat.c: Do not include "cli/cli-utils.h".
11818 (linux_nat_info_proc): Remove.
11819 (linux_target_install_ops): No longer install it.
11821 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11822 (read_mapping): New function.
11823 (linux_info_proc): Likewise.
11824 (linux_init_abi): Install it.
11826 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11828 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11829 * infcmd.c: (info_proc_cmd_1): New function.
11830 (info_proc_cmd): New function, moved here from equivalent routine
11831 orignally in linux-nat.c.
11832 (info_proc_cmd_mappings): Likewise.
11833 (info_proc_cmd_stat): Likewise.
11834 (info_proc_cmd_status): Likewise.
11835 (info_proc_cmd_cwd): Likewise.
11836 (info_proc_cmd_cmdline): Likewise.
11837 (info_proc_cmd_exe): Likewise.
11838 (info_proc_cmd_all): Likewise.
11839 (_initialize_infcmd): Install "info proc" command and subcommands.
11841 * target.h (struct target_ops): Add to_info_proc.
11842 (target_info_proc): Add prototype.
11843 * target.c (target_info_proc): New function.
11845 * procfs.c (procfs_info_proc): Add prototype.
11846 (info_proc_cmd): Rename into ...
11847 (procfs_info_proc): ... this. Update argument types as appropriate
11848 for a to_info_proc implementation. Handle "what" argument.
11849 (procfs_target): Install procfs_info_proc.
11850 (_initialize_procfs): No longer install "info proc" command.
11852 * linux-nat.c: (enum info_proc_what): Remove.
11853 (linux_nat_info_proc_cmd_1): Rename into ...
11854 (linux_nat_info_proc): ... this. Update argument types as appropriate
11855 for a to_info_proc implementation.
11856 (linux_nat_info_proc_cmd): Remove.
11857 (linux_nat_info_proc_cmd_mappings): Likewise.
11858 (linux_nat_info_proc_cmd_stat): Likewise.
11859 (linux_nat_info_proc_cmd_status): Likewise.
11860 (linux_nat_info_proc_cmd_cwd): Likewise.
11861 (linux_nat_info_proc_cmd_cmdline): Likewise.
11862 (linux_nat_info_proc_cmd_exe): Likewise.
11863 (linux_nat_info_proc_cmd_all): Likewise.
11864 (linux_target_install_ops): Install linux_nat_info_proc.
11865 (_initialize_linux_nat): No longer install "info proc" command
11868 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11870 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11871 * config.in, configure: Regenerate.
11873 * target.h (struct target_ops): Add to_fileio_readlink.
11874 (target_fileio_readlink): Add prototype.
11875 * target.c (target_fileio_readlink): New function.
11877 * inf-child.c: Conditionally include <sys/param.h>.
11878 (inf_child_fileio_readlink): New function.
11879 (inf_child_target): Install it.
11881 * remote.c (PACKET_vFile_readlink): New enum value.
11882 (remote_hostio_readlink): New function.
11883 (init_remote_ops): Install it.
11884 (_initialize_remote): Handle vFile:readlink packet type.
11886 2012-01-20 Pedro Alves <palves@redhat.com>
11887 Ulrich Weigand <ulrich.weigand@linaro.org>
11889 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11890 * config.in, configure: Regenerate.
11892 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11893 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11894 (target_fileio_open): Add prototype.
11895 (target_fileio_pwrite): Likewise.
11896 (target_fileio_pread): Likewise.
11897 (target_fileio_close): Likewise.
11898 (target_fileio_unlink): Likewise.
11899 (target_fileio_read_alloc): Likewise.
11900 (target_fileio_read_stralloc): Likewise.
11902 * target.c: Include "gdb/fileio.h".
11903 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11904 (default_fileio_target): New function.
11905 (target_fileio_open): Likewise.
11906 (target_fileio_pwrite): Likewise.
11907 (target_fileio_pread): Likewise.
11908 (target_fileio_close): Likewise.
11909 (target_fileio_unlink): Likewise.
11910 (target_fileio_close_cleanup): Likewise.
11911 (target_fileio_read_alloc_1): Likewise.
11912 (target_fileio_read_alloc): Likewise.
11913 (target_fileio_read_stralloc): Likewise.
11915 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11916 <fcntl.h>, and <unistd.h>.
11917 (inf_child_fileio_open_flags_to_host): New function.
11918 (inf_child_errno_to_fileio_error): Likewise.
11919 (inf_child_fileio_open): Likewise.
11920 (inf_child_fileio_pwrite): Likewise.
11921 (inf_child_fileio_pread): Likewise.
11922 (inf_child_fileio_close): Likewise.
11923 (inf_child_fileio_unlink): Likewise.
11924 (inf_child_target): Install to_fileio routines.
11926 * remote.c (init_remote_ops): Install to_fileio routines.
11928 2012-01-20 Pedro Alves <palves@redhat.com>
11929 Ulrich Weigand <ulrich.weigand@linaro.org>
11931 * remote.c (remote_multi_process_p): Only check for multi-process
11932 protocol feature, do not check for extended protocol.
11933 (remote_supports_multi_process): Check for extended protocol here.
11934 (set_general_process): Likewise.
11935 (extended_remote_kill): Likewise.
11936 (remote_pid_to_str): Likewise.
11937 (remote_query_supported): Always query multiprocess mode.
11939 2012-01-20 Pedro Alves <palves@redhat.com>
11940 Ulrich Weigand <ulrich.weigand@linaro.org>
11942 * inferior.h (struct inferior): Add fake_pid_p.
11943 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11944 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11945 magic_null_ptid since the remote side doesn't provide a real PID.
11947 2012-01-19 Tom Tromey <tromey@redhat.com>
11949 * NEWS: Combine the two Python sections.
11951 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11953 * target.h (target_close): Update comment on the target's unpush state.
11955 2012-01-19 Pedro Alves <palves@redhat.com>
11957 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11958 linux_nat_async directly instead of going through the target
11960 * target.c (unpush_target): Close target after unpushing it, not
11963 2012-01-19 Gary Benson <gbenson@redhat.com>
11965 * mdebugread.c (sort_blocks): Replace integer constants with ones
11966 derived from FIRST_LOCAL_BLOCK.
11968 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11969 Jan Kratochvil <jan.kratochvil@redhat.com>
11972 * symfile.c (find_separate_debug_file): New function.
11973 (terminate_after_last_dir_separator): Likewise.
11974 (find_separate_debug_file_by_debuglink): Also try realpath.
11975 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11976 * configure: Regenerate.
11977 * config.in: Regenerate.
11979 2012-01-18 Doug Evans <dje@google.com>
11981 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11982 (main.o): Remove rule.
11983 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11984 (--with-sysroot): Rewrite.
11985 * configure: Regenerate.
11986 * config.in: Regenerate.
11988 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11990 * parse.c (initialize_expout): New function.
11991 (reallocate_expout): Likewise.
11992 (parse_exp_in_context): Use `initialize_expout' and
11993 `reallocate_expout' when appropriate.
11995 2012-01-18 Pedro Alves <palves@redhat.com>
11997 * record.c (struct record_breakpoint, record_breakpoint_p)
11998 (record_breakpoints): New.
11999 (record_insert_breakpoint, record_remove_breakpoint): Manage
12000 record breakpoints list. Only remove breakpoints from the
12001 inferior if they had been inserted there in the first place.
12003 2012-01-17 Doug Evans <dje@google.com>
12005 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12006 if we know we don't have a file name to look for.
12008 2012-01-17 Pedro Alves <palves@redhat.com>
12010 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12011 the frame's stop reason is UNWIND_UNAVAILABLE.
12013 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12015 Fix compilation error.
12016 * m2-exp.y (yyerror): Use ANSI C prototype.
12018 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12020 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12021 (growbuf_by_size): Likewise.
12022 (yyerror): Likewise.
12023 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12024 (modblock): Remove variable (was #if 0'ed).
12025 (parse_number): Convert prototype from K&R to ANSI C.
12026 (yyerror): Likewise.
12027 * objc-exp.y (parse_number): Likewise.
12028 (yyerror): Likewise.
12029 (yylex): Remove #if 0'ed code.
12030 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12031 (yyerror): Likewise.
12033 2012-01-16 Tom Tromey <tromey@redhat.com>
12036 * symtab.h (compare_filenames_for_search): Declare.
12037 * symtab.c (compare_filenames_for_search): New function.
12038 (iterate_over_some_symtabs): Use it.
12039 * symfile.h (struct quick_symbol_functions)
12040 <map_symtabs_matching_filename>: Change spec.
12041 * psymtab.c (partial_map_symtabs_matching_filename): Use
12042 compare_filenames_for_search. Update for new spec.
12043 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12044 compare_filenames_for_search. Update for new spec.
12045 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12047 2012-01-16 Tom Tromey <tromey@redhat.com>
12050 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12051 (struct main_type) <flag_flag_enum>: New field.
12052 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12053 * NEWS: Add entries.
12054 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12056 * python/lib/gdb/printing.py (_EnumInstance): New class.
12057 (FlagEnumerationPrinter): Likewise.
12059 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12061 * breakpoint.c (create_sals_from_address_default): New function.
12062 (create_breakpoints_sal_default): Likewise.
12063 (decode_linespec_default): Likewise.
12064 (is_marker_spec): Removed.
12065 (strace_marker_p): New function.
12066 (init_breakpoint_sal): Using `strace_marker_p' instead of
12068 (create_breakpoint): Call method `create_sals_from_address' from
12069 breakpoint_ops, replacing code that created SALs conditionally
12070 on the type of the breakpoint. Call method `create_breakpoints_sal',
12071 replacing code that created breakpoints conditionally on the type
12073 (base_breakpoint_create_sals_from_address): New function.
12074 (base_breakpoint_create_breakpoints_sal): Likewise.
12075 (base_breakpoint_decode_linespec): Likewise.
12076 (base_breakpoint_ops): Add methods
12077 `base_breakpoint_create_sals_from_address',
12078 `base_breakpoint_create_breakpoints_sal' and
12079 `base_breakpoint_decode_linespec'.
12080 (bkpt_create_sals_from_address): New function.
12081 (bkpt_create_breakpoints_sal): Likewise.
12082 (bkpt_decode_linespec): Likewise.
12083 (tracepoint_create_sals_from_address): Likewise.
12084 (tracepoint_create_breakpoints_sal): Likewise.
12085 (tracepoint_decode_linespec): Likewise.
12086 (strace_marker_create_sals_from_address): Likewise.
12087 (strace_marker_create_breakpoints_sal): Likewise.
12088 (strace_marker_decode_linespec): Likewise.
12089 (strace_marker_breakpoint_ops): New variable.
12090 (addr_string_to_sals): Remove `marker_spec'. Call method
12091 `decode_linespec' from breakpoint_ops, replacing code that decoded
12092 an address string into a SAL. Use `strace_marker_p' instead of
12094 (strace_command): Decide whether we are dealing with a static
12095 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12096 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12097 * breakpoint.h (linespec_result, linespec_sals): New forward
12099 (breakpoint_ops) <create_sals_from_address>,
12100 <create_breakpoints_sal>, <decode_linespec>: New methods.
12102 2012-01-14 Doug Evans <dje@google.com>
12104 * NEWS: Update text for "maint set python print-stack".
12105 It is deprecated in gdb 7.4 and deleted in 7.5.
12107 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12109 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12110 including curses.h.
12112 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12114 * configure: Regenerate.
12115 * config.in: Regenerate.
12117 2012-01-12 Keith Seitz <keiths@redhat.com>
12120 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12121 (ANONYMOUS_UNION_NAME): Define.
12122 (is_path_expr_parent): New function.
12123 (get_path_expr_parent): New function.
12124 (is_anonymous_child): New function.
12125 (create_child_with_value): If the child is anonymous and without
12126 a name, assign an object name to it.
12127 (c_describe_child): Use get_path_expr_parent to determine
12128 the parent expression.
12129 If there field represents an anonymous struct or union and
12130 has no name, set an appropriate display name and expression.
12131 (cplus_describe_child): Likewise.
12133 2012-01-12 Pedro Alves <palves@redhat.com>
12135 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12136 available when %ebp is found to be zero (outermost).
12138 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12140 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12141 an internal gdb_static_assert.
12142 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12144 2012-01-11 Tom Tromey <tromey@redhat.com>
12147 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12148 catch" and "catch throw".
12150 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12152 * blockframe.c (block_innermost_frame): Start search from selected
12153 frame, if present, or otherwise the current frame.
12155 * c-exp.y (variable): Update innermost_block for
12156 'block COLONCOLON NAME' clause.
12157 * m2-exp.y (variable): Ditto.
12158 * objc-exp.y (variable): Ditto.
12160 2012-01-10 Tom Tromey <tromey@redhat.com>
12163 * python/python.c (finish_python_initialization): Set sys.argv.
12165 2012-01-10 Doug Evans <dje@google.com>
12167 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12168 "want_line_info". All callers updated.
12169 (dwarf_decode_lines_1): New function.
12170 (handle_DW_AT_stmt_list): Add function comment.
12171 New arg "want_line_info". All callers updated.
12172 (read_file_scope,read_type_unit_scope): Move comment from
12173 handle_DW_AT_stmt_list to here.
12175 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12177 Fix regression after libiberty/ update for GCC PR 6057 and others.
12178 * c-exp.y (operator) <OPERATOR DELETE>
12179 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12180 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12181 (make_builtin_type, make_name): New variable i, add gdb_assert.
12182 (operator) <OPERATOR NEW>: Update ARGS to 3.
12183 (operator) <OPERATOR DELETE>: Add trailing space.
12184 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12185 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12186 * cp-support.c (cp_canonicalize_string): Check NULL from
12187 cp_comp_to_string, call warning and return.
12189 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12191 Fix duplicate .o files after omitting libbfd.a.
12192 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12193 (SFILES): Add corelow.c.
12194 (COMMON_OBS): Add corelow.o.
12195 (ALLDEPFILES): Remove corelow.c.
12196 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12197 * config/alpha/alpha-osf3.mh: Likewise.
12198 * config/alpha/fbsd.mh: Likewise.
12199 * config/arm/nbsdaout.mh: Likewise.
12200 * config/arm/nbsdelf.mh: Likewise.
12201 * config/i386/i386gnu.mh: Likewise.
12202 * config/ia64/hpux.mh: Likewise.
12203 * config/ia64/linux.mh: Likewise.
12204 * config/m32r/linux.mh: Likewise.
12205 * config/m68k/linux.mh: Likewise.
12206 * config/mips/irix5.mh: Likewise.
12207 * config/mips/irix6.mh: Likewise.
12208 * config/pa/hpux.mh: Likewise.
12209 * config/pa/linux.mh: Likewise.
12210 * config/powerpc/aix.mh: Likewise.
12211 * config/sparc/linux.mh: Likewise.
12212 * config/sparc/linux64.mh: Likewise.
12213 * config/sparc/sol2.mh: Likewise.
12214 * config/vax/vax.mh: Likewise.
12215 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12216 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12217 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12218 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12219 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12220 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12221 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12222 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12223 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12224 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12225 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12226 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12227 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12228 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12229 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12230 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12231 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12232 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12233 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12234 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12235 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12236 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12237 corelow.o from gdb_target_obs.
12238 * corefile.c (core_target): Update the comment on NULL value.
12239 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12240 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12241 MATCHES. Drop YUMMY set on NULL.
12242 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12243 reclaim CORE_DATA if it is already NULL.
12245 2012-01-09 Doug Evans <dje@google.com>
12247 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12248 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12250 2012-01-09 Keith Seitz <keiths@redhat.com>
12252 * breakpoint.c (wrapper.h): Don't include.
12254 2012-01-09 Keith Seitz <keiths@redhat.com>
12256 * Makefile.in (SFILES): Remove wrapper.c.
12257 (HFILES_NO_SRCDIR): Remove wrapper.h.
12258 (COMMON_OBS): Remove wrapper.o.
12259 * cli/cli-interp.c: Don't inlude wrapper.h.
12260 * corelow.c: Likewise.
12261 (core_open): Replace gdb_target_find_new_threads with
12262 TRY_CATCH around target_find_new_threads.
12263 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12264 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12265 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12266 evaluate_expression.
12267 (varobj_set_value): Likewise for evaluate_expression and
12269 (install_new_variable): Likewise for value_fetch_lazy.
12270 (adjust_value_for_child_access): Likewise for value_ind.
12271 (c_describe_child): Likewise for value_subscript and
12273 (c_value_of_root): Likewise for evaluate_expression.
12274 * wrapper.c: Remove.
12275 * wrapper.h: Remove.
12277 2012-01-09 Doug Evans <dje@google.com>
12279 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12280 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12281 "abfd" args with "section". All callers updated.
12282 Error checking code moved ...
12283 (error_check_comp_unit_head): ... here. New function.
12284 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12285 Delete arg "abfd". New arg "type_offset". All callers updated.
12286 (create_debug_types_hash_table): Simplify by using
12287 read_and_check_type_unit_head.
12289 * parser-defs.h (namecopy): Delete.
12290 * parse.c (namecopy, namecopy_size): Move into copy_name.
12292 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12294 Partially fix duplicate .o files after omitting libbfd.a.
12295 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12296 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12297 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12298 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12299 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12300 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12301 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12303 2012-01-09 Pedro Alves <palves@redhat.com>
12305 * MAINTAINERS: Update my email address.
12307 2012-01-08 Doug Evans <dje@google.com>
12309 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12310 n_type_units. Rename type_comp_units to all_type_units.
12312 (add_signatured_type_cu_to_table): Renamed from
12313 add_signatured_type_cu_to_list. All callers updated.
12315 * gdbtypes.h (struct cplus_struct_type): Delete member
12316 nfn_fields_total. All uses removed.
12318 2012-01-06 Doug Evans <dje@google.com>
12320 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12322 (dwarf2_find_comp_unit): Delete.
12323 (process_psymtab_comp_unit): Make result "void".
12324 Delete args buffer, info_ptr, buffer_size, and replace with
12325 "section". All callers updated.
12326 (dwarf2_build_psymtabs_hard): Simplify.
12328 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12329 Thiago Jung Bauermann <bauerman@br.ibm.com>
12331 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12332 before `struct gdb_exception'.
12333 * breakpoint.c (update_global_location_list_nothrow)
12334 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12335 * cp-abi.c (value_rtti_type): Likewise.
12336 * cp-support.c (cp_validate_operator): Likewise.
12337 * infrun.c (insert_exception_resume_breakpoint)
12338 (check_exception_resume, keep_going): Likewise.
12339 * mi-interp.c (mi_breakpoint_created)
12340 (mi_breakpoint_modified): Likewise.
12341 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12342 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12343 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12345 2012-01-05 Doug Evans <dje@google.com>
12347 * dwarf2read.c (statement_prologue): Delete, unused.
12349 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12350 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12352 * dwarf2read.c (comp_unit_header): Delete, unused.
12354 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12356 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12357 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12359 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12361 * infrun.c (normal_stop): Don't skip calling the normal_stop
12362 observers if the thread was doing a multi-step, but stopped for
12363 some reason other than stepping.
12365 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12367 * cli/cli-decode.h: Add comments.
12368 (CMD_LIST_AMBIGUOUS): Moved to command.h
12369 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12370 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12371 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12372 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12373 (add_com, add_com_alias, add_info, add_info_alias)
12374 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12376 * command.h: Add and adjust comments.
12377 (CMD_LIST_AMBIGUOUS): Moved here.
12378 (help_cmd, help_cmd_list): Delete declarations.
12380 2012-01-04 Doug Evans <dje@google.com>
12382 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12383 All callers updated.
12384 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12385 Replace all arguments with "per_cu". All callers updated.
12387 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12389 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12390 New arg "per_cu". All callers updated.
12392 Delete #if 0'd out code.
12393 * language.c (binop_result_type): Delete.
12394 (simple_type, ordered_type, same_type, integral_type): Delete.
12395 (numeric_type, character_type, string_type, boolean_type): Delete.
12396 (float_type, structured_type): Delete.
12397 * language.h: Update.
12399 2012-01-04 Tom Tromey <tromey@redhat.com>
12401 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12403 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12405 * corefile.c (close_exec_file): Delete.
12406 (reopen_exec_file): Remove commented out code that seems related
12407 to close_exec_file, which is being deleted here.
12408 * inferior.h (close_exec_file): Delete.
12409 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12411 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12413 * ada-lang.c: #include "cli/cli-utils.h".
12414 (get_selections): Use skip_spaces.
12415 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12416 (catch_ada_exception_command_split): Use skip_spaces.
12417 (ada_decode_assert_location): Likewise.
12419 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12421 * linespec.c (decode_line_internal): Check for C++ or Java
12422 compound constructs only if the current language is C, C++
12425 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12428 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12429 Joel Brobecker <brobecker@adacore.com>
12430 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12431 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12433 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12434 fall through into AT_ENTRY_POINT.
12435 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12436 DUMMY_ADDR with it.
12437 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12438 PPC_INSN_SIZE skip to 3 times.
12440 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12442 * linespec.c (add_minsym): Preserve function descriptors.
12444 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12446 * breakpoint.c (all_locations_are_pending): Consider locations
12447 in program spaces executing during startup pending as well.
12449 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12451 Copyright year update in most files of the GDB Project.
12453 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12455 * copyright.sh: Delete.
12456 * copyright.py: Rewrite.
12458 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12460 * gnulib/extra/update-copyright: New file, imported from gnulib.
12462 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12464 * README (Copyright and License Notices): New section.
12466 2012-01-03 Tom Tromey <tromey@redhat.com>
12469 * python/py-value.c (valpy_dereference, valpy_get_address
12470 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12471 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12472 (valpy_absolute, valpy_richcompare): Free intermediate values.
12474 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12476 * ada-lang.c: Reformat the copyright notice.
12478 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12480 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12481 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12482 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12483 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12484 Revert this part of:
12485 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12486 Build gdb directly from *.o files not using libgdb.a.
12487 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12489 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12491 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12492 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12493 Reformat the copyright header.
12495 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12497 Revert this part of:
12498 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12499 Remove the gdbtui binary.
12500 * gdb.c (main): Remove args.interpreter_p initialization.
12501 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12502 * main.h (struct captured_main_args): Remove interpreter_p.
12504 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12506 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12508 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12510 * top.c (print_gdb_version): Update copyright year.
12512 2012-01-02 Yao Qi <yao@codesourcery.com>
12514 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12516 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12517 Joel Brobecker <brobecker@adacore.com>
12519 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12520 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12522 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12523 fall through into AT_ENTRY_POINT.
12524 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12525 DUMMY_ADDR with it.
12526 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12527 PPC_INSN_SIZE skip to 3 times.
12529 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12531 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12533 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12535 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12537 Build gdb directly from *.o files not using libgdb.a.
12538 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12539 (COMMON_OBS): Remove solib-target.o.
12540 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12541 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12542 (LIBGDB_OBS, libgdb.a): Move it above.
12543 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12544 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12545 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12546 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12547 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12548 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12549 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12550 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12551 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12552 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12553 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12554 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12555 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12556 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12557 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12558 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12559 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12560 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12561 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12562 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12563 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12564 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12565 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12566 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12567 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12568 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12569 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12571 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12573 Remove the gdbtui binary.
12574 * .gitignore (/gdbtui): Remove.
12575 * Makefile.in (TUI): Remove.
12576 (SUBDIR_TUI_OBS): Remove tui-main.o.
12577 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12578 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12579 (tui-main.o): Remove.
12580 (all_object_files): Remove tui-main.o.
12581 * NEWS: New note for the gdbtui removal.
12582 * configure: Rebuilt.
12583 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12584 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12585 CONFIG_UNINSTALL respectively.
12586 * gdb.c (main): Remove args.interpreter_p initialization.
12587 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12588 * main.h (struct captured_main_args): Remove interpreter_p.
12589 * tui/tui-main.c: Remove.
12591 2012-01-01 Doug Evans <dje@google.com>
12593 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12594 (dwarf2_physname, read_import_statement): Ditto.
12595 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12596 (process_structure_scope read_subroutine_type): Ditto.
12597 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12598 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12599 (dwarf2_fetch_die_location_block): Ditto.
12600 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12602 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12603 All callers updated.
12604 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12605 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12606 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12608 * dwarf2read.c (load_cu): Move assert to more useful location.
12610 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12611 All callers updated.
12613 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12614 (dwarf2_elf_names): Minor reformat.
12615 (dwarf2_per_cu_data): Tweak comment.
12616 (dwarf2_read_section): Fix comment.
12617 (create_all_comp_units): Fix comment.
12618 (load_full_comp_unit): Fix comment.
12619 (process_full_comp_unit): Fix comment.
12620 (read_signatured_type): Fix comment.
12622 For older changes see ChangeLog-2011.
12628 version-control: never