* dbxread.c (read_dbx_symtab): Update.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
5c80ed9d
TT
12012-11-28 Tom Tromey <tromey@redhat.com>
2
3 * dbxread.c (read_dbx_symtab): Update.
4 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
5 (read_ofile_symtab): Add 'objfile' argument.
6 * dwarf2read.c (process_psymtab_comp_unit_reader)
7 (build_type_psymtabs_reader): Update.
8 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
9 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
10 argument.
11 (parse_procedure, parse_partial_symbols): Update.
12 (psymtab_to_symtab_1): Add 'objfile' argument.
13 * psympriv.h (struct partial_symtab) <objfile>: Remove.
14 <read_symtab>: Add 'objfile' argument.
15 (sort_pst_symbols, discard_psymtab): Update.
16 * psymtab.c (partial_map_expand_apply): Update.
17 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
18 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
19 (find_pc_sect_psymbol): Add 'objfile' argument.
20 (lookup_symbol_aux_psymtabs): Update.
21 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
22 Add 'objfile' argument.
23 (find_last_source_symtab_from_partial, dump_psymtab)
24 (dump_psymtabs_for_objfile, read_symtabs_for_function)
25 (expand_partial_symbol_tables, read_psymtabs_with_filename)
26 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
27 (expand_symtabs_matching_via_partial): Update.
28 (sort_pst_symbols): Add 'objfile' argument.
29 (allocate_psymtab): Update.
30 (discard_psymtab): Add 'objfile' argument.
31 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
32 * stabsread.h (end_psymtab): Update.
33 * xcoffread.c (this_symtab_objfile): New global.
34 (process_linenos, enter_line_range, xcoff_next_symbol_text):
35 Update.
36 (read_xcoff_symtab): Add 'objfile' argument.
37 (read_symbol, read_symbol_lineno): Update.
38 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
39 (xcoff_end_psymtab): Add 'objfile' argument.
40 (scan_xcoff_symtab): Update.
41
9a27f2c6
PK
422012-12-12 Paul Koning <paul_koning@dell.com>
43
44 Add support for Python 3.
45 * NEWS: Mention Python 3 support.
46 * varobj.c (value_get_print_value): Use
47 python_string_to_target_string.
48 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
49 of type objects.
50 * python/py-breakpoint.c: Ditto.
51 * python/py-cmd.c: Ditto.
52 * python/py-event.c: Ditto.
53 * python/py-event.h: Ditto.
54 * python/py-evtregistry.c: Ditto.
55 * python/py-finishbreakpoint.c: Ditto.
56 * python/py-frame.c: Ditto.
57 * python/py-function.c: Ditto.
58 * python/py-infthread.c: Ditto.
59 * python/py-lazy-string.c: Ditto.
60 * python/py-progspace.c: Ditto.
61 * /python/py-symbol.c: Ditto.
62 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
63 initialization for Python 3.
64 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
65 of type objects.
66 (infpy_read_memory): Return memoryview object if Python 3.
67 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
68 (infpy_search_memory): Ditto.
69 (get_buffer): New function for Python 3.
70 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
71 of type objects.
72 (objfpy_dealloc): Use Py_TYPE to call tp_free.
73 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
74 of type objects.
75 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
76 (set_attr): Ditto.
77 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
78 instead of PyString methods if Python 3.
79 (print_children): Skip push_dummy_python_frame call if Python 3.
80 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
81 of type objects.
82 (salpy_dealloc): Use Py_TYPE to call tp_free.
83 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
84 of type objects.
85 (field_dealloc): Use Py_TYPE to call tp_free.
86 (typy_dealloc): Ditto.
87 (type_object_as_number): Adjust struct initializations for
88 differences in layout for Python 2 vs. Python 3.
89 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
90 string case for Python 3.
91 (unicode_to_encoded_python_string): Shorten code (no functional
92 change).
93 (python_string_to_target_python_string): Comment that in Python 3
94 returned value is a Python "bytes" type.
95 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
96 (gdb_py_object_from_longest): Omit non-long integer case in Python
97 3.
98 (gdb_py_object_from_ulongest): Ditto.
99 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
100 of type objects.
101 (valpy_dealloc): Use Py_TYPE to call tp_free.
102 (valpy_int): Omit function if Python 3.
103 (convert_value_from_python): Use "%S" format (Python object as a
104 string) if Python 3.
105 (value_object_as_number): Adjust struct initializations for
106 differences in layout for Python 2 vs. Python 3.
107 * python/python-config.py: Adjust syntax for Python 3
108 compatibility.
109 Include "sys.abiflags" string as part of python library name, if
110 that attribute exists (Python 3).
111 * python/python-internal.h (IS_PY3): Define if Python 3.
112 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
113 placeholder value if Python 3.
114 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
115 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
116 analogous Python 3 API function if Python 3.
117 (PyVarObject_HEAD_INIT): Define if not already defined.
118 (Py_TYPE): Ditto.
119 * python/python.c (eval_python_command): Omit Py_FlushLine call if
120 Python 3.
121 Check return values of all Python API calls for error.
122 Supply dummy "python" and "python-interactive" commands if Python
123 initialization failed.
124 (_initialize_python): Convert argc to wchar_t** if Python 3.
125 Add module initialization for Python 3.
126 (finish_python_initialization): Pass wchar_t * argument to
127 PySys_SetPath if Python 3.
128 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
129 (_GdbFile): New class for common output file behavior.
130 (GdbOutFile): Subclass from _GdbFile.
131 (GdbOutputErrorFile): Ditto.
132 (auto_load_packages): Adjust syntax for Python 3 compatibility.
133 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
134 * python/lib/gdb/prompt.py: Use sorted() function rather than
135 sort() method.
136 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
137 Adjust syntax for Python 3 compatibility.
138 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
139 rather than sort() method.
140 Adjust syntax for Python 3 compatibility.
141 * python/lib/gdb/command/type_printers.py: Ditto.
142 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
143 value is a memoryview object if Python 3.
144
b8b98ad1
TT
1452012-12-12 Tom Tromey <tromey@redhat.com>
146
147 * coffread.c (coff_objfile_data_key): New global.
148 (coff_symfile_init): Use set_objfile_data.
149 (coff_symfile_read): Use objfile_data.
150 (coff_symfile_finish): Don't free deprecated_sym_private.
151 (coff_free_info): New function.
152 (_initialize_coffread): Initialize coff_objfile_data_key.
153 * mdebugread.c (pending_list): Update comment.
154 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
155 * symfile.c (reread_symbols): Don't mention
156 deprecated_sym_private.
157 * xcoffread.c (xcoff_objfile_data_key): New global.
158 (XCOFF_DATA): New macro.
159 (process_linenos, enter_line_range, xcoff_next_symbol_text)
160 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
161 XCOFF_DATA.
162 (xcoff_new_init) Use set_objfile_data.
163 (xcoff_symfile_finish): Don't free deprecated_sym_private.
164 (init_stringtab, swap_sym, scan_xcoff_symtab)
165 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
166 (xcoff_free_info): New function.
167 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
168
d2f4b8fe
TT
1692012-12-12 Tom Tromey <tromey@redhat.com>
170
171 * coffread.c (coff_symfile_init): Use set_objfile_data.
172 (coff_symfile_read): Use DBX_SYMFILE_INFO.
173 * dbxread.c (dbx_objfile_data_key): New global.
174 (dbx_symfile_init): Use set_objfile_data.
175 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
176 (dbx_free_symfile_info): New function.
177 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
178 DBX_SYMFILE_INFO.
179 (stabsect_build_psymtabs): Use set_objfile_data.
180 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
181 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
182 set_objfile_data.
183 (free_elfinfo): Use DBX_SYMFILE_INFO.
184 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
185 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
186 * gdb-stabs.h (dbx_objfile_data_key): Declare.
187 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
188 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
189 * somread.c (som_symfile_finish): Don't free
190 deprecated_sym_stab_info.
191
6f112b18
JB
1922012-12-12 Joel Brobecker <brobecker@adacore.com>
193
194 * gdbarch.sh (software_single_step): Remove trailing space in
195 comment (gdbarch.h is already correct).
196
8d2cc612
TT
1972012-12-11 Tom Tromey <tromey@redhat.com>
198
199 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
200
735522c2
TT
2012012-12-11 Tom Tromey <tromey@redhat.com>
202
203 * dsrec.c (report_transfer_performance): Don't declare.
204 (load_srec): Use gettimeofday, print_transfer_performance.
205 * symfile.c (report_transfer_performance): Remove.
206
3e3420f6
PA
2072012-12-11 Pedro Alves <pedro@codesourcery.com>
208 Pedro Alves <palves@redhat.com>
209
210 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
211 NT_PSTATUS note.
212 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
213 differently from LWP IDs.
214
05b4bd79
PA
2152012-12-11 Pedro Alves <palves@redhat.com>
216
217 * configure.ac (detect type of /proc): Remove Unixware handling.
218 * configure: Regenerate.
219 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
220 (ioctl_table) [PCRESET]: Remove entry.
221 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
222 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
223 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
224 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
225 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
226 Unixware in comments throughout.
227 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
228 and remove mention of Unixware.
229
072cabfe
DE
2302012-12-10 Doug Evans <dje@google.com>
231
ab435259
DE
232 * dwarf2read.c (dwarf2_cu): Enhance comment.
233 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
234 the DWO file.
235 (dwarf2_record_block_ranges): Ditto.
236
c766f7ec
DE
237 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
238
072cabfe
DE
239 * symtab.c (find_pc_sect_symtab): Add comment.
240
660ff106
TT
2412012-12-10 Tom Tromey <tromey@redhat.com>
242
243 * defs.h: Don't check for definition of LONGEST.
244 (min, max): Remove duplicates.
245
8b9737bf
TT
2462012-12-10 Tom Tromey <tromey@redhat.com>
247
248 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
249 (dwarf2_fetch_die_loc_cu_off): Rename from
250 dwarf2_fetch_die_location_block. Rewrite to use
251 dwarf2_fetch_die_loc_sect_off.
252 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
253 (dwarf2_fetch_die_loc_cu_off): Rename.
254 * dwarf2loc.c (indirect_pieced_value): Use
255 dwarf2_fetch_die_loc_sect_off.
256 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
257 comment.
258 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
259 * dwarf2expr.c (add_piece): Update.
260 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
261
93eed41f
TT
2622012-12-10 Tom Tromey <tromey@redhat.com>
263
264 * buildsym.c (struct pending_block): Move from buildsym.h.
265 (pending_blocks): Likewise; now static.
266 (pending_block_obstack): New global.
267 (free_pending_blocks): Free blocks.
268 (record_pending_block): Use pending_block_obstack.
269 * buildsym.h (struct pending_block): Move definition to
270 buildsym.c.
271 (pending_blocks): Don't declare.
272
d2e5c99a
PA
2732012-12-10 Pedro Alves <palves@redhat.com>
274
275 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
276 dead SCO code, and adjust function description comment.
277
74a0d9f6
JK
2782012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
279
280 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
281 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
282 CC_HAS_LONG_LONG.
283 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
284 * dwarf2read.c (extract_cu_value): Remove the function.
285 (create_cus_from_index_list): Make the return type void, inline the
286 extract_cu_value caller, include new gdb_static_assert.
287 (create_cus_from_index): Make the return type void, update the function
288 comment, update the create_cus_from_index_list caller.
289 (create_signatured_type_table_from_index): Make the return type void,
290 inline the extract_cu_value caller, include new gdb_static_assert.
291 (dwarf2_read_index): Update the create_cus_from_index and
292 create_signatured_type_table_from_index caller.
293 * printcmd.c (ui_printf): Remove conditionalizations for
294 CC_HAS_LONG_LONG.
295 * config.in: Regenerate.
296 * configure: Regenerate.
297
1b80a9fa
JK
2982012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
299
300 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
301 Update the comment for checked_producer.
302 (check_producer): New forward declaration.
303 (producer_is_gcc_lt_4_3): New function.
304 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
305 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
306
2f68a895
TT
3072012-12-07 Tom Tromey <tromey@redhat.com>
308
309 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
310 argument, assertion.
311 * c-exp.y (typebase): Add completion productions.
312 * completer.c (expression_completer): Handle tag completion.
313 * expression.h (parse_expression_for_completion): Add argument.
314 * f-lang.c (f_make_symbol_completion_list): Add 'code'
315 argument.
316 * language.h (struct language_defn)
317 <la_make_symbol_completion_list>: Add 'code' argument.
318 * parse.c (expout_tag_completion_type, expout_completion_name):
319 New globals.
320 (mark_struct_expression): Add assertion.
321 (mark_completion_tag): New function.
322 (parse_exp_in_context): Initialize new globals.
323 (parse_expression_for_completion): Add 'code' argument. Handle
324 tag completion.
325 * parser-defs.h (mark_completion_tag): Declare.
326 * symtab.c (default_make_symbol_completion_list_break_on): Add
327 'code' argument. Update.
328 (default_make_symbol_completion_list): Add 'code' argument.
329 (make_symbol_completion_list): Update.
330 (make_symbol_completion_type): New function.
331 * symtab.h (default_make_symbol_completion_list_break_on)
332 (default_make_symbol_completion_list): Update.
333 (make_symbol_completion_type): Declare.
334
155da517
TT
3352012-12-07 Tom Tromey <tromey@redhat.com>
336
337 * expression.h (parse_expression_for_completion): Rename
338 from parse_field_expression.
339 (parse_completion): Rename from in_parse_field.
340 * c-exp.y (lex_one_token): Update.
341 * completer.c (expression_completer): Update.
342 * go-exp.y (lex_one_token): Update.
343 * p-exp.y (yylex): Update.
344 * parse.c (parse_completion): Rename from in_parse_field.
345 (parse_exp_in_context): Update.
346 (parse_expression_for_completion): Rename from
347 parse_field_expression. Update.
348
4fc5d43e
TT
3492012-12-07 Tom Tromey <tromey@redhat.com>
350
351 * typeprint.c (_initialize_typeprint): Set completer
352 for "whatis" and "ptype".
353
ab39020b
JB
3542012-12-07 Joel Brobecker <brobecker@adacore.com>
355
356 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
357 "sim/common/cgen-fpu.h". Remove invalid entries
358 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
359 which actually have an FSF copyright header.
360
2cb50f9d
JB
3612012-12-07 Joel Brobecker <brobecker@adacore.com>
362
363 * osf-share/AT386/cma_thread_io.h: Delete.
364 * osf-share/HP800/cma_thread_io.h: Delete.
365 * osf-share/README: Delete.
366 * osf-share/RIOS/cma_thread_io.h: Delete.
367 * osf-share/cma_attr.h: Delete.
368 * osf-share/cma_deb_core.h: Delete.
369 * osf-share/cma_debug_client.h: Delete.
370 * osf-share/cma_errors.h: Delete.
371 * osf-share/cma_handle.h: Delete.
372 * osf-share/cma_init.h: Delete.
373 * osf-share/cma_list.h: Delete.
374 * osf-share/cma_mutex.h: Delete.
375 * osf-share/cma_sched.h: Delete.
376 * osf-share/cma_semaphore_defs.h: Delete.
377 * osf-share/cma_sequence.h: Delete.
378 * osf-share/cma_stack.h: Delete.
379 * osf-share/cma_stack_int.h: Delete.
380 * osf-share/cma_tcb_defs.h: Delete.
381 * osf-share/cma_util.h: Delete.
382 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
383 in osf-share.
384 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
385 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
386 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
387
0ba2eb0f
TT
3882012-12-06 Pedro Alves <palves@redhat.com>
389 Tom Tromey <tromey@redhat.com>
390
391 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
392
731145cb
TT
3932012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
394
395 PR mi/14741:
396 * mi/mi-cmd-var.c (varobj_update_one): Take value of
397 attribute "dynamic" and "displayhint" from printed child,
398 not the root variable.
399
eff44fea
JB
4002012-12-06 Joel Brobecker <brobecker@adacore.com>
401
402 * aix-thread.c (getthrds): Fix type of 4th parameter.
403 (get_signaled_thread): Change type of variable ktid to tid_t.
404
c90a0773
HZ
4052012-12-06 Hui Zhu <hui_zhu@mentor.com>
406
407 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
408 value of get_frame_block.
409
5bc81a00
PM
4102012-12-05 Pierre Muller <muller@sourceware.org>
411
412 Avoid memory leaks on struct cmd_list_element.doc field.
413 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
414 if flags contains DOC_ALLOCATED.
415 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
416 flags.
417 (delete_cmd): Handle DOC_ALLOCATED flag.
418 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
419 in flags filed of struct cmd_list_element.
420 (struct cmd_list_element): Document new flag item.
421
b5ebcee6
DE
4222012-12-04 Doug Evans <dje@google.com>
423
424 * symmisc.c: Whitespace fixes.
425
56bf0743
KB
4262012-12-04 Karthik Bhat <kv.bhat@samsung.com>
427
428 * i386-tdep.c (i386_skip_prologue): Using symbol table
429 to find the end of prologue for clang compiled binaries.
430 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
431 to find the end of prologue for clang compiled binaries.
432
56e64610
DE
4332012-12-03 Doug Evans <dje@google.com>
434
435 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
436 (dw2_find_symbol_file): Delete unused local file_data.
437
270140bd
TT
4382012-12-03 Tom Tromey <tromey@redhat.com>
439
440 * ada-exp.y (write_object_renaming, write_var_or_type)
441 (write_ambiguous_var, write_var_from_sym): Make blocks const.
442 * ada-lang.c (replace_operator_with_call)
443 (find_old_style_renaming_symbol): Make blocks const.
444 * ada-lang.h (ada_find_renaming_symbol): Update.
445 (struct ada_symbol_info) <block>: Now const.
446 * breakpoint.c (watch_command_1): Update.
447 * breakpoint.h (struct watchpoint) <exp_valid_block,
448 cond_exp_valid_block>: Now const.
449 * c-exp.y (classify_inner_name, classify_name): Make block
450 argument const.
451 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
452 const.
453 * expression.h (innermost_block, parse_exp_1): Update.
454 (union exp_element) <block>: Now const.
455 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
456 (lookup_struct): Make block argument const.
457 * gdbtypes.h (lookup_template_type): Update.
458 * go-exp.y (classify_name, classify_packaged_name)
459 (package_name_p): Make block argument const.
460 * objc-lang.c (lookup_struct_typedef): Make block argument const.
461 * objc-lang.h (lookup_struct_typedef): Update.
462 * parse.c (parse_exp_in_context, parse_exp_1)
463 (write_exp_elt_block): Make block arguments const.
464 (expression_context_block, innermost_block): Now const.
465 * parser-defs.h (write_exp_elt_block): Update.
466 (expression_context_block, innermost_block, block_found): Now
467 const.
468 * printcmd.c (struct display) <block>: Now const.
469 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
470 * valops.c (address_of_variable): Make block argument const.
471 * value.h (value_of_variable): Update.
472 * varobj.c (struct varobj_root) <valid_block>: Now const.
473
31f56a27
YQ
4742012-11-30 Yao Qi <yao@codesourcery.com>
475
476 * breakpoint.c (print_one_breakpoint_location): Indent code.
477
556ec64d
YQ
4782012-11-30 Yao Qi <yao@codesourcery.com>
479
480 * breakpoint.c (print_one_breakpoint_location): Combine two
481 blocks handling 'hit count' together.
482
3d3fef6b
YQ
4832012-11-30 Yao Qi <yao@codesourcery.com>
484
485 * infrun.c (error_is_running, ensure_not_running): Move them
486 to ...
487 * infcmd.c (error_is_running, ensure_not_running): ... here.
488 Make them 'static'.
489 * inferior.h: Remove declarations of error_is_running and
490 ensure_not_running.
491
7cd12a76
YQ
4922012-11-30 Yao Qi <yao@codesourcery.com>
493
494 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
495 check REGNUM >= 0.
496
7a76f5b8
YQ
4972012-11-30 Yao Qi <yao@codesourcery.com>
498
499 * infrun.c: Make the declaration of 'init_infwait_state'
500 static.
501 (init_infwait_state): Make it 'static'.
502
b1209b03
UW
5032012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
504
505 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
506 return value to void to avoid compiler warning.
507
ea5e6b0e
UW
5082012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
509
510 * opencl-lang.c (opencl_print_type): New function.
511 (opencl_language_arch_info): Install it.
512
a93478ea
TT
5132012-11-29 Tom Tromey <tromey@redhat.com>
514
515 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
516 xvasprintf.
517 * common/common-utils.c (xasprintf, xvasprintf): Remove.
518 * common/common-utils.h (xasprintf, xvasprintf): Remove.
519
ac4a2da4
JG
5202012-11-29 Jerome Guitton <guitton@adacore.com>
521
522 * ada-lang.c (ada_is_interface_tag): New function.
523 (ada_is_ignored_field): Add interface tags to the list
524 of ignored fields.
525
b50d69b5
JG
5262012-11-29 Jerome Guitton <guitton@adacore.com>
527
528 * ada-lang.h (ada_tag_value_at_base_address): New function
529 declaration.
530 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
531 New functions.
532 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
533 relocate the class-wide value if need be.
534 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
535 Let ada_tag_value_at_base_address relocate the class-wide access/ref
536 before dereferencing it.
537 * ada-valprint.c (ada_val_print_1): Relocate to base address
538 before displaying the content of an interface-wide ref.
539
ca1f964d
JG
5402012-11-29 Jerome Guitton <guitton@adacore.com>
541
542 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
543
38d03cf1 5442012-11-29 Joel Brobecker <brobecker@adacore.com>
545
546 GDB 7.5.1 released.
547
f5682501
YQ
5482012-11-29 Yao Qi <yao@codesourcery.com>
549 Tom Tromey <tromey@redhat.com>
550
551 * eval.c (evaluate_subexp_standard): Get the correct pointer
552 type for TYPE_CODE_MEMBERPTR.
553
f359d716
EBM
5542012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
555
556 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
557 since now it is being done by binutils' powerpc_init_dialect().
558
0cd61f44
TT
5592012-11-28 Tom Tromey <tromey@redhat.com>
560
561 PR gdb/14290:
562 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
563 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
564 Use it.
565 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
566 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
567 (gdb_bfd_openr_next_archived_file): Use it.
568
945bf713
MM
5692012-11-28 Markus Metzger <markus.t.metzger@intel.com>
570
571 * configure.ac: Check for linux/perf_event.h.
572 * config.in: Regenerated.
573 * configure: Regenerated.
574
7e20dfcd
YQ
5752012-11-28 Yao Qi <yao@codesourcery.com>
576
577 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
578 abbreviate 'delete tracepoints' to 'delete tr'.
579 * corefile.c (_initialize_core): Call add_alias_cmd to
580 abbreviate 'set gnutarget' to 'set g'.
581 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
582 'show convenience' to 'show conv'.
583
b8293cc8
JB
5842012-11-27 Joel Brobecker <brobecker@adacore.com>
585
586 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
587 call to sparc_supply_fpregset.
588 (fill_fpregset): Fix first parameter in call to
589 sparc_collect_fpregset.
590
8c2b9656
YQ
5912012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
592 Kazu Hirata <kazu@codesourcery.com>
593 Yao Qi <yao@codesourcery.com>
594
595 * objfiles.c (init_entry_point_info): Call
596 gdbarch_convert_from_func_ptr_addr and
597 gdbarch_addr_bits_remove here ...
598 (entry_point_address_query): ... instead of here.
599 * solib-svr4.c (exec_entry_point): Call
600 gdbarch_addr_bits_remove.
601 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
602 the entry address.
603
5edf51fe
YQ
6042012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
605 Yao Qi <yao@codesourcery.com>
606
607 * eval.c (evaluate_subexp_standard): Add handling of
608 TYPE_CODE_MEMBERPTR when calling functions. Correct the
609 result of ptype for calling a TYPE_CODE_METHODPTR.
610
ca242aad
YQ
6112012-11-27 Yao Qi <yao@codesourcery.com>
612
613 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
614 warning.
615 Add i18n markup.
616
608e2dbb
TT
6172012-11-26 Alexander Larsson <alexl@redhat.com>
618 Jan Kratochvil <jan.kratochvil@redhat.com>
619 Tom Tromey <tromey@redhat.com>
620
621 * NEWS: Mention mini debuginfo feature.
622 * minidebug.c: New file.
623 * configure.ac: Check for lzma.
624 * configure, config.in: Rebuild.
625 * Makefile.in (LIBLZMA): New variable.
626 (CLIBS): Include LIBLZMA.
627 (SFILES): Mention minidebug.c.
628 (COMMON_OBS): Mention minidebug.o.
629 * symfile.c (read_symbols): New function.
630 (syms_from_objfile, reread_symbols): Call it.
631 * symfile.h (find_separate_debug_file_in_section): Declare.
632
17d6efc4
JB
6332012-11-26 Keith Seitz <keiths@redhat.com>
634
635 * exec.c (exec_file_attach): Move cleanup after verifying that
636 memory has in fact been allocated.
637
210bbc17
TT
6382012-11-26 Tom Tromey <tromey@redhat.com>
639
640 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
641 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
642 SYMBOL_SYMTAB.
643 * skip.c (skip_info): Use SYMBOL_SYMTAB.
644
0270a750
PA
6452012-11-26 Maxime Villard <rustyBSD@gmx.fr>
646 Pedro Alves <palves@redhat.com>
647
648 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
649 size parameter passed to readlink by one byte.
650 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
651 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
652 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
653 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
654 size by one byte.
655
9c16be9a
YQ
6562012-11-26 Yao Qi <yao@codesourcery.com>
657
658 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
659 extraneous parentheses.
660
e6f3fa52
YQ
6612012-11-26 Yao Qi <yao@codesourcery.com>
662
663 * remote.c (remote_start_remote): Typo fix.
664
db75c717
DM
6652012-11-23 David S. Miller <davem@davemloft.net>
666
667 * sparc-tdep.h (struct sparc_fpregset): New data structure.
668 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
669 sparc32_sol2_fpregset): Declare new globals.
670 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
671 'fpregset' argument.
672 * sparc64-tdep.h (sparc64_supply_fpregset,
673 sparc64_collect_fpregset): Likewise.
674 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
675 globals.
676 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
677 (sparc_fpregset): Declare new global.
678 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
679 'fpregset' argument.
680 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
681 into handler.
682 (fill_fpregset): Likewise.
683 (_initialize_sparc_linux_nat): Set sparc_fpregset to
684 sparc32_bsd_fpregset.
685 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
686 sparc32_bsd_fpregset down into handler.
687 (sparc32_linux_collect_core_fpregset): Likewise.
688 * sparc-nat.c (sparc_fpregset): Define.
689 (sparc_supply_fpregset): Add 'fpregset' argument.
690 (sparc_collect_fpregset): Likewise.
691 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
692 into fpregset handler.
693 (sparc_store_inferior_registers): Likewise.
694 (_initialize_sparc_nat): Set sparc_fpregset to
695 sparc32_sunos4_fpregset if NULL.
696 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
697 down into handler.
698 (fill_fpregset): Likewise.
699 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
700 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
701 use it to compute offsets.
702 (sparc32_collect_fpregset): Likewise.
703 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
704 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
705 down into handler.
706 (fill_fpregset): Likewise.
707 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
708 Likewise.
709 (sparc64_linux_collect_core_fpregset): Likewise.
710 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
711 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
712 use it to compute offsets.
713 (sparc64_collect_fpregset): Likewise.
714 (sparc64_bsd_fpregset): Define.
715 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
716 sparc64_bsd_fpregset down into handler.
717 (sparc64fbsd_collect_fpregset): Likewise.
718 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
719 and pass sparc{32,64}_bsd_fpregset down into handler.
720 (sparc64nbsd_collect_fpregset): Likewise.
721 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
722 sparc64_bsd_fpregset down into handler.
723 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
724 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
725 to sparc32_bsd_fpregset.
726 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
727 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
728 (sparc32nbsd_supply_fpregset): Likewise.
729
cfcad218
TT
7302012-11-21 Tom Tromey <tromey@redhat.com>
731
732 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
733 field.
734 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
735 Remove.
736 * c-typeprint.c (c_type_print_base): Update.
737
85ddcc70
YQ
7382012-11-21 Yao Qi <yao@codesourcery.com>
739
740 PR tdep/7438
741 * gdbarch.sh (smash_text_address): Remove.
742 * gdbarch.c, gdbarch.h: Regenerate.
743 * arm-tdep.c (arm_smash_text_address): Remove.
744 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
745 * hppa-tdep.c (hppa_smash_text_address): Remove.
746 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
747 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
748 Caller update.
749 * coffread.c (coff_symtab_read): Caller update.
750 * dbxread.c (process_one_symbol): Likewise.
751 * elfread.c (record_minimal_symbol): Likewise.
752 * somread.c (som_symtab_read): Likewise.
753
11522069
PM
7542012-11-20 Pierre Muller <muller@sourceware.org>
755
756 ARI fixes: sprintf rule.
757 Replace sprintf function calls for char arrays by
758 calls to xsnprintf calls.
759 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
760 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
761 (arm_neon_quad_read, arm_pseudo_read): Ditto.
762 (arm_neon_quad_write, arm_pseudo_write): Ditto.
763 * breakpoint.c (condition_completer): Ditto.
764 (create_tracepoint_from_upload): Ditto.
765 * dwarf2read.c (file_full_name): Ditto.
766 * gcore.c (gcore_command): Ditto.
767 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
768 * go32-nat.c (go32_sysinfo): Ditto.
769 * interps.c (interp_set): Ditto.
770 * m32c-tdep.c (make_types): Ditto.
771 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
772 * remote-m32r-sdi.c (m32r_open): Ditto.
773 * sol-thread.c (td_err_string): Ditto.
774 (td_state_string, solaris_pid_to_str): Ditto.
775 * symtab.c (gdb_mangle_name): Ditto.
776 * cli/cli-script.c (execute_control_command): Ditto.
777 (define_command, document_command): Ditto.
778 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
779 * tui/tui-stack.c (tui_make_status_line): Ditto.
780 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
781
ace21957
MF
7822012-11-20 Mike Frysinger <vapier@gentoo.org>
783
784 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
785 it when looking at ptr->func.
786 * command.h (complete_on_cmdlist): Add a fourth arg.
787 * completer.c (complete_line_internal): Add local ignore_help_classes,
788 and set it to 1 when reason is not handle_help. Pass this down to
789 lookup_cmd_1 and complete_on_cmdlist.
790
ec6632d7
TT
7912012-11-20 Tom Tromey <tromey@redhat.com>
792
793 * completer.c (count_struct_fields): Remove.
794 (expression_completer): Don't call count_struct_fields.
795
ef37bb07
PA
7962012-11-20 Pedro Alves <palves@redhat.com>
797
798 * annotate.c (breakpoints_changed): Rename to ...
799 (annotate_breakpoints_changed): ... this.
800 (annotate_stopped, breakpoint_changed): Adjust caller.
801 * annotate.h (breakpoints_changed): Rename to ...
802 (annotate_breakpoints_changed): ... this.
803 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
804 (do_map_commands_command, init_raw_breakpoint, clear_command)
805 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
806
b245bdfc
DM
8072012-11-20 David S. Miller <davem@davemloft.net>
808
809 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
810 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
811 sysconf.
812 (get_cores_used_by_process): Update comment.
813
bd0cfc4d
YQ
8142012-11-20 Yao Qi <yao@codesourcery.com>
815
816 * objfiles.c (init_entry_point_info): Remove trailing spaces.
817
de9f1b68
YQ
8182012-11-20 Yao Qi <yao@codesourcery.com>
819
820 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
821 to deprecated_context_hook.
822
8870954f
YQ
8232012-11-19 Yao Qi <yao@codesourcery.com>
824
825 * infrun.c (infwait_state): Add static.
826
8dea366b
KS
8272012-11-16 Keith Seitz <keiths@redhat.com>
828
829 PR c++/13615
830 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
831 parameter and pass it to lookup_symbol_file.
832 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
833 to search base classes.
834 (cp_lookup_symbol_namespace): Likewise.
835 (lookup_namespace_scope): Likewise.
836 (lookup_symbol_file): Add SEARCH parameter.
837 If SEARCH is non-zero and no symbol is found, lookup the class
838 and call cp_lookup_nested_symbol.
839 (find_symbol_in_baseclass): New function.
840 (cp_lookup_nested_symbol): Do not let
841 cp_lookup_symbol_in_namespace search through base classes.
842 Do that later when there is no global symbol match.
843
e64e0392
DE
8442012-11-16 Doug Evans <dje@google.com>
845
846 * main.c (gdb_datadir_provided): New static global.
847 (get_init_files): If --data-directory is provided,
848 and SYSTEM_GDBINIT lives in data-directory, look for it there.
849 * NEWS: Mention it.
850
8bdce1ff
PM
8512012-11-15 Pierre Muller <muller@sourceware.org>
852
853 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
854 * gdb_stat.h: Delete. Moved to common directory.
855 * common/gdb_stat.h: New file.
856 * gdb_wait.h: Delete. Moved to common directory.
857 * common/gdb_wait.h: New file.
858 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
859 location.
860 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
861 location.
862 (stat.h rule): Adapt to new gdb_stat.h location.
863 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
864 <sys/stat.h> header.
865 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
866 <sys/wait.h> header.
867
3a731e0f
PM
8682012-11-15 Pierre Muller <muller@sourceware.org>
869
870 * configure.ac (AC_HEADER_STAT): Remove.
871 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
872 and corresponding code.
873 * configure: Regenerate.
874 * config.in: Regenerate.
875
2792b94d
PM
8762012-11-15 Pierre Muller <muller@sourceware.org>
877
878 ARI xasprintf rule fixes.
879 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
880 instead of xasprintf.
881 (open_and_init_dwp_file): Ditto.
882
5e34c6c3
LM
8832012-11-14 Luis Machado <lgustavo@codesourcery.com>
884
885 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
886 target types.
887
e68227b9
TT
8882012-11-14 Tom Tromey <tromey@redhat.com>
889
890 * configure, config.in: Rebuild.
891 * configure.ac: Don't check for ctype.h, time.h.
892 * expprint.c: Don't use HAVE_CTYPE_H.
893
aff68abb
TT
8942012-11-13 Tom Tromey <tromey@redhat.com>
895
896 * gdbarch.h, gdbarch.c: Rebuild.
897 * gdbarch.sh (set_target_gdbarch): Rename from
898 deprecated_target_gdbarch_select_hack.
899 * arch-utils.c (gdbarch_update_p): Update.
900 (set_gdbarch_from_file): Update.
901
84277139 9022012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
903
904 * MAINTAINERS (Responsible Maintainers/misc): Add myself
905 as responsible of contrib/ari directory.
906
2ae28aa9
YQ
9072012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
908 Yao Qi <yao@codesourcery.com>
909
910 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
911 bit of EXC_RETURN.
912 (arm_m_exception_cache, arm_m_exception_this_id)
913 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
914 (arm_m_exception_unwind): New.
915 (arm_gdbarch_init): Register arm_m_exception_unwind.
916
62747a60
TT
9172012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
918
919 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
920 parameter COUNT, for pattern filling of memory regions.
921 * NEWS: Mention it.
922
4cd29721
MM
9232012-11-13 Markus Metzger <markus.t.metzger@intel.com>
924
925 * disasm.h (DISASSEMBLY_FILENAME): New macro.
926 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
927 to print_source_lines ().
928 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
929 flag.
930 * source.c (print_source_lines_base): Prefix source line with
931 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
932
dfaae886
MM
9332012-11-13 Markus Metzger <markus.t.metzger@intel.com>
934
935 * symtab.h (print_source_lines_flags): New enum.
936 * source.c (print_source_lines_base): Change noerror to flags.
937 (print_source_lines): Change noerror to flags.
938
08850b56
PM
9392012-11-13 Pierre Muller <muller@sourceware.org>
940
941 ARI fixes: Avoid sprintf function use rule.
942 * charset.c (convert_between_encodings): Use xsnprintf.
943 * cli-out.c (cli_field_int): Likewise.
944 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
945 * expprint.c (op_name_standard): Likewise.
946 * frv-tdep.c (set_variant_num_gprs): Likewise.
947 (set_variant_num_fprs): Likewise.
948 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
949 * nto-tdep.c (nto_find_and_open_solib): Likewise.
950 (nto_init_solib_absolute_prefix): Likewise.
951 * source.c (init_source_path): Likewise.
952 (print_source_lines_base): Likewise.
953 * valprint.c (print_wchar): Likewise.
954 * mi/mi-out.c (mi_field_int): Likewise.
955 windows-nat.c (windows_pid_to_exec_file): Likewise.
956 (windows_create_inferior): Likewise.
957 (_initialize_check_for_gdb_ini): Likewise.
958
ca9d61b9
JB
9592012-11-12 Joel Brobecker <brobecker@adacore.com>
960
961 * frame.h (deprecated_frame_register_read): Renames
962 frame_register_read.
963 * frame.c (deprecated_frame_register_read): Renames
964 frame_register_read. Update all callers.
965 * i386-tdep.c: Update all callers of frame_register_read.
966 * infcmd.c: Likewise.
967 * jit.c: Likewise.
968 * mips-tdep.c: Likewise.
969 * mt-tdep.c: Likewise.
970 * sh64-tdep.c: Likewise.
971
b2c7d45a
JB
9722012-11-12 Joel Brobecker <brobecker@adacore.com>
973
974 * frame.h (frame_register_read): Remove FIXME comment.
975 * frame.c (frame_register_read): Add suggestion explaining
976 which function to use in place of this one.
977
31594462
TT
9782012-11-12 Tom Tromey <tromey@redhat.com>
979
980 * python/python.c (start_type_printers): Initialize 'result_obj'.
981
18a9fc12
TT
9822012-11-12 Tom Tromey <tromey@redhat.com>
983
984 * NEWS: Update.
985 * data-directory/Makefile.in (PYTHON_FILES): Add
986 type_printers.py.
987 * python/lib/gdb/command/type_printers.py: New file.
988 * python/lib/gdb/command/types.py (TypePrinter): New class.
989 (_get_some_type_recognizers, get_type_recognizers,
990 apply_type_recognizers, register_type_printer): New
991 functions.
992 * python/py-objfile.c (objfile_object) <type_printers>: New
993 field.
994 (objfpy_dealloc): Decref new field.
995 (objfpy_new): Set new field.
996 (objfpy_get_type_printers, objfpy_set_type_printers): New
997 functions.
998 (objfile_to_objfile_object): Set new field.
999 (objfile_getset): Add "type_printers".
1000 * python/py-progspace.c (pspace_object) <type_printers>: New
1001 field.
1002 (pspy_dealloc): Decref new field.
1003 (pspy_new): Set new field.
1004 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1005 (pspace_to_pspace_object): Set new field.
1006 (pspace_getset): Add "type_printers".
1007 * python/python.c (start_type_printers, apply_type_printers,
1008 free_type_printers): New functions.
1009 (_initialize_python): Set gdb.type_printers.
1010 * python/python.h (start_type_printers, apply_type_printers,
1011 free_type_printers): Declare.
1012 * typeprint.c (type_print_raw_options, default_ptype_flags):
1013 Update for new fields.
1014 (do_free_global_table, create_global_typedef_table,
1015 find_global_typedef): New functions.
1016 (find_typedef_in_hash): Use find_global_typedef.
1017 (whatis_exp): Use create_global_typedef_table. Change cleanup
1018 handling.
1019 * typeprint.h (struct type_print_options) <global_typedefs,
1020 global_printers>: New fields.
1021
bd69fc68
TT
10222012-11-12 Tom Tromey <tromey@redhat.com>
1023
1024 * c-typeprint.c (find_typedef_for_canonicalize,
1025 print_name_maybe_canonical): New functions.
1026 (c_print_type): Look up type name.
1027 (cp_type_print_derivation_info): Add flags argument. Use
1028 print_name_maybe_canonical.
1029 (cp_type_print_method_args): Add wrapping.
1030 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1031 (c_type_print_template_args): New function.
1032 (c_type_print_base): Change wrapping. Use
1033 print_name_maybe_canonical.
1034 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1035 type name lookups.
1036 * gdbtypes.c (types_equal): No longer static.
1037 * gdbtypes.h (types_equal): Declare.
1038 * typeprint.c (type_print_raw_options, default_ptype_flags):
1039 Update.
1040 (struct typedef_hash_table): New.
1041 (hash_typedef_field, eq_typedef_field,
1042 recursively_update_typedef_hash, add_template_parameters,
1043 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1044 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1045 copy_typedef_hash, find_typedef_in_hash): New functions.
1046 * typeprint.h (struct type_print_options) <local_typedefs>:
1047 New field.
1048 (recursively_update_typedef_hash, add_template_parameters,
1049 create_typedef_hash, free_typedef_hash,
1050 make_cleanup_free_typedef_hash, copy_typedef_hash,
1051 find_typedef_in_hash): Declare.
1052
2621e0fd
TT
10532012-11-12 Tom Tromey <tromey@redhat.com>
1054
1055 * cp-support.c (inspect_type,
1056 replace_typedefs_qualified_name, replace_typedefs): Add
1057 finder, data arguments. Call as needed.
1058 (cp_canonicalize_string_full): New function.
1059 (cp_canonicalize_string_no_typedefs): Rewrite.
1060 * cp-support.h (canonicalization_ftype): New typedef.
1061 (cp_canonicalize_string_full): Declare.
1062
53342f27
TT
10632012-11-12 Tom Tromey <tromey@redhat.com>
1064
1065 * NEWS: Update.
1066 * c-typeprint.c (c_type_print_base): Handle print_method and
1067 print_typedefs flags.
1068 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1069 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1070 options.
1071 * typeprint.c (type_print_raw_options, default_ptype_flags):
1072 Update for new field.s
1073 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1074 (setprinttypelist, showprinttypelist, print_methods,
1075 print_typedefs): New globals.
1076 (set_print_type, show_print_type, set_print_type_methods,
1077 show_print_type_methods, set_print_type_typedefs,
1078 show_print_type_typedefs): New functions.
1079 (_initialize_typeprint): Update documentation. Add "print
1080 type methods" and "print type typedefs" parameters.
1081 * typeprint.h (struct type_print_options) <print_methods,
1082 print_typedefs>: New fields.
1083
6c8702eb
TT
10842012-11-12 Tom Tromey <tromey@redhat.com>
1085
1086 * c-typeprint.c (cp_type_print_method_args): Add flags
1087 argument. Call c_print_type, not type_print.
1088 (c_type_print_base): Call c_print_type, not type_print.
1089 Update.
1090
79d43c61
TT
10912012-11-12 Tom Tromey <tromey@redhat.com>
1092
1093 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1094 to type-printing functions.
1095 * ada-lang.h (ada_print_type): Add argument.
1096 * ada-typeprint.c (print_array_type, print_variant_clauses,
1097 print_variant_part, print_selected_record_field_types,
1098 print_record_field_types, print_unchecked_union_type,
1099 print_func_type, ada_print_type): Add flags argument.
1100 (ada_print_typedef): Update.
1101 * c-exp.y (OPERATOR conversion_type_id): Update.
1102 * c-lang.h (c_print_type, c_type_print_base): Update.
1103 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1104 c_type_print_modifier, c_type_print_args,
1105 c_type_print_varspec_suffix, c_type_print_base): Add flags
1106 argument.
1107 * cp-valprint.c (cp_print_class_member): Update.
1108 * dwarf2read.c (dwarf2_compute_name): Update.
1109 * f-lang.h (f_print_type): Add argument.
1110 * f-typeprint.c (f_print_type): Add flags argument.
1111 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1112 * go-lang.h (go_print_type): Add argument.
1113 * go-typeprint.c (go_print_type): Add flags argument.
1114 * jv-lang.h (java_print_type): Add argument.
1115 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1116 flags argument.
1117 * language.c (unk_lang_print_type): Add flags argument.
1118 * language.h (struct language_defn) <la_print_type>: Add flags
1119 argument.
1120 (LA_PRINT_TYPE): Likewise.
1121 * m2-lang.h (m2_print_type): Add argument.
1122 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1123 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1124 m2_unbounded_array, m2_record_fields): Add flags argument.
1125 * p-lang.h (pascal_print_type, pascal_type_print_base,
1126 pascal_type_print_varspec_prefix): Add argument.
1127 * p-typeprint.c (pascal_print_type,
1128 pascal_type_print_varspec_prefix, pascal_print_func_args,
1129 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1130 flags argument.
1131 * symmisc.c (print_symbol): Update.
1132 * typeprint.c (type_print_raw_options, default_ptype_flags):
1133 New globals.
1134 (type_print): Update.
1135 * typeprint.h (struct type_print_options): New.
1136 (type_print_raw_options): Declare.
1137 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1138
cf4ded82
KS
11392012-11-10 Keith Seitz <keiths@redhat.com>
1140
1141 * breakpoint.c (clear_command): Add cleanup for
1142 sals.sals if an argument is given.
1143
1144 * linespec.c (parse_linespec): Do cleanups after
1145 parsing a convenience variable.
1146
0d63ecda
KS
11472012-11-10 Keith Seitz <keiths@redhat.com>
1148
1149 PR gdb/14288
1150 * c-valprint.c (c_val_print): For character arrays
1151 with "print null" option on, print ellipses if
1152 the output is truncated and the next character is not \000.
1153 * valprint.c (MAX_WCHARS): Define.
1154 (WCHAR_BUFLEN): Likewise.
1155 (WCHAR_BUFLEN_MAX): Likewise.
1156 (struct converted_character): New structure.
1157 (count_next_character): New function.
1158 (print_converted_chars_to_obstack): New function.
1159 (generic_printstr): Rewrite using count_next_character
1160 and print_converted_chars_to_obstack.
1161
9b8d6827
SC
11622012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1163
1164 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1165 while executing the gdb command.
1166 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1167 are called from prompt_for_continue.
1168 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1169
e840f632
SC
11702012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1171
1172 PR tui/9584
1173
1174 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1175 but insert the command to execute in readline's buffer.
1176
f5656ead
TT
11772012-11-09 Tom Tromey <tromey@redhat.com>
1178
1179 * gdbarch.sh (target_gdbarch): Remove macro.
1180 (get_target_gdbarch): Rename to target_gdbarch.
1181 * gdbarch.c, gdbarch.h: Rebuild.
1182 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1183 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1184 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1185 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1186 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1187 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1188 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1189 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1190 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1191 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1192 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1193 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1194 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1195 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1196 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1197 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1198 target-descriptions.c, target.c, target.h, tracepoint.c,
1199 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1200 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1201 python/py-inferior.c, python/python.c: Update.
1202
ed8a1c2d
AB
12032012-11-09 Andrew Burgess <aburgess@broadcom.com>
1204
1205 * source.c (print_source_lines_base): Add fullname field giving
1206 full path to file in mi output.
1207 * NEWS: Mention the new fullname field.
1208
504b36fd
YQ
12092012-11-09 Yao Qi <yao@codesourcery.com>
1210
1211 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1212
9107fc8d
PA
12132012-11-09 Pedro Alves <palves@redhat.com>
1214
1215 PR gdb/14306
1216
1217 * infrun.c: Include target-descriptions.h.
1218 (follow_exec): Fetch new target description.
1219
30f8135b
YQ
12202012-11-09 Yao Qi <yao@codesourcery.com>
1221
1222 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1223 0x8d (lea).
1224
558a9d82
YQ
12252012-11-09 Yao Qi <yao@codesourcery.com>
1226
1227 * breakpoint.c: Declare set_tracepoint_count.
1228 (install_breakpoint): Call set_tracepoint_count if B is a
1229 tracepoint.
1230 (trace_command): Don't call set_tracepoint_count. Re-indent.
1231 (strace_command, ftrace_command):
1232 (create_tracepoint_from_upload): Likewise.
1233
6ecd4729
PA
12342012-11-09 Pedro Alves <palves@redhat.com>
1235
1236 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1237 (get_target_gdbarch) <gdbarch.h>: New function.
1238 (startup_gdbarch) <gdbarch.h>: Declare.
1239 <gdbarch.c> (target_gdbarch): Delete.
1240 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1241 current inferior's gdbarch.
1242 <gdbarch.c> (get_target_gdbarch): New function.
1243 * inferior.c: Include target-descriptions.h.
1244 (free_inferior): Free target description info.
1245 (add_inferior_with_spaces): Set the inferior's initial
1246 architecture.
1247 (clone_inferior_command): Copy the original inferior's target
1248 description if it was user specified.
1249 (initialize_inferiors): Add comment.
1250 * inferior.h (struct target_desc_info): Forward declare.
1251 (struct inferior) <gdbarch>: New field.
1252 * linux-nat.c: Include target-descriptions.h.
1253 (linux_child_follow_fork): Copy the parent's architecture and
1254 target description to the child.
1255 * target-descriptions.c: Include inferior.h.
1256 (struct target_desc_info): New structure, holding the equivalents
1257 of ...
1258 (target_desc_fetched, current_target_desc)
1259 (target_description_filename): ... these removed globals.
1260 (get_tdesc_info, target_desc_info_from_user_p)
1261 (copy_inferior_target_desc_info, target_desc_info_free): New.
1262 (target_desc_fetched, current_target_desc)
1263 (target_description_filename): Reimplemented as convenience
1264 macros.
1265 (tdesc_filename_cmd_string): New global.
1266 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1267 tdescs filename ..." commands to the per-inferior equivalent.
1268 (show_tdesc_filename_cmd): Get the value to show from the
1269 per-inferior description filename.
1270 (_initilize_target_descriptions): Change the "set/show tdesc
1271 filename" commands' variable.
1272 * target-descriptions.h (struct target_desc, struct target_desc_info)
1273 (struct inferior): Forward declare.
1274 (target_find_description, target_clear_description)
1275 (target_current_description): Adjust comments.
1276 (copy_inferior_target_desc_info, target_desc_info_free)
1277 (target_desc_info_from_user_p). Declare.
1278
4ca4d161
SC
12792012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1280
1281 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1282 (tui_target_wait_hook): Remove.
1283 (tui_install_hooks): Install the about_to_proceed observer.
1284 (tui_remove_hooks): And remove it here.
1285
9015683b
TT
12862012-11-08 Tom Tromey <tromey@redhat.com>
1287
1288 * linux-tdep.c (linux_make_siginfo_note): New function.
1289 (linux_make_corefile_notes): Use it.
1290 * corelow.c (get_core_siginfo): New function.
1291 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1292
ea9f10bb
TT
12932012-11-08 Tom Tromey <tromey@redhat.com>
1294
1295 PR gdb/14704:
1296 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1297 (zlib_decompress_section): Remove.
1298 (gdb_bfd_map_section): Only check for compressed section
1299 in mmap case. Use bfd_get_full_section_contents.
1300 * osabi.c (check_note): Add 'sectsize' argument. Read
1301 section data.
1302 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1303 section data. Update for check_note change.
1304 * xcoffread.c (xcoff_initial_scan): Use
1305 bfd_get_full_section_contents.
1306 * py-auto-load.c (auto_load_section_scripts): Use
1307 bfd_get_full_section_contents.
1308 * contrib/cc-with-tweaks.sh: Add -Z option.
1309
d071a26b
TT
13102012-11-08 Tom Tromey <tromey@redhat.com>
1311
1312 * python/py-bpevent.c: Include defs.h.
1313 * python/py-continueevent.c: Include defs.h.
1314 * python/py-event.c: Include defs.h.
1315 * python/py-event.h: Don't include defs.h.
1316 * python/py-events.h: Don't include defs.h.
1317 * python/py-evts.c: Include defs.h.
1318 * python/py-exitedevent.c: Include defs.h.
1319 * python/py-newobjfileevent.c: Include defs.h.
1320 * python/py-signalevent.c: Include defs.h.
1321 * python/py-stopevent.c: Include defs.h.
1322 * python/py-threadevent.c: Include defs.h.
1323
4574b35a
PM
13242012-11-08 Pierre Muller <muller@sourceware.org>
1325
1326 * update-web-ari.sh (print_heading): Add number of files
1327 checked.
1328 (nb_files): New variable counting the number of sources
1329 files found by gdb_find.sh script.
1330 (debug_awk): New variable to allow extra debug output.
1331 (indexes): Add more information if DEBUG_AWK is set.
1332
2834ab42
EBM
13332012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1334
1335 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1336 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1337 following the change in PLT call stubs on linker.
1338
84f13595
PM
13392012-11-08 Pierre Muller <muller@sourceware.org>
1340
1341 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1342 as default language.
1343 (AWK): Use = instead of == for sh test to avoid warning.
1344 (Linux rule): Correct [:digit] into [[:digit:]].
1345 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1346 (vasprintf rule): Adapt to common subdirectory moves.
1347 (xasprintf rule): Idem.
1348 (xvasprintf rule): Idem.
1349 (var_boolean rule): Accept occurence in == or != test.
1350
1351 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1352
d69e6a33
SC
13532012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1354
1355 * tui/tui-hooks.c (tui_inferior_exit): New function.
1356 (tui_detach_hook): Remove.
1357 (tui_install_hooks): Install the inferior exit observer.
1358 (tui_remove_hooks): Remove it.
1359
1e96de83
YQ
13602012-11-08 Yao Qi <yao@codesourcery.com>
1361
1362 PR gdb/14777.
1363 * source.c (_initialize_source): Call add_com_alias to abbreviate
1364 'forward-search' as 'fo'.
1365
0baeab03
PA
13662012-11-07 Pedro Alves <palves@redhat.com>
1367
1368 * arm-tdep.c: Make defs.h be the first include.
1369 * coff-pe-read.c: Ditto.
1370 * gnu-nat.c: Ditto.
1371 * go32-nat.c: Ditto.
1372 * i386-nat.c: Ditto.
1373 * ppcnbsd-nat.c: Ditto.
1374 * ada-varobj.h: Don't include defs.h.
1375 * i386-darwin-tdep.h: Ditto.
1376 * i386-nat.h: Ditto.
1377
892a8570
PA
13782012-11-07 Pedro Alves <palves@redhat.com>
1379
1380 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1381 Committee.
1382
719502e9
PM
13832012-11-07 Pierre Muller <muller@sourceware.org>
1384
1385 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1386 File already uses "gdb_dirent.h" header.
1387
ed86b350
YQ
13882012-11-07 Yao Qi <yao@codesourcery.com>
1389
1390 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1391 tracepoint_count'.
1392
9a4f1e4f
TT
13932012-11-06 Tom Tromey <tromey@redhat.com>
1394
1395 * target.h (inferior_has_forked, inferior_has_vforked)
1396 (inferior_has_execd, inferior_has_called_syscall): Remove
1397 declarations.
1398
0316657e
PM
13992012-11-06 Pierre Muller <muller@sourceware.org>
1400
1401 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1402 add missing internalization markup.
1403
f6592439
PA
14042012-11-06 Pedro Alves <palves@redhat.com>
1405
1406 PR gdb/14810
1407
1408 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1409
01f2564a
PM
14102012-11-06 Pierre Muller <muller@sourceware.org>
1411
1412 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1413 is not executable.
1414
f37c4431
JB
14152012-11-05 Joel Brobecker <brobecker@adacore.com>
1416
1417 * gnulib/update-gnulib.sh: New script.
1418
550889c3
JB
14192012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1420
1421 * MAINTAINERS: Update my email address.
1422
954b50b3
TT
14232012-11-05 Tom Tromey <tromey@redhat.com>
1424
1425 * frame.c (put_frame_register): Don't use temporary buffer.
1426
68c9da30
PA
14272012-11-05 Pedro Alves <palves@redhat.com>
1428
1429 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1430 child. Clear 'pending_detach'.
1431 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1432 'pending_detach' in the vfork parent.
1433
80626a55
DE
14342012-11-05 Doug Evans <dje@google.com>
1435
1436 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1437 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1438 * dwarf2read.c: #include "elf-bfd.h".
1439 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1440 (dwop_section_names): Renamed from dwo_section names. All uses
1441 updated. Add entries for .debug_cu_index, .debug_tu_index.
1442 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1443 All uses updated.
1444 (struct dwp_sections): New type.
1445 (struct virtual_dwo_sections): New type.
1446 (struct dwp_hash_table): New type.
1447 (struct dwp_file): New type.
1448 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1449 read in. Handle DWOs coming from DWP files.
1450 (lookup_dwo_file_slot): New function.
1451 (dwarf2_locate_dwo_sections): Move definition closer to use.
1452 (create_dwo_debug_info_hash_table_reader): Renamed from
1453 create_debug_info_hash_table_reader. All callers updated.
1454 (create_dwo_debug_info_hash_table): Renamed from
1455 create_debug_info_hash_table. All callers updated.
1456 (create_dwp_hash_table): New function.
1457 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1458 (lookup_dwo_in_dwp): New function.
1459 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1460 is_dwp. All callers updated.
1461 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1462 (open_and_init_dwo_file): Renamed from init_dwo_file.
1463 All callers updated.
1464 (lookup_dwo_file): Delete.
1465 (dwarf2_locate_dwp_sections): New function.
1466 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1467 (allocate_dwp_loaded_cutus_table): New function.
1468 (open_and_init_dwp_file): New function.
1469 (lookup_dwo_cutu): New function.
1470 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1471
6f6484cd
YQ
14722012-11-03 Yao Qi <yao@codesourcery.com>
1473
1474 Fix PR gdb/14617.
1475 * breakpoint.c (trace_pass_set_count): Call
1476 observer_notify_breakpoint_modified instead of
1477 observer_notify_tracepoint_modified.
1478 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1479
b45627a0
TT
14802012-11-02 Tom Tromey <tromey@redhat.com>
1481
1482 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1483 argument to complete_on_enum.
1484
d4fb63e1
TT
14852012-11-02 Tom Tromey <tromey@redhat.com>
1486
1487 * configure: Rebuild.
1488 * configure.ac (build_warnings): Add -Wempty-body.
1489 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1490 * remote.c (handle_notification): Use braces for empty 'else' body.
1491 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1492 'else' body.
1493 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1494 'else' body.
1495 * solib-som.c (som_relocate_section_addresses): Use braces
1496 for empty 'else' body.
1497 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1498 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1499
f50f4e56
PA
15002012-11-02 Pedro Alves <palves@redhat.com>
1501
1502 PR gdb/14766
1503
1504 * infrun.c (handle_inferior_event)
1505 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1506 null_ptid before handling a vfork child exec or exit. Switch to
1507 the event ptid afterwards.
1508
f0559fff
YQ
15092012-11-02 Yao Qi <yao@codesourcery.com>
1510
1511 * std-operator.def: Remove OP_LABELED.
1512 * eval.c: Remove the declaration of 'get_label'.
1513 (get_label): Remove.
1514 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1515 Update comment.
1516 Remove local variable 'variantno' and related code.
1517 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1518 with 'fieldno'.
1519 * expprint.c (print_subexp_standard): Likewise.
1520 (dump_subexp_body_standard): Likewise.
1521 * parse.c (operator_length_standard): Likewise.
1522
e5496e3e
PM
15232012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1524
1525 Incorporate ARI web page generator into GDB sources.
1526 * contrib/ari/create-web-ari-in-src.sh: New file.
1527 * contrib/ari/gdb_ari.sh: New file.
1528 * contrib/ari/gdb_find.sh: New file.
1529 * contrib/ari/update-web-ari.sh: New file.
1530
c66fb220
TT
15312012-10-31 Tom Tromey <tromey@redhat.com>
1532
1533 * gdbarch.c: Rebuild.
1534 * gdbarch.sh: Remove references to gdbarch_swap.
1535 * corelow.c (core_open): Remove obsolete comment.
1536
2f27adfe
AB
15372012-10-31 Andrew Burgess <aburgess@broadcom.com>
1538
1539 PR cli/14772
1540 * c-typeprint.c (c_print_type): Don't print a space for vector
1541 types, this is handled within the suffix.
1542 (c_type_print_varspec_suffix): Add a space to vector suffix.
1543
144db827
PA
15442012-10-26 Pedro Alves <palves@redhat.com>
1545
1546 * amd64-tdep.c (amd64_relocate_instruction): Use
1547 store_unsigned_integer instead of memcpy.
1548 * i386-tdep.c (i386_relocate_instruction): Ditto.
1549
940c3c06
PA
15502012-10-26 Pedro Alves <palves@redhat.com>
1551
1552 * infrun.c (handle_inferior_event): Merge handling of
1553 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1554 switch case.
1555
47b19065
PA
15562012-10-26 Pedro Alves <palves@redhat.com>
1557
1558 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1559 Remove comment.
1560
87d2d2a4
PA
15612012-10-26 Pedro Alves <palves@redhat.com>
1562
1563 * target.c (target_waitstatus_to_string): Handle
1564 TARGET_WAITKIND_VFORK_DONE.
1565
fed708ed
PA
15662012-10-26 Pedro Alves <palves@redhat.com>
1567
1568 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1569 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1570
2590b645
JB
15712012-10-24 Tristan Gingold <gingold@adacore.com>
1572
1573 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1574 Add comments.
1575
bed0c243
JB
15762012-10-24 Joel Brobecker <brobecker@adacore.com>
1577
1578 * ravenscar-thread.c (ravenscar_wait): Only update the list
1579 of threads and inferior_ptid if the inferior is still alive.
1580
f69c91ad
JB
15812012-10-24 Joel Brobecker <brobecker@adacore.com>
1582
1583 * ada-lang.c (is_known_support_routine): Use lbasename when
1584 matching the symtab's filename against
1585 known_runtime_file_name_patterns.
1586
d99dcf51
JB
15872012-10-24 Joel Brobecker <brobecker@adacore.com>
1588
1589 * ada-lang.c (ada_same_array_size_p): New function.
1590 (ada_promote_array_of_integrals): New function.
1591 (coerce_for_assign): Add handling of arrays where the elements
1592 are integrals of a smaller size than the size of the target
1593 array element type.
1594
32560274
JB
15952012-10-24 Joel Brobecker <brobecker@adacore.com>
1596
1597 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1598 against maximum exponent value.
1599
5a04cc98
JB
16002012-10-24 Joel Brobecker <brobecker@adacore.com>
1601
1602 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1603 "unwind-seh.c".
1604
5ded5331
JB
16052012-10-24 Joel Brobecker <brobecker@adacore.com>
1606
1607 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1608 strip typedef layer when computing the fixed type's field type,
1609 only when computing its size.
1610
2445fd7b
MK
16112012-10-24 Mark Kettenis <kettenis@gnu.org>
1612
1613 PR gdb/12783
1614 * i386-tdep.c (i386_return_value): Handle complex double and long
1615 double.
1616
8f205f9c
JB
16172012-10-24 Joel Brobecker <brobecker@adacore.com>
1618
1619 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1620 New local variable args_len.
1621 Quote the name of the executable when computing the command line.
1622
7f7930dd
MK
16232012-10-23 Mark Kettenis <kettenis@gnu.org>
1624
1625 PR gdb/12796
1626 PR gdb/12798
1627 PR gdb/12800
1628 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1629 AMD64_FTAG_REGNUM.
1630 * amd64-tdep.c (amd64_classify): Classify complex types.
1631 (amd64_return_value): Handle the COMPLEX_X87 class.
1632
38a69d0a
JB
16332012-10-23 Joel Brobecker <brobecker@adacore.com>
1634
1635 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1636 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1637
83ab93c6
JB
16382012-10-23 Joel Brobecker <brobecker@adacore.com>
1639
1640 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1641 function.
1642 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1643 to amd64_windows_auto_wide_charset.
1644
f6fbab7d
YQ
16452012-10-23 Yao Qi <yao@codesourcery.com>
1646
1647 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1648 * event-top.h: Remove its declaration.
1649 (async_request_quit): Call mark_async_signal_handler instead of
1650 mark_async_signal_handler_wrapper.
1651 (async_do_nothing, async_disconnect): Likewise.
1652 (async_stop_sig): Likewise.
1653 * remote.c (handle_remote_sigint): Likewise.
1654 (handle_remote_sigint_twice): Likewise.
1655
05fa9251
YQ
16562012-10-23 Yao Qi <yao@codesourcery.com>
1657
1658 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1659 with 'static struct async_signal_handler *'.
1660 (sighup_token, sigquit_token, sigstp_token): Likewise.
1661
08af7a40
AA
16622012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1663
1664 * gdbarch.sh (function_list): Use 'pstring' when printing
1665 a variable which could return NULL.
1666 * gdbarch.c: Regenerate.
1667
beb4b03c
JB
16682012-10-10 Joel Brobecker <brobecker@adacore.com>
1669 Tom Tromey <tromey@redhat.com>
1670
1671 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1672 inneffective if condition by gdb assertion. Add function
1673 description comment.
1674
a5b12627
JB
16752012-10-19 Joel Brobecker <brobecker@adacore.com>
1676
1677 * parser-defs.h (struct exp_descriptor): Document constraint
1678 on return value for "op_name" callbacks.
1679
0b0865da
TT
16802012-10-18 Tom Tromey <tromey@redhat.com>
1681
1682 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1683 * symtab.c (iterate_over_some_symtabs): Constify.
1684 * source.h (symtab_to_fullname): Return 'const char *'.
1685 * source.c (symtab_to_fullname): Return 'const char *'.
1686 * python/py-symtab.c (stpy_fullname): Constify.
1687 * cli/cli-cmds.c (edit_command): Constify.
1688 * breakpoint.c (print_breakpoint_location)
1689 (update_static_tracepoint): Constify.
1690
94b0e70d
TT
16912012-10-18 Tom Tromey <tromey@redhat.com>
1692
1693 * breakpoint.c (compare_breakpoints): Fix comparison.
1694
fff10684
TT
16952012-10-18 Tom Tromey <tromey@redhat.com>
1696
1697 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1698 gdb_wchar_t to convert_between_encodings.
1699
8de0566d
YQ
17002012-10-17 Yao Qi <yao@codesourcery.com>
1701
1702 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1703 more parameter 'inferior'.
1704 * corefile.c (write_memory_with_notification): Caller update.
1705
1706 * mi/mi-cmd-var.c: Include "mi-main.h".
1707 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1708 to 1 and restore it later.
1709 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1710 and "data-write-memory-bytes.
1711 * mi/mi-interp.c: Include objfiles.h.
1712 (mi_interpreter_init): Call observer_attach_memory_changed.
1713 (mi_memory_changed): New.
1714 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1715 New field.
1716
1717 * NEWS: Mention new MI notification "memory-changed".
1718
6235cdd1
JK
17192012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1720
1721 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1722
07540c15
DE
17232012-10-15 Doug Evans <dje@google.com>
1724
1725 New option -nh: inhibit loading of ~/.gdbinit.
1726 * NEWS: Mention -nh.
1727 * main.c (captured_main): Recognize and process -nh.
1728 (print_gdb_help): Mention -nh.
1729 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1730
eab09350
L
17312012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1732
1733 PR backtrace/14646
1734 PR gdb/14647
1735 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1736 pc_regnum_from_eax.
1737 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1738 nor pc_regnum_from_eax.
1739 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1740 nor pc_regnum_from_eax.
1741
9e3a7d65
JK
17422012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 Fix entry values resolving in inlined frames.
1745 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1746 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1747 entries of FRAME.
1748
c83393b9
JB
17492012-10-15 Joel Brobecker <brobecker@adacore.com>
1750
1751 * configure.ac: Build with -DMS_WIN64 if building with Python
1752 enabled using GCC on amd64-windows.
1753 * configure: Regenerate.
1754
801e4185
TT
17552012-10-15 Tom Tromey <tromey@redhat.com>
1756
1757 PR python/14635:
1758 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1759 to Py_None.
1760
74f910c8
TT
17612012-10-15 Tom Tromey <tromey@redhat.com>
1762
1763 PR python/14634:
1764 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1765
2a7c8fd5
AB
17662012-10-11 Andrew Burgess <aburgess@broadcom.com>
1767
1768 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1769 reset thread numbering back to 1.
1770
7c09e5a0
DE
17712012-10-11 Doug Evans <dje@google.com>
1772
1773 PR breakpoints/14643.
1774 * linespec.c (struct ls_parser): New member keyword_ok.
1775 (linespec_lexer_lex_string): Add comment.
1776 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1777 for one.
1778 (parse_linespec): Set keyword_ok.
1779
a1855c1d
DE
17802012-10-10 Doug Evans <dje@google.com>
1781
844226d6
DE
1782 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1783 "0x" prefix on address in log message.
1784
a1855c1d
DE
1785 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1786 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1787 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1788 (lookup_dwo_file): Add const to dwo_name parameter.
1789 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1790
2e24f4aa
JK
17912012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1792
1793 Fix crash during stepping on ppc32.
1794 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1795 SYM.
1796
aa14df25
DE
17972012-10-03 Doug Evans <dje@google.com>
1798
1799 PR symtab/14601
1800 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1801
3d468296
AB
18022012-10-02 Andrew Burgess <aburgess@broadcom.com>
1803
1804 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1805 output and use uint32_t not long to ensure 4 byte size.
1806
8f0ee2eb
JB
18072012-10-02 Joel Brobecker <brobecker@adacore.com>
1808
1809 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1810 unref'ed it.
1811
b3dc46ff
AB
18122012-10-01 Andrew Burgess <aburgess@broadcom.com>
1813
1814 * target.c (simple_search_memory): Include access length in
1815 warning message.
1816
f712f01f
EBM
18172012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1818 Edjunior Machado <emachado@linux.vnet.ibm.com>
1819
1820 PR gdb/13989
1821 * solib.c (solib_find): Prevent GDB from loading native libraries when
1822 debugging a cross-target corefile.
1823
39181896
PA
18242012-09-28 selven <pcthegreat@gmail.com>
1825
1826 Make definition match declaration.
1827
1828 * regcache.c (regcache_register_status): Change return type to
1829 enum register_status.
1830
4c2786ba
YQ
18312012-09-28 Yao Qi <yao@codesourcery.com>
1832
1833 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1834 write_memory_with_notification instead of write_memory.
1835 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1836 instead of target_write_memory.
1837
1ae0c35e
YQ
18382012-09-28 Yao Qi <yao@codesourcery.com>
1839
1840 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1841 when the length of content is not an even number.
1842
7977e5d2
TT
18432012-09-27 Tom Tromey <tromey@redhat.com>
1844
1845 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1846 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1847
807160da
JB
18482012-09-27 Joel Brobecker <brobecker@adacore.com>
1849
1850 * sol-thread.c (sol_thread_fetch_registers)
1851 (sol_thread_store_registers): Delete commented out code.
1852
43c75337
JB
18532012-09-27 Joel Brobecker <brobecker@adacore.com>
1854
1855 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1856 Move these functions to sparc-sol-thread.c.
1857 * sparc-sol-thread.c: New file.
1858 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1859 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1860 configurations.
1861 * configure: Regenerate.
1862
d292a972
JB
18632012-09-27 Joel Brobecker <brobecker@adacore.com>
1864
1865 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1866 Remove commented-out code.
1867
8c3da003
JB
18682012-09-27 Joel Brobecker <brobecker@adacore.com>
1869
1870 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1871 Enable this code for sparc hosts only.
1872
f00482b6
JB
18732012-09-27 Joel Brobecker <brobecker@adacore.com>
1874
1875 * procfs.h (procfs_find_LDT_entry): Add declaration.
1876 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1877 function procfs_find_LDT_entry.
1878
337c776f
JB
18792012-09-27 Joel Brobecker <brobecker@adacore.com>
1880
1881 * procfs.c (proc_get_LDT_entry): Make static.
1882
1a04d88f
JB
18832012-09-27 Joel Brobecker <brobecker@adacore.com>
1884
1885 * procfs.c (proc_find_memory_regions): Fix declaration.
1886
bad43aa5
SP
18872012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1888
1889 * amd64-tdep.c (amd64_return_value): Revert previous change
1890 that used TYPE_LENGTH directly.
1891 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1892 (bfin_store_return_value): Likewise.
1893 * cris-tdep.c (cris_store_return_value): Likewise.
1894 (cris_extract_return_value): Likewise.
1895 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1896 * hppa-tdep.c (hppa64_return_value): Likewise.
1897 * lm32-tdep.c (lm32_store_return_value): Likewise.
1898 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1899 * spu-tdep.c (spu_value_from_register): Likewise.
1900 * vax-tdep.c (vax_return_value): Likewise.
1901
63375b74
SP
19022012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1903
1904 * gdbtypes.c (lookup_array_range_type): Expand parameters
1905 LOW_BOUND and HIGH_BOUND to LONGEST.
1906 (lookup_string_range_type): Likewise.
1907 * gdbtypes.h (lookup_array_range_type): Likewise.
1908 (lookup_string_range_type): Likewise.
1909 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1910 Expand HIGHBOUND to ssize_t.
1911 (value_string): Likewise.
1912 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1913 (value_string): Likewise.
1914
19ca11c5
YQ
19152012-09-27 Yao Qi <yao@codesourcery.com>
1916
1917 PR breakpoints/13898
1918 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1919 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1920 per breakpoint type.
1921
92107356
PM
19222012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1923
1924 * procfs.c: Add gdb_bfd header.
1925 * rs6000-nat.c: Likewise.
1926 * solib-pa64.c: Likewise.
1927 * spu-linux-nat.c: Likewise.
1928 * windows-nat.c: Likewise.
1929
9742094a
TT
19302012-09-26 Tom Tromey <tromey@redhat.com>
1931
1932 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1933
0971de02
TT
19342012-09-26 Tom Tromey <tromey@redhat.com>
1935
1936 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1937 (read_common_block): Handle child DIEs with
1938 DW_AT_data_member_location.
1939 (new_symbol_full): Add special case for common blocks.
1940
4357ac6c
TT
19412012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1942 Tom Tromey <tromey@redhat.com>
1943
1944 * dwarf2read.c (read_common_block): Rewrite.
1945 (new_symbol_full): Handle DW_TAG_common_block.
1946 * f-lang.c (head_common_list, find_common_for_function):
1947 Remove.
1948 * f-lang.h (struct common_entry, struct saved_f77_common,
1949 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1950 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1951 BLANK_COMMON_NAME_LOCAL): Remove.
1952 (struct common_block): New.
1953 * f-valprint.c (list_all_visible_commons): Remove.
1954 (info_common_command_for_block): New function.
1955 (info_common_command): Use it.
1956 * stack.c (iterate_over_block_locals): Special case for
1957 COMMON_BLOCK_DOMAIN.
1958 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1959 constant.
1960 (struct general_symbol_info) <value.common_block>: New field.
1961 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1962
965f07a8
TT
19632012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1964 Tom Tromey <tromey@redhat.com>
1965
1966 * f-lang.c (allocate_saved_bf_node,
1967 allocate_saved_function_node, allocate_saved_f77_common_node,
1968 allocate_common_entry_node, tail_common_list, current_common,
1969 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1970 tmp_bf_ptr, add_common_block, add_common_entry,
1971 find_first_common_named, patch_common_entries,
1972 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1973 global_remote_debug, get_bf_for_fcn, saved_function_list,
1974 saved_function_list_end, clear_function_list, struct saved_fcn,
1975 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1976 SAVED_BF, SAVED_BF_PTR): Remove.
1977 * f-lang.h (tail_common_list, current_common,
1978 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1979 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1980 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1981 real_main_c_value): Remove.
1982 * f-valprint.c (there_is_a_visible_common_named): Remove.
1983
6f380991
AB
19842012-09-26 Andrew Burgess <aburgess@broadcom.com>
1985
1986 * breakpoint.c (update_global_location_list): Ignore previous
1987 duplicate status of a breakpoint when starting a new scan for
1988 duplicate breakpoints.
1989
9ead7ae4 19902012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1991 PR breakpoints/14419
2536b51c
YQ
1992 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1993 support LLVM compiler.
9ead7ae4 1994
8f8a23a2
SP
19952012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1996
1997 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1998 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1999 (bfin_store_return_value): Likewise.
2000 * cris-tdep.c (cris_store_return_value): Likewise.
2001 (cris_extract_return_value): Likewise.
2002 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2003 * hppa-tdep.c (hppa64_return_value): Likewise.
2004 * lm32-tdep.c (lm32_store_return_value): Likewise.
2005 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2006 * spu-tdep.c (spu_value_from_register): Likewise.
2007 * vax-tdep.c (vax_return_value): Likewise.
2008
d7019589
SP
20092012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2010
2011 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2012 parameter LEN to ssize_t.
2013
744a8059
SP
20142012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2015
2016 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2017 variable LEN.
2018 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2019 directly.
2020 (alpha_store_return_value): Likewise.
2021 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2022 (amd64_push_arguments): Likewise.
2023 * ax-gdb.c (gen_trace_static_fields): Likewise.
2024 (gen_traced_pop): Likewise.
2025 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2026 * breakpoint.c (update_watchpoint): Likewise.
2027 * findcmd.c (parse_find_args): Use local variable for type
2028 instead of length.
2029 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2030 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2031 (h8300_store_return_value): Likewise.
2032 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2033 Use i386_darwin_arg_type_alignment directly.
2034 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2035 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2036 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2037 (m68hc11_extract_return_value): Likewise.
2038 * mep-tdep.c (mep_push_dummy_call): Likewise.
2039 * printcmd.c (float_type_from_length): Likewise.
2040 * s390-tdep.c (s390_value_from_register): Likewise.
2041 * stack.c (read_frame_arg): Likewise.
2042 * tracepoint.c (encode_actions_1): Likewise.
2043 * valops.c (value_fetch_lazy): Use local variable for type
2044 instead of length. Use TYPE_LENGTH directly.
2045 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2046
a4b411d6
JB
20472012-09-25 Joel Brobecker <brobecker@adacore.com>
2048
2049 * symtab.c (skip_prologue_sal): Fix typo in comment.
2050
11dba07a
JB
20512012-09-25 Joel Brobecker <brobecker@adacore.com>
2052
2053 * linespec.c (create_sals_line_offset): Fix typo in comment.
2054
318102b9
SP
20552012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2056
2057 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2058 use plongest to print the array size.
2059
b4aa388a
SP
20602012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2061
2062 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2063 * p-valprint.c (pascal_type_print_base): Likewise.
2064
84cebc4a
YQ
20652012-09-22 Yao Qi <yao@codesourcery.com>
2066
2067 * remote.c (remote_get_trace_status): Remove setting default
2068 values of fields of 'ts'.
2069
04e7407c
JK
20702012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2071
2072 Fix internal error on canonicalization of clang types.
2073 * cp-name-parser.y (operator): New comment at make_operator call for
2074 new, delete, new[] and delete[].
2075 (exp): Use "sizeof ". Add new comment at make_operator call.
2076
9bf4bce9
JK
20772012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2078
2079 Fix disassemble without parameters in tailcall frame.
2080 * cli/cli-cmds.c (disassemble_current_function): Use
2081 get_frame_address_in_block.
2082
1c5b7826
TT
20832012-09-21 Tom Tromey <tromey@redhat.com>
2084
2085 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2086 TYPE_CODE_UNION>: Unify, removing a goto.
2087
62a49610
TT
20882012-09-21 Tom Tromey <tromey@redhat.com>
2089
2090 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2091
2603f7ee
AB
20922012-09-21 Andrew Burgess <aburgess@broadcom.com>
2093
2094 * findvar.c (read_frame_register_value): Mark the result value as
2095 optimized out if any of the input registers have been optimized out.
2096
810849a3
AS
20972012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2098
2099 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2100
0953dec1
SP
21012012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2102
2103 * eval.c (evaluate_subexp_standard): Eliminate single-use
2104 variable LOWER.
2105
82a90ccf
YQ
21062012-09-21 Yao Qi <yao@codesourcery.com>
2107
2108 * mi/mi-interp.c: Declare mi_record_changed.
2109 (mi_interpreter_init): Call observer_attach_record_changed.
2110 (mi_record_changed): New.
2111 * record.c (record_open): Call observer_notify_record_changed.
2112 (cmd_record_stop): Call observer_notify_record_changed.
2113 * NEWS: Mention it.
2114
d7de8e3c
TT
21152012-09-20 Tom Tromey <tromey@redhat.com>
2116
2117 * NEWS: Update.
2118 * python/python.c (finalize_python): New function.
2119 (_initialize_python): Make a final cleanup.
2120
43c7c83d
DE
21212012-09-19 Doug Evans <dje@google.com>
2122
2123 * buildsym.h (param_symbols): Delete, unused.
2124 (context_stack): Delete member "params", unused.
2125 * buildsym.c (push_context): Update.
2126 * dwarf2read.c (read_func_scope): Update.
2127
aa9259cc
TS
21282012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2129
a6521d9a
TS
2130 * sh-tdep.c (sh_register_convert_to_virtual)
2131 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2132 all callers. Just do a memcpy if not the little-endian case.
2133
f92589cb
TS
2134 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2135 set_gdbarch_double_format and set_gdbarch_long_double_format.
2136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2137 set_gdbarch_double_format.
2138 * sh-tdep.c (sh_gdbarch_init): Likewise.
2139
aa9259cc
TS
2140 * NEWS: Document the removal of SH's 'regs' command.
2141 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2142 command.
2143
c1d780c2
SDJ
21442012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2145
2146 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2147 `jump'.
2148
4ae24af0
JB
21492012-09-18 Joel Brobecker <brobecker@adacore.com>
2150
2151 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2152 language when iterating over symbols.
2153
bb25a15c
YQ
21542012-09-18 Yao Qi <yao@codesourcery.com>
2155
2156 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2157 (mi_interpreter_init): Call observer_attach_tsv_created and
2158 observer_attach_tsv_deleted.
2159 (mi_tsv_created, mi_tsv_deleted): New.
2160 * tracepoint.c (delete_trace_state_variable): Call
2161 observer_notify_tsv_deleted.
2162 (trace_variable_command): Call observer_notify_tsv_created.
2163 (delete_trace_variable_command): Call
2164 observer_notify_tsv_deleted.
2165 (create_tsv_from_upload): Call observer_notify_tsv_created.
2166 * NEWS: Mention it.
2167
201b4506
YQ
21682012-09-18 Yao Qi <yao@codesourcery.com>
2169
2170 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2171 if traceframe changed.
2172 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2173 "trace-find".
2174 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2175 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2176 'traceframe_changed'.
2177 (mi_traceframe_changed): New.
2178 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2179 New field.
2180 * NEWS: Mention the new MI notification.
2181
eaeb12db
MW
21822012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2183
2184 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2185
6e3c039e
JK
21862012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2187
2188 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2189 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2190 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2191 Extend code also for PaX support. Convert all gdb_assert to warning
2192 calls.
2193
9a950c7c
JK
21942012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2195
2196 Implement auto-load user conveniences suggested by Doug Evans.
2197 * auto-load.c: Include top.h.
2198 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2199 (_initialize_auto_load): New variable scripts_directory_help. Mention
2200 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2201 scripts-directory. Document in online help one can use also files for
2202 set auto-load safe-path.
2203 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2204 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2205
deec9a9d
SP
22062012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2207
2208 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2209 of LEN.
2210
354ecfd5
SP
22112012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2212
2213 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2214 ELTLEN and use TYPE_LENGTH directly.
2215 (m2_val_print): Likewise.
2216 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2217 variable LEN and use TYPE_LENGTH directly.
2218 (m68k_svr4_store_return_value): Likewise.
2219 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2220 ARGLEN and use TYPE_LENGTH directly.
2221 (mips_o64_push_dummy_call): Likewise.
2222 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2223 variable LENGTH and use TYPE_LENGTH directly.
2224 (s390_function_arg_float): Likewise.
2225 (s390_function_arg_integer): Likewise.
2226 (s390_push_dummy_call): Likewise.
2227 (s390_return_value_convention): Likewise.
2228 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2229 TYPE_LENGTH directly.
2230
6fc1c773
YQ
22312012-09-17 Yao Qi <yao@codesourcery.com>
2232
2233 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2234 Update comment to add_setshow_integer_cmd.
2235 * cli/cli-setshow.c (do_set_command): Handle case
2236 'var_zuinteger_unlimited'.
2237 (do_show_command): Likewise.
2238 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2239 for command 'remotetimeout'.
2240 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2241 to var_integer.
2242 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
2243 for command 'set listsize'.
2244
6acef6cd
SP
22452012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2246
2247 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2248 variable LEN.
2249
1ab3b62c
JK
22502012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2251
2252 PR 14119
2253 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2254 (frame_pop): Drop also TAILCALL_FRAME frames.
2255 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2256
acf9414f
JK
22572012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2258 Pedro Alves <palves@redhat.com>
2259
2260 PR 14548
2261 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2262 function start if we are already at function start. Both for
2263 reverse-next and for reverse-step into function without line number
2264 info.
2265
193facb3
JK
22662012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2267
2268 Code cleanup - rename 'inline' depth to 'artificial' depth.
2269 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2270 frame_id_artificial_p, extend the comment.
2271 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2272 * frame.c (fprint_frame_id): Rename at a user, change debug output
2273 text to "artificial=".
2274 (skip_inlined_frames): Rename to ...
2275 (skip_artificial_frames): ... here. Extend the comment.
2276 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2277 (frame_id_inlined_p): Rename to ...
2278 (frame_id_artificial_p): ... here. Rename at a user.
2279 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2280 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2281 at a user.
2282 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2283 Extend the comment.
2284 (frame_id_inlined_p): Rename to ...
2285 (frame_id_artificial_p): ... here.
2286 * inline-frame.c (inline_frame_this_id): Rename at a user.
2287
42056501
AB
22882012-09-14 Andrew Burgess <aburgess@broadcom.com>
2289
2290 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2291 vector variables using vector_size syntax rather than array
2292 syntax.
2293
84c47588
SP
22942012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2295
2296 * valarith.c (value_concat): Replace unsafe ALLOCA with
2297 XMALLOC/XFREE.
2298
f4045bcb
PA
22992012-09-14 Pedro Alves <palves@redhat.com>
2300
2301 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2302
63b46266
YPK
23032012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2304
2305 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2306 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2307 data-directory as appropriate.
2308
ddd7a8e7
SP
23092012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2310
2311 * printcmd.c (ui_printf): Eliminate single-use variable
2312 PARAM_LEN.
2313
d649a38e
YQ
23142012-09-14 Yao Qi <yao@codesourcery.com>
2315 Pedro Alves <palves@redhat.com>
2316
2317 * valops.c (value_assign): Move observer_notify_target_changed
2318 below to replace reinit_frame_cache.
2319
b9516fa1
YPK
23202012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2321
2322 Refactor Python "gdb" module into a proper Python package, by
2323 introducing a new "_gdb" module for code implemented in C, and
2324 using reload/__import__ instead of exec.
2325 * python/lib/gdb/__init__.py: Import * from _gdb.
2326 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2327 prompt_hook, sys.argv): Moved from finish_python_initialization.
2328 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2329 (packages, auto_load_packages): New list and function replacing
2330 module_dict and auto-loading code, using __file__ instead of
2331 gdb.PYTHONDIR and reload/__import__ instead of exec.
2332 (GdbSetPythonDirectory): Replacing function of the same name
2333 from finish_python_initialization, using reload/__import__ instead
2334 of exec, as well as call auto_load_packages.
2335 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2336 gdb_python_module and not gdb_module.
2337 * python/python-internal.h (gdb_python_module): Declare.
2338 * python/python.c (gdb_python_module): New global.
2339 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2340 (_initialize_python): Rename gdb module to _gdb.
2341 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2342 (finish_python_initialization): Move Python code to
2343 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2344 __main__.
2345
aa0fbdd8
PA
23462012-09-13 Pedro Alves <palves@redhat.com>
2347
2348 * Makefile.in (COMMON_OBS): Add registry.o.
2349 * registry.c: New file.
2350 * registry.h (struct registry_container): Declare.
2351 (registry_data_callback): New typedef.
2352 (struct registry_data, struct registry_data_registration, struct
2353 registry_data_registry): New type.
2354 (register_data_with_cleanup, registry_alloc_data)
2355 (registry_callback_adaptor, registry_clear_data)
2356 (registry_container_free_data, registry_set_data, registry_data):
2357 Declare.
2358 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2359 the new common structures and functions.
2360 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2361 callback typedefs.
2362
42b5c53d
MW
23632012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2364
2365 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2366 there is an error inserting hardware breakpoints and use the
2367 error message from the target.
2368
2369 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2370 Catch this exception and print the error message contained within. Do not
2371 print the default hardware error breakpoint message in this case.
2372
a1b64ce1
DE
23732012-09-12 Doug Evans <dje@google.com>
2374
2375 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2376 cu == NULL.
2377
83a788b8
DE
23782012-09-11 Doug Evans <dje@google.com>
2379
2380 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2381 .gdb_index symbol attributes if there are none.
2382
d9eaeb59
JB
23832012-09-11 Joel Brobecker <brobecker@adacore.com>
2384
2385 * symtab.h (struct minimal_symbol) [has_size]: New field.
2386 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2387 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2388 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2389 minimal symbols if the symbol's size is actually known.
2390 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2391 of msymbol's size field. Add comment.
2392 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2393 SET_MSYMBOL_SIZE to set the minimal symbol size.
2394
a83e9154
JB
23952012-09-11 Joel Brobecker <brobecker@adacore.com>
2396
2397 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2398 minimal_symbol struct object, rather than setting some of its
2399 fields one by one.
2400
350b1b26
AB
24012012-09-11 Andrew Burgess <aburgess@broadcom.com>
2402
2403 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2404 passed_a_ptr flag when displaying typedef types.
2405
2fa15f23
JB
24062012-09-10 Joel Brobecker <brobecker@adacore.com>
2407
2408 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2409 the optimized_out flag is preserved.
2410
5152ff90
AG
24112012-09-10 Anthony Green <green@moxielogic.com>
2412
2413 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2414 prologue changes in GCC.
2415
5b4f6e25
KS
24162012-09-10 Keith Seitz <keiths@redhat.com>
2417
2418 PR gdb/13483
2419 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2420 (BOOL_CONVERSION_BADNESS): ... this.
2421 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2422 (rank_one_type): Allow all boolean conversions
2423 permitted by the standard.
2424
f1070426
TT
24252012-09-06 Tom Tromey <tromey@redhat.com>
2426
2427 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2428 Don't decref py_objfile.
2429
a8db4212
YPK
24302012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2431
2432 Do not enable -lmcheck by default when Python is enabled with
2433 threading support.
2434 * configure.ac: (python_has_threads) New variable, by testing
2435 if WITH_THREAD is defined in Python.h.
2436 Move --enable-lmcheck after --with-python.
2437 Do not enable -lmcheck by default if python_has_threads=yes.
2438 Warn if --enable-lmcheck and python_has_threads=yes.
2439 * configure: Regenerate.
2440
648beb2b
YQ
24412012-08-31 Yao Qi <yao@codesourcery.com>
2442
2443 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2444 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2445 Update some commands.
2446 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2447 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2448 to 1.
2449
ef07a9f7
YQ
24502012-08-31 Yao Qi <yao@codesourcery.com>
2451
2452 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2453
fda395cf
YPK
24542012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2455
2456 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2457
8efd8e78
DE
24582012-08-29 Doug Evans <dje@google.com>
2459
2460 * main.c (print_gdb_help): Remove reference to
2461 --use-deprecated-index-sections.
2462
883b9c6c
YQ
24632012-08-28 Yao Qi <yao@codesourcery.com>
2464
2465 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2466 (init_cmds): Call add_setshow_uinteger_cmd for command
2467 'max-user-call-depth'.
2468 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2469 declaration of 'max_user_call_depth'.
2470 * frame.c (backtrace_limit): Add 'unsigned'.
2471 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2472 'limit'.
2473 * remote.c (remoteaddresssize): Add 'unsigned'.
2474 (remote_address_masked): Change local var 'address_size' to
2475 'unsigned'.
2476 (_initialize_remote): Call add_setshow_uinteger_cmd for
2477 'remoteaddresssize'.
2478 * top.c (history_size): Add 'unsigned'.
2479 (show_commands): Change local variables to 'unsigned'.
2480 (set_history_size_command): Don't check history_size is negative.
2481 Adjust the condition to call unstifle_history and set history_size
2482 to UNIT_MAX.
2483
1292279a
PA
24842012-08-28 Pedro Alves <palves@redhat.com>
2485
2486 PR gdb/14428
2487
2488 * infcmd.c (default_print_one_register_info): New, factored out
2489 from default_print_registers_info.
2490 (default_print_registers_info): Use it. Mark value unavailable if
2491 necessary.
2492 (registers_info): Print user registers with
2493 default_print_one_register_info.
2494
f629cd75
L
24952010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2496
2497 PR tui/14486
2498 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2499 is not NULL before referencing it.
2500
1c8cdcb1
JK
25012012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2502
2503 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2504 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2505 original PC for it.
2506
e9687799
JK
25072012-08-27 Eli Zaretskii <eliz@gnu.org>
2508 Jan Kratochvil <jan.kratochvil@redhat.com>
2509
2510 * auto-load.c (auto_load_objfile_script): Rename to ...
2511 (auto_load_objfile_script_1): ... here, change variable realname to
2512 parameter realname, document it, add return value, add variable retval.
2513 (auto_load_objfile_script): New function.
2514
7afa1642
JK
25152012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2516
2517 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2518 followed by a whitespace.
2519
dc7650b8
JK
25202012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2521
28e66c70 2522 PR gdb/14494.
dc7650b8
JK
2523 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2524 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2525 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2526 here.
2527
1591a1e8
PA
25282012-08-27 Wei-cheng Wang <cole945@gmail.com>
2529
2530 * memattr.c (create_mem_region): Fix memory region overlapping
2531 checking.
2532
ecfb0d68
SP
25332012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2534
2535 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2536 with xmalloc/cleanup.
2537 * mt-tdep.c (mt_push_dummy_call): Likewise.
2538 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2539 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2540
8c56c1b9
YQ
25412012-08-24 Yao Qi <yao@codesourcery.com>
2542
2543 * jv-exp.y (push_expression_name): Add "." at the end of error
2544 message.
2545
e3480f4a
YPK
25462012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2547
2548 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2549 * python/python.c (_initialize_python): Update documentation.
2550
dfbd5e7b
PA
25512012-08-23 Pedro Alves <palves@redhat.com>
2552
2553 * infrun.c (_initialize_infrun) <handle command help text>:
2554 Mention that multiple signals are supported.
2555
2edda2ff
PA
25562012-08-23 Pedro Alves <palves@redhat.com>
2557
2558 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2559 string.
2560
8d735b87
YQ
25612012-08-23 Yao Qi <yao@codesourcery.com>
2562
2563 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2564 (tfind_1): Don't call registers_changed, set_traceframe_num,
2565 and clear_traceframe_info.
2566 Call set_current_traceframe.
2567 (set_current_traceframe): call set_traceframe_num.
2568
c5d9b215
SDJ
25692012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2570
2571 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2572 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2573
037bbc8e
YPK
25742012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2575
2576 Enable readline in Python in a GDB-specific way and block the
2577 standard Python readline module to prevent conflicts with GDB.
2578 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2579 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2580 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2581 * python/py-gdb-readline.c: New file.
2582 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2583 prototype.
2584 * python/python.c (_initialize_python): Call
2585 gdbpy_initialize_gdb_readline.
2586
406b1477
KS
25872012-08-22 Keith Seitz <keiths@redhat.com>
2588
2589 * defs.h: Include build-gnulib/config.h
2590
6ca1b147
JM
25912012-08-22 Joseph Myers <joseph@codesourcery.com>
2592
2593 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2594 and blx pc.
2595
8315665e
YPK
25962012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2597
2598 Add a new "python-interactive" command that starts a standard
2599 Python interactive prompt with "pi" as alias, and add "py" as
2600 an alias to "python".
2601 * NEWS: Mention the new commands.
8315665e
YPK
2602 * python/python.c (eval_python_command): New function.
2603 (python_interactive_command): For "python-interactive" with
2604 arguments, call eval_python_command. For "python-interactive"
2605 without arguments, call PyRun_InteractiveLoop.
2606 (_initialize_python): Add "python-interactive" command with
2607 "pi" as alias, and add "py" as an alias to "python".
2608
522002f9
TT
26092012-08-22 Tom Tromey <tromey@redhat.com>
2610
2611 * defs.h (quit_flag): Don't declare.
2612 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2613 (QUIT): Use new functions.
2614 * event-top.c (command_handler): Use clear_quit_flag.
2615 (handle_sigint): Use set_quit_flag.
2616 (async_request_quit): Use check_quit_flag. Don't check
2617 immediate_quit.
2618 * exceptions.c (throw_exception): Use clear_quit_flag.
2619 * main.c (captured_main): Use clear_quit_flag.
2620 * python/python.c (clear_quit_flag, set_quit_flag)
2621 (check_quit_flag): New functions.
2622 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2623 clear_quit_flag.
2624 * remote.c (remote_wait_as): Use check_quit_flag,
2625 clear_quit_flag.
2626 (remote_start_remote): Call QUIT.
2627 * symfile.c (load_progress): Use check_quit_flag.
2628 * top.c (command_loop): Use clear_quit_flag.
2629 (command_line_input): Call QUIT.
2630 * utils.c (quit_flag): Conditionally define.
2631 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2632 functions.
2633 (prompt_for_continue): Call QUIT. Use quit, not
2634 async_request_quit.
2635 * remote-mips.c (mips_expect_timeout): Call QUIT.
2636 * monitor.c (monitor_expect): Call QUIT.
2637
b583003e
TT
26382012-08-22 Tom Tromey <tromey@redhat.com>
2639
2640 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2641 (async_init_signals): Update.
2642 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2643 (SIGWINCH_HANDLER_BODY): Remove.
2644
e1507e95
TT
26452012-08-22 Tom Tromey <tromey@redhat.com>
2646
2647 * jit.c (jit_object_close_impl): Don't malloc the objfile
2648 name.
2649 * objfiles.c (allocate_objfile): Don't malloc the objfile
2650 name.
2651 (free_objfile): Don't free the objfile name.
2652 * objfiles.h (struct objfile) <name>: Update comment.
2653 * symfile.c (reread_symbols): Fix reference counting. Don't
2654 malloc objfile name.
2655
1c00ec6b
TT
26562012-08-22 Tom Tromey <tromey@redhat.com>
2657
2658 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2659 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2660 (symfile_bfd_open): Likewise.
2661 (generic_load): Likewise.
2662 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2663 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2664 gdb_bfd_open.
2665 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2666 Use gdb_bfd_open.
2667 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2668 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2669 (pmon_load_fast): Likewise.
2670 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2671 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2672 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2673 (macho_check_dsym): Likewise.
2674 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2675 (m32r_upload_command): Likewise.
2676 * gdb_bfd.h (gdb_bfd_cache): Declare.
2677 * gdb_bfd.c (struct gdb_bfd_data): New.
2678 (gdb_bfd_cache): New global.
2679 (struct gdb_bfd_cache_search): New.
2680 (hash_bfd): New function.
2681 (eq_bfd): Likewise.
2682 (gdb_bfd_open): Likewise.
2683 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2684 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2685 gdb_bfd_data.
2686 * exec.c (exec_file_attach): Use gdb_bfd_open.
2687 * dsrec.c (load_srec): Use gdb_bfd_open.
2688
6532ff36
TT
26892012-08-22 Tom Tromey <tromey@redhat.com>
2690
2691 * dwarf2read.c (macro_start_file): Update.
2692 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2693 (free_objfile_per_bfd_storage): Destroy macro_cache.
2694 (allocate_objfile, free_objfile): Update.
2695 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2696 New field.
2697 (struct objfile) <macro_cache>: Remove.
2698 * symfile.c (reread_symbols): Update.
2699 * symmisc.c (print_symbol_bcache_statistics): Update.
2700 (print_objfile_statistics): Update.
2701
706e3705
TT
27022012-08-22 Tom Tromey <tromey@redhat.com>
2703
2704 * elfread.c (elf_symtab_read): Update.
2705 * objfiles.c (objfiles_bfd_data): New global.
2706 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2707 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2708 (allocate_objfile, free_objfile): Update.
2709 (_initialize_objfiles): Initialize objfiles_bfd_data.
2710 * objfiles.h (struct objfile_per_bfd_storage): New.
2711 (struct objfile) <per_bfd>: New field.
2712 <filename_cache>: Remove.
2713 (set_objfile_per_bfd): Declare.
2714 * symfile.c (reread_symbols): Update. Call
2715 set_objfile_per_bfd.
2716 (allocate_symtab): Update.
2717 * symmisc.c (print_symbol_bcache_statistics): Update.
2718 (print_objfile_statistics): Print the size of the BFD obstack.
2719
e992eda4
TT
27202012-08-22 Tom Tromey <tromey@redhat.com>
2721
2722 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2723 * gdb_bfd.c: Use DEFINE_REGISTRY.
2724 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2725 (gdb_bfd_ref): Call bfd_alloc_data.
2726 (gdb_bfd_unref): Call bfd_free_data.
2727
6b81941e
TT
27282012-08-22 Tom Tromey <tromey@redhat.com>
2729
2730 * registry.h (struct registry_fields): New.
2731 (REGISTRY_FIELDS): Redefine.
2732 (REGISTRY_ACCESS_FIELD): New macro.
2733 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2734 functions.
2735
8e260fc0
TT
27362012-08-22 Tom Tromey <tromey@redhat.com>
2737
2738 * auto-load.c (_initialize_auto_load): Update.
2739 * solib-svr4.c (_initialize_svr4_solib): Update
2740 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2741 * solib-darwin.c (_initialize_darwin_solib): Update.
2742 * registry.h: New file.
2743 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2744 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2745 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2746 (register_program_space_data_with_cleanup)
2747 (register_program_space_data, program_space_alloc_data)
2748 (clear_program_space_data, set_program_space_data)
2749 (program_space_data): Don't declare.
2750 * progspace.c: Use DEFINE_REGISTRY.
2751 (struct program_space_data, struct
2752 program_space_data_registration, struct
2753 program_space_data_registry, program_space_data_registry)
2754 (register_program_space_data_with_cleanup)
2755 (register_program_space_data, program_space_alloc_data)
2756 (program_space_free_data, clear_program_space_data)
2757 (set_program_space_data, program_space_data): Remove.
2758 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2759 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2760 (register_objfile_data_with_cleanup, register_objfile_data)
2761 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2762 declare.
2763 * objfiles.c: Use DEFINE_REGISTRY.
2764 (struct objfile_data, struct objfile_data_registration, struct
2765 objfile_data_registry, objfile_data_registry)
2766 (register_objfile_data_with_cleanup, register_objfile_data)
2767 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2768 (set_objfile_data, objfile_data): Remove.
2769 (_initialize_objfiles): Update.
2770 * jit.c (_initialize_jit): Update.
2771 * inflow.c (_initialize_inflow): Update.
2772 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2773 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2774 (register_inferior_data_with_cleanup, register_inferior_data)
2775 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2776 declare.
2777 * inferior.c: Use DEFINE_REGISTRY.
2778 (struct inferior_data, struct inferior_data_registration, struct
2779 inferior_data_registry, inferior_data_registry)
2780 (register_inferior_data_with_cleanup, register_inferior_data)
2781 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2782 (set_inferior_data, inferior_data): Remove.
2783 * auxv.c (_initialize_auxv): Update.
2784 * ada-lang.c (_initialize_ada_language): Update.
2785 * breakpoint.c (_initialize_breakpoint): Update.
2786 * i386-nat.c (i386_use_watchpoints): Update.
2787
ed9eebaf
TT
27882012-08-22 Tom Tromey <tromey@redhat.com>
2789
2790 * exec.c (exec_close, exec_file_attach): Update.
2791 (add_to_section_table): Initialize 'key' field.
2792 (add_target_sections, remove_target_sections): Add 'key' argument.
2793 * exec.h (add_target_sections, remove_target_sections): Add
2794 'key' argument.
2795 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2796 (reload_shared_libraries_1): Update.
2797 * target.h (struct target_section) <key>: New field.
2798
2f2e97fa
TT
27992012-08-22 Tom Tromey <tromey@redhat.com>
2800
2801 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2802
b3dbbd6f
PM
28032012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2804
2805 * symfile.c (allocate_symtab): Use host_address_to_string
2806 function instead of cast of pointer to long which is not
2807 compatible with x86_64-w64-mingw32 build.
2808
f94363d7
AP
28092012-08-19 Andrew Pinski <apinski@cavium.com>
2810
2811 * mips-tdep.c (is_octeon): New function.
2812 (is_octeon_bbit_op): New function.
2813 (mips32_next_pc): Handle Octeon's bbit instructions.
2814 (mips32_instruction_has_delay_slot): Likewise.
2815
78a59c2f
AP
28162012-08-19 Andrew Pinski <apinski@cavium.com>
2817
2818 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2819 before the function.
2820
4f5bcb50
AP
28212012-08-19 Andrew Pinski <apinski@cavium.com>
2822
2823 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2824
e5afdbd7
KS
28252012-08-19 Keith Seitz <keiths@redhat.com>
2826
2827 PR c++/14365
2828 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2829 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2830
13c9750e
EZ
28312012-08-18 Eli Zaretskii <eliz@gnu.org>
2832
2833 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2834 The typo broke "make TAGS".
2835
db761810 28362012-08-17 Joel Brobecker <brobecker@adacore.com>
2837
2838 GDB 7.5 released.
2839
a451cb65
KS
28402012-08-17 Keith Seitz <keiths@redhat.com>
2841
2842 PR c++/13356
2843 * gdbtypes.c (strict_type_checking): New variable.
2844 (show_strict_type_checking): New function.
2845 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2846 if strict type checking is disabled.
2847 (_initialize_gdbtypes): Add "check type" subcommand.
2848 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2849
28502012-08-17 Keith Seitz <keiths@redhat.com>
2851
2852 * language.h (type_mode): Remove.
2853 (type_check): Remove.
2854 (struct language_defn): Remove la_type_check.
2855 (STRICT_TYPE): Remove unused macro.
2856 (type_error): Remove.
2857 * language.c (set_type_range_case): Renamed to ...
2858 (set_range_case): ... this. Update all callers.
2859 Remove type_mode/type_check.
2860 (type_mode): Remove.
2861 (type_check): Remove.
2862 (show_type_command): Remove.
2863 (set_type_command): Remove.
2864 (language_info): Remove type checking output.
2865 (type_error): Remove unused function.
2866 (range_error): Update comment.
2867 (unknown_language_defn): Remove la_type_check.
2868 (auto_language_defn): Likewise.
2869 (local_language_defn): Likewise.
2870 (_initialize_language): Remove "check type" subcommand.
2871 * ada-lang.c (ada_language_defn): Remove la_type_check.
2872 * c-lang.c (c_language_defn): Likewise.
2873 (cplus_language_defn): Likewise.
2874 (asm_language_defn): Likewise.
2875 (minimal_language_defn): Likewise.
2876 * d-lang.c (d_language_defn): Likewise.
2877 * f-lang.c (f_language_defn): Likewise.
2878 * go-lang.c (go_language_defn): Likewise.
2879 * jv-lang.c (java_language_defn): Likewise.
2880 * m2-lang.c (m2_language_defn): Likewise.
2881 * objc-lang.c (objc_language_defn): Likewise.
2882 * opencl-lang.c (opencl_language_defn): Likewise.
2883 * p-lang.c (pascal_language_defn): Likewise.
2884
dbf6a605
MF
28852012-08-16 Mike Frysinger <vapier@gentoo.org>
2886
2887 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2888
973e3cf7
JB
28892012-08-16 Joel Brobecker <brobecker@adacore.com>
2890
2891 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2892 New function.
2893 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2894 using the regache. Use ia64_hpux_get_register_from_save_state_t
2895 to access the bsp and bspstore registers if not.
2896
d80ee84f
JB
28972012-08-16 Joel Brobecker <brobecker@adacore.com>
2898
2899 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2900 * breakpoint.c (detach_breakpoints): Change pid parameter into
2901 a ptid. Adjust code accordingly.
2902 * infrun.c (handle_inferior_event): Delete variable child_pid.
2903 Update call to detach_breakpoints to pass the child ptid for
2904 fork events.
2905 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2906 assert that inferior_ptid's lwp is zero.
2907 (linux_handle_extended_wait): Update call to detach_breakpoints.
2908 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2909 detach_breakpoints.
2910
2dcc6086
JB
29112012-08-16 Joel Brobecker <brobecker@adacore.com>
2912
2913 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2914 parent, only call detach_breakpoints if tts.tts_event ==
2915 TTEVT_VFORK.
2916
0c92d8c1
JB
29172012-08-16 Joel Brobecker <brobecker@adacore.com>
2918
2919 * dwarf2-frame.c (dwarf2_frame_cache): Use
2920 get_frame_address_in_block instead of get_frame_pc as
2921 the bound for executing the frame's FDE.
2922
6b1755ce
YQ
29232012-08-16 Yao Qi <yao@codesourcery.com>
2924
2925 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2926 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2927 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2928 (c_type_print_varspec_suffix): Likewise.
2929 * eval.c (evaluate_subexp_standard): Likewise.
2930 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2931 (f_type_print_varspec_suffix): Likewise.
2932 * gdbtypes.c (is_scalar_type): Likewise.
2933 (recursive_dump_type): Likewise.
2934 * infcall.c (value_arg_coerce): Likewise.
2935 * m2-valprint.c (m2_val_print): Likewise.
2936 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2937 (pascal_type_print_varspec_suffix): Likewise.
2938 (pascal_type_print_base): Likewise.
2939 * p-valprint.c (pascal_val_print): Likewise.
2940 (pascal_val_print): Likewise.
2941 * valops.c (value_slice): Likewise.
2942 * valprint.c (scalar_type_p): Likewise.
2943 * valarith.c (value_bitstring_subscript): Remove.
2944 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2945 Remove comment on TYPE_CODE_BITSTRING.
2946
2947 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2948 TYPE_CODE_BITSTRING.
2949
2950 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2951 slot 0.
2952
8acc4065
YQ
29532012-08-16 Yao Qi <yao@codesourcery.com>
2954
2955 * tracepoint.c (trace_find_none_command): Remove.
2956 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2957
8128fd8e
YQ
29582012-08-16 Yao Qi <yao@codesourcery.com>
2959
2960 * remote.c (handle_notification): Remove parameter 'length'.
2961 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2962
2873700e
KS
29632012-08-15 Keith Seitz <keiths@redhat.com>
2964
2965 * gdbtypes.c (opaque_type_resolution): Make static.
2966 Add missing comment.
2967 (overload_debug): Add missing comment.
2968 (show_opaque_type_resolution): Likewise.
2969 (show_overload_debug): Likewise.
2970 (print_bit_vector): Remove unnecessary forward declaration.
2971 (print_arg_types): Likewise.
2972 (dump_fn_fieldlists): Likewise.
2973 (print_cplus_stuff): Likewise.
2974
b82d08cd
TT
29752012-08-15 Tom Tromey <tromey@redhat.com>
2976
2977 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2978 (gdb_bfd_ref): Initialize new field.
2979 (gdb_bfd_unref): Unref the archive BFD.
2980 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2981 parent archive.
2982
db6573d6
TT
29832012-08-15 Tom Tromey <tromey@redhat.com>
2984
2985 PR python/14387:
2986 * python/py-bpevent.c (create_breakpoint_event_object): Update
2987 comment.
2988 * python/py-event.c (evpy_add_attribute): Update comment.
2989 * python/py-exitedevent.c (create_exited_event_object): Fix
2990 reference counting and error handling.
2991 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2992 Fix reference counting.
2993 * python/py-signalevent.c (create_signal_event_object): Fix
2994 reference counting and error handling.
2995 * python/py-stopevent.c (emit_stop_event): Fix reference
2996 counting.
2997 * python/py-threadevent.c (get_event_thread): Return a
2998 borrowed reference.
2999 * python/py-type.c (convert_field): Fix reference counting.
3000
a036ba48
TT
30012012-08-15 Tom Tromey <tromey@redhat.com>
3002
3003 * dwarf2read.c (dwarf_decode_macro_bytes)
3004 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3005 as hash key.
3006
486c7739
MF
30072012-08-14 Mike Frysinger <vapier@gentoo.org>
3008
3009 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3010 stepi, nexti, finish, next, step, jump, and continue commands.
3011 * infrun.c (_initialize_infrun): Update help text for the handle
3012 command.
3013
4cf93a03
DE
30142012-08-14 Doug Evans <dje@google.com>
3015
70b099cf
DE
3016 * gdbtypes.c (struct extra): Delete, unused.
3017
5212577a
DE
3018 * gdbtypes.c: Whitespace cleanup.
3019 (address_space_name_to_int): Remove "extern" from definition.
3020 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3021
4cf93a03
DE
3022 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3023 TYPE_POINTER_TYPE (type).
3024
3756ef7e
GB
30252012-08-14 Gary Benson <gbenson@redhat.com>
3026
3027 * solib-svr4.c (svr4_free_library_list): Use free_so.
3028
40d72643
MF
30292012-08-13 Mike Frysinger <vapier@gentoo.org>
3030
3031 * .gitignore: Add go-exp.c.
3032
f47f77df
DE
30332012-08-13 Doug Evans <dje@google.com>
3034
3035 * value.c (show_convenience): Tweak comment.
3036 (_initialize_values): Mention convenience functions in the help text
3037 for "show convenience".
3038
7507c54a
YQ
30392012-08-13 Yao Qi <yao@codesourcery.com>
3040
3041 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3042 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3043 TERNOP_SLICE_COUNT.
3044 * eval.c (evaluate_subexp_standard): Likewise.
3045 * expprint.c (print_subexp_standard): Likewise.
3046 (dump_subexp_body_standard): Likewise.
3047 * parse.c (operator_length_standard): Likewise.
3048
5cad9736
YQ
30492012-08-13 Yao Qi <yao@codesourcery.com>
3050
3051 * std-operator.def: Remove OP_BITSTRING.
3052 * breakpoint.c (watchpoint_exp_is_const): Update.
3053 * eval.c (evaluate_subexp_standard): Remove handling to
3054 OP_BITSTRING.
3055 * expprint.c (print_subexp_standard): Likewise.
3056 (dump_subexp_body_standard): Likewise.
3057 * parse.c (operator_length_standard): Likewise.
3058 * valops.c (value_bitstring): Remove.
3059 * value.h: Remove the declaration of 'value_bitstring'.
3060
bad7670a
SDJ
30612012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3062
3063 * linespec.c (find_methods): Remove unused variables `i1' and
3064 `name_len'.
3065 (decode_line_full): Likewise for `arg_start'.
3066
d9dce7fa
SDJ
30672012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3068
3069 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3070 (zlib_decompress_section): Likewise for `section_data'.
3071 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3072
a72c3253
DE
30732012-08-10 Doug Evans <dje@google.com>
3074
3075 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3076 * NEWS: Document them.
3077 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3078 function/strfns.py.
3079 * python/py-type.c (typy_array_1): New function.
3080 (typy_array): Call it.
3081 (typy_vector): New function.
3082 (type_object_methods): Add "vector".
3083 * python/lib/gdb/function/__init__.py: New file.
3084 * python/lib/gdb/function/strfns.py: New file.
3085
200bc880
SP
30862012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3087
3088 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3089 for TYPE_FIELD_BITPOS.
3090 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3091
de0bea00
MF
30922012-08-10 Mike Frysinger <vapier@gentoo.org>
3093
3094 PR cli/10436:
3095 * common/vec.h (VEC_merge): Define.
3096 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3097 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3098 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3099 * completer.c: Include gdb_signals.h.
3100 (signal_completer): Define.
3101 * completer.h (signal_completer): Add prototype.
3102 * infcmd.c (_initialize_infcmd): Assign the command
3103 completer for "signal" to handle_completer.
3104 * infrun.c: Include completer.h.
3105 (handle_completer): Define.
3106 (_initialize_infrun): Declare a new local variable c. Store the
3107 result of add_com("handle") to it. Assign the command
3108 completer for "handle" to handle_completer.
3109
5b9afe8a
YQ
31102012-08-09 Yao Qi <yao@codesourcery.com>
3111
3112 * cli/cli-decode.c (set_cmd_prefix): New.
3113 (lookup_cmd_for_prefixlist): New.
3114 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3115 of each cmd_list_element in *prefixlist.
3116 (add_setshow_cmd_full): set_cmd_prefix.
3117 (add_alias_cmd): Likewise.
3118 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3119 Declare 'auto_boolean_enums'.
3120 * cli/cli-setshow.c: Include "observer.h".
3121 (notify_command_param_changed_p): New.
3122 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3123 Remove 'static'.
3124 (do_setshow_command): Split it to ...
3125 (do_set_command, do_show_command): ... them. New.
3126 (do_set_command): Call observer_notify_command_param_changed if
3127 notify_command_param_changed_p returns true.
3128 (cmd_show_list): Caller update.
3129 * auto-load.c (set_auto_load_cmd): Likewise.
3130 * remote.c (show_remote_cmd): Likewise.
3131 * cli/cli-setshow.h: Update declarations.
3132 * top.c (execute_command): Call do_set_command and do_show_command.
3133
3134 * NEWS: Mention new MI notification.
3135 * mi/mi-interp.c: Declare mi_command_param_changed.
3136 (mi_interpreter_init): Attach mi_command_param_changed to
3137 observer command_param_changed.
3138 (mi_command_param_changed): New.
3139 Remove mi_suppress_breakpoint_notifications.
3140 Define global variable mi_suppress_notification.
3141 (mi_breakpoint_created): Update.
3142 (mi_breakpoint_deleted): Likewise.
3143 (mi_breakpoint_modified): Likewise.
3144 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3145 'gdb-set' and set mi_suppress_notification.
3146 * mi/mi-main.h: (mi_suppress_notification): New struct.
3147
1969df89
JK
31482012-08-09 Andreas Tobler <andreast@fgznet.ch>
3149 Jan Kratochvil <jan.kratochvil@redhat.com>
3150
3151 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3152
8bfd80db
YQ
31532012-08-09 Yao Qi <yao@codesourcery.com>
3154
3155 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3156 (skiplist): Move it to skip.c.
3157 (init_cmd_lists): Remove code setting enablebreaklist and
3158 skiplist to NULL.
3159 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3160 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3161 skiplist.
3162 * gdbcmd.h: Likewise.
3163 * skip.c (_initialize_step_skip): Move 'skiplist' from
3164 cli/cli-cmds.c.
3165
28578e6b
YQ
31662012-08-09 Yao Qi <yao@codesourcery.com>
3167
3168 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3169 * gnu-nat.c, symfile.c: Likewise.
3170
260c0b2a
DE
31712012-08-08 Aaron Gamble <agamble@google.com>
3172
3173 * utils.c (prompt_for_continue_wait_time): New static global.
3174 (make_command_stats_cleanup): Initialize it.
3175 (report_command_stats): Subtract time waiting for user.
3176 (prompt_for_continue): Track time waiting for user.
3177 (defaulted_query): Track time waiting for user.
3178
4f485ebc
DE
31792012-08-08 Doug Evans <dje@google.com>
3180
3181 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3182 UNOP_MEMVAL_TYPE.
3183 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3184 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3185 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3186 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3187 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3188 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3189 elt.
3190 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3191 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3192 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3193 (dump_prefix_expression): Handle OP_TYPE.
3194
2acf2b39
KS
31952012-08-08 Keith Seitz <keiths@redhat.com>
3196
3197 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3198 addr_start.
3199
e6712ff1
DE
32002012-08-08 Doug Evans <dje@google.com>
3201
3202 * linux-thread-db.c: #include "gdb_vecs.h".
3203 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3204 updated.
3205 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3206 (thread_db_load_search): Use a vector to iterate over path elements.
3207 Handle text appearing after "$pdir".
3208
3209 * gdb_string.h: Moved to ...
3210 * common/gdb_string.h: ... here.
3211 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3212 gdb_string.h and gdb_assert.h.
3213
ab854e54
YQ
32142012-08-08 Yao Qi <yao@codesourcery.com>
3215
3216 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3217 (tic6x_value_to_register): Likewise.
3218 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3219 and set_gdbarch_value_to_register.
3220
4f69f4c2
JK
32212012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3222 Jean-Marc Saffroy <saffroy@gmail.com>
3223
3224 PR 11804
3225 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3226 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3227 * gcore.c (gcore_create_callback): New function comment. Add modified
3228 parameter. Only write modified regions. Set SEC_READONLY exactly
3229 according to MODIFIED.
3230 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3231 the passed modified value to FUNC.
3232 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3233 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3234 first. New variables modified and has_anonymous. Parse the lines of
3235 smaps file. Add the passed MODIFIED value to FUNC.
3236 * procfs.c (find_memory_regions_callback): Add the passed modified
3237 value.
3238
78ac5f83
TT
32392012-08-06 Tom Tromey <tromey@redhat.com>
3240
3241 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3242 (dwarf2_frame_cache): Use it.
3243 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3244 cache initialization constraint.
3245
2c12abee
TT
32462012-08-06 Tom Tromey <tromey@redhat.com>
3247
3248 PR python/14386:
3249 * varobj.c (update_dynamic_varobj_children): Don't call
3250 PyIter_Check.
3251
4979d7f0
TT
32522012-08-06 Tom Tromey <tromey@redhat.com>
3253
3254 PR cli/14392:
3255 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3256
f3c8a52a
JK
32572012-08-06 Nathaniel Flath <flat0103@gmail.com>
3258
3259 * NEWS: New entry for 'cd' default parameters.
3260 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3261
5a1cf4d6
TT
32622012-08-03 Tom Tromey <tromey@redhat.com>
3263
3264 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3265 return.
3266
7c3270ae
UW
32672012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3268
3269 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3270 to attempting lseek/write.
3271 (inf_child_fileio_pread): Likewise for pread.
3272
ccce17b0
YQ
32732012-08-02 Yao Qi <yao@codesourcery.com>
3274
3275 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3276 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3277 add_setshow_zinteger_cmd.
3278 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3279 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3280 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3281 instead of add_setshow_zinteger_cmd.
3282 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3283 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3284 instead of add_setshow_zinteger_cmd.
3285 * frame.c (frame_debug): Add 'unsigned'.
3286 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3287 add_setshow_zinteger_cmd.
3288 * frame.h: Update the declaration of 'frame_debug'.
3289 * gdbtypes.c (overload_debug): Add 'unsigned'.
3290 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3291 add_setshow_zinteger_cmd.
3292 * inferior.h: Update declaration of 'debug_infrun'.
3293 * infrun.c (debug_infrun): Add 'unsigned'.
3294 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3295 add_setshow_zinteger_cmd.
3296 * jit.c (jit_debug): Add 'unsigned'.
3297 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3298 add_setshow_zinteger_cmd.
3299 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3300 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3301 instead of add_setshow_zinteger_cmd.
3302 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3303 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3304 add_setshow_zinteger_cmd.
3305 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3306 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3307 instead of add_setshow_zinteger_cmd.
3308 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3309 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3310 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3311 intead of add_setshow_zinteger_cmd.
3312 * mips-tdep.c (mips_debug): Add 'unsigned'.
3313 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3314 instead of add_setshow_zinteger_cmd.
3315 * monitor.c (monitor_debug): Add 'unsigned'.
3316 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3317 add_setshow_zinteger_cmd.
3318 * observer.c (observer_debug): Add 'unsigned'.
3319 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3320 add_setshow_zinteger_cmd.
3321 * parse.c (expressiondebug): Add 'unsigned'.
3322 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3323 add_setshow_zinteger_cmd.
3324 * record.c (record_debug): Add 'unsigned'.
3325 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3326 add_setshow_zinteger_cmd.
3327 * record.h: Update the declaration of 'record_debug'.
3328 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3329 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3330 add_setshow_zinteger_cmd.
3331 * serial.c (global_serial_debug_p): Add 'unsigned'.
3332 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3333 add_setshow_zinteger_cmd.
3334 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3335 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3336 add_setshow_zinteger_cmd.
3337 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3338 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3339 add_setshow_zinteger_cmd.
3340 * target.c (targetdebug): Add 'unsigned'.
3341 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3342 add_setshow_zinteger_cmd.
3343 * valops.c (overload_debug): Add 'unsigned'.
3344 * varobj.c (varobjdebug): Add 'unsigned'.
3345 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3346 add_setshow_zinteger_cmd.
3347 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3348 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3349 instead of add_setshow_zinteger_cmd.
3350
3351 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3352 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3353 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3354 instead of add_setshow_zinteger_cmd.
3355 * gdbarch.c, gdbarch.h: Re-generated.
3356
95b07c96
YQ
33572012-08-02 Yao Qi <yao@codesourcery.com>
3358
3359 * nto-tdep.c: Don't include cli/cli-decode.h and
3360 cli/cli-cmds.h.
3361 (_initialize_nto_tdep): Remove.
3362 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3363 Remove field.
3364 Remove macro nto_internal_debugging.
3365
57295b0b
RH
33662012-08-01 Richard Henderson <rth@redhat.com>
3367
3368 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3369 (mep-*-*) [gdb_target_obs]: Likewise.
3370
f782ad9b
AS
33712012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3372
3373 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3374 linux_get_siginfo_type.
3375
a14dd77e
JK
33762012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3377
3378 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3379 AT_ENTRY_POINT.
3380 (call_function_by_hand) <ON_STACK>: Call write_memory with
3381 gdbarch_breakpoint_from_pc, if possible.
3382 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3383 here.
3384
1467929f
YQ
33852012-07-31 Yao Qi <yao@codesourcery.com>
3386
3387 * tracepoint.c: Add 'static' for some variables.
3388
70976b65
YQ
33892012-07-31 Yao Qi <yao@codesourcery.com>
3390
3391 * go32-nat.c: Declare _initialize_go32_nat.
3392 * ser-go32.c: Declare _initialize_ser_dos.
3393 * top.c (do_chdir_cleanup): Add 'static'.
3394
eff9c3e6
KS
33952012-07-30 Keith Seitz <keiths@redhat.com>
3396
3397 * linespec.c (linespec_lex_number): A number followed
3398 by quotes is a valid number, too.
3399
728400d7
TT
34002012-07-30 Tom Tromey <tromey@redhat.com>
3401
3402 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3403
fcf303ab
UW
34042012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3405
3406 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3407 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3408
4e969b4f
AB
34092012-07-30 Andrew Burgess <aburgess@broadcom.com>
3410
3411 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3412 invalid or reevaluated to prevent prevent references to possibly
3413 delete'd type objects being left in the varobj.
3414
c4bfde41
JK
34152012-07-27 Tom Tromey <tromey@redhat.com>
3416 Jan Kratochvil <jan.kratochvil@redhat.com>
3417
3418 * copying.awk: Print buffer-read-only and vi ro markers.
3419 * copying.c: Rebuild.
3420 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3421 * gdbarch.c, gdbarch.h: Rebuild.
3422 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3423 buffer-read-only and vi ro markers.
3424 * features/arm-with-iwmmxt.c: Rebuild.
3425 * features/arm-with-m-fpa-layout.c: Rebuild.
3426 * features/arm-with-m-vfp-d16.c: Rebuild.
3427 * features/arm-with-m.c: Rebuild.
3428 * features/arm-with-neon.c: Rebuild.
3429 * features/arm-with-vfpv2.c: Rebuild.
3430 * features/arm-with-vfpv3.c: Rebuild.
3431 * features/i386/amd64-avx-linux.c: Rebuild.
3432 * features/i386/amd64-avx.c: Rebuild.
3433 * features/i386/amd64-linux.c: Rebuild.
3434 * features/i386/amd64.c: Rebuild.
3435 * features/i386/i386-avx-linux.c: Rebuild.
3436 * features/i386/i386-avx.c: Rebuild.
3437 * features/i386/i386-linux.c: Rebuild.
3438 * features/i386/i386-mmx-linux.c: Rebuild.
3439 * features/i386/i386-mmx.c: Rebuild.
3440 * features/i386/i386.c: Rebuild.
3441 * features/i386/x32-avx-linux.c: Rebuild.
3442 * features/i386/x32-avx.c: Rebuild.
3443 * features/i386/x32-linux.c: Rebuild.
3444 * features/i386/x32.c: Rebuild.
3445 * features/mips-dsp-linux.c: Rebuild.
3446 * features/mips-linux.c: Rebuild.
3447 * features/mips64-dsp-linux.c: Rebuild.
3448 * features/mips64-linux.c: Rebuild.
3449 * features/rs6000/powerpc-32.c: Rebuild.
3450 * features/rs6000/powerpc-32l.c: Rebuild.
3451 * features/rs6000/powerpc-403.c: Rebuild.
3452 * features/rs6000/powerpc-403gc.c: Rebuild.
3453 * features/rs6000/powerpc-405.c: Rebuild.
3454 * features/rs6000/powerpc-505.c: Rebuild.
3455 * features/rs6000/powerpc-601.c: Rebuild.
3456 * features/rs6000/powerpc-602.c: Rebuild.
3457 * features/rs6000/powerpc-603.c: Rebuild.
3458 * features/rs6000/powerpc-604.c: Rebuild.
3459 * features/rs6000/powerpc-64.c: Rebuild.
3460 * features/rs6000/powerpc-64l.c: Rebuild.
3461 * features/rs6000/powerpc-7400.c: Rebuild.
3462 * features/rs6000/powerpc-750.c: Rebuild.
3463 * features/rs6000/powerpc-860.c: Rebuild.
3464 * features/rs6000/powerpc-altivec32.c: Rebuild.
3465 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3466 * features/rs6000/powerpc-altivec64.c: Rebuild.
3467 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3468 * features/rs6000/powerpc-cell32l.c: Rebuild.
3469 * features/rs6000/powerpc-cell64l.c: Rebuild.
3470 * features/rs6000/powerpc-e500.c: Rebuild.
3471 * features/rs6000/powerpc-e500l.c: Rebuild.
3472 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3473 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3474 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3475 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3476 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3477 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3478 * features/rs6000/powerpc-vsx32.c: Rebuild.
3479 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3480 * features/rs6000/powerpc-vsx64.c: Rebuild.
3481 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3482 * features/rs6000/rs6000.c: Rebuild.
3483 * features/s390-linux32.c: Rebuild.
3484 * features/s390-linux32v1.c: Rebuild.
3485 * features/s390-linux32v2.c: Rebuild.
3486 * features/s390-linux64.c: Rebuild.
3487 * features/s390-linux64v1.c: Rebuild.
3488 * features/s390-linux64v2.c: Rebuild.
3489 * features/s390x-linux64.c: Rebuild.
3490 * features/s390x-linux64v1.c: Rebuild.
3491 * features/s390x-linux64v2.c: Rebuild.
3492 * features/tic6x-c62x-linux.c: Rebuild.
3493 * features/tic6x-c62x.c: Rebuild.
3494 * features/tic6x-c64x-linux.c: Rebuild.
3495 * features/tic6x-c64x.c: Rebuild.
3496 * features/tic6x-c64xp-linux.c: Rebuild.
3497 * features/tic6x-c64xp.c: Rebuild.
3498
826f0041
TT
34992012-07-27 Tom Tromey <tromey@redhat.com>
3500
3501 * c-exp.y (classify_name): Avoid assignment in condition.
3502
84552b16
PA
35032012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3504
3505 * amd64-windows-tdep.c: Include "frame.h".
3506 (amd64_windows_skip_trampoline_code): New function.
3507 (amd64_windows_init_abi): Add trampoline registration.
3508
a8a64aa8
YQ
35092012-07-27 Yao Qi <yao@codesourcery.com>
3510
3511 * tracepoint.c (cur_traceframe_number): Remove.
3512 (set_tfile_traceframe): Remove.
3513 (tfile_trace_find, tfile_fetch_registers): Update callers.
3514 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3515 (tfile_open, tfile_trace_find): Likewise.
3516
d99067cb
YQ
35172012-07-27 Yao Qi <yao@codesourcery.com>
3518
3519 * thread.c (switch_to_thread): Don't call registers_changed.
3520
f2e8016f
TT
35212012-07-26 Tom Tromey <tromey@redhat.com>
3522
f782ad9b
AS
3523 * Makefile.in (SFILES): Remove objc-exp.y.
3524 (YYFILES): Remove objc-exp.c.
3525 (YYOBJ): Remove objc-exp.o.
3526 (local-maintainer-clean): Don't mention objc-exp.c.
3527 * c-exp.y: Include objc-lang.h.
3528 (%union) <class>: New field.
3529 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3530 (exp): Clone subscript production for OBJC_LBRAC. Add various
3531 Objective C productions.
3532 (msglist, msgarglist, msgarg): New productions.
3533 (array_mod, func_mod, operator): Clone productions for
3534 OBJC_LBRAC.
3535 (parse_string_or_char): Handle '@' strings.
3536 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3537 (classify_name): Check la_name_of_this. Recognize ObjC class
3538 names.
3539 * objc-exp.y: Remove.
3540 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3541 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3542
f66713d2
JK
35432012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3544
3545 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3546
7cfe01b4
JK
35472012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3548
3549 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3550 and decrement.
3551
5ba19b4c
TT
35522012-07-26 Tom Tromey <tromey@redhat.com>
3553
3554 * copying.c: Rebuild.
3555 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3556 'no_class'.
3557
27618ce4
TT
35582012-07-26 Tom Tromey <tromey@redhat.com>
3559
3560 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3561 immediate_quit.
3562 (print_objfile_statistics): Likewise.
3563 (maintenance_print_symbols): Likewise.
3564 (maintenance_print_msymbols): Likewise.
3565 (maintenance_print_objfiles): Likewise.
3566 * psymtab.c (print_partial_symbols): Call QUIT.
3567 (maintenance_print_psymbols): Likewise. Don't modify
3568 immediate_quit.
3569 * copying.c (show_copying_command): Don't modify immediate_quit.
3570 (show_warranty_command): Likewise.
3571 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3572
dd3818c8
KS
35732012-07-26 Keith Seitz <keiths@redhat.com>
3574
3575 * linespec.c (linespec_lexer_lex_number): The input
3576 is also a valid number if the next character is a comma
3577 or colon.
3578
23a80689
JB
35792012-07-26 Joel Brobecker <brobecker@adacore.com>
3580
3581 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3582 configure options.
3583
29f77997
TG
35842012-07-26 Tristan Gingold <gingold@adacore.com>
3585
3586 * machoread.c: Include gdb_bfd.h.
3587
a55c1f32
TG
35882012-07-26 Tristan Gingold <gingold@adacore.com>
3589
3590 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3591 offset.
3592
56eb65bd
SP
35932012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3594
3595 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3596 SIZE to size_t.
3597 (dwarf2_evaluate_loc_desc): Likewise.
3598 (dwarf2_loc_desc_needs_frame): Likewise.
3599 (locexpr_describe_location_1): Likewise.
3600 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3601 size_t.
3602 (struct dwarf2_loclist_baton): Likewise.
3603 * dwarf2read.c (struct dwarf_block): Likewise.
3604 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3605 (decode_locdesc): Expand SIZE and I to size_t.
3606
aec8845c
JK
36072012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3608
3609 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3610
33d7655b
JB
36112012-07-25 Joel Brobecker <brobecker@adacore.com>
3612
3613 * doublest.c (convert_doublest_to_floatformat): If the exponent
3614 is too small, treat the value as zero. If the exponent is too
3615 large, treat the value as infinity.
3616
a22d44ff
JB
36172012-07-25 Joel Brobecker <brobecker@adacore.com>
3618
3619 * configure.ac: Add --enable-lmcheck configure option.
3620 * configure: Regenerate.
3621
d6b28940
TT
36222012-07-25 Tom Tromey <tromey@redhat.com>
3623
f782ad9b
AS
3624 * NEWS: Mention maint info bfds.
3625 * gdb_bfd.c (all_bfds): New global.
3626 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3627 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3628 New functions.
d6b28940 3629
6e73ba20
RC
36302012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3631
3632 * configure.tgt: Add v850*-*-rtems*.
3633
d560eebd
TT
36342012-07-25 Tom Tromey <tromey@redhat.com>
3635
3636 * macrotab.c (macro_bcache_str): Remove cast.
3637
d7cbec71
HZ
36382012-07-25 Hui Zhu <hui_zhu@mentor.com>
3639
3640 * linespec.c (linespec_lexer_lex_number): Update comments,
3641 change the return and add check to make sure the input is
3642 the decimal numbers.
3643 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3644 false, call linespec_lexer_lex_string.
3645
882f447f
TT
36462012-07-24 Tom Tromey <tromey@redhat.com>
3647
3648 * symfile.c (symbol_file_add): Don't open BFD twice.
3649
53ab4066 36502012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3651
3652 * breakpoint.c (create_breakpoint): Store condition for pending
3653 breakpoints.
3654
108fb0f7
AS
36552012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3656
3657 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3658 (m68k_return_value): Handle complex types like structures.
3659 (m68k_svr4_return_value): Likewise.
3660
1634dcbe
JK
36612012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3662
3663 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3664 parameters to bfd_get_section_name.
3665
e2d12c21
YQ
36662012-07-24 Yao Qi <yao@codesourcery.com>
3667
3668 * cli/cli-setshow.c: Handle case 'var_uinteger'
3669 and 'var_zuninteger' together. Handle case 'var_integer' and
3670 'var_zinteger' together.
3671
64b92e45
KS
36722012-07-23 Keith Seitz <keiths@redhat.com>
3673
3674 * linespec.c (convert_linespec_to_sal): Don't add
3675 any symbols to the result vector if symbol_to_sal
3676 returns zero.
3677
0f5f4ffe
KS
36782012-07-23 Keith Seitz <keiths@redhat.com>
3679
3680 * linespec.c (decode_objc): Record the function name
3681 in the linespec.
3682
da1cc82f
TT
36832012-07-23 Tom Tromey <tromey@redhat.com>
3684
3685 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3686 counting.
3687 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3688 (map_vmap): Acquire a reference to the BFD.
3689
6c18f3e0
SP
36902012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3691
3692 * p-valprint.c (pascal_object_print_value): Replace potentially
3693 unsafe alloca with xmalloc/xfree.
3694 * valops.c (search_struct_method): Likewise.
3695
695c3173
TT
36962012-07-23 Tom Tromey <tromey@redhat.com>
3697
3698 * solib-svr4.c (enable_break): Update.
3699 * bfd-target.h (target_bfd_reopen): Update documentation.
3700
08d2cd74
TT
37012012-07-23 Tom Tromey <tromey@redhat.com>
3702
3703 * symfile.c (separate_debug_file_exists): Update.
3704 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3705 (reread_symbols): Update.
3706 * elfread.c (build_id_verify): Update.
3707 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3708 bfd_open_maybe_remote.
3709
596f7d67
TT
37102012-07-23 Tom Tromey <tromey@redhat.com>
3711
3712 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3713
8ac244b4
TT
37142012-07-23 Tom Tromey <tromey@redhat.com>
3715
3716 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3717 and 'abfd'.
3718 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3719 and 'abfd'.
3720 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3721 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3722 'abfd'.
3723 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3724 * objfiles.c (allocate_objfile): Acquire a new reference.
3725 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3726 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3727 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3728 a cleanup for 'nbfd'.
3729 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3730 for 'nbfd'.
3731 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3732 make a cleanup for 'abfd'.
3733 (symbol_file_add): Make a BFD cleanup.
3734
64c31149
TT
37352012-07-23 Tom Tromey <tromey@redhat.com>
3736
3737 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3738 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3739 * corelow.c (core_open): Use gdb_bfd_fopen.
3740 * dsrec.c (load_srec): Use gdb_bfd_openr.
3741 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3742 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3743 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3744 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3745 (gdb_bfd_fdopenr): New functions.
3746 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3747 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3748 (gdb_bfd_fdopenr): Declare.
3749 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3750 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3751 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3752 gdb_bfd_openr_next_archived_file.
3753 (macho_check_dsym): Use gdb_bfd_openr.
3754 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3755 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3756 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3757 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3758 gdb_bfd_openr.
3759 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3760 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3761 gdb_bfd_openr_next_archived_file.
3762 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3763 Use gdb_bfd_openr.
3764 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3765 gdb_bfd_openr.
3766 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3767 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3768 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3769 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3770 (symfile_bfd_open): Use gdb_bfd_fopen.
3771 (generic_load): Use gdb_bfd_openr.
3772 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3773
520b0001
TT
37742012-07-23 Tom Tromey <tromey@redhat.com>
3775
3776 * bfd-target.c (target_bfd_reopen): Update.
3777 * cli/cli-dump.c (bfd_openr_with_cleanup)
3778 (bfd_openw_with_cleanup): Update.
3779 * corelow.c (core_open): Update.
3780 * dsrec.c (load_srec): Update.
3781 * exec.c (exec_file_attach): Update.
3782 * gcore.c (create_gcore_bfd): Update.
3783 * gdb_bfd.c (gdb_bfd_ref): Return void.
3784 (gdb_bfd_open): Update.
3785 * gdb_bfd.h (gdb_bfd_ref): Return void.
3786 Update comments.
3787 * jit.c (jit_bfd_try_read_symtab): Update.
3788 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3789 * machoread.c (macho_symfile_read_all_oso): Update.
3790 (macho_check_dsym): Update.
3791 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3792 * remote-m32r-sdi.c (m32r_load): Update.
3793 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3794 * rs6000-nat.c (add_vmap): Update.
3795 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3796 Update.
3797 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3798 * solib-spu.c (spu_bfd_open): Update.
3799 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3800 * spu-linux-nat.c (spu_bfd_open): Update.
3801 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3802 (generic_load): Update.
3803 * windows-nat.c (windows_make_so): Update.
3804
2322ff16
SP
38052012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3806
3807 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3808
3def0b36
PA
38092012-07-20 Jeff Kenton <jkenton@tilera.com>
3810
3811 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3812 SIGTRAMP_FRAME unwinding.
3813
e615022a
DE
38142012-07-20 Doug Evans <dje@google.com>
3815
3816 * NEWS: Document new options "set/show use-deprecated-index-sections",
3817 and delete reference to --use-deprecated-index-sections.
3818 * symfile.h (use_deprecated_index_sections): Delete.
3819 * dwarf2read.c (use_deprecated_index_sections): Make static.
3820 (read_index_from_section): Update wording of how to load
3821 deprecated index sections.
3822 (_initialize_dwarf2_read): New options
3823 "set/show use-deprecated-index-sections".
3824 * main.c (captured_main): Delete --use-deprecated-index-sections.
3825
64776a0b
PA
38262012-07-20 Pedro Alves <palves@redhat.com>
3827
3828 PR threads/11692
3829 PR gdb/12203
3830
3831 * infrun.c (handle_inferior_event) <new thread>: Don't special
3832 case minus_one_ptid.
3833 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3834 * linux-thread-db.c (thread_get_info_callback): Don't return early
3835 if the thread is zombie.
3836 (thread_from_lwp): Change return type to void. Rewrite stale
3837 comment.
3838 (attach_thread): Don't return early if the thread is zombie,
3839 instead set its "dying" flag.
3840 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3841 (find_new_threads_callback): Don't return early if the thread is
3842 zombie.
3843
09826ec5
PA
38442012-07-20 Pedro Alves <palves@redhat.com>
3845
3846 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3847 * target.c (target_wait): Likewise.
3848 (str_comma_list_concat_elem, do_option, target_options_to_string):
3849 New functions.
3850 * target.h (target_options_to_string): Declare.
3851
f7a35f02
TT
38522012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3853 Tom Tromey <tromey@redhat.com>
3854
3855 * dwarf2read.c (dwarf_decode_macros)
3856 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3857 DW_MACRO_GNU_transparent_include_alt>: New cases.
3858 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3859 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3860
b81e1ee0
TT
38612012-07-20 Tom Tromey <tromey@redhat.com>
3862
3863 * dwarf2read.c (try_open_dwo_file): Don't call
3864 gdb_bfd_stash_filename.
3865
99c1624c
PA
38662012-07-20 Pedro Alves <palves@redhat.com>
3867
3868 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3869 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3870 (i386_process_record): Tweak description comments.
3871
4ffa4fc7
PA
38722012-07-20 Pedro Alves <palves@redhat.com>
3873
3874 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3875 (i386_process_record): Use record_read_memory.
3876 * record.c (record_read_memory): New function.
3877 (record_arch_list_add_mem, record_exec_insn): Use
3878 record_read_memory.
3879 * record.h (record_read_memory): Declare.
3880
c24343e2
YQ
38812012-07-20 Yao Qi <yao@codesourcery.com>
3882
3883 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3884 NULL for xfree.
3885
90f47860
PA
38862012-07-19 Pedro Alves <palves@redhat.com>
3887
3888 * record.c (record_resume): Ask the target beneath to report all
3889 signals.
3890
01093045
DE
38912012-07-19 Doug Evans <dje@google.com>
3892
3893 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3894 there's no section at address zero.
3895 (dwarf2_record_block_ranges): Ditto.
3896
a7c3d162
YQ
38972012-07-19 Yao Qi <yao@codesourcery.com>
3898
3899 * command.h, remote.c: Fix a typo in comment.
3900
608b4967
TT
39012012-07-19 Tom Tromey <tromey@redhat.com>
3902
3903 PR exp/13206:
3904 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3905 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3906 OP_DECLTYPE>: New cases.
3907 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3908 (type_exp): Add new productions.
3909 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3910 and decltype.
3911 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3912 New case.
3913 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3914 OP_DECLTYPE>: New case.
3915 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3916 New case.
3917 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3918 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3919
274b54d7
TT
39202012-07-19 Tom Tromey <tromey@redhat.com>
3921
3922 * c-exp.y (enum token_flags): New.
3923 (struct token) <cxx_only>: Remove.
3924 <flags>: New field.
3925 (tokentab3, tokentab2, ident_tokens): Update.
3926 (lex_one_token): Update. Handle FLAG_SHADOW.
3927
9eaf6705
TT
39282012-07-19 Tom Tromey <tromey@redhat.com>
3929
3930 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3931 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3932 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3933 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3934 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3935 type_exp production where appropriate.
3936 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3937 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3938 <UNOP_MEMVAL_TYPE>: New case.
3939 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3940 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3941 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3942 <UNOP_MEMVAL_TYPE>: New case.
3943 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3944 UNOP_REINTERPRET_CAST>: Update.
3945 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3946 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3947 UNOP_REINTERPRET_CAST>: Update.
3948 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3949 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3950 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3951 constants.
3952
6ace3df1
YQ
39532012-07-19 Yao Qi <yao@codesourcery.com>
3954 Jan Kratochvil <jan.kratochvil@redhat.com>
3955
3956 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3957 and case 'var_optional_filename' together.
3958 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3959 instead of add_setshow_optional_filename_cmd for setshow command
3960 'args'. Set completer for 'set args'.
3961
48faced0
DE
39622012-07-18 Doug Evans <dje@google.com>
3963
3964 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3965 * common/gdb_vecs.c: New file, contents from utils.c.
3966 * common/host-defs.h: New file, contents from defs.h.
3967 * utils.h: New file, contents from defs.h.
3968 * defs.h: Move all declarations of objects defined in utils.c
3969 to utils.h (except QUIT() and related).
3970 #include "utils.h", "host-defs.h".
3971 * probe.h (probe_p): Move here from gdb_vecs.h.
3972 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3973 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3974 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3975 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3976 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3977 (COMMON_OBS): Add gdb_vecs.o.
3978 (gdb_vecs.o): New rule.
3979
66f1999b
KS
39802012-07-18 Keith Seitz <keiths@redhat.com>
3981
3982 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3983 parameter. If non-zero, use SYMNAME as the canonical name
3984 for the SaL.
3985 Update all callers.
3986 (convert_linespec_to_sals): Use add_sal_to_sals for
3987 expressions, too.
3988 (decode_line_full): No need to "fill in missing canonical names"
3989 anymore. Simply make cleanups for the allocated names.
3990
5d94e27b
KS
39912012-07-18 Keith Seitz <keiths@redhat.com>
3992
3993 * linespec.c (struct linespec): Constify expression,
3994 source_filename, function_name, and label_name.
3995 (symbol_not_found_error): Make all parameters const.
3996 (linespec_parser_delete): No need to check for NULL
3997 when using xfree. Cast const char * to char * for xfree.
3998
af4908ba
KS
39992012-07-18 Keith Seitz <keiths@redhat.com>
4000
4001 * breakpoint.c (invalid_thread_id_error): New function.
4002 (find_condition_and_thread): Use invalid_thread_id_error.
4003 (watch_command_1): Likewise.
4004
853254db
TT
40052012-07-18 Tom Tromey <tromey@redhat.com>
4006
4007 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4008 * contrib/cc-with-tweaks.sh: New file.
4009
2ec9a5e0
TT
40102012-07-18 Tom Tromey <tromey@redhat.com>
4011
4012 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4013 (locate_dwz_sections): Recognize .gdb_index.
4014 (create_cus_from_index_list): New function.
4015 (create_cus_from_index): Use it. Handle .dwz data.
4016 (read_index_from_section): New function, extracted from
4017 dwarf2_read_index.
4018 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4019 if needed.
4020
36586728
TT
40212012-07-18 Tom Tromey <tromey@redhat.com>
4022
4023 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4024 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4025 <is_dwz>: New field.
4026 (struct dwz_file): New.
4027 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4028 (locate_dwz_sections, dwarf2_get_dwz_file)
4029 (get_abbrev_section_for_cu): New functions.
4030 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4031 (read_and_check_type_unit_head): Add abbrev_section argument.
4032 (create_debug_types_hash_table): Update.
4033 (init_cutu_and_read_dies): Use proper abbrev section.
4034 (init_cutu_and_read_dies_no_follow): Likewise.
4035 (set_partial_user): Do nothing if PST==NULL.
4036 (read_comp_units_from_section): New function.
4037 (create_all_comp_units): Use it.
4038 (scan_partial_symbols, partial_die_parent_scope): Update.
4039 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4040 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4041 (find_partial_die): Add offset_in_dwz argument. Update.
4042 (guess_partial_die_structure_name, fixup_partial_die): Update.
4043 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4044 DW_FORM_GNU_strp_alt.
4045 (read_indirect_string_from_dwz): New function.
4046 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4047 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4048 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4049 (follow_die_offset): Add offset_in_dwz argument.
4050 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4051 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4052 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4053 Handle new macro forms.
4054 (dwarf_decode_macros): Update.
4055 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4056 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4057 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4058 (create_debug_types_hash_table): Use correct abbrev section.
4059 (get_debug_line_section): New function.
4060 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4061 (process_full_comp_unit): Pass 'required' argument to
4062 end_symtab_get_static_block.
4063 * buildsym.h (end_symtab_get_static_block): Update.
4064 * buildsym.c (end_symtab_get_static_block): Add 'required'
4065 argument.
4066 (end_symtab, end_expandable_symtab): Update.
4067
4bf44c1c
TT
40682012-07-18 Tom Tromey <tromey@redhat.com>
4069
4070 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4071 (pagesize): Remove.
4072 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4073 (zlib_decompress_section): Remove.
4074 (dwarf2_read_section): Use gdb_bfd_map_section.
4075 (munmap_section_buffer): Remove.
4076 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4077 munmap_section_buffer.
4078 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4079 (struct gdb_bfd_section_data): New.
4080 (free_one_bfd_section): New function.
4081 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4082 (get_section_descriptor, zlib_decompress_section)
4083 (gdb_bfd_map_section): New functions.
4084 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4085
bb397797
TT
40862012-07-18 Tom Tromey <tromey@redhat.com>
4087
4088 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4089
6ec53d05
TT
40902012-07-18 Tom Tromey <tromey@redhat.com>
4091
4092 * gdb_bfd.c (struct gdb_bfd_data): New.
4093 (gdb_bfd_cache): New global.
4094 (struct gdb_bfd_cache_search): New.
4095 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4096 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4097 * gdb_bfd.h (gdb_bfd_open): Declare.
4098
f9a062ff
TT
40992012-07-18 Tom Tromey <tromey@redhat.com>
4100
4101 * utils.c (make_cleanup_bfd_unref): Rename from
4102 make_cleanup_bfd_close.
4103 * defs.h (make_cleanup_bfd_unref): Rename from
4104 make_cleanup_bfd_close.
4105 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4106 (bfd_openw_with_cleanup): Update.
4107 * corelow.c (core_open): Update.
4108 * dsrec.c (load_srec): Update.
4109 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4110 * remote-m32r-sdi.c (m32r_load): Update.
4111 * remote-mips.c (mips_load_srec): Update.
4112 (pmon_load_fast): Update.
4113 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4114 Update.
4115 (darwin_bfd_open): Update.
4116 * solib.c (solib_bfd_fopen): Update.
4117 * symfile-mem.c (symbol_file_add_from_memory): Update.
4118 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4119 (symfile_bfd_open): Update.
4120 (generic_load): Update.
4121
d6ad71ba
TT
41222012-07-18 Tom Tromey <tromey@redhat.com>
4123
4124 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4125 (pmon_load_fast): Likewise.
4126 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4127 (m32r_upload_command): Likewise.
4128 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4129 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4130 Use make_cleanup_bfd_close.
4131
a4453b7e
TT
41322012-07-18 Tom Tromey <tromey@redhat.com>
4133
4134 * symfile.c (symfile_bfd_open): Don't copy name. Call
4135 gdb_bfd_stash_filename.
4136 (load_command): Open the new BFD before freeing the old.
4137 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4138 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4139 Call gdb_bfd_stash_filename.
4140 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4141 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4142 gdb_bfd_stash_filename.
4143 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4144 Free found_pathname.
4145 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4146 gdb_bfd_stash_filename.
4147 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4148 * machoread.c (macho_add_oso_symfile): Call
4149 gdb_bfd_stash_filename.
4150 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4151 gdb_bfd_stash_filename.
4152 (macho_check_dsym): Don't copy filename. Call
4153 gdb_bfd_stash_filename.
4154 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4155 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4156 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4157 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4158 * exec.c (exec_close): Don't free the BFD's filename.
4159 (exec_file_attach): Don't copy the filename. Call
4160 gdb_bfd_stash_filename.
4161 * corelow.c (core_close): Don't free the BFD's filename.
4162 (core_open): Call gdb_bfd_stash_filename.
4163 * corefile.c (reopen_exec_file): Remove #if 0 code.
4164 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4165 pathname.
4166 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4167
cbb099e8
TT
41682012-07-18 Tom Tromey <tromey@redhat.com>
4169
4170 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4171 gdb_bfd_unref.
4172 (free_dwo_file): Use gdb_bfd_unref.
4173 * cli/cli-dump.c: Include gdb_bfd.h.
4174 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4175 (bfd_openr_with_cleanup): Likewise.
4176 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4177 gdb_bfd_unref.
4178 * utils.c: Include gdb_bfd.h.
4179 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4180 * symfile.c: Include gdb_bfd.h.
4181 (separate_debug_file_exists): Use gdb_bfd_unref.
4182 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4183 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4184 (generic_load): Use gdb_bfd_ref.
4185 (reread_symbols): Use gdb_bfd_unref.
4186 * symfile-mem.c: Include gdb_bfd.h.
4187 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4188 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4189 * solib.c: Include gdb_bfd.h.
4190 (solib_bfd_fopen): Use gdb_bfd_ref.
4191 (solib_bfd_open): Use gdb_bfd_unref.
4192 (free_so_symbols): Use gdb_bfd_unref.
4193 (reload_shared_libraries_1): Use gdb_bfd_unref.
4194 * solib-spu.c: Include gdb_bfd.h.
4195 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4196 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4197 gdb_bfd_unref.
4198 * solib-frv.c: Include gdb_bfd.h.
4199 (enable_break2): Use gdb_bfd_unref.
4200 * solib-dsbt.c: Include gdb_bfd.h.
4201 (enable_break2): Use gdb_bfd_unref.
4202 * solib-darwin.c: Include gdb_bfd.h.
4203 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4204 gdb_bfd_unref.
4205 (darwin_bfd_open): Use gdb_bfd_unref.
4206 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4207 * remote-mips.c: Include gdb_bfd.h.
4208 (mips_load_srec): Use gdb_bfd_ref.
4209 (pmon_load_fast): Use gdb_bfd_ref.
4210 * remote-m32r-sdi.c: Include gdb_bfd.h.
4211 (m32r_load): Use gdb_bfd_ref.
4212 * record.c: Include gdb_bfd.h.
4213 (record_save_cleanups): Use gdb_bfd_unref.
4214 (cmd_record_save): Use gdb_bfd_unref.
4215 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4216 gdb_bfd_unref.
4217 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4218 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4219 * objfiles.c: Include gdb_bfd.h.
4220 (free_objfile): Use gdb_bfd_unref.
4221 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4222 gdb_bfd.c.
4223 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4224 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4225 (macho_check_dsym): Likewise.
4226 * m32r-rom.c: Include gdb_bfd.h.
4227 (m32r_load): Use gdb_bfd_ref.
4228 (m32r_upload_command): Use gdb_bfd_ref.
4229 * jit.c: Include gdb_bfd.h.
4230 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4231 * gdb_bfd.h: New file.
4232 * gdb_bfd.c: New file.
4233 * gcore.c: Include gdb_bfd.h.
4234 (create_gcore_bfd): Use gdb_bfd_ref.
4235 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4236 (gcore_command): Use gdb_bfd_unref.
4237 * exec.c: Include gdb_bfd.h.
4238 (exec_close): Use gdb_bfd_unref.
4239 (exec_close_1): Use gdb_bfd_unref.
4240 (exec_file_attach): Use gdb_bfd_ref.
4241 * elfread.c: Include gdb_bfd.h.
4242 (build_id_verify): Use gdb_bfd_unref.
4243 * dsrec.c: Include gdb_bfd.h.
4244 (load_srec): Use gdb_bfd_ref.
4245 * corelow.c: Include gdb_bfd.h.
4246 (core_close): Use gdb_bfd_unref.
4247 (core_open): Use gdb_bfd_ref.
4248 * bfd-target.c: Include gdb_bfd.h.
4249 (target_bfd_xclose): Use gdb_bfd_unref.
4250 (target_bfd_reopen): Use gdb_bfd_ref.
4251 * Makefile.in (SFILES): Add gdb_bfd.c.
4252 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4253 (COMMON_OBS): Add gdb_bfd.o.
4254
ed1d1739
KS
42552012-07-18 Keith Seitz <keiths@redhat.com>
4256
4257 * breakpoint.c (find_condition_and_thread): Initialize
4258 TASK and REST.
4259 (create_breakpiont): find_condition_and_thread will now
4260 initialize COND_STRING, THREAD, and REST (and TASK).
4261 (addr_string_to_sals): Likewise.
4262
eab402df
PA
42632012-07-18 Pedro Alves <palves@redhat.com>
4264
4265 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4266 Pull the single step breakpoints out of the target.
4267
2b963b68
SDJ
42682012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4269
4270 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4271 * stap-probe.c (compile_probe_arg): Likewise.
4272
6bac7473
SDJ
42732012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4274
4275 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4276 (elf_compile_to_ax): Likewise.
4277 * infrun.c (insert_exception_resume_from_probe): Likewise.
4278 (check_exception_resume): Remove `objfile' variable.
4279 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4280 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4281 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4282 (compare_entries): Rename to...
4283 (compare_probes): ...this. Adjust function to work with
4284 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4285 respectively.
4286 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4287 `VEC (probe_p) *'.
4288 (print_ui_out_info): Adjust argument to be `struct probe *'.
4289 (info_probes_for_ops): Adjust internal computations to use
4290 `VEC (probe_p) *'.
4291 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4292 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4293 gen_info_probes_table_values>: Remove `objfile' argument.
4294 (struct probe) <objfile>: New field.
4295 (find_probe_by_pc): Remove `objfile' argument.
4296 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4297 (stap_get_probe_argument_count): Likewise.
4298 (stap_get_arg): Likewise.
4299 (stap_evaluate_probe_argument): Likewise.
4300 (stap_compile_to_ax): Likewise.
4301 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4302 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4303 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4304 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4305 sym_compile_to_ax>: Likewise.
4306
3347eb1a 43072012-07-18 Terry Guo <terry.guo@arm.com>
4308
4309 PR 14329
4310 * defs.h (GDB_MI_MSG_WIDTH): New.
4311 * ser_base (ser_base_read_error_fd): New function.
4312 (do_ser_base_readchar): Poll error file descriptor as well as
4313 standard output.
f782ad9b 4314 (generic_readchar): Refactor error handling.
3347eb1a 4315
80c8d323
JB
43162012-07-18 Joel Brobecker <brobecker@adacore.com>
4317
4318 * NEWS: Create a new section for the next release branch.
4319 Rename the section of the current branch, now that it has
4320 been cut.
4321
b45a0664 43222012-07-18 Joel Brobecker <brobecker@adacore.com>
4323
4324 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4325 * version.in: Bump version to 7.5.50.20120718-cvs.
4326
09cf2b22
KS
43272012-07-17 Keith Seitz <keiths@redhat.com>
4328
4329 * linespec.c (linespec_parse_line_offset): Make parameter
4330 const.
4331
8f043999
JK
43322012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4333
4334 PR 11914
4335 * f-valprint.c (info_common_command): New variable frame_id.
4336 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4337 * printcmd.c (print_variable_and_value): Extend function comment.
4338 Add comment for invalidated FRAME.
4339 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4340 FI form FRAME_ID after each print_frame_local_vars.
4341 (struct print_variable_and_value_data): Change frame to frame_id.
4342 (do_print_variable_and_value): New variable frame, initialize it from
4343 p->frame_id. Add comment for invalidated FRAME.
4344 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4345 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4346 for invalidated FRAME.
4347
ae5e0686
MK
43482012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4349 Pedro Alves <palves@redhat.com>
4350
4351 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4352 loop.
4353
5049c5be
TT
43542012-07-16 Tom Tromey <tromey@redhat.com>
4355
4356 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4357
2908cac6
DE
43582012-07-15 Doug Evans <dje@google.com>
4359
094b34ac
DE
4360 * dwarf2read.c (stmt_list_hash): New struct.
4361 (type_unit_group): Embed "per_cu" member, remove pointer.
4362 New union member "t", move member "tus" into it, all uses updated.
4363 New member "hash", replaces member "line_offset, all uses updated.
4364 (quick_file_names): Replace member "offset" with "hash", all uses
4365 updated.
4366 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4367 (hash_file_name_entry, eq_file_name_entry): Call them.
4368 (hash_type_unit_group, eq_type_unit_group): Ditto.
4369 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4370 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4371 (dw2_get_file_names): Update.
4372 (create_type_unit_group): Replace "per_cu" arg with "cu".
4373 All callers updated. Fix "quick" (.gdb_index) handling.
4374 (get_type_unit_group): Replace "per_cu" arg with "cu".
4375 All callers updated.
4376 (build_type_unit_groups): Don't reset tu_stats.
4377
2908cac6
DE
4378 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4379 "tab_cur_size". Change member "tab" to be a htab_t.
4380 (create_filename_seen_cache): Update.
4381 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4382 (filename_seen): Update.
4383
a2b6eff5
DE
43842012-07-13 Doug Evans <dje@google.com>
4385
4386 * symtab.c (filename_seen): Update comment.
4387
4359dff1
JK
43882012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4389 Doug Evans <dje@google.com>
4390
4391 * buildsym.c (end_symtab_1): Split it to ...
4392 (end_symtab_get_static_block): ... this ...
4393 (end_symtab_from_static_block): ... and this function.
4394 (end_symtab, end_expandable_symtab): Call them.
4395 * buildsym.h (end_symtab_get_static_block)
4396 (end_symtab_from_static_block): New declarations.
4397 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4398 Set its valid CU ranges.
4399
a24f71ab
JK
44002012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4401
4402 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4403 DW_OP_GNU_parameter_ref.
4404
d76b7dbc
JK
44052012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4406
4407 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4408 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4409
9fdc877b
DE
44102012-07-13 Doug Evans <dje@google.com>
4411
4412 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4413 (filename_seen_cache): New struct.
4414 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4415 (create_filename_seen_cache): New function.
4416 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4417 (filename_seen): Delete arg "first". New arg "cache". All callers
4418 updated.
4419 (output_source_filename_data): New struct.
4420 (output_source_filename): Delete arg "first". New arg "data".
4421 All callers updated.
4422 (sources_info): Delete local "first". New locals "data", "cleanups".
4423 Rewrite to use filename_seen_cache.
4424 (add_partial_filename_data): Delete member "first". New member
4425 "filename_seen_cache". All uses updated.
4426 (make_source_files_completion_list): Rewrite to use
4427 filename_seen_cache.
4428
f80c6f3f
DE
44292012-07-12 Doug Evans <dje@google.com>
4430
4431 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4432
0bfa869d
DE
44332012-07-10 Doug Evans <dje@google.com>
4434
f4dc4d17
DE
4435 PR gdb/13498
4436 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4437 all_type_unit_groups, type_unit_groups, tu_stats.
4438 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4439 All uses updated. Add type_unit_group to union "s".
4440 (type_unit_group): New struct.
4441 (IS_TYPE_UNIT_GROUP): New macro.
4442 (abbrev_table): Delete unused member "section".
4443 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4444 (dw2_get_cu): Assert not used with type_unit_group.
4445 (dw2_get_primary_cu): New function.
4446 (dw2_build_type_unit_groups_reader): New function.
4447 (dw2_build_type_unit_groups): New function.
4448 (dw2_get_file_names): Assert not called on type units.
4449 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4450 Redo loop to iterate over type unit groups instead of type units.
4451 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4452 (read_abbrev_offset): New function.
4453 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4454 updated.
4455 (create_partial_symtab): New function.
4456 (process_psymtab_comp_unit_reader): Assert not used with type units.
4457 Call create_partial_symtab.
4458 (process_psymtab_type_unit): Delete.
4459 (hash_type_unit_group, eq_type_unit_group): New functions.
4460 (allocate_type_unit_groups_table): New function.
4461 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4462 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4463 (create_type_unit_group, get_type_unit_group): New functions.
4464 (tu_abbrev_offset): New struct.
4465 (sort_tu_by_abbrev_offset): New function.
4466 (add_type_unit_group_to_table): New function.
4467 (build_type_unit_groups): New function.
4468 (build_type_psymtabs_reader): New function.
4469 (build_type_psymtab_dependencies): New function.
4470 (build_type_psymtabs): Rewrite.
4471 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4472 is seen in a type unit.
4473 (process_queue): Move symtab expansion debugging printfs here.
4474 Call process_full_type_unit for type units.
4475 (compute_symtab_includes): Assert not called for type units.
4476 (process_cu_includes): Don't call compute_symtab_includes for
4477 type units.
4478 (process_full_type_unit): New function.
4479 (process_imported_unit_die): Flag an error if called for type units.
4480 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4481 updated. Assert not called for type units.
4482 (read_file_scope): Call dwarf2_start_symtab.
4483 (setup_type_unit_groups): New function.
4484 (read_type_unit_scope): Rewrite.
4485 (abbrev_table_read_table): Initialize abbrev_table->offset.
4486 (abbrev_table_free_cleanup): New function.
4487 (dwarf2_start_symtab): New function.
4488 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4489 * buildsym.c (finish_block_internal): New arg "expandable".
4490 All callers updated.
4491 (start_symtab): Move most contents to ...
4492 (restart_symtab): ... here. New function.
4493 (reset_symtab_globals): New function.
4494 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4495 Call reset_symtab_globals.
4496 (end_symtab, end_expandable_symtab): New functions.
4497 (set_missing_symtab, augment_type_symtab): New functions.
4498 * buildsym.h (end_expandable_symtab): Declare.
4499 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4500 * psympriv.h (struct partial_symtab): New member "anonymous".
4501 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4502 anonymous psymtabs.
4503 (read_psymtabs_with_filename): Ditto.
4504 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4505 (expand_symtabs_matching_via_partial): Ditto.
4506 (dump_psymtab): Update.
0bfa869d
DE
4507 * dictionary.c (dict_add_pending): New function.
4508 * dictionary.h (dict_add_pending): Declare.
4509
45e58e77
DE
45102012-07-09 Doug Evans <dje@google.com>
4511
b74db436
DE
4512 * buildsym.c (start_subfile): Remove unnecessary check for
4513 name == NULL.
4514
fd55216c
DE
4515 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4516
6721b2ec
DE
4517 * dwarf2read.c (load_full_type_unit): Simplify.
4518
b4dd5633
DE
4519 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4520 to struct signatured_type **. All uses updated.
4521
45e58e77
DE
4522 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4523 All callers updated.
4524
e314d629
TT
45252012-07-09 Tom Tromey <tromey@redhat.com>
4526
4527 * c-exp.y (check_parameter_typelist): New function.
4528 (parameter_typelist): Call it.
4529 * eval.c (make_params): Handle '(void)' case.
4530 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4531 '(void)' case.
4532
aa7c7447
JK
45332012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4534
4535 * common/linux-ptrace.c: Include gdb_assert.h.
4536 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4537 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4538 stdint.h.
4539 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4540 functions.
4541 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4542 * linux-nat.c (linux_child_post_attach)
4543 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4544
889003ed
JK
45452012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4546
4547 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4548 nptl <2.7 bug workaround for core files.
4549
da559b09
JK
45502012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4551
4552 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4553 clearing.
4554 (save_siginfo): Remove.
4555 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4556 call.
4557 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4558 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4559 * linux-nat.h (struct lwp_info): Remove field siginfo.
4560
f865ee35
JK
45612012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4562
4563 Code cleanup for the next patch.
4564 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4565 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4566 call for it.
4567 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4568 (ia64_linux_stopped_data_address):
4569 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4570 the return value.
4571 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4572 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4573 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4574 call for it.
4575
76b83c51
JK
45762012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4577
4578 PR 14321
4579 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4580 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4581
a6fb9c08
TT
45822012-07-06 Tom Tromey <tromey@redhat.com>
4583
4584 * c-exp.y (DOTDOTDOT): New token.
4585 (func_mod, exp): Use parameter_typelist.
4586 (parameter_typelist): New production.
4587 (tokentab3): Add "..." token.
4588 * eval.c (make_params): Handle varargs.
4589 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4590 varargs.
4591
71918a86
TT
45922012-07-06 Tom Tromey <tromey@redhat.com>
4593
4594 PR exp/9608:
4595 * c-exp.y (%union) <tvec>: Change type.
4596 (func_mod): Now uses <tvec> type.
4597 (exp): Update for tvec change.
4598 (direct_abs_decl): Push the typelist.
4599 (func_mod): Return a typelist.
4600 (nonempty_typelist): Update for tvec change.
4601 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4602 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4603 * parse.c (pop_type_list): New function.
4604 (push_typelist): New function.
4605 (follow_types): Handle tp_function_with_arguments.
4606 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4607 (enum type_pieces) <tp_function_with_arguments>: New constant.
4608 (union type_stack_elt) <typelist_val>: New field.
4609 (push_typelist): Declare.
4610
fcde5961
TT
46112012-07-06 Tom Tromey <tromey@redhat.com>
4612
4613 * c-exp.y (%union) <type_stack>: New field.
4614 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4615 (ptr_operator_ts): New production.
4616 (ptype): Update.
4617 * parse.c (type_stack_reserve): New function.
4618 (check_type_stack_depth): Use it.
4619 (pop_type_stack, append_type_stack, push_type_stack)
4620 (get_type_stack, type_stack_cleanup): New functions.
4621 (follow_types): Handle tp_type_stack.
4622 (_initialize_parse): Simplify initialization.
4623 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4624 constant.
4625 (union type_stack_elt) <stack_val>: New field.
4626 (get_type_stack, append_type_stack, push_type_stack)
4627 (type_stack_cleanup): Declare.
4628
1a7d0ce4
TT
46292012-07-06 Tom Tromey <tromey@redhat.com>
4630
4631 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4632 Remove.
4633 (struct type_stack): New.
4634 * parse.c (type_stack, type_stack_size, type_stack_depth):
4635 Remove.
4636 (type_stack): New global.
4637 (parse_exp_in_context, check_type_stack_depth)
4638 (insert_into_type_stack, insert_type, push_type, push_type_int)
4639 (insert_type_address_space, pop_type, pop_type_int)
4640 (_initialize_parse): Update.
4641
16d01384
TT
46422012-07-06 Tom Tromey <tromey@redhat.com>
4643
4644 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4645 Remove %type.
4646
9bfc60bf
SP
46472012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4648
4649 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4650
d5161074
SP
46512012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4652 Jan Kratochvil <jan.kratochvil@redhat.com>
4653
4654 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4655 alloca with xmalloc/xfree.
4656
a74bc576
SP
46572012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4658
4659 * MAINTAINERS (Write After Approval): Add myself to the list.
4660
667e0a4b
DE
46612012-07-05 Doug Evans <dje@google.com>
4662
4663 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4664
34b536a8
HZ
46652012-07-05 Hui Zhu <hui_zhu@mentor.com>
4666
4667 * ax-gdb.c (cli/cli-utils.h): New include.
4668 (linespec.h): Ditto.
4669 (agent_eval_command_one): New function.
4670 (agent_command_1): Ditto.
4671 (agent_command): Call function agent_command_1.
4672 (agent_eval_command): Ditto.
4673 (_initialize_ax_gdb): Change help for "maint agent"
4674 and "maint agent-eval".
4675
e6f0bce7
HZ
46762012-07-05 Hui Zhu <hui_zhu@mentor.com>
4677
4678 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4679 * cli/cli-utils.c (check_for_argument): New function.
4680 * cli/cli-utils.h (check_for_argument): Ditto.
4681
1b3371b1
L
46822012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4683
4684 * NEWS: Mention x32 ABI support.
4685
23e2d720
L
46862012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4687
4688 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4689 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4690
4691 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4692 and pc_regnum_from_eax to -1. Update SP regnum from
4693 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4694 needed.
4695
4696 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4697 pc_regnum_from_eax.
4698
836bf454
JK
46992012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4700
4701 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4702 * dwarf2expr.h: Include gdbtypes.h.
4703 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4704 these forward declarations.
4705 (cu_offset, sect_offset): Move these ...
4706 * gdbtypes.h: Remove include dwarf2expr.h.
4707 (cu_offset, sect_offset): ... here.
4708
1e55e04f
L
47092012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4710
4711 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4712 (amd64_linux_sigtramp_code): This.
4713 (amd64_x32_linux_sigtramp_code): New.
4714 (LINUX_SIGTRAMP_LEN): Updated.
4715 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4716
7d0e21ad
JK
47172012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4718
4719 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4720
8775fd2d
JK
47212012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4722
4723 * config.in: Regenerate.
4724 * configure: Regenerate.
4725 * configure.ac: Remove check for gnu/libc-version.h.
4726 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4727 gnu/libc-version.h.
4728 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4729 variables libc_version, libc_major and libc_minor. Replace sscanf by
4730 inferior_has_bug. Extend the comment.
4731
fcb44371
JK
47322012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4733
4734 * linux-thread-db.c (inferior_has_bug): New function.
4735 (thread_db_find_new_threads_silently): Return boolean as checked by
4736 inferior_has_bug, describe it in the comments.
4737 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4738 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4739 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4740 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4741 if UNTIL_NO_NEW,
4742
09406207
DE
47432012-07-02 Doug Evans <dje@google.com>
4744
0907af0c
DE
4745 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4746 related to queue management.
4747
09406207
DE
4748 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4749 instead of "debug dwarf2-die" in debugging printfs.
4750 (create_debug_info_hash_table_reader): Ditto.
4751 (create_debug_info_hash_table): Ditto.
4752 (init_dwo_file): Ditto.
4753 (init_cutu_and_read_dies): Add debugging printf.
4754 (init_cutu_and_read_dies_no_follow): Ditto.
4755 (process_psymtab_comp_unit_reader): Ditto.
4756
d3ce09f5
SS
47572012-07-02 Stan Shebs <stan@codesourcery.com>
4758
4759 Add target-side support for dynamic printf.
4760 * NEWS: Mention the additional style.
4761 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4762 (struct bp_location): New field cmd_bytecode.
4763 * breakpoint.c: Include format.h.
4764 (disconnected_dprintf): New global.
4765 (parse_cmd_to_aexpr): New function.
4766 (build_target_command_list): New function.
4767 (insert_bp_location): Call it.
4768 (remove_breakpoints_pid): Skip dprintf breakpoints.
4769 (print_one_breakpoint_location): Ditto.
4770 (dprintf_style_agent): New global.
4771 (dprintf_style_enums): Add dprintf_style_agent.
4772 (update_dprintf_command_list): Add agent case.
4773 (agent_printf_command): New function.
4774 (_initialize_breakpoint): Add new commands.
4775 * common/ax.def (printf): New bytecode.
4776 * ax.h (ax_string): Declare.
4777 * ax-gdb.h (gen_printf): Declare.
4778 * ax-gdb.c: Include cli-utils.h, format.h.
4779 (gen_printf): New function.
4780 (maint_agent_print_command): New function.
4781 (_initialize_ax_gdb): Add maint agent-printf command.
4782 * ax-general.c (ax_string): New function.
4783 (ax_print): Add printf disassembly.
4784 * Makefile.in (SFILES): Add format.c
4785 (COMMON_OBS): Add format.o.
4786 * common/format.h: New file.
4787 * common/format.c: New file.
4788 * printcmd.c: Include format.h.
4789 (ui_printf): Call parse_format_string.
4790 * remote.c (remote_state): New field breakpoint_commands.
4791 (PACKET_BreakpointCommands): New enum.
4792 (remote_breakpoint_commands_feature): New function.
4793 (remote_protocol_features): Add new BreakpointCommands entry.
4794 (remote_can_run_breakpoint_commands): New function.
4795 (remote_add_target_side_commands): New function.
4796 (remote_insert_breakpoint): Call it.
4797 (remote_insert_hw_breakpoint): Ditto.
4798 (_initialize_remote): Add new packet configuration for
4799 target-side breakpoint commands.
4800 * target.h (struct target_ops): New field
4801 to_can_run_breakpoint_commands.
4802 (target_can_run_breakpoint_commands): New macro.
4803 * target.c (update_current_target): Handle
4804 to_can_run_breakpoint_commands.
4805
2d7b58e8
JK
48062012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4807
4808 Execute -ix and -iex only after system and user gdbinit files.
4809 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4810 processing down after gdbinit files.
4811
8690e634
JK
48122012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4813
4814 Add fnmatch-gnu module.
4815 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4816 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4817 * gnulib/aclocal.m4: Regenerate.
4818 * gnulib/config.in: Regenerate.
4819 * gnulib/configure: Regenerate.
4820 * gnulib/import/dummy.c: Remove.
4821 * gnulib/import/Makefile.am: Regenerate.
4822 * gnulib/import/Makefile.in: Likewise.
4823 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4824 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4825 * gnulib/import/alloca.c: New file.
4826 * gnulib/import/alloca.in.h: Likewise.
4827 * gnulib/import/config.charset: Likewise.
4828 * gnulib/import/fnmatch.c: Likewise.
4829 * gnulib/import/fnmatch.in.h: Likewise.
4830 * gnulib/import/fnmatch_loop.c: Likewise.
4831 * gnulib/import/localcharset.c: Likewise.
4832 * gnulib/import/localcharset.h: Likewise.
4833 * gnulib/import/m4/alloca.m4: Likewise.
4834 * gnulib/import/m4/codeset.m4: Likewise.
4835 * gnulib/import/m4/configmake.m4: Likewise.
4836 * gnulib/import/m4/fcntl-o.m4: Likewise.
4837 * gnulib/import/m4/fnmatch.m4: Likewise.
4838 * gnulib/import/m4/glibc21.m4: Likewise.
4839 * gnulib/import/m4/localcharset.m4: Likewise.
4840 * gnulib/import/m4/locale-fr.m4: Likewise.
4841 * gnulib/import/m4/locale-ja.m4: Likewise.
4842 * gnulib/import/m4/locale-zh.m4: Likewise.
4843 * gnulib/import/m4/mbrtowc.m4: Likewise.
4844 * gnulib/import/m4/mbsinit.m4: Likewise.
4845 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4846 * gnulib/import/m4/mbstate_t.m4: Likewise.
4847 * gnulib/import/m4/stdbool.m4: Likewise.
4848 * gnulib/import/m4/wchar_h.m4: Likewise.
4849 * gnulib/import/m4/wctype_h.m4: Likewise.
4850 * gnulib/import/m4/wint_t.m4: Likewise.
4851 * gnulib/import/mbrtowc.c: Likewise.
4852 * gnulib/import/mbsinit.c: Likewise.
4853 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4854 * gnulib/import/mbsrtowcs-state.c: Likewise.
4855 * gnulib/import/mbsrtowcs.c: Likewise.
4856 * gnulib/import/ref-add.sin: Likewise.
4857 * gnulib/import/ref-del.sin: Likewise.
4858 * gnulib/import/stdbool.in.h: Likewise.
4859 * gnulib/import/streq.h: Likewise.
4860 * gnulib/import/strnlen1.c: Likewise.
4861 * gnulib/import/strnlen1.h: Likewise.
4862 * gnulib/import/verify.h: Likewise.
4863 * gnulib/import/wchar.in.h: Likewise.
4864 * gnulib/import/wctype.in.h: Likewise.
4865
202cbf1c
JK
48662012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4867
4868 Support shell wildcards for 'set auto-load safe-path'.
4869 * auto-load.c: Include fnmatch.h.
4870 (filename_is_in_dir): Rename to ...
4871 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4872 it. Update function comment. Rename dir_len to pattern_len. New
4873 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4874 messages. Use gdb_filename_fnmatch.
4875 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4876 pattern.
4877 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4878 * defs.h (gdb_filename_fnmatch): New declaration.
4879 * utils.c: Include fnmatch.h.
4880 (gdb_filename_fnmatch): New function.
4881
fb7b5af4
SDJ
48822012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4883
4884 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4885 `-probe' and `-probe-stap' options.
4886
72d0e2c5
YQ
48872012-07-01 Yao Qi <yao@codesourcery.com>
4888
4889 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4890 always_inserted_off, and always_inserted_enums.
4891 Change always_inserted_mode's type to 'enum auto_boolean'.
4892 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4893 callers.
4894 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4895 of add_setshow_enum_cmd.
4896 * infrun.c: Remove can_use_displaced_stepping_auto,
4897 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4898 can_use_displaced_stepping_enum.
4899 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4900 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4901 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4902 add_setshow_enum_cmd.
4903
42e7ad6c
DE
49042012-06-30 Doug Evans <dje@google.com>
4905
4906 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4907 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4908 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4909
39cf75f7
DE
49102012-06-29 Doug Evans <dje@google.com>
4911
4912 * linespec.c: #include "stack.h".
4913 (decode_line_with_current_source): Moved here from symtab.c and
4914 renamed from decode_line_spec. All callers updated.
4915 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4916 renamed from decode_line_spec_1. All callers updated.
4917 * linespec.h (decode_line_with_current_source): Move declaration here
4918 from symtab.h and renamed from decode_line_spec.
4919 (decode_line_with_last_displayed): Move declaration here from symtab.h
4920 and renamed from decode_line_spec_1.
4921 * macrocmd.c: #include "linespec.h".
4922 * symtab.c: Remove #include "linespec.h".
4923
433df2d4
DE
49242012-06-28 Doug Evans <dje@google.com>
4925
1ce1cefd
DE
4926 * dwarf2read.c (get_cu_length): New function.
4927 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4928 (create_debug_types_hash_table): Ditto.
4929 (init_cutu_and_read_dies): Ditto.
4930 (init_cutu_and_read_dies_no_follow): Ditto.
4931
3b80fe9b
DE
4932 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4933
433df2d4
DE
4934 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4935 (struct abbrev_table): Define.
4936 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4937 abbrev_table.
4938 (init_cutu_and_read_dies): Update.
4939 (abbrev_table_alloc_abbrev): New function. Replaces
4940 dwarf_alloc_abbrev. All callers updated.
4941 (abbrev_table_add_abbrev): New function.
4942 (abbrev_table_lookup_abbrev): New function. Replaces
4943 dwarf2_lookup_abbrev. All callers updated.
4944 (abbrev_table_read_table): New function. Contents moved here from
4945 dwarf2_read_abbrevs.
4946 (dwarf2_read_abbrevs): Call it.
4947 (abbrev_table_free): New function.
4948 (dwarf2_free_abbrev_table): Call it.
4949
71caed83
SS
49502012-06-28 Stan Shebs <stan@codesourcery.com>
4951
4952 * osdata.c (info_osdata_command): Filter out "Title" columns
4953 from non-MI uses.
4954 * common/linux-osdata.c (struct osdata_type): Add title field.
4955 (osdata_table): Add titles to each entry.
4956 (linux_command_xfer_osdata): Add a column for title data.
4957
37ce89eb
SS
49582012-06-28 Stan Shebs <stan@codesourcery.com>
4959
4960 Make logging work for MI.
4961 * NEWS: Mention it.
4962 * interps.h (interp_set_logging_ftype): New typedef.
4963 (struct interp_procs): New field set_logging_proc.
4964 (current_interp_set_logging): Declare.
4965 * interps.c (current_interp_set_logging): New function.
4966 * cli/cli-logging.c: Include interps.h.
4967 (set_logging_redirect): Call current_interp_set_logging.
4968 (pop_output_files): Ditto.
4969 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4970 * mi/mi-console.h (mi_console_set_raw): Declare.
4971 * mi/mi-console.c (mi_console_set_raw): New function.
4972 * mi/mi-interp.c (saved_raw_stdout): New global.
4973 (mi_set_logging): New function.
4974 (_initialize_mi_interp): Add it to interp procs.
4975
659c9f3a
DE
49762012-06-28 Doug Evans <dje@google.com>
4977
a743abeb
DE
4978 * symtab.c (lookup_symbol_aux_objfile): Use
4979 ALL_OBJFILE_PRIMARY_SYMTABS.
4980
659c9f3a
DE
4981 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4982
da2d6d3d
JK
49832012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4984
4985 * common/buffer.c: Include inttypes.h and stdint.h.
4986 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4987
e5ef252a
PA
49882012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4989 Pedro Alves <palves@redhat.com>
4990
4991 * gdbthread.h (ALL_THREADS): New macro.
4992 (thread_list): Declare.
4993 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4994 going, but instead fall through to the stepping handling.
4995 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4996 the passed in signal. Adjust debug output.
4997 (resume_callback): Rename to ...
4998 (linux_nat_resume_callback): ... this. Pass the thread's last
4999 stop signal, if in "pass" state.
5000 (linux_nat_resume): Adjust to rename.
5001 (stop_wait_callback): New assertion. Don't respawn signals;
5002 instead let the LWP remain with SIGNALLED set.
5003 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5004 * remote.c (append_pending_thread_resumptions): New.
5005 (remote_vcont_resume): Call it.
5006 * target.h (target_resume): Extend comment.
5007
1d7975eb
IS
50082012-06-28 Iain Sandoe <iain@codesourcery.com>
5009
5010 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5011
2e3cf129
DE
50122012-06-27 Doug Evans <dje@google.com>
5013
5014 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5015 Delete have_addr_base, unused. All uses updated.
5016 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5017 (dwarf2_get_pc_bounds): Add ranges_base.
5018 (dwarf2_record_block_ranges): Ditto.
5019
1bb9788d
TT
50202012-06-27 Tom Tromey <tromey@redhat.com>
5021
5022 PR macros/7961:
5023 * varobj.c (varobj_create): Update.
5024 (varobj_set_value): Update.
5025 * tracepoint.c (validate_actionline): Update.
5026 (encode_actions_1): Update.
5027 * parse.c (parse_exp_1): Add 'pc' argument.
5028 (parse_exp_in_context): Add 'pc' argument. Change how
5029 expression_context_pc is set.
5030 (parse_expression): Update.
5031 (parse_field_expression): Update.
5032 * expression.h (parse_exp_1): Update.
5033 * eval.c (parse_to_comma_and_eval): Update.
5034 * breakpoint.c (set_breakpoint_condition): Update.
5035 (update_watchpoint): Update.
5036 (init_breakpoint_sal): Update
5037 (find_condition_and_thread): Update.
5038 (watch_command_1): Update.
5039 (update_breakpoint_locations): Update.
5040 * ada-lang.c (ada_read_renaming_var_value): Update.
5041 (create_excep_cond_exprs): Update.
5042
0bc3a05c
DE
50432012-06-27 Doug Evans <dje@google.com>
5044
5045 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5046 type units.
5047
4bdcc0c1
DE
50482012-06-26 Doug Evans <dje@google.com>
5049
5050 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5051 prototype.
5052 (error_check_comp_unit_head): New arg abbrev_section. All callers
5053 updated.
5054 (read_and_check_comp_unit_head): Ditto.
5055 (read_and_check_type_unit_head): Ditto.
5056
ee0bf529
SCR
50572012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5058
5059 New attribute 'last' for gdb.Symtab_and_line.
5060 * NEWS (Python Scripting): Add entry about the new attribute.
5061 * python/py-symtab.c (salpy_get_last): New function which
5062 implements the get method for the 'last' attribute of
5063 gdb.Symtab_and_line.
5064 (sal_object_getset): Add entry for the 'last' attribute.
5065
1c658ad5
DE
50662012-06-26 Doug Evans <dje@google.com>
5067
09262596
DE
5068 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5069 (dwo_sections): Add macinfo, macro.
5070 (dwarf2_locate_dwo_sections): Watch for macro sections.
5071 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5072 All callers updated. Handle DWO files.
5073
45cfd468
DE
5074 * NEWS: Mention new options "set debug dwarf2-read" and
5075 "set debug symtab-create".
5076 * dwarf2read.c (dwarf2_read_debug): New static global.
5077 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5078 (process_queue): Ditto.
5079 (process_full_comp_unit): Ditto.
5080 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5081 * elfread.c (elf_symfile_read): Add debugging printf.
5082 * minsyms.c (install_minimal_symbols): Ditto.
5083 * psymtab.c (allocate_psymtab): Ditto.
5084 * symfile.c (allocate_symtab): Ditto.
5085 * symtab.c (symtab_create_debug): New global.
5086 (_initialize_symtab): Add new option "set debug symtab-create".
5087 * symtab.h (symtab_create_debug): Declare.
5088
1c658ad5
DE
5089 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5090 (lookup_dwo_type_unit): Ditto.
5091
6fea9e18
L
50922012-06-26 Roland McGrath <roland@hack.frob.com>
5093 H.J. Lu <hongjiu.lu@intel.com>
5094
5095 * amd64-linux-nat.c: Include <sys/user.h>.
5096 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5097 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5098 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5099
5100 * configure.ac: Check if the fs_base and gs_base members of
5101 `struct user_regs_struct' exist.
5102 * config.in: Regenerated.
5103 * configure: Likewise.
5104
adb4fe3b
ME
51052012-06-25 Michael Eager <eager@eagercon.com>
5106
5107 PR python/14291
f782ad9b 5108 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 5109
fc51cce1
MGD
51102012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5111
5112 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5113 register as a stack alignment in ARM mode.
5114
40a73391
JK
51152012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5116
5117 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5118 * gnulib/config.in: Regenerate.
5119 * gnulib/configure: Likewise.
5120 * gnulib/import/m4/extensions.m4: Update it.
5121 * gnulib/import/m4/gnulib-common.m4: Likewise.
5122 * gnulib/import/m4/memmem.m4: Likewise.
5123 * gnulib/import/m4/mmap-anon.m4: Likewise.
5124 * gnulib/import/m4/multiarch.m4: Likewise.
5125 * gnulib/import/stdint.in.h: Likewise.
5126
972daa01
YQ
51272012-06-24 Yao Qi <yao@codesourcery.com>
5128
5129 * corefile.c (write_memory_with_notification): New.
5130 * gdbcore.h: Declare write_memory_with_notification.
5131 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5132 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5133 * valops.c (value_assign): Likewise.
5134 * python/py-inferior.c (infpy_write_memory): Call
5135 'write_memory_with_notification'.
5136
8d6e0714
JK
51372012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5138
5139 * cc-with-index.sh: Use also -ex "set auto-load no".
5140
156942c7
DE
51412012-06-23 Doug Evans <dje@google.com>
5142
5143 PR 14125
5144 * NEWS: Document additions to .gdb_index.
5145 * dwarf2read.c: #include "gdb/gdb-index.h".
5146 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5147 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5148 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5149 (dwarf2_read_index): Recognize version 7.
5150 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5151 block_kind, domain): All callers updated.
5152 (dw2_find_symbol_file): Handle new index CU values.
5153 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5154 (add_index_entry): New args is_static, kind. All callers updated.
5155 (offset_type_compare, uniquify_cu_indices): New functions
5156 (symbol_kind): New function.
5157 (write_psymtabs_to_index): Remove duplicate CU values.
5158 (write_psymtabs_to_index): Write .gdb_index version 7.
5159
352b3eda
JB
51602012-06-22 Joel Brobecker <brobecker@adacore.com>
5161
5162 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5163 * configure: Regenerate.
5164
2678e2af
YQ
51652012-06-20 Yao Qi <yao@codesourcery.com>
5166
5167 * python/py-inferior.c: Update comments of infpy_read_memory
5168 and infpy_write_memory.
5169
95c391b6
TT
51702012-06-19 Tom Tromey <tromey@redhat.com>
5171
5172 PR exp/9514:
5173 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5174 (push_type_address_space): Remove.
5175 * parse.c (insert_into_type_stack): New function.
5176 (insert_type): Likewise.
5177 (insert_type_address_space): Rename from push_type_address_space.
5178 Insert tp_space_identifier.
5179 * c-exp.y (ptr_operator): New production.
5180 (abs_decl): Use ptr_operator.
5181 (space_identifier): Call insert_type_address_space.
5182 (ptype): Don't use const_or_volatile_or_space_identifier.
5183 (const_or_volatile_noopt): Call insert_type.
5184 (conversion_type_id, conversion_declarator): New productions.
5185 (operator): Use conversion_type_id.
5186
6ac9ef80
DE
51872012-06-18 Doug Evans <dje@google.com>
5188
422d65e7
DE
5189 * symtab.h (minimal_symbol): New member created_by_gdb.
5190 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5191 created by gdb.
5192 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5193 (search_symbols): Call it instead of lookup_symbol.
5194 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5195
49f6c839
DE
5196 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5197 Adjust address for DW_OP_GNU_addr_index.
5198 * dwarf2expr.h (dwarf_expr_context): Update comment.
5199 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5200 all callers updated. Handle TLS vars described with
5201 DW_OP_GNU_const_index.
5202 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5203 and DW_OP_GNU_const_index.
5204 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5205
6ac9ef80
DE
5206 * block.c (find_block_in_blockvector): Make explicit the fact that we
5207 ignore GLOBAL_BLOCK.
5208
4cd18215
TT
52092012-06-18 Tom Tromey <tromey@redhat.com>
5210
5211 * c-exp.y (operator): Remove trailing space after "delete" and
5212 "delete[]".
5213
a9b8d892
JK
52142012-06-18 Mark Kettenis <kettenis@gnu.org>
5215 Jan Kratochvil <jan.kratochvil@redhat.com>
5216
5217 Switch i386 and derived targets to ON_STACK.
5218 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5219 (amd64_dicos_init_abi): Remove its installment.
5220 * dicos-tdep.c (dicos_init_abi): Remove the
5221 set_gdbarch_call_dummy_location call. Update the comment here.
5222 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5223 (i386_dicos_init_abi): Remove its installment.
5224 * i386-tdep.c (i386_push_dummy_code): New function.
5225 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5226 i386_push_dummy_code.
5227
e2e4d78b
JK
52282012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5229
5230 Remove stale dummy frames.
5231 * breakpoint.c: Include dummy-frame.h.
5232 (longjmp_breakpoint_ops): New variable.
5233 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5234 bp_longjmp_call_dummy.
5235 (bpstat_what, bptype_string, print_one_breakpoint_location)
5236 (init_bp_location): Support bp_longjmp_call_dummy.
5237 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5238 (set_longjmp_breakpoint_for_call_dummy)
5239 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5240 functions.
5241 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5242 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5243 FIXME comment and extend the other comment for bp_call_dummy.
5244 (set_longjmp_breakpoint_for_call_dummy)
5245 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5246 * dummy-frame.c: Include gdbthread.h.
5247 (pop_dummy_frame_bpt): New function.
5248 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5249 (dummy_frame_discard): New function.
5250 (cleanup_dummy_frames): Update the comment about longjmps.
5251 * dummy-frame.h (dummy_frame_discard): New declaration.
5252 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5253 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5254 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5255 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5256 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5257 keep_going if IS_LONGJMP and there is no other reason to stop.
5258
09d5912c
TT
52592012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5260
5261 * remote-sim.c (sim_command_completer): Initialize
5262 variable 'result'.
5263
1788b2d3
JK
52642012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5265
5266 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5267 * dwarf2loc.c (call_site_parameter_matches): Support
5268 CALL_SITE_PARAMETER_PARAM_OFFSET.
5269 (needs_dwarf_reg_entry_value): Push stub value.
5270 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5271 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5272 * gdbtypes.h (enum call_site_parameter_kind): New item
5273 CALL_SITE_PARAMETER_PARAM_OFFSET.
5274 (struct call_site.parameter.u): New field param_offset.
5275
24c5c679
JK
52762012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5277
5278 Code cleanup: Generalize call_site.parameter key.
5279 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5280 variable dwarf_reg. New variable kind_u. Update parameters to
5281 push_dwarf_reg_entry_value.
5282 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5283 * dwarf2expr.h (enum call_site_parameter_kind)
5284 (union call_site_parameter_u): Forward declarations.
5285 (struct dwarf_expr_context_funcs): Update parameters and their
5286 description for push_dwarf_reg_entry_value.
5287 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5288 * dwarf2loc.c (call_site_parameter_matches): New function.
5289 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5290 description. Use call_site_parameter_matches.
5291 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5292 Update parameters and their description.
5293 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5294 New variable kind_u. Adjust the caller for updated parameters.
5295 (needs_dwarf_reg_entry_value): Update parameters.
5296 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5297 instead of attr. Update for the changed fields of struct
5298 call_site_parameter.
5299 * gdbtypes.h: Include dwarf2expr.h.
5300 (enum call_site_parameter_kind): New.
5301 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5302 fb_offset into new union u.
5303
ac142d96
L
53042012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5305
5306 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5307 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5308 for x32.
5309
ba224c70
L
53102012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5311
5312 * amd64-linux-nat.c (compat_x32_clock_t): New.
5313 (compat_x32_siginfo_t): Likewise.
5314 (compat_x32_siginfo_from_siginfo): Likewise.
5315 (siginfo_from_compat_x32_siginfo): Likewise.
5316 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5317 and siginfo_from_compat_x32_siginfo for x32.
5318
7ecbc825
HZ
53192012-06-15 Hui Zhu <hui_zhu@mentor.com>
5320
5321 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5322
233dfcf0
L
53232012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5324
5325 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5326 instead of gdbarch_ptr_bit.
5327 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5328 (amd64_supply_native_gregset): Likewise.
5329 (amd64_collect_native_gregset): Likewise.
5330 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5331 (amd64_supply_xsave): Likewise.
5332 (amd64_collect_fxsave): Likewise.
5333 (amd64_collect_xsave): Likewise.
5334
6da38f42
L
53352012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5336
5337 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5338 (amd64_linux_read_description): Check DS segment register for
5339 x32 process.
5340
663b969e
TT
53412012-06-15 Tom Tromey <tromey@redhat.com>
5342
5343 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5344 init_cutu_and_read_dies.
5345
d6f05027
IS
53462012-06-15 Iain Sandoe <iain@codesourcery.com>
5347
5348 * MAINTAINERS (Write After Approval): Add myself to the list.
5349
6598ed07
TT
53502012-06-15 Tom Tromey <tromey@redhat.com>
5351
5352 * valops.c (value_find_oload_method_list): Now static.
5353 * value.h (value_find_oload_method_list): Don't declare.
5354
2b214ea6
TT
53552012-06-15 Tom Tromey <tromey@redhat.com>
5356
5357 * valops.c (find_overload_match): Use value_ind.
5358
a210c238
MR
53592012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5360
5361 * infrun.c (handle_inferior_event): Correct indentation.
5362
3771a44c
DE
53632012-06-14 Doug Evans <dje@google.com>
5364
5365 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5366 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5367 All uses updated.
5368 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5369 updated. Handle DEBUG_LOC_START_LENGTH.
5370 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5371 (loclist_describe_location): Ditto.
5372
1c5a993e
MR
53732012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5374
5375 PR backtrace/13866
5376 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5377 after hiding inline functions.
5378
0b155465
JB
53792012-06-13 Joel Brobecker <brobecker@adacore.com>
5380
5381 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5382 _initialize_inf_ttrace.
5383
45717bac
JB
53842012-06-13 Joel Brobecker <brobecker@adacore.com>
5385
5386 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5387 _initialize_hppa_hpux_nat.
5388
34370865
JB
53892012-06-13 Joel Brobecker <brobecker@adacore.com>
5390
5391 * remote-sim.c (sim_command_completer): Change type of return
5392 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5393
284c5a60
MK
53942012-06-13 Mark Kettenis <kettenis@gnu.org>
5395 Jan Kratochvil <jan.kratochvil@redhat.com>
5396
5397 PR tdep/14222
5398 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5399 stack on a 16-byte boundary.
5400
2535757a
TT
54012012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5402
5403 * jit.c (finalize_symtab): Set function's return type to 'void' by
5404 default.
5405
fff4548b
MK
54062012-06-13 Mark Kettenis <kettenis@gnu.org>
5407 H.J. Lu <hongjiu.lu@intel.com>
5408
5a83521a
MK
5409 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5410 Move bits common to both the classic LP64 and the new x32 ILP32
5411 ABI here.
5412 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5413 (amd64_x32_linux_init_abi): New function.
5414 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5415 subtype.
5416
fff4548b
MK
5417 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5418 * i386-tdep.c (i386_pseudo_register_name): Make public.
5419 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5420 * amd64-tdep.c (amd64_dword_names): Add "eip".
5421 (amd64_x32_pseudo_register_type): New function
5422 (amd64_x32_init_abi): New function.
5423
dd80ea3c
JK
54242012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5425
5426 PR build/14003
5427 * inferior.h (struct inferior_suspend_state): Comment out.
5428 (struct inferior): Comment out the field suspend.
5429 * infrun.c (struct infcall_suspend_state): Comment out the field
5430 inferior_suspend.
5431 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5432 out its assignment.
5433
50af5481
JK
54342012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5435
5436 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5437 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5438 function comment. Return ERROR for unresolved cases. Implement
5439 returning proper NAME.
5440 (yylex): Accept also NAME from classify_inner_name.
5441 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5442 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5443 LOC_TYPEDEF type.
5444 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5445
d55637df
TT
54462012-06-13 Tom Tromey <tromey@redhat.com>
5447
5448 * breakpoint.c (condition_completer): New function.
5449 (_initialize_breakpoint): Use it.
5450 * value.c (complete_internalvar): New function.
5451 * value.h (complete_internalvar): Declare.
5452
49c4e619
TT
54532012-06-13 Tom Tromey <tromey@redhat.com>
5454
5455 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5456 * breakpoint.c (catch_syscall_completer): Return a VEC.
5457 * cli/cli-cmds.c (complete_command): Update.
5458 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5459 (complete_on_enum): Likewise.
5460 * command.h: Include gdb_vecs.h.
5461 (completer_ftype): Change return type.
5462 (complete_on_cmdlist, complete_on_enum): Likewise.
5463 * completer.c (noop_completer, filename_completer)
5464 (location_completer): Return a VEC.
5465 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5466 to a VEC.
5467 (expression_completer, complete_line_internal, complete_line)
5468 (command_completer): Return a VEC.
5469 (gdb_completion_word_break_characters, line_completion_function):
5470 Update.
5471 * completer.h: Include gdb_vecs.h.
5472 (complete_line, noop_completer, filename_completer)
5473 (expression_completer, location_completer, command_completer):
5474 Update.
5475 * f-lang.c (f_word_break_characters): Return a VEC.
5476 * interps.c (interpreter_completer): Return a VEC.
5477 * language.h (struct language_defn)
5478 <la_make_symbol_completion_list>: Return a VEC.
5479 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5480 * symtab.c (free_completion_list): Take a VEC.
5481 (return_val_size, return_val_index): Remove.
5482 (return_val): Now a VEC.
5483 (completion_list_add_name): Update.
5484 (default_make_symbol_completion_list_break_on)
5485 (default_make_symbol_completion_list, make_symbol_completion_list)
5486 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5487 Return a VEC.
5488 (add_filename_to_list): Update.
5489 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5490 <list>: Now a VEC.
5491 (maybe_add_partial_symtab_filename): Update.
5492 (make_source_files_completion_list): Return a VEC.
5493 * symtab.h (default_make_symbol_completion_list_break_on)
5494 (default_make_symbol_completion_list, make_symbol_completion_list)
5495 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5496 (make_source_files_completion_list): Update.
5497
625e8578
TT
54982012-06-13 Tom Tromey <tromey@redhat.com>
5499
5500 * breakpoint.c (add_catch_command): Use completer_ftype.
5501 * breakpoint.h: Include command.h.
5502 (add_catch_command): Use completer_ftype.
5503 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5504 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5505 Use completer_ftype.
5506 * command.h (completer_ftype): New typedef.
5507 (set_cmd_completer): Use it.
5508 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5509 completer_ftype.
5510
5eb3b062
PA
55112012-06-13 Pedro Alves <palves@redhat.com>
5512
5513 Partial revert of previous change.
5514
5515 * serial.c (scb_base): New global.
5516 (serial_for_fd): New.
5517 (serial_open, serial_fdopen_ops): Link new serial in open serials
5518 chain.
5519 (do_serial_close): Unlink serial from the open serials chain.
5520
8b3ee56d
PA
55212012-06-12 Pedro Alves <palves@redhat.com>
5522
5523 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5524 threads here.
5525 (prepare_for_detach): No longer context switch here in non-stop
5526 mode.
5527 (fetch_inferior_event): Ditto.
5528 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5529 to the event thread before removing breakpoints. Switch to the
5530 event thread before inserting breakpoints and resuming.
5531 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5532 event thread before resuming.
5533 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5534 Switch to the event thread before removing breakpoints.
5535
5d60742e
EZ
55362012-06-12 Eli Zaretskii <eliz@gnu.org>
5537
5538 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5539 special characters correctly for the Windows shells. See
5540 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5541 report.
5542 [!__MINGW32__]: Remove extra double quote character from special
5543 characters.
5544
a6feecf7
SS
55452012-06-11 Stan Shebs <stan@codesourcery.com>
5546
5547 * ui-out.h: Remove #if 0 declarations.
5548 * ui-out.c: Remove #if 0 functions.
5549
ddefb60f
PA
55502012-06-11 Pedro Alves <palves@redhat.com>
5551
5552 * ser-base.c (run_async_handler_and_reschedule): New.
5553 (fd_event, push_event): Use it.
5554 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5555 reference count to 1.
5556 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5557 instead of xfree.
5558 (serial_is_open, serial_ref, serial_unref): New.
5559 * serial.h (serial_open): Adjust comment.
5560 (serial_is_open): Declare.
5561 (serial_close): Adjust comment.
5562 (serial_ref, serial_unref) Declare.
5563 (struct serial): New field 'refcnt'.
5564
d5ad6aa5
PA
55652012-06-11 Pedro Alves <palves@redhat.com>
5566
5567 Remove #if 0'd "connect" command, and unnecessary associated
5568 refcounting and serial reuse bits.
5569
5570 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5571 * serial.c (last_serial_opened): Delete.
5572 (scb_base): Delete.
5573 (serial_open): Adjust.
5574 (serial_for_fd): Delete.
5575 (serial_fdopen_ops, do_serial_close): Adjust.
5576 (serial_fdopen_ops): Adjust.
5577
318aa544
PA
55782012-06-11 Pedro Alves <palves@redhat.com>
5579
5580 * serial.c (do_serial_close): Remove early return when SCB is
5581 null.
5582
07261596
TT
55832012-06-11 Tom Tromey <tromey@redhat.com>
5584
5585 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5586
cc80f267
JK
55872012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5588
5589 Fix regression by the "ambiguous linespec" series.
5590 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5591 get_last_displayed_symtab and get_last_displayed_line and depending
5592 on CURSAL.
5593
356d9f9d
TT
55942012-06-11 Tom Tromey <tromey@redhat.com>
5595
5596 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5597 (dw2_find_symbol_file): Use it.
5598
232b8704
ME
55992012-06-11 Michael Eager <eager@eagercon.com>
5600
5601 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5602 * mips-linux-tdep.h (mips_signals): New
5603
e81a37f7
TT
56042012-06-11 Tom Tromey <tromey@redhat.com>
5605
5606 * infrun.c (handle_inferior_event)
5607 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5608 breakpoint.
5609 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5610 exception logic in all cases. Update comments.
5611 (insert_longjmp_resume_breakpoint): Set the exception resume
5612 breakpoint.
5613
2e81047f
MR
56142012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5615
5616 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5617
4e32eda7
SCR
56182012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5619
5620 * valarith.c (binop_types_user_defined_p): Fix a typo.
5621
18648a37 56222012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5623 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5624
5625 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5626 * arch-utils.h: Declare.
5627 * gdbarch.sh: Add return_in_first_hidden_param_p.
5628 * gdbarch.c, gdbarch.h: Regenerated.
5629 * infcall.c (call_function_by_hand): Call
5630 gdbarch_return_in_first_hidden_param_p instead of
5631 language_pass_by_reference.
5632
5633 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5634 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5635 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5636 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5637 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5638 `cplus_return_struct_by_reference'.
5639 (tic6x_return_value): Handle language cplusplus.
5640 (tic6x_return_in_first_hidden_param_p): New.
5641 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5642
034e5797
DE
56432012-06-07 Doug Evans <dje@google.com>
5644
5645 * dwarf2read.c (dwarf2_cu): Add comment.
5646
6a00aa1e
MR
56472012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5648
5649 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5650 variable.
5651 (mips_eabi_push_dummy_call): Likewise.
5652 (mips_n32n64_push_dummy_call): Likewise.
5653 (mips_o32_push_dummy_call): Likewise.
5654 (mips_o64_push_dummy_call): Likewise.
5655
eaa05d59
MR
56562012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5657
5658 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5659
de13fcf2
MR
56602012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5661
5662 * mips-tdep.c (mips_pseudo_register_type): Use
5663 mips_float_register_p.
5664
c3a01a22
PA
56652012-06-06 Pedro Alves <palves@redhat.com>
5666
5667 * infrun.c (handle_inferior_event): Remove calls to
5668 reinit_frame_cache that follow a context_switch call.
5669
d25f45d9
PA
56702012-06-06 Pedro Alves <palves@redhat.com>
5671
5672 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5673 context_switch and remove stale comment.
5674
359f5fe6
PA
56752012-06-06 Pedro Alves <palves@redhat.com>
5676
5677 * infrun.c (struct execution_control_state): Remove
5678 `new_thread_event' field.
5679 (handle_inferior_event): Simplify new threads handling; don't
5680 resume the inferior if we find a new thread.
5681
2d4c29c5
TS
56822012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5683
5684 * NEWS: Document the deprecation of SH's 'regs' command.
5685 * inferior.h (all_registers_info): Add function declaration.
5686 * sh-tdep.c (sh_show_regs): Remove variable.
5687 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5688 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5689 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5690 (sh_show_regs_command): Remove functions.
5691 (sh_gdbarch_init): Don't set sh_show_regs.
5692 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5693 'info all-registers'.
5694 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5695 (sh64_show_regs): Remove functions.
5696 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5697
f5f1cdb6
JK
56982012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5699
5700 * configure.ac: Move development=true below AC_INIT.
5701 * configure: Regenerate.
5702
bf6309af
SS
57032012-06-05 Stan Shebs <stan@codesourcery.com>
5704
5705 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5706 gdb_stdout.
5707
45aa4659
JK
57082012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5709
5710 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5711 argument as ssize_t.
5712 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5713 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5714 * target.c (target_read_stack, target_write_memory)
5715 (target_write_raw_memory): Likewise.
5716 * target.h (target_read_stack, target_write_memory)
5717 (target_write_raw_memory): Likewise.
5718
1b162304
JK
57192012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5720
5721 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5722 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5723 * target.c (target_read_memory): Change LEN to ssize_t.
5724 * target.h (target_read_memory): Change LEN to ssize_t.
5725
8556afb4
PA
57262012-06-05 Pedro Alves <palves@redhat.com>
5727
5728 PR backtrace/13866
5729
5730 * breakpoint.c (until_break_command): Only fetch the selected
5731 frame after decode_line_1.
5732
fb139f32
PA
57332012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5734
5735 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5736 event breakpoint at _start, __start or main if a program
5737 interpreter is not found.
5738
a8e1bb34
JB
57392012-06-05 Joel Brobecker <brobecker@adacore.com>
5740
5741 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5742 Add declaration.
5743 * windows-tdep.c: #include "objfiles.h".
5744 (windows_iterate_over_objfiles_in_search_order): New function.
5745 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5746 iterate_over_objfiles_in_search_order gdbarch method to
5747 windows_iterate_over_objfiles_in_search_order.
5748 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5749
19630284
JB
57502012-06-05 Joel Brobecker <brobecker@adacore.com>
5751
5752 * gdbarch.sh: Add generation of
5753 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5754 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5755 (iterate_over_objfiles_in_search_order): New gdbarch method.
5756 * gdbarch.h, gdbarch.c: Regenerate.
5757 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5758 Add declaration.
5759 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5760 New function.
5761 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5762 out of lookup_symbol_aux_symtabs.
5763 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5764 call to lookup_symbol_aux_objfile.
5765 (struct global_sym_lookup_data): New type.
5766 (lookup_symbol_global_iterator_cb): New function.
5767 (lookup_symbol_global): Search for symbol using
5768 gdbarch_iterate_over_objfiles_in_search_order and
5769 lookup_symbol_global_iterator_cb.
5770 * findvar.c (struct minsym_lookup_data): New type.
5771 (minsym_lookup_iterator_cb): New function.
5772 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5773 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5774 and minsym_lookup_iterator_cb.
5775
67ff19f7
JB
57762012-06-05 Joel Brobecker <brobecker@adacore.com>
5777
5778 Revert the following patch:
5779 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5780 try locating the symbol in the symbol's own objfile first, before
5781 extending the search to all objfiles.
5782 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5783 out of lookup_symbol_aux_symtabs.
5784 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5785 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5786 Do not search EXCLUDE_OBJFILE.
5787 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5788 (lookup_symbol_global): Search for matches in the block's objfile
5789 first, before searching all other objfiles.
5790
ccab2054
JB
57912012-06-05 Joel Brobecker <brobecker@adacore.com>
5792
5793 * breakpoint.c (find_condition_and_thread): Stop parsing
5794 as soon as the first invalid keyword is found.
5795
e23d4a9c
JB
57962012-06-05 Joel Brobecker <brobecker@adacore.com>
5797
5798 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5799
70160166
JB
58002012-06-05 Joel Brobecker <brobecker@adacore.com>
5801
5802 * config/djgpp/djcheck.sh: Add copyright header.
5803
399501a5
JB
58042012-06-05 Joel Brobecker <brobecker@adacore.com>
5805
5806 * copyright.py (update_files, main): Fix path to update-copyright
5807 script.
5808
3770a159
JB
58092012-06-05 Joel Brobecker <brobecker@adacore.com>
5810
5811 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5812 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5813 for which a reminder to update by hand is printed.
5814
4aad0dfc
DE
58152012-06-04 Doug Evans <dje@google.com>
5816
5817 * buildsym.c (make_blockvector): Add comment.
5818
1f8cf220
PA
58192012-06-04 Pedro Alves <palves@redhat.com>
5820
5821 * arch-utils.c (default_gdb_signal_from_target): Delete.
5822 * arch-utils.h (default_gdb_signal_from_target): Delete.
5823 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5824 gdbarch_gdb_signal_from_target_p.
5825 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5826 predicate).
5827 * gdbarch.h: Regenerate.
5828 * gdbarch.c: Regenerate.
5829
86b49880
PA
58302012-06-04 Pedro Alves <palves@redhat.com>
5831
5832 * gdbarch.sh (gdb_signal_from_target): Mention that the
5833 implementation of the method must be host independent.
5834 * gdbarch.h: Regenerate.
5835
fe78531d
JK
58362012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5837
5838 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5839 parameters.
5840 (target_read_memory_bfd): New function.
5841 (symbol_file_add_from_memory): Use it.
5842
d790cf0a
DE
58432012-06-03 Doug Evans <dje@google.com>
5844
78e5175a
DE
5845 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5846 of primary symtab.
5847 (basic_lookup_transparent_type): Ditto.
5848
d790cf0a
DE
5849 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5850 (ALL_PRIMARY_SYMTABS): Use it.
5851 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5852 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5853 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5854 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5855 (basic_lookup_transparent_type): Ditto.
5856
c6e5ee5e
SDJ
58572012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5858
5859 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5860 it to optimize resolution of demangled name.
5861
a68ffae9
JK
58622012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5863
5864 * configure.ac (development): Define new variable.
5865 Call AC_CHECK_LIB for mcheck if $development.
5866 (ERROR_ON_WARNING): Enable it by default only if $development.
5867 * config.in: Regenerate.
5868 * configure: Regenerate.
5869
5299c1c4
JK
58702012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5871
5872 * target.c (target_read_memory): Make LEN argument as size_t.
5873 * target.h (target_read_memory): Likewise.
5874
58752012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
5876
5877 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5878
0c56f59b
EBM
58792012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5880
5881 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5882 BookE interface for PowerPC server processors if not available
5883 in the Linux Kernel.
5884
71bdabee
KS
58852012-05-31 Keith Seitz <keiths@redhat.com>
5886
5887 * linespec.c (decode_objc): Add cleanup to free
5888 INFO.FILE_SYMTABS.
5889 (find_linespec_symbols): Add cleanup to free CLASSES.
5890 * symfile.c (find_separate_debug_file_by_debuglink): Add
5891 cleanup to free DEBUGLINK.
5892 * ui-out.c (clear_header_list): No need to check if
5893 HEADER_NEXT.COLHDR is NULL.
5894 Free HEADER_NEXT.COL_NAME.
5895
acbd605d
MGD
58962012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5897
5898 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5899 warning.
5900
65662cde
PA
59012012-05-30 Jeff Kenton <jkenton@tilera.com>
5902
5903 * configure.host (gdb_host_cpu): Handle tilegx*.
5904 (gdb_host): Handle tilegx-*-linux*.
5905 * tilegx-linux-nat.c: New file.
5906 * config/tilegx/linux.mh: New file.
5907
ade64f0e
PA
59082012-05-30 Jeff Kenton <jkenton@tilera.com>
5909
5910 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5911 tilegx-linux-tdep.o.
5912 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5913 tilegx-linux-tdep.c.
5914 * configure.tgt: Handle tilegx-*-linux*.
5915 * tilegx-tdep.h: New file.
5916 * tilegx-tdep.c: New file.
5917 * tilegx-linux-tdep.c: New file.
5918 * regformats/reg-tilegx.dat: New file.
5919
bb08bdbd
EBM
59202012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5921
5922 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5923 accounting of hw watchpoints on ppc.
5924
ebd86fb5
TJB
59252012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5926
5927 * source.c (openp): Expand tilde in path entries.
5928
0a0edcd5
DE
59292012-05-29 Doug Evans <dje@google.com>
5930
98cc87bd
DE
5931 * buildsym.c (block_compar): Fix comment.
5932 (end_symtab): Fix and clarify some comments.
5933
0a0edcd5
DE
5934 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5935 cleanup_undefined_types.
5936 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5937 All callers updated.
5938
6f0c7050
TT
59392012-05-29 Tom Tromey <tromey@redhat.com>
5940
5941 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5942 fails.
5943 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5944 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5945 fails.
5946 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5947 fails.
5948
ec95993c
TG
59492012-05-29 Tristan Gingold <gingold@adacore.com>
5950
5951 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5952 (struct darwin_info): ... New struct.
5953 (solib_darwin_pspace_data): New variable.
5954 (darwin_pspace_data_cleanup): New function.
5955 (get_darwin_info): Likewise.
5956 (darwin_dyld_version_ok, darwin_load_image_infos)
5957 (darwin_solib_get_all_image_info_addr_at_init)
5958 (darwin_solib_read_all_image_info_addr): Add info argument.
5959 Adjust code.
5960 (darwin_current_sos): Use per pspace structure.
5961 (darwin_solib_create_inferior_hook): Likewise.
5962 (darwin_clear_solib): Likewise.
5963 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5964
ae25568b
PA
59652012-05-28 Pedro Alves <palves@redhat.com>
5966
5967 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5968 block that uses them. Clear ecss before handling each event.
5969
0c5bf5a9
JK
59702012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5971
5972 * solib-svr4.c (svr4_current_sos): New comment on
5973 svr4_current_sos_via_xfer_libraries fall back.
5974
bfb05775
JK
59752012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5976
5977 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5978 it as a fallback for TYPE_IS_OPAQUE.
5979 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5980 symbols for lookup_symbol.
5981
685b1105
JK
59822012-05-24 John Steele Scott <toojays@toojays.net>
5983
5984 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5985 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5986 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5987 (check_producer): ... this new function, which also checks for ICC
5988 and caches the result.
5989 (producer_is_icc): New function.
5990 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5991 producer was ICC.
5992
22203bbf
PA
59932012-05-24 Pedro Alves <palves@redhat.com>
5994
5995 PR gdb/7205
5996
5997 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5998 (default_gdb_signal_to_target): ... this. Add comment.
5999 (default_gdb_signal_from_host): Rename to ...
6000 (default_gdb_signal_from_target): ... this. Add comment.
6001 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6002 (default_gdb_signal_to_target): ... this.
6003 (default_gdb_signal_from_host): Rename to ...
6004 (default_gdb_signal_from_target): ... this.
6005 * corelow.c (core_open): Adjust to naming change. Replace comment.
6006 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6007 (gdb_signal_from_target): ... this. Adjust to
6008 default_gdb_signal_from_host naming change. Extend comment.
6009 (gdb_signal_to_host): Rename to ...
6010 (gdb_signal_to_target): ... this. Adjust to
6011 default_gdb_signal_to_host naming change.
6012 * gdbarch.h, gdbarch.c: Renegerate.
6013
a493e3e2
PA
60142012-05-24 Pedro Alves <palves@redhat.com>
6015
6016 PR gdb/7205
6017
f782ad9b 6018 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 6019
2ea28649
PA
60202012-05-24 Pedro Alves <palves@redhat.com>
6021
6022 PR gdb/7205
6023
6024 Replace target_signal with gdb_signal throughout.
6025
b09846a9
PA
60262012-05-24 Pedro Alves <palves@redhat.com>
6027
6028 PR tui/14159
6029
6030 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6031 string, instead of reusing the va_list argument.
6032
e77c107e
TT
60332012-05-24 Tom Tromey <tromey@redhat.com>
6034
6035 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6036 Remove.
6037
9fccedf7
DE
60382012-05-23 Doug Evans <dje@google.com>
6039
d50bd42b
DE
6040 * symtab.c (search_symbols): Formatting fixes.
6041 (print_symbol_info): Formatting fixes.
6042
9fccedf7
DE
6043 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6044 int64_t change to leb128 API.
6045 (read_encoded_value, decode_frame_entry_1): Ditto.
6046 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6047 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6048 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6049 (execute_stack_op): Ditto.
6050 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6051 (safe_read_uleb128, safe_read_sleb128): Ditto.
6052 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6053 (dwarf2_compile_expr_to_ax): Ditto.
6054 (locexpr_describe_location_piece): Ditto.
6055 (disassemble_dwarf_expression): Ditto.
6056 (locexpr_describe_location_1): Ditto.
6057
f3e0e960
SS
60582012-05-23 Stan Shebs <stan@codesourcery.com>
6059 Kwok Cheung Yeung <kcy@codesourcery.com>
6060
6061 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6062 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6063 (mi-cmd-info.o): New rule.
6064 * osdata.h (info_osdata_command): New declaration.
6065 * osdata.c (info_osdata_command): Change to non-static.
6066 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6067 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6068 * mi/mi-cmd-info.c: New file.
6069
c51fe631
DE
60702012-05-23 Doug Evans <dje@google.com>
6071
71cddcc1
DE
6072 * symtab.c (search_symbols): Pass NULL for file_matcher to
6073 expand_symtabs_matching if there are no files to match.
6074
c51fe631
DE
6075 * gdbtypes.c (lookup_typename): Simplify.
6076
a79378d4
PA
60772012-05-23 Pedro Alves <palves@redhat.com>
6078
6079 * arch-utils.h (default_target_signal_to_host): Delete.
6080 * arch-utils.c (default_target_signal_to_host): Delete.
6081 * gdbarch.sh (target_signal_to_host): Remove.
6082 * gdbarch.h, gdbarch.c: Regenerate.
6083
f664829e
DE
60842012-05-22 Doug Evans <dje@google.com>
6085
6086 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6087 "const gdb_byte *".
6088 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6089 (execute_cfa_program): Update to match API of leb128 functions.
6090 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6091 "const gdb_byte *".
6092 (read_unsigned_leb128, read_signed_leb128): Delete.
6093 (read_initial_length): Change type of buf argument to
6094 "const gdb_byte *".
6095 (read_encoded_value): Update to match API of leb128 functions.
6096 (decode_frame_entry): Change result to "const gdb_byte *", and
6097 similarly for "start" parameter.
6098 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6099 (dwarf2_build_frame_info): Change local frame_ptr to
6100 "const gdb_byte *".
6101 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6102 read_uleb128, read_sleb128. All callers updated.
6103 (safe_skip_leb128): New function.
6104 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6105 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6106 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6107 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6108 read_uleb128, read_sleb128.
6109 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6110 (execute_stack_op): Update to match API of leb128 functions.
6111 * dwarf2expr.h: #include "leb128.h".
6112 (read_uleb128, read_sleb128): Delete.
6113 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6114 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6115 * dwarf2loc.c (debug_loc_kind): New enum.
6116 (decode_debug_loc_addresses): New function.
6117 (decode_debug_loc_dwo_addresses): New function.
6118 (dwarf2_find_location_expression): Rewrite.
6119 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6120 (locexpr_describe_location_piece): Ditto.
6121 (disassemble_dwarf_expression): Ditto.
6122 (locexpr_describe_location_1): Ditto.
6123 (loclist_describe_location): Rewrite.
6124 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6125 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6126 (dwarf2_section_buffer_overflow_complaint): Renamed from
6127 dwarf2_macros_too_long_complaint. All callers updated.
6128 (skip_leb128): Delete.
6129 (init_cu_die_reader): Initialize reader->buffer_end.
6130 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6131 (skip_form_bytes): New arg buffer_end. All callers updated.
6132 Replace call to skip_leb128 with gdb_skip_leb128.
6133 (skip_unknown_opcode): New arg mac_end. All callers updated.
6134 (fill_in_loclist_baton): Initialize baton->from_dwo.
6135
837a1b32
MR
61362012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6137
6138 * mips-linux-nat.c (mips_linux_read_description): Use a more
6139 verbose error message.
6140
d0e64392
MR
61412012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6142
6143 * NEWS: Add MIPS/Linux DSP support.
6144 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6145 (SIGCONTEXT_DSPCTL): New macro.
6146 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6147 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6148 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6149 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6150 (N64_SIGCONTEXT_HI3): Likewise.
6151 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6152 (N64_SIGCONTEXT_LO3): Likewise.
6153 (N64_SIGCONTEXT_DSPCTL): Likewise.
6154 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6155 (mips_linux_o32_sigframe_init): Handle DSP registers.
6156 (mips_linux_n32n64_sigframe_init): Likewise.
6157
8bea7ed1
PM
61582012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6159
6160 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6161 call to abort.
6162
dab06dbe
PA
61632012-05-22 Pedro Alves <palves@redhat.com>
6164
6165 * target.h (store_waitstatus): Move declaration ...
6166 * inf-child.h (store_waitstatus): ... here.
6167 * target.c: Move inclusion of gdb_wait.h, and ...
6168 (store_waitstatus): ... this ...
6169 * inf-child.c: ... here.
6170 * linux-nat.c: Include inf-child.h.
6171 * rs6000-nat.c: Include inf-child.h.
6172 * spu-linux-nat.c: Include inf-child.h.
6173
43011e52
PM
61742012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6175
6176 * tracepoint.c (start_tracing): Add missing i18n markup.
6177 (stop_tracing, set_trace_user): Ditto.
6178 (set_trace_notes, set_trace_stop_notes): Ditto.
6179
b1af9e97
TT
61802012-05-21 Tom Tromey <tromey@redhat.com>
6181
6182 PR c++/7173:
6183 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6184 types.
6185 * value.h (value_cast_pointers): Update.
6186 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6187 (value_cast): Update.
6188 (update_search_result): New function.
6189 (do_search_struct_field): New, from search_struct_field. Check
6190 for ambiguous results.
6191 (search_struct_field): Rewrite.
6192 * infcall.c (value_arg_coerce): Update.
6193 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6194 value_cast_pointers.
6195 * ada-lang.c (ada_convert_actual): Update.
6196
e9e5e6b3
TT
61972012-05-21 Tom Tromey <tromey@redhat.com>
6198
6199 * macroexp.c (macro_stringify): Terminate the string.
6200
1564a261
JK
62012012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6202
6203 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6204 Describe it.
6205 * auto-load.c (auto_load_expand_dir_vars): New function.
6206 (auto_load_safe_path_vec_update): Use it, remove the
6207 substitute_path_component call thanks to it.
6208 (auto_load_objfile_script): Remove the debug_file_directory processing.
6209 Use auto_load_expand_dir_vars, remove the substitute_path_component
6210 call thanks to it.
6211 * configure: Regenerate.
6212 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6213 path. Escape $ also for $debugdir.
6214 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6215 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6216
a3ec0bb1
DE
62172012-05-20 Doug Evans <dje@google.com>
6218
6219 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6220 before use. Check for symtab->includes == NULL before scanning it.
6221
d467df4e
MR
62222012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6223
6224 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6225
4cc0665f
MR
62262012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6227
6228 * NEWS: Add microMIPS support and "set mips compression",
6229 "show mips compression" commands.
6230 * mips-tdep.h (mips_isa): New enum.
6231 (gdbarch_tdep): Add mips_isa.
6232 (mips_pc_is_mips16): Update prototype.
6233 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6234 * mips-tdep.c (mips_compression_mips16): New variable.
6235 (mips_compression_micromips): Likewise.
6236 (mips_compression_strings): Likewise.
6237 (mips_compression_string): Likewise.
6238 (is_mips16_isa, is_micromips_isa): New functions.
6239 (is_mips16_addr): Rename to...
6240 (is_compact_addr): ... this.
6241 (unmake_mips16_addr): Likewise to...
6242 (unmake_compact_addr): ... this.
6243 (make_mips16_addr): Likewise to...
6244 (make_compact_addr): ... this.
6245 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6246 functions.
6247 (mips_elf_make_msymbol_special): Handle microMIPS code.
6248 (msymbol_is_special): Rename to...
6249 (msymbol_is_mips16): ... this.
6250 (mips_make_symbol_special, mips_pc_is_mips16): Update
6251 accordingly.
6252 (msymbol_is_mips, msymbol_is_micromips): New functions.
6253 (mips16_to_32_reg): Rename to...
6254 (mips_reg3_to_reg): ... this.
6255 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6256 (mips_pc_isa): Likewise.
6257 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6258 code.
6259 (mips_fetch_instruction): Pass return status instead of printing
6260 an error message if requested. Handle microMIPS code. Bail out
6261 on an invalid ISA.
6262 (micromips_op): New macro.
6263 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6264 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6265 (b6s4_op, b7s3_reg): Likewise.
6266 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6267 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6268 (mips_insn_size): New function.
6269 (mips32_next_pc): Update mips_fetch_instruction call.
6270 (micromips_relative_offset7): New function.
6271 (micromips_relative_offset10): Likewise.
6272 (micromips_relative_offset16): Likewise.
6273 (micromips_pc_insn_size): Likewise.
6274 (micromips_bc1_pc): Likewise.
6275 (micromips_next_pc): Likewise.
6276 (unpack_mips16): Update mips_fetch_instruction call.
6277 (extended_mips16_next_pc): Update according to change to
6278 mips16_to_32_reg.
6279 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6280 code.
6281 (mips16_scan_prologue): Update mips_fetch_instruction call.
6282 Update according to change to mips16_to_32_reg.
6283 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6284 (mips_insn16_frame_base_sniffer): Likewise.
6285 (micromips_decode_imm9): New function.
6286 (micromips_scan_prologue): Likewise.
6287 (mips_micro_frame_cache): Likewise.
6288 (mips_micro_frame_this_id): Likewise.
6289 (mips_micro_frame_prev_register): Likewise.
6290 (mips_micro_frame_sniffer): Likewise.
6291 (mips_micro_frame_unwind): New variable.
6292 (mips_micro_frame_base_address): New function.
6293 (mips_micro_frame_base): New variable.
6294 (mips_micro_frame_base_sniffer): New function.
6295 (mips32_scan_prologue): Update mips_fetch_instruction call.
6296 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6297 rather than for MIPS16.
6298 (mips_insn32_frame_base_sniffer): Likewise.
6299 (mips_addr_bits_remove): Handle microMIPS code.
6300 (deal_with_atomic_sequence): Rename to...
6301 (mips_deal_with_atomic_sequence): ... this. Update the type
6302 of the variable used to hold an instruction. Remove the ISA bit
6303 check. Update mips_fetch_instruction call.
6304 (micromips_deal_with_atomic_sequence): New function.
6305 (deal_with_atomic_sequence): Likewise.
6306 (mips_about_to_return): Handle microMIPS code. Update
6307 mips_fetch_instruction call.
6308 (heuristic_proc_start): Check for the standard MIPS ISA rather
6309 than for MIPS16. Update mips_pc_is_mips16 and
6310 mips_fetch_instruction calls. Handle microMIPS code.
6311 (mips_push_dummy_code): Handle microMIPS code.
6312 (mips_eabi_push_dummy_call): Likewise.
6313 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6314 (mips_o64_push_dummy_call): Handle microMIPS code.
6315 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6316 (is_delayed): Remove function.
6317 (mips_single_step_through_delay): Replace the call to is_delayed
6318 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6319 Handle microMIPS code.
6320 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6321 microMIPS code.
6322 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6323 call.
6324 (micromips_in_function_epilogue_p): New function.
6325 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6326 call.
6327 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6328 Handle microMIPS.
6329 (gdb_print_insn_mips): Likewise.
6330 (mips_breakpoint_from_pc): Likewise.
6331 (mips_remote_breakpoint_from_pc): New function.
6332 (mips32_instruction_has_delay_slot): Simplify making use of the
6333 updated mips_fetch_instruction interface.
6334 (micromips_instruction_has_delay_slot): New function.
6335 (mips16_instruction_has_delay_slot): Simplify making use of the
6336 updated mips_fetch_instruction interface.
6337 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 6338 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
6339 calls. Handle microMIPS code.
6340 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6341 (mips_skip_trampoline_code): Handle microMIPS code.
6342 (global_mips_compression): New function.
6343 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6344 file flags. Register the microMIPS remote breakpoint handler
6345 and heuristic frame unwinder.
6346 (show_mips_compression): New function.
6347 (_initialize_mips_tdep): Add the "set mips compression" and
6348 "show mips compression" commands.
6349
22e048c9
SDJ
63502012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6351
6352 * ada-lang.c:
6353 * ada-tasks.c:
6354 * ada-varobj.c:
6355 * amd64-darwin-tdep.c:
6356 * arm-symbian-tdep.c:
6357 * arm-tdep.c:
6358 * avr-tdep.c:
6359 * ax-gdb.c:
6360 * bfin-linux-tdep.c:
6361 * breakpoint.c:
6362 * c-valprint.c:
6363 * cli/cli-cmds.c:
6364 * coffread.c:
6365 * cp-support.c:
6366 * cris-tdep.c:
6367 * dwarf2-frame-tailcall.c:
6368 * dwarf2-frame.c:
6369 * dwarf2expr.c:
6370 * dwarf2loc.c:
6371 * dwarf2read.c:
6372 * elfread.c:
6373 * eval.c:
6374 * expprint.c:
6375 * f-valprint.c:
6376 * frv-tdep.c:
6377 * h8300-tdep.c:
6378 * hppa-hpux-tdep.c:
6379 * hppa-tdep.c:
6380 * hppanbsd-tdep.c:
6381 * i386-nto-tdep.c:
6382 * i386-tdep.c:
6383 * i387-tdep.c:
6384 * ia64-tdep.c:
6385 * jit.c:
6386 * linespec.c:
6387 * linux-tdep.c:
6388 * lm32-tdep.c:
6389 * m2-valprint.c:
6390 * m32c-tdep.c:
6391 * m32r-rom.c:
6392 * m32r-tdep.c:
6393 * m68k-tdep.c:
6394 * m68klinux-tdep.c:
6395 * mi/mi-main.c:
6396 * microblaze-tdep.c:
6397 * mips-linux-tdep.c:
6398 * mips-tdep.c:
6399 * mn10300-tdep.c:
6400 * p-valprint.c:
6401 * parse.c:
6402 * ppc-linux-tdep.c:
6403 * ppc-sysv-tdep.c:
6404 * printcmd.c:
6405 * python/py-finishbreakpoint.c:
6406 * python/py-inferior.c:
6407 * python/py-infthread.c:
6408 * python/py-type.c:
6409 * python/python.c:
6410 * remote-fileio.c:
6411 * remote-m32r-sdi.c:
6412 * remote-mips.c:
6413 * reverse.c:
6414 * rl78-tdep.c:
6415 * rs6000-aix-tdep.c:
6416 * rs6000-tdep.c:
6417 * s390-tdep.c:
6418 * score-tdep.c:
6419 * sh64-tdep.c:
6420 * skip.c:
6421 * solib-darwin.c:
6422 * solib-dsbt.c:
6423 * solib-frv.c:
6424 * sparc-tdep.c:
6425 * spu-multiarch.c:
6426 * spu-tdep.c:
6427 * stack.c:
6428 * symfile.c:
6429 * symtab.c:
6430 * tic6x-tdep.c:
6431 * tracepoint.c:
6432 * v850-tdep.c:
6433 * valarith.c:
6434 * valprint.c:
6435 * value.c:
6436 * xcoffread.c:
6437 * xtensa-tdep.c:
6438 * ada-lang.c:
6439 * ada-tasks.c:
6440 * ada-varobj.c:
6441 * amd64-darwin-tdep.c:
6442 * arm-symbian-tdep.c:
6443 * arm-tdep.c: Delete unused variables.
6444
aff139ff
JK
64452012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6446
6447 Rename $ddir to $datadir.
6448 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6449 * auto-load.c (auto_load_safe_path_vec_update)
6450 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6451 * configure: Regenerate.
6452 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6453 Likewise. Remove the 'use $ddir' help string.
6454
f7bfa992
JK
64552012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6456
6457 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6458 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6459
9cb709b6
TT
64602012-05-18 Tom Tromey <tromey@redhat.com>
6461
6462 PR exp/13907:
6463 * valprint.h (struct value_print_options) <symbol_print>: New
6464 field.
6465 * valprint.c (user_print_options): Add default for symbol_print.
6466 (show_symbol_print): New function.
6467 (generic_val_print): Respect symbol_print.
6468 (_initialize_valprint): Add "print symbol" setting.
6469 * f-valprint.c (f_val_print): Respect symbol_print.
6470 * c-valprint.c (c_val_print): Respect symbol_print.
6471 * NEWS: Update.
6472 * printcmd.c (print_address_symbolic): Return int. Ignore some
6473 zero-size symbols.
6474 (print_address_demangle): Return int.
6475 * defs.h: (print_address_symbolic): Return int.
6476 * value.h (print_address_demangle): Return int.
6477
b012acdd
TT
64782012-05-18 Tom Tromey <tromey@redhat.com>
6479
6480 * valprint.c (val_print_string): Don't print leading space.
6481 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6482 print space before string or vtbl.
6483 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6484 before string.
6485 * jv-valprint.c (java_value_print): Print space before string.
6486 * go-valprint.c (print_go_string): Print space before string.
6487 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6488 space before string.
6489 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6490 space before string or vtbl.
6491 * auxv.c (fprint_target_auxv): Print space after address.
6492
1d51a733
TT
64932012-05-18 Tom Tromey <tromey@redhat.com>
6494
6495 * printcmd.c (print_address_demangle): Remove special case for 0.
6496
edf0c1b7
TT
64972012-05-18 Tom Tromey <tromey@redhat.com>
6498
6499 * printcmd.c (print_address_demangle): Add 'opts' argument.
6500 * p-valprint.c (pascal_val_print): Update.
6501 * jv-valprint.c (java_val_print): Update.
6502 * value.h: Update.
6503 * valprint.c (generic_val_print): Update.
6504 (print_function_pointer_address): Add 'options' argument. Remove
6505 'addressprint' argument. Update.
6506 * m2-valprint.c (print_unpacked_pointer): Update.
6507 * gnu-v3-abi.c (print_one_vtable): Update.
6508 (gnuv3_print_method_ptr): Update.
6509 * f-valprint.c (f_val_print): Update.
6510 * cp-valprint.c (cp_print_value_fields): Update.
6511 * valprint.h (print_function_pointer_address): Update.
6512 * c-valprint.c (c_val_print): Update.
6513
9703b513
TT
65142012-05-18 Tom Tromey <tromey@redhat.com>
6515
6516 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6517 directly corresponding to the found psymtab.
6518 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6519 (dw2_find_pc_sect_symtab): Use it.
6520 * block.h (blockvector_contains_pc): Declare.
6521 * block.c (find_block_in_blockvector): New function.
6522 (blockvector_for_pc_sect): Use it.
6523 (blockvector_contains_pc): New function.
6524
5a439849
MR
65252012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6526
6527 * mips-tdep.h (mips_write_pc): New prototype.
6528 * mips-tdep.c (mips_write_pc): Make external, add description.
6529 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6530 add description.
6531
8376de04
MR
65322012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6533
6534 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6535 mips_regnum->pc.
6536 (mips_unwind_pc, mips_write_pc): Likewise.
6537 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6538 gdbarch_read_pc.
6539
d3581e61
JB
65402012-05-17 Joel Brobecker <brobecker@adacore.com>
6541
6542 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6543 proc_warn, proc_error, proc_get_status, proc_flags,
6544 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6545 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6546 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6547 proc_stop_process, proc_wait_for_stop, proc_run_process,
6548 proc_set_traced_signals, proc_set_traced_faults,
6549 proc_set_traced_sysentry, proc_set_traced_sysexit,
6550 proc_set_held_signals, proc_get_held_signals,
6551 proc_get_traced_signals, proc_get_traced_faults,
6552 proc_get_traced_sysentry, proc_get_traced_sysexit,
6553 proc_clear_current_fault, proc_set_current_signal,
6554 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6555 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6556 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6557 proc_get_current_thread, proc_get_current_thread,
6558 proc_get_current_thread, proc_update_threads,
6559 proc_update_threads, proc_update_threads, proc_update_threads,
6560 proc_iterate_over_threads, procfs_find_new_threads,
6561 procfs_pid_to_str): Make static. Remove advance declaration.
6562 (proc_cursig): Make static. Conditionalized defintion on
6563 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6564 (proc_syscall, proc_set_kill_on_last_close,
6565 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6566 proc_get_pending_signals, proc_get_signal_actions,
6567 proc_trace_signal, proc_ignore_signal): Delete.
6568
81b9b86e
SDJ
65692012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6570
6571 * coffread.c (cs_section_address): Passing proper argument for
6572 `bfd_get_section_vma'.
6573 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6574 `bfd_get_section_flags'.
6575 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6576 `bfd_get_section_vma'.
6577
abc9d0dc
TT
65782012-05-16 Tom Tromey <tromey@redhat.com>
6579
6580 PR macros/13205:
6581 * macrotab.h: (macro_define_special): Declare.
6582 (enum macro_special_kind): New.
6583 (struct macro_definition) <argc, replacement>: Update comments.
6584 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6585 (macro_define_object_internal): New function.
6586 (macro_define_object): Use it.
6587 (macro_define_special): New function.
6588 (fixup_definition): New function.
6589 (macro_lookup_definition, foreach_macro_in_scope)
6590 (foreach_macro): Use fixup_definition.
6591 * macroexp.h (macro_stringify): Declare.
6592 * macroexp.c (free_buffer_return_text): New function.
6593 (stringify): Constify "arg".
6594 (macro_stringify): New function.
6595 * dwarf2read.c (macro_start_file): Call macro_define_special.
6596
6a3a010b 65972012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6598 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6599
6600 * breakpoint.h (bp_location): Add related_address member.
6601 * inferior.h (get_return_value): Take a pointer to struct value
6602 instead of struct type for the function requested.
6603 * value.h (using_struct_return): Likewise.
6604 * gdbarch.sh (return_value): Take a pointer to struct value
6605 instead of struct type for the function requested.
6606 * breakpoint.c (set_breakpoint_location_function): Initialize
6607 related_address for bp_gnu_ifunc_resolver breakpoints.
6608 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6609 requested function's address to gdbarch_return_value.
6610 * eval.c (evaluate_subexp_standard): Pass the requested
6611 function's address to using_struct_return.
6612 * infcall.c (call_function_by_hand): Pass the requested
6613 function's address to using_struct_return and
6614 gdbarch_return_value.
6615 * infcmd.c (get_return_value): Take a pointer to struct value
6616 instead of struct type for the function requested.
6617 (print_return_value): Update accordingly.
6618 (finish_command_continuation): Likewise.
6619 * stack.c (return_command): Pass the requested function's
6620 address to using_struct_return and gdbarch_return_value.
6621 * value.c (using_struct_return): Take a pointer to struct value
6622 instead of struct type for the function requested. Pass the
6623 requested function's address to gdbarch_return_value.
6624 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6625 New function_value member, replacing function_type.
6626 (bpfinishpy_dealloc): Update accordingly.
6627 (bpfinishpy_pre_stop_hook): Likewise.
6628 (bpfinishpy_init): Likewise. Record the requested function's
6629 address.
6630 * mips-tdep.c (mips_fval_reg): New enum.
6631 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6632 words put in GP registers.
6633 (mips_o64_push_dummy_call): Update a comment.
6634 (mips_o32_return_value): Take a pointer to struct value instead
6635 of struct type for the function requested and use it to check if
6636 using the MIPS16 calling convention. Return the designated
6637 general purpose registers for floating-point values returned in
6638 MIPS16 mode.
6639 (mips_o64_return_value): Likewise.
6640 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6641 (ppc_sysv_abi_broken_return_value): Likewise.
6642 (ppc64_sysv_abi_return_value): Likewise.
6643 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6644 value instead of struct type for the function requested.
6645 * amd64-tdep.c (amd64_return_value): Likewise.
6646 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6647 * arm-tdep.c (arm_return_value): Likewise.
6648 * avr-tdep.c (avr_return_value): Likewise.
6649 * bfin-tdep.c (bfin_return_value): Likewise.
6650 * cris-tdep.c (cris_return_value): Likewise.
6651 * frv-tdep.c (frv_return_value): Likewise.
6652 * h8300-tdep.c (h8300_return_value): Likewise.
6653 (h8300h_return_value): Likewise.
6654 * hppa-tdep.c (hppa32_return_value): Likewise.
6655 (hppa64_return_value): Likewise.
6656 * i386-tdep.c (i386_return_value): Likewise.
6657 * ia64-tdep.c (ia64_return_value): Likewise.
6658 * iq2000-tdep.c (iq2000_return_value): Likewise.
6659 * lm32-tdep.c (lm32_return_value): Likewise.
6660 * m32c-tdep.c (m32c_return_value): Likewise.
6661 * m32r-tdep.c (m32r_return_value): Likewise.
6662 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6663 * m68k-tdep.c (m68k_return_value): Likewise.
6664 (m68k_svr4_return_value): Likewise.
6665 * m88k-tdep.c (m88k_return_value): Likewise.
6666 * mep-tdep.c (mep_return_value): Likewise.
6667 * microblaze-tdep.c (microblaze_return_value): Likewise.
6668 * mn10300-tdep.c (mn10300_return_value): Likewise.
6669 * moxie-tdep.c (moxie_return_value): Likewise.
6670 * mt-tdep.c (mt_return_value): Likewise.
6671 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6672 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6673 (ppc_sysv_abi_broken_return_value): Likewise.
6674 (ppc64_sysv_abi_return_value): Likewise.
6675 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6676 * rl78-tdep.c (rl78_return_value): Likewise.
6677 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6678 * rx-tdep.c (rx_return_value): Likewise.
6679 * s390-tdep.c (s390_return_value): Likewise.
6680 * score-tdep.c (score_return_value): Likewise.
6681 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6682 (sh_return_value_fpu): Likewise.
6683 * sh64-tdep.c (sh64_return_value): Likewise.
6684 * sparc-tdep.c (sparc32_return_value): Likewise.
6685 * sparc64-tdep.c (sparc64_return_value): Likewise.
6686 * spu-tdep.c (spu_return_value): Likewise.
6687 * tic6x-tdep.c (tic6x_return_value): Likewise.
6688 * v850-tdep.c (v850_return_value): Likewise.
6689 * vax-tdep.c (vax_return_value): Likewise.
6690 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6691 * xtensa-tdep.c (xtensa_return_value): Likewise.
6692 * gdbarch.c: Regenerate.
6693 * gdbarch.h: Regenerate.
6694
29ca12b3
TT
66952012-05-15 Tom Tromey <tromey@redhat.com>
6696
6697 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6698
588ae58c
JB
66992012-05-15 Joel Brobecker <brobecker@adacore.com>
6700
6701 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6702 of command in two error message.
6703
855a6e68
JB
67042012-05-15 Joel Brobecker <brobecker@adacore.com>
6705
6706 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6707
d634f2de
JB
67082012-05-15 Joel Brobecker <brobecker@adacore.com>
6709
6710 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6711
9cc815f5
JK
67122012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6713
6714 * NEWS (show auto-load scripts-directory): Add forgotten command.
6715
6a609e58
JK
67162012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6717
6718 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6719 parameters.
6720
ac1438b5
L
67212012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6722
6723 * amd64-tdep.c: Include features/i386/x32.c and
6724 features/i386/x32-avx.c.
6725 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6726 initialize_tdesc_x32_avx.
6727
e7e0cddf
SS
67282012-05-14 Stan Shebs <stan@codesourcery.com>
6729
6730 Add dynamic printf.
6731 * breakpoint.h (enum bptype): New type bp_dprintf.
6732 (struct breakpoint): New field extra_string.
6733 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6734 (create_breakpoint): Add extra_string arg.
6735 * breakpoint.c (dprintf_breakpoint_ops): New.
6736 (is_breakpoint): Add bp_dprintf.
6737 (bpstat_what): Add dprintf case.
6738 (bptype_string): Ditto.
6739 (print_one_breakpoint_location): Ditto.
6740 (init_bp_location): Ditto.
6741 (bkpt_print_mention): Ditto.
6742 (dprintf_style_enums): New array.
6743 (dprintf_style): New global.
6744 (dprintf_function): New global.
6745 (dprintf_channel): New global.
6746 (update_dprintf_command_list): New function.
6747 (update_dprintf_commands): New function.
6748 (init_breakpoint_sal): Add extra_string argument, handle it.
6749 (create_breakpoint_sal): Add extra_string argument.
6750 (create_breakpoints_sal): Add extra_string argument, update callers.
6751 (find_condition_and_thread): Add extra argument.
6752 (create_breakpoint): Add extra_string argument, record it.
6753 (dprintf_command): New function.
6754 (break_command_1): Add arg to create_breakpoint call.
6755 (handle_gnu_v3_exceptions): Ditto.
6756 (trace_command): Ditto.
6757 (ftrace_command): Ditto.
6758 (strace_command): Ditto.
6759 (bkpt_print_mention): Add dprintf case.
6760 (create_breakpoint_sal_default): Add extra_string argument.
6761 (_initialize_breakpoint): Add new commands.
6762 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6763 * python/py-breakpoint.c (bppy_init): Ditto.
6764 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6765
8ae38c14
MR
67662012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6767
6768 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6769
9f676e66
SCR
67702012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6771
6772 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6773 unsigned long long.
6774
7efc75aa
SCR
67752012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6776
6777 Add a new function gdb.find_pc_line to the Python API.
6778 * NEWS (Python Scripting): Add entry about the new function.
6779 * python/python.c (gdbpy_find_pc_line): New function which
6780 implements gdb.find_pc_line.
6781 (GdbMethods): Add entry for the new function.
6782
70af3797
PA
67832012-05-12 Pedro Alves <palves@redhat.com>
6784
6785 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6786 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6787
06da564e
EZ
67882012-05-12 Eli Zaretskii <eliz@gnu.org>
6789
6790 * inferior.c: Include completer.h
6791 (initialize_inferiors): Set completer of add-inferior to
6792 filename_completer.
6793
0288cee2
L
67942012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6795
6796 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6797 gdbarch_ptr_bit for x32 core dump.
6798
f6537a2c
L
67992012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6800
6801 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6802 and features/i386/x32-avx-linux.c.
6803
85d4a676
SS
68042012-05-11 Stan Shebs <stan@codesourcery.com>
6805 Kwok Cheung Yeung <kcy@codesourcery.com>
6806
6807 * NEWS: Describe new info os commands.
6808 * common/linux-osdata.c (PID_T, TIME_T): Define.
6809 (MAX_PID_T_STRLEN): New.
6810 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6811 MAX_PID_T_STRLEN.
6812 (command_from_pid): Add comment. Change to use PID_T.
6813 (commandline_from_pid): Change to use PID_T.
6814 (user_from_pid): Add comment.
6815 (get_process_owner): Add comment. Change to use PID_T and
6816 MAX_PID_T_STRLEN.
6817 (get_number_of_cpu_cores): Add comment.
6818 (get_cores_used_by_process): Add comment. Change to use PID_T and
6819 MAX_PID_T_STRLEN.
6820 (linux_xfer_osdata_processes): Change to use PID_T and
6821 MAX_PID_T_STRLEN.
6822 (compare_processes): New function.
6823 (linux_xfer_osdata_processgroups): New function.
6824 (linux_xfer_osdata_threads): Change to use PID_T.
6825 (linux_xfer_osdata_fds): New function.
6826 (format_socket_state, print_sockets): New functions.
6827 (union socket_addr): New union.
6828 (linux_xfer_osdata_isockets): New function.
6829 (time_from_time_t, group_from_gid): New functions.
6830 (linux_xfer_osdata_shm): New function.
6831 (linux_xfer_osdata_sem): New function.
6832 (linux_xfer_osdata_msg): New function.
6833 (linux_xfer_osdata_modules): New function.
6834 (osdata_table): Add new entries.
6835 * common/buffer.c (buffer_xml_printf): Add support for long and
6836 long long format specifiers.
6837
f24afd6d
L
68382012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6839
6840 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6841 (tdesc_x32_avx_linux): Likewise.
6842
7349ff92
JK
68432012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6844
6845 Implement multi-component --with-auto-load-dir.
6846 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6847 entries.
6848 (--with-auto-load-safe-path): Update the default value description.
6849 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6850 New.
6851 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6852 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6853 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6854 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6855 "set auto-load scripts-directory".
6856 * config.in: Regenerate.
6857 * configure: Regenerate.
6858 * configure.ac (--with-auto-load-dir): New configure option.
6859 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6860
6dea1fbd
JK
68612012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6862
6863 Provide $ddir substitution for --with-auto-load-safe-path.
6864 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6865 entries.
6866 * auto-load.c: Include observer.h.
6867 (auto_load_safe_path_vec_update): Call substitute_path_component for
6868 each component. New variable ddir_subst.
6869 (auto_load_gdb_datadir_changed): New function.
6870 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6871 AUTO_LOAD_SAFE_PATH. New comment.
6872 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6873 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6874 * config.in: Regenerate.
6875 * configure: Regenerate.
6876 * configure.ac (--auto-load-safe-path): Rename
6877 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6878 GDB_DATADIR/auto-load.
6879 * defs.h (substitute_path_component): New declaration.
6880 * top.c: Include observer.h.
6881 (set_gdb_datadir): New function.
6882 (init_main): Install it for "set data-directory".
6883 * utils.c (substitute_path_component): New function.
6884
b09aca3a
JK
68852012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6886
6887 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6888 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6889 DEBUG_FILE_DIRECTORY. Handle multiple components of
6890 DEBUG_FILE_DIRECTORY.
6891
95554aad
TT
68922012-05-10 Tom Tromey <tromey@redhat.com>
6893
6894 * dwarf2read.c (recursively_write_psymbols): New function.
6895 (write_psymtabs_to_index): Use it.
6896
6897 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6898 field.
6899 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6900 (load_partial_comp_unit): Update.
6901 (queue_comp_unit): Add argument 'pretend_language'.
6902 (process_queue): Update.
6903 (psymtab_to_symtab_1): Skip dependencies that have a user.
6904 (load_partial_comp_unit_reader): Give meaning to the 'data'
6905 argument.
6906 (load_full_comp_unit): Add 'pretend_language' argument.
6907 (process_full_comp_unit): Add 'pretend_language' argument. Set
6908 language on CU.
6909 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6910 Update.
6911 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6912 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6913 Update.
6914 (prepare_one_comp_unit): Add 'pretend_language' argument.
6915
6916 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6917 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6918 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6919 (dw2_do_instantiate_symtab): Check whether symtab was read in
6920 before queueing.
6921 (dw2_instantiate_symtab): Add assertion. Call
6922 process_cu_includes.
6923 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6924 (partial_symtab_p): New typedef.
6925 (set_partial_user): New function.
6926 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6927 (scan_partial_symbols): Add imported CU to imported_symtabs.
6928 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6929 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6930 (get_symtab, recursively_compute_inclusions)
6931 (compute_symtab_includes, process_cu_includes)
6932 (process_imported_unit_die): New functions.
6933 (process_die) <DW_TAG_imported_unit>: New case.
6934 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6935
6936 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6937 comment.
6938 (struct partial_die_info) <locdesc>: Remove.
6939 <d>: New field.
6940 (process_psymtab_comp_unit): Add 'read_partial' argument.
6941 Update.
6942 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6943 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6944 (add_partial_symbol): Update.
6945 (process_die): Handle DW_TAG_partial_unit.
6946 (read_file_scope): Update comment.
6947 (load_partial_dies): Handle DW_TAG_imported_unit.
6948 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6949 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6950
e871fbb9
TT
69512012-05-10 Tom Tromey <tromey@redhat.com>
6952
6953 * cc-with-dwz.sh: New file.
6954
b5b04b5b
TT
69552012-05-10 Tom Tromey <tromey@redhat.com>
6956
6957 * symtab.h (struct symtab) <includes, user>: New fields.
6958 * block.h (struct block_iterator) <d, idx, which>: New fields.
6959 * block.c (initialize_block_iterator, find_iterator_symtab)
6960 (block_iterator_step, block_iter_name_step)
6961 (block_iter_match_step): New functions.
6962 (block_iterator_first, block_iterator_next)
6963 (block_iter_name_first, block_iter_name_next)
6964 (block_iter_match_first, block_iter_match_next): Rewrite.
6965 (get_block_symtab): New function.
6966
84a146c9
TT
69672012-05-10 Tom Tromey <tromey@redhat.com>
6968
6969 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6970 set_block_symtab.
6971 * jit.c (finalize_symtab): Use allocate_global_block,
6972 set_block_symtab.
6973 * buildsym.c (finish_block_internal): New function, from old
6974 finish_block.
6975 (finish_block): Rewrite.
6976 (end_symtab): Use finish_block_internal, set_block_symtab.
6977 * block.h (struct global_block): New.
6978 (allocate_global_block, set_block_symtab): Declare.
6979 * block.c (allocate_global_block, set_block_symtab): New
6980 functions.
6981
9439a077
TT
69822012-05-10 Tom Tromey <tromey@redhat.com>
6983
6984 * psymtab.c (partial_map_expand_apply): Add assertion.
6985 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6986 (psymtab_to_symtab): Find unshared psymtab.
6987 (dump_psymtab): Print including psymtabs.
6988 (recursively_search_psymtabs): New function.
6989 (expand_symtabs_matching_via_partial): Use it.
6990 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6991 fields.
6992 (enum psymtab_search_status): New.
6993
8157b174
TT
69942012-05-10 Tom Tromey <tromey@redhat.com>
6995
6996 * tracepoint.c (scope_info): Update.
6997 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6998 (find_pc_sect_symtab, search_symbols)
6999 (default_make_symbol_completion_list_break_on)
7000 (make_file_symbol_completion_list): Update.
7001 * symmisc.c (dump_symtab_1): Update.
7002 * stack.c (print_frame_args, iterate_over_block_locals)
7003 (print_frame_labels, iterate_over_block_arg_vars): Update.
7004 * python/py-block.c (block_object) <dict>: Remove.
7005 <block>: New field.
7006 <iter>: Change type.
7007 (blpy_iter): Update.
7008 (blpy_block_syms_iternext): Update.
7009 * psymtab.c (map_block): Use block iterators.
7010 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7011 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7012 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7013 * infrun.c (check_exception_resume): Update.
7014 * cp-support.c (make_symbol_overload_list_block): Update.
7015 * coffread.c (patch_opaque_types): Update.
7016 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7017 * block.h (struct block_iterator): New.
7018 (block_iterator_first, block_iterator_next, block_iter_name_first)
7019 (block_iter_name_next, block_iter_match_first)
7020 (block_iter_match_next): Declare.
7021 (ALL_BLOCK_SYMBOLS): Redefine.
7022 * block.c (block_iterator_first, block_iterator_next)
7023 (block_iter_name_first, block_iter_name_next)
7024 (block_iter_match_first, block_iter_match_next): New functions.
7025 * ada-lang.c (ada_add_block_symbols)
7026 (ada_make_symbol_completion_list): Use block iterator.
7027
a2ca7a52
TT
70282012-05-10 Tom Tromey <tromey@redhat.com>
7029
7030 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7031 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7032 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7033 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7034 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7035 Update.
7036
64ea88dc
JB
70372012-05-10 Joel Brobecker <brobecker@adacore.com>
7038
7039 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7040 print-file-var-lib2.c, print-file-var-main.c and
7041 print-file-var.exp (located in gdb/testsuite/gdb.base).
7042
99a547d6
JB
70432012-05-10 Joel Brobecker <brobecker@adacore.com>
7044
7045 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7046 try locating the symbol in the symbol's own objfile first, before
7047 extending the search to all objfiles.
7048 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7049 out of lookup_symbol_aux_symtabs.
7050 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7051 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7052 Do not search EXCLUDE_OBJFILE.
7053 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7054 (lookup_symbol_global): Search for matches in the block's objfile
7055 first, before searching all other objfiles.
7056
0ece64fd
TG
70572012-05-10 Tristan Gingold <gingold@adacore.com>
7058
7059 * printcmd.c (set_command): Add pre/post inc/dec.
7060
3d16a105
FCE
70612012-05-09 Frank Ch. Eigler <fche@redhat.com>
7062
7063 * gdb.1: Document -ex option.
7064
2efbc0f7
JB
70652012-05-09 Joel Brobecker <brobecker@adacore.com>
7066
7067 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7068 * inferior.h (AT_SYMBOL): Delete.
7069
2c76a0c7
JB
70702012-05-09 Joel Brobecker <brobecker@adacore.com>
7071
7072 * mips-tdep.c (mips_push_dummy_code): New function.
7073 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7074 ON_STACK and install mips_push_dummy_code as our gdbarch
7075 push_dummy_code routine.
7076
9401a810
PA
70772012-05-09 Pedro Alves <palves@redhat.com>
7078
7079 * target.c (set_maintenance_target_async_permitted): Rename to ...
7080 (set_target_async_command): ... this.
7081 (show_maintenance_target_async_permitted): Rename to ...
7082 (show_target_async_command): ... this.
7083 (initialize_targets): Adjust.
7084
3929b321
DE
70852012-05-08 Doug Evans <dje@google.com>
7086
7087 * go-exp.y (classify_name): Add missing assignment of fields of
7088 yylval.ssym.
7089
c41535fd
EZ
70902012-05-08 Eli Zaretskii <eliz@gnu.org>
7091
7092 Display the ">" prompt in interactive mode while reading canned
7093 commands, even when the current interpreter is MI.
7094
7095 * interps.c (interp_set_temp): New function.
7096
7097 * interps.h (interp_set_temp): Add prototype.
7098
7099 * cli/cli-script.c (restore_interp): New cleanup function.
7100 (read_command_lines): Temporarily override the current interpreter
7101 with CLI and arrange for restoring the original one.
7102
c0749c4d
JS
71032012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7104
7105 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7106
d7333987
SDJ
71072012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7108
7109 * probe.c (parse_probes): Move conditional to check for
7110 debuginfo files from here...
7111 * stap-probe.c (stap_get_probes): ... to here.
7112
649e6d92
MK
71132012-05-07 Mark Kettenis <kettenis@gnu.org>
7114 H.J. Lu <hongjiu.lu@intel.com>
7115
7116 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7117 `movl %esp, %ebp' for the X32 ABI.
7118
f39c6ffd
TT
71192012-05-07 Tom Tromey <tromey@redhat.com>
7120
7121 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7122 get_DW_TAG_name.
7123 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7124 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7125 (dwarf_stack_op_name): Remove.
7126 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7127 (decode_locdesc): Use get_DW_OP_name.
7128 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7129 (dwarf2_compile_expr_to_ax): Likewise.
7130 (disassemble_dwarf_expression): Likewise.
7131 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7132
1e1f6591
CLT
71332012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7134
7135 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7136 (sh_linux_sigtramp_cache): New function.
7137 (sh_linux_sigreturn_init): New function.
7138 (sh_linux_rt_sigreturn_init): New function.
7139 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7140 patterns.
7141 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7142 syscall codes.
7143 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7144 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7145 (sh_linux_init_abi): Add init calls to register new tramp_frame
7146 definitions under 32-bit SH, update comments.
7147
545c08b4
PA
71482012-05-07 Pedro Alves <palves@redhat.com>
7149
daac165e
PA
7150 PR gdb/10952
7151
545c08b4
PA
7152 * amd64-linux-tdep.c: Include glibc-tdep.h.
7153 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7154 gdbarch_skip_solib_resolver callback.
7155
af2c1515
JK
71562012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7157
7158 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7159 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7160 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7161 (add_auto_load_safe_path): Change the error message.
7162 (_initialize_auto_load): Change the "safe-path" help text.
7163 * configure: Regenerate
7164 * configure.ac (--without-auto-load-safe-path): Set
7165 WITH_AUTO_LOAD_SAFE_PATH to /.
7166
1067f998
SDJ
71672012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7168
7169 * stap-probe.h: Do not include unecessary `probe.h'.
7170
45dfa85a
AM
71712012-05-05 Alan Modra <amodra@gmail.com>
7172
7173 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7174 bfd_und_section_ptr.
7175 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7176 and bfd_com_section_ptr.
7177
cf093994
JB
71782012-05-04 Joel Brobecker <brobecker@adacore.com>
7179
762ebb75 7180 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 7181
d40dc7a8
JB
71822012-05-04 Joel Brobecker <brobecker@adacore.com>
7183
7184 * windows-nat.h (segment_register_p_ftype): New typedef.
7185 (windows_set_segment_register_p): Add declaration.
7186 * windows-nat.c (segment_register_p): New static global.
7187 (windows_set_segment_register_p): New function.
7188 (do_windows_fetch_inferior_registers): Add special handling
7189 for segment registers.
7190 * amd64-windows-nat.c: #include "amd64-tdep.h".
7191 (amd64_windows_segment_register_p): New function.
7192 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7193 * i386-windows-nat.c: #include "i386-tdep.h".
7194 (i386_windows_segment_register_p): New function.
7195 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7196
52b3699b
TG
71972012-05-04 Tristan Gingold <gingold@adacore.com>
7198
7199 * printcmd.c (set_command): Emit a warning if the expression is not
7200 an assignment.
7201
94c74239
JB
72022012-05-03 Joel Brobecker <brobecker@adacore.com>
7203
7204 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7205 Make static.
7206
fcf57f19
SDJ
72072012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7208
7209 * stap-probe.c (stap_is_operator): Change declaration.
7210 (stap_get_opcode): Change return value.
7211 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7212 `stap_parse_argument_1'.
7213
27d2932e
PA
72142012-05-03 Pedro Alves <pedro@codesourcery.com>
7215
7216 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7217 debug log.
7218
a20ee7a4
SCR
72192012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7220
7221 Add two new methods global_block and static_block to gdb.Symtab
7222 objects.
7223 * NEWS (Python scripting): Add entry about the new methods.
7224 * python/py-symtab.c (stpy_global_block): New function which
7225 implements the gdb.Symtab.global_block() method.
7226 (stpy_static_block): New function which implements the
7227 gdb.Symtab.static_block() method.
7228 (symtab_object_methods): Add entries for the two new methods.
7229
943cb756
DE
72302012-05-03 Doug Evans <dje@google.com>
7231
7232 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7233 files.
7234
f4644a3f
YQ
72352012-05-03 Yao Qi <yao@codesourcery.com>
7236
7237 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7238 space.
7239 (i386_process_record): Ditto.
7240
ef61f180
JB
72412012-05-02 Joel Brobecker <brobecker@adacore.com>
7242
7243 * infcall.c (unwind_on_signal_p): Make static.
7244
02f1df11
JB
72452012-05-02 Joel Brobecker <brobecker@adacore.com>
7246
7247 * sol-thread.c (solaris_pid_to_str): Make static.
7248 (_initialize_sol_thread): Add prototype.
7249
39023530
JB
72502012-05-02 Joel Brobecker <brobecker@adacore.com>
7251
7252 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7253
c6b0c501
CF
72542012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7255
7256 * MAINTAINERS: Remove myself.
7257
1ef71717
JK
72582012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7259
7260 Fix --without-auto-load-safe-path for MS-Windows host platform.
7261 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7262
b31b86a7
EZ
72632012-05-02 Eli Zaretskii <eliz@gnu.org>
7264
7265 * gdb_curses.h: Undefine KEY_EVENT before including curses
7266 headers. Move "#undef MOUSE_MOVED" before any curses header
7267 inclusion.
7268
777532fc
SDJ
72692012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7270
7271 * features/i386/i386-mmx-linux.c: Regenerate.
7272 * features/rs6000/powerpc-32.c: Likewise.
7273 * features/rs6000/powerpc-32l.c: Likewise.
7274 * features/rs6000/powerpc-403.c: Likewise.
7275 * features/rs6000/powerpc-403gc.c: Likewise.
7276 * features/rs6000/powerpc-405.c: Likewise.
7277 * features/rs6000/powerpc-505.c: Likewise.
7278 * features/rs6000/powerpc-601.c: Likewise.
7279 * features/rs6000/powerpc-602.c: Likewise.
7280 * features/rs6000/powerpc-603.c: Likewise.
7281 * features/rs6000/powerpc-604.c: Likewise.
7282 * features/rs6000/powerpc-64.c: Likewise.
7283 * features/rs6000/powerpc-64l.c: Likewise.
7284 * features/rs6000/powerpc-750.c: Likewise.
7285 * features/rs6000/powerpc-860.c: Likewise.
7286 * features/rs6000/powerpc-e500.c: Likewise.
7287 * features/rs6000/powerpc-e500l.c: Likewise.
7288 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7289 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7290 * features/rs6000/rs6000.c: Likewise.
7291
d71871bc
SDJ
72922012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7293
7294 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7295 variable.
7296 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7297 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7298 (stap_parse_argument) <e>: Likewise.
7299 (handle_stap_probe) <byte_order>: Likewise.
7300
fd820528
DE
73012012-04-30 Doug Evans <dje@google.com>
7302
7303 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7304 init_and_read_dies_worker. All callers updated.
7305 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7306 replaced with init_cutu_and_read_dies.
7307 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7308 (find_partial_die): Remove FIXME. Don't free current CU.
7309
ec3f619d 73102012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
7311
7312 * contrib: New directory.
7313 * contrib/test_pubnames_and_indexes.py: New file.
7314
fceca515
DE
73152012-04-30 Doug Evans <dje@google.com>
7316
7317 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7318 All callers updated.
7319 (init_cu_die_reader): Verify the section is non-empty.
7320 (dwarf_decode_line_header): Don't dereference section->asection
7321 until we know the section is present.
7322
311fe7e1
SDJ
73232012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7324
7325 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7326 probes.
7327
5977971a
YQ
73282012-04-29 Yao Qi <yao@codesourcery.com>
7329
7330 * gdb-code-style.el: New hook gdb-markup-hook
7331 and gdb-comment-hook.
7332
dee91e82
DE
73332012-04-28 Doug Evans <dje@google.com>
7334
3019eac3
DE
7335 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7336 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7337 objfile->obfd.
7338 * symfile.h (dwarf2_debug_sections): New member addr.
7339 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7340 (ctx_no_get_addr_index): New function.
7341 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7342 (ctx_no_get_addr_index): Declare.
7343 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7344 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7345 (dwarf_expr_ctx_funcs): Update.
7346 (needs_get_addr_index): New function.
7347 (needs_frame_ctx_funcs): Update.
7348 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7349 * dwarf2read.c: #include "gdbcore.h".
7350 (dwarf2_per_objfile): New members addr, dwo_files.
7351 (dwarf2_elf_names): Add entry for addr.
7352 (struct dwo_section_names): New type.
7353 (dwo_section_names): New static global.
7354 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7355 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7356 old debug_types_section member updated to use this.
7357 Rename member debug_types_section to info_or_types_section,
7358 all uses updated.
7359 (signatured_type): Rename member type_offset to type_offset_in_tu,
7360 all uses updated. New member type_offset_in_section.
7361 (struct dwo_sections): New type.
7362 (struct dwo_unit): New type.
7363 (struct dwo_file): New type.
7364 (die_reader_specs): New member dwo_file.
7365 (dwarf2_locate_sections): Watch for .debug_addr.
7366 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7367 (dwarf2_read_section): Get bfd of section from bfd's asection,
7368 instead of objfile.
7369 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7370 (create_signatured_type_table_from_index): Initialize
7371 sig_type->info_or_types_section.
7372 (dw2_get_file_names): Statement lists for type units with DWO files
7373 live in the DWO file.
7374 (create_debug_types_hash_table): New function.
7375 (create_all_type_units): Rewrite.
7376 (init_cu_die_reader): New arg dwo_file, all callers updated.
7377 (init_and_read_dies_worker): Get section from
7378 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7379 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7380 continue reading the CU/TU from there.
7381 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7382 updated. Get section from this_cu->info_or_types_section.
7383 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7384 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7385 DW_FORM_GNU_str_index.
7386 (hash_dwo_file, eq_dwo_file): New functions.
7387 (allocate_dwo_file_hash_table): New function.
7388 (hash_dwo_unit, eq_dwo_unit): New functions.
7389 (allocate_dwo_unit_table): New function.
7390 (dwarf2_locate_dwo_sections): New function.
7391 (struct create_dwo_info_table_data): New type.
7392 (create_debug_info_hash_table_reader): New function.
7393 (create_debug_info_hash_table): New function.
7394 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7395 (lookup_dwo_file): New function.
7396 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7397 (free_dwo_file, free_dwo_file_cleanup): New functions.
7398 (free_dwo_file_from_slot, free_dwo_files): New functions.
7399 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7400 (dwarf2_record_block_ranges): Ditto.
7401 (read_partial_die): Ditto.
7402 (process_enumeration_scope): Update to use type_offset_in_section.
7403 (read_full_die_1): New function.
7404 (read_full_die): Rewrite.
7405 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7406 DW_FORM_GNU_str_index.
7407 (read_addr_index_1, read_addr_index): New functions.
7408 (read_addr_index_from_leb128): New function.
7409 (struct dwarf2_read_addr_index_data): New type.
7410 (dwarf2_read_addr_index_reader): New function.
7411 (dwarf2_read_addr_index): New function.
7412 (read_str_index): New function.
7413 (leb128_size): New function.
7414 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7415 If processing a type unit from a DWO file, get the line section
7416 from the DWO file.
7417 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7418 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7419 DW_FORM_GNU_str_index.
7420 (lookup_die_type): Check whether section offset of type's die is
7421 known before looking it up. Remove assert. Condition can
7422 legimately happen for inter-cu type references.
7423 (dwarf_attr_name): Handle Fission attributes.
7424 (dwarf_form_name): Handle Fission forms.
7425 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7426 DW_FORM_GNU_str_index.
7427 (follow_die_sig): Update to use type_offset_in_section.
7428 (decode_locdesc): New case DW_OP_GNU_addr_index.
7429 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7430 DW_FORM_GNU_str_index.
7431 (cu_debug_loc_section): New function.
7432 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7433 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7434 Free DWO files if present.
7435 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7436
dee91e82
DE
7437 Refactor DIE reading.
7438 * dwarf2read.c (dwarf2_per_objfile): Replace members
7439 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7440 (die_reader_specs): New member "die_section". Temporarily make
7441 member "buffer" non-const, pending constifying all info_ptr uses.
7442 (die_reader_func_ftype): New typedef.
7443 (dw2_get_file_names_reader): New function.
7444 (dw2_get_file_names): Rewrite.
7445 (read_and_check_type_unit_head): Rename arg type_offset to
7446 type_offset_in_tu.
7447 (create_all_type_units): Improve debugging message.
7448 Improve dummy type unit check.
7449 (init_cu_die_reader): New arg "section". All callers updated.
7450 (init_and_read_dies_worker): New function.
7451 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7452 (init_cutu_and_read_dies_no_follow): New function.
7453 (init_cutu_and_read_dies_simple): New function.
7454 (process_psymtab_comp_unit_reader): New function.
7455 (process_psymtab_comp_unit): Delete args section,
7456 is_debug_types_section. Rewrite. All callers updated.
7457 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7458 All callers updated. Rewrite.
7459 (load_partial_comp_unit_reader): New function.
7460 (load_partial_comp_unit): Rewrite.
7461 (skip_children): New arg reader. Delete args buffer, cu.
7462 All callers updated.
7463 (skip_one_die): New arg reader. Delete args buffer, cu.
7464 All callers updated.
7465 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7466 All callers updated.
7467 (load_full_comp_unit_reader): New function.
7468 (load_full_comp_unit): Rewrite.
7469 (read_comp_unit): Delete.
7470 (read_die_and_children_1): Delete, contents moved ...
7471 (read_die_and_children): ... here.
7472 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7473 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7474 All callers updated.
7475 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7476 All callers updated.
7477 (find_partial_die): Rewrite load_all_dies support.
7478 (read_attribute_value): New arg reader. Delete args abfd, cu.
7479 All callers updated.
7480 (read_attribute): New arg reader. Delete args abfd, cu.
7481 All callers updated.
7482 (load_full_type_unit): Add assert.
7483 (read_signatured_type_reader): New function.
7484 (read_signatured_type): Rewrite.
7485 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7486 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7487 All callers updated. Set per_cu->cu = NULL after freeing it.
7488 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7489 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7490 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7491 (set_die_type): Update.
7492 (get_die_type_at_offset): Update.
7493 (read_file_scope): Call prepare_one_comp_unit.
7494 (read_type_unit_scope): Ditto.
7495 (prepare_one_comp_unit): Set producer if present.
7496
72d59e0d
SDJ
74972012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7498
7499 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7500 gettext function on `error'.
7501
0fefef59
DE
75022012-04-27 Doug Evans <dje@google.com>
7503
7504 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7505 is empty.
7506
28106bc2
SDJ
75072012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7508 Tom Tromey <tromey@redhat.com>
7509
7510 * breakpoint.c (struct breakpoint_objfile_data)
7511 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7512 <exception_probes>: New fields.
7513 (free_breakpoint_probes): New function.
7514 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7515 `_Unwind_DebugHook'.
7516 (create_exception_master_breakpoint): Likewise.
7517 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7518 * infrun.c: Including necessary header files for handling SystemTap
7519 probes.
7520 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7521 via SystemTap probes.
7522 (check_exception_resume): Remove `func' argument. Handle exception
7523 unwinding breakpoint set via a SystemTap probe.
7524 (insert_exception_resume_from_probe): New function.
7525
55aa24fb
SDJ
75262012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7527 Tom Tromey <tromey@redhat.com>
7528 Jan Kratochvil <jan.kratochvil@redhat.com>
7529
7530 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7531 (COMMON_OBS): Likewise.
7532 (HFILES_NO_SRCDIR): Add `probe'.
7533 * NEWS: Mention support for static and SystemTap probes.
7534 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7535 SystemTap probes' arguments parser.
7536 * arm-linux-tdep.c: Including headers needed to perform the parsing
7537 of SystemTap probes' arguments.
7538 (arm_stap_is_single_operand): New function.
7539 (arm_stap_parse_special_token): Likewise.
7540 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7541 probes' arguments parser.
7542 * ax-gdb.c (require_rvalue): Removing static declaration.
7543 (gen_expr): Likewise.
7544 * ax-gdb.h (gen_expr): Declaring function.
7545 (require_rvalue): Likewise.
7546 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7547 (bkpt_probe_breakpoint_ops): New variable.
7548 (momentary_breakpoint_from_master): Set the `probe' value.
7549 (add_location_to_breakpoint): Likewise.
7550 (break_command_1): Using proper breakpoint_ops according to the
7551 argument passed by the user in the command line.
7552 (bkpt_probe_insert_location): New function.
7553 (bkpt_probe_remove_location): Likewise.
7554 (bkpt_probe_create_sals_from_address): Likewise.
7555 (bkpt_probe_decode_linespec): Likewise.
7556 (tracepoint_probe_create_sals_from_address): Likewise.
7557 (tracepoint_probe_decode_linespec): Likewise.
7558 (tracepoint_probe_breakpoint_ops): New variable.
7559 (trace_command): Using proper breakpoint_ops according to the
7560 argument passed by the user in the command line.
7561 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7562 static probes on breakpoints and tracepoints.
7563 * breakpoint.h (struct bp_location) <probe>: New field.
7564 * cli-utils.c (skip_spaces_const): New function.
7565 (extract_arg): Likewise.
7566 * cli-utils.h (skip_spaces_const): Likewise.
7567 (extract_arg): Likewise.
7568 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7569 * configure.ac: Append `stap-probe.o' to be generated when ELF
7570 support is present.
7571 * configure: Regenerate.
7572 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7573 * elfread.c: Include `probe.h' and `arch-utils.h'.
7574 (probe_key): New variable.
7575 (elf_get_probes): New function.
7576 (elf_get_probe_argument_count): Likewise.
7577 (elf_evaluate_probe_argument): Likewise.
7578 (elf_compile_to_ax): Likewise.
7579 (elf_symfile_relocate_probe): Likewise.
7580 (stap_probe_key_free): Likewise.
7581 (elf_probe_fns): New variable.
7582 (elf_sym_fns): Add `sym_probe_fns' value.
7583 (elf_sym_fns_lazy_psyms): Likewise.
7584 (elf_sym_fns_gdb_index): Likewise.
7585 (_initialize_elfread): Initialize objfile cache for static
7586 probes.
7587 * gdb_vecs.h (struct probe): New forward declaration.
7588 (probe_p): New VEC declaration.
7589 * gdbarch.c: Regenerate.
7590 * gdbarch.h: Regenerate.
7591 * gdbarch.sh (stap_integer_prefix): New variable.
7592 (stap_integer_suffix): Likewise.
7593 (stap_register_prefix): Likewise.
7594 (stap_register_suffix): Likewise.
7595 (stap_register_indirection_prefix): Likewise.
7596 (stap_register_indirection_suffix): Likewise.
7597 (stap_gdb_register_prefix): Likewise.
7598 (stap_gdb_register_suffix): Likewise.
7599 (stap_is_single_operand): New function.
7600 (stap_parse_special_token): Likewise.
7601 (struct stap_parse_info): Forward declaration.
7602 * i386-tdep.c: Including headers needed to perform the parsing
7603 of SystemTap probes' arguments.
7604 (i386_stap_is_single_operand): New function.
7605 (i386_stap_parse_special_token): Likewise.
7606 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7607 probes' arguments parser.
7608 * i386-tdep.h (i386_stap_is_single_operand): New function.
7609 (i386_stap_parse_special_token): Likewise.
7610 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7611 * mipsread.c (ecoff_sym_fns): Likewise.
7612 * objfiles.c (objfile_relocate1): Support relocation for static
7613 probes.
7614 * parse.c (prefixify_expression): Remove static declaration.
7615 (initialize_expout): Likewise.
7616 (reallocate_expout): Likewise.
7617 * parser-defs.h (initialize_expout): Declare function.
7618 (reallocate_expout): Likewise.
7619 (prefixify_expression): Likewise.
7620 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7621 of SystemTap probes' arguments.
7622 (ppc_stap_is_single_operand): New function.
7623 (ppc_stap_parse_special_token): Likewise.
7624 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7625 probes' arguments parser.
7626 * probe.c: New file, for generic statically defined probe support.
7627 * probe.h: Likewise.
7628 * s390-tdep.c: Including headers needed to perform the parsing of
7629 SystemTap probes' arguments.
7630 (s390_stap_is_single_operand): New function.
7631 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7632 probes' arguments parser.
7633 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7634 * stap-probe.c: New file, for SystemTap probe support.
7635 * stap-probe.h: Likewise.
7636 * symfile.h: Include `gdb_vecs.h'.
7637 (struct sym_probe_fns): New struct.
7638 (struct sym_fns) <sym_probe_fns>: New field.
7639 * symtab.c (init_sal): Initialize `probe' field.
7640 * symtab.h (struct probe): Forward declaration.
7641 (struct symtab_and_line) <probe>: New field.
7642 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7643 locations.
7644 (stop_tracing): Likewise.
7645 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7646
22d2b532
SDJ
76472012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7648 Tom Tromey <tromey@redhat.com>
7649
7650 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7651 and to compile agent expressions.
7652 * infrun.c (siginfo_make_value): New argument `ignore'.
7653 (siginfo_funcs): New struct.
7654 (_initialize_infrun): New argument when calling
7655 `create_internalvar_type_lazy'.
7656 * thread.c (thread_id_make_value): New argument `ignore'.
7657 (thread_funcs): New struct.
7658 (_initialize_thread): New argument when calling
7659 `create_internalvar_type_lazy'.
7660 * tracepoint.c (sdata_make_value): New argument `ignore'.
7661 (sdata_funcs): New struct.
7662 (_initialize_tracepoint): New argument when calling
7663 `create_internalvar_type_lazy'.
7664 * value.c (make_value): New struct.
7665 (create_internalvar_type_lazy): New argument `data'.
7666 (compile_internalvar_to_ax): New function.
7667 (value_of_internalvar): Properly handling `make_value' case.
7668 (clear_internalvar): Likewise.
7669 (show_convenience): Adding `TRY_CATCH' block.
7670 * value.h (internalvar_make_value): Delete, replace by...
7671 (struct internalvar_funcs): ... this.
7672 (create_internalvar_type_lazy) <fun>: Delete argument.
7673 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7674 (compile_internalvar_to_ax): New function.
7675 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7676 (tlb_funcs): New struct.
7677 (_initialize_windows_tdep): New argument when calling
7678 `create_internalvar_type_lazy'.
7679
91da1414
MW
76802012-04-27 Mark Wielaard <mjw@redhat.com>
7681
7682 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7683 see whether it is an address or a constant offset from DW_AT_low_pc.
7684 (dwarf2_record_block_ranges): Likewise.
7685 (read_partial_die): Likewise.
7686
4ab9d8ec
MW
76872012-04-26 Mark Wielaard <mjw@redhat.com>
7688
7689 * MAINTAINERS (Write After Approval): Add myself to the list.
7690
a0911fd0
MR
76912012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7692
7693 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7694 (proc_prettyprint_signal): Likewise.
7695 (proc_prettyprint_faultset): Likewise.
7696 (proc_prettyprint_fault): Likewise.
7697 (proc_prettyprint_actionset): Likewise.
7698 (proc_prettyprint_flags): Move to new proc-flags.c section.
7699 (proc_prettyfprint_flags): New prototype.
7700 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7701 (proc_syscall, proc_cursig): Likewise.
7702 (proc_set_kill_on_last_close): Likewise.
7703 (proc_unset_kill_on_last_close): Likewise.
7704 (proc_set_watchpoint): Make static.
7705 (proc_delete_dead_threads): Likewise.
7706 (procfs_set_watchpoint): Likewise.
7707 (_initialize_procfs): Add prototype.
7708 * proc-events.c: Include proc-utils.h.
7709 (init_syscall_table): Make static.
7710 * proc-api.c (_initialize_proc_api): Add prototype.
7711 * proc-flags.c: Include proc-utils.h.
7712
9009e1ae
MR
77132012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7714
7715 * configure.ac: Add AC_ARG_PROGRAM.
7716 * configure: Regenerate.
7717
4fae6e18
JK
77182012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7719
7720 Fix DW_AT_lower_bound defaults for DWARF-4+.
7721 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7722 high. New variable low_default_is_valid. Implement DWARF-4+
7723 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7724 no default by the DWARF standard.
7725
14132e89 77262012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 7727 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
7728
7729 * infrun.c (handle_inferior_event): Move the check for return
7730 trampolines ahead of the check for function trampolines.
7731 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7732 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7733 (mips_str_mips16_ret_stub): Likewise.
7734 (mips_str_call_fp_stub): Likewise.
7735 (mips_str_call_stub): Likewise.
7736 (mips_str_fn_stub): Likewise.
7737 (mips_str_pic): Likewise.
7738 (mips_in_frame_stub): New function.
7739 (mips_unwind_pc): Return the return address rather than the PC
7740 if the PC of an intermediate frame is inside a call thunk.
7741 (mips_is_stub_suffix): New function.
7742 (mips_is_stub_mode): Likewise.
7743 (mips_get_mips16_fn_stub_pc): Likewise.
7744 (mips_skip_mips16_trampoline_code): Update to handle all the
7745 currently generated stub types. Don't recurse into __fn_stub
7746 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7747 Use cooked register accesses.
7748 (mips_in_return_stub): Reintroduce function.
7749 (mips_skip_trampoline_code): Traverse trampolines recursively.
7750 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7751
518f0db5 77522012-04-26 Joel Brobecker <brobecker@adacore.com>
7753
7754 GDB 7.4.1 released.
7755
3184d3f9
JL
77562012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7757
7758 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7759 * features/arm-with-m-vfp-d16.xml: New file. Describes
7760 Cortex-M with VFPv4-sp-d16 FPU register layout.
7761 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7762 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7763 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7764 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7765 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7766
b6201d44
DE
77672012-04-25 Doug Evans <dje@google.com>
7768
7769 * cli/cli-decode.c (print_doc_line): Use stream instead of
7770 current_uiout.
7771
4e2f8df6
SDJ
77722012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7773
7774 * features/arm-with-iwmmxt.c: Regenerate.
7775 * features/arm-with-m-fpa-layout.c: Likewise.
7776 * features/arm-with-m.c: Likewise.
7777 * features/arm-with-neon.c: Likewise.
7778 * features/arm-with-vfpv2.c: Likewise.
7779 * features/arm-with-vfpv3.c: Likewise.
7780 * features/mips-dsp-linux.c: Likewise.
7781 * features/mips-linux.c: Likewise.
7782 * features/mips64-dsp-linux.c: Likewise.
7783 * features/mips64-linux.c: Likewise.
7784 * features/s390-linux32.c: Likewise.
7785 * features/s390-linux32v1.c: Likewise.
7786 * features/s390-linux32v2.c: Likewise.
7787 * features/s390-linux64.c: Likewise.
7788 * features/s390-linux64v1.c: Likewise.
7789 * features/s390-linux64v2.c: Likewise.
7790 * features/s390x-linux64.c: Likewise.
7791 * features/s390x-linux64v1.c: Likewise.
7792 * features/s390x-linux64v2.c: Likewise.
7793 * features/tic6x-c62x-linux.c: Likewise.
7794 * features/tic6x-c62x.c: Likewise.
7795 * features/tic6x-c64x-linux.c: Likewise.
7796 * features/tic6x-c64x.c: Likewise.
7797 * features/tic6x-c64xp-linux.c: Likewise.
7798 * features/tic6x-c64xp.c: Likewise.
7799 * target-descriptions.c: Only generate `field_type' and `type'
7800 variables when needed.
7801
2def3e66
JB
78022012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7803
7804 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7805
a766d390
DE
78062012-04-25 Doug Evans <dje@google.com>
7807
7808 Initial pass at Go language support.
7809 * NEWS: Mention Go.
7810 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7811 go-valprint.c.
7812 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7813 (YYFILES): Add go-exp.c.
7814 (YYOBJ): Add go-exp.o.
7815 (local-maintainer-clean): Delete go-exp.c.
7816 * defs.h (enum language): Add language_go.
7817 * dwarf2read.c: #include "go-lang.h".
7818 (fixup_go_packaging): New function.
7819 (process_full_comp_unit): Call it when processing Go CUs.
7820 (dwarf2_physname): Add Go support.
7821 (read_file_scope): Handle missing language spec for GNU Go.
7822 (set_cu_language): Handle DW_LANG_Go.
7823 * go-exp.y: New file.
7824 * go-lang.h: New file.
7825 * go-lang.c: New file.
7826 * go-typeprint.c: New file.
7827 * go-valprint.c: New file.
7828 * symtab.c: #include "go-lang.h".
7829 (symbol_set_language): Handle language_go.
7830 (symbol_find_demangled_name, symbol_set_names): Ditto.
7831 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7832
4e2af517
JM
78332012-04-24 Jim Meyering <meyering@redhat.com>
7834
7835 avoid a few strncpy-induced buffer overruns
7836 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7837 fname and psargs before trying to concatenate.
7838 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7839 "name" before applying strchr.
7840
b77b7f52
SCR
78412012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7842
7843 * CONTRIBUTE: Use unified diff instead of context diff when
7844 generating patches.
7845
6321c22a
MR
78462012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7847
7848 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7849 code. Handle JR.HB correctly.
7850
742c84f6
MR
78512012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7852
7853 * mips-tdep.c
7854 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7855 with the other MIPS16 helpers.
7856
7fc7e0c3
SDJ
78572012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7858
7859 * observer.sh: Conditionally declare `args', thus cleaning up
7860 unused instances of this variable.
7861
20388dd6
YQ
78622012-04-24 Yao Qi <yao@codesourcery.com>
7863
7864 Revert this patch to allow breakpoint always-inserted
7865 in record target.
7866 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
7867 * breakpoint.c: Include record.h.
7868 (breakpoints_always_inserted_mode): Return false when the record
7869 target is in use.
20388dd6
YQ
7870
7871 * breakpoint.c (iterate_over_bp_locations): New.
7872 * breakpoint.h: Declare.
7873 New typedef walk_bp_location_callback.
7874 * record.c (record_open): Call record_init_record_breakpoints.
7875 (record_sync_record_breakpoints): New.
7876 (record_init_record_breakpoints): New.
7877 * NEWS: Mention supporting breakpoint always-inserted mode in
7878 record target.
7879
4734f50e
MK
78802012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7881
7882 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7883 any thread.
7884
c326b90e
YQ
78852012-04-24 Yao Qi <yao@codesourcery.com>
7886
7887 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7888 (is_catchpoint): ... it.
7889 (print_one_breakpoint_location): Caller update.
7890 * breakpoint.h: Update declaration.
7891
d8fb5a1e
DM
78922012-04-23 David S. Miller <davem@davemloft.net>
7893
7894 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7895
34431a2a
TT
78962012-04-23 Tom Tromey <tromey@redhat.com>
7897
7898 * buildsym.c (add_free_pendings): Remove.
7899 * buildsym.h (add_free_pendings): Remove.
7900
4568ecf9
DE
79012012-04-23 Doug Evans <dje@google.com>
7902
7903 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7904 attr.u.unsnd instead of attr.u.addr.
7905 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7906 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7907 DW_FORM_ref_udata.
7908 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7909 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7910 DW_FORM_ref_udata.
7911 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7912
dca9aa3a
MR
79132012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7914
7915 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7916 (mips_o32_return_value): Likewise.
7917 (mips_o64_return_value): Likewise.
7918
c8ea1972
PH
79192012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7920
7921 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7922 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7923 their treatment in eval.c.
c8ea1972 7924
8d1b3521
DM
79252012-04-21 David S. Miller <davem@davemloft.net>
7926
7927 * sparc-tdep.c (X_DISP10): Define.
7928 (sparc_analyze_control_transfer): Handle compare-and-branch.
7929
03145bf4
JL
79302012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7931
7932 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7933 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7934
004159a2 79352012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7936 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7937
7938 * mips-tdep.c (mips_float_register_p): New function.
7939 (mips_convert_register_float_case_p): Use mips_float_register_p.
7940 (mips_register_type): Likewise.
7941 (mips_print_register): Likewise.
7942 (print_gp_register_row): Likewise.
7943 (mips_print_registers_info): Likewise.
7944
7f0e6aae
MR
79452012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7946
7947 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7948 of mips16 symbols.
7949
bc17beea
AP
79502012-04-20 Andrew Pinski <apinski@cavium.com>
7951
7952 * MAINTAINERS (Write After Approval): Add myself to the list.
7953
1730a5a5
SDJ
79542012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7955
7956 * MAINTAINERS: Update my e-mail address.
7957
38ea300a
PA
79582012-04-20 Pedro Alves <palves@redhat.com>
7959
7960 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7961 $srcdir.
7962 * configure: Regenerate.
7963
111dfaae
SDJ
79642012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7965
7966 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7967 declaration.
7968 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7969
4fb2c64a
JK
79702012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7971
7972 Fix compilation compatibility with python-2.4
7973 * python/py-type.c (convert_field): Cast ADDRSTRING for
7974 PyObject_SetAttrString as non-const. New comment.
7975
6328eb38
TT
79762012-04-19 Tom Tromey <tromey@redhat.com>
7977
7978 * top.c (quit_target): Use all_cleanups.
7979 * main.c (captured_command_loop): Use all_cleanups.
7980 * exceptions.c (throw_exception): Use all_cleanups.
7981
c971b7fa
PA
79822012-04-19 Pedro Alves <palves@redhat.com>
7983
7984 * Makefile.in (GNULIB_BUILDDIR): New.
7985 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7986 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7987 (CLEANDIRS). Remove gnulib/import.
7988 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7989 (all-lib): Ditto.
7990 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7991 (gnulib/import/Makefile): Replace gnulib/import with
7992 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7993 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7994 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7995 acx_configure_dir.m4.
7996 * acinclude.m4: Include acx_configure_dir.m4.
7997 * acx_configure_dir.m4: New file.
7998 * aclocal.m4: Regenerate.
a09130f9
PA
7999 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8000 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8001 (GNULIB): New variable.
8002 (GNULIB_STDINT_H): Adjust.
8003 (AC_OUTPUT): Don't output gnulib/Makefile.
8004 * gdb/defs.h: Include build-gnulib/config.h.
8005 * aclocal.m4: Regenerate.
8006 * config.in: Regenerate.
8007 * configure: Regenerate.
8008
8009 * gnulib/Makefile.in: New file.
8010 * gnulib/configure.ac: New file.
8011 * gnulib/aclocal.m4: New file.
8012 * gnulib/config.in: New file.
8013 * gnulib/configure: New file.
c971b7fa
PA
8014 * gnulib/: Re-run gnulib-tool to adjust.
8015
b10faa68
DE
80162012-04-19 Doug Evans <dje@google.com>
8017
8018 * cleanups.h (struct cleanup): Move to cleanups.c.
8019 (make_cleanup_dtor_ftype): New typedef.
8020 (make_cleanup_dtor): Use it.
8021 (ALL_CLEANUPS): Replace with ...
8022 (all_cleanups): ... this. Declare. All uses updated.
8023 * cleanups.c: #include "gdb_assert.h".
8024 (sentinel_cleanup): New static global.
8025 (SENTINEL_CLEANUP): Define.
8026 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8027 (make_my_cleanup2): Assert result is non-NULL.
8028 (all_cleanups): New function.
8029 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8030 of NULL.
8031
d8c267cc
PA
80322012-04-19 Pedro Alves <palves@redhat.com>
8033
8034 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8035 Adjust paths to gnulib imported files.
8036
809277f8
PA
80372012-04-19 Pedro Alves <palves@redhat.com>
8038
8039 * gnulib/: Move whole directory ...
8040 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8041 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8042 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8043 (aclocal_m4_deps): Adjust.
8044 * aclocal.m4: Regenerate.
8045 * configure: Regenerate.
8046 * configure.ac: Adjust AC_OUTPUT output.
8047
aad9eab9
YQ
80482012-04-19 Yao Qi <yao@codesourcery.com>
8049
8050 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8051 (vec.o): New rule.
8052 * vec.c: Move it ...
8053 * common/vec.c: ... here.
8054 * vec.h: Move it ...
8055 * common/vec.h: ... here.
8056
48fe4669
YQ
80572012-04-19 Yao Qi <yao@codesourcery.com>
8058
8059 * gdb-code-style.el: New.
8060
770d76d7
PA
80612012-04-18 Pedro Alves <palves@redhat.com>
8062
8063 Update gnulib from latest git.
8064 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8065
8066 * gnulib/Makefile.am: Update.
8067 * gnulib/dummy.c: Update.
8068 * gnulib/extra/arg-nonnull.h: Update.
8069 * gnulib/extra/c++defs.h: Update.
8070 * gnulib/extra/update-copyright: Update.
8071 * gnulib/extra/warn-on-use.h: Update.
8072 * gnulib/inttypes.in.h: Update.
8073 * gnulib/m4/00gnulib.m4: Update.
8074 * gnulib/m4/extensions.m4: Update.
8075 * gnulib/m4/gnulib-cache.m4: Update.
8076 * gnulib/m4/gnulib-common.m4: Update.
8077 * gnulib/m4/gnulib-comp.m4: Update.
8078 * gnulib/m4/gnulib-tool.m4: Update.
8079 * gnulib/m4/include_next.m4: Update.
8080 * gnulib/m4/inttypes-pri.m4: Update.
8081 * gnulib/m4/inttypes.m4: Update.
8082 * gnulib/m4/longlong.m4: Update.
8083 * gnulib/m4/memchr.m4: Update.
8084 * gnulib/m4/memmem.m4: Update.
8085 * gnulib/m4/mmap-anon.m4: Update.
8086 * gnulib/m4/multiarch.m4: Update.
8087 * gnulib/m4/onceonly.m4: Update.
8088 * gnulib/m4/stddef_h.m4: Update.
8089 * gnulib/m4/stdint.m4: Update.
8090 * gnulib/m4/string_h.m4: Update.
8091 * gnulib/m4/warn-on-use.m4: Update.
8092 * gnulib/m4/wchar_h.m4: Update.
8093 * gnulib/m4/wchar_t.m4: Update.
8094 * gnulib/m4/wint_t.m4: Update.
8095 * gnulib/memchr.c: Update.
8096 * gnulib/memmem.c: Update.
8097 * gnulib/stddef.in.h: Update.
8098 * gnulib/stdint.in.h: Update.
8099 * gnulib/str-two-way.h: Update.
8100 * gnulib/string.in.h: Update.
8101 * gnulib/wchar.in.h: Update.
8102
8103 * gnulib/extra/arg-nonnull.h: Delete.
8104 * gnulib/extra/c++defs.h: Delete.
8105 * gnulib/extra/warn-on-use.h: Delete.
8106 * gnulib/m4/wchar_h.m4: Delete.
8107 * gnulib/m4/wint_t.m4: Delete.
8108 * gnulib/wchar.in.h: Delete.
8109
8110 * gnulib/extra/snippets/arg-nonnull.h: New.
8111 * gnulib/extra/snippets/c++defs.h: New.
8112 * gnulib/extra/snippets/warn-on-use.h: New.
8113
8114 * aclocal.m4: Regenerate.
8115 * config.in: Regenerate.
8116 * configure: Regenerate.
8117 * gnulib/Makefile.in: Regenerate.
8118
174e088e
PA
81192012-04-18 Pedro Alves <palves@redhat.com>
8120
8121 Reimport the update-copyright module from gnulib
8122 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8123
8124 * configure: Regenerate.
8125 * gnulib/Makefile.am: Update.
8126 * gnulib/Makefile.in: Regenerate.
8127 * gnulib/extra/update-copyright: Update.
8128 * gnulib/m4/gnulib-cache.m4: Update.
8129 * gnulib/m4/gnulib-comp.m4: Update.
8130
7f533142
JB
81312012-04-18 Tristan Gingold <gingold@adacore.com>
8132
8133 * configure.ac (aix): Put -lpthread into libs.
8134 * configure: Regenerate.
8135
001822aa
TT
81362012-04-18 Tom Tromey <tromey@redhat.com>
8137
8138 * linespec.c (convert_linespec_to_sals): Don't use
8139 SYMBOL_OBJ_SECTION.
8140 (compare_msymbols): Arguments are minsym_and_objfile, not
8141 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8142
db026a31
PA
81432012-04-18 Pedro Alves <palves@redhat.com>
8144
8145 Revert gnulib/ part of:
8146 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8147 Copyright year update in most files (performed by copyright.sh).
8148
12df843f
JK
81492012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8150
8151 Fix 64-bit constants on 32-bit hosts.
8152 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8153 from unsigned long to ULONGEST.
8154 (read_signed_leb128): Change declaration return type from long to
8155 LONGEST.
8156 (dwarf2_const_value_attr): Change declaration parameter value from long
8157 to LONGEST.
8158 (dwarf2_compute_name): Change variable value from long to LONGEST.
8159 (read_unsigned_leb128): Change return type, variable result and some
8160 casts from unsigned long to ULONGEST.
8161 (read_signed_leb128): Change return type, variable result and some
8162 casts from long to LONGEST.
8163 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8164 value from long to LONGEST.
8165 (dwarf2_const_value): Change variable value from long to LONGEST.
8166 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8167 plongest and hex_string.
8168 * symtab.h (struct general_symbol_info): Change ivalue from long to
8169 LONGEST, remove the comment.
8170 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8171 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8172
14e75d8e
JK
81732012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8174
8175 PR symtab/7259:
8176 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8177 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
8178 (ada_discrete_type_low_bound): Fix function comment. Use
8179 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
8180 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8181 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8182 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8183 Use TYPE_FIELD_ENUMVAL.
8184 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8185 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8186 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8187 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8188 TYPE_CODE_ENUM.
8189 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8190 * dwarf2read.c (process_enumeration_scope): Likewise.
8191 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8192 field.bitpos.
8193 (class StructMainTypePrettyPrinter): Support also
8194 FIELD_LOC_KIND_ENUMVAL.
8195 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8196 TYPE_CODE_ENUM.
8197 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8198 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8199 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8200 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8201 field enumval.
8202 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8203 accommodate enumval.
8204 (struct call_site): Adjust loc_kind to accommodate enumval.
8205 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8206 (TYPE_FIELD_ENUMVAL): New macros.
8207 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8208 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8209 TYPE_CODE_ENUM.
8210 * p-typeprint.c (pascal_type_print_base): Likewise.
8211 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8212 enumval.
8213 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8214 * python/py-type.c (convert_field): New variable addrstring. Use
8215 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8216 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8217 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8218 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8219 TYPE_CODE_ENUM.
8220 * valprint.c (generic_val_print): Likewise.
8221
380bca97
DE
82222012-04-17 Doug Evans <dje@google.com>
8223
dcc07052
DE
8224 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8225
380bca97
DE
8226 * dwarf2read.c: Whitespace fixes.
8227 (lookup_signatured_type): Tweak comment.
8228 (get_die_type_at_offset): Fix comment.
8229
ec92004f
JB
82302012-04-17 Joel Brobecker <brobecker@adacore.com>
8231
8232 * xcoffread.c (xcoff_secnum_to_sections): New function.
8233 (secnum_to_section, secnum_to_bfd_section): Reimplement
8234 using xcoff_secnum_to_sections. Rename "secnum" parameter
8235 into "n_scnum".
8236 (RECORD_MINIMAL_SYMBOL): Delete.
8237 (record_minimal_symbol): New function.
8238 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8239 by call to record_minimal_symbol and set misc_func_recorded
8240 to 1. Set last_csect_sec to the XCOFF section index instead
8241 of GDB's section_offset index. Update calls to
8242 prim_record_minimal_symbol_and_info to pass the BFD section
8243 as well.
8244
40301fb7
JB
82452012-04-17 Joel Brobecker <brobecker@adacore.com>
8246
8247 * xcoffread.c (read_xcoff_symtab): Delete variables
8248 last_csect_val and last_csect_sec and associated code.
8249
e0088cfd
DE
82502012-04-17 Doug Evans <dje@google.com>
8251
58d5e2c3
DE
8252 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8253 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8254 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8255 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8256
c27f5738
DE
8257 * cleanups.h: New file.
8258 * cleanups.c: New file.
8259 * Makefile.in (SFILES): Add cleanups.c.
8260 (HFILES_NO_SRCDIR): Add cleanups.h.
8261 (COMMON_OBS): Add cleanups.o.
8262 * defs.h (struct cleanup): Moved to cleanups.h.
8263 (do_cleanups,do_final_cleanups): Ditto.
8264 (discard_cleanups,discard_final_cleanups): Ditto
8265 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8266 (save_cleanups,save_final_cleanups): Ditto.
8267 (restore_cleanups,restore_final_cleanups): Ditto.
8268 (null_cleanup): Ditto.
8269 (make_my_cleanup,make_my_cleanup2): Ditto.
8270 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8271 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8272 (do_cleanups,do_final_cleanups): Ditto.
8273 (discard_cleanups,discard_final_cleanups): Ditto
8274 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8275 (save_cleanups,save_final_cleanups): Ditto.
8276 (restore_cleanups,restore_final_cleanups): Ditto.
8277 (null_cleanup): Ditto.
8278 (make_my_cleanup,make_my_cleanup2): Ditto.
8279 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8280
e0088cfd
DE
8281 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8282 make_my_cleanup.
8283 (make_cleanup_dyn_string_delete): Ditto.
8284 (make_cleanup_ui_file_delete): Ditto.
8285 (make_cleanup_ui_out_redirect_pop): Ditto.
8286 (make_cleanup_free_section_addr_info): Ditto.
8287 (make_cleanup_restore_integer): Ditto.
8288 (make_cleanup_unpush_target): Ditto.
8289 (make_cleanup_value_free_to_mark): Ditto.
8290 (make_cleanup_value_free): Ditto.
8291 (make_cleanup_free_so): Ditto.
8292
4dc84fd1
JK
82932012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8294
8295 New option "set debug auto-load".
8296 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8297 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8298 (auto_load_safe_path_vec_update)
8299 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8300 if DEBUG_AUTO_LOAD.
8301 (file_is_auto_load_safe): New parameters debug_fmt and ....
8302 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8303 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8304 caller by explanatory string.
8305 (_initialize_auto_load): Register "set debug auto-load".
8306 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8307 and ....
8308 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8309 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8310 by explanatory string.
8311 * main.c (captured_main): Likewise.
8312 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8313 (source_section_scripts): Likewise.
8314
bccbefd2
JK
83152012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8316
8317 New option "set auto-load safe-path".
8318 * NEWS: New commands "set auto-load safe-path"
8319 and "show auto-load safe-path".
8320 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8321 (auto_load_safe_path, auto_load_safe_path_vec)
8322 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8323 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8324 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8325 (source_gdb_script_for_objfile): New variable is_safe. Call
8326 file_is_auto_load_safe. Return if it is not.
8327 (struct loaded_script): New field loaded.
8328 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8329 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8330 output "Missing" to "No".
8331 (_initialize_auto_load): New variable cmd. Initialize
8332 auto_load_safe_path. Register "set auto-load safe-path",
8333 "show auto-load safe-path" and "add-auto-load-safe-path".
8334 * auto-load.h (maybe_add_script): Add parameter loaded.
8335 (file_is_auto_load_safe): New declaration.
8336 * config.in: Regenerate.
8337 * configure: Regenerate.
8338 * configure.ac: New parameters --with-auto-load-safe-path
8339 and --without-auto-load-safe-path.
8340 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8341 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8342 * main.c (captured_main): Check file_is_auto_load_safe for
8343 LOCAL_GDBINIT.
8344 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8345 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8346 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8347 not.
8348
bf88dd68
JK
83492012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8350
8351 auto-load: Implementation.
8352 * NEWS: New descriptions for "info auto-load",
8353 "info auto-load gdb-scripts", "info auto-load python-scripts",
8354 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8355 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8356 and "show auto-load-scripts". New description for "set auto-load",
8357 "show auto-load", "set auto-load gdb-scripts",
8358 "show auto-load gdb-scripts", "set auto-load python-scripts",
8359 "show auto-load python-scripts", "set auto-load local-gdbinit",
8360 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8361 "show auto-load libthread-db".
8362 * auto-load.c: Remove include python/python-internal.h. Add includes
8363 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8364 cli/cli-setshow.h.
8365 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8366 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8367 (gdbpy_global_auto_load): Rename to ...
8368 (global_auto_load): ... here.
8369 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8370 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8371 (script_language_gdb, source_gdb_script_for_objfile): New.
8372 (struct loaded_script): New field language.
8373 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8374 LANGUAGE.
8375 (maybe_add_script): Add parameter language. Drop redundant
8376 entry.full_path initialization. Initialize entry.language and
8377 (*slot)->language.
8378 (auto_load_objfile_script): Change parameter suffix to language.
8379 Remove the call of maybe_add_script.
8380 Call language->source_script_for_objfile.
8381 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8382 New.
8383 (collect_matching_scripts): Adjust it for
8384 struct collect_matching_scripts_data.
8385 (auto_load_info_scripts_pattern_nl): New variable.
8386 (info_auto_load_scripts): Rename to ...
8387 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8388 for struct collect_matching_scripts_data.
8389 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8390 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8391 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8392 (auto_load_info_cmdlist_get): New.
8393 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8394 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8395 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8396 "info auto-load local-gdbinit".
8397 * auto-load.h (struct script_language): New.
8398 (gdbpy_global_auto_load): Rename to ...
8399 (global_auto_load): ... here.
8400 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8401 (auto_load_local_gdbinit_loaded): New declarations.
8402 (maybe_add_script): New parameter language.
8403 (auto_load_objfile_script): Change parameter suffix to language.
8404 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8405 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8406 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8407 declarations.
8408 * linux-thread-db.c: Include auto-load.h and ctype.h.
8409 (auto_load_thread_db, show_auto_load_thread_db): New.
8410 (struct thread_db_info): New field filename.
8411 (delete_thread_db_info): Call xfree for FILENAME.
8412 (try_thread_db_load): Initialize FILENAME.
8413 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8414 if !AUTO_LOAD_THREAD_DB.
8415 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8416 (_initialize_thread_db): Install auto_load_thread_db
8417 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8418 as "info auto-load libthread-db".
8419 * main.c (captured_main): Rename gdbpy_global_auto_load to
8420 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8421 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8422 (print_gdb_help): Extend the help for 'local init file'.
8423 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8424 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8425 (auto_load_scripts): Rename to ...
8426 (auto_load_python_scripts): ... here, update the comment.
8427 (gdbpy_load_auto_script_for_objfile): New declaration.
8428 (show_auto_load_python_scripts, script_language_python)
8429 (gdbpy_load_auto_script_for_objfile): New.
8430 (source_section_scripts): Refactor the code.
8431 (load_auto_scripts_for_objfile): Rename to ...
8432 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8433 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8434 (info_auto_load_python_scripts): New.
8435 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8436 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8437 Register "set auto-load-scripts" as its deprecated alias. Register
8438 "info auto-load python-scripts". Register "info auto-load-scripts" as
8439 its deprecated alias.
8440 (load_auto_scripts_for_objfile): Rename to ...
8441 (gdbpy_load_auto_scripts_for_objfile): ... here.
8442 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8443 (gdbpy_load_auto_scripts_for_objfile): ... here.
8444
e2207b9a
JK
84452012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8446
8447 auto-load: Move files.
8448 * Makefile.in (SFILES): Add auto-load.c.
8449 (HFILES_NO_SRCDIR): Add auto-load.h.
8450 (COMMON_OBS): Add auto-load.o.
8451 (distclean): Change .gdbinit for gdb-gdb.gdb.
8452 * auto-load.c: New file, with parts from python/py-auto-load.c.
8453 * auto-load.h: New file, with parts from python/python.h.
8454 * configure: Regenerate.
8455 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8456 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8457 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8458 * main.c: Include auto-load.h.
8459 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8460 command.h, observer.h and progspace.h to auto-load.c. Add include
8461 auto-load.h.
8462 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8463 (struct loaded_script, auto_load_pspace_data)
8464 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8465 (hash_loaded_script_entry, eq_loaded_script_entry)
8466 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8467 (maybe_add_script): Move to auto-load.c.
8468 (source_section_scripts): Change maybe_add_script parameters passing,
8469 use script_not_found_warning_print.
8470 (clear_section_scripts, auto_load_objfile_script)
8471 (auto_load_new_objfile, loaded_script_ptr)
8472 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8473 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8474 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8475 auto_load_new_objfile and info_auto_load_scripts initizations to
8476 auto-load.c.
8477 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8478
e4ab2fad
JK
84792012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8480
8481 Code cleanup.
8482 * charset.c (find_charset_names): Remove variables ix and elt.
8483 Use free_char_ptr_vec.
8484 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8485 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8486 debugdir_end. New variable debugdir_len.
8487 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8488 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8489 declarations.
8490 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8491 and elt. Use free_char_ptr_vec.
8492 * source.c (add_path): Remove variables argv, arg and argv_index.
8493 New variables dir_vec, back_to, ix and name.
8494 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8495 make_cleanup_freeargv. Remove variable separator. Simplify the code
8496 no longer expecting DIRNAME_SEPARATOR.
8497 (openp): Remove variable p, p1 and len. New variables dir_vec,
8498 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8499 no longer expecting DIRNAME_SEPARATOR.
8500 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8501 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8502 debugdir_end.
8503 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8504 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8505 (dirnames_to_char_ptr_vec): New functions.
8506
5ee4ed9f
JK
85072012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8508
8509 Code cleanup.
8510 * source.c (add_path): Remove always true conditional 'p == 0' and
8511 unindent its code block.
8512
f41f5e61
PA
85132012-04-17 Pedro Alves <palves@redhat.com>
8514
8515 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8516 (FIELD_BITPOS_LVAL): ... this.
8517 (FIELD_BITPOS): New.
8518 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8519 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8520 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8521 SET_FIELD_BITPOS.
8522 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8523 SET_FIELD_BITPOS.
8524 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8525 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8526 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8527 SET_FIELD_BITPOS.
8528
945b3a32
JK
85292012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8530
8531 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8532 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8533 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8534 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8535 * jv-lang.c (java_link_class_type): Likewise, once.
8536 * stabsread.c (read_enum_type): Likewise.
8537
42476b70
YQ
85382012-04-16 Yao Qi <yao@codesourcery.com>
8539
8540 * common/agent.c (agent_run_command): Add one more parameter `len'.
8541 Update callers.
8542 * common/agent.h: Update declaration.
8543 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8544 Update.
8545 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8546
8264ba82
AG
85472012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8548
8549 PR mi/13393
8550 * value.c (value_actual_type): New function.
8551 * value.h (value_actual_type): New declaration.
8552 * varobj.c (update_type_if_necessary): New function.
8553 (varobj_create): Call value_actual_type instead of
8554 value_type.
8555 (install_dynamic_child): distinct changed and type changed MI variable
8556 objects.
8557 (update_dynamic_varobj_children): Updated for install_dynamic_child
8558 change. All callers updated.
a09130f9 8559 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8560 the value changed and RTTI is used to determine the type.
8561 (create_child_with_value): Call value_actual_type instead of
8562 value_type.
a09130f9 8563 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8564 specify whether the given value should be casted to enclosing type.
8565 All callers updated.
8566
55a8c076
YQ
85672012-04-14 Yao Qi <yao@codesourcery.com>
8568
8569 Import gnulib module inttypes from git
8570 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8571 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8572 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8573 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8574 * aclocal.m4, config.in, configure: Regenerated.
8575 * gnulib/Makefile.am: Update.
8576 * gnulib/Makefile.in: Update.
8577 * gnulib/m4/gnulib-cache.m4: Update.
8578 * gnulib/m4/gnulib-comp.m4: Update.
8579 * gnulib/inttypes.in.h: New.
8580 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8581 * gnulib/m4/inttypes.m4: New.
55a8c076 8582
ca7781d2
LM
85832012-04-13 Luis Machado <lgustavo@codesourcery.com>
8584
8585 * infrun.c (resume): Update PC address to the real PC after
8586 preparing to do displaced stepping.
8587
e319fa28
DE
85882012-04-12 Doug Evans <dje@google.com>
8589
8590 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8591 All callers updated.
8592
15add3f5
MK
85932012-04-12 Mark Kettenis <kettenis@gnu.org>
8594
8595 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8596
52dc124a
DE
85972012-04-12 Doug Evans <dje@google.com>
8598
0e50663e
DE
8599 * dwarf2read.c (create_all_type_units): Renamed from
8600 create_debug_types_hash_table. All callers updated.
8601
52dc124a
DE
8602 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8603 local type_sig to sig_type, type_offset to type_offset_in_tu.
8604 (hash_signatured_type): Renamed from hash_type_signature,
8605 all callers updated.
8606 (eq_signatured_type): Renamed from eq_type_signature,
8607 all callers updated.
8608 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8609 (process_enumeration_scope): Ditto.
8610 (lookup_signatured_type_at_offset): Ditto.
8611 (load_full_type_unit, read_signatured_type): Ditto.
8612
248fd3bf
YQ
86132012-04-12 Yao Qi <yao@codesourcery.com>
8614
8615 * remote.c (async_remote_interrupt): Correct function name in
8616 debug message.
8617 (async_remote_interrupt_twice): Ditto.
8618
bc3aa6c3
DE
86192012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8620
8621 * source.c (find_and_open_source): Consistently pass resulting
8622 full path through xfullpath.
8623
9e529e1d
JK
86242012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8625
8626 Provide more specific displaced-stepping memory error message.
8627 * infrun.c (displaced_step_prepare): New variable status. Call
8628 target_read_memory instead of read_memory, provide more specific
8629 error message.
8630
82e0cec1
TG
86312012-04-11 Tristan Gingold <gingold@adacore.com>
8632
8633 PR gdb/13901
8634 * darwin-nat.c (darwin_execvp): Revert previous patch.
8635
d987a266
TG
86362012-04-11 Tristan Gingold <gingold@adacore.com>
8637
8638 PR gdb/13901
8639 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8640 in case of change.
8641
016b7430
TG
86422012-04-11 Tristan Gingold <gingold@adacore.com>
8643
8644 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8645 warning.
8646
06fc020f
SCR
86472012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8648
8649 New command 'explore' which helps explore values and types in
8650 scope.
8651 * NEWS: Add an entry about the new 'explore' command.
8652 * data-directory/Makefile.in: Add gdb/command/explore.py
8653 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8654 command using the GDB Python API.
06fc020f 8655
de0919f8 86562012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8657
8658 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8659 extension in jump target calculation.
8660
de0919f8 86612012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8662
8663 * mips-tdep.c (mips32_next_pc): Handle JALX.
8664
2f26ef89
YQ
86652012-04-10 Yao Qi <yao@codesourcery.com>
8666
8667 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8668
2e505b66
YQ
86692012-04-10 Yao Qi <yao@codesourcery.com>
8670
8671 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8672 and gnulib/m4/gnulib-tool.m4.
8673
0d99eb77
DE
86742012-04-10 Doug Evans <dje@google.com>
8675
8676 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8677 (load_partial_dies): Clarify comment.
8678 (find_partial_die): Support rereading type units.
8679 Clarify CU handling, if we know offset is in CU, don't search for the
8680 containing CU. Add comment regarding memory waste.
8681
9a82b8ff
L
86822012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8683
8684 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8685 i386/x32-avx and i386/x32-avx-linux.
8686 (i386/x32-expedite): New.
8687 (i386/x32-linux-expedite): Likewise.
8688 (i386/x32-avx-expedite): Likewise.
8689 (i386/x32-avx-linux-expedite): Likewise.
8690 ($(outdir)/i386/x32.dat): Likewise.
8691 ($(outdir)/i386/x32-linux.dat): Likewise.
8692 ($(outdir)/i386/x32-avx.dat): Likewise.
8693 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8694
8695 * features/i386/x32-avx-linux.xml: New file.
8696 * features/i386/x32-avx.xml: Likewise.
8697 * features/i386/x32-core.xml: Likewise.
8698 * features/i386/x32-linux.xml: Likewise.
8699 * features/i386/x32.xml: Likewise.
8700
8701 * features/i386/x32-avx-linux.c: New. Generated.
8702 * features/i386/x32-avx.c: Likewise.
8703 * features/i386/x32-linux.c: Likewise.
8704 * features/i386/x32.c: Likewise.
8705 * regformats/i386/x32-avx-linux.dat: Likewise.
8706 * regformats/i386/x32-avx.dat: Likewise.
8707 * regformats/i386/x32-linux.dat: Likewise.
8708 * regformats/i386/x32.dat: Likewise.
8709
ee41036f
TG
87102012-04-10 Tristan Gingold <gingold@adacore.com>
8711
8712 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8713 code to kill the inferior.
8714
a7aa5b8a
MK
87152012-04-09 Mark Kettenis <kettenis@gnu.org>
8716
8717 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8718 defines.
8719 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8720 defines.
a09130f9 8721 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8722 (yyvsp): New defines.
8723 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8724 defines.
8725 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8726 defines.
8727 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8728 defines.
8729 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8730 defines.
8731 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8732 defines.
8733
fb57d452
MK
87342012-04-09 Mark Kettenis <kettenis@gnu.org>
8735
a09130f9 8736 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8737 (sparc64_store_arguments): Fix coding style.
8738
cdc7b32f
MK
87392012-04-07 Mark Kettenis <kettenis@gnu.org>
8740
8741 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8742 complex floats, adjust some related comments and tighten a related
8743 assertion.
8744 (sparc64_extract_return_value): Handle complex floats.
8745
7adf1e79
DE
87462012-04-07 Doug Evans <dje@google.com>
8747
8748 * dwarf2read.c (load_partial_dies): Change condition to assert.
8749
50f1ae7b
DE
87502012-04-06 Doug Evans <dje@google.com>
8751
8752 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8753 "mov %rsp,%rbp".
8754
55fa75c3
KB
87552012-04-05 Kevin Buettner <kevinb@redhat.com>
8756
8757 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8758 fencepost error.
8759 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8760 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8761 architecture.
8762
40e084e1
KS
87632012-04-05 Keith Seitz <keiths@redhat.com>
8764
8765 * linespec.c (decode_compound): Remove.
8766 (enum offset_relative_sign): New enum.
8767 (struct line_offset): New struct.
8768 (struct linespec): New struct.
8769 (struct linespec_state): Move file_symtabs,
8770 user_filename, and user_function into struct linespec.
8771 Make result an anonymous struct holding vectors of
8772 symbolp and minsym_and_objfile_d.
8773 Add language member.
8774 (enum ls_token_type): New enum.
8775 (linespec_keywords): New array.
8776 (struct ls_token): New struct.
8777 (struct ls_parser): New struct.
8778 (linespec_lexer_lex_number): New function.
8779 (linespec_lexer_lex_keyword): New function.
8780 (is_ada_operator): New function.
8781 (skip_quote_char): New function.
8782 (copy_token_string): New function.
8783 (is_closing_quote_enclosed): New function.
8784 (find_parameter_list_end): New function.
8785 (linespec_lexer_lex_string): New function.
8786 (linespec_lexer_lex_one): New function.
8787 (linespec_lexer_consume_token): New function.
8788 (linespec_lexer_peek_token): New function.
8789 (cplusplus_error): Remove unused function.
8790 (find_methods): Update comment.
8791 (find_toplevel_char): Return const.
8792 (is_objc_method_format): Remove unused function.
8793 (find_toplevel_string): New function.
8794 (is_linespec_boundary): Remove.
8795 (symbol_not_found_error): New function.
8796 (find_method_overload_end): Remove function.
8797 (unexpected_linespec_error): New function.
8798 (keep_name_info): Remove.
8799 (linespec_parse_line_offset): New function.
8800 (linespec_parse_basic): New function.
8801 (canonicalize_linespec): New function.
8802 (decode_line_internal): Remove.
8803 (create_sals_line_offset): New function adapted from
8804 decode_all_digits.
8805 (convert_linespec_to_sals): New function.
8806 (parse_linespec): New function.
8807 (linespec_parser_new): New function.
8808 (linespec_state_destructor): Change parameter type to
8809 struct linespec_state *.
8810 Add language parameter.
8811 Remove freeing of moved members.
8812 (linespec_parser_delete): New function.
8813 (decode_line_full): Use parse_linespec and linespec_parser_new.
8814 (decode_line_1): Likewise.
8815 (decode_indirect): Rename to ...
8816 (linespec_expression_to_pc): ... this and rewrite
8817 to simply find CORE_ADDR, storing this result for later
8818 conversion to SALs.
8819 (locate_first_half): Remove.
8820 (deocde_objc): Add parameter LS.
8821 Initialize new struct collect_info members.
8822 Handle minimal symbols, too.
8823 (decode_compound): Delete.
8824 (lookup_prefix_sym): Rewrite.
8825 (compare_msymbols): New function.
8826 (find_method): Rewrite.
8827 Do not call cplusplus_error.
8828 (symtabs_from_filename): Rewrite.
8829 (collect_function_symbols): Delete.
8830 (find_function_symbols): Rewrite without ARGPTR-style
8831 processing.
8832 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8833 (decode_dollar): Adapted and renamed to ...
8834 (linespec_parse_variable): ... this.
8835 (find_linespec_symbols): New function.
8836 (decode_label): Adapted and renamed to ...
8837 (find_label_symbols): ... this.
8838 (decode_digits_list_mode): Add and use LS argument.
8839 (decode_digits_ordinary): Likewise.
8840 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8841 If in list mode, allow any symbol class. Otherwise, only
8842 permit LOC_BLOCK symbols.
8843 (minsym_found): Update comments.
8844 (search_minsyms_for_name): Do not convert the matching symbol
8845 into a SAL. Simply push the symbol and objfile into the
8846 result vector.
8847 (decode_variable): Delete. Contents adapted into
8848 find_linespec_symbols.
8849
8850 * cp-support.c (SKIP_SPACE): Remove.
8851 (operator_tokens): Remove unused global.
8852 (cp_validate_operator): Remove.
8853 * cp-support.h (cp_validate_operator): Remove declaration.
8854
a72c8f6a
JK
88552012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8856
8857 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8858 for TYPE_VPTR_FIELDNO.
8859 * valprint.c (valprint_check_validity): Make it global, move the
8860 function comment ...
8861 * value.h (valprint_check_validity): ... to this new declaration.
8862
cf9bb588
TG
88632012-04-02 Tristan Gingold <gingold@adacore.com>
8864
8865 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8866 the STATE32 api for i386 state.
8867 (i386_darwin_store_inferior_registers): Likewise.
8868
17092398
TG
88692012-04-02 Tristan Gingold <gingold@adacore.com>
8870
8871 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8872 SS offset.
8873 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8874 format_string.
8875
ece0061f
TG
88762012-04-02 Tristan Gingold <gingold@adacore.com>
8877
8878 PR gdb/13901
d987a266 8879 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 8880
cf65ecd3
JK
88812012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8882
8883 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8884
9bc3523d
TT
88852012-03-30 Tom Tromey <tromey@redhat.com>
8886
8887 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8888 of TRY_CATCH. Fix error handling.
8889 * python/py-value.c (convert_value_from_python): Move 'old'
8890 declaration to innermost scope.
8891
b1ed564a
JB
88922012-03-29 Joel Brobecker <brobecker@adacore.com>
8893 Andrey Smirnov <andrew.smirnov@gmail.com>
8894
8895 -Wshadow warning fix.
8896 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8897 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8898 Adjust code accordingly.
8899
cb8e9b97
JB
89002012-03-29 Joel Brobecker <brobecker@adacore.com>
8901
8902 * ada-lang.c (symbol_completion_add): Rename parameter
8903 "encoded" into "encoded_p". Ajust code and documentation
8904 accordingly.
8905
c0af1706
JB
89062012-03-29 Joel Brobecker <brobecker@adacore.com>
8907 Andrey Smirnov <andrew.smirnov@gmail.com>
8908
8909 -Wshadow warning fix.
8910 * ada-lang.c (symbol_completion_add): Rename parameter
8911 "wild_match" into wild_match_p. Update code and documentation
8912 accordingly.
8913
6ea35997
JB
89142012-03-29 Joel Brobecker <brobecker@adacore.com>
8915
8916 * ada-lang.c (symbol_completion_match): Rename parameter
8917 "encoded" into "encoded_p". Ajust code and documentation
8918 accordingly.
8919
e701b3c0
JB
89202012-03-29 Joel Brobecker <brobecker@adacore.com>
8921 Andrey Smirnov <andrew.smirnov@gmail.com>
8922
8923 -Wshadow warning fix.
8924 * ada-lang.c (symbol_completion_match): Rename parameter
8925 "wild_match" into "wild_match_p". Adjust code and function
8926 documentation accordingly.
8927
5e2336be
JB
89282012-03-29 Joel Brobecker <brobecker@adacore.com>
8929 Andrey Smirnov <andrew.smirnov@gmail.com>
8930
8931 -Wshadow warning fix.
8932 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8933 "symbol_info" into "info". Adjust code accordingly.
8934 (ada_lookup_symbol): Likewise.
8935
9f88c959
JB
89362012-03-29 Joel Brobecker <brobecker@adacore.com>
8937
8938 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8939 of this function's documentation.
8940
82ccd55e
JB
89412012-03-29 Joel Brobecker <brobecker@adacore.com>
8942 Andrey Smirnov <andrew.smirnov@gmail.com>
8943
8944 -Wshadow warning fix.
8945 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8946 variable into "wild_match_p". Adjust code accordingly.
8947
d0a8ab18
JB
89482012-03-29 Joel Brobecker <brobecker@adacore.com>
8949 Andrey Smirnov <andrew.smirnov@gmail.com>
8950
8951 -Wshadow warning fix.
8952 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8953 parameter into "wild_match_p". Adjust code accordingly.
8954 Document this parameter in the function description.
8955
48b78332
JB
89562012-03-29 Joel Brobecker <brobecker@adacore.com>
8957 Andrey Smirnov <andrew.smirnov@gmail.com>
8958
8959 -Wshadow warning fix.
8960 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8961 "wild_match" parameter to "wild_match_p" (-Wshadow).
8962
2e6e0353
JB
89632012-03-29 Joel Brobecker <brobecker@adacore.com>
8964
8965 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8966 in function documentation.
8967
dc4024cd
JB
89682012-03-29 Joel Brobecker <brobecker@adacore.com>
8969 Andrey Smirnov <andrew.smirnov@gmail.com>
8970
8971 -Wshadow warning fix.
8972 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8973 variable into wild_match_p. Adjust code accordingly.
8974
6c88661c
JB
89752012-03-29 Joel Brobecker <brobecker@adacore.com>
8976 Andrey Smirnov <andrew.smirnov@gmail.com>
8977
8978 * ada-valprint.c (ada_val_print_1): Move the code handling
8979 TYPE_CODE_ENUM inside its own lexical block. Declare
8980 variables len and val there, instead of in the function's
8981 top level block. Avoid declaring deref_val again in a way
8982 that shadows another variable of the same name declared
8983 in one of the up-level blocks. Just re-use the up-level
8984 variable instead.
8985
4e5c77fe
JB
89862012-03-29 Joel Brobecker <brobecker@adacore.com>
8987
8988 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8989 Replace block_found argument by symbol_info. Adjust
8990 implementation accordingly. Add function documentation.
8991 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8992 Fix documentation.
8993 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8994 * ada-exp.y (write_object_renaming): Adjust to new
8995 ada_lookup_encoded_symbol API.
8996
1c0ac8c7
JB
89972012-03-29 Joel Brobecker <brobecker@adacore.com>
8998
8999 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9000 documentation.
9001
2aaed979
KB
90022012-03-28 Rathish C <rathish.c@kpitcummins.com>
9003
9004 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9005 (v850_register_name): Add the mpu and fpu register names.
9006 (v850e_register_name): Add the mpu and fpu register names.
9007 (v850e2_register_name): New function.
a09130f9 9008 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
9009 bfd_mach_v850e2v3.
9010
927fbba6
JB
90112012-03-28 Joel Brobecker <brobecker@adacore.com>
9012
9013 * NEWS: Add entry for Ada varobj support.
9014
d32cafc7
JB
90152012-03-28 Joel Brobecker <brobecker@adacore.com>
9016
9017 * varobj.c (default_value_is_changeable_p): New function,
9018 extracted from varobj_value_is_changeable_p. Add declaration.
9019 (ada_value_is_changeable_p): New function, extracted from
9020 varobj_value_is_changeable_p. Add declaration.
9021 (struct language_specific): New field "value_is_changeable_p".
9022 (languages): Add entries for new field.
9023 (varobj_create): Set language before calling install_new_value.
9024 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9025 "value_is_changeable_p" language callback.
9026
181875a4
JB
90272012-03-28 Joel Brobecker <brobecker@adacore.com>
9028
9029 * ada-varobj.h, ada-varobj.c: New files.
9030 * Makefile.in (SFILES): Add ada-varobj.c.
9031 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9032 (COMMON_OBS): Add ada-varobj.o.
9033
7a290c40
JB
90342012-03-28 Joel Brobecker <brobecker@adacore.com>
9035
9036 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9037 (struct language_specific): New field "value_has_mutated".
9038 (languages): Set field "value_has_mutated" in each entry of array.
9039 (varobj_value_has_mutated): New function.
9040 (varobj_udpdate): Add handling of type mutation.
9041 (value_of_root): Add handling of type mutation.
9042 (ada_value_has_mutated): New function.
9043
ca9b8b9c
PA
90442012-03-28 Pedro Alves <palves@redhat.com>
9045
9046 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9047 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9048
cc0265cd
TT
90492012-03-28 Tom Tromey <tromey@redhat.com>
9050
9051 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9052 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9053 before returning.
9054
3ad2ec6f
TT
90552012-03-28 Tom Tromey <tromey@redhat.com>
9056
9057 * .dir-locals.el: New file.
9058
4a6510ba
PA
90592012-03-28 Pedro Alves <palves@redhat.com>
9060
9061 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9062
5a75128f
JB
90632012-03-28 Joel Brobecker <brobecker@adacore.com>
9064
9065 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9066 handling for r0.
9067
f99d8bf4
PA
90682012-03-27 Pedro Alves <palves@redhat.com>
9069
9070 Eliminate struct ui_stream.
9071
9072 * ui-out.h (struct ui_stream): Delete.
9073 (ui_out_field_stream): Adjust prototype.
9074 (ui_out_stream_new, ui_out_stream_delete)
9075 (make_cleanup_ui_out_stream_delete): Delete declarations.
9076 * ui-out.c (ui_out_field_stream): Change prototype to take a
9077 ui_file instead of a ui_stream. Adjust.
9078 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9079 (make_cleanup_ui_out_stream_delete): Delete.
9080 * breakpoint.c (print_breakpoint_location)
9081 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9082 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9083 * disasm.c (dump_insns): Ditto.
9084 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9085 prototype.
9086 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9087 ui_stream/ui_out_stream_new.
9088 * infcmd.c (print_return_value): Ditto.
9089 * osdata.c (info_osdata_command): Don't allocate a local
9090 ui_stream.
9091 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9092 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9093 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9094 allocate a local ui_stream.
9095 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9096 instead of ui_stream/ui_out_stream_new.
9097 (list_args_or_locals): Don't allocate a local ui_stream.
9098 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9099 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9100 ui_stream/ui_out_stream_new.
9101 * cli/cli-setshow.c (do_setshow_command): Ditto.
9102
6350a066 91032012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 9104
6350a066
PA
9105 * arm-linux-tdep.c (arm_linux_init_abi): Call
9106 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9107 * arm-tdep.c (arm_process_record): New function.
9108 (deallocate_reg_mem): New function.
9109 (decode_insn): New function.
9110 (thumb_record_branch): New function.
9111 (thumb_record_ldm_stm_swi(): New function.
9112 (thumb_record_misc): New function.
9113 (thumb_record_ld_st_stack): New function.
9114 (thumb_record_ld_st_imm_offset): New function.
9115 (thumb_record_ld_st_reg_offset(): New function.
9116 (thumb_record_add_sub_cmp_mov): New function.
9117 (thumb_record_shift_add_sub): New function.
9118 (arm_record_coproc_data_proc): New function.
9119 (arm_record_coproc): New function.
9120 (arm_record_b_bl): New function.
9121 (arm_record_ld_st_multiple): New function.
9122 (arm_record_ld_st_reg_offset): New function.
9123 (arm_record_ld_st_imm_offset): New function.
9124 (arm_record_data_proc_imm): New function.
9125 (arm_record_data_proc_misc_ld_str): New function.
9126 (arm_record_extension_space): New function.
9127 (arm_record_strx): New function.
9128 (sbo_sbz): New function.
9129 (struct insn_decode_record): New structure for arm insn record.
9130 (REG_ALLOC): New macro for reg allocations.
9131 (MEM_ALLOC): New macro for memory allocations.
9132 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 9133
89e028e2
AS
91342012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9135
9136 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9137 (store_register): Likewise.
9138
6350a066 91392012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 9140
6350a066 9141 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 9142
5b43fab2
JK
91432012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9144
9145 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9146 Describe also the option "auto".
9147
b5453b95
RH
91482012-03-22 Richard Henderson <rth@redhat.com>
9149
9150 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9151 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9152
227ee7fc
RH
91532012-03-22 Richard Henderson <rth@redhat.com>
9154
9155 * jit.c (jit_read_code_entry): Compute alignment and offset of
9156 int64_t member before computing entry_size.
9157
7b282c5a
SCR
91582012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9159
9160 Python scripting: Add new method Value.referenced_value to
9161 gdb.Value which can dereference pointer as well as reference
9162 values.
9163 * NEWS: Add entry under 'Python scripting' about the new method
9164 Value.referenced_value on gdb.Value objects.
9165 * python/py-value.c (valpy_referenced_value): New function
9166 defining a new method on gdb.Value objects which can dereference
9167 pointer and reference values.
9168
0c83539f
SCR
91692012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9170
9171 * MAINTAINERS (Write After Approval): Add myself to the list.
9172
7ccffd7c
KB
91732012-03-21 Kevin Buettner <kevinb@redhat.com>
9174
9175 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9176 in addition to "main".
9177
bd0b9f9e
JB
91782012-03-21 Joel Brobecker <brobecker@adacore.com>
9179
9180 * expression.h (op_name): Add declaration.
9181 * expprint.c (op_name): Remove declaration. Make non-static.
9182 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9183
a5362b9a
TS
91842012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9185
9186 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9187 of struct siginfo.
9188 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9189 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9190 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9191 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9192 (linux_nat_get_siginfo): Likewise.
9193 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9194 (linux_nat_get_siginfo): Likewise.
9195 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9196 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9197 * procfs.c (gdb_siginfo_t): Likewise.
9198
adcadaab
MF
91992012-03-21 Mike Frysinger <vapier@gentoo.org>
9200
9201 * .gitignore: Ignore more files.
9202
e278ad5b
PA
92032012-03-20 Pedro Alves <palves@redhat.com>
9204
9205 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9206 returns.
9207
741e63d7
YQ
92082012-03-20 Yao Qi <yao@codesourcery.com>
9209
9210 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9211 comment.
9212
b64f50a1
JK
92132012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9214
9215 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9216 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9217 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9218 sect_offset.
9219 * dwarf2expr.h (cu_offset, sect_offset): New types.
9220 (struct dwarf_expr_context_funcs) <dwarf_call>
9221 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9222 sect_offset.
9223 (struct dwarf_expr_context) <len>: Improve the comment.
9224 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9225 cu_offset and sect_offset.
9226 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9227 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9228 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9229 * dwarf2loc.h: Include dwarf2expr.h.
9230 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9231 and sect_offset.
9232 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9233 Improve the comment.
9234 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9235 (struct signatured_type, struct line_header, struct partial_die_info)
9236 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9237 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9238 (get_die_type_at_offset, create_cus_from_index)
9239 (create_signatured_type_table_from_index, dw2_get_file_names)
9240 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9241 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9242 (create_debug_types_hash_table, process_psymtab_comp_unit)
9243 (load_partial_comp_unit, create_all_comp_units)
9244 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9245 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9246 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9247 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9248 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9249 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9250 (find_partial_die, read_attribute_value, lookup_die_type)
9251 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9252 (is_ref_attr): New function comment.
9253 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9254 Use cu_offset and sect_offset.
9255 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9256 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9257 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9258 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9259 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9260 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9261 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9262 sect_offset.
9263
e97a38f7
JK
92642012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9265
9266 Code cleanup.
9267 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9268 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9269 with xfree.
9270 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9271
8320cc4f
JK
92722012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9273
9274 * NEWS: Describe new options --init-command=FILE, -ix and
9275 --init-eval-command=COMMAND, -iex.
9276 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9277 CMDARG_INIT_COMMAND.
9278 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9279 "init-command", "init-eval-command", "ix" and "iex" to the variable
9280 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9281 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9282 (print_gdb_help): Describe --init-command=FILE, -ix and
9283 --init-eval-command=COMMAND, -iex.
9284
26743505
JK
92852012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9286
9287 Code cleanup.
9288 * main.c (struct cmdarg): Move it here from main. Add more comments.
9289 (cmdarg_s, VEC (cmdarg_s)): New.
9290 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9291 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9292 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9293 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9294 of CMDARG.
9295
5ff5c7b4
TT
92962012-03-19 Tom Tromey <tromey@redhat.com>
9297
9298 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9299
ab260dad
JK
93002012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9301
9302 PR symtab/13777
9303 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9304 GCC >=4.5.
9305
c366c1f0
TT
93062012-03-16 Chris January <chris.january@allinea.com>
9307
9308 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9309 of clear.
9310
e16edb45
TT
93112012-03-16 Chris January <chris.january@allinea.com>
9312
9313 * source.c (add_path): Use memmove instead of strcpy because the
9314 strings overlap.
9315
53ba8333
JB
93162012-03-16 Joel Brobecker <brobecker@adacore.com>
9317
9318 * value.h (set_value_parent): Add declaration.
9319 * value.c (set_value_parent): New function.
9320 (value_address): If VALUE->PARENT is not NULL, then use it as
9321 the base address instead of VALUE->LOCATION.address.
9322 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9323 the same as OBJ's address. Adjust V's offset accordingly.
9324 Set V's parent.
9325
481860b3
GB
93262012-03-16 Gary Benson <gbenson@redhat.com>
9327
9328 PR breakpoints/10738
9329 * dwarf2read.c (use_deprecated_index_sections): New global.
9330 (struct partial_die_info): New member may_be_inlined.
9331 (read_partial_die): Set may_be_inlined where appropriate.
9332 (add_partial_subprogram): Add partial symbols for partial
9333 DIEs that may be inlined.
9334 (new_symbol_full): Add inlined subroutines to the current
9335 scope.
9336 (write_psymtabs_to_index): Bump version number.
9337 (dwarf2_read_index): Read only version 6 indices unless
9338 use_deprecated_index_sections is set.
9339 * linespec.c (symbol_and_data_callback): New structure.
9340 (iterate_inline_only): New function.
9341 (iterate_over_all_matching_symtabs): New argument
9342 "include_inline". If nonzero, also call the callback for
9343 symbols representing inlined subroutines.
9344 (lookup_prefix_sym): Pass extra argument to the above.
9345 (find_function_symbols): Likewise.
9346 (add_matching_symbols_to_info): Likewise.
9347 * NEWS: Mention that GDB can now set breakpoints on inlined
9348 functions.
9349
d0e7e15a
PM
93502012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9351
9352 * p-typeprint.c (pascal_type_print_method_args):
9353 Fix display of parameter of methods.
9354
3d354654
PM
93552012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9356
9357 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9358 Add missing prototype.
9359
cafe75b0
JK
93602012-03-16 Yao Qi <yao@codesourcery.com>
9361 Jan Kratochvil <jan.kratochvil@redhat.com>
9362
9363 Fix false compilation warning.
9364 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9365
25f8c692
JL
93662012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9367 Pedro Alves <pedro@codesourcery.com>
9368
9369 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9370 (arm_register_g_packet_guesses): New function.
9371 (arm_gdbarch_init): Don't force a target description with
9372 registers when the executable is detected as M-profile. Instead
9373 set gdbarch->tdep->is_m. Register `g' packet guesses.
9374 (_initialize_arm_tdep): Initialize the new target description.
9375 * features/arm-with-m-fpa-layout.xml: New description.
9376 * features/arm-with-m-fpa-layout.c: New, generated.
9377
35c63cd8
JB
93782012-03-15 Joel Brobecker <brobecker@adacore.com>
9379
9380 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9381 Update function description.
9382 (insert_bp_location): Do not wipe bl->target_info out.
9383 * mem-break.c: #include "gdb_string.h".
9384 (default_memory_insert_breakpoint): Do not call target_read_memory
9385 with a pointer to the breakpoint's shadow_contents buffer. Use
9386 a local buffer instead.
9387 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9388
57651221
TT
93892012-03-15 Tom Tromey <tromey@redhat.com>
9390
9391 * NEWS: Mention "info vtbl", not "info vtable".
9392 * cp-support.c (info_vtbl_command): Fix comment.
9393 (_initialize_cp_support): Fix text.
9394
410528f0
TT
93952012-03-15 Tom Tromey <tromey@redhat.com>
9396
9397 * cp-valprint.c (cp_print_value_fields): Use
9398 print_function_pointer_address for vtable slot.
9399
c4aeac85
TT
94002012-03-15 Tom Tromey <tromey@redhat.com>
9401
9402 * gnu-v3-abi.c (struct value_and_voffset): New.
9403 (hash_value_and_voffset, eq_value_and_voffset)
9404 (compare_value_and_voffset, compute_vtable_size)
9405 (print_one_vtable, gnuv3_print_vtable): New functions.
9406 (init_gnuv3_ops): Initialize 'print_vtable' field.
9407 * cp-support.c (info_vtbl_command): New function.
9408 (_initialize_cp_support): Add "info vtbl".
9409 * cp-abi.h (cplus_print_vtable): Declare.
9410 (struct cp_abi_ops) <print_vtable>: New field.
9411 * cp-abi.c (cplus_print_vtable): New function.
9412 * NEWS: Update.
9413
95cbceff
TT
94142012-03-15 Tom Tromey <tromey@redhat.com>
9415
9416 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9417 iterate_over_symbols.
9418
589b4a32
DE
94192012-03-14 Doug Evans <dje@google.com>
9420
9421 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9422 DW_OP_GNU_parameter_ref.
9423
e837f12a
JK
94242012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9425
9426 Fix double prompt of 'interpreter-exec mi'.
9427 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9428 (mi_interpreter_resume): use it.
9429 (mi_execute_command_input_handler): New function.
9430 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9431 mi_execute_command_input_handler.
9432
ff1e4526 94332012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
9434
9435 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9436 prototype.
9437 (darwin_debug_port_info): Make static.
9438 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9439 * machoread.c (_initialize_machoread): Add prototype.
9440 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9441 (i386_darwin_set_control, i386_darwin_get_control)
9442 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9443 i386_darwin_get_status, i386_darwin_get_control):
9444 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9445
d8a5d6ee
JB
94462012-03-13 Joel Brobecker <brobecker@adacore.com>
9447
9448 * ax-gdb.c (gen_usual_unary): Remove special handling of
9449 enum and bool types.
9450
af381b8c
JB
94512012-03-13 Joel Brobecker <brobecker@adacore.com>
9452
9453 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9454
786c562f
JB
94552012-03-13 Joel Brobecker <brobecker@adacore.com>
9456
9457 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9458
e3ebf1bb
JB
94592012-03-13 Chris January <chris.january@allinea.com>
9460
9461 * aix-thread.c (fill_sprs): Store the floating point registers
9462 at the correct offsets into vals.
9463
c5b7e1cb
DE
94642012-03-13 Doug Evans <dje@google.com>
9465
16899756
DE
9466 * NEWS: Mention symbol-reloading has been deleted.
9467 * symfile.c (symbol_reloading): Delete.
9468 (show_symbol_reloading): Delete.
9469 (_initialize_symfile): Delete set/show symbol-reloading.
9470
c5b7e1cb
DE
9471 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9472 read_in_chain until we have successfully read it in.
9473 (load_full_comp_unit): Ditto.
9474 (read_signatured_type): Add comment.
9475
46cb6474
JB
94762012-03-13 Chris January <chris.january@allinea.com>
9477
9478 * stabsread.c (fix_common_block): Change type of valu argument
9479 to CORE_ADDR.
9480
76219d77
JB
94812012-03-13 Chris January <chris.january@allinea.com>
9482
9483 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9484 instruction.
9485
87b0bb13
JK
94862012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9487
9488 * common/linux-procfs.c (linux_proc_get_int): New, from
9489 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9490 field.
9491 (linux_proc_get_tgid): Only call linux_proc_get_int.
9492 (linux_proc_get_tracerpid): New.
9493 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9494 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9495 linux_proc_pid_has_state.
9496 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9497 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9498 (linux_ptrace_attach_warnings): New.
9499 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9500 New declaration.
9501 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9502 (linux_nat_attach): New variables ex, buffer, message and message_s.
9503 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9504
5f572dec
JK
95052012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9506
9507 * Makefile.in (linux-ptrace.o): New.
9508 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9509 from linux-nat.c.
9510 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9511 * common/linux-ptrace.c: New file.
9512 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9513 * config/arm/linux.mh: Likewise.
9514 * config/i386/linux.mh: Likewise.
9515 * config/i386/linux64.mh: Likewise.
9516 * config/ia64/linux.mh: Likewise.
9517 * config/m32r/linux.mh: Likewise.
9518 * config/m68k/linux.mh: Likewise.
9519 * config/mips/linux.mh: Likewise.
9520 * config/pa/linux.mh: Likewise.
9521 * config/powerpc/linux.mh: Likewise.
9522 * config/powerpc/ppc64-linux.mh: Likewise.
9523 * config/powerpc/spu-linux.mh: Likewise.
9524 * config/s390/s390.mh: Likewise.
9525 * config/sparc/linux.mh: Likewise.
9526 * config/sparc/linux64.mh: Likewise.
9527 * config/xtensa/linux.mh: Likewise.
9528 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9529 common/linux-procfs.c.
9530 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9531
44f238bb
PA
95322012-03-13 Hui Zhu <teawater@gmail.com>
9533 Pedro Alves <palves@redhat.com>
9534
9535 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9536 CREATE_BREAKPOINT_FLAGS_INSERTED.
9537 (create_breakpoint_sal, create_breakpoints_sal)
9538 (base_breakpoint_create_breakpoints_sal)
9539 (tracepoint_create_breakpoints_sal)
9540 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9541 down.
9542 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9543 (ftrace_command, strace_command): Adjust.
9544 (create_tracepoint_from_upload): Pass
9545 CREATE_BREAKPOINT_FLAGS_INSERTED.
9546 * breakpoint.h (enum breakpoint_create_flags): New.
9547 (create_breakpoint): New flags parameter.
9548 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9549 * python/py-breakpoint.c (bppy_init): Adjust.
9550 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9551 * spu-tdep.c (spu_catch_start): Adjust.
9552
1e51243a
PA
95532012-03-13 Pedro Alves <palves@redhat.com>
9554 Hui Zhu <teawater@gmail.com>
9555 Yao Qi <yao@codesourcery.com>
9556
9557 * remote.c (struct remote_state): New field `starting_up'.
9558 (remote_start_remote): Set and clear it.
9559 (remote_can_download_tracepoint): If starting up, return false.
9560
fa3064dd
YQ
95612012-03-13 Yao Qi <yao@codesourcery.com>
9562
9563 * inferior.h (struct inferior): Remove fields any_syscall_count,
9564 syscalls_counts and total_syscalls_count. Move them to new
9565 struct catch_syscall_inferior_data in breakpoint.c.
9566 * breakpoint.c: Call DEF_VEC_I(int).
9567 (struct catch_syscall_inferior_data): New.
9568 (get_catch_syscall_inferior_data): New.
9569 (catch_syscall_inferior_data_cleanup): New.
9570 (insert_catch_syscall): Update to access data in
9571 struct catch_syscall_inferior_data.
9572 (insert_catch_syscall): Likewise.
9573 (remove_catch_syscall): Likewise.
9574 (remove_catch_syscall): Likewise.
9575 (is_syscall_catchpoint_enabled): Likewise.
9576 (add_catch_command): Likewise.
9577 (_initialize_breakpoint): Register cleanup.
9578 * breakpoint.h: Removed DEF_VEC_I(int).
9579 * dwarf2loc.c: Call DEF_VEC_I(int).
9580 * mi/mi-main.c: Likewise.
9581
460fac3c
MK
95822012-03-12 Mark Kettenis <kettenis@gnu.org>
9583
9584 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9585
e1aca11e
JB
95862012-03-12 Chris January <chris.january@allinea.com>
9587
9588 * aix-thread.c (_initialize_aix_thread): Add prototype.
9589 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9590 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9591
649c7061
JB
95922012-03-12 Joel Brobecker <brobecker@adacore.com>
9593
9594 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9595 include of "amd64-nat.h".
9596
0b49e518
TT
95972012-03-12 Tom Tromey <tromey@redhat.com>
9598
9599 * buildsym.c (record_pending_block): Now static.
9600 * buildsym.h: (record_pending_block): Remove.
9601
fd24fa94
AT
96022012-03-12 Andreas Tobler <andreast@fgznet.ch>
9603
9604 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9605
ba919b58
TT
96062012-03-09 Tom Tromey <tromey@redhat.com>
9607
9608 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9609 producer_is_gxx_lt_4_6>: New fields.
9610 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9611
a48e046c
TT
96122012-03-09 Tom Tromey <tromey@redhat.com>
9613
9614 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9615
6f5e9362
JB
96162012-03-08 Joel Brobecker <brobecker@adacore.com>
9617
9618 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9619 prototype.
9620
8d037db9
JB
96212012-03-08 Joel Brobecker <brobecker@adacore.com>
9622
9623 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9624
4e841acf
JK
96252012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9626
9627 Fix -Wmissing-prototypes build.
9628 * arm-linux-nat.c (get_thread_id): Make it static.
9629 * xtensa-linux-nat.c (get_thread_id): Likewise.
9630
c6030312
JB
96312012-03-08 Joel Brobecker <brobecker@adacore.com>
9632
9633 * server.c (process_point_options): If a conditional expression
9634 is found, only print a message if remote_debug is nonzero.
9635
52323be9
LM
96362012-03-08 Luis Machado <lgustavo@codesourcery.com>
9637
9638 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9639 of internal error for unknown/unsupported types.
9640
7fe25d9b
JK
96412012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9642
9643 Fix CU relative vs. absolute DIE offsets.
9644 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9645 offset to offset_in_cu.
9646 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9647 TYPE_OFFSET.
9648 (dwarf2_fetch_die_location_block): Rename parameter offset to
9649 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9650
05e7c244
JK
96512012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9652
9653 * libunwind-frame.c: Rename to ...
9654 * ia64-libunwind-tdep.c: ... here.
9655 * libunwind-frame.h: Rename to ...
9656 * ia64-libunwind-tdep.h: ... here.
9657 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9658 ia64-libunwind-tdep.h.
9659 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9660 * README (--with-libunwind): Rename to ...
9661 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9662 * config.in: Regenerate.
9663 * configure: Regenerate.
9664 * configure.ac: New option --with-libunwind-ia64, make the
9665 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9666 Remove AC_DEFINE for HAVE_LIBUNWIND.
9667 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9668 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9669 Rename libunwind-frame in the general comment.
9670 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9671 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9672 Move forward declarations inside #ifndef. Rename libunwind-frame in
9673 the general comment.
9674 * ia64-tdep.c: Rename libunwind-frame.h #include to
9675 ia64-libunwind-tdep.h.
9676 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9677 (ia64_libunwind_descr): Rename libunwind-frame to
9678 ia64-libunwind-tdep in these function comments.
9679 * ia64-tdep.h: Rename libunwind-frame.h #include to
9680 ia64-libunwind-tdep.h.
9681 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9682 ia64-libunwind-tdep in that data comment.
9683
3755cbfd
JK
96842012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9685
9686 * libunwind-frame.h (struct frame_unwind): New declaration.
9687
d1cda5d9
JB
96882012-03-08 Joel Brobecker <brobecker@adacore.com>
9689
9690 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9691 "set breakpoint condition-evaluation" command.
9692
a0ba0aa2
TG
96932012-03-08 Tristan Gingold <gingold@adacore.com>
9694
9695 * sparc-stub.c: Move to stubs/
9696 * sh-stub.c: Likewise.
9697 * m68k-stub.c: Likewise.
9698 * m32r-stub.c: Likewise.
9699 * i386-stub.c: Likewise.
9700
7b8b6d6d
AS
97012012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9702
007cafee
AS
9703 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9704 linux_get_siginfo_type.
9705
7b8b6d6d
AS
9706 * m68klinux-nat.c: Include "gdb_proc_service.h".
9707 (PTRACE_GET_THREAD_AREA): Define.
9708 (ps_get_thread_area): New function.
9709
bba74b36
YQ
97102012-03-08 Yao Qi <yao@codesourcery.com>
9711
9712 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9713 `xsnprintf'.
9714 (remote_query_attached): Likewise.
9715 (remote_static_tracepoint_marker_at): Likewise.
9716 (remote_set_permissions): Likewise.
9717 (remote_detach_1, extended_remote_attach_1): Likewise.
9718 (send_g_packet, remote_vkill): Likewise.
9719 (extended_remote_disable_randomization): Likewise.
9720 (remote_add_target_side_condition): Likewise.
9721 (remote_insert_breakpoint): Likewise.
9722 (remote_remove_breakpoint): Likewise.
9723 (remote_insert_watchpoint): Likewise.
9724 (remote_remove_watchpoint): Likewise.
9725 (remote_insert_hw_breakpoint): Likewise.
9726 (remote_insert_hw_breakpoint): Likewise.
9727 (remote_remove_hw_breakpoint): Likewise.
9728 (remote_download_command_source): Likewise.
9729 (remote_download_tracepoint): Likewise.
9730 (remote_download_trace_state_variable): Likewise.
9731 (remote_disable_tracepoint): Likewise.
9732 (remote_trace_set_readonly_regions): Likewise.
9733 (remote_get_tracepoint_status): Likewise.
9734 (remote_trace_find): Likewise.
9735 (remote_get_trace_state_variable_value): Likewise.
9736 (remote_set_disconnected_tracing): Likewise.
9737 (remote_set_circular_trace_buffer): Likewise.
9738 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9739 (remote_use_agent): Likewise.
9740 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9741 Update callers.
9742
9b224c5e
PA
97432012-03-07 Pedro Alves <palves@redhat.com>
9744
9745 * NEWS: Mention QProgramSignals.
9746 * inferior.h (update_signals_program_target): Declare.
9747 * infrun.c: (update_signals_program_target): New.
9748 (handle_command): Update the target of the new program signals
9749 array changes.
9750 * remote.c (PACKET_QProgramSignals): New enum.
9751 (last_program_signals_packet): New global.
9752 (remote_program_signals): New.
9753 (remote_start_remote): Update the target with the program signals
9754 list.
9755 (remote_protocol_features): Add entry for QPassSignals.
9756 (remote_open_1): Free anc clear last_program_signals_packet.
9757 (init_remote_ops): Install remote_program_signals.
9758 * target.c (update_current_target): Adjust.
9759 (target_program_signals): New.
9760 * target.h (struct target_ops) <to_program_signals>: New field.
9761 (target_program_signals): Declare.
9762
74c48cbb
PA
97632012-03-07 Pedro Alves <palves@redhat.com>
9764
9765 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9766 extensions.
9767
0c13fc49
AS
97682012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9769
9770 * m68klinux-nat.c (getregs_supplies): Make static.
9771 (getfpregs_supplies): Likewise.
9772 (have_ptrace_getregs): Likewise.
9773
1281d2a3
JB
97742012-03-06 Joel Brobecker <brobecker@adacore.com>
9775
9776 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9777 in call to get_die_type_at_offset.
9778
2b03b41d
SS
97792012-03-06 Stan Shebs <stan@codesourcery.com>
9780
9781 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9782 * mi/mi-cmd-disas.c: Ditto.
9783 * mi/mi-cmd-env.c: Ditto.
9784 * mi/mi-cmd-file.c: Ditto.
9785 * mi/mi-cmd-stack.c: Ditto.
9786 * mi/mi-cmd-target.c: Ditto.
9787 * mi/mi-cmd-var.c: Ditto.
9788 * mi/mi-cmds.c: Ditto.
9789 * mi/mi-cmds.h: Ditto.
9790 * mi/mi-console.c: Ditto.
9791 * mi/mi-getopt.c: Ditto.
9792 * mi/mi-getopt.h: Ditto.
9793 * mi/mi-interp.c: Ditto.
9794 * mi/mi-main.c: Ditto.
9795 * mi/mi-out.c: Ditto.
9796 * mi/mi-parse.c: Ditto.
9797 * mi/mi-parse.h: Ditto.
9798 * mi/mi-symbol-cmds.c: Ditto.
9799
9800 * mi/mi-getopt.h: Move mi_opt struct up.
9801 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9802 return.
9803 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9804
c988ad87
TT
98052012-03-06 Tom Tromey <tromey@redhat.com>
9806
9807 * proc-service.c (ps_pglobal_lookup): Set the current program
9808 space.
9809
1b7c1b10
PA
98102012-03-06 Pedro Alves <palves@redhat.com>
9811
9812 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9813
3c182069
JB
98142012-03-05 Joel Brobecker <brobecker@adacore.com>
9815
9816 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9817
2e794194
JK
98182012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9819
9820 Code cleanup.
9821 * common/linux-osdata.c (linux_common_core_of_thread): New function
9822 comment.
9823 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9824 call by linux_common_core_of_thread.
9825 (linux_nat_core_of_thread_1): Remove.
9826 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9827 * linux-thread-db.c: Include linux-osdata.h.
9828 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9829 linux_common_core_of_thread.
9830
9f9f1f31
TT
98312012-03-05 Tom Tromey <tromey@redhat.com>
9832
9833 * value.c (value_primitive_field): Don't fetch contents for
9834 non-virtual bases.
9835
b7b189f3
TT
98362012-03-05 Tom Tromey <tromey@redhat.com>
9837
9838 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9839
05b8a789 98402012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 9841
5538f557
JB
9842 * s390-nat.c: Include "gregset.h".
9843
75528772
JK
98442012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9845
9846 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9847 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9848 (libunwind_load): New variable so_error, use it for dlerror. Try to
9849 load also LIBUNWIND_SO_7.
9850
275418ae
PA
98512012-03-05 Pedro Alves <palves@redhat.com>
9852
9853 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9854 is not NULL, and remove resulting dead code.
9855
5cbb9812
TS
98562012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9857
9858 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9859 prologue to sh_analyze_prologue.
9860 (sh_analyze_prologue): Make better use of such an upper limit, and
9861 generally be more cautious about accessing memory.
9862
541515ad
TT
98632012-03-05 Tom Tromey <tromey@redhat.com>
9864
9865 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9866 _initialize_ia64_hpux_tdep.
9867
b4d36fb8
PA
98682012-03-05 Pedro Alves <palves@redhat.com>
9869
24490249
PA
9870 PR gdb/13766
9871
b4d36fb8
PA
9872 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9873 the register state is clear, supply explicit zero, instead of
9874 marking the register unavailable.
9875
60c9a3c0
TG
98762012-03-05 Tristan Gingold <gingold@adacore.com>
9877
9878 * NEWS: Mention OpenVMS ia64 new target.
9879
696759ad
TG
98802012-03-05 Tristan Gingold <gingold@adacore.com>
9881
9882 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9883 (ia64_unw_accessors, ia64_unw_rse_accessors)
9884 (ia64_libunwind_descr): Declare.
9885 * ia64-vms-tdep.c: New file.
9886 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9887 (ia64_libunwind_descr): Make them public.
9888 * configure.tgt: Add ia64-*-*vms*.
9889 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9890 (ALLDEPFILES): Add ia64-vms-tdep.c
9891
34864976
TG
98922012-03-05 Tristan Gingold <gingold@adacore.com>
9893
169081d0
TG
9894 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9895 * remote.c (PACKET_qXfer_uib): New enum value.
9896 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9897 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9898 (_initialize_remote): Call add_packet_config_cmd for
9899 xfer:uib packet.
9900
99012012-03-05 Tristan Gingold <gingold@adacore.com>
9902
9903 * osabi.c (gdb_osabi_names): Add OpenVMS.
9904 (generic_elf_osabi_sniffer): Likewise.
9905 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9906
6597b100
JK
99072012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 Removed unused code.
9910 * libunwind-frame.c (libunwind_frame_unwind)
9911 (libunwind_frame_base_address): Remove.
9912 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9913
87399aa1
YQ
99142012-03-04 Yao Qi <yao@codesourcery.com>
9915
9916 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9917 remove trailing new line.
9918 (agent_run_command, agent_run_command): Add _ markup.
9919 (agent_capability_check): Likewise.
9920
abf1152a
JK
99212012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9922
9923 * breakpoint.c (set_condition_evaluation_mode): Set
9924 CONDITION_EVALUATION_MODE unconditionally.
9925
5808517f
YQ
99262012-03-03 Yao Qi <yao@codesourcery.com>
9927
9928 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9929 * common/agent.h: Update declaration.
9930 * inf-child.c (inf_child_use_agent): New.
9931 (inf_child_can_use_agent): New.
9932 (inf_child_target): Initialize fields `to_use_agent'
9933 and `to_can_use_agent'.
9934 * agent.c (agent_new_objfile): New.
89b7509a 9935 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9936 observer.
9937
9938 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9939 New.
89b7509a 9940 (linux_target_install_ops): Initialize field
5808517f
YQ
9941 `to_static_tracepoint_markers_by_strid'.
9942 * remote.c (free_current_marker): Move it to ...
9943 * tracepoint.c (free_current_marker): ... here. New.
9944 (cleanup_target_stop): New.
9945 * tracepoint.h: Declare free_current_marker.
9946 * NEWS: Add one entry about `info static-tracepoint-marker'.
9947
58b4daa5
YQ
99482012-03-03 Yao Qi <yao@codesourcery.com>
9949
9950 * common/agent.c (agent_loaded_p): New.
89b7509a 9951 (agent_look_up_symbols): New global.
58b4daa5
YQ
9952 * common/agent.h: Declare agent_loaded_p.
9953
8ffcbaaf
YQ
99542012-03-03 Yao Qi <yao@codesourcery.com>
9955
9956 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9957 (agent_capability_check, agent_capability_invalidate): New.
9958 (symbol_list): New array element.
9959 * common/agent.h (enum agent_capa): New.
9960 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9961
d1feda86
YQ
99622012-03-03 Yao Qi <yao@codesourcery.com>
9963
9964 * target.h (struct target_ops) <to_use_agent>: New field.
9965 (struct target_ops) <to_can_use_agent>: New field.
9966 (target_use_agent, target_can_use_agent): New macro.
9967 * target.c (update_current_target): Update.
9968 * remote.c: New enum `PACKET_QAgent'.
9969 (remote_protocol_features): Add a new element.
9970 (remote_use_agent, remote_can_use_agent): New.
9971 (init_remote_ops): Initialize field `can_use_agent' with
9972 remote_can_use_agent. Intiailize field `use_agent' with
9973 remote_use_agent.
9974 * common/agent.c (use_agent): New global.
9975 * common/agent.h: Declare it.
9976 * tracepoint.c (info_static_tracepoint_markers_command): Add
9977 comment.
9978 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9979 (COMMON_OBS): Add common/agent.o and agent.o
9980 (common-agent.o): New rule.
9981 * agent.c: New.
9982
2fa291ac
YQ
99832012-03-03 Yao Qi <yao@codesourcery.com>
9984
9985 * common/agent.c: New.
9986 * common/agent.h: New.
9987 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9988 AC_CHECK_HEADERS.
9989 * configure, configh.in: Regenerated.
9990
9fc05685
KB
99912012-03-02 Kevin Buettner <kevinb@redhat.com>
9992
9993 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9994 unless it exists for this architecture.
9995
a5ee536b
JB
99962012-03-02 Joel Brobecker <brobecker@adacore.com>
9997
9998 * language.h (struct language_defn): New "method" la_read_var_value.
9999 * findvar.c: #include "language.h".
10000 (default_read_var_value): Renames read_var_value. Rewrite
10001 function description.
10002 (read_var_value): New function.
10003 * value.h (default_read_var_value): Add prototype.
10004 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10005 New functions.
10006 (ada_language_defn): Add entry for la_read_var_value.
10007 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10008 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10009 language_defn structures to add entry for new la_read_var_value
10010 field.
10011
f59f708a
PA
100122012-03-02 Tom Tromey <tromey@redhat.com>
10013 Pedro Alves <palves@redhat.com>
10014
10015 PR breakpoints/13776:
10016 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10017 breakpoints.
10018 (delete_longjmp_breakpoint_at_next_stop): New.
10019 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10020 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10021 before deleting the inferior. Add comments.
10022 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10023 breakpoints immediately, but only on next stop. Move that code
10024 next to where we mark other breakpoints for deletion.
10025
44099a67
JB
100262012-03-02 Joel Brobecker <brobecker@adacore.com>
10027
10028 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10029 marker.
10030 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10031 violation.
10032
2a2ef594
PA
100332012-03-02 Pedro Alves <palves@redhat.com>
10034
10035 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10036
b261e0c5
UW
100372012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10038
10039 Fix -Wmissing-prototypes build.
10040 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10041 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10042 (gdbsim_has_memory): Likewise.
10043
a95babbf
YQ
100442012-03-02 Yao Qi <yao@codesourcery.com>
10045
10046 Fix -Wmissing-prototypes build.
10047 * charset.c (phony_iconv_open): Make static.
10048 (phony_iconv_close, phony_iconv): Likewise.
10049 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10050 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10051 prototype.
10052 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10053 * ser-mingw.c (create_select_thread): Make static.
10054 * windows-termcap.c (tgetent): New prototype.
10055 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10056
d603d4b3
JK
100572012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10058
10059 Fix -Wmissing-prototypes build.
10060 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10061 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10062 (_initialize_loadable): New prototypes.
10063
7fb3ad1f
DE
100642012-03-02 Doug Evans <dje@google.com>
10065
10066 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10067 abbrev table, read_comp_unit will do it.
10068
693be288
JK
100692012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 Fix -Wmissing-prototypes build.
10072 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10073 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10074 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10075 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10076 (_initialize_arm_symbian_tdep): New prototype.
10077 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10078 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10079 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10080 static.
10081 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10082 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10083 prototype.
10084 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10085 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10086 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10087 static.
10088 * moxie-tdep.c (moxie_process_record): Likewise.
10089 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10090 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10091 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10092 (_initialize_rl78_tdep): New prototype.
10093 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10094 (_initialize_rx_tdep): New prototype.
10095 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10096 (_initialize_darwin_solib): New prototype.
10097 * solib-spu.c: Include solib-spu.h.
10098 (_initialize_spu_solib): New prototype.
10099 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10100 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10101 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10102 (tic6x_software_single_step): Make it static.
10103 (_initialize_tic6x_tdep): New prototype.
10104
638234e5
JK
101052012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10106
10107 Fix -Wmissing-prototypes build.
10108 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10109 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10110
f4a6f16d
JK
101112012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10112
10113 Fix -Wmissing-prototypes build.
10114 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10115 (frv_have_stopped_data_address): Remove.
10116
04dcf5fa
JK
101172012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10118
10119 Fix -Wmissing-prototypes build.
10120 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10121 * sh-tdep.c: Include sh64-tdep.h.
10122 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10123 * sh64-tdep.c: Include sh64-tdep.h.
10124 * sh64-tdep.h: New file.
10125
19080931
MR
101262012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10127
10128 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10129
9aac7884
MR
101302012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10131
10132 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10133 sp_regnum once the gdbarch_init_osabi hook has been called.
10134
a385295e
MR
101352012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10136
10137 * mips-tdep.c (mips32_bc1_pc): New function.
10138 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10139 BPOSGE32 and BPOSGE64 instructions.
10140 (deal_with_atomic_sequence): Likewise.
10141 (mips32_instruction_has_delay_slot): Likewise.
10142
1faeff08 101432012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
10144 Chris Dearman <chris@mips.com>
10145 Maciej W. Rozycki <macro@codesourcery.com>
10146 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
10147
10148 * features/mips-dsp.xml: New file.
10149 * features/mips64-dsp.xml: New file.
10150 * features/mips-dsp-linux.xml: New file.
10151 * features/mips64-dsp-linux.xml: New file.
10152 * features/Makefile (WHICH): Add mips-dsp-linux and
10153 mips64-dsp-linux.
10154 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10155 * features/mips-dsp-linux.c: New file.
10156 * features/mips64-dsp-linux.c: New file.
10157 * regformats/mips-dsp-linux.dat: New file.
10158 * regformats/mips64-dsp-linux.dat: New file.
10159 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10160 registers.
10161 (mips64_linux_register_addr): Likewise.
10162 (mips64_linux_regsets_fetch_registers): Likewise.
10163 (mips64_linux_regsets_store_registers): Likewise.
10164 (mips64_linux_fetch_registers): Update call to
10165 mips64_linux_regsets_fetch_registers.
10166 (mips64_linux_store_registers): Update call to
10167 mips64_linux_regsets_store_registers.
10168 (mips_linux_read_description): Probe for DSP registers.
10169 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10170 and initialize_tdesc_mips64_dsp_linux.
10171 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10172 Remove padding of no longer used embedded register slots.
10173 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10174 (MIPS_RESTART_REGNUM): Redefine enum value.
10175 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10176 strings.
10177 (mips_tx39_reg_names): Likewise.
10178 (mips_linux_reg_names): New array of register names for Linux
10179 targets.
10180 (mips_register_name): Check for a null pointer in
10181 mips_processor_reg_names and return an empty string.
10182 (mips_register_type): Exclude embedded registers for the IRIX
10183 and Linux ABIs.
10184 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10185 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10186 DSP registers.
10187 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10188 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10189 (mips_gdbarch_init): Likewise. Initialize internal register
10190 indices for the Linux ABI. Use dynamic numbers to refer to
10191 registers, as applicable, while parsing the target description.
10192 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10193
263689d8
JB
101942012-03-01 Joel Brobecker <brobecker@adacore.com>
10195
10196 * frame.h (read_frame_register_unsigned): Fix typo in function
10197 description.
10198
f3b4f45c
PA
101992012-03-01 Pedro Alves <palves@redhat.com>
10200
10201 * jit-reader.in [!__cplusplus]
10202 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10203
b03a2011
PA
102042012-03-01 Pedro Alves <palves@redhat.com>
10205
10206 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10207 * configure: Regenerate.
10208
70221824
PA
102092012-03-01 Pedro Alves <palves@redhat.com>
10210
10211 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10212 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10213 (ftrace_command, strace_command): Make static.
10214 * d-lang.c (_initialize_d_language): Declare.
10215 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10216 * dwarf2loc.c (_initialize_dwarf2loc):
10217 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10218 * exec.c (exec_get_section_table): Make static.
10219 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10220 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10221 * inferior.c (remove_inferior_command, add_inferior_command)
10222 (clone_inferior_command): Make static.
10223 * linux-nat.c (linux_nat_thread_address_space)
10224 (linux_nat_core_of_thread): Make static.
10225 * linux-tdep.c (_initialize_linux_tdep): Declare.
10226 * objc-lang.c (_initialize_objc_lang): Declare.
10227 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10228 Make static.
10229 (_initialize_opencl_language): Declare.
10230 * record.c (_initialize_record): Declare.
10231 * remote.c (demand_private_info, remote_get_tib_address)
10232 (remote_supports_cond_tracepoints)
10233 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10234 Make static.
10235 * skip.c (_initialize_step_skip): Declare.
10236 * symtab.c (skip_prologue_using_lineinfo): Make static.
10237 * tracepoint.c (delete_trace_state_variable)
10238 (trace_variable_command, delete_trace_variable_command)
10239 (get_uploaded_tsv, find_matching_tracepoint_location)
10240 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10241 Make static.
10242 * value.c (pack_unsigned_long): Make static.
10243 * varobj.c (varobj_ensure_python_env): Make static.
10244 * windows-tdep.c (_initialize_windows_tdep): Declare.
10245 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10246
33fbcbee
PA
102472012-03-01 Pedro Alves <palves@redhat.com>
10248
10249 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10250 gdbarch parameter.
10251 (linux_init_abi): Install it as has_shared_address_space gdbarch
10252 callback.
10253
44d0cd3b
PA
102542012-03-01 Pedro Alves <palves@redhat.com>
10255
10256 * observer.c (observer_test_first_notification_function)
10257 (observer_test_second_notification_function)
10258 (observer_test_third_notification_function): Add declarations.
10259
ed01b82c
PA
102602012-03-01 Pedro Alves <palves@redhat.com>
10261
10262 * common/signals.c (default_target_signal_to_host)
10263 (default_target_signal_from_host): Move ...
10264 * arch-utils.c: ... here.
10265 * arch-utils.h (default_target_signal_to_host)
10266 (default_target_signal_from_host): Declare.
10267
10268 * common/signals.c (target_signal_from_command): Move ...
10269 * infrun.c: ... here.
10270 * inferior.h (target_signal_from_command): Declare.
10271 * target.h (target_signal_from_command)
10272 (default_target_signal_from_host, default_target_signal_to_host):
10273 Delete declarations.
10274
10275 * common/signals.c (_initialize_signals): Delete.
10276
c9b87335
PA
102772012-03-01 Pedro Alves <palves@redhat.com>
10278
10279 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10280 both __cplusplus and !__cplusplus.
10281
9340a6c0
PA
102822012-03-01 Pedro Alves <palves@redhat.com>
10283
10284 * psymtab.c (find_and_open_source): Delete declaration.
10285 * source.c (find_and_open_source): Move comment ...
10286 * source.h (find_and_open_source): ... to this new declaration.
10287
e451c4a1
PA
102882012-03-01 Pedro Alves <palves@redhat.com>
10289
10290 * inline-frame.c: Include inline-frame.h.
10291
983fb104
PA
102922012-03-01 Pedro Alves <palves@redhat.com>
10293
10294 * tui/tui-data.c (set_gen_win_origin): Delete.
10295 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10296 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10297
5fbce5df
PA
102982012-03-01 Pedro Alves <palves@redhat.com>
10299
10300 * remote.c (encode_actions): Delete declaration.
10301 * tracepoint.c (encode_actions): Make extern.
10302 * tracepoint.h (encode_actions): Declare.
10303
49a8461d
PA
103042012-03-01 Pedro Alves <palves@redhat.com>
10305
10306 * python/py-breakpoint.c: Include python.h.
10307 * python/py-continueevent.c (create_continue_event_object): Make
10308 static.
10309 * python/py-lazy-string.c (stpy_get_type): Make static.
10310 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10311 Make static.
10312 * python/py-utils.c (unicode_to_target_python_string): Make
10313 static.
10314 * python/py-value.c: Include python.h.
10315
9079102f
PA
103162012-03-01 Pedro Alves <palves@redhat.com>
10317
10318 * inferior.c (delete_threads_of_inferior): Delete.
10319
a298c5e8
PA
103202012-03-01 Pedro Alves <palves@redhat.com>
10321
10322 Import fallback definitions from glibc.
10323
10324 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10325 ps_prochandle): Forward declare.
10326 (ps_err_e): Use glibc's comments.
10327 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10328 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10329 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10330 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10331 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10332 (struct ps_prochandle): Adjust comment.
10333
e3084549
PA
103342012-03-01 Pedro Alves <palves@redhat.com>
10335
10336 * ada-lang.c (ada_modulus_from_name): Delete.
10337 * ada-lex.l (lexer_init): Make static.
10338
ad5f7d6e
PA
103392012-03-01 Pedro Alves <palves@redhat.com>
10340
10341 PR gdb/13767
10342
10343 * frame.c (read_frame_register_unsigned): New.
10344 * frame.h (read_frame_register_unsigned): Declare.
10345 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10346 Handle it.
10347 (print_i387_control_word): New parameter `control_p'. Handle it.
10348 (i387_print_float_info): Handle unavailable float registers.
10349
e0a4d108
KS
103502012-03-01 Keith Seitz <keiths@redhat.com>
10351
10352 * linespec.c (decode_line_2): Sort the list of methods
10353 alphabetically before presenting the user with a selection
10354 menu.
10355
122d1940
DE
103562012-03-01 Doug Evans <dje@google.com>
10357
10358 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10359 has_namespace_info.
10360 (dwarf2_read_abbrevs): Remove corresponding initialization.
10361
7d74f244
DE
103622012-03-01 Scott J. Goldman <scottjg@vmware.com>
10363
10364 * NEWS: Mention new python command class gdb.COMMAND_USER.
10365 * cli/cli-cmds.c (show_user): Print error when used on a python
10366 command.
10367 (init_cli_cmds): Update documentation strings for "show user" and
10368 "set/show max-user-call-depth" to clarify that it does not apply to
10369 python commands.
10370 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10371 error check.
10372 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10373 gdb python api.
10374 * top.c (execute_command): Only execute a user-defined command as a
10375 legacy macro if c->user_commands is set.
10376
e88acd96
TT
103772012-03-01 Tom Tromey <tromey@redhat.com>
10378
10379 * valprint.h (struct generic_val_print_decorations): New.
10380 (generic_val_print): Declare.
10381 * valprint.c (generic_val_print): New function.
10382 * p-valprint.c (p_decorations): New global.
10383 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10384 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10385 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10386 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10387 * m2-valprint.c (m2_decorations): New global.
10388 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10389 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10390 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10391 TYPE_CODE_ERROR>: Call generic_val_print.
10392 * f-valprint.c (f_decorations): New global.
10393 (f_val_print): Use print_function_pointer_address.
10394 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10395 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10396 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10397 generic_val_print.
10398 * c-valprint.c (c_decorations): New global.
10399 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10400 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10401 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10402 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10403 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10404 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10405 case.
10406
d3eab38a
TT
104072012-03-01 Tom Tromey <tromey@redhat.com>
10408
10409 * valprint.c (val_print): Update.
10410 * p-valprint (pascal_val_print): Return void.
10411 * p-lang.h (pascal_val_print): Return void.
10412 * m2-valprint.c (m2_val_print): Return void.
10413 * m2-lang.h (m2_val_print): Return void.
10414 * language.h (struct language_defn) <la_val_print>: Return void.
10415 * language.c (unk_lang_val_print): Return void.
10416 * jv-valprint.c (java_val_print): Return void.
10417 * jv-lang.h (java_val_print): Return void.
10418 * f-valprint.c (f_val_print): Return void.
10419 * f-lang.h (f_val_print): Return void.
10420 * d-valprint.c (d_val_print): Return void.
10421 (dynamic_array_type): Update.
10422 * d-lang.h (d_val_print): Return void.
10423 * c-valprint.c (c_val_print): Return void.
10424 * c-lang.h (c_val_print): Return void.
10425 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10426 void.
10427 * ada-lang.h (ada_val_print): Return void.
10428
35c0084b
TT
104292012-03-01 Tom Tromey <tromey@redhat.com>
10430
10431 * value.h (val_print): Return void.
10432 * valprint.c (val_print): Return void.
10433
a1f5dd1b
TT
104342012-03-01 Tom Tromey <tromey@redhat.com>
10435
10436 * value.h (common_val_print): Return void.
10437 * valprint.c (common_val_print): Return void.
10438
8e069a98
TT
104392012-03-01 Tom Tromey <tromey@redhat.com>
10440
10441 * value.h (value_print): Return void.
10442 * valprint.c (value_print): Return void.
10443 * p-valprint.c (pascal_value_print): Return void.
10444 * p-lang.h (pascal_value_print): Return void.
10445 * language.h (struct language_defn) <la_value_print>: Return
10446 void.
10447 * language.c (unk_lang_value_print): Return void.
10448 * jv-valprint.c (java_value_print): Return void.
10449 * jv-lang.h (java_value_print): Return void.
10450 * f-valprint.c (c_value_print): Don't declare.
10451 Include c-lang.h.
10452 * c-valprint.c (c_value_print): Return void.
10453 * c-lang.h (c_value_print): Return void.
10454 * ada-valprint.c (ada_value_print): Return void.
10455 * ada-lang.h (ada_value_print): Return void.
10456
be335936
TT
104572012-03-01 Tom Tromey <tromey@redhat.com>
10458
10459 * value.c (value_primitive_field): Handle virtual base classes.
10460
b0db66a7
TT
104612012-03-01 Tom Tromey <tromey@redhat.com>
10462
10463 * gdbtypes.h (struct vbase): Remove.
10464
132c57b4
TT
104652012-03-01 Tom Tromey <tromey@redhat.com>
10466
10467 * c-valprint.c (print_function_pointer_address): Move...
10468 * valprint.c: ... here. Make non-static.
10469 * m2-valprint.c (print_function_pointer_address): Remove.
10470 * valprint.h (print_function_pointer_address): Declare.
10471
e41eec66
JB
104722012-03-01 Joel Brobecker <brobecker@adacore.com>
10473
10474 * NEWS: Document the fact that one can provide a condition when
10475 creating an Ada exception catchpoint.
10476
19c37f24
TT
104772012-03-01 Tom Tromey <tromey@redhat.com>
10478
10479 * valprint.c (val_print_type_code_flags): Fix placement of
10480 trailing brace.
10481
f0fed3a3
JB
104822012-03-01 Joel Brobecker <brobecker@adacore.com>
10483
10484 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10485 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10486 environment variable before calling update-copyright.
10487
8ba85d85
JB
104882012-03-01 Joel Brobecker <brobecker@adacore.com>
10489
10490 * gnulib/extra/update-copyright: Update to the latest from
10491 gnulib's git repository.
10492 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10493 variable to 2 instead of 1.
10494
8219b1e8
JB
104952012-02-29 Joel Brobecker <brobecker@adacore.com>
10496
10497 * varobj.c (c_value_of_variable): Remove dead code.
10498
718cb7da
JB
104992012-02-29 Joel Brobecker <brobecker@adacore.com>
10500
10501 * ada-lex.p (processId): Do not modify already encoded IDs.
10502 Update function documentation.
10503
739593e0
JB
105042012-02-29 Joel Brobecker <brobecker@adacore.com>
10505
10506 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10507 "name" with "struct symbol *name_sym".
10508 * ada-exp.y (write_var_or_type): Update call to
10509 ada_find_renaming_symbol.
10510 "name" with "struct symbol *name_sym". Adjust Implementation
10511 accordingly. Adjust the function documentation.
10512
852dff6c
JB
105132012-02-29 Joel Brobecker <brobecker@adacore.com>
10514
10515 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10516 * ada-lang.c (ada_find_any_type): Add advance declaration.
10517 Make static. Replace ada_find_any_symbol by
10518 ada_find_any_type_symbol.
10519 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10520 Improve function description. Make static.
10521 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10522 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10523
1b611343
JB
105242012-02-29 Joel Brobecker <brobecker@adacore.com>
10525
10526 * ada-lang.c (struct tag_args): Delete.
10527 (ada_get_tsd_type): Function body moved up in source file.
10528 (ada_tag_name_1, ada_tag_name_2): Delete.
10529 (ada_get_tsd_from_tag): New function.
10530 (ada_tag_name_from_tsd): New function.
10531 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10532 to determine the tag name.
10533
41246937
JB
105342012-02-29 Joel Brobecker <brobecker@adacore.com>
10535
10536 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10537 declaration.
10538 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10539 function.
10540
ffde82bf
JB
105412012-02-29 Joel Brobecker <brobecker@adacore.com>
10542
10543 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10544
2ad01556
JB
105452012-02-29 Joel Brobecker <brobecker@adacore.com>
10546
10547 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10548 full searches.
10549
99b1c762
JB
105502012-02-29 Joel Brobecker <brobecker@adacore.com>
10551
10552 * ada-lang.c (constrained_packed_array_type): If there is a
10553 parallel XA type, use it to determine the array index type.
10554
2d4a02ee
JB
105552012-02-29 Joel Brobecker <brobecker@adacore.com>
10556
10557 * ada-valprint.c (ada_val_print_1): If our value is a reference
10558 to an array descriptor, dereference it before converting it
10559 to a simple array.
10560
c48db5ca
JB
105612012-02-29 Joel Brobecker <brobecker@adacore.com>
10562
10563 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10564 creating fixed value.
10565 (ada_value_ind, ada_coerce_ref, assign_component)
10566 (ada_evaluate_subexp): Remove call to unwrap_value before
10567 call to ada_to_fixed_value.
10568
2e6fda7d
JB
105692012-02-29 Joel Brobecker <brobecker@adacore.com>
10570
10571 * ada-lang.c (to_fixed_array_type): Set result's type name.
10572
5845583d
JB
105732012-02-29 Joel Brobecker <brobecker@adacore.com>
10574
10575 * ada-lang.c (catch_ada_exception_command_split): Add new
10576 argument cond_string. Add support for condition at end of
10577 "catch exception" commands.
10578 (ada_decode_exception_location): Add new argument cond_string.
10579 Update call to catch_ada_exception_command_split.
10580 (create_ada_exception_catchpoint): Add new argument cond_string.
10581 Set the breakpoint condition if needed.
10582 (catch_ada_exception_command): Update call to
10583 ada_decode_exception_location.
10584 (ada_decode_assert_location): Add function documentation.
10585 Add support for condition at end of "catch assert" command.
10586 (catch_assert_command): Update calls to ada_decode_assert_location
10587 and create_ada_exception_catchpoint.
10588
9a7f938f
JK
105892012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10590
10591 Fix disp-step-syscall.exp: fork: single step over fork.
10592 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10593 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10594 comment, change parameters gdbarch and ptid to regcache. Remove
10595 parameter regcache, initialize gdbarch from regcache here.
10596 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10597 New functions.
10598 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10599 instead.
10600 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10601 'syscall'. Make the 'int' check more strict.
10602
ffdf6de5
JK
106032012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10604
10605 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10606 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10607 (i386_linux_intx80_sysenter_syscall_record): ... here.
10608 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10609 Use the renamed function name.
10610
c70a6932
JK
106112012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10612
10613 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10614 * breakpoint.c (until_break_command): Likewise.
10615 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10616 * infcall.c (call_function_by_hand): Likewise.
10617 * infcmd.c (finish_forward): Likewise.
10618 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10619
05b8a789 106202012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10621
d4cd3da9
JB
10622 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10623 avoid variable assignments inside condition.
10624
6425366c
JK
106252012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10626
10627 Fix static analysis issue found by cppcheck.
10628 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10629 uninitialized BUF for size 2.
10630
c8cef75f 106312012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10632 Nathan Froyd <froydnj@codesourcery.com>
10633 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10634
10635 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10636 (mips16_instruction_has_delay_slot): Likewise.
10637 (mips_segment_boundary): Likewise.
10638 (mips_adjust_breakpoint_address): Likewise.
10639 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10640
473347ad 106412012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10642 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10643
10644 * infrun.c (handle_inferior_event): Don't proceed through
10645 shared library trampolines if stepping at the machine
10646 instruction level.
10647
cf233303
MR
106482012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10649
10650 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10651 too.
10652
cb2cf4ce
TS
106532012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10654
10655 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10656 (sh_stub_unwind_sniffer): New functions.
10657 (sh_stub_unwind): New variable.
10658 (sh_gdbarch_init): Wire everything.
10659
644cebc9
PA
106602012-02-27 Pedro Alves <palves@redhat.com>
10661
10662 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10663 (linux_nat_post_attach_wait): Adjust to use
10664 linux_proc_pid_is_stopped.
10665 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10666 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10667 based on pid_is_stopped from both linux-nat.c and
10668 gdbserver/linux-low.c, and renamed.
10669
283002cf
MR
106702012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10671
10672 * remote.c (remote_watchpoint_addr_within_range): New function.
10673 (init_remote_ops): Use it.
10674
9b3e86b1
MR
106752012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10676
10677 * target.h (target_watchpoint_addr_within_range): Document macro.
10678
e36930bb
PA
106792012-02-24 Pedro Alves <palves@redhat.com>
10680
10681 * stack.c (set_last_displayed_sal): Issue internal_error instead
10682 of warning, and issue it after clearing the last displayed sal.
10683
883bc8d1
PA
106842012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10685 Pedro Alves <palves@redhat.com>
10686
10687 * breakpoint.c (until_break_command): Install breakpoints after
10688 all frame manipulations.
10689
b775012e
LM
106902012-02-24 Luis Machado <lgustavo@codesourcery.com>
10691
10692 * remote.c (remote_supports_cond_breakpoints): New forward
10693 declaration.
10694 (remote_add_target_side_condition): New function.
10695 (remote_insert_breakpoint): Add target-side breakpoint
10696 conditional if supported.
10697 (remote_insert_hw_breakpoint): Likewise.
10698 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10699 hook.
10700
10701 * target.c (update_current_target): Inherit
10702 to_supports_evaluation_of_breakpoint_conditions.
10703 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10704
10705 * target.h (struct target_ops)
10706 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10707 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10708
10709 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10710 (condition_evaluation_both, condition_evaluation_auto,
10711 condition_evaluation_host, condition_evaluation_target,
10712 condition_evaluation_enums, condition_evaluation_mode_1,
10713 condition_evaluation_mode): New static globals.
10714 (translate_condition_evaluation_mode): New function.
10715 (breakpoint_condition_evaluation_mode): New function.
10716 (gdb_evaluates_breakpoint_condition_p): New function.
10717 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10718 (mark_breakpoint_modified): New function.
10719 (mark_breakpoint_location_modified): New function.
10720 (set_condition_evaluation_mode): New function.
10721 (show_condition_evaluation_mode): New function.
10722 (bp_location_compare_addrs): New function.
10723 (get_first_location_gte_addr): New helper function.
10724 (set_breakpoint_condition): Free condition bytecode if locations
10725 has become unconditional. Call mark_breakpoint_modified (...).
10726 (condition_command): Call update_global_location_list (1) for
10727 breakpoints.
10728 (breakpoint_xfer_memory): Use is_breakpoint (...).
10729 (is_breakpoint): New function.
10730 (parse_cond_to_aexpr): New function.
10731 (build_target_condition_list): New function.
10732 (insert_bp_location): Handle target-side conditional
10733 breakpoints and call build_target_condition_list (...).
10734 (update_inserted_breakpoint_locations): New function.
10735 (insert_breakpoint_locations): Handle target-side conditional
10736 breakpoints.
10737 (bpstat_check_breakpoint_conditions): Add comment.
10738 (bp_condition_evaluator): New function.
10739 (bp_location_condition_evaluator): New function.
10740 (print_breakpoint_location): Print information on where the condition
10741 will be evaluated.
10742 (print_one_breakpoint_location): Likewise.
10743 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10744 breakpoint location.
10745 (force_breakpoint_reinsertion): New functions.
10746 (update_global_location_list): Handle target-side breakpoint
10747 conditions.
10748 Reinsert locations that are already inserted if conditions have
10749 changed.
10750 (bp_location_dtor): Free agent expression bytecode.
10751 (disable_breakpoint): Call mark_breakpoint_modified (...).
10752 Call update_global_location_list (...) with parameter 1 for breakpoints.
10753 (disable_command): Call mark_breakpoint_location_modified (...).
10754 Call update_global_location_list (...) with parameter 1 for breakpoints.
10755 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10756 (enable_command): mark_breakpoint_location_modified (...).
10757 (_initialize_breakpoint): Update documentation and add
10758 condition-evaluation breakpoint subcommand.
10759
10760 * breakpoint.h: Include ax.h.
10761 (condition_list): New data structure.
10762 (condition_status): New enum.
10763 (bp_target_info) <cond_list>: New field.
10764 (bp_location) <condition_changed, cond_bytecode>: New fields.
10765 (is_breakpoint): New prototype.
10766
3788aec7
LM
107672012-02-24 Luis Machado <lgustavo@codesourcery.com>
10768
10769 * remote.c (remote_state) <cond_breakpoints>: New field.
10770 (PACKET_ConditionalBreakpoints): New enum.
10771 (remote_cond_breakpoint_feature): New function.
10772 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10773 (remote_supports_cond_breakpoints): New function.
10774 (_initialize_remote): Add new packet configuration for
10775 target-side conditional breakpoints.
10776
72895ff6
LM
107772012-02-24 Luis Machado <lgustavo@codesourcery.com>
10778
10779 * NEWS: Mention target-side conditional breakpoint support,
10780 new condition-evaluation breakpoint subcommand and remote
10781 packet extensions.
10782
dea2aa5f
LM
107832012-02-24 Luis Machado <lgustavo@codesourcery.com>
10784
10785 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10786 number.
10787
8a8bc27f
TS
107882012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10789
10790 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10791 (after_prologue): Remove.
10792
6b446fdf
TT
107932012-02-23 Tom Tromey <tromey@redhat.com>
10794
10795 * jv-valprint.c (java_val_print): Remove dead code.
10796
ef59abfb
TG
107972012-02-23 Tristan Gingold <gingold@adacore.com>
10798
a09130f9
PA
10799 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10800 known_tasks_element and known_tasks_length fields.
10801 (read_known_tasks_array): Change argument type. Use pointer type
10802 and number of elements from DATA. Adjust.
10803 (read_known_tasks_list): Likewise.
10804 (get_known_tasks_addr): Remove.
10805 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10806 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10807 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10808
def166f6
JK
108092012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10810
10811 PR backtrace/13716
10812 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10813 it after set_momentary_breakpoint.
10814
aeaa2474
SA
108152012-02-22 Sterling Augustine <saugustine@google.com>
10816
10817 PR 13689:
10818 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10819
feea76c2
GB
108202012-02-22 Gary Benson <gbenson@redhat.com>
10821
10822 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10823 (find_slot_in_mapped_hash): Likewise.
10824
f06e05e0
JK
108252012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10826
10827 PR build/13638
10828 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10829 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10830 * configure: Regenerate.
10831
b54a8fd7
PA
108322012-02-21 Tristan Gingold <gingold@adacore.com>
10833 Pedro Alves <palves@redhat.com>
10834
10835 * ia64-tdep.c: Do not include libunwind-ia64.h.
10836 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10837 Include libunwind-ia64.h instead of libunwind.h.
10838 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10839 for libunwind.h existence.
10840 * configure, config.in: Regenerate.
10841
dfcee124
AG
108422012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10843
10844 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10845 instead of value_rtti_target_type.
10846 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10847 instead of value_rtti_target_type.
10848 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10849 value_rtti_target_type.
10850 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10851 (value_rtti_target_type): Rename to ...
10852 (value_rtti_indirect_type): ... here and make it indirect. Update
10853 function comment.
10854 * value.c (readjust_indirect_value_type): New function.
10855 (coerce_ref): Support for enclosing type setting for references
10856 with readjust_indirect_value_type.
10857 * value.h (readjust_value_type): New declaration.
10858 (value_rtti_target_type): Rename to ...
10859 (value_rtti_indirect_type): ... here.
10860
02568277
AG
108612012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10862
10863 * MAINTAINERS (Write After Approval): Add myself to the list.
10864
10c07b7e 108652012-02-20 Doug Evans <dje@google.com>
28ee876a 10866
d82ea6a8
DE
10867 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10868 Rename objfile_p_char parameter to objfilep.
10869 (build_objfile_section_table): Result is now void. All callers
10870 updated.
10871 * objfiles.h (struct objfile): Tweak comments, whitespace.
10872 (build_objfile_section_table): Update.
10873
28ee876a
DE
10874 * elfread.c (elf_symfile_segments): Fix warning text.
10875
24c79950
TT
108762012-02-20 Tom Tromey <tromey@redhat.com>
10877
10878 PR gdb/13498:
10879 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10880 particular set of file names once.
10881 (dw2_map_symbol_filenames): Likewise.
10882
3a9b40b6
JK
108832012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10884
10885 Code cleanup.
10886 * main.c (write_files): Remove the declaration.
10887 (external_editor_command): Move the declaration ...
10888 [GDBTK] (external_editor_command): ... here. Fix the comment.
10889
4d0795ca
TT
108902012-02-20 Tom Tromey <tromey@redhat.com>
10891
10892 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10893 extraneous block.
10894
637fd620
TG
108952012-02-20 Tristan Gingold <gingold@adacore.com>
10896
10897 * darwin-nat.h (enum darwin_msg_state): Add comments.
10898
6f124894
TG
108992012-02-20 Tristan Gingold <gingold@adacore.com>
10900
10901 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10902 value.
10903
2e6e3d9c
JB
109042012-20-18 Joel Brobecker <brobecker@adacore.com>
10905
10906 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10907 between function description and implementation.
10908
2e8265fd
TT
109092012-02-17 Tom Tromey <tromey@redhat.com>
10910
10911 PR python/12070:
10912 * python/py-event.c (event_object_getset): New global.
10913 (event_object_type): Reference it.
10914 * python/py-type.c (field_object_getset): New global.
10915 (field_object_type): Reference it.
10916 * python/python-internal.h (gdb_py_generic_dict): Declare.
10917 * python/py-utils.c (gdb_py_generic_dict): New function.
10918
8544a150 109192012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10920
8544a150 10921 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10922
ca193e27
TS
109232012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10924
10925 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10926 TYPE_CALLING_CONVENTION annotation.
10927
e5586183
KB
109282012-02-16 Kevin Buettner <kevinb@redhat.com>
10929
10930 * MAINTAINERS: Add rx to target ISA section.
10931 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10932 (ALLDEPFILES): Add rx-tdep.c.
10933
7dcd53a0
TT
109342012-02-16 Tom Tromey <tromey@redhat.com>
10935
10936 * symfile.c (symbol_file_add_main_1): Use inferior's
10937 symfile_flags.
10938 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10939 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10940 inferior.
10941 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10942 inferior.
10943 (follow_exec): Use inferior's symfile_flags.
10944 * inferior.h (struct inferior) <symfile_flags>: New field.
10945
ddd60447
MF
109462012-02-16 Mike Frysinger <vapier@gentoo.org>
10947
10948 PR gdb/9734:
10949 * remote-sim.c (gdbsim_create_inferior): Call error() when
10950 sim_create_inferior() fails.
10951
b0d32fb6
TG
109522012-02-16 Josh Matthews <josh@joshmatthews.net>
10953
10954 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10955
9addecb9
TT
109562012-02-16 Tom Tromey <tromey@redhat.com>
10957
10958 PR c++/13653:
10959 * thread.c (struct current_thread_cleanup) <was_removable>: New
10960 field.
10961 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10962 (make_cleanup_restore_current_thread): Initialize new field.
10963
a58b110a
KB
109642012-02-15 Kevin Buettner <kevinb@redhat.com>
10965
10966 * MAINTAINERS: Add rl78 to target ISA section.
10967 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10968 (ALLDEPFILES): Add rl78-tdep.c.
10969 * NEWS: Mention rl78 as a new target.
10970
4cb6da1c
AR
109712012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10972
10973 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10974 data.
10975 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10976
3af2590d
TT
109772012-02-15 Tom Tromey <tromey@redhat.com>
10978
10979 PR gdb/12659:
10980 * infcmd.c (registers_info): Print just the current register's
10981 name.
10982
c6910659
TT
109832012-02-15 Tom Tromey <tromey@redhat.com>
10984
10985 * python/py-symbol.c (sympy_value): Use _().
10986
7cee1e54
PA
109872012-02-15 Pedro Alves <palves@redhat.com>
10988
10989 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10990 output to be like native targets'.
10991 (remote_pid_to_str): Special case the null ptid.
10992
816338b5
SS
109932012-02-14 Stan Shebs <stan@codesourcery.com>
10994
10995 * NEWS: Mention enable count command.
10996 * breakpoint.h (struct breakpoint): New field enable_count.
10997 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10998 (enable_breakpoint): Add arg to call.
10999 (struct disp_data): New struct.
11000 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11001 (do_map_enable_once_breakpoint): Create a struct and pass it.
11002 (do_map_enable_delete_breakpoint): Ditto.
11003 (do_map_enable_count_breakpoint): New function.
11004 (enable_count_command): New function.
11005 (bpstat_stop_status): Decrement enable_count.
11006 (print_one_breakpoint_location): Report enable count.
11007 (_initialize_breakpoint): Add enable count command.
11008
c47a44f4
KB
110092012-02-14 Kevin Buettner <kevinb@redhat.com>
11010
11011 * rl78-tdep.c (reggroups.h): Include.
11012 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11013 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11014 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11015 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11016 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11017 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11018 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11019 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11020 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11021 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11022 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11023 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11024 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11025 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11026 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11027 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11028 beginning of register list.
11029 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11030 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11031 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11032 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11033 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11034 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11035 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11036 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11037 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11038 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11039 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11040 the pseudo registers. Rearrange other pseudo registers too so
11041 that the bank registers appear at the end.
11042 (rl78_register_type): Account for the fact that the byte sized
11043 bank registers are now pseudo-registers.
11044 (rl78_register_name): Rearrange the register name array. Make
11045 initial set of raw banked registers inaccessible.
11046 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11047 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11048 case for copying bytes back and forth between raw and pseudo
11049 versions of the banked registers. Update other cases to reflect
11050 the changed names.
11051 (rl78_return_value): Update to account for changed names of
11052 raw registers.
11053 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11054 rl78_register_sim_regno().
11055
e4569f1e
KB
110562012-02-14 Kevin Buettner <kevinb@redhat.com>
11057
11058 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11059 the name parameter being passed to find_pc_partial_function().
11060
7a05aae7
JK
110612012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11062
11063 * MAINTAINERS: Step down from being ia64 target maintainer.
11064
11fde611
JK
110652012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11066
11067 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11068 compilation warning.
11069
57008375
JK
110702012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11071
11072 Fix crash on loaded shlibs without loaded exec_bfd.
11073 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11074 (set_section_command): Replace exec_bfd by p->bfd.
11075
ff3c9849
TT
110762012-02-10 Tom Tromey <tromey@redhat.com>
11077
11078 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11079 when we have a C++ qualified name.
11080
db2b9fdd
PA
110812012-02-10 Pedro Alves <palves@redhat.com>
11082
11083 * inferior.c (inferior_pid_to_str): New.
11084 (print_inferior, inferior_command): Use it.
11085
12cd34f3
PA
110862012-02-10 Pedro Alves <palves@redhat.com>
11087
11088 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11089 the test CFLAGS.
11090 * configure: Regenerate.
11091
e871429d
JK
110922012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11093
11094 * linespec.c (decode_line_internal): Fix comment correctness.
11095
1916efaf
PA
110962012-02-09 Valery Khromov <valery.khromov@gmail.com>
11097
11098 PR gdb/12953
11099 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11100 * amd64bsd-nat.c: Add support for debug registers (adapted from
11101 i386bsd-nat.c).
11102 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11103 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11104 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11105 (amd64bsd_dr_get_control): New functions.
11106 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11107 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11108 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11109 watchpoints initialization.
11110 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11111
f4859d94
JK
111122012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11113
11114 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11115 flds_bnds.fields.
11116 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11117
c56a97f9
JK
111182012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11119
11120 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11121
1a119f36
JB
111222012-02-08 Joel Brobecker <brobecker@adacore.com>
11123
11124 * language.h (symbol_name_cmp_ftype): Renames
11125 symbol_name_match_p_ftype.
11126 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11127 la_get_symbol_name_match_p.
11128 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11129 ada_get_symbol_name_match_p. Update comment.
11130 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11131 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11132 Renames symbol_name_match_p. Update field type.
11133 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11134 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11135 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11136 "la_get_symbol_name_cmp" in comments.
11137 * language.c: Likewise.
11138
c71bb1cf
RO
111392012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11140
11141 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11142 %eflags offset.
11143 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11144 (amd64_sol2_gregset32_reg_offs): Likewise.
11145
4b2d20a5
TG
111462012-02-08 Joel Brobecker <brobecker@adacore.com>
11147
11148 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11149 of the returned BFD is allocated by GDB.
11150
f0823d2c
TT
111512012-02-07 Tom Tromey <tromey@redhat.com>
11152
11153 PR python/12027:
11154 * python/python-internal.h (frame_object_type): Declare.
11155 * python/py-symbol.c (sympy_needs_frame): New function.
11156 (sympy_value): New function.
11157 (symbol_object_getset): Add "needs_frame".
11158 (symbol_object_methods): Add "value".
11159 * python/py-frame.c (frame_object_type): No longer static.
11160
64e7d9dd
TT
111612012-02-07 Tom Tromey <tromey@redhat.com>
11162
11163 PR python/13599:
11164 * python/py-symbol.c (sympy_line): New function.
11165 (symbol_object_getset): Add "line".
11166
1d6b2d2b
TT
111672012-02-07 Tom Tromey <tromey@redhat.com>
11168
11169 * charset.c (find_charset_names): Check 'in' against NULL.
11170
0d5cff50
DE
111712012-02-06 Doug Evans <dje@google.com>
11172
11173 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11174 and fields.name members from char * to const char *. All uses updated.
11175 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11176 from char * to const char *. All uses updated.
11177 (type_name_no_tag): Update.
11178 (lookup_unsigned_typename, lookup_signed_typename): Update.
11179 * gdbtypes.c (type_name_no_tag): Change result type
11180 from char * to const char *. All callers updated.
11181 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11182 name parameter from char * to const char *.
11183 * symtab.h (struct cplus_specific): Change type of demangled_name
11184 member from char * to const char *. All uses updated.
11185 (struct general_symbol_info): Change type of name and
11186 mangled_lang.demangled_name members from char * to const char *.
11187 All uses updated.
11188 (symbol_get_demangled_name, symbol_natural_name): Update.
11189 (symbol_demangled_name, symbol_search_name): Update.
11190 * symtab.c (symbol_get_demangled_name): Change result type
11191 from char * to const char *. All callers updated.
11192 (symbol_natural_name, symbol_demangled_name): Ditto.
11193 (symbol_search_name): Ditto.
11194 (completion_list_add_name): Change type of symname,sym_text,
11195 text,word parameters from char * to const char *.
11196 (completion_list_objc_symbol): Change type of sym_text,
11197 text,word parameters from char * to const char *.
11198 * ada-lang.c (find_struct_field): Change type of name parameter
11199 from char * to const char *.
11200 (encoded_ordered_before): Similarly for N0,N1 parameters.
11201 (old_renaming_is_invisible): Similarly for function_name parameter.
11202 (ada_type_name): Change result type from char * to const char *.
11203 All callers updated.
11204 * ada-lang.h (ada_type_name): Update.
11205 * buildsym.c (hashname): Change type of name parameter
11206 from char * to const char *.
11207 * buildsym.h (hashname): Update.
11208 * dbxread.c (end_psymtab): Change type of include_list parameter
11209 from char ** to const char **.
11210 * dwarf2read.c (determine_prefix): Change result type
11211 from char * to const char *. All callers updated.
11212 * f-lang.c (find_common_for_function): Change type of name, funcname
11213 parameters from char * to const char *.
11214 * f-lang.c (find_common_for_function): Update.
11215 * f-valprint.c (list_all_visible_commons): Change type of funcname
11216 parameters from char * to const char *.
11217 * gdbarch.sh (static_transform_name): Change type of name parameter
11218 and result from char * to const char *.
11219 * gdbarch.c: Regenerate.
11220 * gdbarch.h: Regenerate.
11221 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11222 of name parameter from char * to const char *.
11223 * jv-lang.c (java_primitive_type_from_name): Ditto.
11224 (java_demangled_signature_length): Similarly for signature parameter.
11225 (java_demangled_signature_copy): Ditto.
11226 (java_demangle_type_signature): Ditto.
11227 * jv-lang.h (java_primitive_type_from_name): Update.
11228 (java_demangle_type_signature): Update.
11229 * objc-lang.c (specialcmp): Change type of a,b parameters
11230 from char * to const char *.
11231 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11232 from char * to const char *. All callers updated.
11233 * p-lang.h (is_pascal_string_type): Update.
11234 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11235 of name parameter from char * to const char *.
11236 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11237 * utils.c (fprintf_symbol_filtered): Ditto.
11238 * defs.h (fprintf_symbol_filtered): Update.
11239 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11240 * stabsread.h (end_psymtab): Update.
11241 * stack.c (find_frame_funname): Change type of funname parameter
11242 from char ** to const char **.
11243 * stack.h (find_frame_funname): Update.
11244 * typeprint.c (type_print): Change type of varstring parameter
11245 from char * to const char *.
11246 * value.h (type_print): Update.
11247 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11248 from char * to const char *. All callers updated.
11249 (xcoff_end_psymtab): Change type of include_list parameter
11250 from char ** to const char **. All callers updated.
11251 (swap_sym): Similarly for name parameter. All callers updated.
11252 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11253 Use xstrdup.
11254 (process_coff_symbol): Use xstrdup.
11255 * stabsread.c (stabs_method_name_from_physname): Renamed from
11256 update_method_name_from_physname. Change result type from void
11257 to char *. All callers updated.
11258 (read_member_functions): In has_destructor case, store name in objfile
11259 obstack instead of malloc space. In !has_stub case, fix mem leak.
11260
5579a92e
TT
112612012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11262
11263 * configure: Rebuild.
11264 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11265 LDFLAGS.
11266
9058f767
KB
112672012-02-03 Kevin Buettner <kevinb@redhat.com>
11268
11269 * configure.tgt (rl78-*-elf): New target.
11270 * rl78-tdep.c: New file.
11271
5b37825d
PW
112722012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11273
11274 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11275 and continue the loop. Add QUIT statement.
11276
e009ee71
TT
112772012-02-03 Tom Tromey <tromey@redhat.com>
11278
11279 PR gdb/13596:
11280 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11281 bfd_lookup_symbol_from_symtab.
11282 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11283 gdb_bfd_lookup_symbol_from_symtab.
11284
f7e44f65
JB
112852012-02-03 Joel Brobecker <brobecker@adacore.com>
11286
11287 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11288 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11289 symbol. Add assertion that sym2 is never NULL.
11290
2c02bd72
DE
112912012-02-02 Doug Evans <dje@google.com>
11292
11293 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11294 "name" parameter to const char ** from char **. All callers updated.
11295 (find_pc_partial_function): Ditto.
11296 (cache_pc_function_name): Change type to const char * from char *.
11297 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11298 (find_pc_partial_function): Update.
11299 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11300 type of "name" parameter to const char * from char *.
11301 All uses updated.
11302 * arch-utils.c (generic_in_solib_return_trampoline): Change
11303 type of "name" parameter to const char * from char *.
11304 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11305 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11306 type of "name" parameter to const char * from char *.
11307 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11308 * gdbarch.c: Regenerate.
11309 * gdbarch.h: Regenerate.
11310 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11311 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11312 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11313 type of "name" parameter to const char * from char *.
11314 * skip.c (skip_function_pc): Ditto.
11315 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11316 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11317 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11318 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11319 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11320 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11321 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11322 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11323 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11324
e886a173
PA
113252012-02-02 Pedro Alves <palves@redhat.com>
11326
11327 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11328 the current inferior has no execution. Make sure the current
11329 remote process matches gdb's current inferior.
11330
c709a7c2
TT
113312012-02-02 Tom Tromey <tromey@redhat.com>
11332
11333 PR gdb/13405:
11334 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11335 read-only memory.
11336
f149aabd
TT
113372012-02-02 Tom Tromey <tromey@redhat.com>
11338
11339 PR gdb/9307:
11340 * symtab.c (lookup_language_this): Set block_found.
11341
03bef283
TT
113422012-02-01 Tom Tromey <tromey@redhat.com>
11343
11344 PR gdb/13431:
11345 * jit.c (struct jit_inferior_data): Rewrite.
11346 (struct jit_objfile_data): New.
11347 (get_jit_objfile_data): New function.
11348 (add_objfile_entry): Update.
11349 (jit_read_descriptor): Return int. Replace descriptor_addr
11350 argument with inf_data. Update. Don't call error.
11351 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11352 descriptor here.
11353 (jit_inferior_init): Don't look up descriptor. Don't call error.
11354 (jit_reset_inferior_data_and_breakpoints)
11355 (jit_inferior_created_observer): Remove.
11356 (jit_inferior_exit_hook): Update.
11357 (jit_executable_changed_observer): Remove.
11358 (jit_event_handler): Update.
11359 (free_objfile_data): Reset inferior data if needed.
11360 (_initialize_jit): Update.
11361
f0bbc364
TT
113622012-02-01 Tom Tromey <tromey@redhat.com>
11363
11364 * jit.c (bfd_open_from_target_memory): Move higher in file.
11365
47c1316c
TG
113662012-02-01 Tristan Gingold <gingold@adacore.com>
11367
11368 * libunwind-frame.c (libunwind_load): Display message if dlopen
11369 failed.
11370
8e704927
GB
113712012-02-01 Gary Benson <gbenson@redhat.com>
11372
09c7a31f 11373 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
11374 (iterate_over_symbols): Use the above.
11375 * symtab.c (iterate_over_symbols): Likewise.
11376 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11377 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11378 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11379 (iterate_name_matcher): Document return values.
11380 (collect_one_symbol): Likewise.
11381 (collect_function_symbols): Likewise.
11382 (collect_symbols): Likewise.
11383
d9680e73
TT
113842012-02-01 Tom Tromey <tromey@redhat.com>
11385
11386 * ada-lang.c (resolve_subexp): Update.
11387 (ada_lookup_symbol_list): Add 'full_search' argument.
11388 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11389 ada_lookup_symbol_list.
11390 (ada_lookup_encoded_symbol): Update.
11391 (get_var_value): Update.
11392 * ada-exp.y (block_lookup): Update.
11393 (write_var_or_type): Update.
11394 (write_name_assoc): Update.
11395 * ada-lang.h (ada_lookup_symbol_list): Update.
11396
72e1143f
TT
113972012-01-31 Tom Tromey <tromey@redhat.com>
11398
11399 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11400 comment.
11401
ab2d2ad3
DE
114022012-01-31 Doug Evans <dje@google.com>
11403
11404 * symtab.h: Remove outdated comment.
e9111bf7 11405 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 11406
bc884eba
JB
114072012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11408
11409 Fix build error in Darwin port.
11410 * i386-darwin-nat.c: Include i386-nat.h.
11411
8fc3fc34
TT
114122012-01-30 Tom Tromey <tromey@redhat.com>
11413
11414 PR breakpoints/13568:
11415 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11416 argument. Check for recursive includes.
11417 (dwarf_decode_macros): Create an include hash.
11418
5d853008
ME
114192012-01-30 Michael Eager <eager@eagercon.com>
11420
11421 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11422 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 11423 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
11424 (powerpc_linux_in_plt_stub): New function.
11425 (powerpc_linux_in_dynsym_resolve_code): New function.
11426 (ppc_skip_trampoline_code): New function.
11427 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11428 Use glibc_skip_solib_resolver.
11429
40478521
JK
114302012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11431
11432 Code cleanup: Make 1440 bytes of data segment read-only.
11433 * arch-utils.c (endian_enum): Make it const char *const [].
11434 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11435 Likewise.
11436 * breakpoint.c (always_inserted_enums): Likewise.
11437 * cli/cli-cmds.c (script_ext_enums): Likewise.
11438 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11439 enumlist parameter const char *const *.
11440 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11441 const char *const *.
11442 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11443 parameter const char *const *.
11444 * cris-tdep.c (cris_modes): Make it const char *const [].
11445 * filesystem.c (target_file_system_kinds): Likewise.
11446 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11447 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11448 (can_use_displaced_stepping_enum, scheduler_enums)
11449 (exec_direction_names): Likewise.
11450 * language.c (_initialize_language): Make the type_or_range_names and
11451 case_sensitive_names variables const char *const [].
11452 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11453 * python/python.c (python_excp_enums): Likewise.
11454 * remote.c (interrupt_sequence_modes): Likewise.
11455 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11456 * serial.c (logbase_enums): Likewise.
11457 * sh-tdep.c (sh_cc_enum): Likewise.
11458 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11459 Likewise.
11460 * symtab.c (multiple_symbols_modes): Likewise.
11461 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11462 Likewise.
11463 * utils.c (internal_problem_modes): Likewise.
11464
b3b8b934
JK
114652012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11466
11467 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11468 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11469 result.
11470
8c85a4e2
DE
114712012-01-27 Doug Evans <dje@google.com>
11472
11473 * configure.ac (with_python): Fix absolute path handling for win32.
11474 * configure: Regenerate.
11475
78d8b4d7
DE
114762012-01-26 Doug Evans <dje@google.com>
11477
eca864fe
DE
11478 * symtab.c: Whitespace cleanup, no code changes.
11479
7e082072
DE
11480 * symtab.c (lookup_symbol_in_language): Improve comment.
11481 (lookup_symbol_aux): Fix comment.
11482
7dc25483
DE
11483 * psymtab.c (add_psymbol_to_list): Result is now "void".
11484 * psympriv.h (add_psymbol_to_list): Update.
11485
78d8b4d7
DE
11486 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11487
4c63965b
JK
114882012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11489
11490 Do not open script filenames twice.
11491 * cli/cli-cmds.c (source_script_from_stream): Pass to
11492 source_python_script also STREAM.
11493 * python/py-auto-load.c (source_section_scripts): Pass to
11494 source_python_script_for_objfile also STREAM.
11495 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11496 also INPUT.
11497 * python/python-internal.h (source_python_script_for_objfile): New
11498 parameter file, rename parameter file to filename.
11499 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11500 instead if !_WIN32. Update the function comment.
11501 (source_python_script, source_python_script_for_objfile)
11502 (source_python_script): New parameter file, rename parameter file to
11503 filename. Pass FILENAME to python_run_simple_file.
11504 * python/python.h (source_python_script): New parameter file, rename
11505 parameter file to filename.
11506
88f38a04
PA
115072012-01-26 Pedro Alves <palves@redhat.com>
11508
11509 * corelow.c (core_has_fake_pid): Delete.
11510 (core_close): Delete references to `core_has_fake_pid'.
11511 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11512 (core_open): Delete references to `core_has_fake_pid'.
11513 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11514 the removed global.
11515
e078317b
JB
115162012-01-26 Joel Brobecker <brobecker@adacore.com>
11517
11518 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11519 Remove language parameter from name_matcher. Adjust the comment.
11520 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11521 Remove language parameter.
11522 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11523 * linespec.c (iterate_name_matcher): Likewise.
11524 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11525 name_matcher. Adjust call accordingly.
11526 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11527 (maintenance_check_symtabs): Adjust type of parameter "fun".
11528 * psymtab.h (maintenance_check_symtabs): Likewise.
11529
74ccd7f5
JB
115302012-01-26 Joel Brobecker <brobecker@adacore.com>
11531
11532 * language.h (symbol_name_match_p_ftype): New typedef.
11533 (struct language_defn): Replace field la_symbol_name_compare
11534 by la_get_symbol_name_match_p.
11535 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11536 (ada_language_defn): Use it.
11537 * linespec.c (struct symbol_matcher_data): New type.
11538 (iterate_name_matcher): Rewrite.
11539 (iterate_over_all_matching_symtabs): Pass a pointer to
11540 a symbol_matcher_data struct to expand_symtabs_matching
11541 instead of just the lookup name.
11542 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11543 opencl-lang.c, p-lang.c, language.c: Delete field
11544 la_symbol_name_compare, and replace by NULL for new field
11545 la_get_symbol_name_match_p.
11546 * symfile.h (struct quick_symbol_functions): Update comment.
11547
5d268276
TT
115482012-01-25 Tom Tromey <tromey@redhat.com>
11549
11550 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11551 dereferencing.
11552
edcc5120
TT
115532012-01-24 Tom Tromey <tromey@redhat.com>
11554
11555 PR symtab/12406:
11556 * solib.c (update_solib_list): Update the program space's
11557 added_solibs and deleted_solibs fields.
11558 * progspace.h (struct program_space) <added_solibs,
11559 deleted_solibs>: New fields.
11560 (clear_program_space_solib_cache): Declare.
11561 * progspace.c (release_program_space): Call
11562 clear_program_space_solib_cache.
11563 (clear_program_space_solib_cache): New function.
11564 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11565 bpstat_stop_status. Use handle_solib_event.
11566 * breakpoint.c: Include gdb_regex.h.
11567 (print_solib_event): New function.
11568 (bpstat_print): Use print_solib_event.
11569 (bpstat_stop_status): Add special case for bp_shlib_event.
11570 (handle_solib_event): New function.
11571 (bpstat_what): Use handle_solib_event.
11572 (struct solib_catchpoint): New.
11573 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11574 (breakpoint_hit_catch_solib, check_status_catch_solib)
11575 (print_it_catch_solib, print_one_catch_solib)
11576 (print_mention_catch_solib, print_recreate_catch_solib): New
11577 functions.
11578 (catch_solib_breakpoint_ops): New global.
11579 (catch_load_or_unload, catch_load_command_1)
11580 (catch_unload_command_1): New functions.
11581 (internal_bkpt_check_status): Add special case for
11582 bp_shlib_event.
11583 (internal_bkpt_print_it): Use print_solib_event.
11584 (initialize_breakpoint_ops): Initialize
11585 catch_solib_breakpoint_ops.
11586 (_initialize_breakpoint): Register "catch load" and "catch
11587 unload".
11588 * breakpoint.h (handle_solib_event): Declare.
11589 * NEWS: Add entry for "catch load" and "catch unload".
11590
fa864999
TT
115912012-01-24 Tom Tromey <tromey@redhat.com>
11592
11593 * ada-lang.c: Include gdb_vecs.h.
11594 * charset.c: Include gdb_vecs.h.
11595 * tracepoint.h: Include gdb_vecs.h.
11596 * gdb_vecs.h: New file.
11597
f90263c1
TT
115982012-01-24 Pedro Alves <pedro@codesourcery.com>
11599
11600 * breakpoint.c (breakpoint_hit_catch_fork)
11601 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11602 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11603 * infrun.c (inferior_has_forked, inferior_has_vforked)
11604 (inferior_has_execd, inferior_has_called_syscall): Delete.
11605 (handle_syscall_event): Get syscall_number from the execution
11606 control state's wait status.
11607 (wait_for_inferior): Don't clear syscall_number.
11608
09ac7c10
TT
116092012-01-24 Pedro Alves <palves@redhat.com>
11610
11611 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11612 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11613 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11614 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11615 `ws' parameter.
11616 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11617 false for events other than TARGET_SIGNAL_TRAP.
11618 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11619 Add `ws' parameter.
11620 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11621 events other than TARGET_SIGNAL_TRAP.
11622 (tracepoint_breakpoint_hit): Add `ws' parameter.
11623 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11624 parameter.
11625 (bpstat_stop_status): Same.
11626 (pc_at_non_inline_function): Same.
11627 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11628 to pass the current event's waitstatus to bpstat_stop_status
11629 and pc_at_non_inline_function.
11630
86eb7e95
JK
116312012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11632
11633 Code cleanup.
11634 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11635 Update the function comment for it.
11636 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11637 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11638 for STREAM.
11639
a9b3a50f
PA
116402012-01-24 Pedro Alves <palves@redhat.com>
11641
11642 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11643 outside `bs->stop' block.
11644 (bpstat_what): Rework bp_shlib_event handling.
11645 (internal_bkpt_check_status): If the breakpoint is a
11646 bp_shlib_event, then set bs->stop and bs->print if
11647 stop_on_solib_events is set.
11648
53fe1783
GB
116492012-01-24 Gary Benson <gbenson@redhat.com>
11650
11651 Delete #if 0'd out code.
11652 * stack.c (print_frame_label_vars): Remove.
11653 (catch_info): Likewise.
11654 (_initialize_stack): Remove "info catch" command.
11655 * NEWS: Mention the above.
11656
49c62f2e
PA
116572012-01-24 Pedro Alves <palves@redhat.com>
11658
11659 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11660 it.
11661 (remote_notice_new_inferior): If the remote end doesn't support
11662 the multiprocess extensions, then the PID is fake.
11663 (add_current_inferior_and_thread): New.
11664 (remote_start_remote): Use it.
11665 (extended_remote_attach_1): Adjust.
11666 (extended_remote_create_inferior_1): Use
11667 add_current_inferior_and_thread.
11668
d0d8b0c6
JK
116692012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11670
11671 Fix watchpoints to be specific for each inferior.
11672 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11673 current_program_space.
11674 * i386-nat.c (i386_inferior_data_cleanup): New.
11675 (i386_inferior_data_get): Replace variable inf_data_local by an
11676 inferior_data call.
11677 (i386_use_watchpoints): Initialize i386_inferior_data.
11678 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11679 specific iterate_over_lwps.
11680
4403d8e9
JK
116812012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11682
11683 Fix watchpoints across inferior fork.
11684 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11685 comment for linux_nat_iterate_watchpoint_lwps.
11686 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11687 linux_nat_iterate_watchpoint_lwps.
11688 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11689 * i386-linux-nat.c (update_debug_registers_callback): Update the
11690 comment for linux_nat_iterate_watchpoint_lwps.
11691 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11692 linux_nat_iterate_watchpoint_lwps.
11693 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11694 * i386-nat.c: Include inferior.h.
11695 (dr_mirror): Remove.
11696 (i386_inferior_data, struct i386_inferior_data)
11697 (i386_inferior_data_get): New.
11698 (i386_debug_reg_state): Use i386_inferior_data_get.
11699 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11700 (i386_insert_watchpoint, i386_remove_watchpoint)
11701 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11702 (i386_remove_hw_breakpoint): New variable state, use
11703 i386_debug_reg_state instead of DR_MIRROR.
11704 * linux-nat.c (delete_lwp): New declaration.
11705 (num_lwps): Move here from downwards.
11706 (delete_lwp_cleanup): New.
11707 (linux_child_follow_fork): Create new child_lp, call
11708 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11709 PTRACE_DETACH.
11710 (num_lwps): Move upwards.
11711 (linux_nat_iterate_watchpoint_lwps): New.
11712 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11713 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11714
2992c9a7 117152012-01-24 Joel Brobecker <brobecker@adacore.com>
11716
11717 GDB 7.4 released.
11718
e360902b
PA
117192012-01-23 Pedro Alves <palves@redhat.com>
11720
11721 * top.c (caution): Rename to ...
11722 (confirm): ... this.
11723 (show_caution): Rename to ...
11724 (show_confirm): ... this.
11725 (quit_cover): Adjust.
11726 (init_main): Adjust.
11727 * top.h (caution): Rename to ...
11728 (confirm): ... this.
11729 * utils.c (internal_vproblem, defaulted_query): Adjust.
11730
050a2e1d
PA
117312012-01-23 Pedro Alves <palves@redhat.com>
11732
11733 * top.c (caution): Update comment.
11734 (execute_command): Don't consider the current value of `caution'.
11735
77a35dd8
JK
117362012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11737
11738 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11739
a71b5a38
UW
117402012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11741
11742 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11743 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11744 * target.c (target_fileio_pwrite): Remove buffer address from
11745 debug output.
11746 (target_fileio_pread): Likewise.
11747
d99bd577
UW
117482012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11749
11750 * NEWS: Document remote "info proc" and "generate-core-file".
11751
35c2fab7
UW
117522012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11753
11754 * gdbarch.sh (find_memory_regions): New callback.
11755 * gdbarch.c, gdbarch.h: Regenerate.
11756
11757 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11758 callback before falling back to target method.
11759
11760 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11761 (linux_target_install_ops): No longer install it.
11762
11763 * linux-tdep.c (linux_find_memory_regions): New function.
11764 (linux_init_abi): Install it.
11765
6432734d
UW
117662012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11767
11768 * gdbarch.sh (make_corefile_notes): New architecture callback.
11769 * gdbarch.c: Regenerate.
11770 * gdbarch.h: Likewise.
11771
11772 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11773 before target_make_corefile_notes. If NULL is returned, the
11774 target does not support core file generation.
11775
11776 * linux-nat.c: Include "linux-tdep.h".
11777 (find_signalled_thread, find_stop_signal): Remove.
11778 (linux_nat_do_thread_registers): Likewise.
11779 (struct linux_nat_corefile_thread_data): Likewise.
11780 (linux_nat_corefile_thread_callback): Likewise.
11781 (iterate_over_spus): Likewise.
11782 (struct linux_spu_corefile_data): Likewise.
11783 (linux_spu_corefile_callback): Likewise.
11784 (linux_spu_make_corefile_notes): Likewise.
11785 (linux_nat_collect_thread_registers): New function.
11786 (linux_nat_make_corefile_notes): Replace contents by call to
11787 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11788 as native-only callback.
11789
11790 * linux-tdep.h: Include "bfd.h".
11791 (struct regcache): Add forward declaration.
11792 (linux_collect_thread_registers_ftype): New typedef.
11793 (linux_make_corefile_notes): Add prototype.
11794 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11795 "regset.h", and "elf-bfd.h".
11796 (find_signalled_thread, find_stop_signal): New functions.
11797 (linux_spu_make_corefile_notes): Likewise.
11798 (linux_collect_thread_registers): Likewise.
11799 (struct linux_corefile_thread_data): New data structure.
11800 (linux_corefile_thread_callback): New funcion.
11801 (linux_make_corefile_notes): Likewise.
11802 (linux_make_corefile_notes_1): Likewise.
11803 (linux_init_abi): Install it.
11804
3030c96e
UW
118052012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11806
11807 * gdbarch.sh (info_proc): New callback.
11808 * gdbarch.c, gdbarch.h: Regenerate.
11809
11810 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11811 before falling back to the target info_proc callback.
11812
11813 * linux-nat.c: Do not include "cli/cli-utils.h".
11814 (linux_nat_info_proc): Remove.
11815 (linux_target_install_ops): No longer install it.
11816
11817 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11818 (read_mapping): New function.
11819 (linux_info_proc): Likewise.
11820 (linux_init_abi): Install it.
11821
145b16a9
UW
118222012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11823
11824 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11825 * infcmd.c: (info_proc_cmd_1): New function.
11826 (info_proc_cmd): New function, moved here from equivalent routine
11827 orignally in linux-nat.c.
11828 (info_proc_cmd_mappings): Likewise.
11829 (info_proc_cmd_stat): Likewise.
11830 (info_proc_cmd_status): Likewise.
11831 (info_proc_cmd_cwd): Likewise.
11832 (info_proc_cmd_cmdline): Likewise.
11833 (info_proc_cmd_exe): Likewise.
11834 (info_proc_cmd_all): Likewise.
11835 (_initialize_infcmd): Install "info proc" command and subcommands.
11836
11837 * target.h (struct target_ops): Add to_info_proc.
11838 (target_info_proc): Add prototype.
11839 * target.c (target_info_proc): New function.
11840
11841 * procfs.c (procfs_info_proc): Add prototype.
11842 (info_proc_cmd): Rename into ...
11843 (procfs_info_proc): ... this. Update argument types as appropriate
11844 for a to_info_proc implementation. Handle "what" argument.
11845 (procfs_target): Install procfs_info_proc.
11846 (_initialize_procfs): No longer install "info proc" command.
11847
11848 * linux-nat.c: (enum info_proc_what): Remove.
11849 (linux_nat_info_proc_cmd_1): Rename into ...
11850 (linux_nat_info_proc): ... this. Update argument types as appropriate
11851 for a to_info_proc implementation.
11852 (linux_nat_info_proc_cmd): Remove.
11853 (linux_nat_info_proc_cmd_mappings): Likewise.
11854 (linux_nat_info_proc_cmd_stat): Likewise.
11855 (linux_nat_info_proc_cmd_status): Likewise.
11856 (linux_nat_info_proc_cmd_cwd): Likewise.
11857 (linux_nat_info_proc_cmd_cmdline): Likewise.
11858 (linux_nat_info_proc_cmd_exe): Likewise.
11859 (linux_nat_info_proc_cmd_all): Likewise.
11860 (linux_target_install_ops): Install linux_nat_info_proc.
11861 (_initialize_linux_nat): No longer install "info proc" command
11862 and subcommands.
11863
b9e7b9c3
UW
118642012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11865
11866 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11867 * config.in, configure: Regenerate.
11868
11869 * target.h (struct target_ops): Add to_fileio_readlink.
11870 (target_fileio_readlink): Add prototype.
11871 * target.c (target_fileio_readlink): New function.
11872
11873 * inf-child.c: Conditionally include <sys/param.h>.
11874 (inf_child_fileio_readlink): New function.
11875 (inf_child_target): Install it.
11876
11877 * remote.c (PACKET_vFile_readlink): New enum value.
11878 (remote_hostio_readlink): New function.
11879 (init_remote_ops): Install it.
11880 (_initialize_remote): Handle vFile:readlink packet type.
11881
7313baad
UW
118822012-01-20 Pedro Alves <palves@redhat.com>
11883 Ulrich Weigand <ulrich.weigand@linaro.org>
11884
11885 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11886 * config.in, configure: Regenerate.
11887
11888 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11889 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11890 (target_fileio_open): Add prototype.
11891 (target_fileio_pwrite): Likewise.
11892 (target_fileio_pread): Likewise.
11893 (target_fileio_close): Likewise.
11894 (target_fileio_unlink): Likewise.
11895 (target_fileio_read_alloc): Likewise.
11896 (target_fileio_read_stralloc): Likewise.
11897
11898 * target.c: Include "gdb/fileio.h".
11899 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11900 (default_fileio_target): New function.
11901 (target_fileio_open): Likewise.
11902 (target_fileio_pwrite): Likewise.
11903 (target_fileio_pread): Likewise.
11904 (target_fileio_close): Likewise.
11905 (target_fileio_unlink): Likewise.
11906 (target_fileio_close_cleanup): Likewise.
11907 (target_fileio_read_alloc_1): Likewise.
11908 (target_fileio_read_alloc): Likewise.
11909 (target_fileio_read_stralloc): Likewise.
11910
11911 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11912 <fcntl.h>, and <unistd.h>.
11913 (inf_child_fileio_open_flags_to_host): New function.
11914 (inf_child_errno_to_fileio_error): Likewise.
11915 (inf_child_fileio_open): Likewise.
11916 (inf_child_fileio_pwrite): Likewise.
11917 (inf_child_fileio_pread): Likewise.
11918 (inf_child_fileio_close): Likewise.
11919 (inf_child_fileio_unlink): Likewise.
11920 (inf_child_target): Install to_fileio routines.
11921
11922 * remote.c (init_remote_ops): Install to_fileio routines.
11923
901f9912
UW
119242012-01-20 Pedro Alves <palves@redhat.com>
11925 Ulrich Weigand <ulrich.weigand@linaro.org>
11926
11927 * remote.c (remote_multi_process_p): Only check for multi-process
11928 protocol feature, do not check for extended protocol.
11929 (remote_supports_multi_process): Check for extended protocol here.
11930 (set_general_process): Likewise.
11931 (extended_remote_kill): Likewise.
11932 (remote_pid_to_str): Likewise.
11933 (remote_query_supported): Always query multiprocess mode.
11934
e714e1bf
UW
119352012-01-20 Pedro Alves <palves@redhat.com>
11936 Ulrich Weigand <ulrich.weigand@linaro.org>
11937
11938 * inferior.h (struct inferior): Add fake_pid_p.
11939 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11940 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11941 magic_null_ptid since the remote side doesn't provide a real PID.
11942
50897289
TT
119432012-01-19 Tom Tromey <tromey@redhat.com>
11944
11945 * NEWS: Combine the two Python sections.
11946
1afc2033
JK
119472012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11948
11949 * target.h (target_close): Update comment on the target's unpush state.
11950
305436e0
PA
119512012-01-19 Pedro Alves <palves@redhat.com>
11952
11953 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11954 linux_nat_async directly instead of going through the target
11955 vector.
11956 * target.c (unpush_target): Close target after unpushing it, not
11957 before.
11958
49323895
GB
119592012-01-19 Gary Benson <gbenson@redhat.com>
11960
11961 * mdebugread.c (sort_blocks): Replace integer constants with ones
11962 derived from FIRST_LOCAL_BLOCK.
11963
1db33378
PP
119642012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11965 Jan Kratochvil <jan.kratochvil@redhat.com>
11966
11967 PR gdb/9538
11968 * symfile.c (find_separate_debug_file): New function.
11969 (terminate_after_last_dir_separator): Likewise.
11970 (find_separate_debug_file_by_debuglink): Also try realpath.
11971 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11972 * configure: Regenerate.
11973 * config.in: Regenerate.
11974
f83d8a90
DE
119752012-01-18 Doug Evans <dje@google.com>
11976
11977 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11978 (main.o): Remove rule.
11979 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11980 (--with-sysroot): Rewrite.
11981 * configure: Regenerate.
11982 * config.in: Regenerate.
11983
2dbca4d6
SDJ
119842012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11985
11986 * parse.c (initialize_expout): New function.
11987 (reallocate_expout): Likewise.
11988 (parse_exp_in_context): Use `initialize_expout' and
11989 `reallocate_expout' when appropriate.
11990
0695b514
PA
119912012-01-18 Pedro Alves <palves@redhat.com>
11992
11993 * record.c (struct record_breakpoint, record_breakpoint_p)
11994 (record_breakpoints): New.
11995 (record_insert_breakpoint, record_remove_breakpoint): Manage
11996 record breakpoints list. Only remove breakpoints from the
11997 inferior if they had been inserted there in the first place.
11998
136e1c30
DE
119992012-01-17 Doug Evans <dje@google.com>
12000
12001 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12002 if we know we don't have a file name to look for.
12003
c0bf857d
PA
120042012-01-17 Pedro Alves <palves@redhat.com>
12005
12006 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12007 the frame's stop reason is UNWIND_UNAVAILABLE.
12008
b486de60
JK
120092012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12010
12011 Fix compilation error.
12012 * m2-exp.y (yyerror): Use ANSI C prototype.
12013
d04550a6
SDJ
120142012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12015
12016 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12017 (growbuf_by_size): Likewise.
12018 (yyerror): Likewise.
12019 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12020 (modblock): Remove variable (was #if 0'ed).
12021 (parse_number): Convert prototype from K&R to ANSI C.
12022 (yyerror): Likewise.
12023 * objc-exp.y (parse_number): Likewise.
12024 (yyerror): Likewise.
12025 (yylex): Remove #if 0'ed code.
12026 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12027 (yyerror): Likewise.
12028
4aac40c8
TT
120292012-01-16 Tom Tromey <tromey@redhat.com>
12030
12031 * NEWS: Add item.
12032 * symtab.h (compare_filenames_for_search): Declare.
12033 * symtab.c (compare_filenames_for_search): New function.
12034 (iterate_over_some_symtabs): Use it.
12035 * symfile.h (struct quick_symbol_functions)
12036 <map_symtabs_matching_filename>: Change spec.
12037 * psymtab.c (partial_map_symtabs_matching_filename): Use
12038 compare_filenames_for_search. Update for new spec.
12039 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12040 compare_filenames_for_search. Update for new spec.
12041 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12042
cafec441
TT
120432012-01-16 Tom Tromey <tromey@redhat.com>
12044
12045 PR python/13281:
12046 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12047 (struct main_type) <flag_flag_enum>: New field.
12048 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12049 * NEWS: Add entries.
12050 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12051 enums.
12052 * python/lib/gdb/printing.py (_EnumInstance): New class.
12053 (FlagEnumerationPrinter): Likewise.
12054
983af33b
SDJ
120552012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12056
12057 * breakpoint.c (create_sals_from_address_default): New function.
12058 (create_breakpoints_sal_default): Likewise.
12059 (decode_linespec_default): Likewise.
12060 (is_marker_spec): Removed.
12061 (strace_marker_p): New function.
12062 (init_breakpoint_sal): Using `strace_marker_p' instead of
12063 `is_marker_spec'.
12064 (create_breakpoint): Call method `create_sals_from_address' from
12065 breakpoint_ops, replacing code that created SALs conditionally
12066 on the type of the breakpoint. Call method `create_breakpoints_sal',
12067 replacing code that created breakpoints conditionally on the type
12068 wanted.
12069 (base_breakpoint_create_sals_from_address): New function.
12070 (base_breakpoint_create_breakpoints_sal): Likewise.
12071 (base_breakpoint_decode_linespec): Likewise.
12072 (base_breakpoint_ops): Add methods
12073 `base_breakpoint_create_sals_from_address',
12074 `base_breakpoint_create_breakpoints_sal' and
12075 `base_breakpoint_decode_linespec'.
12076 (bkpt_create_sals_from_address): New function.
12077 (bkpt_create_breakpoints_sal): Likewise.
12078 (bkpt_decode_linespec): Likewise.
12079 (tracepoint_create_sals_from_address): Likewise.
12080 (tracepoint_create_breakpoints_sal): Likewise.
12081 (tracepoint_decode_linespec): Likewise.
12082 (strace_marker_create_sals_from_address): Likewise.
12083 (strace_marker_create_breakpoints_sal): Likewise.
12084 (strace_marker_decode_linespec): Likewise.
12085 (strace_marker_breakpoint_ops): New variable.
12086 (addr_string_to_sals): Remove `marker_spec'. Call method
12087 `decode_linespec' from breakpoint_ops, replacing code that decoded
12088 an address string into a SAL. Use `strace_marker_p' instead of
12089 `marker_spec'.
12090 (strace_command): Decide whether we are dealing with a static
12091 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12092 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12093 * breakpoint.h (linespec_result, linespec_sals): New forward
12094 declarations.
12095 (breakpoint_ops) <create_sals_from_address>,
12096 <create_breakpoints_sal>, <decode_linespec>: New methods.
12097
4795f398
DE
120982012-01-14 Doug Evans <dje@google.com>
12099
12100 * NEWS: Update text for "maint set python print-stack".
12101 It is deprecated in gdb 7.4 and deleted in 7.5.
12102
ee5106fe
EZ
121032012-01-13 Eli Zaretskii <eliz@gnu.org>
12104
12105 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12106 including curses.h.
12107
b161e06f
JK
121082012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12109
12110 * configure: Regenerate.
12111 * config.in: Regenerate.
12112
85254831
KS
121132012-01-12 Keith Seitz <keiths@redhat.com>
12114
12115 PR mi/10586
12116 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12117 (ANONYMOUS_UNION_NAME): Define.
12118 (is_path_expr_parent): New function.
12119 (get_path_expr_parent): New function.
12120 (is_anonymous_child): New function.
12121 (create_child_with_value): If the child is anonymous and without
12122 a name, assign an object name to it.
12123 (c_describe_child): Use get_path_expr_parent to determine
12124 the parent expression.
12125 If there field represents an anonymous struct or union and
12126 has no name, set an appropriate display name and expression.
12127 (cplus_describe_child): Likewise.
12128
620fa63a
PA
121292012-01-12 Pedro Alves <palves@redhat.com>
12130
12131 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12132 available when %ebp is found to be zero (outermost).
12133
2efa2c79
AT
121342012-01-11 Andreas Tobler <andreast@fgznet.ch>
12135
12136 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12137 an internal gdb_static_assert.
12138 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12139
88e7d25d
TT
121402012-01-11 Tom Tromey <tromey@redhat.com>
12141
12142 PR gdb/9598:
12143 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12144 catch" and "catch throw".
12145
72384ba3
PH
121462012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12147
12148 * blockframe.c (block_innermost_frame): Start search from selected
12149 frame, if present, or otherwise the current frame.
12150
12151 * c-exp.y (variable): Update innermost_block for
12152 'block COLONCOLON NAME' clause.
12153 * m2-exp.y (variable): Ditto.
12154 * objc-exp.y (variable): Ditto.
12155
065a711f
TT
121562012-01-10 Tom Tromey <tromey@redhat.com>
12157
12158 PR python/13199:
12159 * python/python.c (finish_python_initialization): Set sys.argv.
12160
f3f5162e
DE
121612012-01-10 Doug Evans <dje@google.com>
12162
12163 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12164 "want_line_info". All callers updated.
12165 (dwarf_decode_lines_1): New function.
12166 (handle_DW_AT_stmt_list): Add function comment.
12167 New arg "want_line_info". All callers updated.
12168 (read_file_scope,read_type_unit_scope): Move comment from
12169 handle_DW_AT_stmt_list to here.
12170
9934703b
JK
121712012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12172
12173 Fix regression after libiberty/ update for GCC PR 6057 and others.
12174 * c-exp.y (operator) <OPERATOR DELETE>
12175 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12176 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12177 (make_builtin_type, make_name): New variable i, add gdb_assert.
12178 (operator) <OPERATOR NEW>: Update ARGS to 3.
12179 (operator) <OPERATOR DELETE>: Add trailing space.
12180 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12181 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12182 * cp-support.c (cp_canonicalize_string): Check NULL from
12183 cp_comp_to_string, call warning and return.
12184
06b9f45f
JK
121852012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12186
12187 Fix duplicate .o files after omitting libbfd.a.
12188 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12189 (SFILES): Add corelow.c.
12190 (COMMON_OBS): Add corelow.o.
12191 (ALLDEPFILES): Remove corelow.c.
12192 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12193 * config/alpha/alpha-osf3.mh: Likewise.
12194 * config/alpha/fbsd.mh: Likewise.
12195 * config/arm/nbsdaout.mh: Likewise.
12196 * config/arm/nbsdelf.mh: Likewise.
12197 * config/i386/i386gnu.mh: Likewise.
12198 * config/ia64/hpux.mh: Likewise.
12199 * config/ia64/linux.mh: Likewise.
12200 * config/m32r/linux.mh: Likewise.
12201 * config/m68k/linux.mh: Likewise.
12202 * config/mips/irix5.mh: Likewise.
12203 * config/mips/irix6.mh: Likewise.
12204 * config/pa/hpux.mh: Likewise.
12205 * config/pa/linux.mh: Likewise.
12206 * config/powerpc/aix.mh: Likewise.
12207 * config/sparc/linux.mh: Likewise.
12208 * config/sparc/linux64.mh: Likewise.
12209 * config/sparc/sol2.mh: Likewise.
12210 * config/vax/vax.mh: Likewise.
12211 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12212 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12213 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12214 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12215 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12216 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12217 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12218 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12219 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12220 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12221 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12222 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12223 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12224 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12225 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12226 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12227 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12228 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12229 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12230 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12231 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12232 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12233 corelow.o from gdb_target_obs.
12234 * corefile.c (core_target): Update the comment on NULL value.
12235 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12236 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12237 MATCHES. Drop YUMMY set on NULL.
12238 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12239 reclaim CORE_DATA if it is already NULL.
12240
34365054
DE
122412012-01-09 Doug Evans <dje@google.com>
12242
12243 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12244 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12245
696166a3
KS
122462012-01-09 Keith Seitz <keiths@redhat.com>
12247
12248 * breakpoint.c (wrapper.h): Don't include.
12249
8e7b59a5
KS
122502012-01-09 Keith Seitz <keiths@redhat.com>
12251
12252 * Makefile.in (SFILES): Remove wrapper.c.
12253 (HFILES_NO_SRCDIR): Remove wrapper.h.
12254 (COMMON_OBS): Remove wrapper.o.
12255 * cli/cli-interp.c: Don't inlude wrapper.h.
12256 * corelow.c: Likewise.
12257 (core_open): Replace gdb_target_find_new_threads with
12258 TRY_CATCH around target_find_new_threads.
12259 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12260 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12261 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12262 evaluate_expression.
12263 (varobj_set_value): Likewise for evaluate_expression and
12264 value_assign.
12265 (install_new_variable): Likewise for value_fetch_lazy.
12266 (adjust_value_for_child_access): Likewise for value_ind.
12267 (c_describe_child): Likewise for value_subscript and
12268 value_ind.
12269 (c_value_of_root): Likewise for evaluate_expression.
12270 * wrapper.c: Remove.
12271 * wrapper.h: Remove.
12272
1a4eeb98
DE
122732012-01-09 Doug Evans <dje@google.com>
12274
9ff913ba
DE
12275 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12276 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12277 "abfd" args with "section". All callers updated.
12278 Error checking code moved ...
12279 (error_check_comp_unit_head): ... here. New function.
12280 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12281 Delete arg "abfd". New arg "type_offset". All callers updated.
12282 (create_debug_types_hash_table): Simplify by using
12283 read_and_check_type_unit_head.
12284
1a4eeb98
DE
12285 * parser-defs.h (namecopy): Delete.
12286 * parse.c (namecopy, namecopy_size): Move into copy_name.
12287
2e6af8c0
JK
122882012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12289
12290 Partially fix duplicate .o files after omitting libbfd.a.
12291 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12292 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12293 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12294 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12295 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12296 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12297 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12298
9f2f828a
PA
122992012-01-09 Pedro Alves <palves@redhat.com>
12300
12301 * MAINTAINERS: Update my email address.
12302
4d72c0bc
DE
123032012-01-08 Doug Evans <dje@google.com>
12304
d467dd73
DE
12305 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12306 n_type_units. Rename type_comp_units to all_type_units.
12307 All uses updated.
12308 (add_signatured_type_cu_to_table): Renamed from
12309 add_signatured_type_cu_to_list. All callers updated.
12310
4d72c0bc
DE
12311 * gdbtypes.h (struct cplus_struct_type): Delete member
12312 nfn_fields_total. All uses removed.
12313
21b2bd31
DE
123142012-01-06 Doug Evans <dje@google.com>
12315
12316 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12317 to top of file.
12318 (dwarf2_find_comp_unit): Delete.
12319 (process_psymtab_comp_unit): Make result "void".
12320 Delete args buffer, info_ptr, buffer_size, and replace with
12321 "section". All callers updated.
12322 (dwarf2_build_psymtabs_hard): Simplify.
12323
bfd189b1
SDJ
123242012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12325 Thiago Jung Bauermann <bauerman@br.ibm.com>
12326
12327 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12328 before `struct gdb_exception'.
12329 * breakpoint.c (update_global_location_list_nothrow)
12330 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12331 * cp-abi.c (value_rtti_type): Likewise.
12332 * cp-support.c (cp_validate_operator): Likewise.
12333 * infrun.c (insert_exception_resume_breakpoint)
12334 (check_exception_resume, keep_going): Likewise.
12335 * mi-interp.c (mi_breakpoint_created)
12336 (mi_breakpoint_modified): Likewise.
12337 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12338 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12339 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12340
6b07635f
DE
123412012-01-05 Doug Evans <dje@google.com>
12342
0b30b85c
DE
12343 * dwarf2read.c (statement_prologue): Delete, unused.
12344
98714339
DE
12345 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12346 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12347
6b07635f
DE
12348 * dwarf2read.c (comp_unit_header): Delete, unused.
12349
761f4555
UW
123502012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12351
12352 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12353 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12354
2ca0b532
PA
123552012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12356
12357 * infrun.c (normal_stop): Don't skip calling the normal_stop
12358 observers if the thread was doing a multi-step, but stopped for
12359 some reason other than stepping.
12360
50aeff07
PA
123612012-01-05 Pedro Alves <alves.ped@gmail.com>
12362
12363 * cli/cli-decode.h: Add comments.
12364 (CMD_LIST_AMBIGUOUS): Moved to command.h
12365 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12366 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12367 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12368 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12369 (add_com, add_com_alias, add_info, add_info_alias)
12370 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12371 declarations.
12372 * command.h: Add and adjust comments.
12373 (CMD_LIST_AMBIGUOUS): Moved here.
12374 (help_cmd, help_cmd_list): Delete declarations.
12375
5953832c
DE
123762012-01-04 Doug Evans <dje@google.com>
12377
e5fe5e75
DE
12378 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12379 All callers updated.
12380 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12381 Replace all arguments with "per_cu". All callers updated.
12382
28dee7f5
DE
12383 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12384
23745b47
DE
12385 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12386 New arg "per_cu". All callers updated.
12387
5953832c
DE
12388 Delete #if 0'd out code.
12389 * language.c (binop_result_type): Delete.
12390 (simple_type, ordered_type, same_type, integral_type): Delete.
12391 (numeric_type, character_type, string_type, boolean_type): Delete.
12392 (float_type, structured_type): Delete.
12393 * language.h: Update.
12394
0f5b7562
TT
123952012-01-04 Tom Tromey <tromey@redhat.com>
12396
12397 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12398
78218f56
JB
123992012-01-04 Joel Brobecker <brobecker@adacore.com>
12400
12401 * corefile.c (close_exec_file): Delete.
12402 (reopen_exec_file): Remove commented out code that seems related
12403 to close_exec_file, which is being deleted here.
12404 * inferior.h (close_exec_file): Delete.
12405 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12406
0fcd72ba
JB
124072012-01-04 Joel Brobecker <brobecker@adacore.com>
12408
12409 * ada-lang.c: #include "cli/cli-utils.h".
12410 (get_selections): Use skip_spaces.
12411 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12412 (catch_ada_exception_command_split): Use skip_spaces.
12413 (ada_decode_assert_location): Likewise.
12414
1dabb4c4
JB
124152012-01-04 Joel Brobecker <brobecker@adacore.com>
12416
12417 * linespec.c (decode_line_internal): Check for C++ or Java
12418 compound constructs only if the current language is C, C++
12419 or Java.
12420
5931a2fa
JK
124212012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12422
12423 Revert:
12424 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12425 Joel Brobecker <brobecker@adacore.com>
12426 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12427 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12428 3 times.
12429 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12430 fall through into AT_ENTRY_POINT.
12431 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12432 DUMMY_ADDR with it.
12433 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12434 PPC_INSN_SIZE skip to 3 times.
12435
1a2da5ee
JB
124362012-01-04 Joel Brobecker <brobecker@adacore.com>
12437
12438 * linespec.c (add_minsym): Preserve function descriptors.
12439
8645ff69
UW
124402012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12441
12442 * breakpoint.c (all_locations_are_pending): Consider locations
12443 in program spaces executing during startup pending as well.
12444
0b302171
JB
124452012-01-04 Joel Brobecker <brobecker@adacore.com>
12446
12447 Copyright year update in most files of the GDB Project.
12448
8ba098ad
JB
124492012-01-04 Joel Brobecker <brobecker@adacore.com>
12450
12451 * copyright.sh: Delete.
12452 * copyright.py: Rewrite.
12453
09c01c30
JB
124542012-01-04 Joel Brobecker <brobecker@adacore.com>
12455
12456 * gnulib/extra/update-copyright: New file, imported from gnulib.
12457
3c36c0af
JB
124582012-01-04 Joel Brobecker <brobecker@adacore.com>
12459
12460 * README (Copyright and License Notices): New section.
12461
888fe1e1
TT
124622012-01-03 Tom Tromey <tromey@redhat.com>
12463
12464 PR python/12533:
12465 * python/py-value.c (valpy_dereference, valpy_get_address
12466 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12467 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12468 (valpy_absolute, valpy_richcompare): Free intermediate values.
12469
6e681866
JB
124702011-01-03 Joel Brobecker <brobecker@adacore.com>
12471
12472 * ada-lang.c: Reformat the copyright notice.
12473
0cd09acb
JK
124742012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12475
12476 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12477 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12478 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12479 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12480 Revert this part of:
12481 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12482 Build gdb directly from *.o files not using libgdb.a.
12483 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12484
12c3e59c
JB
124852012-01-02 Joel Brobecker <brobecker@adacore.com>
12486
12487 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12488 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12489 Reformat the copyright header.
12490
11bf1490
JK
124912012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12492
12493 Revert this part of:
12494 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12495 Remove the gdbtui binary.
12496 * gdb.c (main): Remove args.interpreter_p initialization.
12497 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12498 * main.h (struct captured_main_args): Remove interpreter_p.
12499
1fef196f
JB
125002012-01-02 Joel Brobecker <brobecker@adacore.com>
12501
12502 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12503
67827812
JB
125042012-01-02 Joel Brobecker <brobecker@adacore.com>
12505
12506 * top.c (print_gdb_version): Update copyright year.
12507
a4d0b831
YQ
125082012-01-02 Yao Qi <yao@codesourcery.com>
12509
12510 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12511
b5914469
JK
125122012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12513 Joel Brobecker <brobecker@adacore.com>
12514
12515 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12516 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12517 3 times.
12518 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12519 fall through into AT_ENTRY_POINT.
12520 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12521 DUMMY_ADDR with it.
12522 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12523 PPC_INSN_SIZE skip to 3 times.
12524
8da828f7
JK
125252012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12526
12527 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12528 the return value.
12529 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12530
8574e74b
JK
125312012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12532
12533 Build gdb directly from *.o files not using libgdb.a.
12534 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12535 (COMMON_OBS): Remove solib-target.o.
12536 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12537 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12538 (LIBGDB_OBS, libgdb.a): Move it above.
12539 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12540 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12541 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12542 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12543 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12544 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12545 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12546 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12547 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12548 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12549 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12550 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12551 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12552 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12553 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12554 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12555 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12556 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12557 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12558 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12559 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12560 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12561 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12562 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12563 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12564 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12565 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12566
217bff3e
JK
125672012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12568
12569 Remove the gdbtui binary.
12570 * .gitignore (/gdbtui): Remove.
12571 * Makefile.in (TUI): Remove.
12572 (SUBDIR_TUI_OBS): Remove tui-main.o.
12573 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12574 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12575 (tui-main.o): Remove.
12576 (all_object_files): Remove tui-main.o.
12577 * NEWS: New note for the gdbtui removal.
12578 * configure: Rebuilt.
12579 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12580 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12581 CONFIG_UNINSTALL respectively.
12582 * gdb.c (main): Remove args.interpreter_p initialization.
12583 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12584 * main.h (struct captured_main_args): Remove interpreter_p.
12585 * tui/tui-main.c: Remove.
12586
9cdd5dbd
DE
125872012-01-01 Doug Evans <dje@google.com>
12588
bb5ed363
DE
12589 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12590 (dwarf2_physname, read_import_statement): Ditto.
12591 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12592 (process_structure_scope read_subroutine_type): Ditto.
12593 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12594 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12595 (dwarf2_fetch_die_location_block): Ditto.
12596 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12597
a0f42c21
DE
12598 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12599 All callers updated.
12600 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12601 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12602 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12603
2dc860c0
DE
12604 * dwarf2read.c (load_cu): Move assert to more useful location.
12605
68dc6402
DE
12606 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12607 All callers updated.
12608
9cdd5dbd
DE
12609 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12610 (dwarf2_elf_names): Minor reformat.
12611 (dwarf2_per_cu_data): Tweak comment.
12612 (dwarf2_read_section): Fix comment.
12613 (create_all_comp_units): Fix comment.
12614 (load_full_comp_unit): Fix comment.
12615 (process_full_comp_unit): Fix comment.
12616 (read_signatured_type): Fix comment.
12617
0c10e53e 12618For older changes see ChangeLog-2011.
c906108c
SS
12619\f
12620Local Variables:
12621mode: change-log
12622left-margin: 8
12623fill-column: 74
12624version-control: never
57da7796 12625coding: utf-8
c906108c 12626End:
This page took 1.929885 seconds and 4 git commands to generate.