dc5197567bb3349b12b75d0d197049ad0e9d25b2
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-12 Paul Koning <paul_koning@dell.com>
2
3 Add support for Python 3.
4 * NEWS: Mention Python 3 support.
5 * varobj.c (value_get_print_value): Use
6 python_string_to_target_string.
7 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
8 of type objects.
9 * python/py-breakpoint.c: Ditto.
10 * python/py-cmd.c: Ditto.
11 * python/py-event.c: Ditto.
12 * python/py-event.h: Ditto.
13 * python/py-evtregistry.c: Ditto.
14 * python/py-finishbreakpoint.c: Ditto.
15 * python/py-frame.c: Ditto.
16 * python/py-function.c: Ditto.
17 * python/py-infthread.c: Ditto.
18 * python/py-lazy-string.c: Ditto.
19 * python/py-progspace.c: Ditto.
20 * /python/py-symbol.c: Ditto.
21 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
22 initialization for Python 3.
23 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
24 of type objects.
25 (infpy_read_memory): Return memoryview object if Python 3.
26 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
27 (infpy_search_memory): Ditto.
28 (get_buffer): New function for Python 3.
29 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
30 of type objects.
31 (objfpy_dealloc): Use Py_TYPE to call tp_free.
32 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
33 of type objects.
34 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
35 (set_attr): Ditto.
36 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
37 instead of PyString methods if Python 3.
38 (print_children): Skip push_dummy_python_frame call if Python 3.
39 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
40 of type objects.
41 (salpy_dealloc): Use Py_TYPE to call tp_free.
42 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
43 of type objects.
44 (field_dealloc): Use Py_TYPE to call tp_free.
45 (typy_dealloc): Ditto.
46 (type_object_as_number): Adjust struct initializations for
47 differences in layout for Python 2 vs. Python 3.
48 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
49 string case for Python 3.
50 (unicode_to_encoded_python_string): Shorten code (no functional
51 change).
52 (python_string_to_target_python_string): Comment that in Python 3
53 returned value is a Python "bytes" type.
54 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
55 (gdb_py_object_from_longest): Omit non-long integer case in Python
56 3.
57 (gdb_py_object_from_ulongest): Ditto.
58 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
59 of type objects.
60 (valpy_dealloc): Use Py_TYPE to call tp_free.
61 (valpy_int): Omit function if Python 3.
62 (convert_value_from_python): Use "%S" format (Python object as a
63 string) if Python 3.
64 (value_object_as_number): Adjust struct initializations for
65 differences in layout for Python 2 vs. Python 3.
66 * python/python-config.py: Adjust syntax for Python 3
67 compatibility.
68 Include "sys.abiflags" string as part of python library name, if
69 that attribute exists (Python 3).
70 * python/python-internal.h (IS_PY3): Define if Python 3.
71 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
72 placeholder value if Python 3.
73 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
74 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
75 analogous Python 3 API function if Python 3.
76 (PyVarObject_HEAD_INIT): Define if not already defined.
77 (Py_TYPE): Ditto.
78 * python/python.c (eval_python_command): Omit Py_FlushLine call if
79 Python 3.
80 Check return values of all Python API calls for error.
81 Supply dummy "python" and "python-interactive" commands if Python
82 initialization failed.
83 (_initialize_python): Convert argc to wchar_t** if Python 3.
84 Add module initialization for Python 3.
85 (finish_python_initialization): Pass wchar_t * argument to
86 PySys_SetPath if Python 3.
87 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
88 (_GdbFile): New class for common output file behavior.
89 (GdbOutFile): Subclass from _GdbFile.
90 (GdbOutputErrorFile): Ditto.
91 (auto_load_packages): Adjust syntax for Python 3 compatibility.
92 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
93 * python/lib/gdb/prompt.py: Use sorted() function rather than
94 sort() method.
95 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
96 Adjust syntax for Python 3 compatibility.
97 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
98 rather than sort() method.
99 Adjust syntax for Python 3 compatibility.
100 * python/lib/gdb/command/type_printers.py: Ditto.
101 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
102 value is a memoryview object if Python 3.
103
104 2012-12-12 Tom Tromey <tromey@redhat.com>
105
106 * coffread.c (coff_objfile_data_key): New global.
107 (coff_symfile_init): Use set_objfile_data.
108 (coff_symfile_read): Use objfile_data.
109 (coff_symfile_finish): Don't free deprecated_sym_private.
110 (coff_free_info): New function.
111 (_initialize_coffread): Initialize coff_objfile_data_key.
112 * mdebugread.c (pending_list): Update comment.
113 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
114 * symfile.c (reread_symbols): Don't mention
115 deprecated_sym_private.
116 * xcoffread.c (xcoff_objfile_data_key): New global.
117 (XCOFF_DATA): New macro.
118 (process_linenos, enter_line_range, xcoff_next_symbol_text)
119 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
120 XCOFF_DATA.
121 (xcoff_new_init) Use set_objfile_data.
122 (xcoff_symfile_finish): Don't free deprecated_sym_private.
123 (init_stringtab, swap_sym, scan_xcoff_symtab)
124 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
125 (xcoff_free_info): New function.
126 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
127
128 2012-12-12 Tom Tromey <tromey@redhat.com>
129
130 * coffread.c (coff_symfile_init): Use set_objfile_data.
131 (coff_symfile_read): Use DBX_SYMFILE_INFO.
132 * dbxread.c (dbx_objfile_data_key): New global.
133 (dbx_symfile_init): Use set_objfile_data.
134 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
135 (dbx_free_symfile_info): New function.
136 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
137 DBX_SYMFILE_INFO.
138 (stabsect_build_psymtabs): Use set_objfile_data.
139 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
140 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
141 set_objfile_data.
142 (free_elfinfo): Use DBX_SYMFILE_INFO.
143 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
144 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
145 * gdb-stabs.h (dbx_objfile_data_key): Declare.
146 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
147 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
148 * somread.c (som_symfile_finish): Don't free
149 deprecated_sym_stab_info.
150
151 2012-12-12 Joel Brobecker <brobecker@adacore.com>
152
153 * gdbarch.sh (software_single_step): Remove trailing space in
154 comment (gdbarch.h is already correct).
155
156 2012-12-11 Tom Tromey <tromey@redhat.com>
157
158 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
159
160 2012-12-11 Tom Tromey <tromey@redhat.com>
161
162 * dsrec.c (report_transfer_performance): Don't declare.
163 (load_srec): Use gettimeofday, print_transfer_performance.
164 * symfile.c (report_transfer_performance): Remove.
165
166 2012-12-11 Pedro Alves <pedro@codesourcery.com>
167 Pedro Alves <palves@redhat.com>
168
169 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
170 NT_PSTATUS note.
171 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
172 differently from LWP IDs.
173
174 2012-12-11 Pedro Alves <palves@redhat.com>
175
176 * configure.ac (detect type of /proc): Remove Unixware handling.
177 * configure: Regenerate.
178 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
179 (ioctl_table) [PCRESET]: Remove entry.
180 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
181 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
182 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
183 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
184 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
185 Unixware in comments throughout.
186 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
187 and remove mention of Unixware.
188
189 2012-12-10 Doug Evans <dje@google.com>
190
191 * dwarf2read.c (dwarf2_cu): Enhance comment.
192 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
193 the DWO file.
194 (dwarf2_record_block_ranges): Ditto.
195
196 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
197
198 * symtab.c (find_pc_sect_symtab): Add comment.
199
200 2012-12-10 Tom Tromey <tromey@redhat.com>
201
202 * defs.h: Don't check for definition of LONGEST.
203 (min, max): Remove duplicates.
204
205 2012-12-10 Tom Tromey <tromey@redhat.com>
206
207 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
208 (dwarf2_fetch_die_loc_cu_off): Rename from
209 dwarf2_fetch_die_location_block. Rewrite to use
210 dwarf2_fetch_die_loc_sect_off.
211 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
212 (dwarf2_fetch_die_loc_cu_off): Rename.
213 * dwarf2loc.c (indirect_pieced_value): Use
214 dwarf2_fetch_die_loc_sect_off.
215 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
216 comment.
217 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
218 * dwarf2expr.c (add_piece): Update.
219 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
220
221 2012-12-10 Tom Tromey <tromey@redhat.com>
222
223 * buildsym.c (struct pending_block): Move from buildsym.h.
224 (pending_blocks): Likewise; now static.
225 (pending_block_obstack): New global.
226 (free_pending_blocks): Free blocks.
227 (record_pending_block): Use pending_block_obstack.
228 * buildsym.h (struct pending_block): Move definition to
229 buildsym.c.
230 (pending_blocks): Don't declare.
231
232 2012-12-10 Pedro Alves <palves@redhat.com>
233
234 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
235 dead SCO code, and adjust function description comment.
236
237 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
238
239 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
240 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
241 CC_HAS_LONG_LONG.
242 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
243 * dwarf2read.c (extract_cu_value): Remove the function.
244 (create_cus_from_index_list): Make the return type void, inline the
245 extract_cu_value caller, include new gdb_static_assert.
246 (create_cus_from_index): Make the return type void, update the function
247 comment, update the create_cus_from_index_list caller.
248 (create_signatured_type_table_from_index): Make the return type void,
249 inline the extract_cu_value caller, include new gdb_static_assert.
250 (dwarf2_read_index): Update the create_cus_from_index and
251 create_signatured_type_table_from_index caller.
252 * printcmd.c (ui_printf): Remove conditionalizations for
253 CC_HAS_LONG_LONG.
254 * config.in: Regenerate.
255 * configure: Regenerate.
256
257 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
258
259 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
260 Update the comment for checked_producer.
261 (check_producer): New forward declaration.
262 (producer_is_gcc_lt_4_3): New function.
263 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
264 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
265
266 2012-12-07 Tom Tromey <tromey@redhat.com>
267
268 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
269 argument, assertion.
270 * c-exp.y (typebase): Add completion productions.
271 * completer.c (expression_completer): Handle tag completion.
272 * expression.h (parse_expression_for_completion): Add argument.
273 * f-lang.c (f_make_symbol_completion_list): Add 'code'
274 argument.
275 * language.h (struct language_defn)
276 <la_make_symbol_completion_list>: Add 'code' argument.
277 * parse.c (expout_tag_completion_type, expout_completion_name):
278 New globals.
279 (mark_struct_expression): Add assertion.
280 (mark_completion_tag): New function.
281 (parse_exp_in_context): Initialize new globals.
282 (parse_expression_for_completion): Add 'code' argument. Handle
283 tag completion.
284 * parser-defs.h (mark_completion_tag): Declare.
285 * symtab.c (default_make_symbol_completion_list_break_on): Add
286 'code' argument. Update.
287 (default_make_symbol_completion_list): Add 'code' argument.
288 (make_symbol_completion_list): Update.
289 (make_symbol_completion_type): New function.
290 * symtab.h (default_make_symbol_completion_list_break_on)
291 (default_make_symbol_completion_list): Update.
292 (make_symbol_completion_type): Declare.
293
294 2012-12-07 Tom Tromey <tromey@redhat.com>
295
296 * expression.h (parse_expression_for_completion): Rename
297 from parse_field_expression.
298 (parse_completion): Rename from in_parse_field.
299 * c-exp.y (lex_one_token): Update.
300 * completer.c (expression_completer): Update.
301 * go-exp.y (lex_one_token): Update.
302 * p-exp.y (yylex): Update.
303 * parse.c (parse_completion): Rename from in_parse_field.
304 (parse_exp_in_context): Update.
305 (parse_expression_for_completion): Rename from
306 parse_field_expression. Update.
307
308 2012-12-07 Tom Tromey <tromey@redhat.com>
309
310 * typeprint.c (_initialize_typeprint): Set completer
311 for "whatis" and "ptype".
312
313 2012-12-07 Joel Brobecker <brobecker@adacore.com>
314
315 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
316 "sim/common/cgen-fpu.h". Remove invalid entries
317 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
318 which actually have an FSF copyright header.
319
320 2012-12-07 Joel Brobecker <brobecker@adacore.com>
321
322 * osf-share/AT386/cma_thread_io.h: Delete.
323 * osf-share/HP800/cma_thread_io.h: Delete.
324 * osf-share/README: Delete.
325 * osf-share/RIOS/cma_thread_io.h: Delete.
326 * osf-share/cma_attr.h: Delete.
327 * osf-share/cma_deb_core.h: Delete.
328 * osf-share/cma_debug_client.h: Delete.
329 * osf-share/cma_errors.h: Delete.
330 * osf-share/cma_handle.h: Delete.
331 * osf-share/cma_init.h: Delete.
332 * osf-share/cma_list.h: Delete.
333 * osf-share/cma_mutex.h: Delete.
334 * osf-share/cma_sched.h: Delete.
335 * osf-share/cma_semaphore_defs.h: Delete.
336 * osf-share/cma_sequence.h: Delete.
337 * osf-share/cma_stack.h: Delete.
338 * osf-share/cma_stack_int.h: Delete.
339 * osf-share/cma_tcb_defs.h: Delete.
340 * osf-share/cma_util.h: Delete.
341 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
342 in osf-share.
343 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
344 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
345 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
346
347 2012-12-06 Pedro Alves <palves@redhat.com>
348 Tom Tromey <tromey@redhat.com>
349
350 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
351
352 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
353
354 PR mi/14741:
355 * mi/mi-cmd-var.c (varobj_update_one): Take value of
356 attribute "dynamic" and "displayhint" from printed child,
357 not the root variable.
358
359 2012-12-06 Joel Brobecker <brobecker@adacore.com>
360
361 * aix-thread.c (getthrds): Fix type of 4th parameter.
362 (get_signaled_thread): Change type of variable ktid to tid_t.
363
364 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
365
366 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
367 value of get_frame_block.
368
369 2012-12-05 Pierre Muller <muller@sourceware.org>
370
371 Avoid memory leaks on struct cmd_list_element.doc field.
372 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
373 if flags contains DOC_ALLOCATED.
374 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
375 flags.
376 (delete_cmd): Handle DOC_ALLOCATED flag.
377 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
378 in flags filed of struct cmd_list_element.
379 (struct cmd_list_element): Document new flag item.
380
381 2012-12-04 Doug Evans <dje@google.com>
382
383 * symmisc.c: Whitespace fixes.
384
385 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
386
387 * i386-tdep.c (i386_skip_prologue): Using symbol table
388 to find the end of prologue for clang compiled binaries.
389 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
390 to find the end of prologue for clang compiled binaries.
391
392 2012-12-03 Doug Evans <dje@google.com>
393
394 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
395 (dw2_find_symbol_file): Delete unused local file_data.
396
397 2012-12-03 Tom Tromey <tromey@redhat.com>
398
399 * ada-exp.y (write_object_renaming, write_var_or_type)
400 (write_ambiguous_var, write_var_from_sym): Make blocks const.
401 * ada-lang.c (replace_operator_with_call)
402 (find_old_style_renaming_symbol): Make blocks const.
403 * ada-lang.h (ada_find_renaming_symbol): Update.
404 (struct ada_symbol_info) <block>: Now const.
405 * breakpoint.c (watch_command_1): Update.
406 * breakpoint.h (struct watchpoint) <exp_valid_block,
407 cond_exp_valid_block>: Now const.
408 * c-exp.y (classify_inner_name, classify_name): Make block
409 argument const.
410 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
411 const.
412 * expression.h (innermost_block, parse_exp_1): Update.
413 (union exp_element) <block>: Now const.
414 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
415 (lookup_struct): Make block argument const.
416 * gdbtypes.h (lookup_template_type): Update.
417 * go-exp.y (classify_name, classify_packaged_name)
418 (package_name_p): Make block argument const.
419 * objc-lang.c (lookup_struct_typedef): Make block argument const.
420 * objc-lang.h (lookup_struct_typedef): Update.
421 * parse.c (parse_exp_in_context, parse_exp_1)
422 (write_exp_elt_block): Make block arguments const.
423 (expression_context_block, innermost_block): Now const.
424 * parser-defs.h (write_exp_elt_block): Update.
425 (expression_context_block, innermost_block, block_found): Now
426 const.
427 * printcmd.c (struct display) <block>: Now const.
428 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
429 * valops.c (address_of_variable): Make block argument const.
430 * value.h (value_of_variable): Update.
431 * varobj.c (struct varobj_root) <valid_block>: Now const.
432
433 2012-11-30 Yao Qi <yao@codesourcery.com>
434
435 * breakpoint.c (print_one_breakpoint_location): Indent code.
436
437 2012-11-30 Yao Qi <yao@codesourcery.com>
438
439 * breakpoint.c (print_one_breakpoint_location): Combine two
440 blocks handling 'hit count' together.
441
442 2012-11-30 Yao Qi <yao@codesourcery.com>
443
444 * infrun.c (error_is_running, ensure_not_running): Move them
445 to ...
446 * infcmd.c (error_is_running, ensure_not_running): ... here.
447 Make them 'static'.
448 * inferior.h: Remove declarations of error_is_running and
449 ensure_not_running.
450
451 2012-11-30 Yao Qi <yao@codesourcery.com>
452
453 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
454 check REGNUM >= 0.
455
456 2012-11-30 Yao Qi <yao@codesourcery.com>
457
458 * infrun.c: Make the declaration of 'init_infwait_state'
459 static.
460 (init_infwait_state): Make it 'static'.
461
462 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
463
464 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
465 return value to void to avoid compiler warning.
466
467 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
468
469 * opencl-lang.c (opencl_print_type): New function.
470 (opencl_language_arch_info): Install it.
471
472 2012-11-29 Tom Tromey <tromey@redhat.com>
473
474 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
475 xvasprintf.
476 * common/common-utils.c (xasprintf, xvasprintf): Remove.
477 * common/common-utils.h (xasprintf, xvasprintf): Remove.
478
479 2012-11-29 Jerome Guitton <guitton@adacore.com>
480
481 * ada-lang.c (ada_is_interface_tag): New function.
482 (ada_is_ignored_field): Add interface tags to the list
483 of ignored fields.
484
485 2012-11-29 Jerome Guitton <guitton@adacore.com>
486
487 * ada-lang.h (ada_tag_value_at_base_address): New function
488 declaration.
489 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
490 New functions.
491 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
492 relocate the class-wide value if need be.
493 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
494 Let ada_tag_value_at_base_address relocate the class-wide access/ref
495 before dereferencing it.
496 * ada-valprint.c (ada_val_print_1): Relocate to base address
497 before displaying the content of an interface-wide ref.
498
499 2012-11-29 Jerome Guitton <guitton@adacore.com>
500
501 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
502
503 2012-11-29 Joel Brobecker <brobecker@adacore.com>
504
505 GDB 7.5.1 released.
506
507 2012-11-29 Yao Qi <yao@codesourcery.com>
508 Tom Tromey <tromey@redhat.com>
509
510 * eval.c (evaluate_subexp_standard): Get the correct pointer
511 type for TYPE_CODE_MEMBERPTR.
512
513 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
514
515 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
516 since now it is being done by binutils' powerpc_init_dialect().
517
518 2012-11-28 Tom Tromey <tromey@redhat.com>
519
520 PR gdb/14290:
521 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
522 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
523 Use it.
524 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
525 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
526 (gdb_bfd_openr_next_archived_file): Use it.
527
528 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
529
530 * configure.ac: Check for linux/perf_event.h.
531 * config.in: Regenerated.
532 * configure: Regenerated.
533
534 2012-11-28 Yao Qi <yao@codesourcery.com>
535
536 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
537 abbreviate 'delete tracepoints' to 'delete tr'.
538 * corefile.c (_initialize_core): Call add_alias_cmd to
539 abbreviate 'set gnutarget' to 'set g'.
540 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
541 'show convenience' to 'show conv'.
542
543 2012-11-27 Joel Brobecker <brobecker@adacore.com>
544
545 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
546 call to sparc_supply_fpregset.
547 (fill_fpregset): Fix first parameter in call to
548 sparc_collect_fpregset.
549
550 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
551 Kazu Hirata <kazu@codesourcery.com>
552 Yao Qi <yao@codesourcery.com>
553
554 * objfiles.c (init_entry_point_info): Call
555 gdbarch_convert_from_func_ptr_addr and
556 gdbarch_addr_bits_remove here ...
557 (entry_point_address_query): ... instead of here.
558 * solib-svr4.c (exec_entry_point): Call
559 gdbarch_addr_bits_remove.
560 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
561 the entry address.
562
563 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
564 Yao Qi <yao@codesourcery.com>
565
566 * eval.c (evaluate_subexp_standard): Add handling of
567 TYPE_CODE_MEMBERPTR when calling functions. Correct the
568 result of ptype for calling a TYPE_CODE_METHODPTR.
569
570 2012-11-27 Yao Qi <yao@codesourcery.com>
571
572 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
573 warning.
574 Add i18n markup.
575
576 2012-11-26 Alexander Larsson <alexl@redhat.com>
577 Jan Kratochvil <jan.kratochvil@redhat.com>
578 Tom Tromey <tromey@redhat.com>
579
580 * NEWS: Mention mini debuginfo feature.
581 * minidebug.c: New file.
582 * configure.ac: Check for lzma.
583 * configure, config.in: Rebuild.
584 * Makefile.in (LIBLZMA): New variable.
585 (CLIBS): Include LIBLZMA.
586 (SFILES): Mention minidebug.c.
587 (COMMON_OBS): Mention minidebug.o.
588 * symfile.c (read_symbols): New function.
589 (syms_from_objfile, reread_symbols): Call it.
590 * symfile.h (find_separate_debug_file_in_section): Declare.
591
592 2012-11-26 Keith Seitz <keiths@redhat.com>
593
594 * exec.c (exec_file_attach): Move cleanup after verifying that
595 memory has in fact been allocated.
596
597 2012-11-26 Tom Tromey <tromey@redhat.com>
598
599 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
600 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
601 SYMBOL_SYMTAB.
602 * skip.c (skip_info): Use SYMBOL_SYMTAB.
603
604 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
605 Pedro Alves <palves@redhat.com>
606
607 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
608 size parameter passed to readlink by one byte.
609 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
610 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
611 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
612 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
613 size by one byte.
614
615 2012-11-26 Yao Qi <yao@codesourcery.com>
616
617 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
618 extraneous parentheses.
619
620 2012-11-26 Yao Qi <yao@codesourcery.com>
621
622 * remote.c (remote_start_remote): Typo fix.
623
624 2012-11-23 David S. Miller <davem@davemloft.net>
625
626 * sparc-tdep.h (struct sparc_fpregset): New data structure.
627 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
628 sparc32_sol2_fpregset): Declare new globals.
629 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
630 'fpregset' argument.
631 * sparc64-tdep.h (sparc64_supply_fpregset,
632 sparc64_collect_fpregset): Likewise.
633 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
634 globals.
635 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
636 (sparc_fpregset): Declare new global.
637 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
638 'fpregset' argument.
639 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
640 into handler.
641 (fill_fpregset): Likewise.
642 (_initialize_sparc_linux_nat): Set sparc_fpregset to
643 sparc32_bsd_fpregset.
644 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
645 sparc32_bsd_fpregset down into handler.
646 (sparc32_linux_collect_core_fpregset): Likewise.
647 * sparc-nat.c (sparc_fpregset): Define.
648 (sparc_supply_fpregset): Add 'fpregset' argument.
649 (sparc_collect_fpregset): Likewise.
650 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
651 into fpregset handler.
652 (sparc_store_inferior_registers): Likewise.
653 (_initialize_sparc_nat): Set sparc_fpregset to
654 sparc32_sunos4_fpregset if NULL.
655 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
656 down into handler.
657 (fill_fpregset): Likewise.
658 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
659 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
660 use it to compute offsets.
661 (sparc32_collect_fpregset): Likewise.
662 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
663 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
664 down into handler.
665 (fill_fpregset): Likewise.
666 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
667 Likewise.
668 (sparc64_linux_collect_core_fpregset): Likewise.
669 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
670 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
671 use it to compute offsets.
672 (sparc64_collect_fpregset): Likewise.
673 (sparc64_bsd_fpregset): Define.
674 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
675 sparc64_bsd_fpregset down into handler.
676 (sparc64fbsd_collect_fpregset): Likewise.
677 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
678 and pass sparc{32,64}_bsd_fpregset down into handler.
679 (sparc64nbsd_collect_fpregset): Likewise.
680 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
681 sparc64_bsd_fpregset down into handler.
682 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
683 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
684 to sparc32_bsd_fpregset.
685 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
686 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
687 (sparc32nbsd_supply_fpregset): Likewise.
688
689 2012-11-21 Tom Tromey <tromey@redhat.com>
690
691 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
692 field.
693 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
694 Remove.
695 * c-typeprint.c (c_type_print_base): Update.
696
697 2012-11-21 Yao Qi <yao@codesourcery.com>
698
699 PR tdep/7438
700 * gdbarch.sh (smash_text_address): Remove.
701 * gdbarch.c, gdbarch.h: Regenerate.
702 * arm-tdep.c (arm_smash_text_address): Remove.
703 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
704 * hppa-tdep.c (hppa_smash_text_address): Remove.
705 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
706 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
707 Caller update.
708 * coffread.c (coff_symtab_read): Caller update.
709 * dbxread.c (process_one_symbol): Likewise.
710 * elfread.c (record_minimal_symbol): Likewise.
711 * somread.c (som_symtab_read): Likewise.
712
713 2012-11-20 Pierre Muller <muller@sourceware.org>
714
715 ARI fixes: sprintf rule.
716 Replace sprintf function calls for char arrays by
717 calls to xsnprintf calls.
718 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
719 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
720 (arm_neon_quad_read, arm_pseudo_read): Ditto.
721 (arm_neon_quad_write, arm_pseudo_write): Ditto.
722 * breakpoint.c (condition_completer): Ditto.
723 (create_tracepoint_from_upload): Ditto.
724 * dwarf2read.c (file_full_name): Ditto.
725 * gcore.c (gcore_command): Ditto.
726 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
727 * go32-nat.c (go32_sysinfo): Ditto.
728 * interps.c (interp_set): Ditto.
729 * m32c-tdep.c (make_types): Ditto.
730 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
731 * remote-m32r-sdi.c (m32r_open): Ditto.
732 * sol-thread.c (td_err_string): Ditto.
733 (td_state_string, solaris_pid_to_str): Ditto.
734 * symtab.c (gdb_mangle_name): Ditto.
735 * cli/cli-script.c (execute_control_command): Ditto.
736 (define_command, document_command): Ditto.
737 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
738 * tui/tui-stack.c (tui_make_status_line): Ditto.
739 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
740
741 2012-11-20 Mike Frysinger <vapier@gentoo.org>
742
743 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
744 it when looking at ptr->func.
745 * command.h (complete_on_cmdlist): Add a fourth arg.
746 * completer.c (complete_line_internal): Add local ignore_help_classes,
747 and set it to 1 when reason is not handle_help. Pass this down to
748 lookup_cmd_1 and complete_on_cmdlist.
749
750 2012-11-20 Tom Tromey <tromey@redhat.com>
751
752 * completer.c (count_struct_fields): Remove.
753 (expression_completer): Don't call count_struct_fields.
754
755 2012-11-20 Pedro Alves <palves@redhat.com>
756
757 * annotate.c (breakpoints_changed): Rename to ...
758 (annotate_breakpoints_changed): ... this.
759 (annotate_stopped, breakpoint_changed): Adjust caller.
760 * annotate.h (breakpoints_changed): Rename to ...
761 (annotate_breakpoints_changed): ... this.
762 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
763 (do_map_commands_command, init_raw_breakpoint, clear_command)
764 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
765
766 2012-11-20 David S. Miller <davem@davemloft.net>
767
768 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
769 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
770 sysconf.
771 (get_cores_used_by_process): Update comment.
772
773 2012-11-20 Yao Qi <yao@codesourcery.com>
774
775 * objfiles.c (init_entry_point_info): Remove trailing spaces.
776
777 2012-11-20 Yao Qi <yao@codesourcery.com>
778
779 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
780 to deprecated_context_hook.
781
782 2012-11-19 Yao Qi <yao@codesourcery.com>
783
784 * infrun.c (infwait_state): Add static.
785
786 2012-11-16 Keith Seitz <keiths@redhat.com>
787
788 PR c++/13615
789 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
790 parameter and pass it to lookup_symbol_file.
791 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
792 to search base classes.
793 (cp_lookup_symbol_namespace): Likewise.
794 (lookup_namespace_scope): Likewise.
795 (lookup_symbol_file): Add SEARCH parameter.
796 If SEARCH is non-zero and no symbol is found, lookup the class
797 and call cp_lookup_nested_symbol.
798 (find_symbol_in_baseclass): New function.
799 (cp_lookup_nested_symbol): Do not let
800 cp_lookup_symbol_in_namespace search through base classes.
801 Do that later when there is no global symbol match.
802
803 2012-11-16 Doug Evans <dje@google.com>
804
805 * main.c (gdb_datadir_provided): New static global.
806 (get_init_files): If --data-directory is provided,
807 and SYSTEM_GDBINIT lives in data-directory, look for it there.
808 * NEWS: Mention it.
809
810 2012-11-15 Pierre Muller <muller@sourceware.org>
811
812 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
813 * gdb_stat.h: Delete. Moved to common directory.
814 * common/gdb_stat.h: New file.
815 * gdb_wait.h: Delete. Moved to common directory.
816 * common/gdb_wait.h: New file.
817 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
818 location.
819 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
820 location.
821 (stat.h rule): Adapt to new gdb_stat.h location.
822 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
823 <sys/stat.h> header.
824 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
825 <sys/wait.h> header.
826
827 2012-11-15 Pierre Muller <muller@sourceware.org>
828
829 * configure.ac (AC_HEADER_STAT): Remove.
830 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
831 and corresponding code.
832 * configure: Regenerate.
833 * config.in: Regenerate.
834
835 2012-11-15 Pierre Muller <muller@sourceware.org>
836
837 ARI xasprintf rule fixes.
838 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
839 instead of xasprintf.
840 (open_and_init_dwp_file): Ditto.
841
842 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
843
844 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
845 target types.
846
847 2012-11-14 Tom Tromey <tromey@redhat.com>
848
849 * configure, config.in: Rebuild.
850 * configure.ac: Don't check for ctype.h, time.h.
851 * expprint.c: Don't use HAVE_CTYPE_H.
852
853 2012-11-13 Tom Tromey <tromey@redhat.com>
854
855 * gdbarch.h, gdbarch.c: Rebuild.
856 * gdbarch.sh (set_target_gdbarch): Rename from
857 deprecated_target_gdbarch_select_hack.
858 * arch-utils.c (gdbarch_update_p): Update.
859 (set_gdbarch_from_file): Update.
860
861 2012-11-14 Pierre Muller <muller@sourceware.org>
862
863 * MAINTAINERS (Responsible Maintainers/misc): Add myself
864 as responsible of contrib/ari directory.
865
866 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
867 Yao Qi <yao@codesourcery.com>
868
869 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
870 bit of EXC_RETURN.
871 (arm_m_exception_cache, arm_m_exception_this_id)
872 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
873 (arm_m_exception_unwind): New.
874 (arm_gdbarch_init): Register arm_m_exception_unwind.
875
876 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
877
878 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
879 parameter COUNT, for pattern filling of memory regions.
880 * NEWS: Mention it.
881
882 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
883
884 * disasm.h (DISASSEMBLY_FILENAME): New macro.
885 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
886 to print_source_lines ().
887 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
888 flag.
889 * source.c (print_source_lines_base): Prefix source line with
890 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
891
892 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
893
894 * symtab.h (print_source_lines_flags): New enum.
895 * source.c (print_source_lines_base): Change noerror to flags.
896 (print_source_lines): Change noerror to flags.
897
898 2012-11-13 Pierre Muller <muller@sourceware.org>
899
900 ARI fixes: Avoid sprintf function use rule.
901 * charset.c (convert_between_encodings): Use xsnprintf.
902 * cli-out.c (cli_field_int): Likewise.
903 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
904 * expprint.c (op_name_standard): Likewise.
905 * frv-tdep.c (set_variant_num_gprs): Likewise.
906 (set_variant_num_fprs): Likewise.
907 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
908 * nto-tdep.c (nto_find_and_open_solib): Likewise.
909 (nto_init_solib_absolute_prefix): Likewise.
910 * source.c (init_source_path): Likewise.
911 (print_source_lines_base): Likewise.
912 * valprint.c (print_wchar): Likewise.
913 * mi/mi-out.c (mi_field_int): Likewise.
914 windows-nat.c (windows_pid_to_exec_file): Likewise.
915 (windows_create_inferior): Likewise.
916 (_initialize_check_for_gdb_ini): Likewise.
917
918 2012-11-12 Joel Brobecker <brobecker@adacore.com>
919
920 * frame.h (deprecated_frame_register_read): Renames
921 frame_register_read.
922 * frame.c (deprecated_frame_register_read): Renames
923 frame_register_read. Update all callers.
924 * i386-tdep.c: Update all callers of frame_register_read.
925 * infcmd.c: Likewise.
926 * jit.c: Likewise.
927 * mips-tdep.c: Likewise.
928 * mt-tdep.c: Likewise.
929 * sh64-tdep.c: Likewise.
930
931 2012-11-12 Joel Brobecker <brobecker@adacore.com>
932
933 * frame.h (frame_register_read): Remove FIXME comment.
934 * frame.c (frame_register_read): Add suggestion explaining
935 which function to use in place of this one.
936
937 2012-11-12 Tom Tromey <tromey@redhat.com>
938
939 * python/python.c (start_type_printers): Initialize 'result_obj'.
940
941 2012-11-12 Tom Tromey <tromey@redhat.com>
942
943 * NEWS: Update.
944 * data-directory/Makefile.in (PYTHON_FILES): Add
945 type_printers.py.
946 * python/lib/gdb/command/type_printers.py: New file.
947 * python/lib/gdb/command/types.py (TypePrinter): New class.
948 (_get_some_type_recognizers, get_type_recognizers,
949 apply_type_recognizers, register_type_printer): New
950 functions.
951 * python/py-objfile.c (objfile_object) <type_printers>: New
952 field.
953 (objfpy_dealloc): Decref new field.
954 (objfpy_new): Set new field.
955 (objfpy_get_type_printers, objfpy_set_type_printers): New
956 functions.
957 (objfile_to_objfile_object): Set new field.
958 (objfile_getset): Add "type_printers".
959 * python/py-progspace.c (pspace_object) <type_printers>: New
960 field.
961 (pspy_dealloc): Decref new field.
962 (pspy_new): Set new field.
963 (pspy_get_type_printers, pspy_set_type_printers): New functions.
964 (pspace_to_pspace_object): Set new field.
965 (pspace_getset): Add "type_printers".
966 * python/python.c (start_type_printers, apply_type_printers,
967 free_type_printers): New functions.
968 (_initialize_python): Set gdb.type_printers.
969 * python/python.h (start_type_printers, apply_type_printers,
970 free_type_printers): Declare.
971 * typeprint.c (type_print_raw_options, default_ptype_flags):
972 Update for new fields.
973 (do_free_global_table, create_global_typedef_table,
974 find_global_typedef): New functions.
975 (find_typedef_in_hash): Use find_global_typedef.
976 (whatis_exp): Use create_global_typedef_table. Change cleanup
977 handling.
978 * typeprint.h (struct type_print_options) <global_typedefs,
979 global_printers>: New fields.
980
981 2012-11-12 Tom Tromey <tromey@redhat.com>
982
983 * c-typeprint.c (find_typedef_for_canonicalize,
984 print_name_maybe_canonical): New functions.
985 (c_print_type): Look up type name.
986 (cp_type_print_derivation_info): Add flags argument. Use
987 print_name_maybe_canonical.
988 (cp_type_print_method_args): Add wrapping.
989 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
990 (c_type_print_template_args): New function.
991 (c_type_print_base): Change wrapping. Use
992 print_name_maybe_canonical.
993 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
994 type name lookups.
995 * gdbtypes.c (types_equal): No longer static.
996 * gdbtypes.h (types_equal): Declare.
997 * typeprint.c (type_print_raw_options, default_ptype_flags):
998 Update.
999 (struct typedef_hash_table): New.
1000 (hash_typedef_field, eq_typedef_field,
1001 recursively_update_typedef_hash, add_template_parameters,
1002 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1003 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1004 copy_typedef_hash, find_typedef_in_hash): New functions.
1005 * typeprint.h (struct type_print_options) <local_typedefs>:
1006 New field.
1007 (recursively_update_typedef_hash, add_template_parameters,
1008 create_typedef_hash, free_typedef_hash,
1009 make_cleanup_free_typedef_hash, copy_typedef_hash,
1010 find_typedef_in_hash): Declare.
1011
1012 2012-11-12 Tom Tromey <tromey@redhat.com>
1013
1014 * cp-support.c (inspect_type,
1015 replace_typedefs_qualified_name, replace_typedefs): Add
1016 finder, data arguments. Call as needed.
1017 (cp_canonicalize_string_full): New function.
1018 (cp_canonicalize_string_no_typedefs): Rewrite.
1019 * cp-support.h (canonicalization_ftype): New typedef.
1020 (cp_canonicalize_string_full): Declare.
1021
1022 2012-11-12 Tom Tromey <tromey@redhat.com>
1023
1024 * NEWS: Update.
1025 * c-typeprint.c (c_type_print_base): Handle print_method and
1026 print_typedefs flags.
1027 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1028 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1029 options.
1030 * typeprint.c (type_print_raw_options, default_ptype_flags):
1031 Update for new field.s
1032 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1033 (setprinttypelist, showprinttypelist, print_methods,
1034 print_typedefs): New globals.
1035 (set_print_type, show_print_type, set_print_type_methods,
1036 show_print_type_methods, set_print_type_typedefs,
1037 show_print_type_typedefs): New functions.
1038 (_initialize_typeprint): Update documentation. Add "print
1039 type methods" and "print type typedefs" parameters.
1040 * typeprint.h (struct type_print_options) <print_methods,
1041 print_typedefs>: New fields.
1042
1043 2012-11-12 Tom Tromey <tromey@redhat.com>
1044
1045 * c-typeprint.c (cp_type_print_method_args): Add flags
1046 argument. Call c_print_type, not type_print.
1047 (c_type_print_base): Call c_print_type, not type_print.
1048 Update.
1049
1050 2012-11-12 Tom Tromey <tromey@redhat.com>
1051
1052 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1053 to type-printing functions.
1054 * ada-lang.h (ada_print_type): Add argument.
1055 * ada-typeprint.c (print_array_type, print_variant_clauses,
1056 print_variant_part, print_selected_record_field_types,
1057 print_record_field_types, print_unchecked_union_type,
1058 print_func_type, ada_print_type): Add flags argument.
1059 (ada_print_typedef): Update.
1060 * c-exp.y (OPERATOR conversion_type_id): Update.
1061 * c-lang.h (c_print_type, c_type_print_base): Update.
1062 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1063 c_type_print_modifier, c_type_print_args,
1064 c_type_print_varspec_suffix, c_type_print_base): Add flags
1065 argument.
1066 * cp-valprint.c (cp_print_class_member): Update.
1067 * dwarf2read.c (dwarf2_compute_name): Update.
1068 * f-lang.h (f_print_type): Add argument.
1069 * f-typeprint.c (f_print_type): Add flags argument.
1070 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1071 * go-lang.h (go_print_type): Add argument.
1072 * go-typeprint.c (go_print_type): Add flags argument.
1073 * jv-lang.h (java_print_type): Add argument.
1074 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1075 flags argument.
1076 * language.c (unk_lang_print_type): Add flags argument.
1077 * language.h (struct language_defn) <la_print_type>: Add flags
1078 argument.
1079 (LA_PRINT_TYPE): Likewise.
1080 * m2-lang.h (m2_print_type): Add argument.
1081 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1082 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1083 m2_unbounded_array, m2_record_fields): Add flags argument.
1084 * p-lang.h (pascal_print_type, pascal_type_print_base,
1085 pascal_type_print_varspec_prefix): Add argument.
1086 * p-typeprint.c (pascal_print_type,
1087 pascal_type_print_varspec_prefix, pascal_print_func_args,
1088 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1089 flags argument.
1090 * symmisc.c (print_symbol): Update.
1091 * typeprint.c (type_print_raw_options, default_ptype_flags):
1092 New globals.
1093 (type_print): Update.
1094 * typeprint.h (struct type_print_options): New.
1095 (type_print_raw_options): Declare.
1096 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1097
1098 2012-11-10 Keith Seitz <keiths@redhat.com>
1099
1100 * breakpoint.c (clear_command): Add cleanup for
1101 sals.sals if an argument is given.
1102
1103 * linespec.c (parse_linespec): Do cleanups after
1104 parsing a convenience variable.
1105
1106 2012-11-10 Keith Seitz <keiths@redhat.com>
1107
1108 PR gdb/14288
1109 * c-valprint.c (c_val_print): For character arrays
1110 with "print null" option on, print ellipses if
1111 the output is truncated and the next character is not \000.
1112 * valprint.c (MAX_WCHARS): Define.
1113 (WCHAR_BUFLEN): Likewise.
1114 (WCHAR_BUFLEN_MAX): Likewise.
1115 (struct converted_character): New structure.
1116 (count_next_character): New function.
1117 (print_converted_chars_to_obstack): New function.
1118 (generic_printstr): Rewrite using count_next_character
1119 and print_converted_chars_to_obstack.
1120
1121 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1122
1123 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1124 while executing the gdb command.
1125 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1126 are called from prompt_for_continue.
1127 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1128
1129 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1130
1131 PR tui/9584
1132
1133 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1134 but insert the command to execute in readline's buffer.
1135
1136 2012-11-09 Tom Tromey <tromey@redhat.com>
1137
1138 * gdbarch.sh (target_gdbarch): Remove macro.
1139 (get_target_gdbarch): Rename to target_gdbarch.
1140 * gdbarch.c, gdbarch.h: Rebuild.
1141 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1142 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1143 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1144 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1145 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1146 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1147 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1148 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1149 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1150 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1151 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1152 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1153 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1154 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1155 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1156 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1157 target-descriptions.c, target.c, target.h, tracepoint.c,
1158 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1159 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1160 python/py-inferior.c, python/python.c: Update.
1161
1162 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1163
1164 * source.c (print_source_lines_base): Add fullname field giving
1165 full path to file in mi output.
1166 * NEWS: Mention the new fullname field.
1167
1168 2012-11-09 Yao Qi <yao@codesourcery.com>
1169
1170 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1171
1172 2012-11-09 Pedro Alves <palves@redhat.com>
1173
1174 PR gdb/14306
1175
1176 * infrun.c: Include target-descriptions.h.
1177 (follow_exec): Fetch new target description.
1178
1179 2012-11-09 Yao Qi <yao@codesourcery.com>
1180
1181 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1182 0x8d (lea).
1183
1184 2012-11-09 Yao Qi <yao@codesourcery.com>
1185
1186 * breakpoint.c: Declare set_tracepoint_count.
1187 (install_breakpoint): Call set_tracepoint_count if B is a
1188 tracepoint.
1189 (trace_command): Don't call set_tracepoint_count. Re-indent.
1190 (strace_command, ftrace_command):
1191 (create_tracepoint_from_upload): Likewise.
1192
1193 2012-11-09 Pedro Alves <palves@redhat.com>
1194
1195 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1196 (get_target_gdbarch) <gdbarch.h>: New function.
1197 (startup_gdbarch) <gdbarch.h>: Declare.
1198 <gdbarch.c> (target_gdbarch): Delete.
1199 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1200 current inferior's gdbarch.
1201 <gdbarch.c> (get_target_gdbarch): New function.
1202 * inferior.c: Include target-descriptions.h.
1203 (free_inferior): Free target description info.
1204 (add_inferior_with_spaces): Set the inferior's initial
1205 architecture.
1206 (clone_inferior_command): Copy the original inferior's target
1207 description if it was user specified.
1208 (initialize_inferiors): Add comment.
1209 * inferior.h (struct target_desc_info): Forward declare.
1210 (struct inferior) <gdbarch>: New field.
1211 * linux-nat.c: Include target-descriptions.h.
1212 (linux_child_follow_fork): Copy the parent's architecture and
1213 target description to the child.
1214 * target-descriptions.c: Include inferior.h.
1215 (struct target_desc_info): New structure, holding the equivalents
1216 of ...
1217 (target_desc_fetched, current_target_desc)
1218 (target_description_filename): ... these removed globals.
1219 (get_tdesc_info, target_desc_info_from_user_p)
1220 (copy_inferior_target_desc_info, target_desc_info_free): New.
1221 (target_desc_fetched, current_target_desc)
1222 (target_description_filename): Reimplemented as convenience
1223 macros.
1224 (tdesc_filename_cmd_string): New global.
1225 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1226 tdescs filename ..." commands to the per-inferior equivalent.
1227 (show_tdesc_filename_cmd): Get the value to show from the
1228 per-inferior description filename.
1229 (_initilize_target_descriptions): Change the "set/show tdesc
1230 filename" commands' variable.
1231 * target-descriptions.h (struct target_desc, struct target_desc_info)
1232 (struct inferior): Forward declare.
1233 (target_find_description, target_clear_description)
1234 (target_current_description): Adjust comments.
1235 (copy_inferior_target_desc_info, target_desc_info_free)
1236 (target_desc_info_from_user_p). Declare.
1237
1238 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1239
1240 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1241 (tui_target_wait_hook): Remove.
1242 (tui_install_hooks): Install the about_to_proceed observer.
1243 (tui_remove_hooks): And remove it here.
1244
1245 2012-11-08 Tom Tromey <tromey@redhat.com>
1246
1247 * linux-tdep.c (linux_make_siginfo_note): New function.
1248 (linux_make_corefile_notes): Use it.
1249 * corelow.c (get_core_siginfo): New function.
1250 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1251
1252 2012-11-08 Tom Tromey <tromey@redhat.com>
1253
1254 PR gdb/14704:
1255 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1256 (zlib_decompress_section): Remove.
1257 (gdb_bfd_map_section): Only check for compressed section
1258 in mmap case. Use bfd_get_full_section_contents.
1259 * osabi.c (check_note): Add 'sectsize' argument. Read
1260 section data.
1261 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1262 section data. Update for check_note change.
1263 * xcoffread.c (xcoff_initial_scan): Use
1264 bfd_get_full_section_contents.
1265 * py-auto-load.c (auto_load_section_scripts): Use
1266 bfd_get_full_section_contents.
1267 * contrib/cc-with-tweaks.sh: Add -Z option.
1268
1269 2012-11-08 Tom Tromey <tromey@redhat.com>
1270
1271 * python/py-bpevent.c: Include defs.h.
1272 * python/py-continueevent.c: Include defs.h.
1273 * python/py-event.c: Include defs.h.
1274 * python/py-event.h: Don't include defs.h.
1275 * python/py-events.h: Don't include defs.h.
1276 * python/py-evts.c: Include defs.h.
1277 * python/py-exitedevent.c: Include defs.h.
1278 * python/py-newobjfileevent.c: Include defs.h.
1279 * python/py-signalevent.c: Include defs.h.
1280 * python/py-stopevent.c: Include defs.h.
1281 * python/py-threadevent.c: Include defs.h.
1282
1283 2012-11-08 Pierre Muller <muller@sourceware.org>
1284
1285 * update-web-ari.sh (print_heading): Add number of files
1286 checked.
1287 (nb_files): New variable counting the number of sources
1288 files found by gdb_find.sh script.
1289 (debug_awk): New variable to allow extra debug output.
1290 (indexes): Add more information if DEBUG_AWK is set.
1291
1292 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1293
1294 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1295 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1296 following the change in PLT call stubs on linker.
1297
1298 2012-11-08 Pierre Muller <muller@sourceware.org>
1299
1300 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1301 as default language.
1302 (AWK): Use = instead of == for sh test to avoid warning.
1303 (Linux rule): Correct [:digit] into [[:digit:]].
1304 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1305 (vasprintf rule): Adapt to common subdirectory moves.
1306 (xasprintf rule): Idem.
1307 (xvasprintf rule): Idem.
1308 (var_boolean rule): Accept occurence in == or != test.
1309
1310 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1311
1312 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1313
1314 * tui/tui-hooks.c (tui_inferior_exit): New function.
1315 (tui_detach_hook): Remove.
1316 (tui_install_hooks): Install the inferior exit observer.
1317 (tui_remove_hooks): Remove it.
1318
1319 2012-11-08 Yao Qi <yao@codesourcery.com>
1320
1321 PR gdb/14777.
1322 * source.c (_initialize_source): Call add_com_alias to abbreviate
1323 'forward-search' as 'fo'.
1324
1325 2012-11-07 Pedro Alves <palves@redhat.com>
1326
1327 * arm-tdep.c: Make defs.h be the first include.
1328 * coff-pe-read.c: Ditto.
1329 * gnu-nat.c: Ditto.
1330 * go32-nat.c: Ditto.
1331 * i386-nat.c: Ditto.
1332 * ppcnbsd-nat.c: Ditto.
1333 * ada-varobj.h: Don't include defs.h.
1334 * i386-darwin-tdep.h: Ditto.
1335 * i386-nat.h: Ditto.
1336
1337 2012-11-07 Pedro Alves <palves@redhat.com>
1338
1339 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1340 Committee.
1341
1342 2012-11-07 Pierre Muller <muller@sourceware.org>
1343
1344 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1345 File already uses "gdb_dirent.h" header.
1346
1347 2012-11-07 Yao Qi <yao@codesourcery.com>
1348
1349 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1350 tracepoint_count'.
1351
1352 2012-11-06 Tom Tromey <tromey@redhat.com>
1353
1354 * target.h (inferior_has_forked, inferior_has_vforked)
1355 (inferior_has_execd, inferior_has_called_syscall): Remove
1356 declarations.
1357
1358 2012-11-06 Pierre Muller <muller@sourceware.org>
1359
1360 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1361 add missing internalization markup.
1362
1363 2012-11-06 Pedro Alves <palves@redhat.com>
1364
1365 PR gdb/14810
1366
1367 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1368
1369 2012-11-06 Pierre Muller <muller@sourceware.org>
1370
1371 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1372 is not executable.
1373
1374 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1375
1376 * gnulib/update-gnulib.sh: New script.
1377
1378 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1379
1380 * MAINTAINERS: Update my email address.
1381
1382 2012-11-05 Tom Tromey <tromey@redhat.com>
1383
1384 * frame.c (put_frame_register): Don't use temporary buffer.
1385
1386 2012-11-05 Pedro Alves <palves@redhat.com>
1387
1388 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1389 child. Clear 'pending_detach'.
1390 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1391 'pending_detach' in the vfork parent.
1392
1393 2012-11-05 Doug Evans <dje@google.com>
1394
1395 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1396 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1397 * dwarf2read.c: #include "elf-bfd.h".
1398 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1399 (dwop_section_names): Renamed from dwo_section names. All uses
1400 updated. Add entries for .debug_cu_index, .debug_tu_index.
1401 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1402 All uses updated.
1403 (struct dwp_sections): New type.
1404 (struct virtual_dwo_sections): New type.
1405 (struct dwp_hash_table): New type.
1406 (struct dwp_file): New type.
1407 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1408 read in. Handle DWOs coming from DWP files.
1409 (lookup_dwo_file_slot): New function.
1410 (dwarf2_locate_dwo_sections): Move definition closer to use.
1411 (create_dwo_debug_info_hash_table_reader): Renamed from
1412 create_debug_info_hash_table_reader. All callers updated.
1413 (create_dwo_debug_info_hash_table): Renamed from
1414 create_debug_info_hash_table. All callers updated.
1415 (create_dwp_hash_table): New function.
1416 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1417 (lookup_dwo_in_dwp): New function.
1418 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1419 is_dwp. All callers updated.
1420 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1421 (open_and_init_dwo_file): Renamed from init_dwo_file.
1422 All callers updated.
1423 (lookup_dwo_file): Delete.
1424 (dwarf2_locate_dwp_sections): New function.
1425 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1426 (allocate_dwp_loaded_cutus_table): New function.
1427 (open_and_init_dwp_file): New function.
1428 (lookup_dwo_cutu): New function.
1429 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1430
1431 2012-11-03 Yao Qi <yao@codesourcery.com>
1432
1433 Fix PR gdb/14617.
1434 * breakpoint.c (trace_pass_set_count): Call
1435 observer_notify_breakpoint_modified instead of
1436 observer_notify_tracepoint_modified.
1437 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1438
1439 2012-11-02 Tom Tromey <tromey@redhat.com>
1440
1441 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1442 argument to complete_on_enum.
1443
1444 2012-11-02 Tom Tromey <tromey@redhat.com>
1445
1446 * configure: Rebuild.
1447 * configure.ac (build_warnings): Add -Wempty-body.
1448 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1449 * remote.c (handle_notification): Use braces for empty 'else' body.
1450 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1451 'else' body.
1452 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1453 'else' body.
1454 * solib-som.c (som_relocate_section_addresses): Use braces
1455 for empty 'else' body.
1456 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1457 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1458
1459 2012-11-02 Pedro Alves <palves@redhat.com>
1460
1461 PR gdb/14766
1462
1463 * infrun.c (handle_inferior_event)
1464 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1465 null_ptid before handling a vfork child exec or exit. Switch to
1466 the event ptid afterwards.
1467
1468 2012-11-02 Yao Qi <yao@codesourcery.com>
1469
1470 * std-operator.def: Remove OP_LABELED.
1471 * eval.c: Remove the declaration of 'get_label'.
1472 (get_label): Remove.
1473 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1474 Update comment.
1475 Remove local variable 'variantno' and related code.
1476 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1477 with 'fieldno'.
1478 * expprint.c (print_subexp_standard): Likewise.
1479 (dump_subexp_body_standard): Likewise.
1480 * parse.c (operator_length_standard): Likewise.
1481
1482 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1483
1484 Incorporate ARI web page generator into GDB sources.
1485 * contrib/ari/create-web-ari-in-src.sh: New file.
1486 * contrib/ari/gdb_ari.sh: New file.
1487 * contrib/ari/gdb_find.sh: New file.
1488 * contrib/ari/update-web-ari.sh: New file.
1489
1490 2012-10-31 Tom Tromey <tromey@redhat.com>
1491
1492 * gdbarch.c: Rebuild.
1493 * gdbarch.sh: Remove references to gdbarch_swap.
1494 * corelow.c (core_open): Remove obsolete comment.
1495
1496 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1497
1498 PR cli/14772
1499 * c-typeprint.c (c_print_type): Don't print a space for vector
1500 types, this is handled within the suffix.
1501 (c_type_print_varspec_suffix): Add a space to vector suffix.
1502
1503 2012-10-26 Pedro Alves <palves@redhat.com>
1504
1505 * amd64-tdep.c (amd64_relocate_instruction): Use
1506 store_unsigned_integer instead of memcpy.
1507 * i386-tdep.c (i386_relocate_instruction): Ditto.
1508
1509 2012-10-26 Pedro Alves <palves@redhat.com>
1510
1511 * infrun.c (handle_inferior_event): Merge handling of
1512 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1513 switch case.
1514
1515 2012-10-26 Pedro Alves <palves@redhat.com>
1516
1517 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1518 Remove comment.
1519
1520 2012-10-26 Pedro Alves <palves@redhat.com>
1521
1522 * target.c (target_waitstatus_to_string): Handle
1523 TARGET_WAITKIND_VFORK_DONE.
1524
1525 2012-10-26 Pedro Alves <palves@redhat.com>
1526
1527 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1528 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1529
1530 2012-10-24 Tristan Gingold <gingold@adacore.com>
1531
1532 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1533 Add comments.
1534
1535 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1536
1537 * ravenscar-thread.c (ravenscar_wait): Only update the list
1538 of threads and inferior_ptid if the inferior is still alive.
1539
1540 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1541
1542 * ada-lang.c (is_known_support_routine): Use lbasename when
1543 matching the symtab's filename against
1544 known_runtime_file_name_patterns.
1545
1546 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1547
1548 * ada-lang.c (ada_same_array_size_p): New function.
1549 (ada_promote_array_of_integrals): New function.
1550 (coerce_for_assign): Add handling of arrays where the elements
1551 are integrals of a smaller size than the size of the target
1552 array element type.
1553
1554 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1555
1556 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1557 against maximum exponent value.
1558
1559 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1560
1561 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1562 "unwind-seh.c".
1563
1564 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1565
1566 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1567 strip typedef layer when computing the fixed type's field type,
1568 only when computing its size.
1569
1570 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1571
1572 PR gdb/12783
1573 * i386-tdep.c (i386_return_value): Handle complex double and long
1574 double.
1575
1576 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1577
1578 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1579 New local variable args_len.
1580 Quote the name of the executable when computing the command line.
1581
1582 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1583
1584 PR gdb/12796
1585 PR gdb/12798
1586 PR gdb/12800
1587 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1588 AMD64_FTAG_REGNUM.
1589 * amd64-tdep.c (amd64_classify): Classify complex types.
1590 (amd64_return_value): Handle the COMPLEX_X87 class.
1591
1592 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1593
1594 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1595 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1596
1597 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1598
1599 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1600 function.
1601 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1602 to amd64_windows_auto_wide_charset.
1603
1604 2012-10-23 Yao Qi <yao@codesourcery.com>
1605
1606 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1607 * event-top.h: Remove its declaration.
1608 (async_request_quit): Call mark_async_signal_handler instead of
1609 mark_async_signal_handler_wrapper.
1610 (async_do_nothing, async_disconnect): Likewise.
1611 (async_stop_sig): Likewise.
1612 * remote.c (handle_remote_sigint): Likewise.
1613 (handle_remote_sigint_twice): Likewise.
1614
1615 2012-10-23 Yao Qi <yao@codesourcery.com>
1616
1617 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1618 with 'static struct async_signal_handler *'.
1619 (sighup_token, sigquit_token, sigstp_token): Likewise.
1620
1621 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1622
1623 * gdbarch.sh (function_list): Use 'pstring' when printing
1624 a variable which could return NULL.
1625 * gdbarch.c: Regenerate.
1626
1627 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1628 Tom Tromey <tromey@redhat.com>
1629
1630 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1631 inneffective if condition by gdb assertion. Add function
1632 description comment.
1633
1634 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1635
1636 * parser-defs.h (struct exp_descriptor): Document constraint
1637 on return value for "op_name" callbacks.
1638
1639 2012-10-18 Tom Tromey <tromey@redhat.com>
1640
1641 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1642 * symtab.c (iterate_over_some_symtabs): Constify.
1643 * source.h (symtab_to_fullname): Return 'const char *'.
1644 * source.c (symtab_to_fullname): Return 'const char *'.
1645 * python/py-symtab.c (stpy_fullname): Constify.
1646 * cli/cli-cmds.c (edit_command): Constify.
1647 * breakpoint.c (print_breakpoint_location)
1648 (update_static_tracepoint): Constify.
1649
1650 2012-10-18 Tom Tromey <tromey@redhat.com>
1651
1652 * breakpoint.c (compare_breakpoints): Fix comparison.
1653
1654 2012-10-18 Tom Tromey <tromey@redhat.com>
1655
1656 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1657 gdb_wchar_t to convert_between_encodings.
1658
1659 2012-10-17 Yao Qi <yao@codesourcery.com>
1660
1661 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1662 more parameter 'inferior'.
1663 * corefile.c (write_memory_with_notification): Caller update.
1664
1665 * mi/mi-cmd-var.c: Include "mi-main.h".
1666 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1667 to 1 and restore it later.
1668 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1669 and "data-write-memory-bytes.
1670 * mi/mi-interp.c: Include objfiles.h.
1671 (mi_interpreter_init): Call observer_attach_memory_changed.
1672 (mi_memory_changed): New.
1673 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1674 New field.
1675
1676 * NEWS: Mention new MI notification "memory-changed".
1677
1678 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1679
1680 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1681
1682 2012-10-15 Doug Evans <dje@google.com>
1683
1684 New option -nh: inhibit loading of ~/.gdbinit.
1685 * NEWS: Mention -nh.
1686 * main.c (captured_main): Recognize and process -nh.
1687 (print_gdb_help): Mention -nh.
1688 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1689
1690 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1691
1692 PR backtrace/14646
1693 PR gdb/14647
1694 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1695 pc_regnum_from_eax.
1696 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1697 nor pc_regnum_from_eax.
1698 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1699 nor pc_regnum_from_eax.
1700
1701 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1702
1703 Fix entry values resolving in inlined frames.
1704 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1705 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1706 entries of FRAME.
1707
1708 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1709
1710 * configure.ac: Build with -DMS_WIN64 if building with Python
1711 enabled using GCC on amd64-windows.
1712 * configure: Regenerate.
1713
1714 2012-10-15 Tom Tromey <tromey@redhat.com>
1715
1716 PR python/14635:
1717 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1718 to Py_None.
1719
1720 2012-10-15 Tom Tromey <tromey@redhat.com>
1721
1722 PR python/14634:
1723 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1724
1725 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1726
1727 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1728 reset thread numbering back to 1.
1729
1730 2012-10-11 Doug Evans <dje@google.com>
1731
1732 PR breakpoints/14643.
1733 * linespec.c (struct ls_parser): New member keyword_ok.
1734 (linespec_lexer_lex_string): Add comment.
1735 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1736 for one.
1737 (parse_linespec): Set keyword_ok.
1738
1739 2012-10-10 Doug Evans <dje@google.com>
1740
1741 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1742 "0x" prefix on address in log message.
1743
1744 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1745 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1746 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1747 (lookup_dwo_file): Add const to dwo_name parameter.
1748 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1749
1750 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1751
1752 Fix crash during stepping on ppc32.
1753 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1754 SYM.
1755
1756 2012-10-03 Doug Evans <dje@google.com>
1757
1758 PR symtab/14601
1759 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1760
1761 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1762
1763 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1764 output and use uint32_t not long to ensure 4 byte size.
1765
1766 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1767
1768 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1769 unref'ed it.
1770
1771 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1772
1773 * target.c (simple_search_memory): Include access length in
1774 warning message.
1775
1776 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1777 Edjunior Machado <emachado@linux.vnet.ibm.com>
1778
1779 PR gdb/13989
1780 * solib.c (solib_find): Prevent GDB from loading native libraries when
1781 debugging a cross-target corefile.
1782
1783 2012-09-28 selven <pcthegreat@gmail.com>
1784
1785 Make definition match declaration.
1786
1787 * regcache.c (regcache_register_status): Change return type to
1788 enum register_status.
1789
1790 2012-09-28 Yao Qi <yao@codesourcery.com>
1791
1792 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1793 write_memory_with_notification instead of write_memory.
1794 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1795 instead of target_write_memory.
1796
1797 2012-09-28 Yao Qi <yao@codesourcery.com>
1798
1799 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1800 when the length of content is not an even number.
1801
1802 2012-09-27 Tom Tromey <tromey@redhat.com>
1803
1804 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1805 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1806
1807 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1808
1809 * sol-thread.c (sol_thread_fetch_registers)
1810 (sol_thread_store_registers): Delete commented out code.
1811
1812 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1813
1814 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1815 Move these functions to sparc-sol-thread.c.
1816 * sparc-sol-thread.c: New file.
1817 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1818 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1819 configurations.
1820 * configure: Regenerate.
1821
1822 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1823
1824 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1825 Remove commented-out code.
1826
1827 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1828
1829 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1830 Enable this code for sparc hosts only.
1831
1832 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1833
1834 * procfs.h (procfs_find_LDT_entry): Add declaration.
1835 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1836 function procfs_find_LDT_entry.
1837
1838 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1839
1840 * procfs.c (proc_get_LDT_entry): Make static.
1841
1842 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1843
1844 * procfs.c (proc_find_memory_regions): Fix declaration.
1845
1846 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1847
1848 * amd64-tdep.c (amd64_return_value): Revert previous change
1849 that used TYPE_LENGTH directly.
1850 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1851 (bfin_store_return_value): Likewise.
1852 * cris-tdep.c (cris_store_return_value): Likewise.
1853 (cris_extract_return_value): Likewise.
1854 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1855 * hppa-tdep.c (hppa64_return_value): Likewise.
1856 * lm32-tdep.c (lm32_store_return_value): Likewise.
1857 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1858 * spu-tdep.c (spu_value_from_register): Likewise.
1859 * vax-tdep.c (vax_return_value): Likewise.
1860
1861 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1862
1863 * gdbtypes.c (lookup_array_range_type): Expand parameters
1864 LOW_BOUND and HIGH_BOUND to LONGEST.
1865 (lookup_string_range_type): Likewise.
1866 * gdbtypes.h (lookup_array_range_type): Likewise.
1867 (lookup_string_range_type): Likewise.
1868 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1869 Expand HIGHBOUND to ssize_t.
1870 (value_string): Likewise.
1871 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1872 (value_string): Likewise.
1873
1874 2012-09-27 Yao Qi <yao@codesourcery.com>
1875
1876 PR breakpoints/13898
1877 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1878 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1879 per breakpoint type.
1880
1881 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1882
1883 * procfs.c: Add gdb_bfd header.
1884 * rs6000-nat.c: Likewise.
1885 * solib-pa64.c: Likewise.
1886 * spu-linux-nat.c: Likewise.
1887 * windows-nat.c: Likewise.
1888
1889 2012-09-26 Tom Tromey <tromey@redhat.com>
1890
1891 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1892
1893 2012-09-26 Tom Tromey <tromey@redhat.com>
1894
1895 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1896 (read_common_block): Handle child DIEs with
1897 DW_AT_data_member_location.
1898 (new_symbol_full): Add special case for common blocks.
1899
1900 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1901 Tom Tromey <tromey@redhat.com>
1902
1903 * dwarf2read.c (read_common_block): Rewrite.
1904 (new_symbol_full): Handle DW_TAG_common_block.
1905 * f-lang.c (head_common_list, find_common_for_function):
1906 Remove.
1907 * f-lang.h (struct common_entry, struct saved_f77_common,
1908 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1909 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1910 BLANK_COMMON_NAME_LOCAL): Remove.
1911 (struct common_block): New.
1912 * f-valprint.c (list_all_visible_commons): Remove.
1913 (info_common_command_for_block): New function.
1914 (info_common_command): Use it.
1915 * stack.c (iterate_over_block_locals): Special case for
1916 COMMON_BLOCK_DOMAIN.
1917 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1918 constant.
1919 (struct general_symbol_info) <value.common_block>: New field.
1920 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1921
1922 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1923 Tom Tromey <tromey@redhat.com>
1924
1925 * f-lang.c (allocate_saved_bf_node,
1926 allocate_saved_function_node, allocate_saved_f77_common_node,
1927 allocate_common_entry_node, tail_common_list, current_common,
1928 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1929 tmp_bf_ptr, add_common_block, add_common_entry,
1930 find_first_common_named, patch_common_entries,
1931 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1932 global_remote_debug, get_bf_for_fcn, saved_function_list,
1933 saved_function_list_end, clear_function_list, struct saved_fcn,
1934 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1935 SAVED_BF, SAVED_BF_PTR): Remove.
1936 * f-lang.h (tail_common_list, current_common,
1937 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1938 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1939 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1940 real_main_c_value): Remove.
1941 * f-valprint.c (there_is_a_visible_common_named): Remove.
1942
1943 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1944
1945 * breakpoint.c (update_global_location_list): Ignore previous
1946 duplicate status of a breakpoint when starting a new scan for
1947 duplicate breakpoints.
1948
1949 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1950 PR breakpoints/14419
1951 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1952 support LLVM compiler.
1953
1954 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1955
1956 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1957 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1958 (bfin_store_return_value): Likewise.
1959 * cris-tdep.c (cris_store_return_value): Likewise.
1960 (cris_extract_return_value): Likewise.
1961 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1962 * hppa-tdep.c (hppa64_return_value): Likewise.
1963 * lm32-tdep.c (lm32_store_return_value): Likewise.
1964 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1965 * spu-tdep.c (spu_value_from_register): Likewise.
1966 * vax-tdep.c (vax_return_value): Likewise.
1967
1968 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1969
1970 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1971 parameter LEN to ssize_t.
1972
1973 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1974
1975 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1976 variable LEN.
1977 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1978 directly.
1979 (alpha_store_return_value): Likewise.
1980 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1981 (amd64_push_arguments): Likewise.
1982 * ax-gdb.c (gen_trace_static_fields): Likewise.
1983 (gen_traced_pop): Likewise.
1984 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1985 * breakpoint.c (update_watchpoint): Likewise.
1986 * findcmd.c (parse_find_args): Use local variable for type
1987 instead of length.
1988 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1989 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1990 (h8300_store_return_value): Likewise.
1991 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1992 Use i386_darwin_arg_type_alignment directly.
1993 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1994 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1995 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1996 (m68hc11_extract_return_value): Likewise.
1997 * mep-tdep.c (mep_push_dummy_call): Likewise.
1998 * printcmd.c (float_type_from_length): Likewise.
1999 * s390-tdep.c (s390_value_from_register): Likewise.
2000 * stack.c (read_frame_arg): Likewise.
2001 * tracepoint.c (encode_actions_1): Likewise.
2002 * valops.c (value_fetch_lazy): Use local variable for type
2003 instead of length. Use TYPE_LENGTH directly.
2004 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2005
2006 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2007
2008 * symtab.c (skip_prologue_sal): Fix typo in comment.
2009
2010 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2011
2012 * linespec.c (create_sals_line_offset): Fix typo in comment.
2013
2014 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2015
2016 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2017 use plongest to print the array size.
2018
2019 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2020
2021 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2022 * p-valprint.c (pascal_type_print_base): Likewise.
2023
2024 2012-09-22 Yao Qi <yao@codesourcery.com>
2025
2026 * remote.c (remote_get_trace_status): Remove setting default
2027 values of fields of 'ts'.
2028
2029 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2030
2031 Fix internal error on canonicalization of clang types.
2032 * cp-name-parser.y (operator): New comment at make_operator call for
2033 new, delete, new[] and delete[].
2034 (exp): Use "sizeof ". Add new comment at make_operator call.
2035
2036 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2037
2038 Fix disassemble without parameters in tailcall frame.
2039 * cli/cli-cmds.c (disassemble_current_function): Use
2040 get_frame_address_in_block.
2041
2042 2012-09-21 Tom Tromey <tromey@redhat.com>
2043
2044 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2045 TYPE_CODE_UNION>: Unify, removing a goto.
2046
2047 2012-09-21 Tom Tromey <tromey@redhat.com>
2048
2049 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2050
2051 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2052
2053 * findvar.c (read_frame_register_value): Mark the result value as
2054 optimized out if any of the input registers have been optimized out.
2055
2056 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2057
2058 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2059
2060 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2061
2062 * eval.c (evaluate_subexp_standard): Eliminate single-use
2063 variable LOWER.
2064
2065 2012-09-21 Yao Qi <yao@codesourcery.com>
2066
2067 * mi/mi-interp.c: Declare mi_record_changed.
2068 (mi_interpreter_init): Call observer_attach_record_changed.
2069 (mi_record_changed): New.
2070 * record.c (record_open): Call observer_notify_record_changed.
2071 (cmd_record_stop): Call observer_notify_record_changed.
2072 * NEWS: Mention it.
2073
2074 2012-09-20 Tom Tromey <tromey@redhat.com>
2075
2076 * NEWS: Update.
2077 * python/python.c (finalize_python): New function.
2078 (_initialize_python): Make a final cleanup.
2079
2080 2012-09-19 Doug Evans <dje@google.com>
2081
2082 * buildsym.h (param_symbols): Delete, unused.
2083 (context_stack): Delete member "params", unused.
2084 * buildsym.c (push_context): Update.
2085 * dwarf2read.c (read_func_scope): Update.
2086
2087 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2088
2089 * sh-tdep.c (sh_register_convert_to_virtual)
2090 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2091 all callers. Just do a memcpy if not the little-endian case.
2092
2093 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2094 set_gdbarch_double_format and set_gdbarch_long_double_format.
2095 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2096 set_gdbarch_double_format.
2097 * sh-tdep.c (sh_gdbarch_init): Likewise.
2098
2099 * NEWS: Document the removal of SH's 'regs' command.
2100 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2101 command.
2102
2103 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2104
2105 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2106 `jump'.
2107
2108 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2109
2110 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2111 language when iterating over symbols.
2112
2113 2012-09-18 Yao Qi <yao@codesourcery.com>
2114
2115 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2116 (mi_interpreter_init): Call observer_attach_tsv_created and
2117 observer_attach_tsv_deleted.
2118 (mi_tsv_created, mi_tsv_deleted): New.
2119 * tracepoint.c (delete_trace_state_variable): Call
2120 observer_notify_tsv_deleted.
2121 (trace_variable_command): Call observer_notify_tsv_created.
2122 (delete_trace_variable_command): Call
2123 observer_notify_tsv_deleted.
2124 (create_tsv_from_upload): Call observer_notify_tsv_created.
2125 * NEWS: Mention it.
2126
2127 2012-09-18 Yao Qi <yao@codesourcery.com>
2128
2129 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2130 if traceframe changed.
2131 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2132 "trace-find".
2133 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2134 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2135 'traceframe_changed'.
2136 (mi_traceframe_changed): New.
2137 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2138 New field.
2139 * NEWS: Mention the new MI notification.
2140
2141 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2142
2143 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2144
2145 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2148 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2149 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2150 Extend code also for PaX support. Convert all gdb_assert to warning
2151 calls.
2152
2153 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2154
2155 Implement auto-load user conveniences suggested by Doug Evans.
2156 * auto-load.c: Include top.h.
2157 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2158 (_initialize_auto_load): New variable scripts_directory_help. Mention
2159 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2160 scripts-directory. Document in online help one can use also files for
2161 set auto-load safe-path.
2162 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2163 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2164
2165 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2166
2167 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2168 of LEN.
2169
2170 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2171
2172 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2173 ELTLEN and use TYPE_LENGTH directly.
2174 (m2_val_print): Likewise.
2175 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2176 variable LEN and use TYPE_LENGTH directly.
2177 (m68k_svr4_store_return_value): Likewise.
2178 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2179 ARGLEN and use TYPE_LENGTH directly.
2180 (mips_o64_push_dummy_call): Likewise.
2181 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2182 variable LENGTH and use TYPE_LENGTH directly.
2183 (s390_function_arg_float): Likewise.
2184 (s390_function_arg_integer): Likewise.
2185 (s390_push_dummy_call): Likewise.
2186 (s390_return_value_convention): Likewise.
2187 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2188 TYPE_LENGTH directly.
2189
2190 2012-09-17 Yao Qi <yao@codesourcery.com>
2191
2192 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2193 Update comment to add_setshow_integer_cmd.
2194 * cli/cli-setshow.c (do_set_command): Handle case
2195 'var_zuinteger_unlimited'.
2196 (do_show_command): Likewise.
2197 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2198 for command 'remotetimeout'.
2199 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2200 to var_integer.
2201 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
2202 for command 'set listsize'.
2203
2204 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2205
2206 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2207 variable LEN.
2208
2209 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2210
2211 PR 14119
2212 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2213 (frame_pop): Drop also TAILCALL_FRAME frames.
2214 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2215
2216 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2217 Pedro Alves <palves@redhat.com>
2218
2219 PR 14548
2220 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2221 function start if we are already at function start. Both for
2222 reverse-next and for reverse-step into function without line number
2223 info.
2224
2225 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2226
2227 Code cleanup - rename 'inline' depth to 'artificial' depth.
2228 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2229 frame_id_artificial_p, extend the comment.
2230 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2231 * frame.c (fprint_frame_id): Rename at a user, change debug output
2232 text to "artificial=".
2233 (skip_inlined_frames): Rename to ...
2234 (skip_artificial_frames): ... here. Extend the comment.
2235 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2236 (frame_id_inlined_p): Rename to ...
2237 (frame_id_artificial_p): ... here. Rename at a user.
2238 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2239 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2240 at a user.
2241 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2242 Extend the comment.
2243 (frame_id_inlined_p): Rename to ...
2244 (frame_id_artificial_p): ... here.
2245 * inline-frame.c (inline_frame_this_id): Rename at a user.
2246
2247 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2248
2249 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2250 vector variables using vector_size syntax rather than array
2251 syntax.
2252
2253 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2254
2255 * valarith.c (value_concat): Replace unsafe ALLOCA with
2256 XMALLOC/XFREE.
2257
2258 2012-09-14 Pedro Alves <palves@redhat.com>
2259
2260 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2261
2262 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2263
2264 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2265 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2266 data-directory as appropriate.
2267
2268 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2269
2270 * printcmd.c (ui_printf): Eliminate single-use variable
2271 PARAM_LEN.
2272
2273 2012-09-14 Yao Qi <yao@codesourcery.com>
2274 Pedro Alves <palves@redhat.com>
2275
2276 * valops.c (value_assign): Move observer_notify_target_changed
2277 below to replace reinit_frame_cache.
2278
2279 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2280
2281 Refactor Python "gdb" module into a proper Python package, by
2282 introducing a new "_gdb" module for code implemented in C, and
2283 using reload/__import__ instead of exec.
2284 * python/lib/gdb/__init__.py: Import * from _gdb.
2285 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2286 prompt_hook, sys.argv): Moved from finish_python_initialization.
2287 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2288 (packages, auto_load_packages): New list and function replacing
2289 module_dict and auto-loading code, using __file__ instead of
2290 gdb.PYTHONDIR and reload/__import__ instead of exec.
2291 (GdbSetPythonDirectory): Replacing function of the same name
2292 from finish_python_initialization, using reload/__import__ instead
2293 of exec, as well as call auto_load_packages.
2294 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2295 gdb_python_module and not gdb_module.
2296 * python/python-internal.h (gdb_python_module): Declare.
2297 * python/python.c (gdb_python_module): New global.
2298 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2299 (_initialize_python): Rename gdb module to _gdb.
2300 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2301 (finish_python_initialization): Move Python code to
2302 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2303 __main__.
2304
2305 2012-09-13 Pedro Alves <palves@redhat.com>
2306
2307 * Makefile.in (COMMON_OBS): Add registry.o.
2308 * registry.c: New file.
2309 * registry.h (struct registry_container): Declare.
2310 (registry_data_callback): New typedef.
2311 (struct registry_data, struct registry_data_registration, struct
2312 registry_data_registry): New type.
2313 (register_data_with_cleanup, registry_alloc_data)
2314 (registry_callback_adaptor, registry_clear_data)
2315 (registry_container_free_data, registry_set_data, registry_data):
2316 Declare.
2317 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2318 the new common structures and functions.
2319 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2320 callback typedefs.
2321
2322 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2323
2324 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2325 there is an error inserting hardware breakpoints and use the
2326 error message from the target.
2327
2328 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2329 Catch this exception and print the error message contained within. Do not
2330 print the default hardware error breakpoint message in this case.
2331
2332 2012-09-12 Doug Evans <dje@google.com>
2333
2334 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2335 cu == NULL.
2336
2337 2012-09-11 Doug Evans <dje@google.com>
2338
2339 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2340 .gdb_index symbol attributes if there are none.
2341
2342 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2343
2344 * symtab.h (struct minimal_symbol) [has_size]: New field.
2345 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2346 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2347 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2348 minimal symbols if the symbol's size is actually known.
2349 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2350 of msymbol's size field. Add comment.
2351 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2352 SET_MSYMBOL_SIZE to set the minimal symbol size.
2353
2354 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2355
2356 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2357 minimal_symbol struct object, rather than setting some of its
2358 fields one by one.
2359
2360 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2361
2362 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2363 passed_a_ptr flag when displaying typedef types.
2364
2365 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2366
2367 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2368 the optimized_out flag is preserved.
2369
2370 2012-09-10 Anthony Green <green@moxielogic.com>
2371
2372 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2373 prologue changes in GCC.
2374
2375 2012-09-10 Keith Seitz <keiths@redhat.com>
2376
2377 PR gdb/13483
2378 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2379 (BOOL_CONVERSION_BADNESS): ... this.
2380 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2381 (rank_one_type): Allow all boolean conversions
2382 permitted by the standard.
2383
2384 2012-09-06 Tom Tromey <tromey@redhat.com>
2385
2386 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2387 Don't decref py_objfile.
2388
2389 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2390
2391 Do not enable -lmcheck by default when Python is enabled with
2392 threading support.
2393 * configure.ac: (python_has_threads) New variable, by testing
2394 if WITH_THREAD is defined in Python.h.
2395 Move --enable-lmcheck after --with-python.
2396 Do not enable -lmcheck by default if python_has_threads=yes.
2397 Warn if --enable-lmcheck and python_has_threads=yes.
2398 * configure: Regenerate.
2399
2400 2012-08-31 Yao Qi <yao@codesourcery.com>
2401
2402 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2403 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2404 Update some commands.
2405 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2406 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2407 to 1.
2408
2409 2012-08-31 Yao Qi <yao@codesourcery.com>
2410
2411 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2412
2413 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2414
2415 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2416
2417 2012-08-29 Doug Evans <dje@google.com>
2418
2419 * main.c (print_gdb_help): Remove reference to
2420 --use-deprecated-index-sections.
2421
2422 2012-08-28 Yao Qi <yao@codesourcery.com>
2423
2424 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2425 (init_cmds): Call add_setshow_uinteger_cmd for command
2426 'max-user-call-depth'.
2427 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2428 declaration of 'max_user_call_depth'.
2429 * frame.c (backtrace_limit): Add 'unsigned'.
2430 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2431 'limit'.
2432 * remote.c (remoteaddresssize): Add 'unsigned'.
2433 (remote_address_masked): Change local var 'address_size' to
2434 'unsigned'.
2435 (_initialize_remote): Call add_setshow_uinteger_cmd for
2436 'remoteaddresssize'.
2437 * top.c (history_size): Add 'unsigned'.
2438 (show_commands): Change local variables to 'unsigned'.
2439 (set_history_size_command): Don't check history_size is negative.
2440 Adjust the condition to call unstifle_history and set history_size
2441 to UNIT_MAX.
2442
2443 2012-08-28 Pedro Alves <palves@redhat.com>
2444
2445 PR gdb/14428
2446
2447 * infcmd.c (default_print_one_register_info): New, factored out
2448 from default_print_registers_info.
2449 (default_print_registers_info): Use it. Mark value unavailable if
2450 necessary.
2451 (registers_info): Print user registers with
2452 default_print_one_register_info.
2453
2454 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2455
2456 PR tui/14486
2457 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2458 is not NULL before referencing it.
2459
2460 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2461
2462 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2463 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2464 original PC for it.
2465
2466 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2467 Jan Kratochvil <jan.kratochvil@redhat.com>
2468
2469 * auto-load.c (auto_load_objfile_script): Rename to ...
2470 (auto_load_objfile_script_1): ... here, change variable realname to
2471 parameter realname, document it, add return value, add variable retval.
2472 (auto_load_objfile_script): New function.
2473
2474 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2475
2476 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2477 followed by a whitespace.
2478
2479 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2480
2481 PR gdb/14494.
2482 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2483 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2484 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2485 here.
2486
2487 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2488
2489 * memattr.c (create_mem_region): Fix memory region overlapping
2490 checking.
2491
2492 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2493
2494 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2495 with xmalloc/cleanup.
2496 * mt-tdep.c (mt_push_dummy_call): Likewise.
2497 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2498 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2499
2500 2012-08-24 Yao Qi <yao@codesourcery.com>
2501
2502 * jv-exp.y (push_expression_name): Add "." at the end of error
2503 message.
2504
2505 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2506
2507 Document how to return from "python-interactive" to GDB.
2508 * python/python.c (_initialize_python): Update documentation.
2509
2510 2012-08-23 Pedro Alves <palves@redhat.com>
2511
2512 * infrun.c (_initialize_infrun) <handle command help text>:
2513 Mention that multiple signals are supported.
2514
2515 2012-08-23 Pedro Alves <palves@redhat.com>
2516
2517 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2518 string.
2519
2520 2012-08-23 Yao Qi <yao@codesourcery.com>
2521
2522 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2523 (tfind_1): Don't call registers_changed, set_traceframe_num,
2524 and clear_traceframe_info.
2525 Call set_current_traceframe.
2526 (set_current_traceframe): call set_traceframe_num.
2527
2528 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2529
2530 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2531 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2532
2533 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2534
2535 Enable readline in Python in a GDB-specific way and block the
2536 standard Python readline module to prevent conflicts with GDB.
2537 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2538 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2539 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2540 * python/py-gdb-readline.c: New file.
2541 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2542 prototype.
2543 * python/python.c (_initialize_python): Call
2544 gdbpy_initialize_gdb_readline.
2545
2546 2012-08-22 Keith Seitz <keiths@redhat.com>
2547
2548 * defs.h: Include build-gnulib/config.h
2549
2550 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2551
2552 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2553 and blx pc.
2554
2555 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2556
2557 Add a new "python-interactive" command that starts a standard
2558 Python interactive prompt with "pi" as alias, and add "py" as
2559 an alias to "python".
2560 * NEWS: Mention the new commands.
2561 * python/python.c (eval_python_command): New function.
2562 (python_interactive_command): For "python-interactive" with
2563 arguments, call eval_python_command. For "python-interactive"
2564 without arguments, call PyRun_InteractiveLoop.
2565 (_initialize_python): Add "python-interactive" command with
2566 "pi" as alias, and add "py" as an alias to "python".
2567
2568 2012-08-22 Tom Tromey <tromey@redhat.com>
2569
2570 * defs.h (quit_flag): Don't declare.
2571 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2572 (QUIT): Use new functions.
2573 * event-top.c (command_handler): Use clear_quit_flag.
2574 (handle_sigint): Use set_quit_flag.
2575 (async_request_quit): Use check_quit_flag. Don't check
2576 immediate_quit.
2577 * exceptions.c (throw_exception): Use clear_quit_flag.
2578 * main.c (captured_main): Use clear_quit_flag.
2579 * python/python.c (clear_quit_flag, set_quit_flag)
2580 (check_quit_flag): New functions.
2581 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2582 clear_quit_flag.
2583 * remote.c (remote_wait_as): Use check_quit_flag,
2584 clear_quit_flag.
2585 (remote_start_remote): Call QUIT.
2586 * symfile.c (load_progress): Use check_quit_flag.
2587 * top.c (command_loop): Use clear_quit_flag.
2588 (command_line_input): Call QUIT.
2589 * utils.c (quit_flag): Conditionally define.
2590 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2591 functions.
2592 (prompt_for_continue): Call QUIT. Use quit, not
2593 async_request_quit.
2594 * remote-mips.c (mips_expect_timeout): Call QUIT.
2595 * monitor.c (monitor_expect): Call QUIT.
2596
2597 2012-08-22 Tom Tromey <tromey@redhat.com>
2598
2599 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2600 (async_init_signals): Update.
2601 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2602 (SIGWINCH_HANDLER_BODY): Remove.
2603
2604 2012-08-22 Tom Tromey <tromey@redhat.com>
2605
2606 * jit.c (jit_object_close_impl): Don't malloc the objfile
2607 name.
2608 * objfiles.c (allocate_objfile): Don't malloc the objfile
2609 name.
2610 (free_objfile): Don't free the objfile name.
2611 * objfiles.h (struct objfile) <name>: Update comment.
2612 * symfile.c (reread_symbols): Fix reference counting. Don't
2613 malloc objfile name.
2614
2615 2012-08-22 Tom Tromey <tromey@redhat.com>
2616
2617 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2618 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2619 (symfile_bfd_open): Likewise.
2620 (generic_load): Likewise.
2621 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2622 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2623 gdb_bfd_open.
2624 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2625 Use gdb_bfd_open.
2626 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2627 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2628 (pmon_load_fast): Likewise.
2629 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2630 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2631 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2632 (macho_check_dsym): Likewise.
2633 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2634 (m32r_upload_command): Likewise.
2635 * gdb_bfd.h (gdb_bfd_cache): Declare.
2636 * gdb_bfd.c (struct gdb_bfd_data): New.
2637 (gdb_bfd_cache): New global.
2638 (struct gdb_bfd_cache_search): New.
2639 (hash_bfd): New function.
2640 (eq_bfd): Likewise.
2641 (gdb_bfd_open): Likewise.
2642 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2643 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2644 gdb_bfd_data.
2645 * exec.c (exec_file_attach): Use gdb_bfd_open.
2646 * dsrec.c (load_srec): Use gdb_bfd_open.
2647
2648 2012-08-22 Tom Tromey <tromey@redhat.com>
2649
2650 * dwarf2read.c (macro_start_file): Update.
2651 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2652 (free_objfile_per_bfd_storage): Destroy macro_cache.
2653 (allocate_objfile, free_objfile): Update.
2654 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2655 New field.
2656 (struct objfile) <macro_cache>: Remove.
2657 * symfile.c (reread_symbols): Update.
2658 * symmisc.c (print_symbol_bcache_statistics): Update.
2659 (print_objfile_statistics): Update.
2660
2661 2012-08-22 Tom Tromey <tromey@redhat.com>
2662
2663 * elfread.c (elf_symtab_read): Update.
2664 * objfiles.c (objfiles_bfd_data): New global.
2665 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2666 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2667 (allocate_objfile, free_objfile): Update.
2668 (_initialize_objfiles): Initialize objfiles_bfd_data.
2669 * objfiles.h (struct objfile_per_bfd_storage): New.
2670 (struct objfile) <per_bfd>: New field.
2671 <filename_cache>: Remove.
2672 (set_objfile_per_bfd): Declare.
2673 * symfile.c (reread_symbols): Update. Call
2674 set_objfile_per_bfd.
2675 (allocate_symtab): Update.
2676 * symmisc.c (print_symbol_bcache_statistics): Update.
2677 (print_objfile_statistics): Print the size of the BFD obstack.
2678
2679 2012-08-22 Tom Tromey <tromey@redhat.com>
2680
2681 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2682 * gdb_bfd.c: Use DEFINE_REGISTRY.
2683 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2684 (gdb_bfd_ref): Call bfd_alloc_data.
2685 (gdb_bfd_unref): Call bfd_free_data.
2686
2687 2012-08-22 Tom Tromey <tromey@redhat.com>
2688
2689 * registry.h (struct registry_fields): New.
2690 (REGISTRY_FIELDS): Redefine.
2691 (REGISTRY_ACCESS_FIELD): New macro.
2692 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2693 functions.
2694
2695 2012-08-22 Tom Tromey <tromey@redhat.com>
2696
2697 * auto-load.c (_initialize_auto_load): Update.
2698 * solib-svr4.c (_initialize_svr4_solib): Update
2699 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2700 * solib-darwin.c (_initialize_darwin_solib): Update.
2701 * registry.h: New file.
2702 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2703 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2704 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2705 (register_program_space_data_with_cleanup)
2706 (register_program_space_data, program_space_alloc_data)
2707 (clear_program_space_data, set_program_space_data)
2708 (program_space_data): Don't declare.
2709 * progspace.c: Use DEFINE_REGISTRY.
2710 (struct program_space_data, struct
2711 program_space_data_registration, struct
2712 program_space_data_registry, program_space_data_registry)
2713 (register_program_space_data_with_cleanup)
2714 (register_program_space_data, program_space_alloc_data)
2715 (program_space_free_data, clear_program_space_data)
2716 (set_program_space_data, program_space_data): Remove.
2717 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2718 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2719 (register_objfile_data_with_cleanup, register_objfile_data)
2720 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2721 declare.
2722 * objfiles.c: Use DEFINE_REGISTRY.
2723 (struct objfile_data, struct objfile_data_registration, struct
2724 objfile_data_registry, objfile_data_registry)
2725 (register_objfile_data_with_cleanup, register_objfile_data)
2726 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2727 (set_objfile_data, objfile_data): Remove.
2728 (_initialize_objfiles): Update.
2729 * jit.c (_initialize_jit): Update.
2730 * inflow.c (_initialize_inflow): Update.
2731 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2732 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2733 (register_inferior_data_with_cleanup, register_inferior_data)
2734 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2735 declare.
2736 * inferior.c: Use DEFINE_REGISTRY.
2737 (struct inferior_data, struct inferior_data_registration, struct
2738 inferior_data_registry, inferior_data_registry)
2739 (register_inferior_data_with_cleanup, register_inferior_data)
2740 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2741 (set_inferior_data, inferior_data): Remove.
2742 * auxv.c (_initialize_auxv): Update.
2743 * ada-lang.c (_initialize_ada_language): Update.
2744 * breakpoint.c (_initialize_breakpoint): Update.
2745 * i386-nat.c (i386_use_watchpoints): Update.
2746
2747 2012-08-22 Tom Tromey <tromey@redhat.com>
2748
2749 * exec.c (exec_close, exec_file_attach): Update.
2750 (add_to_section_table): Initialize 'key' field.
2751 (add_target_sections, remove_target_sections): Add 'key' argument.
2752 * exec.h (add_target_sections, remove_target_sections): Add
2753 'key' argument.
2754 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2755 (reload_shared_libraries_1): Update.
2756 * target.h (struct target_section) <key>: New field.
2757
2758 2012-08-22 Tom Tromey <tromey@redhat.com>
2759
2760 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2761
2762 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2763
2764 * symfile.c (allocate_symtab): Use host_address_to_string
2765 function instead of cast of pointer to long which is not
2766 compatible with x86_64-w64-mingw32 build.
2767
2768 2012-08-19 Andrew Pinski <apinski@cavium.com>
2769
2770 * mips-tdep.c (is_octeon): New function.
2771 (is_octeon_bbit_op): New function.
2772 (mips32_next_pc): Handle Octeon's bbit instructions.
2773 (mips32_instruction_has_delay_slot): Likewise.
2774
2775 2012-08-19 Andrew Pinski <apinski@cavium.com>
2776
2777 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2778 before the function.
2779
2780 2012-08-19 Andrew Pinski <apinski@cavium.com>
2781
2782 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2783
2784 2012-08-19 Keith Seitz <keiths@redhat.com>
2785
2786 PR c++/14365
2787 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2788 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2789
2790 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2791
2792 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2793 The typo broke "make TAGS".
2794
2795 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2796
2797 GDB 7.5 released.
2798
2799 2012-08-17 Keith Seitz <keiths@redhat.com>
2800
2801 PR c++/13356
2802 * gdbtypes.c (strict_type_checking): New variable.
2803 (show_strict_type_checking): New function.
2804 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2805 if strict type checking is disabled.
2806 (_initialize_gdbtypes): Add "check type" subcommand.
2807 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2808
2809 2012-08-17 Keith Seitz <keiths@redhat.com>
2810
2811 * language.h (type_mode): Remove.
2812 (type_check): Remove.
2813 (struct language_defn): Remove la_type_check.
2814 (STRICT_TYPE): Remove unused macro.
2815 (type_error): Remove.
2816 * language.c (set_type_range_case): Renamed to ...
2817 (set_range_case): ... this. Update all callers.
2818 Remove type_mode/type_check.
2819 (type_mode): Remove.
2820 (type_check): Remove.
2821 (show_type_command): Remove.
2822 (set_type_command): Remove.
2823 (language_info): Remove type checking output.
2824 (type_error): Remove unused function.
2825 (range_error): Update comment.
2826 (unknown_language_defn): Remove la_type_check.
2827 (auto_language_defn): Likewise.
2828 (local_language_defn): Likewise.
2829 (_initialize_language): Remove "check type" subcommand.
2830 * ada-lang.c (ada_language_defn): Remove la_type_check.
2831 * c-lang.c (c_language_defn): Likewise.
2832 (cplus_language_defn): Likewise.
2833 (asm_language_defn): Likewise.
2834 (minimal_language_defn): Likewise.
2835 * d-lang.c (d_language_defn): Likewise.
2836 * f-lang.c (f_language_defn): Likewise.
2837 * go-lang.c (go_language_defn): Likewise.
2838 * jv-lang.c (java_language_defn): Likewise.
2839 * m2-lang.c (m2_language_defn): Likewise.
2840 * objc-lang.c (objc_language_defn): Likewise.
2841 * opencl-lang.c (opencl_language_defn): Likewise.
2842 * p-lang.c (pascal_language_defn): Likewise.
2843
2844 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2845
2846 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2847
2848 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2849
2850 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2851 New function.
2852 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2853 using the regache. Use ia64_hpux_get_register_from_save_state_t
2854 to access the bsp and bspstore registers if not.
2855
2856 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2857
2858 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2859 * breakpoint.c (detach_breakpoints): Change pid parameter into
2860 a ptid. Adjust code accordingly.
2861 * infrun.c (handle_inferior_event): Delete variable child_pid.
2862 Update call to detach_breakpoints to pass the child ptid for
2863 fork events.
2864 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2865 assert that inferior_ptid's lwp is zero.
2866 (linux_handle_extended_wait): Update call to detach_breakpoints.
2867 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2868 detach_breakpoints.
2869
2870 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2871
2872 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2873 parent, only call detach_breakpoints if tts.tts_event ==
2874 TTEVT_VFORK.
2875
2876 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2877
2878 * dwarf2-frame.c (dwarf2_frame_cache): Use
2879 get_frame_address_in_block instead of get_frame_pc as
2880 the bound for executing the frame's FDE.
2881
2882 2012-08-16 Yao Qi <yao@codesourcery.com>
2883
2884 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2885 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2886 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2887 (c_type_print_varspec_suffix): Likewise.
2888 * eval.c (evaluate_subexp_standard): Likewise.
2889 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2890 (f_type_print_varspec_suffix): Likewise.
2891 * gdbtypes.c (is_scalar_type): Likewise.
2892 (recursive_dump_type): Likewise.
2893 * infcall.c (value_arg_coerce): Likewise.
2894 * m2-valprint.c (m2_val_print): Likewise.
2895 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2896 (pascal_type_print_varspec_suffix): Likewise.
2897 (pascal_type_print_base): Likewise.
2898 * p-valprint.c (pascal_val_print): Likewise.
2899 (pascal_val_print): Likewise.
2900 * valops.c (value_slice): Likewise.
2901 * valprint.c (scalar_type_p): Likewise.
2902 * valarith.c (value_bitstring_subscript): Remove.
2903 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2904 Remove comment on TYPE_CODE_BITSTRING.
2905
2906 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2907 TYPE_CODE_BITSTRING.
2908
2909 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2910 slot 0.
2911
2912 2012-08-16 Yao Qi <yao@codesourcery.com>
2913
2914 * tracepoint.c (trace_find_none_command): Remove.
2915 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2916
2917 2012-08-16 Yao Qi <yao@codesourcery.com>
2918
2919 * remote.c (handle_notification): Remove parameter 'length'.
2920 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2921
2922 2012-08-15 Keith Seitz <keiths@redhat.com>
2923
2924 * gdbtypes.c (opaque_type_resolution): Make static.
2925 Add missing comment.
2926 (overload_debug): Add missing comment.
2927 (show_opaque_type_resolution): Likewise.
2928 (show_overload_debug): Likewise.
2929 (print_bit_vector): Remove unnecessary forward declaration.
2930 (print_arg_types): Likewise.
2931 (dump_fn_fieldlists): Likewise.
2932 (print_cplus_stuff): Likewise.
2933
2934 2012-08-15 Tom Tromey <tromey@redhat.com>
2935
2936 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2937 (gdb_bfd_ref): Initialize new field.
2938 (gdb_bfd_unref): Unref the archive BFD.
2939 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2940 parent archive.
2941
2942 2012-08-15 Tom Tromey <tromey@redhat.com>
2943
2944 PR python/14387:
2945 * python/py-bpevent.c (create_breakpoint_event_object): Update
2946 comment.
2947 * python/py-event.c (evpy_add_attribute): Update comment.
2948 * python/py-exitedevent.c (create_exited_event_object): Fix
2949 reference counting and error handling.
2950 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2951 Fix reference counting.
2952 * python/py-signalevent.c (create_signal_event_object): Fix
2953 reference counting and error handling.
2954 * python/py-stopevent.c (emit_stop_event): Fix reference
2955 counting.
2956 * python/py-threadevent.c (get_event_thread): Return a
2957 borrowed reference.
2958 * python/py-type.c (convert_field): Fix reference counting.
2959
2960 2012-08-15 Tom Tromey <tromey@redhat.com>
2961
2962 * dwarf2read.c (dwarf_decode_macro_bytes)
2963 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2964 as hash key.
2965
2966 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2967
2968 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2969 stepi, nexti, finish, next, step, jump, and continue commands.
2970 * infrun.c (_initialize_infrun): Update help text for the handle
2971 command.
2972
2973 2012-08-14 Doug Evans <dje@google.com>
2974
2975 * gdbtypes.c (struct extra): Delete, unused.
2976
2977 * gdbtypes.c: Whitespace cleanup.
2978 (address_space_name_to_int): Remove "extern" from definition.
2979 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2980
2981 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2982 TYPE_POINTER_TYPE (type).
2983
2984 2012-08-14 Gary Benson <gbenson@redhat.com>
2985
2986 * solib-svr4.c (svr4_free_library_list): Use free_so.
2987
2988 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2989
2990 * .gitignore: Add go-exp.c.
2991
2992 2012-08-13 Doug Evans <dje@google.com>
2993
2994 * value.c (show_convenience): Tweak comment.
2995 (_initialize_values): Mention convenience functions in the help text
2996 for "show convenience".
2997
2998 2012-08-13 Yao Qi <yao@codesourcery.com>
2999
3000 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3001 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3002 TERNOP_SLICE_COUNT.
3003 * eval.c (evaluate_subexp_standard): Likewise.
3004 * expprint.c (print_subexp_standard): Likewise.
3005 (dump_subexp_body_standard): Likewise.
3006 * parse.c (operator_length_standard): Likewise.
3007
3008 2012-08-13 Yao Qi <yao@codesourcery.com>
3009
3010 * std-operator.def: Remove OP_BITSTRING.
3011 * breakpoint.c (watchpoint_exp_is_const): Update.
3012 * eval.c (evaluate_subexp_standard): Remove handling to
3013 OP_BITSTRING.
3014 * expprint.c (print_subexp_standard): Likewise.
3015 (dump_subexp_body_standard): Likewise.
3016 * parse.c (operator_length_standard): Likewise.
3017 * valops.c (value_bitstring): Remove.
3018 * value.h: Remove the declaration of 'value_bitstring'.
3019
3020 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3021
3022 * linespec.c (find_methods): Remove unused variables `i1' and
3023 `name_len'.
3024 (decode_line_full): Likewise for `arg_start'.
3025
3026 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3027
3028 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3029 (zlib_decompress_section): Likewise for `section_data'.
3030 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3031
3032 2012-08-10 Doug Evans <dje@google.com>
3033
3034 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3035 * NEWS: Document them.
3036 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3037 function/strfns.py.
3038 * python/py-type.c (typy_array_1): New function.
3039 (typy_array): Call it.
3040 (typy_vector): New function.
3041 (type_object_methods): Add "vector".
3042 * python/lib/gdb/function/__init__.py: New file.
3043 * python/lib/gdb/function/strfns.py: New file.
3044
3045 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3046
3047 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3048 for TYPE_FIELD_BITPOS.
3049 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3050
3051 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3052
3053 PR cli/10436:
3054 * common/vec.h (VEC_merge): Define.
3055 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3056 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3057 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3058 * completer.c: Include gdb_signals.h.
3059 (signal_completer): Define.
3060 * completer.h (signal_completer): Add prototype.
3061 * infcmd.c (_initialize_infcmd): Assign the command
3062 completer for "signal" to handle_completer.
3063 * infrun.c: Include completer.h.
3064 (handle_completer): Define.
3065 (_initialize_infrun): Declare a new local variable c. Store the
3066 result of add_com("handle") to it. Assign the command
3067 completer for "handle" to handle_completer.
3068
3069 2012-08-09 Yao Qi <yao@codesourcery.com>
3070
3071 * cli/cli-decode.c (set_cmd_prefix): New.
3072 (lookup_cmd_for_prefixlist): New.
3073 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3074 of each cmd_list_element in *prefixlist.
3075 (add_setshow_cmd_full): set_cmd_prefix.
3076 (add_alias_cmd): Likewise.
3077 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3078 Declare 'auto_boolean_enums'.
3079 * cli/cli-setshow.c: Include "observer.h".
3080 (notify_command_param_changed_p): New.
3081 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3082 Remove 'static'.
3083 (do_setshow_command): Split it to ...
3084 (do_set_command, do_show_command): ... them. New.
3085 (do_set_command): Call observer_notify_command_param_changed if
3086 notify_command_param_changed_p returns true.
3087 (cmd_show_list): Caller update.
3088 * auto-load.c (set_auto_load_cmd): Likewise.
3089 * remote.c (show_remote_cmd): Likewise.
3090 * cli/cli-setshow.h: Update declarations.
3091 * top.c (execute_command): Call do_set_command and do_show_command.
3092
3093 * NEWS: Mention new MI notification.
3094 * mi/mi-interp.c: Declare mi_command_param_changed.
3095 (mi_interpreter_init): Attach mi_command_param_changed to
3096 observer command_param_changed.
3097 (mi_command_param_changed): New.
3098 Remove mi_suppress_breakpoint_notifications.
3099 Define global variable mi_suppress_notification.
3100 (mi_breakpoint_created): Update.
3101 (mi_breakpoint_deleted): Likewise.
3102 (mi_breakpoint_modified): Likewise.
3103 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3104 'gdb-set' and set mi_suppress_notification.
3105 * mi/mi-main.h: (mi_suppress_notification): New struct.
3106
3107 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3108 Jan Kratochvil <jan.kratochvil@redhat.com>
3109
3110 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3111
3112 2012-08-09 Yao Qi <yao@codesourcery.com>
3113
3114 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3115 (skiplist): Move it to skip.c.
3116 (init_cmd_lists): Remove code setting enablebreaklist and
3117 skiplist to NULL.
3118 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3119 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3120 skiplist.
3121 * gdbcmd.h: Likewise.
3122 * skip.c (_initialize_step_skip): Move 'skiplist' from
3123 cli/cli-cmds.c.
3124
3125 2012-08-09 Yao Qi <yao@codesourcery.com>
3126
3127 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3128 * gnu-nat.c, symfile.c: Likewise.
3129
3130 2012-08-08 Aaron Gamble <agamble@google.com>
3131
3132 * utils.c (prompt_for_continue_wait_time): New static global.
3133 (make_command_stats_cleanup): Initialize it.
3134 (report_command_stats): Subtract time waiting for user.
3135 (prompt_for_continue): Track time waiting for user.
3136 (defaulted_query): Track time waiting for user.
3137
3138 2012-08-08 Doug Evans <dje@google.com>
3139
3140 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3141 UNOP_MEMVAL_TYPE.
3142 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3143 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3144 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3145 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3146 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3147 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3148 elt.
3149 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3150 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3151 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3152 (dump_prefix_expression): Handle OP_TYPE.
3153
3154 2012-08-08 Keith Seitz <keiths@redhat.com>
3155
3156 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3157 addr_start.
3158
3159 2012-08-08 Doug Evans <dje@google.com>
3160
3161 * linux-thread-db.c: #include "gdb_vecs.h".
3162 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3163 updated.
3164 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3165 (thread_db_load_search): Use a vector to iterate over path elements.
3166 Handle text appearing after "$pdir".
3167
3168 * gdb_string.h: Moved to ...
3169 * common/gdb_string.h: ... here.
3170 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3171 gdb_string.h and gdb_assert.h.
3172
3173 2012-08-08 Yao Qi <yao@codesourcery.com>
3174
3175 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3176 (tic6x_value_to_register): Likewise.
3177 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3178 and set_gdbarch_value_to_register.
3179
3180 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3181 Jean-Marc Saffroy <saffroy@gmail.com>
3182
3183 PR 11804
3184 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3185 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3186 * gcore.c (gcore_create_callback): New function comment. Add modified
3187 parameter. Only write modified regions. Set SEC_READONLY exactly
3188 according to MODIFIED.
3189 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3190 the passed modified value to FUNC.
3191 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3192 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3193 first. New variables modified and has_anonymous. Parse the lines of
3194 smaps file. Add the passed MODIFIED value to FUNC.
3195 * procfs.c (find_memory_regions_callback): Add the passed modified
3196 value.
3197
3198 2012-08-06 Tom Tromey <tromey@redhat.com>
3199
3200 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3201 (dwarf2_frame_cache): Use it.
3202 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3203 cache initialization constraint.
3204
3205 2012-08-06 Tom Tromey <tromey@redhat.com>
3206
3207 PR python/14386:
3208 * varobj.c (update_dynamic_varobj_children): Don't call
3209 PyIter_Check.
3210
3211 2012-08-06 Tom Tromey <tromey@redhat.com>
3212
3213 PR cli/14392:
3214 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3215
3216 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3217
3218 * NEWS: New entry for 'cd' default parameters.
3219 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3220
3221 2012-08-03 Tom Tromey <tromey@redhat.com>
3222
3223 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3224 return.
3225
3226 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3227
3228 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3229 to attempting lseek/write.
3230 (inf_child_fileio_pread): Likewise for pread.
3231
3232 2012-08-02 Yao Qi <yao@codesourcery.com>
3233
3234 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3235 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3236 add_setshow_zinteger_cmd.
3237 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3238 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3239 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3240 instead of add_setshow_zinteger_cmd.
3241 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3242 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3243 instead of add_setshow_zinteger_cmd.
3244 * frame.c (frame_debug): Add 'unsigned'.
3245 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3246 add_setshow_zinteger_cmd.
3247 * frame.h: Update the declaration of 'frame_debug'.
3248 * gdbtypes.c (overload_debug): Add 'unsigned'.
3249 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3250 add_setshow_zinteger_cmd.
3251 * inferior.h: Update declaration of 'debug_infrun'.
3252 * infrun.c (debug_infrun): Add 'unsigned'.
3253 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3254 add_setshow_zinteger_cmd.
3255 * jit.c (jit_debug): Add 'unsigned'.
3256 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3257 add_setshow_zinteger_cmd.
3258 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3259 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3260 instead of add_setshow_zinteger_cmd.
3261 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3262 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3263 add_setshow_zinteger_cmd.
3264 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3265 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3266 instead of add_setshow_zinteger_cmd.
3267 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3268 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3269 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3270 intead of add_setshow_zinteger_cmd.
3271 * mips-tdep.c (mips_debug): Add 'unsigned'.
3272 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3273 instead of add_setshow_zinteger_cmd.
3274 * monitor.c (monitor_debug): Add 'unsigned'.
3275 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3276 add_setshow_zinteger_cmd.
3277 * observer.c (observer_debug): Add 'unsigned'.
3278 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3279 add_setshow_zinteger_cmd.
3280 * parse.c (expressiondebug): Add 'unsigned'.
3281 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3282 add_setshow_zinteger_cmd.
3283 * record.c (record_debug): Add 'unsigned'.
3284 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3285 add_setshow_zinteger_cmd.
3286 * record.h: Update the declaration of 'record_debug'.
3287 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3288 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3289 add_setshow_zinteger_cmd.
3290 * serial.c (global_serial_debug_p): Add 'unsigned'.
3291 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3292 add_setshow_zinteger_cmd.
3293 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3294 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3295 add_setshow_zinteger_cmd.
3296 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3297 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3298 add_setshow_zinteger_cmd.
3299 * target.c (targetdebug): Add 'unsigned'.
3300 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3301 add_setshow_zinteger_cmd.
3302 * valops.c (overload_debug): Add 'unsigned'.
3303 * varobj.c (varobjdebug): Add 'unsigned'.
3304 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3305 add_setshow_zinteger_cmd.
3306 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3307 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3308 instead of add_setshow_zinteger_cmd.
3309
3310 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3311 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3312 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3313 instead of add_setshow_zinteger_cmd.
3314 * gdbarch.c, gdbarch.h: Re-generated.
3315
3316 2012-08-02 Yao Qi <yao@codesourcery.com>
3317
3318 * nto-tdep.c: Don't include cli/cli-decode.h and
3319 cli/cli-cmds.h.
3320 (_initialize_nto_tdep): Remove.
3321 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3322 Remove field.
3323 Remove macro nto_internal_debugging.
3324
3325 2012-08-01 Richard Henderson <rth@redhat.com>
3326
3327 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3328 (mep-*-*) [gdb_target_obs]: Likewise.
3329
3330 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3331
3332 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3333 linux_get_siginfo_type.
3334
3335 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3336
3337 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3338 AT_ENTRY_POINT.
3339 (call_function_by_hand) <ON_STACK>: Call write_memory with
3340 gdbarch_breakpoint_from_pc, if possible.
3341 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3342 here.
3343
3344 2012-07-31 Yao Qi <yao@codesourcery.com>
3345
3346 * tracepoint.c: Add 'static' for some variables.
3347
3348 2012-07-31 Yao Qi <yao@codesourcery.com>
3349
3350 * go32-nat.c: Declare _initialize_go32_nat.
3351 * ser-go32.c: Declare _initialize_ser_dos.
3352 * top.c (do_chdir_cleanup): Add 'static'.
3353
3354 2012-07-30 Keith Seitz <keiths@redhat.com>
3355
3356 * linespec.c (linespec_lex_number): A number followed
3357 by quotes is a valid number, too.
3358
3359 2012-07-30 Tom Tromey <tromey@redhat.com>
3360
3361 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3362
3363 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3364
3365 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3366 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3367
3368 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3369
3370 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3371 invalid or reevaluated to prevent prevent references to possibly
3372 delete'd type objects being left in the varobj.
3373
3374 2012-07-27 Tom Tromey <tromey@redhat.com>
3375 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 * copying.awk: Print buffer-read-only and vi ro markers.
3378 * copying.c: Rebuild.
3379 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3380 * gdbarch.c, gdbarch.h: Rebuild.
3381 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3382 buffer-read-only and vi ro markers.
3383 * features/arm-with-iwmmxt.c: Rebuild.
3384 * features/arm-with-m-fpa-layout.c: Rebuild.
3385 * features/arm-with-m-vfp-d16.c: Rebuild.
3386 * features/arm-with-m.c: Rebuild.
3387 * features/arm-with-neon.c: Rebuild.
3388 * features/arm-with-vfpv2.c: Rebuild.
3389 * features/arm-with-vfpv3.c: Rebuild.
3390 * features/i386/amd64-avx-linux.c: Rebuild.
3391 * features/i386/amd64-avx.c: Rebuild.
3392 * features/i386/amd64-linux.c: Rebuild.
3393 * features/i386/amd64.c: Rebuild.
3394 * features/i386/i386-avx-linux.c: Rebuild.
3395 * features/i386/i386-avx.c: Rebuild.
3396 * features/i386/i386-linux.c: Rebuild.
3397 * features/i386/i386-mmx-linux.c: Rebuild.
3398 * features/i386/i386-mmx.c: Rebuild.
3399 * features/i386/i386.c: Rebuild.
3400 * features/i386/x32-avx-linux.c: Rebuild.
3401 * features/i386/x32-avx.c: Rebuild.
3402 * features/i386/x32-linux.c: Rebuild.
3403 * features/i386/x32.c: Rebuild.
3404 * features/mips-dsp-linux.c: Rebuild.
3405 * features/mips-linux.c: Rebuild.
3406 * features/mips64-dsp-linux.c: Rebuild.
3407 * features/mips64-linux.c: Rebuild.
3408 * features/rs6000/powerpc-32.c: Rebuild.
3409 * features/rs6000/powerpc-32l.c: Rebuild.
3410 * features/rs6000/powerpc-403.c: Rebuild.
3411 * features/rs6000/powerpc-403gc.c: Rebuild.
3412 * features/rs6000/powerpc-405.c: Rebuild.
3413 * features/rs6000/powerpc-505.c: Rebuild.
3414 * features/rs6000/powerpc-601.c: Rebuild.
3415 * features/rs6000/powerpc-602.c: Rebuild.
3416 * features/rs6000/powerpc-603.c: Rebuild.
3417 * features/rs6000/powerpc-604.c: Rebuild.
3418 * features/rs6000/powerpc-64.c: Rebuild.
3419 * features/rs6000/powerpc-64l.c: Rebuild.
3420 * features/rs6000/powerpc-7400.c: Rebuild.
3421 * features/rs6000/powerpc-750.c: Rebuild.
3422 * features/rs6000/powerpc-860.c: Rebuild.
3423 * features/rs6000/powerpc-altivec32.c: Rebuild.
3424 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3425 * features/rs6000/powerpc-altivec64.c: Rebuild.
3426 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3427 * features/rs6000/powerpc-cell32l.c: Rebuild.
3428 * features/rs6000/powerpc-cell64l.c: Rebuild.
3429 * features/rs6000/powerpc-e500.c: Rebuild.
3430 * features/rs6000/powerpc-e500l.c: Rebuild.
3431 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3432 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3433 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3434 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3435 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3436 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3437 * features/rs6000/powerpc-vsx32.c: Rebuild.
3438 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3439 * features/rs6000/powerpc-vsx64.c: Rebuild.
3440 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3441 * features/rs6000/rs6000.c: Rebuild.
3442 * features/s390-linux32.c: Rebuild.
3443 * features/s390-linux32v1.c: Rebuild.
3444 * features/s390-linux32v2.c: Rebuild.
3445 * features/s390-linux64.c: Rebuild.
3446 * features/s390-linux64v1.c: Rebuild.
3447 * features/s390-linux64v2.c: Rebuild.
3448 * features/s390x-linux64.c: Rebuild.
3449 * features/s390x-linux64v1.c: Rebuild.
3450 * features/s390x-linux64v2.c: Rebuild.
3451 * features/tic6x-c62x-linux.c: Rebuild.
3452 * features/tic6x-c62x.c: Rebuild.
3453 * features/tic6x-c64x-linux.c: Rebuild.
3454 * features/tic6x-c64x.c: Rebuild.
3455 * features/tic6x-c64xp-linux.c: Rebuild.
3456 * features/tic6x-c64xp.c: Rebuild.
3457
3458 2012-07-27 Tom Tromey <tromey@redhat.com>
3459
3460 * c-exp.y (classify_name): Avoid assignment in condition.
3461
3462 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3463
3464 * amd64-windows-tdep.c: Include "frame.h".
3465 (amd64_windows_skip_trampoline_code): New function.
3466 (amd64_windows_init_abi): Add trampoline registration.
3467
3468 2012-07-27 Yao Qi <yao@codesourcery.com>
3469
3470 * tracepoint.c (cur_traceframe_number): Remove.
3471 (set_tfile_traceframe): Remove.
3472 (tfile_trace_find, tfile_fetch_registers): Update callers.
3473 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3474 (tfile_open, tfile_trace_find): Likewise.
3475
3476 2012-07-27 Yao Qi <yao@codesourcery.com>
3477
3478 * thread.c (switch_to_thread): Don't call registers_changed.
3479
3480 2012-07-26 Tom Tromey <tromey@redhat.com>
3481
3482 * Makefile.in (SFILES): Remove objc-exp.y.
3483 (YYFILES): Remove objc-exp.c.
3484 (YYOBJ): Remove objc-exp.o.
3485 (local-maintainer-clean): Don't mention objc-exp.c.
3486 * c-exp.y: Include objc-lang.h.
3487 (%union) <class>: New field.
3488 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3489 (exp): Clone subscript production for OBJC_LBRAC. Add various
3490 Objective C productions.
3491 (msglist, msgarglist, msgarg): New productions.
3492 (array_mod, func_mod, operator): Clone productions for
3493 OBJC_LBRAC.
3494 (parse_string_or_char): Handle '@' strings.
3495 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3496 (classify_name): Check la_name_of_this. Recognize ObjC class
3497 names.
3498 * objc-exp.y: Remove.
3499 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3500 * objc-lang.h (objc_parse, objc_error): Don't declare.
3501
3502 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3503
3504 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3505
3506 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3507
3508 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3509 and decrement.
3510
3511 2012-07-26 Tom Tromey <tromey@redhat.com>
3512
3513 * copying.c: Rebuild.
3514 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3515 'no_class'.
3516
3517 2012-07-26 Tom Tromey <tromey@redhat.com>
3518
3519 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3520 immediate_quit.
3521 (print_objfile_statistics): Likewise.
3522 (maintenance_print_symbols): Likewise.
3523 (maintenance_print_msymbols): Likewise.
3524 (maintenance_print_objfiles): Likewise.
3525 * psymtab.c (print_partial_symbols): Call QUIT.
3526 (maintenance_print_psymbols): Likewise. Don't modify
3527 immediate_quit.
3528 * copying.c (show_copying_command): Don't modify immediate_quit.
3529 (show_warranty_command): Likewise.
3530 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3531
3532 2012-07-26 Keith Seitz <keiths@redhat.com>
3533
3534 * linespec.c (linespec_lexer_lex_number): The input
3535 is also a valid number if the next character is a comma
3536 or colon.
3537
3538 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3539
3540 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3541 configure options.
3542
3543 2012-07-26 Tristan Gingold <gingold@adacore.com>
3544
3545 * machoread.c: Include gdb_bfd.h.
3546
3547 2012-07-26 Tristan Gingold <gingold@adacore.com>
3548
3549 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3550 offset.
3551
3552 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3553
3554 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3555 SIZE to size_t.
3556 (dwarf2_evaluate_loc_desc): Likewise.
3557 (dwarf2_loc_desc_needs_frame): Likewise.
3558 (locexpr_describe_location_1): Likewise.
3559 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3560 size_t.
3561 (struct dwarf2_loclist_baton): Likewise.
3562 * dwarf2read.c (struct dwarf_block): Likewise.
3563 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3564 (decode_locdesc): Expand SIZE and I to size_t.
3565
3566 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3567
3568 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3569
3570 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3571
3572 * doublest.c (convert_doublest_to_floatformat): If the exponent
3573 is too small, treat the value as zero. If the exponent is too
3574 large, treat the value as infinity.
3575
3576 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3577
3578 * configure.ac: Add --enable-lmcheck configure option.
3579 * configure: Regenerate.
3580
3581 2012-07-25 Tom Tromey <tromey@redhat.com>
3582
3583 * NEWS: Mention maint info bfds.
3584 * gdb_bfd.c (all_bfds): New global.
3585 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3586 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3587 New functions.
3588
3589 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3590
3591 * configure.tgt: Add v850*-*-rtems*.
3592
3593 2012-07-25 Tom Tromey <tromey@redhat.com>
3594
3595 * macrotab.c (macro_bcache_str): Remove cast.
3596
3597 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3598
3599 * linespec.c (linespec_lexer_lex_number): Update comments,
3600 change the return and add check to make sure the input is
3601 the decimal numbers.
3602 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3603 false, call linespec_lexer_lex_string.
3604
3605 2012-07-24 Tom Tromey <tromey@redhat.com>
3606
3607 * symfile.c (symbol_file_add): Don't open BFD twice.
3608
3609 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3610
3611 * breakpoint.c (create_breakpoint): Store condition for pending
3612 breakpoints.
3613
3614 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3615
3616 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3617 (m68k_return_value): Handle complex types like structures.
3618 (m68k_svr4_return_value): Likewise.
3619
3620 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3621
3622 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3623 parameters to bfd_get_section_name.
3624
3625 2012-07-24 Yao Qi <yao@codesourcery.com>
3626
3627 * cli/cli-setshow.c: Handle case 'var_uinteger'
3628 and 'var_zuninteger' together. Handle case 'var_integer' and
3629 'var_zinteger' together.
3630
3631 2012-07-23 Keith Seitz <keiths@redhat.com>
3632
3633 * linespec.c (convert_linespec_to_sal): Don't add
3634 any symbols to the result vector if symbol_to_sal
3635 returns zero.
3636
3637 2012-07-23 Keith Seitz <keiths@redhat.com>
3638
3639 * linespec.c (decode_objc): Record the function name
3640 in the linespec.
3641
3642 2012-07-23 Tom Tromey <tromey@redhat.com>
3643
3644 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3645 counting.
3646 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3647 (map_vmap): Acquire a reference to the BFD.
3648
3649 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3650
3651 * p-valprint.c (pascal_object_print_value): Replace potentially
3652 unsafe alloca with xmalloc/xfree.
3653 * valops.c (search_struct_method): Likewise.
3654
3655 2012-07-23 Tom Tromey <tromey@redhat.com>
3656
3657 * solib-svr4.c (enable_break): Update.
3658 * bfd-target.h (target_bfd_reopen): Update documentation.
3659
3660 2012-07-23 Tom Tromey <tromey@redhat.com>
3661
3662 * symfile.c (separate_debug_file_exists): Update.
3663 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3664 (reread_symbols): Update.
3665 * elfread.c (build_id_verify): Update.
3666 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3667 bfd_open_maybe_remote.
3668
3669 2012-07-23 Tom Tromey <tromey@redhat.com>
3670
3671 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3672
3673 2012-07-23 Tom Tromey <tromey@redhat.com>
3674
3675 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3676 and 'abfd'.
3677 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3678 and 'abfd'.
3679 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3680 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3681 'abfd'.
3682 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3683 * objfiles.c (allocate_objfile): Acquire a new reference.
3684 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3685 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3686 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3687 a cleanup for 'nbfd'.
3688 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3689 for 'nbfd'.
3690 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3691 make a cleanup for 'abfd'.
3692 (symbol_file_add): Make a BFD cleanup.
3693
3694 2012-07-23 Tom Tromey <tromey@redhat.com>
3695
3696 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3697 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3698 * corelow.c (core_open): Use gdb_bfd_fopen.
3699 * dsrec.c (load_srec): Use gdb_bfd_openr.
3700 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3701 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3702 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3703 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3704 (gdb_bfd_fdopenr): New functions.
3705 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3706 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3707 (gdb_bfd_fdopenr): Declare.
3708 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3709 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3710 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3711 gdb_bfd_openr_next_archived_file.
3712 (macho_check_dsym): Use gdb_bfd_openr.
3713 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3714 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3715 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3716 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3717 gdb_bfd_openr.
3718 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3719 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3720 gdb_bfd_openr_next_archived_file.
3721 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3722 Use gdb_bfd_openr.
3723 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3724 gdb_bfd_openr.
3725 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3726 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3727 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3728 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3729 (symfile_bfd_open): Use gdb_bfd_fopen.
3730 (generic_load): Use gdb_bfd_openr.
3731 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3732
3733 2012-07-23 Tom Tromey <tromey@redhat.com>
3734
3735 * bfd-target.c (target_bfd_reopen): Update.
3736 * cli/cli-dump.c (bfd_openr_with_cleanup)
3737 (bfd_openw_with_cleanup): Update.
3738 * corelow.c (core_open): Update.
3739 * dsrec.c (load_srec): Update.
3740 * exec.c (exec_file_attach): Update.
3741 * gcore.c (create_gcore_bfd): Update.
3742 * gdb_bfd.c (gdb_bfd_ref): Return void.
3743 (gdb_bfd_open): Update.
3744 * gdb_bfd.h (gdb_bfd_ref): Return void.
3745 Update comments.
3746 * jit.c (jit_bfd_try_read_symtab): Update.
3747 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3748 * machoread.c (macho_symfile_read_all_oso): Update.
3749 (macho_check_dsym): Update.
3750 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3751 * remote-m32r-sdi.c (m32r_load): Update.
3752 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3753 * rs6000-nat.c (add_vmap): Update.
3754 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3755 Update.
3756 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3757 * solib-spu.c (spu_bfd_open): Update.
3758 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3759 * spu-linux-nat.c (spu_bfd_open): Update.
3760 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3761 (generic_load): Update.
3762 * windows-nat.c (windows_make_so): Update.
3763
3764 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3765
3766 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3767
3768 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3769
3770 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3771 SIGTRAMP_FRAME unwinding.
3772
3773 2012-07-20 Doug Evans <dje@google.com>
3774
3775 * NEWS: Document new options "set/show use-deprecated-index-sections",
3776 and delete reference to --use-deprecated-index-sections.
3777 * symfile.h (use_deprecated_index_sections): Delete.
3778 * dwarf2read.c (use_deprecated_index_sections): Make static.
3779 (read_index_from_section): Update wording of how to load
3780 deprecated index sections.
3781 (_initialize_dwarf2_read): New options
3782 "set/show use-deprecated-index-sections".
3783 * main.c (captured_main): Delete --use-deprecated-index-sections.
3784
3785 2012-07-20 Pedro Alves <palves@redhat.com>
3786
3787 PR threads/11692
3788 PR gdb/12203
3789
3790 * infrun.c (handle_inferior_event) <new thread>: Don't special
3791 case minus_one_ptid.
3792 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3793 * linux-thread-db.c (thread_get_info_callback): Don't return early
3794 if the thread is zombie.
3795 (thread_from_lwp): Change return type to void. Rewrite stale
3796 comment.
3797 (attach_thread): Don't return early if the thread is zombie,
3798 instead set its "dying" flag.
3799 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3800 (find_new_threads_callback): Don't return early if the thread is
3801 zombie.
3802
3803 2012-07-20 Pedro Alves <palves@redhat.com>
3804
3805 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3806 * target.c (target_wait): Likewise.
3807 (str_comma_list_concat_elem, do_option, target_options_to_string):
3808 New functions.
3809 * target.h (target_options_to_string): Declare.
3810
3811 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3812 Tom Tromey <tromey@redhat.com>
3813
3814 * dwarf2read.c (dwarf_decode_macros)
3815 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3816 DW_MACRO_GNU_transparent_include_alt>: New cases.
3817 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3818 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3819
3820 2012-07-20 Tom Tromey <tromey@redhat.com>
3821
3822 * dwarf2read.c (try_open_dwo_file): Don't call
3823 gdb_bfd_stash_filename.
3824
3825 2012-07-20 Pedro Alves <palves@redhat.com>
3826
3827 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3828 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3829 (i386_process_record): Tweak description comments.
3830
3831 2012-07-20 Pedro Alves <palves@redhat.com>
3832
3833 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3834 (i386_process_record): Use record_read_memory.
3835 * record.c (record_read_memory): New function.
3836 (record_arch_list_add_mem, record_exec_insn): Use
3837 record_read_memory.
3838 * record.h (record_read_memory): Declare.
3839
3840 2012-07-20 Yao Qi <yao@codesourcery.com>
3841
3842 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3843 NULL for xfree.
3844
3845 2012-07-19 Pedro Alves <palves@redhat.com>
3846
3847 * record.c (record_resume): Ask the target beneath to report all
3848 signals.
3849
3850 2012-07-19 Doug Evans <dje@google.com>
3851
3852 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3853 there's no section at address zero.
3854 (dwarf2_record_block_ranges): Ditto.
3855
3856 2012-07-19 Yao Qi <yao@codesourcery.com>
3857
3858 * command.h, remote.c: Fix a typo in comment.
3859
3860 2012-07-19 Tom Tromey <tromey@redhat.com>
3861
3862 PR exp/13206:
3863 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3864 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3865 OP_DECLTYPE>: New cases.
3866 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3867 (type_exp): Add new productions.
3868 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3869 and decltype.
3870 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3871 New case.
3872 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3873 OP_DECLTYPE>: New case.
3874 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3875 New case.
3876 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3877 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3878
3879 2012-07-19 Tom Tromey <tromey@redhat.com>
3880
3881 * c-exp.y (enum token_flags): New.
3882 (struct token) <cxx_only>: Remove.
3883 <flags>: New field.
3884 (tokentab3, tokentab2, ident_tokens): Update.
3885 (lex_one_token): Update. Handle FLAG_SHADOW.
3886
3887 2012-07-19 Tom Tromey <tromey@redhat.com>
3888
3889 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3890 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3891 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3892 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3893 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3894 type_exp production where appropriate.
3895 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3896 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3897 <UNOP_MEMVAL_TYPE>: New case.
3898 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3899 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3900 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3901 <UNOP_MEMVAL_TYPE>: New case.
3902 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3903 UNOP_REINTERPRET_CAST>: Update.
3904 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3905 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3906 UNOP_REINTERPRET_CAST>: Update.
3907 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3908 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3909 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3910 constants.
3911
3912 2012-07-19 Yao Qi <yao@codesourcery.com>
3913 Jan Kratochvil <jan.kratochvil@redhat.com>
3914
3915 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3916 and case 'var_optional_filename' together.
3917 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3918 instead of add_setshow_optional_filename_cmd for setshow command
3919 'args'. Set completer for 'set args'.
3920
3921 2012-07-18 Doug Evans <dje@google.com>
3922
3923 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3924 * common/gdb_vecs.c: New file, contents from utils.c.
3925 * common/host-defs.h: New file, contents from defs.h.
3926 * utils.h: New file, contents from defs.h.
3927 * defs.h: Move all declarations of objects defined in utils.c
3928 to utils.h (except QUIT() and related).
3929 #include "utils.h", "host-defs.h".
3930 * probe.h (probe_p): Move here from gdb_vecs.h.
3931 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3932 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3933 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3934 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3935 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3936 (COMMON_OBS): Add gdb_vecs.o.
3937 (gdb_vecs.o): New rule.
3938
3939 2012-07-18 Keith Seitz <keiths@redhat.com>
3940
3941 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3942 parameter. If non-zero, use SYMNAME as the canonical name
3943 for the SaL.
3944 Update all callers.
3945 (convert_linespec_to_sals): Use add_sal_to_sals for
3946 expressions, too.
3947 (decode_line_full): No need to "fill in missing canonical names"
3948 anymore. Simply make cleanups for the allocated names.
3949
3950 2012-07-18 Keith Seitz <keiths@redhat.com>
3951
3952 * linespec.c (struct linespec): Constify expression,
3953 source_filename, function_name, and label_name.
3954 (symbol_not_found_error): Make all parameters const.
3955 (linespec_parser_delete): No need to check for NULL
3956 when using xfree. Cast const char * to char * for xfree.
3957
3958 2012-07-18 Keith Seitz <keiths@redhat.com>
3959
3960 * breakpoint.c (invalid_thread_id_error): New function.
3961 (find_condition_and_thread): Use invalid_thread_id_error.
3962 (watch_command_1): Likewise.
3963
3964 2012-07-18 Tom Tromey <tromey@redhat.com>
3965
3966 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3967 * contrib/cc-with-tweaks.sh: New file.
3968
3969 2012-07-18 Tom Tromey <tromey@redhat.com>
3970
3971 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3972 (locate_dwz_sections): Recognize .gdb_index.
3973 (create_cus_from_index_list): New function.
3974 (create_cus_from_index): Use it. Handle .dwz data.
3975 (read_index_from_section): New function, extracted from
3976 dwarf2_read_index.
3977 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3978 if needed.
3979
3980 2012-07-18 Tom Tromey <tromey@redhat.com>
3981
3982 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3983 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3984 <is_dwz>: New field.
3985 (struct dwz_file): New.
3986 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3987 (locate_dwz_sections, dwarf2_get_dwz_file)
3988 (get_abbrev_section_for_cu): New functions.
3989 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3990 (read_and_check_type_unit_head): Add abbrev_section argument.
3991 (create_debug_types_hash_table): Update.
3992 (init_cutu_and_read_dies): Use proper abbrev section.
3993 (init_cutu_and_read_dies_no_follow): Likewise.
3994 (set_partial_user): Do nothing if PST==NULL.
3995 (read_comp_units_from_section): New function.
3996 (create_all_comp_units): Use it.
3997 (scan_partial_symbols, partial_die_parent_scope): Update.
3998 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3999 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4000 (find_partial_die): Add offset_in_dwz argument. Update.
4001 (guess_partial_die_structure_name, fixup_partial_die): Update.
4002 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4003 DW_FORM_GNU_strp_alt.
4004 (read_indirect_string_from_dwz): New function.
4005 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4006 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4007 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4008 (follow_die_offset): Add offset_in_dwz argument.
4009 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4010 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4011 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4012 Handle new macro forms.
4013 (dwarf_decode_macros): Update.
4014 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4015 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4016 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4017 (create_debug_types_hash_table): Use correct abbrev section.
4018 (get_debug_line_section): New function.
4019 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4020 (process_full_comp_unit): Pass 'required' argument to
4021 end_symtab_get_static_block.
4022 * buildsym.h (end_symtab_get_static_block): Update.
4023 * buildsym.c (end_symtab_get_static_block): Add 'required'
4024 argument.
4025 (end_symtab, end_expandable_symtab): Update.
4026
4027 2012-07-18 Tom Tromey <tromey@redhat.com>
4028
4029 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4030 (pagesize): Remove.
4031 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4032 (zlib_decompress_section): Remove.
4033 (dwarf2_read_section): Use gdb_bfd_map_section.
4034 (munmap_section_buffer): Remove.
4035 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4036 munmap_section_buffer.
4037 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4038 (struct gdb_bfd_section_data): New.
4039 (free_one_bfd_section): New function.
4040 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4041 (get_section_descriptor, zlib_decompress_section)
4042 (gdb_bfd_map_section): New functions.
4043 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4044
4045 2012-07-18 Tom Tromey <tromey@redhat.com>
4046
4047 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4048
4049 2012-07-18 Tom Tromey <tromey@redhat.com>
4050
4051 * gdb_bfd.c (struct gdb_bfd_data): New.
4052 (gdb_bfd_cache): New global.
4053 (struct gdb_bfd_cache_search): New.
4054 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4055 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4056 * gdb_bfd.h (gdb_bfd_open): Declare.
4057
4058 2012-07-18 Tom Tromey <tromey@redhat.com>
4059
4060 * utils.c (make_cleanup_bfd_unref): Rename from
4061 make_cleanup_bfd_close.
4062 * defs.h (make_cleanup_bfd_unref): Rename from
4063 make_cleanup_bfd_close.
4064 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4065 (bfd_openw_with_cleanup): Update.
4066 * corelow.c (core_open): Update.
4067 * dsrec.c (load_srec): Update.
4068 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4069 * remote-m32r-sdi.c (m32r_load): Update.
4070 * remote-mips.c (mips_load_srec): Update.
4071 (pmon_load_fast): Update.
4072 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4073 Update.
4074 (darwin_bfd_open): Update.
4075 * solib.c (solib_bfd_fopen): Update.
4076 * symfile-mem.c (symbol_file_add_from_memory): Update.
4077 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4078 (symfile_bfd_open): Update.
4079 (generic_load): Update.
4080
4081 2012-07-18 Tom Tromey <tromey@redhat.com>
4082
4083 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4084 (pmon_load_fast): Likewise.
4085 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4086 (m32r_upload_command): Likewise.
4087 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4088 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4089 Use make_cleanup_bfd_close.
4090
4091 2012-07-18 Tom Tromey <tromey@redhat.com>
4092
4093 * symfile.c (symfile_bfd_open): Don't copy name. Call
4094 gdb_bfd_stash_filename.
4095 (load_command): Open the new BFD before freeing the old.
4096 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4097 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4098 Call gdb_bfd_stash_filename.
4099 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4100 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4101 gdb_bfd_stash_filename.
4102 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4103 Free found_pathname.
4104 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4105 gdb_bfd_stash_filename.
4106 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4107 * machoread.c (macho_add_oso_symfile): Call
4108 gdb_bfd_stash_filename.
4109 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4110 gdb_bfd_stash_filename.
4111 (macho_check_dsym): Don't copy filename. Call
4112 gdb_bfd_stash_filename.
4113 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4114 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4115 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4116 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4117 * exec.c (exec_close): Don't free the BFD's filename.
4118 (exec_file_attach): Don't copy the filename. Call
4119 gdb_bfd_stash_filename.
4120 * corelow.c (core_close): Don't free the BFD's filename.
4121 (core_open): Call gdb_bfd_stash_filename.
4122 * corefile.c (reopen_exec_file): Remove #if 0 code.
4123 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4124 pathname.
4125 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4126
4127 2012-07-18 Tom Tromey <tromey@redhat.com>
4128
4129 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4130 gdb_bfd_unref.
4131 (free_dwo_file): Use gdb_bfd_unref.
4132 * cli/cli-dump.c: Include gdb_bfd.h.
4133 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4134 (bfd_openr_with_cleanup): Likewise.
4135 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4136 gdb_bfd_unref.
4137 * utils.c: Include gdb_bfd.h.
4138 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4139 * symfile.c: Include gdb_bfd.h.
4140 (separate_debug_file_exists): Use gdb_bfd_unref.
4141 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4142 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4143 (generic_load): Use gdb_bfd_ref.
4144 (reread_symbols): Use gdb_bfd_unref.
4145 * symfile-mem.c: Include gdb_bfd.h.
4146 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4147 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4148 * solib.c: Include gdb_bfd.h.
4149 (solib_bfd_fopen): Use gdb_bfd_ref.
4150 (solib_bfd_open): Use gdb_bfd_unref.
4151 (free_so_symbols): Use gdb_bfd_unref.
4152 (reload_shared_libraries_1): Use gdb_bfd_unref.
4153 * solib-spu.c: Include gdb_bfd.h.
4154 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4155 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4156 gdb_bfd_unref.
4157 * solib-frv.c: Include gdb_bfd.h.
4158 (enable_break2): Use gdb_bfd_unref.
4159 * solib-dsbt.c: Include gdb_bfd.h.
4160 (enable_break2): Use gdb_bfd_unref.
4161 * solib-darwin.c: Include gdb_bfd.h.
4162 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4163 gdb_bfd_unref.
4164 (darwin_bfd_open): Use gdb_bfd_unref.
4165 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4166 * remote-mips.c: Include gdb_bfd.h.
4167 (mips_load_srec): Use gdb_bfd_ref.
4168 (pmon_load_fast): Use gdb_bfd_ref.
4169 * remote-m32r-sdi.c: Include gdb_bfd.h.
4170 (m32r_load): Use gdb_bfd_ref.
4171 * record.c: Include gdb_bfd.h.
4172 (record_save_cleanups): Use gdb_bfd_unref.
4173 (cmd_record_save): Use gdb_bfd_unref.
4174 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4175 gdb_bfd_unref.
4176 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4177 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4178 * objfiles.c: Include gdb_bfd.h.
4179 (free_objfile): Use gdb_bfd_unref.
4180 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4181 gdb_bfd.c.
4182 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4183 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4184 (macho_check_dsym): Likewise.
4185 * m32r-rom.c: Include gdb_bfd.h.
4186 (m32r_load): Use gdb_bfd_ref.
4187 (m32r_upload_command): Use gdb_bfd_ref.
4188 * jit.c: Include gdb_bfd.h.
4189 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4190 * gdb_bfd.h: New file.
4191 * gdb_bfd.c: New file.
4192 * gcore.c: Include gdb_bfd.h.
4193 (create_gcore_bfd): Use gdb_bfd_ref.
4194 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4195 (gcore_command): Use gdb_bfd_unref.
4196 * exec.c: Include gdb_bfd.h.
4197 (exec_close): Use gdb_bfd_unref.
4198 (exec_close_1): Use gdb_bfd_unref.
4199 (exec_file_attach): Use gdb_bfd_ref.
4200 * elfread.c: Include gdb_bfd.h.
4201 (build_id_verify): Use gdb_bfd_unref.
4202 * dsrec.c: Include gdb_bfd.h.
4203 (load_srec): Use gdb_bfd_ref.
4204 * corelow.c: Include gdb_bfd.h.
4205 (core_close): Use gdb_bfd_unref.
4206 (core_open): Use gdb_bfd_ref.
4207 * bfd-target.c: Include gdb_bfd.h.
4208 (target_bfd_xclose): Use gdb_bfd_unref.
4209 (target_bfd_reopen): Use gdb_bfd_ref.
4210 * Makefile.in (SFILES): Add gdb_bfd.c.
4211 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4212 (COMMON_OBS): Add gdb_bfd.o.
4213
4214 2012-07-18 Keith Seitz <keiths@redhat.com>
4215
4216 * breakpoint.c (find_condition_and_thread): Initialize
4217 TASK and REST.
4218 (create_breakpiont): find_condition_and_thread will now
4219 initialize COND_STRING, THREAD, and REST (and TASK).
4220 (addr_string_to_sals): Likewise.
4221
4222 2012-07-18 Pedro Alves <palves@redhat.com>
4223
4224 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4225 Pull the single step breakpoints out of the target.
4226
4227 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4228
4229 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4230 * stap-probe.c (compile_probe_arg): Likewise.
4231
4232 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4233
4234 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4235 (elf_compile_to_ax): Likewise.
4236 * infrun.c (insert_exception_resume_from_probe): Likewise.
4237 (check_exception_resume): Remove `objfile' variable.
4238 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4239 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4240 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4241 (compare_entries): Rename to...
4242 (compare_probes): ...this. Adjust function to work with
4243 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4244 respectively.
4245 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4246 `VEC (probe_p) *'.
4247 (print_ui_out_info): Adjust argument to be `struct probe *'.
4248 (info_probes_for_ops): Adjust internal computations to use
4249 `VEC (probe_p) *'.
4250 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4251 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4252 gen_info_probes_table_values>: Remove `objfile' argument.
4253 (struct probe) <objfile>: New field.
4254 (find_probe_by_pc): Remove `objfile' argument.
4255 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4256 (stap_get_probe_argument_count): Likewise.
4257 (stap_get_arg): Likewise.
4258 (stap_evaluate_probe_argument): Likewise.
4259 (stap_compile_to_ax): Likewise.
4260 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4261 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4262 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4263 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4264 sym_compile_to_ax>: Likewise.
4265
4266 2012-07-18 Terry Guo <terry.guo@arm.com>
4267
4268 PR 14329
4269 * defs.h (GDB_MI_MSG_WIDTH): New.
4270 * ser_base (ser_base_read_error_fd): New function.
4271 (do_ser_base_readchar): Poll error file descriptor as well as
4272 standard output.
4273 (generic_readchar): Refactor error handling.
4274
4275 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4276
4277 * NEWS: Create a new section for the next release branch.
4278 Rename the section of the current branch, now that it has
4279 been cut.
4280
4281 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4282
4283 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4284 * version.in: Bump version to 7.5.50.20120718-cvs.
4285
4286 2012-07-17 Keith Seitz <keiths@redhat.com>
4287
4288 * linespec.c (linespec_parse_line_offset): Make parameter
4289 const.
4290
4291 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4292
4293 PR 11914
4294 * f-valprint.c (info_common_command): New variable frame_id.
4295 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4296 * printcmd.c (print_variable_and_value): Extend function comment.
4297 Add comment for invalidated FRAME.
4298 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4299 FI form FRAME_ID after each print_frame_local_vars.
4300 (struct print_variable_and_value_data): Change frame to frame_id.
4301 (do_print_variable_and_value): New variable frame, initialize it from
4302 p->frame_id. Add comment for invalidated FRAME.
4303 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4304 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4305 for invalidated FRAME.
4306
4307 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4308 Pedro Alves <palves@redhat.com>
4309
4310 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4311 loop.
4312
4313 2012-07-16 Tom Tromey <tromey@redhat.com>
4314
4315 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4316
4317 2012-07-15 Doug Evans <dje@google.com>
4318
4319 * dwarf2read.c (stmt_list_hash): New struct.
4320 (type_unit_group): Embed "per_cu" member, remove pointer.
4321 New union member "t", move member "tus" into it, all uses updated.
4322 New member "hash", replaces member "line_offset, all uses updated.
4323 (quick_file_names): Replace member "offset" with "hash", all uses
4324 updated.
4325 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4326 (hash_file_name_entry, eq_file_name_entry): Call them.
4327 (hash_type_unit_group, eq_type_unit_group): Ditto.
4328 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4329 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4330 (dw2_get_file_names): Update.
4331 (create_type_unit_group): Replace "per_cu" arg with "cu".
4332 All callers updated. Fix "quick" (.gdb_index) handling.
4333 (get_type_unit_group): Replace "per_cu" arg with "cu".
4334 All callers updated.
4335 (build_type_unit_groups): Don't reset tu_stats.
4336
4337 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4338 "tab_cur_size". Change member "tab" to be a htab_t.
4339 (create_filename_seen_cache): Update.
4340 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4341 (filename_seen): Update.
4342
4343 2012-07-13 Doug Evans <dje@google.com>
4344
4345 * symtab.c (filename_seen): Update comment.
4346
4347 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4348 Doug Evans <dje@google.com>
4349
4350 * buildsym.c (end_symtab_1): Split it to ...
4351 (end_symtab_get_static_block): ... this ...
4352 (end_symtab_from_static_block): ... and this function.
4353 (end_symtab, end_expandable_symtab): Call them.
4354 * buildsym.h (end_symtab_get_static_block)
4355 (end_symtab_from_static_block): New declarations.
4356 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4357 Set its valid CU ranges.
4358
4359 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4360
4361 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4362 DW_OP_GNU_parameter_ref.
4363
4364 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4365
4366 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4367 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4368
4369 2012-07-13 Doug Evans <dje@google.com>
4370
4371 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4372 (filename_seen_cache): New struct.
4373 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4374 (create_filename_seen_cache): New function.
4375 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4376 (filename_seen): Delete arg "first". New arg "cache". All callers
4377 updated.
4378 (output_source_filename_data): New struct.
4379 (output_source_filename): Delete arg "first". New arg "data".
4380 All callers updated.
4381 (sources_info): Delete local "first". New locals "data", "cleanups".
4382 Rewrite to use filename_seen_cache.
4383 (add_partial_filename_data): Delete member "first". New member
4384 "filename_seen_cache". All uses updated.
4385 (make_source_files_completion_list): Rewrite to use
4386 filename_seen_cache.
4387
4388 2012-07-12 Doug Evans <dje@google.com>
4389
4390 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4391
4392 2012-07-10 Doug Evans <dje@google.com>
4393
4394 PR gdb/13498
4395 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4396 all_type_unit_groups, type_unit_groups, tu_stats.
4397 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4398 All uses updated. Add type_unit_group to union "s".
4399 (type_unit_group): New struct.
4400 (IS_TYPE_UNIT_GROUP): New macro.
4401 (abbrev_table): Delete unused member "section".
4402 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4403 (dw2_get_cu): Assert not used with type_unit_group.
4404 (dw2_get_primary_cu): New function.
4405 (dw2_build_type_unit_groups_reader): New function.
4406 (dw2_build_type_unit_groups): New function.
4407 (dw2_get_file_names): Assert not called on type units.
4408 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4409 Redo loop to iterate over type unit groups instead of type units.
4410 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4411 (read_abbrev_offset): New function.
4412 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4413 updated.
4414 (create_partial_symtab): New function.
4415 (process_psymtab_comp_unit_reader): Assert not used with type units.
4416 Call create_partial_symtab.
4417 (process_psymtab_type_unit): Delete.
4418 (hash_type_unit_group, eq_type_unit_group): New functions.
4419 (allocate_type_unit_groups_table): New function.
4420 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4421 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4422 (create_type_unit_group, get_type_unit_group): New functions.
4423 (tu_abbrev_offset): New struct.
4424 (sort_tu_by_abbrev_offset): New function.
4425 (add_type_unit_group_to_table): New function.
4426 (build_type_unit_groups): New function.
4427 (build_type_psymtabs_reader): New function.
4428 (build_type_psymtab_dependencies): New function.
4429 (build_type_psymtabs): Rewrite.
4430 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4431 is seen in a type unit.
4432 (process_queue): Move symtab expansion debugging printfs here.
4433 Call process_full_type_unit for type units.
4434 (compute_symtab_includes): Assert not called for type units.
4435 (process_cu_includes): Don't call compute_symtab_includes for
4436 type units.
4437 (process_full_type_unit): New function.
4438 (process_imported_unit_die): Flag an error if called for type units.
4439 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4440 updated. Assert not called for type units.
4441 (read_file_scope): Call dwarf2_start_symtab.
4442 (setup_type_unit_groups): New function.
4443 (read_type_unit_scope): Rewrite.
4444 (abbrev_table_read_table): Initialize abbrev_table->offset.
4445 (abbrev_table_free_cleanup): New function.
4446 (dwarf2_start_symtab): New function.
4447 (load_full_type_unit): Assert not called for type unit groups.
4448 * buildsym.c (finish_block_internal): New arg "expandable".
4449 All callers updated.
4450 (start_symtab): Move most contents to ...
4451 (restart_symtab): ... here. New function.
4452 (reset_symtab_globals): New function.
4453 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4454 Call reset_symtab_globals.
4455 (end_symtab, end_expandable_symtab): New functions.
4456 (set_missing_symtab, augment_type_symtab): New functions.
4457 * buildsym.h (end_expandable_symtab): Declare.
4458 (augment_type_symtab, restart_symtab): Declare.
4459 * psympriv.h (struct partial_symtab): New member "anonymous".
4460 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4461 anonymous psymtabs.
4462 (read_psymtabs_with_filename): Ditto.
4463 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4464 (expand_symtabs_matching_via_partial): Ditto.
4465 (dump_psymtab): Update.
4466 * dictionary.c (dict_add_pending): New function.
4467 * dictionary.h (dict_add_pending): Declare.
4468
4469 2012-07-09 Doug Evans <dje@google.com>
4470
4471 * buildsym.c (start_subfile): Remove unnecessary check for
4472 name == NULL.
4473
4474 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4475
4476 * dwarf2read.c (load_full_type_unit): Simplify.
4477
4478 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4479 to struct signatured_type **. All uses updated.
4480
4481 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4482 All callers updated.
4483
4484 2012-07-09 Tom Tromey <tromey@redhat.com>
4485
4486 * c-exp.y (check_parameter_typelist): New function.
4487 (parameter_typelist): Call it.
4488 * eval.c (make_params): Handle '(void)' case.
4489 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4490 '(void)' case.
4491
4492 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4493
4494 * common/linux-ptrace.c: Include gdb_assert.h.
4495 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4496 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4497 stdint.h.
4498 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4499 functions.
4500 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4501 * linux-nat.c (linux_child_post_attach)
4502 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4503
4504 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4505
4506 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4507 nptl <2.7 bug workaround for core files.
4508
4509 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4510
4511 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4512 clearing.
4513 (save_siginfo): Remove.
4514 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4515 call.
4516 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4517 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4518 * linux-nat.h (struct lwp_info): Remove field siginfo.
4519
4520 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4521
4522 Code cleanup for the next patch.
4523 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4524 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4525 call for it.
4526 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4527 (ia64_linux_stopped_data_address):
4528 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4529 the return value.
4530 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4531 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4532 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4533 call for it.
4534
4535 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4536
4537 PR 14321
4538 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4539 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4540
4541 2012-07-06 Tom Tromey <tromey@redhat.com>
4542
4543 * c-exp.y (DOTDOTDOT): New token.
4544 (func_mod, exp): Use parameter_typelist.
4545 (parameter_typelist): New production.
4546 (tokentab3): Add "..." token.
4547 * eval.c (make_params): Handle varargs.
4548 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4549 varargs.
4550
4551 2012-07-06 Tom Tromey <tromey@redhat.com>
4552
4553 PR exp/9608:
4554 * c-exp.y (%union) <tvec>: Change type.
4555 (func_mod): Now uses <tvec> type.
4556 (exp): Update for tvec change.
4557 (direct_abs_decl): Push the typelist.
4558 (func_mod): Return a typelist.
4559 (nonempty_typelist): Update for tvec change.
4560 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4561 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4562 * parse.c (pop_type_list): New function.
4563 (push_typelist): New function.
4564 (follow_types): Handle tp_function_with_arguments.
4565 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4566 (enum type_pieces) <tp_function_with_arguments>: New constant.
4567 (union type_stack_elt) <typelist_val>: New field.
4568 (push_typelist): Declare.
4569
4570 2012-07-06 Tom Tromey <tromey@redhat.com>
4571
4572 * c-exp.y (%union) <type_stack>: New field.
4573 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4574 (ptr_operator_ts): New production.
4575 (ptype): Update.
4576 * parse.c (type_stack_reserve): New function.
4577 (check_type_stack_depth): Use it.
4578 (pop_type_stack, append_type_stack, push_type_stack)
4579 (get_type_stack, type_stack_cleanup): New functions.
4580 (follow_types): Handle tp_type_stack.
4581 (_initialize_parse): Simplify initialization.
4582 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4583 constant.
4584 (union type_stack_elt) <stack_val>: New field.
4585 (get_type_stack, append_type_stack, push_type_stack)
4586 (type_stack_cleanup): Declare.
4587
4588 2012-07-06 Tom Tromey <tromey@redhat.com>
4589
4590 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4591 Remove.
4592 (struct type_stack): New.
4593 * parse.c (type_stack, type_stack_size, type_stack_depth):
4594 Remove.
4595 (type_stack): New global.
4596 (parse_exp_in_context, check_type_stack_depth)
4597 (insert_into_type_stack, insert_type, push_type, push_type_int)
4598 (insert_type_address_space, pop_type, pop_type_int)
4599 (_initialize_parse): Update.
4600
4601 2012-07-06 Tom Tromey <tromey@redhat.com>
4602
4603 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4604 Remove %type.
4605
4606 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4607
4608 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4609
4610 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4611 Jan Kratochvil <jan.kratochvil@redhat.com>
4612
4613 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4614 alloca with xmalloc/xfree.
4615
4616 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4617
4618 * MAINTAINERS (Write After Approval): Add myself to the list.
4619
4620 2012-07-05 Doug Evans <dje@google.com>
4621
4622 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4623
4624 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4625
4626 * ax-gdb.c (cli/cli-utils.h): New include.
4627 (linespec.h): Ditto.
4628 (agent_eval_command_one): New function.
4629 (agent_command_1): Ditto.
4630 (agent_command): Call function agent_command_1.
4631 (agent_eval_command): Ditto.
4632 (_initialize_ax_gdb): Change help for "maint agent"
4633 and "maint agent-eval".
4634
4635 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4636
4637 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4638 * cli/cli-utils.c (check_for_argument): New function.
4639 * cli/cli-utils.h (check_for_argument): Ditto.
4640
4641 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4642
4643 * NEWS: Mention x32 ABI support.
4644
4645 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4646
4647 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4648 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4649
4650 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4651 and pc_regnum_from_eax to -1. Update SP regnum from
4652 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4653 needed.
4654
4655 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4656 pc_regnum_from_eax.
4657
4658 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4659
4660 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4661 * dwarf2expr.h: Include gdbtypes.h.
4662 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4663 these forward declarations.
4664 (cu_offset, sect_offset): Move these ...
4665 * gdbtypes.h: Remove include dwarf2expr.h.
4666 (cu_offset, sect_offset): ... here.
4667
4668 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4669
4670 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4671 (amd64_linux_sigtramp_code): This.
4672 (amd64_x32_linux_sigtramp_code): New.
4673 (LINUX_SIGTRAMP_LEN): Updated.
4674 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4675
4676 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4677
4678 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4679
4680 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4681
4682 * config.in: Regenerate.
4683 * configure: Regenerate.
4684 * configure.ac: Remove check for gnu/libc-version.h.
4685 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4686 gnu/libc-version.h.
4687 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4688 variables libc_version, libc_major and libc_minor. Replace sscanf by
4689 inferior_has_bug. Extend the comment.
4690
4691 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4692
4693 * linux-thread-db.c (inferior_has_bug): New function.
4694 (thread_db_find_new_threads_silently): Return boolean as checked by
4695 inferior_has_bug, describe it in the comments.
4696 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4697 earlier. Abort the initialization if it returned non-zero.
4698 (thread_db_new_objfile): Exclude debug files.
4699 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4700 if UNTIL_NO_NEW,
4701
4702 2012-07-02 Doug Evans <dje@google.com>
4703
4704 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4705 related to queue management.
4706
4707 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4708 instead of "debug dwarf2-die" in debugging printfs.
4709 (create_debug_info_hash_table_reader): Ditto.
4710 (create_debug_info_hash_table): Ditto.
4711 (init_dwo_file): Ditto.
4712 (init_cutu_and_read_dies): Add debugging printf.
4713 (init_cutu_and_read_dies_no_follow): Ditto.
4714 (process_psymtab_comp_unit_reader): Ditto.
4715
4716 2012-07-02 Stan Shebs <stan@codesourcery.com>
4717
4718 Add target-side support for dynamic printf.
4719 * NEWS: Mention the additional style.
4720 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4721 (struct bp_location): New field cmd_bytecode.
4722 * breakpoint.c: Include format.h.
4723 (disconnected_dprintf): New global.
4724 (parse_cmd_to_aexpr): New function.
4725 (build_target_command_list): New function.
4726 (insert_bp_location): Call it.
4727 (remove_breakpoints_pid): Skip dprintf breakpoints.
4728 (print_one_breakpoint_location): Ditto.
4729 (dprintf_style_agent): New global.
4730 (dprintf_style_enums): Add dprintf_style_agent.
4731 (update_dprintf_command_list): Add agent case.
4732 (agent_printf_command): New function.
4733 (_initialize_breakpoint): Add new commands.
4734 * common/ax.def (printf): New bytecode.
4735 * ax.h (ax_string): Declare.
4736 * ax-gdb.h (gen_printf): Declare.
4737 * ax-gdb.c: Include cli-utils.h, format.h.
4738 (gen_printf): New function.
4739 (maint_agent_print_command): New function.
4740 (_initialize_ax_gdb): Add maint agent-printf command.
4741 * ax-general.c (ax_string): New function.
4742 (ax_print): Add printf disassembly.
4743 * Makefile.in (SFILES): Add format.c
4744 (COMMON_OBS): Add format.o.
4745 * common/format.h: New file.
4746 * common/format.c: New file.
4747 * printcmd.c: Include format.h.
4748 (ui_printf): Call parse_format_string.
4749 * remote.c (remote_state): New field breakpoint_commands.
4750 (PACKET_BreakpointCommands): New enum.
4751 (remote_breakpoint_commands_feature): New function.
4752 (remote_protocol_features): Add new BreakpointCommands entry.
4753 (remote_can_run_breakpoint_commands): New function.
4754 (remote_add_target_side_commands): New function.
4755 (remote_insert_breakpoint): Call it.
4756 (remote_insert_hw_breakpoint): Ditto.
4757 (_initialize_remote): Add new packet configuration for
4758 target-side breakpoint commands.
4759 * target.h (struct target_ops): New field
4760 to_can_run_breakpoint_commands.
4761 (target_can_run_breakpoint_commands): New macro.
4762 * target.c (update_current_target): Handle
4763 to_can_run_breakpoint_commands.
4764
4765 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4766
4767 Execute -ix and -iex only after system and user gdbinit files.
4768 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4769 processing down after gdbinit files.
4770
4771 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4772
4773 Add fnmatch-gnu module.
4774 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4775 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4776 * gnulib/aclocal.m4: Regenerate.
4777 * gnulib/config.in: Regenerate.
4778 * gnulib/configure: Regenerate.
4779 * gnulib/import/dummy.c: Remove.
4780 * gnulib/import/Makefile.am: Regenerate.
4781 * gnulib/import/Makefile.in: Likewise.
4782 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4783 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4784 * gnulib/import/alloca.c: New file.
4785 * gnulib/import/alloca.in.h: Likewise.
4786 * gnulib/import/config.charset: Likewise.
4787 * gnulib/import/fnmatch.c: Likewise.
4788 * gnulib/import/fnmatch.in.h: Likewise.
4789 * gnulib/import/fnmatch_loop.c: Likewise.
4790 * gnulib/import/localcharset.c: Likewise.
4791 * gnulib/import/localcharset.h: Likewise.
4792 * gnulib/import/m4/alloca.m4: Likewise.
4793 * gnulib/import/m4/codeset.m4: Likewise.
4794 * gnulib/import/m4/configmake.m4: Likewise.
4795 * gnulib/import/m4/fcntl-o.m4: Likewise.
4796 * gnulib/import/m4/fnmatch.m4: Likewise.
4797 * gnulib/import/m4/glibc21.m4: Likewise.
4798 * gnulib/import/m4/localcharset.m4: Likewise.
4799 * gnulib/import/m4/locale-fr.m4: Likewise.
4800 * gnulib/import/m4/locale-ja.m4: Likewise.
4801 * gnulib/import/m4/locale-zh.m4: Likewise.
4802 * gnulib/import/m4/mbrtowc.m4: Likewise.
4803 * gnulib/import/m4/mbsinit.m4: Likewise.
4804 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4805 * gnulib/import/m4/mbstate_t.m4: Likewise.
4806 * gnulib/import/m4/stdbool.m4: Likewise.
4807 * gnulib/import/m4/wchar_h.m4: Likewise.
4808 * gnulib/import/m4/wctype_h.m4: Likewise.
4809 * gnulib/import/m4/wint_t.m4: Likewise.
4810 * gnulib/import/mbrtowc.c: Likewise.
4811 * gnulib/import/mbsinit.c: Likewise.
4812 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4813 * gnulib/import/mbsrtowcs-state.c: Likewise.
4814 * gnulib/import/mbsrtowcs.c: Likewise.
4815 * gnulib/import/ref-add.sin: Likewise.
4816 * gnulib/import/ref-del.sin: Likewise.
4817 * gnulib/import/stdbool.in.h: Likewise.
4818 * gnulib/import/streq.h: Likewise.
4819 * gnulib/import/strnlen1.c: Likewise.
4820 * gnulib/import/strnlen1.h: Likewise.
4821 * gnulib/import/verify.h: Likewise.
4822 * gnulib/import/wchar.in.h: Likewise.
4823 * gnulib/import/wctype.in.h: Likewise.
4824
4825 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4826
4827 Support shell wildcards for 'set auto-load safe-path'.
4828 * auto-load.c: Include fnmatch.h.
4829 (filename_is_in_dir): Rename to ...
4830 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4831 it. Update function comment. Rename dir_len to pattern_len. New
4832 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4833 messages. Use gdb_filename_fnmatch.
4834 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4835 pattern.
4836 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4837 * defs.h (gdb_filename_fnmatch): New declaration.
4838 * utils.c: Include fnmatch.h.
4839 (gdb_filename_fnmatch): New function.
4840
4841 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4842
4843 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4844 `-probe' and `-probe-stap' options.
4845
4846 2012-07-01 Yao Qi <yao@codesourcery.com>
4847
4848 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4849 always_inserted_off, and always_inserted_enums.
4850 Change always_inserted_mode's type to 'enum auto_boolean'.
4851 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4852 callers.
4853 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4854 of add_setshow_enum_cmd.
4855 * infrun.c: Remove can_use_displaced_stepping_auto,
4856 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4857 can_use_displaced_stepping_enum.
4858 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4859 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4860 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4861 add_setshow_enum_cmd.
4862
4863 2012-06-30 Doug Evans <dje@google.com>
4864
4865 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4866 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4867 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4868
4869 2012-06-29 Doug Evans <dje@google.com>
4870
4871 * linespec.c: #include "stack.h".
4872 (decode_line_with_current_source): Moved here from symtab.c and
4873 renamed from decode_line_spec. All callers updated.
4874 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4875 renamed from decode_line_spec_1. All callers updated.
4876 * linespec.h (decode_line_with_current_source): Move declaration here
4877 from symtab.h and renamed from decode_line_spec.
4878 (decode_line_with_last_displayed): Move declaration here from symtab.h
4879 and renamed from decode_line_spec_1.
4880 * macrocmd.c: #include "linespec.h".
4881 * symtab.c: Remove #include "linespec.h".
4882
4883 2012-06-28 Doug Evans <dje@google.com>
4884
4885 * dwarf2read.c (get_cu_length): New function.
4886 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4887 (create_debug_types_hash_table): Ditto.
4888 (init_cutu_and_read_dies): Ditto.
4889 (init_cutu_and_read_dies_no_follow): Ditto.
4890
4891 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4892
4893 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4894 (struct abbrev_table): Define.
4895 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4896 abbrev_table.
4897 (init_cutu_and_read_dies): Update.
4898 (abbrev_table_alloc_abbrev): New function. Replaces
4899 dwarf_alloc_abbrev. All callers updated.
4900 (abbrev_table_add_abbrev): New function.
4901 (abbrev_table_lookup_abbrev): New function. Replaces
4902 dwarf2_lookup_abbrev. All callers updated.
4903 (abbrev_table_read_table): New function. Contents moved here from
4904 dwarf2_read_abbrevs.
4905 (dwarf2_read_abbrevs): Call it.
4906 (abbrev_table_free): New function.
4907 (dwarf2_free_abbrev_table): Call it.
4908
4909 2012-06-28 Stan Shebs <stan@codesourcery.com>
4910
4911 * osdata.c (info_osdata_command): Filter out "Title" columns
4912 from non-MI uses.
4913 * common/linux-osdata.c (struct osdata_type): Add title field.
4914 (osdata_table): Add titles to each entry.
4915 (linux_command_xfer_osdata): Add a column for title data.
4916
4917 2012-06-28 Stan Shebs <stan@codesourcery.com>
4918
4919 Make logging work for MI.
4920 * NEWS: Mention it.
4921 * interps.h (interp_set_logging_ftype): New typedef.
4922 (struct interp_procs): New field set_logging_proc.
4923 (current_interp_set_logging): Declare.
4924 * interps.c (current_interp_set_logging): New function.
4925 * cli/cli-logging.c: Include interps.h.
4926 (set_logging_redirect): Call current_interp_set_logging.
4927 (pop_output_files): Ditto.
4928 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4929 * mi/mi-console.h (mi_console_set_raw): Declare.
4930 * mi/mi-console.c (mi_console_set_raw): New function.
4931 * mi/mi-interp.c (saved_raw_stdout): New global.
4932 (mi_set_logging): New function.
4933 (_initialize_mi_interp): Add it to interp procs.
4934
4935 2012-06-28 Doug Evans <dje@google.com>
4936
4937 * symtab.c (lookup_symbol_aux_objfile): Use
4938 ALL_OBJFILE_PRIMARY_SYMTABS.
4939
4940 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4941
4942 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4943
4944 * common/buffer.c: Include inttypes.h and stdint.h.
4945 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4946
4947 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4948 Pedro Alves <palves@redhat.com>
4949
4950 * gdbthread.h (ALL_THREADS): New macro.
4951 (thread_list): Declare.
4952 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4953 going, but instead fall through to the stepping handling.
4954 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4955 the passed in signal. Adjust debug output.
4956 (resume_callback): Rename to ...
4957 (linux_nat_resume_callback): ... this. Pass the thread's last
4958 stop signal, if in "pass" state.
4959 (linux_nat_resume): Adjust to rename.
4960 (stop_wait_callback): New assertion. Don't respawn signals;
4961 instead let the LWP remain with SIGNALLED set.
4962 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4963 * remote.c (append_pending_thread_resumptions): New.
4964 (remote_vcont_resume): Call it.
4965 * target.h (target_resume): Extend comment.
4966
4967 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4968
4969 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4970
4971 2012-06-27 Doug Evans <dje@google.com>
4972
4973 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4974 Delete have_addr_base, unused. All uses updated.
4975 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4976 (dwarf2_get_pc_bounds): Add ranges_base.
4977 (dwarf2_record_block_ranges): Ditto.
4978
4979 2012-06-27 Tom Tromey <tromey@redhat.com>
4980
4981 PR macros/7961:
4982 * varobj.c (varobj_create): Update.
4983 (varobj_set_value): Update.
4984 * tracepoint.c (validate_actionline): Update.
4985 (encode_actions_1): Update.
4986 * parse.c (parse_exp_1): Add 'pc' argument.
4987 (parse_exp_in_context): Add 'pc' argument. Change how
4988 expression_context_pc is set.
4989 (parse_expression): Update.
4990 (parse_field_expression): Update.
4991 * expression.h (parse_exp_1): Update.
4992 * eval.c (parse_to_comma_and_eval): Update.
4993 * breakpoint.c (set_breakpoint_condition): Update.
4994 (update_watchpoint): Update.
4995 (init_breakpoint_sal): Update
4996 (find_condition_and_thread): Update.
4997 (watch_command_1): Update.
4998 (update_breakpoint_locations): Update.
4999 * ada-lang.c (ada_read_renaming_var_value): Update.
5000 (create_excep_cond_exprs): Update.
5001
5002 2012-06-27 Doug Evans <dje@google.com>
5003
5004 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5005 type units.
5006
5007 2012-06-26 Doug Evans <dje@google.com>
5008
5009 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5010 prototype.
5011 (error_check_comp_unit_head): New arg abbrev_section. All callers
5012 updated.
5013 (read_and_check_comp_unit_head): Ditto.
5014 (read_and_check_type_unit_head): Ditto.
5015
5016 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5017
5018 New attribute 'last' for gdb.Symtab_and_line.
5019 * NEWS (Python Scripting): Add entry about the new attribute.
5020 * python/py-symtab.c (salpy_get_last): New function which
5021 implements the get method for the 'last' attribute of
5022 gdb.Symtab_and_line.
5023 (sal_object_getset): Add entry for the 'last' attribute.
5024
5025 2012-06-26 Doug Evans <dje@google.com>
5026
5027 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5028 (dwo_sections): Add macinfo, macro.
5029 (dwarf2_locate_dwo_sections): Watch for macro sections.
5030 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5031 All callers updated. Handle DWO files.
5032
5033 * NEWS: Mention new options "set debug dwarf2-read" and
5034 "set debug symtab-create".
5035 * dwarf2read.c (dwarf2_read_debug): New static global.
5036 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5037 (process_queue): Ditto.
5038 (process_full_comp_unit): Ditto.
5039 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5040 * elfread.c (elf_symfile_read): Add debugging printf.
5041 * minsyms.c (install_minimal_symbols): Ditto.
5042 * psymtab.c (allocate_psymtab): Ditto.
5043 * symfile.c (allocate_symtab): Ditto.
5044 * symtab.c (symtab_create_debug): New global.
5045 (_initialize_symtab): Add new option "set debug symtab-create".
5046 * symtab.h (symtab_create_debug): Declare.
5047
5048 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5049 (lookup_dwo_type_unit): Ditto.
5050
5051 2012-06-26 Roland McGrath <roland@hack.frob.com>
5052 H.J. Lu <hongjiu.lu@intel.com>
5053
5054 * amd64-linux-nat.c: Include <sys/user.h>.
5055 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5056 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5057 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5058
5059 * configure.ac: Check if the fs_base and gs_base members of
5060 `struct user_regs_struct' exist.
5061 * config.in: Regenerated.
5062 * configure: Likewise.
5063
5064 2012-06-25 Michael Eager <eager@eagercon.com>
5065
5066 PR python/14291
5067 * python/python.c (gdbpy_write): Check for interrupted output.
5068
5069 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5070
5071 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5072 register as a stack alignment in ARM mode.
5073
5074 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5075
5076 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5077 * gnulib/config.in: Regenerate.
5078 * gnulib/configure: Likewise.
5079 * gnulib/import/m4/extensions.m4: Update it.
5080 * gnulib/import/m4/gnulib-common.m4: Likewise.
5081 * gnulib/import/m4/memmem.m4: Likewise.
5082 * gnulib/import/m4/mmap-anon.m4: Likewise.
5083 * gnulib/import/m4/multiarch.m4: Likewise.
5084 * gnulib/import/stdint.in.h: Likewise.
5085
5086 2012-06-24 Yao Qi <yao@codesourcery.com>
5087
5088 * corefile.c (write_memory_with_notification): New.
5089 * gdbcore.h: Declare write_memory_with_notification.
5090 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5091 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5092 * valops.c (value_assign): Likewise.
5093 * python/py-inferior.c (infpy_write_memory): Call
5094 'write_memory_with_notification'.
5095
5096 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5097
5098 * cc-with-index.sh: Use also -ex "set auto-load no".
5099
5100 2012-06-23 Doug Evans <dje@google.com>
5101
5102 PR 14125
5103 * NEWS: Document additions to .gdb_index.
5104 * dwarf2read.c: #include "gdb/gdb-index.h".
5105 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5106 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5107 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5108 (dwarf2_read_index): Recognize version 7.
5109 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5110 block_kind, domain): All callers updated.
5111 (dw2_find_symbol_file): Handle new index CU values.
5112 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5113 (add_index_entry): New args is_static, kind. All callers updated.
5114 (offset_type_compare, uniquify_cu_indices): New functions
5115 (symbol_kind): New function.
5116 (write_psymtabs_to_index): Remove duplicate CU values.
5117 (write_psymtabs_to_index): Write .gdb_index version 7.
5118
5119 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5120
5121 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5122 * configure: Regenerate.
5123
5124 2012-06-20 Yao Qi <yao@codesourcery.com>
5125
5126 * python/py-inferior.c: Update comments of infpy_read_memory
5127 and infpy_write_memory.
5128
5129 2012-06-19 Tom Tromey <tromey@redhat.com>
5130
5131 PR exp/9514:
5132 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5133 (push_type_address_space): Remove.
5134 * parse.c (insert_into_type_stack): New function.
5135 (insert_type): Likewise.
5136 (insert_type_address_space): Rename from push_type_address_space.
5137 Insert tp_space_identifier.
5138 * c-exp.y (ptr_operator): New production.
5139 (abs_decl): Use ptr_operator.
5140 (space_identifier): Call insert_type_address_space.
5141 (ptype): Don't use const_or_volatile_or_space_identifier.
5142 (const_or_volatile_noopt): Call insert_type.
5143 (conversion_type_id, conversion_declarator): New productions.
5144 (operator): Use conversion_type_id.
5145
5146 2012-06-18 Doug Evans <dje@google.com>
5147
5148 * symtab.h (minimal_symbol): New member created_by_gdb.
5149 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5150 created by gdb.
5151 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5152 (search_symbols): Call it instead of lookup_symbol.
5153 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5154
5155 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5156 Adjust address for DW_OP_GNU_addr_index.
5157 * dwarf2expr.h (dwarf_expr_context): Update comment.
5158 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5159 all callers updated. Handle TLS vars described with
5160 DW_OP_GNU_const_index.
5161 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5162 and DW_OP_GNU_const_index.
5163 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5164
5165 * block.c (find_block_in_blockvector): Make explicit the fact that we
5166 ignore GLOBAL_BLOCK.
5167
5168 2012-06-18 Tom Tromey <tromey@redhat.com>
5169
5170 * c-exp.y (operator): Remove trailing space after "delete" and
5171 "delete[]".
5172
5173 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5174 Jan Kratochvil <jan.kratochvil@redhat.com>
5175
5176 Switch i386 and derived targets to ON_STACK.
5177 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5178 (amd64_dicos_init_abi): Remove its installment.
5179 * dicos-tdep.c (dicos_init_abi): Remove the
5180 set_gdbarch_call_dummy_location call. Update the comment here.
5181 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5182 (i386_dicos_init_abi): Remove its installment.
5183 * i386-tdep.c (i386_push_dummy_code): New function.
5184 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5185 i386_push_dummy_code.
5186
5187 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5188
5189 Remove stale dummy frames.
5190 * breakpoint.c: Include dummy-frame.h.
5191 (longjmp_breakpoint_ops): New variable.
5192 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5193 bp_longjmp_call_dummy.
5194 (bpstat_what, bptype_string, print_one_breakpoint_location)
5195 (init_bp_location): Support bp_longjmp_call_dummy.
5196 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5197 (set_longjmp_breakpoint_for_call_dummy)
5198 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5199 functions.
5200 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5201 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5202 FIXME comment and extend the other comment for bp_call_dummy.
5203 (set_longjmp_breakpoint_for_call_dummy)
5204 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5205 * dummy-frame.c: Include gdbthread.h.
5206 (pop_dummy_frame_bpt): New function.
5207 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5208 (dummy_frame_discard): New function.
5209 (cleanup_dummy_frames): Update the comment about longjmps.
5210 * dummy-frame.h (dummy_frame_discard): New declaration.
5211 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5212 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5213 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5214 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5215 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5216 keep_going if IS_LONGJMP and there is no other reason to stop.
5217
5218 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5219
5220 * remote-sim.c (sim_command_completer): Initialize
5221 variable 'result'.
5222
5223 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5224
5225 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5226 * dwarf2loc.c (call_site_parameter_matches): Support
5227 CALL_SITE_PARAMETER_PARAM_OFFSET.
5228 (needs_dwarf_reg_entry_value): Push stub value.
5229 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5230 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5231 * gdbtypes.h (enum call_site_parameter_kind): New item
5232 CALL_SITE_PARAMETER_PARAM_OFFSET.
5233 (struct call_site.parameter.u): New field param_offset.
5234
5235 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5236
5237 Code cleanup: Generalize call_site.parameter key.
5238 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5239 variable dwarf_reg. New variable kind_u. Update parameters to
5240 push_dwarf_reg_entry_value.
5241 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5242 * dwarf2expr.h (enum call_site_parameter_kind)
5243 (union call_site_parameter_u): Forward declarations.
5244 (struct dwarf_expr_context_funcs): Update parameters and their
5245 description for push_dwarf_reg_entry_value.
5246 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5247 * dwarf2loc.c (call_site_parameter_matches): New function.
5248 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5249 description. Use call_site_parameter_matches.
5250 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5251 Update parameters and their description.
5252 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5253 New variable kind_u. Adjust the caller for updated parameters.
5254 (needs_dwarf_reg_entry_value): Update parameters.
5255 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5256 instead of attr. Update for the changed fields of struct
5257 call_site_parameter.
5258 * gdbtypes.h: Include dwarf2expr.h.
5259 (enum call_site_parameter_kind): New.
5260 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5261 fb_offset into new union u.
5262
5263 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5264
5265 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5266 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5267 for x32.
5268
5269 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5270
5271 * amd64-linux-nat.c (compat_x32_clock_t): New.
5272 (compat_x32_siginfo_t): Likewise.
5273 (compat_x32_siginfo_from_siginfo): Likewise.
5274 (siginfo_from_compat_x32_siginfo): Likewise.
5275 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5276 and siginfo_from_compat_x32_siginfo for x32.
5277
5278 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5279
5280 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5281
5282 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5283
5284 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5285 instead of gdbarch_ptr_bit.
5286 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5287 (amd64_supply_native_gregset): Likewise.
5288 (amd64_collect_native_gregset): Likewise.
5289 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5290 (amd64_supply_xsave): Likewise.
5291 (amd64_collect_fxsave): Likewise.
5292 (amd64_collect_xsave): Likewise.
5293
5294 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5295
5296 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5297 (amd64_linux_read_description): Check DS segment register for
5298 x32 process.
5299
5300 2012-06-15 Tom Tromey <tromey@redhat.com>
5301
5302 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5303 init_cutu_and_read_dies.
5304
5305 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5306
5307 * MAINTAINERS (Write After Approval): Add myself to the list.
5308
5309 2012-06-15 Tom Tromey <tromey@redhat.com>
5310
5311 * valops.c (value_find_oload_method_list): Now static.
5312 * value.h (value_find_oload_method_list): Don't declare.
5313
5314 2012-06-15 Tom Tromey <tromey@redhat.com>
5315
5316 * valops.c (find_overload_match): Use value_ind.
5317
5318 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5319
5320 * infrun.c (handle_inferior_event): Correct indentation.
5321
5322 2012-06-14 Doug Evans <dje@google.com>
5323
5324 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5325 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5326 All uses updated.
5327 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5328 updated. Handle DEBUG_LOC_START_LENGTH.
5329 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5330 (loclist_describe_location): Ditto.
5331
5332 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5333
5334 PR backtrace/13866
5335 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5336 after hiding inline functions.
5337
5338 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5339
5340 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5341 _initialize_inf_ttrace.
5342
5343 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5344
5345 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5346 _initialize_hppa_hpux_nat.
5347
5348 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5349
5350 * remote-sim.c (sim_command_completer): Change type of return
5351 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5352
5353 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5354 Jan Kratochvil <jan.kratochvil@redhat.com>
5355
5356 PR tdep/14222
5357 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5358 stack on a 16-byte boundary.
5359
5360 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5361
5362 * jit.c (finalize_symtab): Set function's return type to 'void' by
5363 default.
5364
5365 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5366 H.J. Lu <hongjiu.lu@intel.com>
5367
5368 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5369 Move bits common to both the classic LP64 and the new x32 ILP32
5370 ABI here.
5371 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5372 (amd64_x32_linux_init_abi): New function.
5373 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5374 subtype.
5375
5376 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5377 * i386-tdep.c (i386_pseudo_register_name): Make public.
5378 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5379 * amd64-tdep.c (amd64_dword_names): Add "eip".
5380 (amd64_x32_pseudo_register_type): New function
5381 (amd64_x32_init_abi): New function.
5382
5383 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5384
5385 PR build/14003
5386 * inferior.h (struct inferior_suspend_state): Comment out.
5387 (struct inferior): Comment out the field suspend.
5388 * infrun.c (struct infcall_suspend_state): Comment out the field
5389 inferior_suspend.
5390 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5391 out its assignment.
5392
5393 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5396 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5397 function comment. Return ERROR for unresolved cases. Implement
5398 returning proper NAME.
5399 (yylex): Accept also NAME from classify_inner_name.
5400 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5401 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5402 LOC_TYPEDEF type.
5403 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5404
5405 2012-06-13 Tom Tromey <tromey@redhat.com>
5406
5407 * breakpoint.c (condition_completer): New function.
5408 (_initialize_breakpoint): Use it.
5409 * value.c (complete_internalvar): New function.
5410 * value.h (complete_internalvar): Declare.
5411
5412 2012-06-13 Tom Tromey <tromey@redhat.com>
5413
5414 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5415 * breakpoint.c (catch_syscall_completer): Return a VEC.
5416 * cli/cli-cmds.c (complete_command): Update.
5417 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5418 (complete_on_enum): Likewise.
5419 * command.h: Include gdb_vecs.h.
5420 (completer_ftype): Change return type.
5421 (complete_on_cmdlist, complete_on_enum): Likewise.
5422 * completer.c (noop_completer, filename_completer)
5423 (location_completer): Return a VEC.
5424 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5425 to a VEC.
5426 (expression_completer, complete_line_internal, complete_line)
5427 (command_completer): Return a VEC.
5428 (gdb_completion_word_break_characters, line_completion_function):
5429 Update.
5430 * completer.h: Include gdb_vecs.h.
5431 (complete_line, noop_completer, filename_completer)
5432 (expression_completer, location_completer, command_completer):
5433 Update.
5434 * f-lang.c (f_word_break_characters): Return a VEC.
5435 * interps.c (interpreter_completer): Return a VEC.
5436 * language.h (struct language_defn)
5437 <la_make_symbol_completion_list>: Return a VEC.
5438 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5439 * symtab.c (free_completion_list): Take a VEC.
5440 (return_val_size, return_val_index): Remove.
5441 (return_val): Now a VEC.
5442 (completion_list_add_name): Update.
5443 (default_make_symbol_completion_list_break_on)
5444 (default_make_symbol_completion_list, make_symbol_completion_list)
5445 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5446 Return a VEC.
5447 (add_filename_to_list): Update.
5448 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5449 <list>: Now a VEC.
5450 (maybe_add_partial_symtab_filename): Update.
5451 (make_source_files_completion_list): Return a VEC.
5452 * symtab.h (default_make_symbol_completion_list_break_on)
5453 (default_make_symbol_completion_list, make_symbol_completion_list)
5454 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5455 (make_source_files_completion_list): Update.
5456
5457 2012-06-13 Tom Tromey <tromey@redhat.com>
5458
5459 * breakpoint.c (add_catch_command): Use completer_ftype.
5460 * breakpoint.h: Include command.h.
5461 (add_catch_command): Use completer_ftype.
5462 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5463 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5464 Use completer_ftype.
5465 * command.h (completer_ftype): New typedef.
5466 (set_cmd_completer): Use it.
5467 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5468 completer_ftype.
5469
5470 2012-06-13 Pedro Alves <palves@redhat.com>
5471
5472 Partial revert of previous change.
5473
5474 * serial.c (scb_base): New global.
5475 (serial_for_fd): New.
5476 (serial_open, serial_fdopen_ops): Link new serial in open serials
5477 chain.
5478 (do_serial_close): Unlink serial from the open serials chain.
5479
5480 2012-06-12 Pedro Alves <palves@redhat.com>
5481
5482 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5483 threads here.
5484 (prepare_for_detach): No longer context switch here in non-stop
5485 mode.
5486 (fetch_inferior_event): Ditto.
5487 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5488 to the event thread before removing breakpoints. Switch to the
5489 event thread before inserting breakpoints and resuming.
5490 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5491 event thread before resuming.
5492 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5493 Switch to the event thread before removing breakpoints.
5494
5495 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5496
5497 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5498 special characters correctly for the Windows shells. See
5499 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5500 report.
5501 [!__MINGW32__]: Remove extra double quote character from special
5502 characters.
5503
5504 2012-06-11 Stan Shebs <stan@codesourcery.com>
5505
5506 * ui-out.h: Remove #if 0 declarations.
5507 * ui-out.c: Remove #if 0 functions.
5508
5509 2012-06-11 Pedro Alves <palves@redhat.com>
5510
5511 * ser-base.c (run_async_handler_and_reschedule): New.
5512 (fd_event, push_event): Use it.
5513 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5514 reference count to 1.
5515 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5516 instead of xfree.
5517 (serial_is_open, serial_ref, serial_unref): New.
5518 * serial.h (serial_open): Adjust comment.
5519 (serial_is_open): Declare.
5520 (serial_close): Adjust comment.
5521 (serial_ref, serial_unref) Declare.
5522 (struct serial): New field 'refcnt'.
5523
5524 2012-06-11 Pedro Alves <palves@redhat.com>
5525
5526 Remove #if 0'd "connect" command, and unnecessary associated
5527 refcounting and serial reuse bits.
5528
5529 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5530 * serial.c (last_serial_opened): Delete.
5531 (scb_base): Delete.
5532 (serial_open): Adjust.
5533 (serial_for_fd): Delete.
5534 (serial_fdopen_ops, do_serial_close): Adjust.
5535 (serial_fdopen_ops): Adjust.
5536
5537 2012-06-11 Pedro Alves <palves@redhat.com>
5538
5539 * serial.c (do_serial_close): Remove early return when SCB is
5540 null.
5541
5542 2012-06-11 Tom Tromey <tromey@redhat.com>
5543
5544 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5545
5546 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5547
5548 Fix regression by the "ambiguous linespec" series.
5549 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5550 get_last_displayed_symtab and get_last_displayed_line and depending
5551 on CURSAL.
5552
5553 2012-06-11 Tom Tromey <tromey@redhat.com>
5554
5555 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5556 (dw2_find_symbol_file): Use it.
5557
5558 2012-06-11 Michael Eager <eager@eagercon.com>
5559
5560 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5561 * mips-linux-tdep.h (mips_signals): New
5562
5563 2012-06-11 Tom Tromey <tromey@redhat.com>
5564
5565 * infrun.c (handle_inferior_event)
5566 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5567 breakpoint.
5568 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5569 exception logic in all cases. Update comments.
5570 (insert_longjmp_resume_breakpoint): Set the exception resume
5571 breakpoint.
5572
5573 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5574
5575 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5576
5577 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5578
5579 * valarith.c (binop_types_user_defined_p): Fix a typo.
5580
5581 2012-06-08 Yao Qi <yao@codesourcery.com>
5582 Chung-Lin Tang <cltang@codesourcery.com>
5583
5584 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5585 * arch-utils.h: Declare.
5586 * gdbarch.sh: Add return_in_first_hidden_param_p.
5587 * gdbarch.c, gdbarch.h: Regenerated.
5588 * infcall.c (call_function_by_hand): Call
5589 gdbarch_return_in_first_hidden_param_p instead of
5590 language_pass_by_reference.
5591
5592 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5593 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5594 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5595 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5596 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5597 `cplus_return_struct_by_reference'.
5598 (tic6x_return_value): Handle language cplusplus.
5599 (tic6x_return_in_first_hidden_param_p): New.
5600 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5601
5602 2012-06-07 Doug Evans <dje@google.com>
5603
5604 * dwarf2read.c (dwarf2_cu): Add comment.
5605
5606 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5607
5608 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5609 variable.
5610 (mips_eabi_push_dummy_call): Likewise.
5611 (mips_n32n64_push_dummy_call): Likewise.
5612 (mips_o32_push_dummy_call): Likewise.
5613 (mips_o64_push_dummy_call): Likewise.
5614
5615 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5616
5617 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5618
5619 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5620
5621 * mips-tdep.c (mips_pseudo_register_type): Use
5622 mips_float_register_p.
5623
5624 2012-06-06 Pedro Alves <palves@redhat.com>
5625
5626 * infrun.c (handle_inferior_event): Remove calls to
5627 reinit_frame_cache that follow a context_switch call.
5628
5629 2012-06-06 Pedro Alves <palves@redhat.com>
5630
5631 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5632 context_switch and remove stale comment.
5633
5634 2012-06-06 Pedro Alves <palves@redhat.com>
5635
5636 * infrun.c (struct execution_control_state): Remove
5637 `new_thread_event' field.
5638 (handle_inferior_event): Simplify new threads handling; don't
5639 resume the inferior if we find a new thread.
5640
5641 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5642
5643 * NEWS: Document the deprecation of SH's 'regs' command.
5644 * inferior.h (all_registers_info): Add function declaration.
5645 * sh-tdep.c (sh_show_regs): Remove variable.
5646 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5647 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5648 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5649 (sh_show_regs_command): Remove functions.
5650 (sh_gdbarch_init): Don't set sh_show_regs.
5651 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5652 'info all-registers'.
5653 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5654 (sh64_show_regs): Remove functions.
5655 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5656
5657 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5658
5659 * configure.ac: Move development=true below AC_INIT.
5660 * configure: Regenerate.
5661
5662 2012-06-05 Stan Shebs <stan@codesourcery.com>
5663
5664 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5665 gdb_stdout.
5666
5667 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5668
5669 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5670 argument as ssize_t.
5671 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5672 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5673 * target.c (target_read_stack, target_write_memory)
5674 (target_write_raw_memory): Likewise.
5675 * target.h (target_read_stack, target_write_memory)
5676 (target_write_raw_memory): Likewise.
5677
5678 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5679
5680 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5681 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5682 * target.c (target_read_memory): Change LEN to ssize_t.
5683 * target.h (target_read_memory): Change LEN to ssize_t.
5684
5685 2012-06-05 Pedro Alves <palves@redhat.com>
5686
5687 PR backtrace/13866
5688
5689 * breakpoint.c (until_break_command): Only fetch the selected
5690 frame after decode_line_1.
5691
5692 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5693
5694 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5695 event breakpoint at _start, __start or main if a program
5696 interpreter is not found.
5697
5698 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5699
5700 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5701 Add declaration.
5702 * windows-tdep.c: #include "objfiles.h".
5703 (windows_iterate_over_objfiles_in_search_order): New function.
5704 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5705 iterate_over_objfiles_in_search_order gdbarch method to
5706 windows_iterate_over_objfiles_in_search_order.
5707 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5708
5709 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5710
5711 * gdbarch.sh: Add generation of
5712 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5713 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5714 (iterate_over_objfiles_in_search_order): New gdbarch method.
5715 * gdbarch.h, gdbarch.c: Regenerate.
5716 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5717 Add declaration.
5718 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5719 New function.
5720 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5721 out of lookup_symbol_aux_symtabs.
5722 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5723 call to lookup_symbol_aux_objfile.
5724 (struct global_sym_lookup_data): New type.
5725 (lookup_symbol_global_iterator_cb): New function.
5726 (lookup_symbol_global): Search for symbol using
5727 gdbarch_iterate_over_objfiles_in_search_order and
5728 lookup_symbol_global_iterator_cb.
5729 * findvar.c (struct minsym_lookup_data): New type.
5730 (minsym_lookup_iterator_cb): New function.
5731 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5732 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5733 and minsym_lookup_iterator_cb.
5734
5735 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5736
5737 Revert the following patch:
5738 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5739 try locating the symbol in the symbol's own objfile first, before
5740 extending the search to all objfiles.
5741 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5742 out of lookup_symbol_aux_symtabs.
5743 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5744 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5745 Do not search EXCLUDE_OBJFILE.
5746 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5747 (lookup_symbol_global): Search for matches in the block's objfile
5748 first, before searching all other objfiles.
5749
5750 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5751
5752 * breakpoint.c (find_condition_and_thread): Stop parsing
5753 as soon as the first invalid keyword is found.
5754
5755 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5756
5757 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5758
5759 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5760
5761 * config/djgpp/djcheck.sh: Add copyright header.
5762
5763 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5764
5765 * copyright.py (update_files, main): Fix path to update-copyright
5766 script.
5767
5768 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5769
5770 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5771 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5772 for which a reminder to update by hand is printed.
5773
5774 2012-06-04 Doug Evans <dje@google.com>
5775
5776 * buildsym.c (make_blockvector): Add comment.
5777
5778 2012-06-04 Pedro Alves <palves@redhat.com>
5779
5780 * arch-utils.c (default_gdb_signal_from_target): Delete.
5781 * arch-utils.h (default_gdb_signal_from_target): Delete.
5782 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5783 gdbarch_gdb_signal_from_target_p.
5784 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5785 predicate).
5786 * gdbarch.h: Regenerate.
5787 * gdbarch.c: Regenerate.
5788
5789 2012-06-04 Pedro Alves <palves@redhat.com>
5790
5791 * gdbarch.sh (gdb_signal_from_target): Mention that the
5792 implementation of the method must be host independent.
5793 * gdbarch.h: Regenerate.
5794
5795 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5796
5797 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5798 parameters.
5799 (target_read_memory_bfd): New function.
5800 (symbol_file_add_from_memory): Use it.
5801
5802 2012-06-03 Doug Evans <dje@google.com>
5803
5804 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5805 of primary symtab.
5806 (basic_lookup_transparent_type): Ditto.
5807
5808 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5809 (ALL_PRIMARY_SYMTABS): Use it.
5810 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5811 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5812 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5813 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5814 (basic_lookup_transparent_type): Ditto.
5815
5816 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5817
5818 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5819 it to optimize resolution of demangled name.
5820
5821 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5822
5823 * configure.ac (development): Define new variable.
5824 Call AC_CHECK_LIB for mcheck if $development.
5825 (ERROR_ON_WARNING): Enable it by default only if $development.
5826 * config.in: Regenerate.
5827 * configure: Regenerate.
5828
5829 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5830
5831 * target.c (target_read_memory): Make LEN argument as size_t.
5832 * target.h (target_read_memory): Likewise.
5833
5834 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5835
5836 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5837
5838 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5839
5840 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5841 BookE interface for PowerPC server processors if not available
5842 in the Linux Kernel.
5843
5844 2012-05-31 Keith Seitz <keiths@redhat.com>
5845
5846 * linespec.c (decode_objc): Add cleanup to free
5847 INFO.FILE_SYMTABS.
5848 (find_linespec_symbols): Add cleanup to free CLASSES.
5849 * symfile.c (find_separate_debug_file_by_debuglink): Add
5850 cleanup to free DEBUGLINK.
5851 * ui-out.c (clear_header_list): No need to check if
5852 HEADER_NEXT.COLHDR is NULL.
5853 Free HEADER_NEXT.COL_NAME.
5854
5855 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5856
5857 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5858 warning.
5859
5860 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5861
5862 * configure.host (gdb_host_cpu): Handle tilegx*.
5863 (gdb_host): Handle tilegx-*-linux*.
5864 * tilegx-linux-nat.c: New file.
5865 * config/tilegx/linux.mh: New file.
5866
5867 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5868
5869 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5870 tilegx-linux-tdep.o.
5871 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5872 tilegx-linux-tdep.c.
5873 * configure.tgt: Handle tilegx-*-linux*.
5874 * tilegx-tdep.h: New file.
5875 * tilegx-tdep.c: New file.
5876 * tilegx-linux-tdep.c: New file.
5877 * regformats/reg-tilegx.dat: New file.
5878
5879 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5880
5881 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5882 accounting of hw watchpoints on ppc.
5883
5884 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5885
5886 * source.c (openp): Expand tilde in path entries.
5887
5888 2012-05-29 Doug Evans <dje@google.com>
5889
5890 * buildsym.c (block_compar): Fix comment.
5891 (end_symtab): Fix and clarify some comments.
5892
5893 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5894 cleanup_undefined_types.
5895 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5896 All callers updated.
5897
5898 2012-05-29 Tom Tromey <tromey@redhat.com>
5899
5900 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5901 fails.
5902 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5903 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5904 fails.
5905 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5906 fails.
5907
5908 2012-05-29 Tristan Gingold <gingold@adacore.com>
5909
5910 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5911 (struct darwin_info): ... New struct.
5912 (solib_darwin_pspace_data): New variable.
5913 (darwin_pspace_data_cleanup): New function.
5914 (get_darwin_info): Likewise.
5915 (darwin_dyld_version_ok, darwin_load_image_infos)
5916 (darwin_solib_get_all_image_info_addr_at_init)
5917 (darwin_solib_read_all_image_info_addr): Add info argument.
5918 Adjust code.
5919 (darwin_current_sos): Use per pspace structure.
5920 (darwin_solib_create_inferior_hook): Likewise.
5921 (darwin_clear_solib): Likewise.
5922 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5923
5924 2012-05-28 Pedro Alves <palves@redhat.com>
5925
5926 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5927 block that uses them. Clear ecss before handling each event.
5928
5929 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5930
5931 * solib-svr4.c (svr4_current_sos): New comment on
5932 svr4_current_sos_via_xfer_libraries fall back.
5933
5934 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5935
5936 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5937 it as a fallback for TYPE_IS_OPAQUE.
5938 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5939 symbols for lookup_symbol.
5940
5941 2012-05-24 John Steele Scott <toojays@toojays.net>
5942
5943 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5944 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5945 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5946 (check_producer): ... this new function, which also checks for ICC
5947 and caches the result.
5948 (producer_is_icc): New function.
5949 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5950 producer was ICC.
5951
5952 2012-05-24 Pedro Alves <palves@redhat.com>
5953
5954 PR gdb/7205
5955
5956 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5957 (default_gdb_signal_to_target): ... this. Add comment.
5958 (default_gdb_signal_from_host): Rename to ...
5959 (default_gdb_signal_from_target): ... this. Add comment.
5960 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5961 (default_gdb_signal_to_target): ... this.
5962 (default_gdb_signal_from_host): Rename to ...
5963 (default_gdb_signal_from_target): ... this.
5964 * corelow.c (core_open): Adjust to naming change. Replace comment.
5965 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5966 (gdb_signal_from_target): ... this. Adjust to
5967 default_gdb_signal_from_host naming change. Extend comment.
5968 (gdb_signal_to_host): Rename to ...
5969 (gdb_signal_to_target): ... this. Adjust to
5970 default_gdb_signal_to_host naming change.
5971 * gdbarch.h, gdbarch.c: Renegerate.
5972
5973 2012-05-24 Pedro Alves <palves@redhat.com>
5974
5975 PR gdb/7205
5976
5977 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5978
5979 2012-05-24 Pedro Alves <palves@redhat.com>
5980
5981 PR gdb/7205
5982
5983 Replace target_signal with gdb_signal throughout.
5984
5985 2012-05-24 Pedro Alves <palves@redhat.com>
5986
5987 PR tui/14159
5988
5989 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5990 string, instead of reusing the va_list argument.
5991
5992 2012-05-24 Tom Tromey <tromey@redhat.com>
5993
5994 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5995 Remove.
5996
5997 2012-05-23 Doug Evans <dje@google.com>
5998
5999 * symtab.c (search_symbols): Formatting fixes.
6000 (print_symbol_info): Formatting fixes.
6001
6002 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6003 int64_t change to leb128 API.
6004 (read_encoded_value, decode_frame_entry_1): Ditto.
6005 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6006 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6007 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6008 (execute_stack_op): Ditto.
6009 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6010 (safe_read_uleb128, safe_read_sleb128): Ditto.
6011 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6012 (dwarf2_compile_expr_to_ax): Ditto.
6013 (locexpr_describe_location_piece): Ditto.
6014 (disassemble_dwarf_expression): Ditto.
6015 (locexpr_describe_location_1): Ditto.
6016
6017 2012-05-23 Stan Shebs <stan@codesourcery.com>
6018 Kwok Cheung Yeung <kcy@codesourcery.com>
6019
6020 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6021 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6022 (mi-cmd-info.o): New rule.
6023 * osdata.h (info_osdata_command): New declaration.
6024 * osdata.c (info_osdata_command): Change to non-static.
6025 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6026 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6027 * mi/mi-cmd-info.c: New file.
6028
6029 2012-05-23 Doug Evans <dje@google.com>
6030
6031 * symtab.c (search_symbols): Pass NULL for file_matcher to
6032 expand_symtabs_matching if there are no files to match.
6033
6034 * gdbtypes.c (lookup_typename): Simplify.
6035
6036 2012-05-23 Pedro Alves <palves@redhat.com>
6037
6038 * arch-utils.h (default_target_signal_to_host): Delete.
6039 * arch-utils.c (default_target_signal_to_host): Delete.
6040 * gdbarch.sh (target_signal_to_host): Remove.
6041 * gdbarch.h, gdbarch.c: Regenerate.
6042
6043 2012-05-22 Doug Evans <dje@google.com>
6044
6045 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6046 "const gdb_byte *".
6047 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6048 (execute_cfa_program): Update to match API of leb128 functions.
6049 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6050 "const gdb_byte *".
6051 (read_unsigned_leb128, read_signed_leb128): Delete.
6052 (read_initial_length): Change type of buf argument to
6053 "const gdb_byte *".
6054 (read_encoded_value): Update to match API of leb128 functions.
6055 (decode_frame_entry): Change result to "const gdb_byte *", and
6056 similarly for "start" parameter.
6057 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6058 (dwarf2_build_frame_info): Change local frame_ptr to
6059 "const gdb_byte *".
6060 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6061 read_uleb128, read_sleb128. All callers updated.
6062 (safe_skip_leb128): New function.
6063 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6064 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6065 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6066 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6067 read_uleb128, read_sleb128.
6068 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6069 (execute_stack_op): Update to match API of leb128 functions.
6070 * dwarf2expr.h: #include "leb128.h".
6071 (read_uleb128, read_sleb128): Delete.
6072 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6073 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6074 * dwarf2loc.c (debug_loc_kind): New enum.
6075 (decode_debug_loc_addresses): New function.
6076 (decode_debug_loc_dwo_addresses): New function.
6077 (dwarf2_find_location_expression): Rewrite.
6078 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6079 (locexpr_describe_location_piece): Ditto.
6080 (disassemble_dwarf_expression): Ditto.
6081 (locexpr_describe_location_1): Ditto.
6082 (loclist_describe_location): Rewrite.
6083 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6084 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6085 (dwarf2_section_buffer_overflow_complaint): Renamed from
6086 dwarf2_macros_too_long_complaint. All callers updated.
6087 (skip_leb128): Delete.
6088 (init_cu_die_reader): Initialize reader->buffer_end.
6089 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6090 (skip_form_bytes): New arg buffer_end. All callers updated.
6091 Replace call to skip_leb128 with gdb_skip_leb128.
6092 (skip_unknown_opcode): New arg mac_end. All callers updated.
6093 (fill_in_loclist_baton): Initialize baton->from_dwo.
6094
6095 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6096
6097 * mips-linux-nat.c (mips_linux_read_description): Use a more
6098 verbose error message.
6099
6100 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6101
6102 * NEWS: Add MIPS/Linux DSP support.
6103 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6104 (SIGCONTEXT_DSPCTL): New macro.
6105 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6106 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6107 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6108 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6109 (N64_SIGCONTEXT_HI3): Likewise.
6110 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6111 (N64_SIGCONTEXT_LO3): Likewise.
6112 (N64_SIGCONTEXT_DSPCTL): Likewise.
6113 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6114 (mips_linux_o32_sigframe_init): Handle DSP registers.
6115 (mips_linux_n32n64_sigframe_init): Likewise.
6116
6117 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6118
6119 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6120 call to abort.
6121
6122 2012-05-22 Pedro Alves <palves@redhat.com>
6123
6124 * target.h (store_waitstatus): Move declaration ...
6125 * inf-child.h (store_waitstatus): ... here.
6126 * target.c: Move inclusion of gdb_wait.h, and ...
6127 (store_waitstatus): ... this ...
6128 * inf-child.c: ... here.
6129 * linux-nat.c: Include inf-child.h.
6130 * rs6000-nat.c: Include inf-child.h.
6131 * spu-linux-nat.c: Include inf-child.h.
6132
6133 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6134
6135 * tracepoint.c (start_tracing): Add missing i18n markup.
6136 (stop_tracing, set_trace_user): Ditto.
6137 (set_trace_notes, set_trace_stop_notes): Ditto.
6138
6139 2012-05-21 Tom Tromey <tromey@redhat.com>
6140
6141 PR c++/7173:
6142 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6143 types.
6144 * value.h (value_cast_pointers): Update.
6145 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6146 (value_cast): Update.
6147 (update_search_result): New function.
6148 (do_search_struct_field): New, from search_struct_field. Check
6149 for ambiguous results.
6150 (search_struct_field): Rewrite.
6151 * infcall.c (value_arg_coerce): Update.
6152 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6153 value_cast_pointers.
6154 * ada-lang.c (ada_convert_actual): Update.
6155
6156 2012-05-21 Tom Tromey <tromey@redhat.com>
6157
6158 * macroexp.c (macro_stringify): Terminate the string.
6159
6160 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6161
6162 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6163 Describe it.
6164 * auto-load.c (auto_load_expand_dir_vars): New function.
6165 (auto_load_safe_path_vec_update): Use it, remove the
6166 substitute_path_component call thanks to it.
6167 (auto_load_objfile_script): Remove the debug_file_directory processing.
6168 Use auto_load_expand_dir_vars, remove the substitute_path_component
6169 call thanks to it.
6170 * configure: Regenerate.
6171 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6172 path. Escape $ also for $debugdir.
6173 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6174 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6175
6176 2012-05-20 Doug Evans <dje@google.com>
6177
6178 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6179 before use. Check for symtab->includes == NULL before scanning it.
6180
6181 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6182
6183 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6184
6185 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6186
6187 * NEWS: Add microMIPS support and "set mips compression",
6188 "show mips compression" commands.
6189 * mips-tdep.h (mips_isa): New enum.
6190 (gdbarch_tdep): Add mips_isa.
6191 (mips_pc_is_mips16): Update prototype.
6192 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6193 * mips-tdep.c (mips_compression_mips16): New variable.
6194 (mips_compression_micromips): Likewise.
6195 (mips_compression_strings): Likewise.
6196 (mips_compression_string): Likewise.
6197 (is_mips16_isa, is_micromips_isa): New functions.
6198 (is_mips16_addr): Rename to...
6199 (is_compact_addr): ... this.
6200 (unmake_mips16_addr): Likewise to...
6201 (unmake_compact_addr): ... this.
6202 (make_mips16_addr): Likewise to...
6203 (make_compact_addr): ... this.
6204 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6205 functions.
6206 (mips_elf_make_msymbol_special): Handle microMIPS code.
6207 (msymbol_is_special): Rename to...
6208 (msymbol_is_mips16): ... this.
6209 (mips_make_symbol_special, mips_pc_is_mips16): Update
6210 accordingly.
6211 (msymbol_is_mips, msymbol_is_micromips): New functions.
6212 (mips16_to_32_reg): Rename to...
6213 (mips_reg3_to_reg): ... this.
6214 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6215 (mips_pc_isa): Likewise.
6216 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6217 code.
6218 (mips_fetch_instruction): Pass return status instead of printing
6219 an error message if requested. Handle microMIPS code. Bail out
6220 on an invalid ISA.
6221 (micromips_op): New macro.
6222 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6223 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6224 (b6s4_op, b7s3_reg): Likewise.
6225 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6226 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6227 (mips_insn_size): New function.
6228 (mips32_next_pc): Update mips_fetch_instruction call.
6229 (micromips_relative_offset7): New function.
6230 (micromips_relative_offset10): Likewise.
6231 (micromips_relative_offset16): Likewise.
6232 (micromips_pc_insn_size): Likewise.
6233 (micromips_bc1_pc): Likewise.
6234 (micromips_next_pc): Likewise.
6235 (unpack_mips16): Update mips_fetch_instruction call.
6236 (extended_mips16_next_pc): Update according to change to
6237 mips16_to_32_reg.
6238 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6239 code.
6240 (mips16_scan_prologue): Update mips_fetch_instruction call.
6241 Update according to change to mips16_to_32_reg.
6242 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6243 (mips_insn16_frame_base_sniffer): Likewise.
6244 (micromips_decode_imm9): New function.
6245 (micromips_scan_prologue): Likewise.
6246 (mips_micro_frame_cache): Likewise.
6247 (mips_micro_frame_this_id): Likewise.
6248 (mips_micro_frame_prev_register): Likewise.
6249 (mips_micro_frame_sniffer): Likewise.
6250 (mips_micro_frame_unwind): New variable.
6251 (mips_micro_frame_base_address): New function.
6252 (mips_micro_frame_base): New variable.
6253 (mips_micro_frame_base_sniffer): New function.
6254 (mips32_scan_prologue): Update mips_fetch_instruction call.
6255 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6256 rather than for MIPS16.
6257 (mips_insn32_frame_base_sniffer): Likewise.
6258 (mips_addr_bits_remove): Handle microMIPS code.
6259 (deal_with_atomic_sequence): Rename to...
6260 (mips_deal_with_atomic_sequence): ... this. Update the type
6261 of the variable used to hold an instruction. Remove the ISA bit
6262 check. Update mips_fetch_instruction call.
6263 (micromips_deal_with_atomic_sequence): New function.
6264 (deal_with_atomic_sequence): Likewise.
6265 (mips_about_to_return): Handle microMIPS code. Update
6266 mips_fetch_instruction call.
6267 (heuristic_proc_start): Check for the standard MIPS ISA rather
6268 than for MIPS16. Update mips_pc_is_mips16 and
6269 mips_fetch_instruction calls. Handle microMIPS code.
6270 (mips_push_dummy_code): Handle microMIPS code.
6271 (mips_eabi_push_dummy_call): Likewise.
6272 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6273 (mips_o64_push_dummy_call): Handle microMIPS code.
6274 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6275 (is_delayed): Remove function.
6276 (mips_single_step_through_delay): Replace the call to is_delayed
6277 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6278 Handle microMIPS code.
6279 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6280 microMIPS code.
6281 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6282 call.
6283 (micromips_in_function_epilogue_p): New function.
6284 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6285 call.
6286 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6287 Handle microMIPS.
6288 (gdb_print_insn_mips): Likewise.
6289 (mips_breakpoint_from_pc): Likewise.
6290 (mips_remote_breakpoint_from_pc): New function.
6291 (mips32_instruction_has_delay_slot): Simplify making use of the
6292 updated mips_fetch_instruction interface.
6293 (micromips_instruction_has_delay_slot): New function.
6294 (mips16_instruction_has_delay_slot): Simplify making use of the
6295 updated mips_fetch_instruction interface.
6296 (mips_adjust_breakpoint_address): Check for the standard MIPS
6297 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6298 calls. Handle microMIPS code.
6299 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6300 (mips_skip_trampoline_code): Handle microMIPS code.
6301 (global_mips_compression): New function.
6302 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6303 file flags. Register the microMIPS remote breakpoint handler
6304 and heuristic frame unwinder.
6305 (show_mips_compression): New function.
6306 (_initialize_mips_tdep): Add the "set mips compression" and
6307 "show mips compression" commands.
6308
6309 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6310
6311 * ada-lang.c:
6312 * ada-tasks.c:
6313 * ada-varobj.c:
6314 * amd64-darwin-tdep.c:
6315 * arm-symbian-tdep.c:
6316 * arm-tdep.c:
6317 * avr-tdep.c:
6318 * ax-gdb.c:
6319 * bfin-linux-tdep.c:
6320 * breakpoint.c:
6321 * c-valprint.c:
6322 * cli/cli-cmds.c:
6323 * coffread.c:
6324 * cp-support.c:
6325 * cris-tdep.c:
6326 * dwarf2-frame-tailcall.c:
6327 * dwarf2-frame.c:
6328 * dwarf2expr.c:
6329 * dwarf2loc.c:
6330 * dwarf2read.c:
6331 * elfread.c:
6332 * eval.c:
6333 * expprint.c:
6334 * f-valprint.c:
6335 * frv-tdep.c:
6336 * h8300-tdep.c:
6337 * hppa-hpux-tdep.c:
6338 * hppa-tdep.c:
6339 * hppanbsd-tdep.c:
6340 * i386-nto-tdep.c:
6341 * i386-tdep.c:
6342 * i387-tdep.c:
6343 * ia64-tdep.c:
6344 * jit.c:
6345 * linespec.c:
6346 * linux-tdep.c:
6347 * lm32-tdep.c:
6348 * m2-valprint.c:
6349 * m32c-tdep.c:
6350 * m32r-rom.c:
6351 * m32r-tdep.c:
6352 * m68k-tdep.c:
6353 * m68klinux-tdep.c:
6354 * mi/mi-main.c:
6355 * microblaze-tdep.c:
6356 * mips-linux-tdep.c:
6357 * mips-tdep.c:
6358 * mn10300-tdep.c:
6359 * p-valprint.c:
6360 * parse.c:
6361 * ppc-linux-tdep.c:
6362 * ppc-sysv-tdep.c:
6363 * printcmd.c:
6364 * python/py-finishbreakpoint.c:
6365 * python/py-inferior.c:
6366 * python/py-infthread.c:
6367 * python/py-type.c:
6368 * python/python.c:
6369 * remote-fileio.c:
6370 * remote-m32r-sdi.c:
6371 * remote-mips.c:
6372 * reverse.c:
6373 * rl78-tdep.c:
6374 * rs6000-aix-tdep.c:
6375 * rs6000-tdep.c:
6376 * s390-tdep.c:
6377 * score-tdep.c:
6378 * sh64-tdep.c:
6379 * skip.c:
6380 * solib-darwin.c:
6381 * solib-dsbt.c:
6382 * solib-frv.c:
6383 * sparc-tdep.c:
6384 * spu-multiarch.c:
6385 * spu-tdep.c:
6386 * stack.c:
6387 * symfile.c:
6388 * symtab.c:
6389 * tic6x-tdep.c:
6390 * tracepoint.c:
6391 * v850-tdep.c:
6392 * valarith.c:
6393 * valprint.c:
6394 * value.c:
6395 * xcoffread.c:
6396 * xtensa-tdep.c:
6397 * ada-lang.c:
6398 * ada-tasks.c:
6399 * ada-varobj.c:
6400 * amd64-darwin-tdep.c:
6401 * arm-symbian-tdep.c:
6402 * arm-tdep.c: Delete unused variables.
6403
6404 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6405
6406 Rename $ddir to $datadir.
6407 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6408 * auto-load.c (auto_load_safe_path_vec_update)
6409 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6410 * configure: Regenerate.
6411 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6412 Likewise. Remove the 'use $ddir' help string.
6413
6414 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6415
6416 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6417 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6418
6419 2012-05-18 Tom Tromey <tromey@redhat.com>
6420
6421 PR exp/13907:
6422 * valprint.h (struct value_print_options) <symbol_print>: New
6423 field.
6424 * valprint.c (user_print_options): Add default for symbol_print.
6425 (show_symbol_print): New function.
6426 (generic_val_print): Respect symbol_print.
6427 (_initialize_valprint): Add "print symbol" setting.
6428 * f-valprint.c (f_val_print): Respect symbol_print.
6429 * c-valprint.c (c_val_print): Respect symbol_print.
6430 * NEWS: Update.
6431 * printcmd.c (print_address_symbolic): Return int. Ignore some
6432 zero-size symbols.
6433 (print_address_demangle): Return int.
6434 * defs.h: (print_address_symbolic): Return int.
6435 * value.h (print_address_demangle): Return int.
6436
6437 2012-05-18 Tom Tromey <tromey@redhat.com>
6438
6439 * valprint.c (val_print_string): Don't print leading space.
6440 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6441 print space before string or vtbl.
6442 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6443 before string.
6444 * jv-valprint.c (java_value_print): Print space before string.
6445 * go-valprint.c (print_go_string): Print space before string.
6446 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6447 space before string.
6448 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6449 space before string or vtbl.
6450 * auxv.c (fprint_target_auxv): Print space after address.
6451
6452 2012-05-18 Tom Tromey <tromey@redhat.com>
6453
6454 * printcmd.c (print_address_demangle): Remove special case for 0.
6455
6456 2012-05-18 Tom Tromey <tromey@redhat.com>
6457
6458 * printcmd.c (print_address_demangle): Add 'opts' argument.
6459 * p-valprint.c (pascal_val_print): Update.
6460 * jv-valprint.c (java_val_print): Update.
6461 * value.h: Update.
6462 * valprint.c (generic_val_print): Update.
6463 (print_function_pointer_address): Add 'options' argument. Remove
6464 'addressprint' argument. Update.
6465 * m2-valprint.c (print_unpacked_pointer): Update.
6466 * gnu-v3-abi.c (print_one_vtable): Update.
6467 (gnuv3_print_method_ptr): Update.
6468 * f-valprint.c (f_val_print): Update.
6469 * cp-valprint.c (cp_print_value_fields): Update.
6470 * valprint.h (print_function_pointer_address): Update.
6471 * c-valprint.c (c_val_print): Update.
6472
6473 2012-05-18 Tom Tromey <tromey@redhat.com>
6474
6475 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6476 directly corresponding to the found psymtab.
6477 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6478 (dw2_find_pc_sect_symtab): Use it.
6479 * block.h (blockvector_contains_pc): Declare.
6480 * block.c (find_block_in_blockvector): New function.
6481 (blockvector_for_pc_sect): Use it.
6482 (blockvector_contains_pc): New function.
6483
6484 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6485
6486 * mips-tdep.h (mips_write_pc): New prototype.
6487 * mips-tdep.c (mips_write_pc): Make external, add description.
6488 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6489 add description.
6490
6491 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6492
6493 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6494 mips_regnum->pc.
6495 (mips_unwind_pc, mips_write_pc): Likewise.
6496 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6497 gdbarch_read_pc.
6498
6499 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6500
6501 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6502 proc_warn, proc_error, proc_get_status, proc_flags,
6503 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6504 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6505 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6506 proc_stop_process, proc_wait_for_stop, proc_run_process,
6507 proc_set_traced_signals, proc_set_traced_faults,
6508 proc_set_traced_sysentry, proc_set_traced_sysexit,
6509 proc_set_held_signals, proc_get_held_signals,
6510 proc_get_traced_signals, proc_get_traced_faults,
6511 proc_get_traced_sysentry, proc_get_traced_sysexit,
6512 proc_clear_current_fault, proc_set_current_signal,
6513 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6514 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6515 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6516 proc_get_current_thread, proc_get_current_thread,
6517 proc_get_current_thread, proc_update_threads,
6518 proc_update_threads, proc_update_threads, proc_update_threads,
6519 proc_iterate_over_threads, procfs_find_new_threads,
6520 procfs_pid_to_str): Make static. Remove advance declaration.
6521 (proc_cursig): Make static. Conditionalized defintion on
6522 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6523 (proc_syscall, proc_set_kill_on_last_close,
6524 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6525 proc_get_pending_signals, proc_get_signal_actions,
6526 proc_trace_signal, proc_ignore_signal): Delete.
6527
6528 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6529
6530 * coffread.c (cs_section_address): Passing proper argument for
6531 `bfd_get_section_vma'.
6532 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6533 `bfd_get_section_flags'.
6534 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6535 `bfd_get_section_vma'.
6536
6537 2012-05-16 Tom Tromey <tromey@redhat.com>
6538
6539 PR macros/13205:
6540 * macrotab.h: (macro_define_special): Declare.
6541 (enum macro_special_kind): New.
6542 (struct macro_definition) <argc, replacement>: Update comments.
6543 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6544 (macro_define_object_internal): New function.
6545 (macro_define_object): Use it.
6546 (macro_define_special): New function.
6547 (fixup_definition): New function.
6548 (macro_lookup_definition, foreach_macro_in_scope)
6549 (foreach_macro): Use fixup_definition.
6550 * macroexp.h (macro_stringify): Declare.
6551 * macroexp.c (free_buffer_return_text): New function.
6552 (stringify): Constify "arg".
6553 (macro_stringify): New function.
6554 * dwarf2read.c (macro_start_file): Call macro_define_special.
6555
6556 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6557 Maciej W. Rozycki <macro@mips.com>
6558
6559 * breakpoint.h (bp_location): Add related_address member.
6560 * inferior.h (get_return_value): Take a pointer to struct value
6561 instead of struct type for the function requested.
6562 * value.h (using_struct_return): Likewise.
6563 * gdbarch.sh (return_value): Take a pointer to struct value
6564 instead of struct type for the function requested.
6565 * breakpoint.c (set_breakpoint_location_function): Initialize
6566 related_address for bp_gnu_ifunc_resolver breakpoints.
6567 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6568 requested function's address to gdbarch_return_value.
6569 * eval.c (evaluate_subexp_standard): Pass the requested
6570 function's address to using_struct_return.
6571 * infcall.c (call_function_by_hand): Pass the requested
6572 function's address to using_struct_return and
6573 gdbarch_return_value.
6574 * infcmd.c (get_return_value): Take a pointer to struct value
6575 instead of struct type for the function requested.
6576 (print_return_value): Update accordingly.
6577 (finish_command_continuation): Likewise.
6578 * stack.c (return_command): Pass the requested function's
6579 address to using_struct_return and gdbarch_return_value.
6580 * value.c (using_struct_return): Take a pointer to struct value
6581 instead of struct type for the function requested. Pass the
6582 requested function's address to gdbarch_return_value.
6583 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6584 New function_value member, replacing function_type.
6585 (bpfinishpy_dealloc): Update accordingly.
6586 (bpfinishpy_pre_stop_hook): Likewise.
6587 (bpfinishpy_init): Likewise. Record the requested function's
6588 address.
6589 * mips-tdep.c (mips_fval_reg): New enum.
6590 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6591 words put in GP registers.
6592 (mips_o64_push_dummy_call): Update a comment.
6593 (mips_o32_return_value): Take a pointer to struct value instead
6594 of struct type for the function requested and use it to check if
6595 using the MIPS16 calling convention. Return the designated
6596 general purpose registers for floating-point values returned in
6597 MIPS16 mode.
6598 (mips_o64_return_value): Likewise.
6599 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6600 (ppc_sysv_abi_broken_return_value): Likewise.
6601 (ppc64_sysv_abi_return_value): Likewise.
6602 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6603 value instead of struct type for the function requested.
6604 * amd64-tdep.c (amd64_return_value): Likewise.
6605 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6606 * arm-tdep.c (arm_return_value): Likewise.
6607 * avr-tdep.c (avr_return_value): Likewise.
6608 * bfin-tdep.c (bfin_return_value): Likewise.
6609 * cris-tdep.c (cris_return_value): Likewise.
6610 * frv-tdep.c (frv_return_value): Likewise.
6611 * h8300-tdep.c (h8300_return_value): Likewise.
6612 (h8300h_return_value): Likewise.
6613 * hppa-tdep.c (hppa32_return_value): Likewise.
6614 (hppa64_return_value): Likewise.
6615 * i386-tdep.c (i386_return_value): Likewise.
6616 * ia64-tdep.c (ia64_return_value): Likewise.
6617 * iq2000-tdep.c (iq2000_return_value): Likewise.
6618 * lm32-tdep.c (lm32_return_value): Likewise.
6619 * m32c-tdep.c (m32c_return_value): Likewise.
6620 * m32r-tdep.c (m32r_return_value): Likewise.
6621 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6622 * m68k-tdep.c (m68k_return_value): Likewise.
6623 (m68k_svr4_return_value): Likewise.
6624 * m88k-tdep.c (m88k_return_value): Likewise.
6625 * mep-tdep.c (mep_return_value): Likewise.
6626 * microblaze-tdep.c (microblaze_return_value): Likewise.
6627 * mn10300-tdep.c (mn10300_return_value): Likewise.
6628 * moxie-tdep.c (moxie_return_value): Likewise.
6629 * mt-tdep.c (mt_return_value): Likewise.
6630 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6631 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6632 (ppc_sysv_abi_broken_return_value): Likewise.
6633 (ppc64_sysv_abi_return_value): Likewise.
6634 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6635 * rl78-tdep.c (rl78_return_value): Likewise.
6636 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6637 * rx-tdep.c (rx_return_value): Likewise.
6638 * s390-tdep.c (s390_return_value): Likewise.
6639 * score-tdep.c (score_return_value): Likewise.
6640 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6641 (sh_return_value_fpu): Likewise.
6642 * sh64-tdep.c (sh64_return_value): Likewise.
6643 * sparc-tdep.c (sparc32_return_value): Likewise.
6644 * sparc64-tdep.c (sparc64_return_value): Likewise.
6645 * spu-tdep.c (spu_return_value): Likewise.
6646 * tic6x-tdep.c (tic6x_return_value): Likewise.
6647 * v850-tdep.c (v850_return_value): Likewise.
6648 * vax-tdep.c (vax_return_value): Likewise.
6649 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6650 * xtensa-tdep.c (xtensa_return_value): Likewise.
6651 * gdbarch.c: Regenerate.
6652 * gdbarch.h: Regenerate.
6653
6654 2012-05-15 Tom Tromey <tromey@redhat.com>
6655
6656 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6657
6658 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6659
6660 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6661 of command in two error message.
6662
6663 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6664
6665 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6666
6667 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6668
6669 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6670
6671 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6672
6673 * NEWS (show auto-load scripts-directory): Add forgotten command.
6674
6675 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6676
6677 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6678 parameters.
6679
6680 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6681
6682 * amd64-tdep.c: Include features/i386/x32.c and
6683 features/i386/x32-avx.c.
6684 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6685 initialize_tdesc_x32_avx.
6686
6687 2012-05-14 Stan Shebs <stan@codesourcery.com>
6688
6689 Add dynamic printf.
6690 * breakpoint.h (enum bptype): New type bp_dprintf.
6691 (struct breakpoint): New field extra_string.
6692 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6693 (create_breakpoint): Add extra_string arg.
6694 * breakpoint.c (dprintf_breakpoint_ops): New.
6695 (is_breakpoint): Add bp_dprintf.
6696 (bpstat_what): Add dprintf case.
6697 (bptype_string): Ditto.
6698 (print_one_breakpoint_location): Ditto.
6699 (init_bp_location): Ditto.
6700 (bkpt_print_mention): Ditto.
6701 (dprintf_style_enums): New array.
6702 (dprintf_style): New global.
6703 (dprintf_function): New global.
6704 (dprintf_channel): New global.
6705 (update_dprintf_command_list): New function.
6706 (update_dprintf_commands): New function.
6707 (init_breakpoint_sal): Add extra_string argument, handle it.
6708 (create_breakpoint_sal): Add extra_string argument.
6709 (create_breakpoints_sal): Add extra_string argument, update callers.
6710 (find_condition_and_thread): Add extra argument.
6711 (create_breakpoint): Add extra_string argument, record it.
6712 (dprintf_command): New function.
6713 (break_command_1): Add arg to create_breakpoint call.
6714 (handle_gnu_v3_exceptions): Ditto.
6715 (trace_command): Ditto.
6716 (ftrace_command): Ditto.
6717 (strace_command): Ditto.
6718 (bkpt_print_mention): Add dprintf case.
6719 (create_breakpoint_sal_default): Add extra_string argument.
6720 (_initialize_breakpoint): Add new commands.
6721 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6722 * python/py-breakpoint.c (bppy_init): Ditto.
6723 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6724
6725 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6726
6727 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6728
6729 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6730
6731 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6732 unsigned long long.
6733
6734 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6735
6736 Add a new function gdb.find_pc_line to the Python API.
6737 * NEWS (Python Scripting): Add entry about the new function.
6738 * python/python.c (gdbpy_find_pc_line): New function which
6739 implements gdb.find_pc_line.
6740 (GdbMethods): Add entry for the new function.
6741
6742 2012-05-12 Pedro Alves <palves@redhat.com>
6743
6744 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6745 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6746
6747 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6748
6749 * inferior.c: Include completer.h
6750 (initialize_inferiors): Set completer of add-inferior to
6751 filename_completer.
6752
6753 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6754
6755 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6756 gdbarch_ptr_bit for x32 core dump.
6757
6758 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6759
6760 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6761 and features/i386/x32-avx-linux.c.
6762
6763 2012-05-11 Stan Shebs <stan@codesourcery.com>
6764 Kwok Cheung Yeung <kcy@codesourcery.com>
6765
6766 * NEWS: Describe new info os commands.
6767 * common/linux-osdata.c (PID_T, TIME_T): Define.
6768 (MAX_PID_T_STRLEN): New.
6769 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6770 MAX_PID_T_STRLEN.
6771 (command_from_pid): Add comment. Change to use PID_T.
6772 (commandline_from_pid): Change to use PID_T.
6773 (user_from_pid): Add comment.
6774 (get_process_owner): Add comment. Change to use PID_T and
6775 MAX_PID_T_STRLEN.
6776 (get_number_of_cpu_cores): Add comment.
6777 (get_cores_used_by_process): Add comment. Change to use PID_T and
6778 MAX_PID_T_STRLEN.
6779 (linux_xfer_osdata_processes): Change to use PID_T and
6780 MAX_PID_T_STRLEN.
6781 (compare_processes): New function.
6782 (linux_xfer_osdata_processgroups): New function.
6783 (linux_xfer_osdata_threads): Change to use PID_T.
6784 (linux_xfer_osdata_fds): New function.
6785 (format_socket_state, print_sockets): New functions.
6786 (union socket_addr): New union.
6787 (linux_xfer_osdata_isockets): New function.
6788 (time_from_time_t, group_from_gid): New functions.
6789 (linux_xfer_osdata_shm): New function.
6790 (linux_xfer_osdata_sem): New function.
6791 (linux_xfer_osdata_msg): New function.
6792 (linux_xfer_osdata_modules): New function.
6793 (osdata_table): Add new entries.
6794 * common/buffer.c (buffer_xml_printf): Add support for long and
6795 long long format specifiers.
6796
6797 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6798
6799 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6800 (tdesc_x32_avx_linux): Likewise.
6801
6802 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6803
6804 Implement multi-component --with-auto-load-dir.
6805 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6806 entries.
6807 (--with-auto-load-safe-path): Update the default value description.
6808 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6809 New.
6810 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6811 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6812 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6813 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6814 "set auto-load scripts-directory".
6815 * config.in: Regenerate.
6816 * configure: Regenerate.
6817 * configure.ac (--with-auto-load-dir): New configure option.
6818 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6819
6820 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6821
6822 Provide $ddir substitution for --with-auto-load-safe-path.
6823 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6824 entries.
6825 * auto-load.c: Include observer.h.
6826 (auto_load_safe_path_vec_update): Call substitute_path_component for
6827 each component. New variable ddir_subst.
6828 (auto_load_gdb_datadir_changed): New function.
6829 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6830 AUTO_LOAD_SAFE_PATH. New comment.
6831 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6832 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6833 * config.in: Regenerate.
6834 * configure: Regenerate.
6835 * configure.ac (--auto-load-safe-path): Rename
6836 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6837 GDB_DATADIR/auto-load.
6838 * defs.h (substitute_path_component): New declaration.
6839 * top.c: Include observer.h.
6840 (set_gdb_datadir): New function.
6841 (init_main): Install it for "set data-directory".
6842 * utils.c (substitute_path_component): New function.
6843
6844 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6845
6846 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6847 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6848 DEBUG_FILE_DIRECTORY. Handle multiple components of
6849 DEBUG_FILE_DIRECTORY.
6850
6851 2012-05-10 Tom Tromey <tromey@redhat.com>
6852
6853 * dwarf2read.c (recursively_write_psymbols): New function.
6854 (write_psymtabs_to_index): Use it.
6855
6856 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6857 field.
6858 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6859 (load_partial_comp_unit): Update.
6860 (queue_comp_unit): Add argument 'pretend_language'.
6861 (process_queue): Update.
6862 (psymtab_to_symtab_1): Skip dependencies that have a user.
6863 (load_partial_comp_unit_reader): Give meaning to the 'data'
6864 argument.
6865 (load_full_comp_unit): Add 'pretend_language' argument.
6866 (process_full_comp_unit): Add 'pretend_language' argument. Set
6867 language on CU.
6868 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6869 Update.
6870 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6871 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6872 Update.
6873 (prepare_one_comp_unit): Add 'pretend_language' argument.
6874
6875 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6876 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6877 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6878 (dw2_do_instantiate_symtab): Check whether symtab was read in
6879 before queueing.
6880 (dw2_instantiate_symtab): Add assertion. Call
6881 process_cu_includes.
6882 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6883 (partial_symtab_p): New typedef.
6884 (set_partial_user): New function.
6885 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6886 (scan_partial_symbols): Add imported CU to imported_symtabs.
6887 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6888 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6889 (get_symtab, recursively_compute_inclusions)
6890 (compute_symtab_includes, process_cu_includes)
6891 (process_imported_unit_die): New functions.
6892 (process_die) <DW_TAG_imported_unit>: New case.
6893 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6894
6895 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6896 comment.
6897 (struct partial_die_info) <locdesc>: Remove.
6898 <d>: New field.
6899 (process_psymtab_comp_unit): Add 'read_partial' argument.
6900 Update.
6901 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6902 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6903 (add_partial_symbol): Update.
6904 (process_die): Handle DW_TAG_partial_unit.
6905 (read_file_scope): Update comment.
6906 (load_partial_dies): Handle DW_TAG_imported_unit.
6907 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6908 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6909
6910 2012-05-10 Tom Tromey <tromey@redhat.com>
6911
6912 * cc-with-dwz.sh: New file.
6913
6914 2012-05-10 Tom Tromey <tromey@redhat.com>
6915
6916 * symtab.h (struct symtab) <includes, user>: New fields.
6917 * block.h (struct block_iterator) <d, idx, which>: New fields.
6918 * block.c (initialize_block_iterator, find_iterator_symtab)
6919 (block_iterator_step, block_iter_name_step)
6920 (block_iter_match_step): New functions.
6921 (block_iterator_first, block_iterator_next)
6922 (block_iter_name_first, block_iter_name_next)
6923 (block_iter_match_first, block_iter_match_next): Rewrite.
6924 (get_block_symtab): New function.
6925
6926 2012-05-10 Tom Tromey <tromey@redhat.com>
6927
6928 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6929 set_block_symtab.
6930 * jit.c (finalize_symtab): Use allocate_global_block,
6931 set_block_symtab.
6932 * buildsym.c (finish_block_internal): New function, from old
6933 finish_block.
6934 (finish_block): Rewrite.
6935 (end_symtab): Use finish_block_internal, set_block_symtab.
6936 * block.h (struct global_block): New.
6937 (allocate_global_block, set_block_symtab): Declare.
6938 * block.c (allocate_global_block, set_block_symtab): New
6939 functions.
6940
6941 2012-05-10 Tom Tromey <tromey@redhat.com>
6942
6943 * psymtab.c (partial_map_expand_apply): Add assertion.
6944 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6945 (psymtab_to_symtab): Find unshared psymtab.
6946 (dump_psymtab): Print including psymtabs.
6947 (recursively_search_psymtabs): New function.
6948 (expand_symtabs_matching_via_partial): Use it.
6949 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6950 fields.
6951 (enum psymtab_search_status): New.
6952
6953 2012-05-10 Tom Tromey <tromey@redhat.com>
6954
6955 * tracepoint.c (scope_info): Update.
6956 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6957 (find_pc_sect_symtab, search_symbols)
6958 (default_make_symbol_completion_list_break_on)
6959 (make_file_symbol_completion_list): Update.
6960 * symmisc.c (dump_symtab_1): Update.
6961 * stack.c (print_frame_args, iterate_over_block_locals)
6962 (print_frame_labels, iterate_over_block_arg_vars): Update.
6963 * python/py-block.c (block_object) <dict>: Remove.
6964 <block>: New field.
6965 <iter>: Change type.
6966 (blpy_iter): Update.
6967 (blpy_block_syms_iternext): Update.
6968 * psymtab.c (map_block): Use block iterators.
6969 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6970 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6971 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6972 * infrun.c (check_exception_resume): Update.
6973 * cp-support.c (make_symbol_overload_list_block): Update.
6974 * coffread.c (patch_opaque_types): Update.
6975 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6976 * block.h (struct block_iterator): New.
6977 (block_iterator_first, block_iterator_next, block_iter_name_first)
6978 (block_iter_name_next, block_iter_match_first)
6979 (block_iter_match_next): Declare.
6980 (ALL_BLOCK_SYMBOLS): Redefine.
6981 * block.c (block_iterator_first, block_iterator_next)
6982 (block_iter_name_first, block_iter_name_next)
6983 (block_iter_match_first, block_iter_match_next): New functions.
6984 * ada-lang.c (ada_add_block_symbols)
6985 (ada_make_symbol_completion_list): Use block iterator.
6986
6987 2012-05-10 Tom Tromey <tromey@redhat.com>
6988
6989 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6990 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6991 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6992 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6993 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6994 Update.
6995
6996 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6997
6998 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6999 print-file-var-lib2.c, print-file-var-main.c and
7000 print-file-var.exp (located in gdb/testsuite/gdb.base).
7001
7002 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7003
7004 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7005 try locating the symbol in the symbol's own objfile first, before
7006 extending the search to all objfiles.
7007 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7008 out of lookup_symbol_aux_symtabs.
7009 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7010 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7011 Do not search EXCLUDE_OBJFILE.
7012 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7013 (lookup_symbol_global): Search for matches in the block's objfile
7014 first, before searching all other objfiles.
7015
7016 2012-05-10 Tristan Gingold <gingold@adacore.com>
7017
7018 * printcmd.c (set_command): Add pre/post inc/dec.
7019
7020 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7021
7022 * gdb.1: Document -ex option.
7023
7024 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7025
7026 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7027 * inferior.h (AT_SYMBOL): Delete.
7028
7029 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7030
7031 * mips-tdep.c (mips_push_dummy_code): New function.
7032 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7033 ON_STACK and install mips_push_dummy_code as our gdbarch
7034 push_dummy_code routine.
7035
7036 2012-05-09 Pedro Alves <palves@redhat.com>
7037
7038 * target.c (set_maintenance_target_async_permitted): Rename to ...
7039 (set_target_async_command): ... this.
7040 (show_maintenance_target_async_permitted): Rename to ...
7041 (show_target_async_command): ... this.
7042 (initialize_targets): Adjust.
7043
7044 2012-05-08 Doug Evans <dje@google.com>
7045
7046 * go-exp.y (classify_name): Add missing assignment of fields of
7047 yylval.ssym.
7048
7049 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7050
7051 Display the ">" prompt in interactive mode while reading canned
7052 commands, even when the current interpreter is MI.
7053
7054 * interps.c (interp_set_temp): New function.
7055
7056 * interps.h (interp_set_temp): Add prototype.
7057
7058 * cli/cli-script.c (restore_interp): New cleanup function.
7059 (read_command_lines): Temporarily override the current interpreter
7060 with CLI and arrange for restoring the original one.
7061
7062 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7063
7064 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7065
7066 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7067
7068 * probe.c (parse_probes): Move conditional to check for
7069 debuginfo files from here...
7070 * stap-probe.c (stap_get_probes): ... to here.
7071
7072 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7073 H.J. Lu <hongjiu.lu@intel.com>
7074
7075 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7076 `movl %esp, %ebp' for the X32 ABI.
7077
7078 2012-05-07 Tom Tromey <tromey@redhat.com>
7079
7080 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7081 get_DW_TAG_name.
7082 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7083 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7084 (dwarf_stack_op_name): Remove.
7085 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7086 (decode_locdesc): Use get_DW_OP_name.
7087 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7088 (dwarf2_compile_expr_to_ax): Likewise.
7089 (disassemble_dwarf_expression): Likewise.
7090 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7091
7092 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7093
7094 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7095 (sh_linux_sigtramp_cache): New function.
7096 (sh_linux_sigreturn_init): New function.
7097 (sh_linux_rt_sigreturn_init): New function.
7098 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7099 patterns.
7100 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7101 syscall codes.
7102 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7103 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7104 (sh_linux_init_abi): Add init calls to register new tramp_frame
7105 definitions under 32-bit SH, update comments.
7106
7107 2012-05-07 Pedro Alves <palves@redhat.com>
7108
7109 PR gdb/10952
7110
7111 * amd64-linux-tdep.c: Include glibc-tdep.h.
7112 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7113 gdbarch_skip_solib_resolver callback.
7114
7115 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7116
7117 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7118 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7119 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7120 (add_auto_load_safe_path): Change the error message.
7121 (_initialize_auto_load): Change the "safe-path" help text.
7122 * configure: Regenerate
7123 * configure.ac (--without-auto-load-safe-path): Set
7124 WITH_AUTO_LOAD_SAFE_PATH to /.
7125
7126 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7127
7128 * stap-probe.h: Do not include unecessary `probe.h'.
7129
7130 2012-05-05 Alan Modra <amodra@gmail.com>
7131
7132 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7133 bfd_und_section_ptr.
7134 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7135 and bfd_com_section_ptr.
7136
7137 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7138
7139 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7140
7141 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7142
7143 * windows-nat.h (segment_register_p_ftype): New typedef.
7144 (windows_set_segment_register_p): Add declaration.
7145 * windows-nat.c (segment_register_p): New static global.
7146 (windows_set_segment_register_p): New function.
7147 (do_windows_fetch_inferior_registers): Add special handling
7148 for segment registers.
7149 * amd64-windows-nat.c: #include "amd64-tdep.h".
7150 (amd64_windows_segment_register_p): New function.
7151 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7152 * i386-windows-nat.c: #include "i386-tdep.h".
7153 (i386_windows_segment_register_p): New function.
7154 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7155
7156 2012-05-04 Tristan Gingold <gingold@adacore.com>
7157
7158 * printcmd.c (set_command): Emit a warning if the expression is not
7159 an assignment.
7160
7161 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7162
7163 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7164 Make static.
7165
7166 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7167
7168 * stap-probe.c (stap_is_operator): Change declaration.
7169 (stap_get_opcode): Change return value.
7170 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7171 `stap_parse_argument_1'.
7172
7173 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7174
7175 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7176 debug log.
7177
7178 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7179
7180 Add two new methods global_block and static_block to gdb.Symtab
7181 objects.
7182 * NEWS (Python scripting): Add entry about the new methods.
7183 * python/py-symtab.c (stpy_global_block): New function which
7184 implements the gdb.Symtab.global_block() method.
7185 (stpy_static_block): New function which implements the
7186 gdb.Symtab.static_block() method.
7187 (symtab_object_methods): Add entries for the two new methods.
7188
7189 2012-05-03 Doug Evans <dje@google.com>
7190
7191 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7192 files.
7193
7194 2012-05-03 Yao Qi <yao@codesourcery.com>
7195
7196 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7197 space.
7198 (i386_process_record): Ditto.
7199
7200 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7201
7202 * infcall.c (unwind_on_signal_p): Make static.
7203
7204 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7205
7206 * sol-thread.c (solaris_pid_to_str): Make static.
7207 (_initialize_sol_thread): Add prototype.
7208
7209 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7210
7211 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7212
7213 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7214
7215 * MAINTAINERS: Remove myself.
7216
7217 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7218
7219 Fix --without-auto-load-safe-path for MS-Windows host platform.
7220 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7221
7222 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7223
7224 * gdb_curses.h: Undefine KEY_EVENT before including curses
7225 headers. Move "#undef MOUSE_MOVED" before any curses header
7226 inclusion.
7227
7228 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7229
7230 * features/i386/i386-mmx-linux.c: Regenerate.
7231 * features/rs6000/powerpc-32.c: Likewise.
7232 * features/rs6000/powerpc-32l.c: Likewise.
7233 * features/rs6000/powerpc-403.c: Likewise.
7234 * features/rs6000/powerpc-403gc.c: Likewise.
7235 * features/rs6000/powerpc-405.c: Likewise.
7236 * features/rs6000/powerpc-505.c: Likewise.
7237 * features/rs6000/powerpc-601.c: Likewise.
7238 * features/rs6000/powerpc-602.c: Likewise.
7239 * features/rs6000/powerpc-603.c: Likewise.
7240 * features/rs6000/powerpc-604.c: Likewise.
7241 * features/rs6000/powerpc-64.c: Likewise.
7242 * features/rs6000/powerpc-64l.c: Likewise.
7243 * features/rs6000/powerpc-750.c: Likewise.
7244 * features/rs6000/powerpc-860.c: Likewise.
7245 * features/rs6000/powerpc-e500.c: Likewise.
7246 * features/rs6000/powerpc-e500l.c: Likewise.
7247 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7248 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7249 * features/rs6000/rs6000.c: Likewise.
7250
7251 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7252
7253 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7254 variable.
7255 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7256 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7257 (stap_parse_argument) <e>: Likewise.
7258 (handle_stap_probe) <byte_order>: Likewise.
7259
7260 2012-04-30 Doug Evans <dje@google.com>
7261
7262 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7263 init_and_read_dies_worker. All callers updated.
7264 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7265 replaced with init_cutu_and_read_dies.
7266 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7267 (find_partial_die): Remove FIXME. Don't free current CU.
7268
7269 2012-04-30 Sterling Augustine <saugustine@google.com>
7270
7271 * contrib: New directory.
7272 * contrib/test_pubnames_and_indexes.py: New file.
7273
7274 2012-04-30 Doug Evans <dje@google.com>
7275
7276 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7277 All callers updated.
7278 (init_cu_die_reader): Verify the section is non-empty.
7279 (dwarf_decode_line_header): Don't dereference section->asection
7280 until we know the section is present.
7281
7282 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7283
7284 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7285 probes.
7286
7287 2012-04-29 Yao Qi <yao@codesourcery.com>
7288
7289 * gdb-code-style.el: New hook gdb-markup-hook
7290 and gdb-comment-hook.
7291
7292 2012-04-28 Doug Evans <dje@google.com>
7293
7294 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7295 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7296 objfile->obfd.
7297 * symfile.h (dwarf2_debug_sections): New member addr.
7298 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7299 (ctx_no_get_addr_index): New function.
7300 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7301 (ctx_no_get_addr_index): Declare.
7302 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7303 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7304 (dwarf_expr_ctx_funcs): Update.
7305 (needs_get_addr_index): New function.
7306 (needs_frame_ctx_funcs): Update.
7307 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7308 * dwarf2read.c: #include "gdbcore.h".
7309 (dwarf2_per_objfile): New members addr, dwo_files.
7310 (dwarf2_elf_names): Add entry for addr.
7311 (struct dwo_section_names): New type.
7312 (dwo_section_names): New static global.
7313 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7314 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7315 old debug_types_section member updated to use this.
7316 Rename member debug_types_section to info_or_types_section,
7317 all uses updated.
7318 (signatured_type): Rename member type_offset to type_offset_in_tu,
7319 all uses updated. New member type_offset_in_section.
7320 (struct dwo_sections): New type.
7321 (struct dwo_unit): New type.
7322 (struct dwo_file): New type.
7323 (die_reader_specs): New member dwo_file.
7324 (dwarf2_locate_sections): Watch for .debug_addr.
7325 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7326 (dwarf2_read_section): Get bfd of section from bfd's asection,
7327 instead of objfile.
7328 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7329 (create_signatured_type_table_from_index): Initialize
7330 sig_type->info_or_types_section.
7331 (dw2_get_file_names): Statement lists for type units with DWO files
7332 live in the DWO file.
7333 (create_debug_types_hash_table): New function.
7334 (create_all_type_units): Rewrite.
7335 (init_cu_die_reader): New arg dwo_file, all callers updated.
7336 (init_and_read_dies_worker): Get section from
7337 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7338 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7339 continue reading the CU/TU from there.
7340 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7341 updated. Get section from this_cu->info_or_types_section.
7342 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7343 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7344 DW_FORM_GNU_str_index.
7345 (hash_dwo_file, eq_dwo_file): New functions.
7346 (allocate_dwo_file_hash_table): New function.
7347 (hash_dwo_unit, eq_dwo_unit): New functions.
7348 (allocate_dwo_unit_table): New function.
7349 (dwarf2_locate_dwo_sections): New function.
7350 (struct create_dwo_info_table_data): New type.
7351 (create_debug_info_hash_table_reader): New function.
7352 (create_debug_info_hash_table): New function.
7353 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7354 (lookup_dwo_file): New function.
7355 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7356 (free_dwo_file, free_dwo_file_cleanup): New functions.
7357 (free_dwo_file_from_slot, free_dwo_files): New functions.
7358 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7359 (dwarf2_record_block_ranges): Ditto.
7360 (read_partial_die): Ditto.
7361 (process_enumeration_scope): Update to use type_offset_in_section.
7362 (read_full_die_1): New function.
7363 (read_full_die): Rewrite.
7364 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7365 DW_FORM_GNU_str_index.
7366 (read_addr_index_1, read_addr_index): New functions.
7367 (read_addr_index_from_leb128): New function.
7368 (struct dwarf2_read_addr_index_data): New type.
7369 (dwarf2_read_addr_index_reader): New function.
7370 (dwarf2_read_addr_index): New function.
7371 (read_str_index): New function.
7372 (leb128_size): New function.
7373 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7374 If processing a type unit from a DWO file, get the line section
7375 from the DWO file.
7376 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7377 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7378 DW_FORM_GNU_str_index.
7379 (lookup_die_type): Check whether section offset of type's die is
7380 known before looking it up. Remove assert. Condition can
7381 legimately happen for inter-cu type references.
7382 (dwarf_attr_name): Handle Fission attributes.
7383 (dwarf_form_name): Handle Fission forms.
7384 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7385 DW_FORM_GNU_str_index.
7386 (follow_die_sig): Update to use type_offset_in_section.
7387 (decode_locdesc): New case DW_OP_GNU_addr_index.
7388 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7389 DW_FORM_GNU_str_index.
7390 (cu_debug_loc_section): New function.
7391 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7392 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7393 Free DWO files if present.
7394 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7395
7396 Refactor DIE reading.
7397 * dwarf2read.c (dwarf2_per_objfile): Replace members
7398 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7399 (die_reader_specs): New member "die_section". Temporarily make
7400 member "buffer" non-const, pending constifying all info_ptr uses.
7401 (die_reader_func_ftype): New typedef.
7402 (dw2_get_file_names_reader): New function.
7403 (dw2_get_file_names): Rewrite.
7404 (read_and_check_type_unit_head): Rename arg type_offset to
7405 type_offset_in_tu.
7406 (create_all_type_units): Improve debugging message.
7407 Improve dummy type unit check.
7408 (init_cu_die_reader): New arg "section". All callers updated.
7409 (init_and_read_dies_worker): New function.
7410 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7411 (init_cutu_and_read_dies_no_follow): New function.
7412 (init_cutu_and_read_dies_simple): New function.
7413 (process_psymtab_comp_unit_reader): New function.
7414 (process_psymtab_comp_unit): Delete args section,
7415 is_debug_types_section. Rewrite. All callers updated.
7416 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7417 All callers updated. Rewrite.
7418 (load_partial_comp_unit_reader): New function.
7419 (load_partial_comp_unit): Rewrite.
7420 (skip_children): New arg reader. Delete args buffer, cu.
7421 All callers updated.
7422 (skip_one_die): New arg reader. Delete args buffer, cu.
7423 All callers updated.
7424 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7425 All callers updated.
7426 (load_full_comp_unit_reader): New function.
7427 (load_full_comp_unit): Rewrite.
7428 (read_comp_unit): Delete.
7429 (read_die_and_children_1): Delete, contents moved ...
7430 (read_die_and_children): ... here.
7431 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7432 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7433 All callers updated.
7434 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7435 All callers updated.
7436 (find_partial_die): Rewrite load_all_dies support.
7437 (read_attribute_value): New arg reader. Delete args abfd, cu.
7438 All callers updated.
7439 (read_attribute): New arg reader. Delete args abfd, cu.
7440 All callers updated.
7441 (load_full_type_unit): Add assert.
7442 (read_signatured_type_reader): New function.
7443 (read_signatured_type): Rewrite.
7444 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7445 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7446 All callers updated. Set per_cu->cu = NULL after freeing it.
7447 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7448 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7449 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7450 (set_die_type): Update.
7451 (get_die_type_at_offset): Update.
7452 (read_file_scope): Call prepare_one_comp_unit.
7453 (read_type_unit_scope): Ditto.
7454 (prepare_one_comp_unit): Set producer if present.
7455
7456 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7457
7458 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7459 gettext function on `error'.
7460
7461 2012-04-27 Doug Evans <dje@google.com>
7462
7463 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7464 is empty.
7465
7466 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7467 Tom Tromey <tromey@redhat.com>
7468
7469 * breakpoint.c (struct breakpoint_objfile_data)
7470 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7471 <exception_probes>: New fields.
7472 (free_breakpoint_probes): New function.
7473 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7474 `_Unwind_DebugHook'.
7475 (create_exception_master_breakpoint): Likewise.
7476 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7477 * infrun.c: Including necessary header files for handling SystemTap
7478 probes.
7479 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7480 via SystemTap probes.
7481 (check_exception_resume): Remove `func' argument. Handle exception
7482 unwinding breakpoint set via a SystemTap probe.
7483 (insert_exception_resume_from_probe): New function.
7484
7485 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7486 Tom Tromey <tromey@redhat.com>
7487 Jan Kratochvil <jan.kratochvil@redhat.com>
7488
7489 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7490 (COMMON_OBS): Likewise.
7491 (HFILES_NO_SRCDIR): Add `probe'.
7492 * NEWS: Mention support for static and SystemTap probes.
7493 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7494 SystemTap probes' arguments parser.
7495 * arm-linux-tdep.c: Including headers needed to perform the parsing
7496 of SystemTap probes' arguments.
7497 (arm_stap_is_single_operand): New function.
7498 (arm_stap_parse_special_token): Likewise.
7499 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7500 probes' arguments parser.
7501 * ax-gdb.c (require_rvalue): Removing static declaration.
7502 (gen_expr): Likewise.
7503 * ax-gdb.h (gen_expr): Declaring function.
7504 (require_rvalue): Likewise.
7505 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7506 (bkpt_probe_breakpoint_ops): New variable.
7507 (momentary_breakpoint_from_master): Set the `probe' value.
7508 (add_location_to_breakpoint): Likewise.
7509 (break_command_1): Using proper breakpoint_ops according to the
7510 argument passed by the user in the command line.
7511 (bkpt_probe_insert_location): New function.
7512 (bkpt_probe_remove_location): Likewise.
7513 (bkpt_probe_create_sals_from_address): Likewise.
7514 (bkpt_probe_decode_linespec): Likewise.
7515 (tracepoint_probe_create_sals_from_address): Likewise.
7516 (tracepoint_probe_decode_linespec): Likewise.
7517 (tracepoint_probe_breakpoint_ops): New variable.
7518 (trace_command): Using proper breakpoint_ops according to the
7519 argument passed by the user in the command line.
7520 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7521 static probes on breakpoints and tracepoints.
7522 * breakpoint.h (struct bp_location) <probe>: New field.
7523 * cli-utils.c (skip_spaces_const): New function.
7524 (extract_arg): Likewise.
7525 * cli-utils.h (skip_spaces_const): Likewise.
7526 (extract_arg): Likewise.
7527 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7528 * configure.ac: Append `stap-probe.o' to be generated when ELF
7529 support is present.
7530 * configure: Regenerate.
7531 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7532 * elfread.c: Include `probe.h' and `arch-utils.h'.
7533 (probe_key): New variable.
7534 (elf_get_probes): New function.
7535 (elf_get_probe_argument_count): Likewise.
7536 (elf_evaluate_probe_argument): Likewise.
7537 (elf_compile_to_ax): Likewise.
7538 (elf_symfile_relocate_probe): Likewise.
7539 (stap_probe_key_free): Likewise.
7540 (elf_probe_fns): New variable.
7541 (elf_sym_fns): Add `sym_probe_fns' value.
7542 (elf_sym_fns_lazy_psyms): Likewise.
7543 (elf_sym_fns_gdb_index): Likewise.
7544 (_initialize_elfread): Initialize objfile cache for static
7545 probes.
7546 * gdb_vecs.h (struct probe): New forward declaration.
7547 (probe_p): New VEC declaration.
7548 * gdbarch.c: Regenerate.
7549 * gdbarch.h: Regenerate.
7550 * gdbarch.sh (stap_integer_prefix): New variable.
7551 (stap_integer_suffix): Likewise.
7552 (stap_register_prefix): Likewise.
7553 (stap_register_suffix): Likewise.
7554 (stap_register_indirection_prefix): Likewise.
7555 (stap_register_indirection_suffix): Likewise.
7556 (stap_gdb_register_prefix): Likewise.
7557 (stap_gdb_register_suffix): Likewise.
7558 (stap_is_single_operand): New function.
7559 (stap_parse_special_token): Likewise.
7560 (struct stap_parse_info): Forward declaration.
7561 * i386-tdep.c: Including headers needed to perform the parsing
7562 of SystemTap probes' arguments.
7563 (i386_stap_is_single_operand): New function.
7564 (i386_stap_parse_special_token): Likewise.
7565 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7566 probes' arguments parser.
7567 * i386-tdep.h (i386_stap_is_single_operand): New function.
7568 (i386_stap_parse_special_token): Likewise.
7569 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7570 * mipsread.c (ecoff_sym_fns): Likewise.
7571 * objfiles.c (objfile_relocate1): Support relocation for static
7572 probes.
7573 * parse.c (prefixify_expression): Remove static declaration.
7574 (initialize_expout): Likewise.
7575 (reallocate_expout): Likewise.
7576 * parser-defs.h (initialize_expout): Declare function.
7577 (reallocate_expout): Likewise.
7578 (prefixify_expression): Likewise.
7579 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7580 of SystemTap probes' arguments.
7581 (ppc_stap_is_single_operand): New function.
7582 (ppc_stap_parse_special_token): Likewise.
7583 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7584 probes' arguments parser.
7585 * probe.c: New file, for generic statically defined probe support.
7586 * probe.h: Likewise.
7587 * s390-tdep.c: Including headers needed to perform the parsing of
7588 SystemTap probes' arguments.
7589 (s390_stap_is_single_operand): New function.
7590 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7591 probes' arguments parser.
7592 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7593 * stap-probe.c: New file, for SystemTap probe support.
7594 * stap-probe.h: Likewise.
7595 * symfile.h: Include `gdb_vecs.h'.
7596 (struct sym_probe_fns): New struct.
7597 (struct sym_fns) <sym_probe_fns>: New field.
7598 * symtab.c (init_sal): Initialize `probe' field.
7599 * symtab.h (struct probe): Forward declaration.
7600 (struct symtab_and_line) <probe>: New field.
7601 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7602 locations.
7603 (stop_tracing): Likewise.
7604 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7605
7606 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7607 Tom Tromey <tromey@redhat.com>
7608
7609 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7610 and to compile agent expressions.
7611 * infrun.c (siginfo_make_value): New argument `ignore'.
7612 (siginfo_funcs): New struct.
7613 (_initialize_infrun): New argument when calling
7614 `create_internalvar_type_lazy'.
7615 * thread.c (thread_id_make_value): New argument `ignore'.
7616 (thread_funcs): New struct.
7617 (_initialize_thread): New argument when calling
7618 `create_internalvar_type_lazy'.
7619 * tracepoint.c (sdata_make_value): New argument `ignore'.
7620 (sdata_funcs): New struct.
7621 (_initialize_tracepoint): New argument when calling
7622 `create_internalvar_type_lazy'.
7623 * value.c (make_value): New struct.
7624 (create_internalvar_type_lazy): New argument `data'.
7625 (compile_internalvar_to_ax): New function.
7626 (value_of_internalvar): Properly handling `make_value' case.
7627 (clear_internalvar): Likewise.
7628 (show_convenience): Adding `TRY_CATCH' block.
7629 * value.h (internalvar_make_value): Delete, replace by...
7630 (struct internalvar_funcs): ... this.
7631 (create_internalvar_type_lazy) <fun>: Delete argument.
7632 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7633 (compile_internalvar_to_ax): New function.
7634 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7635 (tlb_funcs): New struct.
7636 (_initialize_windows_tdep): New argument when calling
7637 `create_internalvar_type_lazy'.
7638
7639 2012-04-27 Mark Wielaard <mjw@redhat.com>
7640
7641 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7642 see whether it is an address or a constant offset from DW_AT_low_pc.
7643 (dwarf2_record_block_ranges): Likewise.
7644 (read_partial_die): Likewise.
7645
7646 2012-04-26 Mark Wielaard <mjw@redhat.com>
7647
7648 * MAINTAINERS (Write After Approval): Add myself to the list.
7649
7650 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7651
7652 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7653 (proc_prettyprint_signal): Likewise.
7654 (proc_prettyprint_faultset): Likewise.
7655 (proc_prettyprint_fault): Likewise.
7656 (proc_prettyprint_actionset): Likewise.
7657 (proc_prettyprint_flags): Move to new proc-flags.c section.
7658 (proc_prettyfprint_flags): New prototype.
7659 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7660 (proc_syscall, proc_cursig): Likewise.
7661 (proc_set_kill_on_last_close): Likewise.
7662 (proc_unset_kill_on_last_close): Likewise.
7663 (proc_set_watchpoint): Make static.
7664 (proc_delete_dead_threads): Likewise.
7665 (procfs_set_watchpoint): Likewise.
7666 (_initialize_procfs): Add prototype.
7667 * proc-events.c: Include proc-utils.h.
7668 (init_syscall_table): Make static.
7669 * proc-api.c (_initialize_proc_api): Add prototype.
7670 * proc-flags.c: Include proc-utils.h.
7671
7672 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7673
7674 * configure.ac: Add AC_ARG_PROGRAM.
7675 * configure: Regenerate.
7676
7677 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7678
7679 Fix DW_AT_lower_bound defaults for DWARF-4+.
7680 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7681 high. New variable low_default_is_valid. Implement DWARF-4+
7682 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7683 no default by the DWARF standard.
7684
7685 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7686 Maciej W. Rozycki <macro@codesourcery.com>
7687
7688 * infrun.c (handle_inferior_event): Move the check for return
7689 trampolines ahead of the check for function trampolines.
7690 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7691 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7692 (mips_str_mips16_ret_stub): Likewise.
7693 (mips_str_call_fp_stub): Likewise.
7694 (mips_str_call_stub): Likewise.
7695 (mips_str_fn_stub): Likewise.
7696 (mips_str_pic): Likewise.
7697 (mips_in_frame_stub): New function.
7698 (mips_unwind_pc): Return the return address rather than the PC
7699 if the PC of an intermediate frame is inside a call thunk.
7700 (mips_is_stub_suffix): New function.
7701 (mips_is_stub_mode): Likewise.
7702 (mips_get_mips16_fn_stub_pc): Likewise.
7703 (mips_skip_mips16_trampoline_code): Update to handle all the
7704 currently generated stub types. Don't recurse into __fn_stub
7705 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7706 Use cooked register accesses.
7707 (mips_in_return_stub): Reintroduce function.
7708 (mips_skip_trampoline_code): Traverse trampolines recursively.
7709 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7710
7711 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7712
7713 GDB 7.4.1 released.
7714
7715 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7716
7717 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7718 * features/arm-with-m-vfp-d16.xml: New file. Describes
7719 Cortex-M with VFPv4-sp-d16 FPU register layout.
7720 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7721 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7722 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7723 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7724 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7725
7726 2012-04-25 Doug Evans <dje@google.com>
7727
7728 * cli/cli-decode.c (print_doc_line): Use stream instead of
7729 current_uiout.
7730
7731 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7732
7733 * features/arm-with-iwmmxt.c: Regenerate.
7734 * features/arm-with-m-fpa-layout.c: Likewise.
7735 * features/arm-with-m.c: Likewise.
7736 * features/arm-with-neon.c: Likewise.
7737 * features/arm-with-vfpv2.c: Likewise.
7738 * features/arm-with-vfpv3.c: Likewise.
7739 * features/mips-dsp-linux.c: Likewise.
7740 * features/mips-linux.c: Likewise.
7741 * features/mips64-dsp-linux.c: Likewise.
7742 * features/mips64-linux.c: Likewise.
7743 * features/s390-linux32.c: Likewise.
7744 * features/s390-linux32v1.c: Likewise.
7745 * features/s390-linux32v2.c: Likewise.
7746 * features/s390-linux64.c: Likewise.
7747 * features/s390-linux64v1.c: Likewise.
7748 * features/s390-linux64v2.c: Likewise.
7749 * features/s390x-linux64.c: Likewise.
7750 * features/s390x-linux64v1.c: Likewise.
7751 * features/s390x-linux64v2.c: Likewise.
7752 * features/tic6x-c62x-linux.c: Likewise.
7753 * features/tic6x-c62x.c: Likewise.
7754 * features/tic6x-c64x-linux.c: Likewise.
7755 * features/tic6x-c64x.c: Likewise.
7756 * features/tic6x-c64xp-linux.c: Likewise.
7757 * features/tic6x-c64xp.c: Likewise.
7758 * target-descriptions.c: Only generate `field_type' and `type'
7759 variables when needed.
7760
7761 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7762
7763 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7764
7765 2012-04-25 Doug Evans <dje@google.com>
7766
7767 Initial pass at Go language support.
7768 * NEWS: Mention Go.
7769 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7770 go-valprint.c.
7771 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7772 (YYFILES): Add go-exp.c.
7773 (YYOBJ): Add go-exp.o.
7774 (local-maintainer-clean): Delete go-exp.c.
7775 * defs.h (enum language): Add language_go.
7776 * dwarf2read.c: #include "go-lang.h".
7777 (fixup_go_packaging): New function.
7778 (process_full_comp_unit): Call it when processing Go CUs.
7779 (dwarf2_physname): Add Go support.
7780 (read_file_scope): Handle missing language spec for GNU Go.
7781 (set_cu_language): Handle DW_LANG_Go.
7782 * go-exp.y: New file.
7783 * go-lang.h: New file.
7784 * go-lang.c: New file.
7785 * go-typeprint.c: New file.
7786 * go-valprint.c: New file.
7787 * symtab.c: #include "go-lang.h".
7788 (symbol_set_language): Handle language_go.
7789 (symbol_find_demangled_name, symbol_set_names): Ditto.
7790 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7791
7792 2012-04-24 Jim Meyering <meyering@redhat.com>
7793
7794 avoid a few strncpy-induced buffer overruns
7795 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7796 fname and psargs before trying to concatenate.
7797 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7798 "name" before applying strchr.
7799
7800 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7801
7802 * CONTRIBUTE: Use unified diff instead of context diff when
7803 generating patches.
7804
7805 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7806
7807 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7808 code. Handle JR.HB correctly.
7809
7810 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7811
7812 * mips-tdep.c
7813 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7814 with the other MIPS16 helpers.
7815
7816 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7817
7818 * observer.sh: Conditionally declare `args', thus cleaning up
7819 unused instances of this variable.
7820
7821 2012-04-24 Yao Qi <yao@codesourcery.com>
7822
7823 Revert this patch to allow breakpoint always-inserted
7824 in record target.
7825 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7826 * breakpoint.c: Include record.h.
7827 (breakpoints_always_inserted_mode): Return false when the record
7828 target is in use.
7829
7830 * breakpoint.c (iterate_over_bp_locations): New.
7831 * breakpoint.h: Declare.
7832 New typedef walk_bp_location_callback.
7833 * record.c (record_open): Call record_init_record_breakpoints.
7834 (record_sync_record_breakpoints): New.
7835 (record_init_record_breakpoints): New.
7836 * NEWS: Mention supporting breakpoint always-inserted mode in
7837 record target.
7838
7839 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7840
7841 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7842 any thread.
7843
7844 2012-04-24 Yao Qi <yao@codesourcery.com>
7845
7846 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7847 (is_catchpoint): ... it.
7848 (print_one_breakpoint_location): Caller update.
7849 * breakpoint.h: Update declaration.
7850
7851 2012-04-23 David S. Miller <davem@davemloft.net>
7852
7853 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7854
7855 2012-04-23 Tom Tromey <tromey@redhat.com>
7856
7857 * buildsym.c (add_free_pendings): Remove.
7858 * buildsym.h (add_free_pendings): Remove.
7859
7860 2012-04-23 Doug Evans <dje@google.com>
7861
7862 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7863 attr.u.unsnd instead of attr.u.addr.
7864 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7865 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7866 DW_FORM_ref_udata.
7867 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7868 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7869 DW_FORM_ref_udata.
7870 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7871
7872 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7873
7874 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7875 (mips_o32_return_value): Likewise.
7876 (mips_o64_return_value): Likewise.
7877
7878 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7879
7880 * ada-lang.c (ada_evaluate_subexp): Add cases for
7881 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7882 their treatment in eval.c.
7883
7884 2012-04-21 David S. Miller <davem@davemloft.net>
7885
7886 * sparc-tdep.c (X_DISP10): Define.
7887 (sparc_analyze_control_transfer): Handle compare-and-branch.
7888
7889 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7890
7891 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7892 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7893
7894 2012-04-20 Nigel Stephens <nigel@mips.com>
7895 Maciej W. Rozycki <macro@codesourcery.com>
7896
7897 * mips-tdep.c (mips_float_register_p): New function.
7898 (mips_convert_register_float_case_p): Use mips_float_register_p.
7899 (mips_register_type): Likewise.
7900 (mips_print_register): Likewise.
7901 (print_gp_register_row): Likewise.
7902 (mips_print_registers_info): Likewise.
7903
7904 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7905
7906 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7907 of mips16 symbols.
7908
7909 2012-04-20 Andrew Pinski <apinski@cavium.com>
7910
7911 * MAINTAINERS (Write After Approval): Add myself to the list.
7912
7913 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7914
7915 * MAINTAINERS: Update my e-mail address.
7916
7917 2012-04-20 Pedro Alves <palves@redhat.com>
7918
7919 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7920 $srcdir.
7921 * configure: Regenerate.
7922
7923 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7924
7925 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7926 declaration.
7927 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7928
7929 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7930
7931 Fix compilation compatibility with python-2.4
7932 * python/py-type.c (convert_field): Cast ADDRSTRING for
7933 PyObject_SetAttrString as non-const. New comment.
7934
7935 2012-04-19 Tom Tromey <tromey@redhat.com>
7936
7937 * top.c (quit_target): Use all_cleanups.
7938 * main.c (captured_command_loop): Use all_cleanups.
7939 * exceptions.c (throw_exception): Use all_cleanups.
7940
7941 2012-04-19 Pedro Alves <palves@redhat.com>
7942
7943 * Makefile.in (GNULIB_BUILDDIR): New.
7944 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7945 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7946 (CLEANDIRS). Remove gnulib/import.
7947 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7948 (all-lib): Ditto.
7949 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7950 (gnulib/import/Makefile): Replace gnulib/import with
7951 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7952 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7953 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7954 acx_configure_dir.m4.
7955 * acinclude.m4: Include acx_configure_dir.m4.
7956 * acx_configure_dir.m4: New file.
7957 * aclocal.m4: Regenerate.
7958 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7959 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7960 (GNULIB): New variable.
7961 (GNULIB_STDINT_H): Adjust.
7962 (AC_OUTPUT): Don't output gnulib/Makefile.
7963 * gdb/defs.h: Include build-gnulib/config.h.
7964 * aclocal.m4: Regenerate.
7965 * config.in: Regenerate.
7966 * configure: Regenerate.
7967
7968 * gnulib/Makefile.in: New file.
7969 * gnulib/configure.ac: New file.
7970 * gnulib/aclocal.m4: New file.
7971 * gnulib/config.in: New file.
7972 * gnulib/configure: New file.
7973 * gnulib/: Re-run gnulib-tool to adjust.
7974
7975 2012-04-19 Doug Evans <dje@google.com>
7976
7977 * cleanups.h (struct cleanup): Move to cleanups.c.
7978 (make_cleanup_dtor_ftype): New typedef.
7979 (make_cleanup_dtor): Use it.
7980 (ALL_CLEANUPS): Replace with ...
7981 (all_cleanups): ... this. Declare. All uses updated.
7982 * cleanups.c: #include "gdb_assert.h".
7983 (sentinel_cleanup): New static global.
7984 (SENTINEL_CLEANUP): Define.
7985 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7986 (make_my_cleanup2): Assert result is non-NULL.
7987 (all_cleanups): New function.
7988 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7989 of NULL.
7990
7991 2012-04-19 Pedro Alves <palves@redhat.com>
7992
7993 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7994 Adjust paths to gnulib imported files.
7995
7996 2012-04-19 Pedro Alves <palves@redhat.com>
7997
7998 * gnulib/: Move whole directory ...
7999 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8000 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8001 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8002 (aclocal_m4_deps): Adjust.
8003 * aclocal.m4: Regenerate.
8004 * configure: Regenerate.
8005 * configure.ac: Adjust AC_OUTPUT output.
8006
8007 2012-04-19 Yao Qi <yao@codesourcery.com>
8008
8009 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8010 (vec.o): New rule.
8011 * vec.c: Move it ...
8012 * common/vec.c: ... here.
8013 * vec.h: Move it ...
8014 * common/vec.h: ... here.
8015
8016 2012-04-19 Yao Qi <yao@codesourcery.com>
8017
8018 * gdb-code-style.el: New.
8019
8020 2012-04-18 Pedro Alves <palves@redhat.com>
8021
8022 Update gnulib from latest git.
8023 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8024
8025 * gnulib/Makefile.am: Update.
8026 * gnulib/dummy.c: Update.
8027 * gnulib/extra/arg-nonnull.h: Update.
8028 * gnulib/extra/c++defs.h: Update.
8029 * gnulib/extra/update-copyright: Update.
8030 * gnulib/extra/warn-on-use.h: Update.
8031 * gnulib/inttypes.in.h: Update.
8032 * gnulib/m4/00gnulib.m4: Update.
8033 * gnulib/m4/extensions.m4: Update.
8034 * gnulib/m4/gnulib-cache.m4: Update.
8035 * gnulib/m4/gnulib-common.m4: Update.
8036 * gnulib/m4/gnulib-comp.m4: Update.
8037 * gnulib/m4/gnulib-tool.m4: Update.
8038 * gnulib/m4/include_next.m4: Update.
8039 * gnulib/m4/inttypes-pri.m4: Update.
8040 * gnulib/m4/inttypes.m4: Update.
8041 * gnulib/m4/longlong.m4: Update.
8042 * gnulib/m4/memchr.m4: Update.
8043 * gnulib/m4/memmem.m4: Update.
8044 * gnulib/m4/mmap-anon.m4: Update.
8045 * gnulib/m4/multiarch.m4: Update.
8046 * gnulib/m4/onceonly.m4: Update.
8047 * gnulib/m4/stddef_h.m4: Update.
8048 * gnulib/m4/stdint.m4: Update.
8049 * gnulib/m4/string_h.m4: Update.
8050 * gnulib/m4/warn-on-use.m4: Update.
8051 * gnulib/m4/wchar_h.m4: Update.
8052 * gnulib/m4/wchar_t.m4: Update.
8053 * gnulib/m4/wint_t.m4: Update.
8054 * gnulib/memchr.c: Update.
8055 * gnulib/memmem.c: Update.
8056 * gnulib/stddef.in.h: Update.
8057 * gnulib/stdint.in.h: Update.
8058 * gnulib/str-two-way.h: Update.
8059 * gnulib/string.in.h: Update.
8060 * gnulib/wchar.in.h: Update.
8061
8062 * gnulib/extra/arg-nonnull.h: Delete.
8063 * gnulib/extra/c++defs.h: Delete.
8064 * gnulib/extra/warn-on-use.h: Delete.
8065 * gnulib/m4/wchar_h.m4: Delete.
8066 * gnulib/m4/wint_t.m4: Delete.
8067 * gnulib/wchar.in.h: Delete.
8068
8069 * gnulib/extra/snippets/arg-nonnull.h: New.
8070 * gnulib/extra/snippets/c++defs.h: New.
8071 * gnulib/extra/snippets/warn-on-use.h: New.
8072
8073 * aclocal.m4: Regenerate.
8074 * config.in: Regenerate.
8075 * configure: Regenerate.
8076 * gnulib/Makefile.in: Regenerate.
8077
8078 2012-04-18 Pedro Alves <palves@redhat.com>
8079
8080 Reimport the update-copyright module from gnulib
8081 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8082
8083 * configure: Regenerate.
8084 * gnulib/Makefile.am: Update.
8085 * gnulib/Makefile.in: Regenerate.
8086 * gnulib/extra/update-copyright: Update.
8087 * gnulib/m4/gnulib-cache.m4: Update.
8088 * gnulib/m4/gnulib-comp.m4: Update.
8089
8090 2012-04-18 Tristan Gingold <gingold@adacore.com>
8091
8092 * configure.ac (aix): Put -lpthread into libs.
8093 * configure: Regenerate.
8094
8095 2012-04-18 Tom Tromey <tromey@redhat.com>
8096
8097 * linespec.c (convert_linespec_to_sals): Don't use
8098 SYMBOL_OBJ_SECTION.
8099 (compare_msymbols): Arguments are minsym_and_objfile, not
8100 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8101
8102 2012-04-18 Pedro Alves <palves@redhat.com>
8103
8104 Revert gnulib/ part of:
8105 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8106 Copyright year update in most files (performed by copyright.sh).
8107
8108 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8109
8110 Fix 64-bit constants on 32-bit hosts.
8111 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8112 from unsigned long to ULONGEST.
8113 (read_signed_leb128): Change declaration return type from long to
8114 LONGEST.
8115 (dwarf2_const_value_attr): Change declaration parameter value from long
8116 to LONGEST.
8117 (dwarf2_compute_name): Change variable value from long to LONGEST.
8118 (read_unsigned_leb128): Change return type, variable result and some
8119 casts from unsigned long to ULONGEST.
8120 (read_signed_leb128): Change return type, variable result and some
8121 casts from long to LONGEST.
8122 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8123 value from long to LONGEST.
8124 (dwarf2_const_value): Change variable value from long to LONGEST.
8125 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8126 plongest and hex_string.
8127 * symtab.h (struct general_symbol_info): Change ivalue from long to
8128 LONGEST, remove the comment.
8129 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8130 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8131
8132 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8133
8134 PR symtab/7259:
8135 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8136 * ada-lang.c (ada_discrete_type_high_bound)
8137 (ada_discrete_type_low_bound): Fix function comment. Use
8138 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8139 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8140 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8141 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8142 Use TYPE_FIELD_ENUMVAL.
8143 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8144 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8145 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8146 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8147 TYPE_CODE_ENUM.
8148 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8149 * dwarf2read.c (process_enumeration_scope): Likewise.
8150 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8151 field.bitpos.
8152 (class StructMainTypePrettyPrinter): Support also
8153 FIELD_LOC_KIND_ENUMVAL.
8154 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8155 TYPE_CODE_ENUM.
8156 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8157 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8158 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8159 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8160 field enumval.
8161 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8162 accommodate enumval.
8163 (struct call_site): Adjust loc_kind to accommodate enumval.
8164 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8165 (TYPE_FIELD_ENUMVAL): New macros.
8166 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8167 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8168 TYPE_CODE_ENUM.
8169 * p-typeprint.c (pascal_type_print_base): Likewise.
8170 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8171 enumval.
8172 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8173 * python/py-type.c (convert_field): New variable addrstring. Use
8174 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8175 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8176 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8177 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8178 TYPE_CODE_ENUM.
8179 * valprint.c (generic_val_print): Likewise.
8180
8181 2012-04-17 Doug Evans <dje@google.com>
8182
8183 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8184
8185 * dwarf2read.c: Whitespace fixes.
8186 (lookup_signatured_type): Tweak comment.
8187 (get_die_type_at_offset): Fix comment.
8188
8189 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8190
8191 * xcoffread.c (xcoff_secnum_to_sections): New function.
8192 (secnum_to_section, secnum_to_bfd_section): Reimplement
8193 using xcoff_secnum_to_sections. Rename "secnum" parameter
8194 into "n_scnum".
8195 (RECORD_MINIMAL_SYMBOL): Delete.
8196 (record_minimal_symbol): New function.
8197 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8198 by call to record_minimal_symbol and set misc_func_recorded
8199 to 1. Set last_csect_sec to the XCOFF section index instead
8200 of GDB's section_offset index. Update calls to
8201 prim_record_minimal_symbol_and_info to pass the BFD section
8202 as well.
8203
8204 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8205
8206 * xcoffread.c (read_xcoff_symtab): Delete variables
8207 last_csect_val and last_csect_sec and associated code.
8208
8209 2012-04-17 Doug Evans <dje@google.com>
8210
8211 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8212 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8213 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8214 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8215
8216 * cleanups.h: New file.
8217 * cleanups.c: New file.
8218 * Makefile.in (SFILES): Add cleanups.c.
8219 (HFILES_NO_SRCDIR): Add cleanups.h.
8220 (COMMON_OBS): Add cleanups.o.
8221 * defs.h (struct cleanup): Moved to cleanups.h.
8222 (do_cleanups,do_final_cleanups): Ditto.
8223 (discard_cleanups,discard_final_cleanups): Ditto
8224 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8225 (save_cleanups,save_final_cleanups): Ditto.
8226 (restore_cleanups,restore_final_cleanups): Ditto.
8227 (null_cleanup): Ditto.
8228 (make_my_cleanup,make_my_cleanup2): Ditto.
8229 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8230 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8231 (do_cleanups,do_final_cleanups): Ditto.
8232 (discard_cleanups,discard_final_cleanups): Ditto
8233 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8234 (save_cleanups,save_final_cleanups): Ditto.
8235 (restore_cleanups,restore_final_cleanups): Ditto.
8236 (null_cleanup): Ditto.
8237 (make_my_cleanup,make_my_cleanup2): Ditto.
8238 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8239
8240 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8241 make_my_cleanup.
8242 (make_cleanup_dyn_string_delete): Ditto.
8243 (make_cleanup_ui_file_delete): Ditto.
8244 (make_cleanup_ui_out_redirect_pop): Ditto.
8245 (make_cleanup_free_section_addr_info): Ditto.
8246 (make_cleanup_restore_integer): Ditto.
8247 (make_cleanup_unpush_target): Ditto.
8248 (make_cleanup_value_free_to_mark): Ditto.
8249 (make_cleanup_value_free): Ditto.
8250 (make_cleanup_free_so): Ditto.
8251
8252 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8253
8254 New option "set debug auto-load".
8255 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8256 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8257 (auto_load_safe_path_vec_update)
8258 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8259 if DEBUG_AUTO_LOAD.
8260 (file_is_auto_load_safe): New parameters debug_fmt and ....
8261 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8262 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8263 caller by explanatory string.
8264 (_initialize_auto_load): Register "set debug auto-load".
8265 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8266 and ....
8267 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8268 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8269 by explanatory string.
8270 * main.c (captured_main): Likewise.
8271 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8272 (source_section_scripts): Likewise.
8273
8274 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8275
8276 New option "set auto-load safe-path".
8277 * NEWS: New commands "set auto-load safe-path"
8278 and "show auto-load safe-path".
8279 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8280 (auto_load_safe_path, auto_load_safe_path_vec)
8281 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8282 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8283 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8284 (source_gdb_script_for_objfile): New variable is_safe. Call
8285 file_is_auto_load_safe. Return if it is not.
8286 (struct loaded_script): New field loaded.
8287 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8288 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8289 output "Missing" to "No".
8290 (_initialize_auto_load): New variable cmd. Initialize
8291 auto_load_safe_path. Register "set auto-load safe-path",
8292 "show auto-load safe-path" and "add-auto-load-safe-path".
8293 * auto-load.h (maybe_add_script): Add parameter loaded.
8294 (file_is_auto_load_safe): New declaration.
8295 * config.in: Regenerate.
8296 * configure: Regenerate.
8297 * configure.ac: New parameters --with-auto-load-safe-path
8298 and --without-auto-load-safe-path.
8299 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8300 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8301 * main.c (captured_main): Check file_is_auto_load_safe for
8302 LOCAL_GDBINIT.
8303 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8304 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8305 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8306 not.
8307
8308 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8309
8310 auto-load: Implementation.
8311 * NEWS: New descriptions for "info auto-load",
8312 "info auto-load gdb-scripts", "info auto-load python-scripts",
8313 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8314 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8315 and "show auto-load-scripts". New description for "set auto-load",
8316 "show auto-load", "set auto-load gdb-scripts",
8317 "show auto-load gdb-scripts", "set auto-load python-scripts",
8318 "show auto-load python-scripts", "set auto-load local-gdbinit",
8319 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8320 "show auto-load libthread-db".
8321 * auto-load.c: Remove include python/python-internal.h. Add includes
8322 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8323 cli/cli-setshow.h.
8324 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8325 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8326 (gdbpy_global_auto_load): Rename to ...
8327 (global_auto_load): ... here.
8328 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8329 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8330 (script_language_gdb, source_gdb_script_for_objfile): New.
8331 (struct loaded_script): New field language.
8332 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8333 LANGUAGE.
8334 (maybe_add_script): Add parameter language. Drop redundant
8335 entry.full_path initialization. Initialize entry.language and
8336 (*slot)->language.
8337 (auto_load_objfile_script): Change parameter suffix to language.
8338 Remove the call of maybe_add_script.
8339 Call language->source_script_for_objfile.
8340 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8341 New.
8342 (collect_matching_scripts): Adjust it for
8343 struct collect_matching_scripts_data.
8344 (auto_load_info_scripts_pattern_nl): New variable.
8345 (info_auto_load_scripts): Rename to ...
8346 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8347 for struct collect_matching_scripts_data.
8348 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8349 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8350 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8351 (auto_load_info_cmdlist_get): New.
8352 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8353 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8354 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8355 "info auto-load local-gdbinit".
8356 * auto-load.h (struct script_language): New.
8357 (gdbpy_global_auto_load): Rename to ...
8358 (global_auto_load): ... here.
8359 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8360 (auto_load_local_gdbinit_loaded): New declarations.
8361 (maybe_add_script): New parameter language.
8362 (auto_load_objfile_script): Change parameter suffix to language.
8363 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8364 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8365 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8366 declarations.
8367 * linux-thread-db.c: Include auto-load.h and ctype.h.
8368 (auto_load_thread_db, show_auto_load_thread_db): New.
8369 (struct thread_db_info): New field filename.
8370 (delete_thread_db_info): Call xfree for FILENAME.
8371 (try_thread_db_load): Initialize FILENAME.
8372 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8373 if !AUTO_LOAD_THREAD_DB.
8374 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8375 (_initialize_thread_db): Install auto_load_thread_db
8376 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8377 as "info auto-load libthread-db".
8378 * main.c (captured_main): Rename gdbpy_global_auto_load to
8379 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8380 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8381 (print_gdb_help): Extend the help for 'local init file'.
8382 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8383 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8384 (auto_load_scripts): Rename to ...
8385 (auto_load_python_scripts): ... here, update the comment.
8386 (gdbpy_load_auto_script_for_objfile): New declaration.
8387 (show_auto_load_python_scripts, script_language_python)
8388 (gdbpy_load_auto_script_for_objfile): New.
8389 (source_section_scripts): Refactor the code.
8390 (load_auto_scripts_for_objfile): Rename to ...
8391 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8392 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8393 (info_auto_load_python_scripts): New.
8394 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8395 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8396 Register "set auto-load-scripts" as its deprecated alias. Register
8397 "info auto-load python-scripts". Register "info auto-load-scripts" as
8398 its deprecated alias.
8399 (load_auto_scripts_for_objfile): Rename to ...
8400 (gdbpy_load_auto_scripts_for_objfile): ... here.
8401 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8402 (gdbpy_load_auto_scripts_for_objfile): ... here.
8403
8404 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8405
8406 auto-load: Move files.
8407 * Makefile.in (SFILES): Add auto-load.c.
8408 (HFILES_NO_SRCDIR): Add auto-load.h.
8409 (COMMON_OBS): Add auto-load.o.
8410 (distclean): Change .gdbinit for gdb-gdb.gdb.
8411 * auto-load.c: New file, with parts from python/py-auto-load.c.
8412 * auto-load.h: New file, with parts from python/python.h.
8413 * configure: Regenerate.
8414 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8415 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8416 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8417 * main.c: Include auto-load.h.
8418 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8419 command.h, observer.h and progspace.h to auto-load.c. Add include
8420 auto-load.h.
8421 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8422 (struct loaded_script, auto_load_pspace_data)
8423 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8424 (hash_loaded_script_entry, eq_loaded_script_entry)
8425 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8426 (maybe_add_script): Move to auto-load.c.
8427 (source_section_scripts): Change maybe_add_script parameters passing,
8428 use script_not_found_warning_print.
8429 (clear_section_scripts, auto_load_objfile_script)
8430 (auto_load_new_objfile, loaded_script_ptr)
8431 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8432 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8433 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8434 auto_load_new_objfile and info_auto_load_scripts initizations to
8435 auto-load.c.
8436 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8437
8438 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8439
8440 Code cleanup.
8441 * charset.c (find_charset_names): Remove variables ix and elt.
8442 Use free_char_ptr_vec.
8443 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8444 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8445 debugdir_end. New variable debugdir_len.
8446 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8447 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8448 declarations.
8449 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8450 and elt. Use free_char_ptr_vec.
8451 * source.c (add_path): Remove variables argv, arg and argv_index.
8452 New variables dir_vec, back_to, ix and name.
8453 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8454 make_cleanup_freeargv. Remove variable separator. Simplify the code
8455 no longer expecting DIRNAME_SEPARATOR.
8456 (openp): Remove variable p, p1 and len. New variables dir_vec,
8457 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8458 no longer expecting DIRNAME_SEPARATOR.
8459 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8460 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8461 debugdir_end.
8462 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8463 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8464 (dirnames_to_char_ptr_vec): New functions.
8465
8466 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8467
8468 Code cleanup.
8469 * source.c (add_path): Remove always true conditional 'p == 0' and
8470 unindent its code block.
8471
8472 2012-04-17 Pedro Alves <palves@redhat.com>
8473
8474 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8475 (FIELD_BITPOS_LVAL): ... this.
8476 (FIELD_BITPOS): New.
8477 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8478 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8479 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8480 SET_FIELD_BITPOS.
8481 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8482 SET_FIELD_BITPOS.
8483 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8484 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8485 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8486 SET_FIELD_BITPOS.
8487
8488 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8489
8490 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8491 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8492 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8493 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8494 * jv-lang.c (java_link_class_type): Likewise, once.
8495 * stabsread.c (read_enum_type): Likewise.
8496
8497 2012-04-16 Yao Qi <yao@codesourcery.com>
8498
8499 * common/agent.c (agent_run_command): Add one more parameter `len'.
8500 Update callers.
8501 * common/agent.h: Update declaration.
8502 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8503 Update.
8504 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8505
8506 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8507
8508 PR mi/13393
8509 * value.c (value_actual_type): New function.
8510 * value.h (value_actual_type): New declaration.
8511 * varobj.c (update_type_if_necessary): New function.
8512 (varobj_create): Call value_actual_type instead of
8513 value_type.
8514 (install_dynamic_child): distinct changed and type changed MI variable
8515 objects.
8516 (update_dynamic_varobj_children): Updated for install_dynamic_child
8517 change. All callers updated.
8518 (varobj_update): Support for MI variable object type change if
8519 the value changed and RTTI is used to determine the type.
8520 (create_child_with_value): Call value_actual_type instead of
8521 value_type.
8522 (adjust_value_for_child_access): Extended with a new parameter which
8523 specify whether the given value should be casted to enclosing type.
8524 All callers updated.
8525
8526 2012-04-14 Yao Qi <yao@codesourcery.com>
8527
8528 Import gnulib module inttypes from git
8529 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8530 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8531 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8532 gnulib/m4/inttypes-pri.m4
8533 * aclocal.m4, config.in, configure: Regenerated.
8534 * gnulib/Makefile.am: Update.
8535 * gnulib/Makefile.in: Update.
8536 * gnulib/m4/gnulib-cache.m4: Update.
8537 * gnulib/m4/gnulib-comp.m4: Update.
8538 * gnulib/inttypes.in.h: New.
8539 * gnulib/m4/inttypes-pri.m4: New.
8540 * gnulib/m4/inttypes.m4: New.
8541
8542 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8543
8544 * infrun.c (resume): Update PC address to the real PC after
8545 preparing to do displaced stepping.
8546
8547 2012-04-12 Doug Evans <dje@google.com>
8548
8549 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8550 All callers updated.
8551
8552 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8553
8554 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8555
8556 2012-04-12 Doug Evans <dje@google.com>
8557
8558 * dwarf2read.c (create_all_type_units): Renamed from
8559 create_debug_types_hash_table. All callers updated.
8560
8561 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8562 local type_sig to sig_type, type_offset to type_offset_in_tu.
8563 (hash_signatured_type): Renamed from hash_type_signature,
8564 all callers updated.
8565 (eq_signatured_type): Renamed from eq_type_signature,
8566 all callers updated.
8567 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8568 (process_enumeration_scope): Ditto.
8569 (lookup_signatured_type_at_offset): Ditto.
8570 (load_full_type_unit, read_signatured_type): Ditto.
8571
8572 2012-04-12 Yao Qi <yao@codesourcery.com>
8573
8574 * remote.c (async_remote_interrupt): Correct function name in
8575 debug message.
8576 (async_remote_interrupt_twice): Ditto.
8577
8578 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8579
8580 * source.c (find_and_open_source): Consistently pass resulting
8581 full path through xfullpath.
8582
8583 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8584
8585 Provide more specific displaced-stepping memory error message.
8586 * infrun.c (displaced_step_prepare): New variable status. Call
8587 target_read_memory instead of read_memory, provide more specific
8588 error message.
8589
8590 2012-04-11 Tristan Gingold <gingold@adacore.com>
8591
8592 PR gdb/13901
8593 * darwin-nat.c (darwin_execvp): Revert previous patch.
8594
8595 2012-04-11 Tristan Gingold <gingold@adacore.com>
8596
8597 PR gdb/13901
8598 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8599 in case of change.
8600
8601 2012-04-11 Tristan Gingold <gingold@adacore.com>
8602
8603 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8604 warning.
8605
8606 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8607
8608 New command 'explore' which helps explore values and types in
8609 scope.
8610 * NEWS: Add an entry about the new 'explore' command.
8611 * data-directory/Makefile.in: Add gdb/command/explore.py
8612 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8613 command using the GDB Python API.
8614
8615 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8616
8617 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8618 extension in jump target calculation.
8619
8620 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8621
8622 * mips-tdep.c (mips32_next_pc): Handle JALX.
8623
8624 2012-04-10 Yao Qi <yao@codesourcery.com>
8625
8626 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8627
8628 2012-04-10 Yao Qi <yao@codesourcery.com>
8629
8630 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8631 and gnulib/m4/gnulib-tool.m4.
8632
8633 2012-04-10 Doug Evans <dje@google.com>
8634
8635 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8636 (load_partial_dies): Clarify comment.
8637 (find_partial_die): Support rereading type units.
8638 Clarify CU handling, if we know offset is in CU, don't search for the
8639 containing CU. Add comment regarding memory waste.
8640
8641 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8642
8643 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8644 i386/x32-avx and i386/x32-avx-linux.
8645 (i386/x32-expedite): New.
8646 (i386/x32-linux-expedite): Likewise.
8647 (i386/x32-avx-expedite): Likewise.
8648 (i386/x32-avx-linux-expedite): Likewise.
8649 ($(outdir)/i386/x32.dat): Likewise.
8650 ($(outdir)/i386/x32-linux.dat): Likewise.
8651 ($(outdir)/i386/x32-avx.dat): Likewise.
8652 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8653
8654 * features/i386/x32-avx-linux.xml: New file.
8655 * features/i386/x32-avx.xml: Likewise.
8656 * features/i386/x32-core.xml: Likewise.
8657 * features/i386/x32-linux.xml: Likewise.
8658 * features/i386/x32.xml: Likewise.
8659
8660 * features/i386/x32-avx-linux.c: New. Generated.
8661 * features/i386/x32-avx.c: Likewise.
8662 * features/i386/x32-linux.c: Likewise.
8663 * features/i386/x32.c: Likewise.
8664 * regformats/i386/x32-avx-linux.dat: Likewise.
8665 * regformats/i386/x32-avx.dat: Likewise.
8666 * regformats/i386/x32-linux.dat: Likewise.
8667 * regformats/i386/x32.dat: Likewise.
8668
8669 2012-04-10 Tristan Gingold <gingold@adacore.com>
8670
8671 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8672 code to kill the inferior.
8673
8674 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8675
8676 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8677 defines.
8678 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8679 defines.
8680 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8681 (yyvsp): New defines.
8682 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8683 defines.
8684 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8685 defines.
8686 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8687 defines.
8688 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8689 defines.
8690 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8691 defines.
8692
8693 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8694
8695 * sparc64-tdep.c (sparc64_store_arguments)
8696 (sparc64_store_arguments): Fix coding style.
8697
8698 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8699
8700 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8701 complex floats, adjust some related comments and tighten a related
8702 assertion.
8703 (sparc64_extract_return_value): Handle complex floats.
8704
8705 2012-04-07 Doug Evans <dje@google.com>
8706
8707 * dwarf2read.c (load_partial_dies): Change condition to assert.
8708
8709 2012-04-06 Doug Evans <dje@google.com>
8710
8711 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8712 "mov %rsp,%rbp".
8713
8714 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8715
8716 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8717 fencepost error.
8718 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8719 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8720 architecture.
8721
8722 2012-04-05 Keith Seitz <keiths@redhat.com>
8723
8724 * linespec.c (decode_compound): Remove.
8725 (enum offset_relative_sign): New enum.
8726 (struct line_offset): New struct.
8727 (struct linespec): New struct.
8728 (struct linespec_state): Move file_symtabs,
8729 user_filename, and user_function into struct linespec.
8730 Make result an anonymous struct holding vectors of
8731 symbolp and minsym_and_objfile_d.
8732 Add language member.
8733 (enum ls_token_type): New enum.
8734 (linespec_keywords): New array.
8735 (struct ls_token): New struct.
8736 (struct ls_parser): New struct.
8737 (linespec_lexer_lex_number): New function.
8738 (linespec_lexer_lex_keyword): New function.
8739 (is_ada_operator): New function.
8740 (skip_quote_char): New function.
8741 (copy_token_string): New function.
8742 (is_closing_quote_enclosed): New function.
8743 (find_parameter_list_end): New function.
8744 (linespec_lexer_lex_string): New function.
8745 (linespec_lexer_lex_one): New function.
8746 (linespec_lexer_consume_token): New function.
8747 (linespec_lexer_peek_token): New function.
8748 (cplusplus_error): Remove unused function.
8749 (find_methods): Update comment.
8750 (find_toplevel_char): Return const.
8751 (is_objc_method_format): Remove unused function.
8752 (find_toplevel_string): New function.
8753 (is_linespec_boundary): Remove.
8754 (symbol_not_found_error): New function.
8755 (find_method_overload_end): Remove function.
8756 (unexpected_linespec_error): New function.
8757 (keep_name_info): Remove.
8758 (linespec_parse_line_offset): New function.
8759 (linespec_parse_basic): New function.
8760 (canonicalize_linespec): New function.
8761 (decode_line_internal): Remove.
8762 (create_sals_line_offset): New function adapted from
8763 decode_all_digits.
8764 (convert_linespec_to_sals): New function.
8765 (parse_linespec): New function.
8766 (linespec_parser_new): New function.
8767 (linespec_state_destructor): Change parameter type to
8768 struct linespec_state *.
8769 Add language parameter.
8770 Remove freeing of moved members.
8771 (linespec_parser_delete): New function.
8772 (decode_line_full): Use parse_linespec and linespec_parser_new.
8773 (decode_line_1): Likewise.
8774 (decode_indirect): Rename to ...
8775 (linespec_expression_to_pc): ... this and rewrite
8776 to simply find CORE_ADDR, storing this result for later
8777 conversion to SALs.
8778 (locate_first_half): Remove.
8779 (deocde_objc): Add parameter LS.
8780 Initialize new struct collect_info members.
8781 Handle minimal symbols, too.
8782 (decode_compound): Delete.
8783 (lookup_prefix_sym): Rewrite.
8784 (compare_msymbols): New function.
8785 (find_method): Rewrite.
8786 Do not call cplusplus_error.
8787 (symtabs_from_filename): Rewrite.
8788 (collect_function_symbols): Delete.
8789 (find_function_symbols): Rewrite without ARGPTR-style
8790 processing.
8791 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8792 (decode_dollar): Adapted and renamed to ...
8793 (linespec_parse_variable): ... this.
8794 (find_linespec_symbols): New function.
8795 (decode_label): Adapted and renamed to ...
8796 (find_label_symbols): ... this.
8797 (decode_digits_list_mode): Add and use LS argument.
8798 (decode_digits_ordinary): Likewise.
8799 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8800 If in list mode, allow any symbol class. Otherwise, only
8801 permit LOC_BLOCK symbols.
8802 (minsym_found): Update comments.
8803 (search_minsyms_for_name): Do not convert the matching symbol
8804 into a SAL. Simply push the symbol and objfile into the
8805 result vector.
8806 (decode_variable): Delete. Contents adapted into
8807 find_linespec_symbols.
8808
8809 * cp-support.c (SKIP_SPACE): Remove.
8810 (operator_tokens): Remove unused global.
8811 (cp_validate_operator): Remove.
8812 * cp-support.h (cp_validate_operator): Remove declaration.
8813
8814 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8815
8816 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8817 for TYPE_VPTR_FIELDNO.
8818 * valprint.c (valprint_check_validity): Make it global, move the
8819 function comment ...
8820 * value.h (valprint_check_validity): ... to this new declaration.
8821
8822 2012-04-02 Tristan Gingold <gingold@adacore.com>
8823
8824 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8825 the STATE32 api for i386 state.
8826 (i386_darwin_store_inferior_registers): Likewise.
8827
8828 2012-04-02 Tristan Gingold <gingold@adacore.com>
8829
8830 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8831 SS offset.
8832 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8833 format_string.
8834
8835 2012-04-02 Tristan Gingold <gingold@adacore.com>
8836
8837 PR gdb/13901
8838 * darwin-nat.c (darwin_execvp): Set binary preference.
8839
8840 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8841
8842 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8843
8844 2012-03-30 Tom Tromey <tromey@redhat.com>
8845
8846 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8847 of TRY_CATCH. Fix error handling.
8848 * python/py-value.c (convert_value_from_python): Move 'old'
8849 declaration to innermost scope.
8850
8851 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8852 Andrey Smirnov <andrew.smirnov@gmail.com>
8853
8854 -Wshadow warning fix.
8855 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8856 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8857 Adjust code accordingly.
8858
8859 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8860
8861 * ada-lang.c (symbol_completion_add): Rename parameter
8862 "encoded" into "encoded_p". Ajust code and documentation
8863 accordingly.
8864
8865 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8866 Andrey Smirnov <andrew.smirnov@gmail.com>
8867
8868 -Wshadow warning fix.
8869 * ada-lang.c (symbol_completion_add): Rename parameter
8870 "wild_match" into wild_match_p. Update code and documentation
8871 accordingly.
8872
8873 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8874
8875 * ada-lang.c (symbol_completion_match): Rename parameter
8876 "encoded" into "encoded_p". Ajust code and documentation
8877 accordingly.
8878
8879 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8880 Andrey Smirnov <andrew.smirnov@gmail.com>
8881
8882 -Wshadow warning fix.
8883 * ada-lang.c (symbol_completion_match): Rename parameter
8884 "wild_match" into "wild_match_p". Adjust code and function
8885 documentation accordingly.
8886
8887 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8888 Andrey Smirnov <andrew.smirnov@gmail.com>
8889
8890 -Wshadow warning fix.
8891 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8892 "symbol_info" into "info". Adjust code accordingly.
8893 (ada_lookup_symbol): Likewise.
8894
8895 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8896
8897 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8898 of this function's documentation.
8899
8900 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8901 Andrey Smirnov <andrew.smirnov@gmail.com>
8902
8903 -Wshadow warning fix.
8904 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8905 variable into "wild_match_p". Adjust code accordingly.
8906
8907 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8908 Andrey Smirnov <andrew.smirnov@gmail.com>
8909
8910 -Wshadow warning fix.
8911 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8912 parameter into "wild_match_p". Adjust code accordingly.
8913 Document this parameter in the function description.
8914
8915 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8916 Andrey Smirnov <andrew.smirnov@gmail.com>
8917
8918 -Wshadow warning fix.
8919 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8920 "wild_match" parameter to "wild_match_p" (-Wshadow).
8921
8922 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8923
8924 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8925 in function documentation.
8926
8927 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8928 Andrey Smirnov <andrew.smirnov@gmail.com>
8929
8930 -Wshadow warning fix.
8931 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8932 variable into wild_match_p. Adjust code accordingly.
8933
8934 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8935 Andrey Smirnov <andrew.smirnov@gmail.com>
8936
8937 * ada-valprint.c (ada_val_print_1): Move the code handling
8938 TYPE_CODE_ENUM inside its own lexical block. Declare
8939 variables len and val there, instead of in the function's
8940 top level block. Avoid declaring deref_val again in a way
8941 that shadows another variable of the same name declared
8942 in one of the up-level blocks. Just re-use the up-level
8943 variable instead.
8944
8945 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8946
8947 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8948 Replace block_found argument by symbol_info. Adjust
8949 implementation accordingly. Add function documentation.
8950 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8951 Fix documentation.
8952 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8953 * ada-exp.y (write_object_renaming): Adjust to new
8954 ada_lookup_encoded_symbol API.
8955
8956 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8957
8958 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8959 documentation.
8960
8961 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8962
8963 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8964 (v850_register_name): Add the mpu and fpu register names.
8965 (v850e_register_name): Add the mpu and fpu register names.
8966 (v850e2_register_name): New function.
8967 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8968 bfd_mach_v850e2v3.
8969
8970 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8971
8972 * NEWS: Add entry for Ada varobj support.
8973
8974 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8975
8976 * varobj.c (default_value_is_changeable_p): New function,
8977 extracted from varobj_value_is_changeable_p. Add declaration.
8978 (ada_value_is_changeable_p): New function, extracted from
8979 varobj_value_is_changeable_p. Add declaration.
8980 (struct language_specific): New field "value_is_changeable_p".
8981 (languages): Add entries for new field.
8982 (varobj_create): Set language before calling install_new_value.
8983 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8984 "value_is_changeable_p" language callback.
8985
8986 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8987
8988 * ada-varobj.h, ada-varobj.c: New files.
8989 * Makefile.in (SFILES): Add ada-varobj.c.
8990 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8991 (COMMON_OBS): Add ada-varobj.o.
8992
8993 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8994
8995 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8996 (struct language_specific): New field "value_has_mutated".
8997 (languages): Set field "value_has_mutated" in each entry of array.
8998 (varobj_value_has_mutated): New function.
8999 (varobj_udpdate): Add handling of type mutation.
9000 (value_of_root): Add handling of type mutation.
9001 (ada_value_has_mutated): New function.
9002
9003 2012-03-28 Pedro Alves <palves@redhat.com>
9004
9005 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9006 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9007
9008 2012-03-28 Tom Tromey <tromey@redhat.com>
9009
9010 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9011 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9012 before returning.
9013
9014 2012-03-28 Tom Tromey <tromey@redhat.com>
9015
9016 * .dir-locals.el: New file.
9017
9018 2012-03-28 Pedro Alves <palves@redhat.com>
9019
9020 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9021
9022 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9023
9024 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9025 handling for r0.
9026
9027 2012-03-27 Pedro Alves <palves@redhat.com>
9028
9029 Eliminate struct ui_stream.
9030
9031 * ui-out.h (struct ui_stream): Delete.
9032 (ui_out_field_stream): Adjust prototype.
9033 (ui_out_stream_new, ui_out_stream_delete)
9034 (make_cleanup_ui_out_stream_delete): Delete declarations.
9035 * ui-out.c (ui_out_field_stream): Change prototype to take a
9036 ui_file instead of a ui_stream. Adjust.
9037 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9038 (make_cleanup_ui_out_stream_delete): Delete.
9039 * breakpoint.c (print_breakpoint_location)
9040 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9041 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9042 * disasm.c (dump_insns): Ditto.
9043 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9044 prototype.
9045 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9046 ui_stream/ui_out_stream_new.
9047 * infcmd.c (print_return_value): Ditto.
9048 * osdata.c (info_osdata_command): Don't allocate a local
9049 ui_stream.
9050 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9051 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9052 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9053 allocate a local ui_stream.
9054 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9055 instead of ui_stream/ui_out_stream_new.
9056 (list_args_or_locals): Don't allocate a local ui_stream.
9057 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9058 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9059 ui_stream/ui_out_stream_new.
9060 * cli/cli-setshow.c (do_setshow_command): Ditto.
9061
9062 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9063
9064 * arm-linux-tdep.c (arm_linux_init_abi): Call
9065 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9066 * arm-tdep.c (arm_process_record): New function.
9067 (deallocate_reg_mem): New function.
9068 (decode_insn): New function.
9069 (thumb_record_branch): New function.
9070 (thumb_record_ldm_stm_swi(): New function.
9071 (thumb_record_misc): New function.
9072 (thumb_record_ld_st_stack): New function.
9073 (thumb_record_ld_st_imm_offset): New function.
9074 (thumb_record_ld_st_reg_offset(): New function.
9075 (thumb_record_add_sub_cmp_mov): New function.
9076 (thumb_record_shift_add_sub): New function.
9077 (arm_record_coproc_data_proc): New function.
9078 (arm_record_coproc): New function.
9079 (arm_record_b_bl): New function.
9080 (arm_record_ld_st_multiple): New function.
9081 (arm_record_ld_st_reg_offset): New function.
9082 (arm_record_ld_st_imm_offset): New function.
9083 (arm_record_data_proc_imm): New function.
9084 (arm_record_data_proc_misc_ld_str): New function.
9085 (arm_record_extension_space): New function.
9086 (arm_record_strx): New function.
9087 (sbo_sbz): New function.
9088 (struct insn_decode_record): New structure for arm insn record.
9089 (REG_ALLOC): New macro for reg allocations.
9090 (MEM_ALLOC): New macro for memory allocations.
9091 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9092
9093 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9094
9095 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9096 (store_register): Likewise.
9097
9098 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9099
9100 * MAINTAINERS (Write After Approval): Add myself to the list.
9101
9102 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9103
9104 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9105 Describe also the option "auto".
9106
9107 2012-03-22 Richard Henderson <rth@redhat.com>
9108
9109 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9110 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9111
9112 2012-03-22 Richard Henderson <rth@redhat.com>
9113
9114 * jit.c (jit_read_code_entry): Compute alignment and offset of
9115 int64_t member before computing entry_size.
9116
9117 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9118
9119 Python scripting: Add new method Value.referenced_value to
9120 gdb.Value which can dereference pointer as well as reference
9121 values.
9122 * NEWS: Add entry under 'Python scripting' about the new method
9123 Value.referenced_value on gdb.Value objects.
9124 * python/py-value.c (valpy_referenced_value): New function
9125 defining a new method on gdb.Value objects which can dereference
9126 pointer and reference values.
9127
9128 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9129
9130 * MAINTAINERS (Write After Approval): Add myself to the list.
9131
9132 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9133
9134 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9135 in addition to "main".
9136
9137 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9138
9139 * expression.h (op_name): Add declaration.
9140 * expprint.c (op_name): Remove declaration. Make non-static.
9141 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9142
9143 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9144
9145 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9146 of struct siginfo.
9147 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9148 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9149 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9150 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9151 (linux_nat_get_siginfo): Likewise.
9152 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9153 (linux_nat_get_siginfo): Likewise.
9154 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9155 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9156 * procfs.c (gdb_siginfo_t): Likewise.
9157
9158 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9159
9160 * .gitignore: Ignore more files.
9161
9162 2012-03-20 Pedro Alves <palves@redhat.com>
9163
9164 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9165 returns.
9166
9167 2012-03-20 Yao Qi <yao@codesourcery.com>
9168
9169 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9170 comment.
9171
9172 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9173
9174 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9175 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9176 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9177 sect_offset.
9178 * dwarf2expr.h (cu_offset, sect_offset): New types.
9179 (struct dwarf_expr_context_funcs) <dwarf_call>
9180 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9181 sect_offset.
9182 (struct dwarf_expr_context) <len>: Improve the comment.
9183 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9184 cu_offset and sect_offset.
9185 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9186 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9187 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9188 * dwarf2loc.h: Include dwarf2expr.h.
9189 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9190 and sect_offset.
9191 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9192 Improve the comment.
9193 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9194 (struct signatured_type, struct line_header, struct partial_die_info)
9195 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9196 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9197 (get_die_type_at_offset, create_cus_from_index)
9198 (create_signatured_type_table_from_index, dw2_get_file_names)
9199 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9200 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9201 (create_debug_types_hash_table, process_psymtab_comp_unit)
9202 (load_partial_comp_unit, create_all_comp_units)
9203 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9204 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9205 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9206 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9207 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9208 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9209 (find_partial_die, read_attribute_value, lookup_die_type)
9210 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9211 (is_ref_attr): New function comment.
9212 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9213 Use cu_offset and sect_offset.
9214 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9215 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9216 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9217 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9218 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9219 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9220 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9221 sect_offset.
9222
9223 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9224
9225 Code cleanup.
9226 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9227 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9228 with xfree.
9229 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9230
9231 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9232
9233 * NEWS: Describe new options --init-command=FILE, -ix and
9234 --init-eval-command=COMMAND, -iex.
9235 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9236 CMDARG_INIT_COMMAND.
9237 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9238 "init-command", "init-eval-command", "ix" and "iex" to the variable
9239 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9240 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9241 (print_gdb_help): Describe --init-command=FILE, -ix and
9242 --init-eval-command=COMMAND, -iex.
9243
9244 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9245
9246 Code cleanup.
9247 * main.c (struct cmdarg): Move it here from main. Add more comments.
9248 (cmdarg_s, VEC (cmdarg_s)): New.
9249 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9250 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9251 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9252 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9253 of CMDARG.
9254
9255 2012-03-19 Tom Tromey <tromey@redhat.com>
9256
9257 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9258
9259 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9260
9261 PR symtab/13777
9262 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9263 GCC >=4.5.
9264
9265 2012-03-16 Chris January <chris.january@allinea.com>
9266
9267 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9268 of clear.
9269
9270 2012-03-16 Chris January <chris.january@allinea.com>
9271
9272 * source.c (add_path): Use memmove instead of strcpy because the
9273 strings overlap.
9274
9275 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9276
9277 * value.h (set_value_parent): Add declaration.
9278 * value.c (set_value_parent): New function.
9279 (value_address): If VALUE->PARENT is not NULL, then use it as
9280 the base address instead of VALUE->LOCATION.address.
9281 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9282 the same as OBJ's address. Adjust V's offset accordingly.
9283 Set V's parent.
9284
9285 2012-03-16 Gary Benson <gbenson@redhat.com>
9286
9287 PR breakpoints/10738
9288 * dwarf2read.c (use_deprecated_index_sections): New global.
9289 (struct partial_die_info): New member may_be_inlined.
9290 (read_partial_die): Set may_be_inlined where appropriate.
9291 (add_partial_subprogram): Add partial symbols for partial
9292 DIEs that may be inlined.
9293 (new_symbol_full): Add inlined subroutines to the current
9294 scope.
9295 (write_psymtabs_to_index): Bump version number.
9296 (dwarf2_read_index): Read only version 6 indices unless
9297 use_deprecated_index_sections is set.
9298 * linespec.c (symbol_and_data_callback): New structure.
9299 (iterate_inline_only): New function.
9300 (iterate_over_all_matching_symtabs): New argument
9301 "include_inline". If nonzero, also call the callback for
9302 symbols representing inlined subroutines.
9303 (lookup_prefix_sym): Pass extra argument to the above.
9304 (find_function_symbols): Likewise.
9305 (add_matching_symbols_to_info): Likewise.
9306 * NEWS: Mention that GDB can now set breakpoints on inlined
9307 functions.
9308
9309 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9310
9311 * p-typeprint.c (pascal_type_print_method_args):
9312 Fix display of parameter of methods.
9313
9314 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9315
9316 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9317 Add missing prototype.
9318
9319 2012-03-16 Yao Qi <yao@codesourcery.com>
9320 Jan Kratochvil <jan.kratochvil@redhat.com>
9321
9322 Fix false compilation warning.
9323 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9324
9325 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9326 Pedro Alves <pedro@codesourcery.com>
9327
9328 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9329 (arm_register_g_packet_guesses): New function.
9330 (arm_gdbarch_init): Don't force a target description with
9331 registers when the executable is detected as M-profile. Instead
9332 set gdbarch->tdep->is_m. Register `g' packet guesses.
9333 (_initialize_arm_tdep): Initialize the new target description.
9334 * features/arm-with-m-fpa-layout.xml: New description.
9335 * features/arm-with-m-fpa-layout.c: New, generated.
9336
9337 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9338
9339 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9340 Update function description.
9341 (insert_bp_location): Do not wipe bl->target_info out.
9342 * mem-break.c: #include "gdb_string.h".
9343 (default_memory_insert_breakpoint): Do not call target_read_memory
9344 with a pointer to the breakpoint's shadow_contents buffer. Use
9345 a local buffer instead.
9346 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9347
9348 2012-03-15 Tom Tromey <tromey@redhat.com>
9349
9350 * NEWS: Mention "info vtbl", not "info vtable".
9351 * cp-support.c (info_vtbl_command): Fix comment.
9352 (_initialize_cp_support): Fix text.
9353
9354 2012-03-15 Tom Tromey <tromey@redhat.com>
9355
9356 * cp-valprint.c (cp_print_value_fields): Use
9357 print_function_pointer_address for vtable slot.
9358
9359 2012-03-15 Tom Tromey <tromey@redhat.com>
9360
9361 * gnu-v3-abi.c (struct value_and_voffset): New.
9362 (hash_value_and_voffset, eq_value_and_voffset)
9363 (compare_value_and_voffset, compute_vtable_size)
9364 (print_one_vtable, gnuv3_print_vtable): New functions.
9365 (init_gnuv3_ops): Initialize 'print_vtable' field.
9366 * cp-support.c (info_vtbl_command): New function.
9367 (_initialize_cp_support): Add "info vtbl".
9368 * cp-abi.h (cplus_print_vtable): Declare.
9369 (struct cp_abi_ops) <print_vtable>: New field.
9370 * cp-abi.c (cplus_print_vtable): New function.
9371 * NEWS: Update.
9372
9373 2012-03-15 Tom Tromey <tromey@redhat.com>
9374
9375 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9376 iterate_over_symbols.
9377
9378 2012-03-14 Doug Evans <dje@google.com>
9379
9380 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9381 DW_OP_GNU_parameter_ref.
9382
9383 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9384
9385 Fix double prompt of 'interpreter-exec mi'.
9386 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9387 (mi_interpreter_resume): use it.
9388 (mi_execute_command_input_handler): New function.
9389 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9390 mi_execute_command_input_handler.
9391
9392 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9393
9394 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9395 prototype.
9396 (darwin_debug_port_info): Make static.
9397 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9398 * machoread.c (_initialize_machoread): Add prototype.
9399 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9400 (i386_darwin_set_control, i386_darwin_get_control)
9401 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9402 i386_darwin_get_status, i386_darwin_get_control):
9403 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9404
9405 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9406
9407 * ax-gdb.c (gen_usual_unary): Remove special handling of
9408 enum and bool types.
9409
9410 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9411
9412 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9413
9414 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9415
9416 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9417
9418 2012-03-13 Chris January <chris.january@allinea.com>
9419
9420 * aix-thread.c (fill_sprs): Store the floating point registers
9421 at the correct offsets into vals.
9422
9423 2012-03-13 Doug Evans <dje@google.com>
9424
9425 * NEWS: Mention symbol-reloading has been deleted.
9426 * symfile.c (symbol_reloading): Delete.
9427 (show_symbol_reloading): Delete.
9428 (_initialize_symfile): Delete set/show symbol-reloading.
9429
9430 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9431 read_in_chain until we have successfully read it in.
9432 (load_full_comp_unit): Ditto.
9433 (read_signatured_type): Add comment.
9434
9435 2012-03-13 Chris January <chris.january@allinea.com>
9436
9437 * stabsread.c (fix_common_block): Change type of valu argument
9438 to CORE_ADDR.
9439
9440 2012-03-13 Chris January <chris.january@allinea.com>
9441
9442 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9443 instruction.
9444
9445 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9446
9447 * common/linux-procfs.c (linux_proc_get_int): New, from
9448 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9449 field.
9450 (linux_proc_get_tgid): Only call linux_proc_get_int.
9451 (linux_proc_get_tracerpid): New.
9452 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9453 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9454 linux_proc_pid_has_state.
9455 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9456 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9457 (linux_ptrace_attach_warnings): New.
9458 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9459 New declaration.
9460 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9461 (linux_nat_attach): New variables ex, buffer, message and message_s.
9462 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9463
9464 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9465
9466 * Makefile.in (linux-ptrace.o): New.
9467 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9468 from linux-nat.c.
9469 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9470 * common/linux-ptrace.c: New file.
9471 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9472 * config/arm/linux.mh: Likewise.
9473 * config/i386/linux.mh: Likewise.
9474 * config/i386/linux64.mh: Likewise.
9475 * config/ia64/linux.mh: Likewise.
9476 * config/m32r/linux.mh: Likewise.
9477 * config/m68k/linux.mh: Likewise.
9478 * config/mips/linux.mh: Likewise.
9479 * config/pa/linux.mh: Likewise.
9480 * config/powerpc/linux.mh: Likewise.
9481 * config/powerpc/ppc64-linux.mh: Likewise.
9482 * config/powerpc/spu-linux.mh: Likewise.
9483 * config/s390/s390.mh: Likewise.
9484 * config/sparc/linux.mh: Likewise.
9485 * config/sparc/linux64.mh: Likewise.
9486 * config/xtensa/linux.mh: Likewise.
9487 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9488 common/linux-procfs.c.
9489 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9490
9491 2012-03-13 Hui Zhu <teawater@gmail.com>
9492 Pedro Alves <palves@redhat.com>
9493
9494 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9495 CREATE_BREAKPOINT_FLAGS_INSERTED.
9496 (create_breakpoint_sal, create_breakpoints_sal)
9497 (base_breakpoint_create_breakpoints_sal)
9498 (tracepoint_create_breakpoints_sal)
9499 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9500 down.
9501 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9502 (ftrace_command, strace_command): Adjust.
9503 (create_tracepoint_from_upload): Pass
9504 CREATE_BREAKPOINT_FLAGS_INSERTED.
9505 * breakpoint.h (enum breakpoint_create_flags): New.
9506 (create_breakpoint): New flags parameter.
9507 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9508 * python/py-breakpoint.c (bppy_init): Adjust.
9509 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9510 * spu-tdep.c (spu_catch_start): Adjust.
9511
9512 2012-03-13 Pedro Alves <palves@redhat.com>
9513 Hui Zhu <teawater@gmail.com>
9514 Yao Qi <yao@codesourcery.com>
9515
9516 * remote.c (struct remote_state): New field `starting_up'.
9517 (remote_start_remote): Set and clear it.
9518 (remote_can_download_tracepoint): If starting up, return false.
9519
9520 2012-03-13 Yao Qi <yao@codesourcery.com>
9521
9522 * inferior.h (struct inferior): Remove fields any_syscall_count,
9523 syscalls_counts and total_syscalls_count. Move them to new
9524 struct catch_syscall_inferior_data in breakpoint.c.
9525 * breakpoint.c: Call DEF_VEC_I(int).
9526 (struct catch_syscall_inferior_data): New.
9527 (get_catch_syscall_inferior_data): New.
9528 (catch_syscall_inferior_data_cleanup): New.
9529 (insert_catch_syscall): Update to access data in
9530 struct catch_syscall_inferior_data.
9531 (insert_catch_syscall): Likewise.
9532 (remove_catch_syscall): Likewise.
9533 (remove_catch_syscall): Likewise.
9534 (is_syscall_catchpoint_enabled): Likewise.
9535 (add_catch_command): Likewise.
9536 (_initialize_breakpoint): Register cleanup.
9537 * breakpoint.h: Removed DEF_VEC_I(int).
9538 * dwarf2loc.c: Call DEF_VEC_I(int).
9539 * mi/mi-main.c: Likewise.
9540
9541 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9542
9543 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9544
9545 2012-03-12 Chris January <chris.january@allinea.com>
9546
9547 * aix-thread.c (_initialize_aix_thread): Add prototype.
9548 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9549 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9550
9551 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9552
9553 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9554 include of "amd64-nat.h".
9555
9556 2012-03-12 Tom Tromey <tromey@redhat.com>
9557
9558 * buildsym.c (record_pending_block): Now static.
9559 * buildsym.h: (record_pending_block): Remove.
9560
9561 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9562
9563 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9564
9565 2012-03-09 Tom Tromey <tromey@redhat.com>
9566
9567 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9568 producer_is_gxx_lt_4_6>: New fields.
9569 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9570
9571 2012-03-09 Tom Tromey <tromey@redhat.com>
9572
9573 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9574
9575 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9576
9577 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9578 prototype.
9579
9580 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9581
9582 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9583
9584 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9585
9586 Fix -Wmissing-prototypes build.
9587 * arm-linux-nat.c (get_thread_id): Make it static.
9588 * xtensa-linux-nat.c (get_thread_id): Likewise.
9589
9590 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9591
9592 * server.c (process_point_options): If a conditional expression
9593 is found, only print a message if remote_debug is nonzero.
9594
9595 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9596
9597 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9598 of internal error for unknown/unsupported types.
9599
9600 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9601
9602 Fix CU relative vs. absolute DIE offsets.
9603 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9604 offset to offset_in_cu.
9605 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9606 TYPE_OFFSET.
9607 (dwarf2_fetch_die_location_block): Rename parameter offset to
9608 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9609
9610 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9611
9612 * libunwind-frame.c: Rename to ...
9613 * ia64-libunwind-tdep.c: ... here.
9614 * libunwind-frame.h: Rename to ...
9615 * ia64-libunwind-tdep.h: ... here.
9616 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9617 ia64-libunwind-tdep.h.
9618 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9619 * README (--with-libunwind): Rename to ...
9620 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9621 * config.in: Regenerate.
9622 * configure: Regenerate.
9623 * configure.ac: New option --with-libunwind-ia64, make the
9624 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9625 Remove AC_DEFINE for HAVE_LIBUNWIND.
9626 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9627 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9628 Rename libunwind-frame in the general comment.
9629 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9630 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9631 Move forward declarations inside #ifndef. Rename libunwind-frame in
9632 the general comment.
9633 * ia64-tdep.c: Rename libunwind-frame.h #include to
9634 ia64-libunwind-tdep.h.
9635 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9636 (ia64_libunwind_descr): Rename libunwind-frame to
9637 ia64-libunwind-tdep in these function comments.
9638 * ia64-tdep.h: Rename libunwind-frame.h #include to
9639 ia64-libunwind-tdep.h.
9640 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9641 ia64-libunwind-tdep in that data comment.
9642
9643 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9644
9645 * libunwind-frame.h (struct frame_unwind): New declaration.
9646
9647 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9648
9649 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9650 "set breakpoint condition-evaluation" command.
9651
9652 2012-03-08 Tristan Gingold <gingold@adacore.com>
9653
9654 * sparc-stub.c: Move to stubs/
9655 * sh-stub.c: Likewise.
9656 * m68k-stub.c: Likewise.
9657 * m32r-stub.c: Likewise.
9658 * i386-stub.c: Likewise.
9659
9660 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9661
9662 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9663 linux_get_siginfo_type.
9664
9665 * m68klinux-nat.c: Include "gdb_proc_service.h".
9666 (PTRACE_GET_THREAD_AREA): Define.
9667 (ps_get_thread_area): New function.
9668
9669 2012-03-08 Yao Qi <yao@codesourcery.com>
9670
9671 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9672 `xsnprintf'.
9673 (remote_query_attached): Likewise.
9674 (remote_static_tracepoint_marker_at): Likewise.
9675 (remote_set_permissions): Likewise.
9676 (remote_detach_1, extended_remote_attach_1): Likewise.
9677 (send_g_packet, remote_vkill): Likewise.
9678 (extended_remote_disable_randomization): Likewise.
9679 (remote_add_target_side_condition): Likewise.
9680 (remote_insert_breakpoint): Likewise.
9681 (remote_remove_breakpoint): Likewise.
9682 (remote_insert_watchpoint): Likewise.
9683 (remote_remove_watchpoint): Likewise.
9684 (remote_insert_hw_breakpoint): Likewise.
9685 (remote_insert_hw_breakpoint): Likewise.
9686 (remote_remove_hw_breakpoint): Likewise.
9687 (remote_download_command_source): Likewise.
9688 (remote_download_tracepoint): Likewise.
9689 (remote_download_trace_state_variable): Likewise.
9690 (remote_disable_tracepoint): Likewise.
9691 (remote_trace_set_readonly_regions): Likewise.
9692 (remote_get_tracepoint_status): Likewise.
9693 (remote_trace_find): Likewise.
9694 (remote_get_trace_state_variable_value): Likewise.
9695 (remote_set_disconnected_tracing): Likewise.
9696 (remote_set_circular_trace_buffer): Likewise.
9697 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9698 (remote_use_agent): Likewise.
9699 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9700 Update callers.
9701
9702 2012-03-07 Pedro Alves <palves@redhat.com>
9703
9704 * NEWS: Mention QProgramSignals.
9705 * inferior.h (update_signals_program_target): Declare.
9706 * infrun.c: (update_signals_program_target): New.
9707 (handle_command): Update the target of the new program signals
9708 array changes.
9709 * remote.c (PACKET_QProgramSignals): New enum.
9710 (last_program_signals_packet): New global.
9711 (remote_program_signals): New.
9712 (remote_start_remote): Update the target with the program signals
9713 list.
9714 (remote_protocol_features): Add entry for QPassSignals.
9715 (remote_open_1): Free anc clear last_program_signals_packet.
9716 (init_remote_ops): Install remote_program_signals.
9717 * target.c (update_current_target): Adjust.
9718 (target_program_signals): New.
9719 * target.h (struct target_ops) <to_program_signals>: New field.
9720 (target_program_signals): Declare.
9721
9722 2012-03-07 Pedro Alves <palves@redhat.com>
9723
9724 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9725 extensions.
9726
9727 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9728
9729 * m68klinux-nat.c (getregs_supplies): Make static.
9730 (getfpregs_supplies): Likewise.
9731 (have_ptrace_getregs): Likewise.
9732
9733 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9734
9735 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9736 in call to get_die_type_at_offset.
9737
9738 2012-03-06 Stan Shebs <stan@codesourcery.com>
9739
9740 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9741 * mi/mi-cmd-disas.c: Ditto.
9742 * mi/mi-cmd-env.c: Ditto.
9743 * mi/mi-cmd-file.c: Ditto.
9744 * mi/mi-cmd-stack.c: Ditto.
9745 * mi/mi-cmd-target.c: Ditto.
9746 * mi/mi-cmd-var.c: Ditto.
9747 * mi/mi-cmds.c: Ditto.
9748 * mi/mi-cmds.h: Ditto.
9749 * mi/mi-console.c: Ditto.
9750 * mi/mi-getopt.c: Ditto.
9751 * mi/mi-getopt.h: Ditto.
9752 * mi/mi-interp.c: Ditto.
9753 * mi/mi-main.c: Ditto.
9754 * mi/mi-out.c: Ditto.
9755 * mi/mi-parse.c: Ditto.
9756 * mi/mi-parse.h: Ditto.
9757 * mi/mi-symbol-cmds.c: Ditto.
9758
9759 * mi/mi-getopt.h: Move mi_opt struct up.
9760 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9761 return.
9762 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9763
9764 2012-03-06 Tom Tromey <tromey@redhat.com>
9765
9766 * proc-service.c (ps_pglobal_lookup): Set the current program
9767 space.
9768
9769 2012-03-06 Pedro Alves <palves@redhat.com>
9770
9771 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9772
9773 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9774
9775 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9776
9777 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9778
9779 Code cleanup.
9780 * common/linux-osdata.c (linux_common_core_of_thread): New function
9781 comment.
9782 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9783 call by linux_common_core_of_thread.
9784 (linux_nat_core_of_thread_1): Remove.
9785 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9786 * linux-thread-db.c: Include linux-osdata.h.
9787 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9788 linux_common_core_of_thread.
9789
9790 2012-03-05 Tom Tromey <tromey@redhat.com>
9791
9792 * value.c (value_primitive_field): Don't fetch contents for
9793 non-virtual bases.
9794
9795 2012-03-05 Tom Tromey <tromey@redhat.com>
9796
9797 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9798
9799 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9800
9801 * s390-nat.c: Include "gregset.h".
9802
9803 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9804
9805 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9806 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9807 (libunwind_load): New variable so_error, use it for dlerror. Try to
9808 load also LIBUNWIND_SO_7.
9809
9810 2012-03-05 Pedro Alves <palves@redhat.com>
9811
9812 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9813 is not NULL, and remove resulting dead code.
9814
9815 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9816
9817 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9818 prologue to sh_analyze_prologue.
9819 (sh_analyze_prologue): Make better use of such an upper limit, and
9820 generally be more cautious about accessing memory.
9821
9822 2012-03-05 Tom Tromey <tromey@redhat.com>
9823
9824 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9825 _initialize_ia64_hpux_tdep.
9826
9827 2012-03-05 Pedro Alves <palves@redhat.com>
9828
9829 PR gdb/13766
9830
9831 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9832 the register state is clear, supply explicit zero, instead of
9833 marking the register unavailable.
9834
9835 2012-03-05 Tristan Gingold <gingold@adacore.com>
9836
9837 * NEWS: Mention OpenVMS ia64 new target.
9838
9839 2012-03-05 Tristan Gingold <gingold@adacore.com>
9840
9841 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9842 (ia64_unw_accessors, ia64_unw_rse_accessors)
9843 (ia64_libunwind_descr): Declare.
9844 * ia64-vms-tdep.c: New file.
9845 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9846 (ia64_libunwind_descr): Make them public.
9847 * configure.tgt: Add ia64-*-*vms*.
9848 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9849 (ALLDEPFILES): Add ia64-vms-tdep.c
9850
9851 2012-03-05 Tristan Gingold <gingold@adacore.com>
9852
9853 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9854 * remote.c (PACKET_qXfer_uib): New enum value.
9855 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9856 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9857 (_initialize_remote): Call add_packet_config_cmd for
9858 xfer:uib packet.
9859
9860 2012-03-05 Tristan Gingold <gingold@adacore.com>
9861
9862 * osabi.c (gdb_osabi_names): Add OpenVMS.
9863 (generic_elf_osabi_sniffer): Likewise.
9864 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9865
9866 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9867
9868 Removed unused code.
9869 * libunwind-frame.c (libunwind_frame_unwind)
9870 (libunwind_frame_base_address): Remove.
9871 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9872
9873 2012-03-04 Yao Qi <yao@codesourcery.com>
9874
9875 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9876 remove trailing new line.
9877 (agent_run_command, agent_run_command): Add _ markup.
9878 (agent_capability_check): Likewise.
9879
9880 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9881
9882 * breakpoint.c (set_condition_evaluation_mode): Set
9883 CONDITION_EVALUATION_MODE unconditionally.
9884
9885 2012-03-03 Yao Qi <yao@codesourcery.com>
9886
9887 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9888 * common/agent.h: Update declaration.
9889 * inf-child.c (inf_child_use_agent): New.
9890 (inf_child_can_use_agent): New.
9891 (inf_child_target): Initialize fields `to_use_agent'
9892 and `to_can_use_agent'.
9893 * agent.c (agent_new_objfile): New.
9894 (_initialize_agent): Add agent_new_objfile to new_objfile
9895 observer.
9896
9897 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9898 New.
9899 (linux_target_install_ops): Initialize field
9900 `to_static_tracepoint_markers_by_strid'.
9901 * remote.c (free_current_marker): Move it to ...
9902 * tracepoint.c (free_current_marker): ... here. New.
9903 (cleanup_target_stop): New.
9904 * tracepoint.h: Declare free_current_marker.
9905 * NEWS: Add one entry about `info static-tracepoint-marker'.
9906
9907 2012-03-03 Yao Qi <yao@codesourcery.com>
9908
9909 * common/agent.c (agent_loaded_p): New.
9910 (agent_look_up_symbols): New global.
9911 * common/agent.h: Declare agent_loaded_p.
9912
9913 2012-03-03 Yao Qi <yao@codesourcery.com>
9914
9915 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9916 (agent_capability_check, agent_capability_invalidate): New.
9917 (symbol_list): New array element.
9918 * common/agent.h (enum agent_capa): New.
9919 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9920
9921 2012-03-03 Yao Qi <yao@codesourcery.com>
9922
9923 * target.h (struct target_ops) <to_use_agent>: New field.
9924 (struct target_ops) <to_can_use_agent>: New field.
9925 (target_use_agent, target_can_use_agent): New macro.
9926 * target.c (update_current_target): Update.
9927 * remote.c: New enum `PACKET_QAgent'.
9928 (remote_protocol_features): Add a new element.
9929 (remote_use_agent, remote_can_use_agent): New.
9930 (init_remote_ops): Initialize field `can_use_agent' with
9931 remote_can_use_agent. Intiailize field `use_agent' with
9932 remote_use_agent.
9933 * common/agent.c (use_agent): New global.
9934 * common/agent.h: Declare it.
9935 * tracepoint.c (info_static_tracepoint_markers_command): Add
9936 comment.
9937 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9938 (COMMON_OBS): Add common/agent.o and agent.o
9939 (common-agent.o): New rule.
9940 * agent.c: New.
9941
9942 2012-03-03 Yao Qi <yao@codesourcery.com>
9943
9944 * common/agent.c: New.
9945 * common/agent.h: New.
9946 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9947 AC_CHECK_HEADERS.
9948 * configure, configh.in: Regenerated.
9949
9950 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9951
9952 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9953 unless it exists for this architecture.
9954
9955 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9956
9957 * language.h (struct language_defn): New "method" la_read_var_value.
9958 * findvar.c: #include "language.h".
9959 (default_read_var_value): Renames read_var_value. Rewrite
9960 function description.
9961 (read_var_value): New function.
9962 * value.h (default_read_var_value): Add prototype.
9963 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9964 New functions.
9965 (ada_language_defn): Add entry for la_read_var_value.
9966 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9967 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9968 language_defn structures to add entry for new la_read_var_value
9969 field.
9970
9971 2012-03-02 Tom Tromey <tromey@redhat.com>
9972 Pedro Alves <palves@redhat.com>
9973
9974 PR breakpoints/13776:
9975 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9976 breakpoints.
9977 (delete_longjmp_breakpoint_at_next_stop): New.
9978 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9979 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9980 before deleting the inferior. Add comments.
9981 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9982 breakpoints immediately, but only on next stop. Move that code
9983 next to where we mark other breakpoints for deletion.
9984
9985 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9986
9987 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9988 marker.
9989 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9990 violation.
9991
9992 2012-03-02 Pedro Alves <palves@redhat.com>
9993
9994 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9995
9996 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9997
9998 Fix -Wmissing-prototypes build.
9999 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10000 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10001 (gdbsim_has_memory): Likewise.
10002
10003 2012-03-02 Yao Qi <yao@codesourcery.com>
10004
10005 Fix -Wmissing-prototypes build.
10006 * charset.c (phony_iconv_open): Make static.
10007 (phony_iconv_close, phony_iconv): Likewise.
10008 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10009 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10010 prototype.
10011 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10012 * ser-mingw.c (create_select_thread): Make static.
10013 * windows-termcap.c (tgetent): New prototype.
10014 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10015
10016 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10017
10018 Fix -Wmissing-prototypes build.
10019 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10020 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10021 (_initialize_loadable): New prototypes.
10022
10023 2012-03-02 Doug Evans <dje@google.com>
10024
10025 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10026 abbrev table, read_comp_unit will do it.
10027
10028 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10029
10030 Fix -Wmissing-prototypes build.
10031 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10032 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10033 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10034 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10035 (_initialize_arm_symbian_tdep): New prototype.
10036 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10037 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10038 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10039 static.
10040 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10041 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10042 prototype.
10043 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10044 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10045 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10046 static.
10047 * moxie-tdep.c (moxie_process_record): Likewise.
10048 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10049 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10050 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10051 (_initialize_rl78_tdep): New prototype.
10052 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10053 (_initialize_rx_tdep): New prototype.
10054 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10055 (_initialize_darwin_solib): New prototype.
10056 * solib-spu.c: Include solib-spu.h.
10057 (_initialize_spu_solib): New prototype.
10058 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10059 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10060 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10061 (tic6x_software_single_step): Make it static.
10062 (_initialize_tic6x_tdep): New prototype.
10063
10064 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10065
10066 Fix -Wmissing-prototypes build.
10067 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10068 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10069
10070 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10071
10072 Fix -Wmissing-prototypes build.
10073 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10074 (frv_have_stopped_data_address): Remove.
10075
10076 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10077
10078 Fix -Wmissing-prototypes build.
10079 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10080 * sh-tdep.c: Include sh64-tdep.h.
10081 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10082 * sh64-tdep.c: Include sh64-tdep.h.
10083 * sh64-tdep.h: New file.
10084
10085 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10086
10087 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10088
10089 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10090
10091 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10092 sp_regnum once the gdbarch_init_osabi hook has been called.
10093
10094 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10095
10096 * mips-tdep.c (mips32_bc1_pc): New function.
10097 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10098 BPOSGE32 and BPOSGE64 instructions.
10099 (deal_with_atomic_sequence): Likewise.
10100 (mips32_instruction_has_delay_slot): Likewise.
10101
10102 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10103 Chris Dearman <chris@mips.com>
10104 Maciej W. Rozycki <macro@codesourcery.com>
10105 Joseph Myers <joseph@codesourcery.com>
10106
10107 * features/mips-dsp.xml: New file.
10108 * features/mips64-dsp.xml: New file.
10109 * features/mips-dsp-linux.xml: New file.
10110 * features/mips64-dsp-linux.xml: New file.
10111 * features/Makefile (WHICH): Add mips-dsp-linux and
10112 mips64-dsp-linux.
10113 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10114 * features/mips-dsp-linux.c: New file.
10115 * features/mips64-dsp-linux.c: New file.
10116 * regformats/mips-dsp-linux.dat: New file.
10117 * regformats/mips64-dsp-linux.dat: New file.
10118 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10119 registers.
10120 (mips64_linux_register_addr): Likewise.
10121 (mips64_linux_regsets_fetch_registers): Likewise.
10122 (mips64_linux_regsets_store_registers): Likewise.
10123 (mips64_linux_fetch_registers): Update call to
10124 mips64_linux_regsets_fetch_registers.
10125 (mips64_linux_store_registers): Update call to
10126 mips64_linux_regsets_store_registers.
10127 (mips_linux_read_description): Probe for DSP registers.
10128 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10129 and initialize_tdesc_mips64_dsp_linux.
10130 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10131 Remove padding of no longer used embedded register slots.
10132 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10133 (MIPS_RESTART_REGNUM): Redefine enum value.
10134 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10135 strings.
10136 (mips_tx39_reg_names): Likewise.
10137 (mips_linux_reg_names): New array of register names for Linux
10138 targets.
10139 (mips_register_name): Check for a null pointer in
10140 mips_processor_reg_names and return an empty string.
10141 (mips_register_type): Exclude embedded registers for the IRIX
10142 and Linux ABIs.
10143 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10144 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10145 DSP registers.
10146 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10147 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10148 (mips_gdbarch_init): Likewise. Initialize internal register
10149 indices for the Linux ABI. Use dynamic numbers to refer to
10150 registers, as applicable, while parsing the target description.
10151 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10152
10153 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10154
10155 * frame.h (read_frame_register_unsigned): Fix typo in function
10156 description.
10157
10158 2012-03-01 Pedro Alves <palves@redhat.com>
10159
10160 * jit-reader.in [!__cplusplus]
10161 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10162
10163 2012-03-01 Pedro Alves <palves@redhat.com>
10164
10165 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10166 * configure: Regenerate.
10167
10168 2012-03-01 Pedro Alves <palves@redhat.com>
10169
10170 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10171 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10172 (ftrace_command, strace_command): Make static.
10173 * d-lang.c (_initialize_d_language): Declare.
10174 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10175 * dwarf2loc.c (_initialize_dwarf2loc):
10176 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10177 * exec.c (exec_get_section_table): Make static.
10178 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10179 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10180 * inferior.c (remove_inferior_command, add_inferior_command)
10181 (clone_inferior_command): Make static.
10182 * linux-nat.c (linux_nat_thread_address_space)
10183 (linux_nat_core_of_thread): Make static.
10184 * linux-tdep.c (_initialize_linux_tdep): Declare.
10185 * objc-lang.c (_initialize_objc_lang): Declare.
10186 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10187 Make static.
10188 (_initialize_opencl_language): Declare.
10189 * record.c (_initialize_record): Declare.
10190 * remote.c (demand_private_info, remote_get_tib_address)
10191 (remote_supports_cond_tracepoints)
10192 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10193 Make static.
10194 * skip.c (_initialize_step_skip): Declare.
10195 * symtab.c (skip_prologue_using_lineinfo): Make static.
10196 * tracepoint.c (delete_trace_state_variable)
10197 (trace_variable_command, delete_trace_variable_command)
10198 (get_uploaded_tsv, find_matching_tracepoint_location)
10199 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10200 Make static.
10201 * value.c (pack_unsigned_long): Make static.
10202 * varobj.c (varobj_ensure_python_env): Make static.
10203 * windows-tdep.c (_initialize_windows_tdep): Declare.
10204 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10205
10206 2012-03-01 Pedro Alves <palves@redhat.com>
10207
10208 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10209 gdbarch parameter.
10210 (linux_init_abi): Install it as has_shared_address_space gdbarch
10211 callback.
10212
10213 2012-03-01 Pedro Alves <palves@redhat.com>
10214
10215 * observer.c (observer_test_first_notification_function)
10216 (observer_test_second_notification_function)
10217 (observer_test_third_notification_function): Add declarations.
10218
10219 2012-03-01 Pedro Alves <palves@redhat.com>
10220
10221 * common/signals.c (default_target_signal_to_host)
10222 (default_target_signal_from_host): Move ...
10223 * arch-utils.c: ... here.
10224 * arch-utils.h (default_target_signal_to_host)
10225 (default_target_signal_from_host): Declare.
10226
10227 * common/signals.c (target_signal_from_command): Move ...
10228 * infrun.c: ... here.
10229 * inferior.h (target_signal_from_command): Declare.
10230 * target.h (target_signal_from_command)
10231 (default_target_signal_from_host, default_target_signal_to_host):
10232 Delete declarations.
10233
10234 * common/signals.c (_initialize_signals): Delete.
10235
10236 2012-03-01 Pedro Alves <palves@redhat.com>
10237
10238 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10239 both __cplusplus and !__cplusplus.
10240
10241 2012-03-01 Pedro Alves <palves@redhat.com>
10242
10243 * psymtab.c (find_and_open_source): Delete declaration.
10244 * source.c (find_and_open_source): Move comment ...
10245 * source.h (find_and_open_source): ... to this new declaration.
10246
10247 2012-03-01 Pedro Alves <palves@redhat.com>
10248
10249 * inline-frame.c: Include inline-frame.h.
10250
10251 2012-03-01 Pedro Alves <palves@redhat.com>
10252
10253 * tui/tui-data.c (set_gen_win_origin): Delete.
10254 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10255 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10256
10257 2012-03-01 Pedro Alves <palves@redhat.com>
10258
10259 * remote.c (encode_actions): Delete declaration.
10260 * tracepoint.c (encode_actions): Make extern.
10261 * tracepoint.h (encode_actions): Declare.
10262
10263 2012-03-01 Pedro Alves <palves@redhat.com>
10264
10265 * python/py-breakpoint.c: Include python.h.
10266 * python/py-continueevent.c (create_continue_event_object): Make
10267 static.
10268 * python/py-lazy-string.c (stpy_get_type): Make static.
10269 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10270 Make static.
10271 * python/py-utils.c (unicode_to_target_python_string): Make
10272 static.
10273 * python/py-value.c: Include python.h.
10274
10275 2012-03-01 Pedro Alves <palves@redhat.com>
10276
10277 * inferior.c (delete_threads_of_inferior): Delete.
10278
10279 2012-03-01 Pedro Alves <palves@redhat.com>
10280
10281 Import fallback definitions from glibc.
10282
10283 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10284 ps_prochandle): Forward declare.
10285 (ps_err_e): Use glibc's comments.
10286 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10287 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10288 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10289 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10290 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10291 (struct ps_prochandle): Adjust comment.
10292
10293 2012-03-01 Pedro Alves <palves@redhat.com>
10294
10295 * ada-lang.c (ada_modulus_from_name): Delete.
10296 * ada-lex.l (lexer_init): Make static.
10297
10298 2012-03-01 Pedro Alves <palves@redhat.com>
10299
10300 PR gdb/13767
10301
10302 * frame.c (read_frame_register_unsigned): New.
10303 * frame.h (read_frame_register_unsigned): Declare.
10304 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10305 Handle it.
10306 (print_i387_control_word): New parameter `control_p'. Handle it.
10307 (i387_print_float_info): Handle unavailable float registers.
10308
10309 2012-03-01 Keith Seitz <keiths@redhat.com>
10310
10311 * linespec.c (decode_line_2): Sort the list of methods
10312 alphabetically before presenting the user with a selection
10313 menu.
10314
10315 2012-03-01 Doug Evans <dje@google.com>
10316
10317 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10318 has_namespace_info.
10319 (dwarf2_read_abbrevs): Remove corresponding initialization.
10320
10321 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10322
10323 * NEWS: Mention new python command class gdb.COMMAND_USER.
10324 * cli/cli-cmds.c (show_user): Print error when used on a python
10325 command.
10326 (init_cli_cmds): Update documentation strings for "show user" and
10327 "set/show max-user-call-depth" to clarify that it does not apply to
10328 python commands.
10329 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10330 error check.
10331 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10332 gdb python api.
10333 * top.c (execute_command): Only execute a user-defined command as a
10334 legacy macro if c->user_commands is set.
10335
10336 2012-03-01 Tom Tromey <tromey@redhat.com>
10337
10338 * valprint.h (struct generic_val_print_decorations): New.
10339 (generic_val_print): Declare.
10340 * valprint.c (generic_val_print): New function.
10341 * p-valprint.c (p_decorations): New global.
10342 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10343 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10344 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10345 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10346 * m2-valprint.c (m2_decorations): New global.
10347 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10348 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10349 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10350 TYPE_CODE_ERROR>: Call generic_val_print.
10351 * f-valprint.c (f_decorations): New global.
10352 (f_val_print): Use print_function_pointer_address.
10353 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10354 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10355 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10356 generic_val_print.
10357 * c-valprint.c (c_decorations): New global.
10358 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10359 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10360 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10361 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10362 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10363 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10364 case.
10365
10366 2012-03-01 Tom Tromey <tromey@redhat.com>
10367
10368 * valprint.c (val_print): Update.
10369 * p-valprint (pascal_val_print): Return void.
10370 * p-lang.h (pascal_val_print): Return void.
10371 * m2-valprint.c (m2_val_print): Return void.
10372 * m2-lang.h (m2_val_print): Return void.
10373 * language.h (struct language_defn) <la_val_print>: Return void.
10374 * language.c (unk_lang_val_print): Return void.
10375 * jv-valprint.c (java_val_print): Return void.
10376 * jv-lang.h (java_val_print): Return void.
10377 * f-valprint.c (f_val_print): Return void.
10378 * f-lang.h (f_val_print): Return void.
10379 * d-valprint.c (d_val_print): Return void.
10380 (dynamic_array_type): Update.
10381 * d-lang.h (d_val_print): Return void.
10382 * c-valprint.c (c_val_print): Return void.
10383 * c-lang.h (c_val_print): Return void.
10384 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10385 void.
10386 * ada-lang.h (ada_val_print): Return void.
10387
10388 2012-03-01 Tom Tromey <tromey@redhat.com>
10389
10390 * value.h (val_print): Return void.
10391 * valprint.c (val_print): Return void.
10392
10393 2012-03-01 Tom Tromey <tromey@redhat.com>
10394
10395 * value.h (common_val_print): Return void.
10396 * valprint.c (common_val_print): Return void.
10397
10398 2012-03-01 Tom Tromey <tromey@redhat.com>
10399
10400 * value.h (value_print): Return void.
10401 * valprint.c (value_print): Return void.
10402 * p-valprint.c (pascal_value_print): Return void.
10403 * p-lang.h (pascal_value_print): Return void.
10404 * language.h (struct language_defn) <la_value_print>: Return
10405 void.
10406 * language.c (unk_lang_value_print): Return void.
10407 * jv-valprint.c (java_value_print): Return void.
10408 * jv-lang.h (java_value_print): Return void.
10409 * f-valprint.c (c_value_print): Don't declare.
10410 Include c-lang.h.
10411 * c-valprint.c (c_value_print): Return void.
10412 * c-lang.h (c_value_print): Return void.
10413 * ada-valprint.c (ada_value_print): Return void.
10414 * ada-lang.h (ada_value_print): Return void.
10415
10416 2012-03-01 Tom Tromey <tromey@redhat.com>
10417
10418 * value.c (value_primitive_field): Handle virtual base classes.
10419
10420 2012-03-01 Tom Tromey <tromey@redhat.com>
10421
10422 * gdbtypes.h (struct vbase): Remove.
10423
10424 2012-03-01 Tom Tromey <tromey@redhat.com>
10425
10426 * c-valprint.c (print_function_pointer_address): Move...
10427 * valprint.c: ... here. Make non-static.
10428 * m2-valprint.c (print_function_pointer_address): Remove.
10429 * valprint.h (print_function_pointer_address): Declare.
10430
10431 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10432
10433 * NEWS: Document the fact that one can provide a condition when
10434 creating an Ada exception catchpoint.
10435
10436 2012-03-01 Tom Tromey <tromey@redhat.com>
10437
10438 * valprint.c (val_print_type_code_flags): Fix placement of
10439 trailing brace.
10440
10441 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10442
10443 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10444 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10445 environment variable before calling update-copyright.
10446
10447 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10448
10449 * gnulib/extra/update-copyright: Update to the latest from
10450 gnulib's git repository.
10451 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10452 variable to 2 instead of 1.
10453
10454 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10455
10456 * varobj.c (c_value_of_variable): Remove dead code.
10457
10458 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10459
10460 * ada-lex.p (processId): Do not modify already encoded IDs.
10461 Update function documentation.
10462
10463 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10464
10465 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10466 "name" with "struct symbol *name_sym".
10467 * ada-exp.y (write_var_or_type): Update call to
10468 ada_find_renaming_symbol.
10469 "name" with "struct symbol *name_sym". Adjust Implementation
10470 accordingly. Adjust the function documentation.
10471
10472 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10473
10474 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10475 * ada-lang.c (ada_find_any_type): Add advance declaration.
10476 Make static. Replace ada_find_any_symbol by
10477 ada_find_any_type_symbol.
10478 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10479 Improve function description. Make static.
10480 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10481 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10482
10483 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10484
10485 * ada-lang.c (struct tag_args): Delete.
10486 (ada_get_tsd_type): Function body moved up in source file.
10487 (ada_tag_name_1, ada_tag_name_2): Delete.
10488 (ada_get_tsd_from_tag): New function.
10489 (ada_tag_name_from_tsd): New function.
10490 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10491 to determine the tag name.
10492
10493 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10494
10495 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10496 declaration.
10497 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10498 function.
10499
10500 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10501
10502 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10503
10504 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10505
10506 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10507 full searches.
10508
10509 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10510
10511 * ada-lang.c (constrained_packed_array_type): If there is a
10512 parallel XA type, use it to determine the array index type.
10513
10514 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10515
10516 * ada-valprint.c (ada_val_print_1): If our value is a reference
10517 to an array descriptor, dereference it before converting it
10518 to a simple array.
10519
10520 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10521
10522 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10523 creating fixed value.
10524 (ada_value_ind, ada_coerce_ref, assign_component)
10525 (ada_evaluate_subexp): Remove call to unwrap_value before
10526 call to ada_to_fixed_value.
10527
10528 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10529
10530 * ada-lang.c (to_fixed_array_type): Set result's type name.
10531
10532 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10533
10534 * ada-lang.c (catch_ada_exception_command_split): Add new
10535 argument cond_string. Add support for condition at end of
10536 "catch exception" commands.
10537 (ada_decode_exception_location): Add new argument cond_string.
10538 Update call to catch_ada_exception_command_split.
10539 (create_ada_exception_catchpoint): Add new argument cond_string.
10540 Set the breakpoint condition if needed.
10541 (catch_ada_exception_command): Update call to
10542 ada_decode_exception_location.
10543 (ada_decode_assert_location): Add function documentation.
10544 Add support for condition at end of "catch assert" command.
10545 (catch_assert_command): Update calls to ada_decode_assert_location
10546 and create_ada_exception_catchpoint.
10547
10548 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10549
10550 Fix disp-step-syscall.exp: fork: single step over fork.
10551 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10552 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10553 comment, change parameters gdbarch and ptid to regcache. Remove
10554 parameter regcache, initialize gdbarch from regcache here.
10555 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10556 New functions.
10557 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10558 instead.
10559 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10560 'syscall'. Make the 'int' check more strict.
10561
10562 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10563
10564 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10565 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10566 (i386_linux_intx80_sysenter_syscall_record): ... here.
10567 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10568 Use the renamed function name.
10569
10570 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10571
10572 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10573 * breakpoint.c (until_break_command): Likewise.
10574 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10575 * infcall.c (call_function_by_hand): Likewise.
10576 * infcmd.c (finish_forward): Likewise.
10577 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10578
10579 2012-02-28 Tristan Gingold <gingold@adacore.com>
10580
10581 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10582 avoid variable assignments inside condition.
10583
10584 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10585
10586 Fix static analysis issue found by cppcheck.
10587 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10588 uninitialized BUF for size 2.
10589
10590 2012-02-27 Chris Dearman <chris@mips.com>
10591 Nathan Froyd <froydnj@codesourcery.com>
10592 Maciej W. Rozycki <macro@codesourcery.com>
10593
10594 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10595 (mips16_instruction_has_delay_slot): Likewise.
10596 (mips_segment_boundary): Likewise.
10597 (mips_adjust_breakpoint_address): Likewise.
10598 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10599
10600 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10601 Maciej W. Rozycki <macro@codesourcery.com>
10602
10603 * infrun.c (handle_inferior_event): Don't proceed through
10604 shared library trampolines if stepping at the machine
10605 instruction level.
10606
10607 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10608
10609 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10610 too.
10611
10612 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10613
10614 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10615 (sh_stub_unwind_sniffer): New functions.
10616 (sh_stub_unwind): New variable.
10617 (sh_gdbarch_init): Wire everything.
10618
10619 2012-02-27 Pedro Alves <palves@redhat.com>
10620
10621 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10622 (linux_nat_post_attach_wait): Adjust to use
10623 linux_proc_pid_is_stopped.
10624 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10625 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10626 based on pid_is_stopped from both linux-nat.c and
10627 gdbserver/linux-low.c, and renamed.
10628
10629 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10630
10631 * remote.c (remote_watchpoint_addr_within_range): New function.
10632 (init_remote_ops): Use it.
10633
10634 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10635
10636 * target.h (target_watchpoint_addr_within_range): Document macro.
10637
10638 2012-02-24 Pedro Alves <palves@redhat.com>
10639
10640 * stack.c (set_last_displayed_sal): Issue internal_error instead
10641 of warning, and issue it after clearing the last displayed sal.
10642
10643 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10644 Pedro Alves <palves@redhat.com>
10645
10646 * breakpoint.c (until_break_command): Install breakpoints after
10647 all frame manipulations.
10648
10649 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10650
10651 * remote.c (remote_supports_cond_breakpoints): New forward
10652 declaration.
10653 (remote_add_target_side_condition): New function.
10654 (remote_insert_breakpoint): Add target-side breakpoint
10655 conditional if supported.
10656 (remote_insert_hw_breakpoint): Likewise.
10657 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10658 hook.
10659
10660 * target.c (update_current_target): Inherit
10661 to_supports_evaluation_of_breakpoint_conditions.
10662 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10663
10664 * target.h (struct target_ops)
10665 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10666 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10667
10668 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10669 (condition_evaluation_both, condition_evaluation_auto,
10670 condition_evaluation_host, condition_evaluation_target,
10671 condition_evaluation_enums, condition_evaluation_mode_1,
10672 condition_evaluation_mode): New static globals.
10673 (translate_condition_evaluation_mode): New function.
10674 (breakpoint_condition_evaluation_mode): New function.
10675 (gdb_evaluates_breakpoint_condition_p): New function.
10676 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10677 (mark_breakpoint_modified): New function.
10678 (mark_breakpoint_location_modified): New function.
10679 (set_condition_evaluation_mode): New function.
10680 (show_condition_evaluation_mode): New function.
10681 (bp_location_compare_addrs): New function.
10682 (get_first_location_gte_addr): New helper function.
10683 (set_breakpoint_condition): Free condition bytecode if locations
10684 has become unconditional. Call mark_breakpoint_modified (...).
10685 (condition_command): Call update_global_location_list (1) for
10686 breakpoints.
10687 (breakpoint_xfer_memory): Use is_breakpoint (...).
10688 (is_breakpoint): New function.
10689 (parse_cond_to_aexpr): New function.
10690 (build_target_condition_list): New function.
10691 (insert_bp_location): Handle target-side conditional
10692 breakpoints and call build_target_condition_list (...).
10693 (update_inserted_breakpoint_locations): New function.
10694 (insert_breakpoint_locations): Handle target-side conditional
10695 breakpoints.
10696 (bpstat_check_breakpoint_conditions): Add comment.
10697 (bp_condition_evaluator): New function.
10698 (bp_location_condition_evaluator): New function.
10699 (print_breakpoint_location): Print information on where the condition
10700 will be evaluated.
10701 (print_one_breakpoint_location): Likewise.
10702 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10703 breakpoint location.
10704 (force_breakpoint_reinsertion): New functions.
10705 (update_global_location_list): Handle target-side breakpoint
10706 conditions.
10707 Reinsert locations that are already inserted if conditions have
10708 changed.
10709 (bp_location_dtor): Free agent expression bytecode.
10710 (disable_breakpoint): Call mark_breakpoint_modified (...).
10711 Call update_global_location_list (...) with parameter 1 for breakpoints.
10712 (disable_command): Call mark_breakpoint_location_modified (...).
10713 Call update_global_location_list (...) with parameter 1 for breakpoints.
10714 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10715 (enable_command): mark_breakpoint_location_modified (...).
10716 (_initialize_breakpoint): Update documentation and add
10717 condition-evaluation breakpoint subcommand.
10718
10719 * breakpoint.h: Include ax.h.
10720 (condition_list): New data structure.
10721 (condition_status): New enum.
10722 (bp_target_info) <cond_list>: New field.
10723 (bp_location) <condition_changed, cond_bytecode>: New fields.
10724 (is_breakpoint): New prototype.
10725
10726 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10727
10728 * remote.c (remote_state) <cond_breakpoints>: New field.
10729 (PACKET_ConditionalBreakpoints): New enum.
10730 (remote_cond_breakpoint_feature): New function.
10731 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10732 (remote_supports_cond_breakpoints): New function.
10733 (_initialize_remote): Add new packet configuration for
10734 target-side conditional breakpoints.
10735
10736 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10737
10738 * NEWS: Mention target-side conditional breakpoint support,
10739 new condition-evaluation breakpoint subcommand and remote
10740 packet extensions.
10741
10742 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10743
10744 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10745 number.
10746
10747 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10748
10749 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10750 (after_prologue): Remove.
10751
10752 2012-02-23 Tom Tromey <tromey@redhat.com>
10753
10754 * jv-valprint.c (java_val_print): Remove dead code.
10755
10756 2012-02-23 Tristan Gingold <gingold@adacore.com>
10757
10758 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10759 known_tasks_element and known_tasks_length fields.
10760 (read_known_tasks_array): Change argument type. Use pointer type
10761 and number of elements from DATA. Adjust.
10762 (read_known_tasks_list): Likewise.
10763 (get_known_tasks_addr): Remove.
10764 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10765 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10766 type and array length. Merge former get_known_tasks_addr code.
10767
10768 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10769
10770 PR backtrace/13716
10771 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10772 it after set_momentary_breakpoint.
10773
10774 2012-02-22 Sterling Augustine <saugustine@google.com>
10775
10776 PR 13689:
10777 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10778
10779 2012-02-22 Gary Benson <gbenson@redhat.com>
10780
10781 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10782 (find_slot_in_mapped_hash): Likewise.
10783
10784 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10785
10786 PR build/13638
10787 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10788 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10789 * configure: Regenerate.
10790
10791 2012-02-21 Tristan Gingold <gingold@adacore.com>
10792 Pedro Alves <palves@redhat.com>
10793
10794 * ia64-tdep.c: Do not include libunwind-ia64.h.
10795 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10796 Include libunwind-ia64.h instead of libunwind.h.
10797 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10798 for libunwind.h existence.
10799 * configure, config.in: Regenerate.
10800
10801 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10802
10803 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10804 instead of value_rtti_target_type.
10805 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10806 instead of value_rtti_target_type.
10807 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10808 value_rtti_target_type.
10809 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10810 (value_rtti_target_type): Rename to ...
10811 (value_rtti_indirect_type): ... here and make it indirect. Update
10812 function comment.
10813 * value.c (readjust_indirect_value_type): New function.
10814 (coerce_ref): Support for enclosing type setting for references
10815 with readjust_indirect_value_type.
10816 * value.h (readjust_value_type): New declaration.
10817 (value_rtti_target_type): Rename to ...
10818 (value_rtti_indirect_type): ... here.
10819
10820 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10821
10822 * MAINTAINERS (Write After Approval): Add myself to the list.
10823
10824 2012-02-20 Doug Evans <dje@google.com>
10825
10826 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10827 Rename objfile_p_char parameter to objfilep.
10828 (build_objfile_section_table): Result is now void. All callers
10829 updated.
10830 * objfiles.h (struct objfile): Tweak comments, whitespace.
10831 (build_objfile_section_table): Update.
10832
10833 * elfread.c (elf_symfile_segments): Fix warning text.
10834
10835 2012-02-20 Tom Tromey <tromey@redhat.com>
10836
10837 PR gdb/13498:
10838 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10839 particular set of file names once.
10840 (dw2_map_symbol_filenames): Likewise.
10841
10842 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10843
10844 Code cleanup.
10845 * main.c (write_files): Remove the declaration.
10846 (external_editor_command): Move the declaration ...
10847 [GDBTK] (external_editor_command): ... here. Fix the comment.
10848
10849 2012-02-20 Tom Tromey <tromey@redhat.com>
10850
10851 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10852 extraneous block.
10853
10854 2012-02-20 Tristan Gingold <gingold@adacore.com>
10855
10856 * darwin-nat.h (enum darwin_msg_state): Add comments.
10857
10858 2012-02-20 Tristan Gingold <gingold@adacore.com>
10859
10860 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10861 value.
10862
10863 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10864
10865 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10866 between function description and implementation.
10867
10868 2012-02-17 Tom Tromey <tromey@redhat.com>
10869
10870 PR python/12070:
10871 * python/py-event.c (event_object_getset): New global.
10872 (event_object_type): Reference it.
10873 * python/py-type.c (field_object_getset): New global.
10874 (field_object_type): Reference it.
10875 * python/python-internal.h (gdb_py_generic_dict): Declare.
10876 * python/py-utils.c (gdb_py_generic_dict): New function.
10877
10878 2012-02-17 Tristan Gingold <gingold@adacore.com>
10879
10880 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10881
10882 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10883
10884 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10885 TYPE_CALLING_CONVENTION annotation.
10886
10887 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10888
10889 * MAINTAINERS: Add rx to target ISA section.
10890 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10891 (ALLDEPFILES): Add rx-tdep.c.
10892
10893 2012-02-16 Tom Tromey <tromey@redhat.com>
10894
10895 * symfile.c (symbol_file_add_main_1): Use inferior's
10896 symfile_flags.
10897 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10898 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10899 inferior.
10900 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10901 inferior.
10902 (follow_exec): Use inferior's symfile_flags.
10903 * inferior.h (struct inferior) <symfile_flags>: New field.
10904
10905 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10906
10907 PR gdb/9734:
10908 * remote-sim.c (gdbsim_create_inferior): Call error() when
10909 sim_create_inferior() fails.
10910
10911 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10912
10913 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10914
10915 2012-02-16 Tom Tromey <tromey@redhat.com>
10916
10917 PR c++/13653:
10918 * thread.c (struct current_thread_cleanup) <was_removable>: New
10919 field.
10920 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10921 (make_cleanup_restore_current_thread): Initialize new field.
10922
10923 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10924
10925 * MAINTAINERS: Add rl78 to target ISA section.
10926 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10927 (ALLDEPFILES): Add rl78-tdep.c.
10928 * NEWS: Mention rl78 as a new target.
10929
10930 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10931
10932 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10933 data.
10934 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10935
10936 2012-02-15 Tom Tromey <tromey@redhat.com>
10937
10938 PR gdb/12659:
10939 * infcmd.c (registers_info): Print just the current register's
10940 name.
10941
10942 2012-02-15 Tom Tromey <tromey@redhat.com>
10943
10944 * python/py-symbol.c (sympy_value): Use _().
10945
10946 2012-02-15 Pedro Alves <palves@redhat.com>
10947
10948 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10949 output to be like native targets'.
10950 (remote_pid_to_str): Special case the null ptid.
10951
10952 2012-02-14 Stan Shebs <stan@codesourcery.com>
10953
10954 * NEWS: Mention enable count command.
10955 * breakpoint.h (struct breakpoint): New field enable_count.
10956 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10957 (enable_breakpoint): Add arg to call.
10958 (struct disp_data): New struct.
10959 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10960 (do_map_enable_once_breakpoint): Create a struct and pass it.
10961 (do_map_enable_delete_breakpoint): Ditto.
10962 (do_map_enable_count_breakpoint): New function.
10963 (enable_count_command): New function.
10964 (bpstat_stop_status): Decrement enable_count.
10965 (print_one_breakpoint_location): Report enable count.
10966 (_initialize_breakpoint): Add enable count command.
10967
10968 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10969
10970 * rl78-tdep.c (reggroups.h): Include.
10971 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10972 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10973 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10974 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10975 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10976 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10977 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10978 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10979 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10980 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10981 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10982 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10983 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10984 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10985 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10986 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10987 beginning of register list.
10988 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10989 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10990 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10991 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10992 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10993 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10994 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10995 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10996 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10997 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10998 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10999 the pseudo registers. Rearrange other pseudo registers too so
11000 that the bank registers appear at the end.
11001 (rl78_register_type): Account for the fact that the byte sized
11002 bank registers are now pseudo-registers.
11003 (rl78_register_name): Rearrange the register name array. Make
11004 initial set of raw banked registers inaccessible.
11005 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11006 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11007 case for copying bytes back and forth between raw and pseudo
11008 versions of the banked registers. Update other cases to reflect
11009 the changed names.
11010 (rl78_return_value): Update to account for changed names of
11011 raw registers.
11012 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11013 rl78_register_sim_regno().
11014
11015 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11016
11017 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11018 the name parameter being passed to find_pc_partial_function().
11019
11020 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11021
11022 * MAINTAINERS: Step down from being ia64 target maintainer.
11023
11024 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11025
11026 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11027 compilation warning.
11028
11029 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11030
11031 Fix crash on loaded shlibs without loaded exec_bfd.
11032 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11033 (set_section_command): Replace exec_bfd by p->bfd.
11034
11035 2012-02-10 Tom Tromey <tromey@redhat.com>
11036
11037 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11038 when we have a C++ qualified name.
11039
11040 2012-02-10 Pedro Alves <palves@redhat.com>
11041
11042 * inferior.c (inferior_pid_to_str): New.
11043 (print_inferior, inferior_command): Use it.
11044
11045 2012-02-10 Pedro Alves <palves@redhat.com>
11046
11047 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11048 the test CFLAGS.
11049 * configure: Regenerate.
11050
11051 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11052
11053 * linespec.c (decode_line_internal): Fix comment correctness.
11054
11055 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11056
11057 PR gdb/12953
11058 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11059 * amd64bsd-nat.c: Add support for debug registers (adapted from
11060 i386bsd-nat.c).
11061 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11062 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11063 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11064 (amd64bsd_dr_get_control): New functions.
11065 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11066 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11067 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11068 watchpoints initialization.
11069 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11070
11071 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11072
11073 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11074 flds_bnds.fields.
11075 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11076
11077 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11078
11079 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11080
11081 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11082
11083 * language.h (symbol_name_cmp_ftype): Renames
11084 symbol_name_match_p_ftype.
11085 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11086 la_get_symbol_name_match_p.
11087 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11088 ada_get_symbol_name_match_p. Update comment.
11089 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11090 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11091 Renames symbol_name_match_p. Update field type.
11092 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11093 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11094 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11095 "la_get_symbol_name_cmp" in comments.
11096 * language.c: Likewise.
11097
11098 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11099
11100 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11101 %eflags offset.
11102 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11103 (amd64_sol2_gregset32_reg_offs): Likewise.
11104
11105 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11106
11107 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11108 of the returned BFD is allocated by GDB.
11109
11110 2012-02-07 Tom Tromey <tromey@redhat.com>
11111
11112 PR python/12027:
11113 * python/python-internal.h (frame_object_type): Declare.
11114 * python/py-symbol.c (sympy_needs_frame): New function.
11115 (sympy_value): New function.
11116 (symbol_object_getset): Add "needs_frame".
11117 (symbol_object_methods): Add "value".
11118 * python/py-frame.c (frame_object_type): No longer static.
11119
11120 2012-02-07 Tom Tromey <tromey@redhat.com>
11121
11122 PR python/13599:
11123 * python/py-symbol.c (sympy_line): New function.
11124 (symbol_object_getset): Add "line".
11125
11126 2012-02-07 Tom Tromey <tromey@redhat.com>
11127
11128 * charset.c (find_charset_names): Check 'in' against NULL.
11129
11130 2012-02-06 Doug Evans <dje@google.com>
11131
11132 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11133 and fields.name members from char * to const char *. All uses updated.
11134 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11135 from char * to const char *. All uses updated.
11136 (type_name_no_tag): Update.
11137 (lookup_unsigned_typename, lookup_signed_typename): Update.
11138 * gdbtypes.c (type_name_no_tag): Change result type
11139 from char * to const char *. All callers updated.
11140 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11141 name parameter from char * to const char *.
11142 * symtab.h (struct cplus_specific): Change type of demangled_name
11143 member from char * to const char *. All uses updated.
11144 (struct general_symbol_info): Change type of name and
11145 mangled_lang.demangled_name members from char * to const char *.
11146 All uses updated.
11147 (symbol_get_demangled_name, symbol_natural_name): Update.
11148 (symbol_demangled_name, symbol_search_name): Update.
11149 * symtab.c (symbol_get_demangled_name): Change result type
11150 from char * to const char *. All callers updated.
11151 (symbol_natural_name, symbol_demangled_name): Ditto.
11152 (symbol_search_name): Ditto.
11153 (completion_list_add_name): Change type of symname,sym_text,
11154 text,word parameters from char * to const char *.
11155 (completion_list_objc_symbol): Change type of sym_text,
11156 text,word parameters from char * to const char *.
11157 * ada-lang.c (find_struct_field): Change type of name parameter
11158 from char * to const char *.
11159 (encoded_ordered_before): Similarly for N0,N1 parameters.
11160 (old_renaming_is_invisible): Similarly for function_name parameter.
11161 (ada_type_name): Change result type from char * to const char *.
11162 All callers updated.
11163 * ada-lang.h (ada_type_name): Update.
11164 * buildsym.c (hashname): Change type of name parameter
11165 from char * to const char *.
11166 * buildsym.h (hashname): Update.
11167 * dbxread.c (end_psymtab): Change type of include_list parameter
11168 from char ** to const char **.
11169 * dwarf2read.c (determine_prefix): Change result type
11170 from char * to const char *. All callers updated.
11171 * f-lang.c (find_common_for_function): Change type of name, funcname
11172 parameters from char * to const char *.
11173 * f-lang.c (find_common_for_function): Update.
11174 * f-valprint.c (list_all_visible_commons): Change type of funcname
11175 parameters from char * to const char *.
11176 * gdbarch.sh (static_transform_name): Change type of name parameter
11177 and result from char * to const char *.
11178 * gdbarch.c: Regenerate.
11179 * gdbarch.h: Regenerate.
11180 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11181 of name parameter from char * to const char *.
11182 * jv-lang.c (java_primitive_type_from_name): Ditto.
11183 (java_demangled_signature_length): Similarly for signature parameter.
11184 (java_demangled_signature_copy): Ditto.
11185 (java_demangle_type_signature): Ditto.
11186 * jv-lang.h (java_primitive_type_from_name): Update.
11187 (java_demangle_type_signature): Update.
11188 * objc-lang.c (specialcmp): Change type of a,b parameters
11189 from char * to const char *.
11190 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11191 from char * to const char *. All callers updated.
11192 * p-lang.h (is_pascal_string_type): Update.
11193 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11194 of name parameter from char * to const char *.
11195 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11196 * utils.c (fprintf_symbol_filtered): Ditto.
11197 * defs.h (fprintf_symbol_filtered): Update.
11198 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11199 * stabsread.h (end_psymtab): Update.
11200 * stack.c (find_frame_funname): Change type of funname parameter
11201 from char ** to const char **.
11202 * stack.h (find_frame_funname): Update.
11203 * typeprint.c (type_print): Change type of varstring parameter
11204 from char * to const char *.
11205 * value.h (type_print): Update.
11206 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11207 from char * to const char *. All callers updated.
11208 (xcoff_end_psymtab): Change type of include_list parameter
11209 from char ** to const char **. All callers updated.
11210 (swap_sym): Similarly for name parameter. All callers updated.
11211 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11212 Use xstrdup.
11213 (process_coff_symbol): Use xstrdup.
11214 * stabsread.c (stabs_method_name_from_physname): Renamed from
11215 update_method_name_from_physname. Change result type from void
11216 to char *. All callers updated.
11217 (read_member_functions): In has_destructor case, store name in objfile
11218 obstack instead of malloc space. In !has_stub case, fix mem leak.
11219
11220 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11221
11222 * configure: Rebuild.
11223 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11224 LDFLAGS.
11225
11226 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11227
11228 * configure.tgt (rl78-*-elf): New target.
11229 * rl78-tdep.c: New file.
11230
11231 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11232
11233 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11234 and continue the loop. Add QUIT statement.
11235
11236 2012-02-03 Tom Tromey <tromey@redhat.com>
11237
11238 PR gdb/13596:
11239 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11240 bfd_lookup_symbol_from_symtab.
11241 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11242 gdb_bfd_lookup_symbol_from_symtab.
11243
11244 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11245
11246 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11247 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11248 symbol. Add assertion that sym2 is never NULL.
11249
11250 2012-02-02 Doug Evans <dje@google.com>
11251
11252 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11253 "name" parameter to const char ** from char **. All callers updated.
11254 (find_pc_partial_function): Ditto.
11255 (cache_pc_function_name): Change type to const char * from char *.
11256 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11257 (find_pc_partial_function): Update.
11258 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11259 type of "name" parameter to const char * from char *.
11260 All uses updated.
11261 * arch-utils.c (generic_in_solib_return_trampoline): Change
11262 type of "name" parameter to const char * from char *.
11263 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11264 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11265 type of "name" parameter to const char * from char *.
11266 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11267 * gdbarch.c: Regenerate.
11268 * gdbarch.h: Regenerate.
11269 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11270 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11271 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11272 type of "name" parameter to const char * from char *.
11273 * skip.c (skip_function_pc): Ditto.
11274 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11275 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11276 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11277 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11278 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11279 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11280 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11281 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11282 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11283
11284 2012-02-02 Pedro Alves <palves@redhat.com>
11285
11286 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11287 the current inferior has no execution. Make sure the current
11288 remote process matches gdb's current inferior.
11289
11290 2012-02-02 Tom Tromey <tromey@redhat.com>
11291
11292 PR gdb/13405:
11293 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11294 read-only memory.
11295
11296 2012-02-02 Tom Tromey <tromey@redhat.com>
11297
11298 PR gdb/9307:
11299 * symtab.c (lookup_language_this): Set block_found.
11300
11301 2012-02-01 Tom Tromey <tromey@redhat.com>
11302
11303 PR gdb/13431:
11304 * jit.c (struct jit_inferior_data): Rewrite.
11305 (struct jit_objfile_data): New.
11306 (get_jit_objfile_data): New function.
11307 (add_objfile_entry): Update.
11308 (jit_read_descriptor): Return int. Replace descriptor_addr
11309 argument with inf_data. Update. Don't call error.
11310 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11311 descriptor here.
11312 (jit_inferior_init): Don't look up descriptor. Don't call error.
11313 (jit_reset_inferior_data_and_breakpoints)
11314 (jit_inferior_created_observer): Remove.
11315 (jit_inferior_exit_hook): Update.
11316 (jit_executable_changed_observer): Remove.
11317 (jit_event_handler): Update.
11318 (free_objfile_data): Reset inferior data if needed.
11319 (_initialize_jit): Update.
11320
11321 2012-02-01 Tom Tromey <tromey@redhat.com>
11322
11323 * jit.c (bfd_open_from_target_memory): Move higher in file.
11324
11325 2012-02-01 Tristan Gingold <gingold@adacore.com>
11326
11327 * libunwind-frame.c (libunwind_load): Display message if dlopen
11328 failed.
11329
11330 2012-02-01 Gary Benson <gbenson@redhat.com>
11331
11332 * symtab.h (symbol_found_callback_ftype): New typedef.
11333 (iterate_over_symbols): Use the above.
11334 * symtab.c (iterate_over_symbols): Likewise.
11335 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11336 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11337 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11338 (iterate_name_matcher): Document return values.
11339 (collect_one_symbol): Likewise.
11340 (collect_function_symbols): Likewise.
11341 (collect_symbols): Likewise.
11342
11343 2012-02-01 Tom Tromey <tromey@redhat.com>
11344
11345 * ada-lang.c (resolve_subexp): Update.
11346 (ada_lookup_symbol_list): Add 'full_search' argument.
11347 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11348 ada_lookup_symbol_list.
11349 (ada_lookup_encoded_symbol): Update.
11350 (get_var_value): Update.
11351 * ada-exp.y (block_lookup): Update.
11352 (write_var_or_type): Update.
11353 (write_name_assoc): Update.
11354 * ada-lang.h (ada_lookup_symbol_list): Update.
11355
11356 2012-01-31 Tom Tromey <tromey@redhat.com>
11357
11358 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11359 comment.
11360
11361 2012-01-31 Doug Evans <dje@google.com>
11362
11363 * symtab.h: Remove outdated comment.
11364 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11365
11366 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11367
11368 Fix build error in Darwin port.
11369 * i386-darwin-nat.c: Include i386-nat.h.
11370
11371 2012-01-30 Tom Tromey <tromey@redhat.com>
11372
11373 PR breakpoints/13568:
11374 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11375 argument. Check for recursive includes.
11376 (dwarf_decode_macros): Create an include hash.
11377
11378 2012-01-30 Michael Eager <eager@eagercon.com>
11379
11380 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11381 * ppc-linux-tdep.c: Include glibc-tdep.h.
11382 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11383 (powerpc_linux_in_plt_stub): New function.
11384 (powerpc_linux_in_dynsym_resolve_code): New function.
11385 (ppc_skip_trampoline_code): New function.
11386 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11387 Use glibc_skip_solib_resolver.
11388
11389 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11390
11391 Code cleanup: Make 1440 bytes of data segment read-only.
11392 * arch-utils.c (endian_enum): Make it const char *const [].
11393 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11394 Likewise.
11395 * breakpoint.c (always_inserted_enums): Likewise.
11396 * cli/cli-cmds.c (script_ext_enums): Likewise.
11397 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11398 enumlist parameter const char *const *.
11399 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11400 const char *const *.
11401 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11402 parameter const char *const *.
11403 * cris-tdep.c (cris_modes): Make it const char *const [].
11404 * filesystem.c (target_file_system_kinds): Likewise.
11405 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11406 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11407 (can_use_displaced_stepping_enum, scheduler_enums)
11408 (exec_direction_names): Likewise.
11409 * language.c (_initialize_language): Make the type_or_range_names and
11410 case_sensitive_names variables const char *const [].
11411 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11412 * python/python.c (python_excp_enums): Likewise.
11413 * remote.c (interrupt_sequence_modes): Likewise.
11414 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11415 * serial.c (logbase_enums): Likewise.
11416 * sh-tdep.c (sh_cc_enum): Likewise.
11417 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11418 Likewise.
11419 * symtab.c (multiple_symbols_modes): Likewise.
11420 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11421 Likewise.
11422 * utils.c (internal_problem_modes): Likewise.
11423
11424 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11425
11426 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11427 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11428 result.
11429
11430 2012-01-27 Doug Evans <dje@google.com>
11431
11432 * configure.ac (with_python): Fix absolute path handling for win32.
11433 * configure: Regenerate.
11434
11435 2012-01-26 Doug Evans <dje@google.com>
11436
11437 * symtab.c: Whitespace cleanup, no code changes.
11438
11439 * symtab.c (lookup_symbol_in_language): Improve comment.
11440 (lookup_symbol_aux): Fix comment.
11441
11442 * psymtab.c (add_psymbol_to_list): Result is now "void".
11443 * psympriv.h (add_psymbol_to_list): Update.
11444
11445 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11446
11447 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11448
11449 Do not open script filenames twice.
11450 * cli/cli-cmds.c (source_script_from_stream): Pass to
11451 source_python_script also STREAM.
11452 * python/py-auto-load.c (source_section_scripts): Pass to
11453 source_python_script_for_objfile also STREAM.
11454 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11455 also INPUT.
11456 * python/python-internal.h (source_python_script_for_objfile): New
11457 parameter file, rename parameter file to filename.
11458 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11459 instead if !_WIN32. Update the function comment.
11460 (source_python_script, source_python_script_for_objfile)
11461 (source_python_script): New parameter file, rename parameter file to
11462 filename. Pass FILENAME to python_run_simple_file.
11463 * python/python.h (source_python_script): New parameter file, rename
11464 parameter file to filename.
11465
11466 2012-01-26 Pedro Alves <palves@redhat.com>
11467
11468 * corelow.c (core_has_fake_pid): Delete.
11469 (core_close): Delete references to `core_has_fake_pid'.
11470 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11471 (core_open): Delete references to `core_has_fake_pid'.
11472 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11473 the removed global.
11474
11475 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11476
11477 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11478 Remove language parameter from name_matcher. Adjust the comment.
11479 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11480 Remove language parameter.
11481 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11482 * linespec.c (iterate_name_matcher): Likewise.
11483 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11484 name_matcher. Adjust call accordingly.
11485 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11486 (maintenance_check_symtabs): Adjust type of parameter "fun".
11487 * psymtab.h (maintenance_check_symtabs): Likewise.
11488
11489 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11490
11491 * language.h (symbol_name_match_p_ftype): New typedef.
11492 (struct language_defn): Replace field la_symbol_name_compare
11493 by la_get_symbol_name_match_p.
11494 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11495 (ada_language_defn): Use it.
11496 * linespec.c (struct symbol_matcher_data): New type.
11497 (iterate_name_matcher): Rewrite.
11498 (iterate_over_all_matching_symtabs): Pass a pointer to
11499 a symbol_matcher_data struct to expand_symtabs_matching
11500 instead of just the lookup name.
11501 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11502 opencl-lang.c, p-lang.c, language.c: Delete field
11503 la_symbol_name_compare, and replace by NULL for new field
11504 la_get_symbol_name_match_p.
11505 * symfile.h (struct quick_symbol_functions): Update comment.
11506
11507 2012-01-25 Tom Tromey <tromey@redhat.com>
11508
11509 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11510 dereferencing.
11511
11512 2012-01-24 Tom Tromey <tromey@redhat.com>
11513
11514 PR symtab/12406:
11515 * solib.c (update_solib_list): Update the program space's
11516 added_solibs and deleted_solibs fields.
11517 * progspace.h (struct program_space) <added_solibs,
11518 deleted_solibs>: New fields.
11519 (clear_program_space_solib_cache): Declare.
11520 * progspace.c (release_program_space): Call
11521 clear_program_space_solib_cache.
11522 (clear_program_space_solib_cache): New function.
11523 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11524 bpstat_stop_status. Use handle_solib_event.
11525 * breakpoint.c: Include gdb_regex.h.
11526 (print_solib_event): New function.
11527 (bpstat_print): Use print_solib_event.
11528 (bpstat_stop_status): Add special case for bp_shlib_event.
11529 (handle_solib_event): New function.
11530 (bpstat_what): Use handle_solib_event.
11531 (struct solib_catchpoint): New.
11532 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11533 (breakpoint_hit_catch_solib, check_status_catch_solib)
11534 (print_it_catch_solib, print_one_catch_solib)
11535 (print_mention_catch_solib, print_recreate_catch_solib): New
11536 functions.
11537 (catch_solib_breakpoint_ops): New global.
11538 (catch_load_or_unload, catch_load_command_1)
11539 (catch_unload_command_1): New functions.
11540 (internal_bkpt_check_status): Add special case for
11541 bp_shlib_event.
11542 (internal_bkpt_print_it): Use print_solib_event.
11543 (initialize_breakpoint_ops): Initialize
11544 catch_solib_breakpoint_ops.
11545 (_initialize_breakpoint): Register "catch load" and "catch
11546 unload".
11547 * breakpoint.h (handle_solib_event): Declare.
11548 * NEWS: Add entry for "catch load" and "catch unload".
11549
11550 2012-01-24 Tom Tromey <tromey@redhat.com>
11551
11552 * ada-lang.c: Include gdb_vecs.h.
11553 * charset.c: Include gdb_vecs.h.
11554 * tracepoint.h: Include gdb_vecs.h.
11555 * gdb_vecs.h: New file.
11556
11557 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11558
11559 * breakpoint.c (breakpoint_hit_catch_fork)
11560 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11561 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11562 * infrun.c (inferior_has_forked, inferior_has_vforked)
11563 (inferior_has_execd, inferior_has_called_syscall): Delete.
11564 (handle_syscall_event): Get syscall_number from the execution
11565 control state's wait status.
11566 (wait_for_inferior): Don't clear syscall_number.
11567
11568 2012-01-24 Pedro Alves <palves@redhat.com>
11569
11570 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11571 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11572 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11573 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11574 `ws' parameter.
11575 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11576 false for events other than TARGET_SIGNAL_TRAP.
11577 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11578 Add `ws' parameter.
11579 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11580 events other than TARGET_SIGNAL_TRAP.
11581 (tracepoint_breakpoint_hit): Add `ws' parameter.
11582 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11583 parameter.
11584 (bpstat_stop_status): Same.
11585 (pc_at_non_inline_function): Same.
11586 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11587 to pass the current event's waitstatus to bpstat_stop_status
11588 and pc_at_non_inline_function.
11589
11590 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11591
11592 Code cleanup.
11593 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11594 Update the function comment for it.
11595 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11596 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11597 for STREAM.
11598
11599 2012-01-24 Pedro Alves <palves@redhat.com>
11600
11601 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11602 outside `bs->stop' block.
11603 (bpstat_what): Rework bp_shlib_event handling.
11604 (internal_bkpt_check_status): If the breakpoint is a
11605 bp_shlib_event, then set bs->stop and bs->print if
11606 stop_on_solib_events is set.
11607
11608 2012-01-24 Gary Benson <gbenson@redhat.com>
11609
11610 Delete #if 0'd out code.
11611 * stack.c (print_frame_label_vars): Remove.
11612 (catch_info): Likewise.
11613 (_initialize_stack): Remove "info catch" command.
11614 * NEWS: Mention the above.
11615
11616 2012-01-24 Pedro Alves <palves@redhat.com>
11617
11618 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11619 it.
11620 (remote_notice_new_inferior): If the remote end doesn't support
11621 the multiprocess extensions, then the PID is fake.
11622 (add_current_inferior_and_thread): New.
11623 (remote_start_remote): Use it.
11624 (extended_remote_attach_1): Adjust.
11625 (extended_remote_create_inferior_1): Use
11626 add_current_inferior_and_thread.
11627
11628 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11629
11630 Fix watchpoints to be specific for each inferior.
11631 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11632 current_program_space.
11633 * i386-nat.c (i386_inferior_data_cleanup): New.
11634 (i386_inferior_data_get): Replace variable inf_data_local by an
11635 inferior_data call.
11636 (i386_use_watchpoints): Initialize i386_inferior_data.
11637 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11638 specific iterate_over_lwps.
11639
11640 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11641
11642 Fix watchpoints across inferior fork.
11643 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11644 comment for linux_nat_iterate_watchpoint_lwps.
11645 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11646 linux_nat_iterate_watchpoint_lwps.
11647 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11648 * i386-linux-nat.c (update_debug_registers_callback): Update the
11649 comment for linux_nat_iterate_watchpoint_lwps.
11650 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11651 linux_nat_iterate_watchpoint_lwps.
11652 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11653 * i386-nat.c: Include inferior.h.
11654 (dr_mirror): Remove.
11655 (i386_inferior_data, struct i386_inferior_data)
11656 (i386_inferior_data_get): New.
11657 (i386_debug_reg_state): Use i386_inferior_data_get.
11658 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11659 (i386_insert_watchpoint, i386_remove_watchpoint)
11660 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11661 (i386_remove_hw_breakpoint): New variable state, use
11662 i386_debug_reg_state instead of DR_MIRROR.
11663 * linux-nat.c (delete_lwp): New declaration.
11664 (num_lwps): Move here from downwards.
11665 (delete_lwp_cleanup): New.
11666 (linux_child_follow_fork): Create new child_lp, call
11667 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11668 PTRACE_DETACH.
11669 (num_lwps): Move upwards.
11670 (linux_nat_iterate_watchpoint_lwps): New.
11671 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11672 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11673
11674 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11675
11676 GDB 7.4 released.
11677
11678 2012-01-23 Pedro Alves <palves@redhat.com>
11679
11680 * top.c (caution): Rename to ...
11681 (confirm): ... this.
11682 (show_caution): Rename to ...
11683 (show_confirm): ... this.
11684 (quit_cover): Adjust.
11685 (init_main): Adjust.
11686 * top.h (caution): Rename to ...
11687 (confirm): ... this.
11688 * utils.c (internal_vproblem, defaulted_query): Adjust.
11689
11690 2012-01-23 Pedro Alves <palves@redhat.com>
11691
11692 * top.c (caution): Update comment.
11693 (execute_command): Don't consider the current value of `caution'.
11694
11695 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11696
11697 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11698
11699 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11700
11701 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11702 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11703 * target.c (target_fileio_pwrite): Remove buffer address from
11704 debug output.
11705 (target_fileio_pread): Likewise.
11706
11707 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11708
11709 * NEWS: Document remote "info proc" and "generate-core-file".
11710
11711 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11712
11713 * gdbarch.sh (find_memory_regions): New callback.
11714 * gdbarch.c, gdbarch.h: Regenerate.
11715
11716 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11717 callback before falling back to target method.
11718
11719 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11720 (linux_target_install_ops): No longer install it.
11721
11722 * linux-tdep.c (linux_find_memory_regions): New function.
11723 (linux_init_abi): Install it.
11724
11725 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11726
11727 * gdbarch.sh (make_corefile_notes): New architecture callback.
11728 * gdbarch.c: Regenerate.
11729 * gdbarch.h: Likewise.
11730
11731 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11732 before target_make_corefile_notes. If NULL is returned, the
11733 target does not support core file generation.
11734
11735 * linux-nat.c: Include "linux-tdep.h".
11736 (find_signalled_thread, find_stop_signal): Remove.
11737 (linux_nat_do_thread_registers): Likewise.
11738 (struct linux_nat_corefile_thread_data): Likewise.
11739 (linux_nat_corefile_thread_callback): Likewise.
11740 (iterate_over_spus): Likewise.
11741 (struct linux_spu_corefile_data): Likewise.
11742 (linux_spu_corefile_callback): Likewise.
11743 (linux_spu_make_corefile_notes): Likewise.
11744 (linux_nat_collect_thread_registers): New function.
11745 (linux_nat_make_corefile_notes): Replace contents by call to
11746 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11747 as native-only callback.
11748
11749 * linux-tdep.h: Include "bfd.h".
11750 (struct regcache): Add forward declaration.
11751 (linux_collect_thread_registers_ftype): New typedef.
11752 (linux_make_corefile_notes): Add prototype.
11753 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11754 "regset.h", and "elf-bfd.h".
11755 (find_signalled_thread, find_stop_signal): New functions.
11756 (linux_spu_make_corefile_notes): Likewise.
11757 (linux_collect_thread_registers): Likewise.
11758 (struct linux_corefile_thread_data): New data structure.
11759 (linux_corefile_thread_callback): New funcion.
11760 (linux_make_corefile_notes): Likewise.
11761 (linux_make_corefile_notes_1): Likewise.
11762 (linux_init_abi): Install it.
11763
11764 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11765
11766 * gdbarch.sh (info_proc): New callback.
11767 * gdbarch.c, gdbarch.h: Regenerate.
11768
11769 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11770 before falling back to the target info_proc callback.
11771
11772 * linux-nat.c: Do not include "cli/cli-utils.h".
11773 (linux_nat_info_proc): Remove.
11774 (linux_target_install_ops): No longer install it.
11775
11776 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11777 (read_mapping): New function.
11778 (linux_info_proc): Likewise.
11779 (linux_init_abi): Install it.
11780
11781 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11782
11783 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11784 * infcmd.c: (info_proc_cmd_1): New function.
11785 (info_proc_cmd): New function, moved here from equivalent routine
11786 orignally in linux-nat.c.
11787 (info_proc_cmd_mappings): Likewise.
11788 (info_proc_cmd_stat): Likewise.
11789 (info_proc_cmd_status): Likewise.
11790 (info_proc_cmd_cwd): Likewise.
11791 (info_proc_cmd_cmdline): Likewise.
11792 (info_proc_cmd_exe): Likewise.
11793 (info_proc_cmd_all): Likewise.
11794 (_initialize_infcmd): Install "info proc" command and subcommands.
11795
11796 * target.h (struct target_ops): Add to_info_proc.
11797 (target_info_proc): Add prototype.
11798 * target.c (target_info_proc): New function.
11799
11800 * procfs.c (procfs_info_proc): Add prototype.
11801 (info_proc_cmd): Rename into ...
11802 (procfs_info_proc): ... this. Update argument types as appropriate
11803 for a to_info_proc implementation. Handle "what" argument.
11804 (procfs_target): Install procfs_info_proc.
11805 (_initialize_procfs): No longer install "info proc" command.
11806
11807 * linux-nat.c: (enum info_proc_what): Remove.
11808 (linux_nat_info_proc_cmd_1): Rename into ...
11809 (linux_nat_info_proc): ... this. Update argument types as appropriate
11810 for a to_info_proc implementation.
11811 (linux_nat_info_proc_cmd): Remove.
11812 (linux_nat_info_proc_cmd_mappings): Likewise.
11813 (linux_nat_info_proc_cmd_stat): Likewise.
11814 (linux_nat_info_proc_cmd_status): Likewise.
11815 (linux_nat_info_proc_cmd_cwd): Likewise.
11816 (linux_nat_info_proc_cmd_cmdline): Likewise.
11817 (linux_nat_info_proc_cmd_exe): Likewise.
11818 (linux_nat_info_proc_cmd_all): Likewise.
11819 (linux_target_install_ops): Install linux_nat_info_proc.
11820 (_initialize_linux_nat): No longer install "info proc" command
11821 and subcommands.
11822
11823 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11824
11825 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11826 * config.in, configure: Regenerate.
11827
11828 * target.h (struct target_ops): Add to_fileio_readlink.
11829 (target_fileio_readlink): Add prototype.
11830 * target.c (target_fileio_readlink): New function.
11831
11832 * inf-child.c: Conditionally include <sys/param.h>.
11833 (inf_child_fileio_readlink): New function.
11834 (inf_child_target): Install it.
11835
11836 * remote.c (PACKET_vFile_readlink): New enum value.
11837 (remote_hostio_readlink): New function.
11838 (init_remote_ops): Install it.
11839 (_initialize_remote): Handle vFile:readlink packet type.
11840
11841 2012-01-20 Pedro Alves <palves@redhat.com>
11842 Ulrich Weigand <ulrich.weigand@linaro.org>
11843
11844 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11845 * config.in, configure: Regenerate.
11846
11847 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11848 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11849 (target_fileio_open): Add prototype.
11850 (target_fileio_pwrite): Likewise.
11851 (target_fileio_pread): Likewise.
11852 (target_fileio_close): Likewise.
11853 (target_fileio_unlink): Likewise.
11854 (target_fileio_read_alloc): Likewise.
11855 (target_fileio_read_stralloc): Likewise.
11856
11857 * target.c: Include "gdb/fileio.h".
11858 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11859 (default_fileio_target): New function.
11860 (target_fileio_open): Likewise.
11861 (target_fileio_pwrite): Likewise.
11862 (target_fileio_pread): Likewise.
11863 (target_fileio_close): Likewise.
11864 (target_fileio_unlink): Likewise.
11865 (target_fileio_close_cleanup): Likewise.
11866 (target_fileio_read_alloc_1): Likewise.
11867 (target_fileio_read_alloc): Likewise.
11868 (target_fileio_read_stralloc): Likewise.
11869
11870 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11871 <fcntl.h>, and <unistd.h>.
11872 (inf_child_fileio_open_flags_to_host): New function.
11873 (inf_child_errno_to_fileio_error): Likewise.
11874 (inf_child_fileio_open): Likewise.
11875 (inf_child_fileio_pwrite): Likewise.
11876 (inf_child_fileio_pread): Likewise.
11877 (inf_child_fileio_close): Likewise.
11878 (inf_child_fileio_unlink): Likewise.
11879 (inf_child_target): Install to_fileio routines.
11880
11881 * remote.c (init_remote_ops): Install to_fileio routines.
11882
11883 2012-01-20 Pedro Alves <palves@redhat.com>
11884 Ulrich Weigand <ulrich.weigand@linaro.org>
11885
11886 * remote.c (remote_multi_process_p): Only check for multi-process
11887 protocol feature, do not check for extended protocol.
11888 (remote_supports_multi_process): Check for extended protocol here.
11889 (set_general_process): Likewise.
11890 (extended_remote_kill): Likewise.
11891 (remote_pid_to_str): Likewise.
11892 (remote_query_supported): Always query multiprocess mode.
11893
11894 2012-01-20 Pedro Alves <palves@redhat.com>
11895 Ulrich Weigand <ulrich.weigand@linaro.org>
11896
11897 * inferior.h (struct inferior): Add fake_pid_p.
11898 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11899 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11900 magic_null_ptid since the remote side doesn't provide a real PID.
11901
11902 2012-01-19 Tom Tromey <tromey@redhat.com>
11903
11904 * NEWS: Combine the two Python sections.
11905
11906 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11907
11908 * target.h (target_close): Update comment on the target's unpush state.
11909
11910 2012-01-19 Pedro Alves <palves@redhat.com>
11911
11912 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11913 linux_nat_async directly instead of going through the target
11914 vector.
11915 * target.c (unpush_target): Close target after unpushing it, not
11916 before.
11917
11918 2012-01-19 Gary Benson <gbenson@redhat.com>
11919
11920 * mdebugread.c (sort_blocks): Replace integer constants with ones
11921 derived from FIRST_LOCAL_BLOCK.
11922
11923 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11924 Jan Kratochvil <jan.kratochvil@redhat.com>
11925
11926 PR gdb/9538
11927 * symfile.c (find_separate_debug_file): New function.
11928 (terminate_after_last_dir_separator): Likewise.
11929 (find_separate_debug_file_by_debuglink): Also try realpath.
11930 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11931 * configure: Regenerate.
11932 * config.in: Regenerate.
11933
11934 2012-01-18 Doug Evans <dje@google.com>
11935
11936 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11937 (main.o): Remove rule.
11938 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11939 (--with-sysroot): Rewrite.
11940 * configure: Regenerate.
11941 * config.in: Regenerate.
11942
11943 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11944
11945 * parse.c (initialize_expout): New function.
11946 (reallocate_expout): Likewise.
11947 (parse_exp_in_context): Use `initialize_expout' and
11948 `reallocate_expout' when appropriate.
11949
11950 2012-01-18 Pedro Alves <palves@redhat.com>
11951
11952 * record.c (struct record_breakpoint, record_breakpoint_p)
11953 (record_breakpoints): New.
11954 (record_insert_breakpoint, record_remove_breakpoint): Manage
11955 record breakpoints list. Only remove breakpoints from the
11956 inferior if they had been inserted there in the first place.
11957
11958 2012-01-17 Doug Evans <dje@google.com>
11959
11960 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11961 if we know we don't have a file name to look for.
11962
11963 2012-01-17 Pedro Alves <palves@redhat.com>
11964
11965 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11966 the frame's stop reason is UNWIND_UNAVAILABLE.
11967
11968 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11969
11970 Fix compilation error.
11971 * m2-exp.y (yyerror): Use ANSI C prototype.
11972
11973 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11974
11975 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11976 (growbuf_by_size): Likewise.
11977 (yyerror): Likewise.
11978 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11979 (modblock): Remove variable (was #if 0'ed).
11980 (parse_number): Convert prototype from K&R to ANSI C.
11981 (yyerror): Likewise.
11982 * objc-exp.y (parse_number): Likewise.
11983 (yyerror): Likewise.
11984 (yylex): Remove #if 0'ed code.
11985 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11986 (yyerror): Likewise.
11987
11988 2012-01-16 Tom Tromey <tromey@redhat.com>
11989
11990 * NEWS: Add item.
11991 * symtab.h (compare_filenames_for_search): Declare.
11992 * symtab.c (compare_filenames_for_search): New function.
11993 (iterate_over_some_symtabs): Use it.
11994 * symfile.h (struct quick_symbol_functions)
11995 <map_symtabs_matching_filename>: Change spec.
11996 * psymtab.c (partial_map_symtabs_matching_filename): Use
11997 compare_filenames_for_search. Update for new spec.
11998 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11999 compare_filenames_for_search. Update for new spec.
12000 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12001
12002 2012-01-16 Tom Tromey <tromey@redhat.com>
12003
12004 PR python/13281:
12005 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12006 (struct main_type) <flag_flag_enum>: New field.
12007 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12008 * NEWS: Add entries.
12009 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12010 enums.
12011 * python/lib/gdb/printing.py (_EnumInstance): New class.
12012 (FlagEnumerationPrinter): Likewise.
12013
12014 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12015
12016 * breakpoint.c (create_sals_from_address_default): New function.
12017 (create_breakpoints_sal_default): Likewise.
12018 (decode_linespec_default): Likewise.
12019 (is_marker_spec): Removed.
12020 (strace_marker_p): New function.
12021 (init_breakpoint_sal): Using `strace_marker_p' instead of
12022 `is_marker_spec'.
12023 (create_breakpoint): Call method `create_sals_from_address' from
12024 breakpoint_ops, replacing code that created SALs conditionally
12025 on the type of the breakpoint. Call method `create_breakpoints_sal',
12026 replacing code that created breakpoints conditionally on the type
12027 wanted.
12028 (base_breakpoint_create_sals_from_address): New function.
12029 (base_breakpoint_create_breakpoints_sal): Likewise.
12030 (base_breakpoint_decode_linespec): Likewise.
12031 (base_breakpoint_ops): Add methods
12032 `base_breakpoint_create_sals_from_address',
12033 `base_breakpoint_create_breakpoints_sal' and
12034 `base_breakpoint_decode_linespec'.
12035 (bkpt_create_sals_from_address): New function.
12036 (bkpt_create_breakpoints_sal): Likewise.
12037 (bkpt_decode_linespec): Likewise.
12038 (tracepoint_create_sals_from_address): Likewise.
12039 (tracepoint_create_breakpoints_sal): Likewise.
12040 (tracepoint_decode_linespec): Likewise.
12041 (strace_marker_create_sals_from_address): Likewise.
12042 (strace_marker_create_breakpoints_sal): Likewise.
12043 (strace_marker_decode_linespec): Likewise.
12044 (strace_marker_breakpoint_ops): New variable.
12045 (addr_string_to_sals): Remove `marker_spec'. Call method
12046 `decode_linespec' from breakpoint_ops, replacing code that decoded
12047 an address string into a SAL. Use `strace_marker_p' instead of
12048 `marker_spec'.
12049 (strace_command): Decide whether we are dealing with a static
12050 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12051 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12052 * breakpoint.h (linespec_result, linespec_sals): New forward
12053 declarations.
12054 (breakpoint_ops) <create_sals_from_address>,
12055 <create_breakpoints_sal>, <decode_linespec>: New methods.
12056
12057 2012-01-14 Doug Evans <dje@google.com>
12058
12059 * NEWS: Update text for "maint set python print-stack".
12060 It is deprecated in gdb 7.4 and deleted in 7.5.
12061
12062 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12063
12064 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12065 including curses.h.
12066
12067 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12068
12069 * configure: Regenerate.
12070 * config.in: Regenerate.
12071
12072 2012-01-12 Keith Seitz <keiths@redhat.com>
12073
12074 PR mi/10586
12075 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12076 (ANONYMOUS_UNION_NAME): Define.
12077 (is_path_expr_parent): New function.
12078 (get_path_expr_parent): New function.
12079 (is_anonymous_child): New function.
12080 (create_child_with_value): If the child is anonymous and without
12081 a name, assign an object name to it.
12082 (c_describe_child): Use get_path_expr_parent to determine
12083 the parent expression.
12084 If there field represents an anonymous struct or union and
12085 has no name, set an appropriate display name and expression.
12086 (cplus_describe_child): Likewise.
12087
12088 2012-01-12 Pedro Alves <palves@redhat.com>
12089
12090 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12091 available when %ebp is found to be zero (outermost).
12092
12093 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12094
12095 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12096 an internal gdb_static_assert.
12097 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12098
12099 2012-01-11 Tom Tromey <tromey@redhat.com>
12100
12101 PR gdb/9598:
12102 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12103 catch" and "catch throw".
12104
12105 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12106
12107 * blockframe.c (block_innermost_frame): Start search from selected
12108 frame, if present, or otherwise the current frame.
12109
12110 * c-exp.y (variable): Update innermost_block for
12111 'block COLONCOLON NAME' clause.
12112 * m2-exp.y (variable): Ditto.
12113 * objc-exp.y (variable): Ditto.
12114
12115 2012-01-10 Tom Tromey <tromey@redhat.com>
12116
12117 PR python/13199:
12118 * python/python.c (finish_python_initialization): Set sys.argv.
12119
12120 2012-01-10 Doug Evans <dje@google.com>
12121
12122 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12123 "want_line_info". All callers updated.
12124 (dwarf_decode_lines_1): New function.
12125 (handle_DW_AT_stmt_list): Add function comment.
12126 New arg "want_line_info". All callers updated.
12127 (read_file_scope,read_type_unit_scope): Move comment from
12128 handle_DW_AT_stmt_list to here.
12129
12130 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12131
12132 Fix regression after libiberty/ update for GCC PR 6057 and others.
12133 * c-exp.y (operator) <OPERATOR DELETE>
12134 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12135 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12136 (make_builtin_type, make_name): New variable i, add gdb_assert.
12137 (operator) <OPERATOR NEW>: Update ARGS to 3.
12138 (operator) <OPERATOR DELETE>: Add trailing space.
12139 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12140 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12141 * cp-support.c (cp_canonicalize_string): Check NULL from
12142 cp_comp_to_string, call warning and return.
12143
12144 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12145
12146 Fix duplicate .o files after omitting libbfd.a.
12147 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12148 (SFILES): Add corelow.c.
12149 (COMMON_OBS): Add corelow.o.
12150 (ALLDEPFILES): Remove corelow.c.
12151 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12152 * config/alpha/alpha-osf3.mh: Likewise.
12153 * config/alpha/fbsd.mh: Likewise.
12154 * config/arm/nbsdaout.mh: Likewise.
12155 * config/arm/nbsdelf.mh: Likewise.
12156 * config/i386/i386gnu.mh: Likewise.
12157 * config/ia64/hpux.mh: Likewise.
12158 * config/ia64/linux.mh: Likewise.
12159 * config/m32r/linux.mh: Likewise.
12160 * config/m68k/linux.mh: Likewise.
12161 * config/mips/irix5.mh: Likewise.
12162 * config/mips/irix6.mh: Likewise.
12163 * config/pa/hpux.mh: Likewise.
12164 * config/pa/linux.mh: Likewise.
12165 * config/powerpc/aix.mh: Likewise.
12166 * config/sparc/linux.mh: Likewise.
12167 * config/sparc/linux64.mh: Likewise.
12168 * config/sparc/sol2.mh: Likewise.
12169 * config/vax/vax.mh: Likewise.
12170 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12171 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12172 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12173 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12174 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12175 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12176 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12177 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12178 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12179 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12180 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12181 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12182 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12183 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12184 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12185 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12186 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12187 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12188 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12189 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12190 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12191 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12192 corelow.o from gdb_target_obs.
12193 * corefile.c (core_target): Update the comment on NULL value.
12194 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12195 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12196 MATCHES. Drop YUMMY set on NULL.
12197 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12198 reclaim CORE_DATA if it is already NULL.
12199
12200 2012-01-09 Doug Evans <dje@google.com>
12201
12202 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12203 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12204
12205 2012-01-09 Keith Seitz <keiths@redhat.com>
12206
12207 * breakpoint.c (wrapper.h): Don't include.
12208
12209 2012-01-09 Keith Seitz <keiths@redhat.com>
12210
12211 * Makefile.in (SFILES): Remove wrapper.c.
12212 (HFILES_NO_SRCDIR): Remove wrapper.h.
12213 (COMMON_OBS): Remove wrapper.o.
12214 * cli/cli-interp.c: Don't inlude wrapper.h.
12215 * corelow.c: Likewise.
12216 (core_open): Replace gdb_target_find_new_threads with
12217 TRY_CATCH around target_find_new_threads.
12218 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12219 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12220 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12221 evaluate_expression.
12222 (varobj_set_value): Likewise for evaluate_expression and
12223 value_assign.
12224 (install_new_variable): Likewise for value_fetch_lazy.
12225 (adjust_value_for_child_access): Likewise for value_ind.
12226 (c_describe_child): Likewise for value_subscript and
12227 value_ind.
12228 (c_value_of_root): Likewise for evaluate_expression.
12229 * wrapper.c: Remove.
12230 * wrapper.h: Remove.
12231
12232 2012-01-09 Doug Evans <dje@google.com>
12233
12234 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12235 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12236 "abfd" args with "section". All callers updated.
12237 Error checking code moved ...
12238 (error_check_comp_unit_head): ... here. New function.
12239 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12240 Delete arg "abfd". New arg "type_offset". All callers updated.
12241 (create_debug_types_hash_table): Simplify by using
12242 read_and_check_type_unit_head.
12243
12244 * parser-defs.h (namecopy): Delete.
12245 * parse.c (namecopy, namecopy_size): Move into copy_name.
12246
12247 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12248
12249 Partially fix duplicate .o files after omitting libbfd.a.
12250 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12251 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12252 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12253 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12254 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12255 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12256 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12257
12258 2012-01-09 Pedro Alves <palves@redhat.com>
12259
12260 * MAINTAINERS: Update my email address.
12261
12262 2012-01-08 Doug Evans <dje@google.com>
12263
12264 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12265 n_type_units. Rename type_comp_units to all_type_units.
12266 All uses updated.
12267 (add_signatured_type_cu_to_table): Renamed from
12268 add_signatured_type_cu_to_list. All callers updated.
12269
12270 * gdbtypes.h (struct cplus_struct_type): Delete member
12271 nfn_fields_total. All uses removed.
12272
12273 2012-01-06 Doug Evans <dje@google.com>
12274
12275 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12276 to top of file.
12277 (dwarf2_find_comp_unit): Delete.
12278 (process_psymtab_comp_unit): Make result "void".
12279 Delete args buffer, info_ptr, buffer_size, and replace with
12280 "section". All callers updated.
12281 (dwarf2_build_psymtabs_hard): Simplify.
12282
12283 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12284 Thiago Jung Bauermann <bauerman@br.ibm.com>
12285
12286 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12287 before `struct gdb_exception'.
12288 * breakpoint.c (update_global_location_list_nothrow)
12289 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12290 * cp-abi.c (value_rtti_type): Likewise.
12291 * cp-support.c (cp_validate_operator): Likewise.
12292 * infrun.c (insert_exception_resume_breakpoint)
12293 (check_exception_resume, keep_going): Likewise.
12294 * mi-interp.c (mi_breakpoint_created)
12295 (mi_breakpoint_modified): Likewise.
12296 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12297 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12298 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12299
12300 2012-01-05 Doug Evans <dje@google.com>
12301
12302 * dwarf2read.c (statement_prologue): Delete, unused.
12303
12304 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12305 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12306
12307 * dwarf2read.c (comp_unit_header): Delete, unused.
12308
12309 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12310
12311 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12312 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12313
12314 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12315
12316 * infrun.c (normal_stop): Don't skip calling the normal_stop
12317 observers if the thread was doing a multi-step, but stopped for
12318 some reason other than stepping.
12319
12320 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12321
12322 * cli/cli-decode.h: Add comments.
12323 (CMD_LIST_AMBIGUOUS): Moved to command.h
12324 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12325 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12326 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12327 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12328 (add_com, add_com_alias, add_info, add_info_alias)
12329 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12330 declarations.
12331 * command.h: Add and adjust comments.
12332 (CMD_LIST_AMBIGUOUS): Moved here.
12333 (help_cmd, help_cmd_list): Delete declarations.
12334
12335 2012-01-04 Doug Evans <dje@google.com>
12336
12337 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12338 All callers updated.
12339 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12340 Replace all arguments with "per_cu". All callers updated.
12341
12342 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12343
12344 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12345 New arg "per_cu". All callers updated.
12346
12347 Delete #if 0'd out code.
12348 * language.c (binop_result_type): Delete.
12349 (simple_type, ordered_type, same_type, integral_type): Delete.
12350 (numeric_type, character_type, string_type, boolean_type): Delete.
12351 (float_type, structured_type): Delete.
12352 * language.h: Update.
12353
12354 2012-01-04 Tom Tromey <tromey@redhat.com>
12355
12356 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12357
12358 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12359
12360 * corefile.c (close_exec_file): Delete.
12361 (reopen_exec_file): Remove commented out code that seems related
12362 to close_exec_file, which is being deleted here.
12363 * inferior.h (close_exec_file): Delete.
12364 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12365
12366 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12367
12368 * ada-lang.c: #include "cli/cli-utils.h".
12369 (get_selections): Use skip_spaces.
12370 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12371 (catch_ada_exception_command_split): Use skip_spaces.
12372 (ada_decode_assert_location): Likewise.
12373
12374 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12375
12376 * linespec.c (decode_line_internal): Check for C++ or Java
12377 compound constructs only if the current language is C, C++
12378 or Java.
12379
12380 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12381
12382 Revert:
12383 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12384 Joel Brobecker <brobecker@adacore.com>
12385 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12386 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12387 3 times.
12388 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12389 fall through into AT_ENTRY_POINT.
12390 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12391 DUMMY_ADDR with it.
12392 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12393 PPC_INSN_SIZE skip to 3 times.
12394
12395 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12396
12397 * linespec.c (add_minsym): Preserve function descriptors.
12398
12399 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12400
12401 * breakpoint.c (all_locations_are_pending): Consider locations
12402 in program spaces executing during startup pending as well.
12403
12404 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12405
12406 Copyright year update in most files of the GDB Project.
12407
12408 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12409
12410 * copyright.sh: Delete.
12411 * copyright.py: Rewrite.
12412
12413 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12414
12415 * gnulib/extra/update-copyright: New file, imported from gnulib.
12416
12417 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12418
12419 * README (Copyright and License Notices): New section.
12420
12421 2012-01-03 Tom Tromey <tromey@redhat.com>
12422
12423 PR python/12533:
12424 * python/py-value.c (valpy_dereference, valpy_get_address
12425 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12426 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12427 (valpy_absolute, valpy_richcompare): Free intermediate values.
12428
12429 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12430
12431 * ada-lang.c: Reformat the copyright notice.
12432
12433 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12434
12435 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12436 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12437 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12438 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12439 Revert this part of:
12440 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12441 Build gdb directly from *.o files not using libgdb.a.
12442 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12443
12444 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12445
12446 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12447 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12448 Reformat the copyright header.
12449
12450 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12451
12452 Revert this part of:
12453 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12454 Remove the gdbtui binary.
12455 * gdb.c (main): Remove args.interpreter_p initialization.
12456 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12457 * main.h (struct captured_main_args): Remove interpreter_p.
12458
12459 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12460
12461 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12462
12463 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12464
12465 * top.c (print_gdb_version): Update copyright year.
12466
12467 2012-01-02 Yao Qi <yao@codesourcery.com>
12468
12469 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12470
12471 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12472 Joel Brobecker <brobecker@adacore.com>
12473
12474 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12475 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12476 3 times.
12477 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12478 fall through into AT_ENTRY_POINT.
12479 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12480 DUMMY_ADDR with it.
12481 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12482 PPC_INSN_SIZE skip to 3 times.
12483
12484 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12485
12486 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12487 the return value.
12488 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12489
12490 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12491
12492 Build gdb directly from *.o files not using libgdb.a.
12493 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12494 (COMMON_OBS): Remove solib-target.o.
12495 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12496 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12497 (LIBGDB_OBS, libgdb.a): Move it above.
12498 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12499 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12500 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12501 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12502 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12503 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12504 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12505 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12506 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12507 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12508 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12509 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12510 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12511 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12512 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12513 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12514 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12515 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12516 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12517 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12518 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12519 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12520 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12521 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12522 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12523 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12524 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12525
12526 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12527
12528 Remove the gdbtui binary.
12529 * .gitignore (/gdbtui): Remove.
12530 * Makefile.in (TUI): Remove.
12531 (SUBDIR_TUI_OBS): Remove tui-main.o.
12532 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12533 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12534 (tui-main.o): Remove.
12535 (all_object_files): Remove tui-main.o.
12536 * NEWS: New note for the gdbtui removal.
12537 * configure: Rebuilt.
12538 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12539 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12540 CONFIG_UNINSTALL respectively.
12541 * gdb.c (main): Remove args.interpreter_p initialization.
12542 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12543 * main.h (struct captured_main_args): Remove interpreter_p.
12544 * tui/tui-main.c: Remove.
12545
12546 2012-01-01 Doug Evans <dje@google.com>
12547
12548 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12549 (dwarf2_physname, read_import_statement): Ditto.
12550 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12551 (process_structure_scope read_subroutine_type): Ditto.
12552 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12553 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12554 (dwarf2_fetch_die_location_block): Ditto.
12555 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12556
12557 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12558 All callers updated.
12559 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12560 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12561 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12562
12563 * dwarf2read.c (load_cu): Move assert to more useful location.
12564
12565 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12566 All callers updated.
12567
12568 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12569 (dwarf2_elf_names): Minor reformat.
12570 (dwarf2_per_cu_data): Tweak comment.
12571 (dwarf2_read_section): Fix comment.
12572 (create_all_comp_units): Fix comment.
12573 (load_full_comp_unit): Fix comment.
12574 (process_full_comp_unit): Fix comment.
12575 (read_signatured_type): Fix comment.
12576
12577 For older changes see ChangeLog-2011.
12578 \f
12579 Local Variables:
12580 mode: change-log
12581 left-margin: 8
12582 fill-column: 74
12583 version-control: never
12584 coding: utf-8
12585 End:
This page took 0.299633 seconds and 4 git commands to generate.