MI: document the -catch-load/-unload commands
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
2
3 * NEWS: Mention the -catch-load/-catch-unload MI commands.
4
5 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
6
7 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
8 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
9 * breakpoint.c (add_solib_catchpoint): New function that
10 can be used by both CLI and MI, factored out from
11 catch_load_or_unload.
12 (catch_load_or_unload): Strip it down and make it use the
13 new add_solib_catchpoint.
14 * breakpoint.h (add_solib_catchpoint): Declare it.
15 * mi/mi-cmd-break.h: New file.
16 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
17 (setup_breakpoint_reporting): New function used for both
18 catchpoints and breakpoints.
19 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
20 * mi/mi-cmd-catch.c: New file.
21 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
22 and -catch-unload.
23 * mi/mi-cmds.h: Declare the handlers for -catch-load and
24 -catch-unload.
25
26 2012-11-28 Tom Tromey <tromey@redhat.com>
27
28 * dbxread.c (read_dbx_symtab): Update.
29 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
30 (read_ofile_symtab): Add 'objfile' argument.
31 * dwarf2read.c (process_psymtab_comp_unit_reader)
32 (build_type_psymtabs_reader): Update.
33 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
34 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
35 argument.
36 (parse_procedure, parse_partial_symbols): Update.
37 (psymtab_to_symtab_1): Add 'objfile' argument.
38 * psympriv.h (struct partial_symtab) <objfile>: Remove.
39 <read_symtab>: Add 'objfile' argument.
40 (sort_pst_symbols, discard_psymtab): Update.
41 * psymtab.c (partial_map_expand_apply): Update.
42 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
43 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
44 (find_pc_sect_psymbol): Add 'objfile' argument.
45 (lookup_symbol_aux_psymtabs): Update.
46 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
47 Add 'objfile' argument.
48 (find_last_source_symtab_from_partial, dump_psymtab)
49 (dump_psymtabs_for_objfile, read_symtabs_for_function)
50 (expand_partial_symbol_tables, read_psymtabs_with_filename)
51 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
52 (expand_symtabs_matching_via_partial): Update.
53 (sort_pst_symbols): Add 'objfile' argument.
54 (allocate_psymtab): Update.
55 (discard_psymtab): Add 'objfile' argument.
56 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
57 * stabsread.h (end_psymtab): Update.
58 * xcoffread.c (this_symtab_objfile): New global.
59 (process_linenos, enter_line_range, xcoff_next_symbol_text):
60 Update.
61 (read_xcoff_symtab): Add 'objfile' argument.
62 (read_symbol, read_symbol_lineno): Update.
63 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
64 (xcoff_end_psymtab): Add 'objfile' argument.
65 (scan_xcoff_symtab): Update.
66
67 2012-12-12 Paul Koning <paul_koning@dell.com>
68
69 Add support for Python 3.
70 * NEWS: Mention Python 3 support.
71 * varobj.c (value_get_print_value): Use
72 python_string_to_target_string.
73 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
74 of type objects.
75 * python/py-breakpoint.c: Ditto.
76 * python/py-cmd.c: Ditto.
77 * python/py-event.c: Ditto.
78 * python/py-event.h: Ditto.
79 * python/py-evtregistry.c: Ditto.
80 * python/py-finishbreakpoint.c: Ditto.
81 * python/py-frame.c: Ditto.
82 * python/py-function.c: Ditto.
83 * python/py-infthread.c: Ditto.
84 * python/py-lazy-string.c: Ditto.
85 * python/py-progspace.c: Ditto.
86 * /python/py-symbol.c: Ditto.
87 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
88 initialization for Python 3.
89 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
90 of type objects.
91 (infpy_read_memory): Return memoryview object if Python 3.
92 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
93 (infpy_search_memory): Ditto.
94 (get_buffer): New function for Python 3.
95 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
96 of type objects.
97 (objfpy_dealloc): Use Py_TYPE to call tp_free.
98 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
99 of type objects.
100 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
101 (set_attr): Ditto.
102 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
103 instead of PyString methods if Python 3.
104 (print_children): Skip push_dummy_python_frame call if Python 3.
105 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
106 of type objects.
107 (salpy_dealloc): Use Py_TYPE to call tp_free.
108 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
109 of type objects.
110 (field_dealloc): Use Py_TYPE to call tp_free.
111 (typy_dealloc): Ditto.
112 (type_object_as_number): Adjust struct initializations for
113 differences in layout for Python 2 vs. Python 3.
114 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
115 string case for Python 3.
116 (unicode_to_encoded_python_string): Shorten code (no functional
117 change).
118 (python_string_to_target_python_string): Comment that in Python 3
119 returned value is a Python "bytes" type.
120 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
121 (gdb_py_object_from_longest): Omit non-long integer case in Python
122 3.
123 (gdb_py_object_from_ulongest): Ditto.
124 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
125 of type objects.
126 (valpy_dealloc): Use Py_TYPE to call tp_free.
127 (valpy_int): Omit function if Python 3.
128 (convert_value_from_python): Use "%S" format (Python object as a
129 string) if Python 3.
130 (value_object_as_number): Adjust struct initializations for
131 differences in layout for Python 2 vs. Python 3.
132 * python/python-config.py: Adjust syntax for Python 3
133 compatibility.
134 Include "sys.abiflags" string as part of python library name, if
135 that attribute exists (Python 3).
136 * python/python-internal.h (IS_PY3): Define if Python 3.
137 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
138 placeholder value if Python 3.
139 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
140 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
141 analogous Python 3 API function if Python 3.
142 (PyVarObject_HEAD_INIT): Define if not already defined.
143 (Py_TYPE): Ditto.
144 * python/python.c (eval_python_command): Omit Py_FlushLine call if
145 Python 3.
146 Check return values of all Python API calls for error.
147 Supply dummy "python" and "python-interactive" commands if Python
148 initialization failed.
149 (_initialize_python): Convert argc to wchar_t** if Python 3.
150 Add module initialization for Python 3.
151 (finish_python_initialization): Pass wchar_t * argument to
152 PySys_SetPath if Python 3.
153 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
154 (_GdbFile): New class for common output file behavior.
155 (GdbOutFile): Subclass from _GdbFile.
156 (GdbOutputErrorFile): Ditto.
157 (auto_load_packages): Adjust syntax for Python 3 compatibility.
158 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
159 * python/lib/gdb/prompt.py: Use sorted() function rather than
160 sort() method.
161 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
162 Adjust syntax for Python 3 compatibility.
163 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
164 rather than sort() method.
165 Adjust syntax for Python 3 compatibility.
166 * python/lib/gdb/command/type_printers.py: Ditto.
167 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
168 value is a memoryview object if Python 3.
169
170 2012-12-12 Tom Tromey <tromey@redhat.com>
171
172 * coffread.c (coff_objfile_data_key): New global.
173 (coff_symfile_init): Use set_objfile_data.
174 (coff_symfile_read): Use objfile_data.
175 (coff_symfile_finish): Don't free deprecated_sym_private.
176 (coff_free_info): New function.
177 (_initialize_coffread): Initialize coff_objfile_data_key.
178 * mdebugread.c (pending_list): Update comment.
179 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
180 * symfile.c (reread_symbols): Don't mention
181 deprecated_sym_private.
182 * xcoffread.c (xcoff_objfile_data_key): New global.
183 (XCOFF_DATA): New macro.
184 (process_linenos, enter_line_range, xcoff_next_symbol_text)
185 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
186 XCOFF_DATA.
187 (xcoff_new_init) Use set_objfile_data.
188 (xcoff_symfile_finish): Don't free deprecated_sym_private.
189 (init_stringtab, swap_sym, scan_xcoff_symtab)
190 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
191 (xcoff_free_info): New function.
192 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
193
194 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
195
196 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
197
198 2012-12-12 Tom Tromey <tromey@redhat.com>
199
200 * coffread.c (coff_symfile_init): Use set_objfile_data.
201 (coff_symfile_read): Use DBX_SYMFILE_INFO.
202 * dbxread.c (dbx_objfile_data_key): New global.
203 (dbx_symfile_init): Use set_objfile_data.
204 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
205 (dbx_free_symfile_info): New function.
206 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
207 DBX_SYMFILE_INFO.
208 (stabsect_build_psymtabs): Use set_objfile_data.
209 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
210 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
211 set_objfile_data.
212 (free_elfinfo): Use DBX_SYMFILE_INFO.
213 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
214 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
215 * gdb-stabs.h (dbx_objfile_data_key): Declare.
216 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
217 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
218 * somread.c (som_symfile_finish): Don't free
219 deprecated_sym_stab_info.
220
221 2012-12-12 Joel Brobecker <brobecker@adacore.com>
222
223 * gdbarch.sh (software_single_step): Remove trailing space in
224 comment (gdbarch.h is already correct).
225
226 2012-12-11 Tom Tromey <tromey@redhat.com>
227
228 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
229
230 2012-12-11 Tom Tromey <tromey@redhat.com>
231
232 * dsrec.c (report_transfer_performance): Don't declare.
233 (load_srec): Use gettimeofday, print_transfer_performance.
234 * symfile.c (report_transfer_performance): Remove.
235
236 2012-12-11 Pedro Alves <pedro@codesourcery.com>
237 Pedro Alves <palves@redhat.com>
238
239 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
240 NT_PSTATUS note.
241 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
242 differently from LWP IDs.
243
244 2012-12-11 Pedro Alves <palves@redhat.com>
245
246 * configure.ac (detect type of /proc): Remove Unixware handling.
247 * configure: Regenerate.
248 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
249 (ioctl_table) [PCRESET]: Remove entry.
250 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
251 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
252 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
253 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
254 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
255 Unixware in comments throughout.
256 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
257 and remove mention of Unixware.
258
259 2012-12-10 Doug Evans <dje@google.com>
260
261 * dwarf2read.c (dwarf2_cu): Enhance comment.
262 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
263 the DWO file.
264 (dwarf2_record_block_ranges): Ditto.
265
266 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
267
268 * symtab.c (find_pc_sect_symtab): Add comment.
269
270 2012-12-10 Tom Tromey <tromey@redhat.com>
271
272 * defs.h: Don't check for definition of LONGEST.
273 (min, max): Remove duplicates.
274
275 2012-12-10 Tom Tromey <tromey@redhat.com>
276
277 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
278 (dwarf2_fetch_die_loc_cu_off): Rename from
279 dwarf2_fetch_die_location_block. Rewrite to use
280 dwarf2_fetch_die_loc_sect_off.
281 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
282 (dwarf2_fetch_die_loc_cu_off): Rename.
283 * dwarf2loc.c (indirect_pieced_value): Use
284 dwarf2_fetch_die_loc_sect_off.
285 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
286 comment.
287 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
288 * dwarf2expr.c (add_piece): Update.
289 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
290
291 2012-12-10 Tom Tromey <tromey@redhat.com>
292
293 * buildsym.c (struct pending_block): Move from buildsym.h.
294 (pending_blocks): Likewise; now static.
295 (pending_block_obstack): New global.
296 (free_pending_blocks): Free blocks.
297 (record_pending_block): Use pending_block_obstack.
298 * buildsym.h (struct pending_block): Move definition to
299 buildsym.c.
300 (pending_blocks): Don't declare.
301
302 2012-12-10 Pedro Alves <palves@redhat.com>
303
304 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
305 dead SCO code, and adjust function description comment.
306
307 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
308
309 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
310 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
311 CC_HAS_LONG_LONG.
312 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
313 * dwarf2read.c (extract_cu_value): Remove the function.
314 (create_cus_from_index_list): Make the return type void, inline the
315 extract_cu_value caller, include new gdb_static_assert.
316 (create_cus_from_index): Make the return type void, update the function
317 comment, update the create_cus_from_index_list caller.
318 (create_signatured_type_table_from_index): Make the return type void,
319 inline the extract_cu_value caller, include new gdb_static_assert.
320 (dwarf2_read_index): Update the create_cus_from_index and
321 create_signatured_type_table_from_index caller.
322 * printcmd.c (ui_printf): Remove conditionalizations for
323 CC_HAS_LONG_LONG.
324 * config.in: Regenerate.
325 * configure: Regenerate.
326
327 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
328
329 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
330 Update the comment for checked_producer.
331 (check_producer): New forward declaration.
332 (producer_is_gcc_lt_4_3): New function.
333 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
334 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
335
336 2012-12-07 Tom Tromey <tromey@redhat.com>
337
338 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
339 argument, assertion.
340 * c-exp.y (typebase): Add completion productions.
341 * completer.c (expression_completer): Handle tag completion.
342 * expression.h (parse_expression_for_completion): Add argument.
343 * f-lang.c (f_make_symbol_completion_list): Add 'code'
344 argument.
345 * language.h (struct language_defn)
346 <la_make_symbol_completion_list>: Add 'code' argument.
347 * parse.c (expout_tag_completion_type, expout_completion_name):
348 New globals.
349 (mark_struct_expression): Add assertion.
350 (mark_completion_tag): New function.
351 (parse_exp_in_context): Initialize new globals.
352 (parse_expression_for_completion): Add 'code' argument. Handle
353 tag completion.
354 * parser-defs.h (mark_completion_tag): Declare.
355 * symtab.c (default_make_symbol_completion_list_break_on): Add
356 'code' argument. Update.
357 (default_make_symbol_completion_list): Add 'code' argument.
358 (make_symbol_completion_list): Update.
359 (make_symbol_completion_type): New function.
360 * symtab.h (default_make_symbol_completion_list_break_on)
361 (default_make_symbol_completion_list): Update.
362 (make_symbol_completion_type): Declare.
363
364 2012-12-07 Tom Tromey <tromey@redhat.com>
365
366 * expression.h (parse_expression_for_completion): Rename
367 from parse_field_expression.
368 (parse_completion): Rename from in_parse_field.
369 * c-exp.y (lex_one_token): Update.
370 * completer.c (expression_completer): Update.
371 * go-exp.y (lex_one_token): Update.
372 * p-exp.y (yylex): Update.
373 * parse.c (parse_completion): Rename from in_parse_field.
374 (parse_exp_in_context): Update.
375 (parse_expression_for_completion): Rename from
376 parse_field_expression. Update.
377
378 2012-12-07 Tom Tromey <tromey@redhat.com>
379
380 * typeprint.c (_initialize_typeprint): Set completer
381 for "whatis" and "ptype".
382
383 2012-12-07 Joel Brobecker <brobecker@adacore.com>
384
385 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
386 "sim/common/cgen-fpu.h". Remove invalid entries
387 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
388 which actually have an FSF copyright header.
389
390 2012-12-07 Joel Brobecker <brobecker@adacore.com>
391
392 * osf-share/AT386/cma_thread_io.h: Delete.
393 * osf-share/HP800/cma_thread_io.h: Delete.
394 * osf-share/README: Delete.
395 * osf-share/RIOS/cma_thread_io.h: Delete.
396 * osf-share/cma_attr.h: Delete.
397 * osf-share/cma_deb_core.h: Delete.
398 * osf-share/cma_debug_client.h: Delete.
399 * osf-share/cma_errors.h: Delete.
400 * osf-share/cma_handle.h: Delete.
401 * osf-share/cma_init.h: Delete.
402 * osf-share/cma_list.h: Delete.
403 * osf-share/cma_mutex.h: Delete.
404 * osf-share/cma_sched.h: Delete.
405 * osf-share/cma_semaphore_defs.h: Delete.
406 * osf-share/cma_sequence.h: Delete.
407 * osf-share/cma_stack.h: Delete.
408 * osf-share/cma_stack_int.h: Delete.
409 * osf-share/cma_tcb_defs.h: Delete.
410 * osf-share/cma_util.h: Delete.
411 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
412 in osf-share.
413 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
414 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
415 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
416
417 2012-12-06 Pedro Alves <palves@redhat.com>
418 Tom Tromey <tromey@redhat.com>
419
420 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
421
422 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
423
424 PR mi/14741:
425 * mi/mi-cmd-var.c (varobj_update_one): Take value of
426 attribute "dynamic" and "displayhint" from printed child,
427 not the root variable.
428
429 2012-12-06 Joel Brobecker <brobecker@adacore.com>
430
431 * aix-thread.c (getthrds): Fix type of 4th parameter.
432 (get_signaled_thread): Change type of variable ktid to tid_t.
433
434 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
435
436 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
437 value of get_frame_block.
438
439 2012-12-05 Pierre Muller <muller@sourceware.org>
440
441 Avoid memory leaks on struct cmd_list_element.doc field.
442 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
443 if flags contains DOC_ALLOCATED.
444 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
445 flags.
446 (delete_cmd): Handle DOC_ALLOCATED flag.
447 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
448 in flags filed of struct cmd_list_element.
449 (struct cmd_list_element): Document new flag item.
450
451 2012-12-04 Doug Evans <dje@google.com>
452
453 * symmisc.c: Whitespace fixes.
454
455 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
456
457 * i386-tdep.c (i386_skip_prologue): Using symbol table
458 to find the end of prologue for clang compiled binaries.
459 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
460 to find the end of prologue for clang compiled binaries.
461
462 2012-12-03 Doug Evans <dje@google.com>
463
464 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
465 (dw2_find_symbol_file): Delete unused local file_data.
466
467 2012-12-03 Tom Tromey <tromey@redhat.com>
468
469 * ada-exp.y (write_object_renaming, write_var_or_type)
470 (write_ambiguous_var, write_var_from_sym): Make blocks const.
471 * ada-lang.c (replace_operator_with_call)
472 (find_old_style_renaming_symbol): Make blocks const.
473 * ada-lang.h (ada_find_renaming_symbol): Update.
474 (struct ada_symbol_info) <block>: Now const.
475 * breakpoint.c (watch_command_1): Update.
476 * breakpoint.h (struct watchpoint) <exp_valid_block,
477 cond_exp_valid_block>: Now const.
478 * c-exp.y (classify_inner_name, classify_name): Make block
479 argument const.
480 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
481 const.
482 * expression.h (innermost_block, parse_exp_1): Update.
483 (union exp_element) <block>: Now const.
484 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
485 (lookup_struct): Make block argument const.
486 * gdbtypes.h (lookup_template_type): Update.
487 * go-exp.y (classify_name, classify_packaged_name)
488 (package_name_p): Make block argument const.
489 * objc-lang.c (lookup_struct_typedef): Make block argument const.
490 * objc-lang.h (lookup_struct_typedef): Update.
491 * parse.c (parse_exp_in_context, parse_exp_1)
492 (write_exp_elt_block): Make block arguments const.
493 (expression_context_block, innermost_block): Now const.
494 * parser-defs.h (write_exp_elt_block): Update.
495 (expression_context_block, innermost_block, block_found): Now
496 const.
497 * printcmd.c (struct display) <block>: Now const.
498 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
499 * valops.c (address_of_variable): Make block argument const.
500 * value.h (value_of_variable): Update.
501 * varobj.c (struct varobj_root) <valid_block>: Now const.
502
503 2012-11-30 Yao Qi <yao@codesourcery.com>
504
505 * breakpoint.c (print_one_breakpoint_location): Indent code.
506
507 2012-11-30 Yao Qi <yao@codesourcery.com>
508
509 * breakpoint.c (print_one_breakpoint_location): Combine two
510 blocks handling 'hit count' together.
511
512 2012-11-30 Yao Qi <yao@codesourcery.com>
513
514 * infrun.c (error_is_running, ensure_not_running): Move them
515 to ...
516 * infcmd.c (error_is_running, ensure_not_running): ... here.
517 Make them 'static'.
518 * inferior.h: Remove declarations of error_is_running and
519 ensure_not_running.
520
521 2012-11-30 Yao Qi <yao@codesourcery.com>
522
523 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
524 check REGNUM >= 0.
525
526 2012-11-30 Yao Qi <yao@codesourcery.com>
527
528 * infrun.c: Make the declaration of 'init_infwait_state'
529 static.
530 (init_infwait_state): Make it 'static'.
531
532 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
533
534 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
535 return value to void to avoid compiler warning.
536
537 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
538
539 * opencl-lang.c (opencl_print_type): New function.
540 (opencl_language_arch_info): Install it.
541
542 2012-11-29 Tom Tromey <tromey@redhat.com>
543
544 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
545 xvasprintf.
546 * common/common-utils.c (xasprintf, xvasprintf): Remove.
547 * common/common-utils.h (xasprintf, xvasprintf): Remove.
548
549 2012-11-29 Jerome Guitton <guitton@adacore.com>
550
551 * ada-lang.c (ada_is_interface_tag): New function.
552 (ada_is_ignored_field): Add interface tags to the list
553 of ignored fields.
554
555 2012-11-29 Jerome Guitton <guitton@adacore.com>
556
557 * ada-lang.h (ada_tag_value_at_base_address): New function
558 declaration.
559 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
560 New functions.
561 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
562 relocate the class-wide value if need be.
563 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
564 Let ada_tag_value_at_base_address relocate the class-wide access/ref
565 before dereferencing it.
566 * ada-valprint.c (ada_val_print_1): Relocate to base address
567 before displaying the content of an interface-wide ref.
568
569 2012-11-29 Jerome Guitton <guitton@adacore.com>
570
571 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
572
573 2012-11-29 Joel Brobecker <brobecker@adacore.com>
574
575 GDB 7.5.1 released.
576
577 2012-11-29 Yao Qi <yao@codesourcery.com>
578 Tom Tromey <tromey@redhat.com>
579
580 * eval.c (evaluate_subexp_standard): Get the correct pointer
581 type for TYPE_CODE_MEMBERPTR.
582
583 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
584
585 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
586 since now it is being done by binutils' powerpc_init_dialect().
587
588 2012-11-28 Tom Tromey <tromey@redhat.com>
589
590 PR gdb/14290:
591 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
592 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
593 Use it.
594 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
595 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
596 (gdb_bfd_openr_next_archived_file): Use it.
597
598 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
599
600 * configure.ac: Check for linux/perf_event.h.
601 * config.in: Regenerated.
602 * configure: Regenerated.
603
604 2012-11-28 Yao Qi <yao@codesourcery.com>
605
606 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
607 abbreviate 'delete tracepoints' to 'delete tr'.
608 * corefile.c (_initialize_core): Call add_alias_cmd to
609 abbreviate 'set gnutarget' to 'set g'.
610 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
611 'show convenience' to 'show conv'.
612
613 2012-11-27 Joel Brobecker <brobecker@adacore.com>
614
615 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
616 call to sparc_supply_fpregset.
617 (fill_fpregset): Fix first parameter in call to
618 sparc_collect_fpregset.
619
620 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
621 Kazu Hirata <kazu@codesourcery.com>
622 Yao Qi <yao@codesourcery.com>
623
624 * objfiles.c (init_entry_point_info): Call
625 gdbarch_convert_from_func_ptr_addr and
626 gdbarch_addr_bits_remove here ...
627 (entry_point_address_query): ... instead of here.
628 * solib-svr4.c (exec_entry_point): Call
629 gdbarch_addr_bits_remove.
630 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
631 the entry address.
632
633 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
634 Yao Qi <yao@codesourcery.com>
635
636 * eval.c (evaluate_subexp_standard): Add handling of
637 TYPE_CODE_MEMBERPTR when calling functions. Correct the
638 result of ptype for calling a TYPE_CODE_METHODPTR.
639
640 2012-11-27 Yao Qi <yao@codesourcery.com>
641
642 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
643 warning.
644 Add i18n markup.
645
646 2012-11-26 Alexander Larsson <alexl@redhat.com>
647 Jan Kratochvil <jan.kratochvil@redhat.com>
648 Tom Tromey <tromey@redhat.com>
649
650 * NEWS: Mention mini debuginfo feature.
651 * minidebug.c: New file.
652 * configure.ac: Check for lzma.
653 * configure, config.in: Rebuild.
654 * Makefile.in (LIBLZMA): New variable.
655 (CLIBS): Include LIBLZMA.
656 (SFILES): Mention minidebug.c.
657 (COMMON_OBS): Mention minidebug.o.
658 * symfile.c (read_symbols): New function.
659 (syms_from_objfile, reread_symbols): Call it.
660 * symfile.h (find_separate_debug_file_in_section): Declare.
661
662 2012-11-26 Keith Seitz <keiths@redhat.com>
663
664 * exec.c (exec_file_attach): Move cleanup after verifying that
665 memory has in fact been allocated.
666
667 2012-11-26 Tom Tromey <tromey@redhat.com>
668
669 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
670 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
671 SYMBOL_SYMTAB.
672 * skip.c (skip_info): Use SYMBOL_SYMTAB.
673
674 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
675 Pedro Alves <palves@redhat.com>
676
677 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
678 size parameter passed to readlink by one byte.
679 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
680 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
681 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
682 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
683 size by one byte.
684
685 2012-11-26 Yao Qi <yao@codesourcery.com>
686
687 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
688 extraneous parentheses.
689
690 2012-11-26 Yao Qi <yao@codesourcery.com>
691
692 * remote.c (remote_start_remote): Typo fix.
693
694 2012-11-23 David S. Miller <davem@davemloft.net>
695
696 * sparc-tdep.h (struct sparc_fpregset): New data structure.
697 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
698 sparc32_sol2_fpregset): Declare new globals.
699 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
700 'fpregset' argument.
701 * sparc64-tdep.h (sparc64_supply_fpregset,
702 sparc64_collect_fpregset): Likewise.
703 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
704 globals.
705 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
706 (sparc_fpregset): Declare new global.
707 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
708 'fpregset' argument.
709 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
710 into handler.
711 (fill_fpregset): Likewise.
712 (_initialize_sparc_linux_nat): Set sparc_fpregset to
713 sparc32_bsd_fpregset.
714 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
715 sparc32_bsd_fpregset down into handler.
716 (sparc32_linux_collect_core_fpregset): Likewise.
717 * sparc-nat.c (sparc_fpregset): Define.
718 (sparc_supply_fpregset): Add 'fpregset' argument.
719 (sparc_collect_fpregset): Likewise.
720 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
721 into fpregset handler.
722 (sparc_store_inferior_registers): Likewise.
723 (_initialize_sparc_nat): Set sparc_fpregset to
724 sparc32_sunos4_fpregset if NULL.
725 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
726 down into handler.
727 (fill_fpregset): Likewise.
728 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
729 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
730 use it to compute offsets.
731 (sparc32_collect_fpregset): Likewise.
732 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
733 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
734 down into handler.
735 (fill_fpregset): Likewise.
736 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
737 Likewise.
738 (sparc64_linux_collect_core_fpregset): Likewise.
739 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
740 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
741 use it to compute offsets.
742 (sparc64_collect_fpregset): Likewise.
743 (sparc64_bsd_fpregset): Define.
744 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
745 sparc64_bsd_fpregset down into handler.
746 (sparc64fbsd_collect_fpregset): Likewise.
747 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
748 and pass sparc{32,64}_bsd_fpregset down into handler.
749 (sparc64nbsd_collect_fpregset): Likewise.
750 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
751 sparc64_bsd_fpregset down into handler.
752 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
753 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
754 to sparc32_bsd_fpregset.
755 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
756 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
757 (sparc32nbsd_supply_fpregset): Likewise.
758
759 2012-11-21 Tom Tromey <tromey@redhat.com>
760
761 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
762 field.
763 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
764 Remove.
765 * c-typeprint.c (c_type_print_base): Update.
766
767 2012-11-21 Yao Qi <yao@codesourcery.com>
768
769 PR tdep/7438
770 * gdbarch.sh (smash_text_address): Remove.
771 * gdbarch.c, gdbarch.h: Regenerate.
772 * arm-tdep.c (arm_smash_text_address): Remove.
773 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
774 * hppa-tdep.c (hppa_smash_text_address): Remove.
775 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
776 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
777 Caller update.
778 * coffread.c (coff_symtab_read): Caller update.
779 * dbxread.c (process_one_symbol): Likewise.
780 * elfread.c (record_minimal_symbol): Likewise.
781 * somread.c (som_symtab_read): Likewise.
782
783 2012-11-20 Pierre Muller <muller@sourceware.org>
784
785 ARI fixes: sprintf rule.
786 Replace sprintf function calls for char arrays by
787 calls to xsnprintf calls.
788 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
789 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
790 (arm_neon_quad_read, arm_pseudo_read): Ditto.
791 (arm_neon_quad_write, arm_pseudo_write): Ditto.
792 * breakpoint.c (condition_completer): Ditto.
793 (create_tracepoint_from_upload): Ditto.
794 * dwarf2read.c (file_full_name): Ditto.
795 * gcore.c (gcore_command): Ditto.
796 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
797 * go32-nat.c (go32_sysinfo): Ditto.
798 * interps.c (interp_set): Ditto.
799 * m32c-tdep.c (make_types): Ditto.
800 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
801 * remote-m32r-sdi.c (m32r_open): Ditto.
802 * sol-thread.c (td_err_string): Ditto.
803 (td_state_string, solaris_pid_to_str): Ditto.
804 * symtab.c (gdb_mangle_name): Ditto.
805 * cli/cli-script.c (execute_control_command): Ditto.
806 (define_command, document_command): Ditto.
807 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
808 * tui/tui-stack.c (tui_make_status_line): Ditto.
809 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
810
811 2012-11-20 Mike Frysinger <vapier@gentoo.org>
812
813 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
814 it when looking at ptr->func.
815 * command.h (complete_on_cmdlist): Add a fourth arg.
816 * completer.c (complete_line_internal): Add local ignore_help_classes,
817 and set it to 1 when reason is not handle_help. Pass this down to
818 lookup_cmd_1 and complete_on_cmdlist.
819
820 2012-11-20 Tom Tromey <tromey@redhat.com>
821
822 * completer.c (count_struct_fields): Remove.
823 (expression_completer): Don't call count_struct_fields.
824
825 2012-11-20 Pedro Alves <palves@redhat.com>
826
827 * annotate.c (breakpoints_changed): Rename to ...
828 (annotate_breakpoints_changed): ... this.
829 (annotate_stopped, breakpoint_changed): Adjust caller.
830 * annotate.h (breakpoints_changed): Rename to ...
831 (annotate_breakpoints_changed): ... this.
832 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
833 (do_map_commands_command, init_raw_breakpoint, clear_command)
834 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
835
836 2012-11-20 David S. Miller <davem@davemloft.net>
837
838 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
839 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
840 sysconf.
841 (get_cores_used_by_process): Update comment.
842
843 2012-11-20 Yao Qi <yao@codesourcery.com>
844
845 * objfiles.c (init_entry_point_info): Remove trailing spaces.
846
847 2012-11-20 Yao Qi <yao@codesourcery.com>
848
849 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
850 to deprecated_context_hook.
851
852 2012-11-19 Yao Qi <yao@codesourcery.com>
853
854 * infrun.c (infwait_state): Add static.
855
856 2012-11-16 Keith Seitz <keiths@redhat.com>
857
858 PR c++/13615
859 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
860 parameter and pass it to lookup_symbol_file.
861 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
862 to search base classes.
863 (cp_lookup_symbol_namespace): Likewise.
864 (lookup_namespace_scope): Likewise.
865 (lookup_symbol_file): Add SEARCH parameter.
866 If SEARCH is non-zero and no symbol is found, lookup the class
867 and call cp_lookup_nested_symbol.
868 (find_symbol_in_baseclass): New function.
869 (cp_lookup_nested_symbol): Do not let
870 cp_lookup_symbol_in_namespace search through base classes.
871 Do that later when there is no global symbol match.
872
873 2012-11-16 Doug Evans <dje@google.com>
874
875 * main.c (gdb_datadir_provided): New static global.
876 (get_init_files): If --data-directory is provided,
877 and SYSTEM_GDBINIT lives in data-directory, look for it there.
878 * NEWS: Mention it.
879
880 2012-11-15 Pierre Muller <muller@sourceware.org>
881
882 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
883 * gdb_stat.h: Delete. Moved to common directory.
884 * common/gdb_stat.h: New file.
885 * gdb_wait.h: Delete. Moved to common directory.
886 * common/gdb_wait.h: New file.
887 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
888 location.
889 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
890 location.
891 (stat.h rule): Adapt to new gdb_stat.h location.
892 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
893 <sys/stat.h> header.
894 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
895 <sys/wait.h> header.
896
897 2012-11-15 Pierre Muller <muller@sourceware.org>
898
899 * configure.ac (AC_HEADER_STAT): Remove.
900 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
901 and corresponding code.
902 * configure: Regenerate.
903 * config.in: Regenerate.
904
905 2012-11-15 Pierre Muller <muller@sourceware.org>
906
907 ARI xasprintf rule fixes.
908 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
909 instead of xasprintf.
910 (open_and_init_dwp_file): Ditto.
911
912 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
913
914 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
915 target types.
916
917 2012-11-14 Tom Tromey <tromey@redhat.com>
918
919 * configure, config.in: Rebuild.
920 * configure.ac: Don't check for ctype.h, time.h.
921 * expprint.c: Don't use HAVE_CTYPE_H.
922
923 2012-11-13 Tom Tromey <tromey@redhat.com>
924
925 * gdbarch.h, gdbarch.c: Rebuild.
926 * gdbarch.sh (set_target_gdbarch): Rename from
927 deprecated_target_gdbarch_select_hack.
928 * arch-utils.c (gdbarch_update_p): Update.
929 (set_gdbarch_from_file): Update.
930
931 2012-11-14 Pierre Muller <muller@sourceware.org>
932
933 * MAINTAINERS (Responsible Maintainers/misc): Add myself
934 as responsible of contrib/ari directory.
935
936 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
937 Yao Qi <yao@codesourcery.com>
938
939 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
940 bit of EXC_RETURN.
941 (arm_m_exception_cache, arm_m_exception_this_id)
942 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
943 (arm_m_exception_unwind): New.
944 (arm_gdbarch_init): Register arm_m_exception_unwind.
945
946 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
947
948 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
949 parameter COUNT, for pattern filling of memory regions.
950 * NEWS: Mention it.
951
952 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
953
954 * disasm.h (DISASSEMBLY_FILENAME): New macro.
955 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
956 to print_source_lines ().
957 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
958 flag.
959 * source.c (print_source_lines_base): Prefix source line with
960 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
961
962 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
963
964 * symtab.h (print_source_lines_flags): New enum.
965 * source.c (print_source_lines_base): Change noerror to flags.
966 (print_source_lines): Change noerror to flags.
967
968 2012-11-13 Pierre Muller <muller@sourceware.org>
969
970 ARI fixes: Avoid sprintf function use rule.
971 * charset.c (convert_between_encodings): Use xsnprintf.
972 * cli-out.c (cli_field_int): Likewise.
973 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
974 * expprint.c (op_name_standard): Likewise.
975 * frv-tdep.c (set_variant_num_gprs): Likewise.
976 (set_variant_num_fprs): Likewise.
977 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
978 * nto-tdep.c (nto_find_and_open_solib): Likewise.
979 (nto_init_solib_absolute_prefix): Likewise.
980 * source.c (init_source_path): Likewise.
981 (print_source_lines_base): Likewise.
982 * valprint.c (print_wchar): Likewise.
983 * mi/mi-out.c (mi_field_int): Likewise.
984 windows-nat.c (windows_pid_to_exec_file): Likewise.
985 (windows_create_inferior): Likewise.
986 (_initialize_check_for_gdb_ini): Likewise.
987
988 2012-11-12 Joel Brobecker <brobecker@adacore.com>
989
990 * frame.h (deprecated_frame_register_read): Renames
991 frame_register_read.
992 * frame.c (deprecated_frame_register_read): Renames
993 frame_register_read. Update all callers.
994 * i386-tdep.c: Update all callers of frame_register_read.
995 * infcmd.c: Likewise.
996 * jit.c: Likewise.
997 * mips-tdep.c: Likewise.
998 * mt-tdep.c: Likewise.
999 * sh64-tdep.c: Likewise.
1000
1001 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1002
1003 * frame.h (frame_register_read): Remove FIXME comment.
1004 * frame.c (frame_register_read): Add suggestion explaining
1005 which function to use in place of this one.
1006
1007 2012-11-12 Tom Tromey <tromey@redhat.com>
1008
1009 * python/python.c (start_type_printers): Initialize 'result_obj'.
1010
1011 2012-11-12 Tom Tromey <tromey@redhat.com>
1012
1013 * NEWS: Update.
1014 * data-directory/Makefile.in (PYTHON_FILES): Add
1015 type_printers.py.
1016 * python/lib/gdb/command/type_printers.py: New file.
1017 * python/lib/gdb/command/types.py (TypePrinter): New class.
1018 (_get_some_type_recognizers, get_type_recognizers,
1019 apply_type_recognizers, register_type_printer): New
1020 functions.
1021 * python/py-objfile.c (objfile_object) <type_printers>: New
1022 field.
1023 (objfpy_dealloc): Decref new field.
1024 (objfpy_new): Set new field.
1025 (objfpy_get_type_printers, objfpy_set_type_printers): New
1026 functions.
1027 (objfile_to_objfile_object): Set new field.
1028 (objfile_getset): Add "type_printers".
1029 * python/py-progspace.c (pspace_object) <type_printers>: New
1030 field.
1031 (pspy_dealloc): Decref new field.
1032 (pspy_new): Set new field.
1033 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1034 (pspace_to_pspace_object): Set new field.
1035 (pspace_getset): Add "type_printers".
1036 * python/python.c (start_type_printers, apply_type_printers,
1037 free_type_printers): New functions.
1038 (_initialize_python): Set gdb.type_printers.
1039 * python/python.h (start_type_printers, apply_type_printers,
1040 free_type_printers): Declare.
1041 * typeprint.c (type_print_raw_options, default_ptype_flags):
1042 Update for new fields.
1043 (do_free_global_table, create_global_typedef_table,
1044 find_global_typedef): New functions.
1045 (find_typedef_in_hash): Use find_global_typedef.
1046 (whatis_exp): Use create_global_typedef_table. Change cleanup
1047 handling.
1048 * typeprint.h (struct type_print_options) <global_typedefs,
1049 global_printers>: New fields.
1050
1051 2012-11-12 Tom Tromey <tromey@redhat.com>
1052
1053 * c-typeprint.c (find_typedef_for_canonicalize,
1054 print_name_maybe_canonical): New functions.
1055 (c_print_type): Look up type name.
1056 (cp_type_print_derivation_info): Add flags argument. Use
1057 print_name_maybe_canonical.
1058 (cp_type_print_method_args): Add wrapping.
1059 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1060 (c_type_print_template_args): New function.
1061 (c_type_print_base): Change wrapping. Use
1062 print_name_maybe_canonical.
1063 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1064 type name lookups.
1065 * gdbtypes.c (types_equal): No longer static.
1066 * gdbtypes.h (types_equal): Declare.
1067 * typeprint.c (type_print_raw_options, default_ptype_flags):
1068 Update.
1069 (struct typedef_hash_table): New.
1070 (hash_typedef_field, eq_typedef_field,
1071 recursively_update_typedef_hash, add_template_parameters,
1072 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1073 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1074 copy_typedef_hash, find_typedef_in_hash): New functions.
1075 * typeprint.h (struct type_print_options) <local_typedefs>:
1076 New field.
1077 (recursively_update_typedef_hash, add_template_parameters,
1078 create_typedef_hash, free_typedef_hash,
1079 make_cleanup_free_typedef_hash, copy_typedef_hash,
1080 find_typedef_in_hash): Declare.
1081
1082 2012-11-12 Tom Tromey <tromey@redhat.com>
1083
1084 * cp-support.c (inspect_type,
1085 replace_typedefs_qualified_name, replace_typedefs): Add
1086 finder, data arguments. Call as needed.
1087 (cp_canonicalize_string_full): New function.
1088 (cp_canonicalize_string_no_typedefs): Rewrite.
1089 * cp-support.h (canonicalization_ftype): New typedef.
1090 (cp_canonicalize_string_full): Declare.
1091
1092 2012-11-12 Tom Tromey <tromey@redhat.com>
1093
1094 * NEWS: Update.
1095 * c-typeprint.c (c_type_print_base): Handle print_method and
1096 print_typedefs flags.
1097 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1098 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1099 options.
1100 * typeprint.c (type_print_raw_options, default_ptype_flags):
1101 Update for new field.s
1102 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1103 (setprinttypelist, showprinttypelist, print_methods,
1104 print_typedefs): New globals.
1105 (set_print_type, show_print_type, set_print_type_methods,
1106 show_print_type_methods, set_print_type_typedefs,
1107 show_print_type_typedefs): New functions.
1108 (_initialize_typeprint): Update documentation. Add "print
1109 type methods" and "print type typedefs" parameters.
1110 * typeprint.h (struct type_print_options) <print_methods,
1111 print_typedefs>: New fields.
1112
1113 2012-11-12 Tom Tromey <tromey@redhat.com>
1114
1115 * c-typeprint.c (cp_type_print_method_args): Add flags
1116 argument. Call c_print_type, not type_print.
1117 (c_type_print_base): Call c_print_type, not type_print.
1118 Update.
1119
1120 2012-11-12 Tom Tromey <tromey@redhat.com>
1121
1122 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1123 to type-printing functions.
1124 * ada-lang.h (ada_print_type): Add argument.
1125 * ada-typeprint.c (print_array_type, print_variant_clauses,
1126 print_variant_part, print_selected_record_field_types,
1127 print_record_field_types, print_unchecked_union_type,
1128 print_func_type, ada_print_type): Add flags argument.
1129 (ada_print_typedef): Update.
1130 * c-exp.y (OPERATOR conversion_type_id): Update.
1131 * c-lang.h (c_print_type, c_type_print_base): Update.
1132 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1133 c_type_print_modifier, c_type_print_args,
1134 c_type_print_varspec_suffix, c_type_print_base): Add flags
1135 argument.
1136 * cp-valprint.c (cp_print_class_member): Update.
1137 * dwarf2read.c (dwarf2_compute_name): Update.
1138 * f-lang.h (f_print_type): Add argument.
1139 * f-typeprint.c (f_print_type): Add flags argument.
1140 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1141 * go-lang.h (go_print_type): Add argument.
1142 * go-typeprint.c (go_print_type): Add flags argument.
1143 * jv-lang.h (java_print_type): Add argument.
1144 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1145 flags argument.
1146 * language.c (unk_lang_print_type): Add flags argument.
1147 * language.h (struct language_defn) <la_print_type>: Add flags
1148 argument.
1149 (LA_PRINT_TYPE): Likewise.
1150 * m2-lang.h (m2_print_type): Add argument.
1151 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1152 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1153 m2_unbounded_array, m2_record_fields): Add flags argument.
1154 * p-lang.h (pascal_print_type, pascal_type_print_base,
1155 pascal_type_print_varspec_prefix): Add argument.
1156 * p-typeprint.c (pascal_print_type,
1157 pascal_type_print_varspec_prefix, pascal_print_func_args,
1158 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1159 flags argument.
1160 * symmisc.c (print_symbol): Update.
1161 * typeprint.c (type_print_raw_options, default_ptype_flags):
1162 New globals.
1163 (type_print): Update.
1164 * typeprint.h (struct type_print_options): New.
1165 (type_print_raw_options): Declare.
1166 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1167
1168 2012-11-10 Keith Seitz <keiths@redhat.com>
1169
1170 * breakpoint.c (clear_command): Add cleanup for
1171 sals.sals if an argument is given.
1172
1173 * linespec.c (parse_linespec): Do cleanups after
1174 parsing a convenience variable.
1175
1176 2012-11-10 Keith Seitz <keiths@redhat.com>
1177
1178 PR gdb/14288
1179 * c-valprint.c (c_val_print): For character arrays
1180 with "print null" option on, print ellipses if
1181 the output is truncated and the next character is not \000.
1182 * valprint.c (MAX_WCHARS): Define.
1183 (WCHAR_BUFLEN): Likewise.
1184 (WCHAR_BUFLEN_MAX): Likewise.
1185 (struct converted_character): New structure.
1186 (count_next_character): New function.
1187 (print_converted_chars_to_obstack): New function.
1188 (generic_printstr): Rewrite using count_next_character
1189 and print_converted_chars_to_obstack.
1190
1191 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1192
1193 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1194 while executing the gdb command.
1195 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1196 are called from prompt_for_continue.
1197 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1198
1199 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1200
1201 PR tui/9584
1202
1203 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1204 but insert the command to execute in readline's buffer.
1205
1206 2012-11-09 Tom Tromey <tromey@redhat.com>
1207
1208 * gdbarch.sh (target_gdbarch): Remove macro.
1209 (get_target_gdbarch): Rename to target_gdbarch.
1210 * gdbarch.c, gdbarch.h: Rebuild.
1211 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1212 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1213 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1214 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1215 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1216 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1217 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1218 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1219 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1220 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1221 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1222 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1223 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1224 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1225 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1226 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1227 target-descriptions.c, target.c, target.h, tracepoint.c,
1228 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1229 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1230 python/py-inferior.c, python/python.c: Update.
1231
1232 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1233
1234 * source.c (print_source_lines_base): Add fullname field giving
1235 full path to file in mi output.
1236 * NEWS: Mention the new fullname field.
1237
1238 2012-11-09 Yao Qi <yao@codesourcery.com>
1239
1240 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1241
1242 2012-11-09 Pedro Alves <palves@redhat.com>
1243
1244 PR gdb/14306
1245
1246 * infrun.c: Include target-descriptions.h.
1247 (follow_exec): Fetch new target description.
1248
1249 2012-11-09 Yao Qi <yao@codesourcery.com>
1250
1251 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1252 0x8d (lea).
1253
1254 2012-11-09 Yao Qi <yao@codesourcery.com>
1255
1256 * breakpoint.c: Declare set_tracepoint_count.
1257 (install_breakpoint): Call set_tracepoint_count if B is a
1258 tracepoint.
1259 (trace_command): Don't call set_tracepoint_count. Re-indent.
1260 (strace_command, ftrace_command):
1261 (create_tracepoint_from_upload): Likewise.
1262
1263 2012-11-09 Pedro Alves <palves@redhat.com>
1264
1265 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1266 (get_target_gdbarch) <gdbarch.h>: New function.
1267 (startup_gdbarch) <gdbarch.h>: Declare.
1268 <gdbarch.c> (target_gdbarch): Delete.
1269 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1270 current inferior's gdbarch.
1271 <gdbarch.c> (get_target_gdbarch): New function.
1272 * inferior.c: Include target-descriptions.h.
1273 (free_inferior): Free target description info.
1274 (add_inferior_with_spaces): Set the inferior's initial
1275 architecture.
1276 (clone_inferior_command): Copy the original inferior's target
1277 description if it was user specified.
1278 (initialize_inferiors): Add comment.
1279 * inferior.h (struct target_desc_info): Forward declare.
1280 (struct inferior) <gdbarch>: New field.
1281 * linux-nat.c: Include target-descriptions.h.
1282 (linux_child_follow_fork): Copy the parent's architecture and
1283 target description to the child.
1284 * target-descriptions.c: Include inferior.h.
1285 (struct target_desc_info): New structure, holding the equivalents
1286 of ...
1287 (target_desc_fetched, current_target_desc)
1288 (target_description_filename): ... these removed globals.
1289 (get_tdesc_info, target_desc_info_from_user_p)
1290 (copy_inferior_target_desc_info, target_desc_info_free): New.
1291 (target_desc_fetched, current_target_desc)
1292 (target_description_filename): Reimplemented as convenience
1293 macros.
1294 (tdesc_filename_cmd_string): New global.
1295 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1296 tdescs filename ..." commands to the per-inferior equivalent.
1297 (show_tdesc_filename_cmd): Get the value to show from the
1298 per-inferior description filename.
1299 (_initilize_target_descriptions): Change the "set/show tdesc
1300 filename" commands' variable.
1301 * target-descriptions.h (struct target_desc, struct target_desc_info)
1302 (struct inferior): Forward declare.
1303 (target_find_description, target_clear_description)
1304 (target_current_description): Adjust comments.
1305 (copy_inferior_target_desc_info, target_desc_info_free)
1306 (target_desc_info_from_user_p). Declare.
1307
1308 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1309
1310 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1311 (tui_target_wait_hook): Remove.
1312 (tui_install_hooks): Install the about_to_proceed observer.
1313 (tui_remove_hooks): And remove it here.
1314
1315 2012-11-08 Tom Tromey <tromey@redhat.com>
1316
1317 * linux-tdep.c (linux_make_siginfo_note): New function.
1318 (linux_make_corefile_notes): Use it.
1319 * corelow.c (get_core_siginfo): New function.
1320 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1321
1322 2012-11-08 Tom Tromey <tromey@redhat.com>
1323
1324 PR gdb/14704:
1325 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1326 (zlib_decompress_section): Remove.
1327 (gdb_bfd_map_section): Only check for compressed section
1328 in mmap case. Use bfd_get_full_section_contents.
1329 * osabi.c (check_note): Add 'sectsize' argument. Read
1330 section data.
1331 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1332 section data. Update for check_note change.
1333 * xcoffread.c (xcoff_initial_scan): Use
1334 bfd_get_full_section_contents.
1335 * py-auto-load.c (auto_load_section_scripts): Use
1336 bfd_get_full_section_contents.
1337 * contrib/cc-with-tweaks.sh: Add -Z option.
1338
1339 2012-11-08 Tom Tromey <tromey@redhat.com>
1340
1341 * python/py-bpevent.c: Include defs.h.
1342 * python/py-continueevent.c: Include defs.h.
1343 * python/py-event.c: Include defs.h.
1344 * python/py-event.h: Don't include defs.h.
1345 * python/py-events.h: Don't include defs.h.
1346 * python/py-evts.c: Include defs.h.
1347 * python/py-exitedevent.c: Include defs.h.
1348 * python/py-newobjfileevent.c: Include defs.h.
1349 * python/py-signalevent.c: Include defs.h.
1350 * python/py-stopevent.c: Include defs.h.
1351 * python/py-threadevent.c: Include defs.h.
1352
1353 2012-11-08 Pierre Muller <muller@sourceware.org>
1354
1355 * update-web-ari.sh (print_heading): Add number of files
1356 checked.
1357 (nb_files): New variable counting the number of sources
1358 files found by gdb_find.sh script.
1359 (debug_awk): New variable to allow extra debug output.
1360 (indexes): Add more information if DEBUG_AWK is set.
1361
1362 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1363
1364 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1365 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1366 following the change in PLT call stubs on linker.
1367
1368 2012-11-08 Pierre Muller <muller@sourceware.org>
1369
1370 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1371 as default language.
1372 (AWK): Use = instead of == for sh test to avoid warning.
1373 (Linux rule): Correct [:digit] into [[:digit:]].
1374 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1375 (vasprintf rule): Adapt to common subdirectory moves.
1376 (xasprintf rule): Idem.
1377 (xvasprintf rule): Idem.
1378 (var_boolean rule): Accept occurence in == or != test.
1379
1380 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1381
1382 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1383
1384 * tui/tui-hooks.c (tui_inferior_exit): New function.
1385 (tui_detach_hook): Remove.
1386 (tui_install_hooks): Install the inferior exit observer.
1387 (tui_remove_hooks): Remove it.
1388
1389 2012-11-08 Yao Qi <yao@codesourcery.com>
1390
1391 PR gdb/14777.
1392 * source.c (_initialize_source): Call add_com_alias to abbreviate
1393 'forward-search' as 'fo'.
1394
1395 2012-11-07 Pedro Alves <palves@redhat.com>
1396
1397 * arm-tdep.c: Make defs.h be the first include.
1398 * coff-pe-read.c: Ditto.
1399 * gnu-nat.c: Ditto.
1400 * go32-nat.c: Ditto.
1401 * i386-nat.c: Ditto.
1402 * ppcnbsd-nat.c: Ditto.
1403 * ada-varobj.h: Don't include defs.h.
1404 * i386-darwin-tdep.h: Ditto.
1405 * i386-nat.h: Ditto.
1406
1407 2012-11-07 Pedro Alves <palves@redhat.com>
1408
1409 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1410 Committee.
1411
1412 2012-11-07 Pierre Muller <muller@sourceware.org>
1413
1414 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1415 File already uses "gdb_dirent.h" header.
1416
1417 2012-11-07 Yao Qi <yao@codesourcery.com>
1418
1419 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1420 tracepoint_count'.
1421
1422 2012-11-06 Tom Tromey <tromey@redhat.com>
1423
1424 * target.h (inferior_has_forked, inferior_has_vforked)
1425 (inferior_has_execd, inferior_has_called_syscall): Remove
1426 declarations.
1427
1428 2012-11-06 Pierre Muller <muller@sourceware.org>
1429
1430 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1431 add missing internalization markup.
1432
1433 2012-11-06 Pedro Alves <palves@redhat.com>
1434
1435 PR gdb/14810
1436
1437 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1438
1439 2012-11-06 Pierre Muller <muller@sourceware.org>
1440
1441 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1442 is not executable.
1443
1444 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1445
1446 * gnulib/update-gnulib.sh: New script.
1447
1448 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1449
1450 * MAINTAINERS: Update my email address.
1451
1452 2012-11-05 Tom Tromey <tromey@redhat.com>
1453
1454 * frame.c (put_frame_register): Don't use temporary buffer.
1455
1456 2012-11-05 Pedro Alves <palves@redhat.com>
1457
1458 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1459 child. Clear 'pending_detach'.
1460 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1461 'pending_detach' in the vfork parent.
1462
1463 2012-11-05 Doug Evans <dje@google.com>
1464
1465 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1466 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1467 * dwarf2read.c: #include "elf-bfd.h".
1468 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1469 (dwop_section_names): Renamed from dwo_section names. All uses
1470 updated. Add entries for .debug_cu_index, .debug_tu_index.
1471 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1472 All uses updated.
1473 (struct dwp_sections): New type.
1474 (struct virtual_dwo_sections): New type.
1475 (struct dwp_hash_table): New type.
1476 (struct dwp_file): New type.
1477 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1478 read in. Handle DWOs coming from DWP files.
1479 (lookup_dwo_file_slot): New function.
1480 (dwarf2_locate_dwo_sections): Move definition closer to use.
1481 (create_dwo_debug_info_hash_table_reader): Renamed from
1482 create_debug_info_hash_table_reader. All callers updated.
1483 (create_dwo_debug_info_hash_table): Renamed from
1484 create_debug_info_hash_table. All callers updated.
1485 (create_dwp_hash_table): New function.
1486 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1487 (lookup_dwo_in_dwp): New function.
1488 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1489 is_dwp. All callers updated.
1490 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1491 (open_and_init_dwo_file): Renamed from init_dwo_file.
1492 All callers updated.
1493 (lookup_dwo_file): Delete.
1494 (dwarf2_locate_dwp_sections): New function.
1495 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1496 (allocate_dwp_loaded_cutus_table): New function.
1497 (open_and_init_dwp_file): New function.
1498 (lookup_dwo_cutu): New function.
1499 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1500
1501 2012-11-03 Yao Qi <yao@codesourcery.com>
1502
1503 Fix PR gdb/14617.
1504 * breakpoint.c (trace_pass_set_count): Call
1505 observer_notify_breakpoint_modified instead of
1506 observer_notify_tracepoint_modified.
1507 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1508
1509 2012-11-02 Tom Tromey <tromey@redhat.com>
1510
1511 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1512 argument to complete_on_enum.
1513
1514 2012-11-02 Tom Tromey <tromey@redhat.com>
1515
1516 * configure: Rebuild.
1517 * configure.ac (build_warnings): Add -Wempty-body.
1518 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1519 * remote.c (handle_notification): Use braces for empty 'else' body.
1520 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1521 'else' body.
1522 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1523 'else' body.
1524 * solib-som.c (som_relocate_section_addresses): Use braces
1525 for empty 'else' body.
1526 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1527 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1528
1529 2012-11-02 Pedro Alves <palves@redhat.com>
1530
1531 PR gdb/14766
1532
1533 * infrun.c (handle_inferior_event)
1534 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1535 null_ptid before handling a vfork child exec or exit. Switch to
1536 the event ptid afterwards.
1537
1538 2012-11-02 Yao Qi <yao@codesourcery.com>
1539
1540 * std-operator.def: Remove OP_LABELED.
1541 * eval.c: Remove the declaration of 'get_label'.
1542 (get_label): Remove.
1543 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1544 Update comment.
1545 Remove local variable 'variantno' and related code.
1546 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1547 with 'fieldno'.
1548 * expprint.c (print_subexp_standard): Likewise.
1549 (dump_subexp_body_standard): Likewise.
1550 * parse.c (operator_length_standard): Likewise.
1551
1552 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1553
1554 Incorporate ARI web page generator into GDB sources.
1555 * contrib/ari/create-web-ari-in-src.sh: New file.
1556 * contrib/ari/gdb_ari.sh: New file.
1557 * contrib/ari/gdb_find.sh: New file.
1558 * contrib/ari/update-web-ari.sh: New file.
1559
1560 2012-10-31 Tom Tromey <tromey@redhat.com>
1561
1562 * gdbarch.c: Rebuild.
1563 * gdbarch.sh: Remove references to gdbarch_swap.
1564 * corelow.c (core_open): Remove obsolete comment.
1565
1566 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1567
1568 PR cli/14772
1569 * c-typeprint.c (c_print_type): Don't print a space for vector
1570 types, this is handled within the suffix.
1571 (c_type_print_varspec_suffix): Add a space to vector suffix.
1572
1573 2012-10-26 Pedro Alves <palves@redhat.com>
1574
1575 * amd64-tdep.c (amd64_relocate_instruction): Use
1576 store_unsigned_integer instead of memcpy.
1577 * i386-tdep.c (i386_relocate_instruction): Ditto.
1578
1579 2012-10-26 Pedro Alves <palves@redhat.com>
1580
1581 * infrun.c (handle_inferior_event): Merge handling of
1582 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1583 switch case.
1584
1585 2012-10-26 Pedro Alves <palves@redhat.com>
1586
1587 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1588 Remove comment.
1589
1590 2012-10-26 Pedro Alves <palves@redhat.com>
1591
1592 * target.c (target_waitstatus_to_string): Handle
1593 TARGET_WAITKIND_VFORK_DONE.
1594
1595 2012-10-26 Pedro Alves <palves@redhat.com>
1596
1597 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1598 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1599
1600 2012-10-24 Tristan Gingold <gingold@adacore.com>
1601
1602 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1603 Add comments.
1604
1605 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1606
1607 * ravenscar-thread.c (ravenscar_wait): Only update the list
1608 of threads and inferior_ptid if the inferior is still alive.
1609
1610 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1611
1612 * ada-lang.c (is_known_support_routine): Use lbasename when
1613 matching the symtab's filename against
1614 known_runtime_file_name_patterns.
1615
1616 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1617
1618 * ada-lang.c (ada_same_array_size_p): New function.
1619 (ada_promote_array_of_integrals): New function.
1620 (coerce_for_assign): Add handling of arrays where the elements
1621 are integrals of a smaller size than the size of the target
1622 array element type.
1623
1624 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1625
1626 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1627 against maximum exponent value.
1628
1629 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1630
1631 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1632 "unwind-seh.c".
1633
1634 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1635
1636 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1637 strip typedef layer when computing the fixed type's field type,
1638 only when computing its size.
1639
1640 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1641
1642 PR gdb/12783
1643 * i386-tdep.c (i386_return_value): Handle complex double and long
1644 double.
1645
1646 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1647
1648 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1649 New local variable args_len.
1650 Quote the name of the executable when computing the command line.
1651
1652 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1653
1654 PR gdb/12796
1655 PR gdb/12798
1656 PR gdb/12800
1657 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1658 AMD64_FTAG_REGNUM.
1659 * amd64-tdep.c (amd64_classify): Classify complex types.
1660 (amd64_return_value): Handle the COMPLEX_X87 class.
1661
1662 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1663
1664 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1665 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1666
1667 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1668
1669 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1670 function.
1671 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1672 to amd64_windows_auto_wide_charset.
1673
1674 2012-10-23 Yao Qi <yao@codesourcery.com>
1675
1676 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1677 * event-top.h: Remove its declaration.
1678 (async_request_quit): Call mark_async_signal_handler instead of
1679 mark_async_signal_handler_wrapper.
1680 (async_do_nothing, async_disconnect): Likewise.
1681 (async_stop_sig): Likewise.
1682 * remote.c (handle_remote_sigint): Likewise.
1683 (handle_remote_sigint_twice): Likewise.
1684
1685 2012-10-23 Yao Qi <yao@codesourcery.com>
1686
1687 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1688 with 'static struct async_signal_handler *'.
1689 (sighup_token, sigquit_token, sigstp_token): Likewise.
1690
1691 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1692
1693 * gdbarch.sh (function_list): Use 'pstring' when printing
1694 a variable which could return NULL.
1695 * gdbarch.c: Regenerate.
1696
1697 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1698 Tom Tromey <tromey@redhat.com>
1699
1700 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1701 inneffective if condition by gdb assertion. Add function
1702 description comment.
1703
1704 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1705
1706 * parser-defs.h (struct exp_descriptor): Document constraint
1707 on return value for "op_name" callbacks.
1708
1709 2012-10-18 Tom Tromey <tromey@redhat.com>
1710
1711 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1712 * symtab.c (iterate_over_some_symtabs): Constify.
1713 * source.h (symtab_to_fullname): Return 'const char *'.
1714 * source.c (symtab_to_fullname): Return 'const char *'.
1715 * python/py-symtab.c (stpy_fullname): Constify.
1716 * cli/cli-cmds.c (edit_command): Constify.
1717 * breakpoint.c (print_breakpoint_location)
1718 (update_static_tracepoint): Constify.
1719
1720 2012-10-18 Tom Tromey <tromey@redhat.com>
1721
1722 * breakpoint.c (compare_breakpoints): Fix comparison.
1723
1724 2012-10-18 Tom Tromey <tromey@redhat.com>
1725
1726 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1727 gdb_wchar_t to convert_between_encodings.
1728
1729 2012-10-17 Yao Qi <yao@codesourcery.com>
1730
1731 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1732 more parameter 'inferior'.
1733 * corefile.c (write_memory_with_notification): Caller update.
1734
1735 * mi/mi-cmd-var.c: Include "mi-main.h".
1736 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1737 to 1 and restore it later.
1738 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1739 and "data-write-memory-bytes.
1740 * mi/mi-interp.c: Include objfiles.h.
1741 (mi_interpreter_init): Call observer_attach_memory_changed.
1742 (mi_memory_changed): New.
1743 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1744 New field.
1745
1746 * NEWS: Mention new MI notification "memory-changed".
1747
1748 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1749
1750 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1751
1752 2012-10-15 Doug Evans <dje@google.com>
1753
1754 New option -nh: inhibit loading of ~/.gdbinit.
1755 * NEWS: Mention -nh.
1756 * main.c (captured_main): Recognize and process -nh.
1757 (print_gdb_help): Mention -nh.
1758 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1759
1760 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1761
1762 PR backtrace/14646
1763 PR gdb/14647
1764 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1765 pc_regnum_from_eax.
1766 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1767 nor pc_regnum_from_eax.
1768 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1769 nor pc_regnum_from_eax.
1770
1771 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1772
1773 Fix entry values resolving in inlined frames.
1774 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1775 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1776 entries of FRAME.
1777
1778 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1779
1780 * configure.ac: Build with -DMS_WIN64 if building with Python
1781 enabled using GCC on amd64-windows.
1782 * configure: Regenerate.
1783
1784 2012-10-15 Tom Tromey <tromey@redhat.com>
1785
1786 PR python/14635:
1787 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1788 to Py_None.
1789
1790 2012-10-15 Tom Tromey <tromey@redhat.com>
1791
1792 PR python/14634:
1793 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1794
1795 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1796
1797 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1798 reset thread numbering back to 1.
1799
1800 2012-10-11 Doug Evans <dje@google.com>
1801
1802 PR breakpoints/14643.
1803 * linespec.c (struct ls_parser): New member keyword_ok.
1804 (linespec_lexer_lex_string): Add comment.
1805 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1806 for one.
1807 (parse_linespec): Set keyword_ok.
1808
1809 2012-10-10 Doug Evans <dje@google.com>
1810
1811 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1812 "0x" prefix on address in log message.
1813
1814 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1815 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1816 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1817 (lookup_dwo_file): Add const to dwo_name parameter.
1818 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1819
1820 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1821
1822 Fix crash during stepping on ppc32.
1823 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1824 SYM.
1825
1826 2012-10-03 Doug Evans <dje@google.com>
1827
1828 PR symtab/14601
1829 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1830
1831 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1832
1833 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1834 output and use uint32_t not long to ensure 4 byte size.
1835
1836 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1837
1838 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1839 unref'ed it.
1840
1841 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1842
1843 * target.c (simple_search_memory): Include access length in
1844 warning message.
1845
1846 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1847 Edjunior Machado <emachado@linux.vnet.ibm.com>
1848
1849 PR gdb/13989
1850 * solib.c (solib_find): Prevent GDB from loading native libraries when
1851 debugging a cross-target corefile.
1852
1853 2012-09-28 selven <pcthegreat@gmail.com>
1854
1855 Make definition match declaration.
1856
1857 * regcache.c (regcache_register_status): Change return type to
1858 enum register_status.
1859
1860 2012-09-28 Yao Qi <yao@codesourcery.com>
1861
1862 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1863 write_memory_with_notification instead of write_memory.
1864 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1865 instead of target_write_memory.
1866
1867 2012-09-28 Yao Qi <yao@codesourcery.com>
1868
1869 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1870 when the length of content is not an even number.
1871
1872 2012-09-27 Tom Tromey <tromey@redhat.com>
1873
1874 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1875 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1876
1877 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1878
1879 * sol-thread.c (sol_thread_fetch_registers)
1880 (sol_thread_store_registers): Delete commented out code.
1881
1882 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1883
1884 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1885 Move these functions to sparc-sol-thread.c.
1886 * sparc-sol-thread.c: New file.
1887 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1888 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1889 configurations.
1890 * configure: Regenerate.
1891
1892 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1893
1894 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1895 Remove commented-out code.
1896
1897 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1898
1899 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1900 Enable this code for sparc hosts only.
1901
1902 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1903
1904 * procfs.h (procfs_find_LDT_entry): Add declaration.
1905 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1906 function procfs_find_LDT_entry.
1907
1908 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1909
1910 * procfs.c (proc_get_LDT_entry): Make static.
1911
1912 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1913
1914 * procfs.c (proc_find_memory_regions): Fix declaration.
1915
1916 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1917
1918 * amd64-tdep.c (amd64_return_value): Revert previous change
1919 that used TYPE_LENGTH directly.
1920 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1921 (bfin_store_return_value): Likewise.
1922 * cris-tdep.c (cris_store_return_value): Likewise.
1923 (cris_extract_return_value): Likewise.
1924 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1925 * hppa-tdep.c (hppa64_return_value): Likewise.
1926 * lm32-tdep.c (lm32_store_return_value): Likewise.
1927 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1928 * spu-tdep.c (spu_value_from_register): Likewise.
1929 * vax-tdep.c (vax_return_value): Likewise.
1930
1931 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1932
1933 * gdbtypes.c (lookup_array_range_type): Expand parameters
1934 LOW_BOUND and HIGH_BOUND to LONGEST.
1935 (lookup_string_range_type): Likewise.
1936 * gdbtypes.h (lookup_array_range_type): Likewise.
1937 (lookup_string_range_type): Likewise.
1938 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1939 Expand HIGHBOUND to ssize_t.
1940 (value_string): Likewise.
1941 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1942 (value_string): Likewise.
1943
1944 2012-09-27 Yao Qi <yao@codesourcery.com>
1945
1946 PR breakpoints/13898
1947 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1948 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1949 per breakpoint type.
1950
1951 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1952
1953 * procfs.c: Add gdb_bfd header.
1954 * rs6000-nat.c: Likewise.
1955 * solib-pa64.c: Likewise.
1956 * spu-linux-nat.c: Likewise.
1957 * windows-nat.c: Likewise.
1958
1959 2012-09-26 Tom Tromey <tromey@redhat.com>
1960
1961 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1962
1963 2012-09-26 Tom Tromey <tromey@redhat.com>
1964
1965 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1966 (read_common_block): Handle child DIEs with
1967 DW_AT_data_member_location.
1968 (new_symbol_full): Add special case for common blocks.
1969
1970 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1971 Tom Tromey <tromey@redhat.com>
1972
1973 * dwarf2read.c (read_common_block): Rewrite.
1974 (new_symbol_full): Handle DW_TAG_common_block.
1975 * f-lang.c (head_common_list, find_common_for_function):
1976 Remove.
1977 * f-lang.h (struct common_entry, struct saved_f77_common,
1978 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1979 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1980 BLANK_COMMON_NAME_LOCAL): Remove.
1981 (struct common_block): New.
1982 * f-valprint.c (list_all_visible_commons): Remove.
1983 (info_common_command_for_block): New function.
1984 (info_common_command): Use it.
1985 * stack.c (iterate_over_block_locals): Special case for
1986 COMMON_BLOCK_DOMAIN.
1987 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1988 constant.
1989 (struct general_symbol_info) <value.common_block>: New field.
1990 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1991
1992 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1993 Tom Tromey <tromey@redhat.com>
1994
1995 * f-lang.c (allocate_saved_bf_node,
1996 allocate_saved_function_node, allocate_saved_f77_common_node,
1997 allocate_common_entry_node, tail_common_list, current_common,
1998 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1999 tmp_bf_ptr, add_common_block, add_common_entry,
2000 find_first_common_named, patch_common_entries,
2001 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2002 global_remote_debug, get_bf_for_fcn, saved_function_list,
2003 saved_function_list_end, clear_function_list, struct saved_fcn,
2004 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2005 SAVED_BF, SAVED_BF_PTR): Remove.
2006 * f-lang.h (tail_common_list, current_common,
2007 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2008 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2009 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2010 real_main_c_value): Remove.
2011 * f-valprint.c (there_is_a_visible_common_named): Remove.
2012
2013 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2014
2015 * breakpoint.c (update_global_location_list): Ignore previous
2016 duplicate status of a breakpoint when starting a new scan for
2017 duplicate breakpoints.
2018
2019 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2020 PR breakpoints/14419
2021 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2022 support LLVM compiler.
2023
2024 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2025
2026 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2027 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2028 (bfin_store_return_value): Likewise.
2029 * cris-tdep.c (cris_store_return_value): Likewise.
2030 (cris_extract_return_value): Likewise.
2031 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2032 * hppa-tdep.c (hppa64_return_value): Likewise.
2033 * lm32-tdep.c (lm32_store_return_value): Likewise.
2034 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2035 * spu-tdep.c (spu_value_from_register): Likewise.
2036 * vax-tdep.c (vax_return_value): Likewise.
2037
2038 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2039
2040 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2041 parameter LEN to ssize_t.
2042
2043 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2044
2045 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2046 variable LEN.
2047 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2048 directly.
2049 (alpha_store_return_value): Likewise.
2050 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2051 (amd64_push_arguments): Likewise.
2052 * ax-gdb.c (gen_trace_static_fields): Likewise.
2053 (gen_traced_pop): Likewise.
2054 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2055 * breakpoint.c (update_watchpoint): Likewise.
2056 * findcmd.c (parse_find_args): Use local variable for type
2057 instead of length.
2058 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2059 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2060 (h8300_store_return_value): Likewise.
2061 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2062 Use i386_darwin_arg_type_alignment directly.
2063 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2064 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2065 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2066 (m68hc11_extract_return_value): Likewise.
2067 * mep-tdep.c (mep_push_dummy_call): Likewise.
2068 * printcmd.c (float_type_from_length): Likewise.
2069 * s390-tdep.c (s390_value_from_register): Likewise.
2070 * stack.c (read_frame_arg): Likewise.
2071 * tracepoint.c (encode_actions_1): Likewise.
2072 * valops.c (value_fetch_lazy): Use local variable for type
2073 instead of length. Use TYPE_LENGTH directly.
2074 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2075
2076 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2077
2078 * symtab.c (skip_prologue_sal): Fix typo in comment.
2079
2080 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2081
2082 * linespec.c (create_sals_line_offset): Fix typo in comment.
2083
2084 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2085
2086 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2087 use plongest to print the array size.
2088
2089 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2090
2091 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2092 * p-valprint.c (pascal_type_print_base): Likewise.
2093
2094 2012-09-22 Yao Qi <yao@codesourcery.com>
2095
2096 * remote.c (remote_get_trace_status): Remove setting default
2097 values of fields of 'ts'.
2098
2099 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2100
2101 Fix internal error on canonicalization of clang types.
2102 * cp-name-parser.y (operator): New comment at make_operator call for
2103 new, delete, new[] and delete[].
2104 (exp): Use "sizeof ". Add new comment at make_operator call.
2105
2106 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2107
2108 Fix disassemble without parameters in tailcall frame.
2109 * cli/cli-cmds.c (disassemble_current_function): Use
2110 get_frame_address_in_block.
2111
2112 2012-09-21 Tom Tromey <tromey@redhat.com>
2113
2114 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2115 TYPE_CODE_UNION>: Unify, removing a goto.
2116
2117 2012-09-21 Tom Tromey <tromey@redhat.com>
2118
2119 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2120
2121 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2122
2123 * findvar.c (read_frame_register_value): Mark the result value as
2124 optimized out if any of the input registers have been optimized out.
2125
2126 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2127
2128 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2129
2130 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2131
2132 * eval.c (evaluate_subexp_standard): Eliminate single-use
2133 variable LOWER.
2134
2135 2012-09-21 Yao Qi <yao@codesourcery.com>
2136
2137 * mi/mi-interp.c: Declare mi_record_changed.
2138 (mi_interpreter_init): Call observer_attach_record_changed.
2139 (mi_record_changed): New.
2140 * record.c (record_open): Call observer_notify_record_changed.
2141 (cmd_record_stop): Call observer_notify_record_changed.
2142 * NEWS: Mention it.
2143
2144 2012-09-20 Tom Tromey <tromey@redhat.com>
2145
2146 * NEWS: Update.
2147 * python/python.c (finalize_python): New function.
2148 (_initialize_python): Make a final cleanup.
2149
2150 2012-09-19 Doug Evans <dje@google.com>
2151
2152 * buildsym.h (param_symbols): Delete, unused.
2153 (context_stack): Delete member "params", unused.
2154 * buildsym.c (push_context): Update.
2155 * dwarf2read.c (read_func_scope): Update.
2156
2157 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2158
2159 * sh-tdep.c (sh_register_convert_to_virtual)
2160 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2161 all callers. Just do a memcpy if not the little-endian case.
2162
2163 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2164 set_gdbarch_double_format and set_gdbarch_long_double_format.
2165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2166 set_gdbarch_double_format.
2167 * sh-tdep.c (sh_gdbarch_init): Likewise.
2168
2169 * NEWS: Document the removal of SH's 'regs' command.
2170 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2171 command.
2172
2173 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2174
2175 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2176 `jump'.
2177
2178 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2179
2180 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2181 language when iterating over symbols.
2182
2183 2012-09-18 Yao Qi <yao@codesourcery.com>
2184
2185 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2186 (mi_interpreter_init): Call observer_attach_tsv_created and
2187 observer_attach_tsv_deleted.
2188 (mi_tsv_created, mi_tsv_deleted): New.
2189 * tracepoint.c (delete_trace_state_variable): Call
2190 observer_notify_tsv_deleted.
2191 (trace_variable_command): Call observer_notify_tsv_created.
2192 (delete_trace_variable_command): Call
2193 observer_notify_tsv_deleted.
2194 (create_tsv_from_upload): Call observer_notify_tsv_created.
2195 * NEWS: Mention it.
2196
2197 2012-09-18 Yao Qi <yao@codesourcery.com>
2198
2199 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2200 if traceframe changed.
2201 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2202 "trace-find".
2203 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2204 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2205 'traceframe_changed'.
2206 (mi_traceframe_changed): New.
2207 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2208 New field.
2209 * NEWS: Mention the new MI notification.
2210
2211 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2212
2213 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2214
2215 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2216
2217 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2218 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2219 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2220 Extend code also for PaX support. Convert all gdb_assert to warning
2221 calls.
2222
2223 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2224
2225 Implement auto-load user conveniences suggested by Doug Evans.
2226 * auto-load.c: Include top.h.
2227 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2228 (_initialize_auto_load): New variable scripts_directory_help. Mention
2229 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2230 scripts-directory. Document in online help one can use also files for
2231 set auto-load safe-path.
2232 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2233 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2234
2235 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2236
2237 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2238 of LEN.
2239
2240 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2241
2242 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2243 ELTLEN and use TYPE_LENGTH directly.
2244 (m2_val_print): Likewise.
2245 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2246 variable LEN and use TYPE_LENGTH directly.
2247 (m68k_svr4_store_return_value): Likewise.
2248 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2249 ARGLEN and use TYPE_LENGTH directly.
2250 (mips_o64_push_dummy_call): Likewise.
2251 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2252 variable LENGTH and use TYPE_LENGTH directly.
2253 (s390_function_arg_float): Likewise.
2254 (s390_function_arg_integer): Likewise.
2255 (s390_push_dummy_call): Likewise.
2256 (s390_return_value_convention): Likewise.
2257 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2258 TYPE_LENGTH directly.
2259
2260 2012-09-17 Yao Qi <yao@codesourcery.com>
2261
2262 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2263 Update comment to add_setshow_integer_cmd.
2264 * cli/cli-setshow.c (do_set_command): Handle case
2265 'var_zuinteger_unlimited'.
2266 (do_show_command): Likewise.
2267 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2268 for command 'remotetimeout'.
2269 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2270 to var_integer.
2271 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
2272 for command 'set listsize'.
2273
2274 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2275
2276 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2277 variable LEN.
2278
2279 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2280
2281 PR 14119
2282 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2283 (frame_pop): Drop also TAILCALL_FRAME frames.
2284 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2285
2286 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2287 Pedro Alves <palves@redhat.com>
2288
2289 PR 14548
2290 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2291 function start if we are already at function start. Both for
2292 reverse-next and for reverse-step into function without line number
2293 info.
2294
2295 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2296
2297 Code cleanup - rename 'inline' depth to 'artificial' depth.
2298 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2299 frame_id_artificial_p, extend the comment.
2300 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2301 * frame.c (fprint_frame_id): Rename at a user, change debug output
2302 text to "artificial=".
2303 (skip_inlined_frames): Rename to ...
2304 (skip_artificial_frames): ... here. Extend the comment.
2305 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2306 (frame_id_inlined_p): Rename to ...
2307 (frame_id_artificial_p): ... here. Rename at a user.
2308 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2309 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2310 at a user.
2311 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2312 Extend the comment.
2313 (frame_id_inlined_p): Rename to ...
2314 (frame_id_artificial_p): ... here.
2315 * inline-frame.c (inline_frame_this_id): Rename at a user.
2316
2317 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2318
2319 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2320 vector variables using vector_size syntax rather than array
2321 syntax.
2322
2323 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2324
2325 * valarith.c (value_concat): Replace unsafe ALLOCA with
2326 XMALLOC/XFREE.
2327
2328 2012-09-14 Pedro Alves <palves@redhat.com>
2329
2330 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2331
2332 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2333
2334 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2335 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2336 data-directory as appropriate.
2337
2338 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2339
2340 * printcmd.c (ui_printf): Eliminate single-use variable
2341 PARAM_LEN.
2342
2343 2012-09-14 Yao Qi <yao@codesourcery.com>
2344 Pedro Alves <palves@redhat.com>
2345
2346 * valops.c (value_assign): Move observer_notify_target_changed
2347 below to replace reinit_frame_cache.
2348
2349 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2350
2351 Refactor Python "gdb" module into a proper Python package, by
2352 introducing a new "_gdb" module for code implemented in C, and
2353 using reload/__import__ instead of exec.
2354 * python/lib/gdb/__init__.py: Import * from _gdb.
2355 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2356 prompt_hook, sys.argv): Moved from finish_python_initialization.
2357 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2358 (packages, auto_load_packages): New list and function replacing
2359 module_dict and auto-loading code, using __file__ instead of
2360 gdb.PYTHONDIR and reload/__import__ instead of exec.
2361 (GdbSetPythonDirectory): Replacing function of the same name
2362 from finish_python_initialization, using reload/__import__ instead
2363 of exec, as well as call auto_load_packages.
2364 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2365 gdb_python_module and not gdb_module.
2366 * python/python-internal.h (gdb_python_module): Declare.
2367 * python/python.c (gdb_python_module): New global.
2368 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2369 (_initialize_python): Rename gdb module to _gdb.
2370 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2371 (finish_python_initialization): Move Python code to
2372 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2373 __main__.
2374
2375 2012-09-13 Pedro Alves <palves@redhat.com>
2376
2377 * Makefile.in (COMMON_OBS): Add registry.o.
2378 * registry.c: New file.
2379 * registry.h (struct registry_container): Declare.
2380 (registry_data_callback): New typedef.
2381 (struct registry_data, struct registry_data_registration, struct
2382 registry_data_registry): New type.
2383 (register_data_with_cleanup, registry_alloc_data)
2384 (registry_callback_adaptor, registry_clear_data)
2385 (registry_container_free_data, registry_set_data, registry_data):
2386 Declare.
2387 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2388 the new common structures and functions.
2389 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2390 callback typedefs.
2391
2392 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2393
2394 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2395 there is an error inserting hardware breakpoints and use the
2396 error message from the target.
2397
2398 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2399 Catch this exception and print the error message contained within. Do not
2400 print the default hardware error breakpoint message in this case.
2401
2402 2012-09-12 Doug Evans <dje@google.com>
2403
2404 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2405 cu == NULL.
2406
2407 2012-09-11 Doug Evans <dje@google.com>
2408
2409 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2410 .gdb_index symbol attributes if there are none.
2411
2412 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2413
2414 * symtab.h (struct minimal_symbol) [has_size]: New field.
2415 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2416 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2417 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2418 minimal symbols if the symbol's size is actually known.
2419 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2420 of msymbol's size field. Add comment.
2421 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2422 SET_MSYMBOL_SIZE to set the minimal symbol size.
2423
2424 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2425
2426 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2427 minimal_symbol struct object, rather than setting some of its
2428 fields one by one.
2429
2430 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2431
2432 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2433 passed_a_ptr flag when displaying typedef types.
2434
2435 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2436
2437 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2438 the optimized_out flag is preserved.
2439
2440 2012-09-10 Anthony Green <green@moxielogic.com>
2441
2442 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2443 prologue changes in GCC.
2444
2445 2012-09-10 Keith Seitz <keiths@redhat.com>
2446
2447 PR gdb/13483
2448 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2449 (BOOL_CONVERSION_BADNESS): ... this.
2450 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2451 (rank_one_type): Allow all boolean conversions
2452 permitted by the standard.
2453
2454 2012-09-06 Tom Tromey <tromey@redhat.com>
2455
2456 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2457 Don't decref py_objfile.
2458
2459 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2460
2461 Do not enable -lmcheck by default when Python is enabled with
2462 threading support.
2463 * configure.ac: (python_has_threads) New variable, by testing
2464 if WITH_THREAD is defined in Python.h.
2465 Move --enable-lmcheck after --with-python.
2466 Do not enable -lmcheck by default if python_has_threads=yes.
2467 Warn if --enable-lmcheck and python_has_threads=yes.
2468 * configure: Regenerate.
2469
2470 2012-08-31 Yao Qi <yao@codesourcery.com>
2471
2472 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2473 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2474 Update some commands.
2475 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2476 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2477 to 1.
2478
2479 2012-08-31 Yao Qi <yao@codesourcery.com>
2480
2481 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2482
2483 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2484
2485 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2486
2487 2012-08-29 Doug Evans <dje@google.com>
2488
2489 * main.c (print_gdb_help): Remove reference to
2490 --use-deprecated-index-sections.
2491
2492 2012-08-28 Yao Qi <yao@codesourcery.com>
2493
2494 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2495 (init_cmds): Call add_setshow_uinteger_cmd for command
2496 'max-user-call-depth'.
2497 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2498 declaration of 'max_user_call_depth'.
2499 * frame.c (backtrace_limit): Add 'unsigned'.
2500 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2501 'limit'.
2502 * remote.c (remoteaddresssize): Add 'unsigned'.
2503 (remote_address_masked): Change local var 'address_size' to
2504 'unsigned'.
2505 (_initialize_remote): Call add_setshow_uinteger_cmd for
2506 'remoteaddresssize'.
2507 * top.c (history_size): Add 'unsigned'.
2508 (show_commands): Change local variables to 'unsigned'.
2509 (set_history_size_command): Don't check history_size is negative.
2510 Adjust the condition to call unstifle_history and set history_size
2511 to UNIT_MAX.
2512
2513 2012-08-28 Pedro Alves <palves@redhat.com>
2514
2515 PR gdb/14428
2516
2517 * infcmd.c (default_print_one_register_info): New, factored out
2518 from default_print_registers_info.
2519 (default_print_registers_info): Use it. Mark value unavailable if
2520 necessary.
2521 (registers_info): Print user registers with
2522 default_print_one_register_info.
2523
2524 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2525
2526 PR tui/14486
2527 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2528 is not NULL before referencing it.
2529
2530 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2531
2532 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2533 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2534 original PC for it.
2535
2536 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2537 Jan Kratochvil <jan.kratochvil@redhat.com>
2538
2539 * auto-load.c (auto_load_objfile_script): Rename to ...
2540 (auto_load_objfile_script_1): ... here, change variable realname to
2541 parameter realname, document it, add return value, add variable retval.
2542 (auto_load_objfile_script): New function.
2543
2544 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2545
2546 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2547 followed by a whitespace.
2548
2549 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2550
2551 PR gdb/14494.
2552 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2553 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2554 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2555 here.
2556
2557 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2558
2559 * memattr.c (create_mem_region): Fix memory region overlapping
2560 checking.
2561
2562 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2563
2564 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2565 with xmalloc/cleanup.
2566 * mt-tdep.c (mt_push_dummy_call): Likewise.
2567 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2568 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2569
2570 2012-08-24 Yao Qi <yao@codesourcery.com>
2571
2572 * jv-exp.y (push_expression_name): Add "." at the end of error
2573 message.
2574
2575 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2576
2577 Document how to return from "python-interactive" to GDB.
2578 * python/python.c (_initialize_python): Update documentation.
2579
2580 2012-08-23 Pedro Alves <palves@redhat.com>
2581
2582 * infrun.c (_initialize_infrun) <handle command help text>:
2583 Mention that multiple signals are supported.
2584
2585 2012-08-23 Pedro Alves <palves@redhat.com>
2586
2587 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2588 string.
2589
2590 2012-08-23 Yao Qi <yao@codesourcery.com>
2591
2592 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2593 (tfind_1): Don't call registers_changed, set_traceframe_num,
2594 and clear_traceframe_info.
2595 Call set_current_traceframe.
2596 (set_current_traceframe): call set_traceframe_num.
2597
2598 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2599
2600 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2601 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2602
2603 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2604
2605 Enable readline in Python in a GDB-specific way and block the
2606 standard Python readline module to prevent conflicts with GDB.
2607 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2608 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2609 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2610 * python/py-gdb-readline.c: New file.
2611 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2612 prototype.
2613 * python/python.c (_initialize_python): Call
2614 gdbpy_initialize_gdb_readline.
2615
2616 2012-08-22 Keith Seitz <keiths@redhat.com>
2617
2618 * defs.h: Include build-gnulib/config.h
2619
2620 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2621
2622 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2623 and blx pc.
2624
2625 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2626
2627 Add a new "python-interactive" command that starts a standard
2628 Python interactive prompt with "pi" as alias, and add "py" as
2629 an alias to "python".
2630 * NEWS: Mention the new commands.
2631 * python/python.c (eval_python_command): New function.
2632 (python_interactive_command): For "python-interactive" with
2633 arguments, call eval_python_command. For "python-interactive"
2634 without arguments, call PyRun_InteractiveLoop.
2635 (_initialize_python): Add "python-interactive" command with
2636 "pi" as alias, and add "py" as an alias to "python".
2637
2638 2012-08-22 Tom Tromey <tromey@redhat.com>
2639
2640 * defs.h (quit_flag): Don't declare.
2641 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2642 (QUIT): Use new functions.
2643 * event-top.c (command_handler): Use clear_quit_flag.
2644 (handle_sigint): Use set_quit_flag.
2645 (async_request_quit): Use check_quit_flag. Don't check
2646 immediate_quit.
2647 * exceptions.c (throw_exception): Use clear_quit_flag.
2648 * main.c (captured_main): Use clear_quit_flag.
2649 * python/python.c (clear_quit_flag, set_quit_flag)
2650 (check_quit_flag): New functions.
2651 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2652 clear_quit_flag.
2653 * remote.c (remote_wait_as): Use check_quit_flag,
2654 clear_quit_flag.
2655 (remote_start_remote): Call QUIT.
2656 * symfile.c (load_progress): Use check_quit_flag.
2657 * top.c (command_loop): Use clear_quit_flag.
2658 (command_line_input): Call QUIT.
2659 * utils.c (quit_flag): Conditionally define.
2660 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2661 functions.
2662 (prompt_for_continue): Call QUIT. Use quit, not
2663 async_request_quit.
2664 * remote-mips.c (mips_expect_timeout): Call QUIT.
2665 * monitor.c (monitor_expect): Call QUIT.
2666
2667 2012-08-22 Tom Tromey <tromey@redhat.com>
2668
2669 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2670 (async_init_signals): Update.
2671 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2672 (SIGWINCH_HANDLER_BODY): Remove.
2673
2674 2012-08-22 Tom Tromey <tromey@redhat.com>
2675
2676 * jit.c (jit_object_close_impl): Don't malloc the objfile
2677 name.
2678 * objfiles.c (allocate_objfile): Don't malloc the objfile
2679 name.
2680 (free_objfile): Don't free the objfile name.
2681 * objfiles.h (struct objfile) <name>: Update comment.
2682 * symfile.c (reread_symbols): Fix reference counting. Don't
2683 malloc objfile name.
2684
2685 2012-08-22 Tom Tromey <tromey@redhat.com>
2686
2687 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2688 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2689 (symfile_bfd_open): Likewise.
2690 (generic_load): Likewise.
2691 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2692 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2693 gdb_bfd_open.
2694 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2695 Use gdb_bfd_open.
2696 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2697 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2698 (pmon_load_fast): Likewise.
2699 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2700 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2701 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2702 (macho_check_dsym): Likewise.
2703 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2704 (m32r_upload_command): Likewise.
2705 * gdb_bfd.h (gdb_bfd_cache): Declare.
2706 * gdb_bfd.c (struct gdb_bfd_data): New.
2707 (gdb_bfd_cache): New global.
2708 (struct gdb_bfd_cache_search): New.
2709 (hash_bfd): New function.
2710 (eq_bfd): Likewise.
2711 (gdb_bfd_open): Likewise.
2712 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2713 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2714 gdb_bfd_data.
2715 * exec.c (exec_file_attach): Use gdb_bfd_open.
2716 * dsrec.c (load_srec): Use gdb_bfd_open.
2717
2718 2012-08-22 Tom Tromey <tromey@redhat.com>
2719
2720 * dwarf2read.c (macro_start_file): Update.
2721 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2722 (free_objfile_per_bfd_storage): Destroy macro_cache.
2723 (allocate_objfile, free_objfile): Update.
2724 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2725 New field.
2726 (struct objfile) <macro_cache>: Remove.
2727 * symfile.c (reread_symbols): Update.
2728 * symmisc.c (print_symbol_bcache_statistics): Update.
2729 (print_objfile_statistics): Update.
2730
2731 2012-08-22 Tom Tromey <tromey@redhat.com>
2732
2733 * elfread.c (elf_symtab_read): Update.
2734 * objfiles.c (objfiles_bfd_data): New global.
2735 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2736 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2737 (allocate_objfile, free_objfile): Update.
2738 (_initialize_objfiles): Initialize objfiles_bfd_data.
2739 * objfiles.h (struct objfile_per_bfd_storage): New.
2740 (struct objfile) <per_bfd>: New field.
2741 <filename_cache>: Remove.
2742 (set_objfile_per_bfd): Declare.
2743 * symfile.c (reread_symbols): Update. Call
2744 set_objfile_per_bfd.
2745 (allocate_symtab): Update.
2746 * symmisc.c (print_symbol_bcache_statistics): Update.
2747 (print_objfile_statistics): Print the size of the BFD obstack.
2748
2749 2012-08-22 Tom Tromey <tromey@redhat.com>
2750
2751 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2752 * gdb_bfd.c: Use DEFINE_REGISTRY.
2753 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2754 (gdb_bfd_ref): Call bfd_alloc_data.
2755 (gdb_bfd_unref): Call bfd_free_data.
2756
2757 2012-08-22 Tom Tromey <tromey@redhat.com>
2758
2759 * registry.h (struct registry_fields): New.
2760 (REGISTRY_FIELDS): Redefine.
2761 (REGISTRY_ACCESS_FIELD): New macro.
2762 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2763 functions.
2764
2765 2012-08-22 Tom Tromey <tromey@redhat.com>
2766
2767 * auto-load.c (_initialize_auto_load): Update.
2768 * solib-svr4.c (_initialize_svr4_solib): Update
2769 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2770 * solib-darwin.c (_initialize_darwin_solib): Update.
2771 * registry.h: New file.
2772 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2773 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2774 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2775 (register_program_space_data_with_cleanup)
2776 (register_program_space_data, program_space_alloc_data)
2777 (clear_program_space_data, set_program_space_data)
2778 (program_space_data): Don't declare.
2779 * progspace.c: Use DEFINE_REGISTRY.
2780 (struct program_space_data, struct
2781 program_space_data_registration, struct
2782 program_space_data_registry, program_space_data_registry)
2783 (register_program_space_data_with_cleanup)
2784 (register_program_space_data, program_space_alloc_data)
2785 (program_space_free_data, clear_program_space_data)
2786 (set_program_space_data, program_space_data): Remove.
2787 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2788 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2789 (register_objfile_data_with_cleanup, register_objfile_data)
2790 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2791 declare.
2792 * objfiles.c: Use DEFINE_REGISTRY.
2793 (struct objfile_data, struct objfile_data_registration, struct
2794 objfile_data_registry, objfile_data_registry)
2795 (register_objfile_data_with_cleanup, register_objfile_data)
2796 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2797 (set_objfile_data, objfile_data): Remove.
2798 (_initialize_objfiles): Update.
2799 * jit.c (_initialize_jit): Update.
2800 * inflow.c (_initialize_inflow): Update.
2801 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2802 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2803 (register_inferior_data_with_cleanup, register_inferior_data)
2804 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2805 declare.
2806 * inferior.c: Use DEFINE_REGISTRY.
2807 (struct inferior_data, struct inferior_data_registration, struct
2808 inferior_data_registry, inferior_data_registry)
2809 (register_inferior_data_with_cleanup, register_inferior_data)
2810 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2811 (set_inferior_data, inferior_data): Remove.
2812 * auxv.c (_initialize_auxv): Update.
2813 * ada-lang.c (_initialize_ada_language): Update.
2814 * breakpoint.c (_initialize_breakpoint): Update.
2815 * i386-nat.c (i386_use_watchpoints): Update.
2816
2817 2012-08-22 Tom Tromey <tromey@redhat.com>
2818
2819 * exec.c (exec_close, exec_file_attach): Update.
2820 (add_to_section_table): Initialize 'key' field.
2821 (add_target_sections, remove_target_sections): Add 'key' argument.
2822 * exec.h (add_target_sections, remove_target_sections): Add
2823 'key' argument.
2824 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2825 (reload_shared_libraries_1): Update.
2826 * target.h (struct target_section) <key>: New field.
2827
2828 2012-08-22 Tom Tromey <tromey@redhat.com>
2829
2830 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2831
2832 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2833
2834 * symfile.c (allocate_symtab): Use host_address_to_string
2835 function instead of cast of pointer to long which is not
2836 compatible with x86_64-w64-mingw32 build.
2837
2838 2012-08-19 Andrew Pinski <apinski@cavium.com>
2839
2840 * mips-tdep.c (is_octeon): New function.
2841 (is_octeon_bbit_op): New function.
2842 (mips32_next_pc): Handle Octeon's bbit instructions.
2843 (mips32_instruction_has_delay_slot): Likewise.
2844
2845 2012-08-19 Andrew Pinski <apinski@cavium.com>
2846
2847 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2848 before the function.
2849
2850 2012-08-19 Andrew Pinski <apinski@cavium.com>
2851
2852 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2853
2854 2012-08-19 Keith Seitz <keiths@redhat.com>
2855
2856 PR c++/14365
2857 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2858 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2859
2860 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2861
2862 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2863 The typo broke "make TAGS".
2864
2865 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2866
2867 GDB 7.5 released.
2868
2869 2012-08-17 Keith Seitz <keiths@redhat.com>
2870
2871 PR c++/13356
2872 * gdbtypes.c (strict_type_checking): New variable.
2873 (show_strict_type_checking): New function.
2874 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2875 if strict type checking is disabled.
2876 (_initialize_gdbtypes): Add "check type" subcommand.
2877 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2878
2879 2012-08-17 Keith Seitz <keiths@redhat.com>
2880
2881 * language.h (type_mode): Remove.
2882 (type_check): Remove.
2883 (struct language_defn): Remove la_type_check.
2884 (STRICT_TYPE): Remove unused macro.
2885 (type_error): Remove.
2886 * language.c (set_type_range_case): Renamed to ...
2887 (set_range_case): ... this. Update all callers.
2888 Remove type_mode/type_check.
2889 (type_mode): Remove.
2890 (type_check): Remove.
2891 (show_type_command): Remove.
2892 (set_type_command): Remove.
2893 (language_info): Remove type checking output.
2894 (type_error): Remove unused function.
2895 (range_error): Update comment.
2896 (unknown_language_defn): Remove la_type_check.
2897 (auto_language_defn): Likewise.
2898 (local_language_defn): Likewise.
2899 (_initialize_language): Remove "check type" subcommand.
2900 * ada-lang.c (ada_language_defn): Remove la_type_check.
2901 * c-lang.c (c_language_defn): Likewise.
2902 (cplus_language_defn): Likewise.
2903 (asm_language_defn): Likewise.
2904 (minimal_language_defn): Likewise.
2905 * d-lang.c (d_language_defn): Likewise.
2906 * f-lang.c (f_language_defn): Likewise.
2907 * go-lang.c (go_language_defn): Likewise.
2908 * jv-lang.c (java_language_defn): Likewise.
2909 * m2-lang.c (m2_language_defn): Likewise.
2910 * objc-lang.c (objc_language_defn): Likewise.
2911 * opencl-lang.c (opencl_language_defn): Likewise.
2912 * p-lang.c (pascal_language_defn): Likewise.
2913
2914 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2915
2916 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2917
2918 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2919
2920 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2921 New function.
2922 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2923 using the regache. Use ia64_hpux_get_register_from_save_state_t
2924 to access the bsp and bspstore registers if not.
2925
2926 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2927
2928 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2929 * breakpoint.c (detach_breakpoints): Change pid parameter into
2930 a ptid. Adjust code accordingly.
2931 * infrun.c (handle_inferior_event): Delete variable child_pid.
2932 Update call to detach_breakpoints to pass the child ptid for
2933 fork events.
2934 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2935 assert that inferior_ptid's lwp is zero.
2936 (linux_handle_extended_wait): Update call to detach_breakpoints.
2937 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2938 detach_breakpoints.
2939
2940 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2941
2942 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2943 parent, only call detach_breakpoints if tts.tts_event ==
2944 TTEVT_VFORK.
2945
2946 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2947
2948 * dwarf2-frame.c (dwarf2_frame_cache): Use
2949 get_frame_address_in_block instead of get_frame_pc as
2950 the bound for executing the frame's FDE.
2951
2952 2012-08-16 Yao Qi <yao@codesourcery.com>
2953
2954 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2955 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2956 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2957 (c_type_print_varspec_suffix): Likewise.
2958 * eval.c (evaluate_subexp_standard): Likewise.
2959 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2960 (f_type_print_varspec_suffix): Likewise.
2961 * gdbtypes.c (is_scalar_type): Likewise.
2962 (recursive_dump_type): Likewise.
2963 * infcall.c (value_arg_coerce): Likewise.
2964 * m2-valprint.c (m2_val_print): Likewise.
2965 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2966 (pascal_type_print_varspec_suffix): Likewise.
2967 (pascal_type_print_base): Likewise.
2968 * p-valprint.c (pascal_val_print): Likewise.
2969 (pascal_val_print): Likewise.
2970 * valops.c (value_slice): Likewise.
2971 * valprint.c (scalar_type_p): Likewise.
2972 * valarith.c (value_bitstring_subscript): Remove.
2973 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2974 Remove comment on TYPE_CODE_BITSTRING.
2975
2976 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2977 TYPE_CODE_BITSTRING.
2978
2979 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2980 slot 0.
2981
2982 2012-08-16 Yao Qi <yao@codesourcery.com>
2983
2984 * tracepoint.c (trace_find_none_command): Remove.
2985 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2986
2987 2012-08-16 Yao Qi <yao@codesourcery.com>
2988
2989 * remote.c (handle_notification): Remove parameter 'length'.
2990 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2991
2992 2012-08-15 Keith Seitz <keiths@redhat.com>
2993
2994 * gdbtypes.c (opaque_type_resolution): Make static.
2995 Add missing comment.
2996 (overload_debug): Add missing comment.
2997 (show_opaque_type_resolution): Likewise.
2998 (show_overload_debug): Likewise.
2999 (print_bit_vector): Remove unnecessary forward declaration.
3000 (print_arg_types): Likewise.
3001 (dump_fn_fieldlists): Likewise.
3002 (print_cplus_stuff): Likewise.
3003
3004 2012-08-15 Tom Tromey <tromey@redhat.com>
3005
3006 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3007 (gdb_bfd_ref): Initialize new field.
3008 (gdb_bfd_unref): Unref the archive BFD.
3009 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3010 parent archive.
3011
3012 2012-08-15 Tom Tromey <tromey@redhat.com>
3013
3014 PR python/14387:
3015 * python/py-bpevent.c (create_breakpoint_event_object): Update
3016 comment.
3017 * python/py-event.c (evpy_add_attribute): Update comment.
3018 * python/py-exitedevent.c (create_exited_event_object): Fix
3019 reference counting and error handling.
3020 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3021 Fix reference counting.
3022 * python/py-signalevent.c (create_signal_event_object): Fix
3023 reference counting and error handling.
3024 * python/py-stopevent.c (emit_stop_event): Fix reference
3025 counting.
3026 * python/py-threadevent.c (get_event_thread): Return a
3027 borrowed reference.
3028 * python/py-type.c (convert_field): Fix reference counting.
3029
3030 2012-08-15 Tom Tromey <tromey@redhat.com>
3031
3032 * dwarf2read.c (dwarf_decode_macro_bytes)
3033 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3034 as hash key.
3035
3036 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3037
3038 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3039 stepi, nexti, finish, next, step, jump, and continue commands.
3040 * infrun.c (_initialize_infrun): Update help text for the handle
3041 command.
3042
3043 2012-08-14 Doug Evans <dje@google.com>
3044
3045 * gdbtypes.c (struct extra): Delete, unused.
3046
3047 * gdbtypes.c: Whitespace cleanup.
3048 (address_space_name_to_int): Remove "extern" from definition.
3049 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3050
3051 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3052 TYPE_POINTER_TYPE (type).
3053
3054 2012-08-14 Gary Benson <gbenson@redhat.com>
3055
3056 * solib-svr4.c (svr4_free_library_list): Use free_so.
3057
3058 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3059
3060 * .gitignore: Add go-exp.c.
3061
3062 2012-08-13 Doug Evans <dje@google.com>
3063
3064 * value.c (show_convenience): Tweak comment.
3065 (_initialize_values): Mention convenience functions in the help text
3066 for "show convenience".
3067
3068 2012-08-13 Yao Qi <yao@codesourcery.com>
3069
3070 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3071 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3072 TERNOP_SLICE_COUNT.
3073 * eval.c (evaluate_subexp_standard): Likewise.
3074 * expprint.c (print_subexp_standard): Likewise.
3075 (dump_subexp_body_standard): Likewise.
3076 * parse.c (operator_length_standard): Likewise.
3077
3078 2012-08-13 Yao Qi <yao@codesourcery.com>
3079
3080 * std-operator.def: Remove OP_BITSTRING.
3081 * breakpoint.c (watchpoint_exp_is_const): Update.
3082 * eval.c (evaluate_subexp_standard): Remove handling to
3083 OP_BITSTRING.
3084 * expprint.c (print_subexp_standard): Likewise.
3085 (dump_subexp_body_standard): Likewise.
3086 * parse.c (operator_length_standard): Likewise.
3087 * valops.c (value_bitstring): Remove.
3088 * value.h: Remove the declaration of 'value_bitstring'.
3089
3090 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3091
3092 * linespec.c (find_methods): Remove unused variables `i1' and
3093 `name_len'.
3094 (decode_line_full): Likewise for `arg_start'.
3095
3096 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3097
3098 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3099 (zlib_decompress_section): Likewise for `section_data'.
3100 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3101
3102 2012-08-10 Doug Evans <dje@google.com>
3103
3104 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3105 * NEWS: Document them.
3106 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3107 function/strfns.py.
3108 * python/py-type.c (typy_array_1): New function.
3109 (typy_array): Call it.
3110 (typy_vector): New function.
3111 (type_object_methods): Add "vector".
3112 * python/lib/gdb/function/__init__.py: New file.
3113 * python/lib/gdb/function/strfns.py: New file.
3114
3115 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3116
3117 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3118 for TYPE_FIELD_BITPOS.
3119 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3120
3121 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3122
3123 PR cli/10436:
3124 * common/vec.h (VEC_merge): Define.
3125 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3126 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3127 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3128 * completer.c: Include gdb_signals.h.
3129 (signal_completer): Define.
3130 * completer.h (signal_completer): Add prototype.
3131 * infcmd.c (_initialize_infcmd): Assign the command
3132 completer for "signal" to handle_completer.
3133 * infrun.c: Include completer.h.
3134 (handle_completer): Define.
3135 (_initialize_infrun): Declare a new local variable c. Store the
3136 result of add_com("handle") to it. Assign the command
3137 completer for "handle" to handle_completer.
3138
3139 2012-08-09 Yao Qi <yao@codesourcery.com>
3140
3141 * cli/cli-decode.c (set_cmd_prefix): New.
3142 (lookup_cmd_for_prefixlist): New.
3143 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3144 of each cmd_list_element in *prefixlist.
3145 (add_setshow_cmd_full): set_cmd_prefix.
3146 (add_alias_cmd): Likewise.
3147 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3148 Declare 'auto_boolean_enums'.
3149 * cli/cli-setshow.c: Include "observer.h".
3150 (notify_command_param_changed_p): New.
3151 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3152 Remove 'static'.
3153 (do_setshow_command): Split it to ...
3154 (do_set_command, do_show_command): ... them. New.
3155 (do_set_command): Call observer_notify_command_param_changed if
3156 notify_command_param_changed_p returns true.
3157 (cmd_show_list): Caller update.
3158 * auto-load.c (set_auto_load_cmd): Likewise.
3159 * remote.c (show_remote_cmd): Likewise.
3160 * cli/cli-setshow.h: Update declarations.
3161 * top.c (execute_command): Call do_set_command and do_show_command.
3162
3163 * NEWS: Mention new MI notification.
3164 * mi/mi-interp.c: Declare mi_command_param_changed.
3165 (mi_interpreter_init): Attach mi_command_param_changed to
3166 observer command_param_changed.
3167 (mi_command_param_changed): New.
3168 Remove mi_suppress_breakpoint_notifications.
3169 Define global variable mi_suppress_notification.
3170 (mi_breakpoint_created): Update.
3171 (mi_breakpoint_deleted): Likewise.
3172 (mi_breakpoint_modified): Likewise.
3173 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3174 'gdb-set' and set mi_suppress_notification.
3175 * mi/mi-main.h: (mi_suppress_notification): New struct.
3176
3177 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3178 Jan Kratochvil <jan.kratochvil@redhat.com>
3179
3180 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3181
3182 2012-08-09 Yao Qi <yao@codesourcery.com>
3183
3184 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3185 (skiplist): Move it to skip.c.
3186 (init_cmd_lists): Remove code setting enablebreaklist and
3187 skiplist to NULL.
3188 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3189 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3190 skiplist.
3191 * gdbcmd.h: Likewise.
3192 * skip.c (_initialize_step_skip): Move 'skiplist' from
3193 cli/cli-cmds.c.
3194
3195 2012-08-09 Yao Qi <yao@codesourcery.com>
3196
3197 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3198 * gnu-nat.c, symfile.c: Likewise.
3199
3200 2012-08-08 Aaron Gamble <agamble@google.com>
3201
3202 * utils.c (prompt_for_continue_wait_time): New static global.
3203 (make_command_stats_cleanup): Initialize it.
3204 (report_command_stats): Subtract time waiting for user.
3205 (prompt_for_continue): Track time waiting for user.
3206 (defaulted_query): Track time waiting for user.
3207
3208 2012-08-08 Doug Evans <dje@google.com>
3209
3210 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3211 UNOP_MEMVAL_TYPE.
3212 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3213 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3214 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3215 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3216 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3217 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3218 elt.
3219 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3220 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3221 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3222 (dump_prefix_expression): Handle OP_TYPE.
3223
3224 2012-08-08 Keith Seitz <keiths@redhat.com>
3225
3226 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3227 addr_start.
3228
3229 2012-08-08 Doug Evans <dje@google.com>
3230
3231 * linux-thread-db.c: #include "gdb_vecs.h".
3232 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3233 updated.
3234 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3235 (thread_db_load_search): Use a vector to iterate over path elements.
3236 Handle text appearing after "$pdir".
3237
3238 * gdb_string.h: Moved to ...
3239 * common/gdb_string.h: ... here.
3240 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3241 gdb_string.h and gdb_assert.h.
3242
3243 2012-08-08 Yao Qi <yao@codesourcery.com>
3244
3245 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3246 (tic6x_value_to_register): Likewise.
3247 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3248 and set_gdbarch_value_to_register.
3249
3250 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3251 Jean-Marc Saffroy <saffroy@gmail.com>
3252
3253 PR 11804
3254 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3255 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3256 * gcore.c (gcore_create_callback): New function comment. Add modified
3257 parameter. Only write modified regions. Set SEC_READONLY exactly
3258 according to MODIFIED.
3259 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3260 the passed modified value to FUNC.
3261 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3262 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3263 first. New variables modified and has_anonymous. Parse the lines of
3264 smaps file. Add the passed MODIFIED value to FUNC.
3265 * procfs.c (find_memory_regions_callback): Add the passed modified
3266 value.
3267
3268 2012-08-06 Tom Tromey <tromey@redhat.com>
3269
3270 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3271 (dwarf2_frame_cache): Use it.
3272 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3273 cache initialization constraint.
3274
3275 2012-08-06 Tom Tromey <tromey@redhat.com>
3276
3277 PR python/14386:
3278 * varobj.c (update_dynamic_varobj_children): Don't call
3279 PyIter_Check.
3280
3281 2012-08-06 Tom Tromey <tromey@redhat.com>
3282
3283 PR cli/14392:
3284 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3285
3286 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3287
3288 * NEWS: New entry for 'cd' default parameters.
3289 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3290
3291 2012-08-03 Tom Tromey <tromey@redhat.com>
3292
3293 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3294 return.
3295
3296 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3297
3298 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3299 to attempting lseek/write.
3300 (inf_child_fileio_pread): Likewise for pread.
3301
3302 2012-08-02 Yao Qi <yao@codesourcery.com>
3303
3304 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3305 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3306 add_setshow_zinteger_cmd.
3307 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3308 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3309 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3310 instead of add_setshow_zinteger_cmd.
3311 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3312 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3313 instead of add_setshow_zinteger_cmd.
3314 * frame.c (frame_debug): Add 'unsigned'.
3315 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3316 add_setshow_zinteger_cmd.
3317 * frame.h: Update the declaration of 'frame_debug'.
3318 * gdbtypes.c (overload_debug): Add 'unsigned'.
3319 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3320 add_setshow_zinteger_cmd.
3321 * inferior.h: Update declaration of 'debug_infrun'.
3322 * infrun.c (debug_infrun): Add 'unsigned'.
3323 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3324 add_setshow_zinteger_cmd.
3325 * jit.c (jit_debug): Add 'unsigned'.
3326 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3327 add_setshow_zinteger_cmd.
3328 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3329 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3330 instead of add_setshow_zinteger_cmd.
3331 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3332 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3333 add_setshow_zinteger_cmd.
3334 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3335 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3336 instead of add_setshow_zinteger_cmd.
3337 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3338 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3339 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3340 intead of add_setshow_zinteger_cmd.
3341 * mips-tdep.c (mips_debug): Add 'unsigned'.
3342 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3343 instead of add_setshow_zinteger_cmd.
3344 * monitor.c (monitor_debug): Add 'unsigned'.
3345 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3346 add_setshow_zinteger_cmd.
3347 * observer.c (observer_debug): Add 'unsigned'.
3348 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3349 add_setshow_zinteger_cmd.
3350 * parse.c (expressiondebug): Add 'unsigned'.
3351 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3352 add_setshow_zinteger_cmd.
3353 * record.c (record_debug): Add 'unsigned'.
3354 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3355 add_setshow_zinteger_cmd.
3356 * record.h: Update the declaration of 'record_debug'.
3357 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3358 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3359 add_setshow_zinteger_cmd.
3360 * serial.c (global_serial_debug_p): Add 'unsigned'.
3361 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3362 add_setshow_zinteger_cmd.
3363 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3364 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3365 add_setshow_zinteger_cmd.
3366 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3367 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3368 add_setshow_zinteger_cmd.
3369 * target.c (targetdebug): Add 'unsigned'.
3370 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3371 add_setshow_zinteger_cmd.
3372 * valops.c (overload_debug): Add 'unsigned'.
3373 * varobj.c (varobjdebug): Add 'unsigned'.
3374 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3375 add_setshow_zinteger_cmd.
3376 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3377 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3378 instead of add_setshow_zinteger_cmd.
3379
3380 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3381 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3382 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3383 instead of add_setshow_zinteger_cmd.
3384 * gdbarch.c, gdbarch.h: Re-generated.
3385
3386 2012-08-02 Yao Qi <yao@codesourcery.com>
3387
3388 * nto-tdep.c: Don't include cli/cli-decode.h and
3389 cli/cli-cmds.h.
3390 (_initialize_nto_tdep): Remove.
3391 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3392 Remove field.
3393 Remove macro nto_internal_debugging.
3394
3395 2012-08-01 Richard Henderson <rth@redhat.com>
3396
3397 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3398 (mep-*-*) [gdb_target_obs]: Likewise.
3399
3400 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3401
3402 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3403 linux_get_siginfo_type.
3404
3405 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3406
3407 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3408 AT_ENTRY_POINT.
3409 (call_function_by_hand) <ON_STACK>: Call write_memory with
3410 gdbarch_breakpoint_from_pc, if possible.
3411 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3412 here.
3413
3414 2012-07-31 Yao Qi <yao@codesourcery.com>
3415
3416 * tracepoint.c: Add 'static' for some variables.
3417
3418 2012-07-31 Yao Qi <yao@codesourcery.com>
3419
3420 * go32-nat.c: Declare _initialize_go32_nat.
3421 * ser-go32.c: Declare _initialize_ser_dos.
3422 * top.c (do_chdir_cleanup): Add 'static'.
3423
3424 2012-07-30 Keith Seitz <keiths@redhat.com>
3425
3426 * linespec.c (linespec_lex_number): A number followed
3427 by quotes is a valid number, too.
3428
3429 2012-07-30 Tom Tromey <tromey@redhat.com>
3430
3431 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3432
3433 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3434
3435 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3436 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3437
3438 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3439
3440 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3441 invalid or reevaluated to prevent prevent references to possibly
3442 delete'd type objects being left in the varobj.
3443
3444 2012-07-27 Tom Tromey <tromey@redhat.com>
3445 Jan Kratochvil <jan.kratochvil@redhat.com>
3446
3447 * copying.awk: Print buffer-read-only and vi ro markers.
3448 * copying.c: Rebuild.
3449 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3450 * gdbarch.c, gdbarch.h: Rebuild.
3451 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3452 buffer-read-only and vi ro markers.
3453 * features/arm-with-iwmmxt.c: Rebuild.
3454 * features/arm-with-m-fpa-layout.c: Rebuild.
3455 * features/arm-with-m-vfp-d16.c: Rebuild.
3456 * features/arm-with-m.c: Rebuild.
3457 * features/arm-with-neon.c: Rebuild.
3458 * features/arm-with-vfpv2.c: Rebuild.
3459 * features/arm-with-vfpv3.c: Rebuild.
3460 * features/i386/amd64-avx-linux.c: Rebuild.
3461 * features/i386/amd64-avx.c: Rebuild.
3462 * features/i386/amd64-linux.c: Rebuild.
3463 * features/i386/amd64.c: Rebuild.
3464 * features/i386/i386-avx-linux.c: Rebuild.
3465 * features/i386/i386-avx.c: Rebuild.
3466 * features/i386/i386-linux.c: Rebuild.
3467 * features/i386/i386-mmx-linux.c: Rebuild.
3468 * features/i386/i386-mmx.c: Rebuild.
3469 * features/i386/i386.c: Rebuild.
3470 * features/i386/x32-avx-linux.c: Rebuild.
3471 * features/i386/x32-avx.c: Rebuild.
3472 * features/i386/x32-linux.c: Rebuild.
3473 * features/i386/x32.c: Rebuild.
3474 * features/mips-dsp-linux.c: Rebuild.
3475 * features/mips-linux.c: Rebuild.
3476 * features/mips64-dsp-linux.c: Rebuild.
3477 * features/mips64-linux.c: Rebuild.
3478 * features/rs6000/powerpc-32.c: Rebuild.
3479 * features/rs6000/powerpc-32l.c: Rebuild.
3480 * features/rs6000/powerpc-403.c: Rebuild.
3481 * features/rs6000/powerpc-403gc.c: Rebuild.
3482 * features/rs6000/powerpc-405.c: Rebuild.
3483 * features/rs6000/powerpc-505.c: Rebuild.
3484 * features/rs6000/powerpc-601.c: Rebuild.
3485 * features/rs6000/powerpc-602.c: Rebuild.
3486 * features/rs6000/powerpc-603.c: Rebuild.
3487 * features/rs6000/powerpc-604.c: Rebuild.
3488 * features/rs6000/powerpc-64.c: Rebuild.
3489 * features/rs6000/powerpc-64l.c: Rebuild.
3490 * features/rs6000/powerpc-7400.c: Rebuild.
3491 * features/rs6000/powerpc-750.c: Rebuild.
3492 * features/rs6000/powerpc-860.c: Rebuild.
3493 * features/rs6000/powerpc-altivec32.c: Rebuild.
3494 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3495 * features/rs6000/powerpc-altivec64.c: Rebuild.
3496 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3497 * features/rs6000/powerpc-cell32l.c: Rebuild.
3498 * features/rs6000/powerpc-cell64l.c: Rebuild.
3499 * features/rs6000/powerpc-e500.c: Rebuild.
3500 * features/rs6000/powerpc-e500l.c: Rebuild.
3501 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3502 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3503 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3504 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3505 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3506 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3507 * features/rs6000/powerpc-vsx32.c: Rebuild.
3508 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3509 * features/rs6000/powerpc-vsx64.c: Rebuild.
3510 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3511 * features/rs6000/rs6000.c: Rebuild.
3512 * features/s390-linux32.c: Rebuild.
3513 * features/s390-linux32v1.c: Rebuild.
3514 * features/s390-linux32v2.c: Rebuild.
3515 * features/s390-linux64.c: Rebuild.
3516 * features/s390-linux64v1.c: Rebuild.
3517 * features/s390-linux64v2.c: Rebuild.
3518 * features/s390x-linux64.c: Rebuild.
3519 * features/s390x-linux64v1.c: Rebuild.
3520 * features/s390x-linux64v2.c: Rebuild.
3521 * features/tic6x-c62x-linux.c: Rebuild.
3522 * features/tic6x-c62x.c: Rebuild.
3523 * features/tic6x-c64x-linux.c: Rebuild.
3524 * features/tic6x-c64x.c: Rebuild.
3525 * features/tic6x-c64xp-linux.c: Rebuild.
3526 * features/tic6x-c64xp.c: Rebuild.
3527
3528 2012-07-27 Tom Tromey <tromey@redhat.com>
3529
3530 * c-exp.y (classify_name): Avoid assignment in condition.
3531
3532 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3533
3534 * amd64-windows-tdep.c: Include "frame.h".
3535 (amd64_windows_skip_trampoline_code): New function.
3536 (amd64_windows_init_abi): Add trampoline registration.
3537
3538 2012-07-27 Yao Qi <yao@codesourcery.com>
3539
3540 * tracepoint.c (cur_traceframe_number): Remove.
3541 (set_tfile_traceframe): Remove.
3542 (tfile_trace_find, tfile_fetch_registers): Update callers.
3543 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3544 (tfile_open, tfile_trace_find): Likewise.
3545
3546 2012-07-27 Yao Qi <yao@codesourcery.com>
3547
3548 * thread.c (switch_to_thread): Don't call registers_changed.
3549
3550 2012-07-26 Tom Tromey <tromey@redhat.com>
3551
3552 * Makefile.in (SFILES): Remove objc-exp.y.
3553 (YYFILES): Remove objc-exp.c.
3554 (YYOBJ): Remove objc-exp.o.
3555 (local-maintainer-clean): Don't mention objc-exp.c.
3556 * c-exp.y: Include objc-lang.h.
3557 (%union) <class>: New field.
3558 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3559 (exp): Clone subscript production for OBJC_LBRAC. Add various
3560 Objective C productions.
3561 (msglist, msgarglist, msgarg): New productions.
3562 (array_mod, func_mod, operator): Clone productions for
3563 OBJC_LBRAC.
3564 (parse_string_or_char): Handle '@' strings.
3565 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3566 (classify_name): Check la_name_of_this. Recognize ObjC class
3567 names.
3568 * objc-exp.y: Remove.
3569 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3570 * objc-lang.h (objc_parse, objc_error): Don't declare.
3571
3572 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3573
3574 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3575
3576 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3577
3578 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3579 and decrement.
3580
3581 2012-07-26 Tom Tromey <tromey@redhat.com>
3582
3583 * copying.c: Rebuild.
3584 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3585 'no_class'.
3586
3587 2012-07-26 Tom Tromey <tromey@redhat.com>
3588
3589 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3590 immediate_quit.
3591 (print_objfile_statistics): Likewise.
3592 (maintenance_print_symbols): Likewise.
3593 (maintenance_print_msymbols): Likewise.
3594 (maintenance_print_objfiles): Likewise.
3595 * psymtab.c (print_partial_symbols): Call QUIT.
3596 (maintenance_print_psymbols): Likewise. Don't modify
3597 immediate_quit.
3598 * copying.c (show_copying_command): Don't modify immediate_quit.
3599 (show_warranty_command): Likewise.
3600 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3601
3602 2012-07-26 Keith Seitz <keiths@redhat.com>
3603
3604 * linespec.c (linespec_lexer_lex_number): The input
3605 is also a valid number if the next character is a comma
3606 or colon.
3607
3608 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3609
3610 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3611 configure options.
3612
3613 2012-07-26 Tristan Gingold <gingold@adacore.com>
3614
3615 * machoread.c: Include gdb_bfd.h.
3616
3617 2012-07-26 Tristan Gingold <gingold@adacore.com>
3618
3619 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3620 offset.
3621
3622 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3623
3624 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3625 SIZE to size_t.
3626 (dwarf2_evaluate_loc_desc): Likewise.
3627 (dwarf2_loc_desc_needs_frame): Likewise.
3628 (locexpr_describe_location_1): Likewise.
3629 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3630 size_t.
3631 (struct dwarf2_loclist_baton): Likewise.
3632 * dwarf2read.c (struct dwarf_block): Likewise.
3633 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3634 (decode_locdesc): Expand SIZE and I to size_t.
3635
3636 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3637
3638 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3639
3640 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3641
3642 * doublest.c (convert_doublest_to_floatformat): If the exponent
3643 is too small, treat the value as zero. If the exponent is too
3644 large, treat the value as infinity.
3645
3646 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3647
3648 * configure.ac: Add --enable-lmcheck configure option.
3649 * configure: Regenerate.
3650
3651 2012-07-25 Tom Tromey <tromey@redhat.com>
3652
3653 * NEWS: Mention maint info bfds.
3654 * gdb_bfd.c (all_bfds): New global.
3655 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3656 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3657 New functions.
3658
3659 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3660
3661 * configure.tgt: Add v850*-*-rtems*.
3662
3663 2012-07-25 Tom Tromey <tromey@redhat.com>
3664
3665 * macrotab.c (macro_bcache_str): Remove cast.
3666
3667 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3668
3669 * linespec.c (linespec_lexer_lex_number): Update comments,
3670 change the return and add check to make sure the input is
3671 the decimal numbers.
3672 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3673 false, call linespec_lexer_lex_string.
3674
3675 2012-07-24 Tom Tromey <tromey@redhat.com>
3676
3677 * symfile.c (symbol_file_add): Don't open BFD twice.
3678
3679 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3680
3681 * breakpoint.c (create_breakpoint): Store condition for pending
3682 breakpoints.
3683
3684 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3685
3686 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3687 (m68k_return_value): Handle complex types like structures.
3688 (m68k_svr4_return_value): Likewise.
3689
3690 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3691
3692 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3693 parameters to bfd_get_section_name.
3694
3695 2012-07-24 Yao Qi <yao@codesourcery.com>
3696
3697 * cli/cli-setshow.c: Handle case 'var_uinteger'
3698 and 'var_zuninteger' together. Handle case 'var_integer' and
3699 'var_zinteger' together.
3700
3701 2012-07-23 Keith Seitz <keiths@redhat.com>
3702
3703 * linespec.c (convert_linespec_to_sal): Don't add
3704 any symbols to the result vector if symbol_to_sal
3705 returns zero.
3706
3707 2012-07-23 Keith Seitz <keiths@redhat.com>
3708
3709 * linespec.c (decode_objc): Record the function name
3710 in the linespec.
3711
3712 2012-07-23 Tom Tromey <tromey@redhat.com>
3713
3714 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3715 counting.
3716 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3717 (map_vmap): Acquire a reference to the BFD.
3718
3719 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3720
3721 * p-valprint.c (pascal_object_print_value): Replace potentially
3722 unsafe alloca with xmalloc/xfree.
3723 * valops.c (search_struct_method): Likewise.
3724
3725 2012-07-23 Tom Tromey <tromey@redhat.com>
3726
3727 * solib-svr4.c (enable_break): Update.
3728 * bfd-target.h (target_bfd_reopen): Update documentation.
3729
3730 2012-07-23 Tom Tromey <tromey@redhat.com>
3731
3732 * symfile.c (separate_debug_file_exists): Update.
3733 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3734 (reread_symbols): Update.
3735 * elfread.c (build_id_verify): Update.
3736 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3737 bfd_open_maybe_remote.
3738
3739 2012-07-23 Tom Tromey <tromey@redhat.com>
3740
3741 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3742
3743 2012-07-23 Tom Tromey <tromey@redhat.com>
3744
3745 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3746 and 'abfd'.
3747 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3748 and 'abfd'.
3749 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3750 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3751 'abfd'.
3752 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3753 * objfiles.c (allocate_objfile): Acquire a new reference.
3754 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3755 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3756 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3757 a cleanup for 'nbfd'.
3758 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3759 for 'nbfd'.
3760 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3761 make a cleanup for 'abfd'.
3762 (symbol_file_add): Make a BFD cleanup.
3763
3764 2012-07-23 Tom Tromey <tromey@redhat.com>
3765
3766 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3767 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3768 * corelow.c (core_open): Use gdb_bfd_fopen.
3769 * dsrec.c (load_srec): Use gdb_bfd_openr.
3770 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3771 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3772 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3773 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3774 (gdb_bfd_fdopenr): New functions.
3775 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3776 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3777 (gdb_bfd_fdopenr): Declare.
3778 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3779 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3780 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3781 gdb_bfd_openr_next_archived_file.
3782 (macho_check_dsym): Use gdb_bfd_openr.
3783 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3784 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3785 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3786 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3787 gdb_bfd_openr.
3788 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3789 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3790 gdb_bfd_openr_next_archived_file.
3791 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3792 Use gdb_bfd_openr.
3793 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3794 gdb_bfd_openr.
3795 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3796 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3797 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3798 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3799 (symfile_bfd_open): Use gdb_bfd_fopen.
3800 (generic_load): Use gdb_bfd_openr.
3801 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3802
3803 2012-07-23 Tom Tromey <tromey@redhat.com>
3804
3805 * bfd-target.c (target_bfd_reopen): Update.
3806 * cli/cli-dump.c (bfd_openr_with_cleanup)
3807 (bfd_openw_with_cleanup): Update.
3808 * corelow.c (core_open): Update.
3809 * dsrec.c (load_srec): Update.
3810 * exec.c (exec_file_attach): Update.
3811 * gcore.c (create_gcore_bfd): Update.
3812 * gdb_bfd.c (gdb_bfd_ref): Return void.
3813 (gdb_bfd_open): Update.
3814 * gdb_bfd.h (gdb_bfd_ref): Return void.
3815 Update comments.
3816 * jit.c (jit_bfd_try_read_symtab): Update.
3817 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3818 * machoread.c (macho_symfile_read_all_oso): Update.
3819 (macho_check_dsym): Update.
3820 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3821 * remote-m32r-sdi.c (m32r_load): Update.
3822 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3823 * rs6000-nat.c (add_vmap): Update.
3824 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3825 Update.
3826 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3827 * solib-spu.c (spu_bfd_open): Update.
3828 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3829 * spu-linux-nat.c (spu_bfd_open): Update.
3830 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3831 (generic_load): Update.
3832 * windows-nat.c (windows_make_so): Update.
3833
3834 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3835
3836 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3837
3838 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3839
3840 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3841 SIGTRAMP_FRAME unwinding.
3842
3843 2012-07-20 Doug Evans <dje@google.com>
3844
3845 * NEWS: Document new options "set/show use-deprecated-index-sections",
3846 and delete reference to --use-deprecated-index-sections.
3847 * symfile.h (use_deprecated_index_sections): Delete.
3848 * dwarf2read.c (use_deprecated_index_sections): Make static.
3849 (read_index_from_section): Update wording of how to load
3850 deprecated index sections.
3851 (_initialize_dwarf2_read): New options
3852 "set/show use-deprecated-index-sections".
3853 * main.c (captured_main): Delete --use-deprecated-index-sections.
3854
3855 2012-07-20 Pedro Alves <palves@redhat.com>
3856
3857 PR threads/11692
3858 PR gdb/12203
3859
3860 * infrun.c (handle_inferior_event) <new thread>: Don't special
3861 case minus_one_ptid.
3862 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3863 * linux-thread-db.c (thread_get_info_callback): Don't return early
3864 if the thread is zombie.
3865 (thread_from_lwp): Change return type to void. Rewrite stale
3866 comment.
3867 (attach_thread): Don't return early if the thread is zombie,
3868 instead set its "dying" flag.
3869 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3870 (find_new_threads_callback): Don't return early if the thread is
3871 zombie.
3872
3873 2012-07-20 Pedro Alves <palves@redhat.com>
3874
3875 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3876 * target.c (target_wait): Likewise.
3877 (str_comma_list_concat_elem, do_option, target_options_to_string):
3878 New functions.
3879 * target.h (target_options_to_string): Declare.
3880
3881 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3882 Tom Tromey <tromey@redhat.com>
3883
3884 * dwarf2read.c (dwarf_decode_macros)
3885 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3886 DW_MACRO_GNU_transparent_include_alt>: New cases.
3887 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3888 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3889
3890 2012-07-20 Tom Tromey <tromey@redhat.com>
3891
3892 * dwarf2read.c (try_open_dwo_file): Don't call
3893 gdb_bfd_stash_filename.
3894
3895 2012-07-20 Pedro Alves <palves@redhat.com>
3896
3897 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3898 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3899 (i386_process_record): Tweak description comments.
3900
3901 2012-07-20 Pedro Alves <palves@redhat.com>
3902
3903 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3904 (i386_process_record): Use record_read_memory.
3905 * record.c (record_read_memory): New function.
3906 (record_arch_list_add_mem, record_exec_insn): Use
3907 record_read_memory.
3908 * record.h (record_read_memory): Declare.
3909
3910 2012-07-20 Yao Qi <yao@codesourcery.com>
3911
3912 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3913 NULL for xfree.
3914
3915 2012-07-19 Pedro Alves <palves@redhat.com>
3916
3917 * record.c (record_resume): Ask the target beneath to report all
3918 signals.
3919
3920 2012-07-19 Doug Evans <dje@google.com>
3921
3922 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3923 there's no section at address zero.
3924 (dwarf2_record_block_ranges): Ditto.
3925
3926 2012-07-19 Yao Qi <yao@codesourcery.com>
3927
3928 * command.h, remote.c: Fix a typo in comment.
3929
3930 2012-07-19 Tom Tromey <tromey@redhat.com>
3931
3932 PR exp/13206:
3933 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3934 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3935 OP_DECLTYPE>: New cases.
3936 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3937 (type_exp): Add new productions.
3938 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3939 and decltype.
3940 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3941 New case.
3942 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3943 OP_DECLTYPE>: New case.
3944 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3945 New case.
3946 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3947 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3948
3949 2012-07-19 Tom Tromey <tromey@redhat.com>
3950
3951 * c-exp.y (enum token_flags): New.
3952 (struct token) <cxx_only>: Remove.
3953 <flags>: New field.
3954 (tokentab3, tokentab2, ident_tokens): Update.
3955 (lex_one_token): Update. Handle FLAG_SHADOW.
3956
3957 2012-07-19 Tom Tromey <tromey@redhat.com>
3958
3959 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3960 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3961 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3962 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3963 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3964 type_exp production where appropriate.
3965 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3966 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3967 <UNOP_MEMVAL_TYPE>: New case.
3968 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3969 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3970 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3971 <UNOP_MEMVAL_TYPE>: New case.
3972 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3973 UNOP_REINTERPRET_CAST>: Update.
3974 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3975 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3976 UNOP_REINTERPRET_CAST>: Update.
3977 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3978 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3979 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3980 constants.
3981
3982 2012-07-19 Yao Qi <yao@codesourcery.com>
3983 Jan Kratochvil <jan.kratochvil@redhat.com>
3984
3985 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3986 and case 'var_optional_filename' together.
3987 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3988 instead of add_setshow_optional_filename_cmd for setshow command
3989 'args'. Set completer for 'set args'.
3990
3991 2012-07-18 Doug Evans <dje@google.com>
3992
3993 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3994 * common/gdb_vecs.c: New file, contents from utils.c.
3995 * common/host-defs.h: New file, contents from defs.h.
3996 * utils.h: New file, contents from defs.h.
3997 * defs.h: Move all declarations of objects defined in utils.c
3998 to utils.h (except QUIT() and related).
3999 #include "utils.h", "host-defs.h".
4000 * probe.h (probe_p): Move here from gdb_vecs.h.
4001 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4002 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4003 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4004 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4005 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4006 (COMMON_OBS): Add gdb_vecs.o.
4007 (gdb_vecs.o): New rule.
4008
4009 2012-07-18 Keith Seitz <keiths@redhat.com>
4010
4011 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4012 parameter. If non-zero, use SYMNAME as the canonical name
4013 for the SaL.
4014 Update all callers.
4015 (convert_linespec_to_sals): Use add_sal_to_sals for
4016 expressions, too.
4017 (decode_line_full): No need to "fill in missing canonical names"
4018 anymore. Simply make cleanups for the allocated names.
4019
4020 2012-07-18 Keith Seitz <keiths@redhat.com>
4021
4022 * linespec.c (struct linespec): Constify expression,
4023 source_filename, function_name, and label_name.
4024 (symbol_not_found_error): Make all parameters const.
4025 (linespec_parser_delete): No need to check for NULL
4026 when using xfree. Cast const char * to char * for xfree.
4027
4028 2012-07-18 Keith Seitz <keiths@redhat.com>
4029
4030 * breakpoint.c (invalid_thread_id_error): New function.
4031 (find_condition_and_thread): Use invalid_thread_id_error.
4032 (watch_command_1): Likewise.
4033
4034 2012-07-18 Tom Tromey <tromey@redhat.com>
4035
4036 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4037 * contrib/cc-with-tweaks.sh: New file.
4038
4039 2012-07-18 Tom Tromey <tromey@redhat.com>
4040
4041 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4042 (locate_dwz_sections): Recognize .gdb_index.
4043 (create_cus_from_index_list): New function.
4044 (create_cus_from_index): Use it. Handle .dwz data.
4045 (read_index_from_section): New function, extracted from
4046 dwarf2_read_index.
4047 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4048 if needed.
4049
4050 2012-07-18 Tom Tromey <tromey@redhat.com>
4051
4052 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4053 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4054 <is_dwz>: New field.
4055 (struct dwz_file): New.
4056 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4057 (locate_dwz_sections, dwarf2_get_dwz_file)
4058 (get_abbrev_section_for_cu): New functions.
4059 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4060 (read_and_check_type_unit_head): Add abbrev_section argument.
4061 (create_debug_types_hash_table): Update.
4062 (init_cutu_and_read_dies): Use proper abbrev section.
4063 (init_cutu_and_read_dies_no_follow): Likewise.
4064 (set_partial_user): Do nothing if PST==NULL.
4065 (read_comp_units_from_section): New function.
4066 (create_all_comp_units): Use it.
4067 (scan_partial_symbols, partial_die_parent_scope): Update.
4068 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4069 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4070 (find_partial_die): Add offset_in_dwz argument. Update.
4071 (guess_partial_die_structure_name, fixup_partial_die): Update.
4072 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4073 DW_FORM_GNU_strp_alt.
4074 (read_indirect_string_from_dwz): New function.
4075 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4076 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4077 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4078 (follow_die_offset): Add offset_in_dwz argument.
4079 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4080 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4081 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4082 Handle new macro forms.
4083 (dwarf_decode_macros): Update.
4084 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4085 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4086 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4087 (create_debug_types_hash_table): Use correct abbrev section.
4088 (get_debug_line_section): New function.
4089 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4090 (process_full_comp_unit): Pass 'required' argument to
4091 end_symtab_get_static_block.
4092 * buildsym.h (end_symtab_get_static_block): Update.
4093 * buildsym.c (end_symtab_get_static_block): Add 'required'
4094 argument.
4095 (end_symtab, end_expandable_symtab): Update.
4096
4097 2012-07-18 Tom Tromey <tromey@redhat.com>
4098
4099 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4100 (pagesize): Remove.
4101 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4102 (zlib_decompress_section): Remove.
4103 (dwarf2_read_section): Use gdb_bfd_map_section.
4104 (munmap_section_buffer): Remove.
4105 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4106 munmap_section_buffer.
4107 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4108 (struct gdb_bfd_section_data): New.
4109 (free_one_bfd_section): New function.
4110 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4111 (get_section_descriptor, zlib_decompress_section)
4112 (gdb_bfd_map_section): New functions.
4113 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4114
4115 2012-07-18 Tom Tromey <tromey@redhat.com>
4116
4117 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4118
4119 2012-07-18 Tom Tromey <tromey@redhat.com>
4120
4121 * gdb_bfd.c (struct gdb_bfd_data): New.
4122 (gdb_bfd_cache): New global.
4123 (struct gdb_bfd_cache_search): New.
4124 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4125 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4126 * gdb_bfd.h (gdb_bfd_open): Declare.
4127
4128 2012-07-18 Tom Tromey <tromey@redhat.com>
4129
4130 * utils.c (make_cleanup_bfd_unref): Rename from
4131 make_cleanup_bfd_close.
4132 * defs.h (make_cleanup_bfd_unref): Rename from
4133 make_cleanup_bfd_close.
4134 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4135 (bfd_openw_with_cleanup): Update.
4136 * corelow.c (core_open): Update.
4137 * dsrec.c (load_srec): Update.
4138 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4139 * remote-m32r-sdi.c (m32r_load): Update.
4140 * remote-mips.c (mips_load_srec): Update.
4141 (pmon_load_fast): Update.
4142 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4143 Update.
4144 (darwin_bfd_open): Update.
4145 * solib.c (solib_bfd_fopen): Update.
4146 * symfile-mem.c (symbol_file_add_from_memory): Update.
4147 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4148 (symfile_bfd_open): Update.
4149 (generic_load): Update.
4150
4151 2012-07-18 Tom Tromey <tromey@redhat.com>
4152
4153 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4154 (pmon_load_fast): Likewise.
4155 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4156 (m32r_upload_command): Likewise.
4157 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4158 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4159 Use make_cleanup_bfd_close.
4160
4161 2012-07-18 Tom Tromey <tromey@redhat.com>
4162
4163 * symfile.c (symfile_bfd_open): Don't copy name. Call
4164 gdb_bfd_stash_filename.
4165 (load_command): Open the new BFD before freeing the old.
4166 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4167 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4168 Call gdb_bfd_stash_filename.
4169 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4170 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4171 gdb_bfd_stash_filename.
4172 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4173 Free found_pathname.
4174 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4175 gdb_bfd_stash_filename.
4176 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4177 * machoread.c (macho_add_oso_symfile): Call
4178 gdb_bfd_stash_filename.
4179 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4180 gdb_bfd_stash_filename.
4181 (macho_check_dsym): Don't copy filename. Call
4182 gdb_bfd_stash_filename.
4183 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4184 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4185 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4186 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4187 * exec.c (exec_close): Don't free the BFD's filename.
4188 (exec_file_attach): Don't copy the filename. Call
4189 gdb_bfd_stash_filename.
4190 * corelow.c (core_close): Don't free the BFD's filename.
4191 (core_open): Call gdb_bfd_stash_filename.
4192 * corefile.c (reopen_exec_file): Remove #if 0 code.
4193 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4194 pathname.
4195 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4196
4197 2012-07-18 Tom Tromey <tromey@redhat.com>
4198
4199 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4200 gdb_bfd_unref.
4201 (free_dwo_file): Use gdb_bfd_unref.
4202 * cli/cli-dump.c: Include gdb_bfd.h.
4203 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4204 (bfd_openr_with_cleanup): Likewise.
4205 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4206 gdb_bfd_unref.
4207 * utils.c: Include gdb_bfd.h.
4208 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4209 * symfile.c: Include gdb_bfd.h.
4210 (separate_debug_file_exists): Use gdb_bfd_unref.
4211 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4212 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4213 (generic_load): Use gdb_bfd_ref.
4214 (reread_symbols): Use gdb_bfd_unref.
4215 * symfile-mem.c: Include gdb_bfd.h.
4216 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4217 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4218 * solib.c: Include gdb_bfd.h.
4219 (solib_bfd_fopen): Use gdb_bfd_ref.
4220 (solib_bfd_open): Use gdb_bfd_unref.
4221 (free_so_symbols): Use gdb_bfd_unref.
4222 (reload_shared_libraries_1): Use gdb_bfd_unref.
4223 * solib-spu.c: Include gdb_bfd.h.
4224 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4225 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4226 gdb_bfd_unref.
4227 * solib-frv.c: Include gdb_bfd.h.
4228 (enable_break2): Use gdb_bfd_unref.
4229 * solib-dsbt.c: Include gdb_bfd.h.
4230 (enable_break2): Use gdb_bfd_unref.
4231 * solib-darwin.c: Include gdb_bfd.h.
4232 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4233 gdb_bfd_unref.
4234 (darwin_bfd_open): Use gdb_bfd_unref.
4235 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4236 * remote-mips.c: Include gdb_bfd.h.
4237 (mips_load_srec): Use gdb_bfd_ref.
4238 (pmon_load_fast): Use gdb_bfd_ref.
4239 * remote-m32r-sdi.c: Include gdb_bfd.h.
4240 (m32r_load): Use gdb_bfd_ref.
4241 * record.c: Include gdb_bfd.h.
4242 (record_save_cleanups): Use gdb_bfd_unref.
4243 (cmd_record_save): Use gdb_bfd_unref.
4244 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4245 gdb_bfd_unref.
4246 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4247 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4248 * objfiles.c: Include gdb_bfd.h.
4249 (free_objfile): Use gdb_bfd_unref.
4250 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4251 gdb_bfd.c.
4252 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4253 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4254 (macho_check_dsym): Likewise.
4255 * m32r-rom.c: Include gdb_bfd.h.
4256 (m32r_load): Use gdb_bfd_ref.
4257 (m32r_upload_command): Use gdb_bfd_ref.
4258 * jit.c: Include gdb_bfd.h.
4259 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4260 * gdb_bfd.h: New file.
4261 * gdb_bfd.c: New file.
4262 * gcore.c: Include gdb_bfd.h.
4263 (create_gcore_bfd): Use gdb_bfd_ref.
4264 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4265 (gcore_command): Use gdb_bfd_unref.
4266 * exec.c: Include gdb_bfd.h.
4267 (exec_close): Use gdb_bfd_unref.
4268 (exec_close_1): Use gdb_bfd_unref.
4269 (exec_file_attach): Use gdb_bfd_ref.
4270 * elfread.c: Include gdb_bfd.h.
4271 (build_id_verify): Use gdb_bfd_unref.
4272 * dsrec.c: Include gdb_bfd.h.
4273 (load_srec): Use gdb_bfd_ref.
4274 * corelow.c: Include gdb_bfd.h.
4275 (core_close): Use gdb_bfd_unref.
4276 (core_open): Use gdb_bfd_ref.
4277 * bfd-target.c: Include gdb_bfd.h.
4278 (target_bfd_xclose): Use gdb_bfd_unref.
4279 (target_bfd_reopen): Use gdb_bfd_ref.
4280 * Makefile.in (SFILES): Add gdb_bfd.c.
4281 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4282 (COMMON_OBS): Add gdb_bfd.o.
4283
4284 2012-07-18 Keith Seitz <keiths@redhat.com>
4285
4286 * breakpoint.c (find_condition_and_thread): Initialize
4287 TASK and REST.
4288 (create_breakpiont): find_condition_and_thread will now
4289 initialize COND_STRING, THREAD, and REST (and TASK).
4290 (addr_string_to_sals): Likewise.
4291
4292 2012-07-18 Pedro Alves <palves@redhat.com>
4293
4294 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4295 Pull the single step breakpoints out of the target.
4296
4297 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4298
4299 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4300 * stap-probe.c (compile_probe_arg): Likewise.
4301
4302 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4303
4304 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4305 (elf_compile_to_ax): Likewise.
4306 * infrun.c (insert_exception_resume_from_probe): Likewise.
4307 (check_exception_resume): Remove `objfile' variable.
4308 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4309 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4310 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4311 (compare_entries): Rename to...
4312 (compare_probes): ...this. Adjust function to work with
4313 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4314 respectively.
4315 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4316 `VEC (probe_p) *'.
4317 (print_ui_out_info): Adjust argument to be `struct probe *'.
4318 (info_probes_for_ops): Adjust internal computations to use
4319 `VEC (probe_p) *'.
4320 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4321 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4322 gen_info_probes_table_values>: Remove `objfile' argument.
4323 (struct probe) <objfile>: New field.
4324 (find_probe_by_pc): Remove `objfile' argument.
4325 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4326 (stap_get_probe_argument_count): Likewise.
4327 (stap_get_arg): Likewise.
4328 (stap_evaluate_probe_argument): Likewise.
4329 (stap_compile_to_ax): Likewise.
4330 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4331 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4332 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4333 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4334 sym_compile_to_ax>: Likewise.
4335
4336 2012-07-18 Terry Guo <terry.guo@arm.com>
4337
4338 PR 14329
4339 * defs.h (GDB_MI_MSG_WIDTH): New.
4340 * ser_base (ser_base_read_error_fd): New function.
4341 (do_ser_base_readchar): Poll error file descriptor as well as
4342 standard output.
4343 (generic_readchar): Refactor error handling.
4344
4345 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4346
4347 * NEWS: Create a new section for the next release branch.
4348 Rename the section of the current branch, now that it has
4349 been cut.
4350
4351 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4352
4353 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4354 * version.in: Bump version to 7.5.50.20120718-cvs.
4355
4356 2012-07-17 Keith Seitz <keiths@redhat.com>
4357
4358 * linespec.c (linespec_parse_line_offset): Make parameter
4359 const.
4360
4361 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4362
4363 PR 11914
4364 * f-valprint.c (info_common_command): New variable frame_id.
4365 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4366 * printcmd.c (print_variable_and_value): Extend function comment.
4367 Add comment for invalidated FRAME.
4368 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4369 FI form FRAME_ID after each print_frame_local_vars.
4370 (struct print_variable_and_value_data): Change frame to frame_id.
4371 (do_print_variable_and_value): New variable frame, initialize it from
4372 p->frame_id. Add comment for invalidated FRAME.
4373 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4374 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4375 for invalidated FRAME.
4376
4377 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4378 Pedro Alves <palves@redhat.com>
4379
4380 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4381 loop.
4382
4383 2012-07-16 Tom Tromey <tromey@redhat.com>
4384
4385 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4386
4387 2012-07-15 Doug Evans <dje@google.com>
4388
4389 * dwarf2read.c (stmt_list_hash): New struct.
4390 (type_unit_group): Embed "per_cu" member, remove pointer.
4391 New union member "t", move member "tus" into it, all uses updated.
4392 New member "hash", replaces member "line_offset, all uses updated.
4393 (quick_file_names): Replace member "offset" with "hash", all uses
4394 updated.
4395 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4396 (hash_file_name_entry, eq_file_name_entry): Call them.
4397 (hash_type_unit_group, eq_type_unit_group): Ditto.
4398 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4399 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4400 (dw2_get_file_names): Update.
4401 (create_type_unit_group): Replace "per_cu" arg with "cu".
4402 All callers updated. Fix "quick" (.gdb_index) handling.
4403 (get_type_unit_group): Replace "per_cu" arg with "cu".
4404 All callers updated.
4405 (build_type_unit_groups): Don't reset tu_stats.
4406
4407 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4408 "tab_cur_size". Change member "tab" to be a htab_t.
4409 (create_filename_seen_cache): Update.
4410 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4411 (filename_seen): Update.
4412
4413 2012-07-13 Doug Evans <dje@google.com>
4414
4415 * symtab.c (filename_seen): Update comment.
4416
4417 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4418 Doug Evans <dje@google.com>
4419
4420 * buildsym.c (end_symtab_1): Split it to ...
4421 (end_symtab_get_static_block): ... this ...
4422 (end_symtab_from_static_block): ... and this function.
4423 (end_symtab, end_expandable_symtab): Call them.
4424 * buildsym.h (end_symtab_get_static_block)
4425 (end_symtab_from_static_block): New declarations.
4426 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4427 Set its valid CU ranges.
4428
4429 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4430
4431 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4432 DW_OP_GNU_parameter_ref.
4433
4434 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4435
4436 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4437 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4438
4439 2012-07-13 Doug Evans <dje@google.com>
4440
4441 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4442 (filename_seen_cache): New struct.
4443 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4444 (create_filename_seen_cache): New function.
4445 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4446 (filename_seen): Delete arg "first". New arg "cache". All callers
4447 updated.
4448 (output_source_filename_data): New struct.
4449 (output_source_filename): Delete arg "first". New arg "data".
4450 All callers updated.
4451 (sources_info): Delete local "first". New locals "data", "cleanups".
4452 Rewrite to use filename_seen_cache.
4453 (add_partial_filename_data): Delete member "first". New member
4454 "filename_seen_cache". All uses updated.
4455 (make_source_files_completion_list): Rewrite to use
4456 filename_seen_cache.
4457
4458 2012-07-12 Doug Evans <dje@google.com>
4459
4460 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4461
4462 2012-07-10 Doug Evans <dje@google.com>
4463
4464 PR gdb/13498
4465 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4466 all_type_unit_groups, type_unit_groups, tu_stats.
4467 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4468 All uses updated. Add type_unit_group to union "s".
4469 (type_unit_group): New struct.
4470 (IS_TYPE_UNIT_GROUP): New macro.
4471 (abbrev_table): Delete unused member "section".
4472 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4473 (dw2_get_cu): Assert not used with type_unit_group.
4474 (dw2_get_primary_cu): New function.
4475 (dw2_build_type_unit_groups_reader): New function.
4476 (dw2_build_type_unit_groups): New function.
4477 (dw2_get_file_names): Assert not called on type units.
4478 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4479 Redo loop to iterate over type unit groups instead of type units.
4480 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4481 (read_abbrev_offset): New function.
4482 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4483 updated.
4484 (create_partial_symtab): New function.
4485 (process_psymtab_comp_unit_reader): Assert not used with type units.
4486 Call create_partial_symtab.
4487 (process_psymtab_type_unit): Delete.
4488 (hash_type_unit_group, eq_type_unit_group): New functions.
4489 (allocate_type_unit_groups_table): New function.
4490 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4491 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4492 (create_type_unit_group, get_type_unit_group): New functions.
4493 (tu_abbrev_offset): New struct.
4494 (sort_tu_by_abbrev_offset): New function.
4495 (add_type_unit_group_to_table): New function.
4496 (build_type_unit_groups): New function.
4497 (build_type_psymtabs_reader): New function.
4498 (build_type_psymtab_dependencies): New function.
4499 (build_type_psymtabs): Rewrite.
4500 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4501 is seen in a type unit.
4502 (process_queue): Move symtab expansion debugging printfs here.
4503 Call process_full_type_unit for type units.
4504 (compute_symtab_includes): Assert not called for type units.
4505 (process_cu_includes): Don't call compute_symtab_includes for
4506 type units.
4507 (process_full_type_unit): New function.
4508 (process_imported_unit_die): Flag an error if called for type units.
4509 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4510 updated. Assert not called for type units.
4511 (read_file_scope): Call dwarf2_start_symtab.
4512 (setup_type_unit_groups): New function.
4513 (read_type_unit_scope): Rewrite.
4514 (abbrev_table_read_table): Initialize abbrev_table->offset.
4515 (abbrev_table_free_cleanup): New function.
4516 (dwarf2_start_symtab): New function.
4517 (load_full_type_unit): Assert not called for type unit groups.
4518 * buildsym.c (finish_block_internal): New arg "expandable".
4519 All callers updated.
4520 (start_symtab): Move most contents to ...
4521 (restart_symtab): ... here. New function.
4522 (reset_symtab_globals): New function.
4523 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4524 Call reset_symtab_globals.
4525 (end_symtab, end_expandable_symtab): New functions.
4526 (set_missing_symtab, augment_type_symtab): New functions.
4527 * buildsym.h (end_expandable_symtab): Declare.
4528 (augment_type_symtab, restart_symtab): Declare.
4529 * psympriv.h (struct partial_symtab): New member "anonymous".
4530 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4531 anonymous psymtabs.
4532 (read_psymtabs_with_filename): Ditto.
4533 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4534 (expand_symtabs_matching_via_partial): Ditto.
4535 (dump_psymtab): Update.
4536 * dictionary.c (dict_add_pending): New function.
4537 * dictionary.h (dict_add_pending): Declare.
4538
4539 2012-07-09 Doug Evans <dje@google.com>
4540
4541 * buildsym.c (start_subfile): Remove unnecessary check for
4542 name == NULL.
4543
4544 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4545
4546 * dwarf2read.c (load_full_type_unit): Simplify.
4547
4548 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4549 to struct signatured_type **. All uses updated.
4550
4551 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4552 All callers updated.
4553
4554 2012-07-09 Tom Tromey <tromey@redhat.com>
4555
4556 * c-exp.y (check_parameter_typelist): New function.
4557 (parameter_typelist): Call it.
4558 * eval.c (make_params): Handle '(void)' case.
4559 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4560 '(void)' case.
4561
4562 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4563
4564 * common/linux-ptrace.c: Include gdb_assert.h.
4565 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4566 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4567 stdint.h.
4568 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4569 functions.
4570 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4571 * linux-nat.c (linux_child_post_attach)
4572 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4573
4574 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4575
4576 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4577 nptl <2.7 bug workaround for core files.
4578
4579 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4580
4581 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4582 clearing.
4583 (save_siginfo): Remove.
4584 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4585 call.
4586 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4587 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4588 * linux-nat.h (struct lwp_info): Remove field siginfo.
4589
4590 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4591
4592 Code cleanup for the next patch.
4593 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4594 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4595 call for it.
4596 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4597 (ia64_linux_stopped_data_address):
4598 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4599 the return value.
4600 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4601 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4602 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4603 call for it.
4604
4605 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4606
4607 PR 14321
4608 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4609 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4610
4611 2012-07-06 Tom Tromey <tromey@redhat.com>
4612
4613 * c-exp.y (DOTDOTDOT): New token.
4614 (func_mod, exp): Use parameter_typelist.
4615 (parameter_typelist): New production.
4616 (tokentab3): Add "..." token.
4617 * eval.c (make_params): Handle varargs.
4618 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4619 varargs.
4620
4621 2012-07-06 Tom Tromey <tromey@redhat.com>
4622
4623 PR exp/9608:
4624 * c-exp.y (%union) <tvec>: Change type.
4625 (func_mod): Now uses <tvec> type.
4626 (exp): Update for tvec change.
4627 (direct_abs_decl): Push the typelist.
4628 (func_mod): Return a typelist.
4629 (nonempty_typelist): Update for tvec change.
4630 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4631 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4632 * parse.c (pop_type_list): New function.
4633 (push_typelist): New function.
4634 (follow_types): Handle tp_function_with_arguments.
4635 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4636 (enum type_pieces) <tp_function_with_arguments>: New constant.
4637 (union type_stack_elt) <typelist_val>: New field.
4638 (push_typelist): Declare.
4639
4640 2012-07-06 Tom Tromey <tromey@redhat.com>
4641
4642 * c-exp.y (%union) <type_stack>: New field.
4643 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4644 (ptr_operator_ts): New production.
4645 (ptype): Update.
4646 * parse.c (type_stack_reserve): New function.
4647 (check_type_stack_depth): Use it.
4648 (pop_type_stack, append_type_stack, push_type_stack)
4649 (get_type_stack, type_stack_cleanup): New functions.
4650 (follow_types): Handle tp_type_stack.
4651 (_initialize_parse): Simplify initialization.
4652 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4653 constant.
4654 (union type_stack_elt) <stack_val>: New field.
4655 (get_type_stack, append_type_stack, push_type_stack)
4656 (type_stack_cleanup): Declare.
4657
4658 2012-07-06 Tom Tromey <tromey@redhat.com>
4659
4660 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4661 Remove.
4662 (struct type_stack): New.
4663 * parse.c (type_stack, type_stack_size, type_stack_depth):
4664 Remove.
4665 (type_stack): New global.
4666 (parse_exp_in_context, check_type_stack_depth)
4667 (insert_into_type_stack, insert_type, push_type, push_type_int)
4668 (insert_type_address_space, pop_type, pop_type_int)
4669 (_initialize_parse): Update.
4670
4671 2012-07-06 Tom Tromey <tromey@redhat.com>
4672
4673 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4674 Remove %type.
4675
4676 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4677
4678 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4679
4680 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4681 Jan Kratochvil <jan.kratochvil@redhat.com>
4682
4683 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4684 alloca with xmalloc/xfree.
4685
4686 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4687
4688 * MAINTAINERS (Write After Approval): Add myself to the list.
4689
4690 2012-07-05 Doug Evans <dje@google.com>
4691
4692 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4693
4694 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4695
4696 * ax-gdb.c (cli/cli-utils.h): New include.
4697 (linespec.h): Ditto.
4698 (agent_eval_command_one): New function.
4699 (agent_command_1): Ditto.
4700 (agent_command): Call function agent_command_1.
4701 (agent_eval_command): Ditto.
4702 (_initialize_ax_gdb): Change help for "maint agent"
4703 and "maint agent-eval".
4704
4705 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4706
4707 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4708 * cli/cli-utils.c (check_for_argument): New function.
4709 * cli/cli-utils.h (check_for_argument): Ditto.
4710
4711 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4712
4713 * NEWS: Mention x32 ABI support.
4714
4715 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4716
4717 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4718 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4719
4720 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4721 and pc_regnum_from_eax to -1. Update SP regnum from
4722 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4723 needed.
4724
4725 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4726 pc_regnum_from_eax.
4727
4728 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4729
4730 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4731 * dwarf2expr.h: Include gdbtypes.h.
4732 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4733 these forward declarations.
4734 (cu_offset, sect_offset): Move these ...
4735 * gdbtypes.h: Remove include dwarf2expr.h.
4736 (cu_offset, sect_offset): ... here.
4737
4738 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4739
4740 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4741 (amd64_linux_sigtramp_code): This.
4742 (amd64_x32_linux_sigtramp_code): New.
4743 (LINUX_SIGTRAMP_LEN): Updated.
4744 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4745
4746 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4749
4750 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4751
4752 * config.in: Regenerate.
4753 * configure: Regenerate.
4754 * configure.ac: Remove check for gnu/libc-version.h.
4755 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4756 gnu/libc-version.h.
4757 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4758 variables libc_version, libc_major and libc_minor. Replace sscanf by
4759 inferior_has_bug. Extend the comment.
4760
4761 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4762
4763 * linux-thread-db.c (inferior_has_bug): New function.
4764 (thread_db_find_new_threads_silently): Return boolean as checked by
4765 inferior_has_bug, describe it in the comments.
4766 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4767 earlier. Abort the initialization if it returned non-zero.
4768 (thread_db_new_objfile): Exclude debug files.
4769 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4770 if UNTIL_NO_NEW,
4771
4772 2012-07-02 Doug Evans <dje@google.com>
4773
4774 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4775 related to queue management.
4776
4777 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4778 instead of "debug dwarf2-die" in debugging printfs.
4779 (create_debug_info_hash_table_reader): Ditto.
4780 (create_debug_info_hash_table): Ditto.
4781 (init_dwo_file): Ditto.
4782 (init_cutu_and_read_dies): Add debugging printf.
4783 (init_cutu_and_read_dies_no_follow): Ditto.
4784 (process_psymtab_comp_unit_reader): Ditto.
4785
4786 2012-07-02 Stan Shebs <stan@codesourcery.com>
4787
4788 Add target-side support for dynamic printf.
4789 * NEWS: Mention the additional style.
4790 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4791 (struct bp_location): New field cmd_bytecode.
4792 * breakpoint.c: Include format.h.
4793 (disconnected_dprintf): New global.
4794 (parse_cmd_to_aexpr): New function.
4795 (build_target_command_list): New function.
4796 (insert_bp_location): Call it.
4797 (remove_breakpoints_pid): Skip dprintf breakpoints.
4798 (print_one_breakpoint_location): Ditto.
4799 (dprintf_style_agent): New global.
4800 (dprintf_style_enums): Add dprintf_style_agent.
4801 (update_dprintf_command_list): Add agent case.
4802 (agent_printf_command): New function.
4803 (_initialize_breakpoint): Add new commands.
4804 * common/ax.def (printf): New bytecode.
4805 * ax.h (ax_string): Declare.
4806 * ax-gdb.h (gen_printf): Declare.
4807 * ax-gdb.c: Include cli-utils.h, format.h.
4808 (gen_printf): New function.
4809 (maint_agent_print_command): New function.
4810 (_initialize_ax_gdb): Add maint agent-printf command.
4811 * ax-general.c (ax_string): New function.
4812 (ax_print): Add printf disassembly.
4813 * Makefile.in (SFILES): Add format.c
4814 (COMMON_OBS): Add format.o.
4815 * common/format.h: New file.
4816 * common/format.c: New file.
4817 * printcmd.c: Include format.h.
4818 (ui_printf): Call parse_format_string.
4819 * remote.c (remote_state): New field breakpoint_commands.
4820 (PACKET_BreakpointCommands): New enum.
4821 (remote_breakpoint_commands_feature): New function.
4822 (remote_protocol_features): Add new BreakpointCommands entry.
4823 (remote_can_run_breakpoint_commands): New function.
4824 (remote_add_target_side_commands): New function.
4825 (remote_insert_breakpoint): Call it.
4826 (remote_insert_hw_breakpoint): Ditto.
4827 (_initialize_remote): Add new packet configuration for
4828 target-side breakpoint commands.
4829 * target.h (struct target_ops): New field
4830 to_can_run_breakpoint_commands.
4831 (target_can_run_breakpoint_commands): New macro.
4832 * target.c (update_current_target): Handle
4833 to_can_run_breakpoint_commands.
4834
4835 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4836
4837 Execute -ix and -iex only after system and user gdbinit files.
4838 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4839 processing down after gdbinit files.
4840
4841 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4842
4843 Add fnmatch-gnu module.
4844 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4845 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4846 * gnulib/aclocal.m4: Regenerate.
4847 * gnulib/config.in: Regenerate.
4848 * gnulib/configure: Regenerate.
4849 * gnulib/import/dummy.c: Remove.
4850 * gnulib/import/Makefile.am: Regenerate.
4851 * gnulib/import/Makefile.in: Likewise.
4852 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4853 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4854 * gnulib/import/alloca.c: New file.
4855 * gnulib/import/alloca.in.h: Likewise.
4856 * gnulib/import/config.charset: Likewise.
4857 * gnulib/import/fnmatch.c: Likewise.
4858 * gnulib/import/fnmatch.in.h: Likewise.
4859 * gnulib/import/fnmatch_loop.c: Likewise.
4860 * gnulib/import/localcharset.c: Likewise.
4861 * gnulib/import/localcharset.h: Likewise.
4862 * gnulib/import/m4/alloca.m4: Likewise.
4863 * gnulib/import/m4/codeset.m4: Likewise.
4864 * gnulib/import/m4/configmake.m4: Likewise.
4865 * gnulib/import/m4/fcntl-o.m4: Likewise.
4866 * gnulib/import/m4/fnmatch.m4: Likewise.
4867 * gnulib/import/m4/glibc21.m4: Likewise.
4868 * gnulib/import/m4/localcharset.m4: Likewise.
4869 * gnulib/import/m4/locale-fr.m4: Likewise.
4870 * gnulib/import/m4/locale-ja.m4: Likewise.
4871 * gnulib/import/m4/locale-zh.m4: Likewise.
4872 * gnulib/import/m4/mbrtowc.m4: Likewise.
4873 * gnulib/import/m4/mbsinit.m4: Likewise.
4874 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4875 * gnulib/import/m4/mbstate_t.m4: Likewise.
4876 * gnulib/import/m4/stdbool.m4: Likewise.
4877 * gnulib/import/m4/wchar_h.m4: Likewise.
4878 * gnulib/import/m4/wctype_h.m4: Likewise.
4879 * gnulib/import/m4/wint_t.m4: Likewise.
4880 * gnulib/import/mbrtowc.c: Likewise.
4881 * gnulib/import/mbsinit.c: Likewise.
4882 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4883 * gnulib/import/mbsrtowcs-state.c: Likewise.
4884 * gnulib/import/mbsrtowcs.c: Likewise.
4885 * gnulib/import/ref-add.sin: Likewise.
4886 * gnulib/import/ref-del.sin: Likewise.
4887 * gnulib/import/stdbool.in.h: Likewise.
4888 * gnulib/import/streq.h: Likewise.
4889 * gnulib/import/strnlen1.c: Likewise.
4890 * gnulib/import/strnlen1.h: Likewise.
4891 * gnulib/import/verify.h: Likewise.
4892 * gnulib/import/wchar.in.h: Likewise.
4893 * gnulib/import/wctype.in.h: Likewise.
4894
4895 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4896
4897 Support shell wildcards for 'set auto-load safe-path'.
4898 * auto-load.c: Include fnmatch.h.
4899 (filename_is_in_dir): Rename to ...
4900 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4901 it. Update function comment. Rename dir_len to pattern_len. New
4902 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4903 messages. Use gdb_filename_fnmatch.
4904 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4905 pattern.
4906 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4907 * defs.h (gdb_filename_fnmatch): New declaration.
4908 * utils.c: Include fnmatch.h.
4909 (gdb_filename_fnmatch): New function.
4910
4911 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4912
4913 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4914 `-probe' and `-probe-stap' options.
4915
4916 2012-07-01 Yao Qi <yao@codesourcery.com>
4917
4918 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4919 always_inserted_off, and always_inserted_enums.
4920 Change always_inserted_mode's type to 'enum auto_boolean'.
4921 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4922 callers.
4923 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4924 of add_setshow_enum_cmd.
4925 * infrun.c: Remove can_use_displaced_stepping_auto,
4926 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4927 can_use_displaced_stepping_enum.
4928 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4929 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4930 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4931 add_setshow_enum_cmd.
4932
4933 2012-06-30 Doug Evans <dje@google.com>
4934
4935 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4936 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4937 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4938
4939 2012-06-29 Doug Evans <dje@google.com>
4940
4941 * linespec.c: #include "stack.h".
4942 (decode_line_with_current_source): Moved here from symtab.c and
4943 renamed from decode_line_spec. All callers updated.
4944 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4945 renamed from decode_line_spec_1. All callers updated.
4946 * linespec.h (decode_line_with_current_source): Move declaration here
4947 from symtab.h and renamed from decode_line_spec.
4948 (decode_line_with_last_displayed): Move declaration here from symtab.h
4949 and renamed from decode_line_spec_1.
4950 * macrocmd.c: #include "linespec.h".
4951 * symtab.c: Remove #include "linespec.h".
4952
4953 2012-06-28 Doug Evans <dje@google.com>
4954
4955 * dwarf2read.c (get_cu_length): New function.
4956 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4957 (create_debug_types_hash_table): Ditto.
4958 (init_cutu_and_read_dies): Ditto.
4959 (init_cutu_and_read_dies_no_follow): Ditto.
4960
4961 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4962
4963 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4964 (struct abbrev_table): Define.
4965 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4966 abbrev_table.
4967 (init_cutu_and_read_dies): Update.
4968 (abbrev_table_alloc_abbrev): New function. Replaces
4969 dwarf_alloc_abbrev. All callers updated.
4970 (abbrev_table_add_abbrev): New function.
4971 (abbrev_table_lookup_abbrev): New function. Replaces
4972 dwarf2_lookup_abbrev. All callers updated.
4973 (abbrev_table_read_table): New function. Contents moved here from
4974 dwarf2_read_abbrevs.
4975 (dwarf2_read_abbrevs): Call it.
4976 (abbrev_table_free): New function.
4977 (dwarf2_free_abbrev_table): Call it.
4978
4979 2012-06-28 Stan Shebs <stan@codesourcery.com>
4980
4981 * osdata.c (info_osdata_command): Filter out "Title" columns
4982 from non-MI uses.
4983 * common/linux-osdata.c (struct osdata_type): Add title field.
4984 (osdata_table): Add titles to each entry.
4985 (linux_command_xfer_osdata): Add a column for title data.
4986
4987 2012-06-28 Stan Shebs <stan@codesourcery.com>
4988
4989 Make logging work for MI.
4990 * NEWS: Mention it.
4991 * interps.h (interp_set_logging_ftype): New typedef.
4992 (struct interp_procs): New field set_logging_proc.
4993 (current_interp_set_logging): Declare.
4994 * interps.c (current_interp_set_logging): New function.
4995 * cli/cli-logging.c: Include interps.h.
4996 (set_logging_redirect): Call current_interp_set_logging.
4997 (pop_output_files): Ditto.
4998 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4999 * mi/mi-console.h (mi_console_set_raw): Declare.
5000 * mi/mi-console.c (mi_console_set_raw): New function.
5001 * mi/mi-interp.c (saved_raw_stdout): New global.
5002 (mi_set_logging): New function.
5003 (_initialize_mi_interp): Add it to interp procs.
5004
5005 2012-06-28 Doug Evans <dje@google.com>
5006
5007 * symtab.c (lookup_symbol_aux_objfile): Use
5008 ALL_OBJFILE_PRIMARY_SYMTABS.
5009
5010 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5011
5012 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5013
5014 * common/buffer.c: Include inttypes.h and stdint.h.
5015 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5016
5017 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5018 Pedro Alves <palves@redhat.com>
5019
5020 * gdbthread.h (ALL_THREADS): New macro.
5021 (thread_list): Declare.
5022 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5023 going, but instead fall through to the stepping handling.
5024 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5025 the passed in signal. Adjust debug output.
5026 (resume_callback): Rename to ...
5027 (linux_nat_resume_callback): ... this. Pass the thread's last
5028 stop signal, if in "pass" state.
5029 (linux_nat_resume): Adjust to rename.
5030 (stop_wait_callback): New assertion. Don't respawn signals;
5031 instead let the LWP remain with SIGNALLED set.
5032 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5033 * remote.c (append_pending_thread_resumptions): New.
5034 (remote_vcont_resume): Call it.
5035 * target.h (target_resume): Extend comment.
5036
5037 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5038
5039 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5040
5041 2012-06-27 Doug Evans <dje@google.com>
5042
5043 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5044 Delete have_addr_base, unused. All uses updated.
5045 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5046 (dwarf2_get_pc_bounds): Add ranges_base.
5047 (dwarf2_record_block_ranges): Ditto.
5048
5049 2012-06-27 Tom Tromey <tromey@redhat.com>
5050
5051 PR macros/7961:
5052 * varobj.c (varobj_create): Update.
5053 (varobj_set_value): Update.
5054 * tracepoint.c (validate_actionline): Update.
5055 (encode_actions_1): Update.
5056 * parse.c (parse_exp_1): Add 'pc' argument.
5057 (parse_exp_in_context): Add 'pc' argument. Change how
5058 expression_context_pc is set.
5059 (parse_expression): Update.
5060 (parse_field_expression): Update.
5061 * expression.h (parse_exp_1): Update.
5062 * eval.c (parse_to_comma_and_eval): Update.
5063 * breakpoint.c (set_breakpoint_condition): Update.
5064 (update_watchpoint): Update.
5065 (init_breakpoint_sal): Update
5066 (find_condition_and_thread): Update.
5067 (watch_command_1): Update.
5068 (update_breakpoint_locations): Update.
5069 * ada-lang.c (ada_read_renaming_var_value): Update.
5070 (create_excep_cond_exprs): Update.
5071
5072 2012-06-27 Doug Evans <dje@google.com>
5073
5074 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5075 type units.
5076
5077 2012-06-26 Doug Evans <dje@google.com>
5078
5079 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5080 prototype.
5081 (error_check_comp_unit_head): New arg abbrev_section. All callers
5082 updated.
5083 (read_and_check_comp_unit_head): Ditto.
5084 (read_and_check_type_unit_head): Ditto.
5085
5086 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5087
5088 New attribute 'last' for gdb.Symtab_and_line.
5089 * NEWS (Python Scripting): Add entry about the new attribute.
5090 * python/py-symtab.c (salpy_get_last): New function which
5091 implements the get method for the 'last' attribute of
5092 gdb.Symtab_and_line.
5093 (sal_object_getset): Add entry for the 'last' attribute.
5094
5095 2012-06-26 Doug Evans <dje@google.com>
5096
5097 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5098 (dwo_sections): Add macinfo, macro.
5099 (dwarf2_locate_dwo_sections): Watch for macro sections.
5100 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5101 All callers updated. Handle DWO files.
5102
5103 * NEWS: Mention new options "set debug dwarf2-read" and
5104 "set debug symtab-create".
5105 * dwarf2read.c (dwarf2_read_debug): New static global.
5106 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5107 (process_queue): Ditto.
5108 (process_full_comp_unit): Ditto.
5109 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5110 * elfread.c (elf_symfile_read): Add debugging printf.
5111 * minsyms.c (install_minimal_symbols): Ditto.
5112 * psymtab.c (allocate_psymtab): Ditto.
5113 * symfile.c (allocate_symtab): Ditto.
5114 * symtab.c (symtab_create_debug): New global.
5115 (_initialize_symtab): Add new option "set debug symtab-create".
5116 * symtab.h (symtab_create_debug): Declare.
5117
5118 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5119 (lookup_dwo_type_unit): Ditto.
5120
5121 2012-06-26 Roland McGrath <roland@hack.frob.com>
5122 H.J. Lu <hongjiu.lu@intel.com>
5123
5124 * amd64-linux-nat.c: Include <sys/user.h>.
5125 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5126 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5127 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5128
5129 * configure.ac: Check if the fs_base and gs_base members of
5130 `struct user_regs_struct' exist.
5131 * config.in: Regenerated.
5132 * configure: Likewise.
5133
5134 2012-06-25 Michael Eager <eager@eagercon.com>
5135
5136 PR python/14291
5137 * python/python.c (gdbpy_write): Check for interrupted output.
5138
5139 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5140
5141 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5142 register as a stack alignment in ARM mode.
5143
5144 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5145
5146 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5147 * gnulib/config.in: Regenerate.
5148 * gnulib/configure: Likewise.
5149 * gnulib/import/m4/extensions.m4: Update it.
5150 * gnulib/import/m4/gnulib-common.m4: Likewise.
5151 * gnulib/import/m4/memmem.m4: Likewise.
5152 * gnulib/import/m4/mmap-anon.m4: Likewise.
5153 * gnulib/import/m4/multiarch.m4: Likewise.
5154 * gnulib/import/stdint.in.h: Likewise.
5155
5156 2012-06-24 Yao Qi <yao@codesourcery.com>
5157
5158 * corefile.c (write_memory_with_notification): New.
5159 * gdbcore.h: Declare write_memory_with_notification.
5160 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5161 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5162 * valops.c (value_assign): Likewise.
5163 * python/py-inferior.c (infpy_write_memory): Call
5164 'write_memory_with_notification'.
5165
5166 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5167
5168 * cc-with-index.sh: Use also -ex "set auto-load no".
5169
5170 2012-06-23 Doug Evans <dje@google.com>
5171
5172 PR 14125
5173 * NEWS: Document additions to .gdb_index.
5174 * dwarf2read.c: #include "gdb/gdb-index.h".
5175 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5176 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5177 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5178 (dwarf2_read_index): Recognize version 7.
5179 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5180 block_kind, domain): All callers updated.
5181 (dw2_find_symbol_file): Handle new index CU values.
5182 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5183 (add_index_entry): New args is_static, kind. All callers updated.
5184 (offset_type_compare, uniquify_cu_indices): New functions
5185 (symbol_kind): New function.
5186 (write_psymtabs_to_index): Remove duplicate CU values.
5187 (write_psymtabs_to_index): Write .gdb_index version 7.
5188
5189 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5190
5191 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5192 * configure: Regenerate.
5193
5194 2012-06-20 Yao Qi <yao@codesourcery.com>
5195
5196 * python/py-inferior.c: Update comments of infpy_read_memory
5197 and infpy_write_memory.
5198
5199 2012-06-19 Tom Tromey <tromey@redhat.com>
5200
5201 PR exp/9514:
5202 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5203 (push_type_address_space): Remove.
5204 * parse.c (insert_into_type_stack): New function.
5205 (insert_type): Likewise.
5206 (insert_type_address_space): Rename from push_type_address_space.
5207 Insert tp_space_identifier.
5208 * c-exp.y (ptr_operator): New production.
5209 (abs_decl): Use ptr_operator.
5210 (space_identifier): Call insert_type_address_space.
5211 (ptype): Don't use const_or_volatile_or_space_identifier.
5212 (const_or_volatile_noopt): Call insert_type.
5213 (conversion_type_id, conversion_declarator): New productions.
5214 (operator): Use conversion_type_id.
5215
5216 2012-06-18 Doug Evans <dje@google.com>
5217
5218 * symtab.h (minimal_symbol): New member created_by_gdb.
5219 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5220 created by gdb.
5221 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5222 (search_symbols): Call it instead of lookup_symbol.
5223 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5224
5225 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5226 Adjust address for DW_OP_GNU_addr_index.
5227 * dwarf2expr.h (dwarf_expr_context): Update comment.
5228 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5229 all callers updated. Handle TLS vars described with
5230 DW_OP_GNU_const_index.
5231 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5232 and DW_OP_GNU_const_index.
5233 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5234
5235 * block.c (find_block_in_blockvector): Make explicit the fact that we
5236 ignore GLOBAL_BLOCK.
5237
5238 2012-06-18 Tom Tromey <tromey@redhat.com>
5239
5240 * c-exp.y (operator): Remove trailing space after "delete" and
5241 "delete[]".
5242
5243 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5244 Jan Kratochvil <jan.kratochvil@redhat.com>
5245
5246 Switch i386 and derived targets to ON_STACK.
5247 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5248 (amd64_dicos_init_abi): Remove its installment.
5249 * dicos-tdep.c (dicos_init_abi): Remove the
5250 set_gdbarch_call_dummy_location call. Update the comment here.
5251 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5252 (i386_dicos_init_abi): Remove its installment.
5253 * i386-tdep.c (i386_push_dummy_code): New function.
5254 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5255 i386_push_dummy_code.
5256
5257 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5258
5259 Remove stale dummy frames.
5260 * breakpoint.c: Include dummy-frame.h.
5261 (longjmp_breakpoint_ops): New variable.
5262 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5263 bp_longjmp_call_dummy.
5264 (bpstat_what, bptype_string, print_one_breakpoint_location)
5265 (init_bp_location): Support bp_longjmp_call_dummy.
5266 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5267 (set_longjmp_breakpoint_for_call_dummy)
5268 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5269 functions.
5270 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5271 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5272 FIXME comment and extend the other comment for bp_call_dummy.
5273 (set_longjmp_breakpoint_for_call_dummy)
5274 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5275 * dummy-frame.c: Include gdbthread.h.
5276 (pop_dummy_frame_bpt): New function.
5277 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5278 (dummy_frame_discard): New function.
5279 (cleanup_dummy_frames): Update the comment about longjmps.
5280 * dummy-frame.h (dummy_frame_discard): New declaration.
5281 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5282 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5283 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5284 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5285 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5286 keep_going if IS_LONGJMP and there is no other reason to stop.
5287
5288 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5289
5290 * remote-sim.c (sim_command_completer): Initialize
5291 variable 'result'.
5292
5293 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5294
5295 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5296 * dwarf2loc.c (call_site_parameter_matches): Support
5297 CALL_SITE_PARAMETER_PARAM_OFFSET.
5298 (needs_dwarf_reg_entry_value): Push stub value.
5299 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5300 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5301 * gdbtypes.h (enum call_site_parameter_kind): New item
5302 CALL_SITE_PARAMETER_PARAM_OFFSET.
5303 (struct call_site.parameter.u): New field param_offset.
5304
5305 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5306
5307 Code cleanup: Generalize call_site.parameter key.
5308 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5309 variable dwarf_reg. New variable kind_u. Update parameters to
5310 push_dwarf_reg_entry_value.
5311 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5312 * dwarf2expr.h (enum call_site_parameter_kind)
5313 (union call_site_parameter_u): Forward declarations.
5314 (struct dwarf_expr_context_funcs): Update parameters and their
5315 description for push_dwarf_reg_entry_value.
5316 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5317 * dwarf2loc.c (call_site_parameter_matches): New function.
5318 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5319 description. Use call_site_parameter_matches.
5320 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5321 Update parameters and their description.
5322 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5323 New variable kind_u. Adjust the caller for updated parameters.
5324 (needs_dwarf_reg_entry_value): Update parameters.
5325 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5326 instead of attr. Update for the changed fields of struct
5327 call_site_parameter.
5328 * gdbtypes.h: Include dwarf2expr.h.
5329 (enum call_site_parameter_kind): New.
5330 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5331 fb_offset into new union u.
5332
5333 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5334
5335 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5336 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5337 for x32.
5338
5339 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5340
5341 * amd64-linux-nat.c (compat_x32_clock_t): New.
5342 (compat_x32_siginfo_t): Likewise.
5343 (compat_x32_siginfo_from_siginfo): Likewise.
5344 (siginfo_from_compat_x32_siginfo): Likewise.
5345 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5346 and siginfo_from_compat_x32_siginfo for x32.
5347
5348 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5349
5350 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5351
5352 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5353
5354 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5355 instead of gdbarch_ptr_bit.
5356 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5357 (amd64_supply_native_gregset): Likewise.
5358 (amd64_collect_native_gregset): Likewise.
5359 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5360 (amd64_supply_xsave): Likewise.
5361 (amd64_collect_fxsave): Likewise.
5362 (amd64_collect_xsave): Likewise.
5363
5364 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5365
5366 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5367 (amd64_linux_read_description): Check DS segment register for
5368 x32 process.
5369
5370 2012-06-15 Tom Tromey <tromey@redhat.com>
5371
5372 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5373 init_cutu_and_read_dies.
5374
5375 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5376
5377 * MAINTAINERS (Write After Approval): Add myself to the list.
5378
5379 2012-06-15 Tom Tromey <tromey@redhat.com>
5380
5381 * valops.c (value_find_oload_method_list): Now static.
5382 * value.h (value_find_oload_method_list): Don't declare.
5383
5384 2012-06-15 Tom Tromey <tromey@redhat.com>
5385
5386 * valops.c (find_overload_match): Use value_ind.
5387
5388 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5389
5390 * infrun.c (handle_inferior_event): Correct indentation.
5391
5392 2012-06-14 Doug Evans <dje@google.com>
5393
5394 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5395 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5396 All uses updated.
5397 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5398 updated. Handle DEBUG_LOC_START_LENGTH.
5399 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5400 (loclist_describe_location): Ditto.
5401
5402 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5403
5404 PR backtrace/13866
5405 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5406 after hiding inline functions.
5407
5408 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5409
5410 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5411 _initialize_inf_ttrace.
5412
5413 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5414
5415 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5416 _initialize_hppa_hpux_nat.
5417
5418 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5419
5420 * remote-sim.c (sim_command_completer): Change type of return
5421 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5422
5423 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5424 Jan Kratochvil <jan.kratochvil@redhat.com>
5425
5426 PR tdep/14222
5427 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5428 stack on a 16-byte boundary.
5429
5430 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5431
5432 * jit.c (finalize_symtab): Set function's return type to 'void' by
5433 default.
5434
5435 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5436 H.J. Lu <hongjiu.lu@intel.com>
5437
5438 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5439 Move bits common to both the classic LP64 and the new x32 ILP32
5440 ABI here.
5441 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5442 (amd64_x32_linux_init_abi): New function.
5443 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5444 subtype.
5445
5446 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5447 * i386-tdep.c (i386_pseudo_register_name): Make public.
5448 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5449 * amd64-tdep.c (amd64_dword_names): Add "eip".
5450 (amd64_x32_pseudo_register_type): New function
5451 (amd64_x32_init_abi): New function.
5452
5453 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5454
5455 PR build/14003
5456 * inferior.h (struct inferior_suspend_state): Comment out.
5457 (struct inferior): Comment out the field suspend.
5458 * infrun.c (struct infcall_suspend_state): Comment out the field
5459 inferior_suspend.
5460 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5461 out its assignment.
5462
5463 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5464
5465 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5466 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5467 function comment. Return ERROR for unresolved cases. Implement
5468 returning proper NAME.
5469 (yylex): Accept also NAME from classify_inner_name.
5470 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5471 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5472 LOC_TYPEDEF type.
5473 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5474
5475 2012-06-13 Tom Tromey <tromey@redhat.com>
5476
5477 * breakpoint.c (condition_completer): New function.
5478 (_initialize_breakpoint): Use it.
5479 * value.c (complete_internalvar): New function.
5480 * value.h (complete_internalvar): Declare.
5481
5482 2012-06-13 Tom Tromey <tromey@redhat.com>
5483
5484 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5485 * breakpoint.c (catch_syscall_completer): Return a VEC.
5486 * cli/cli-cmds.c (complete_command): Update.
5487 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5488 (complete_on_enum): Likewise.
5489 * command.h: Include gdb_vecs.h.
5490 (completer_ftype): Change return type.
5491 (complete_on_cmdlist, complete_on_enum): Likewise.
5492 * completer.c (noop_completer, filename_completer)
5493 (location_completer): Return a VEC.
5494 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5495 to a VEC.
5496 (expression_completer, complete_line_internal, complete_line)
5497 (command_completer): Return a VEC.
5498 (gdb_completion_word_break_characters, line_completion_function):
5499 Update.
5500 * completer.h: Include gdb_vecs.h.
5501 (complete_line, noop_completer, filename_completer)
5502 (expression_completer, location_completer, command_completer):
5503 Update.
5504 * f-lang.c (f_word_break_characters): Return a VEC.
5505 * interps.c (interpreter_completer): Return a VEC.
5506 * language.h (struct language_defn)
5507 <la_make_symbol_completion_list>: Return a VEC.
5508 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5509 * symtab.c (free_completion_list): Take a VEC.
5510 (return_val_size, return_val_index): Remove.
5511 (return_val): Now a VEC.
5512 (completion_list_add_name): Update.
5513 (default_make_symbol_completion_list_break_on)
5514 (default_make_symbol_completion_list, make_symbol_completion_list)
5515 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5516 Return a VEC.
5517 (add_filename_to_list): Update.
5518 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5519 <list>: Now a VEC.
5520 (maybe_add_partial_symtab_filename): Update.
5521 (make_source_files_completion_list): Return a VEC.
5522 * symtab.h (default_make_symbol_completion_list_break_on)
5523 (default_make_symbol_completion_list, make_symbol_completion_list)
5524 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5525 (make_source_files_completion_list): Update.
5526
5527 2012-06-13 Tom Tromey <tromey@redhat.com>
5528
5529 * breakpoint.c (add_catch_command): Use completer_ftype.
5530 * breakpoint.h: Include command.h.
5531 (add_catch_command): Use completer_ftype.
5532 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5533 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5534 Use completer_ftype.
5535 * command.h (completer_ftype): New typedef.
5536 (set_cmd_completer): Use it.
5537 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5538 completer_ftype.
5539
5540 2012-06-13 Pedro Alves <palves@redhat.com>
5541
5542 Partial revert of previous change.
5543
5544 * serial.c (scb_base): New global.
5545 (serial_for_fd): New.
5546 (serial_open, serial_fdopen_ops): Link new serial in open serials
5547 chain.
5548 (do_serial_close): Unlink serial from the open serials chain.
5549
5550 2012-06-12 Pedro Alves <palves@redhat.com>
5551
5552 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5553 threads here.
5554 (prepare_for_detach): No longer context switch here in non-stop
5555 mode.
5556 (fetch_inferior_event): Ditto.
5557 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5558 to the event thread before removing breakpoints. Switch to the
5559 event thread before inserting breakpoints and resuming.
5560 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5561 event thread before resuming.
5562 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5563 Switch to the event thread before removing breakpoints.
5564
5565 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5566
5567 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5568 special characters correctly for the Windows shells. See
5569 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5570 report.
5571 [!__MINGW32__]: Remove extra double quote character from special
5572 characters.
5573
5574 2012-06-11 Stan Shebs <stan@codesourcery.com>
5575
5576 * ui-out.h: Remove #if 0 declarations.
5577 * ui-out.c: Remove #if 0 functions.
5578
5579 2012-06-11 Pedro Alves <palves@redhat.com>
5580
5581 * ser-base.c (run_async_handler_and_reschedule): New.
5582 (fd_event, push_event): Use it.
5583 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5584 reference count to 1.
5585 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5586 instead of xfree.
5587 (serial_is_open, serial_ref, serial_unref): New.
5588 * serial.h (serial_open): Adjust comment.
5589 (serial_is_open): Declare.
5590 (serial_close): Adjust comment.
5591 (serial_ref, serial_unref) Declare.
5592 (struct serial): New field 'refcnt'.
5593
5594 2012-06-11 Pedro Alves <palves@redhat.com>
5595
5596 Remove #if 0'd "connect" command, and unnecessary associated
5597 refcounting and serial reuse bits.
5598
5599 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5600 * serial.c (last_serial_opened): Delete.
5601 (scb_base): Delete.
5602 (serial_open): Adjust.
5603 (serial_for_fd): Delete.
5604 (serial_fdopen_ops, do_serial_close): Adjust.
5605 (serial_fdopen_ops): Adjust.
5606
5607 2012-06-11 Pedro Alves <palves@redhat.com>
5608
5609 * serial.c (do_serial_close): Remove early return when SCB is
5610 null.
5611
5612 2012-06-11 Tom Tromey <tromey@redhat.com>
5613
5614 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5615
5616 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5617
5618 Fix regression by the "ambiguous linespec" series.
5619 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5620 get_last_displayed_symtab and get_last_displayed_line and depending
5621 on CURSAL.
5622
5623 2012-06-11 Tom Tromey <tromey@redhat.com>
5624
5625 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5626 (dw2_find_symbol_file): Use it.
5627
5628 2012-06-11 Michael Eager <eager@eagercon.com>
5629
5630 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5631 * mips-linux-tdep.h (mips_signals): New
5632
5633 2012-06-11 Tom Tromey <tromey@redhat.com>
5634
5635 * infrun.c (handle_inferior_event)
5636 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5637 breakpoint.
5638 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5639 exception logic in all cases. Update comments.
5640 (insert_longjmp_resume_breakpoint): Set the exception resume
5641 breakpoint.
5642
5643 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5644
5645 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5646
5647 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5648
5649 * valarith.c (binop_types_user_defined_p): Fix a typo.
5650
5651 2012-06-08 Yao Qi <yao@codesourcery.com>
5652 Chung-Lin Tang <cltang@codesourcery.com>
5653
5654 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5655 * arch-utils.h: Declare.
5656 * gdbarch.sh: Add return_in_first_hidden_param_p.
5657 * gdbarch.c, gdbarch.h: Regenerated.
5658 * infcall.c (call_function_by_hand): Call
5659 gdbarch_return_in_first_hidden_param_p instead of
5660 language_pass_by_reference.
5661
5662 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5663 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5664 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5665 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5666 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5667 `cplus_return_struct_by_reference'.
5668 (tic6x_return_value): Handle language cplusplus.
5669 (tic6x_return_in_first_hidden_param_p): New.
5670 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5671
5672 2012-06-07 Doug Evans <dje@google.com>
5673
5674 * dwarf2read.c (dwarf2_cu): Add comment.
5675
5676 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5677
5678 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5679 variable.
5680 (mips_eabi_push_dummy_call): Likewise.
5681 (mips_n32n64_push_dummy_call): Likewise.
5682 (mips_o32_push_dummy_call): Likewise.
5683 (mips_o64_push_dummy_call): Likewise.
5684
5685 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5686
5687 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5688
5689 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5690
5691 * mips-tdep.c (mips_pseudo_register_type): Use
5692 mips_float_register_p.
5693
5694 2012-06-06 Pedro Alves <palves@redhat.com>
5695
5696 * infrun.c (handle_inferior_event): Remove calls to
5697 reinit_frame_cache that follow a context_switch call.
5698
5699 2012-06-06 Pedro Alves <palves@redhat.com>
5700
5701 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5702 context_switch and remove stale comment.
5703
5704 2012-06-06 Pedro Alves <palves@redhat.com>
5705
5706 * infrun.c (struct execution_control_state): Remove
5707 `new_thread_event' field.
5708 (handle_inferior_event): Simplify new threads handling; don't
5709 resume the inferior if we find a new thread.
5710
5711 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5712
5713 * NEWS: Document the deprecation of SH's 'regs' command.
5714 * inferior.h (all_registers_info): Add function declaration.
5715 * sh-tdep.c (sh_show_regs): Remove variable.
5716 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5717 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5718 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5719 (sh_show_regs_command): Remove functions.
5720 (sh_gdbarch_init): Don't set sh_show_regs.
5721 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5722 'info all-registers'.
5723 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5724 (sh64_show_regs): Remove functions.
5725 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5726
5727 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5728
5729 * configure.ac: Move development=true below AC_INIT.
5730 * configure: Regenerate.
5731
5732 2012-06-05 Stan Shebs <stan@codesourcery.com>
5733
5734 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5735 gdb_stdout.
5736
5737 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5738
5739 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5740 argument as ssize_t.
5741 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5742 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5743 * target.c (target_read_stack, target_write_memory)
5744 (target_write_raw_memory): Likewise.
5745 * target.h (target_read_stack, target_write_memory)
5746 (target_write_raw_memory): Likewise.
5747
5748 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5749
5750 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5751 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5752 * target.c (target_read_memory): Change LEN to ssize_t.
5753 * target.h (target_read_memory): Change LEN to ssize_t.
5754
5755 2012-06-05 Pedro Alves <palves@redhat.com>
5756
5757 PR backtrace/13866
5758
5759 * breakpoint.c (until_break_command): Only fetch the selected
5760 frame after decode_line_1.
5761
5762 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5763
5764 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5765 event breakpoint at _start, __start or main if a program
5766 interpreter is not found.
5767
5768 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5769
5770 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5771 Add declaration.
5772 * windows-tdep.c: #include "objfiles.h".
5773 (windows_iterate_over_objfiles_in_search_order): New function.
5774 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5775 iterate_over_objfiles_in_search_order gdbarch method to
5776 windows_iterate_over_objfiles_in_search_order.
5777 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5778
5779 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5780
5781 * gdbarch.sh: Add generation of
5782 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5783 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5784 (iterate_over_objfiles_in_search_order): New gdbarch method.
5785 * gdbarch.h, gdbarch.c: Regenerate.
5786 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5787 Add declaration.
5788 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5789 New function.
5790 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5791 out of lookup_symbol_aux_symtabs.
5792 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5793 call to lookup_symbol_aux_objfile.
5794 (struct global_sym_lookup_data): New type.
5795 (lookup_symbol_global_iterator_cb): New function.
5796 (lookup_symbol_global): Search for symbol using
5797 gdbarch_iterate_over_objfiles_in_search_order and
5798 lookup_symbol_global_iterator_cb.
5799 * findvar.c (struct minsym_lookup_data): New type.
5800 (minsym_lookup_iterator_cb): New function.
5801 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5802 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5803 and minsym_lookup_iterator_cb.
5804
5805 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5806
5807 Revert the following patch:
5808 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5809 try locating the symbol in the symbol's own objfile first, before
5810 extending the search to all objfiles.
5811 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5812 out of lookup_symbol_aux_symtabs.
5813 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5814 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5815 Do not search EXCLUDE_OBJFILE.
5816 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5817 (lookup_symbol_global): Search for matches in the block's objfile
5818 first, before searching all other objfiles.
5819
5820 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5821
5822 * breakpoint.c (find_condition_and_thread): Stop parsing
5823 as soon as the first invalid keyword is found.
5824
5825 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5826
5827 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5828
5829 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5830
5831 * config/djgpp/djcheck.sh: Add copyright header.
5832
5833 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5834
5835 * copyright.py (update_files, main): Fix path to update-copyright
5836 script.
5837
5838 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5839
5840 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5841 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5842 for which a reminder to update by hand is printed.
5843
5844 2012-06-04 Doug Evans <dje@google.com>
5845
5846 * buildsym.c (make_blockvector): Add comment.
5847
5848 2012-06-04 Pedro Alves <palves@redhat.com>
5849
5850 * arch-utils.c (default_gdb_signal_from_target): Delete.
5851 * arch-utils.h (default_gdb_signal_from_target): Delete.
5852 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5853 gdbarch_gdb_signal_from_target_p.
5854 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5855 predicate).
5856 * gdbarch.h: Regenerate.
5857 * gdbarch.c: Regenerate.
5858
5859 2012-06-04 Pedro Alves <palves@redhat.com>
5860
5861 * gdbarch.sh (gdb_signal_from_target): Mention that the
5862 implementation of the method must be host independent.
5863 * gdbarch.h: Regenerate.
5864
5865 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5866
5867 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5868 parameters.
5869 (target_read_memory_bfd): New function.
5870 (symbol_file_add_from_memory): Use it.
5871
5872 2012-06-03 Doug Evans <dje@google.com>
5873
5874 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5875 of primary symtab.
5876 (basic_lookup_transparent_type): Ditto.
5877
5878 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5879 (ALL_PRIMARY_SYMTABS): Use it.
5880 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5881 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5882 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5883 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5884 (basic_lookup_transparent_type): Ditto.
5885
5886 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5887
5888 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5889 it to optimize resolution of demangled name.
5890
5891 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5892
5893 * configure.ac (development): Define new variable.
5894 Call AC_CHECK_LIB for mcheck if $development.
5895 (ERROR_ON_WARNING): Enable it by default only if $development.
5896 * config.in: Regenerate.
5897 * configure: Regenerate.
5898
5899 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5900
5901 * target.c (target_read_memory): Make LEN argument as size_t.
5902 * target.h (target_read_memory): Likewise.
5903
5904 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5905
5906 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5907
5908 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5909
5910 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5911 BookE interface for PowerPC server processors if not available
5912 in the Linux Kernel.
5913
5914 2012-05-31 Keith Seitz <keiths@redhat.com>
5915
5916 * linespec.c (decode_objc): Add cleanup to free
5917 INFO.FILE_SYMTABS.
5918 (find_linespec_symbols): Add cleanup to free CLASSES.
5919 * symfile.c (find_separate_debug_file_by_debuglink): Add
5920 cleanup to free DEBUGLINK.
5921 * ui-out.c (clear_header_list): No need to check if
5922 HEADER_NEXT.COLHDR is NULL.
5923 Free HEADER_NEXT.COL_NAME.
5924
5925 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5926
5927 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5928 warning.
5929
5930 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5931
5932 * configure.host (gdb_host_cpu): Handle tilegx*.
5933 (gdb_host): Handle tilegx-*-linux*.
5934 * tilegx-linux-nat.c: New file.
5935 * config/tilegx/linux.mh: New file.
5936
5937 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5938
5939 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5940 tilegx-linux-tdep.o.
5941 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5942 tilegx-linux-tdep.c.
5943 * configure.tgt: Handle tilegx-*-linux*.
5944 * tilegx-tdep.h: New file.
5945 * tilegx-tdep.c: New file.
5946 * tilegx-linux-tdep.c: New file.
5947 * regformats/reg-tilegx.dat: New file.
5948
5949 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5950
5951 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5952 accounting of hw watchpoints on ppc.
5953
5954 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5955
5956 * source.c (openp): Expand tilde in path entries.
5957
5958 2012-05-29 Doug Evans <dje@google.com>
5959
5960 * buildsym.c (block_compar): Fix comment.
5961 (end_symtab): Fix and clarify some comments.
5962
5963 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5964 cleanup_undefined_types.
5965 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5966 All callers updated.
5967
5968 2012-05-29 Tom Tromey <tromey@redhat.com>
5969
5970 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5971 fails.
5972 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5973 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5974 fails.
5975 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5976 fails.
5977
5978 2012-05-29 Tristan Gingold <gingold@adacore.com>
5979
5980 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5981 (struct darwin_info): ... New struct.
5982 (solib_darwin_pspace_data): New variable.
5983 (darwin_pspace_data_cleanup): New function.
5984 (get_darwin_info): Likewise.
5985 (darwin_dyld_version_ok, darwin_load_image_infos)
5986 (darwin_solib_get_all_image_info_addr_at_init)
5987 (darwin_solib_read_all_image_info_addr): Add info argument.
5988 Adjust code.
5989 (darwin_current_sos): Use per pspace structure.
5990 (darwin_solib_create_inferior_hook): Likewise.
5991 (darwin_clear_solib): Likewise.
5992 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5993
5994 2012-05-28 Pedro Alves <palves@redhat.com>
5995
5996 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5997 block that uses them. Clear ecss before handling each event.
5998
5999 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6000
6001 * solib-svr4.c (svr4_current_sos): New comment on
6002 svr4_current_sos_via_xfer_libraries fall back.
6003
6004 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6005
6006 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6007 it as a fallback for TYPE_IS_OPAQUE.
6008 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6009 symbols for lookup_symbol.
6010
6011 2012-05-24 John Steele Scott <toojays@toojays.net>
6012
6013 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6014 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6015 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6016 (check_producer): ... this new function, which also checks for ICC
6017 and caches the result.
6018 (producer_is_icc): New function.
6019 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6020 producer was ICC.
6021
6022 2012-05-24 Pedro Alves <palves@redhat.com>
6023
6024 PR gdb/7205
6025
6026 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6027 (default_gdb_signal_to_target): ... this. Add comment.
6028 (default_gdb_signal_from_host): Rename to ...
6029 (default_gdb_signal_from_target): ... this. Add comment.
6030 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6031 (default_gdb_signal_to_target): ... this.
6032 (default_gdb_signal_from_host): Rename to ...
6033 (default_gdb_signal_from_target): ... this.
6034 * corelow.c (core_open): Adjust to naming change. Replace comment.
6035 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6036 (gdb_signal_from_target): ... this. Adjust to
6037 default_gdb_signal_from_host naming change. Extend comment.
6038 (gdb_signal_to_host): Rename to ...
6039 (gdb_signal_to_target): ... this. Adjust to
6040 default_gdb_signal_to_host naming change.
6041 * gdbarch.h, gdbarch.c: Renegerate.
6042
6043 2012-05-24 Pedro Alves <palves@redhat.com>
6044
6045 PR gdb/7205
6046
6047 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6048
6049 2012-05-24 Pedro Alves <palves@redhat.com>
6050
6051 PR gdb/7205
6052
6053 Replace target_signal with gdb_signal throughout.
6054
6055 2012-05-24 Pedro Alves <palves@redhat.com>
6056
6057 PR tui/14159
6058
6059 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6060 string, instead of reusing the va_list argument.
6061
6062 2012-05-24 Tom Tromey <tromey@redhat.com>
6063
6064 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6065 Remove.
6066
6067 2012-05-23 Doug Evans <dje@google.com>
6068
6069 * symtab.c (search_symbols): Formatting fixes.
6070 (print_symbol_info): Formatting fixes.
6071
6072 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6073 int64_t change to leb128 API.
6074 (read_encoded_value, decode_frame_entry_1): Ditto.
6075 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6076 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6077 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6078 (execute_stack_op): Ditto.
6079 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6080 (safe_read_uleb128, safe_read_sleb128): Ditto.
6081 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6082 (dwarf2_compile_expr_to_ax): Ditto.
6083 (locexpr_describe_location_piece): Ditto.
6084 (disassemble_dwarf_expression): Ditto.
6085 (locexpr_describe_location_1): Ditto.
6086
6087 2012-05-23 Stan Shebs <stan@codesourcery.com>
6088 Kwok Cheung Yeung <kcy@codesourcery.com>
6089
6090 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6091 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6092 (mi-cmd-info.o): New rule.
6093 * osdata.h (info_osdata_command): New declaration.
6094 * osdata.c (info_osdata_command): Change to non-static.
6095 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6096 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6097 * mi/mi-cmd-info.c: New file.
6098
6099 2012-05-23 Doug Evans <dje@google.com>
6100
6101 * symtab.c (search_symbols): Pass NULL for file_matcher to
6102 expand_symtabs_matching if there are no files to match.
6103
6104 * gdbtypes.c (lookup_typename): Simplify.
6105
6106 2012-05-23 Pedro Alves <palves@redhat.com>
6107
6108 * arch-utils.h (default_target_signal_to_host): Delete.
6109 * arch-utils.c (default_target_signal_to_host): Delete.
6110 * gdbarch.sh (target_signal_to_host): Remove.
6111 * gdbarch.h, gdbarch.c: Regenerate.
6112
6113 2012-05-22 Doug Evans <dje@google.com>
6114
6115 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6116 "const gdb_byte *".
6117 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6118 (execute_cfa_program): Update to match API of leb128 functions.
6119 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6120 "const gdb_byte *".
6121 (read_unsigned_leb128, read_signed_leb128): Delete.
6122 (read_initial_length): Change type of buf argument to
6123 "const gdb_byte *".
6124 (read_encoded_value): Update to match API of leb128 functions.
6125 (decode_frame_entry): Change result to "const gdb_byte *", and
6126 similarly for "start" parameter.
6127 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6128 (dwarf2_build_frame_info): Change local frame_ptr to
6129 "const gdb_byte *".
6130 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6131 read_uleb128, read_sleb128. All callers updated.
6132 (safe_skip_leb128): New function.
6133 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6134 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6135 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6136 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6137 read_uleb128, read_sleb128.
6138 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6139 (execute_stack_op): Update to match API of leb128 functions.
6140 * dwarf2expr.h: #include "leb128.h".
6141 (read_uleb128, read_sleb128): Delete.
6142 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6143 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6144 * dwarf2loc.c (debug_loc_kind): New enum.
6145 (decode_debug_loc_addresses): New function.
6146 (decode_debug_loc_dwo_addresses): New function.
6147 (dwarf2_find_location_expression): Rewrite.
6148 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6149 (locexpr_describe_location_piece): Ditto.
6150 (disassemble_dwarf_expression): Ditto.
6151 (locexpr_describe_location_1): Ditto.
6152 (loclist_describe_location): Rewrite.
6153 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6154 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6155 (dwarf2_section_buffer_overflow_complaint): Renamed from
6156 dwarf2_macros_too_long_complaint. All callers updated.
6157 (skip_leb128): Delete.
6158 (init_cu_die_reader): Initialize reader->buffer_end.
6159 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6160 (skip_form_bytes): New arg buffer_end. All callers updated.
6161 Replace call to skip_leb128 with gdb_skip_leb128.
6162 (skip_unknown_opcode): New arg mac_end. All callers updated.
6163 (fill_in_loclist_baton): Initialize baton->from_dwo.
6164
6165 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6166
6167 * mips-linux-nat.c (mips_linux_read_description): Use a more
6168 verbose error message.
6169
6170 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6171
6172 * NEWS: Add MIPS/Linux DSP support.
6173 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6174 (SIGCONTEXT_DSPCTL): New macro.
6175 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6176 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6177 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6178 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6179 (N64_SIGCONTEXT_HI3): Likewise.
6180 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6181 (N64_SIGCONTEXT_LO3): Likewise.
6182 (N64_SIGCONTEXT_DSPCTL): Likewise.
6183 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6184 (mips_linux_o32_sigframe_init): Handle DSP registers.
6185 (mips_linux_n32n64_sigframe_init): Likewise.
6186
6187 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6188
6189 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6190 call to abort.
6191
6192 2012-05-22 Pedro Alves <palves@redhat.com>
6193
6194 * target.h (store_waitstatus): Move declaration ...
6195 * inf-child.h (store_waitstatus): ... here.
6196 * target.c: Move inclusion of gdb_wait.h, and ...
6197 (store_waitstatus): ... this ...
6198 * inf-child.c: ... here.
6199 * linux-nat.c: Include inf-child.h.
6200 * rs6000-nat.c: Include inf-child.h.
6201 * spu-linux-nat.c: Include inf-child.h.
6202
6203 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6204
6205 * tracepoint.c (start_tracing): Add missing i18n markup.
6206 (stop_tracing, set_trace_user): Ditto.
6207 (set_trace_notes, set_trace_stop_notes): Ditto.
6208
6209 2012-05-21 Tom Tromey <tromey@redhat.com>
6210
6211 PR c++/7173:
6212 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6213 types.
6214 * value.h (value_cast_pointers): Update.
6215 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6216 (value_cast): Update.
6217 (update_search_result): New function.
6218 (do_search_struct_field): New, from search_struct_field. Check
6219 for ambiguous results.
6220 (search_struct_field): Rewrite.
6221 * infcall.c (value_arg_coerce): Update.
6222 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6223 value_cast_pointers.
6224 * ada-lang.c (ada_convert_actual): Update.
6225
6226 2012-05-21 Tom Tromey <tromey@redhat.com>
6227
6228 * macroexp.c (macro_stringify): Terminate the string.
6229
6230 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6231
6232 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6233 Describe it.
6234 * auto-load.c (auto_load_expand_dir_vars): New function.
6235 (auto_load_safe_path_vec_update): Use it, remove the
6236 substitute_path_component call thanks to it.
6237 (auto_load_objfile_script): Remove the debug_file_directory processing.
6238 Use auto_load_expand_dir_vars, remove the substitute_path_component
6239 call thanks to it.
6240 * configure: Regenerate.
6241 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6242 path. Escape $ also for $debugdir.
6243 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6244 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6245
6246 2012-05-20 Doug Evans <dje@google.com>
6247
6248 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6249 before use. Check for symtab->includes == NULL before scanning it.
6250
6251 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6252
6253 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6254
6255 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6256
6257 * NEWS: Add microMIPS support and "set mips compression",
6258 "show mips compression" commands.
6259 * mips-tdep.h (mips_isa): New enum.
6260 (gdbarch_tdep): Add mips_isa.
6261 (mips_pc_is_mips16): Update prototype.
6262 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6263 * mips-tdep.c (mips_compression_mips16): New variable.
6264 (mips_compression_micromips): Likewise.
6265 (mips_compression_strings): Likewise.
6266 (mips_compression_string): Likewise.
6267 (is_mips16_isa, is_micromips_isa): New functions.
6268 (is_mips16_addr): Rename to...
6269 (is_compact_addr): ... this.
6270 (unmake_mips16_addr): Likewise to...
6271 (unmake_compact_addr): ... this.
6272 (make_mips16_addr): Likewise to...
6273 (make_compact_addr): ... this.
6274 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6275 functions.
6276 (mips_elf_make_msymbol_special): Handle microMIPS code.
6277 (msymbol_is_special): Rename to...
6278 (msymbol_is_mips16): ... this.
6279 (mips_make_symbol_special, mips_pc_is_mips16): Update
6280 accordingly.
6281 (msymbol_is_mips, msymbol_is_micromips): New functions.
6282 (mips16_to_32_reg): Rename to...
6283 (mips_reg3_to_reg): ... this.
6284 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6285 (mips_pc_isa): Likewise.
6286 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6287 code.
6288 (mips_fetch_instruction): Pass return status instead of printing
6289 an error message if requested. Handle microMIPS code. Bail out
6290 on an invalid ISA.
6291 (micromips_op): New macro.
6292 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6293 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6294 (b6s4_op, b7s3_reg): Likewise.
6295 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6296 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6297 (mips_insn_size): New function.
6298 (mips32_next_pc): Update mips_fetch_instruction call.
6299 (micromips_relative_offset7): New function.
6300 (micromips_relative_offset10): Likewise.
6301 (micromips_relative_offset16): Likewise.
6302 (micromips_pc_insn_size): Likewise.
6303 (micromips_bc1_pc): Likewise.
6304 (micromips_next_pc): Likewise.
6305 (unpack_mips16): Update mips_fetch_instruction call.
6306 (extended_mips16_next_pc): Update according to change to
6307 mips16_to_32_reg.
6308 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6309 code.
6310 (mips16_scan_prologue): Update mips_fetch_instruction call.
6311 Update according to change to mips16_to_32_reg.
6312 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6313 (mips_insn16_frame_base_sniffer): Likewise.
6314 (micromips_decode_imm9): New function.
6315 (micromips_scan_prologue): Likewise.
6316 (mips_micro_frame_cache): Likewise.
6317 (mips_micro_frame_this_id): Likewise.
6318 (mips_micro_frame_prev_register): Likewise.
6319 (mips_micro_frame_sniffer): Likewise.
6320 (mips_micro_frame_unwind): New variable.
6321 (mips_micro_frame_base_address): New function.
6322 (mips_micro_frame_base): New variable.
6323 (mips_micro_frame_base_sniffer): New function.
6324 (mips32_scan_prologue): Update mips_fetch_instruction call.
6325 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6326 rather than for MIPS16.
6327 (mips_insn32_frame_base_sniffer): Likewise.
6328 (mips_addr_bits_remove): Handle microMIPS code.
6329 (deal_with_atomic_sequence): Rename to...
6330 (mips_deal_with_atomic_sequence): ... this. Update the type
6331 of the variable used to hold an instruction. Remove the ISA bit
6332 check. Update mips_fetch_instruction call.
6333 (micromips_deal_with_atomic_sequence): New function.
6334 (deal_with_atomic_sequence): Likewise.
6335 (mips_about_to_return): Handle microMIPS code. Update
6336 mips_fetch_instruction call.
6337 (heuristic_proc_start): Check for the standard MIPS ISA rather
6338 than for MIPS16. Update mips_pc_is_mips16 and
6339 mips_fetch_instruction calls. Handle microMIPS code.
6340 (mips_push_dummy_code): Handle microMIPS code.
6341 (mips_eabi_push_dummy_call): Likewise.
6342 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6343 (mips_o64_push_dummy_call): Handle microMIPS code.
6344 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6345 (is_delayed): Remove function.
6346 (mips_single_step_through_delay): Replace the call to is_delayed
6347 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6348 Handle microMIPS code.
6349 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6350 microMIPS code.
6351 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6352 call.
6353 (micromips_in_function_epilogue_p): New function.
6354 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6355 call.
6356 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6357 Handle microMIPS.
6358 (gdb_print_insn_mips): Likewise.
6359 (mips_breakpoint_from_pc): Likewise.
6360 (mips_remote_breakpoint_from_pc): New function.
6361 (mips32_instruction_has_delay_slot): Simplify making use of the
6362 updated mips_fetch_instruction interface.
6363 (micromips_instruction_has_delay_slot): New function.
6364 (mips16_instruction_has_delay_slot): Simplify making use of the
6365 updated mips_fetch_instruction interface.
6366 (mips_adjust_breakpoint_address): Check for the standard MIPS
6367 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6368 calls. Handle microMIPS code.
6369 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6370 (mips_skip_trampoline_code): Handle microMIPS code.
6371 (global_mips_compression): New function.
6372 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6373 file flags. Register the microMIPS remote breakpoint handler
6374 and heuristic frame unwinder.
6375 (show_mips_compression): New function.
6376 (_initialize_mips_tdep): Add the "set mips compression" and
6377 "show mips compression" commands.
6378
6379 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6380
6381 * ada-lang.c:
6382 * ada-tasks.c:
6383 * ada-varobj.c:
6384 * amd64-darwin-tdep.c:
6385 * arm-symbian-tdep.c:
6386 * arm-tdep.c:
6387 * avr-tdep.c:
6388 * ax-gdb.c:
6389 * bfin-linux-tdep.c:
6390 * breakpoint.c:
6391 * c-valprint.c:
6392 * cli/cli-cmds.c:
6393 * coffread.c:
6394 * cp-support.c:
6395 * cris-tdep.c:
6396 * dwarf2-frame-tailcall.c:
6397 * dwarf2-frame.c:
6398 * dwarf2expr.c:
6399 * dwarf2loc.c:
6400 * dwarf2read.c:
6401 * elfread.c:
6402 * eval.c:
6403 * expprint.c:
6404 * f-valprint.c:
6405 * frv-tdep.c:
6406 * h8300-tdep.c:
6407 * hppa-hpux-tdep.c:
6408 * hppa-tdep.c:
6409 * hppanbsd-tdep.c:
6410 * i386-nto-tdep.c:
6411 * i386-tdep.c:
6412 * i387-tdep.c:
6413 * ia64-tdep.c:
6414 * jit.c:
6415 * linespec.c:
6416 * linux-tdep.c:
6417 * lm32-tdep.c:
6418 * m2-valprint.c:
6419 * m32c-tdep.c:
6420 * m32r-rom.c:
6421 * m32r-tdep.c:
6422 * m68k-tdep.c:
6423 * m68klinux-tdep.c:
6424 * mi/mi-main.c:
6425 * microblaze-tdep.c:
6426 * mips-linux-tdep.c:
6427 * mips-tdep.c:
6428 * mn10300-tdep.c:
6429 * p-valprint.c:
6430 * parse.c:
6431 * ppc-linux-tdep.c:
6432 * ppc-sysv-tdep.c:
6433 * printcmd.c:
6434 * python/py-finishbreakpoint.c:
6435 * python/py-inferior.c:
6436 * python/py-infthread.c:
6437 * python/py-type.c:
6438 * python/python.c:
6439 * remote-fileio.c:
6440 * remote-m32r-sdi.c:
6441 * remote-mips.c:
6442 * reverse.c:
6443 * rl78-tdep.c:
6444 * rs6000-aix-tdep.c:
6445 * rs6000-tdep.c:
6446 * s390-tdep.c:
6447 * score-tdep.c:
6448 * sh64-tdep.c:
6449 * skip.c:
6450 * solib-darwin.c:
6451 * solib-dsbt.c:
6452 * solib-frv.c:
6453 * sparc-tdep.c:
6454 * spu-multiarch.c:
6455 * spu-tdep.c:
6456 * stack.c:
6457 * symfile.c:
6458 * symtab.c:
6459 * tic6x-tdep.c:
6460 * tracepoint.c:
6461 * v850-tdep.c:
6462 * valarith.c:
6463 * valprint.c:
6464 * value.c:
6465 * xcoffread.c:
6466 * xtensa-tdep.c:
6467 * ada-lang.c:
6468 * ada-tasks.c:
6469 * ada-varobj.c:
6470 * amd64-darwin-tdep.c:
6471 * arm-symbian-tdep.c:
6472 * arm-tdep.c: Delete unused variables.
6473
6474 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6475
6476 Rename $ddir to $datadir.
6477 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6478 * auto-load.c (auto_load_safe_path_vec_update)
6479 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6480 * configure: Regenerate.
6481 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6482 Likewise. Remove the 'use $ddir' help string.
6483
6484 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6485
6486 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6487 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6488
6489 2012-05-18 Tom Tromey <tromey@redhat.com>
6490
6491 PR exp/13907:
6492 * valprint.h (struct value_print_options) <symbol_print>: New
6493 field.
6494 * valprint.c (user_print_options): Add default for symbol_print.
6495 (show_symbol_print): New function.
6496 (generic_val_print): Respect symbol_print.
6497 (_initialize_valprint): Add "print symbol" setting.
6498 * f-valprint.c (f_val_print): Respect symbol_print.
6499 * c-valprint.c (c_val_print): Respect symbol_print.
6500 * NEWS: Update.
6501 * printcmd.c (print_address_symbolic): Return int. Ignore some
6502 zero-size symbols.
6503 (print_address_demangle): Return int.
6504 * defs.h: (print_address_symbolic): Return int.
6505 * value.h (print_address_demangle): Return int.
6506
6507 2012-05-18 Tom Tromey <tromey@redhat.com>
6508
6509 * valprint.c (val_print_string): Don't print leading space.
6510 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6511 print space before string or vtbl.
6512 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6513 before string.
6514 * jv-valprint.c (java_value_print): Print space before string.
6515 * go-valprint.c (print_go_string): Print space before string.
6516 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6517 space before string.
6518 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6519 space before string or vtbl.
6520 * auxv.c (fprint_target_auxv): Print space after address.
6521
6522 2012-05-18 Tom Tromey <tromey@redhat.com>
6523
6524 * printcmd.c (print_address_demangle): Remove special case for 0.
6525
6526 2012-05-18 Tom Tromey <tromey@redhat.com>
6527
6528 * printcmd.c (print_address_demangle): Add 'opts' argument.
6529 * p-valprint.c (pascal_val_print): Update.
6530 * jv-valprint.c (java_val_print): Update.
6531 * value.h: Update.
6532 * valprint.c (generic_val_print): Update.
6533 (print_function_pointer_address): Add 'options' argument. Remove
6534 'addressprint' argument. Update.
6535 * m2-valprint.c (print_unpacked_pointer): Update.
6536 * gnu-v3-abi.c (print_one_vtable): Update.
6537 (gnuv3_print_method_ptr): Update.
6538 * f-valprint.c (f_val_print): Update.
6539 * cp-valprint.c (cp_print_value_fields): Update.
6540 * valprint.h (print_function_pointer_address): Update.
6541 * c-valprint.c (c_val_print): Update.
6542
6543 2012-05-18 Tom Tromey <tromey@redhat.com>
6544
6545 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6546 directly corresponding to the found psymtab.
6547 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6548 (dw2_find_pc_sect_symtab): Use it.
6549 * block.h (blockvector_contains_pc): Declare.
6550 * block.c (find_block_in_blockvector): New function.
6551 (blockvector_for_pc_sect): Use it.
6552 (blockvector_contains_pc): New function.
6553
6554 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6555
6556 * mips-tdep.h (mips_write_pc): New prototype.
6557 * mips-tdep.c (mips_write_pc): Make external, add description.
6558 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6559 add description.
6560
6561 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6562
6563 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6564 mips_regnum->pc.
6565 (mips_unwind_pc, mips_write_pc): Likewise.
6566 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6567 gdbarch_read_pc.
6568
6569 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6570
6571 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6572 proc_warn, proc_error, proc_get_status, proc_flags,
6573 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6574 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6575 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6576 proc_stop_process, proc_wait_for_stop, proc_run_process,
6577 proc_set_traced_signals, proc_set_traced_faults,
6578 proc_set_traced_sysentry, proc_set_traced_sysexit,
6579 proc_set_held_signals, proc_get_held_signals,
6580 proc_get_traced_signals, proc_get_traced_faults,
6581 proc_get_traced_sysentry, proc_get_traced_sysexit,
6582 proc_clear_current_fault, proc_set_current_signal,
6583 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6584 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6585 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6586 proc_get_current_thread, proc_get_current_thread,
6587 proc_get_current_thread, proc_update_threads,
6588 proc_update_threads, proc_update_threads, proc_update_threads,
6589 proc_iterate_over_threads, procfs_find_new_threads,
6590 procfs_pid_to_str): Make static. Remove advance declaration.
6591 (proc_cursig): Make static. Conditionalized defintion on
6592 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6593 (proc_syscall, proc_set_kill_on_last_close,
6594 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6595 proc_get_pending_signals, proc_get_signal_actions,
6596 proc_trace_signal, proc_ignore_signal): Delete.
6597
6598 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6599
6600 * coffread.c (cs_section_address): Passing proper argument for
6601 `bfd_get_section_vma'.
6602 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6603 `bfd_get_section_flags'.
6604 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6605 `bfd_get_section_vma'.
6606
6607 2012-05-16 Tom Tromey <tromey@redhat.com>
6608
6609 PR macros/13205:
6610 * macrotab.h: (macro_define_special): Declare.
6611 (enum macro_special_kind): New.
6612 (struct macro_definition) <argc, replacement>: Update comments.
6613 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6614 (macro_define_object_internal): New function.
6615 (macro_define_object): Use it.
6616 (macro_define_special): New function.
6617 (fixup_definition): New function.
6618 (macro_lookup_definition, foreach_macro_in_scope)
6619 (foreach_macro): Use fixup_definition.
6620 * macroexp.h (macro_stringify): Declare.
6621 * macroexp.c (free_buffer_return_text): New function.
6622 (stringify): Constify "arg".
6623 (macro_stringify): New function.
6624 * dwarf2read.c (macro_start_file): Call macro_define_special.
6625
6626 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6627 Maciej W. Rozycki <macro@mips.com>
6628
6629 * breakpoint.h (bp_location): Add related_address member.
6630 * inferior.h (get_return_value): Take a pointer to struct value
6631 instead of struct type for the function requested.
6632 * value.h (using_struct_return): Likewise.
6633 * gdbarch.sh (return_value): Take a pointer to struct value
6634 instead of struct type for the function requested.
6635 * breakpoint.c (set_breakpoint_location_function): Initialize
6636 related_address for bp_gnu_ifunc_resolver breakpoints.
6637 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6638 requested function's address to gdbarch_return_value.
6639 * eval.c (evaluate_subexp_standard): Pass the requested
6640 function's address to using_struct_return.
6641 * infcall.c (call_function_by_hand): Pass the requested
6642 function's address to using_struct_return and
6643 gdbarch_return_value.
6644 * infcmd.c (get_return_value): Take a pointer to struct value
6645 instead of struct type for the function requested.
6646 (print_return_value): Update accordingly.
6647 (finish_command_continuation): Likewise.
6648 * stack.c (return_command): Pass the requested function's
6649 address to using_struct_return and gdbarch_return_value.
6650 * value.c (using_struct_return): Take a pointer to struct value
6651 instead of struct type for the function requested. Pass the
6652 requested function's address to gdbarch_return_value.
6653 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6654 New function_value member, replacing function_type.
6655 (bpfinishpy_dealloc): Update accordingly.
6656 (bpfinishpy_pre_stop_hook): Likewise.
6657 (bpfinishpy_init): Likewise. Record the requested function's
6658 address.
6659 * mips-tdep.c (mips_fval_reg): New enum.
6660 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6661 words put in GP registers.
6662 (mips_o64_push_dummy_call): Update a comment.
6663 (mips_o32_return_value): Take a pointer to struct value instead
6664 of struct type for the function requested and use it to check if
6665 using the MIPS16 calling convention. Return the designated
6666 general purpose registers for floating-point values returned in
6667 MIPS16 mode.
6668 (mips_o64_return_value): Likewise.
6669 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6670 (ppc_sysv_abi_broken_return_value): Likewise.
6671 (ppc64_sysv_abi_return_value): Likewise.
6672 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6673 value instead of struct type for the function requested.
6674 * amd64-tdep.c (amd64_return_value): Likewise.
6675 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6676 * arm-tdep.c (arm_return_value): Likewise.
6677 * avr-tdep.c (avr_return_value): Likewise.
6678 * bfin-tdep.c (bfin_return_value): Likewise.
6679 * cris-tdep.c (cris_return_value): Likewise.
6680 * frv-tdep.c (frv_return_value): Likewise.
6681 * h8300-tdep.c (h8300_return_value): Likewise.
6682 (h8300h_return_value): Likewise.
6683 * hppa-tdep.c (hppa32_return_value): Likewise.
6684 (hppa64_return_value): Likewise.
6685 * i386-tdep.c (i386_return_value): Likewise.
6686 * ia64-tdep.c (ia64_return_value): Likewise.
6687 * iq2000-tdep.c (iq2000_return_value): Likewise.
6688 * lm32-tdep.c (lm32_return_value): Likewise.
6689 * m32c-tdep.c (m32c_return_value): Likewise.
6690 * m32r-tdep.c (m32r_return_value): Likewise.
6691 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6692 * m68k-tdep.c (m68k_return_value): Likewise.
6693 (m68k_svr4_return_value): Likewise.
6694 * m88k-tdep.c (m88k_return_value): Likewise.
6695 * mep-tdep.c (mep_return_value): Likewise.
6696 * microblaze-tdep.c (microblaze_return_value): Likewise.
6697 * mn10300-tdep.c (mn10300_return_value): Likewise.
6698 * moxie-tdep.c (moxie_return_value): Likewise.
6699 * mt-tdep.c (mt_return_value): Likewise.
6700 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6701 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6702 (ppc_sysv_abi_broken_return_value): Likewise.
6703 (ppc64_sysv_abi_return_value): Likewise.
6704 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6705 * rl78-tdep.c (rl78_return_value): Likewise.
6706 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6707 * rx-tdep.c (rx_return_value): Likewise.
6708 * s390-tdep.c (s390_return_value): Likewise.
6709 * score-tdep.c (score_return_value): Likewise.
6710 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6711 (sh_return_value_fpu): Likewise.
6712 * sh64-tdep.c (sh64_return_value): Likewise.
6713 * sparc-tdep.c (sparc32_return_value): Likewise.
6714 * sparc64-tdep.c (sparc64_return_value): Likewise.
6715 * spu-tdep.c (spu_return_value): Likewise.
6716 * tic6x-tdep.c (tic6x_return_value): Likewise.
6717 * v850-tdep.c (v850_return_value): Likewise.
6718 * vax-tdep.c (vax_return_value): Likewise.
6719 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6720 * xtensa-tdep.c (xtensa_return_value): Likewise.
6721 * gdbarch.c: Regenerate.
6722 * gdbarch.h: Regenerate.
6723
6724 2012-05-15 Tom Tromey <tromey@redhat.com>
6725
6726 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6727
6728 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6729
6730 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6731 of command in two error message.
6732
6733 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6734
6735 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6736
6737 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6738
6739 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6740
6741 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6742
6743 * NEWS (show auto-load scripts-directory): Add forgotten command.
6744
6745 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6746
6747 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6748 parameters.
6749
6750 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6751
6752 * amd64-tdep.c: Include features/i386/x32.c and
6753 features/i386/x32-avx.c.
6754 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6755 initialize_tdesc_x32_avx.
6756
6757 2012-05-14 Stan Shebs <stan@codesourcery.com>
6758
6759 Add dynamic printf.
6760 * breakpoint.h (enum bptype): New type bp_dprintf.
6761 (struct breakpoint): New field extra_string.
6762 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6763 (create_breakpoint): Add extra_string arg.
6764 * breakpoint.c (dprintf_breakpoint_ops): New.
6765 (is_breakpoint): Add bp_dprintf.
6766 (bpstat_what): Add dprintf case.
6767 (bptype_string): Ditto.
6768 (print_one_breakpoint_location): Ditto.
6769 (init_bp_location): Ditto.
6770 (bkpt_print_mention): Ditto.
6771 (dprintf_style_enums): New array.
6772 (dprintf_style): New global.
6773 (dprintf_function): New global.
6774 (dprintf_channel): New global.
6775 (update_dprintf_command_list): New function.
6776 (update_dprintf_commands): New function.
6777 (init_breakpoint_sal): Add extra_string argument, handle it.
6778 (create_breakpoint_sal): Add extra_string argument.
6779 (create_breakpoints_sal): Add extra_string argument, update callers.
6780 (find_condition_and_thread): Add extra argument.
6781 (create_breakpoint): Add extra_string argument, record it.
6782 (dprintf_command): New function.
6783 (break_command_1): Add arg to create_breakpoint call.
6784 (handle_gnu_v3_exceptions): Ditto.
6785 (trace_command): Ditto.
6786 (ftrace_command): Ditto.
6787 (strace_command): Ditto.
6788 (bkpt_print_mention): Add dprintf case.
6789 (create_breakpoint_sal_default): Add extra_string argument.
6790 (_initialize_breakpoint): Add new commands.
6791 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6792 * python/py-breakpoint.c (bppy_init): Ditto.
6793 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6794
6795 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6796
6797 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6798
6799 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6800
6801 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6802 unsigned long long.
6803
6804 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6805
6806 Add a new function gdb.find_pc_line to the Python API.
6807 * NEWS (Python Scripting): Add entry about the new function.
6808 * python/python.c (gdbpy_find_pc_line): New function which
6809 implements gdb.find_pc_line.
6810 (GdbMethods): Add entry for the new function.
6811
6812 2012-05-12 Pedro Alves <palves@redhat.com>
6813
6814 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6815 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6816
6817 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6818
6819 * inferior.c: Include completer.h
6820 (initialize_inferiors): Set completer of add-inferior to
6821 filename_completer.
6822
6823 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6824
6825 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6826 gdbarch_ptr_bit for x32 core dump.
6827
6828 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6829
6830 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6831 and features/i386/x32-avx-linux.c.
6832
6833 2012-05-11 Stan Shebs <stan@codesourcery.com>
6834 Kwok Cheung Yeung <kcy@codesourcery.com>
6835
6836 * NEWS: Describe new info os commands.
6837 * common/linux-osdata.c (PID_T, TIME_T): Define.
6838 (MAX_PID_T_STRLEN): New.
6839 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6840 MAX_PID_T_STRLEN.
6841 (command_from_pid): Add comment. Change to use PID_T.
6842 (commandline_from_pid): Change to use PID_T.
6843 (user_from_pid): Add comment.
6844 (get_process_owner): Add comment. Change to use PID_T and
6845 MAX_PID_T_STRLEN.
6846 (get_number_of_cpu_cores): Add comment.
6847 (get_cores_used_by_process): Add comment. Change to use PID_T and
6848 MAX_PID_T_STRLEN.
6849 (linux_xfer_osdata_processes): Change to use PID_T and
6850 MAX_PID_T_STRLEN.
6851 (compare_processes): New function.
6852 (linux_xfer_osdata_processgroups): New function.
6853 (linux_xfer_osdata_threads): Change to use PID_T.
6854 (linux_xfer_osdata_fds): New function.
6855 (format_socket_state, print_sockets): New functions.
6856 (union socket_addr): New union.
6857 (linux_xfer_osdata_isockets): New function.
6858 (time_from_time_t, group_from_gid): New functions.
6859 (linux_xfer_osdata_shm): New function.
6860 (linux_xfer_osdata_sem): New function.
6861 (linux_xfer_osdata_msg): New function.
6862 (linux_xfer_osdata_modules): New function.
6863 (osdata_table): Add new entries.
6864 * common/buffer.c (buffer_xml_printf): Add support for long and
6865 long long format specifiers.
6866
6867 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6868
6869 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6870 (tdesc_x32_avx_linux): Likewise.
6871
6872 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6873
6874 Implement multi-component --with-auto-load-dir.
6875 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6876 entries.
6877 (--with-auto-load-safe-path): Update the default value description.
6878 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6879 New.
6880 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6881 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6882 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6883 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6884 "set auto-load scripts-directory".
6885 * config.in: Regenerate.
6886 * configure: Regenerate.
6887 * configure.ac (--with-auto-load-dir): New configure option.
6888 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6889
6890 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6891
6892 Provide $ddir substitution for --with-auto-load-safe-path.
6893 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6894 entries.
6895 * auto-load.c: Include observer.h.
6896 (auto_load_safe_path_vec_update): Call substitute_path_component for
6897 each component. New variable ddir_subst.
6898 (auto_load_gdb_datadir_changed): New function.
6899 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6900 AUTO_LOAD_SAFE_PATH. New comment.
6901 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6902 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6903 * config.in: Regenerate.
6904 * configure: Regenerate.
6905 * configure.ac (--auto-load-safe-path): Rename
6906 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6907 GDB_DATADIR/auto-load.
6908 * defs.h (substitute_path_component): New declaration.
6909 * top.c: Include observer.h.
6910 (set_gdb_datadir): New function.
6911 (init_main): Install it for "set data-directory".
6912 * utils.c (substitute_path_component): New function.
6913
6914 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6915
6916 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6917 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6918 DEBUG_FILE_DIRECTORY. Handle multiple components of
6919 DEBUG_FILE_DIRECTORY.
6920
6921 2012-05-10 Tom Tromey <tromey@redhat.com>
6922
6923 * dwarf2read.c (recursively_write_psymbols): New function.
6924 (write_psymtabs_to_index): Use it.
6925
6926 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6927 field.
6928 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6929 (load_partial_comp_unit): Update.
6930 (queue_comp_unit): Add argument 'pretend_language'.
6931 (process_queue): Update.
6932 (psymtab_to_symtab_1): Skip dependencies that have a user.
6933 (load_partial_comp_unit_reader): Give meaning to the 'data'
6934 argument.
6935 (load_full_comp_unit): Add 'pretend_language' argument.
6936 (process_full_comp_unit): Add 'pretend_language' argument. Set
6937 language on CU.
6938 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6939 Update.
6940 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6941 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6942 Update.
6943 (prepare_one_comp_unit): Add 'pretend_language' argument.
6944
6945 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6946 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6947 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6948 (dw2_do_instantiate_symtab): Check whether symtab was read in
6949 before queueing.
6950 (dw2_instantiate_symtab): Add assertion. Call
6951 process_cu_includes.
6952 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6953 (partial_symtab_p): New typedef.
6954 (set_partial_user): New function.
6955 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6956 (scan_partial_symbols): Add imported CU to imported_symtabs.
6957 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6958 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6959 (get_symtab, recursively_compute_inclusions)
6960 (compute_symtab_includes, process_cu_includes)
6961 (process_imported_unit_die): New functions.
6962 (process_die) <DW_TAG_imported_unit>: New case.
6963 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6964
6965 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6966 comment.
6967 (struct partial_die_info) <locdesc>: Remove.
6968 <d>: New field.
6969 (process_psymtab_comp_unit): Add 'read_partial' argument.
6970 Update.
6971 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6972 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6973 (add_partial_symbol): Update.
6974 (process_die): Handle DW_TAG_partial_unit.
6975 (read_file_scope): Update comment.
6976 (load_partial_dies): Handle DW_TAG_imported_unit.
6977 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6978 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6979
6980 2012-05-10 Tom Tromey <tromey@redhat.com>
6981
6982 * cc-with-dwz.sh: New file.
6983
6984 2012-05-10 Tom Tromey <tromey@redhat.com>
6985
6986 * symtab.h (struct symtab) <includes, user>: New fields.
6987 * block.h (struct block_iterator) <d, idx, which>: New fields.
6988 * block.c (initialize_block_iterator, find_iterator_symtab)
6989 (block_iterator_step, block_iter_name_step)
6990 (block_iter_match_step): New functions.
6991 (block_iterator_first, block_iterator_next)
6992 (block_iter_name_first, block_iter_name_next)
6993 (block_iter_match_first, block_iter_match_next): Rewrite.
6994 (get_block_symtab): New function.
6995
6996 2012-05-10 Tom Tromey <tromey@redhat.com>
6997
6998 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6999 set_block_symtab.
7000 * jit.c (finalize_symtab): Use allocate_global_block,
7001 set_block_symtab.
7002 * buildsym.c (finish_block_internal): New function, from old
7003 finish_block.
7004 (finish_block): Rewrite.
7005 (end_symtab): Use finish_block_internal, set_block_symtab.
7006 * block.h (struct global_block): New.
7007 (allocate_global_block, set_block_symtab): Declare.
7008 * block.c (allocate_global_block, set_block_symtab): New
7009 functions.
7010
7011 2012-05-10 Tom Tromey <tromey@redhat.com>
7012
7013 * psymtab.c (partial_map_expand_apply): Add assertion.
7014 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7015 (psymtab_to_symtab): Find unshared psymtab.
7016 (dump_psymtab): Print including psymtabs.
7017 (recursively_search_psymtabs): New function.
7018 (expand_symtabs_matching_via_partial): Use it.
7019 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7020 fields.
7021 (enum psymtab_search_status): New.
7022
7023 2012-05-10 Tom Tromey <tromey@redhat.com>
7024
7025 * tracepoint.c (scope_info): Update.
7026 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7027 (find_pc_sect_symtab, search_symbols)
7028 (default_make_symbol_completion_list_break_on)
7029 (make_file_symbol_completion_list): Update.
7030 * symmisc.c (dump_symtab_1): Update.
7031 * stack.c (print_frame_args, iterate_over_block_locals)
7032 (print_frame_labels, iterate_over_block_arg_vars): Update.
7033 * python/py-block.c (block_object) <dict>: Remove.
7034 <block>: New field.
7035 <iter>: Change type.
7036 (blpy_iter): Update.
7037 (blpy_block_syms_iternext): Update.
7038 * psymtab.c (map_block): Use block iterators.
7039 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7040 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7041 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7042 * infrun.c (check_exception_resume): Update.
7043 * cp-support.c (make_symbol_overload_list_block): Update.
7044 * coffread.c (patch_opaque_types): Update.
7045 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7046 * block.h (struct block_iterator): New.
7047 (block_iterator_first, block_iterator_next, block_iter_name_first)
7048 (block_iter_name_next, block_iter_match_first)
7049 (block_iter_match_next): Declare.
7050 (ALL_BLOCK_SYMBOLS): Redefine.
7051 * block.c (block_iterator_first, block_iterator_next)
7052 (block_iter_name_first, block_iter_name_next)
7053 (block_iter_match_first, block_iter_match_next): New functions.
7054 * ada-lang.c (ada_add_block_symbols)
7055 (ada_make_symbol_completion_list): Use block iterator.
7056
7057 2012-05-10 Tom Tromey <tromey@redhat.com>
7058
7059 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7060 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7061 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7062 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7063 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7064 Update.
7065
7066 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7067
7068 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7069 print-file-var-lib2.c, print-file-var-main.c and
7070 print-file-var.exp (located in gdb/testsuite/gdb.base).
7071
7072 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7073
7074 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7075 try locating the symbol in the symbol's own objfile first, before
7076 extending the search to all objfiles.
7077 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7078 out of lookup_symbol_aux_symtabs.
7079 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7080 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7081 Do not search EXCLUDE_OBJFILE.
7082 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7083 (lookup_symbol_global): Search for matches in the block's objfile
7084 first, before searching all other objfiles.
7085
7086 2012-05-10 Tristan Gingold <gingold@adacore.com>
7087
7088 * printcmd.c (set_command): Add pre/post inc/dec.
7089
7090 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7091
7092 * gdb.1: Document -ex option.
7093
7094 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7095
7096 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7097 * inferior.h (AT_SYMBOL): Delete.
7098
7099 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7100
7101 * mips-tdep.c (mips_push_dummy_code): New function.
7102 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7103 ON_STACK and install mips_push_dummy_code as our gdbarch
7104 push_dummy_code routine.
7105
7106 2012-05-09 Pedro Alves <palves@redhat.com>
7107
7108 * target.c (set_maintenance_target_async_permitted): Rename to ...
7109 (set_target_async_command): ... this.
7110 (show_maintenance_target_async_permitted): Rename to ...
7111 (show_target_async_command): ... this.
7112 (initialize_targets): Adjust.
7113
7114 2012-05-08 Doug Evans <dje@google.com>
7115
7116 * go-exp.y (classify_name): Add missing assignment of fields of
7117 yylval.ssym.
7118
7119 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7120
7121 Display the ">" prompt in interactive mode while reading canned
7122 commands, even when the current interpreter is MI.
7123
7124 * interps.c (interp_set_temp): New function.
7125
7126 * interps.h (interp_set_temp): Add prototype.
7127
7128 * cli/cli-script.c (restore_interp): New cleanup function.
7129 (read_command_lines): Temporarily override the current interpreter
7130 with CLI and arrange for restoring the original one.
7131
7132 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7133
7134 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7135
7136 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7137
7138 * probe.c (parse_probes): Move conditional to check for
7139 debuginfo files from here...
7140 * stap-probe.c (stap_get_probes): ... to here.
7141
7142 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7143 H.J. Lu <hongjiu.lu@intel.com>
7144
7145 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7146 `movl %esp, %ebp' for the X32 ABI.
7147
7148 2012-05-07 Tom Tromey <tromey@redhat.com>
7149
7150 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7151 get_DW_TAG_name.
7152 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7153 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7154 (dwarf_stack_op_name): Remove.
7155 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7156 (decode_locdesc): Use get_DW_OP_name.
7157 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7158 (dwarf2_compile_expr_to_ax): Likewise.
7159 (disassemble_dwarf_expression): Likewise.
7160 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7161
7162 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7163
7164 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7165 (sh_linux_sigtramp_cache): New function.
7166 (sh_linux_sigreturn_init): New function.
7167 (sh_linux_rt_sigreturn_init): New function.
7168 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7169 patterns.
7170 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7171 syscall codes.
7172 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7173 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7174 (sh_linux_init_abi): Add init calls to register new tramp_frame
7175 definitions under 32-bit SH, update comments.
7176
7177 2012-05-07 Pedro Alves <palves@redhat.com>
7178
7179 PR gdb/10952
7180
7181 * amd64-linux-tdep.c: Include glibc-tdep.h.
7182 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7183 gdbarch_skip_solib_resolver callback.
7184
7185 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7186
7187 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7188 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7189 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7190 (add_auto_load_safe_path): Change the error message.
7191 (_initialize_auto_load): Change the "safe-path" help text.
7192 * configure: Regenerate
7193 * configure.ac (--without-auto-load-safe-path): Set
7194 WITH_AUTO_LOAD_SAFE_PATH to /.
7195
7196 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7197
7198 * stap-probe.h: Do not include unecessary `probe.h'.
7199
7200 2012-05-05 Alan Modra <amodra@gmail.com>
7201
7202 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7203 bfd_und_section_ptr.
7204 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7205 and bfd_com_section_ptr.
7206
7207 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7208
7209 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7210
7211 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7212
7213 * windows-nat.h (segment_register_p_ftype): New typedef.
7214 (windows_set_segment_register_p): Add declaration.
7215 * windows-nat.c (segment_register_p): New static global.
7216 (windows_set_segment_register_p): New function.
7217 (do_windows_fetch_inferior_registers): Add special handling
7218 for segment registers.
7219 * amd64-windows-nat.c: #include "amd64-tdep.h".
7220 (amd64_windows_segment_register_p): New function.
7221 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7222 * i386-windows-nat.c: #include "i386-tdep.h".
7223 (i386_windows_segment_register_p): New function.
7224 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7225
7226 2012-05-04 Tristan Gingold <gingold@adacore.com>
7227
7228 * printcmd.c (set_command): Emit a warning if the expression is not
7229 an assignment.
7230
7231 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7232
7233 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7234 Make static.
7235
7236 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7237
7238 * stap-probe.c (stap_is_operator): Change declaration.
7239 (stap_get_opcode): Change return value.
7240 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7241 `stap_parse_argument_1'.
7242
7243 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7244
7245 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7246 debug log.
7247
7248 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7249
7250 Add two new methods global_block and static_block to gdb.Symtab
7251 objects.
7252 * NEWS (Python scripting): Add entry about the new methods.
7253 * python/py-symtab.c (stpy_global_block): New function which
7254 implements the gdb.Symtab.global_block() method.
7255 (stpy_static_block): New function which implements the
7256 gdb.Symtab.static_block() method.
7257 (symtab_object_methods): Add entries for the two new methods.
7258
7259 2012-05-03 Doug Evans <dje@google.com>
7260
7261 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7262 files.
7263
7264 2012-05-03 Yao Qi <yao@codesourcery.com>
7265
7266 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7267 space.
7268 (i386_process_record): Ditto.
7269
7270 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7271
7272 * infcall.c (unwind_on_signal_p): Make static.
7273
7274 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7275
7276 * sol-thread.c (solaris_pid_to_str): Make static.
7277 (_initialize_sol_thread): Add prototype.
7278
7279 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7280
7281 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7282
7283 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7284
7285 * MAINTAINERS: Remove myself.
7286
7287 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7288
7289 Fix --without-auto-load-safe-path for MS-Windows host platform.
7290 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7291
7292 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7293
7294 * gdb_curses.h: Undefine KEY_EVENT before including curses
7295 headers. Move "#undef MOUSE_MOVED" before any curses header
7296 inclusion.
7297
7298 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7299
7300 * features/i386/i386-mmx-linux.c: Regenerate.
7301 * features/rs6000/powerpc-32.c: Likewise.
7302 * features/rs6000/powerpc-32l.c: Likewise.
7303 * features/rs6000/powerpc-403.c: Likewise.
7304 * features/rs6000/powerpc-403gc.c: Likewise.
7305 * features/rs6000/powerpc-405.c: Likewise.
7306 * features/rs6000/powerpc-505.c: Likewise.
7307 * features/rs6000/powerpc-601.c: Likewise.
7308 * features/rs6000/powerpc-602.c: Likewise.
7309 * features/rs6000/powerpc-603.c: Likewise.
7310 * features/rs6000/powerpc-604.c: Likewise.
7311 * features/rs6000/powerpc-64.c: Likewise.
7312 * features/rs6000/powerpc-64l.c: Likewise.
7313 * features/rs6000/powerpc-750.c: Likewise.
7314 * features/rs6000/powerpc-860.c: Likewise.
7315 * features/rs6000/powerpc-e500.c: Likewise.
7316 * features/rs6000/powerpc-e500l.c: Likewise.
7317 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7318 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7319 * features/rs6000/rs6000.c: Likewise.
7320
7321 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7322
7323 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7324 variable.
7325 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7326 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7327 (stap_parse_argument) <e>: Likewise.
7328 (handle_stap_probe) <byte_order>: Likewise.
7329
7330 2012-04-30 Doug Evans <dje@google.com>
7331
7332 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7333 init_and_read_dies_worker. All callers updated.
7334 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7335 replaced with init_cutu_and_read_dies.
7336 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7337 (find_partial_die): Remove FIXME. Don't free current CU.
7338
7339 2012-04-30 Sterling Augustine <saugustine@google.com>
7340
7341 * contrib: New directory.
7342 * contrib/test_pubnames_and_indexes.py: New file.
7343
7344 2012-04-30 Doug Evans <dje@google.com>
7345
7346 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7347 All callers updated.
7348 (init_cu_die_reader): Verify the section is non-empty.
7349 (dwarf_decode_line_header): Don't dereference section->asection
7350 until we know the section is present.
7351
7352 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7353
7354 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7355 probes.
7356
7357 2012-04-29 Yao Qi <yao@codesourcery.com>
7358
7359 * gdb-code-style.el: New hook gdb-markup-hook
7360 and gdb-comment-hook.
7361
7362 2012-04-28 Doug Evans <dje@google.com>
7363
7364 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7365 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7366 objfile->obfd.
7367 * symfile.h (dwarf2_debug_sections): New member addr.
7368 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7369 (ctx_no_get_addr_index): New function.
7370 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7371 (ctx_no_get_addr_index): Declare.
7372 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7373 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7374 (dwarf_expr_ctx_funcs): Update.
7375 (needs_get_addr_index): New function.
7376 (needs_frame_ctx_funcs): Update.
7377 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7378 * dwarf2read.c: #include "gdbcore.h".
7379 (dwarf2_per_objfile): New members addr, dwo_files.
7380 (dwarf2_elf_names): Add entry for addr.
7381 (struct dwo_section_names): New type.
7382 (dwo_section_names): New static global.
7383 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7384 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7385 old debug_types_section member updated to use this.
7386 Rename member debug_types_section to info_or_types_section,
7387 all uses updated.
7388 (signatured_type): Rename member type_offset to type_offset_in_tu,
7389 all uses updated. New member type_offset_in_section.
7390 (struct dwo_sections): New type.
7391 (struct dwo_unit): New type.
7392 (struct dwo_file): New type.
7393 (die_reader_specs): New member dwo_file.
7394 (dwarf2_locate_sections): Watch for .debug_addr.
7395 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7396 (dwarf2_read_section): Get bfd of section from bfd's asection,
7397 instead of objfile.
7398 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7399 (create_signatured_type_table_from_index): Initialize
7400 sig_type->info_or_types_section.
7401 (dw2_get_file_names): Statement lists for type units with DWO files
7402 live in the DWO file.
7403 (create_debug_types_hash_table): New function.
7404 (create_all_type_units): Rewrite.
7405 (init_cu_die_reader): New arg dwo_file, all callers updated.
7406 (init_and_read_dies_worker): Get section from
7407 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7408 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7409 continue reading the CU/TU from there.
7410 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7411 updated. Get section from this_cu->info_or_types_section.
7412 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7413 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7414 DW_FORM_GNU_str_index.
7415 (hash_dwo_file, eq_dwo_file): New functions.
7416 (allocate_dwo_file_hash_table): New function.
7417 (hash_dwo_unit, eq_dwo_unit): New functions.
7418 (allocate_dwo_unit_table): New function.
7419 (dwarf2_locate_dwo_sections): New function.
7420 (struct create_dwo_info_table_data): New type.
7421 (create_debug_info_hash_table_reader): New function.
7422 (create_debug_info_hash_table): New function.
7423 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7424 (lookup_dwo_file): New function.
7425 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7426 (free_dwo_file, free_dwo_file_cleanup): New functions.
7427 (free_dwo_file_from_slot, free_dwo_files): New functions.
7428 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7429 (dwarf2_record_block_ranges): Ditto.
7430 (read_partial_die): Ditto.
7431 (process_enumeration_scope): Update to use type_offset_in_section.
7432 (read_full_die_1): New function.
7433 (read_full_die): Rewrite.
7434 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7435 DW_FORM_GNU_str_index.
7436 (read_addr_index_1, read_addr_index): New functions.
7437 (read_addr_index_from_leb128): New function.
7438 (struct dwarf2_read_addr_index_data): New type.
7439 (dwarf2_read_addr_index_reader): New function.
7440 (dwarf2_read_addr_index): New function.
7441 (read_str_index): New function.
7442 (leb128_size): New function.
7443 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7444 If processing a type unit from a DWO file, get the line section
7445 from the DWO file.
7446 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7447 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7448 DW_FORM_GNU_str_index.
7449 (lookup_die_type): Check whether section offset of type's die is
7450 known before looking it up. Remove assert. Condition can
7451 legimately happen for inter-cu type references.
7452 (dwarf_attr_name): Handle Fission attributes.
7453 (dwarf_form_name): Handle Fission forms.
7454 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7455 DW_FORM_GNU_str_index.
7456 (follow_die_sig): Update to use type_offset_in_section.
7457 (decode_locdesc): New case DW_OP_GNU_addr_index.
7458 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7459 DW_FORM_GNU_str_index.
7460 (cu_debug_loc_section): New function.
7461 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7462 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7463 Free DWO files if present.
7464 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7465
7466 Refactor DIE reading.
7467 * dwarf2read.c (dwarf2_per_objfile): Replace members
7468 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7469 (die_reader_specs): New member "die_section". Temporarily make
7470 member "buffer" non-const, pending constifying all info_ptr uses.
7471 (die_reader_func_ftype): New typedef.
7472 (dw2_get_file_names_reader): New function.
7473 (dw2_get_file_names): Rewrite.
7474 (read_and_check_type_unit_head): Rename arg type_offset to
7475 type_offset_in_tu.
7476 (create_all_type_units): Improve debugging message.
7477 Improve dummy type unit check.
7478 (init_cu_die_reader): New arg "section". All callers updated.
7479 (init_and_read_dies_worker): New function.
7480 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7481 (init_cutu_and_read_dies_no_follow): New function.
7482 (init_cutu_and_read_dies_simple): New function.
7483 (process_psymtab_comp_unit_reader): New function.
7484 (process_psymtab_comp_unit): Delete args section,
7485 is_debug_types_section. Rewrite. All callers updated.
7486 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7487 All callers updated. Rewrite.
7488 (load_partial_comp_unit_reader): New function.
7489 (load_partial_comp_unit): Rewrite.
7490 (skip_children): New arg reader. Delete args buffer, cu.
7491 All callers updated.
7492 (skip_one_die): New arg reader. Delete args buffer, cu.
7493 All callers updated.
7494 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7495 All callers updated.
7496 (load_full_comp_unit_reader): New function.
7497 (load_full_comp_unit): Rewrite.
7498 (read_comp_unit): Delete.
7499 (read_die_and_children_1): Delete, contents moved ...
7500 (read_die_and_children): ... here.
7501 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7502 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7503 All callers updated.
7504 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7505 All callers updated.
7506 (find_partial_die): Rewrite load_all_dies support.
7507 (read_attribute_value): New arg reader. Delete args abfd, cu.
7508 All callers updated.
7509 (read_attribute): New arg reader. Delete args abfd, cu.
7510 All callers updated.
7511 (load_full_type_unit): Add assert.
7512 (read_signatured_type_reader): New function.
7513 (read_signatured_type): Rewrite.
7514 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7515 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7516 All callers updated. Set per_cu->cu = NULL after freeing it.
7517 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7518 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7519 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7520 (set_die_type): Update.
7521 (get_die_type_at_offset): Update.
7522 (read_file_scope): Call prepare_one_comp_unit.
7523 (read_type_unit_scope): Ditto.
7524 (prepare_one_comp_unit): Set producer if present.
7525
7526 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7527
7528 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7529 gettext function on `error'.
7530
7531 2012-04-27 Doug Evans <dje@google.com>
7532
7533 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7534 is empty.
7535
7536 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7537 Tom Tromey <tromey@redhat.com>
7538
7539 * breakpoint.c (struct breakpoint_objfile_data)
7540 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7541 <exception_probes>: New fields.
7542 (free_breakpoint_probes): New function.
7543 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7544 `_Unwind_DebugHook'.
7545 (create_exception_master_breakpoint): Likewise.
7546 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7547 * infrun.c: Including necessary header files for handling SystemTap
7548 probes.
7549 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7550 via SystemTap probes.
7551 (check_exception_resume): Remove `func' argument. Handle exception
7552 unwinding breakpoint set via a SystemTap probe.
7553 (insert_exception_resume_from_probe): New function.
7554
7555 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7556 Tom Tromey <tromey@redhat.com>
7557 Jan Kratochvil <jan.kratochvil@redhat.com>
7558
7559 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7560 (COMMON_OBS): Likewise.
7561 (HFILES_NO_SRCDIR): Add `probe'.
7562 * NEWS: Mention support for static and SystemTap probes.
7563 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7564 SystemTap probes' arguments parser.
7565 * arm-linux-tdep.c: Including headers needed to perform the parsing
7566 of SystemTap probes' arguments.
7567 (arm_stap_is_single_operand): New function.
7568 (arm_stap_parse_special_token): Likewise.
7569 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7570 probes' arguments parser.
7571 * ax-gdb.c (require_rvalue): Removing static declaration.
7572 (gen_expr): Likewise.
7573 * ax-gdb.h (gen_expr): Declaring function.
7574 (require_rvalue): Likewise.
7575 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7576 (bkpt_probe_breakpoint_ops): New variable.
7577 (momentary_breakpoint_from_master): Set the `probe' value.
7578 (add_location_to_breakpoint): Likewise.
7579 (break_command_1): Using proper breakpoint_ops according to the
7580 argument passed by the user in the command line.
7581 (bkpt_probe_insert_location): New function.
7582 (bkpt_probe_remove_location): Likewise.
7583 (bkpt_probe_create_sals_from_address): Likewise.
7584 (bkpt_probe_decode_linespec): Likewise.
7585 (tracepoint_probe_create_sals_from_address): Likewise.
7586 (tracepoint_probe_decode_linespec): Likewise.
7587 (tracepoint_probe_breakpoint_ops): New variable.
7588 (trace_command): Using proper breakpoint_ops according to the
7589 argument passed by the user in the command line.
7590 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7591 static probes on breakpoints and tracepoints.
7592 * breakpoint.h (struct bp_location) <probe>: New field.
7593 * cli-utils.c (skip_spaces_const): New function.
7594 (extract_arg): Likewise.
7595 * cli-utils.h (skip_spaces_const): Likewise.
7596 (extract_arg): Likewise.
7597 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7598 * configure.ac: Append `stap-probe.o' to be generated when ELF
7599 support is present.
7600 * configure: Regenerate.
7601 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7602 * elfread.c: Include `probe.h' and `arch-utils.h'.
7603 (probe_key): New variable.
7604 (elf_get_probes): New function.
7605 (elf_get_probe_argument_count): Likewise.
7606 (elf_evaluate_probe_argument): Likewise.
7607 (elf_compile_to_ax): Likewise.
7608 (elf_symfile_relocate_probe): Likewise.
7609 (stap_probe_key_free): Likewise.
7610 (elf_probe_fns): New variable.
7611 (elf_sym_fns): Add `sym_probe_fns' value.
7612 (elf_sym_fns_lazy_psyms): Likewise.
7613 (elf_sym_fns_gdb_index): Likewise.
7614 (_initialize_elfread): Initialize objfile cache for static
7615 probes.
7616 * gdb_vecs.h (struct probe): New forward declaration.
7617 (probe_p): New VEC declaration.
7618 * gdbarch.c: Regenerate.
7619 * gdbarch.h: Regenerate.
7620 * gdbarch.sh (stap_integer_prefix): New variable.
7621 (stap_integer_suffix): Likewise.
7622 (stap_register_prefix): Likewise.
7623 (stap_register_suffix): Likewise.
7624 (stap_register_indirection_prefix): Likewise.
7625 (stap_register_indirection_suffix): Likewise.
7626 (stap_gdb_register_prefix): Likewise.
7627 (stap_gdb_register_suffix): Likewise.
7628 (stap_is_single_operand): New function.
7629 (stap_parse_special_token): Likewise.
7630 (struct stap_parse_info): Forward declaration.
7631 * i386-tdep.c: Including headers needed to perform the parsing
7632 of SystemTap probes' arguments.
7633 (i386_stap_is_single_operand): New function.
7634 (i386_stap_parse_special_token): Likewise.
7635 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7636 probes' arguments parser.
7637 * i386-tdep.h (i386_stap_is_single_operand): New function.
7638 (i386_stap_parse_special_token): Likewise.
7639 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7640 * mipsread.c (ecoff_sym_fns): Likewise.
7641 * objfiles.c (objfile_relocate1): Support relocation for static
7642 probes.
7643 * parse.c (prefixify_expression): Remove static declaration.
7644 (initialize_expout): Likewise.
7645 (reallocate_expout): Likewise.
7646 * parser-defs.h (initialize_expout): Declare function.
7647 (reallocate_expout): Likewise.
7648 (prefixify_expression): Likewise.
7649 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7650 of SystemTap probes' arguments.
7651 (ppc_stap_is_single_operand): New function.
7652 (ppc_stap_parse_special_token): Likewise.
7653 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7654 probes' arguments parser.
7655 * probe.c: New file, for generic statically defined probe support.
7656 * probe.h: Likewise.
7657 * s390-tdep.c: Including headers needed to perform the parsing of
7658 SystemTap probes' arguments.
7659 (s390_stap_is_single_operand): New function.
7660 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7661 probes' arguments parser.
7662 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7663 * stap-probe.c: New file, for SystemTap probe support.
7664 * stap-probe.h: Likewise.
7665 * symfile.h: Include `gdb_vecs.h'.
7666 (struct sym_probe_fns): New struct.
7667 (struct sym_fns) <sym_probe_fns>: New field.
7668 * symtab.c (init_sal): Initialize `probe' field.
7669 * symtab.h (struct probe): Forward declaration.
7670 (struct symtab_and_line) <probe>: New field.
7671 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7672 locations.
7673 (stop_tracing): Likewise.
7674 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7675
7676 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7677 Tom Tromey <tromey@redhat.com>
7678
7679 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7680 and to compile agent expressions.
7681 * infrun.c (siginfo_make_value): New argument `ignore'.
7682 (siginfo_funcs): New struct.
7683 (_initialize_infrun): New argument when calling
7684 `create_internalvar_type_lazy'.
7685 * thread.c (thread_id_make_value): New argument `ignore'.
7686 (thread_funcs): New struct.
7687 (_initialize_thread): New argument when calling
7688 `create_internalvar_type_lazy'.
7689 * tracepoint.c (sdata_make_value): New argument `ignore'.
7690 (sdata_funcs): New struct.
7691 (_initialize_tracepoint): New argument when calling
7692 `create_internalvar_type_lazy'.
7693 * value.c (make_value): New struct.
7694 (create_internalvar_type_lazy): New argument `data'.
7695 (compile_internalvar_to_ax): New function.
7696 (value_of_internalvar): Properly handling `make_value' case.
7697 (clear_internalvar): Likewise.
7698 (show_convenience): Adding `TRY_CATCH' block.
7699 * value.h (internalvar_make_value): Delete, replace by...
7700 (struct internalvar_funcs): ... this.
7701 (create_internalvar_type_lazy) <fun>: Delete argument.
7702 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7703 (compile_internalvar_to_ax): New function.
7704 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7705 (tlb_funcs): New struct.
7706 (_initialize_windows_tdep): New argument when calling
7707 `create_internalvar_type_lazy'.
7708
7709 2012-04-27 Mark Wielaard <mjw@redhat.com>
7710
7711 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7712 see whether it is an address or a constant offset from DW_AT_low_pc.
7713 (dwarf2_record_block_ranges): Likewise.
7714 (read_partial_die): Likewise.
7715
7716 2012-04-26 Mark Wielaard <mjw@redhat.com>
7717
7718 * MAINTAINERS (Write After Approval): Add myself to the list.
7719
7720 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7721
7722 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7723 (proc_prettyprint_signal): Likewise.
7724 (proc_prettyprint_faultset): Likewise.
7725 (proc_prettyprint_fault): Likewise.
7726 (proc_prettyprint_actionset): Likewise.
7727 (proc_prettyprint_flags): Move to new proc-flags.c section.
7728 (proc_prettyfprint_flags): New prototype.
7729 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7730 (proc_syscall, proc_cursig): Likewise.
7731 (proc_set_kill_on_last_close): Likewise.
7732 (proc_unset_kill_on_last_close): Likewise.
7733 (proc_set_watchpoint): Make static.
7734 (proc_delete_dead_threads): Likewise.
7735 (procfs_set_watchpoint): Likewise.
7736 (_initialize_procfs): Add prototype.
7737 * proc-events.c: Include proc-utils.h.
7738 (init_syscall_table): Make static.
7739 * proc-api.c (_initialize_proc_api): Add prototype.
7740 * proc-flags.c: Include proc-utils.h.
7741
7742 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7743
7744 * configure.ac: Add AC_ARG_PROGRAM.
7745 * configure: Regenerate.
7746
7747 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7748
7749 Fix DW_AT_lower_bound defaults for DWARF-4+.
7750 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7751 high. New variable low_default_is_valid. Implement DWARF-4+
7752 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7753 no default by the DWARF standard.
7754
7755 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7756 Maciej W. Rozycki <macro@codesourcery.com>
7757
7758 * infrun.c (handle_inferior_event): Move the check for return
7759 trampolines ahead of the check for function trampolines.
7760 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7761 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7762 (mips_str_mips16_ret_stub): Likewise.
7763 (mips_str_call_fp_stub): Likewise.
7764 (mips_str_call_stub): Likewise.
7765 (mips_str_fn_stub): Likewise.
7766 (mips_str_pic): Likewise.
7767 (mips_in_frame_stub): New function.
7768 (mips_unwind_pc): Return the return address rather than the PC
7769 if the PC of an intermediate frame is inside a call thunk.
7770 (mips_is_stub_suffix): New function.
7771 (mips_is_stub_mode): Likewise.
7772 (mips_get_mips16_fn_stub_pc): Likewise.
7773 (mips_skip_mips16_trampoline_code): Update to handle all the
7774 currently generated stub types. Don't recurse into __fn_stub
7775 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7776 Use cooked register accesses.
7777 (mips_in_return_stub): Reintroduce function.
7778 (mips_skip_trampoline_code): Traverse trampolines recursively.
7779 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7780
7781 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7782
7783 GDB 7.4.1 released.
7784
7785 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7786
7787 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7788 * features/arm-with-m-vfp-d16.xml: New file. Describes
7789 Cortex-M with VFPv4-sp-d16 FPU register layout.
7790 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7791 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7792 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7793 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7794 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7795
7796 2012-04-25 Doug Evans <dje@google.com>
7797
7798 * cli/cli-decode.c (print_doc_line): Use stream instead of
7799 current_uiout.
7800
7801 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7802
7803 * features/arm-with-iwmmxt.c: Regenerate.
7804 * features/arm-with-m-fpa-layout.c: Likewise.
7805 * features/arm-with-m.c: Likewise.
7806 * features/arm-with-neon.c: Likewise.
7807 * features/arm-with-vfpv2.c: Likewise.
7808 * features/arm-with-vfpv3.c: Likewise.
7809 * features/mips-dsp-linux.c: Likewise.
7810 * features/mips-linux.c: Likewise.
7811 * features/mips64-dsp-linux.c: Likewise.
7812 * features/mips64-linux.c: Likewise.
7813 * features/s390-linux32.c: Likewise.
7814 * features/s390-linux32v1.c: Likewise.
7815 * features/s390-linux32v2.c: Likewise.
7816 * features/s390-linux64.c: Likewise.
7817 * features/s390-linux64v1.c: Likewise.
7818 * features/s390-linux64v2.c: Likewise.
7819 * features/s390x-linux64.c: Likewise.
7820 * features/s390x-linux64v1.c: Likewise.
7821 * features/s390x-linux64v2.c: Likewise.
7822 * features/tic6x-c62x-linux.c: Likewise.
7823 * features/tic6x-c62x.c: Likewise.
7824 * features/tic6x-c64x-linux.c: Likewise.
7825 * features/tic6x-c64x.c: Likewise.
7826 * features/tic6x-c64xp-linux.c: Likewise.
7827 * features/tic6x-c64xp.c: Likewise.
7828 * target-descriptions.c: Only generate `field_type' and `type'
7829 variables when needed.
7830
7831 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7832
7833 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7834
7835 2012-04-25 Doug Evans <dje@google.com>
7836
7837 Initial pass at Go language support.
7838 * NEWS: Mention Go.
7839 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7840 go-valprint.c.
7841 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7842 (YYFILES): Add go-exp.c.
7843 (YYOBJ): Add go-exp.o.
7844 (local-maintainer-clean): Delete go-exp.c.
7845 * defs.h (enum language): Add language_go.
7846 * dwarf2read.c: #include "go-lang.h".
7847 (fixup_go_packaging): New function.
7848 (process_full_comp_unit): Call it when processing Go CUs.
7849 (dwarf2_physname): Add Go support.
7850 (read_file_scope): Handle missing language spec for GNU Go.
7851 (set_cu_language): Handle DW_LANG_Go.
7852 * go-exp.y: New file.
7853 * go-lang.h: New file.
7854 * go-lang.c: New file.
7855 * go-typeprint.c: New file.
7856 * go-valprint.c: New file.
7857 * symtab.c: #include "go-lang.h".
7858 (symbol_set_language): Handle language_go.
7859 (symbol_find_demangled_name, symbol_set_names): Ditto.
7860 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7861
7862 2012-04-24 Jim Meyering <meyering@redhat.com>
7863
7864 avoid a few strncpy-induced buffer overruns
7865 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7866 fname and psargs before trying to concatenate.
7867 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7868 "name" before applying strchr.
7869
7870 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7871
7872 * CONTRIBUTE: Use unified diff instead of context diff when
7873 generating patches.
7874
7875 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7876
7877 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7878 code. Handle JR.HB correctly.
7879
7880 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7881
7882 * mips-tdep.c
7883 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7884 with the other MIPS16 helpers.
7885
7886 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7887
7888 * observer.sh: Conditionally declare `args', thus cleaning up
7889 unused instances of this variable.
7890
7891 2012-04-24 Yao Qi <yao@codesourcery.com>
7892
7893 Revert this patch to allow breakpoint always-inserted
7894 in record target.
7895 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7896 * breakpoint.c: Include record.h.
7897 (breakpoints_always_inserted_mode): Return false when the record
7898 target is in use.
7899
7900 * breakpoint.c (iterate_over_bp_locations): New.
7901 * breakpoint.h: Declare.
7902 New typedef walk_bp_location_callback.
7903 * record.c (record_open): Call record_init_record_breakpoints.
7904 (record_sync_record_breakpoints): New.
7905 (record_init_record_breakpoints): New.
7906 * NEWS: Mention supporting breakpoint always-inserted mode in
7907 record target.
7908
7909 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7910
7911 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7912 any thread.
7913
7914 2012-04-24 Yao Qi <yao@codesourcery.com>
7915
7916 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7917 (is_catchpoint): ... it.
7918 (print_one_breakpoint_location): Caller update.
7919 * breakpoint.h: Update declaration.
7920
7921 2012-04-23 David S. Miller <davem@davemloft.net>
7922
7923 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7924
7925 2012-04-23 Tom Tromey <tromey@redhat.com>
7926
7927 * buildsym.c (add_free_pendings): Remove.
7928 * buildsym.h (add_free_pendings): Remove.
7929
7930 2012-04-23 Doug Evans <dje@google.com>
7931
7932 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7933 attr.u.unsnd instead of attr.u.addr.
7934 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7935 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7936 DW_FORM_ref_udata.
7937 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7938 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7939 DW_FORM_ref_udata.
7940 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7941
7942 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7943
7944 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7945 (mips_o32_return_value): Likewise.
7946 (mips_o64_return_value): Likewise.
7947
7948 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7949
7950 * ada-lang.c (ada_evaluate_subexp): Add cases for
7951 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7952 their treatment in eval.c.
7953
7954 2012-04-21 David S. Miller <davem@davemloft.net>
7955
7956 * sparc-tdep.c (X_DISP10): Define.
7957 (sparc_analyze_control_transfer): Handle compare-and-branch.
7958
7959 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7960
7961 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7962 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7963
7964 2012-04-20 Nigel Stephens <nigel@mips.com>
7965 Maciej W. Rozycki <macro@codesourcery.com>
7966
7967 * mips-tdep.c (mips_float_register_p): New function.
7968 (mips_convert_register_float_case_p): Use mips_float_register_p.
7969 (mips_register_type): Likewise.
7970 (mips_print_register): Likewise.
7971 (print_gp_register_row): Likewise.
7972 (mips_print_registers_info): Likewise.
7973
7974 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7975
7976 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7977 of mips16 symbols.
7978
7979 2012-04-20 Andrew Pinski <apinski@cavium.com>
7980
7981 * MAINTAINERS (Write After Approval): Add myself to the list.
7982
7983 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7984
7985 * MAINTAINERS: Update my e-mail address.
7986
7987 2012-04-20 Pedro Alves <palves@redhat.com>
7988
7989 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7990 $srcdir.
7991 * configure: Regenerate.
7992
7993 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7994
7995 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7996 declaration.
7997 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7998
7999 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8000
8001 Fix compilation compatibility with python-2.4
8002 * python/py-type.c (convert_field): Cast ADDRSTRING for
8003 PyObject_SetAttrString as non-const. New comment.
8004
8005 2012-04-19 Tom Tromey <tromey@redhat.com>
8006
8007 * top.c (quit_target): Use all_cleanups.
8008 * main.c (captured_command_loop): Use all_cleanups.
8009 * exceptions.c (throw_exception): Use all_cleanups.
8010
8011 2012-04-19 Pedro Alves <palves@redhat.com>
8012
8013 * Makefile.in (GNULIB_BUILDDIR): New.
8014 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8015 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8016 (CLEANDIRS). Remove gnulib/import.
8017 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8018 (all-lib): Ditto.
8019 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8020 (gnulib/import/Makefile): Replace gnulib/import with
8021 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8022 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8023 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8024 acx_configure_dir.m4.
8025 * acinclude.m4: Include acx_configure_dir.m4.
8026 * acx_configure_dir.m4: New file.
8027 * aclocal.m4: Regenerate.
8028 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8029 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8030 (GNULIB): New variable.
8031 (GNULIB_STDINT_H): Adjust.
8032 (AC_OUTPUT): Don't output gnulib/Makefile.
8033 * gdb/defs.h: Include build-gnulib/config.h.
8034 * aclocal.m4: Regenerate.
8035 * config.in: Regenerate.
8036 * configure: Regenerate.
8037
8038 * gnulib/Makefile.in: New file.
8039 * gnulib/configure.ac: New file.
8040 * gnulib/aclocal.m4: New file.
8041 * gnulib/config.in: New file.
8042 * gnulib/configure: New file.
8043 * gnulib/: Re-run gnulib-tool to adjust.
8044
8045 2012-04-19 Doug Evans <dje@google.com>
8046
8047 * cleanups.h (struct cleanup): Move to cleanups.c.
8048 (make_cleanup_dtor_ftype): New typedef.
8049 (make_cleanup_dtor): Use it.
8050 (ALL_CLEANUPS): Replace with ...
8051 (all_cleanups): ... this. Declare. All uses updated.
8052 * cleanups.c: #include "gdb_assert.h".
8053 (sentinel_cleanup): New static global.
8054 (SENTINEL_CLEANUP): Define.
8055 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8056 (make_my_cleanup2): Assert result is non-NULL.
8057 (all_cleanups): New function.
8058 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8059 of NULL.
8060
8061 2012-04-19 Pedro Alves <palves@redhat.com>
8062
8063 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8064 Adjust paths to gnulib imported files.
8065
8066 2012-04-19 Pedro Alves <palves@redhat.com>
8067
8068 * gnulib/: Move whole directory ...
8069 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8070 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8071 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8072 (aclocal_m4_deps): Adjust.
8073 * aclocal.m4: Regenerate.
8074 * configure: Regenerate.
8075 * configure.ac: Adjust AC_OUTPUT output.
8076
8077 2012-04-19 Yao Qi <yao@codesourcery.com>
8078
8079 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8080 (vec.o): New rule.
8081 * vec.c: Move it ...
8082 * common/vec.c: ... here.
8083 * vec.h: Move it ...
8084 * common/vec.h: ... here.
8085
8086 2012-04-19 Yao Qi <yao@codesourcery.com>
8087
8088 * gdb-code-style.el: New.
8089
8090 2012-04-18 Pedro Alves <palves@redhat.com>
8091
8092 Update gnulib from latest git.
8093 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8094
8095 * gnulib/Makefile.am: Update.
8096 * gnulib/dummy.c: Update.
8097 * gnulib/extra/arg-nonnull.h: Update.
8098 * gnulib/extra/c++defs.h: Update.
8099 * gnulib/extra/update-copyright: Update.
8100 * gnulib/extra/warn-on-use.h: Update.
8101 * gnulib/inttypes.in.h: Update.
8102 * gnulib/m4/00gnulib.m4: Update.
8103 * gnulib/m4/extensions.m4: Update.
8104 * gnulib/m4/gnulib-cache.m4: Update.
8105 * gnulib/m4/gnulib-common.m4: Update.
8106 * gnulib/m4/gnulib-comp.m4: Update.
8107 * gnulib/m4/gnulib-tool.m4: Update.
8108 * gnulib/m4/include_next.m4: Update.
8109 * gnulib/m4/inttypes-pri.m4: Update.
8110 * gnulib/m4/inttypes.m4: Update.
8111 * gnulib/m4/longlong.m4: Update.
8112 * gnulib/m4/memchr.m4: Update.
8113 * gnulib/m4/memmem.m4: Update.
8114 * gnulib/m4/mmap-anon.m4: Update.
8115 * gnulib/m4/multiarch.m4: Update.
8116 * gnulib/m4/onceonly.m4: Update.
8117 * gnulib/m4/stddef_h.m4: Update.
8118 * gnulib/m4/stdint.m4: Update.
8119 * gnulib/m4/string_h.m4: Update.
8120 * gnulib/m4/warn-on-use.m4: Update.
8121 * gnulib/m4/wchar_h.m4: Update.
8122 * gnulib/m4/wchar_t.m4: Update.
8123 * gnulib/m4/wint_t.m4: Update.
8124 * gnulib/memchr.c: Update.
8125 * gnulib/memmem.c: Update.
8126 * gnulib/stddef.in.h: Update.
8127 * gnulib/stdint.in.h: Update.
8128 * gnulib/str-two-way.h: Update.
8129 * gnulib/string.in.h: Update.
8130 * gnulib/wchar.in.h: Update.
8131
8132 * gnulib/extra/arg-nonnull.h: Delete.
8133 * gnulib/extra/c++defs.h: Delete.
8134 * gnulib/extra/warn-on-use.h: Delete.
8135 * gnulib/m4/wchar_h.m4: Delete.
8136 * gnulib/m4/wint_t.m4: Delete.
8137 * gnulib/wchar.in.h: Delete.
8138
8139 * gnulib/extra/snippets/arg-nonnull.h: New.
8140 * gnulib/extra/snippets/c++defs.h: New.
8141 * gnulib/extra/snippets/warn-on-use.h: New.
8142
8143 * aclocal.m4: Regenerate.
8144 * config.in: Regenerate.
8145 * configure: Regenerate.
8146 * gnulib/Makefile.in: Regenerate.
8147
8148 2012-04-18 Pedro Alves <palves@redhat.com>
8149
8150 Reimport the update-copyright module from gnulib
8151 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8152
8153 * configure: Regenerate.
8154 * gnulib/Makefile.am: Update.
8155 * gnulib/Makefile.in: Regenerate.
8156 * gnulib/extra/update-copyright: Update.
8157 * gnulib/m4/gnulib-cache.m4: Update.
8158 * gnulib/m4/gnulib-comp.m4: Update.
8159
8160 2012-04-18 Tristan Gingold <gingold@adacore.com>
8161
8162 * configure.ac (aix): Put -lpthread into libs.
8163 * configure: Regenerate.
8164
8165 2012-04-18 Tom Tromey <tromey@redhat.com>
8166
8167 * linespec.c (convert_linespec_to_sals): Don't use
8168 SYMBOL_OBJ_SECTION.
8169 (compare_msymbols): Arguments are minsym_and_objfile, not
8170 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8171
8172 2012-04-18 Pedro Alves <palves@redhat.com>
8173
8174 Revert gnulib/ part of:
8175 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8176 Copyright year update in most files (performed by copyright.sh).
8177
8178 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8179
8180 Fix 64-bit constants on 32-bit hosts.
8181 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8182 from unsigned long to ULONGEST.
8183 (read_signed_leb128): Change declaration return type from long to
8184 LONGEST.
8185 (dwarf2_const_value_attr): Change declaration parameter value from long
8186 to LONGEST.
8187 (dwarf2_compute_name): Change variable value from long to LONGEST.
8188 (read_unsigned_leb128): Change return type, variable result and some
8189 casts from unsigned long to ULONGEST.
8190 (read_signed_leb128): Change return type, variable result and some
8191 casts from long to LONGEST.
8192 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8193 value from long to LONGEST.
8194 (dwarf2_const_value): Change variable value from long to LONGEST.
8195 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8196 plongest and hex_string.
8197 * symtab.h (struct general_symbol_info): Change ivalue from long to
8198 LONGEST, remove the comment.
8199 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8200 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8201
8202 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8203
8204 PR symtab/7259:
8205 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8206 * ada-lang.c (ada_discrete_type_high_bound)
8207 (ada_discrete_type_low_bound): Fix function comment. Use
8208 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8209 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8210 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8211 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8212 Use TYPE_FIELD_ENUMVAL.
8213 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8214 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8215 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8216 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8217 TYPE_CODE_ENUM.
8218 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8219 * dwarf2read.c (process_enumeration_scope): Likewise.
8220 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8221 field.bitpos.
8222 (class StructMainTypePrettyPrinter): Support also
8223 FIELD_LOC_KIND_ENUMVAL.
8224 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8225 TYPE_CODE_ENUM.
8226 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8227 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8228 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8229 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8230 field enumval.
8231 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8232 accommodate enumval.
8233 (struct call_site): Adjust loc_kind to accommodate enumval.
8234 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8235 (TYPE_FIELD_ENUMVAL): New macros.
8236 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8237 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8238 TYPE_CODE_ENUM.
8239 * p-typeprint.c (pascal_type_print_base): Likewise.
8240 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8241 enumval.
8242 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8243 * python/py-type.c (convert_field): New variable addrstring. Use
8244 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8245 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8246 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8247 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8248 TYPE_CODE_ENUM.
8249 * valprint.c (generic_val_print): Likewise.
8250
8251 2012-04-17 Doug Evans <dje@google.com>
8252
8253 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8254
8255 * dwarf2read.c: Whitespace fixes.
8256 (lookup_signatured_type): Tweak comment.
8257 (get_die_type_at_offset): Fix comment.
8258
8259 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8260
8261 * xcoffread.c (xcoff_secnum_to_sections): New function.
8262 (secnum_to_section, secnum_to_bfd_section): Reimplement
8263 using xcoff_secnum_to_sections. Rename "secnum" parameter
8264 into "n_scnum".
8265 (RECORD_MINIMAL_SYMBOL): Delete.
8266 (record_minimal_symbol): New function.
8267 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8268 by call to record_minimal_symbol and set misc_func_recorded
8269 to 1. Set last_csect_sec to the XCOFF section index instead
8270 of GDB's section_offset index. Update calls to
8271 prim_record_minimal_symbol_and_info to pass the BFD section
8272 as well.
8273
8274 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8275
8276 * xcoffread.c (read_xcoff_symtab): Delete variables
8277 last_csect_val and last_csect_sec and associated code.
8278
8279 2012-04-17 Doug Evans <dje@google.com>
8280
8281 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8282 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8283 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8284 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8285
8286 * cleanups.h: New file.
8287 * cleanups.c: New file.
8288 * Makefile.in (SFILES): Add cleanups.c.
8289 (HFILES_NO_SRCDIR): Add cleanups.h.
8290 (COMMON_OBS): Add cleanups.o.
8291 * defs.h (struct cleanup): Moved to cleanups.h.
8292 (do_cleanups,do_final_cleanups): Ditto.
8293 (discard_cleanups,discard_final_cleanups): Ditto
8294 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8295 (save_cleanups,save_final_cleanups): Ditto.
8296 (restore_cleanups,restore_final_cleanups): Ditto.
8297 (null_cleanup): Ditto.
8298 (make_my_cleanup,make_my_cleanup2): Ditto.
8299 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8300 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8301 (do_cleanups,do_final_cleanups): Ditto.
8302 (discard_cleanups,discard_final_cleanups): Ditto
8303 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8304 (save_cleanups,save_final_cleanups): Ditto.
8305 (restore_cleanups,restore_final_cleanups): Ditto.
8306 (null_cleanup): Ditto.
8307 (make_my_cleanup,make_my_cleanup2): Ditto.
8308 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8309
8310 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8311 make_my_cleanup.
8312 (make_cleanup_dyn_string_delete): Ditto.
8313 (make_cleanup_ui_file_delete): Ditto.
8314 (make_cleanup_ui_out_redirect_pop): Ditto.
8315 (make_cleanup_free_section_addr_info): Ditto.
8316 (make_cleanup_restore_integer): Ditto.
8317 (make_cleanup_unpush_target): Ditto.
8318 (make_cleanup_value_free_to_mark): Ditto.
8319 (make_cleanup_value_free): Ditto.
8320 (make_cleanup_free_so): Ditto.
8321
8322 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8323
8324 New option "set debug auto-load".
8325 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8326 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8327 (auto_load_safe_path_vec_update)
8328 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8329 if DEBUG_AUTO_LOAD.
8330 (file_is_auto_load_safe): New parameters debug_fmt and ....
8331 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8332 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8333 caller by explanatory string.
8334 (_initialize_auto_load): Register "set debug auto-load".
8335 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8336 and ....
8337 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8338 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8339 by explanatory string.
8340 * main.c (captured_main): Likewise.
8341 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8342 (source_section_scripts): Likewise.
8343
8344 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8345
8346 New option "set auto-load safe-path".
8347 * NEWS: New commands "set auto-load safe-path"
8348 and "show auto-load safe-path".
8349 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8350 (auto_load_safe_path, auto_load_safe_path_vec)
8351 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8352 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8353 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8354 (source_gdb_script_for_objfile): New variable is_safe. Call
8355 file_is_auto_load_safe. Return if it is not.
8356 (struct loaded_script): New field loaded.
8357 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8358 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8359 output "Missing" to "No".
8360 (_initialize_auto_load): New variable cmd. Initialize
8361 auto_load_safe_path. Register "set auto-load safe-path",
8362 "show auto-load safe-path" and "add-auto-load-safe-path".
8363 * auto-load.h (maybe_add_script): Add parameter loaded.
8364 (file_is_auto_load_safe): New declaration.
8365 * config.in: Regenerate.
8366 * configure: Regenerate.
8367 * configure.ac: New parameters --with-auto-load-safe-path
8368 and --without-auto-load-safe-path.
8369 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8370 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8371 * main.c (captured_main): Check file_is_auto_load_safe for
8372 LOCAL_GDBINIT.
8373 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8374 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8375 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8376 not.
8377
8378 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8379
8380 auto-load: Implementation.
8381 * NEWS: New descriptions for "info auto-load",
8382 "info auto-load gdb-scripts", "info auto-load python-scripts",
8383 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8384 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8385 and "show auto-load-scripts". New description for "set auto-load",
8386 "show auto-load", "set auto-load gdb-scripts",
8387 "show auto-load gdb-scripts", "set auto-load python-scripts",
8388 "show auto-load python-scripts", "set auto-load local-gdbinit",
8389 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8390 "show auto-load libthread-db".
8391 * auto-load.c: Remove include python/python-internal.h. Add includes
8392 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8393 cli/cli-setshow.h.
8394 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8395 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8396 (gdbpy_global_auto_load): Rename to ...
8397 (global_auto_load): ... here.
8398 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8399 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8400 (script_language_gdb, source_gdb_script_for_objfile): New.
8401 (struct loaded_script): New field language.
8402 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8403 LANGUAGE.
8404 (maybe_add_script): Add parameter language. Drop redundant
8405 entry.full_path initialization. Initialize entry.language and
8406 (*slot)->language.
8407 (auto_load_objfile_script): Change parameter suffix to language.
8408 Remove the call of maybe_add_script.
8409 Call language->source_script_for_objfile.
8410 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8411 New.
8412 (collect_matching_scripts): Adjust it for
8413 struct collect_matching_scripts_data.
8414 (auto_load_info_scripts_pattern_nl): New variable.
8415 (info_auto_load_scripts): Rename to ...
8416 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8417 for struct collect_matching_scripts_data.
8418 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8419 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8420 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8421 (auto_load_info_cmdlist_get): New.
8422 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8423 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8424 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8425 "info auto-load local-gdbinit".
8426 * auto-load.h (struct script_language): New.
8427 (gdbpy_global_auto_load): Rename to ...
8428 (global_auto_load): ... here.
8429 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8430 (auto_load_local_gdbinit_loaded): New declarations.
8431 (maybe_add_script): New parameter language.
8432 (auto_load_objfile_script): Change parameter suffix to language.
8433 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8434 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8435 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8436 declarations.
8437 * linux-thread-db.c: Include auto-load.h and ctype.h.
8438 (auto_load_thread_db, show_auto_load_thread_db): New.
8439 (struct thread_db_info): New field filename.
8440 (delete_thread_db_info): Call xfree for FILENAME.
8441 (try_thread_db_load): Initialize FILENAME.
8442 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8443 if !AUTO_LOAD_THREAD_DB.
8444 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8445 (_initialize_thread_db): Install auto_load_thread_db
8446 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8447 as "info auto-load libthread-db".
8448 * main.c (captured_main): Rename gdbpy_global_auto_load to
8449 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8450 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8451 (print_gdb_help): Extend the help for 'local init file'.
8452 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8453 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8454 (auto_load_scripts): Rename to ...
8455 (auto_load_python_scripts): ... here, update the comment.
8456 (gdbpy_load_auto_script_for_objfile): New declaration.
8457 (show_auto_load_python_scripts, script_language_python)
8458 (gdbpy_load_auto_script_for_objfile): New.
8459 (source_section_scripts): Refactor the code.
8460 (load_auto_scripts_for_objfile): Rename to ...
8461 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8462 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8463 (info_auto_load_python_scripts): New.
8464 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8465 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8466 Register "set auto-load-scripts" as its deprecated alias. Register
8467 "info auto-load python-scripts". Register "info auto-load-scripts" as
8468 its deprecated alias.
8469 (load_auto_scripts_for_objfile): Rename to ...
8470 (gdbpy_load_auto_scripts_for_objfile): ... here.
8471 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8472 (gdbpy_load_auto_scripts_for_objfile): ... here.
8473
8474 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8475
8476 auto-load: Move files.
8477 * Makefile.in (SFILES): Add auto-load.c.
8478 (HFILES_NO_SRCDIR): Add auto-load.h.
8479 (COMMON_OBS): Add auto-load.o.
8480 (distclean): Change .gdbinit for gdb-gdb.gdb.
8481 * auto-load.c: New file, with parts from python/py-auto-load.c.
8482 * auto-load.h: New file, with parts from python/python.h.
8483 * configure: Regenerate.
8484 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8485 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8486 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8487 * main.c: Include auto-load.h.
8488 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8489 command.h, observer.h and progspace.h to auto-load.c. Add include
8490 auto-load.h.
8491 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8492 (struct loaded_script, auto_load_pspace_data)
8493 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8494 (hash_loaded_script_entry, eq_loaded_script_entry)
8495 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8496 (maybe_add_script): Move to auto-load.c.
8497 (source_section_scripts): Change maybe_add_script parameters passing,
8498 use script_not_found_warning_print.
8499 (clear_section_scripts, auto_load_objfile_script)
8500 (auto_load_new_objfile, loaded_script_ptr)
8501 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8502 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8503 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8504 auto_load_new_objfile and info_auto_load_scripts initizations to
8505 auto-load.c.
8506 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8507
8508 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8509
8510 Code cleanup.
8511 * charset.c (find_charset_names): Remove variables ix and elt.
8512 Use free_char_ptr_vec.
8513 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8514 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8515 debugdir_end. New variable debugdir_len.
8516 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8517 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8518 declarations.
8519 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8520 and elt. Use free_char_ptr_vec.
8521 * source.c (add_path): Remove variables argv, arg and argv_index.
8522 New variables dir_vec, back_to, ix and name.
8523 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8524 make_cleanup_freeargv. Remove variable separator. Simplify the code
8525 no longer expecting DIRNAME_SEPARATOR.
8526 (openp): Remove variable p, p1 and len. New variables dir_vec,
8527 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8528 no longer expecting DIRNAME_SEPARATOR.
8529 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8530 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8531 debugdir_end.
8532 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8533 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8534 (dirnames_to_char_ptr_vec): New functions.
8535
8536 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8537
8538 Code cleanup.
8539 * source.c (add_path): Remove always true conditional 'p == 0' and
8540 unindent its code block.
8541
8542 2012-04-17 Pedro Alves <palves@redhat.com>
8543
8544 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8545 (FIELD_BITPOS_LVAL): ... this.
8546 (FIELD_BITPOS): New.
8547 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8548 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8549 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8550 SET_FIELD_BITPOS.
8551 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8552 SET_FIELD_BITPOS.
8553 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8554 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8555 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8556 SET_FIELD_BITPOS.
8557
8558 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8559
8560 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8561 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8562 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8563 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8564 * jv-lang.c (java_link_class_type): Likewise, once.
8565 * stabsread.c (read_enum_type): Likewise.
8566
8567 2012-04-16 Yao Qi <yao@codesourcery.com>
8568
8569 * common/agent.c (agent_run_command): Add one more parameter `len'.
8570 Update callers.
8571 * common/agent.h: Update declaration.
8572 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8573 Update.
8574 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8575
8576 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8577
8578 PR mi/13393
8579 * value.c (value_actual_type): New function.
8580 * value.h (value_actual_type): New declaration.
8581 * varobj.c (update_type_if_necessary): New function.
8582 (varobj_create): Call value_actual_type instead of
8583 value_type.
8584 (install_dynamic_child): distinct changed and type changed MI variable
8585 objects.
8586 (update_dynamic_varobj_children): Updated for install_dynamic_child
8587 change. All callers updated.
8588 (varobj_update): Support for MI variable object type change if
8589 the value changed and RTTI is used to determine the type.
8590 (create_child_with_value): Call value_actual_type instead of
8591 value_type.
8592 (adjust_value_for_child_access): Extended with a new parameter which
8593 specify whether the given value should be casted to enclosing type.
8594 All callers updated.
8595
8596 2012-04-14 Yao Qi <yao@codesourcery.com>
8597
8598 Import gnulib module inttypes from git
8599 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8600 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8601 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8602 gnulib/m4/inttypes-pri.m4
8603 * aclocal.m4, config.in, configure: Regenerated.
8604 * gnulib/Makefile.am: Update.
8605 * gnulib/Makefile.in: Update.
8606 * gnulib/m4/gnulib-cache.m4: Update.
8607 * gnulib/m4/gnulib-comp.m4: Update.
8608 * gnulib/inttypes.in.h: New.
8609 * gnulib/m4/inttypes-pri.m4: New.
8610 * gnulib/m4/inttypes.m4: New.
8611
8612 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8613
8614 * infrun.c (resume): Update PC address to the real PC after
8615 preparing to do displaced stepping.
8616
8617 2012-04-12 Doug Evans <dje@google.com>
8618
8619 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8620 All callers updated.
8621
8622 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8623
8624 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8625
8626 2012-04-12 Doug Evans <dje@google.com>
8627
8628 * dwarf2read.c (create_all_type_units): Renamed from
8629 create_debug_types_hash_table. All callers updated.
8630
8631 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8632 local type_sig to sig_type, type_offset to type_offset_in_tu.
8633 (hash_signatured_type): Renamed from hash_type_signature,
8634 all callers updated.
8635 (eq_signatured_type): Renamed from eq_type_signature,
8636 all callers updated.
8637 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8638 (process_enumeration_scope): Ditto.
8639 (lookup_signatured_type_at_offset): Ditto.
8640 (load_full_type_unit, read_signatured_type): Ditto.
8641
8642 2012-04-12 Yao Qi <yao@codesourcery.com>
8643
8644 * remote.c (async_remote_interrupt): Correct function name in
8645 debug message.
8646 (async_remote_interrupt_twice): Ditto.
8647
8648 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8649
8650 * source.c (find_and_open_source): Consistently pass resulting
8651 full path through xfullpath.
8652
8653 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8654
8655 Provide more specific displaced-stepping memory error message.
8656 * infrun.c (displaced_step_prepare): New variable status. Call
8657 target_read_memory instead of read_memory, provide more specific
8658 error message.
8659
8660 2012-04-11 Tristan Gingold <gingold@adacore.com>
8661
8662 PR gdb/13901
8663 * darwin-nat.c (darwin_execvp): Revert previous patch.
8664
8665 2012-04-11 Tristan Gingold <gingold@adacore.com>
8666
8667 PR gdb/13901
8668 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8669 in case of change.
8670
8671 2012-04-11 Tristan Gingold <gingold@adacore.com>
8672
8673 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8674 warning.
8675
8676 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8677
8678 New command 'explore' which helps explore values and types in
8679 scope.
8680 * NEWS: Add an entry about the new 'explore' command.
8681 * data-directory/Makefile.in: Add gdb/command/explore.py
8682 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8683 command using the GDB Python API.
8684
8685 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8686
8687 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8688 extension in jump target calculation.
8689
8690 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8691
8692 * mips-tdep.c (mips32_next_pc): Handle JALX.
8693
8694 2012-04-10 Yao Qi <yao@codesourcery.com>
8695
8696 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8697
8698 2012-04-10 Yao Qi <yao@codesourcery.com>
8699
8700 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8701 and gnulib/m4/gnulib-tool.m4.
8702
8703 2012-04-10 Doug Evans <dje@google.com>
8704
8705 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8706 (load_partial_dies): Clarify comment.
8707 (find_partial_die): Support rereading type units.
8708 Clarify CU handling, if we know offset is in CU, don't search for the
8709 containing CU. Add comment regarding memory waste.
8710
8711 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8712
8713 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8714 i386/x32-avx and i386/x32-avx-linux.
8715 (i386/x32-expedite): New.
8716 (i386/x32-linux-expedite): Likewise.
8717 (i386/x32-avx-expedite): Likewise.
8718 (i386/x32-avx-linux-expedite): Likewise.
8719 ($(outdir)/i386/x32.dat): Likewise.
8720 ($(outdir)/i386/x32-linux.dat): Likewise.
8721 ($(outdir)/i386/x32-avx.dat): Likewise.
8722 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8723
8724 * features/i386/x32-avx-linux.xml: New file.
8725 * features/i386/x32-avx.xml: Likewise.
8726 * features/i386/x32-core.xml: Likewise.
8727 * features/i386/x32-linux.xml: Likewise.
8728 * features/i386/x32.xml: Likewise.
8729
8730 * features/i386/x32-avx-linux.c: New. Generated.
8731 * features/i386/x32-avx.c: Likewise.
8732 * features/i386/x32-linux.c: Likewise.
8733 * features/i386/x32.c: Likewise.
8734 * regformats/i386/x32-avx-linux.dat: Likewise.
8735 * regformats/i386/x32-avx.dat: Likewise.
8736 * regformats/i386/x32-linux.dat: Likewise.
8737 * regformats/i386/x32.dat: Likewise.
8738
8739 2012-04-10 Tristan Gingold <gingold@adacore.com>
8740
8741 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8742 code to kill the inferior.
8743
8744 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8745
8746 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8747 defines.
8748 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8749 defines.
8750 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8751 (yyvsp): New defines.
8752 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8753 defines.
8754 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8755 defines.
8756 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8757 defines.
8758 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8759 defines.
8760 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8761 defines.
8762
8763 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8764
8765 * sparc64-tdep.c (sparc64_store_arguments)
8766 (sparc64_store_arguments): Fix coding style.
8767
8768 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8769
8770 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8771 complex floats, adjust some related comments and tighten a related
8772 assertion.
8773 (sparc64_extract_return_value): Handle complex floats.
8774
8775 2012-04-07 Doug Evans <dje@google.com>
8776
8777 * dwarf2read.c (load_partial_dies): Change condition to assert.
8778
8779 2012-04-06 Doug Evans <dje@google.com>
8780
8781 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8782 "mov %rsp,%rbp".
8783
8784 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8785
8786 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8787 fencepost error.
8788 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8789 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8790 architecture.
8791
8792 2012-04-05 Keith Seitz <keiths@redhat.com>
8793
8794 * linespec.c (decode_compound): Remove.
8795 (enum offset_relative_sign): New enum.
8796 (struct line_offset): New struct.
8797 (struct linespec): New struct.
8798 (struct linespec_state): Move file_symtabs,
8799 user_filename, and user_function into struct linespec.
8800 Make result an anonymous struct holding vectors of
8801 symbolp and minsym_and_objfile_d.
8802 Add language member.
8803 (enum ls_token_type): New enum.
8804 (linespec_keywords): New array.
8805 (struct ls_token): New struct.
8806 (struct ls_parser): New struct.
8807 (linespec_lexer_lex_number): New function.
8808 (linespec_lexer_lex_keyword): New function.
8809 (is_ada_operator): New function.
8810 (skip_quote_char): New function.
8811 (copy_token_string): New function.
8812 (is_closing_quote_enclosed): New function.
8813 (find_parameter_list_end): New function.
8814 (linespec_lexer_lex_string): New function.
8815 (linespec_lexer_lex_one): New function.
8816 (linespec_lexer_consume_token): New function.
8817 (linespec_lexer_peek_token): New function.
8818 (cplusplus_error): Remove unused function.
8819 (find_methods): Update comment.
8820 (find_toplevel_char): Return const.
8821 (is_objc_method_format): Remove unused function.
8822 (find_toplevel_string): New function.
8823 (is_linespec_boundary): Remove.
8824 (symbol_not_found_error): New function.
8825 (find_method_overload_end): Remove function.
8826 (unexpected_linespec_error): New function.
8827 (keep_name_info): Remove.
8828 (linespec_parse_line_offset): New function.
8829 (linespec_parse_basic): New function.
8830 (canonicalize_linespec): New function.
8831 (decode_line_internal): Remove.
8832 (create_sals_line_offset): New function adapted from
8833 decode_all_digits.
8834 (convert_linespec_to_sals): New function.
8835 (parse_linespec): New function.
8836 (linespec_parser_new): New function.
8837 (linespec_state_destructor): Change parameter type to
8838 struct linespec_state *.
8839 Add language parameter.
8840 Remove freeing of moved members.
8841 (linespec_parser_delete): New function.
8842 (decode_line_full): Use parse_linespec and linespec_parser_new.
8843 (decode_line_1): Likewise.
8844 (decode_indirect): Rename to ...
8845 (linespec_expression_to_pc): ... this and rewrite
8846 to simply find CORE_ADDR, storing this result for later
8847 conversion to SALs.
8848 (locate_first_half): Remove.
8849 (deocde_objc): Add parameter LS.
8850 Initialize new struct collect_info members.
8851 Handle minimal symbols, too.
8852 (decode_compound): Delete.
8853 (lookup_prefix_sym): Rewrite.
8854 (compare_msymbols): New function.
8855 (find_method): Rewrite.
8856 Do not call cplusplus_error.
8857 (symtabs_from_filename): Rewrite.
8858 (collect_function_symbols): Delete.
8859 (find_function_symbols): Rewrite without ARGPTR-style
8860 processing.
8861 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8862 (decode_dollar): Adapted and renamed to ...
8863 (linespec_parse_variable): ... this.
8864 (find_linespec_symbols): New function.
8865 (decode_label): Adapted and renamed to ...
8866 (find_label_symbols): ... this.
8867 (decode_digits_list_mode): Add and use LS argument.
8868 (decode_digits_ordinary): Likewise.
8869 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8870 If in list mode, allow any symbol class. Otherwise, only
8871 permit LOC_BLOCK symbols.
8872 (minsym_found): Update comments.
8873 (search_minsyms_for_name): Do not convert the matching symbol
8874 into a SAL. Simply push the symbol and objfile into the
8875 result vector.
8876 (decode_variable): Delete. Contents adapted into
8877 find_linespec_symbols.
8878
8879 * cp-support.c (SKIP_SPACE): Remove.
8880 (operator_tokens): Remove unused global.
8881 (cp_validate_operator): Remove.
8882 * cp-support.h (cp_validate_operator): Remove declaration.
8883
8884 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8885
8886 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8887 for TYPE_VPTR_FIELDNO.
8888 * valprint.c (valprint_check_validity): Make it global, move the
8889 function comment ...
8890 * value.h (valprint_check_validity): ... to this new declaration.
8891
8892 2012-04-02 Tristan Gingold <gingold@adacore.com>
8893
8894 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8895 the STATE32 api for i386 state.
8896 (i386_darwin_store_inferior_registers): Likewise.
8897
8898 2012-04-02 Tristan Gingold <gingold@adacore.com>
8899
8900 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8901 SS offset.
8902 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8903 format_string.
8904
8905 2012-04-02 Tristan Gingold <gingold@adacore.com>
8906
8907 PR gdb/13901
8908 * darwin-nat.c (darwin_execvp): Set binary preference.
8909
8910 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8911
8912 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8913
8914 2012-03-30 Tom Tromey <tromey@redhat.com>
8915
8916 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8917 of TRY_CATCH. Fix error handling.
8918 * python/py-value.c (convert_value_from_python): Move 'old'
8919 declaration to innermost scope.
8920
8921 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8922 Andrey Smirnov <andrew.smirnov@gmail.com>
8923
8924 -Wshadow warning fix.
8925 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8926 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8927 Adjust code accordingly.
8928
8929 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8930
8931 * ada-lang.c (symbol_completion_add): Rename parameter
8932 "encoded" into "encoded_p". Ajust code and documentation
8933 accordingly.
8934
8935 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8936 Andrey Smirnov <andrew.smirnov@gmail.com>
8937
8938 -Wshadow warning fix.
8939 * ada-lang.c (symbol_completion_add): Rename parameter
8940 "wild_match" into wild_match_p. Update code and documentation
8941 accordingly.
8942
8943 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8944
8945 * ada-lang.c (symbol_completion_match): Rename parameter
8946 "encoded" into "encoded_p". Ajust code and documentation
8947 accordingly.
8948
8949 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8950 Andrey Smirnov <andrew.smirnov@gmail.com>
8951
8952 -Wshadow warning fix.
8953 * ada-lang.c (symbol_completion_match): Rename parameter
8954 "wild_match" into "wild_match_p". Adjust code and function
8955 documentation accordingly.
8956
8957 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8958 Andrey Smirnov <andrew.smirnov@gmail.com>
8959
8960 -Wshadow warning fix.
8961 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8962 "symbol_info" into "info". Adjust code accordingly.
8963 (ada_lookup_symbol): Likewise.
8964
8965 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8966
8967 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8968 of this function's documentation.
8969
8970 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8971 Andrey Smirnov <andrew.smirnov@gmail.com>
8972
8973 -Wshadow warning fix.
8974 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8975 variable into "wild_match_p". Adjust code accordingly.
8976
8977 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8978 Andrey Smirnov <andrew.smirnov@gmail.com>
8979
8980 -Wshadow warning fix.
8981 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8982 parameter into "wild_match_p". Adjust code accordingly.
8983 Document this parameter in the function description.
8984
8985 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8986 Andrey Smirnov <andrew.smirnov@gmail.com>
8987
8988 -Wshadow warning fix.
8989 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8990 "wild_match" parameter to "wild_match_p" (-Wshadow).
8991
8992 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8993
8994 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8995 in function documentation.
8996
8997 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8998 Andrey Smirnov <andrew.smirnov@gmail.com>
8999
9000 -Wshadow warning fix.
9001 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9002 variable into wild_match_p. Adjust code accordingly.
9003
9004 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9005 Andrey Smirnov <andrew.smirnov@gmail.com>
9006
9007 * ada-valprint.c (ada_val_print_1): Move the code handling
9008 TYPE_CODE_ENUM inside its own lexical block. Declare
9009 variables len and val there, instead of in the function's
9010 top level block. Avoid declaring deref_val again in a way
9011 that shadows another variable of the same name declared
9012 in one of the up-level blocks. Just re-use the up-level
9013 variable instead.
9014
9015 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9016
9017 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9018 Replace block_found argument by symbol_info. Adjust
9019 implementation accordingly. Add function documentation.
9020 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9021 Fix documentation.
9022 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9023 * ada-exp.y (write_object_renaming): Adjust to new
9024 ada_lookup_encoded_symbol API.
9025
9026 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9027
9028 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9029 documentation.
9030
9031 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9032
9033 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9034 (v850_register_name): Add the mpu and fpu register names.
9035 (v850e_register_name): Add the mpu and fpu register names.
9036 (v850e2_register_name): New function.
9037 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9038 bfd_mach_v850e2v3.
9039
9040 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9041
9042 * NEWS: Add entry for Ada varobj support.
9043
9044 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9045
9046 * varobj.c (default_value_is_changeable_p): New function,
9047 extracted from varobj_value_is_changeable_p. Add declaration.
9048 (ada_value_is_changeable_p): New function, extracted from
9049 varobj_value_is_changeable_p. Add declaration.
9050 (struct language_specific): New field "value_is_changeable_p".
9051 (languages): Add entries for new field.
9052 (varobj_create): Set language before calling install_new_value.
9053 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9054 "value_is_changeable_p" language callback.
9055
9056 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9057
9058 * ada-varobj.h, ada-varobj.c: New files.
9059 * Makefile.in (SFILES): Add ada-varobj.c.
9060 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9061 (COMMON_OBS): Add ada-varobj.o.
9062
9063 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9064
9065 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9066 (struct language_specific): New field "value_has_mutated".
9067 (languages): Set field "value_has_mutated" in each entry of array.
9068 (varobj_value_has_mutated): New function.
9069 (varobj_udpdate): Add handling of type mutation.
9070 (value_of_root): Add handling of type mutation.
9071 (ada_value_has_mutated): New function.
9072
9073 2012-03-28 Pedro Alves <palves@redhat.com>
9074
9075 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9076 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9077
9078 2012-03-28 Tom Tromey <tromey@redhat.com>
9079
9080 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9081 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9082 before returning.
9083
9084 2012-03-28 Tom Tromey <tromey@redhat.com>
9085
9086 * .dir-locals.el: New file.
9087
9088 2012-03-28 Pedro Alves <palves@redhat.com>
9089
9090 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9091
9092 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9093
9094 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9095 handling for r0.
9096
9097 2012-03-27 Pedro Alves <palves@redhat.com>
9098
9099 Eliminate struct ui_stream.
9100
9101 * ui-out.h (struct ui_stream): Delete.
9102 (ui_out_field_stream): Adjust prototype.
9103 (ui_out_stream_new, ui_out_stream_delete)
9104 (make_cleanup_ui_out_stream_delete): Delete declarations.
9105 * ui-out.c (ui_out_field_stream): Change prototype to take a
9106 ui_file instead of a ui_stream. Adjust.
9107 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9108 (make_cleanup_ui_out_stream_delete): Delete.
9109 * breakpoint.c (print_breakpoint_location)
9110 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9111 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9112 * disasm.c (dump_insns): Ditto.
9113 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9114 prototype.
9115 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9116 ui_stream/ui_out_stream_new.
9117 * infcmd.c (print_return_value): Ditto.
9118 * osdata.c (info_osdata_command): Don't allocate a local
9119 ui_stream.
9120 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9121 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9122 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9123 allocate a local ui_stream.
9124 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9125 instead of ui_stream/ui_out_stream_new.
9126 (list_args_or_locals): Don't allocate a local ui_stream.
9127 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9128 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9129 ui_stream/ui_out_stream_new.
9130 * cli/cli-setshow.c (do_setshow_command): Ditto.
9131
9132 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9133
9134 * arm-linux-tdep.c (arm_linux_init_abi): Call
9135 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9136 * arm-tdep.c (arm_process_record): New function.
9137 (deallocate_reg_mem): New function.
9138 (decode_insn): New function.
9139 (thumb_record_branch): New function.
9140 (thumb_record_ldm_stm_swi(): New function.
9141 (thumb_record_misc): New function.
9142 (thumb_record_ld_st_stack): New function.
9143 (thumb_record_ld_st_imm_offset): New function.
9144 (thumb_record_ld_st_reg_offset(): New function.
9145 (thumb_record_add_sub_cmp_mov): New function.
9146 (thumb_record_shift_add_sub): New function.
9147 (arm_record_coproc_data_proc): New function.
9148 (arm_record_coproc): New function.
9149 (arm_record_b_bl): New function.
9150 (arm_record_ld_st_multiple): New function.
9151 (arm_record_ld_st_reg_offset): New function.
9152 (arm_record_ld_st_imm_offset): New function.
9153 (arm_record_data_proc_imm): New function.
9154 (arm_record_data_proc_misc_ld_str): New function.
9155 (arm_record_extension_space): New function.
9156 (arm_record_strx): New function.
9157 (sbo_sbz): New function.
9158 (struct insn_decode_record): New structure for arm insn record.
9159 (REG_ALLOC): New macro for reg allocations.
9160 (MEM_ALLOC): New macro for memory allocations.
9161 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9162
9163 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9164
9165 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9166 (store_register): Likewise.
9167
9168 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9169
9170 * MAINTAINERS (Write After Approval): Add myself to the list.
9171
9172 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9173
9174 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9175 Describe also the option "auto".
9176
9177 2012-03-22 Richard Henderson <rth@redhat.com>
9178
9179 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9180 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9181
9182 2012-03-22 Richard Henderson <rth@redhat.com>
9183
9184 * jit.c (jit_read_code_entry): Compute alignment and offset of
9185 int64_t member before computing entry_size.
9186
9187 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9188
9189 Python scripting: Add new method Value.referenced_value to
9190 gdb.Value which can dereference pointer as well as reference
9191 values.
9192 * NEWS: Add entry under 'Python scripting' about the new method
9193 Value.referenced_value on gdb.Value objects.
9194 * python/py-value.c (valpy_referenced_value): New function
9195 defining a new method on gdb.Value objects which can dereference
9196 pointer and reference values.
9197
9198 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9199
9200 * MAINTAINERS (Write After Approval): Add myself to the list.
9201
9202 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9203
9204 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9205 in addition to "main".
9206
9207 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9208
9209 * expression.h (op_name): Add declaration.
9210 * expprint.c (op_name): Remove declaration. Make non-static.
9211 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9212
9213 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9214
9215 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9216 of struct siginfo.
9217 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9218 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9219 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9220 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9221 (linux_nat_get_siginfo): Likewise.
9222 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9223 (linux_nat_get_siginfo): Likewise.
9224 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9225 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9226 * procfs.c (gdb_siginfo_t): Likewise.
9227
9228 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9229
9230 * .gitignore: Ignore more files.
9231
9232 2012-03-20 Pedro Alves <palves@redhat.com>
9233
9234 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9235 returns.
9236
9237 2012-03-20 Yao Qi <yao@codesourcery.com>
9238
9239 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9240 comment.
9241
9242 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9243
9244 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9245 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9246 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9247 sect_offset.
9248 * dwarf2expr.h (cu_offset, sect_offset): New types.
9249 (struct dwarf_expr_context_funcs) <dwarf_call>
9250 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9251 sect_offset.
9252 (struct dwarf_expr_context) <len>: Improve the comment.
9253 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9254 cu_offset and sect_offset.
9255 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9256 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9257 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9258 * dwarf2loc.h: Include dwarf2expr.h.
9259 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9260 and sect_offset.
9261 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9262 Improve the comment.
9263 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9264 (struct signatured_type, struct line_header, struct partial_die_info)
9265 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9266 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9267 (get_die_type_at_offset, create_cus_from_index)
9268 (create_signatured_type_table_from_index, dw2_get_file_names)
9269 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9270 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9271 (create_debug_types_hash_table, process_psymtab_comp_unit)
9272 (load_partial_comp_unit, create_all_comp_units)
9273 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9274 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9275 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9276 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9277 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9278 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9279 (find_partial_die, read_attribute_value, lookup_die_type)
9280 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9281 (is_ref_attr): New function comment.
9282 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9283 Use cu_offset and sect_offset.
9284 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9285 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9286 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9287 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9288 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9289 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9290 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9291 sect_offset.
9292
9293 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9294
9295 Code cleanup.
9296 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9297 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9298 with xfree.
9299 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9300
9301 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9302
9303 * NEWS: Describe new options --init-command=FILE, -ix and
9304 --init-eval-command=COMMAND, -iex.
9305 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9306 CMDARG_INIT_COMMAND.
9307 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9308 "init-command", "init-eval-command", "ix" and "iex" to the variable
9309 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9310 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9311 (print_gdb_help): Describe --init-command=FILE, -ix and
9312 --init-eval-command=COMMAND, -iex.
9313
9314 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9315
9316 Code cleanup.
9317 * main.c (struct cmdarg): Move it here from main. Add more comments.
9318 (cmdarg_s, VEC (cmdarg_s)): New.
9319 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9320 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9321 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9322 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9323 of CMDARG.
9324
9325 2012-03-19 Tom Tromey <tromey@redhat.com>
9326
9327 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9328
9329 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9330
9331 PR symtab/13777
9332 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9333 GCC >=4.5.
9334
9335 2012-03-16 Chris January <chris.january@allinea.com>
9336
9337 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9338 of clear.
9339
9340 2012-03-16 Chris January <chris.january@allinea.com>
9341
9342 * source.c (add_path): Use memmove instead of strcpy because the
9343 strings overlap.
9344
9345 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9346
9347 * value.h (set_value_parent): Add declaration.
9348 * value.c (set_value_parent): New function.
9349 (value_address): If VALUE->PARENT is not NULL, then use it as
9350 the base address instead of VALUE->LOCATION.address.
9351 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9352 the same as OBJ's address. Adjust V's offset accordingly.
9353 Set V's parent.
9354
9355 2012-03-16 Gary Benson <gbenson@redhat.com>
9356
9357 PR breakpoints/10738
9358 * dwarf2read.c (use_deprecated_index_sections): New global.
9359 (struct partial_die_info): New member may_be_inlined.
9360 (read_partial_die): Set may_be_inlined where appropriate.
9361 (add_partial_subprogram): Add partial symbols for partial
9362 DIEs that may be inlined.
9363 (new_symbol_full): Add inlined subroutines to the current
9364 scope.
9365 (write_psymtabs_to_index): Bump version number.
9366 (dwarf2_read_index): Read only version 6 indices unless
9367 use_deprecated_index_sections is set.
9368 * linespec.c (symbol_and_data_callback): New structure.
9369 (iterate_inline_only): New function.
9370 (iterate_over_all_matching_symtabs): New argument
9371 "include_inline". If nonzero, also call the callback for
9372 symbols representing inlined subroutines.
9373 (lookup_prefix_sym): Pass extra argument to the above.
9374 (find_function_symbols): Likewise.
9375 (add_matching_symbols_to_info): Likewise.
9376 * NEWS: Mention that GDB can now set breakpoints on inlined
9377 functions.
9378
9379 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9380
9381 * p-typeprint.c (pascal_type_print_method_args):
9382 Fix display of parameter of methods.
9383
9384 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9385
9386 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9387 Add missing prototype.
9388
9389 2012-03-16 Yao Qi <yao@codesourcery.com>
9390 Jan Kratochvil <jan.kratochvil@redhat.com>
9391
9392 Fix false compilation warning.
9393 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9394
9395 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9396 Pedro Alves <pedro@codesourcery.com>
9397
9398 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9399 (arm_register_g_packet_guesses): New function.
9400 (arm_gdbarch_init): Don't force a target description with
9401 registers when the executable is detected as M-profile. Instead
9402 set gdbarch->tdep->is_m. Register `g' packet guesses.
9403 (_initialize_arm_tdep): Initialize the new target description.
9404 * features/arm-with-m-fpa-layout.xml: New description.
9405 * features/arm-with-m-fpa-layout.c: New, generated.
9406
9407 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9408
9409 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9410 Update function description.
9411 (insert_bp_location): Do not wipe bl->target_info out.
9412 * mem-break.c: #include "gdb_string.h".
9413 (default_memory_insert_breakpoint): Do not call target_read_memory
9414 with a pointer to the breakpoint's shadow_contents buffer. Use
9415 a local buffer instead.
9416 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9417
9418 2012-03-15 Tom Tromey <tromey@redhat.com>
9419
9420 * NEWS: Mention "info vtbl", not "info vtable".
9421 * cp-support.c (info_vtbl_command): Fix comment.
9422 (_initialize_cp_support): Fix text.
9423
9424 2012-03-15 Tom Tromey <tromey@redhat.com>
9425
9426 * cp-valprint.c (cp_print_value_fields): Use
9427 print_function_pointer_address for vtable slot.
9428
9429 2012-03-15 Tom Tromey <tromey@redhat.com>
9430
9431 * gnu-v3-abi.c (struct value_and_voffset): New.
9432 (hash_value_and_voffset, eq_value_and_voffset)
9433 (compare_value_and_voffset, compute_vtable_size)
9434 (print_one_vtable, gnuv3_print_vtable): New functions.
9435 (init_gnuv3_ops): Initialize 'print_vtable' field.
9436 * cp-support.c (info_vtbl_command): New function.
9437 (_initialize_cp_support): Add "info vtbl".
9438 * cp-abi.h (cplus_print_vtable): Declare.
9439 (struct cp_abi_ops) <print_vtable>: New field.
9440 * cp-abi.c (cplus_print_vtable): New function.
9441 * NEWS: Update.
9442
9443 2012-03-15 Tom Tromey <tromey@redhat.com>
9444
9445 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9446 iterate_over_symbols.
9447
9448 2012-03-14 Doug Evans <dje@google.com>
9449
9450 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9451 DW_OP_GNU_parameter_ref.
9452
9453 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9454
9455 Fix double prompt of 'interpreter-exec mi'.
9456 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9457 (mi_interpreter_resume): use it.
9458 (mi_execute_command_input_handler): New function.
9459 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9460 mi_execute_command_input_handler.
9461
9462 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9463
9464 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9465 prototype.
9466 (darwin_debug_port_info): Make static.
9467 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9468 * machoread.c (_initialize_machoread): Add prototype.
9469 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9470 (i386_darwin_set_control, i386_darwin_get_control)
9471 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9472 i386_darwin_get_status, i386_darwin_get_control):
9473 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9474
9475 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9476
9477 * ax-gdb.c (gen_usual_unary): Remove special handling of
9478 enum and bool types.
9479
9480 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9481
9482 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9483
9484 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9485
9486 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9487
9488 2012-03-13 Chris January <chris.january@allinea.com>
9489
9490 * aix-thread.c (fill_sprs): Store the floating point registers
9491 at the correct offsets into vals.
9492
9493 2012-03-13 Doug Evans <dje@google.com>
9494
9495 * NEWS: Mention symbol-reloading has been deleted.
9496 * symfile.c (symbol_reloading): Delete.
9497 (show_symbol_reloading): Delete.
9498 (_initialize_symfile): Delete set/show symbol-reloading.
9499
9500 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9501 read_in_chain until we have successfully read it in.
9502 (load_full_comp_unit): Ditto.
9503 (read_signatured_type): Add comment.
9504
9505 2012-03-13 Chris January <chris.january@allinea.com>
9506
9507 * stabsread.c (fix_common_block): Change type of valu argument
9508 to CORE_ADDR.
9509
9510 2012-03-13 Chris January <chris.january@allinea.com>
9511
9512 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9513 instruction.
9514
9515 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9516
9517 * common/linux-procfs.c (linux_proc_get_int): New, from
9518 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9519 field.
9520 (linux_proc_get_tgid): Only call linux_proc_get_int.
9521 (linux_proc_get_tracerpid): New.
9522 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9523 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9524 linux_proc_pid_has_state.
9525 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9526 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9527 (linux_ptrace_attach_warnings): New.
9528 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9529 New declaration.
9530 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9531 (linux_nat_attach): New variables ex, buffer, message and message_s.
9532 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9533
9534 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9535
9536 * Makefile.in (linux-ptrace.o): New.
9537 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9538 from linux-nat.c.
9539 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9540 * common/linux-ptrace.c: New file.
9541 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9542 * config/arm/linux.mh: Likewise.
9543 * config/i386/linux.mh: Likewise.
9544 * config/i386/linux64.mh: Likewise.
9545 * config/ia64/linux.mh: Likewise.
9546 * config/m32r/linux.mh: Likewise.
9547 * config/m68k/linux.mh: Likewise.
9548 * config/mips/linux.mh: Likewise.
9549 * config/pa/linux.mh: Likewise.
9550 * config/powerpc/linux.mh: Likewise.
9551 * config/powerpc/ppc64-linux.mh: Likewise.
9552 * config/powerpc/spu-linux.mh: Likewise.
9553 * config/s390/s390.mh: Likewise.
9554 * config/sparc/linux.mh: Likewise.
9555 * config/sparc/linux64.mh: Likewise.
9556 * config/xtensa/linux.mh: Likewise.
9557 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9558 common/linux-procfs.c.
9559 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9560
9561 2012-03-13 Hui Zhu <teawater@gmail.com>
9562 Pedro Alves <palves@redhat.com>
9563
9564 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9565 CREATE_BREAKPOINT_FLAGS_INSERTED.
9566 (create_breakpoint_sal, create_breakpoints_sal)
9567 (base_breakpoint_create_breakpoints_sal)
9568 (tracepoint_create_breakpoints_sal)
9569 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9570 down.
9571 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9572 (ftrace_command, strace_command): Adjust.
9573 (create_tracepoint_from_upload): Pass
9574 CREATE_BREAKPOINT_FLAGS_INSERTED.
9575 * breakpoint.h (enum breakpoint_create_flags): New.
9576 (create_breakpoint): New flags parameter.
9577 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9578 * python/py-breakpoint.c (bppy_init): Adjust.
9579 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9580 * spu-tdep.c (spu_catch_start): Adjust.
9581
9582 2012-03-13 Pedro Alves <palves@redhat.com>
9583 Hui Zhu <teawater@gmail.com>
9584 Yao Qi <yao@codesourcery.com>
9585
9586 * remote.c (struct remote_state): New field `starting_up'.
9587 (remote_start_remote): Set and clear it.
9588 (remote_can_download_tracepoint): If starting up, return false.
9589
9590 2012-03-13 Yao Qi <yao@codesourcery.com>
9591
9592 * inferior.h (struct inferior): Remove fields any_syscall_count,
9593 syscalls_counts and total_syscalls_count. Move them to new
9594 struct catch_syscall_inferior_data in breakpoint.c.
9595 * breakpoint.c: Call DEF_VEC_I(int).
9596 (struct catch_syscall_inferior_data): New.
9597 (get_catch_syscall_inferior_data): New.
9598 (catch_syscall_inferior_data_cleanup): New.
9599 (insert_catch_syscall): Update to access data in
9600 struct catch_syscall_inferior_data.
9601 (insert_catch_syscall): Likewise.
9602 (remove_catch_syscall): Likewise.
9603 (remove_catch_syscall): Likewise.
9604 (is_syscall_catchpoint_enabled): Likewise.
9605 (add_catch_command): Likewise.
9606 (_initialize_breakpoint): Register cleanup.
9607 * breakpoint.h: Removed DEF_VEC_I(int).
9608 * dwarf2loc.c: Call DEF_VEC_I(int).
9609 * mi/mi-main.c: Likewise.
9610
9611 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9612
9613 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9614
9615 2012-03-12 Chris January <chris.january@allinea.com>
9616
9617 * aix-thread.c (_initialize_aix_thread): Add prototype.
9618 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9619 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9620
9621 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9622
9623 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9624 include of "amd64-nat.h".
9625
9626 2012-03-12 Tom Tromey <tromey@redhat.com>
9627
9628 * buildsym.c (record_pending_block): Now static.
9629 * buildsym.h: (record_pending_block): Remove.
9630
9631 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9632
9633 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9634
9635 2012-03-09 Tom Tromey <tromey@redhat.com>
9636
9637 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9638 producer_is_gxx_lt_4_6>: New fields.
9639 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9640
9641 2012-03-09 Tom Tromey <tromey@redhat.com>
9642
9643 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9644
9645 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9646
9647 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9648 prototype.
9649
9650 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9651
9652 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9653
9654 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9655
9656 Fix -Wmissing-prototypes build.
9657 * arm-linux-nat.c (get_thread_id): Make it static.
9658 * xtensa-linux-nat.c (get_thread_id): Likewise.
9659
9660 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9661
9662 * server.c (process_point_options): If a conditional expression
9663 is found, only print a message if remote_debug is nonzero.
9664
9665 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9666
9667 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9668 of internal error for unknown/unsupported types.
9669
9670 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9671
9672 Fix CU relative vs. absolute DIE offsets.
9673 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9674 offset to offset_in_cu.
9675 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9676 TYPE_OFFSET.
9677 (dwarf2_fetch_die_location_block): Rename parameter offset to
9678 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9679
9680 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9681
9682 * libunwind-frame.c: Rename to ...
9683 * ia64-libunwind-tdep.c: ... here.
9684 * libunwind-frame.h: Rename to ...
9685 * ia64-libunwind-tdep.h: ... here.
9686 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9687 ia64-libunwind-tdep.h.
9688 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9689 * README (--with-libunwind): Rename to ...
9690 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9691 * config.in: Regenerate.
9692 * configure: Regenerate.
9693 * configure.ac: New option --with-libunwind-ia64, make the
9694 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9695 Remove AC_DEFINE for HAVE_LIBUNWIND.
9696 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9697 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9698 Rename libunwind-frame in the general comment.
9699 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9700 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9701 Move forward declarations inside #ifndef. Rename libunwind-frame in
9702 the general comment.
9703 * ia64-tdep.c: Rename libunwind-frame.h #include to
9704 ia64-libunwind-tdep.h.
9705 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9706 (ia64_libunwind_descr): Rename libunwind-frame to
9707 ia64-libunwind-tdep in these function comments.
9708 * ia64-tdep.h: Rename libunwind-frame.h #include to
9709 ia64-libunwind-tdep.h.
9710 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9711 ia64-libunwind-tdep in that data comment.
9712
9713 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9714
9715 * libunwind-frame.h (struct frame_unwind): New declaration.
9716
9717 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9718
9719 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9720 "set breakpoint condition-evaluation" command.
9721
9722 2012-03-08 Tristan Gingold <gingold@adacore.com>
9723
9724 * sparc-stub.c: Move to stubs/
9725 * sh-stub.c: Likewise.
9726 * m68k-stub.c: Likewise.
9727 * m32r-stub.c: Likewise.
9728 * i386-stub.c: Likewise.
9729
9730 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9731
9732 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9733 linux_get_siginfo_type.
9734
9735 * m68klinux-nat.c: Include "gdb_proc_service.h".
9736 (PTRACE_GET_THREAD_AREA): Define.
9737 (ps_get_thread_area): New function.
9738
9739 2012-03-08 Yao Qi <yao@codesourcery.com>
9740
9741 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9742 `xsnprintf'.
9743 (remote_query_attached): Likewise.
9744 (remote_static_tracepoint_marker_at): Likewise.
9745 (remote_set_permissions): Likewise.
9746 (remote_detach_1, extended_remote_attach_1): Likewise.
9747 (send_g_packet, remote_vkill): Likewise.
9748 (extended_remote_disable_randomization): Likewise.
9749 (remote_add_target_side_condition): Likewise.
9750 (remote_insert_breakpoint): Likewise.
9751 (remote_remove_breakpoint): Likewise.
9752 (remote_insert_watchpoint): Likewise.
9753 (remote_remove_watchpoint): Likewise.
9754 (remote_insert_hw_breakpoint): Likewise.
9755 (remote_insert_hw_breakpoint): Likewise.
9756 (remote_remove_hw_breakpoint): Likewise.
9757 (remote_download_command_source): Likewise.
9758 (remote_download_tracepoint): Likewise.
9759 (remote_download_trace_state_variable): Likewise.
9760 (remote_disable_tracepoint): Likewise.
9761 (remote_trace_set_readonly_regions): Likewise.
9762 (remote_get_tracepoint_status): Likewise.
9763 (remote_trace_find): Likewise.
9764 (remote_get_trace_state_variable_value): Likewise.
9765 (remote_set_disconnected_tracing): Likewise.
9766 (remote_set_circular_trace_buffer): Likewise.
9767 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9768 (remote_use_agent): Likewise.
9769 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9770 Update callers.
9771
9772 2012-03-07 Pedro Alves <palves@redhat.com>
9773
9774 * NEWS: Mention QProgramSignals.
9775 * inferior.h (update_signals_program_target): Declare.
9776 * infrun.c: (update_signals_program_target): New.
9777 (handle_command): Update the target of the new program signals
9778 array changes.
9779 * remote.c (PACKET_QProgramSignals): New enum.
9780 (last_program_signals_packet): New global.
9781 (remote_program_signals): New.
9782 (remote_start_remote): Update the target with the program signals
9783 list.
9784 (remote_protocol_features): Add entry for QPassSignals.
9785 (remote_open_1): Free anc clear last_program_signals_packet.
9786 (init_remote_ops): Install remote_program_signals.
9787 * target.c (update_current_target): Adjust.
9788 (target_program_signals): New.
9789 * target.h (struct target_ops) <to_program_signals>: New field.
9790 (target_program_signals): Declare.
9791
9792 2012-03-07 Pedro Alves <palves@redhat.com>
9793
9794 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9795 extensions.
9796
9797 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9798
9799 * m68klinux-nat.c (getregs_supplies): Make static.
9800 (getfpregs_supplies): Likewise.
9801 (have_ptrace_getregs): Likewise.
9802
9803 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9804
9805 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9806 in call to get_die_type_at_offset.
9807
9808 2012-03-06 Stan Shebs <stan@codesourcery.com>
9809
9810 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9811 * mi/mi-cmd-disas.c: Ditto.
9812 * mi/mi-cmd-env.c: Ditto.
9813 * mi/mi-cmd-file.c: Ditto.
9814 * mi/mi-cmd-stack.c: Ditto.
9815 * mi/mi-cmd-target.c: Ditto.
9816 * mi/mi-cmd-var.c: Ditto.
9817 * mi/mi-cmds.c: Ditto.
9818 * mi/mi-cmds.h: Ditto.
9819 * mi/mi-console.c: Ditto.
9820 * mi/mi-getopt.c: Ditto.
9821 * mi/mi-getopt.h: Ditto.
9822 * mi/mi-interp.c: Ditto.
9823 * mi/mi-main.c: Ditto.
9824 * mi/mi-out.c: Ditto.
9825 * mi/mi-parse.c: Ditto.
9826 * mi/mi-parse.h: Ditto.
9827 * mi/mi-symbol-cmds.c: Ditto.
9828
9829 * mi/mi-getopt.h: Move mi_opt struct up.
9830 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9831 return.
9832 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9833
9834 2012-03-06 Tom Tromey <tromey@redhat.com>
9835
9836 * proc-service.c (ps_pglobal_lookup): Set the current program
9837 space.
9838
9839 2012-03-06 Pedro Alves <palves@redhat.com>
9840
9841 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9842
9843 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9844
9845 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9846
9847 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9848
9849 Code cleanup.
9850 * common/linux-osdata.c (linux_common_core_of_thread): New function
9851 comment.
9852 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9853 call by linux_common_core_of_thread.
9854 (linux_nat_core_of_thread_1): Remove.
9855 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9856 * linux-thread-db.c: Include linux-osdata.h.
9857 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9858 linux_common_core_of_thread.
9859
9860 2012-03-05 Tom Tromey <tromey@redhat.com>
9861
9862 * value.c (value_primitive_field): Don't fetch contents for
9863 non-virtual bases.
9864
9865 2012-03-05 Tom Tromey <tromey@redhat.com>
9866
9867 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9868
9869 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9870
9871 * s390-nat.c: Include "gregset.h".
9872
9873 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9874
9875 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9876 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9877 (libunwind_load): New variable so_error, use it for dlerror. Try to
9878 load also LIBUNWIND_SO_7.
9879
9880 2012-03-05 Pedro Alves <palves@redhat.com>
9881
9882 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9883 is not NULL, and remove resulting dead code.
9884
9885 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9886
9887 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9888 prologue to sh_analyze_prologue.
9889 (sh_analyze_prologue): Make better use of such an upper limit, and
9890 generally be more cautious about accessing memory.
9891
9892 2012-03-05 Tom Tromey <tromey@redhat.com>
9893
9894 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9895 _initialize_ia64_hpux_tdep.
9896
9897 2012-03-05 Pedro Alves <palves@redhat.com>
9898
9899 PR gdb/13766
9900
9901 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9902 the register state is clear, supply explicit zero, instead of
9903 marking the register unavailable.
9904
9905 2012-03-05 Tristan Gingold <gingold@adacore.com>
9906
9907 * NEWS: Mention OpenVMS ia64 new target.
9908
9909 2012-03-05 Tristan Gingold <gingold@adacore.com>
9910
9911 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9912 (ia64_unw_accessors, ia64_unw_rse_accessors)
9913 (ia64_libunwind_descr): Declare.
9914 * ia64-vms-tdep.c: New file.
9915 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9916 (ia64_libunwind_descr): Make them public.
9917 * configure.tgt: Add ia64-*-*vms*.
9918 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9919 (ALLDEPFILES): Add ia64-vms-tdep.c
9920
9921 2012-03-05 Tristan Gingold <gingold@adacore.com>
9922
9923 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9924 * remote.c (PACKET_qXfer_uib): New enum value.
9925 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9926 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9927 (_initialize_remote): Call add_packet_config_cmd for
9928 xfer:uib packet.
9929
9930 2012-03-05 Tristan Gingold <gingold@adacore.com>
9931
9932 * osabi.c (gdb_osabi_names): Add OpenVMS.
9933 (generic_elf_osabi_sniffer): Likewise.
9934 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9935
9936 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9937
9938 Removed unused code.
9939 * libunwind-frame.c (libunwind_frame_unwind)
9940 (libunwind_frame_base_address): Remove.
9941 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9942
9943 2012-03-04 Yao Qi <yao@codesourcery.com>
9944
9945 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9946 remove trailing new line.
9947 (agent_run_command, agent_run_command): Add _ markup.
9948 (agent_capability_check): Likewise.
9949
9950 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9951
9952 * breakpoint.c (set_condition_evaluation_mode): Set
9953 CONDITION_EVALUATION_MODE unconditionally.
9954
9955 2012-03-03 Yao Qi <yao@codesourcery.com>
9956
9957 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9958 * common/agent.h: Update declaration.
9959 * inf-child.c (inf_child_use_agent): New.
9960 (inf_child_can_use_agent): New.
9961 (inf_child_target): Initialize fields `to_use_agent'
9962 and `to_can_use_agent'.
9963 * agent.c (agent_new_objfile): New.
9964 (_initialize_agent): Add agent_new_objfile to new_objfile
9965 observer.
9966
9967 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9968 New.
9969 (linux_target_install_ops): Initialize field
9970 `to_static_tracepoint_markers_by_strid'.
9971 * remote.c (free_current_marker): Move it to ...
9972 * tracepoint.c (free_current_marker): ... here. New.
9973 (cleanup_target_stop): New.
9974 * tracepoint.h: Declare free_current_marker.
9975 * NEWS: Add one entry about `info static-tracepoint-marker'.
9976
9977 2012-03-03 Yao Qi <yao@codesourcery.com>
9978
9979 * common/agent.c (agent_loaded_p): New.
9980 (agent_look_up_symbols): New global.
9981 * common/agent.h: Declare agent_loaded_p.
9982
9983 2012-03-03 Yao Qi <yao@codesourcery.com>
9984
9985 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9986 (agent_capability_check, agent_capability_invalidate): New.
9987 (symbol_list): New array element.
9988 * common/agent.h (enum agent_capa): New.
9989 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9990
9991 2012-03-03 Yao Qi <yao@codesourcery.com>
9992
9993 * target.h (struct target_ops) <to_use_agent>: New field.
9994 (struct target_ops) <to_can_use_agent>: New field.
9995 (target_use_agent, target_can_use_agent): New macro.
9996 * target.c (update_current_target): Update.
9997 * remote.c: New enum `PACKET_QAgent'.
9998 (remote_protocol_features): Add a new element.
9999 (remote_use_agent, remote_can_use_agent): New.
10000 (init_remote_ops): Initialize field `can_use_agent' with
10001 remote_can_use_agent. Intiailize field `use_agent' with
10002 remote_use_agent.
10003 * common/agent.c (use_agent): New global.
10004 * common/agent.h: Declare it.
10005 * tracepoint.c (info_static_tracepoint_markers_command): Add
10006 comment.
10007 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10008 (COMMON_OBS): Add common/agent.o and agent.o
10009 (common-agent.o): New rule.
10010 * agent.c: New.
10011
10012 2012-03-03 Yao Qi <yao@codesourcery.com>
10013
10014 * common/agent.c: New.
10015 * common/agent.h: New.
10016 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10017 AC_CHECK_HEADERS.
10018 * configure, configh.in: Regenerated.
10019
10020 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10021
10022 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10023 unless it exists for this architecture.
10024
10025 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10026
10027 * language.h (struct language_defn): New "method" la_read_var_value.
10028 * findvar.c: #include "language.h".
10029 (default_read_var_value): Renames read_var_value. Rewrite
10030 function description.
10031 (read_var_value): New function.
10032 * value.h (default_read_var_value): Add prototype.
10033 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10034 New functions.
10035 (ada_language_defn): Add entry for la_read_var_value.
10036 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10037 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10038 language_defn structures to add entry for new la_read_var_value
10039 field.
10040
10041 2012-03-02 Tom Tromey <tromey@redhat.com>
10042 Pedro Alves <palves@redhat.com>
10043
10044 PR breakpoints/13776:
10045 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10046 breakpoints.
10047 (delete_longjmp_breakpoint_at_next_stop): New.
10048 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10049 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10050 before deleting the inferior. Add comments.
10051 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10052 breakpoints immediately, but only on next stop. Move that code
10053 next to where we mark other breakpoints for deletion.
10054
10055 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10056
10057 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10058 marker.
10059 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10060 violation.
10061
10062 2012-03-02 Pedro Alves <palves@redhat.com>
10063
10064 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10065
10066 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10067
10068 Fix -Wmissing-prototypes build.
10069 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10070 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10071 (gdbsim_has_memory): Likewise.
10072
10073 2012-03-02 Yao Qi <yao@codesourcery.com>
10074
10075 Fix -Wmissing-prototypes build.
10076 * charset.c (phony_iconv_open): Make static.
10077 (phony_iconv_close, phony_iconv): Likewise.
10078 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10079 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10080 prototype.
10081 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10082 * ser-mingw.c (create_select_thread): Make static.
10083 * windows-termcap.c (tgetent): New prototype.
10084 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10085
10086 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10087
10088 Fix -Wmissing-prototypes build.
10089 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10090 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10091 (_initialize_loadable): New prototypes.
10092
10093 2012-03-02 Doug Evans <dje@google.com>
10094
10095 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10096 abbrev table, read_comp_unit will do it.
10097
10098 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10099
10100 Fix -Wmissing-prototypes build.
10101 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10102 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10103 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10104 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10105 (_initialize_arm_symbian_tdep): New prototype.
10106 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10107 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10108 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10109 static.
10110 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10111 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10112 prototype.
10113 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10114 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10115 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10116 static.
10117 * moxie-tdep.c (moxie_process_record): Likewise.
10118 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10119 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10120 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10121 (_initialize_rl78_tdep): New prototype.
10122 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10123 (_initialize_rx_tdep): New prototype.
10124 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10125 (_initialize_darwin_solib): New prototype.
10126 * solib-spu.c: Include solib-spu.h.
10127 (_initialize_spu_solib): New prototype.
10128 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10129 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10130 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10131 (tic6x_software_single_step): Make it static.
10132 (_initialize_tic6x_tdep): New prototype.
10133
10134 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10135
10136 Fix -Wmissing-prototypes build.
10137 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10138 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10139
10140 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10141
10142 Fix -Wmissing-prototypes build.
10143 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10144 (frv_have_stopped_data_address): Remove.
10145
10146 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10147
10148 Fix -Wmissing-prototypes build.
10149 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10150 * sh-tdep.c: Include sh64-tdep.h.
10151 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10152 * sh64-tdep.c: Include sh64-tdep.h.
10153 * sh64-tdep.h: New file.
10154
10155 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10156
10157 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10158
10159 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10160
10161 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10162 sp_regnum once the gdbarch_init_osabi hook has been called.
10163
10164 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10165
10166 * mips-tdep.c (mips32_bc1_pc): New function.
10167 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10168 BPOSGE32 and BPOSGE64 instructions.
10169 (deal_with_atomic_sequence): Likewise.
10170 (mips32_instruction_has_delay_slot): Likewise.
10171
10172 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10173 Chris Dearman <chris@mips.com>
10174 Maciej W. Rozycki <macro@codesourcery.com>
10175 Joseph Myers <joseph@codesourcery.com>
10176
10177 * features/mips-dsp.xml: New file.
10178 * features/mips64-dsp.xml: New file.
10179 * features/mips-dsp-linux.xml: New file.
10180 * features/mips64-dsp-linux.xml: New file.
10181 * features/Makefile (WHICH): Add mips-dsp-linux and
10182 mips64-dsp-linux.
10183 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10184 * features/mips-dsp-linux.c: New file.
10185 * features/mips64-dsp-linux.c: New file.
10186 * regformats/mips-dsp-linux.dat: New file.
10187 * regformats/mips64-dsp-linux.dat: New file.
10188 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10189 registers.
10190 (mips64_linux_register_addr): Likewise.
10191 (mips64_linux_regsets_fetch_registers): Likewise.
10192 (mips64_linux_regsets_store_registers): Likewise.
10193 (mips64_linux_fetch_registers): Update call to
10194 mips64_linux_regsets_fetch_registers.
10195 (mips64_linux_store_registers): Update call to
10196 mips64_linux_regsets_store_registers.
10197 (mips_linux_read_description): Probe for DSP registers.
10198 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10199 and initialize_tdesc_mips64_dsp_linux.
10200 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10201 Remove padding of no longer used embedded register slots.
10202 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10203 (MIPS_RESTART_REGNUM): Redefine enum value.
10204 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10205 strings.
10206 (mips_tx39_reg_names): Likewise.
10207 (mips_linux_reg_names): New array of register names for Linux
10208 targets.
10209 (mips_register_name): Check for a null pointer in
10210 mips_processor_reg_names and return an empty string.
10211 (mips_register_type): Exclude embedded registers for the IRIX
10212 and Linux ABIs.
10213 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10214 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10215 DSP registers.
10216 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10217 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10218 (mips_gdbarch_init): Likewise. Initialize internal register
10219 indices for the Linux ABI. Use dynamic numbers to refer to
10220 registers, as applicable, while parsing the target description.
10221 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10222
10223 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10224
10225 * frame.h (read_frame_register_unsigned): Fix typo in function
10226 description.
10227
10228 2012-03-01 Pedro Alves <palves@redhat.com>
10229
10230 * jit-reader.in [!__cplusplus]
10231 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10232
10233 2012-03-01 Pedro Alves <palves@redhat.com>
10234
10235 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10236 * configure: Regenerate.
10237
10238 2012-03-01 Pedro Alves <palves@redhat.com>
10239
10240 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10241 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10242 (ftrace_command, strace_command): Make static.
10243 * d-lang.c (_initialize_d_language): Declare.
10244 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10245 * dwarf2loc.c (_initialize_dwarf2loc):
10246 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10247 * exec.c (exec_get_section_table): Make static.
10248 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10249 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10250 * inferior.c (remove_inferior_command, add_inferior_command)
10251 (clone_inferior_command): Make static.
10252 * linux-nat.c (linux_nat_thread_address_space)
10253 (linux_nat_core_of_thread): Make static.
10254 * linux-tdep.c (_initialize_linux_tdep): Declare.
10255 * objc-lang.c (_initialize_objc_lang): Declare.
10256 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10257 Make static.
10258 (_initialize_opencl_language): Declare.
10259 * record.c (_initialize_record): Declare.
10260 * remote.c (demand_private_info, remote_get_tib_address)
10261 (remote_supports_cond_tracepoints)
10262 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10263 Make static.
10264 * skip.c (_initialize_step_skip): Declare.
10265 * symtab.c (skip_prologue_using_lineinfo): Make static.
10266 * tracepoint.c (delete_trace_state_variable)
10267 (trace_variable_command, delete_trace_variable_command)
10268 (get_uploaded_tsv, find_matching_tracepoint_location)
10269 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10270 Make static.
10271 * value.c (pack_unsigned_long): Make static.
10272 * varobj.c (varobj_ensure_python_env): Make static.
10273 * windows-tdep.c (_initialize_windows_tdep): Declare.
10274 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10275
10276 2012-03-01 Pedro Alves <palves@redhat.com>
10277
10278 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10279 gdbarch parameter.
10280 (linux_init_abi): Install it as has_shared_address_space gdbarch
10281 callback.
10282
10283 2012-03-01 Pedro Alves <palves@redhat.com>
10284
10285 * observer.c (observer_test_first_notification_function)
10286 (observer_test_second_notification_function)
10287 (observer_test_third_notification_function): Add declarations.
10288
10289 2012-03-01 Pedro Alves <palves@redhat.com>
10290
10291 * common/signals.c (default_target_signal_to_host)
10292 (default_target_signal_from_host): Move ...
10293 * arch-utils.c: ... here.
10294 * arch-utils.h (default_target_signal_to_host)
10295 (default_target_signal_from_host): Declare.
10296
10297 * common/signals.c (target_signal_from_command): Move ...
10298 * infrun.c: ... here.
10299 * inferior.h (target_signal_from_command): Declare.
10300 * target.h (target_signal_from_command)
10301 (default_target_signal_from_host, default_target_signal_to_host):
10302 Delete declarations.
10303
10304 * common/signals.c (_initialize_signals): Delete.
10305
10306 2012-03-01 Pedro Alves <palves@redhat.com>
10307
10308 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10309 both __cplusplus and !__cplusplus.
10310
10311 2012-03-01 Pedro Alves <palves@redhat.com>
10312
10313 * psymtab.c (find_and_open_source): Delete declaration.
10314 * source.c (find_and_open_source): Move comment ...
10315 * source.h (find_and_open_source): ... to this new declaration.
10316
10317 2012-03-01 Pedro Alves <palves@redhat.com>
10318
10319 * inline-frame.c: Include inline-frame.h.
10320
10321 2012-03-01 Pedro Alves <palves@redhat.com>
10322
10323 * tui/tui-data.c (set_gen_win_origin): Delete.
10324 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10325 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10326
10327 2012-03-01 Pedro Alves <palves@redhat.com>
10328
10329 * remote.c (encode_actions): Delete declaration.
10330 * tracepoint.c (encode_actions): Make extern.
10331 * tracepoint.h (encode_actions): Declare.
10332
10333 2012-03-01 Pedro Alves <palves@redhat.com>
10334
10335 * python/py-breakpoint.c: Include python.h.
10336 * python/py-continueevent.c (create_continue_event_object): Make
10337 static.
10338 * python/py-lazy-string.c (stpy_get_type): Make static.
10339 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10340 Make static.
10341 * python/py-utils.c (unicode_to_target_python_string): Make
10342 static.
10343 * python/py-value.c: Include python.h.
10344
10345 2012-03-01 Pedro Alves <palves@redhat.com>
10346
10347 * inferior.c (delete_threads_of_inferior): Delete.
10348
10349 2012-03-01 Pedro Alves <palves@redhat.com>
10350
10351 Import fallback definitions from glibc.
10352
10353 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10354 ps_prochandle): Forward declare.
10355 (ps_err_e): Use glibc's comments.
10356 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10357 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10358 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10359 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10360 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10361 (struct ps_prochandle): Adjust comment.
10362
10363 2012-03-01 Pedro Alves <palves@redhat.com>
10364
10365 * ada-lang.c (ada_modulus_from_name): Delete.
10366 * ada-lex.l (lexer_init): Make static.
10367
10368 2012-03-01 Pedro Alves <palves@redhat.com>
10369
10370 PR gdb/13767
10371
10372 * frame.c (read_frame_register_unsigned): New.
10373 * frame.h (read_frame_register_unsigned): Declare.
10374 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10375 Handle it.
10376 (print_i387_control_word): New parameter `control_p'. Handle it.
10377 (i387_print_float_info): Handle unavailable float registers.
10378
10379 2012-03-01 Keith Seitz <keiths@redhat.com>
10380
10381 * linespec.c (decode_line_2): Sort the list of methods
10382 alphabetically before presenting the user with a selection
10383 menu.
10384
10385 2012-03-01 Doug Evans <dje@google.com>
10386
10387 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10388 has_namespace_info.
10389 (dwarf2_read_abbrevs): Remove corresponding initialization.
10390
10391 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10392
10393 * NEWS: Mention new python command class gdb.COMMAND_USER.
10394 * cli/cli-cmds.c (show_user): Print error when used on a python
10395 command.
10396 (init_cli_cmds): Update documentation strings for "show user" and
10397 "set/show max-user-call-depth" to clarify that it does not apply to
10398 python commands.
10399 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10400 error check.
10401 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10402 gdb python api.
10403 * top.c (execute_command): Only execute a user-defined command as a
10404 legacy macro if c->user_commands is set.
10405
10406 2012-03-01 Tom Tromey <tromey@redhat.com>
10407
10408 * valprint.h (struct generic_val_print_decorations): New.
10409 (generic_val_print): Declare.
10410 * valprint.c (generic_val_print): New function.
10411 * p-valprint.c (p_decorations): New global.
10412 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10413 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10414 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10415 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10416 * m2-valprint.c (m2_decorations): New global.
10417 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10418 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10419 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10420 TYPE_CODE_ERROR>: Call generic_val_print.
10421 * f-valprint.c (f_decorations): New global.
10422 (f_val_print): Use print_function_pointer_address.
10423 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10424 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10425 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10426 generic_val_print.
10427 * c-valprint.c (c_decorations): New global.
10428 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10429 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10430 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10431 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10432 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10433 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10434 case.
10435
10436 2012-03-01 Tom Tromey <tromey@redhat.com>
10437
10438 * valprint.c (val_print): Update.
10439 * p-valprint (pascal_val_print): Return void.
10440 * p-lang.h (pascal_val_print): Return void.
10441 * m2-valprint.c (m2_val_print): Return void.
10442 * m2-lang.h (m2_val_print): Return void.
10443 * language.h (struct language_defn) <la_val_print>: Return void.
10444 * language.c (unk_lang_val_print): Return void.
10445 * jv-valprint.c (java_val_print): Return void.
10446 * jv-lang.h (java_val_print): Return void.
10447 * f-valprint.c (f_val_print): Return void.
10448 * f-lang.h (f_val_print): Return void.
10449 * d-valprint.c (d_val_print): Return void.
10450 (dynamic_array_type): Update.
10451 * d-lang.h (d_val_print): Return void.
10452 * c-valprint.c (c_val_print): Return void.
10453 * c-lang.h (c_val_print): Return void.
10454 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10455 void.
10456 * ada-lang.h (ada_val_print): Return void.
10457
10458 2012-03-01 Tom Tromey <tromey@redhat.com>
10459
10460 * value.h (val_print): Return void.
10461 * valprint.c (val_print): Return void.
10462
10463 2012-03-01 Tom Tromey <tromey@redhat.com>
10464
10465 * value.h (common_val_print): Return void.
10466 * valprint.c (common_val_print): Return void.
10467
10468 2012-03-01 Tom Tromey <tromey@redhat.com>
10469
10470 * value.h (value_print): Return void.
10471 * valprint.c (value_print): Return void.
10472 * p-valprint.c (pascal_value_print): Return void.
10473 * p-lang.h (pascal_value_print): Return void.
10474 * language.h (struct language_defn) <la_value_print>: Return
10475 void.
10476 * language.c (unk_lang_value_print): Return void.
10477 * jv-valprint.c (java_value_print): Return void.
10478 * jv-lang.h (java_value_print): Return void.
10479 * f-valprint.c (c_value_print): Don't declare.
10480 Include c-lang.h.
10481 * c-valprint.c (c_value_print): Return void.
10482 * c-lang.h (c_value_print): Return void.
10483 * ada-valprint.c (ada_value_print): Return void.
10484 * ada-lang.h (ada_value_print): Return void.
10485
10486 2012-03-01 Tom Tromey <tromey@redhat.com>
10487
10488 * value.c (value_primitive_field): Handle virtual base classes.
10489
10490 2012-03-01 Tom Tromey <tromey@redhat.com>
10491
10492 * gdbtypes.h (struct vbase): Remove.
10493
10494 2012-03-01 Tom Tromey <tromey@redhat.com>
10495
10496 * c-valprint.c (print_function_pointer_address): Move...
10497 * valprint.c: ... here. Make non-static.
10498 * m2-valprint.c (print_function_pointer_address): Remove.
10499 * valprint.h (print_function_pointer_address): Declare.
10500
10501 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10502
10503 * NEWS: Document the fact that one can provide a condition when
10504 creating an Ada exception catchpoint.
10505
10506 2012-03-01 Tom Tromey <tromey@redhat.com>
10507
10508 * valprint.c (val_print_type_code_flags): Fix placement of
10509 trailing brace.
10510
10511 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10512
10513 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10514 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10515 environment variable before calling update-copyright.
10516
10517 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10518
10519 * gnulib/extra/update-copyright: Update to the latest from
10520 gnulib's git repository.
10521 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10522 variable to 2 instead of 1.
10523
10524 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10525
10526 * varobj.c (c_value_of_variable): Remove dead code.
10527
10528 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10529
10530 * ada-lex.p (processId): Do not modify already encoded IDs.
10531 Update function documentation.
10532
10533 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10534
10535 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10536 "name" with "struct symbol *name_sym".
10537 * ada-exp.y (write_var_or_type): Update call to
10538 ada_find_renaming_symbol.
10539 "name" with "struct symbol *name_sym". Adjust Implementation
10540 accordingly. Adjust the function documentation.
10541
10542 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10543
10544 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10545 * ada-lang.c (ada_find_any_type): Add advance declaration.
10546 Make static. Replace ada_find_any_symbol by
10547 ada_find_any_type_symbol.
10548 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10549 Improve function description. Make static.
10550 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10551 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10552
10553 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10554
10555 * ada-lang.c (struct tag_args): Delete.
10556 (ada_get_tsd_type): Function body moved up in source file.
10557 (ada_tag_name_1, ada_tag_name_2): Delete.
10558 (ada_get_tsd_from_tag): New function.
10559 (ada_tag_name_from_tsd): New function.
10560 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10561 to determine the tag name.
10562
10563 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10564
10565 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10566 declaration.
10567 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10568 function.
10569
10570 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10571
10572 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10573
10574 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10575
10576 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10577 full searches.
10578
10579 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10580
10581 * ada-lang.c (constrained_packed_array_type): If there is a
10582 parallel XA type, use it to determine the array index type.
10583
10584 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10585
10586 * ada-valprint.c (ada_val_print_1): If our value is a reference
10587 to an array descriptor, dereference it before converting it
10588 to a simple array.
10589
10590 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10591
10592 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10593 creating fixed value.
10594 (ada_value_ind, ada_coerce_ref, assign_component)
10595 (ada_evaluate_subexp): Remove call to unwrap_value before
10596 call to ada_to_fixed_value.
10597
10598 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10599
10600 * ada-lang.c (to_fixed_array_type): Set result's type name.
10601
10602 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10603
10604 * ada-lang.c (catch_ada_exception_command_split): Add new
10605 argument cond_string. Add support for condition at end of
10606 "catch exception" commands.
10607 (ada_decode_exception_location): Add new argument cond_string.
10608 Update call to catch_ada_exception_command_split.
10609 (create_ada_exception_catchpoint): Add new argument cond_string.
10610 Set the breakpoint condition if needed.
10611 (catch_ada_exception_command): Update call to
10612 ada_decode_exception_location.
10613 (ada_decode_assert_location): Add function documentation.
10614 Add support for condition at end of "catch assert" command.
10615 (catch_assert_command): Update calls to ada_decode_assert_location
10616 and create_ada_exception_catchpoint.
10617
10618 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10619
10620 Fix disp-step-syscall.exp: fork: single step over fork.
10621 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10622 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10623 comment, change parameters gdbarch and ptid to regcache. Remove
10624 parameter regcache, initialize gdbarch from regcache here.
10625 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10626 New functions.
10627 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10628 instead.
10629 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10630 'syscall'. Make the 'int' check more strict.
10631
10632 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10633
10634 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10635 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10636 (i386_linux_intx80_sysenter_syscall_record): ... here.
10637 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10638 Use the renamed function name.
10639
10640 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10641
10642 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10643 * breakpoint.c (until_break_command): Likewise.
10644 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10645 * infcall.c (call_function_by_hand): Likewise.
10646 * infcmd.c (finish_forward): Likewise.
10647 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10648
10649 2012-02-28 Tristan Gingold <gingold@adacore.com>
10650
10651 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10652 avoid variable assignments inside condition.
10653
10654 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10655
10656 Fix static analysis issue found by cppcheck.
10657 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10658 uninitialized BUF for size 2.
10659
10660 2012-02-27 Chris Dearman <chris@mips.com>
10661 Nathan Froyd <froydnj@codesourcery.com>
10662 Maciej W. Rozycki <macro@codesourcery.com>
10663
10664 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10665 (mips16_instruction_has_delay_slot): Likewise.
10666 (mips_segment_boundary): Likewise.
10667 (mips_adjust_breakpoint_address): Likewise.
10668 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10669
10670 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10671 Maciej W. Rozycki <macro@codesourcery.com>
10672
10673 * infrun.c (handle_inferior_event): Don't proceed through
10674 shared library trampolines if stepping at the machine
10675 instruction level.
10676
10677 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10678
10679 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10680 too.
10681
10682 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10683
10684 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10685 (sh_stub_unwind_sniffer): New functions.
10686 (sh_stub_unwind): New variable.
10687 (sh_gdbarch_init): Wire everything.
10688
10689 2012-02-27 Pedro Alves <palves@redhat.com>
10690
10691 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10692 (linux_nat_post_attach_wait): Adjust to use
10693 linux_proc_pid_is_stopped.
10694 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10695 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10696 based on pid_is_stopped from both linux-nat.c and
10697 gdbserver/linux-low.c, and renamed.
10698
10699 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10700
10701 * remote.c (remote_watchpoint_addr_within_range): New function.
10702 (init_remote_ops): Use it.
10703
10704 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10705
10706 * target.h (target_watchpoint_addr_within_range): Document macro.
10707
10708 2012-02-24 Pedro Alves <palves@redhat.com>
10709
10710 * stack.c (set_last_displayed_sal): Issue internal_error instead
10711 of warning, and issue it after clearing the last displayed sal.
10712
10713 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10714 Pedro Alves <palves@redhat.com>
10715
10716 * breakpoint.c (until_break_command): Install breakpoints after
10717 all frame manipulations.
10718
10719 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10720
10721 * remote.c (remote_supports_cond_breakpoints): New forward
10722 declaration.
10723 (remote_add_target_side_condition): New function.
10724 (remote_insert_breakpoint): Add target-side breakpoint
10725 conditional if supported.
10726 (remote_insert_hw_breakpoint): Likewise.
10727 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10728 hook.
10729
10730 * target.c (update_current_target): Inherit
10731 to_supports_evaluation_of_breakpoint_conditions.
10732 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10733
10734 * target.h (struct target_ops)
10735 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10736 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10737
10738 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10739 (condition_evaluation_both, condition_evaluation_auto,
10740 condition_evaluation_host, condition_evaluation_target,
10741 condition_evaluation_enums, condition_evaluation_mode_1,
10742 condition_evaluation_mode): New static globals.
10743 (translate_condition_evaluation_mode): New function.
10744 (breakpoint_condition_evaluation_mode): New function.
10745 (gdb_evaluates_breakpoint_condition_p): New function.
10746 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10747 (mark_breakpoint_modified): New function.
10748 (mark_breakpoint_location_modified): New function.
10749 (set_condition_evaluation_mode): New function.
10750 (show_condition_evaluation_mode): New function.
10751 (bp_location_compare_addrs): New function.
10752 (get_first_location_gte_addr): New helper function.
10753 (set_breakpoint_condition): Free condition bytecode if locations
10754 has become unconditional. Call mark_breakpoint_modified (...).
10755 (condition_command): Call update_global_location_list (1) for
10756 breakpoints.
10757 (breakpoint_xfer_memory): Use is_breakpoint (...).
10758 (is_breakpoint): New function.
10759 (parse_cond_to_aexpr): New function.
10760 (build_target_condition_list): New function.
10761 (insert_bp_location): Handle target-side conditional
10762 breakpoints and call build_target_condition_list (...).
10763 (update_inserted_breakpoint_locations): New function.
10764 (insert_breakpoint_locations): Handle target-side conditional
10765 breakpoints.
10766 (bpstat_check_breakpoint_conditions): Add comment.
10767 (bp_condition_evaluator): New function.
10768 (bp_location_condition_evaluator): New function.
10769 (print_breakpoint_location): Print information on where the condition
10770 will be evaluated.
10771 (print_one_breakpoint_location): Likewise.
10772 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10773 breakpoint location.
10774 (force_breakpoint_reinsertion): New functions.
10775 (update_global_location_list): Handle target-side breakpoint
10776 conditions.
10777 Reinsert locations that are already inserted if conditions have
10778 changed.
10779 (bp_location_dtor): Free agent expression bytecode.
10780 (disable_breakpoint): Call mark_breakpoint_modified (...).
10781 Call update_global_location_list (...) with parameter 1 for breakpoints.
10782 (disable_command): Call mark_breakpoint_location_modified (...).
10783 Call update_global_location_list (...) with parameter 1 for breakpoints.
10784 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10785 (enable_command): mark_breakpoint_location_modified (...).
10786 (_initialize_breakpoint): Update documentation and add
10787 condition-evaluation breakpoint subcommand.
10788
10789 * breakpoint.h: Include ax.h.
10790 (condition_list): New data structure.
10791 (condition_status): New enum.
10792 (bp_target_info) <cond_list>: New field.
10793 (bp_location) <condition_changed, cond_bytecode>: New fields.
10794 (is_breakpoint): New prototype.
10795
10796 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10797
10798 * remote.c (remote_state) <cond_breakpoints>: New field.
10799 (PACKET_ConditionalBreakpoints): New enum.
10800 (remote_cond_breakpoint_feature): New function.
10801 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10802 (remote_supports_cond_breakpoints): New function.
10803 (_initialize_remote): Add new packet configuration for
10804 target-side conditional breakpoints.
10805
10806 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10807
10808 * NEWS: Mention target-side conditional breakpoint support,
10809 new condition-evaluation breakpoint subcommand and remote
10810 packet extensions.
10811
10812 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10813
10814 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10815 number.
10816
10817 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10818
10819 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10820 (after_prologue): Remove.
10821
10822 2012-02-23 Tom Tromey <tromey@redhat.com>
10823
10824 * jv-valprint.c (java_val_print): Remove dead code.
10825
10826 2012-02-23 Tristan Gingold <gingold@adacore.com>
10827
10828 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10829 known_tasks_element and known_tasks_length fields.
10830 (read_known_tasks_array): Change argument type. Use pointer type
10831 and number of elements from DATA. Adjust.
10832 (read_known_tasks_list): Likewise.
10833 (get_known_tasks_addr): Remove.
10834 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10835 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10836 type and array length. Merge former get_known_tasks_addr code.
10837
10838 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10839
10840 PR backtrace/13716
10841 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10842 it after set_momentary_breakpoint.
10843
10844 2012-02-22 Sterling Augustine <saugustine@google.com>
10845
10846 PR 13689:
10847 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10848
10849 2012-02-22 Gary Benson <gbenson@redhat.com>
10850
10851 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10852 (find_slot_in_mapped_hash): Likewise.
10853
10854 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10855
10856 PR build/13638
10857 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10858 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10859 * configure: Regenerate.
10860
10861 2012-02-21 Tristan Gingold <gingold@adacore.com>
10862 Pedro Alves <palves@redhat.com>
10863
10864 * ia64-tdep.c: Do not include libunwind-ia64.h.
10865 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10866 Include libunwind-ia64.h instead of libunwind.h.
10867 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10868 for libunwind.h existence.
10869 * configure, config.in: Regenerate.
10870
10871 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10872
10873 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10874 instead of value_rtti_target_type.
10875 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10876 instead of value_rtti_target_type.
10877 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10878 value_rtti_target_type.
10879 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10880 (value_rtti_target_type): Rename to ...
10881 (value_rtti_indirect_type): ... here and make it indirect. Update
10882 function comment.
10883 * value.c (readjust_indirect_value_type): New function.
10884 (coerce_ref): Support for enclosing type setting for references
10885 with readjust_indirect_value_type.
10886 * value.h (readjust_value_type): New declaration.
10887 (value_rtti_target_type): Rename to ...
10888 (value_rtti_indirect_type): ... here.
10889
10890 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10891
10892 * MAINTAINERS (Write After Approval): Add myself to the list.
10893
10894 2012-02-20 Doug Evans <dje@google.com>
10895
10896 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10897 Rename objfile_p_char parameter to objfilep.
10898 (build_objfile_section_table): Result is now void. All callers
10899 updated.
10900 * objfiles.h (struct objfile): Tweak comments, whitespace.
10901 (build_objfile_section_table): Update.
10902
10903 * elfread.c (elf_symfile_segments): Fix warning text.
10904
10905 2012-02-20 Tom Tromey <tromey@redhat.com>
10906
10907 PR gdb/13498:
10908 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10909 particular set of file names once.
10910 (dw2_map_symbol_filenames): Likewise.
10911
10912 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10913
10914 Code cleanup.
10915 * main.c (write_files): Remove the declaration.
10916 (external_editor_command): Move the declaration ...
10917 [GDBTK] (external_editor_command): ... here. Fix the comment.
10918
10919 2012-02-20 Tom Tromey <tromey@redhat.com>
10920
10921 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10922 extraneous block.
10923
10924 2012-02-20 Tristan Gingold <gingold@adacore.com>
10925
10926 * darwin-nat.h (enum darwin_msg_state): Add comments.
10927
10928 2012-02-20 Tristan Gingold <gingold@adacore.com>
10929
10930 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10931 value.
10932
10933 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10934
10935 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10936 between function description and implementation.
10937
10938 2012-02-17 Tom Tromey <tromey@redhat.com>
10939
10940 PR python/12070:
10941 * python/py-event.c (event_object_getset): New global.
10942 (event_object_type): Reference it.
10943 * python/py-type.c (field_object_getset): New global.
10944 (field_object_type): Reference it.
10945 * python/python-internal.h (gdb_py_generic_dict): Declare.
10946 * python/py-utils.c (gdb_py_generic_dict): New function.
10947
10948 2012-02-17 Tristan Gingold <gingold@adacore.com>
10949
10950 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10951
10952 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10953
10954 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10955 TYPE_CALLING_CONVENTION annotation.
10956
10957 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10958
10959 * MAINTAINERS: Add rx to target ISA section.
10960 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10961 (ALLDEPFILES): Add rx-tdep.c.
10962
10963 2012-02-16 Tom Tromey <tromey@redhat.com>
10964
10965 * symfile.c (symbol_file_add_main_1): Use inferior's
10966 symfile_flags.
10967 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10968 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10969 inferior.
10970 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10971 inferior.
10972 (follow_exec): Use inferior's symfile_flags.
10973 * inferior.h (struct inferior) <symfile_flags>: New field.
10974
10975 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10976
10977 PR gdb/9734:
10978 * remote-sim.c (gdbsim_create_inferior): Call error() when
10979 sim_create_inferior() fails.
10980
10981 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10982
10983 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10984
10985 2012-02-16 Tom Tromey <tromey@redhat.com>
10986
10987 PR c++/13653:
10988 * thread.c (struct current_thread_cleanup) <was_removable>: New
10989 field.
10990 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10991 (make_cleanup_restore_current_thread): Initialize new field.
10992
10993 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10994
10995 * MAINTAINERS: Add rl78 to target ISA section.
10996 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10997 (ALLDEPFILES): Add rl78-tdep.c.
10998 * NEWS: Mention rl78 as a new target.
10999
11000 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11001
11002 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11003 data.
11004 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11005
11006 2012-02-15 Tom Tromey <tromey@redhat.com>
11007
11008 PR gdb/12659:
11009 * infcmd.c (registers_info): Print just the current register's
11010 name.
11011
11012 2012-02-15 Tom Tromey <tromey@redhat.com>
11013
11014 * python/py-symbol.c (sympy_value): Use _().
11015
11016 2012-02-15 Pedro Alves <palves@redhat.com>
11017
11018 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11019 output to be like native targets'.
11020 (remote_pid_to_str): Special case the null ptid.
11021
11022 2012-02-14 Stan Shebs <stan@codesourcery.com>
11023
11024 * NEWS: Mention enable count command.
11025 * breakpoint.h (struct breakpoint): New field enable_count.
11026 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11027 (enable_breakpoint): Add arg to call.
11028 (struct disp_data): New struct.
11029 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11030 (do_map_enable_once_breakpoint): Create a struct and pass it.
11031 (do_map_enable_delete_breakpoint): Ditto.
11032 (do_map_enable_count_breakpoint): New function.
11033 (enable_count_command): New function.
11034 (bpstat_stop_status): Decrement enable_count.
11035 (print_one_breakpoint_location): Report enable count.
11036 (_initialize_breakpoint): Add enable count command.
11037
11038 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11039
11040 * rl78-tdep.c (reggroups.h): Include.
11041 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11042 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11043 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11044 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11045 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11046 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11047 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11048 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11049 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11050 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11051 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11052 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11053 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11054 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11055 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11056 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11057 beginning of register list.
11058 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11059 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11060 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11061 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11062 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11063 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11064 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11065 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11066 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11067 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11068 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11069 the pseudo registers. Rearrange other pseudo registers too so
11070 that the bank registers appear at the end.
11071 (rl78_register_type): Account for the fact that the byte sized
11072 bank registers are now pseudo-registers.
11073 (rl78_register_name): Rearrange the register name array. Make
11074 initial set of raw banked registers inaccessible.
11075 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11076 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11077 case for copying bytes back and forth between raw and pseudo
11078 versions of the banked registers. Update other cases to reflect
11079 the changed names.
11080 (rl78_return_value): Update to account for changed names of
11081 raw registers.
11082 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11083 rl78_register_sim_regno().
11084
11085 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11086
11087 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11088 the name parameter being passed to find_pc_partial_function().
11089
11090 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11091
11092 * MAINTAINERS: Step down from being ia64 target maintainer.
11093
11094 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11095
11096 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11097 compilation warning.
11098
11099 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11100
11101 Fix crash on loaded shlibs without loaded exec_bfd.
11102 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11103 (set_section_command): Replace exec_bfd by p->bfd.
11104
11105 2012-02-10 Tom Tromey <tromey@redhat.com>
11106
11107 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11108 when we have a C++ qualified name.
11109
11110 2012-02-10 Pedro Alves <palves@redhat.com>
11111
11112 * inferior.c (inferior_pid_to_str): New.
11113 (print_inferior, inferior_command): Use it.
11114
11115 2012-02-10 Pedro Alves <palves@redhat.com>
11116
11117 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11118 the test CFLAGS.
11119 * configure: Regenerate.
11120
11121 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11122
11123 * linespec.c (decode_line_internal): Fix comment correctness.
11124
11125 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11126
11127 PR gdb/12953
11128 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11129 * amd64bsd-nat.c: Add support for debug registers (adapted from
11130 i386bsd-nat.c).
11131 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11132 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11133 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11134 (amd64bsd_dr_get_control): New functions.
11135 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11136 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11137 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11138 watchpoints initialization.
11139 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11140
11141 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11142
11143 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11144 flds_bnds.fields.
11145 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11146
11147 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11148
11149 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11150
11151 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11152
11153 * language.h (symbol_name_cmp_ftype): Renames
11154 symbol_name_match_p_ftype.
11155 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11156 la_get_symbol_name_match_p.
11157 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11158 ada_get_symbol_name_match_p. Update comment.
11159 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11160 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11161 Renames symbol_name_match_p. Update field type.
11162 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11163 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11164 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11165 "la_get_symbol_name_cmp" in comments.
11166 * language.c: Likewise.
11167
11168 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11169
11170 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11171 %eflags offset.
11172 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11173 (amd64_sol2_gregset32_reg_offs): Likewise.
11174
11175 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11176
11177 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11178 of the returned BFD is allocated by GDB.
11179
11180 2012-02-07 Tom Tromey <tromey@redhat.com>
11181
11182 PR python/12027:
11183 * python/python-internal.h (frame_object_type): Declare.
11184 * python/py-symbol.c (sympy_needs_frame): New function.
11185 (sympy_value): New function.
11186 (symbol_object_getset): Add "needs_frame".
11187 (symbol_object_methods): Add "value".
11188 * python/py-frame.c (frame_object_type): No longer static.
11189
11190 2012-02-07 Tom Tromey <tromey@redhat.com>
11191
11192 PR python/13599:
11193 * python/py-symbol.c (sympy_line): New function.
11194 (symbol_object_getset): Add "line".
11195
11196 2012-02-07 Tom Tromey <tromey@redhat.com>
11197
11198 * charset.c (find_charset_names): Check 'in' against NULL.
11199
11200 2012-02-06 Doug Evans <dje@google.com>
11201
11202 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11203 and fields.name members from char * to const char *. All uses updated.
11204 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11205 from char * to const char *. All uses updated.
11206 (type_name_no_tag): Update.
11207 (lookup_unsigned_typename, lookup_signed_typename): Update.
11208 * gdbtypes.c (type_name_no_tag): Change result type
11209 from char * to const char *. All callers updated.
11210 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11211 name parameter from char * to const char *.
11212 * symtab.h (struct cplus_specific): Change type of demangled_name
11213 member from char * to const char *. All uses updated.
11214 (struct general_symbol_info): Change type of name and
11215 mangled_lang.demangled_name members from char * to const char *.
11216 All uses updated.
11217 (symbol_get_demangled_name, symbol_natural_name): Update.
11218 (symbol_demangled_name, symbol_search_name): Update.
11219 * symtab.c (symbol_get_demangled_name): Change result type
11220 from char * to const char *. All callers updated.
11221 (symbol_natural_name, symbol_demangled_name): Ditto.
11222 (symbol_search_name): Ditto.
11223 (completion_list_add_name): Change type of symname,sym_text,
11224 text,word parameters from char * to const char *.
11225 (completion_list_objc_symbol): Change type of sym_text,
11226 text,word parameters from char * to const char *.
11227 * ada-lang.c (find_struct_field): Change type of name parameter
11228 from char * to const char *.
11229 (encoded_ordered_before): Similarly for N0,N1 parameters.
11230 (old_renaming_is_invisible): Similarly for function_name parameter.
11231 (ada_type_name): Change result type from char * to const char *.
11232 All callers updated.
11233 * ada-lang.h (ada_type_name): Update.
11234 * buildsym.c (hashname): Change type of name parameter
11235 from char * to const char *.
11236 * buildsym.h (hashname): Update.
11237 * dbxread.c (end_psymtab): Change type of include_list parameter
11238 from char ** to const char **.
11239 * dwarf2read.c (determine_prefix): Change result type
11240 from char * to const char *. All callers updated.
11241 * f-lang.c (find_common_for_function): Change type of name, funcname
11242 parameters from char * to const char *.
11243 * f-lang.c (find_common_for_function): Update.
11244 * f-valprint.c (list_all_visible_commons): Change type of funcname
11245 parameters from char * to const char *.
11246 * gdbarch.sh (static_transform_name): Change type of name parameter
11247 and result from char * to const char *.
11248 * gdbarch.c: Regenerate.
11249 * gdbarch.h: Regenerate.
11250 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11251 of name parameter from char * to const char *.
11252 * jv-lang.c (java_primitive_type_from_name): Ditto.
11253 (java_demangled_signature_length): Similarly for signature parameter.
11254 (java_demangled_signature_copy): Ditto.
11255 (java_demangle_type_signature): Ditto.
11256 * jv-lang.h (java_primitive_type_from_name): Update.
11257 (java_demangle_type_signature): Update.
11258 * objc-lang.c (specialcmp): Change type of a,b parameters
11259 from char * to const char *.
11260 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11261 from char * to const char *. All callers updated.
11262 * p-lang.h (is_pascal_string_type): Update.
11263 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11264 of name parameter from char * to const char *.
11265 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11266 * utils.c (fprintf_symbol_filtered): Ditto.
11267 * defs.h (fprintf_symbol_filtered): Update.
11268 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11269 * stabsread.h (end_psymtab): Update.
11270 * stack.c (find_frame_funname): Change type of funname parameter
11271 from char ** to const char **.
11272 * stack.h (find_frame_funname): Update.
11273 * typeprint.c (type_print): Change type of varstring parameter
11274 from char * to const char *.
11275 * value.h (type_print): Update.
11276 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11277 from char * to const char *. All callers updated.
11278 (xcoff_end_psymtab): Change type of include_list parameter
11279 from char ** to const char **. All callers updated.
11280 (swap_sym): Similarly for name parameter. All callers updated.
11281 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11282 Use xstrdup.
11283 (process_coff_symbol): Use xstrdup.
11284 * stabsread.c (stabs_method_name_from_physname): Renamed from
11285 update_method_name_from_physname. Change result type from void
11286 to char *. All callers updated.
11287 (read_member_functions): In has_destructor case, store name in objfile
11288 obstack instead of malloc space. In !has_stub case, fix mem leak.
11289
11290 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11291
11292 * configure: Rebuild.
11293 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11294 LDFLAGS.
11295
11296 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11297
11298 * configure.tgt (rl78-*-elf): New target.
11299 * rl78-tdep.c: New file.
11300
11301 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11302
11303 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11304 and continue the loop. Add QUIT statement.
11305
11306 2012-02-03 Tom Tromey <tromey@redhat.com>
11307
11308 PR gdb/13596:
11309 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11310 bfd_lookup_symbol_from_symtab.
11311 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11312 gdb_bfd_lookup_symbol_from_symtab.
11313
11314 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11315
11316 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11317 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11318 symbol. Add assertion that sym2 is never NULL.
11319
11320 2012-02-02 Doug Evans <dje@google.com>
11321
11322 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11323 "name" parameter to const char ** from char **. All callers updated.
11324 (find_pc_partial_function): Ditto.
11325 (cache_pc_function_name): Change type to const char * from char *.
11326 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11327 (find_pc_partial_function): Update.
11328 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11329 type of "name" parameter to const char * from char *.
11330 All uses updated.
11331 * arch-utils.c (generic_in_solib_return_trampoline): Change
11332 type of "name" parameter to const char * from char *.
11333 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11334 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11335 type of "name" parameter to const char * from char *.
11336 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11337 * gdbarch.c: Regenerate.
11338 * gdbarch.h: Regenerate.
11339 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11340 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11341 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11342 type of "name" parameter to const char * from char *.
11343 * skip.c (skip_function_pc): Ditto.
11344 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11345 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11346 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11347 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11348 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11349 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11350 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11351 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11352 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11353
11354 2012-02-02 Pedro Alves <palves@redhat.com>
11355
11356 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11357 the current inferior has no execution. Make sure the current
11358 remote process matches gdb's current inferior.
11359
11360 2012-02-02 Tom Tromey <tromey@redhat.com>
11361
11362 PR gdb/13405:
11363 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11364 read-only memory.
11365
11366 2012-02-02 Tom Tromey <tromey@redhat.com>
11367
11368 PR gdb/9307:
11369 * symtab.c (lookup_language_this): Set block_found.
11370
11371 2012-02-01 Tom Tromey <tromey@redhat.com>
11372
11373 PR gdb/13431:
11374 * jit.c (struct jit_inferior_data): Rewrite.
11375 (struct jit_objfile_data): New.
11376 (get_jit_objfile_data): New function.
11377 (add_objfile_entry): Update.
11378 (jit_read_descriptor): Return int. Replace descriptor_addr
11379 argument with inf_data. Update. Don't call error.
11380 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11381 descriptor here.
11382 (jit_inferior_init): Don't look up descriptor. Don't call error.
11383 (jit_reset_inferior_data_and_breakpoints)
11384 (jit_inferior_created_observer): Remove.
11385 (jit_inferior_exit_hook): Update.
11386 (jit_executable_changed_observer): Remove.
11387 (jit_event_handler): Update.
11388 (free_objfile_data): Reset inferior data if needed.
11389 (_initialize_jit): Update.
11390
11391 2012-02-01 Tom Tromey <tromey@redhat.com>
11392
11393 * jit.c (bfd_open_from_target_memory): Move higher in file.
11394
11395 2012-02-01 Tristan Gingold <gingold@adacore.com>
11396
11397 * libunwind-frame.c (libunwind_load): Display message if dlopen
11398 failed.
11399
11400 2012-02-01 Gary Benson <gbenson@redhat.com>
11401
11402 * symtab.h (symbol_found_callback_ftype): New typedef.
11403 (iterate_over_symbols): Use the above.
11404 * symtab.c (iterate_over_symbols): Likewise.
11405 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11406 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11407 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11408 (iterate_name_matcher): Document return values.
11409 (collect_one_symbol): Likewise.
11410 (collect_function_symbols): Likewise.
11411 (collect_symbols): Likewise.
11412
11413 2012-02-01 Tom Tromey <tromey@redhat.com>
11414
11415 * ada-lang.c (resolve_subexp): Update.
11416 (ada_lookup_symbol_list): Add 'full_search' argument.
11417 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11418 ada_lookup_symbol_list.
11419 (ada_lookup_encoded_symbol): Update.
11420 (get_var_value): Update.
11421 * ada-exp.y (block_lookup): Update.
11422 (write_var_or_type): Update.
11423 (write_name_assoc): Update.
11424 * ada-lang.h (ada_lookup_symbol_list): Update.
11425
11426 2012-01-31 Tom Tromey <tromey@redhat.com>
11427
11428 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11429 comment.
11430
11431 2012-01-31 Doug Evans <dje@google.com>
11432
11433 * symtab.h: Remove outdated comment.
11434 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11435
11436 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11437
11438 Fix build error in Darwin port.
11439 * i386-darwin-nat.c: Include i386-nat.h.
11440
11441 2012-01-30 Tom Tromey <tromey@redhat.com>
11442
11443 PR breakpoints/13568:
11444 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11445 argument. Check for recursive includes.
11446 (dwarf_decode_macros): Create an include hash.
11447
11448 2012-01-30 Michael Eager <eager@eagercon.com>
11449
11450 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11451 * ppc-linux-tdep.c: Include glibc-tdep.h.
11452 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11453 (powerpc_linux_in_plt_stub): New function.
11454 (powerpc_linux_in_dynsym_resolve_code): New function.
11455 (ppc_skip_trampoline_code): New function.
11456 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11457 Use glibc_skip_solib_resolver.
11458
11459 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11460
11461 Code cleanup: Make 1440 bytes of data segment read-only.
11462 * arch-utils.c (endian_enum): Make it const char *const [].
11463 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11464 Likewise.
11465 * breakpoint.c (always_inserted_enums): Likewise.
11466 * cli/cli-cmds.c (script_ext_enums): Likewise.
11467 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11468 enumlist parameter const char *const *.
11469 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11470 const char *const *.
11471 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11472 parameter const char *const *.
11473 * cris-tdep.c (cris_modes): Make it const char *const [].
11474 * filesystem.c (target_file_system_kinds): Likewise.
11475 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11476 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11477 (can_use_displaced_stepping_enum, scheduler_enums)
11478 (exec_direction_names): Likewise.
11479 * language.c (_initialize_language): Make the type_or_range_names and
11480 case_sensitive_names variables const char *const [].
11481 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11482 * python/python.c (python_excp_enums): Likewise.
11483 * remote.c (interrupt_sequence_modes): Likewise.
11484 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11485 * serial.c (logbase_enums): Likewise.
11486 * sh-tdep.c (sh_cc_enum): Likewise.
11487 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11488 Likewise.
11489 * symtab.c (multiple_symbols_modes): Likewise.
11490 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11491 Likewise.
11492 * utils.c (internal_problem_modes): Likewise.
11493
11494 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11495
11496 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11497 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11498 result.
11499
11500 2012-01-27 Doug Evans <dje@google.com>
11501
11502 * configure.ac (with_python): Fix absolute path handling for win32.
11503 * configure: Regenerate.
11504
11505 2012-01-26 Doug Evans <dje@google.com>
11506
11507 * symtab.c: Whitespace cleanup, no code changes.
11508
11509 * symtab.c (lookup_symbol_in_language): Improve comment.
11510 (lookup_symbol_aux): Fix comment.
11511
11512 * psymtab.c (add_psymbol_to_list): Result is now "void".
11513 * psympriv.h (add_psymbol_to_list): Update.
11514
11515 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11516
11517 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11518
11519 Do not open script filenames twice.
11520 * cli/cli-cmds.c (source_script_from_stream): Pass to
11521 source_python_script also STREAM.
11522 * python/py-auto-load.c (source_section_scripts): Pass to
11523 source_python_script_for_objfile also STREAM.
11524 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11525 also INPUT.
11526 * python/python-internal.h (source_python_script_for_objfile): New
11527 parameter file, rename parameter file to filename.
11528 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11529 instead if !_WIN32. Update the function comment.
11530 (source_python_script, source_python_script_for_objfile)
11531 (source_python_script): New parameter file, rename parameter file to
11532 filename. Pass FILENAME to python_run_simple_file.
11533 * python/python.h (source_python_script): New parameter file, rename
11534 parameter file to filename.
11535
11536 2012-01-26 Pedro Alves <palves@redhat.com>
11537
11538 * corelow.c (core_has_fake_pid): Delete.
11539 (core_close): Delete references to `core_has_fake_pid'.
11540 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11541 (core_open): Delete references to `core_has_fake_pid'.
11542 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11543 the removed global.
11544
11545 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11546
11547 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11548 Remove language parameter from name_matcher. Adjust the comment.
11549 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11550 Remove language parameter.
11551 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11552 * linespec.c (iterate_name_matcher): Likewise.
11553 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11554 name_matcher. Adjust call accordingly.
11555 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11556 (maintenance_check_symtabs): Adjust type of parameter "fun".
11557 * psymtab.h (maintenance_check_symtabs): Likewise.
11558
11559 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11560
11561 * language.h (symbol_name_match_p_ftype): New typedef.
11562 (struct language_defn): Replace field la_symbol_name_compare
11563 by la_get_symbol_name_match_p.
11564 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11565 (ada_language_defn): Use it.
11566 * linespec.c (struct symbol_matcher_data): New type.
11567 (iterate_name_matcher): Rewrite.
11568 (iterate_over_all_matching_symtabs): Pass a pointer to
11569 a symbol_matcher_data struct to expand_symtabs_matching
11570 instead of just the lookup name.
11571 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11572 opencl-lang.c, p-lang.c, language.c: Delete field
11573 la_symbol_name_compare, and replace by NULL for new field
11574 la_get_symbol_name_match_p.
11575 * symfile.h (struct quick_symbol_functions): Update comment.
11576
11577 2012-01-25 Tom Tromey <tromey@redhat.com>
11578
11579 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11580 dereferencing.
11581
11582 2012-01-24 Tom Tromey <tromey@redhat.com>
11583
11584 PR symtab/12406:
11585 * solib.c (update_solib_list): Update the program space's
11586 added_solibs and deleted_solibs fields.
11587 * progspace.h (struct program_space) <added_solibs,
11588 deleted_solibs>: New fields.
11589 (clear_program_space_solib_cache): Declare.
11590 * progspace.c (release_program_space): Call
11591 clear_program_space_solib_cache.
11592 (clear_program_space_solib_cache): New function.
11593 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11594 bpstat_stop_status. Use handle_solib_event.
11595 * breakpoint.c: Include gdb_regex.h.
11596 (print_solib_event): New function.
11597 (bpstat_print): Use print_solib_event.
11598 (bpstat_stop_status): Add special case for bp_shlib_event.
11599 (handle_solib_event): New function.
11600 (bpstat_what): Use handle_solib_event.
11601 (struct solib_catchpoint): New.
11602 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11603 (breakpoint_hit_catch_solib, check_status_catch_solib)
11604 (print_it_catch_solib, print_one_catch_solib)
11605 (print_mention_catch_solib, print_recreate_catch_solib): New
11606 functions.
11607 (catch_solib_breakpoint_ops): New global.
11608 (catch_load_or_unload, catch_load_command_1)
11609 (catch_unload_command_1): New functions.
11610 (internal_bkpt_check_status): Add special case for
11611 bp_shlib_event.
11612 (internal_bkpt_print_it): Use print_solib_event.
11613 (initialize_breakpoint_ops): Initialize
11614 catch_solib_breakpoint_ops.
11615 (_initialize_breakpoint): Register "catch load" and "catch
11616 unload".
11617 * breakpoint.h (handle_solib_event): Declare.
11618 * NEWS: Add entry for "catch load" and "catch unload".
11619
11620 2012-01-24 Tom Tromey <tromey@redhat.com>
11621
11622 * ada-lang.c: Include gdb_vecs.h.
11623 * charset.c: Include gdb_vecs.h.
11624 * tracepoint.h: Include gdb_vecs.h.
11625 * gdb_vecs.h: New file.
11626
11627 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11628
11629 * breakpoint.c (breakpoint_hit_catch_fork)
11630 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11631 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11632 * infrun.c (inferior_has_forked, inferior_has_vforked)
11633 (inferior_has_execd, inferior_has_called_syscall): Delete.
11634 (handle_syscall_event): Get syscall_number from the execution
11635 control state's wait status.
11636 (wait_for_inferior): Don't clear syscall_number.
11637
11638 2012-01-24 Pedro Alves <palves@redhat.com>
11639
11640 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11641 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11642 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11643 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11644 `ws' parameter.
11645 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11646 false for events other than TARGET_SIGNAL_TRAP.
11647 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11648 Add `ws' parameter.
11649 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11650 events other than TARGET_SIGNAL_TRAP.
11651 (tracepoint_breakpoint_hit): Add `ws' parameter.
11652 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11653 parameter.
11654 (bpstat_stop_status): Same.
11655 (pc_at_non_inline_function): Same.
11656 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11657 to pass the current event's waitstatus to bpstat_stop_status
11658 and pc_at_non_inline_function.
11659
11660 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11661
11662 Code cleanup.
11663 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11664 Update the function comment for it.
11665 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11666 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11667 for STREAM.
11668
11669 2012-01-24 Pedro Alves <palves@redhat.com>
11670
11671 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11672 outside `bs->stop' block.
11673 (bpstat_what): Rework bp_shlib_event handling.
11674 (internal_bkpt_check_status): If the breakpoint is a
11675 bp_shlib_event, then set bs->stop and bs->print if
11676 stop_on_solib_events is set.
11677
11678 2012-01-24 Gary Benson <gbenson@redhat.com>
11679
11680 Delete #if 0'd out code.
11681 * stack.c (print_frame_label_vars): Remove.
11682 (catch_info): Likewise.
11683 (_initialize_stack): Remove "info catch" command.
11684 * NEWS: Mention the above.
11685
11686 2012-01-24 Pedro Alves <palves@redhat.com>
11687
11688 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11689 it.
11690 (remote_notice_new_inferior): If the remote end doesn't support
11691 the multiprocess extensions, then the PID is fake.
11692 (add_current_inferior_and_thread): New.
11693 (remote_start_remote): Use it.
11694 (extended_remote_attach_1): Adjust.
11695 (extended_remote_create_inferior_1): Use
11696 add_current_inferior_and_thread.
11697
11698 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11699
11700 Fix watchpoints to be specific for each inferior.
11701 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11702 current_program_space.
11703 * i386-nat.c (i386_inferior_data_cleanup): New.
11704 (i386_inferior_data_get): Replace variable inf_data_local by an
11705 inferior_data call.
11706 (i386_use_watchpoints): Initialize i386_inferior_data.
11707 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11708 specific iterate_over_lwps.
11709
11710 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11711
11712 Fix watchpoints across inferior fork.
11713 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11714 comment for linux_nat_iterate_watchpoint_lwps.
11715 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11716 linux_nat_iterate_watchpoint_lwps.
11717 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11718 * i386-linux-nat.c (update_debug_registers_callback): Update the
11719 comment for linux_nat_iterate_watchpoint_lwps.
11720 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11721 linux_nat_iterate_watchpoint_lwps.
11722 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11723 * i386-nat.c: Include inferior.h.
11724 (dr_mirror): Remove.
11725 (i386_inferior_data, struct i386_inferior_data)
11726 (i386_inferior_data_get): New.
11727 (i386_debug_reg_state): Use i386_inferior_data_get.
11728 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11729 (i386_insert_watchpoint, i386_remove_watchpoint)
11730 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11731 (i386_remove_hw_breakpoint): New variable state, use
11732 i386_debug_reg_state instead of DR_MIRROR.
11733 * linux-nat.c (delete_lwp): New declaration.
11734 (num_lwps): Move here from downwards.
11735 (delete_lwp_cleanup): New.
11736 (linux_child_follow_fork): Create new child_lp, call
11737 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11738 PTRACE_DETACH.
11739 (num_lwps): Move upwards.
11740 (linux_nat_iterate_watchpoint_lwps): New.
11741 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11742 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11743
11744 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11745
11746 GDB 7.4 released.
11747
11748 2012-01-23 Pedro Alves <palves@redhat.com>
11749
11750 * top.c (caution): Rename to ...
11751 (confirm): ... this.
11752 (show_caution): Rename to ...
11753 (show_confirm): ... this.
11754 (quit_cover): Adjust.
11755 (init_main): Adjust.
11756 * top.h (caution): Rename to ...
11757 (confirm): ... this.
11758 * utils.c (internal_vproblem, defaulted_query): Adjust.
11759
11760 2012-01-23 Pedro Alves <palves@redhat.com>
11761
11762 * top.c (caution): Update comment.
11763 (execute_command): Don't consider the current value of `caution'.
11764
11765 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11766
11767 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11768
11769 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11770
11771 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11772 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11773 * target.c (target_fileio_pwrite): Remove buffer address from
11774 debug output.
11775 (target_fileio_pread): Likewise.
11776
11777 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11778
11779 * NEWS: Document remote "info proc" and "generate-core-file".
11780
11781 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11782
11783 * gdbarch.sh (find_memory_regions): New callback.
11784 * gdbarch.c, gdbarch.h: Regenerate.
11785
11786 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11787 callback before falling back to target method.
11788
11789 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11790 (linux_target_install_ops): No longer install it.
11791
11792 * linux-tdep.c (linux_find_memory_regions): New function.
11793 (linux_init_abi): Install it.
11794
11795 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11796
11797 * gdbarch.sh (make_corefile_notes): New architecture callback.
11798 * gdbarch.c: Regenerate.
11799 * gdbarch.h: Likewise.
11800
11801 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11802 before target_make_corefile_notes. If NULL is returned, the
11803 target does not support core file generation.
11804
11805 * linux-nat.c: Include "linux-tdep.h".
11806 (find_signalled_thread, find_stop_signal): Remove.
11807 (linux_nat_do_thread_registers): Likewise.
11808 (struct linux_nat_corefile_thread_data): Likewise.
11809 (linux_nat_corefile_thread_callback): Likewise.
11810 (iterate_over_spus): Likewise.
11811 (struct linux_spu_corefile_data): Likewise.
11812 (linux_spu_corefile_callback): Likewise.
11813 (linux_spu_make_corefile_notes): Likewise.
11814 (linux_nat_collect_thread_registers): New function.
11815 (linux_nat_make_corefile_notes): Replace contents by call to
11816 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11817 as native-only callback.
11818
11819 * linux-tdep.h: Include "bfd.h".
11820 (struct regcache): Add forward declaration.
11821 (linux_collect_thread_registers_ftype): New typedef.
11822 (linux_make_corefile_notes): Add prototype.
11823 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11824 "regset.h", and "elf-bfd.h".
11825 (find_signalled_thread, find_stop_signal): New functions.
11826 (linux_spu_make_corefile_notes): Likewise.
11827 (linux_collect_thread_registers): Likewise.
11828 (struct linux_corefile_thread_data): New data structure.
11829 (linux_corefile_thread_callback): New funcion.
11830 (linux_make_corefile_notes): Likewise.
11831 (linux_make_corefile_notes_1): Likewise.
11832 (linux_init_abi): Install it.
11833
11834 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11835
11836 * gdbarch.sh (info_proc): New callback.
11837 * gdbarch.c, gdbarch.h: Regenerate.
11838
11839 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11840 before falling back to the target info_proc callback.
11841
11842 * linux-nat.c: Do not include "cli/cli-utils.h".
11843 (linux_nat_info_proc): Remove.
11844 (linux_target_install_ops): No longer install it.
11845
11846 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11847 (read_mapping): New function.
11848 (linux_info_proc): Likewise.
11849 (linux_init_abi): Install it.
11850
11851 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11852
11853 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11854 * infcmd.c: (info_proc_cmd_1): New function.
11855 (info_proc_cmd): New function, moved here from equivalent routine
11856 orignally in linux-nat.c.
11857 (info_proc_cmd_mappings): Likewise.
11858 (info_proc_cmd_stat): Likewise.
11859 (info_proc_cmd_status): Likewise.
11860 (info_proc_cmd_cwd): Likewise.
11861 (info_proc_cmd_cmdline): Likewise.
11862 (info_proc_cmd_exe): Likewise.
11863 (info_proc_cmd_all): Likewise.
11864 (_initialize_infcmd): Install "info proc" command and subcommands.
11865
11866 * target.h (struct target_ops): Add to_info_proc.
11867 (target_info_proc): Add prototype.
11868 * target.c (target_info_proc): New function.
11869
11870 * procfs.c (procfs_info_proc): Add prototype.
11871 (info_proc_cmd): Rename into ...
11872 (procfs_info_proc): ... this. Update argument types as appropriate
11873 for a to_info_proc implementation. Handle "what" argument.
11874 (procfs_target): Install procfs_info_proc.
11875 (_initialize_procfs): No longer install "info proc" command.
11876
11877 * linux-nat.c: (enum info_proc_what): Remove.
11878 (linux_nat_info_proc_cmd_1): Rename into ...
11879 (linux_nat_info_proc): ... this. Update argument types as appropriate
11880 for a to_info_proc implementation.
11881 (linux_nat_info_proc_cmd): Remove.
11882 (linux_nat_info_proc_cmd_mappings): Likewise.
11883 (linux_nat_info_proc_cmd_stat): Likewise.
11884 (linux_nat_info_proc_cmd_status): Likewise.
11885 (linux_nat_info_proc_cmd_cwd): Likewise.
11886 (linux_nat_info_proc_cmd_cmdline): Likewise.
11887 (linux_nat_info_proc_cmd_exe): Likewise.
11888 (linux_nat_info_proc_cmd_all): Likewise.
11889 (linux_target_install_ops): Install linux_nat_info_proc.
11890 (_initialize_linux_nat): No longer install "info proc" command
11891 and subcommands.
11892
11893 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11894
11895 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11896 * config.in, configure: Regenerate.
11897
11898 * target.h (struct target_ops): Add to_fileio_readlink.
11899 (target_fileio_readlink): Add prototype.
11900 * target.c (target_fileio_readlink): New function.
11901
11902 * inf-child.c: Conditionally include <sys/param.h>.
11903 (inf_child_fileio_readlink): New function.
11904 (inf_child_target): Install it.
11905
11906 * remote.c (PACKET_vFile_readlink): New enum value.
11907 (remote_hostio_readlink): New function.
11908 (init_remote_ops): Install it.
11909 (_initialize_remote): Handle vFile:readlink packet type.
11910
11911 2012-01-20 Pedro Alves <palves@redhat.com>
11912 Ulrich Weigand <ulrich.weigand@linaro.org>
11913
11914 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11915 * config.in, configure: Regenerate.
11916
11917 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11918 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11919 (target_fileio_open): Add prototype.
11920 (target_fileio_pwrite): Likewise.
11921 (target_fileio_pread): Likewise.
11922 (target_fileio_close): Likewise.
11923 (target_fileio_unlink): Likewise.
11924 (target_fileio_read_alloc): Likewise.
11925 (target_fileio_read_stralloc): Likewise.
11926
11927 * target.c: Include "gdb/fileio.h".
11928 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11929 (default_fileio_target): New function.
11930 (target_fileio_open): Likewise.
11931 (target_fileio_pwrite): Likewise.
11932 (target_fileio_pread): Likewise.
11933 (target_fileio_close): Likewise.
11934 (target_fileio_unlink): Likewise.
11935 (target_fileio_close_cleanup): Likewise.
11936 (target_fileio_read_alloc_1): Likewise.
11937 (target_fileio_read_alloc): Likewise.
11938 (target_fileio_read_stralloc): Likewise.
11939
11940 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11941 <fcntl.h>, and <unistd.h>.
11942 (inf_child_fileio_open_flags_to_host): New function.
11943 (inf_child_errno_to_fileio_error): Likewise.
11944 (inf_child_fileio_open): Likewise.
11945 (inf_child_fileio_pwrite): Likewise.
11946 (inf_child_fileio_pread): Likewise.
11947 (inf_child_fileio_close): Likewise.
11948 (inf_child_fileio_unlink): Likewise.
11949 (inf_child_target): Install to_fileio routines.
11950
11951 * remote.c (init_remote_ops): Install to_fileio routines.
11952
11953 2012-01-20 Pedro Alves <palves@redhat.com>
11954 Ulrich Weigand <ulrich.weigand@linaro.org>
11955
11956 * remote.c (remote_multi_process_p): Only check for multi-process
11957 protocol feature, do not check for extended protocol.
11958 (remote_supports_multi_process): Check for extended protocol here.
11959 (set_general_process): Likewise.
11960 (extended_remote_kill): Likewise.
11961 (remote_pid_to_str): Likewise.
11962 (remote_query_supported): Always query multiprocess mode.
11963
11964 2012-01-20 Pedro Alves <palves@redhat.com>
11965 Ulrich Weigand <ulrich.weigand@linaro.org>
11966
11967 * inferior.h (struct inferior): Add fake_pid_p.
11968 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11969 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11970 magic_null_ptid since the remote side doesn't provide a real PID.
11971
11972 2012-01-19 Tom Tromey <tromey@redhat.com>
11973
11974 * NEWS: Combine the two Python sections.
11975
11976 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11977
11978 * target.h (target_close): Update comment on the target's unpush state.
11979
11980 2012-01-19 Pedro Alves <palves@redhat.com>
11981
11982 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11983 linux_nat_async directly instead of going through the target
11984 vector.
11985 * target.c (unpush_target): Close target after unpushing it, not
11986 before.
11987
11988 2012-01-19 Gary Benson <gbenson@redhat.com>
11989
11990 * mdebugread.c (sort_blocks): Replace integer constants with ones
11991 derived from FIRST_LOCAL_BLOCK.
11992
11993 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11994 Jan Kratochvil <jan.kratochvil@redhat.com>
11995
11996 PR gdb/9538
11997 * symfile.c (find_separate_debug_file): New function.
11998 (terminate_after_last_dir_separator): Likewise.
11999 (find_separate_debug_file_by_debuglink): Also try realpath.
12000 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12001 * configure: Regenerate.
12002 * config.in: Regenerate.
12003
12004 2012-01-18 Doug Evans <dje@google.com>
12005
12006 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12007 (main.o): Remove rule.
12008 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12009 (--with-sysroot): Rewrite.
12010 * configure: Regenerate.
12011 * config.in: Regenerate.
12012
12013 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12014
12015 * parse.c (initialize_expout): New function.
12016 (reallocate_expout): Likewise.
12017 (parse_exp_in_context): Use `initialize_expout' and
12018 `reallocate_expout' when appropriate.
12019
12020 2012-01-18 Pedro Alves <palves@redhat.com>
12021
12022 * record.c (struct record_breakpoint, record_breakpoint_p)
12023 (record_breakpoints): New.
12024 (record_insert_breakpoint, record_remove_breakpoint): Manage
12025 record breakpoints list. Only remove breakpoints from the
12026 inferior if they had been inserted there in the first place.
12027
12028 2012-01-17 Doug Evans <dje@google.com>
12029
12030 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12031 if we know we don't have a file name to look for.
12032
12033 2012-01-17 Pedro Alves <palves@redhat.com>
12034
12035 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12036 the frame's stop reason is UNWIND_UNAVAILABLE.
12037
12038 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12039
12040 Fix compilation error.
12041 * m2-exp.y (yyerror): Use ANSI C prototype.
12042
12043 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12044
12045 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12046 (growbuf_by_size): Likewise.
12047 (yyerror): Likewise.
12048 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12049 (modblock): Remove variable (was #if 0'ed).
12050 (parse_number): Convert prototype from K&R to ANSI C.
12051 (yyerror): Likewise.
12052 * objc-exp.y (parse_number): Likewise.
12053 (yyerror): Likewise.
12054 (yylex): Remove #if 0'ed code.
12055 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12056 (yyerror): Likewise.
12057
12058 2012-01-16 Tom Tromey <tromey@redhat.com>
12059
12060 * NEWS: Add item.
12061 * symtab.h (compare_filenames_for_search): Declare.
12062 * symtab.c (compare_filenames_for_search): New function.
12063 (iterate_over_some_symtabs): Use it.
12064 * symfile.h (struct quick_symbol_functions)
12065 <map_symtabs_matching_filename>: Change spec.
12066 * psymtab.c (partial_map_symtabs_matching_filename): Use
12067 compare_filenames_for_search. Update for new spec.
12068 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12069 compare_filenames_for_search. Update for new spec.
12070 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12071
12072 2012-01-16 Tom Tromey <tromey@redhat.com>
12073
12074 PR python/13281:
12075 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12076 (struct main_type) <flag_flag_enum>: New field.
12077 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12078 * NEWS: Add entries.
12079 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12080 enums.
12081 * python/lib/gdb/printing.py (_EnumInstance): New class.
12082 (FlagEnumerationPrinter): Likewise.
12083
12084 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12085
12086 * breakpoint.c (create_sals_from_address_default): New function.
12087 (create_breakpoints_sal_default): Likewise.
12088 (decode_linespec_default): Likewise.
12089 (is_marker_spec): Removed.
12090 (strace_marker_p): New function.
12091 (init_breakpoint_sal): Using `strace_marker_p' instead of
12092 `is_marker_spec'.
12093 (create_breakpoint): Call method `create_sals_from_address' from
12094 breakpoint_ops, replacing code that created SALs conditionally
12095 on the type of the breakpoint. Call method `create_breakpoints_sal',
12096 replacing code that created breakpoints conditionally on the type
12097 wanted.
12098 (base_breakpoint_create_sals_from_address): New function.
12099 (base_breakpoint_create_breakpoints_sal): Likewise.
12100 (base_breakpoint_decode_linespec): Likewise.
12101 (base_breakpoint_ops): Add methods
12102 `base_breakpoint_create_sals_from_address',
12103 `base_breakpoint_create_breakpoints_sal' and
12104 `base_breakpoint_decode_linespec'.
12105 (bkpt_create_sals_from_address): New function.
12106 (bkpt_create_breakpoints_sal): Likewise.
12107 (bkpt_decode_linespec): Likewise.
12108 (tracepoint_create_sals_from_address): Likewise.
12109 (tracepoint_create_breakpoints_sal): Likewise.
12110 (tracepoint_decode_linespec): Likewise.
12111 (strace_marker_create_sals_from_address): Likewise.
12112 (strace_marker_create_breakpoints_sal): Likewise.
12113 (strace_marker_decode_linespec): Likewise.
12114 (strace_marker_breakpoint_ops): New variable.
12115 (addr_string_to_sals): Remove `marker_spec'. Call method
12116 `decode_linespec' from breakpoint_ops, replacing code that decoded
12117 an address string into a SAL. Use `strace_marker_p' instead of
12118 `marker_spec'.
12119 (strace_command): Decide whether we are dealing with a static
12120 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12121 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12122 * breakpoint.h (linespec_result, linespec_sals): New forward
12123 declarations.
12124 (breakpoint_ops) <create_sals_from_address>,
12125 <create_breakpoints_sal>, <decode_linespec>: New methods.
12126
12127 2012-01-14 Doug Evans <dje@google.com>
12128
12129 * NEWS: Update text for "maint set python print-stack".
12130 It is deprecated in gdb 7.4 and deleted in 7.5.
12131
12132 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12133
12134 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12135 including curses.h.
12136
12137 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12138
12139 * configure: Regenerate.
12140 * config.in: Regenerate.
12141
12142 2012-01-12 Keith Seitz <keiths@redhat.com>
12143
12144 PR mi/10586
12145 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12146 (ANONYMOUS_UNION_NAME): Define.
12147 (is_path_expr_parent): New function.
12148 (get_path_expr_parent): New function.
12149 (is_anonymous_child): New function.
12150 (create_child_with_value): If the child is anonymous and without
12151 a name, assign an object name to it.
12152 (c_describe_child): Use get_path_expr_parent to determine
12153 the parent expression.
12154 If there field represents an anonymous struct or union and
12155 has no name, set an appropriate display name and expression.
12156 (cplus_describe_child): Likewise.
12157
12158 2012-01-12 Pedro Alves <palves@redhat.com>
12159
12160 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12161 available when %ebp is found to be zero (outermost).
12162
12163 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12164
12165 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12166 an internal gdb_static_assert.
12167 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12168
12169 2012-01-11 Tom Tromey <tromey@redhat.com>
12170
12171 PR gdb/9598:
12172 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12173 catch" and "catch throw".
12174
12175 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12176
12177 * blockframe.c (block_innermost_frame): Start search from selected
12178 frame, if present, or otherwise the current frame.
12179
12180 * c-exp.y (variable): Update innermost_block for
12181 'block COLONCOLON NAME' clause.
12182 * m2-exp.y (variable): Ditto.
12183 * objc-exp.y (variable): Ditto.
12184
12185 2012-01-10 Tom Tromey <tromey@redhat.com>
12186
12187 PR python/13199:
12188 * python/python.c (finish_python_initialization): Set sys.argv.
12189
12190 2012-01-10 Doug Evans <dje@google.com>
12191
12192 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12193 "want_line_info". All callers updated.
12194 (dwarf_decode_lines_1): New function.
12195 (handle_DW_AT_stmt_list): Add function comment.
12196 New arg "want_line_info". All callers updated.
12197 (read_file_scope,read_type_unit_scope): Move comment from
12198 handle_DW_AT_stmt_list to here.
12199
12200 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12201
12202 Fix regression after libiberty/ update for GCC PR 6057 and others.
12203 * c-exp.y (operator) <OPERATOR DELETE>
12204 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12205 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12206 (make_builtin_type, make_name): New variable i, add gdb_assert.
12207 (operator) <OPERATOR NEW>: Update ARGS to 3.
12208 (operator) <OPERATOR DELETE>: Add trailing space.
12209 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12210 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12211 * cp-support.c (cp_canonicalize_string): Check NULL from
12212 cp_comp_to_string, call warning and return.
12213
12214 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12215
12216 Fix duplicate .o files after omitting libbfd.a.
12217 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12218 (SFILES): Add corelow.c.
12219 (COMMON_OBS): Add corelow.o.
12220 (ALLDEPFILES): Remove corelow.c.
12221 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12222 * config/alpha/alpha-osf3.mh: Likewise.
12223 * config/alpha/fbsd.mh: Likewise.
12224 * config/arm/nbsdaout.mh: Likewise.
12225 * config/arm/nbsdelf.mh: Likewise.
12226 * config/i386/i386gnu.mh: Likewise.
12227 * config/ia64/hpux.mh: Likewise.
12228 * config/ia64/linux.mh: Likewise.
12229 * config/m32r/linux.mh: Likewise.
12230 * config/m68k/linux.mh: Likewise.
12231 * config/mips/irix5.mh: Likewise.
12232 * config/mips/irix6.mh: Likewise.
12233 * config/pa/hpux.mh: Likewise.
12234 * config/pa/linux.mh: Likewise.
12235 * config/powerpc/aix.mh: Likewise.
12236 * config/sparc/linux.mh: Likewise.
12237 * config/sparc/linux64.mh: Likewise.
12238 * config/sparc/sol2.mh: Likewise.
12239 * config/vax/vax.mh: Likewise.
12240 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12241 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12242 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12243 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12244 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12245 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12246 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12247 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12248 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12249 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12250 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12251 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12252 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12253 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12254 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12255 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12256 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12257 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12258 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12259 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12260 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12261 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12262 corelow.o from gdb_target_obs.
12263 * corefile.c (core_target): Update the comment on NULL value.
12264 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12265 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12266 MATCHES. Drop YUMMY set on NULL.
12267 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12268 reclaim CORE_DATA if it is already NULL.
12269
12270 2012-01-09 Doug Evans <dje@google.com>
12271
12272 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12273 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12274
12275 2012-01-09 Keith Seitz <keiths@redhat.com>
12276
12277 * breakpoint.c (wrapper.h): Don't include.
12278
12279 2012-01-09 Keith Seitz <keiths@redhat.com>
12280
12281 * Makefile.in (SFILES): Remove wrapper.c.
12282 (HFILES_NO_SRCDIR): Remove wrapper.h.
12283 (COMMON_OBS): Remove wrapper.o.
12284 * cli/cli-interp.c: Don't inlude wrapper.h.
12285 * corelow.c: Likewise.
12286 (core_open): Replace gdb_target_find_new_threads with
12287 TRY_CATCH around target_find_new_threads.
12288 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12289 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12290 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12291 evaluate_expression.
12292 (varobj_set_value): Likewise for evaluate_expression and
12293 value_assign.
12294 (install_new_variable): Likewise for value_fetch_lazy.
12295 (adjust_value_for_child_access): Likewise for value_ind.
12296 (c_describe_child): Likewise for value_subscript and
12297 value_ind.
12298 (c_value_of_root): Likewise for evaluate_expression.
12299 * wrapper.c: Remove.
12300 * wrapper.h: Remove.
12301
12302 2012-01-09 Doug Evans <dje@google.com>
12303
12304 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12305 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12306 "abfd" args with "section". All callers updated.
12307 Error checking code moved ...
12308 (error_check_comp_unit_head): ... here. New function.
12309 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12310 Delete arg "abfd". New arg "type_offset". All callers updated.
12311 (create_debug_types_hash_table): Simplify by using
12312 read_and_check_type_unit_head.
12313
12314 * parser-defs.h (namecopy): Delete.
12315 * parse.c (namecopy, namecopy_size): Move into copy_name.
12316
12317 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12318
12319 Partially fix duplicate .o files after omitting libbfd.a.
12320 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12321 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12322 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12323 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12324 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12325 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12326 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12327
12328 2012-01-09 Pedro Alves <palves@redhat.com>
12329
12330 * MAINTAINERS: Update my email address.
12331
12332 2012-01-08 Doug Evans <dje@google.com>
12333
12334 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12335 n_type_units. Rename type_comp_units to all_type_units.
12336 All uses updated.
12337 (add_signatured_type_cu_to_table): Renamed from
12338 add_signatured_type_cu_to_list. All callers updated.
12339
12340 * gdbtypes.h (struct cplus_struct_type): Delete member
12341 nfn_fields_total. All uses removed.
12342
12343 2012-01-06 Doug Evans <dje@google.com>
12344
12345 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12346 to top of file.
12347 (dwarf2_find_comp_unit): Delete.
12348 (process_psymtab_comp_unit): Make result "void".
12349 Delete args buffer, info_ptr, buffer_size, and replace with
12350 "section". All callers updated.
12351 (dwarf2_build_psymtabs_hard): Simplify.
12352
12353 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12354 Thiago Jung Bauermann <bauerman@br.ibm.com>
12355
12356 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12357 before `struct gdb_exception'.
12358 * breakpoint.c (update_global_location_list_nothrow)
12359 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12360 * cp-abi.c (value_rtti_type): Likewise.
12361 * cp-support.c (cp_validate_operator): Likewise.
12362 * infrun.c (insert_exception_resume_breakpoint)
12363 (check_exception_resume, keep_going): Likewise.
12364 * mi-interp.c (mi_breakpoint_created)
12365 (mi_breakpoint_modified): Likewise.
12366 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12367 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12368 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12369
12370 2012-01-05 Doug Evans <dje@google.com>
12371
12372 * dwarf2read.c (statement_prologue): Delete, unused.
12373
12374 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12375 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12376
12377 * dwarf2read.c (comp_unit_header): Delete, unused.
12378
12379 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12380
12381 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12382 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12383
12384 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12385
12386 * infrun.c (normal_stop): Don't skip calling the normal_stop
12387 observers if the thread was doing a multi-step, but stopped for
12388 some reason other than stepping.
12389
12390 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12391
12392 * cli/cli-decode.h: Add comments.
12393 (CMD_LIST_AMBIGUOUS): Moved to command.h
12394 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12395 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12396 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12397 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12398 (add_com, add_com_alias, add_info, add_info_alias)
12399 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12400 declarations.
12401 * command.h: Add and adjust comments.
12402 (CMD_LIST_AMBIGUOUS): Moved here.
12403 (help_cmd, help_cmd_list): Delete declarations.
12404
12405 2012-01-04 Doug Evans <dje@google.com>
12406
12407 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12408 All callers updated.
12409 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12410 Replace all arguments with "per_cu". All callers updated.
12411
12412 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12413
12414 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12415 New arg "per_cu". All callers updated.
12416
12417 Delete #if 0'd out code.
12418 * language.c (binop_result_type): Delete.
12419 (simple_type, ordered_type, same_type, integral_type): Delete.
12420 (numeric_type, character_type, string_type, boolean_type): Delete.
12421 (float_type, structured_type): Delete.
12422 * language.h: Update.
12423
12424 2012-01-04 Tom Tromey <tromey@redhat.com>
12425
12426 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12427
12428 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12429
12430 * corefile.c (close_exec_file): Delete.
12431 (reopen_exec_file): Remove commented out code that seems related
12432 to close_exec_file, which is being deleted here.
12433 * inferior.h (close_exec_file): Delete.
12434 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12435
12436 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12437
12438 * ada-lang.c: #include "cli/cli-utils.h".
12439 (get_selections): Use skip_spaces.
12440 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12441 (catch_ada_exception_command_split): Use skip_spaces.
12442 (ada_decode_assert_location): Likewise.
12443
12444 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12445
12446 * linespec.c (decode_line_internal): Check for C++ or Java
12447 compound constructs only if the current language is C, C++
12448 or Java.
12449
12450 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12451
12452 Revert:
12453 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12454 Joel Brobecker <brobecker@adacore.com>
12455 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12456 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12457 3 times.
12458 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12459 fall through into AT_ENTRY_POINT.
12460 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12461 DUMMY_ADDR with it.
12462 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12463 PPC_INSN_SIZE skip to 3 times.
12464
12465 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12466
12467 * linespec.c (add_minsym): Preserve function descriptors.
12468
12469 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12470
12471 * breakpoint.c (all_locations_are_pending): Consider locations
12472 in program spaces executing during startup pending as well.
12473
12474 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12475
12476 Copyright year update in most files of the GDB Project.
12477
12478 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12479
12480 * copyright.sh: Delete.
12481 * copyright.py: Rewrite.
12482
12483 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12484
12485 * gnulib/extra/update-copyright: New file, imported from gnulib.
12486
12487 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12488
12489 * README (Copyright and License Notices): New section.
12490
12491 2012-01-03 Tom Tromey <tromey@redhat.com>
12492
12493 PR python/12533:
12494 * python/py-value.c (valpy_dereference, valpy_get_address
12495 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12496 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12497 (valpy_absolute, valpy_richcompare): Free intermediate values.
12498
12499 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12500
12501 * ada-lang.c: Reformat the copyright notice.
12502
12503 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12504
12505 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12506 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12507 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12508 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12509 Revert this part of:
12510 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12511 Build gdb directly from *.o files not using libgdb.a.
12512 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12513
12514 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12515
12516 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12517 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12518 Reformat the copyright header.
12519
12520 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12521
12522 Revert this part of:
12523 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12524 Remove the gdbtui binary.
12525 * gdb.c (main): Remove args.interpreter_p initialization.
12526 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12527 * main.h (struct captured_main_args): Remove interpreter_p.
12528
12529 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12530
12531 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12532
12533 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12534
12535 * top.c (print_gdb_version): Update copyright year.
12536
12537 2012-01-02 Yao Qi <yao@codesourcery.com>
12538
12539 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12540
12541 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12542 Joel Brobecker <brobecker@adacore.com>
12543
12544 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12545 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12546 3 times.
12547 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12548 fall through into AT_ENTRY_POINT.
12549 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12550 DUMMY_ADDR with it.
12551 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12552 PPC_INSN_SIZE skip to 3 times.
12553
12554 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12555
12556 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12557 the return value.
12558 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12559
12560 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12561
12562 Build gdb directly from *.o files not using libgdb.a.
12563 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12564 (COMMON_OBS): Remove solib-target.o.
12565 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12566 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12567 (LIBGDB_OBS, libgdb.a): Move it above.
12568 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12569 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12570 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12571 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12572 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12573 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12574 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12575 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12576 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12577 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12578 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12579 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12580 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12581 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12582 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12583 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12584 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12585 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12586 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12587 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12588 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12589 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12590 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12591 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12592 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12593 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12594 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12595
12596 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12597
12598 Remove the gdbtui binary.
12599 * .gitignore (/gdbtui): Remove.
12600 * Makefile.in (TUI): Remove.
12601 (SUBDIR_TUI_OBS): Remove tui-main.o.
12602 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12603 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12604 (tui-main.o): Remove.
12605 (all_object_files): Remove tui-main.o.
12606 * NEWS: New note for the gdbtui removal.
12607 * configure: Rebuilt.
12608 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12609 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12610 CONFIG_UNINSTALL respectively.
12611 * gdb.c (main): Remove args.interpreter_p initialization.
12612 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12613 * main.h (struct captured_main_args): Remove interpreter_p.
12614 * tui/tui-main.c: Remove.
12615
12616 2012-01-01 Doug Evans <dje@google.com>
12617
12618 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12619 (dwarf2_physname, read_import_statement): Ditto.
12620 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12621 (process_structure_scope read_subroutine_type): Ditto.
12622 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12623 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12624 (dwarf2_fetch_die_location_block): Ditto.
12625 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12626
12627 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12628 All callers updated.
12629 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12630 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12631 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12632
12633 * dwarf2read.c (load_cu): Move assert to more useful location.
12634
12635 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12636 All callers updated.
12637
12638 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12639 (dwarf2_elf_names): Minor reformat.
12640 (dwarf2_per_cu_data): Tweak comment.
12641 (dwarf2_read_section): Fix comment.
12642 (create_all_comp_units): Fix comment.
12643 (load_full_comp_unit): Fix comment.
12644 (process_full_comp_unit): Fix comment.
12645 (read_signatured_type): Fix comment.
12646
12647 For older changes see ChangeLog-2011.
12648 \f
12649 Local Variables:
12650 mode: change-log
12651 left-margin: 8
12652 fill-column: 74
12653 version-control: never
12654 coding: utf-8
12655 End:
This page took 0.301998 seconds and 5 git commands to generate.