]> Git Repo - binutils.git/blame - gdb/ChangeLog
* solib-target.c (solib_target_current_sos): Remove 'const'
[binutils.git] / gdb / ChangeLog
CommitLineData
b25d79d4
PM
12012-12-14 Pierre Muller <[email protected]>
2 Pedro Alves <[email protected]>
3
4 * solib-target.c (solib_target_current_sos): Remove 'const'
5 qualifier from type of library_document local variable to be
6 able to free it and avoid a memory leak.
7 Use cleanup chain to avoid leak even if exceptino is generated.
8
6592e36f
TT
92012-12-14 Tom Tromey <[email protected]>
10
11 PR c++/8888:
12 * symtab.c (lookup_symbol_aux): If constructor is found, consider
13 returning the type instead.
14 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
15 found.
16
7d27a96d
TT
172012-12-14 Tom Tromey <[email protected]>
18
19 Partial fix for PR c++/14160:
20 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
21 * dwarf2read.c (dwarf2_is_constructor): New function.
22 (dwarf2_add_member_fn): Use it.
23 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
24 TYPE_FN_FIELD_CONSTRUCTOR.
25 * jv-typeprint.c (java_type_print_base): Use
26 TYPE_FN_FIELD_CONSTRUCTOR.
27 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
28 <dummy>: Shrink.
29 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
30
1993b719
TT
312012-12-14 Tom Tromey <[email protected]>
32
33 * c-exp.y (block, variable, name_not_typename, lex_one_token,
34 classify_name): Update.
35 * c-valprint.c (c_val_print): Update.
36 * f-exp.y (yylex): Update.
37 * go-exp.y (package_name_p, classify_packaged_name)
38 (classify_name): Update.
39 * jv-exp.y (push_variable): Update.
40 * m2-exp.y (variable): Update.
41 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
42 * p-exp.y (block, variable, yylex): Update.
43 * p-valprint.c (pascal_val_print): Update.
44 * parse.c (write_dollar_variable): Update.
45 * printcmd.c (address_info): Update.
46 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
47 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
48 (lookup_symbol): Change type of 'is_a_field_of_this'.
49 (check_field): Add 'is_a_field_of_this' argument.
50 * symtab.h (struct field_of_this_result): New.
51 (lookup_symbol, lookup_symbol_in_language): Update.
52
2dc3df72
TT
532012-12-14 Tom Tromey <[email protected]>
54
55 * symtab.c (check_field): Now static. Move from...
56 * valops.c (check_field): ... here. Remove.
57 * value.h (check_field): Don't declare.
58
451b7c33
TT
592012-12-14 Tom Tromey <[email protected]>
60
61 * NEWS: Mention "info proc" and core files.
62 * corelow.c (core_info_proc): New function.
63 (init_core_ops): Set to_info_proc.
64 * gdbarch.c, gdbarch.h: Rebuild.
65 * gdbarch.sh (core_info_proc): New method.
66 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
67 * linux-tdep.c (linux_core_info_proc_mappings)
68 (linux_core_info_proc): New functions.
69 (linux_find_memory_region_ftype): New typedef.
70 (linux_find_memory_regions_full): New function, from
71 linux_find_memory_regions.
72 (struct linux_find_memory_regions_data): New.
73 (linux_find_memory_regions_thunk): New function.
74 (linux_find_memory_regions): Rewrite.
75 (struct linux_make_mappings_data): New.
76 (linux_make_mappings_callback)
77 (linux_make_mappings_corefile_notes): New functions.
78 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
79 (linux_init_abi): Call set_gdbarch_core_info_proc.
80 * target.c (target_info_proc): Return 'int'.
81 * target.h (target_info_proc): Update.
82
49dc7f4b
PM
832012-12-14 Pierre Muller <[email protected]>
84
85 * windows-nat.c (windows_xfer_shared_libraries): Avoid
86 memory leak when OFFSET >= LEN_AVAIL.
87
e03e6279
TT
882012-12-13 Tom Tromey <[email protected]>
89
90 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
91
7b9c0bfb
TT
922012-12-13 Tom Tromey <[email protected]>
93
94 * acinclude.m4 (CY_AC_C_WORKS): Remove.
95
d8f4a83e
PM
962012-12-13 Pierre Muller <[email protected]>
97
98 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
99 local variable and zero terminate it to avoid possible problems
100 in strcmp.
101
aab2f004
PA
1022012-12-13 Pedro Alves <[email protected]>
103
104 * coff-pe-read.c: Include coff/internal.h.
105 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
106 Null terminate buffer explicitly instead of memset the whole
107 buffer.
108
78ea0eca
PM
1092012-12-13 Pierre Muller <[email protected]>
110
111 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
112 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
113 for already defined macros.
114
3999122f
PM
1152012-12-13 Pierre Muller <[email protected]>
116
117 * coff-pe-read.h (pe_text_section_offset): Declare new function.
118 * coff-pe-read.c (debug_coff_pe_read): New static variable.
119 (struct read_pe_section_data): Add section_name field.
120 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
121 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
122 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
123 (get_pe_section_index): New function.
124 (struct pe_sections_info): New type.
125 (get_section_vmas): Use new struct pe_sections_info.
126 (add_pe_exported_sym): Handle unnamed exported function.
127 (add_pe_forwarded_sym): New function.
128 (read_pe_truncate_name): Truncate at last dot.
129 (pe_as16): New function.
130 (read_pe_exported_syms): Use ordinal of function to
131 retrieve correct RVA address of function and handle
132 forwarded symbol.
133 (pe_text_section_offset): New function.
134 (show_debug_coff_pe_read): New function.
135 (_initialize_coff_pe_read): New function adding
136 'set/show debug coff_pe_read' commands.
137
138 * windows-tdep.c (windows_xfer_shared_library): Use
139 pe_text_section_offset function instead of possibly wrong
140 0x1000 constant for .text sextion offset.
141
c9023fb3
PA
1422012-12-13 Pedro Alves <[email protected]>
143
144 * gdbarch.sh (do_read): Set IFS to blank.
145
3fa7bf06
MG
1462012-12-12 Mircea Gherzan <[email protected]>
147
148 * NEWS: Mention the -catch-load/-catch-unload MI commands.
149
91985142 1502012-12-12 Mircea Gherzan <[email protected]>
f87e3f15 151
91985142
MG
152 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
153 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
154 * breakpoint.c (add_solib_catchpoint): New function that
155 can be used by both CLI and MI, factored out from
156 catch_load_or_unload.
157 (catch_load_or_unload): Strip it down and make it use the
158 new add_solib_catchpoint.
159 * breakpoint.h (add_solib_catchpoint): Declare it.
160 * mi/mi-cmd-break.h: New file.
161 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
162 (setup_breakpoint_reporting): New function used for both
163 catchpoints and breakpoints.
164 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
165 * mi/mi-cmd-catch.c: New file.
166 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
167 and -catch-unload.
168 * mi/mi-cmds.h: Declare the handlers for -catch-load and
169 -catch-unload.
170
5c80ed9d
TT
1712012-11-28 Tom Tromey <[email protected]>
172
173 * dbxread.c (read_dbx_symtab): Update.
174 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
175 (read_ofile_symtab): Add 'objfile' argument.
176 * dwarf2read.c (process_psymtab_comp_unit_reader)
177 (build_type_psymtabs_reader): Update.
178 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
179 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
180 argument.
181 (parse_procedure, parse_partial_symbols): Update.
182 (psymtab_to_symtab_1): Add 'objfile' argument.
183 * psympriv.h (struct partial_symtab) <objfile>: Remove.
184 <read_symtab>: Add 'objfile' argument.
185 (sort_pst_symbols, discard_psymtab): Update.
186 * psymtab.c (partial_map_expand_apply): Update.
187 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
188 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
189 (find_pc_sect_psymbol): Add 'objfile' argument.
190 (lookup_symbol_aux_psymtabs): Update.
191 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
192 Add 'objfile' argument.
193 (find_last_source_symtab_from_partial, dump_psymtab)
194 (dump_psymtabs_for_objfile, read_symtabs_for_function)
195 (expand_partial_symbol_tables, read_psymtabs_with_filename)
196 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
197 (expand_symtabs_matching_via_partial): Update.
198 (sort_pst_symbols): Add 'objfile' argument.
199 (allocate_psymtab): Update.
200 (discard_psymtab): Add 'objfile' argument.
201 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
202 * stabsread.h (end_psymtab): Update.
203 * xcoffread.c (this_symtab_objfile): New global.
204 (process_linenos, enter_line_range, xcoff_next_symbol_text):
205 Update.
206 (read_xcoff_symtab): Add 'objfile' argument.
207 (read_symbol, read_symbol_lineno): Update.
208 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
209 (xcoff_end_psymtab): Add 'objfile' argument.
210 (scan_xcoff_symtab): Update.
211
9a27f2c6
PK
2122012-12-12 Paul Koning <[email protected]>
213
214 Add support for Python 3.
215 * NEWS: Mention Python 3 support.
216 * varobj.c (value_get_print_value): Use
217 python_string_to_target_string.
218 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
219 of type objects.
220 * python/py-breakpoint.c: Ditto.
221 * python/py-cmd.c: Ditto.
222 * python/py-event.c: Ditto.
223 * python/py-event.h: Ditto.
224 * python/py-evtregistry.c: Ditto.
225 * python/py-finishbreakpoint.c: Ditto.
226 * python/py-frame.c: Ditto.
227 * python/py-function.c: Ditto.
228 * python/py-infthread.c: Ditto.
229 * python/py-lazy-string.c: Ditto.
230 * python/py-progspace.c: Ditto.
231 * /python/py-symbol.c: Ditto.
232 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
233 initialization for Python 3.
234 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
235 of type objects.
236 (infpy_read_memory): Return memoryview object if Python 3.
237 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
238 (infpy_search_memory): Ditto.
239 (get_buffer): New function for Python 3.
240 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
241 of type objects.
242 (objfpy_dealloc): Use Py_TYPE to call tp_free.
243 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
244 of type objects.
245 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
246 (set_attr): Ditto.
247 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
248 instead of PyString methods if Python 3.
249 (print_children): Skip push_dummy_python_frame call if Python 3.
250 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
251 of type objects.
252 (salpy_dealloc): Use Py_TYPE to call tp_free.
253 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
254 of type objects.
255 (field_dealloc): Use Py_TYPE to call tp_free.
256 (typy_dealloc): Ditto.
257 (type_object_as_number): Adjust struct initializations for
258 differences in layout for Python 2 vs. Python 3.
259 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
260 string case for Python 3.
261 (unicode_to_encoded_python_string): Shorten code (no functional
f87e3f15 262 change).
9a27f2c6
PK
263 (python_string_to_target_python_string): Comment that in Python 3
264 returned value is a Python "bytes" type.
265 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
266 (gdb_py_object_from_longest): Omit non-long integer case in Python
267 3.
268 (gdb_py_object_from_ulongest): Ditto.
269 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
270 of type objects.
271 (valpy_dealloc): Use Py_TYPE to call tp_free.
272 (valpy_int): Omit function if Python 3.
273 (convert_value_from_python): Use "%S" format (Python object as a
274 string) if Python 3.
275 (value_object_as_number): Adjust struct initializations for
276 differences in layout for Python 2 vs. Python 3.
277 * python/python-config.py: Adjust syntax for Python 3
f87e3f15 278 compatibility.
9a27f2c6
PK
279 Include "sys.abiflags" string as part of python library name, if
280 that attribute exists (Python 3).
281 * python/python-internal.h (IS_PY3): Define if Python 3.
282 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
283 placeholder value if Python 3.
284 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
285 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
286 analogous Python 3 API function if Python 3.
287 (PyVarObject_HEAD_INIT): Define if not already defined.
288 (Py_TYPE): Ditto.
289 * python/python.c (eval_python_command): Omit Py_FlushLine call if
290 Python 3.
291 Check return values of all Python API calls for error.
292 Supply dummy "python" and "python-interactive" commands if Python
293 initialization failed.
294 (_initialize_python): Convert argc to wchar_t** if Python 3.
295 Add module initialization for Python 3.
296 (finish_python_initialization): Pass wchar_t * argument to
297 PySys_SetPath if Python 3.
298 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
299 (_GdbFile): New class for common output file behavior.
300 (GdbOutFile): Subclass from _GdbFile.
301 (GdbOutputErrorFile): Ditto.
302 (auto_load_packages): Adjust syntax for Python 3 compatibility.
303 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
304 * python/lib/gdb/prompt.py: Use sorted() function rather than
305 sort() method.
306 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
307 Adjust syntax for Python 3 compatibility.
308 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
309 rather than sort() method.
310 Adjust syntax for Python 3 compatibility.
311 * python/lib/gdb/command/type_printers.py: Ditto.
312 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
313 value is a memoryview object if Python 3.
314
b8b98ad1
TT
3152012-12-12 Tom Tromey <[email protected]>
316
317 * coffread.c (coff_objfile_data_key): New global.
318 (coff_symfile_init): Use set_objfile_data.
319 (coff_symfile_read): Use objfile_data.
320 (coff_symfile_finish): Don't free deprecated_sym_private.
321 (coff_free_info): New function.
322 (_initialize_coffread): Initialize coff_objfile_data_key.
323 * mdebugread.c (pending_list): Update comment.
324 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
325 * symfile.c (reread_symbols): Don't mention
326 deprecated_sym_private.
327 * xcoffread.c (xcoff_objfile_data_key): New global.
328 (XCOFF_DATA): New macro.
329 (process_linenos, enter_line_range, xcoff_next_symbol_text)
330 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
331 XCOFF_DATA.
332 (xcoff_new_init) Use set_objfile_data.
333 (xcoff_symfile_finish): Don't free deprecated_sym_private.
334 (init_stringtab, swap_sym, scan_xcoff_symtab)
335 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
336 (xcoff_free_info): New function.
337 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
338
afedb563
MG
3392012-12-12 Mircea Gherzan <[email protected]>
340
341 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
342
d2f4b8fe
TT
3432012-12-12 Tom Tromey <[email protected]>
344
345 * coffread.c (coff_symfile_init): Use set_objfile_data.
346 (coff_symfile_read): Use DBX_SYMFILE_INFO.
347 * dbxread.c (dbx_objfile_data_key): New global.
348 (dbx_symfile_init): Use set_objfile_data.
349 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
350 (dbx_free_symfile_info): New function.
351 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
352 DBX_SYMFILE_INFO.
353 (stabsect_build_psymtabs): Use set_objfile_data.
354 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
355 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
356 set_objfile_data.
357 (free_elfinfo): Use DBX_SYMFILE_INFO.
358 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
359 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
360 * gdb-stabs.h (dbx_objfile_data_key): Declare.
361 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
362 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
363 * somread.c (som_symfile_finish): Don't free
364 deprecated_sym_stab_info.
365
6f112b18
JB
3662012-12-12 Joel Brobecker <[email protected]>
367
368 * gdbarch.sh (software_single_step): Remove trailing space in
369 comment (gdbarch.h is already correct).
370
8d2cc612
TT
3712012-12-11 Tom Tromey <[email protected]>
372
373 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
374
735522c2
TT
3752012-12-11 Tom Tromey <[email protected]>
376
377 * dsrec.c (report_transfer_performance): Don't declare.
378 (load_srec): Use gettimeofday, print_transfer_performance.
379 * symfile.c (report_transfer_performance): Remove.
380
3e3420f6
PA
3812012-12-11 Pedro Alves <[email protected]>
382 Pedro Alves <[email protected]>
383
384 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
385 NT_PSTATUS note.
386 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
387 differently from LWP IDs.
388
05b4bd79
PA
3892012-12-11 Pedro Alves <[email protected]>
390
391 * configure.ac (detect type of /proc): Remove Unixware handling.
392 * configure: Regenerate.
393 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
394 (ioctl_table) [PCRESET]: Remove entry.
395 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
396 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
397 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
398 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
399 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
400 Unixware in comments throughout.
401 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
402 and remove mention of Unixware.
403
072cabfe
DE
4042012-12-10 Doug Evans <[email protected]>
405
ab435259
DE
406 * dwarf2read.c (dwarf2_cu): Enhance comment.
407 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
408 the DWO file.
409 (dwarf2_record_block_ranges): Ditto.
410
c766f7ec
DE
411 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
412
072cabfe
DE
413 * symtab.c (find_pc_sect_symtab): Add comment.
414
660ff106
TT
4152012-12-10 Tom Tromey <[email protected]>
416
417 * defs.h: Don't check for definition of LONGEST.
418 (min, max): Remove duplicates.
419
8b9737bf
TT
4202012-12-10 Tom Tromey <[email protected]>
421
422 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
423 (dwarf2_fetch_die_loc_cu_off): Rename from
424 dwarf2_fetch_die_location_block. Rewrite to use
425 dwarf2_fetch_die_loc_sect_off.
426 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
427 (dwarf2_fetch_die_loc_cu_off): Rename.
428 * dwarf2loc.c (indirect_pieced_value): Use
429 dwarf2_fetch_die_loc_sect_off.
430 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
431 comment.
432 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
433 * dwarf2expr.c (add_piece): Update.
434 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
435
93eed41f
TT
4362012-12-10 Tom Tromey <[email protected]>
437
438 * buildsym.c (struct pending_block): Move from buildsym.h.
439 (pending_blocks): Likewise; now static.
440 (pending_block_obstack): New global.
441 (free_pending_blocks): Free blocks.
442 (record_pending_block): Use pending_block_obstack.
443 * buildsym.h (struct pending_block): Move definition to
444 buildsym.c.
445 (pending_blocks): Don't declare.
446
d2e5c99a
PA
4472012-12-10 Pedro Alves <[email protected]>
448
449 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
450 dead SCO code, and adjust function description comment.
451
74a0d9f6
JK
4522012-12-09 Jan Kratochvil <[email protected]>
453
454 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
455 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
456 CC_HAS_LONG_LONG.
457 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
458 * dwarf2read.c (extract_cu_value): Remove the function.
459 (create_cus_from_index_list): Make the return type void, inline the
460 extract_cu_value caller, include new gdb_static_assert.
461 (create_cus_from_index): Make the return type void, update the function
462 comment, update the create_cus_from_index_list caller.
463 (create_signatured_type_table_from_index): Make the return type void,
464 inline the extract_cu_value caller, include new gdb_static_assert.
465 (dwarf2_read_index): Update the create_cus_from_index and
466 create_signatured_type_table_from_index caller.
467 * printcmd.c (ui_printf): Remove conditionalizations for
468 CC_HAS_LONG_LONG.
469 * config.in: Regenerate.
470 * configure: Regenerate.
471
1b80a9fa
JK
4722012-12-09 Jan Kratochvil <[email protected]>
473
474 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
475 Update the comment for checked_producer.
476 (check_producer): New forward declaration.
477 (producer_is_gcc_lt_4_3): New function.
478 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
479 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
480
2f68a895
TT
4812012-12-07 Tom Tromey <[email protected]>
482
483 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
484 argument, assertion.
485 * c-exp.y (typebase): Add completion productions.
486 * completer.c (expression_completer): Handle tag completion.
487 * expression.h (parse_expression_for_completion): Add argument.
488 * f-lang.c (f_make_symbol_completion_list): Add 'code'
489 argument.
490 * language.h (struct language_defn)
491 <la_make_symbol_completion_list>: Add 'code' argument.
492 * parse.c (expout_tag_completion_type, expout_completion_name):
493 New globals.
494 (mark_struct_expression): Add assertion.
495 (mark_completion_tag): New function.
496 (parse_exp_in_context): Initialize new globals.
497 (parse_expression_for_completion): Add 'code' argument. Handle
498 tag completion.
499 * parser-defs.h (mark_completion_tag): Declare.
500 * symtab.c (default_make_symbol_completion_list_break_on): Add
501 'code' argument. Update.
502 (default_make_symbol_completion_list): Add 'code' argument.
503 (make_symbol_completion_list): Update.
504 (make_symbol_completion_type): New function.
505 * symtab.h (default_make_symbol_completion_list_break_on)
506 (default_make_symbol_completion_list): Update.
507 (make_symbol_completion_type): Declare.
508
155da517
TT
5092012-12-07 Tom Tromey <[email protected]>
510
511 * expression.h (parse_expression_for_completion): Rename
512 from parse_field_expression.
513 (parse_completion): Rename from in_parse_field.
514 * c-exp.y (lex_one_token): Update.
515 * completer.c (expression_completer): Update.
516 * go-exp.y (lex_one_token): Update.
517 * p-exp.y (yylex): Update.
518 * parse.c (parse_completion): Rename from in_parse_field.
519 (parse_exp_in_context): Update.
520 (parse_expression_for_completion): Rename from
521 parse_field_expression. Update.
522
4fc5d43e
TT
5232012-12-07 Tom Tromey <[email protected]>
524
525 * typeprint.c (_initialize_typeprint): Set completer
526 for "whatis" and "ptype".
527
ab39020b
JB
5282012-12-07 Joel Brobecker <[email protected]>
529
530 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
531 "sim/common/cgen-fpu.h". Remove invalid entries
532 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
533 which actually have an FSF copyright header.
534
2cb50f9d
JB
5352012-12-07 Joel Brobecker <[email protected]>
536
537 * osf-share/AT386/cma_thread_io.h: Delete.
538 * osf-share/HP800/cma_thread_io.h: Delete.
539 * osf-share/README: Delete.
540 * osf-share/RIOS/cma_thread_io.h: Delete.
541 * osf-share/cma_attr.h: Delete.
542 * osf-share/cma_deb_core.h: Delete.
543 * osf-share/cma_debug_client.h: Delete.
544 * osf-share/cma_errors.h: Delete.
545 * osf-share/cma_handle.h: Delete.
546 * osf-share/cma_init.h: Delete.
547 * osf-share/cma_list.h: Delete.
548 * osf-share/cma_mutex.h: Delete.
549 * osf-share/cma_sched.h: Delete.
550 * osf-share/cma_semaphore_defs.h: Delete.
551 * osf-share/cma_sequence.h: Delete.
552 * osf-share/cma_stack.h: Delete.
553 * osf-share/cma_stack_int.h: Delete.
554 * osf-share/cma_tcb_defs.h: Delete.
555 * osf-share/cma_util.h: Delete.
556 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
557 in osf-share.
558 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
559 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
560 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
561
0ba2eb0f
TT
5622012-12-06 Pedro Alves <[email protected]>
563 Tom Tromey <[email protected]>
564
565 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
566
731145cb
TT
5672012-12-06 Jens Elmenthaler <[email protected]>
568
569 PR mi/14741:
570 * mi/mi-cmd-var.c (varobj_update_one): Take value of
571 attribute "dynamic" and "displayhint" from printed child,
572 not the root variable.
573
eff44fea
JB
5742012-12-06 Joel Brobecker <[email protected]>
575
576 * aix-thread.c (getthrds): Fix type of 4th parameter.
577 (get_signaled_thread): Change type of variable ktid to tid_t.
578
c90a0773
HZ
5792012-12-06 Hui Zhu <[email protected]>
580
581 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
582 value of get_frame_block.
583
5bc81a00
PM
5842012-12-05 Pierre Muller <[email protected]>
585
586 Avoid memory leaks on struct cmd_list_element.doc field.
587 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
588 if flags contains DOC_ALLOCATED.
589 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
590 flags.
591 (delete_cmd): Handle DOC_ALLOCATED flag.
592 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
593 in flags filed of struct cmd_list_element.
594 (struct cmd_list_element): Document new flag item.
595
b5ebcee6
DE
5962012-12-04 Doug Evans <[email protected]>
597
598 * symmisc.c: Whitespace fixes.
599
56bf0743
KB
6002012-12-04 Karthik Bhat <[email protected]>
601
602 * i386-tdep.c (i386_skip_prologue): Using symbol table
603 to find the end of prologue for clang compiled binaries.
604 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
605 to find the end of prologue for clang compiled binaries.
606
56e64610
DE
6072012-12-03 Doug Evans <[email protected]>
608
609 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
610 (dw2_find_symbol_file): Delete unused local file_data.
611
270140bd
TT
6122012-12-03 Tom Tromey <[email protected]>
613
614 * ada-exp.y (write_object_renaming, write_var_or_type)
615 (write_ambiguous_var, write_var_from_sym): Make blocks const.
616 * ada-lang.c (replace_operator_with_call)
617 (find_old_style_renaming_symbol): Make blocks const.
618 * ada-lang.h (ada_find_renaming_symbol): Update.
619 (struct ada_symbol_info) <block>: Now const.
620 * breakpoint.c (watch_command_1): Update.
621 * breakpoint.h (struct watchpoint) <exp_valid_block,
622 cond_exp_valid_block>: Now const.
623 * c-exp.y (classify_inner_name, classify_name): Make block
624 argument const.
625 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
626 const.
627 * expression.h (innermost_block, parse_exp_1): Update.
628 (union exp_element) <block>: Now const.
629 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
630 (lookup_struct): Make block argument const.
631 * gdbtypes.h (lookup_template_type): Update.
632 * go-exp.y (classify_name, classify_packaged_name)
633 (package_name_p): Make block argument const.
634 * objc-lang.c (lookup_struct_typedef): Make block argument const.
635 * objc-lang.h (lookup_struct_typedef): Update.
636 * parse.c (parse_exp_in_context, parse_exp_1)
637 (write_exp_elt_block): Make block arguments const.
638 (expression_context_block, innermost_block): Now const.
639 * parser-defs.h (write_exp_elt_block): Update.
640 (expression_context_block, innermost_block, block_found): Now
641 const.
642 * printcmd.c (struct display) <block>: Now const.
643 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
644 * valops.c (address_of_variable): Make block argument const.
645 * value.h (value_of_variable): Update.
646 * varobj.c (struct varobj_root) <valid_block>: Now const.
647
31f56a27
YQ
6482012-11-30 Yao Qi <[email protected]>
649
650 * breakpoint.c (print_one_breakpoint_location): Indent code.
651
556ec64d
YQ
6522012-11-30 Yao Qi <[email protected]>
653
654 * breakpoint.c (print_one_breakpoint_location): Combine two
655 blocks handling 'hit count' together.
656
3d3fef6b
YQ
6572012-11-30 Yao Qi <[email protected]>
658
659 * infrun.c (error_is_running, ensure_not_running): Move them
660 to ...
661 * infcmd.c (error_is_running, ensure_not_running): ... here.
662 Make them 'static'.
663 * inferior.h: Remove declarations of error_is_running and
664 ensure_not_running.
665
7cd12a76
YQ
6662012-11-30 Yao Qi <[email protected]>
667
668 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
669 check REGNUM >= 0.
670
7a76f5b8
YQ
6712012-11-30 Yao Qi <[email protected]>
672
673 * infrun.c: Make the declaration of 'init_infwait_state'
674 static.
675 (init_infwait_state): Make it 'static'.
676
b1209b03
UW
6772012-11-29 Ulrich Weigand <[email protected]>
678
679 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
680 return value to void to avoid compiler warning.
681
ea5e6b0e
UW
6822012-11-29 Ulrich Weigand <[email protected]>
683
684 * opencl-lang.c (opencl_print_type): New function.
685 (opencl_language_arch_info): Install it.
686
a93478ea
TT
6872012-11-29 Tom Tromey <[email protected]>
688
689 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
690 xvasprintf.
691 * common/common-utils.c (xasprintf, xvasprintf): Remove.
692 * common/common-utils.h (xasprintf, xvasprintf): Remove.
693
ac4a2da4
JG
6942012-11-29 Jerome Guitton <[email protected]>
695
696 * ada-lang.c (ada_is_interface_tag): New function.
697 (ada_is_ignored_field): Add interface tags to the list
698 of ignored fields.
699
b50d69b5
JG
7002012-11-29 Jerome Guitton <[email protected]>
701
f87e3f15 702 * ada-lang.h (ada_tag_value_at_base_address): New function
b50d69b5
JG
703 declaration.
704 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
705 New functions.
706 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
707 relocate the class-wide value if need be.
708 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
709 Let ada_tag_value_at_base_address relocate the class-wide access/ref
710 before dereferencing it.
711 * ada-valprint.c (ada_val_print_1): Relocate to base address
712 before displaying the content of an interface-wide ref.
713
ca1f964d
JG
7142012-11-29 Jerome Guitton <[email protected]>
715
716 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
717
38d03cf1 7182012-11-29 Joel Brobecker <[email protected]>
719
720 GDB 7.5.1 released.
721
f5682501
YQ
7222012-11-29 Yao Qi <[email protected]>
723 Tom Tromey <[email protected]>
724
725 * eval.c (evaluate_subexp_standard): Get the correct pointer
726 type for TYPE_CODE_MEMBERPTR.
727
f359d716
EBM
7282012-11-28 Edjunior Machado <[email protected]>
729
730 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
731 since now it is being done by binutils' powerpc_init_dialect().
732
0cd61f44
TT
7332012-11-28 Tom Tromey <[email protected]>
734
735 PR gdb/14290:
736 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
737 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
738 Use it.
739 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
740 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
741 (gdb_bfd_openr_next_archived_file): Use it.
742
945bf713
MM
7432012-11-28 Markus Metzger <[email protected]>
744
745 * configure.ac: Check for linux/perf_event.h.
746 * config.in: Regenerated.
747 * configure: Regenerated.
748
7e20dfcd
YQ
7492012-11-28 Yao Qi <[email protected]>
750
751 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
752 abbreviate 'delete tracepoints' to 'delete tr'.
753 * corefile.c (_initialize_core): Call add_alias_cmd to
754 abbreviate 'set gnutarget' to 'set g'.
755 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
756 'show convenience' to 'show conv'.
757
b8293cc8
JB
7582012-11-27 Joel Brobecker <[email protected]>
759
760 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
761 call to sparc_supply_fpregset.
762 (fill_fpregset): Fix first parameter in call to
763 sparc_collect_fpregset.
764
8c2b9656
YQ
7652012-11-27 Daniel Jacobowitz <[email protected]>
766 Kazu Hirata <[email protected]>
767 Yao Qi <[email protected]>
768
769 * objfiles.c (init_entry_point_info): Call
770 gdbarch_convert_from_func_ptr_addr and
771 gdbarch_addr_bits_remove here ...
772 (entry_point_address_query): ... instead of here.
773 * solib-svr4.c (exec_entry_point): Call
774 gdbarch_addr_bits_remove.
775 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
776 the entry address.
777
5edf51fe
YQ
7782012-11-27 Daniel Jacobowitz <[email protected]>
779 Yao Qi <[email protected]>
780
781 * eval.c (evaluate_subexp_standard): Add handling of
782 TYPE_CODE_MEMBERPTR when calling functions. Correct the
783 result of ptype for calling a TYPE_CODE_METHODPTR.
784
ca242aad
YQ
7852012-11-27 Yao Qi <[email protected]>
786
787 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
788 warning.
789 Add i18n markup.
790
608e2dbb
TT
7912012-11-26 Alexander Larsson <[email protected]>
792 Jan Kratochvil <[email protected]>
793 Tom Tromey <[email protected]>
794
795 * NEWS: Mention mini debuginfo feature.
796 * minidebug.c: New file.
797 * configure.ac: Check for lzma.
798 * configure, config.in: Rebuild.
799 * Makefile.in (LIBLZMA): New variable.
800 (CLIBS): Include LIBLZMA.
801 (SFILES): Mention minidebug.c.
802 (COMMON_OBS): Mention minidebug.o.
803 * symfile.c (read_symbols): New function.
804 (syms_from_objfile, reread_symbols): Call it.
805 * symfile.h (find_separate_debug_file_in_section): Declare.
806
17d6efc4
JB
8072012-11-26 Keith Seitz <[email protected]>
808
809 * exec.c (exec_file_attach): Move cleanup after verifying that
810 memory has in fact been allocated.
811
210bbc17
TT
8122012-11-26 Tom Tromey <[email protected]>
813
814 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
815 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
816 SYMBOL_SYMTAB.
817 * skip.c (skip_info): Use SYMBOL_SYMTAB.
818
0270a750
PA
8192012-11-26 Maxime Villard <[email protected]>
820 Pedro Alves <[email protected]>
821
822 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
823 size parameter passed to readlink by one byte.
824 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
825 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
826 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
827 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
828 size by one byte.
829
9c16be9a
YQ
8302012-11-26 Yao Qi <[email protected]>
831
832 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
833 extraneous parentheses.
834
e6f3fa52
YQ
8352012-11-26 Yao Qi <[email protected]>
836
837 * remote.c (remote_start_remote): Typo fix.
838
db75c717
DM
8392012-11-23 David S. Miller <[email protected]>
840
841 * sparc-tdep.h (struct sparc_fpregset): New data structure.
842 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
843 sparc32_sol2_fpregset): Declare new globals.
844 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
845 'fpregset' argument.
846 * sparc64-tdep.h (sparc64_supply_fpregset,
847 sparc64_collect_fpregset): Likewise.
848 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
849 globals.
850 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
851 (sparc_fpregset): Declare new global.
852 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
853 'fpregset' argument.
854 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
855 into handler.
856 (fill_fpregset): Likewise.
857 (_initialize_sparc_linux_nat): Set sparc_fpregset to
858 sparc32_bsd_fpregset.
859 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
860 sparc32_bsd_fpregset down into handler.
861 (sparc32_linux_collect_core_fpregset): Likewise.
862 * sparc-nat.c (sparc_fpregset): Define.
863 (sparc_supply_fpregset): Add 'fpregset' argument.
864 (sparc_collect_fpregset): Likewise.
865 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
866 into fpregset handler.
867 (sparc_store_inferior_registers): Likewise.
868 (_initialize_sparc_nat): Set sparc_fpregset to
869 sparc32_sunos4_fpregset if NULL.
870 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
871 down into handler.
872 (fill_fpregset): Likewise.
873 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
874 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
875 use it to compute offsets.
876 (sparc32_collect_fpregset): Likewise.
877 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
878 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
879 down into handler.
880 (fill_fpregset): Likewise.
881 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
882 Likewise.
883 (sparc64_linux_collect_core_fpregset): Likewise.
884 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
885 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
886 use it to compute offsets.
887 (sparc64_collect_fpregset): Likewise.
888 (sparc64_bsd_fpregset): Define.
889 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
890 sparc64_bsd_fpregset down into handler.
891 (sparc64fbsd_collect_fpregset): Likewise.
892 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
893 and pass sparc{32,64}_bsd_fpregset down into handler.
894 (sparc64nbsd_collect_fpregset): Likewise.
895 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
896 sparc64_bsd_fpregset down into handler.
897 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
898 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
899 to sparc32_bsd_fpregset.
900 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
901 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
902 (sparc32nbsd_supply_fpregset): Likewise.
903
cfcad218
TT
9042012-11-21 Tom Tromey <[email protected]>
905
906 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
907 field.
908 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
909 Remove.
910 * c-typeprint.c (c_type_print_base): Update.
911
85ddcc70
YQ
9122012-11-21 Yao Qi <[email protected]>
913
914 PR tdep/7438
915 * gdbarch.sh (smash_text_address): Remove.
916 * gdbarch.c, gdbarch.h: Regenerate.
917 * arm-tdep.c (arm_smash_text_address): Remove.
918 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
919 * hppa-tdep.c (hppa_smash_text_address): Remove.
920 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
921 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
922 Caller update.
923 * coffread.c (coff_symtab_read): Caller update.
924 * dbxread.c (process_one_symbol): Likewise.
925 * elfread.c (record_minimal_symbol): Likewise.
926 * somread.c (som_symtab_read): Likewise.
927
11522069
PM
9282012-11-20 Pierre Muller <[email protected]>
929
930 ARI fixes: sprintf rule.
931 Replace sprintf function calls for char arrays by
932 calls to xsnprintf calls.
933 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
934 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
935 (arm_neon_quad_read, arm_pseudo_read): Ditto.
936 (arm_neon_quad_write, arm_pseudo_write): Ditto.
937 * breakpoint.c (condition_completer): Ditto.
938 (create_tracepoint_from_upload): Ditto.
939 * dwarf2read.c (file_full_name): Ditto.
940 * gcore.c (gcore_command): Ditto.
941 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
942 * go32-nat.c (go32_sysinfo): Ditto.
943 * interps.c (interp_set): Ditto.
944 * m32c-tdep.c (make_types): Ditto.
945 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
946 * remote-m32r-sdi.c (m32r_open): Ditto.
947 * sol-thread.c (td_err_string): Ditto.
948 (td_state_string, solaris_pid_to_str): Ditto.
949 * symtab.c (gdb_mangle_name): Ditto.
950 * cli/cli-script.c (execute_control_command): Ditto.
951 (define_command, document_command): Ditto.
952 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
953 * tui/tui-stack.c (tui_make_status_line): Ditto.
954 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
955
ace21957
MF
9562012-11-20 Mike Frysinger <[email protected]>
957
958 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
959 it when looking at ptr->func.
960 * command.h (complete_on_cmdlist): Add a fourth arg.
961 * completer.c (complete_line_internal): Add local ignore_help_classes,
962 and set it to 1 when reason is not handle_help. Pass this down to
963 lookup_cmd_1 and complete_on_cmdlist.
964
ec6632d7
TT
9652012-11-20 Tom Tromey <[email protected]>
966
967 * completer.c (count_struct_fields): Remove.
968 (expression_completer): Don't call count_struct_fields.
969
ef37bb07
PA
9702012-11-20 Pedro Alves <[email protected]>
971
972 * annotate.c (breakpoints_changed): Rename to ...
973 (annotate_breakpoints_changed): ... this.
974 (annotate_stopped, breakpoint_changed): Adjust caller.
975 * annotate.h (breakpoints_changed): Rename to ...
976 (annotate_breakpoints_changed): ... this.
977 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
978 (do_map_commands_command, init_raw_breakpoint, clear_command)
979 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
980
b245bdfc
DM
9812012-11-20 David S. Miller <[email protected]>
982
983 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
984 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
985 sysconf.
986 (get_cores_used_by_process): Update comment.
987
bd0cfc4d
YQ
9882012-11-20 Yao Qi <[email protected]>
989
990 * objfiles.c (init_entry_point_info): Remove trailing spaces.
991
de9f1b68
YQ
9922012-11-20 Yao Qi <[email protected]>
993
994 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
995 to deprecated_context_hook.
996
8870954f
YQ
9972012-11-19 Yao Qi <[email protected]>
998
999 * infrun.c (infwait_state): Add static.
1000
8dea366b
KS
10012012-11-16 Keith Seitz <[email protected]>
1002
1003 PR c++/13615
1004 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1005 parameter and pass it to lookup_symbol_file.
1006 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1007 to search base classes.
1008 (cp_lookup_symbol_namespace): Likewise.
1009 (lookup_namespace_scope): Likewise.
1010 (lookup_symbol_file): Add SEARCH parameter.
1011 If SEARCH is non-zero and no symbol is found, lookup the class
1012 and call cp_lookup_nested_symbol.
1013 (find_symbol_in_baseclass): New function.
1014 (cp_lookup_nested_symbol): Do not let
1015 cp_lookup_symbol_in_namespace search through base classes.
1016 Do that later when there is no global symbol match.
1017
e64e0392
DE
10182012-11-16 Doug Evans <[email protected]>
1019
1020 * main.c (gdb_datadir_provided): New static global.
1021 (get_init_files): If --data-directory is provided,
1022 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1023 * NEWS: Mention it.
1024
8bdce1ff
PM
10252012-11-15 Pierre Muller <[email protected]>
1026
1027 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1028 * gdb_stat.h: Delete. Moved to common directory.
1029 * common/gdb_stat.h: New file.
1030 * gdb_wait.h: Delete. Moved to common directory.
1031 * common/gdb_wait.h: New file.
1032 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1033 location.
1034 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1035 location.
1036 (stat.h rule): Adapt to new gdb_stat.h location.
1037 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1038 <sys/stat.h> header.
1039 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1040 <sys/wait.h> header.
1041
3a731e0f
PM
10422012-11-15 Pierre Muller <[email protected]>
1043
1044 * configure.ac (AC_HEADER_STAT): Remove.
1045 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1046 and corresponding code.
1047 * configure: Regenerate.
1048 * config.in: Regenerate.
1049
2792b94d
PM
10502012-11-15 Pierre Muller <[email protected]>
1051
1052 ARI xasprintf rule fixes.
1053 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1054 instead of xasprintf.
1055 (open_and_init_dwp_file): Ditto.
1056
5e34c6c3
LM
10572012-11-14 Luis Machado <[email protected]>
1058
1059 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1060 target types.
1061
e68227b9
TT
10622012-11-14 Tom Tromey <[email protected]>
1063
1064 * configure, config.in: Rebuild.
1065 * configure.ac: Don't check for ctype.h, time.h.
1066 * expprint.c: Don't use HAVE_CTYPE_H.
1067
aff68abb
TT
10682012-11-13 Tom Tromey <[email protected]>
1069
1070 * gdbarch.h, gdbarch.c: Rebuild.
1071 * gdbarch.sh (set_target_gdbarch): Rename from
1072 deprecated_target_gdbarch_select_hack.
1073 * arch-utils.c (gdbarch_update_p): Update.
1074 (set_gdbarch_from_file): Update.
1075
84277139 10762012-11-14 Pierre Muller <[email protected]>
f7c93334
PM
1077
1078 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1079 as responsible of contrib/ari directory.
1080
2ae28aa9
YQ
10812012-11-14 Daniel Jacobowitz <[email protected]>
1082 Yao Qi <[email protected]>
1083
1084 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1085 bit of EXC_RETURN.
1086 (arm_m_exception_cache, arm_m_exception_this_id)
1087 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1088 (arm_m_exception_unwind): New.
1089 (arm_gdbarch_init): Register arm_m_exception_unwind.
1090
62747a60
TT
10912012-11-13 Giuseppe Montalto <[email protected]>
1092
1093 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1094 parameter COUNT, for pattern filling of memory regions.
1095 * NEWS: Mention it.
1096
4cd29721
MM
10972012-11-13 Markus Metzger <[email protected]>
1098
1099 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1100 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1101 to print_source_lines ().
1102 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1103 flag.
1104 * source.c (print_source_lines_base): Prefix source line with
1105 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1106
dfaae886
MM
11072012-11-13 Markus Metzger <[email protected]>
1108
1109 * symtab.h (print_source_lines_flags): New enum.
1110 * source.c (print_source_lines_base): Change noerror to flags.
1111 (print_source_lines): Change noerror to flags.
1112
08850b56
PM
11132012-11-13 Pierre Muller <[email protected]>
1114
1115 ARI fixes: Avoid sprintf function use rule.
1116 * charset.c (convert_between_encodings): Use xsnprintf.
1117 * cli-out.c (cli_field_int): Likewise.
1118 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1119 * expprint.c (op_name_standard): Likewise.
1120 * frv-tdep.c (set_variant_num_gprs): Likewise.
1121 (set_variant_num_fprs): Likewise.
1122 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1123 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1124 (nto_init_solib_absolute_prefix): Likewise.
1125 * source.c (init_source_path): Likewise.
1126 (print_source_lines_base): Likewise.
1127 * valprint.c (print_wchar): Likewise.
1128 * mi/mi-out.c (mi_field_int): Likewise.
1129 windows-nat.c (windows_pid_to_exec_file): Likewise.
1130 (windows_create_inferior): Likewise.
1131 (_initialize_check_for_gdb_ini): Likewise.
1132
ca9d61b9
JB
11332012-11-12 Joel Brobecker <[email protected]>
1134
1135 * frame.h (deprecated_frame_register_read): Renames
1136 frame_register_read.
1137 * frame.c (deprecated_frame_register_read): Renames
1138 frame_register_read. Update all callers.
1139 * i386-tdep.c: Update all callers of frame_register_read.
1140 * infcmd.c: Likewise.
1141 * jit.c: Likewise.
1142 * mips-tdep.c: Likewise.
1143 * mt-tdep.c: Likewise.
1144 * sh64-tdep.c: Likewise.
1145
b2c7d45a
JB
11462012-11-12 Joel Brobecker <[email protected]>
1147
1148 * frame.h (frame_register_read): Remove FIXME comment.
1149 * frame.c (frame_register_read): Add suggestion explaining
1150 which function to use in place of this one.
1151
31594462
TT
11522012-11-12 Tom Tromey <[email protected]>
1153
1154 * python/python.c (start_type_printers): Initialize 'result_obj'.
1155
18a9fc12
TT
11562012-11-12 Tom Tromey <[email protected]>
1157
1158 * NEWS: Update.
1159 * data-directory/Makefile.in (PYTHON_FILES): Add
1160 type_printers.py.
1161 * python/lib/gdb/command/type_printers.py: New file.
1162 * python/lib/gdb/command/types.py (TypePrinter): New class.
1163 (_get_some_type_recognizers, get_type_recognizers,
1164 apply_type_recognizers, register_type_printer): New
1165 functions.
1166 * python/py-objfile.c (objfile_object) <type_printers>: New
1167 field.
1168 (objfpy_dealloc): Decref new field.
1169 (objfpy_new): Set new field.
1170 (objfpy_get_type_printers, objfpy_set_type_printers): New
1171 functions.
1172 (objfile_to_objfile_object): Set new field.
1173 (objfile_getset): Add "type_printers".
1174 * python/py-progspace.c (pspace_object) <type_printers>: New
1175 field.
1176 (pspy_dealloc): Decref new field.
1177 (pspy_new): Set new field.
1178 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1179 (pspace_to_pspace_object): Set new field.
1180 (pspace_getset): Add "type_printers".
1181 * python/python.c (start_type_printers, apply_type_printers,
1182 free_type_printers): New functions.
1183 (_initialize_python): Set gdb.type_printers.
1184 * python/python.h (start_type_printers, apply_type_printers,
1185 free_type_printers): Declare.
1186 * typeprint.c (type_print_raw_options, default_ptype_flags):
1187 Update for new fields.
1188 (do_free_global_table, create_global_typedef_table,
1189 find_global_typedef): New functions.
1190 (find_typedef_in_hash): Use find_global_typedef.
1191 (whatis_exp): Use create_global_typedef_table. Change cleanup
1192 handling.
1193 * typeprint.h (struct type_print_options) <global_typedefs,
1194 global_printers>: New fields.
1195
bd69fc68
TT
11962012-11-12 Tom Tromey <[email protected]>
1197
1198 * c-typeprint.c (find_typedef_for_canonicalize,
1199 print_name_maybe_canonical): New functions.
1200 (c_print_type): Look up type name.
1201 (cp_type_print_derivation_info): Add flags argument. Use
1202 print_name_maybe_canonical.
1203 (cp_type_print_method_args): Add wrapping.
1204 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1205 (c_type_print_template_args): New function.
1206 (c_type_print_base): Change wrapping. Use
1207 print_name_maybe_canonical.
1208 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1209 type name lookups.
1210 * gdbtypes.c (types_equal): No longer static.
1211 * gdbtypes.h (types_equal): Declare.
1212 * typeprint.c (type_print_raw_options, default_ptype_flags):
1213 Update.
1214 (struct typedef_hash_table): New.
1215 (hash_typedef_field, eq_typedef_field,
1216 recursively_update_typedef_hash, add_template_parameters,
1217 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1218 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1219 copy_typedef_hash, find_typedef_in_hash): New functions.
1220 * typeprint.h (struct type_print_options) <local_typedefs>:
1221 New field.
1222 (recursively_update_typedef_hash, add_template_parameters,
1223 create_typedef_hash, free_typedef_hash,
1224 make_cleanup_free_typedef_hash, copy_typedef_hash,
1225 find_typedef_in_hash): Declare.
1226
2621e0fd
TT
12272012-11-12 Tom Tromey <[email protected]>
1228
1229 * cp-support.c (inspect_type,
1230 replace_typedefs_qualified_name, replace_typedefs): Add
1231 finder, data arguments. Call as needed.
1232 (cp_canonicalize_string_full): New function.
1233 (cp_canonicalize_string_no_typedefs): Rewrite.
1234 * cp-support.h (canonicalization_ftype): New typedef.
1235 (cp_canonicalize_string_full): Declare.
1236
53342f27
TT
12372012-11-12 Tom Tromey <[email protected]>
1238
1239 * NEWS: Update.
1240 * c-typeprint.c (c_type_print_base): Handle print_method and
1241 print_typedefs flags.
1242 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1243 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1244 options.
1245 * typeprint.c (type_print_raw_options, default_ptype_flags):
1246 Update for new field.s
1247 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1248 (setprinttypelist, showprinttypelist, print_methods,
1249 print_typedefs): New globals.
1250 (set_print_type, show_print_type, set_print_type_methods,
1251 show_print_type_methods, set_print_type_typedefs,
1252 show_print_type_typedefs): New functions.
1253 (_initialize_typeprint): Update documentation. Add "print
1254 type methods" and "print type typedefs" parameters.
1255 * typeprint.h (struct type_print_options) <print_methods,
1256 print_typedefs>: New fields.
1257
6c8702eb
TT
12582012-11-12 Tom Tromey <[email protected]>
1259
1260 * c-typeprint.c (cp_type_print_method_args): Add flags
1261 argument. Call c_print_type, not type_print.
1262 (c_type_print_base): Call c_print_type, not type_print.
1263 Update.
1264
79d43c61
TT
12652012-11-12 Tom Tromey <[email protected]>
1266
1267 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1268 to type-printing functions.
1269 * ada-lang.h (ada_print_type): Add argument.
1270 * ada-typeprint.c (print_array_type, print_variant_clauses,
1271 print_variant_part, print_selected_record_field_types,
1272 print_record_field_types, print_unchecked_union_type,
1273 print_func_type, ada_print_type): Add flags argument.
1274 (ada_print_typedef): Update.
1275 * c-exp.y (OPERATOR conversion_type_id): Update.
1276 * c-lang.h (c_print_type, c_type_print_base): Update.
1277 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1278 c_type_print_modifier, c_type_print_args,
1279 c_type_print_varspec_suffix, c_type_print_base): Add flags
1280 argument.
1281 * cp-valprint.c (cp_print_class_member): Update.
1282 * dwarf2read.c (dwarf2_compute_name): Update.
1283 * f-lang.h (f_print_type): Add argument.
1284 * f-typeprint.c (f_print_type): Add flags argument.
1285 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1286 * go-lang.h (go_print_type): Add argument.
1287 * go-typeprint.c (go_print_type): Add flags argument.
1288 * jv-lang.h (java_print_type): Add argument.
1289 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1290 flags argument.
1291 * language.c (unk_lang_print_type): Add flags argument.
1292 * language.h (struct language_defn) <la_print_type>: Add flags
1293 argument.
1294 (LA_PRINT_TYPE): Likewise.
1295 * m2-lang.h (m2_print_type): Add argument.
1296 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1297 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1298 m2_unbounded_array, m2_record_fields): Add flags argument.
1299 * p-lang.h (pascal_print_type, pascal_type_print_base,
1300 pascal_type_print_varspec_prefix): Add argument.
1301 * p-typeprint.c (pascal_print_type,
1302 pascal_type_print_varspec_prefix, pascal_print_func_args,
1303 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1304 flags argument.
1305 * symmisc.c (print_symbol): Update.
1306 * typeprint.c (type_print_raw_options, default_ptype_flags):
1307 New globals.
1308 (type_print): Update.
1309 * typeprint.h (struct type_print_options): New.
1310 (type_print_raw_options): Declare.
1311 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1312
cf4ded82
KS
13132012-11-10 Keith Seitz <[email protected]>
1314
1315 * breakpoint.c (clear_command): Add cleanup for
1316 sals.sals if an argument is given.
1317
1318 * linespec.c (parse_linespec): Do cleanups after
1319 parsing a convenience variable.
1320
0d63ecda
KS
13212012-11-10 Keith Seitz <[email protected]>
1322
1323 PR gdb/14288
1324 * c-valprint.c (c_val_print): For character arrays
1325 with "print null" option on, print ellipses if
1326 the output is truncated and the next character is not \000.
1327 * valprint.c (MAX_WCHARS): Define.
1328 (WCHAR_BUFLEN): Likewise.
1329 (WCHAR_BUFLEN_MAX): Likewise.
1330 (struct converted_character): New structure.
1331 (count_next_character): New function.
1332 (print_converted_chars_to_obstack): New function.
1333 (generic_printstr): Rewrite using count_next_character
1334 and print_converted_chars_to_obstack.
1335
9b8d6827
SC
13362012-11-10 Stephane Carrez <[email protected]>
1337
1338 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1339 while executing the gdb command.
1340 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1341 are called from prompt_for_continue.
1342 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1343
e840f632
SC
13442012-11-10 Stephane Carrez <[email protected]>
1345
1346 PR tui/9584
1347
1348 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1349 but insert the command to execute in readline's buffer.
1350
f5656ead
TT
13512012-11-09 Tom Tromey <[email protected]>
1352
1353 * gdbarch.sh (target_gdbarch): Remove macro.
1354 (get_target_gdbarch): Rename to target_gdbarch.
1355 * gdbarch.c, gdbarch.h: Rebuild.
1356 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1357 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1358 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1359 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1360 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1361 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1362 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1363 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1364 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1365 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1366 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1367 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1368 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1369 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1370 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1371 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1372 target-descriptions.c, target.c, target.h, tracepoint.c,
1373 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1374 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1375 python/py-inferior.c, python/python.c: Update.
1376
ed8a1c2d
AB
13772012-11-09 Andrew Burgess <[email protected]>
1378
1379 * source.c (print_source_lines_base): Add fullname field giving
1380 full path to file in mi output.
1381 * NEWS: Mention the new fullname field.
1382
504b36fd
YQ
13832012-11-09 Yao Qi <[email protected]>
1384
1385 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1386
9107fc8d
PA
13872012-11-09 Pedro Alves <[email protected]>
1388
1389 PR gdb/14306
1390
1391 * infrun.c: Include target-descriptions.h.
1392 (follow_exec): Fetch new target description.
1393
30f8135b
YQ
13942012-11-09 Yao Qi <[email protected]>
1395
1396 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1397 0x8d (lea).
1398
558a9d82
YQ
13992012-11-09 Yao Qi <[email protected]>
1400
1401 * breakpoint.c: Declare set_tracepoint_count.
1402 (install_breakpoint): Call set_tracepoint_count if B is a
1403 tracepoint.
1404 (trace_command): Don't call set_tracepoint_count. Re-indent.
1405 (strace_command, ftrace_command):
1406 (create_tracepoint_from_upload): Likewise.
1407
6ecd4729
PA
14082012-11-09 Pedro Alves <[email protected]>
1409
1410 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1411 (get_target_gdbarch) <gdbarch.h>: New function.
1412 (startup_gdbarch) <gdbarch.h>: Declare.
1413 <gdbarch.c> (target_gdbarch): Delete.
1414 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1415 current inferior's gdbarch.
1416 <gdbarch.c> (get_target_gdbarch): New function.
1417 * inferior.c: Include target-descriptions.h.
1418 (free_inferior): Free target description info.
1419 (add_inferior_with_spaces): Set the inferior's initial
1420 architecture.
1421 (clone_inferior_command): Copy the original inferior's target
1422 description if it was user specified.
1423 (initialize_inferiors): Add comment.
1424 * inferior.h (struct target_desc_info): Forward declare.
1425 (struct inferior) <gdbarch>: New field.
1426 * linux-nat.c: Include target-descriptions.h.
1427 (linux_child_follow_fork): Copy the parent's architecture and
1428 target description to the child.
1429 * target-descriptions.c: Include inferior.h.
1430 (struct target_desc_info): New structure, holding the equivalents
1431 of ...
1432 (target_desc_fetched, current_target_desc)
1433 (target_description_filename): ... these removed globals.
1434 (get_tdesc_info, target_desc_info_from_user_p)
1435 (copy_inferior_target_desc_info, target_desc_info_free): New.
1436 (target_desc_fetched, current_target_desc)
1437 (target_description_filename): Reimplemented as convenience
1438 macros.
1439 (tdesc_filename_cmd_string): New global.
1440 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1441 tdescs filename ..." commands to the per-inferior equivalent.
1442 (show_tdesc_filename_cmd): Get the value to show from the
1443 per-inferior description filename.
1444 (_initilize_target_descriptions): Change the "set/show tdesc
1445 filename" commands' variable.
1446 * target-descriptions.h (struct target_desc, struct target_desc_info)
1447 (struct inferior): Forward declare.
1448 (target_find_description, target_clear_description)
1449 (target_current_description): Adjust comments.
1450 (copy_inferior_target_desc_info, target_desc_info_free)
1451 (target_desc_info_from_user_p). Declare.
1452
4ca4d161
SC
14532012-11-08 Stephane Carrez <[email protected]>
1454
1455 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1456 (tui_target_wait_hook): Remove.
1457 (tui_install_hooks): Install the about_to_proceed observer.
1458 (tui_remove_hooks): And remove it here.
1459
9015683b
TT
14602012-11-08 Tom Tromey <[email protected]>
1461
1462 * linux-tdep.c (linux_make_siginfo_note): New function.
1463 (linux_make_corefile_notes): Use it.
1464 * corelow.c (get_core_siginfo): New function.
1465 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1466
ea9f10bb
TT
14672012-11-08 Tom Tromey <[email protected]>
1468
1469 PR gdb/14704:
1470 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1471 (zlib_decompress_section): Remove.
1472 (gdb_bfd_map_section): Only check for compressed section
1473 in mmap case. Use bfd_get_full_section_contents.
1474 * osabi.c (check_note): Add 'sectsize' argument. Read
1475 section data.
1476 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1477 section data. Update for check_note change.
1478 * xcoffread.c (xcoff_initial_scan): Use
1479 bfd_get_full_section_contents.
1480 * py-auto-load.c (auto_load_section_scripts): Use
1481 bfd_get_full_section_contents.
1482 * contrib/cc-with-tweaks.sh: Add -Z option.
1483
d071a26b
TT
14842012-11-08 Tom Tromey <[email protected]>
1485
1486 * python/py-bpevent.c: Include defs.h.
1487 * python/py-continueevent.c: Include defs.h.
1488 * python/py-event.c: Include defs.h.
1489 * python/py-event.h: Don't include defs.h.
1490 * python/py-events.h: Don't include defs.h.
1491 * python/py-evts.c: Include defs.h.
1492 * python/py-exitedevent.c: Include defs.h.
1493 * python/py-newobjfileevent.c: Include defs.h.
1494 * python/py-signalevent.c: Include defs.h.
1495 * python/py-stopevent.c: Include defs.h.
1496 * python/py-threadevent.c: Include defs.h.
1497
4574b35a
PM
14982012-11-08 Pierre Muller <[email protected]>
1499
1500 * update-web-ari.sh (print_heading): Add number of files
1501 checked.
1502 (nb_files): New variable counting the number of sources
1503 files found by gdb_find.sh script.
1504 (debug_awk): New variable to allow extra debug output.
1505 (indexes): Add more information if DEBUG_AWK is set.
1506
2834ab42
EBM
15072012-11-08 Edjunior Machado <[email protected]>
1508
1509 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1510 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1511 following the change in PLT call stubs on linker.
1512
84f13595
PM
15132012-11-08 Pierre Muller <[email protected]>
1514
1515 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1516 as default language.
1517 (AWK): Use = instead of == for sh test to avoid warning.
1518 (Linux rule): Correct [:digit] into [[:digit:]].
1519 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1520 (vasprintf rule): Adapt to common subdirectory moves.
1521 (xasprintf rule): Idem.
1522 (xvasprintf rule): Idem.
1523 (var_boolean rule): Accept occurence in == or != test.
1524
1525 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1526
d69e6a33
SC
15272012-11-08 Stephane Carrez <[email protected]>
1528
1529 * tui/tui-hooks.c (tui_inferior_exit): New function.
1530 (tui_detach_hook): Remove.
1531 (tui_install_hooks): Install the inferior exit observer.
1532 (tui_remove_hooks): Remove it.
1533
1e96de83
YQ
15342012-11-08 Yao Qi <[email protected]>
1535
1536 PR gdb/14777.
1537 * source.c (_initialize_source): Call add_com_alias to abbreviate
1538 'forward-search' as 'fo'.
1539
0baeab03
PA
15402012-11-07 Pedro Alves <[email protected]>
1541
1542 * arm-tdep.c: Make defs.h be the first include.
1543 * coff-pe-read.c: Ditto.
1544 * gnu-nat.c: Ditto.
1545 * go32-nat.c: Ditto.
1546 * i386-nat.c: Ditto.
1547 * ppcnbsd-nat.c: Ditto.
1548 * ada-varobj.h: Don't include defs.h.
1549 * i386-darwin-tdep.h: Ditto.
1550 * i386-nat.h: Ditto.
1551
892a8570
PA
15522012-11-07 Pedro Alves <[email protected]>
1553
1554 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1555 Committee.
1556
719502e9
PM
15572012-11-07 Pierre Muller <[email protected]>
1558
1559 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1560 File already uses "gdb_dirent.h" header.
1561
ed86b350
YQ
15622012-11-07 Yao Qi <[email protected]>
1563
1564 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1565 tracepoint_count'.
1566
9a4f1e4f
TT
15672012-11-06 Tom Tromey <[email protected]>
1568
1569 * target.h (inferior_has_forked, inferior_has_vforked)
1570 (inferior_has_execd, inferior_has_called_syscall): Remove
1571 declarations.
1572
0316657e
PM
15732012-11-06 Pierre Muller <[email protected]>
1574
1575 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1576 add missing internalization markup.
1577
f6592439
PA
15782012-11-06 Pedro Alves <[email protected]>
1579
1580 PR gdb/14810
1581
1582 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1583
01f2564a
PM
15842012-11-06 Pierre Muller <[email protected]>
1585
1586 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1587 is not executable.
1588
f37c4431
JB
15892012-11-05 Joel Brobecker <[email protected]>
1590
1591 * gnulib/update-gnulib.sh: New script.
1592
550889c3
JB
15932012-11-05 Stephane Carrez <[email protected]>
1594
1595 * MAINTAINERS: Update my email address.
1596
954b50b3
TT
15972012-11-05 Tom Tromey <[email protected]>
1598
1599 * frame.c (put_frame_register): Don't use temporary buffer.
1600
68c9da30
PA
16012012-11-05 Pedro Alves <[email protected]>
1602
1603 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1604 child. Clear 'pending_detach'.
1605 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1606 'pending_detach' in the vfork parent.
1607
80626a55
DE
16082012-11-05 Doug Evans <[email protected]>
1609
1610 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1611 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1612 * dwarf2read.c: #include "elf-bfd.h".
1613 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1614 (dwop_section_names): Renamed from dwo_section names. All uses
1615 updated. Add entries for .debug_cu_index, .debug_tu_index.
1616 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1617 All uses updated.
1618 (struct dwp_sections): New type.
1619 (struct virtual_dwo_sections): New type.
1620 (struct dwp_hash_table): New type.
1621 (struct dwp_file): New type.
1622 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1623 read in. Handle DWOs coming from DWP files.
1624 (lookup_dwo_file_slot): New function.
1625 (dwarf2_locate_dwo_sections): Move definition closer to use.
1626 (create_dwo_debug_info_hash_table_reader): Renamed from
1627 create_debug_info_hash_table_reader. All callers updated.
1628 (create_dwo_debug_info_hash_table): Renamed from
1629 create_debug_info_hash_table. All callers updated.
1630 (create_dwp_hash_table): New function.
1631 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1632 (lookup_dwo_in_dwp): New function.
1633 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1634 is_dwp. All callers updated.
1635 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1636 (open_and_init_dwo_file): Renamed from init_dwo_file.
1637 All callers updated.
1638 (lookup_dwo_file): Delete.
1639 (dwarf2_locate_dwp_sections): New function.
1640 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1641 (allocate_dwp_loaded_cutus_table): New function.
1642 (open_and_init_dwp_file): New function.
1643 (lookup_dwo_cutu): New function.
1644 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1645
6f6484cd
YQ
16462012-11-03 Yao Qi <[email protected]>
1647
1648 Fix PR gdb/14617.
1649 * breakpoint.c (trace_pass_set_count): Call
1650 observer_notify_breakpoint_modified instead of
1651 observer_notify_tracepoint_modified.
1652 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1653
b45627a0
TT
16542012-11-02 Tom Tromey <[email protected]>
1655
1656 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1657 argument to complete_on_enum.
1658
d4fb63e1
TT
16592012-11-02 Tom Tromey <[email protected]>
1660
1661 * configure: Rebuild.
1662 * configure.ac (build_warnings): Add -Wempty-body.
1663 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1664 * remote.c (handle_notification): Use braces for empty 'else' body.
1665 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1666 'else' body.
1667 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1668 'else' body.
1669 * solib-som.c (som_relocate_section_addresses): Use braces
1670 for empty 'else' body.
1671 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1672 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1673
f50f4e56
PA
16742012-11-02 Pedro Alves <[email protected]>
1675
1676 PR gdb/14766
1677
1678 * infrun.c (handle_inferior_event)
1679 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1680 null_ptid before handling a vfork child exec or exit. Switch to
1681 the event ptid afterwards.
1682
f0559fff
YQ
16832012-11-02 Yao Qi <[email protected]>
1684
1685 * std-operator.def: Remove OP_LABELED.
1686 * eval.c: Remove the declaration of 'get_label'.
1687 (get_label): Remove.
1688 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1689 Update comment.
1690 Remove local variable 'variantno' and related code.
1691 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1692 with 'fieldno'.
1693 * expprint.c (print_subexp_standard): Likewise.
1694 (dump_subexp_body_standard): Likewise.
1695 * parse.c (operator_length_standard): Likewise.
1696
e5496e3e
PM
16972012-11-01 Pierre Muller <[email protected]>
1698
1699 Incorporate ARI web page generator into GDB sources.
1700 * contrib/ari/create-web-ari-in-src.sh: New file.
1701 * contrib/ari/gdb_ari.sh: New file.
1702 * contrib/ari/gdb_find.sh: New file.
1703 * contrib/ari/update-web-ari.sh: New file.
1704
c66fb220
TT
17052012-10-31 Tom Tromey <[email protected]>
1706
1707 * gdbarch.c: Rebuild.
1708 * gdbarch.sh: Remove references to gdbarch_swap.
1709 * corelow.c (core_open): Remove obsolete comment.
1710
2f27adfe
AB
17112012-10-31 Andrew Burgess <[email protected]>
1712
1713 PR cli/14772
1714 * c-typeprint.c (c_print_type): Don't print a space for vector
1715 types, this is handled within the suffix.
1716 (c_type_print_varspec_suffix): Add a space to vector suffix.
1717
144db827
PA
17182012-10-26 Pedro Alves <[email protected]>
1719
1720 * amd64-tdep.c (amd64_relocate_instruction): Use
1721 store_unsigned_integer instead of memcpy.
1722 * i386-tdep.c (i386_relocate_instruction): Ditto.
1723
940c3c06
PA
17242012-10-26 Pedro Alves <[email protected]>
1725
1726 * infrun.c (handle_inferior_event): Merge handling of
1727 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1728 switch case.
1729
47b19065
PA
17302012-10-26 Pedro Alves <[email protected]>
1731
1732 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1733 Remove comment.
1734
87d2d2a4
PA
17352012-10-26 Pedro Alves <[email protected]>
1736
1737 * target.c (target_waitstatus_to_string): Handle
1738 TARGET_WAITKIND_VFORK_DONE.
1739
fed708ed
PA
17402012-10-26 Pedro Alves <[email protected]>
1741
1742 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1743 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1744
2590b645
JB
17452012-10-24 Tristan Gingold <[email protected]>
1746
1747 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1748 Add comments.
1749
bed0c243
JB
17502012-10-24 Joel Brobecker <[email protected]>
1751
1752 * ravenscar-thread.c (ravenscar_wait): Only update the list
1753 of threads and inferior_ptid if the inferior is still alive.
1754
f69c91ad
JB
17552012-10-24 Joel Brobecker <[email protected]>
1756
1757 * ada-lang.c (is_known_support_routine): Use lbasename when
1758 matching the symtab's filename against
1759 known_runtime_file_name_patterns.
1760
d99dcf51
JB
17612012-10-24 Joel Brobecker <[email protected]>
1762
1763 * ada-lang.c (ada_same_array_size_p): New function.
1764 (ada_promote_array_of_integrals): New function.
1765 (coerce_for_assign): Add handling of arrays where the elements
1766 are integrals of a smaller size than the size of the target
1767 array element type.
1768
32560274
JB
17692012-10-24 Joel Brobecker <[email protected]>
1770
1771 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1772 against maximum exponent value.
1773
5a04cc98
JB
17742012-10-24 Joel Brobecker <[email protected]>
1775
1776 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1777 "unwind-seh.c".
1778
5ded5331
JB
17792012-10-24 Joel Brobecker <[email protected]>
1780
1781 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1782 strip typedef layer when computing the fixed type's field type,
1783 only when computing its size.
1784
2445fd7b
MK
17852012-10-24 Mark Kettenis <[email protected]>
1786
1787 PR gdb/12783
1788 * i386-tdep.c (i386_return_value): Handle complex double and long
1789 double.
1790
8f205f9c
JB
17912012-10-24 Joel Brobecker <[email protected]>
1792
1793 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1794 New local variable args_len.
1795 Quote the name of the executable when computing the command line.
1796
7f7930dd
MK
17972012-10-23 Mark Kettenis <[email protected]>
1798
1799 PR gdb/12796
1800 PR gdb/12798
1801 PR gdb/12800
1802 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1803 AMD64_FTAG_REGNUM.
1804 * amd64-tdep.c (amd64_classify): Classify complex types.
1805 (amd64_return_value): Handle the COMPLEX_X87 class.
1806
38a69d0a
JB
18072012-10-23 Joel Brobecker <[email protected]>
1808
1809 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1810 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1811
83ab93c6
JB
18122012-10-23 Joel Brobecker <[email protected]>
1813
1814 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1815 function.
1816 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1817 to amd64_windows_auto_wide_charset.
1818
f6fbab7d
YQ
18192012-10-23 Yao Qi <[email protected]>
1820
1821 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1822 * event-top.h: Remove its declaration.
1823 (async_request_quit): Call mark_async_signal_handler instead of
1824 mark_async_signal_handler_wrapper.
1825 (async_do_nothing, async_disconnect): Likewise.
1826 (async_stop_sig): Likewise.
1827 * remote.c (handle_remote_sigint): Likewise.
1828 (handle_remote_sigint_twice): Likewise.
1829
05fa9251
YQ
18302012-10-23 Yao Qi <[email protected]>
1831
1832 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1833 with 'static struct async_signal_handler *'.
1834 (sighup_token, sigquit_token, sigstp_token): Likewise.
1835
08af7a40
AA
18362012-10-22 Ali Anwar <[email protected]>
1837
1838 * gdbarch.sh (function_list): Use 'pstring' when printing
1839 a variable which could return NULL.
1840 * gdbarch.c: Regenerate.
1841
beb4b03c 18422012-10-10 Joel Brobecker <[email protected]>
f87e3f15 1843 Tom Tromey <[email protected]>
beb4b03c
JB
1844
1845 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1846 inneffective if condition by gdb assertion. Add function
1847 description comment.
1848
a5b12627
JB
18492012-10-19 Joel Brobecker <[email protected]>
1850
1851 * parser-defs.h (struct exp_descriptor): Document constraint
1852 on return value for "op_name" callbacks.
1853
0b0865da
TT
18542012-10-18 Tom Tromey <[email protected]>
1855
1856 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1857 * symtab.c (iterate_over_some_symtabs): Constify.
1858 * source.h (symtab_to_fullname): Return 'const char *'.
1859 * source.c (symtab_to_fullname): Return 'const char *'.
1860 * python/py-symtab.c (stpy_fullname): Constify.
1861 * cli/cli-cmds.c (edit_command): Constify.
1862 * breakpoint.c (print_breakpoint_location)
1863 (update_static_tracepoint): Constify.
1864
94b0e70d
TT
18652012-10-18 Tom Tromey <[email protected]>
1866
1867 * breakpoint.c (compare_breakpoints): Fix comparison.
1868
fff10684
TT
18692012-10-18 Tom Tromey <[email protected]>
1870
1871 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1872 gdb_wchar_t to convert_between_encodings.
1873
8de0566d
YQ
18742012-10-17 Yao Qi <[email protected]>
1875
1876 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1877 more parameter 'inferior'.
1878 * corefile.c (write_memory_with_notification): Caller update.
1879
1880 * mi/mi-cmd-var.c: Include "mi-main.h".
1881 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1882 to 1 and restore it later.
1883 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1884 and "data-write-memory-bytes.
1885 * mi/mi-interp.c: Include objfiles.h.
1886 (mi_interpreter_init): Call observer_attach_memory_changed.
1887 (mi_memory_changed): New.
1888 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1889 New field.
1890
1891 * NEWS: Mention new MI notification "memory-changed".
1892
6235cdd1
JK
18932012-10-16 Jan Kratochvil <[email protected]>
1894
1895 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1896
07540c15
DE
18972012-10-15 Doug Evans <[email protected]>
1898
1899 New option -nh: inhibit loading of ~/.gdbinit.
1900 * NEWS: Mention -nh.
1901 * main.c (captured_main): Recognize and process -nh.
1902 (print_gdb_help): Mention -nh.
1903 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1904
eab09350
L
19052012-10-15 H.J. Lu <[email protected]>
1906
1907 PR backtrace/14646
1908 PR gdb/14647
1909 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1910 pc_regnum_from_eax.
1911 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1912 nor pc_regnum_from_eax.
1913 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1914 nor pc_regnum_from_eax.
1915
9e3a7d65
JK
19162012-10-15 Jan Kratochvil <[email protected]>
1917
1918 Fix entry values resolving in inlined frames.
1919 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1920 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1921 entries of FRAME.
1922
c83393b9
JB
19232012-10-15 Joel Brobecker <[email protected]>
1924
1925 * configure.ac: Build with -DMS_WIN64 if building with Python
1926 enabled using GCC on amd64-windows.
1927 * configure: Regenerate.
1928
801e4185
TT
19292012-10-15 Tom Tromey <[email protected]>
1930
1931 PR python/14635:
1932 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1933 to Py_None.
1934
74f910c8
TT
19352012-10-15 Tom Tromey <[email protected]>
1936
1937 PR python/14634:
1938 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1939
2a7c8fd5
AB
19402012-10-11 Andrew Burgess <[email protected]>
1941
1942 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1943 reset thread numbering back to 1.
1944
7c09e5a0
DE
19452012-10-11 Doug Evans <[email protected]>
1946
1947 PR breakpoints/14643.
1948 * linespec.c (struct ls_parser): New member keyword_ok.
1949 (linespec_lexer_lex_string): Add comment.
1950 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1951 for one.
1952 (parse_linespec): Set keyword_ok.
1953
a1855c1d
DE
19542012-10-10 Doug Evans <[email protected]>
1955
844226d6
DE
1956 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1957 "0x" prefix on address in log message.
1958
a1855c1d
DE
1959 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1960 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1961 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1962 (lookup_dwo_file): Add const to dwo_name parameter.
1963 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1964
2e24f4aa
JK
19652012-10-06 Jan Kratochvil <[email protected]>
1966
1967 Fix crash during stepping on ppc32.
1968 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1969 SYM.
1970
aa14df25
DE
19712012-10-03 Doug Evans <[email protected]>
1972
1973 PR symtab/14601
1974 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1975
3d468296
AB
19762012-10-02 Andrew Burgess <[email protected]>
1977
1978 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1979 output and use uint32_t not long to ensure 4 byte size.
1980
8f0ee2eb
JB
19812012-10-02 Joel Brobecker <[email protected]>
1982
1983 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1984 unref'ed it.
1985
b3dc46ff
AB
19862012-10-01 Andrew Burgess <[email protected]>
1987
1988 * target.c (simple_search_memory): Include access length in
1989 warning message.
1990
f712f01f
EBM
19912012-09-28 Nathan Miller <[email protected]>
1992 Edjunior Machado <[email protected]>
1993
1994 PR gdb/13989
1995 * solib.c (solib_find): Prevent GDB from loading native libraries when
1996 debugging a cross-target corefile.
1997
39181896
PA
19982012-09-28 selven <[email protected]>
1999
2000 Make definition match declaration.
2001
2002 * regcache.c (regcache_register_status): Change return type to
2003 enum register_status.
2004
4c2786ba
YQ
20052012-09-28 Yao Qi <[email protected]>
2006
2007 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2008 write_memory_with_notification instead of write_memory.
2009 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2010 instead of target_write_memory.
2011
1ae0c35e
YQ
20122012-09-28 Yao Qi <[email protected]>
2013
2014 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2015 when the length of content is not an even number.
2016
7977e5d2
TT
20172012-09-27 Tom Tromey <[email protected]>
2018
2019 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2020 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2021
807160da
JB
20222012-09-27 Joel Brobecker <[email protected]>
2023
2024 * sol-thread.c (sol_thread_fetch_registers)
2025 (sol_thread_store_registers): Delete commented out code.
2026
43c75337
JB
20272012-09-27 Joel Brobecker <[email protected]>
2028
2029 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2030 Move these functions to sparc-sol-thread.c.
2031 * sparc-sol-thread.c: New file.
2032 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2033 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2034 configurations.
2035 * configure: Regenerate.
2036
d292a972
JB
20372012-09-27 Joel Brobecker <[email protected]>
2038
2039 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2040 Remove commented-out code.
2041
8c3da003
JB
20422012-09-27 Joel Brobecker <[email protected]>
2043
2044 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2045 Enable this code for sparc hosts only.
2046
f00482b6
JB
20472012-09-27 Joel Brobecker <[email protected]>
2048
2049 * procfs.h (procfs_find_LDT_entry): Add declaration.
2050 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2051 function procfs_find_LDT_entry.
2052
337c776f
JB
20532012-09-27 Joel Brobecker <[email protected]>
2054
2055 * procfs.c (proc_get_LDT_entry): Make static.
2056
1a04d88f
JB
20572012-09-27 Joel Brobecker <[email protected]>
2058
2059 * procfs.c (proc_find_memory_regions): Fix declaration.
2060
bad43aa5
SP
20612012-09-27 Siddhesh Poyarekar <[email protected]>
2062
2063 * amd64-tdep.c (amd64_return_value): Revert previous change
2064 that used TYPE_LENGTH directly.
2065 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2066 (bfin_store_return_value): Likewise.
2067 * cris-tdep.c (cris_store_return_value): Likewise.
2068 (cris_extract_return_value): Likewise.
2069 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2070 * hppa-tdep.c (hppa64_return_value): Likewise.
2071 * lm32-tdep.c (lm32_store_return_value): Likewise.
2072 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2073 * spu-tdep.c (spu_value_from_register): Likewise.
2074 * vax-tdep.c (vax_return_value): Likewise.
2075
63375b74
SP
20762012-09-27 Siddhesh Poyarekar <[email protected]>
2077
2078 * gdbtypes.c (lookup_array_range_type): Expand parameters
2079 LOW_BOUND and HIGH_BOUND to LONGEST.
2080 (lookup_string_range_type): Likewise.
2081 * gdbtypes.h (lookup_array_range_type): Likewise.
2082 (lookup_string_range_type): Likewise.
2083 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2084 Expand HIGHBOUND to ssize_t.
2085 (value_string): Likewise.
2086 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2087 (value_string): Likewise.
2088
19ca11c5
YQ
20892012-09-27 Yao Qi <[email protected]>
2090
2091 PR breakpoints/13898
2092 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2093 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2094 per breakpoint type.
2095
92107356
PM
20962012-09-26 Pierre Muller <[email protected]>
2097
2098 * procfs.c: Add gdb_bfd header.
2099 * rs6000-nat.c: Likewise.
2100 * solib-pa64.c: Likewise.
2101 * spu-linux-nat.c: Likewise.
2102 * windows-nat.c: Likewise.
2103
9742094a
TT
21042012-09-26 Tom Tromey <[email protected]>
2105
2106 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2107
0971de02
TT
21082012-09-26 Tom Tromey <[email protected]>
2109
2110 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2111 (read_common_block): Handle child DIEs with
2112 DW_AT_data_member_location.
2113 (new_symbol_full): Add special case for common blocks.
2114
4357ac6c
TT
21152012-09-26 Jan Kratochvil <[email protected]>
2116 Tom Tromey <[email protected]>
2117
2118 * dwarf2read.c (read_common_block): Rewrite.
2119 (new_symbol_full): Handle DW_TAG_common_block.
2120 * f-lang.c (head_common_list, find_common_for_function):
2121 Remove.
2122 * f-lang.h (struct common_entry, struct saved_f77_common,
2123 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2124 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2125 BLANK_COMMON_NAME_LOCAL): Remove.
2126 (struct common_block): New.
2127 * f-valprint.c (list_all_visible_commons): Remove.
2128 (info_common_command_for_block): New function.
2129 (info_common_command): Use it.
2130 * stack.c (iterate_over_block_locals): Special case for
2131 COMMON_BLOCK_DOMAIN.
2132 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2133 constant.
2134 (struct general_symbol_info) <value.common_block>: New field.
2135 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2136
965f07a8
TT
21372012-09-26 Jan Kratochvil <[email protected]>
2138 Tom Tromey <[email protected]>
2139
2140 * f-lang.c (allocate_saved_bf_node,
2141 allocate_saved_function_node, allocate_saved_f77_common_node,
2142 allocate_common_entry_node, tail_common_list, current_common,
2143 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2144 tmp_bf_ptr, add_common_block, add_common_entry,
2145 find_first_common_named, patch_common_entries,
2146 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2147 global_remote_debug, get_bf_for_fcn, saved_function_list,
2148 saved_function_list_end, clear_function_list, struct saved_fcn,
2149 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2150 SAVED_BF, SAVED_BF_PTR): Remove.
2151 * f-lang.h (tail_common_list, current_common,
2152 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2153 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2154 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2155 real_main_c_value): Remove.
2156 * f-valprint.c (there_is_a_visible_common_named): Remove.
2157
6f380991
AB
21582012-09-26 Andrew Burgess <[email protected]>
2159
2160 * breakpoint.c (update_global_location_list): Ignore previous
2161 duplicate status of a breakpoint when starting a new scan for
2162 duplicate breakpoints.
2163
9ead7ae4 21642012-09-26 Karthik Bhat <[email protected]>
8b3d5494 2165 PR breakpoints/14419
2536b51c
YQ
2166 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2167 support LLVM compiler.
9ead7ae4 2168
8f8a23a2
SP
21692012-09-26 Siddhesh Poyarekar <[email protected]>
2170
2171 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2172 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2173 (bfin_store_return_value): Likewise.
2174 * cris-tdep.c (cris_store_return_value): Likewise.
2175 (cris_extract_return_value): Likewise.
2176 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2177 * hppa-tdep.c (hppa64_return_value): Likewise.
2178 * lm32-tdep.c (lm32_store_return_value): Likewise.
2179 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2180 * spu-tdep.c (spu_value_from_register): Likewise.
2181 * vax-tdep.c (vax_return_value): Likewise.
2182
d7019589
SP
21832012-09-26 Siddhesh Poyarekar <[email protected]>
2184
2185 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2186 parameter LEN to ssize_t.
2187
744a8059
SP
21882012-09-25 Siddhesh Poyarekar <[email protected]>
2189
2190 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2191 variable LEN.
2192 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2193 directly.
2194 (alpha_store_return_value): Likewise.
2195 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2196 (amd64_push_arguments): Likewise.
2197 * ax-gdb.c (gen_trace_static_fields): Likewise.
2198 (gen_traced_pop): Likewise.
2199 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2200 * breakpoint.c (update_watchpoint): Likewise.
2201 * findcmd.c (parse_find_args): Use local variable for type
2202 instead of length.
2203 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2204 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2205 (h8300_store_return_value): Likewise.
2206 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2207 Use i386_darwin_arg_type_alignment directly.
2208 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2209 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2210 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2211 (m68hc11_extract_return_value): Likewise.
2212 * mep-tdep.c (mep_push_dummy_call): Likewise.
2213 * printcmd.c (float_type_from_length): Likewise.
2214 * s390-tdep.c (s390_value_from_register): Likewise.
2215 * stack.c (read_frame_arg): Likewise.
2216 * tracepoint.c (encode_actions_1): Likewise.
2217 * valops.c (value_fetch_lazy): Use local variable for type
2218 instead of length. Use TYPE_LENGTH directly.
2219 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2220
a4b411d6
JB
22212012-09-25 Joel Brobecker <[email protected]>
2222
2223 * symtab.c (skip_prologue_sal): Fix typo in comment.
2224
11dba07a
JB
22252012-09-25 Joel Brobecker <[email protected]>
2226
2227 * linespec.c (create_sals_line_offset): Fix typo in comment.
2228
318102b9
SP
22292012-09-25 Siddhesh Poyarekar <[email protected]>
2230
2231 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2232 use plongest to print the array size.
2233
b4aa388a
SP
22342012-09-24 Siddhesh Poyarekar <[email protected]>
2235
2236 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2237 * p-valprint.c (pascal_type_print_base): Likewise.
2238
84cebc4a
YQ
22392012-09-22 Yao Qi <[email protected]>
2240
2241 * remote.c (remote_get_trace_status): Remove setting default
2242 values of fields of 'ts'.
2243
04e7407c
JK
22442012-09-21 Jan Kratochvil <[email protected]>
2245
2246 Fix internal error on canonicalization of clang types.
2247 * cp-name-parser.y (operator): New comment at make_operator call for
2248 new, delete, new[] and delete[].
2249 (exp): Use "sizeof ". Add new comment at make_operator call.
2250
9bf4bce9
JK
22512012-09-21 Jan Kratochvil <[email protected]>
2252
2253 Fix disassemble without parameters in tailcall frame.
2254 * cli/cli-cmds.c (disassemble_current_function): Use
2255 get_frame_address_in_block.
2256
1c5b7826
TT
22572012-09-21 Tom Tromey <[email protected]>
2258
2259 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2260 TYPE_CODE_UNION>: Unify, removing a goto.
2261
62a49610
TT
22622012-09-21 Tom Tromey <[email protected]>
2263
2264 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2265
2603f7ee
AB
22662012-09-21 Andrew Burgess <[email protected]>
2267
2268 * findvar.c (read_frame_register_value): Mark the result value as
2269 optimized out if any of the input registers have been optimized out.
2270
810849a3
AS
22712012-09-21 Andreas Schwab <[email protected]>
2272
2273 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2274
0953dec1
SP
22752012-09-21 Siddhesh Poyarekar <[email protected]>
2276
2277 * eval.c (evaluate_subexp_standard): Eliminate single-use
2278 variable LOWER.
2279
82a90ccf
YQ
22802012-09-21 Yao Qi <[email protected]>
2281
2282 * mi/mi-interp.c: Declare mi_record_changed.
2283 (mi_interpreter_init): Call observer_attach_record_changed.
2284 (mi_record_changed): New.
2285 * record.c (record_open): Call observer_notify_record_changed.
2286 (cmd_record_stop): Call observer_notify_record_changed.
2287 * NEWS: Mention it.
2288
d7de8e3c
TT
22892012-09-20 Tom Tromey <[email protected]>
2290
2291 * NEWS: Update.
2292 * python/python.c (finalize_python): New function.
2293 (_initialize_python): Make a final cleanup.
2294
43c7c83d
DE
22952012-09-19 Doug Evans <[email protected]>
2296
2297 * buildsym.h (param_symbols): Delete, unused.
2298 (context_stack): Delete member "params", unused.
2299 * buildsym.c (push_context): Update.
2300 * dwarf2read.c (read_func_scope): Update.
2301
aa9259cc
TS
23022012-09-19 Thomas Schwinge <[email protected]>
2303
a6521d9a
TS
2304 * sh-tdep.c (sh_register_convert_to_virtual)
2305 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2306 all callers. Just do a memcpy if not the little-endian case.
2307
f92589cb
TS
2308 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2309 set_gdbarch_double_format and set_gdbarch_long_double_format.
2310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2311 set_gdbarch_double_format.
2312 * sh-tdep.c (sh_gdbarch_init): Likewise.
2313
aa9259cc
TS
2314 * NEWS: Document the removal of SH's 'regs' command.
2315 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2316 command.
2317
c1d780c2
SDJ
23182012-09-18 Sergio Durigan Junior <[email protected]>
2319
2320 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2321 `jump'.
2322
4ae24af0
JB
23232012-09-18 Joel Brobecker <[email protected]>
2324
2325 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2326 language when iterating over symbols.
2327
bb25a15c
YQ
23282012-09-18 Yao Qi <[email protected]>
2329
2330 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2331 (mi_interpreter_init): Call observer_attach_tsv_created and
2332 observer_attach_tsv_deleted.
2333 (mi_tsv_created, mi_tsv_deleted): New.
2334 * tracepoint.c (delete_trace_state_variable): Call
2335 observer_notify_tsv_deleted.
2336 (trace_variable_command): Call observer_notify_tsv_created.
2337 (delete_trace_variable_command): Call
2338 observer_notify_tsv_deleted.
2339 (create_tsv_from_upload): Call observer_notify_tsv_created.
2340 * NEWS: Mention it.
2341
201b4506
YQ
23422012-09-18 Yao Qi <[email protected]>
2343
2344 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2345 if traceframe changed.
2346 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2347 "trace-find".
2348 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2349 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2350 'traceframe_changed'.
2351 (mi_traceframe_changed): New.
2352 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2353 New field.
2354 * NEWS: Mention the new MI notification.
2355
eaeb12db
MW
23562012-09-17 Mike Wrighton <[email protected]>
2357
2358 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2359
6e3c039e
JK
23602012-09-17 Jan Kratochvil <[email protected]>
2361
2362 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2363 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2364 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2365 Extend code also for PaX support. Convert all gdb_assert to warning
2366 calls.
2367
9a950c7c
JK
23682012-09-17 Jan Kratochvil <[email protected]>
2369
2370 Implement auto-load user conveniences suggested by Doug Evans.
2371 * auto-load.c: Include top.h.
2372 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2373 (_initialize_auto_load): New variable scripts_directory_help. Mention
2374 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2375 scripts-directory. Document in online help one can use also files for
2376 set auto-load safe-path.
2377 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2378 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2379
deec9a9d
SP
23802012-09-17 Siddhesh Poyarekar <[email protected]>
2381
2382 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2383 of LEN.
2384
354ecfd5
SP
23852012-09-17 Siddhesh Poyarekar <[email protected]>
2386
2387 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2388 ELTLEN and use TYPE_LENGTH directly.
2389 (m2_val_print): Likewise.
2390 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2391 variable LEN and use TYPE_LENGTH directly.
2392 (m68k_svr4_store_return_value): Likewise.
2393 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2394 ARGLEN and use TYPE_LENGTH directly.
2395 (mips_o64_push_dummy_call): Likewise.
2396 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2397 variable LENGTH and use TYPE_LENGTH directly.
2398 (s390_function_arg_float): Likewise.
2399 (s390_function_arg_integer): Likewise.
2400 (s390_push_dummy_call): Likewise.
2401 (s390_return_value_convention): Likewise.
2402 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2403 TYPE_LENGTH directly.
2404
6fc1c773
YQ
24052012-09-17 Yao Qi <[email protected]>
2406
2407 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2408 Update comment to add_setshow_integer_cmd.
2409 * cli/cli-setshow.c (do_set_command): Handle case
2410 'var_zuinteger_unlimited'.
2411 (do_show_command): Likewise.
2412 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2413 for command 'remotetimeout'.
2414 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2415 to var_integer.
f87e3f15
PA
2416 * source.c (_initialize_source): Call
2417 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
6fc1c773 2418
6acef6cd
SP
24192012-09-17 Siddhesh Poyarekar <[email protected]>
2420
2421 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2422 variable LEN.
2423
1ab3b62c
JK
24242012-09-17 Jan Kratochvil <[email protected]>
2425
2426 PR 14119
2427 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2428 (frame_pop): Drop also TAILCALL_FRAME frames.
2429 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2430
acf9414f
JK
24312012-09-17 Jan Kratochvil <[email protected]>
2432 Pedro Alves <[email protected]>
2433
2434 PR 14548
2435 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2436 function start if we are already at function start. Both for
2437 reverse-next and for reverse-step into function without line number
2438 info.
2439
193facb3
JK
24402012-09-17 Jan Kratochvil <[email protected]>
2441
2442 Code cleanup - rename 'inline' depth to 'artificial' depth.
2443 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2444 frame_id_artificial_p, extend the comment.
2445 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2446 * frame.c (fprint_frame_id): Rename at a user, change debug output
2447 text to "artificial=".
2448 (skip_inlined_frames): Rename to ...
2449 (skip_artificial_frames): ... here. Extend the comment.
2450 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2451 (frame_id_inlined_p): Rename to ...
2452 (frame_id_artificial_p): ... here. Rename at a user.
2453 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2454 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2455 at a user.
2456 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2457 Extend the comment.
2458 (frame_id_inlined_p): Rename to ...
2459 (frame_id_artificial_p): ... here.
2460 * inline-frame.c (inline_frame_this_id): Rename at a user.
2461
42056501
AB
24622012-09-14 Andrew Burgess <[email protected]>
2463
2464 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2465 vector variables using vector_size syntax rather than array
2466 syntax.
2467
84c47588
SP
24682012-09-14 Siddhesh Poyarekar <[email protected]>
2469
2470 * valarith.c (value_concat): Replace unsafe ALLOCA with
2471 XMALLOC/XFREE.
2472
f4045bcb
PA
24732012-09-14 Pedro Alves <[email protected]>
2474
2475 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2476
63b46266
YPK
24772012-09-14 Khoo Yit Phang <[email protected]>
2478
2479 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2480 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2481 data-directory as appropriate.
2482
ddd7a8e7
SP
24832012-09-14 Siddhesh Poyarekar <[email protected]>
2484
2485 * printcmd.c (ui_printf): Eliminate single-use variable
2486 PARAM_LEN.
2487
d649a38e
YQ
24882012-09-14 Yao Qi <[email protected]>
2489 Pedro Alves <[email protected]>
2490
2491 * valops.c (value_assign): Move observer_notify_target_changed
2492 below to replace reinit_frame_cache.
2493
b9516fa1
YPK
24942012-09-13 Khoo Yit Phang <[email protected]>
2495
2496 Refactor Python "gdb" module into a proper Python package, by
2497 introducing a new "_gdb" module for code implemented in C, and
2498 using reload/__import__ instead of exec.
2499 * python/lib/gdb/__init__.py: Import * from _gdb.
2500 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2501 prompt_hook, sys.argv): Moved from finish_python_initialization.
2502 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2503 (packages, auto_load_packages): New list and function replacing
2504 module_dict and auto-loading code, using __file__ instead of
2505 gdb.PYTHONDIR and reload/__import__ instead of exec.
2506 (GdbSetPythonDirectory): Replacing function of the same name
2507 from finish_python_initialization, using reload/__import__ instead
2508 of exec, as well as call auto_load_packages.
2509 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2510 gdb_python_module and not gdb_module.
2511 * python/python-internal.h (gdb_python_module): Declare.
2512 * python/python.c (gdb_python_module): New global.
2513 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2514 (_initialize_python): Rename gdb module to _gdb.
2515 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2516 (finish_python_initialization): Move Python code to
2517 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2518 __main__.
2519
aa0fbdd8
PA
25202012-09-13 Pedro Alves <[email protected]>
2521
2522 * Makefile.in (COMMON_OBS): Add registry.o.
2523 * registry.c: New file.
2524 * registry.h (struct registry_container): Declare.
2525 (registry_data_callback): New typedef.
2526 (struct registry_data, struct registry_data_registration, struct
2527 registry_data_registry): New type.
2528 (register_data_with_cleanup, registry_alloc_data)
2529 (registry_callback_adaptor, registry_clear_data)
2530 (registry_container_free_data, registry_set_data, registry_data):
2531 Declare.
2532 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2533 the new common structures and functions.
2534 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2535 callback typedefs.
2536
42b5c53d
MW
25372012-09-12 Mike Wrighton <[email protected]>
2538
2539 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2540 there is an error inserting hardware breakpoints and use the
2541 error message from the target.
2542
2543 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
f87e3f15
PA
2544 Catch this exception and print the error message contained within.
2545 Do not print the default hardware error breakpoint message in this
2546 case.
42b5c53d 2547
a1b64ce1
DE
25482012-09-12 Doug Evans <[email protected]>
2549
2550 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2551 cu == NULL.
2552
83a788b8
DE
25532012-09-11 Doug Evans <[email protected]>
2554
2555 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2556 .gdb_index symbol attributes if there are none.
2557
d9eaeb59
JB
25582012-09-11 Joel Brobecker <[email protected]>
2559
2560 * symtab.h (struct minimal_symbol) [has_size]: New field.
2561 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2562 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2563 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2564 minimal symbols if the symbol's size is actually known.
2565 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2566 of msymbol's size field. Add comment.
2567 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2568 SET_MSYMBOL_SIZE to set the minimal symbol size.
2569
a83e9154
JB
25702012-09-11 Joel Brobecker <[email protected]>
2571
2572 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2573 minimal_symbol struct object, rather than setting some of its
2574 fields one by one.
2575
350b1b26
AB
25762012-09-11 Andrew Burgess <[email protected]>
2577
2578 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2579 passed_a_ptr flag when displaying typedef types.
2580
2fa15f23
JB
25812012-09-10 Joel Brobecker <[email protected]>
2582
2583 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2584 the optimized_out flag is preserved.
2585
5152ff90
AG
25862012-09-10 Anthony Green <[email protected]>
2587
2588 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2589 prologue changes in GCC.
2590
5b4f6e25
KS
25912012-09-10 Keith Seitz <[email protected]>
2592
2593 PR gdb/13483
2594 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2595 (BOOL_CONVERSION_BADNESS): ... this.
2596 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2597 (rank_one_type): Allow all boolean conversions
2598 permitted by the standard.
2599
f1070426
TT
26002012-09-06 Tom Tromey <[email protected]>
2601
2602 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2603 Don't decref py_objfile.
2604
a8db4212
YPK
26052012-09-02 Khoo Yit Phang <[email protected]>
2606
2607 Do not enable -lmcheck by default when Python is enabled with
2608 threading support.
2609 * configure.ac: (python_has_threads) New variable, by testing
2610 if WITH_THREAD is defined in Python.h.
2611 Move --enable-lmcheck after --with-python.
2612 Do not enable -lmcheck by default if python_has_threads=yes.
2613 Warn if --enable-lmcheck and python_has_threads=yes.
2614 * configure: Regenerate.
2615
648beb2b
YQ
26162012-08-31 Yao Qi <[email protected]>
2617
2618 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2619 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2620 Update some commands.
2621 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
f87e3f15
PA
2622 * mi/mi-main.c (mi_cmd_execute): Set
2623 '*parse->cmd->suppress_notification' to 1.
648beb2b 2624
ef07a9f7
YQ
26252012-08-31 Yao Qi <[email protected]>
2626
2627 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2628
fda395cf
YPK
26292012-08-30 Khoo Yit Phang <[email protected]>
2630
2631 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2632
8efd8e78
DE
26332012-08-29 Doug Evans <[email protected]>
2634
2635 * main.c (print_gdb_help): Remove reference to
2636 --use-deprecated-index-sections.
2637
883b9c6c
YQ
26382012-08-28 Yao Qi <[email protected]>
2639
2640 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2641 (init_cmds): Call add_setshow_uinteger_cmd for command
2642 'max-user-call-depth'.
2643 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2644 declaration of 'max_user_call_depth'.
2645 * frame.c (backtrace_limit): Add 'unsigned'.
2646 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2647 'limit'.
2648 * remote.c (remoteaddresssize): Add 'unsigned'.
2649 (remote_address_masked): Change local var 'address_size' to
2650 'unsigned'.
2651 (_initialize_remote): Call add_setshow_uinteger_cmd for
2652 'remoteaddresssize'.
2653 * top.c (history_size): Add 'unsigned'.
2654 (show_commands): Change local variables to 'unsigned'.
2655 (set_history_size_command): Don't check history_size is negative.
2656 Adjust the condition to call unstifle_history and set history_size
2657 to UNIT_MAX.
2658
1292279a
PA
26592012-08-28 Pedro Alves <[email protected]>
2660
2661 PR gdb/14428
2662
2663 * infcmd.c (default_print_one_register_info): New, factored out
2664 from default_print_registers_info.
2665 (default_print_registers_info): Use it. Mark value unavailable if
2666 necessary.
2667 (registers_info): Print user registers with
2668 default_print_one_register_info.
2669
f629cd75
L
26702010-08-27 H.J. Lu <[email protected]>
2671
2672 PR tui/14486
2673 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2674 is not NULL before referencing it.
2675
1c8cdcb1
JK
26762012-08-27 Jan Kratochvil <[email protected]>
2677
2678 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2679 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2680 original PC for it.
2681
e9687799
JK
26822012-08-27 Eli Zaretskii <[email protected]>
2683 Jan Kratochvil <[email protected]>
2684
2685 * auto-load.c (auto_load_objfile_script): Rename to ...
2686 (auto_load_objfile_script_1): ... here, change variable realname to
2687 parameter realname, document it, add return value, add variable retval.
2688 (auto_load_objfile_script): New function.
2689
7afa1642
JK
26902012-08-27 Jan Kratochvil <[email protected]>
2691
2692 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2693 followed by a whitespace.
2694
dc7650b8
JK
26952012-08-27 Jan Kratochvil <[email protected]>
2696
28e66c70 2697 PR gdb/14494.
dc7650b8
JK
2698 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2699 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2700 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2701 here.
2702
1591a1e8
PA
27032012-08-27 Wei-cheng Wang <[email protected]>
2704
2705 * memattr.c (create_mem_region): Fix memory region overlapping
2706 checking.
2707
ecfb0d68
SP
27082012-08-24 Siddhesh Poyarekar <[email protected]>
2709
2710 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2711 with xmalloc/cleanup.
2712 * mt-tdep.c (mt_push_dummy_call): Likewise.
2713 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2714 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2715
8c56c1b9
YQ
27162012-08-24 Yao Qi <[email protected]>
2717
2718 * jv-exp.y (push_expression_name): Add "." at the end of error
2719 message.
2720
e3480f4a
YPK
27212012-08-23 Khoo Yit Phang <[email protected]>
2722
2723 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2724 * python/python.c (_initialize_python): Update documentation.
2725
dfbd5e7b
PA
27262012-08-23 Pedro Alves <[email protected]>
2727
2728 * infrun.c (_initialize_infrun) <handle command help text>:
2729 Mention that multiple signals are supported.
2730
2edda2ff
PA
27312012-08-23 Pedro Alves <[email protected]>
2732
2733 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2734 string.
2735
8d735b87
YQ
27362012-08-23 Yao Qi <[email protected]>
2737
2738 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2739 (tfind_1): Don't call registers_changed, set_traceframe_num,
2740 and clear_traceframe_info.
2741 Call set_current_traceframe.
2742 (set_current_traceframe): call set_traceframe_num.
2743
c5d9b215
SDJ
27442012-08-22 Sergio Durigan Junior <[email protected]>
2745
2746 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2747 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2748
037bbc8e
YPK
27492012-08-22 Khoo Yit Phang <[email protected]>
2750
2751 Enable readline in Python in a GDB-specific way and block the
2752 standard Python readline module to prevent conflicts with GDB.
2753 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2754 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2755 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2756 * python/py-gdb-readline.c: New file.
2757 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2758 prototype.
2759 * python/python.c (_initialize_python): Call
2760 gdbpy_initialize_gdb_readline.
2761
406b1477
KS
27622012-08-22 Keith Seitz <[email protected]>
2763
2764 * defs.h: Include build-gnulib/config.h
2765
6ca1b147
JM
27662012-08-22 Joseph Myers <[email protected]>
2767
2768 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2769 and blx pc.
2770
8315665e
YPK
27712012-08-22 Khoo Yit Phang <[email protected]>
2772
2773 Add a new "python-interactive" command that starts a standard
2774 Python interactive prompt with "pi" as alias, and add "py" as
2775 an alias to "python".
2776 * NEWS: Mention the new commands.
8315665e
YPK
2777 * python/python.c (eval_python_command): New function.
2778 (python_interactive_command): For "python-interactive" with
2779 arguments, call eval_python_command. For "python-interactive"
2780 without arguments, call PyRun_InteractiveLoop.
2781 (_initialize_python): Add "python-interactive" command with
2782 "pi" as alias, and add "py" as an alias to "python".
2783
522002f9
TT
27842012-08-22 Tom Tromey <[email protected]>
2785
2786 * defs.h (quit_flag): Don't declare.
2787 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2788 (QUIT): Use new functions.
2789 * event-top.c (command_handler): Use clear_quit_flag.
2790 (handle_sigint): Use set_quit_flag.
2791 (async_request_quit): Use check_quit_flag. Don't check
2792 immediate_quit.
2793 * exceptions.c (throw_exception): Use clear_quit_flag.
2794 * main.c (captured_main): Use clear_quit_flag.
2795 * python/python.c (clear_quit_flag, set_quit_flag)
2796 (check_quit_flag): New functions.
2797 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2798 clear_quit_flag.
2799 * remote.c (remote_wait_as): Use check_quit_flag,
2800 clear_quit_flag.
2801 (remote_start_remote): Call QUIT.
2802 * symfile.c (load_progress): Use check_quit_flag.
2803 * top.c (command_loop): Use clear_quit_flag.
2804 (command_line_input): Call QUIT.
2805 * utils.c (quit_flag): Conditionally define.
2806 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2807 functions.
2808 (prompt_for_continue): Call QUIT. Use quit, not
2809 async_request_quit.
2810 * remote-mips.c (mips_expect_timeout): Call QUIT.
2811 * monitor.c (monitor_expect): Call QUIT.
2812
b583003e
TT
28132012-08-22 Tom Tromey <[email protected]>
2814
2815 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2816 (async_init_signals): Update.
2817 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2818 (SIGWINCH_HANDLER_BODY): Remove.
2819
e1507e95
TT
28202012-08-22 Tom Tromey <[email protected]>
2821
2822 * jit.c (jit_object_close_impl): Don't malloc the objfile
2823 name.
2824 * objfiles.c (allocate_objfile): Don't malloc the objfile
2825 name.
2826 (free_objfile): Don't free the objfile name.
2827 * objfiles.h (struct objfile) <name>: Update comment.
2828 * symfile.c (reread_symbols): Fix reference counting. Don't
2829 malloc objfile name.
2830
1c00ec6b
TT
28312012-08-22 Tom Tromey <[email protected]>
2832
2833 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2834 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2835 (symfile_bfd_open): Likewise.
2836 (generic_load): Likewise.
2837 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2838 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2839 gdb_bfd_open.
2840 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2841 Use gdb_bfd_open.
2842 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2843 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2844 (pmon_load_fast): Likewise.
2845 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2846 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2847 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2848 (macho_check_dsym): Likewise.
2849 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2850 (m32r_upload_command): Likewise.
2851 * gdb_bfd.h (gdb_bfd_cache): Declare.
2852 * gdb_bfd.c (struct gdb_bfd_data): New.
2853 (gdb_bfd_cache): New global.
2854 (struct gdb_bfd_cache_search): New.
2855 (hash_bfd): New function.
2856 (eq_bfd): Likewise.
2857 (gdb_bfd_open): Likewise.
2858 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2859 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2860 gdb_bfd_data.
2861 * exec.c (exec_file_attach): Use gdb_bfd_open.
2862 * dsrec.c (load_srec): Use gdb_bfd_open.
2863
6532ff36
TT
28642012-08-22 Tom Tromey <[email protected]>
2865
2866 * dwarf2read.c (macro_start_file): Update.
2867 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2868 (free_objfile_per_bfd_storage): Destroy macro_cache.
2869 (allocate_objfile, free_objfile): Update.
2870 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2871 New field.
2872 (struct objfile) <macro_cache>: Remove.
2873 * symfile.c (reread_symbols): Update.
2874 * symmisc.c (print_symbol_bcache_statistics): Update.
2875 (print_objfile_statistics): Update.
2876
706e3705
TT
28772012-08-22 Tom Tromey <[email protected]>
2878
2879 * elfread.c (elf_symtab_read): Update.
2880 * objfiles.c (objfiles_bfd_data): New global.
2881 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2882 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2883 (allocate_objfile, free_objfile): Update.
2884 (_initialize_objfiles): Initialize objfiles_bfd_data.
2885 * objfiles.h (struct objfile_per_bfd_storage): New.
2886 (struct objfile) <per_bfd>: New field.
2887 <filename_cache>: Remove.
2888 (set_objfile_per_bfd): Declare.
2889 * symfile.c (reread_symbols): Update. Call
2890 set_objfile_per_bfd.
2891 (allocate_symtab): Update.
2892 * symmisc.c (print_symbol_bcache_statistics): Update.
2893 (print_objfile_statistics): Print the size of the BFD obstack.
2894
e992eda4
TT
28952012-08-22 Tom Tromey <[email protected]>
2896
2897 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2898 * gdb_bfd.c: Use DEFINE_REGISTRY.
2899 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2900 (gdb_bfd_ref): Call bfd_alloc_data.
2901 (gdb_bfd_unref): Call bfd_free_data.
2902
6b81941e
TT
29032012-08-22 Tom Tromey <[email protected]>
2904
2905 * registry.h (struct registry_fields): New.
2906 (REGISTRY_FIELDS): Redefine.
2907 (REGISTRY_ACCESS_FIELD): New macro.
2908 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2909 functions.
2910
8e260fc0
TT
29112012-08-22 Tom Tromey <[email protected]>
2912
2913 * auto-load.c (_initialize_auto_load): Update.
2914 * solib-svr4.c (_initialize_svr4_solib): Update
2915 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2916 * solib-darwin.c (_initialize_darwin_solib): Update.
2917 * registry.h: New file.
2918 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2919 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2920 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2921 (register_program_space_data_with_cleanup)
2922 (register_program_space_data, program_space_alloc_data)
2923 (clear_program_space_data, set_program_space_data)
2924 (program_space_data): Don't declare.
2925 * progspace.c: Use DEFINE_REGISTRY.
2926 (struct program_space_data, struct
2927 program_space_data_registration, struct
2928 program_space_data_registry, program_space_data_registry)
2929 (register_program_space_data_with_cleanup)
2930 (register_program_space_data, program_space_alloc_data)
2931 (program_space_free_data, clear_program_space_data)
2932 (set_program_space_data, program_space_data): Remove.
2933 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2934 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2935 (register_objfile_data_with_cleanup, register_objfile_data)
2936 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2937 declare.
2938 * objfiles.c: Use DEFINE_REGISTRY.
2939 (struct objfile_data, struct objfile_data_registration, struct
2940 objfile_data_registry, objfile_data_registry)
2941 (register_objfile_data_with_cleanup, register_objfile_data)
2942 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2943 (set_objfile_data, objfile_data): Remove.
2944 (_initialize_objfiles): Update.
2945 * jit.c (_initialize_jit): Update.
2946 * inflow.c (_initialize_inflow): Update.
2947 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2948 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2949 (register_inferior_data_with_cleanup, register_inferior_data)
2950 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2951 declare.
2952 * inferior.c: Use DEFINE_REGISTRY.
2953 (struct inferior_data, struct inferior_data_registration, struct
2954 inferior_data_registry, inferior_data_registry)
2955 (register_inferior_data_with_cleanup, register_inferior_data)
2956 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2957 (set_inferior_data, inferior_data): Remove.
2958 * auxv.c (_initialize_auxv): Update.
2959 * ada-lang.c (_initialize_ada_language): Update.
2960 * breakpoint.c (_initialize_breakpoint): Update.
2961 * i386-nat.c (i386_use_watchpoints): Update.
2962
ed9eebaf
TT
29632012-08-22 Tom Tromey <[email protected]>
2964
2965 * exec.c (exec_close, exec_file_attach): Update.
2966 (add_to_section_table): Initialize 'key' field.
2967 (add_target_sections, remove_target_sections): Add 'key' argument.
2968 * exec.h (add_target_sections, remove_target_sections): Add
2969 'key' argument.
2970 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2971 (reload_shared_libraries_1): Update.
2972 * target.h (struct target_section) <key>: New field.
2973
2f2e97fa
TT
29742012-08-22 Tom Tromey <[email protected]>
2975
2976 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2977
b3dbbd6f
PM
29782012-08-21 Pierre Muller <[email protected]>
2979
2980 * symfile.c (allocate_symtab): Use host_address_to_string
2981 function instead of cast of pointer to long which is not
2982 compatible with x86_64-w64-mingw32 build.
2983
f94363d7
AP
29842012-08-19 Andrew Pinski <[email protected]>
2985
2986 * mips-tdep.c (is_octeon): New function.
2987 (is_octeon_bbit_op): New function.
2988 (mips32_next_pc): Handle Octeon's bbit instructions.
2989 (mips32_instruction_has_delay_slot): Likewise.
2990
78a59c2f
AP
29912012-08-19 Andrew Pinski <[email protected]>
2992
2993 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2994 before the function.
2995
4f5bcb50
AP
29962012-08-19 Andrew Pinski <[email protected]>
2997
2998 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2999
e5afdbd7
KS
30002012-08-19 Keith Seitz <[email protected]>
3001
3002 PR c++/14365
3003 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3004 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3005
13c9750e
EZ
30062012-08-18 Eli Zaretskii <[email protected]>
3007
3008 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3009 The typo broke "make TAGS".
3010
db761810 30112012-08-17 Joel Brobecker <[email protected]>
3012
3013 GDB 7.5 released.
3014
a451cb65
KS
30152012-08-17 Keith Seitz <[email protected]>
3016
3017 PR c++/13356
3018 * gdbtypes.c (strict_type_checking): New variable.
3019 (show_strict_type_checking): New function.
3020 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3021 if strict type checking is disabled.
3022 (_initialize_gdbtypes): Add "check type" subcommand.
3023 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3024
30252012-08-17 Keith Seitz <[email protected]>
3026
3027 * language.h (type_mode): Remove.
3028 (type_check): Remove.
3029 (struct language_defn): Remove la_type_check.
3030 (STRICT_TYPE): Remove unused macro.
3031 (type_error): Remove.
3032 * language.c (set_type_range_case): Renamed to ...
3033 (set_range_case): ... this. Update all callers.
3034 Remove type_mode/type_check.
3035 (type_mode): Remove.
3036 (type_check): Remove.
3037 (show_type_command): Remove.
3038 (set_type_command): Remove.
3039 (language_info): Remove type checking output.
3040 (type_error): Remove unused function.
3041 (range_error): Update comment.
3042 (unknown_language_defn): Remove la_type_check.
3043 (auto_language_defn): Likewise.
3044 (local_language_defn): Likewise.
3045 (_initialize_language): Remove "check type" subcommand.
3046 * ada-lang.c (ada_language_defn): Remove la_type_check.
3047 * c-lang.c (c_language_defn): Likewise.
3048 (cplus_language_defn): Likewise.
3049 (asm_language_defn): Likewise.
3050 (minimal_language_defn): Likewise.
3051 * d-lang.c (d_language_defn): Likewise.
3052 * f-lang.c (f_language_defn): Likewise.
3053 * go-lang.c (go_language_defn): Likewise.
3054 * jv-lang.c (java_language_defn): Likewise.
3055 * m2-lang.c (m2_language_defn): Likewise.
3056 * objc-lang.c (objc_language_defn): Likewise.
3057 * opencl-lang.c (opencl_language_defn): Likewise.
3058 * p-lang.c (pascal_language_defn): Likewise.
3059
dbf6a605
MF
30602012-08-16 Mike Frysinger <[email protected]>
3061
3062 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3063
973e3cf7
JB
30642012-08-16 Joel Brobecker <[email protected]>
3065
3066 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3067 New function.
3068 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3069 using the regache. Use ia64_hpux_get_register_from_save_state_t
3070 to access the bsp and bspstore registers if not.
3071
d80ee84f
JB
30722012-08-16 Joel Brobecker <[email protected]>
3073
3074 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3075 * breakpoint.c (detach_breakpoints): Change pid parameter into
3076 a ptid. Adjust code accordingly.
3077 * infrun.c (handle_inferior_event): Delete variable child_pid.
3078 Update call to detach_breakpoints to pass the child ptid for
3079 fork events.
3080 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3081 assert that inferior_ptid's lwp is zero.
3082 (linux_handle_extended_wait): Update call to detach_breakpoints.
3083 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3084 detach_breakpoints.
3085
2dcc6086
JB
30862012-08-16 Joel Brobecker <[email protected]>
3087
3088 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3089 parent, only call detach_breakpoints if tts.tts_event ==
3090 TTEVT_VFORK.
3091
0c92d8c1
JB
30922012-08-16 Joel Brobecker <[email protected]>
3093
3094 * dwarf2-frame.c (dwarf2_frame_cache): Use
3095 get_frame_address_in_block instead of get_frame_pc as
3096 the bound for executing the frame's FDE.
3097
6b1755ce
YQ
30982012-08-16 Yao Qi <[email protected]>
3099
3100 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3101 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3102 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3103 (c_type_print_varspec_suffix): Likewise.
3104 * eval.c (evaluate_subexp_standard): Likewise.
3105 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3106 (f_type_print_varspec_suffix): Likewise.
3107 * gdbtypes.c (is_scalar_type): Likewise.
3108 (recursive_dump_type): Likewise.
3109 * infcall.c (value_arg_coerce): Likewise.
3110 * m2-valprint.c (m2_val_print): Likewise.
3111 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3112 (pascal_type_print_varspec_suffix): Likewise.
3113 (pascal_type_print_base): Likewise.
3114 * p-valprint.c (pascal_val_print): Likewise.
3115 (pascal_val_print): Likewise.
3116 * valops.c (value_slice): Likewise.
3117 * valprint.c (scalar_type_p): Likewise.
3118 * valarith.c (value_bitstring_subscript): Remove.
3119 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3120 Remove comment on TYPE_CODE_BITSTRING.
3121
3122 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3123 TYPE_CODE_BITSTRING.
3124
3125 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3126 slot 0.
3127
8acc4065
YQ
31282012-08-16 Yao Qi <[email protected]>
3129
3130 * tracepoint.c (trace_find_none_command): Remove.
3131 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3132
8128fd8e
YQ
31332012-08-16 Yao Qi <[email protected]>
3134
3135 * remote.c (handle_notification): Remove parameter 'length'.
3136 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3137
2873700e
KS
31382012-08-15 Keith Seitz <[email protected]>
3139
3140 * gdbtypes.c (opaque_type_resolution): Make static.
3141 Add missing comment.
3142 (overload_debug): Add missing comment.
3143 (show_opaque_type_resolution): Likewise.
3144 (show_overload_debug): Likewise.
3145 (print_bit_vector): Remove unnecessary forward declaration.
3146 (print_arg_types): Likewise.
3147 (dump_fn_fieldlists): Likewise.
3148 (print_cplus_stuff): Likewise.
3149
b82d08cd
TT
31502012-08-15 Tom Tromey <[email protected]>
3151
3152 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3153 (gdb_bfd_ref): Initialize new field.
3154 (gdb_bfd_unref): Unref the archive BFD.
3155 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3156 parent archive.
3157
db6573d6
TT
31582012-08-15 Tom Tromey <[email protected]>
3159
3160 PR python/14387:
3161 * python/py-bpevent.c (create_breakpoint_event_object): Update
3162 comment.
3163 * python/py-event.c (evpy_add_attribute): Update comment.
3164 * python/py-exitedevent.c (create_exited_event_object): Fix
3165 reference counting and error handling.
3166 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3167 Fix reference counting.
3168 * python/py-signalevent.c (create_signal_event_object): Fix
3169 reference counting and error handling.
3170 * python/py-stopevent.c (emit_stop_event): Fix reference
3171 counting.
3172 * python/py-threadevent.c (get_event_thread): Return a
3173 borrowed reference.
3174 * python/py-type.c (convert_field): Fix reference counting.
3175
a036ba48
TT
31762012-08-15 Tom Tromey <[email protected]>
3177
3178 * dwarf2read.c (dwarf_decode_macro_bytes)
3179 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3180 as hash key.
3181
486c7739
MF
31822012-08-14 Mike Frysinger <[email protected]>
3183
3184 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3185 stepi, nexti, finish, next, step, jump, and continue commands.
3186 * infrun.c (_initialize_infrun): Update help text for the handle
3187 command.
3188
4cf93a03
DE
31892012-08-14 Doug Evans <[email protected]>
3190
70b099cf
DE
3191 * gdbtypes.c (struct extra): Delete, unused.
3192
5212577a
DE
3193 * gdbtypes.c: Whitespace cleanup.
3194 (address_space_name_to_int): Remove "extern" from definition.
3195 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3196
4cf93a03
DE
3197 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3198 TYPE_POINTER_TYPE (type).
3199
3756ef7e
GB
32002012-08-14 Gary Benson <[email protected]>
3201
3202 * solib-svr4.c (svr4_free_library_list): Use free_so.
3203
40d72643
MF
32042012-08-13 Mike Frysinger <[email protected]>
3205
3206 * .gitignore: Add go-exp.c.
3207
f47f77df
DE
32082012-08-13 Doug Evans <[email protected]>
3209
3210 * value.c (show_convenience): Tweak comment.
3211 (_initialize_values): Mention convenience functions in the help text
3212 for "show convenience".
3213
7507c54a
YQ
32142012-08-13 Yao Qi <[email protected]>
3215
3216 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3217 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3218 TERNOP_SLICE_COUNT.
3219 * eval.c (evaluate_subexp_standard): Likewise.
3220 * expprint.c (print_subexp_standard): Likewise.
3221 (dump_subexp_body_standard): Likewise.
3222 * parse.c (operator_length_standard): Likewise.
3223
5cad9736
YQ
32242012-08-13 Yao Qi <[email protected]>
3225
3226 * std-operator.def: Remove OP_BITSTRING.
3227 * breakpoint.c (watchpoint_exp_is_const): Update.
3228 * eval.c (evaluate_subexp_standard): Remove handling to
3229 OP_BITSTRING.
3230 * expprint.c (print_subexp_standard): Likewise.
3231 (dump_subexp_body_standard): Likewise.
3232 * parse.c (operator_length_standard): Likewise.
3233 * valops.c (value_bitstring): Remove.
3234 * value.h: Remove the declaration of 'value_bitstring'.
3235
bad7670a
SDJ
32362012-08-10 Sergio Durigan Junior <[email protected]>
3237
3238 * linespec.c (find_methods): Remove unused variables `i1' and
3239 `name_len'.
3240 (decode_line_full): Likewise for `arg_start'.
3241
d9dce7fa
SDJ
32422012-08-10 Sergio Durigan Junior <[email protected]>
3243
3244 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3245 (zlib_decompress_section): Likewise for `section_data'.
3246 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3247
a72c3253
DE
32482012-08-10 Doug Evans <[email protected]>
3249
3250 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3251 * NEWS: Document them.
3252 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3253 function/strfns.py.
3254 * python/py-type.c (typy_array_1): New function.
3255 (typy_array): Call it.
3256 (typy_vector): New function.
3257 (type_object_methods): Add "vector".
3258 * python/lib/gdb/function/__init__.py: New file.
3259 * python/lib/gdb/function/strfns.py: New file.
3260
200bc880
SP
32612012-08-10 Siddhesh Poyarekar <[email protected]>
3262
3263 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3264 for TYPE_FIELD_BITPOS.
3265 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3266
de0bea00
MF
32672012-08-10 Mike Frysinger <[email protected]>
3268
3269 PR cli/10436:
3270 * common/vec.h (VEC_merge): Define.
3271 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3272 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3273 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3274 * completer.c: Include gdb_signals.h.
3275 (signal_completer): Define.
3276 * completer.h (signal_completer): Add prototype.
3277 * infcmd.c (_initialize_infcmd): Assign the command
3278 completer for "signal" to handle_completer.
3279 * infrun.c: Include completer.h.
3280 (handle_completer): Define.
3281 (_initialize_infrun): Declare a new local variable c. Store the
3282 result of add_com("handle") to it. Assign the command
3283 completer for "handle" to handle_completer.
3284
5b9afe8a
YQ
32852012-08-09 Yao Qi <[email protected]>
3286
3287 * cli/cli-decode.c (set_cmd_prefix): New.
3288 (lookup_cmd_for_prefixlist): New.
3289 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3290 of each cmd_list_element in *prefixlist.
3291 (add_setshow_cmd_full): set_cmd_prefix.
3292 (add_alias_cmd): Likewise.
3293 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3294 Declare 'auto_boolean_enums'.
3295 * cli/cli-setshow.c: Include "observer.h".
3296 (notify_command_param_changed_p): New.
3297 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3298 Remove 'static'.
3299 (do_setshow_command): Split it to ...
3300 (do_set_command, do_show_command): ... them. New.
3301 (do_set_command): Call observer_notify_command_param_changed if
3302 notify_command_param_changed_p returns true.
3303 (cmd_show_list): Caller update.
3304 * auto-load.c (set_auto_load_cmd): Likewise.
3305 * remote.c (show_remote_cmd): Likewise.
3306 * cli/cli-setshow.h: Update declarations.
3307 * top.c (execute_command): Call do_set_command and do_show_command.
3308
3309 * NEWS: Mention new MI notification.
3310 * mi/mi-interp.c: Declare mi_command_param_changed.
3311 (mi_interpreter_init): Attach mi_command_param_changed to
3312 observer command_param_changed.
3313 (mi_command_param_changed): New.
3314 Remove mi_suppress_breakpoint_notifications.
3315 Define global variable mi_suppress_notification.
3316 (mi_breakpoint_created): Update.
3317 (mi_breakpoint_deleted): Likewise.
3318 (mi_breakpoint_modified): Likewise.
3319 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3320 'gdb-set' and set mi_suppress_notification.
3321 * mi/mi-main.h: (mi_suppress_notification): New struct.
3322
1969df89
JK
33232012-08-09 Andreas Tobler <[email protected]>
3324 Jan Kratochvil <[email protected]>
3325
3326 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3327
8bfd80db
YQ
33282012-08-09 Yao Qi <[email protected]>
3329
3330 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3331 (skiplist): Move it to skip.c.
3332 (init_cmd_lists): Remove code setting enablebreaklist and
3333 skiplist to NULL.
3334 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3335 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3336 skiplist.
3337 * gdbcmd.h: Likewise.
3338 * skip.c (_initialize_step_skip): Move 'skiplist' from
3339 cli/cli-cmds.c.
3340
28578e6b
YQ
33412012-08-09 Yao Qi <[email protected]>
3342
3343 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3344 * gnu-nat.c, symfile.c: Likewise.
3345
260c0b2a
DE
33462012-08-08 Aaron Gamble <[email protected]>
3347
3348 * utils.c (prompt_for_continue_wait_time): New static global.
3349 (make_command_stats_cleanup): Initialize it.
3350 (report_command_stats): Subtract time waiting for user.
3351 (prompt_for_continue): Track time waiting for user.
3352 (defaulted_query): Track time waiting for user.
3353
4f485ebc
DE
33542012-08-08 Doug Evans <[email protected]>
3355
3356 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3357 UNOP_MEMVAL_TYPE.
3358 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3359 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3360 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3361 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3362 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3363 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3364 elt.
3365 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3366 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3367 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3368 (dump_prefix_expression): Handle OP_TYPE.
3369
2acf2b39
KS
33702012-08-08 Keith Seitz <[email protected]>
3371
3372 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3373 addr_start.
3374
e6712ff1
DE
33752012-08-08 Doug Evans <[email protected]>
3376
3377 * linux-thread-db.c: #include "gdb_vecs.h".
3378 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3379 updated.
3380 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3381 (thread_db_load_search): Use a vector to iterate over path elements.
3382 Handle text appearing after "$pdir".
3383
3384 * gdb_string.h: Moved to ...
3385 * common/gdb_string.h: ... here.
3386 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3387 gdb_string.h and gdb_assert.h.
3388
ab854e54
YQ
33892012-08-08 Yao Qi <[email protected]>
3390
3391 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3392 (tic6x_value_to_register): Likewise.
3393 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3394 and set_gdbarch_value_to_register.
3395
4f69f4c2
JK
33962012-08-07 Jan Kratochvil <[email protected]>
3397 Jean-Marc Saffroy <[email protected]>
3398
3399 PR 11804
3400 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3401 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3402 * gcore.c (gcore_create_callback): New function comment. Add modified
3403 parameter. Only write modified regions. Set SEC_READONLY exactly
3404 according to MODIFIED.
3405 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3406 the passed modified value to FUNC.
3407 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3408 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3409 first. New variables modified and has_anonymous. Parse the lines of
3410 smaps file. Add the passed MODIFIED value to FUNC.
3411 * procfs.c (find_memory_regions_callback): Add the passed modified
3412 value.
3413
78ac5f83
TT
34142012-08-06 Tom Tromey <[email protected]>
3415
3416 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3417 (dwarf2_frame_cache): Use it.
3418 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3419 cache initialization constraint.
3420
2c12abee
TT
34212012-08-06 Tom Tromey <[email protected]>
3422
3423 PR python/14386:
3424 * varobj.c (update_dynamic_varobj_children): Don't call
3425 PyIter_Check.
3426
4979d7f0
TT
34272012-08-06 Tom Tromey <[email protected]>
3428
3429 PR cli/14392:
3430 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3431
f3c8a52a
JK
34322012-08-06 Nathaniel Flath <[email protected]>
3433
3434 * NEWS: New entry for 'cd' default parameters.
3435 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3436
5a1cf4d6
TT
34372012-08-03 Tom Tromey <[email protected]>
3438
3439 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3440 return.
3441
7c3270ae
UW
34422012-08-02 Ulrich Weigand <[email protected]>
3443
3444 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3445 to attempting lseek/write.
3446 (inf_child_fileio_pread): Likewise for pread.
3447
ccce17b0
YQ
34482012-08-02 Yao Qi <[email protected]>
3449
3450 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3451 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3452 add_setshow_zinteger_cmd.
3453 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3454 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3455 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3456 instead of add_setshow_zinteger_cmd.
3457 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3458 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3459 instead of add_setshow_zinteger_cmd.
3460 * frame.c (frame_debug): Add 'unsigned'.
3461 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3462 add_setshow_zinteger_cmd.
3463 * frame.h: Update the declaration of 'frame_debug'.
3464 * gdbtypes.c (overload_debug): Add 'unsigned'.
3465 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3466 add_setshow_zinteger_cmd.
3467 * inferior.h: Update declaration of 'debug_infrun'.
3468 * infrun.c (debug_infrun): Add 'unsigned'.
3469 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3470 add_setshow_zinteger_cmd.
3471 * jit.c (jit_debug): Add 'unsigned'.
3472 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3473 add_setshow_zinteger_cmd.
3474 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3475 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3476 instead of add_setshow_zinteger_cmd.
3477 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3478 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3479 add_setshow_zinteger_cmd.
3480 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3481 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3482 instead of add_setshow_zinteger_cmd.
3483 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3484 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3485 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3486 intead of add_setshow_zinteger_cmd.
3487 * mips-tdep.c (mips_debug): Add 'unsigned'.
3488 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3489 instead of add_setshow_zinteger_cmd.
3490 * monitor.c (monitor_debug): Add 'unsigned'.
3491 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3492 add_setshow_zinteger_cmd.
3493 * observer.c (observer_debug): Add 'unsigned'.
3494 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3495 add_setshow_zinteger_cmd.
3496 * parse.c (expressiondebug): Add 'unsigned'.
3497 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3498 add_setshow_zinteger_cmd.
3499 * record.c (record_debug): Add 'unsigned'.
3500 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3501 add_setshow_zinteger_cmd.
3502 * record.h: Update the declaration of 'record_debug'.
3503 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3504 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3505 add_setshow_zinteger_cmd.
3506 * serial.c (global_serial_debug_p): Add 'unsigned'.
3507 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3508 add_setshow_zinteger_cmd.
3509 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3510 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3511 add_setshow_zinteger_cmd.
3512 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3513 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3514 add_setshow_zinteger_cmd.
3515 * target.c (targetdebug): Add 'unsigned'.
3516 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3517 add_setshow_zinteger_cmd.
3518 * valops.c (overload_debug): Add 'unsigned'.
3519 * varobj.c (varobjdebug): Add 'unsigned'.
3520 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3521 add_setshow_zinteger_cmd.
3522 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3523 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3524 instead of add_setshow_zinteger_cmd.
3525
3526 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3527 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3528 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3529 instead of add_setshow_zinteger_cmd.
3530 * gdbarch.c, gdbarch.h: Re-generated.
3531
95b07c96
YQ
35322012-08-02 Yao Qi <[email protected]>
3533
3534 * nto-tdep.c: Don't include cli/cli-decode.h and
3535 cli/cli-cmds.h.
3536 (_initialize_nto_tdep): Remove.
3537 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3538 Remove field.
3539 Remove macro nto_internal_debugging.
3540
57295b0b
RH
35412012-08-01 Richard Henderson <[email protected]>
3542
3543 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3544 (mep-*-*) [gdb_target_obs]: Likewise.
3545
f782ad9b
AS
35462012-07-31 Andreas Schwab <[email protected]>
3547
3548 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3549 linux_get_siginfo_type.
3550
a14dd77e
JK
35512012-07-31 Jan Kratochvil <[email protected]>
3552
3553 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3554 AT_ENTRY_POINT.
3555 (call_function_by_hand) <ON_STACK>: Call write_memory with
3556 gdbarch_breakpoint_from_pc, if possible.
3557 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3558 here.
3559
1467929f
YQ
35602012-07-31 Yao Qi <[email protected]>
3561
3562 * tracepoint.c: Add 'static' for some variables.
3563
70976b65
YQ
35642012-07-31 Yao Qi <[email protected]>
3565
3566 * go32-nat.c: Declare _initialize_go32_nat.
3567 * ser-go32.c: Declare _initialize_ser_dos.
3568 * top.c (do_chdir_cleanup): Add 'static'.
3569
eff9c3e6
KS
35702012-07-30 Keith Seitz <[email protected]>
3571
3572 * linespec.c (linespec_lex_number): A number followed
3573 by quotes is a valid number, too.
3574
728400d7
TT
35752012-07-30 Tom Tromey <[email protected]>
3576
3577 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3578
fcf303ab
UW
35792012-07-30 Ulrich Weigand <[email protected]>
3580
3581 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3582 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3583
4e969b4f
AB
35842012-07-30 Andrew Burgess <[email protected]>
3585
3586 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3587 invalid or reevaluated to prevent prevent references to possibly
3588 delete'd type objects being left in the varobj.
3589
c4bfde41
JK
35902012-07-27 Tom Tromey <[email protected]>
3591 Jan Kratochvil <[email protected]>
3592
3593 * copying.awk: Print buffer-read-only and vi ro markers.
3594 * copying.c: Rebuild.
3595 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3596 * gdbarch.c, gdbarch.h: Rebuild.
3597 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3598 buffer-read-only and vi ro markers.
3599 * features/arm-with-iwmmxt.c: Rebuild.
3600 * features/arm-with-m-fpa-layout.c: Rebuild.
3601 * features/arm-with-m-vfp-d16.c: Rebuild.
3602 * features/arm-with-m.c: Rebuild.
3603 * features/arm-with-neon.c: Rebuild.
3604 * features/arm-with-vfpv2.c: Rebuild.
3605 * features/arm-with-vfpv3.c: Rebuild.
3606 * features/i386/amd64-avx-linux.c: Rebuild.
3607 * features/i386/amd64-avx.c: Rebuild.
3608 * features/i386/amd64-linux.c: Rebuild.
3609 * features/i386/amd64.c: Rebuild.
3610 * features/i386/i386-avx-linux.c: Rebuild.
3611 * features/i386/i386-avx.c: Rebuild.
3612 * features/i386/i386-linux.c: Rebuild.
3613 * features/i386/i386-mmx-linux.c: Rebuild.
3614 * features/i386/i386-mmx.c: Rebuild.
3615 * features/i386/i386.c: Rebuild.
3616 * features/i386/x32-avx-linux.c: Rebuild.
3617 * features/i386/x32-avx.c: Rebuild.
3618 * features/i386/x32-linux.c: Rebuild.
3619 * features/i386/x32.c: Rebuild.
3620 * features/mips-dsp-linux.c: Rebuild.
3621 * features/mips-linux.c: Rebuild.
3622 * features/mips64-dsp-linux.c: Rebuild.
3623 * features/mips64-linux.c: Rebuild.
3624 * features/rs6000/powerpc-32.c: Rebuild.
3625 * features/rs6000/powerpc-32l.c: Rebuild.
3626 * features/rs6000/powerpc-403.c: Rebuild.
3627 * features/rs6000/powerpc-403gc.c: Rebuild.
3628 * features/rs6000/powerpc-405.c: Rebuild.
3629 * features/rs6000/powerpc-505.c: Rebuild.
3630 * features/rs6000/powerpc-601.c: Rebuild.
3631 * features/rs6000/powerpc-602.c: Rebuild.
3632 * features/rs6000/powerpc-603.c: Rebuild.
3633 * features/rs6000/powerpc-604.c: Rebuild.
3634 * features/rs6000/powerpc-64.c: Rebuild.
3635 * features/rs6000/powerpc-64l.c: Rebuild.
3636 * features/rs6000/powerpc-7400.c: Rebuild.
3637 * features/rs6000/powerpc-750.c: Rebuild.
3638 * features/rs6000/powerpc-860.c: Rebuild.
3639 * features/rs6000/powerpc-altivec32.c: Rebuild.
3640 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3641 * features/rs6000/powerpc-altivec64.c: Rebuild.
3642 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3643 * features/rs6000/powerpc-cell32l.c: Rebuild.
3644 * features/rs6000/powerpc-cell64l.c: Rebuild.
3645 * features/rs6000/powerpc-e500.c: Rebuild.
3646 * features/rs6000/powerpc-e500l.c: Rebuild.
3647 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3648 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3649 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3650 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3651 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3652 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3653 * features/rs6000/powerpc-vsx32.c: Rebuild.
3654 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3655 * features/rs6000/powerpc-vsx64.c: Rebuild.
3656 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3657 * features/rs6000/rs6000.c: Rebuild.
3658 * features/s390-linux32.c: Rebuild.
3659 * features/s390-linux32v1.c: Rebuild.
3660 * features/s390-linux32v2.c: Rebuild.
3661 * features/s390-linux64.c: Rebuild.
3662 * features/s390-linux64v1.c: Rebuild.
3663 * features/s390-linux64v2.c: Rebuild.
3664 * features/s390x-linux64.c: Rebuild.
3665 * features/s390x-linux64v1.c: Rebuild.
3666 * features/s390x-linux64v2.c: Rebuild.
3667 * features/tic6x-c62x-linux.c: Rebuild.
3668 * features/tic6x-c62x.c: Rebuild.
3669 * features/tic6x-c64x-linux.c: Rebuild.
3670 * features/tic6x-c64x.c: Rebuild.
3671 * features/tic6x-c64xp-linux.c: Rebuild.
3672 * features/tic6x-c64xp.c: Rebuild.
3673
826f0041
TT
36742012-07-27 Tom Tromey <[email protected]>
3675
3676 * c-exp.y (classify_name): Avoid assignment in condition.
3677
84552b16
PA
36782012-07-27 Roland Schwingel <[email protected]>
3679
3680 * amd64-windows-tdep.c: Include "frame.h".
3681 (amd64_windows_skip_trampoline_code): New function.
3682 (amd64_windows_init_abi): Add trampoline registration.
3683
a8a64aa8
YQ
36842012-07-27 Yao Qi <[email protected]>
3685
3686 * tracepoint.c (cur_traceframe_number): Remove.
3687 (set_tfile_traceframe): Remove.
3688 (tfile_trace_find, tfile_fetch_registers): Update callers.
3689 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3690 (tfile_open, tfile_trace_find): Likewise.
3691
d99067cb
YQ
36922012-07-27 Yao Qi <[email protected]>
3693
3694 * thread.c (switch_to_thread): Don't call registers_changed.
3695
f2e8016f
TT
36962012-07-26 Tom Tromey <[email protected]>
3697
f782ad9b
AS
3698 * Makefile.in (SFILES): Remove objc-exp.y.
3699 (YYFILES): Remove objc-exp.c.
3700 (YYOBJ): Remove objc-exp.o.
3701 (local-maintainer-clean): Don't mention objc-exp.c.
3702 * c-exp.y: Include objc-lang.h.
3703 (%union) <class>: New field.
3704 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3705 (exp): Clone subscript production for OBJC_LBRAC. Add various
3706 Objective C productions.
3707 (msglist, msgarglist, msgarg): New productions.
3708 (array_mod, func_mod, operator): Clone productions for
3709 OBJC_LBRAC.
3710 (parse_string_or_char): Handle '@' strings.
3711 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3712 (classify_name): Check la_name_of_this. Recognize ObjC class
3713 names.
3714 * objc-exp.y: Remove.
3715 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3716 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3717
f66713d2
JK
37182012-07-26 Markus Metzger <[email protected]>
3719
3720 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3721
7cfe01b4
JK
37222012-07-26 Jan Kratochvil <[email protected]>
3723
3724 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3725 and decrement.
3726
5ba19b4c
TT
37272012-07-26 Tom Tromey <[email protected]>
3728
3729 * copying.c: Rebuild.
3730 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3731 'no_class'.
3732
27618ce4
TT
37332012-07-26 Tom Tromey <[email protected]>
3734
3735 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3736 immediate_quit.
3737 (print_objfile_statistics): Likewise.
3738 (maintenance_print_symbols): Likewise.
3739 (maintenance_print_msymbols): Likewise.
3740 (maintenance_print_objfiles): Likewise.
3741 * psymtab.c (print_partial_symbols): Call QUIT.
3742 (maintenance_print_psymbols): Likewise. Don't modify
3743 immediate_quit.
3744 * copying.c (show_copying_command): Don't modify immediate_quit.
3745 (show_warranty_command): Likewise.
3746 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3747
dd3818c8
KS
37482012-07-26 Keith Seitz <[email protected]>
3749
3750 * linespec.c (linespec_lexer_lex_number): The input
3751 is also a valid number if the next character is a comma
3752 or colon.
3753
23a80689
JB
37542012-07-26 Joel Brobecker <[email protected]>
3755
3756 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3757 configure options.
3758
29f77997
TG
37592012-07-26 Tristan Gingold <[email protected]>
3760
3761 * machoread.c: Include gdb_bfd.h.
3762
a55c1f32
TG
37632012-07-26 Tristan Gingold <[email protected]>
3764
3765 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3766 offset.
3767
56eb65bd
SP
37682012-07-26 Siddhesh Poyarekar <[email protected]>
3769
3770 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3771 SIZE to size_t.
3772 (dwarf2_evaluate_loc_desc): Likewise.
3773 (dwarf2_loc_desc_needs_frame): Likewise.
3774 (locexpr_describe_location_1): Likewise.
3775 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3776 size_t.
3777 (struct dwarf2_loclist_baton): Likewise.
3778 * dwarf2read.c (struct dwarf_block): Likewise.
3779 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3780 (decode_locdesc): Expand SIZE and I to size_t.
3781
aec8845c
JK
37822012-07-25 Jan Kratochvil <[email protected]>
3783
3784 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3785
33d7655b
JB
37862012-07-25 Joel Brobecker <[email protected]>
3787
3788 * doublest.c (convert_doublest_to_floatformat): If the exponent
3789 is too small, treat the value as zero. If the exponent is too
3790 large, treat the value as infinity.
3791
a22d44ff
JB
37922012-07-25 Joel Brobecker <[email protected]>
3793
3794 * configure.ac: Add --enable-lmcheck configure option.
3795 * configure: Regenerate.
3796
d6b28940
TT
37972012-07-25 Tom Tromey <[email protected]>
3798
f782ad9b
AS
3799 * NEWS: Mention maint info bfds.
3800 * gdb_bfd.c (all_bfds): New global.
3801 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3802 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3803 New functions.
d6b28940 3804
6e73ba20
RC
38052012-07-25 Ralf Corsépius <[email protected]>
3806
3807 * configure.tgt: Add v850*-*-rtems*.
3808
d560eebd
TT
38092012-07-25 Tom Tromey <[email protected]>
3810
3811 * macrotab.c (macro_bcache_str): Remove cast.
3812
d7cbec71
HZ
38132012-07-25 Hui Zhu <[email protected]>
3814
3815 * linespec.c (linespec_lexer_lex_number): Update comments,
3816 change the return and add check to make sure the input is
3817 the decimal numbers.
3818 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3819 false, call linespec_lexer_lex_string.
3820
882f447f
TT
38212012-07-24 Tom Tromey <[email protected]>
3822
3823 * symfile.c (symbol_file_add): Don't open BFD twice.
3824
53ab4066 38252012-07-24 Marc Khouzam <[email protected]>
e12c7713
MK
3826
3827 * breakpoint.c (create_breakpoint): Store condition for pending
3828 breakpoints.
3829
108fb0f7
AS
38302012-07-24 Andreas Schwab <[email protected]>
3831
3832 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3833 (m68k_return_value): Handle complex types like structures.
3834 (m68k_svr4_return_value): Likewise.
3835
1634dcbe
JK
38362012-07-24 Marcus Shawcroft <[email protected]>
3837
3838 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3839 parameters to bfd_get_section_name.
3840
e2d12c21
YQ
38412012-07-24 Yao Qi <[email protected]>
3842
3843 * cli/cli-setshow.c: Handle case 'var_uinteger'
3844 and 'var_zuninteger' together. Handle case 'var_integer' and
3845 'var_zinteger' together.
3846
64b92e45
KS
38472012-07-23 Keith Seitz <[email protected]>
3848
3849 * linespec.c (convert_linespec_to_sal): Don't add
3850 any symbols to the result vector if symbol_to_sal
3851 returns zero.
3852
0f5f4ffe
KS
38532012-07-23 Keith Seitz <[email protected]>
3854
3855 * linespec.c (decode_objc): Record the function name
3856 in the linespec.
3857
da1cc82f
TT
38582012-07-23 Tom Tromey <[email protected]>
3859
3860 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3861 counting.
3862 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3863 (map_vmap): Acquire a reference to the BFD.
3864
6c18f3e0
SP
38652012-07-23 Siddhesh Poyarekar <[email protected]>
3866
3867 * p-valprint.c (pascal_object_print_value): Replace potentially
3868 unsafe alloca with xmalloc/xfree.
3869 * valops.c (search_struct_method): Likewise.
3870
695c3173
TT
38712012-07-23 Tom Tromey <[email protected]>
3872
3873 * solib-svr4.c (enable_break): Update.
3874 * bfd-target.h (target_bfd_reopen): Update documentation.
3875
08d2cd74
TT
38762012-07-23 Tom Tromey <[email protected]>
3877
3878 * symfile.c (separate_debug_file_exists): Update.
3879 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3880 (reread_symbols): Update.
3881 * elfread.c (build_id_verify): Update.
3882 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3883 bfd_open_maybe_remote.
3884
596f7d67
TT
38852012-07-23 Tom Tromey <[email protected]>
3886
3887 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3888
8ac244b4
TT
38892012-07-23 Tom Tromey <[email protected]>
3890
3891 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3892 and 'abfd'.
3893 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3894 and 'abfd'.
3895 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3896 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3897 'abfd'.
3898 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3899 * objfiles.c (allocate_objfile): Acquire a new reference.
3900 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3901 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3902 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3903 a cleanup for 'nbfd'.
3904 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3905 for 'nbfd'.
3906 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3907 make a cleanup for 'abfd'.
3908 (symbol_file_add): Make a BFD cleanup.
3909
64c31149
TT
39102012-07-23 Tom Tromey <[email protected]>
3911
3912 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3913 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3914 * corelow.c (core_open): Use gdb_bfd_fopen.
3915 * dsrec.c (load_srec): Use gdb_bfd_openr.
3916 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3917 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3918 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3919 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3920 (gdb_bfd_fdopenr): New functions.
3921 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3922 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3923 (gdb_bfd_fdopenr): Declare.
3924 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3925 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3926 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3927 gdb_bfd_openr_next_archived_file.
3928 (macho_check_dsym): Use gdb_bfd_openr.
3929 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3930 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3931 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3932 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3933 gdb_bfd_openr.
3934 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3935 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3936 gdb_bfd_openr_next_archived_file.
3937 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3938 Use gdb_bfd_openr.
3939 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3940 gdb_bfd_openr.
3941 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3942 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3943 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3944 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3945 (symfile_bfd_open): Use gdb_bfd_fopen.
3946 (generic_load): Use gdb_bfd_openr.
3947 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3948
520b0001
TT
39492012-07-23 Tom Tromey <[email protected]>
3950
3951 * bfd-target.c (target_bfd_reopen): Update.
3952 * cli/cli-dump.c (bfd_openr_with_cleanup)
3953 (bfd_openw_with_cleanup): Update.
3954 * corelow.c (core_open): Update.
3955 * dsrec.c (load_srec): Update.
3956 * exec.c (exec_file_attach): Update.
3957 * gcore.c (create_gcore_bfd): Update.
3958 * gdb_bfd.c (gdb_bfd_ref): Return void.
3959 (gdb_bfd_open): Update.
3960 * gdb_bfd.h (gdb_bfd_ref): Return void.
3961 Update comments.
3962 * jit.c (jit_bfd_try_read_symtab): Update.
3963 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3964 * machoread.c (macho_symfile_read_all_oso): Update.
3965 (macho_check_dsym): Update.
3966 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3967 * remote-m32r-sdi.c (m32r_load): Update.
3968 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3969 * rs6000-nat.c (add_vmap): Update.
3970 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3971 Update.
3972 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3973 * solib-spu.c (spu_bfd_open): Update.
3974 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3975 * spu-linux-nat.c (spu_bfd_open): Update.
3976 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3977 (generic_load): Update.
3978 * windows-nat.c (windows_make_so): Update.
3979
2322ff16
SP
39802012-07-22 Siddhesh Poyarekar <[email protected]>
3981
3982 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3983
3def0b36
PA
39842012-07-20 Jeff Kenton <[email protected]>
3985
3986 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3987 SIGTRAMP_FRAME unwinding.
3988
e615022a
DE
39892012-07-20 Doug Evans <[email protected]>
3990
3991 * NEWS: Document new options "set/show use-deprecated-index-sections",
3992 and delete reference to --use-deprecated-index-sections.
3993 * symfile.h (use_deprecated_index_sections): Delete.
3994 * dwarf2read.c (use_deprecated_index_sections): Make static.
3995 (read_index_from_section): Update wording of how to load
3996 deprecated index sections.
3997 (_initialize_dwarf2_read): New options
3998 "set/show use-deprecated-index-sections".
3999 * main.c (captured_main): Delete --use-deprecated-index-sections.
4000
64776a0b
PA
40012012-07-20 Pedro Alves <[email protected]>
4002
4003 PR threads/11692
4004 PR gdb/12203
4005
4006 * infrun.c (handle_inferior_event) <new thread>: Don't special
4007 case minus_one_ptid.
4008 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4009 * linux-thread-db.c (thread_get_info_callback): Don't return early
4010 if the thread is zombie.
4011 (thread_from_lwp): Change return type to void. Rewrite stale
4012 comment.
4013 (attach_thread): Don't return early if the thread is zombie,
4014 instead set its "dying" flag.
4015 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4016 (find_new_threads_callback): Don't return early if the thread is
4017 zombie.
4018
09826ec5
PA
40192012-07-20 Pedro Alves <[email protected]>
4020
4021 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4022 * target.c (target_wait): Likewise.
4023 (str_comma_list_concat_elem, do_option, target_options_to_string):
4024 New functions.
4025 * target.h (target_options_to_string): Declare.
4026
f7a35f02
TT
40272012-07-20 Jan Kratochvil <[email protected]>
4028 Tom Tromey <[email protected]>
4029
4030 * dwarf2read.c (dwarf_decode_macros)
4031 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4032 DW_MACRO_GNU_transparent_include_alt>: New cases.
4033 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4034 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4035
b81e1ee0
TT
40362012-07-20 Tom Tromey <[email protected]>
4037
4038 * dwarf2read.c (try_open_dwo_file): Don't call
4039 gdb_bfd_stash_filename.
4040
99c1624c
PA
40412012-07-20 Pedro Alves <[email protected]>
4042
4043 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4044 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4045 (i386_process_record): Tweak description comments.
4046
4ffa4fc7
PA
40472012-07-20 Pedro Alves <[email protected]>
4048
4049 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4050 (i386_process_record): Use record_read_memory.
4051 * record.c (record_read_memory): New function.
4052 (record_arch_list_add_mem, record_exec_insn): Use
4053 record_read_memory.
4054 * record.h (record_read_memory): Declare.
4055
c24343e2
YQ
40562012-07-20 Yao Qi <[email protected]>
4057
4058 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4059 NULL for xfree.
4060
90f47860
PA
40612012-07-19 Pedro Alves <[email protected]>
4062
4063 * record.c (record_resume): Ask the target beneath to report all
4064 signals.
4065
01093045
DE
40662012-07-19 Doug Evans <[email protected]>
4067
4068 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4069 there's no section at address zero.
4070 (dwarf2_record_block_ranges): Ditto.
4071
a7c3d162
YQ
40722012-07-19 Yao Qi <[email protected]>
4073
4074 * command.h, remote.c: Fix a typo in comment.
4075
608b4967
TT
40762012-07-19 Tom Tromey <[email protected]>
4077
4078 PR exp/13206:
4079 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4080 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4081 OP_DECLTYPE>: New cases.
4082 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4083 (type_exp): Add new productions.
4084 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4085 and decltype.
4086 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4087 New case.
4088 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4089 OP_DECLTYPE>: New case.
4090 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4091 New case.
4092 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4093 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4094
274b54d7
TT
40952012-07-19 Tom Tromey <[email protected]>
4096
4097 * c-exp.y (enum token_flags): New.
4098 (struct token) <cxx_only>: Remove.
4099 <flags>: New field.
4100 (tokentab3, tokentab2, ident_tokens): Update.
4101 (lex_one_token): Update. Handle FLAG_SHADOW.
4102
9eaf6705
TT
41032012-07-19 Tom Tromey <[email protected]>
4104
4105 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4106 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4107 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4108 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4109 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4110 type_exp production where appropriate.
4111 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4112 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4113 <UNOP_MEMVAL_TYPE>: New case.
4114 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4115 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4116 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4117 <UNOP_MEMVAL_TYPE>: New case.
4118 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4119 UNOP_REINTERPRET_CAST>: Update.
4120 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4121 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4122 UNOP_REINTERPRET_CAST>: Update.
4123 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4124 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4125 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4126 constants.
4127
6ace3df1
YQ
41282012-07-19 Yao Qi <[email protected]>
4129 Jan Kratochvil <[email protected]>
4130
4131 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4132 and case 'var_optional_filename' together.
4133 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4134 instead of add_setshow_optional_filename_cmd for setshow command
4135 'args'. Set completer for 'set args'.
4136
48faced0
DE
41372012-07-18 Doug Evans <[email protected]>
4138
4139 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4140 * common/gdb_vecs.c: New file, contents from utils.c.
4141 * common/host-defs.h: New file, contents from defs.h.
4142 * utils.h: New file, contents from defs.h.
4143 * defs.h: Move all declarations of objects defined in utils.c
4144 to utils.h (except QUIT() and related).
4145 #include "utils.h", "host-defs.h".
4146 * probe.h (probe_p): Move here from gdb_vecs.h.
4147 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4148 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4149 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4150 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4151 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4152 (COMMON_OBS): Add gdb_vecs.o.
4153 (gdb_vecs.o): New rule.
4154
66f1999b
KS
41552012-07-18 Keith Seitz <[email protected]>
4156
4157 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4158 parameter. If non-zero, use SYMNAME as the canonical name
4159 for the SaL.
4160 Update all callers.
4161 (convert_linespec_to_sals): Use add_sal_to_sals for
4162 expressions, too.
4163 (decode_line_full): No need to "fill in missing canonical names"
4164 anymore. Simply make cleanups for the allocated names.
4165
5d94e27b
KS
41662012-07-18 Keith Seitz <[email protected]>
4167
4168 * linespec.c (struct linespec): Constify expression,
4169 source_filename, function_name, and label_name.
4170 (symbol_not_found_error): Make all parameters const.
4171 (linespec_parser_delete): No need to check for NULL
4172 when using xfree. Cast const char * to char * for xfree.
4173
af4908ba
KS
41742012-07-18 Keith Seitz <[email protected]>
4175
4176 * breakpoint.c (invalid_thread_id_error): New function.
4177 (find_condition_and_thread): Use invalid_thread_id_error.
4178 (watch_command_1): Likewise.
4179
853254db
TT
41802012-07-18 Tom Tromey <[email protected]>
4181
4182 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4183 * contrib/cc-with-tweaks.sh: New file.
4184
2ec9a5e0
TT
41852012-07-18 Tom Tromey <[email protected]>
4186
4187 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4188 (locate_dwz_sections): Recognize .gdb_index.
4189 (create_cus_from_index_list): New function.
4190 (create_cus_from_index): Use it. Handle .dwz data.
4191 (read_index_from_section): New function, extracted from
4192 dwarf2_read_index.
4193 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4194 if needed.
4195
36586728
TT
41962012-07-18 Tom Tromey <[email protected]>
4197
4198 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4199 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4200 <is_dwz>: New field.
4201 (struct dwz_file): New.
4202 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4203 (locate_dwz_sections, dwarf2_get_dwz_file)
4204 (get_abbrev_section_for_cu): New functions.
4205 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4206 (read_and_check_type_unit_head): Add abbrev_section argument.
4207 (create_debug_types_hash_table): Update.
4208 (init_cutu_and_read_dies): Use proper abbrev section.
4209 (init_cutu_and_read_dies_no_follow): Likewise.
4210 (set_partial_user): Do nothing if PST==NULL.
4211 (read_comp_units_from_section): New function.
4212 (create_all_comp_units): Use it.
4213 (scan_partial_symbols, partial_die_parent_scope): Update.
4214 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4215 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4216 (find_partial_die): Add offset_in_dwz argument. Update.
4217 (guess_partial_die_structure_name, fixup_partial_die): Update.
4218 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4219 DW_FORM_GNU_strp_alt.
4220 (read_indirect_string_from_dwz): New function.
4221 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4222 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4223 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4224 (follow_die_offset): Add offset_in_dwz argument.
4225 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4226 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4227 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4228 Handle new macro forms.
4229 (dwarf_decode_macros): Update.
4230 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4231 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4232 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4233 (create_debug_types_hash_table): Use correct abbrev section.
4234 (get_debug_line_section): New function.
4235 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4236 (process_full_comp_unit): Pass 'required' argument to
4237 end_symtab_get_static_block.
4238 * buildsym.h (end_symtab_get_static_block): Update.
4239 * buildsym.c (end_symtab_get_static_block): Add 'required'
4240 argument.
4241 (end_symtab, end_expandable_symtab): Update.
4242
4bf44c1c
TT
42432012-07-18 Tom Tromey <[email protected]>
4244
4245 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4246 (pagesize): Remove.
4247 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4248 (zlib_decompress_section): Remove.
4249 (dwarf2_read_section): Use gdb_bfd_map_section.
4250 (munmap_section_buffer): Remove.
4251 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4252 munmap_section_buffer.
4253 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4254 (struct gdb_bfd_section_data): New.
4255 (free_one_bfd_section): New function.
4256 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4257 (get_section_descriptor, zlib_decompress_section)
4258 (gdb_bfd_map_section): New functions.
4259 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4260
bb397797
TT
42612012-07-18 Tom Tromey <[email protected]>
4262
4263 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4264
6ec53d05
TT
42652012-07-18 Tom Tromey <[email protected]>
4266
4267 * gdb_bfd.c (struct gdb_bfd_data): New.
4268 (gdb_bfd_cache): New global.
4269 (struct gdb_bfd_cache_search): New.
4270 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4271 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4272 * gdb_bfd.h (gdb_bfd_open): Declare.
4273
f9a062ff
TT
42742012-07-18 Tom Tromey <[email protected]>
4275
4276 * utils.c (make_cleanup_bfd_unref): Rename from
4277 make_cleanup_bfd_close.
4278 * defs.h (make_cleanup_bfd_unref): Rename from
4279 make_cleanup_bfd_close.
4280 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4281 (bfd_openw_with_cleanup): Update.
4282 * corelow.c (core_open): Update.
4283 * dsrec.c (load_srec): Update.
4284 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4285 * remote-m32r-sdi.c (m32r_load): Update.
4286 * remote-mips.c (mips_load_srec): Update.
4287 (pmon_load_fast): Update.
4288 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4289 Update.
4290 (darwin_bfd_open): Update.
4291 * solib.c (solib_bfd_fopen): Update.
4292 * symfile-mem.c (symbol_file_add_from_memory): Update.
4293 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4294 (symfile_bfd_open): Update.
4295 (generic_load): Update.
4296
d6ad71ba
TT
42972012-07-18 Tom Tromey <[email protected]>
4298
4299 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4300 (pmon_load_fast): Likewise.
4301 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4302 (m32r_upload_command): Likewise.
4303 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4304 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4305 Use make_cleanup_bfd_close.
4306
a4453b7e
TT
43072012-07-18 Tom Tromey <[email protected]>
4308
4309 * symfile.c (symfile_bfd_open): Don't copy name. Call
4310 gdb_bfd_stash_filename.
4311 (load_command): Open the new BFD before freeing the old.
4312 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4313 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4314 Call gdb_bfd_stash_filename.
4315 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4316 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4317 gdb_bfd_stash_filename.
4318 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4319 Free found_pathname.
4320 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4321 gdb_bfd_stash_filename.
4322 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4323 * machoread.c (macho_add_oso_symfile): Call
4324 gdb_bfd_stash_filename.
4325 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4326 gdb_bfd_stash_filename.
4327 (macho_check_dsym): Don't copy filename. Call
4328 gdb_bfd_stash_filename.
4329 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4330 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4331 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4332 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4333 * exec.c (exec_close): Don't free the BFD's filename.
4334 (exec_file_attach): Don't copy the filename. Call
4335 gdb_bfd_stash_filename.
4336 * corelow.c (core_close): Don't free the BFD's filename.
4337 (core_open): Call gdb_bfd_stash_filename.
4338 * corefile.c (reopen_exec_file): Remove #if 0 code.
4339 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4340 pathname.
4341 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4342
cbb099e8
TT
43432012-07-18 Tom Tromey <[email protected]>
4344
4345 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4346 gdb_bfd_unref.
4347 (free_dwo_file): Use gdb_bfd_unref.
4348 * cli/cli-dump.c: Include gdb_bfd.h.
4349 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4350 (bfd_openr_with_cleanup): Likewise.
4351 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4352 gdb_bfd_unref.
4353 * utils.c: Include gdb_bfd.h.
4354 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4355 * symfile.c: Include gdb_bfd.h.
4356 (separate_debug_file_exists): Use gdb_bfd_unref.
4357 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4358 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4359 (generic_load): Use gdb_bfd_ref.
4360 (reread_symbols): Use gdb_bfd_unref.
4361 * symfile-mem.c: Include gdb_bfd.h.
4362 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4363 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4364 * solib.c: Include gdb_bfd.h.
4365 (solib_bfd_fopen): Use gdb_bfd_ref.
4366 (solib_bfd_open): Use gdb_bfd_unref.
4367 (free_so_symbols): Use gdb_bfd_unref.
4368 (reload_shared_libraries_1): Use gdb_bfd_unref.
4369 * solib-spu.c: Include gdb_bfd.h.
4370 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4371 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4372 gdb_bfd_unref.
4373 * solib-frv.c: Include gdb_bfd.h.
4374 (enable_break2): Use gdb_bfd_unref.
4375 * solib-dsbt.c: Include gdb_bfd.h.
4376 (enable_break2): Use gdb_bfd_unref.
4377 * solib-darwin.c: Include gdb_bfd.h.
4378 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4379 gdb_bfd_unref.
4380 (darwin_bfd_open): Use gdb_bfd_unref.
4381 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4382 * remote-mips.c: Include gdb_bfd.h.
4383 (mips_load_srec): Use gdb_bfd_ref.
4384 (pmon_load_fast): Use gdb_bfd_ref.
4385 * remote-m32r-sdi.c: Include gdb_bfd.h.
4386 (m32r_load): Use gdb_bfd_ref.
4387 * record.c: Include gdb_bfd.h.
4388 (record_save_cleanups): Use gdb_bfd_unref.
4389 (cmd_record_save): Use gdb_bfd_unref.
4390 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4391 gdb_bfd_unref.
4392 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4393 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4394 * objfiles.c: Include gdb_bfd.h.
4395 (free_objfile): Use gdb_bfd_unref.
4396 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4397 gdb_bfd.c.
4398 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4399 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4400 (macho_check_dsym): Likewise.
4401 * m32r-rom.c: Include gdb_bfd.h.
4402 (m32r_load): Use gdb_bfd_ref.
4403 (m32r_upload_command): Use gdb_bfd_ref.
4404 * jit.c: Include gdb_bfd.h.
4405 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4406 * gdb_bfd.h: New file.
4407 * gdb_bfd.c: New file.
4408 * gcore.c: Include gdb_bfd.h.
4409 (create_gcore_bfd): Use gdb_bfd_ref.
4410 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4411 (gcore_command): Use gdb_bfd_unref.
4412 * exec.c: Include gdb_bfd.h.
4413 (exec_close): Use gdb_bfd_unref.
4414 (exec_close_1): Use gdb_bfd_unref.
4415 (exec_file_attach): Use gdb_bfd_ref.
4416 * elfread.c: Include gdb_bfd.h.
4417 (build_id_verify): Use gdb_bfd_unref.
4418 * dsrec.c: Include gdb_bfd.h.
4419 (load_srec): Use gdb_bfd_ref.
4420 * corelow.c: Include gdb_bfd.h.
4421 (core_close): Use gdb_bfd_unref.
4422 (core_open): Use gdb_bfd_ref.
4423 * bfd-target.c: Include gdb_bfd.h.
4424 (target_bfd_xclose): Use gdb_bfd_unref.
4425 (target_bfd_reopen): Use gdb_bfd_ref.
4426 * Makefile.in (SFILES): Add gdb_bfd.c.
4427 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4428 (COMMON_OBS): Add gdb_bfd.o.
4429
ed1d1739
KS
44302012-07-18 Keith Seitz <[email protected]>
4431
4432 * breakpoint.c (find_condition_and_thread): Initialize
4433 TASK and REST.
4434 (create_breakpiont): find_condition_and_thread will now
4435 initialize COND_STRING, THREAD, and REST (and TASK).
4436 (addr_string_to_sals): Likewise.
4437
eab402df
PA
44382012-07-18 Pedro Alves <[email protected]>
4439
4440 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4441 Pull the single step breakpoints out of the target.
4442
2b963b68
SDJ
44432012-07-18 Sergio Durigan Junior <[email protected]>
4444
4445 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4446 * stap-probe.c (compile_probe_arg): Likewise.
4447
6bac7473
SDJ
44482012-07-18 Sergio Durigan Junior <[email protected]>
4449
4450 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4451 (elf_compile_to_ax): Likewise.
4452 * infrun.c (insert_exception_resume_from_probe): Likewise.
4453 (check_exception_resume): Remove `objfile' variable.
4454 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4455 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4456 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4457 (compare_entries): Rename to...
4458 (compare_probes): ...this. Adjust function to work with
4459 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4460 respectively.
4461 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4462 `VEC (probe_p) *'.
4463 (print_ui_out_info): Adjust argument to be `struct probe *'.
4464 (info_probes_for_ops): Adjust internal computations to use
4465 `VEC (probe_p) *'.
4466 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4467 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4468 gen_info_probes_table_values>: Remove `objfile' argument.
4469 (struct probe) <objfile>: New field.
4470 (find_probe_by_pc): Remove `objfile' argument.
4471 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4472 (stap_get_probe_argument_count): Likewise.
4473 (stap_get_arg): Likewise.
4474 (stap_evaluate_probe_argument): Likewise.
4475 (stap_compile_to_ax): Likewise.
4476 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4477 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4478 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4479 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4480 sym_compile_to_ax>: Likewise.
4481
3347eb1a 44822012-07-18 Terry Guo <[email protected]>
4483
4484 PR 14329
4485 * defs.h (GDB_MI_MSG_WIDTH): New.
4486 * ser_base (ser_base_read_error_fd): New function.
4487 (do_ser_base_readchar): Poll error file descriptor as well as
4488 standard output.
f782ad9b 4489 (generic_readchar): Refactor error handling.
3347eb1a 4490
80c8d323
JB
44912012-07-18 Joel Brobecker <[email protected]>
4492
4493 * NEWS: Create a new section for the next release branch.
4494 Rename the section of the current branch, now that it has
4495 been cut.
4496
b45a0664 44972012-07-18 Joel Brobecker <[email protected]>
4498
4499 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4500 * version.in: Bump version to 7.5.50.20120718-cvs.
4501
09cf2b22
KS
45022012-07-17 Keith Seitz <[email protected]>
4503
4504 * linespec.c (linespec_parse_line_offset): Make parameter
4505 const.
4506
8f043999
JK
45072012-07-16 Jan Kratochvil <[email protected]>
4508
4509 PR 11914
4510 * f-valprint.c (info_common_command): New variable frame_id.
4511 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4512 * printcmd.c (print_variable_and_value): Extend function comment.
4513 Add comment for invalidated FRAME.
4514 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4515 FI form FRAME_ID after each print_frame_local_vars.
4516 (struct print_variable_and_value_data): Change frame to frame_id.
4517 (do_print_variable_and_value): New variable frame, initialize it from
4518 p->frame_id. Add comment for invalidated FRAME.
4519 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4520 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4521 for invalidated FRAME.
4522
ae5e0686
MK
45232012-07-16 Marc Khouzam <[email protected]>
4524 Pedro Alves <[email protected]>
4525
4526 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4527 loop.
4528
5049c5be
TT
45292012-07-16 Tom Tromey <[email protected]>
4530
4531 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4532
2908cac6
DE
45332012-07-15 Doug Evans <[email protected]>
4534
094b34ac
DE
4535 * dwarf2read.c (stmt_list_hash): New struct.
4536 (type_unit_group): Embed "per_cu" member, remove pointer.
4537 New union member "t", move member "tus" into it, all uses updated.
4538 New member "hash", replaces member "line_offset, all uses updated.
4539 (quick_file_names): Replace member "offset" with "hash", all uses
4540 updated.
4541 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4542 (hash_file_name_entry, eq_file_name_entry): Call them.
4543 (hash_type_unit_group, eq_type_unit_group): Ditto.
4544 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4545 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4546 (dw2_get_file_names): Update.
4547 (create_type_unit_group): Replace "per_cu" arg with "cu".
4548 All callers updated. Fix "quick" (.gdb_index) handling.
4549 (get_type_unit_group): Replace "per_cu" arg with "cu".
4550 All callers updated.
4551 (build_type_unit_groups): Don't reset tu_stats.
4552
2908cac6
DE
4553 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4554 "tab_cur_size". Change member "tab" to be a htab_t.
4555 (create_filename_seen_cache): Update.
4556 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4557 (filename_seen): Update.
4558
a2b6eff5
DE
45592012-07-13 Doug Evans <[email protected]>
4560
4561 * symtab.c (filename_seen): Update comment.
4562
4359dff1
JK
45632012-07-13 Jan Kratochvil <[email protected]>
4564 Doug Evans <[email protected]>
4565
4566 * buildsym.c (end_symtab_1): Split it to ...
4567 (end_symtab_get_static_block): ... this ...
4568 (end_symtab_from_static_block): ... and this function.
4569 (end_symtab, end_expandable_symtab): Call them.
4570 * buildsym.h (end_symtab_get_static_block)
4571 (end_symtab_from_static_block): New declarations.
4572 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4573 Set its valid CU ranges.
4574
a24f71ab
JK
45752012-07-13 Jan Kratochvil <[email protected]>
4576
4577 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4578 DW_OP_GNU_parameter_ref.
4579
d76b7dbc
JK
45802012-07-13 Jan Kratochvil <[email protected]>
4581
4582 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4583 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4584
9fdc877b
DE
45852012-07-13 Doug Evans <[email protected]>
4586
4587 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4588 (filename_seen_cache): New struct.
4589 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4590 (create_filename_seen_cache): New function.
4591 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4592 (filename_seen): Delete arg "first". New arg "cache". All callers
4593 updated.
4594 (output_source_filename_data): New struct.
4595 (output_source_filename): Delete arg "first". New arg "data".
4596 All callers updated.
4597 (sources_info): Delete local "first". New locals "data", "cleanups".
4598 Rewrite to use filename_seen_cache.
4599 (add_partial_filename_data): Delete member "first". New member
4600 "filename_seen_cache". All uses updated.
4601 (make_source_files_completion_list): Rewrite to use
4602 filename_seen_cache.
4603
f80c6f3f
DE
46042012-07-12 Doug Evans <[email protected]>
4605
4606 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4607
0bfa869d
DE
46082012-07-10 Doug Evans <[email protected]>
4609
f4dc4d17
DE
4610 PR gdb/13498
4611 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4612 all_type_unit_groups, type_unit_groups, tu_stats.
4613 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4614 All uses updated. Add type_unit_group to union "s".
4615 (type_unit_group): New struct.
4616 (IS_TYPE_UNIT_GROUP): New macro.
4617 (abbrev_table): Delete unused member "section".
4618 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4619 (dw2_get_cu): Assert not used with type_unit_group.
4620 (dw2_get_primary_cu): New function.
4621 (dw2_build_type_unit_groups_reader): New function.
4622 (dw2_build_type_unit_groups): New function.
4623 (dw2_get_file_names): Assert not called on type units.
4624 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4625 Redo loop to iterate over type unit groups instead of type units.
4626 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4627 (read_abbrev_offset): New function.
4628 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4629 updated.
4630 (create_partial_symtab): New function.
4631 (process_psymtab_comp_unit_reader): Assert not used with type units.
4632 Call create_partial_symtab.
4633 (process_psymtab_type_unit): Delete.
4634 (hash_type_unit_group, eq_type_unit_group): New functions.
4635 (allocate_type_unit_groups_table): New function.
4636 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4637 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4638 (create_type_unit_group, get_type_unit_group): New functions.
4639 (tu_abbrev_offset): New struct.
4640 (sort_tu_by_abbrev_offset): New function.
4641 (add_type_unit_group_to_table): New function.
4642 (build_type_unit_groups): New function.
4643 (build_type_psymtabs_reader): New function.
4644 (build_type_psymtab_dependencies): New function.
4645 (build_type_psymtabs): Rewrite.
4646 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4647 is seen in a type unit.
4648 (process_queue): Move symtab expansion debugging printfs here.
4649 Call process_full_type_unit for type units.
4650 (compute_symtab_includes): Assert not called for type units.
4651 (process_cu_includes): Don't call compute_symtab_includes for
4652 type units.
4653 (process_full_type_unit): New function.
4654 (process_imported_unit_die): Flag an error if called for type units.
4655 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4656 updated. Assert not called for type units.
4657 (read_file_scope): Call dwarf2_start_symtab.
4658 (setup_type_unit_groups): New function.
4659 (read_type_unit_scope): Rewrite.
4660 (abbrev_table_read_table): Initialize abbrev_table->offset.
4661 (abbrev_table_free_cleanup): New function.
4662 (dwarf2_start_symtab): New function.
4663 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4664 * buildsym.c (finish_block_internal): New arg "expandable".
4665 All callers updated.
4666 (start_symtab): Move most contents to ...
4667 (restart_symtab): ... here. New function.
4668 (reset_symtab_globals): New function.
4669 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4670 Call reset_symtab_globals.
4671 (end_symtab, end_expandable_symtab): New functions.
4672 (set_missing_symtab, augment_type_symtab): New functions.
4673 * buildsym.h (end_expandable_symtab): Declare.
4674 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4675 * psympriv.h (struct partial_symtab): New member "anonymous".
4676 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4677 anonymous psymtabs.
4678 (read_psymtabs_with_filename): Ditto.
4679 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4680 (expand_symtabs_matching_via_partial): Ditto.
4681 (dump_psymtab): Update.
0bfa869d
DE
4682 * dictionary.c (dict_add_pending): New function.
4683 * dictionary.h (dict_add_pending): Declare.
4684
45e58e77
DE
46852012-07-09 Doug Evans <[email protected]>
4686
b74db436
DE
4687 * buildsym.c (start_subfile): Remove unnecessary check for
4688 name == NULL.
4689
fd55216c
DE
4690 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4691
6721b2ec
DE
4692 * dwarf2read.c (load_full_type_unit): Simplify.
4693
b4dd5633
DE
4694 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4695 to struct signatured_type **. All uses updated.
4696
45e58e77
DE
4697 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4698 All callers updated.
4699
e314d629
TT
47002012-07-09 Tom Tromey <[email protected]>
4701
4702 * c-exp.y (check_parameter_typelist): New function.
4703 (parameter_typelist): Call it.
4704 * eval.c (make_params): Handle '(void)' case.
4705 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4706 '(void)' case.
4707
aa7c7447
JK
47082012-07-07 Jan Kratochvil <[email protected]>
4709
4710 * common/linux-ptrace.c: Include gdb_assert.h.
4711 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4712 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4713 stdint.h.
4714 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4715 functions.
4716 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4717 * linux-nat.c (linux_child_post_attach)
4718 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4719
889003ed
JK
47202012-07-07 Jan Kratochvil <[email protected]>
4721
4722 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4723 nptl <2.7 bug workaround for core files.
4724
da559b09
JK
47252012-07-06 Jan Kratochvil <[email protected]>
4726
4727 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4728 clearing.
4729 (save_siginfo): Remove.
4730 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4731 call.
4732 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4733 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4734 * linux-nat.h (struct lwp_info): Remove field siginfo.
4735
f865ee35
JK
47362012-07-06 Jan Kratochvil <[email protected]>
4737
4738 Code cleanup for the next patch.
4739 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4740 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4741 call for it.
4742 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4743 (ia64_linux_stopped_data_address):
4744 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4745 the return value.
4746 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4747 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4748 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4749 call for it.
4750
76b83c51
JK
47512012-07-06 Jan Kratochvil <[email protected]>
4752
4753 PR 14321
4754 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4755 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4756
a6fb9c08
TT
47572012-07-06 Tom Tromey <[email protected]>
4758
4759 * c-exp.y (DOTDOTDOT): New token.
4760 (func_mod, exp): Use parameter_typelist.
4761 (parameter_typelist): New production.
4762 (tokentab3): Add "..." token.
4763 * eval.c (make_params): Handle varargs.
4764 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4765 varargs.
4766
71918a86
TT
47672012-07-06 Tom Tromey <[email protected]>
4768
4769 PR exp/9608:
4770 * c-exp.y (%union) <tvec>: Change type.
4771 (func_mod): Now uses <tvec> type.
4772 (exp): Update for tvec change.
4773 (direct_abs_decl): Push the typelist.
4774 (func_mod): Return a typelist.
4775 (nonempty_typelist): Update for tvec change.
4776 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4777 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4778 * parse.c (pop_type_list): New function.
4779 (push_typelist): New function.
4780 (follow_types): Handle tp_function_with_arguments.
4781 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4782 (enum type_pieces) <tp_function_with_arguments>: New constant.
4783 (union type_stack_elt) <typelist_val>: New field.
4784 (push_typelist): Declare.
4785
fcde5961
TT
47862012-07-06 Tom Tromey <[email protected]>
4787
4788 * c-exp.y (%union) <type_stack>: New field.
4789 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4790 (ptr_operator_ts): New production.
4791 (ptype): Update.
4792 * parse.c (type_stack_reserve): New function.
4793 (check_type_stack_depth): Use it.
4794 (pop_type_stack, append_type_stack, push_type_stack)
4795 (get_type_stack, type_stack_cleanup): New functions.
4796 (follow_types): Handle tp_type_stack.
4797 (_initialize_parse): Simplify initialization.
4798 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4799 constant.
4800 (union type_stack_elt) <stack_val>: New field.
4801 (get_type_stack, append_type_stack, push_type_stack)
4802 (type_stack_cleanup): Declare.
4803
1a7d0ce4
TT
48042012-07-06 Tom Tromey <[email protected]>
4805
4806 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4807 Remove.
4808 (struct type_stack): New.
4809 * parse.c (type_stack, type_stack_size, type_stack_depth):
4810 Remove.
4811 (type_stack): New global.
4812 (parse_exp_in_context, check_type_stack_depth)
4813 (insert_into_type_stack, insert_type, push_type, push_type_int)
4814 (insert_type_address_space, pop_type, pop_type_int)
4815 (_initialize_parse): Update.
4816
16d01384
TT
48172012-07-06 Tom Tromey <[email protected]>
4818
4819 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4820 Remove %type.
4821
9bfc60bf
SP
48222012-07-06 Siddhesh Poyarekar <[email protected]>
4823
4824 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4825
d5161074
SP
48262012-07-06 Siddhesh Poyarekar <[email protected]>
4827 Jan Kratochvil <[email protected]>
4828
4829 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4830 alloca with xmalloc/xfree.
4831
a74bc576
SP
48322012-07-06 Siddhesh Poyarekar <[email protected]>
4833
4834 * MAINTAINERS (Write After Approval): Add myself to the list.
4835
667e0a4b
DE
48362012-07-05 Doug Evans <[email protected]>
4837
4838 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4839
34b536a8
HZ
48402012-07-05 Hui Zhu <[email protected]>
4841
4842 * ax-gdb.c (cli/cli-utils.h): New include.
4843 (linespec.h): Ditto.
4844 (agent_eval_command_one): New function.
4845 (agent_command_1): Ditto.
4846 (agent_command): Call function agent_command_1.
4847 (agent_eval_command): Ditto.
4848 (_initialize_ax_gdb): Change help for "maint agent"
4849 and "maint agent-eval".
4850
e6f0bce7
HZ
48512012-07-05 Hui Zhu <[email protected]>
4852
4853 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4854 * cli/cli-utils.c (check_for_argument): New function.
4855 * cli/cli-utils.h (check_for_argument): Ditto.
4856
1b3371b1
L
48572012-07-04 H.J. Lu <[email protected]>
4858
4859 * NEWS: Mention x32 ABI support.
4860
23e2d720
L
48612012-07-04 H.J. Lu <[email protected]>
4862
4863 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4864 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4865
4866 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4867 and pc_regnum_from_eax to -1. Update SP regnum from
4868 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4869 needed.
4870
4871 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4872 pc_regnum_from_eax.
4873
836bf454
JK
48742012-07-03 Jan Kratochvil <[email protected]>
4875
4876 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4877 * dwarf2expr.h: Include gdbtypes.h.
4878 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4879 these forward declarations.
4880 (cu_offset, sect_offset): Move these ...
4881 * gdbtypes.h: Remove include dwarf2expr.h.
4882 (cu_offset, sect_offset): ... here.
4883
1e55e04f
L
48842012-07-03 H.J. Lu <[email protected]>
4885
4886 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4887 (amd64_linux_sigtramp_code): This.
4888 (amd64_x32_linux_sigtramp_code): New.
4889 (LINUX_SIGTRAMP_LEN): Updated.
4890 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4891
7d0e21ad
JK
48922012-07-02 Jan Kratochvil <[email protected]>
4893
4894 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4895
8775fd2d
JK
48962012-07-02 Jan Kratochvil <[email protected]>
4897
4898 * config.in: Regenerate.
4899 * configure: Regenerate.
4900 * configure.ac: Remove check for gnu/libc-version.h.
4901 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4902 gnu/libc-version.h.
4903 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4904 variables libc_version, libc_major and libc_minor. Replace sscanf by
4905 inferior_has_bug. Extend the comment.
4906
fcb44371
JK
49072012-07-02 Jan Kratochvil <[email protected]>
4908
4909 * linux-thread-db.c (inferior_has_bug): New function.
4910 (thread_db_find_new_threads_silently): Return boolean as checked by
4911 inferior_has_bug, describe it in the comments.
4912 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4913 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4914 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4915 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4916 if UNTIL_NO_NEW,
4917
09406207
DE
49182012-07-02 Doug Evans <[email protected]>
4919
0907af0c
DE
4920 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4921 related to queue management.
4922
09406207
DE
4923 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4924 instead of "debug dwarf2-die" in debugging printfs.
4925 (create_debug_info_hash_table_reader): Ditto.
4926 (create_debug_info_hash_table): Ditto.
4927 (init_dwo_file): Ditto.
4928 (init_cutu_and_read_dies): Add debugging printf.
4929 (init_cutu_and_read_dies_no_follow): Ditto.
4930 (process_psymtab_comp_unit_reader): Ditto.
4931
d3ce09f5
SS
49322012-07-02 Stan Shebs <[email protected]>
4933
4934 Add target-side support for dynamic printf.
4935 * NEWS: Mention the additional style.
4936 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4937 (struct bp_location): New field cmd_bytecode.
4938 * breakpoint.c: Include format.h.
4939 (disconnected_dprintf): New global.
4940 (parse_cmd_to_aexpr): New function.
4941 (build_target_command_list): New function.
4942 (insert_bp_location): Call it.
4943 (remove_breakpoints_pid): Skip dprintf breakpoints.
4944 (print_one_breakpoint_location): Ditto.
4945 (dprintf_style_agent): New global.
4946 (dprintf_style_enums): Add dprintf_style_agent.
4947 (update_dprintf_command_list): Add agent case.
4948 (agent_printf_command): New function.
4949 (_initialize_breakpoint): Add new commands.
4950 * common/ax.def (printf): New bytecode.
4951 * ax.h (ax_string): Declare.
4952 * ax-gdb.h (gen_printf): Declare.
4953 * ax-gdb.c: Include cli-utils.h, format.h.
4954 (gen_printf): New function.
4955 (maint_agent_print_command): New function.
4956 (_initialize_ax_gdb): Add maint agent-printf command.
4957 * ax-general.c (ax_string): New function.
4958 (ax_print): Add printf disassembly.
4959 * Makefile.in (SFILES): Add format.c
4960 (COMMON_OBS): Add format.o.
4961 * common/format.h: New file.
4962 * common/format.c: New file.
4963 * printcmd.c: Include format.h.
4964 (ui_printf): Call parse_format_string.
4965 * remote.c (remote_state): New field breakpoint_commands.
4966 (PACKET_BreakpointCommands): New enum.
4967 (remote_breakpoint_commands_feature): New function.
4968 (remote_protocol_features): Add new BreakpointCommands entry.
4969 (remote_can_run_breakpoint_commands): New function.
4970 (remote_add_target_side_commands): New function.
4971 (remote_insert_breakpoint): Call it.
4972 (remote_insert_hw_breakpoint): Ditto.
4973 (_initialize_remote): Add new packet configuration for
4974 target-side breakpoint commands.
4975 * target.h (struct target_ops): New field
4976 to_can_run_breakpoint_commands.
4977 (target_can_run_breakpoint_commands): New macro.
4978 * target.c (update_current_target): Handle
4979 to_can_run_breakpoint_commands.
4980
2d7b58e8
JK
49812012-07-02 Jan Kratochvil <[email protected]>
4982
4983 Execute -ix and -iex only after system and user gdbinit files.
4984 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4985 processing down after gdbinit files.
4986
8690e634
JK
49872012-07-02 Jan Kratochvil <[email protected]>
4988
4989 Add fnmatch-gnu module.
4990 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4991 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4992 * gnulib/aclocal.m4: Regenerate.
4993 * gnulib/config.in: Regenerate.
4994 * gnulib/configure: Regenerate.
4995 * gnulib/import/dummy.c: Remove.
4996 * gnulib/import/Makefile.am: Regenerate.
4997 * gnulib/import/Makefile.in: Likewise.
4998 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4999 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5000 * gnulib/import/alloca.c: New file.
5001 * gnulib/import/alloca.in.h: Likewise.
5002 * gnulib/import/config.charset: Likewise.
5003 * gnulib/import/fnmatch.c: Likewise.
5004 * gnulib/import/fnmatch.in.h: Likewise.
5005 * gnulib/import/fnmatch_loop.c: Likewise.
5006 * gnulib/import/localcharset.c: Likewise.
5007 * gnulib/import/localcharset.h: Likewise.
5008 * gnulib/import/m4/alloca.m4: Likewise.
5009 * gnulib/import/m4/codeset.m4: Likewise.
5010 * gnulib/import/m4/configmake.m4: Likewise.
5011 * gnulib/import/m4/fcntl-o.m4: Likewise.
5012 * gnulib/import/m4/fnmatch.m4: Likewise.
5013 * gnulib/import/m4/glibc21.m4: Likewise.
5014 * gnulib/import/m4/localcharset.m4: Likewise.
5015 * gnulib/import/m4/locale-fr.m4: Likewise.
5016 * gnulib/import/m4/locale-ja.m4: Likewise.
5017 * gnulib/import/m4/locale-zh.m4: Likewise.
5018 * gnulib/import/m4/mbrtowc.m4: Likewise.
5019 * gnulib/import/m4/mbsinit.m4: Likewise.
5020 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5021 * gnulib/import/m4/mbstate_t.m4: Likewise.
5022 * gnulib/import/m4/stdbool.m4: Likewise.
5023 * gnulib/import/m4/wchar_h.m4: Likewise.
5024 * gnulib/import/m4/wctype_h.m4: Likewise.
5025 * gnulib/import/m4/wint_t.m4: Likewise.
5026 * gnulib/import/mbrtowc.c: Likewise.
5027 * gnulib/import/mbsinit.c: Likewise.
5028 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5029 * gnulib/import/mbsrtowcs-state.c: Likewise.
5030 * gnulib/import/mbsrtowcs.c: Likewise.
5031 * gnulib/import/ref-add.sin: Likewise.
5032 * gnulib/import/ref-del.sin: Likewise.
5033 * gnulib/import/stdbool.in.h: Likewise.
5034 * gnulib/import/streq.h: Likewise.
5035 * gnulib/import/strnlen1.c: Likewise.
5036 * gnulib/import/strnlen1.h: Likewise.
5037 * gnulib/import/verify.h: Likewise.
5038 * gnulib/import/wchar.in.h: Likewise.
5039 * gnulib/import/wctype.in.h: Likewise.
5040
202cbf1c
JK
50412012-07-02 Jan Kratochvil <[email protected]>
5042
5043 Support shell wildcards for 'set auto-load safe-path'.
5044 * auto-load.c: Include fnmatch.h.
5045 (filename_is_in_dir): Rename to ...
5046 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5047 it. Update function comment. Rename dir_len to pattern_len. New
5048 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5049 messages. Use gdb_filename_fnmatch.
5050 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5051 pattern.
5052 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5053 * defs.h (gdb_filename_fnmatch): New declaration.
5054 * utils.c: Include fnmatch.h.
5055 (gdb_filename_fnmatch): New function.
5056
fb7b5af4
SDJ
50572012-07-02 Sergio Durigan Junior <[email protected]>
5058
5059 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5060 `-probe' and `-probe-stap' options.
5061
72d0e2c5
YQ
50622012-07-01 Yao Qi <[email protected]>
5063
5064 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5065 always_inserted_off, and always_inserted_enums.
5066 Change always_inserted_mode's type to 'enum auto_boolean'.
5067 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5068 callers.
5069 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5070 of add_setshow_enum_cmd.
5071 * infrun.c: Remove can_use_displaced_stepping_auto,
5072 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5073 can_use_displaced_stepping_enum.
5074 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
f87e3f15
PA
5075 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5076 callers.
72d0e2c5
YQ
5077 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5078 add_setshow_enum_cmd.
5079
42e7ad6c
DE
50802012-06-30 Doug Evans <[email protected]>
5081
5082 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5083 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5084 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5085
39cf75f7
DE
50862012-06-29 Doug Evans <[email protected]>
5087
5088 * linespec.c: #include "stack.h".
5089 (decode_line_with_current_source): Moved here from symtab.c and
5090 renamed from decode_line_spec. All callers updated.
5091 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5092 renamed from decode_line_spec_1. All callers updated.
5093 * linespec.h (decode_line_with_current_source): Move declaration here
5094 from symtab.h and renamed from decode_line_spec.
5095 (decode_line_with_last_displayed): Move declaration here from symtab.h
5096 and renamed from decode_line_spec_1.
5097 * macrocmd.c: #include "linespec.h".
5098 * symtab.c: Remove #include "linespec.h".
5099
433df2d4
DE
51002012-06-28 Doug Evans <[email protected]>
5101
1ce1cefd
DE
5102 * dwarf2read.c (get_cu_length): New function.
5103 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5104 (create_debug_types_hash_table): Ditto.
5105 (init_cutu_and_read_dies): Ditto.
5106 (init_cutu_and_read_dies_no_follow): Ditto.
5107
3b80fe9b
DE
5108 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5109
433df2d4
DE
5110 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5111 (struct abbrev_table): Define.
5112 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5113 abbrev_table.
5114 (init_cutu_and_read_dies): Update.
5115 (abbrev_table_alloc_abbrev): New function. Replaces
5116 dwarf_alloc_abbrev. All callers updated.
5117 (abbrev_table_add_abbrev): New function.
5118 (abbrev_table_lookup_abbrev): New function. Replaces
5119 dwarf2_lookup_abbrev. All callers updated.
5120 (abbrev_table_read_table): New function. Contents moved here from
5121 dwarf2_read_abbrevs.
5122 (dwarf2_read_abbrevs): Call it.
5123 (abbrev_table_free): New function.
5124 (dwarf2_free_abbrev_table): Call it.
5125
71caed83
SS
51262012-06-28 Stan Shebs <[email protected]>
5127
5128 * osdata.c (info_osdata_command): Filter out "Title" columns
5129 from non-MI uses.
5130 * common/linux-osdata.c (struct osdata_type): Add title field.
5131 (osdata_table): Add titles to each entry.
5132 (linux_command_xfer_osdata): Add a column for title data.
5133
37ce89eb
SS
51342012-06-28 Stan Shebs <[email protected]>
5135
5136 Make logging work for MI.
5137 * NEWS: Mention it.
5138 * interps.h (interp_set_logging_ftype): New typedef.
5139 (struct interp_procs): New field set_logging_proc.
5140 (current_interp_set_logging): Declare.
5141 * interps.c (current_interp_set_logging): New function.
5142 * cli/cli-logging.c: Include interps.h.
5143 (set_logging_redirect): Call current_interp_set_logging.
5144 (pop_output_files): Ditto.
5145 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5146 * mi/mi-console.h (mi_console_set_raw): Declare.
5147 * mi/mi-console.c (mi_console_set_raw): New function.
5148 * mi/mi-interp.c (saved_raw_stdout): New global.
5149 (mi_set_logging): New function.
5150 (_initialize_mi_interp): Add it to interp procs.
5151
659c9f3a
DE
51522012-06-28 Doug Evans <[email protected]>
5153
a743abeb
DE
5154 * symtab.c (lookup_symbol_aux_objfile): Use
5155 ALL_OBJFILE_PRIMARY_SYMTABS.
5156
659c9f3a
DE
5157 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5158
da2d6d3d
JK
51592012-06-28 Jan Kratochvil <[email protected]>
5160
5161 * common/buffer.c: Include inttypes.h and stdint.h.
5162 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5163
e5ef252a
PA
51642012-06-28 Jan Kratochvil <[email protected]>
5165 Pedro Alves <[email protected]>
5166
5167 * gdbthread.h (ALL_THREADS): New macro.
5168 (thread_list): Declare.
5169 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5170 going, but instead fall through to the stepping handling.
5171 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5172 the passed in signal. Adjust debug output.
5173 (resume_callback): Rename to ...
5174 (linux_nat_resume_callback): ... this. Pass the thread's last
5175 stop signal, if in "pass" state.
5176 (linux_nat_resume): Adjust to rename.
5177 (stop_wait_callback): New assertion. Don't respawn signals;
5178 instead let the LWP remain with SIGNALLED set.
5179 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5180 * remote.c (append_pending_thread_resumptions): New.
5181 (remote_vcont_resume): Call it.
5182 * target.h (target_resume): Extend comment.
5183
1d7975eb
IS
51842012-06-28 Iain Sandoe <[email protected]>
5185
5186 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5187
2e3cf129
DE
51882012-06-27 Doug Evans <[email protected]>
5189
5190 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5191 Delete have_addr_base, unused. All uses updated.
5192 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5193 (dwarf2_get_pc_bounds): Add ranges_base.
5194 (dwarf2_record_block_ranges): Ditto.
5195
1bb9788d
TT
51962012-06-27 Tom Tromey <[email protected]>
5197
5198 PR macros/7961:
5199 * varobj.c (varobj_create): Update.
5200 (varobj_set_value): Update.
5201 * tracepoint.c (validate_actionline): Update.
5202 (encode_actions_1): Update.
5203 * parse.c (parse_exp_1): Add 'pc' argument.
5204 (parse_exp_in_context): Add 'pc' argument. Change how
5205 expression_context_pc is set.
5206 (parse_expression): Update.
5207 (parse_field_expression): Update.
5208 * expression.h (parse_exp_1): Update.
5209 * eval.c (parse_to_comma_and_eval): Update.
5210 * breakpoint.c (set_breakpoint_condition): Update.
5211 (update_watchpoint): Update.
5212 (init_breakpoint_sal): Update
5213 (find_condition_and_thread): Update.
5214 (watch_command_1): Update.
5215 (update_breakpoint_locations): Update.
5216 * ada-lang.c (ada_read_renaming_var_value): Update.
5217 (create_excep_cond_exprs): Update.
5218
0bc3a05c
DE
52192012-06-27 Doug Evans <[email protected]>
5220
5221 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5222 type units.
5223
4bdcc0c1
DE
52242012-06-26 Doug Evans <[email protected]>
5225
5226 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5227 prototype.
5228 (error_check_comp_unit_head): New arg abbrev_section. All callers
5229 updated.
5230 (read_and_check_comp_unit_head): Ditto.
5231 (read_and_check_type_unit_head): Ditto.
5232
ee0bf529
SCR
52332012-06-26 Siva Chandra Reddy <[email protected]>
5234
5235 New attribute 'last' for gdb.Symtab_and_line.
5236 * NEWS (Python Scripting): Add entry about the new attribute.
5237 * python/py-symtab.c (salpy_get_last): New function which
5238 implements the get method for the 'last' attribute of
5239 gdb.Symtab_and_line.
5240 (sal_object_getset): Add entry for the 'last' attribute.
5241
1c658ad5
DE
52422012-06-26 Doug Evans <[email protected]>
5243
09262596
DE
5244 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5245 (dwo_sections): Add macinfo, macro.
5246 (dwarf2_locate_dwo_sections): Watch for macro sections.
5247 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5248 All callers updated. Handle DWO files.
5249
45cfd468
DE
5250 * NEWS: Mention new options "set debug dwarf2-read" and
5251 "set debug symtab-create".
5252 * dwarf2read.c (dwarf2_read_debug): New static global.
5253 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5254 (process_queue): Ditto.
5255 (process_full_comp_unit): Ditto.
5256 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5257 * elfread.c (elf_symfile_read): Add debugging printf.
5258 * minsyms.c (install_minimal_symbols): Ditto.
5259 * psymtab.c (allocate_psymtab): Ditto.
5260 * symfile.c (allocate_symtab): Ditto.
5261 * symtab.c (symtab_create_debug): New global.
5262 (_initialize_symtab): Add new option "set debug symtab-create".
5263 * symtab.h (symtab_create_debug): Declare.
5264
1c658ad5
DE
5265 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5266 (lookup_dwo_type_unit): Ditto.
5267
6fea9e18
L
52682012-06-26 Roland McGrath <[email protected]>
5269 H.J. Lu <[email protected]>
5270
5271 * amd64-linux-nat.c: Include <sys/user.h>.
5272 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5273 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5274 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5275
5276 * configure.ac: Check if the fs_base and gs_base members of
5277 `struct user_regs_struct' exist.
5278 * config.in: Regenerated.
5279 * configure: Likewise.
5280
adb4fe3b
ME
52812012-06-25 Michael Eager <[email protected]>
5282
5283 PR python/14291
f782ad9b 5284 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 5285
fc51cce1
MGD
52862012-06-25 Greta Yorsh <[email protected]>
5287
5288 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5289 register as a stack alignment in ARM mode.
5290
40a73391
JK
52912012-06-24 Jan Kratochvil <[email protected]>
5292
5293 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5294 * gnulib/config.in: Regenerate.
5295 * gnulib/configure: Likewise.
5296 * gnulib/import/m4/extensions.m4: Update it.
5297 * gnulib/import/m4/gnulib-common.m4: Likewise.
5298 * gnulib/import/m4/memmem.m4: Likewise.
5299 * gnulib/import/m4/mmap-anon.m4: Likewise.
5300 * gnulib/import/m4/multiarch.m4: Likewise.
5301 * gnulib/import/stdint.in.h: Likewise.
5302
972daa01
YQ
53032012-06-24 Yao Qi <[email protected]>
5304
5305 * corefile.c (write_memory_with_notification): New.
5306 * gdbcore.h: Declare write_memory_with_notification.
5307 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5308 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5309 * valops.c (value_assign): Likewise.
5310 * python/py-inferior.c (infpy_write_memory): Call
5311 'write_memory_with_notification'.
5312
8d6e0714
JK
53132012-06-24 Jan Kratochvil <[email protected]>
5314
5315 * cc-with-index.sh: Use also -ex "set auto-load no".
5316
156942c7
DE
53172012-06-23 Doug Evans <[email protected]>
5318
5319 PR 14125
5320 * NEWS: Document additions to .gdb_index.
5321 * dwarf2read.c: #include "gdb/gdb-index.h".
5322 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5323 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5324 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5325 (dwarf2_read_index): Recognize version 7.
5326 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5327 block_kind, domain): All callers updated.
5328 (dw2_find_symbol_file): Handle new index CU values.
5329 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5330 (add_index_entry): New args is_static, kind. All callers updated.
5331 (offset_type_compare, uniquify_cu_indices): New functions
5332 (symbol_kind): New function.
5333 (write_psymtabs_to_index): Remove duplicate CU values.
5334 (write_psymtabs_to_index): Write .gdb_index version 7.
5335
352b3eda
JB
53362012-06-22 Joel Brobecker <[email protected]>
5337
5338 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5339 * configure: Regenerate.
5340
2678e2af
YQ
53412012-06-20 Yao Qi <[email protected]>
5342
5343 * python/py-inferior.c: Update comments of infpy_read_memory
5344 and infpy_write_memory.
5345
95c391b6
TT
53462012-06-19 Tom Tromey <[email protected]>
5347
5348 PR exp/9514:
5349 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5350 (push_type_address_space): Remove.
5351 * parse.c (insert_into_type_stack): New function.
5352 (insert_type): Likewise.
5353 (insert_type_address_space): Rename from push_type_address_space.
5354 Insert tp_space_identifier.
5355 * c-exp.y (ptr_operator): New production.
5356 (abs_decl): Use ptr_operator.
5357 (space_identifier): Call insert_type_address_space.
5358 (ptype): Don't use const_or_volatile_or_space_identifier.
5359 (const_or_volatile_noopt): Call insert_type.
5360 (conversion_type_id, conversion_declarator): New productions.
5361 (operator): Use conversion_type_id.
5362
6ac9ef80
DE
53632012-06-18 Doug Evans <[email protected]>
5364
422d65e7
DE
5365 * symtab.h (minimal_symbol): New member created_by_gdb.
5366 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5367 created by gdb.
5368 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5369 (search_symbols): Call it instead of lookup_symbol.
5370 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5371
49f6c839
DE
5372 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5373 Adjust address for DW_OP_GNU_addr_index.
5374 * dwarf2expr.h (dwarf_expr_context): Update comment.
5375 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5376 all callers updated. Handle TLS vars described with
5377 DW_OP_GNU_const_index.
5378 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5379 and DW_OP_GNU_const_index.
5380 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5381
6ac9ef80
DE
5382 * block.c (find_block_in_blockvector): Make explicit the fact that we
5383 ignore GLOBAL_BLOCK.
5384
4cd18215
TT
53852012-06-18 Tom Tromey <[email protected]>
5386
5387 * c-exp.y (operator): Remove trailing space after "delete" and
5388 "delete[]".
5389
a9b8d892
JK
53902012-06-18 Mark Kettenis <[email protected]>
5391 Jan Kratochvil <[email protected]>
5392
5393 Switch i386 and derived targets to ON_STACK.
5394 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5395 (amd64_dicos_init_abi): Remove its installment.
5396 * dicos-tdep.c (dicos_init_abi): Remove the
5397 set_gdbarch_call_dummy_location call. Update the comment here.
5398 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5399 (i386_dicos_init_abi): Remove its installment.
5400 * i386-tdep.c (i386_push_dummy_code): New function.
5401 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5402 i386_push_dummy_code.
5403
e2e4d78b
JK
54042012-06-18 Jan Kratochvil <[email protected]>
5405
5406 Remove stale dummy frames.
5407 * breakpoint.c: Include dummy-frame.h.
5408 (longjmp_breakpoint_ops): New variable.
5409 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5410 bp_longjmp_call_dummy.
5411 (bpstat_what, bptype_string, print_one_breakpoint_location)
5412 (init_bp_location): Support bp_longjmp_call_dummy.
5413 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5414 (set_longjmp_breakpoint_for_call_dummy)
5415 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5416 functions.
5417 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5418 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5419 FIXME comment and extend the other comment for bp_call_dummy.
5420 (set_longjmp_breakpoint_for_call_dummy)
5421 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5422 * dummy-frame.c: Include gdbthread.h.
5423 (pop_dummy_frame_bpt): New function.
5424 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5425 (dummy_frame_discard): New function.
5426 (cleanup_dummy_frames): Update the comment about longjmps.
5427 * dummy-frame.h (dummy_frame_discard): New declaration.
5428 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5429 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5430 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5431 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5432 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5433 keep_going if IS_LONGJMP and there is no other reason to stop.
5434
09d5912c
TT
54352012-06-18 Greta Yorsh <[email protected]>
5436
5437 * remote-sim.c (sim_command_completer): Initialize
5438 variable 'result'.
5439
1788b2d3
JK
54402012-06-17 Jan Kratochvil <[email protected]>
5441
5442 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5443 * dwarf2loc.c (call_site_parameter_matches): Support
5444 CALL_SITE_PARAMETER_PARAM_OFFSET.
5445 (needs_dwarf_reg_entry_value): Push stub value.
5446 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5447 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5448 * gdbtypes.h (enum call_site_parameter_kind): New item
5449 CALL_SITE_PARAMETER_PARAM_OFFSET.
5450 (struct call_site.parameter.u): New field param_offset.
5451
24c5c679
JK
54522012-06-17 Jan Kratochvil <[email protected]>
5453
5454 Code cleanup: Generalize call_site.parameter key.
5455 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5456 variable dwarf_reg. New variable kind_u. Update parameters to
5457 push_dwarf_reg_entry_value.
5458 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5459 * dwarf2expr.h (enum call_site_parameter_kind)
5460 (union call_site_parameter_u): Forward declarations.
5461 (struct dwarf_expr_context_funcs): Update parameters and their
5462 description for push_dwarf_reg_entry_value.
5463 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5464 * dwarf2loc.c (call_site_parameter_matches): New function.
5465 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5466 description. Use call_site_parameter_matches.
5467 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5468 Update parameters and their description.
5469 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5470 New variable kind_u. Adjust the caller for updated parameters.
5471 (needs_dwarf_reg_entry_value): Update parameters.
5472 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5473 instead of attr. Update for the changed fields of struct
5474 call_site_parameter.
5475 * gdbtypes.h: Include dwarf2expr.h.
5476 (enum call_site_parameter_kind): New.
5477 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5478 fb_offset into new union u.
5479
ac142d96
L
54802012-06-16 H.J. Lu <[email protected]>
5481
5482 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5483 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5484 for x32.
5485
ba224c70
L
54862012-06-16 H.J. Lu <[email protected]>
5487
5488 * amd64-linux-nat.c (compat_x32_clock_t): New.
5489 (compat_x32_siginfo_t): Likewise.
5490 (compat_x32_siginfo_from_siginfo): Likewise.
5491 (siginfo_from_compat_x32_siginfo): Likewise.
5492 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5493 and siginfo_from_compat_x32_siginfo for x32.
5494
7ecbc825
HZ
54952012-06-15 Hui Zhu <[email protected]>
5496
5497 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5498
233dfcf0
L
54992012-06-15 H.J. Lu <[email protected]>
5500
5501 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5502 instead of gdbarch_ptr_bit.
5503 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5504 (amd64_supply_native_gregset): Likewise.
5505 (amd64_collect_native_gregset): Likewise.
5506 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5507 (amd64_supply_xsave): Likewise.
5508 (amd64_collect_fxsave): Likewise.
5509 (amd64_collect_xsave): Likewise.
5510
6da38f42
L
55112012-06-15 H.J. Lu <[email protected]>
5512
5513 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5514 (amd64_linux_read_description): Check DS segment register for
5515 x32 process.
5516
663b969e
TT
55172012-06-15 Tom Tromey <[email protected]>
5518
5519 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5520 init_cutu_and_read_dies.
5521
d6f05027
IS
55222012-06-15 Iain Sandoe <[email protected]>
5523
5524 * MAINTAINERS (Write After Approval): Add myself to the list.
5525
6598ed07
TT
55262012-06-15 Tom Tromey <[email protected]>
5527
5528 * valops.c (value_find_oload_method_list): Now static.
5529 * value.h (value_find_oload_method_list): Don't declare.
5530
2b214ea6
TT
55312012-06-15 Tom Tromey <[email protected]>
5532
5533 * valops.c (find_overload_match): Use value_ind.
5534
a210c238
MR
55352012-06-15 Maciej W. Rozycki <[email protected]>
5536
5537 * infrun.c (handle_inferior_event): Correct indentation.
5538
3771a44c
DE
55392012-06-14 Doug Evans <[email protected]>
5540
5541 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5542 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5543 All uses updated.
5544 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5545 updated. Handle DEBUG_LOC_START_LENGTH.
5546 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5547 (loclist_describe_location): Ditto.
5548
1c5a993e
MR
55492012-06-14 Maciej W. Rozycki <[email protected]>
5550
5551 PR backtrace/13866
5552 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5553 after hiding inline functions.
5554
0b155465
JB
55552012-06-13 Joel Brobecker <[email protected]>
5556
5557 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5558 _initialize_inf_ttrace.
5559
45717bac
JB
55602012-06-13 Joel Brobecker <[email protected]>
5561
5562 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5563 _initialize_hppa_hpux_nat.
5564
34370865
JB
55652012-06-13 Joel Brobecker <[email protected]>
5566
5567 * remote-sim.c (sim_command_completer): Change type of return
5568 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5569
284c5a60
MK
55702012-06-13 Mark Kettenis <[email protected]>
5571 Jan Kratochvil <[email protected]>
5572
5573 PR tdep/14222
5574 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5575 stack on a 16-byte boundary.
5576
2535757a
TT
55772012-06-13 Kaushik Srenevasan <[email protected]>
5578
5579 * jit.c (finalize_symtab): Set function's return type to 'void' by
5580 default.
5581
fff4548b
MK
55822012-06-13 Mark Kettenis <[email protected]>
5583 H.J. Lu <[email protected]>
5584
5a83521a
MK
5585 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5586 Move bits common to both the classic LP64 and the new x32 ILP32
5587 ABI here.
5588 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5589 (amd64_x32_linux_init_abi): New function.
5590 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5591 subtype.
5592
fff4548b
MK
5593 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5594 * i386-tdep.c (i386_pseudo_register_name): Make public.
5595 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5596 * amd64-tdep.c (amd64_dword_names): Add "eip".
5597 (amd64_x32_pseudo_register_type): New function
5598 (amd64_x32_init_abi): New function.
5599
dd80ea3c
JK
56002012-06-13 Jan Kratochvil <[email protected]>
5601
5602 PR build/14003
5603 * inferior.h (struct inferior_suspend_state): Comment out.
5604 (struct inferior): Comment out the field suspend.
5605 * infrun.c (struct infcall_suspend_state): Comment out the field
5606 inferior_suspend.
5607 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5608 out its assignment.
5609
50af5481
JK
56102012-06-13 Jan Kratochvil <[email protected]>
5611
5612 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5613 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5614 function comment. Return ERROR for unresolved cases. Implement
5615 returning proper NAME.
5616 (yylex): Accept also NAME from classify_inner_name.
5617 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5618 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5619 LOC_TYPEDEF type.
5620 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5621
d55637df
TT
56222012-06-13 Tom Tromey <[email protected]>
5623
5624 * breakpoint.c (condition_completer): New function.
5625 (_initialize_breakpoint): Use it.
5626 * value.c (complete_internalvar): New function.
5627 * value.h (complete_internalvar): Declare.
5628
49c4e619
TT
56292012-06-13 Tom Tromey <[email protected]>
5630
5631 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5632 * breakpoint.c (catch_syscall_completer): Return a VEC.
5633 * cli/cli-cmds.c (complete_command): Update.
5634 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5635 (complete_on_enum): Likewise.
5636 * command.h: Include gdb_vecs.h.
5637 (completer_ftype): Change return type.
5638 (complete_on_cmdlist, complete_on_enum): Likewise.
5639 * completer.c (noop_completer, filename_completer)
5640 (location_completer): Return a VEC.
5641 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5642 to a VEC.
5643 (expression_completer, complete_line_internal, complete_line)
5644 (command_completer): Return a VEC.
5645 (gdb_completion_word_break_characters, line_completion_function):
5646 Update.
5647 * completer.h: Include gdb_vecs.h.
5648 (complete_line, noop_completer, filename_completer)
5649 (expression_completer, location_completer, command_completer):
5650 Update.
5651 * f-lang.c (f_word_break_characters): Return a VEC.
5652 * interps.c (interpreter_completer): Return a VEC.
5653 * language.h (struct language_defn)
5654 <la_make_symbol_completion_list>: Return a VEC.
5655 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5656 * symtab.c (free_completion_list): Take a VEC.
5657 (return_val_size, return_val_index): Remove.
5658 (return_val): Now a VEC.
5659 (completion_list_add_name): Update.
5660 (default_make_symbol_completion_list_break_on)
5661 (default_make_symbol_completion_list, make_symbol_completion_list)
5662 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5663 Return a VEC.
5664 (add_filename_to_list): Update.
5665 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5666 <list>: Now a VEC.
5667 (maybe_add_partial_symtab_filename): Update.
5668 (make_source_files_completion_list): Return a VEC.
5669 * symtab.h (default_make_symbol_completion_list_break_on)
5670 (default_make_symbol_completion_list, make_symbol_completion_list)
5671 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5672 (make_source_files_completion_list): Update.
5673
625e8578
TT
56742012-06-13 Tom Tromey <[email protected]>
5675
5676 * breakpoint.c (add_catch_command): Use completer_ftype.
5677 * breakpoint.h: Include command.h.
5678 (add_catch_command): Use completer_ftype.
5679 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5680 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5681 Use completer_ftype.
5682 * command.h (completer_ftype): New typedef.
5683 (set_cmd_completer): Use it.
5684 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5685 completer_ftype.
5686
5eb3b062
PA
56872012-06-13 Pedro Alves <[email protected]>
5688
5689 Partial revert of previous change.
5690
5691 * serial.c (scb_base): New global.
5692 (serial_for_fd): New.
5693 (serial_open, serial_fdopen_ops): Link new serial in open serials
5694 chain.
5695 (do_serial_close): Unlink serial from the open serials chain.
5696
8b3ee56d
PA
56972012-06-12 Pedro Alves <[email protected]>
5698
5699 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5700 threads here.
5701 (prepare_for_detach): No longer context switch here in non-stop
5702 mode.
5703 (fetch_inferior_event): Ditto.
5704 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5705 to the event thread before removing breakpoints. Switch to the
5706 event thread before inserting breakpoints and resuming.
5707 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5708 event thread before resuming.
5709 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5710 Switch to the event thread before removing breakpoints.
5711
5d60742e
EZ
57122012-06-12 Eli Zaretskii <[email protected]>
5713
5714 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5715 special characters correctly for the Windows shells. See
5716 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5717 report.
5718 [!__MINGW32__]: Remove extra double quote character from special
5719 characters.
5720
a6feecf7
SS
57212012-06-11 Stan Shebs <[email protected]>
5722
5723 * ui-out.h: Remove #if 0 declarations.
5724 * ui-out.c: Remove #if 0 functions.
5725
ddefb60f
PA
57262012-06-11 Pedro Alves <[email protected]>
5727
5728 * ser-base.c (run_async_handler_and_reschedule): New.
5729 (fd_event, push_event): Use it.
5730 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5731 reference count to 1.
5732 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5733 instead of xfree.
5734 (serial_is_open, serial_ref, serial_unref): New.
5735 * serial.h (serial_open): Adjust comment.
5736 (serial_is_open): Declare.
5737 (serial_close): Adjust comment.
5738 (serial_ref, serial_unref) Declare.
5739 (struct serial): New field 'refcnt'.
5740
d5ad6aa5
PA
57412012-06-11 Pedro Alves <[email protected]>
5742
5743 Remove #if 0'd "connect" command, and unnecessary associated
5744 refcounting and serial reuse bits.
5745
5746 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5747 * serial.c (last_serial_opened): Delete.
5748 (scb_base): Delete.
5749 (serial_open): Adjust.
5750 (serial_for_fd): Delete.
5751 (serial_fdopen_ops, do_serial_close): Adjust.
5752 (serial_fdopen_ops): Adjust.
5753
318aa544
PA
57542012-06-11 Pedro Alves <[email protected]>
5755
5756 * serial.c (do_serial_close): Remove early return when SCB is
5757 null.
5758
07261596
TT
57592012-06-11 Tom Tromey <[email protected]>
5760
5761 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5762
cc80f267
JK
57632012-06-11 Jan Kratochvil <[email protected]>
5764
5765 Fix regression by the "ambiguous linespec" series.
5766 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5767 get_last_displayed_symtab and get_last_displayed_line and depending
5768 on CURSAL.
5769
356d9f9d
TT
57702012-06-11 Tom Tromey <[email protected]>
5771
5772 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5773 (dw2_find_symbol_file): Use it.
5774
232b8704
ME
57752012-06-11 Michael Eager <[email protected]>
5776
5777 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5778 * mips-linux-tdep.h (mips_signals): New
5779
e81a37f7
TT
57802012-06-11 Tom Tromey <[email protected]>
5781
5782 * infrun.c (handle_inferior_event)
5783 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5784 breakpoint.
5785 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5786 exception logic in all cases. Update comments.
5787 (insert_longjmp_resume_breakpoint): Set the exception resume
5788 breakpoint.
5789
2e81047f
MR
57902012-06-11 Maciej W. Rozycki <[email protected]>
5791
5792 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5793
4e32eda7
SCR
57942012-06-09 Siva Chandra Reddy <[email protected]>
5795
5796 * valarith.c (binop_types_user_defined_p): Fix a typo.
5797
18648a37 57982012-06-08 Yao Qi <[email protected]>
f782ad9b 5799 Chung-Lin Tang <[email protected]>
18648a37
YQ
5800
5801 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5802 * arch-utils.h: Declare.
5803 * gdbarch.sh: Add return_in_first_hidden_param_p.
5804 * gdbarch.c, gdbarch.h: Regenerated.
5805 * infcall.c (call_function_by_hand): Call
5806 gdbarch_return_in_first_hidden_param_p instead of
5807 language_pass_by_reference.
5808
5809 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5810 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5811 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5812 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5813 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5814 `cplus_return_struct_by_reference'.
5815 (tic6x_return_value): Handle language cplusplus.
5816 (tic6x_return_in_first_hidden_param_p): New.
5817 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5818
034e5797
DE
58192012-06-07 Doug Evans <[email protected]>
5820
5821 * dwarf2read.c (dwarf2_cu): Add comment.
5822
6a00aa1e
MR
58232012-06-06 Maciej W. Rozycki <[email protected]>
5824
5825 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5826 variable.
5827 (mips_eabi_push_dummy_call): Likewise.
5828 (mips_n32n64_push_dummy_call): Likewise.
5829 (mips_o32_push_dummy_call): Likewise.
5830 (mips_o64_push_dummy_call): Likewise.
5831
eaa05d59
MR
58322012-06-06 Maciej W. Rozycki <[email protected]>
5833
5834 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5835
de13fcf2
MR
58362012-06-06 Maciej W. Rozycki <[email protected]>
5837
5838 * mips-tdep.c (mips_pseudo_register_type): Use
5839 mips_float_register_p.
5840
c3a01a22
PA
58412012-06-06 Pedro Alves <[email protected]>
5842
5843 * infrun.c (handle_inferior_event): Remove calls to
5844 reinit_frame_cache that follow a context_switch call.
5845
d25f45d9
PA
58462012-06-06 Pedro Alves <[email protected]>
5847
5848 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5849 context_switch and remove stale comment.
5850
359f5fe6
PA
58512012-06-06 Pedro Alves <[email protected]>
5852
5853 * infrun.c (struct execution_control_state): Remove
5854 `new_thread_event' field.
5855 (handle_inferior_event): Simplify new threads handling; don't
5856 resume the inferior if we find a new thread.
5857
2d4c29c5
TS
58582012-06-06 Thomas Schwinge <[email protected]>
5859
5860 * NEWS: Document the deprecation of SH's 'regs' command.
5861 * inferior.h (all_registers_info): Add function declaration.
5862 * sh-tdep.c (sh_show_regs): Remove variable.
5863 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5864 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5865 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5866 (sh_show_regs_command): Remove functions.
5867 (sh_gdbarch_init): Don't set sh_show_regs.
5868 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5869 'info all-registers'.
5870 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5871 (sh64_show_regs): Remove functions.
5872 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5873
f5f1cdb6
JK
58742012-06-06 Jan Kratochvil <[email protected]>
5875
5876 * configure.ac: Move development=true below AC_INIT.
5877 * configure: Regenerate.
5878
bf6309af
SS
58792012-06-05 Stan Shebs <[email protected]>
5880
5881 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5882 gdb_stdout.
5883
45aa4659
JK
58842012-06-05 Siddhesh Poyarekar <[email protected]>
5885
5886 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5887 argument as ssize_t.
5888 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5889 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5890 * target.c (target_read_stack, target_write_memory)
5891 (target_write_raw_memory): Likewise.
5892 * target.h (target_read_stack, target_write_memory)
5893 (target_write_raw_memory): Likewise.
5894
1b162304
JK
58952012-06-05 Jan Kratochvil <[email protected]>
5896
5897 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5898 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5899 * target.c (target_read_memory): Change LEN to ssize_t.
5900 * target.h (target_read_memory): Change LEN to ssize_t.
5901
8556afb4
PA
59022012-06-05 Pedro Alves <[email protected]>
5903
5904 PR backtrace/13866
5905
5906 * breakpoint.c (until_break_command): Only fetch the selected
5907 frame after decode_line_1.
5908
fb139f32
PA
59092012-06-05 Joakim Tjernlund <[email protected]>
5910
5911 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5912 event breakpoint at _start, __start or main if a program
5913 interpreter is not found.
5914
a8e1bb34
JB
59152012-06-05 Joel Brobecker <[email protected]>
5916
5917 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5918 Add declaration.
5919 * windows-tdep.c: #include "objfiles.h".
5920 (windows_iterate_over_objfiles_in_search_order): New function.
5921 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5922 iterate_over_objfiles_in_search_order gdbarch method to
5923 windows_iterate_over_objfiles_in_search_order.
5924 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5925
19630284
JB
59262012-06-05 Joel Brobecker <[email protected]>
5927
5928 * gdbarch.sh: Add generation of
5929 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5930 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5931 (iterate_over_objfiles_in_search_order): New gdbarch method.
5932 * gdbarch.h, gdbarch.c: Regenerate.
5933 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5934 Add declaration.
5935 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5936 New function.
5937 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5938 out of lookup_symbol_aux_symtabs.
5939 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5940 call to lookup_symbol_aux_objfile.
5941 (struct global_sym_lookup_data): New type.
5942 (lookup_symbol_global_iterator_cb): New function.
5943 (lookup_symbol_global): Search for symbol using
5944 gdbarch_iterate_over_objfiles_in_search_order and
5945 lookup_symbol_global_iterator_cb.
5946 * findvar.c (struct minsym_lookup_data): New type.
5947 (minsym_lookup_iterator_cb): New function.
5948 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5949 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5950 and minsym_lookup_iterator_cb.
5951
67ff19f7
JB
59522012-06-05 Joel Brobecker <[email protected]>
5953
5954 Revert the following patch:
5955 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5956 try locating the symbol in the symbol's own objfile first, before
5957 extending the search to all objfiles.
5958 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5959 out of lookup_symbol_aux_symtabs.
5960 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5961 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5962 Do not search EXCLUDE_OBJFILE.
5963 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5964 (lookup_symbol_global): Search for matches in the block's objfile
5965 first, before searching all other objfiles.
5966
ccab2054
JB
59672012-06-05 Joel Brobecker <[email protected]>
5968
5969 * breakpoint.c (find_condition_and_thread): Stop parsing
5970 as soon as the first invalid keyword is found.
5971
e23d4a9c
JB
59722012-06-05 Joel Brobecker <[email protected]>
5973
5974 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5975
70160166
JB
59762012-06-05 Joel Brobecker <[email protected]>
5977
5978 * config/djgpp/djcheck.sh: Add copyright header.
5979
399501a5
JB
59802012-06-05 Joel Brobecker <[email protected]>
5981
5982 * copyright.py (update_files, main): Fix path to update-copyright
5983 script.
5984
3770a159
JB
59852012-06-05 Joel Brobecker <[email protected]>
5986
5987 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5988 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5989 for which a reminder to update by hand is printed.
5990
4aad0dfc
DE
59912012-06-04 Doug Evans <[email protected]>
5992
5993 * buildsym.c (make_blockvector): Add comment.
5994
1f8cf220
PA
59952012-06-04 Pedro Alves <[email protected]>
5996
5997 * arch-utils.c (default_gdb_signal_from_target): Delete.
5998 * arch-utils.h (default_gdb_signal_from_target): Delete.
5999 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6000 gdbarch_gdb_signal_from_target_p.
6001 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6002 predicate).
6003 * gdbarch.h: Regenerate.
6004 * gdbarch.c: Regenerate.
6005
86b49880
PA
60062012-06-04 Pedro Alves <[email protected]>
6007
6008 * gdbarch.sh (gdb_signal_from_target): Mention that the
6009 implementation of the method must be host independent.
6010 * gdbarch.h: Regenerate.
6011
fe78531d
JK
60122012-06-04 Jan Kratochvil <[email protected]>
6013
6014 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6015 parameters.
6016 (target_read_memory_bfd): New function.
6017 (symbol_file_add_from_memory): Use it.
6018
d790cf0a
DE
60192012-06-03 Doug Evans <[email protected]>
6020
78e5175a
DE
6021 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6022 of primary symtab.
6023 (basic_lookup_transparent_type): Ditto.
6024
d790cf0a
DE
6025 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6026 (ALL_PRIMARY_SYMTABS): Use it.
6027 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6028 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6029 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6030 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6031 (basic_lookup_transparent_type): Ditto.
6032
c6e5ee5e
SDJ
60332012-06-02 Sergio Durigan Junior <[email protected]>
6034
6035 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6036 it to optimize resolution of demangled name.
6037
a68ffae9
JK
60382012-06-01 Jan Kratochvil <[email protected]>
6039
6040 * configure.ac (development): Define new variable.
6041 Call AC_CHECK_LIB for mcheck if $development.
6042 (ERROR_ON_WARNING): Enable it by default only if $development.
6043 * config.in: Regenerate.
6044 * configure: Regenerate.
6045
5299c1c4
JK
60462012-06-01 Siddhesh Poyarekar <[email protected]>
6047
6048 * target.c (target_read_memory): Make LEN argument as size_t.
6049 * target.h (target_read_memory): Likewise.
6050
60512012-06-01 Jan Kratochvil <[email protected]>
7c71816c
JK
6052
6053 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6054
0c56f59b
EBM
60552012-05-31 Edjunior Machado <[email protected]>
6056
6057 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6058 BookE interface for PowerPC server processors if not available
6059 in the Linux Kernel.
6060
71bdabee
KS
60612012-05-31 Keith Seitz <[email protected]>
6062
6063 * linespec.c (decode_objc): Add cleanup to free
6064 INFO.FILE_SYMTABS.
6065 (find_linespec_symbols): Add cleanup to free CLASSES.
6066 * symfile.c (find_separate_debug_file_by_debuglink): Add
6067 cleanup to free DEBUGLINK.
6068 * ui-out.c (clear_header_list): No need to check if
6069 HEADER_NEXT.COLHDR is NULL.
6070 Free HEADER_NEXT.COL_NAME.
6071
acbd605d
MGD
60722012-05-31 Matthew Gretton-Dann <[email protected]>
6073
6074 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6075 warning.
6076
65662cde
PA
60772012-05-30 Jeff Kenton <[email protected]>
6078
6079 * configure.host (gdb_host_cpu): Handle tilegx*.
6080 (gdb_host): Handle tilegx-*-linux*.
6081 * tilegx-linux-nat.c: New file.
6082 * config/tilegx/linux.mh: New file.
6083
ade64f0e
PA
60842012-05-30 Jeff Kenton <[email protected]>
6085
6086 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6087 tilegx-linux-tdep.o.
6088 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6089 tilegx-linux-tdep.c.
6090 * configure.tgt: Handle tilegx-*-linux*.
6091 * tilegx-tdep.h: New file.
6092 * tilegx-tdep.c: New file.
6093 * tilegx-linux-tdep.c: New file.
6094 * regformats/reg-tilegx.dat: New file.
6095
bb08bdbd
EBM
60962012-05-30 Edjunior Machado <[email protected]>
6097
6098 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6099 accounting of hw watchpoints on ppc.
6100
ebd86fb5
TJB
61012012-05-30 Thiago Jung Bauermann <[email protected]>
6102
6103 * source.c (openp): Expand tilde in path entries.
6104
0a0edcd5
DE
61052012-05-29 Doug Evans <[email protected]>
6106
98cc87bd
DE
6107 * buildsym.c (block_compar): Fix comment.
6108 (end_symtab): Fix and clarify some comments.
6109
0a0edcd5
DE
6110 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6111 cleanup_undefined_types.
6112 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6113 All callers updated.
6114
6f0c7050
TT
61152012-05-29 Tom Tromey <[email protected]>
6116
6117 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6118 fails.
6119 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6120 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6121 fails.
6122 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6123 fails.
6124
ec95993c
TG
61252012-05-29 Tristan Gingold <[email protected]>
6126
6127 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6128 (struct darwin_info): ... New struct.
6129 (solib_darwin_pspace_data): New variable.
6130 (darwin_pspace_data_cleanup): New function.
6131 (get_darwin_info): Likewise.
6132 (darwin_dyld_version_ok, darwin_load_image_infos)
6133 (darwin_solib_get_all_image_info_addr_at_init)
6134 (darwin_solib_read_all_image_info_addr): Add info argument.
6135 Adjust code.
6136 (darwin_current_sos): Use per pspace structure.
6137 (darwin_solib_create_inferior_hook): Likewise.
6138 (darwin_clear_solib): Likewise.
6139 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6140
ae25568b
PA
61412012-05-28 Pedro Alves <[email protected]>
6142
6143 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6144 block that uses them. Clear ecss before handling each event.
6145
0c5bf5a9
JK
61462012-05-28 Jan Kratochvil <[email protected]>
6147
6148 * solib-svr4.c (svr4_current_sos): New comment on
6149 svr4_current_sos_via_xfer_libraries fall back.
6150
bfb05775
JK
61512012-05-24 Jan Kratochvil <[email protected]>
6152
6153 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6154 it as a fallback for TYPE_IS_OPAQUE.
6155 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6156 symbols for lookup_symbol.
6157
685b1105
JK
61582012-05-24 John Steele Scott <[email protected]>
6159
6160 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6161 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6162 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6163 (check_producer): ... this new function, which also checks for ICC
6164 and caches the result.
6165 (producer_is_icc): New function.
6166 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6167 producer was ICC.
6168
22203bbf
PA
61692012-05-24 Pedro Alves <[email protected]>
6170
6171 PR gdb/7205
6172
6173 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6174 (default_gdb_signal_to_target): ... this. Add comment.
6175 (default_gdb_signal_from_host): Rename to ...
6176 (default_gdb_signal_from_target): ... this. Add comment.
6177 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6178 (default_gdb_signal_to_target): ... this.
6179 (default_gdb_signal_from_host): Rename to ...
6180 (default_gdb_signal_from_target): ... this.
6181 * corelow.c (core_open): Adjust to naming change. Replace comment.
6182 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6183 (gdb_signal_from_target): ... this. Adjust to
6184 default_gdb_signal_from_host naming change. Extend comment.
6185 (gdb_signal_to_host): Rename to ...
6186 (gdb_signal_to_target): ... this. Adjust to
6187 default_gdb_signal_to_host naming change.
6188 * gdbarch.h, gdbarch.c: Renegerate.
6189
a493e3e2
PA
61902012-05-24 Pedro Alves <[email protected]>
6191
6192 PR gdb/7205
6193
f782ad9b 6194 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 6195
2ea28649
PA
61962012-05-24 Pedro Alves <[email protected]>
6197
6198 PR gdb/7205
6199
6200 Replace target_signal with gdb_signal throughout.
6201
b09846a9
PA
62022012-05-24 Pedro Alves <[email protected]>
6203
6204 PR tui/14159
6205
6206 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6207 string, instead of reusing the va_list argument.
6208
e77c107e
TT
62092012-05-24 Tom Tromey <[email protected]>
6210
6211 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6212 Remove.
6213
9fccedf7
DE
62142012-05-23 Doug Evans <[email protected]>
6215
d50bd42b
DE
6216 * symtab.c (search_symbols): Formatting fixes.
6217 (print_symbol_info): Formatting fixes.
6218
9fccedf7
DE
6219 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6220 int64_t change to leb128 API.
6221 (read_encoded_value, decode_frame_entry_1): Ditto.
6222 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6223 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6224 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6225 (execute_stack_op): Ditto.
6226 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6227 (safe_read_uleb128, safe_read_sleb128): Ditto.
6228 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6229 (dwarf2_compile_expr_to_ax): Ditto.
6230 (locexpr_describe_location_piece): Ditto.
6231 (disassemble_dwarf_expression): Ditto.
6232 (locexpr_describe_location_1): Ditto.
6233
f3e0e960
SS
62342012-05-23 Stan Shebs <[email protected]>
6235 Kwok Cheung Yeung <[email protected]>
6236
6237 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6238 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6239 (mi-cmd-info.o): New rule.
6240 * osdata.h (info_osdata_command): New declaration.
6241 * osdata.c (info_osdata_command): Change to non-static.
6242 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6243 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6244 * mi/mi-cmd-info.c: New file.
6245
c51fe631
DE
62462012-05-23 Doug Evans <[email protected]>
6247
71cddcc1
DE
6248 * symtab.c (search_symbols): Pass NULL for file_matcher to
6249 expand_symtabs_matching if there are no files to match.
6250
c51fe631
DE
6251 * gdbtypes.c (lookup_typename): Simplify.
6252
a79378d4
PA
62532012-05-23 Pedro Alves <[email protected]>
6254
6255 * arch-utils.h (default_target_signal_to_host): Delete.
6256 * arch-utils.c (default_target_signal_to_host): Delete.
6257 * gdbarch.sh (target_signal_to_host): Remove.
6258 * gdbarch.h, gdbarch.c: Regenerate.
6259
f664829e
DE
62602012-05-22 Doug Evans <[email protected]>
6261
6262 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6263 "const gdb_byte *".
6264 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6265 (execute_cfa_program): Update to match API of leb128 functions.
6266 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6267 "const gdb_byte *".
6268 (read_unsigned_leb128, read_signed_leb128): Delete.
6269 (read_initial_length): Change type of buf argument to
6270 "const gdb_byte *".
6271 (read_encoded_value): Update to match API of leb128 functions.
6272 (decode_frame_entry): Change result to "const gdb_byte *", and
6273 similarly for "start" parameter.
6274 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6275 (dwarf2_build_frame_info): Change local frame_ptr to
6276 "const gdb_byte *".
6277 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6278 read_uleb128, read_sleb128. All callers updated.
6279 (safe_skip_leb128): New function.
6280 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6281 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6282 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6283 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6284 read_uleb128, read_sleb128.
6285 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6286 (execute_stack_op): Update to match API of leb128 functions.
6287 * dwarf2expr.h: #include "leb128.h".
6288 (read_uleb128, read_sleb128): Delete.
6289 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6290 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6291 * dwarf2loc.c (debug_loc_kind): New enum.
6292 (decode_debug_loc_addresses): New function.
6293 (decode_debug_loc_dwo_addresses): New function.
6294 (dwarf2_find_location_expression): Rewrite.
6295 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6296 (locexpr_describe_location_piece): Ditto.
6297 (disassemble_dwarf_expression): Ditto.
6298 (locexpr_describe_location_1): Ditto.
6299 (loclist_describe_location): Rewrite.
6300 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6301 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6302 (dwarf2_section_buffer_overflow_complaint): Renamed from
6303 dwarf2_macros_too_long_complaint. All callers updated.
6304 (skip_leb128): Delete.
6305 (init_cu_die_reader): Initialize reader->buffer_end.
6306 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6307 (skip_form_bytes): New arg buffer_end. All callers updated.
6308 Replace call to skip_leb128 with gdb_skip_leb128.
6309 (skip_unknown_opcode): New arg mac_end. All callers updated.
6310 (fill_in_loclist_baton): Initialize baton->from_dwo.
6311
837a1b32
MR
63122012-05-22 Maciej W. Rozycki <[email protected]>
6313
6314 * mips-linux-nat.c (mips_linux_read_description): Use a more
6315 verbose error message.
6316
d0e64392
MR
63172012-05-22 Maciej W. Rozycki <[email protected]>
6318
6319 * NEWS: Add MIPS/Linux DSP support.
6320 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6321 (SIGCONTEXT_DSPCTL): New macro.
6322 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6323 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6324 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6325 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6326 (N64_SIGCONTEXT_HI3): Likewise.
6327 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6328 (N64_SIGCONTEXT_LO3): Likewise.
6329 (N64_SIGCONTEXT_DSPCTL): Likewise.
6330 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6331 (mips_linux_o32_sigframe_init): Handle DSP registers.
6332 (mips_linux_n32n64_sigframe_init): Likewise.
6333
8bea7ed1
PM
63342012-05-22 Pierre Muller <[email protected]>
6335
6336 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6337 call to abort.
6338
dab06dbe
PA
63392012-05-22 Pedro Alves <[email protected]>
6340
6341 * target.h (store_waitstatus): Move declaration ...
6342 * inf-child.h (store_waitstatus): ... here.
6343 * target.c: Move inclusion of gdb_wait.h, and ...
6344 (store_waitstatus): ... this ...
6345 * inf-child.c: ... here.
6346 * linux-nat.c: Include inf-child.h.
6347 * rs6000-nat.c: Include inf-child.h.
6348 * spu-linux-nat.c: Include inf-child.h.
6349
43011e52
PM
63502012-05-22 Pierre Muller <[email protected]>
6351
6352 * tracepoint.c (start_tracing): Add missing i18n markup.
6353 (stop_tracing, set_trace_user): Ditto.
6354 (set_trace_notes, set_trace_stop_notes): Ditto.
6355
b1af9e97
TT
63562012-05-21 Tom Tromey <[email protected]>
6357
6358 PR c++/7173:
6359 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6360 types.
6361 * value.h (value_cast_pointers): Update.
6362 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6363 (value_cast): Update.
6364 (update_search_result): New function.
6365 (do_search_struct_field): New, from search_struct_field. Check
6366 for ambiguous results.
6367 (search_struct_field): Rewrite.
6368 * infcall.c (value_arg_coerce): Update.
6369 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6370 value_cast_pointers.
6371 * ada-lang.c (ada_convert_actual): Update.
6372
e9e5e6b3
TT
63732012-05-21 Tom Tromey <[email protected]>
6374
6375 * macroexp.c (macro_stringify): Terminate the string.
6376
1564a261
JK
63772012-05-20 Jan Kratochvil <[email protected]>
6378
6379 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6380 Describe it.
6381 * auto-load.c (auto_load_expand_dir_vars): New function.
6382 (auto_load_safe_path_vec_update): Use it, remove the
6383 substitute_path_component call thanks to it.
6384 (auto_load_objfile_script): Remove the debug_file_directory processing.
6385 Use auto_load_expand_dir_vars, remove the substitute_path_component
6386 call thanks to it.
6387 * configure: Regenerate.
6388 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6389 path. Escape $ also for $debugdir.
6390 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6391 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6392
a3ec0bb1
DE
63932012-05-20 Doug Evans <[email protected]>
6394
6395 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6396 before use. Check for symtab->includes == NULL before scanning it.
6397
d467df4e
MR
63982012-05-18 Maciej W. Rozycki <[email protected]>
6399
6400 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6401
4cc0665f
MR
64022012-05-18 Maciej W. Rozycki <[email protected]>
6403
6404 * NEWS: Add microMIPS support and "set mips compression",
6405 "show mips compression" commands.
6406 * mips-tdep.h (mips_isa): New enum.
6407 (gdbarch_tdep): Add mips_isa.
6408 (mips_pc_is_mips16): Update prototype.
6409 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6410 * mips-tdep.c (mips_compression_mips16): New variable.
6411 (mips_compression_micromips): Likewise.
6412 (mips_compression_strings): Likewise.
6413 (mips_compression_string): Likewise.
6414 (is_mips16_isa, is_micromips_isa): New functions.
6415 (is_mips16_addr): Rename to...
6416 (is_compact_addr): ... this.
6417 (unmake_mips16_addr): Likewise to...
6418 (unmake_compact_addr): ... this.
6419 (make_mips16_addr): Likewise to...
6420 (make_compact_addr): ... this.
6421 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6422 functions.
6423 (mips_elf_make_msymbol_special): Handle microMIPS code.
6424 (msymbol_is_special): Rename to...
6425 (msymbol_is_mips16): ... this.
6426 (mips_make_symbol_special, mips_pc_is_mips16): Update
6427 accordingly.
6428 (msymbol_is_mips, msymbol_is_micromips): New functions.
6429 (mips16_to_32_reg): Rename to...
6430 (mips_reg3_to_reg): ... this.
6431 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6432 (mips_pc_isa): Likewise.
6433 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6434 code.
6435 (mips_fetch_instruction): Pass return status instead of printing
6436 an error message if requested. Handle microMIPS code. Bail out
6437 on an invalid ISA.
6438 (micromips_op): New macro.
6439 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6440 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6441 (b6s4_op, b7s3_reg): Likewise.
6442 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6443 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6444 (mips_insn_size): New function.
6445 (mips32_next_pc): Update mips_fetch_instruction call.
6446 (micromips_relative_offset7): New function.
6447 (micromips_relative_offset10): Likewise.
6448 (micromips_relative_offset16): Likewise.
6449 (micromips_pc_insn_size): Likewise.
6450 (micromips_bc1_pc): Likewise.
6451 (micromips_next_pc): Likewise.
6452 (unpack_mips16): Update mips_fetch_instruction call.
6453 (extended_mips16_next_pc): Update according to change to
6454 mips16_to_32_reg.
6455 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6456 code.
6457 (mips16_scan_prologue): Update mips_fetch_instruction call.
6458 Update according to change to mips16_to_32_reg.
6459 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6460 (mips_insn16_frame_base_sniffer): Likewise.
6461 (micromips_decode_imm9): New function.
6462 (micromips_scan_prologue): Likewise.
6463 (mips_micro_frame_cache): Likewise.
6464 (mips_micro_frame_this_id): Likewise.
6465 (mips_micro_frame_prev_register): Likewise.
6466 (mips_micro_frame_sniffer): Likewise.
6467 (mips_micro_frame_unwind): New variable.
6468 (mips_micro_frame_base_address): New function.
6469 (mips_micro_frame_base): New variable.
6470 (mips_micro_frame_base_sniffer): New function.
6471 (mips32_scan_prologue): Update mips_fetch_instruction call.
6472 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6473 rather than for MIPS16.
6474 (mips_insn32_frame_base_sniffer): Likewise.
6475 (mips_addr_bits_remove): Handle microMIPS code.
6476 (deal_with_atomic_sequence): Rename to...
6477 (mips_deal_with_atomic_sequence): ... this. Update the type
6478 of the variable used to hold an instruction. Remove the ISA bit
6479 check. Update mips_fetch_instruction call.
6480 (micromips_deal_with_atomic_sequence): New function.
6481 (deal_with_atomic_sequence): Likewise.
6482 (mips_about_to_return): Handle microMIPS code. Update
6483 mips_fetch_instruction call.
6484 (heuristic_proc_start): Check for the standard MIPS ISA rather
6485 than for MIPS16. Update mips_pc_is_mips16 and
6486 mips_fetch_instruction calls. Handle microMIPS code.
6487 (mips_push_dummy_code): Handle microMIPS code.
6488 (mips_eabi_push_dummy_call): Likewise.
6489 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6490 (mips_o64_push_dummy_call): Handle microMIPS code.
6491 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6492 (is_delayed): Remove function.
6493 (mips_single_step_through_delay): Replace the call to is_delayed
6494 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6495 Handle microMIPS code.
6496 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6497 microMIPS code.
6498 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6499 call.
6500 (micromips_in_function_epilogue_p): New function.
6501 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6502 call.
6503 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6504 Handle microMIPS.
6505 (gdb_print_insn_mips): Likewise.
6506 (mips_breakpoint_from_pc): Likewise.
6507 (mips_remote_breakpoint_from_pc): New function.
6508 (mips32_instruction_has_delay_slot): Simplify making use of the
6509 updated mips_fetch_instruction interface.
6510 (micromips_instruction_has_delay_slot): New function.
6511 (mips16_instruction_has_delay_slot): Simplify making use of the
6512 updated mips_fetch_instruction interface.
6513 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 6514 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
6515 calls. Handle microMIPS code.
6516 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6517 (mips_skip_trampoline_code): Handle microMIPS code.
6518 (global_mips_compression): New function.
6519 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6520 file flags. Register the microMIPS remote breakpoint handler
6521 and heuristic frame unwinder.
6522 (show_mips_compression): New function.
6523 (_initialize_mips_tdep): Add the "set mips compression" and
6524 "show mips compression" commands.
6525
22e048c9
SDJ
65262012-05-18 Sergio Durigan Junior <[email protected]>
6527
6528 * ada-lang.c:
6529 * ada-tasks.c:
6530 * ada-varobj.c:
6531 * amd64-darwin-tdep.c:
6532 * arm-symbian-tdep.c:
6533 * arm-tdep.c:
6534 * avr-tdep.c:
6535 * ax-gdb.c:
6536 * bfin-linux-tdep.c:
6537 * breakpoint.c:
6538 * c-valprint.c:
6539 * cli/cli-cmds.c:
6540 * coffread.c:
6541 * cp-support.c:
6542 * cris-tdep.c:
6543 * dwarf2-frame-tailcall.c:
6544 * dwarf2-frame.c:
6545 * dwarf2expr.c:
6546 * dwarf2loc.c:
6547 * dwarf2read.c:
6548 * elfread.c:
6549 * eval.c:
6550 * expprint.c:
6551 * f-valprint.c:
6552 * frv-tdep.c:
6553 * h8300-tdep.c:
6554 * hppa-hpux-tdep.c:
6555 * hppa-tdep.c:
6556 * hppanbsd-tdep.c:
6557 * i386-nto-tdep.c:
6558 * i386-tdep.c:
6559 * i387-tdep.c:
6560 * ia64-tdep.c:
6561 * jit.c:
6562 * linespec.c:
6563 * linux-tdep.c:
6564 * lm32-tdep.c:
6565 * m2-valprint.c:
6566 * m32c-tdep.c:
6567 * m32r-rom.c:
6568 * m32r-tdep.c:
6569 * m68k-tdep.c:
6570 * m68klinux-tdep.c:
6571 * mi/mi-main.c:
6572 * microblaze-tdep.c:
6573 * mips-linux-tdep.c:
6574 * mips-tdep.c:
6575 * mn10300-tdep.c:
6576 * p-valprint.c:
6577 * parse.c:
6578 * ppc-linux-tdep.c:
6579 * ppc-sysv-tdep.c:
6580 * printcmd.c:
6581 * python/py-finishbreakpoint.c:
6582 * python/py-inferior.c:
6583 * python/py-infthread.c:
6584 * python/py-type.c:
6585 * python/python.c:
6586 * remote-fileio.c:
6587 * remote-m32r-sdi.c:
6588 * remote-mips.c:
6589 * reverse.c:
6590 * rl78-tdep.c:
6591 * rs6000-aix-tdep.c:
6592 * rs6000-tdep.c:
6593 * s390-tdep.c:
6594 * score-tdep.c:
6595 * sh64-tdep.c:
6596 * skip.c:
6597 * solib-darwin.c:
6598 * solib-dsbt.c:
6599 * solib-frv.c:
6600 * sparc-tdep.c:
6601 * spu-multiarch.c:
6602 * spu-tdep.c:
6603 * stack.c:
6604 * symfile.c:
6605 * symtab.c:
6606 * tic6x-tdep.c:
6607 * tracepoint.c:
6608 * v850-tdep.c:
6609 * valarith.c:
6610 * valprint.c:
6611 * value.c:
6612 * xcoffread.c:
6613 * xtensa-tdep.c:
6614 * ada-lang.c:
6615 * ada-tasks.c:
6616 * ada-varobj.c:
6617 * amd64-darwin-tdep.c:
6618 * arm-symbian-tdep.c:
6619 * arm-tdep.c: Delete unused variables.
6620
aff139ff
JK
66212012-05-18 Jan Kratochvil <[email protected]>
6622
6623 Rename $ddir to $datadir.
6624 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6625 * auto-load.c (auto_load_safe_path_vec_update)
6626 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6627 * configure: Regenerate.
6628 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6629 Likewise. Remove the 'use $ddir' help string.
6630
f7bfa992
JK
66312012-05-18 Jan Kratochvil <[email protected]>
6632
6633 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6634 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6635
9cb709b6
TT
66362012-05-18 Tom Tromey <[email protected]>
6637
6638 PR exp/13907:
6639 * valprint.h (struct value_print_options) <symbol_print>: New
6640 field.
6641 * valprint.c (user_print_options): Add default for symbol_print.
6642 (show_symbol_print): New function.
6643 (generic_val_print): Respect symbol_print.
6644 (_initialize_valprint): Add "print symbol" setting.
6645 * f-valprint.c (f_val_print): Respect symbol_print.
6646 * c-valprint.c (c_val_print): Respect symbol_print.
6647 * NEWS: Update.
6648 * printcmd.c (print_address_symbolic): Return int. Ignore some
6649 zero-size symbols.
6650 (print_address_demangle): Return int.
6651 * defs.h: (print_address_symbolic): Return int.
6652 * value.h (print_address_demangle): Return int.
6653
b012acdd
TT
66542012-05-18 Tom Tromey <[email protected]>
6655
6656 * valprint.c (val_print_string): Don't print leading space.
6657 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6658 print space before string or vtbl.
6659 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6660 before string.
6661 * jv-valprint.c (java_value_print): Print space before string.
6662 * go-valprint.c (print_go_string): Print space before string.
6663 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6664 space before string.
6665 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6666 space before string or vtbl.
6667 * auxv.c (fprint_target_auxv): Print space after address.
6668
1d51a733
TT
66692012-05-18 Tom Tromey <[email protected]>
6670
6671 * printcmd.c (print_address_demangle): Remove special case for 0.
6672
edf0c1b7
TT
66732012-05-18 Tom Tromey <[email protected]>
6674
6675 * printcmd.c (print_address_demangle): Add 'opts' argument.
6676 * p-valprint.c (pascal_val_print): Update.
6677 * jv-valprint.c (java_val_print): Update.
6678 * value.h: Update.
6679 * valprint.c (generic_val_print): Update.
6680 (print_function_pointer_address): Add 'options' argument. Remove
6681 'addressprint' argument. Update.
6682 * m2-valprint.c (print_unpacked_pointer): Update.
6683 * gnu-v3-abi.c (print_one_vtable): Update.
6684 (gnuv3_print_method_ptr): Update.
6685 * f-valprint.c (f_val_print): Update.
6686 * cp-valprint.c (cp_print_value_fields): Update.
6687 * valprint.h (print_function_pointer_address): Update.
6688 * c-valprint.c (c_val_print): Update.
6689
9703b513
TT
66902012-05-18 Tom Tromey <[email protected]>
6691
6692 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6693 directly corresponding to the found psymtab.
6694 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6695 (dw2_find_pc_sect_symtab): Use it.
6696 * block.h (blockvector_contains_pc): Declare.
6697 * block.c (find_block_in_blockvector): New function.
6698 (blockvector_for_pc_sect): Use it.
6699 (blockvector_contains_pc): New function.
6700
5a439849
MR
67012012-05-18 Maciej W. Rozycki <[email protected]>
6702
6703 * mips-tdep.h (mips_write_pc): New prototype.
6704 * mips-tdep.c (mips_write_pc): Make external, add description.
6705 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6706 add description.
6707
8376de04
MR
67082012-05-18 Maciej W. Rozycki <[email protected]>
6709
6710 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6711 mips_regnum->pc.
6712 (mips_unwind_pc, mips_write_pc): Likewise.
6713 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6714 gdbarch_read_pc.
6715
d3581e61
JB
67162012-05-17 Joel Brobecker <[email protected]>
6717
6718 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6719 proc_warn, proc_error, proc_get_status, proc_flags,
6720 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6721 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6722 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6723 proc_stop_process, proc_wait_for_stop, proc_run_process,
6724 proc_set_traced_signals, proc_set_traced_faults,
6725 proc_set_traced_sysentry, proc_set_traced_sysexit,
6726 proc_set_held_signals, proc_get_held_signals,
6727 proc_get_traced_signals, proc_get_traced_faults,
6728 proc_get_traced_sysentry, proc_get_traced_sysexit,
6729 proc_clear_current_fault, proc_set_current_signal,
6730 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6731 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6732 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6733 proc_get_current_thread, proc_get_current_thread,
6734 proc_get_current_thread, proc_update_threads,
6735 proc_update_threads, proc_update_threads, proc_update_threads,
6736 proc_iterate_over_threads, procfs_find_new_threads,
6737 procfs_pid_to_str): Make static. Remove advance declaration.
6738 (proc_cursig): Make static. Conditionalized defintion on
6739 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6740 (proc_syscall, proc_set_kill_on_last_close,
6741 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6742 proc_get_pending_signals, proc_get_signal_actions,
6743 proc_trace_signal, proc_ignore_signal): Delete.
6744
81b9b86e
SDJ
67452012-05-16 Sergio Durigan Junior <[email protected]>
6746
6747 * coffread.c (cs_section_address): Passing proper argument for
6748 `bfd_get_section_vma'.
6749 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6750 `bfd_get_section_flags'.
6751 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6752 `bfd_get_section_vma'.
6753
abc9d0dc
TT
67542012-05-16 Tom Tromey <[email protected]>
6755
6756 PR macros/13205:
6757 * macrotab.h: (macro_define_special): Declare.
6758 (enum macro_special_kind): New.
6759 (struct macro_definition) <argc, replacement>: Update comments.
6760 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6761 (macro_define_object_internal): New function.
6762 (macro_define_object): Use it.
6763 (macro_define_special): New function.
6764 (fixup_definition): New function.
6765 (macro_lookup_definition, foreach_macro_in_scope)
6766 (foreach_macro): Use fixup_definition.
6767 * macroexp.h (macro_stringify): Declare.
6768 * macroexp.c (free_buffer_return_text): New function.
6769 (stringify): Constify "arg".
6770 (macro_stringify): New function.
6771 * dwarf2read.c (macro_start_file): Call macro_define_special.
6772
6a3a010b 67732012-05-16 Maciej W. Rozycki <[email protected]>
f782ad9b 6774 Maciej W. Rozycki <[email protected]>
6a3a010b
MR
6775
6776 * breakpoint.h (bp_location): Add related_address member.
6777 * inferior.h (get_return_value): Take a pointer to struct value
6778 instead of struct type for the function requested.
6779 * value.h (using_struct_return): Likewise.
6780 * gdbarch.sh (return_value): Take a pointer to struct value
6781 instead of struct type for the function requested.
6782 * breakpoint.c (set_breakpoint_location_function): Initialize
6783 related_address for bp_gnu_ifunc_resolver breakpoints.
6784 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6785 requested function's address to gdbarch_return_value.
6786 * eval.c (evaluate_subexp_standard): Pass the requested
6787 function's address to using_struct_return.
6788 * infcall.c (call_function_by_hand): Pass the requested
6789 function's address to using_struct_return and
6790 gdbarch_return_value.
6791 * infcmd.c (get_return_value): Take a pointer to struct value
6792 instead of struct type for the function requested.
6793 (print_return_value): Update accordingly.
6794 (finish_command_continuation): Likewise.
6795 * stack.c (return_command): Pass the requested function's
6796 address to using_struct_return and gdbarch_return_value.
6797 * value.c (using_struct_return): Take a pointer to struct value
6798 instead of struct type for the function requested. Pass the
6799 requested function's address to gdbarch_return_value.
6800 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6801 New function_value member, replacing function_type.
6802 (bpfinishpy_dealloc): Update accordingly.
6803 (bpfinishpy_pre_stop_hook): Likewise.
6804 (bpfinishpy_init): Likewise. Record the requested function's
6805 address.
6806 * mips-tdep.c (mips_fval_reg): New enum.
6807 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6808 words put in GP registers.
6809 (mips_o64_push_dummy_call): Update a comment.
6810 (mips_o32_return_value): Take a pointer to struct value instead
6811 of struct type for the function requested and use it to check if
6812 using the MIPS16 calling convention. Return the designated
6813 general purpose registers for floating-point values returned in
6814 MIPS16 mode.
6815 (mips_o64_return_value): Likewise.
6816 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6817 (ppc_sysv_abi_broken_return_value): Likewise.
6818 (ppc64_sysv_abi_return_value): Likewise.
6819 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6820 value instead of struct type for the function requested.
6821 * amd64-tdep.c (amd64_return_value): Likewise.
6822 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6823 * arm-tdep.c (arm_return_value): Likewise.
6824 * avr-tdep.c (avr_return_value): Likewise.
6825 * bfin-tdep.c (bfin_return_value): Likewise.
6826 * cris-tdep.c (cris_return_value): Likewise.
6827 * frv-tdep.c (frv_return_value): Likewise.
6828 * h8300-tdep.c (h8300_return_value): Likewise.
6829 (h8300h_return_value): Likewise.
6830 * hppa-tdep.c (hppa32_return_value): Likewise.
6831 (hppa64_return_value): Likewise.
6832 * i386-tdep.c (i386_return_value): Likewise.
6833 * ia64-tdep.c (ia64_return_value): Likewise.
6834 * iq2000-tdep.c (iq2000_return_value): Likewise.
6835 * lm32-tdep.c (lm32_return_value): Likewise.
6836 * m32c-tdep.c (m32c_return_value): Likewise.
6837 * m32r-tdep.c (m32r_return_value): Likewise.
6838 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6839 * m68k-tdep.c (m68k_return_value): Likewise.
6840 (m68k_svr4_return_value): Likewise.
6841 * m88k-tdep.c (m88k_return_value): Likewise.
6842 * mep-tdep.c (mep_return_value): Likewise.
6843 * microblaze-tdep.c (microblaze_return_value): Likewise.
6844 * mn10300-tdep.c (mn10300_return_value): Likewise.
6845 * moxie-tdep.c (moxie_return_value): Likewise.
6846 * mt-tdep.c (mt_return_value): Likewise.
6847 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6848 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6849 (ppc_sysv_abi_broken_return_value): Likewise.
6850 (ppc64_sysv_abi_return_value): Likewise.
6851 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6852 * rl78-tdep.c (rl78_return_value): Likewise.
6853 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6854 * rx-tdep.c (rx_return_value): Likewise.
6855 * s390-tdep.c (s390_return_value): Likewise.
6856 * score-tdep.c (score_return_value): Likewise.
6857 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6858 (sh_return_value_fpu): Likewise.
6859 * sh64-tdep.c (sh64_return_value): Likewise.
6860 * sparc-tdep.c (sparc32_return_value): Likewise.
6861 * sparc64-tdep.c (sparc64_return_value): Likewise.
6862 * spu-tdep.c (spu_return_value): Likewise.
6863 * tic6x-tdep.c (tic6x_return_value): Likewise.
6864 * v850-tdep.c (v850_return_value): Likewise.
6865 * vax-tdep.c (vax_return_value): Likewise.
6866 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6867 * xtensa-tdep.c (xtensa_return_value): Likewise.
6868 * gdbarch.c: Regenerate.
6869 * gdbarch.h: Regenerate.
6870
29ca12b3
TT
68712012-05-15 Tom Tromey <[email protected]>
6872
6873 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6874
588ae58c
JB
68752012-05-15 Joel Brobecker <[email protected]>
6876
6877 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6878 of command in two error message.
6879
855a6e68
JB
68802012-05-15 Joel Brobecker <[email protected]>
6881
6882 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6883
d634f2de
JB
68842012-05-15 Joel Brobecker <[email protected]>
6885
6886 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6887
9cc815f5
JK
68882012-05-15 Jan Kratochvil <[email protected]>
6889
6890 * NEWS (show auto-load scripts-directory): Add forgotten command.
6891
6a609e58
JK
68922012-05-15 Jan Kratochvil <[email protected]>
6893
6894 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6895 parameters.
6896
ac1438b5
L
68972012-05-14 H.J. Lu <[email protected]>
6898
6899 * amd64-tdep.c: Include features/i386/x32.c and
6900 features/i386/x32-avx.c.
6901 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6902 initialize_tdesc_x32_avx.
6903
e7e0cddf
SS
69042012-05-14 Stan Shebs <[email protected]>
6905
6906 Add dynamic printf.
6907 * breakpoint.h (enum bptype): New type bp_dprintf.
6908 (struct breakpoint): New field extra_string.
6909 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6910 (create_breakpoint): Add extra_string arg.
6911 * breakpoint.c (dprintf_breakpoint_ops): New.
6912 (is_breakpoint): Add bp_dprintf.
6913 (bpstat_what): Add dprintf case.
6914 (bptype_string): Ditto.
6915 (print_one_breakpoint_location): Ditto.
6916 (init_bp_location): Ditto.
6917 (bkpt_print_mention): Ditto.
6918 (dprintf_style_enums): New array.
6919 (dprintf_style): New global.
6920 (dprintf_function): New global.
6921 (dprintf_channel): New global.
6922 (update_dprintf_command_list): New function.
6923 (update_dprintf_commands): New function.
6924 (init_breakpoint_sal): Add extra_string argument, handle it.
6925 (create_breakpoint_sal): Add extra_string argument.
6926 (create_breakpoints_sal): Add extra_string argument, update callers.
6927 (find_condition_and_thread): Add extra argument.
6928 (create_breakpoint): Add extra_string argument, record it.
6929 (dprintf_command): New function.
6930 (break_command_1): Add arg to create_breakpoint call.
6931 (handle_gnu_v3_exceptions): Ditto.
6932 (trace_command): Ditto.
6933 (ftrace_command): Ditto.
6934 (strace_command): Ditto.
6935 (bkpt_print_mention): Add dprintf case.
6936 (create_breakpoint_sal_default): Add extra_string argument.
6937 (_initialize_breakpoint): Add new commands.
6938 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6939 * python/py-breakpoint.c (bppy_init): Ditto.
6940 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6941
8ae38c14
MR
69422012-05-14 Maciej W. Rozycki <[email protected]>
6943
6944 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6945
9f676e66
SCR
69462012-05-14 Siva Chandra Reddy <[email protected]>
6947
6948 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6949 unsigned long long.
6950
7efc75aa
SCR
69512012-05-13 Siva Chandra Reddy <[email protected]>
6952
6953 Add a new function gdb.find_pc_line to the Python API.
6954 * NEWS (Python Scripting): Add entry about the new function.
6955 * python/python.c (gdbpy_find_pc_line): New function which
6956 implements gdb.find_pc_line.
6957 (GdbMethods): Add entry for the new function.
6958
70af3797
PA
69592012-05-12 Pedro Alves <[email protected]>
6960
6961 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6962 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6963
06da564e
EZ
69642012-05-12 Eli Zaretskii <[email protected]>
6965
6966 * inferior.c: Include completer.h
6967 (initialize_inferiors): Set completer of add-inferior to
6968 filename_completer.
6969
0288cee2
L
69702012-05-11 H.J. Lu <[email protected]>
6971
6972 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6973 gdbarch_ptr_bit for x32 core dump.
6974
f6537a2c
L
69752012-05-11 H.J. Lu <[email protected]>
6976
6977 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6978 and features/i386/x32-avx-linux.c.
6979
85d4a676
SS
69802012-05-11 Stan Shebs <[email protected]>
6981 Kwok Cheung Yeung <[email protected]>
6982
6983 * NEWS: Describe new info os commands.
6984 * common/linux-osdata.c (PID_T, TIME_T): Define.
6985 (MAX_PID_T_STRLEN): New.
6986 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6987 MAX_PID_T_STRLEN.
6988 (command_from_pid): Add comment. Change to use PID_T.
6989 (commandline_from_pid): Change to use PID_T.
6990 (user_from_pid): Add comment.
6991 (get_process_owner): Add comment. Change to use PID_T and
6992 MAX_PID_T_STRLEN.
6993 (get_number_of_cpu_cores): Add comment.
6994 (get_cores_used_by_process): Add comment. Change to use PID_T and
6995 MAX_PID_T_STRLEN.
6996 (linux_xfer_osdata_processes): Change to use PID_T and
6997 MAX_PID_T_STRLEN.
6998 (compare_processes): New function.
6999 (linux_xfer_osdata_processgroups): New function.
7000 (linux_xfer_osdata_threads): Change to use PID_T.
7001 (linux_xfer_osdata_fds): New function.
7002 (format_socket_state, print_sockets): New functions.
7003 (union socket_addr): New union.
7004 (linux_xfer_osdata_isockets): New function.
7005 (time_from_time_t, group_from_gid): New functions.
7006 (linux_xfer_osdata_shm): New function.
7007 (linux_xfer_osdata_sem): New function.
7008 (linux_xfer_osdata_msg): New function.
7009 (linux_xfer_osdata_modules): New function.
7010 (osdata_table): Add new entries.
7011 * common/buffer.c (buffer_xml_printf): Add support for long and
7012 long long format specifiers.
7013
f24afd6d
L
70142012-05-11 H.J. Lu <[email protected]>
7015
7016 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7017 (tdesc_x32_avx_linux): Likewise.
7018
7349ff92
JK
70192012-05-11 Jan Kratochvil <[email protected]>
7020
7021 Implement multi-component --with-auto-load-dir.
7022 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7023 entries.
7024 (--with-auto-load-safe-path): Update the default value description.
7025 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7026 New.
7027 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7028 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7029 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7030 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7031 "set auto-load scripts-directory".
7032 * config.in: Regenerate.
7033 * configure: Regenerate.
7034 * configure.ac (--with-auto-load-dir): New configure option.
7035 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7036
6dea1fbd
JK
70372012-05-11 Jan Kratochvil <[email protected]>
7038
7039 Provide $ddir substitution for --with-auto-load-safe-path.
7040 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7041 entries.
7042 * auto-load.c: Include observer.h.
7043 (auto_load_safe_path_vec_update): Call substitute_path_component for
7044 each component. New variable ddir_subst.
7045 (auto_load_gdb_datadir_changed): New function.
7046 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7047 AUTO_LOAD_SAFE_PATH. New comment.
7048 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7049 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7050 * config.in: Regenerate.
7051 * configure: Regenerate.
7052 * configure.ac (--auto-load-safe-path): Rename
7053 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7054 GDB_DATADIR/auto-load.
7055 * defs.h (substitute_path_component): New declaration.
7056 * top.c: Include observer.h.
7057 (set_gdb_datadir): New function.
7058 (init_main): Install it for "set data-directory".
7059 * utils.c (substitute_path_component): New function.
7060
b09aca3a
JK
70612012-05-11 Jan Kratochvil <[email protected]>
7062
7063 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7064 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7065 DEBUG_FILE_DIRECTORY. Handle multiple components of
7066 DEBUG_FILE_DIRECTORY.
7067
95554aad
TT
70682012-05-10 Tom Tromey <[email protected]>
7069
7070 * dwarf2read.c (recursively_write_psymbols): New function.
7071 (write_psymtabs_to_index): Use it.
7072
7073 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7074 field.
7075 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7076 (load_partial_comp_unit): Update.
7077 (queue_comp_unit): Add argument 'pretend_language'.
7078 (process_queue): Update.
7079 (psymtab_to_symtab_1): Skip dependencies that have a user.
7080 (load_partial_comp_unit_reader): Give meaning to the 'data'
7081 argument.
7082 (load_full_comp_unit): Add 'pretend_language' argument.
7083 (process_full_comp_unit): Add 'pretend_language' argument. Set
7084 language on CU.
7085 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7086 Update.
7087 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7088 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7089 Update.
7090 (prepare_one_comp_unit): Add 'pretend_language' argument.
7091
7092 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7093 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7094 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7095 (dw2_do_instantiate_symtab): Check whether symtab was read in
7096 before queueing.
7097 (dw2_instantiate_symtab): Add assertion. Call
7098 process_cu_includes.
7099 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7100 (partial_symtab_p): New typedef.
7101 (set_partial_user): New function.
7102 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7103 (scan_partial_symbols): Add imported CU to imported_symtabs.
7104 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7105 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7106 (get_symtab, recursively_compute_inclusions)
7107 (compute_symtab_includes, process_cu_includes)
7108 (process_imported_unit_die): New functions.
7109 (process_die) <DW_TAG_imported_unit>: New case.
7110 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7111
7112 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7113 comment.
7114 (struct partial_die_info) <locdesc>: Remove.
7115 <d>: New field.
7116 (process_psymtab_comp_unit): Add 'read_partial' argument.
7117 Update.
7118 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7119 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7120 (add_partial_symbol): Update.
7121 (process_die): Handle DW_TAG_partial_unit.
7122 (read_file_scope): Update comment.
7123 (load_partial_dies): Handle DW_TAG_imported_unit.
7124 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7125 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7126
e871fbb9
TT
71272012-05-10 Tom Tromey <[email protected]>
7128
7129 * cc-with-dwz.sh: New file.
7130
b5b04b5b
TT
71312012-05-10 Tom Tromey <[email protected]>
7132
7133 * symtab.h (struct symtab) <includes, user>: New fields.
7134 * block.h (struct block_iterator) <d, idx, which>: New fields.
7135 * block.c (initialize_block_iterator, find_iterator_symtab)
7136 (block_iterator_step, block_iter_name_step)
7137 (block_iter_match_step): New functions.
7138 (block_iterator_first, block_iterator_next)
7139 (block_iter_name_first, block_iter_name_next)
7140 (block_iter_match_first, block_iter_match_next): Rewrite.
7141 (get_block_symtab): New function.
7142
84a146c9
TT
71432012-05-10 Tom Tromey <[email protected]>
7144
7145 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7146 set_block_symtab.
7147 * jit.c (finalize_symtab): Use allocate_global_block,
7148 set_block_symtab.
7149 * buildsym.c (finish_block_internal): New function, from old
7150 finish_block.
7151 (finish_block): Rewrite.
7152 (end_symtab): Use finish_block_internal, set_block_symtab.
7153 * block.h (struct global_block): New.
7154 (allocate_global_block, set_block_symtab): Declare.
7155 * block.c (allocate_global_block, set_block_symtab): New
7156 functions.
7157
9439a077
TT
71582012-05-10 Tom Tromey <[email protected]>
7159
7160 * psymtab.c (partial_map_expand_apply): Add assertion.
7161 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7162 (psymtab_to_symtab): Find unshared psymtab.
7163 (dump_psymtab): Print including psymtabs.
7164 (recursively_search_psymtabs): New function.
7165 (expand_symtabs_matching_via_partial): Use it.
7166 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7167 fields.
7168 (enum psymtab_search_status): New.
7169
8157b174
TT
71702012-05-10 Tom Tromey <[email protected]>
7171
7172 * tracepoint.c (scope_info): Update.
7173 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7174 (find_pc_sect_symtab, search_symbols)
7175 (default_make_symbol_completion_list_break_on)
7176 (make_file_symbol_completion_list): Update.
7177 * symmisc.c (dump_symtab_1): Update.
7178 * stack.c (print_frame_args, iterate_over_block_locals)
7179 (print_frame_labels, iterate_over_block_arg_vars): Update.
7180 * python/py-block.c (block_object) <dict>: Remove.
7181 <block>: New field.
7182 <iter>: Change type.
7183 (blpy_iter): Update.
7184 (blpy_block_syms_iternext): Update.
7185 * psymtab.c (map_block): Use block iterators.
7186 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7187 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7188 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7189 * infrun.c (check_exception_resume): Update.
7190 * cp-support.c (make_symbol_overload_list_block): Update.
7191 * coffread.c (patch_opaque_types): Update.
7192 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7193 * block.h (struct block_iterator): New.
7194 (block_iterator_first, block_iterator_next, block_iter_name_first)
7195 (block_iter_name_next, block_iter_match_first)
7196 (block_iter_match_next): Declare.
7197 (ALL_BLOCK_SYMBOLS): Redefine.
7198 * block.c (block_iterator_first, block_iterator_next)
7199 (block_iter_name_first, block_iter_name_next)
7200 (block_iter_match_first, block_iter_match_next): New functions.
7201 * ada-lang.c (ada_add_block_symbols)
7202 (ada_make_symbol_completion_list): Use block iterator.
7203
a2ca7a52
TT
72042012-05-10 Tom Tromey <[email protected]>
7205
7206 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7207 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7208 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7209 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7210 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7211 Update.
7212
64ea88dc
JB
72132012-05-10 Joel Brobecker <[email protected]>
7214
7215 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7216 print-file-var-lib2.c, print-file-var-main.c and
7217 print-file-var.exp (located in gdb/testsuite/gdb.base).
7218
99a547d6
JB
72192012-05-10 Joel Brobecker <[email protected]>
7220
7221 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7222 try locating the symbol in the symbol's own objfile first, before
7223 extending the search to all objfiles.
7224 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7225 out of lookup_symbol_aux_symtabs.
7226 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7227 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7228 Do not search EXCLUDE_OBJFILE.
7229 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7230 (lookup_symbol_global): Search for matches in the block's objfile
7231 first, before searching all other objfiles.
7232
0ece64fd
TG
72332012-05-10 Tristan Gingold <[email protected]>
7234
7235 * printcmd.c (set_command): Add pre/post inc/dec.
7236
3d16a105
FCE
72372012-05-09 Frank Ch. Eigler <[email protected]>
7238
7239 * gdb.1: Document -ex option.
7240
2efbc0f7
JB
72412012-05-09 Joel Brobecker <[email protected]>
7242
7243 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7244 * inferior.h (AT_SYMBOL): Delete.
7245
2c76a0c7
JB
72462012-05-09 Joel Brobecker <[email protected]>
7247
7248 * mips-tdep.c (mips_push_dummy_code): New function.
7249 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7250 ON_STACK and install mips_push_dummy_code as our gdbarch
7251 push_dummy_code routine.
7252
9401a810
PA
72532012-05-09 Pedro Alves <[email protected]>
7254
7255 * target.c (set_maintenance_target_async_permitted): Rename to ...
7256 (set_target_async_command): ... this.
7257 (show_maintenance_target_async_permitted): Rename to ...
7258 (show_target_async_command): ... this.
7259 (initialize_targets): Adjust.
7260
3929b321
DE
72612012-05-08 Doug Evans <[email protected]>
7262
7263 * go-exp.y (classify_name): Add missing assignment of fields of
7264 yylval.ssym.
7265
c41535fd
EZ
72662012-05-08 Eli Zaretskii <[email protected]>
7267
7268 Display the ">" prompt in interactive mode while reading canned
7269 commands, even when the current interpreter is MI.
7270
7271 * interps.c (interp_set_temp): New function.
7272
7273 * interps.h (interp_set_temp): Add prototype.
7274
7275 * cli/cli-script.c (restore_interp): New cleanup function.
7276 (read_command_lines): Temporarily override the current interpreter
7277 with CLI and arrange for restoring the original one.
7278
c0749c4d
JS
72792012-05-12 Joel Sherrill <[email protected]>
7280
7281 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7282
d7333987
SDJ
72832012-05-07 Sergio Durigan Junior <[email protected]>
7284
7285 * probe.c (parse_probes): Move conditional to check for
7286 debuginfo files from here...
7287 * stap-probe.c (stap_get_probes): ... to here.
7288
649e6d92
MK
72892012-05-07 Mark Kettenis <[email protected]>
7290 H.J. Lu <[email protected]>
7291
7292 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7293 `movl %esp, %ebp' for the X32 ABI.
7294
f39c6ffd
TT
72952012-05-07 Tom Tromey <[email protected]>
7296
7297 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7298 get_DW_TAG_name.
7299 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7300 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7301 (dwarf_stack_op_name): Remove.
7302 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7303 (decode_locdesc): Use get_DW_OP_name.
7304 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7305 (dwarf2_compile_expr_to_ax): Likewise.
7306 (disassemble_dwarf_expression): Likewise.
7307 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7308
1e1f6591
CLT
73092012-05-07 Chung-Lin Tang <[email protected]>
7310
7311 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7312 (sh_linux_sigtramp_cache): New function.
7313 (sh_linux_sigreturn_init): New function.
7314 (sh_linux_rt_sigreturn_init): New function.
7315 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7316 patterns.
7317 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7318 syscall codes.
7319 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7320 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7321 (sh_linux_init_abi): Add init calls to register new tramp_frame
7322 definitions under 32-bit SH, update comments.
7323
545c08b4
PA
73242012-05-07 Pedro Alves <[email protected]>
7325
daac165e
PA
7326 PR gdb/10952
7327
545c08b4
PA
7328 * amd64-linux-tdep.c: Include glibc-tdep.h.
7329 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7330 gdbarch_skip_solib_resolver callback.
7331
af2c1515
JK
73322012-05-06 Jan Kratochvil <[email protected]>
7333
7334 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7335 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7336 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7337 (add_auto_load_safe_path): Change the error message.
7338 (_initialize_auto_load): Change the "safe-path" help text.
7339 * configure: Regenerate
7340 * configure.ac (--without-auto-load-safe-path): Set
7341 WITH_AUTO_LOAD_SAFE_PATH to /.
7342
1067f998
SDJ
73432012-05-05 Sergio Durigan Junior <[email protected]>
7344
7345 * stap-probe.h: Do not include unecessary `probe.h'.
7346
45dfa85a
AM
73472012-05-05 Alan Modra <[email protected]>
7348
7349 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7350 bfd_und_section_ptr.
7351 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7352 and bfd_com_section_ptr.
7353
cf093994
JB
73542012-05-04 Joel Brobecker <[email protected]>
7355
762ebb75 7356 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 7357
d40dc7a8
JB
73582012-05-04 Joel Brobecker <[email protected]>
7359
7360 * windows-nat.h (segment_register_p_ftype): New typedef.
7361 (windows_set_segment_register_p): Add declaration.
7362 * windows-nat.c (segment_register_p): New static global.
7363 (windows_set_segment_register_p): New function.
7364 (do_windows_fetch_inferior_registers): Add special handling
7365 for segment registers.
7366 * amd64-windows-nat.c: #include "amd64-tdep.h".
7367 (amd64_windows_segment_register_p): New function.
7368 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7369 * i386-windows-nat.c: #include "i386-tdep.h".
7370 (i386_windows_segment_register_p): New function.
7371 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7372
52b3699b
TG
73732012-05-04 Tristan Gingold <[email protected]>
7374
7375 * printcmd.c (set_command): Emit a warning if the expression is not
7376 an assignment.
7377
94c74239
JB
73782012-05-03 Joel Brobecker <[email protected]>
7379
7380 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7381 Make static.
7382
fcf57f19
SDJ
73832012-05-03 Sergio Durigan Junior <[email protected]>
7384
7385 * stap-probe.c (stap_is_operator): Change declaration.
7386 (stap_get_opcode): Change return value.
7387 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7388 `stap_parse_argument_1'.
7389
27d2932e
PA
73902012-05-03 Pedro Alves <[email protected]>
7391
7392 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7393 debug log.
7394
a20ee7a4
SCR
73952012-05-03 Siva Chandra Reddy <[email protected]>
7396
7397 Add two new methods global_block and static_block to gdb.Symtab
7398 objects.
7399 * NEWS (Python scripting): Add entry about the new methods.
7400 * python/py-symtab.c (stpy_global_block): New function which
7401 implements the gdb.Symtab.global_block() method.
7402 (stpy_static_block): New function which implements the
7403 gdb.Symtab.static_block() method.
7404 (symtab_object_methods): Add entries for the two new methods.
7405
943cb756
DE
74062012-05-03 Doug Evans <[email protected]>
7407
7408 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7409 files.
7410
f4644a3f
YQ
74112012-05-03 Yao Qi <[email protected]>
7412
7413 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7414 space.
7415 (i386_process_record): Ditto.
7416
ef61f180
JB
74172012-05-02 Joel Brobecker <[email protected]>
7418
7419 * infcall.c (unwind_on_signal_p): Make static.
7420
02f1df11
JB
74212012-05-02 Joel Brobecker <[email protected]>
7422
7423 * sol-thread.c (solaris_pid_to_str): Make static.
7424 (_initialize_sol_thread): Add prototype.
7425
39023530
JB
74262012-05-02 Joel Brobecker <[email protected]>
7427
7428 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7429
c6b0c501
CF
74302012-05-02 Christopher Faylor <[email protected]>
7431
7432 * MAINTAINERS: Remove myself.
7433
1ef71717
JK
74342012-05-02 Jan Kratochvil <[email protected]>
7435
7436 Fix --without-auto-load-safe-path for MS-Windows host platform.
7437 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7438
b31b86a7
EZ
74392012-05-02 Eli Zaretskii <[email protected]>
7440
7441 * gdb_curses.h: Undefine KEY_EVENT before including curses
7442 headers. Move "#undef MOUSE_MOVED" before any curses header
7443 inclusion.
7444
777532fc
SDJ
74452012-05-02 Sergio Durigan Junior <[email protected]>
7446
7447 * features/i386/i386-mmx-linux.c: Regenerate.
7448 * features/rs6000/powerpc-32.c: Likewise.
7449 * features/rs6000/powerpc-32l.c: Likewise.
7450 * features/rs6000/powerpc-403.c: Likewise.
7451 * features/rs6000/powerpc-403gc.c: Likewise.
7452 * features/rs6000/powerpc-405.c: Likewise.
7453 * features/rs6000/powerpc-505.c: Likewise.
7454 * features/rs6000/powerpc-601.c: Likewise.
7455 * features/rs6000/powerpc-602.c: Likewise.
7456 * features/rs6000/powerpc-603.c: Likewise.
7457 * features/rs6000/powerpc-604.c: Likewise.
7458 * features/rs6000/powerpc-64.c: Likewise.
7459 * features/rs6000/powerpc-64l.c: Likewise.
7460 * features/rs6000/powerpc-750.c: Likewise.
7461 * features/rs6000/powerpc-860.c: Likewise.
7462 * features/rs6000/powerpc-e500.c: Likewise.
7463 * features/rs6000/powerpc-e500l.c: Likewise.
7464 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7465 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7466 * features/rs6000/rs6000.c: Likewise.
7467
d71871bc
SDJ
74682012-05-02 Sergio Durigan Junior <[email protected]>
7469
7470 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7471 variable.
7472 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7473 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7474 (stap_parse_argument) <e>: Likewise.
7475 (handle_stap_probe) <byte_order>: Likewise.
7476
fd820528
DE
74772012-04-30 Doug Evans <[email protected]>
7478
7479 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7480 init_and_read_dies_worker. All callers updated.
7481 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7482 replaced with init_cutu_and_read_dies.
7483 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7484 (find_partial_die): Remove FIXME. Don't free current CU.
7485
ec3f619d 74862012-04-30 Sterling Augustine <[email protected]>
be36f02d
SA
7487
7488 * contrib: New directory.
7489 * contrib/test_pubnames_and_indexes.py: New file.
7490
fceca515
DE
74912012-04-30 Doug Evans <[email protected]>
7492
7493 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7494 All callers updated.
7495 (init_cu_die_reader): Verify the section is non-empty.
7496 (dwarf_decode_line_header): Don't dereference section->asection
7497 until we know the section is present.
7498
311fe7e1
SDJ
74992012-04-29 Sergio Durigan Junior <[email protected]>
7500
7501 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7502 probes.
7503
5977971a
YQ
75042012-04-29 Yao Qi <[email protected]>
7505
7506 * gdb-code-style.el: New hook gdb-markup-hook
7507 and gdb-comment-hook.
7508
dee91e82
DE
75092012-04-28 Doug Evans <[email protected]>
7510
3019eac3
DE
7511 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7512 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7513 objfile->obfd.
7514 * symfile.h (dwarf2_debug_sections): New member addr.
7515 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7516 (ctx_no_get_addr_index): New function.
7517 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7518 (ctx_no_get_addr_index): Declare.
7519 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7520 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7521 (dwarf_expr_ctx_funcs): Update.
7522 (needs_get_addr_index): New function.
7523 (needs_frame_ctx_funcs): Update.
7524 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7525 * dwarf2read.c: #include "gdbcore.h".
7526 (dwarf2_per_objfile): New members addr, dwo_files.
7527 (dwarf2_elf_names): Add entry for addr.
7528 (struct dwo_section_names): New type.
7529 (dwo_section_names): New static global.
7530 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7531 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7532 old debug_types_section member updated to use this.
7533 Rename member debug_types_section to info_or_types_section,
7534 all uses updated.
7535 (signatured_type): Rename member type_offset to type_offset_in_tu,
7536 all uses updated. New member type_offset_in_section.
7537 (struct dwo_sections): New type.
7538 (struct dwo_unit): New type.
7539 (struct dwo_file): New type.
7540 (die_reader_specs): New member dwo_file.
7541 (dwarf2_locate_sections): Watch for .debug_addr.
7542 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7543 (dwarf2_read_section): Get bfd of section from bfd's asection,
7544 instead of objfile.
7545 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7546 (create_signatured_type_table_from_index): Initialize
7547 sig_type->info_or_types_section.
7548 (dw2_get_file_names): Statement lists for type units with DWO files
7549 live in the DWO file.
7550 (create_debug_types_hash_table): New function.
7551 (create_all_type_units): Rewrite.
7552 (init_cu_die_reader): New arg dwo_file, all callers updated.
7553 (init_and_read_dies_worker): Get section from
7554 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7555 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7556 continue reading the CU/TU from there.
7557 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7558 updated. Get section from this_cu->info_or_types_section.
7559 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7560 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7561 DW_FORM_GNU_str_index.
7562 (hash_dwo_file, eq_dwo_file): New functions.
7563 (allocate_dwo_file_hash_table): New function.
7564 (hash_dwo_unit, eq_dwo_unit): New functions.
7565 (allocate_dwo_unit_table): New function.
7566 (dwarf2_locate_dwo_sections): New function.
7567 (struct create_dwo_info_table_data): New type.
7568 (create_debug_info_hash_table_reader): New function.
7569 (create_debug_info_hash_table): New function.
7570 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7571 (lookup_dwo_file): New function.
7572 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7573 (free_dwo_file, free_dwo_file_cleanup): New functions.
7574 (free_dwo_file_from_slot, free_dwo_files): New functions.
7575 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7576 (dwarf2_record_block_ranges): Ditto.
7577 (read_partial_die): Ditto.
7578 (process_enumeration_scope): Update to use type_offset_in_section.
7579 (read_full_die_1): New function.
7580 (read_full_die): Rewrite.
7581 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7582 DW_FORM_GNU_str_index.
7583 (read_addr_index_1, read_addr_index): New functions.
7584 (read_addr_index_from_leb128): New function.
7585 (struct dwarf2_read_addr_index_data): New type.
7586 (dwarf2_read_addr_index_reader): New function.
7587 (dwarf2_read_addr_index): New function.
7588 (read_str_index): New function.
7589 (leb128_size): New function.
7590 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7591 If processing a type unit from a DWO file, get the line section
7592 from the DWO file.
7593 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7594 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7595 DW_FORM_GNU_str_index.
7596 (lookup_die_type): Check whether section offset of type's die is
7597 known before looking it up. Remove assert. Condition can
7598 legimately happen for inter-cu type references.
7599 (dwarf_attr_name): Handle Fission attributes.
7600 (dwarf_form_name): Handle Fission forms.
7601 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7602 DW_FORM_GNU_str_index.
7603 (follow_die_sig): Update to use type_offset_in_section.
7604 (decode_locdesc): New case DW_OP_GNU_addr_index.
7605 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7606 DW_FORM_GNU_str_index.
7607 (cu_debug_loc_section): New function.
7608 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7609 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7610 Free DWO files if present.
7611 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7612
dee91e82
DE
7613 Refactor DIE reading.
7614 * dwarf2read.c (dwarf2_per_objfile): Replace members
7615 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7616 (die_reader_specs): New member "die_section". Temporarily make
7617 member "buffer" non-const, pending constifying all info_ptr uses.
7618 (die_reader_func_ftype): New typedef.
7619 (dw2_get_file_names_reader): New function.
7620 (dw2_get_file_names): Rewrite.
7621 (read_and_check_type_unit_head): Rename arg type_offset to
7622 type_offset_in_tu.
7623 (create_all_type_units): Improve debugging message.
7624 Improve dummy type unit check.
7625 (init_cu_die_reader): New arg "section". All callers updated.
7626 (init_and_read_dies_worker): New function.
7627 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7628 (init_cutu_and_read_dies_no_follow): New function.
7629 (init_cutu_and_read_dies_simple): New function.
7630 (process_psymtab_comp_unit_reader): New function.
7631 (process_psymtab_comp_unit): Delete args section,
7632 is_debug_types_section. Rewrite. All callers updated.
7633 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7634 All callers updated. Rewrite.
7635 (load_partial_comp_unit_reader): New function.
7636 (load_partial_comp_unit): Rewrite.
7637 (skip_children): New arg reader. Delete args buffer, cu.
7638 All callers updated.
7639 (skip_one_die): New arg reader. Delete args buffer, cu.
7640 All callers updated.
7641 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7642 All callers updated.
7643 (load_full_comp_unit_reader): New function.
7644 (load_full_comp_unit): Rewrite.
7645 (read_comp_unit): Delete.
7646 (read_die_and_children_1): Delete, contents moved ...
7647 (read_die_and_children): ... here.
7648 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7649 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7650 All callers updated.
7651 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7652 All callers updated.
7653 (find_partial_die): Rewrite load_all_dies support.
7654 (read_attribute_value): New arg reader. Delete args abfd, cu.
7655 All callers updated.
7656 (read_attribute): New arg reader. Delete args abfd, cu.
7657 All callers updated.
7658 (load_full_type_unit): Add assert.
7659 (read_signatured_type_reader): New function.
7660 (read_signatured_type): Rewrite.
7661 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7662 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7663 All callers updated. Set per_cu->cu = NULL after freeing it.
7664 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7665 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7666 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7667 (set_die_type): Update.
7668 (get_die_type_at_offset): Update.
7669 (read_file_scope): Call prepare_one_comp_unit.
7670 (read_type_unit_scope): Ditto.
7671 (prepare_one_comp_unit): Set producer if present.
7672
72d59e0d
SDJ
76732012-04-28 Sergio Durigan Junior <[email protected]>
7674
7675 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7676 gettext function on `error'.
7677
0fefef59
DE
76782012-04-27 Doug Evans <[email protected]>
7679
7680 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7681 is empty.
7682
28106bc2
SDJ
76832012-04-27 Sergio Durigan Junior <[email protected]>
7684 Tom Tromey <[email protected]>
7685
7686 * breakpoint.c (struct breakpoint_objfile_data)
7687 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7688 <exception_probes>: New fields.
7689 (free_breakpoint_probes): New function.
7690 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7691 `_Unwind_DebugHook'.
7692 (create_exception_master_breakpoint): Likewise.
7693 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7694 * infrun.c: Including necessary header files for handling SystemTap
7695 probes.
7696 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7697 via SystemTap probes.
7698 (check_exception_resume): Remove `func' argument. Handle exception
7699 unwinding breakpoint set via a SystemTap probe.
7700 (insert_exception_resume_from_probe): New function.
7701
55aa24fb
SDJ
77022012-04-27 Sergio Durigan Junior <[email protected]>
7703 Tom Tromey <[email protected]>
7704 Jan Kratochvil <[email protected]>
7705
7706 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7707 (COMMON_OBS): Likewise.
7708 (HFILES_NO_SRCDIR): Add `probe'.
7709 * NEWS: Mention support for static and SystemTap probes.
7710 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7711 SystemTap probes' arguments parser.
7712 * arm-linux-tdep.c: Including headers needed to perform the parsing
7713 of SystemTap probes' arguments.
7714 (arm_stap_is_single_operand): New function.
7715 (arm_stap_parse_special_token): Likewise.
7716 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7717 probes' arguments parser.
7718 * ax-gdb.c (require_rvalue): Removing static declaration.
7719 (gen_expr): Likewise.
7720 * ax-gdb.h (gen_expr): Declaring function.
7721 (require_rvalue): Likewise.
7722 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7723 (bkpt_probe_breakpoint_ops): New variable.
7724 (momentary_breakpoint_from_master): Set the `probe' value.
7725 (add_location_to_breakpoint): Likewise.
7726 (break_command_1): Using proper breakpoint_ops according to the
7727 argument passed by the user in the command line.
7728 (bkpt_probe_insert_location): New function.
7729 (bkpt_probe_remove_location): Likewise.
7730 (bkpt_probe_create_sals_from_address): Likewise.
7731 (bkpt_probe_decode_linespec): Likewise.
7732 (tracepoint_probe_create_sals_from_address): Likewise.
7733 (tracepoint_probe_decode_linespec): Likewise.
7734 (tracepoint_probe_breakpoint_ops): New variable.
7735 (trace_command): Using proper breakpoint_ops according to the
7736 argument passed by the user in the command line.
7737 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7738 static probes on breakpoints and tracepoints.
7739 * breakpoint.h (struct bp_location) <probe>: New field.
7740 * cli-utils.c (skip_spaces_const): New function.
7741 (extract_arg): Likewise.
7742 * cli-utils.h (skip_spaces_const): Likewise.
7743 (extract_arg): Likewise.
7744 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7745 * configure.ac: Append `stap-probe.o' to be generated when ELF
7746 support is present.
7747 * configure: Regenerate.
7748 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7749 * elfread.c: Include `probe.h' and `arch-utils.h'.
7750 (probe_key): New variable.
7751 (elf_get_probes): New function.
7752 (elf_get_probe_argument_count): Likewise.
7753 (elf_evaluate_probe_argument): Likewise.
7754 (elf_compile_to_ax): Likewise.
7755 (elf_symfile_relocate_probe): Likewise.
7756 (stap_probe_key_free): Likewise.
7757 (elf_probe_fns): New variable.
7758 (elf_sym_fns): Add `sym_probe_fns' value.
7759 (elf_sym_fns_lazy_psyms): Likewise.
7760 (elf_sym_fns_gdb_index): Likewise.
7761 (_initialize_elfread): Initialize objfile cache for static
7762 probes.
7763 * gdb_vecs.h (struct probe): New forward declaration.
7764 (probe_p): New VEC declaration.
7765 * gdbarch.c: Regenerate.
7766 * gdbarch.h: Regenerate.
7767 * gdbarch.sh (stap_integer_prefix): New variable.
7768 (stap_integer_suffix): Likewise.
7769 (stap_register_prefix): Likewise.
7770 (stap_register_suffix): Likewise.
7771 (stap_register_indirection_prefix): Likewise.
7772 (stap_register_indirection_suffix): Likewise.
7773 (stap_gdb_register_prefix): Likewise.
7774 (stap_gdb_register_suffix): Likewise.
7775 (stap_is_single_operand): New function.
7776 (stap_parse_special_token): Likewise.
7777 (struct stap_parse_info): Forward declaration.
7778 * i386-tdep.c: Including headers needed to perform the parsing
7779 of SystemTap probes' arguments.
7780 (i386_stap_is_single_operand): New function.
7781 (i386_stap_parse_special_token): Likewise.
7782 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7783 probes' arguments parser.
7784 * i386-tdep.h (i386_stap_is_single_operand): New function.
7785 (i386_stap_parse_special_token): Likewise.
7786 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7787 * mipsread.c (ecoff_sym_fns): Likewise.
7788 * objfiles.c (objfile_relocate1): Support relocation for static
7789 probes.
7790 * parse.c (prefixify_expression): Remove static declaration.
7791 (initialize_expout): Likewise.
7792 (reallocate_expout): Likewise.
7793 * parser-defs.h (initialize_expout): Declare function.
7794 (reallocate_expout): Likewise.
7795 (prefixify_expression): Likewise.
7796 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7797 of SystemTap probes' arguments.
7798 (ppc_stap_is_single_operand): New function.
7799 (ppc_stap_parse_special_token): Likewise.
7800 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7801 probes' arguments parser.
7802 * probe.c: New file, for generic statically defined probe support.
7803 * probe.h: Likewise.
7804 * s390-tdep.c: Including headers needed to perform the parsing of
7805 SystemTap probes' arguments.
7806 (s390_stap_is_single_operand): New function.
7807 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7808 probes' arguments parser.
7809 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7810 * stap-probe.c: New file, for SystemTap probe support.
7811 * stap-probe.h: Likewise.
7812 * symfile.h: Include `gdb_vecs.h'.
7813 (struct sym_probe_fns): New struct.
7814 (struct sym_fns) <sym_probe_fns>: New field.
7815 * symtab.c (init_sal): Initialize `probe' field.
7816 * symtab.h (struct probe): Forward declaration.
7817 (struct symtab_and_line) <probe>: New field.
7818 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7819 locations.
7820 (stop_tracing): Likewise.
7821 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7822
22d2b532
SDJ
78232012-04-27 Sergio Durigan Junior <[email protected]>
7824 Tom Tromey <[email protected]>
7825
7826 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7827 and to compile agent expressions.
7828 * infrun.c (siginfo_make_value): New argument `ignore'.
7829 (siginfo_funcs): New struct.
7830 (_initialize_infrun): New argument when calling
7831 `create_internalvar_type_lazy'.
7832 * thread.c (thread_id_make_value): New argument `ignore'.
7833 (thread_funcs): New struct.
7834 (_initialize_thread): New argument when calling
7835 `create_internalvar_type_lazy'.
7836 * tracepoint.c (sdata_make_value): New argument `ignore'.
7837 (sdata_funcs): New struct.
7838 (_initialize_tracepoint): New argument when calling
7839 `create_internalvar_type_lazy'.
7840 * value.c (make_value): New struct.
7841 (create_internalvar_type_lazy): New argument `data'.
7842 (compile_internalvar_to_ax): New function.
7843 (value_of_internalvar): Properly handling `make_value' case.
7844 (clear_internalvar): Likewise.
7845 (show_convenience): Adding `TRY_CATCH' block.
7846 * value.h (internalvar_make_value): Delete, replace by...
7847 (struct internalvar_funcs): ... this.
7848 (create_internalvar_type_lazy) <fun>: Delete argument.
7849 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7850 (compile_internalvar_to_ax): New function.
7851 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7852 (tlb_funcs): New struct.
7853 (_initialize_windows_tdep): New argument when calling
7854 `create_internalvar_type_lazy'.
7855
91da1414
MW
78562012-04-27 Mark Wielaard <[email protected]>
7857
7858 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7859 see whether it is an address or a constant offset from DW_AT_low_pc.
7860 (dwarf2_record_block_ranges): Likewise.
7861 (read_partial_die): Likewise.
7862
4ab9d8ec
MW
78632012-04-26 Mark Wielaard <[email protected]>
7864
7865 * MAINTAINERS (Write After Approval): Add myself to the list.
7866
a0911fd0
MR
78672012-04-26 Maciej W. Rozycki <[email protected]>
7868
7869 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7870 (proc_prettyprint_signal): Likewise.
7871 (proc_prettyprint_faultset): Likewise.
7872 (proc_prettyprint_fault): Likewise.
7873 (proc_prettyprint_actionset): Likewise.
7874 (proc_prettyprint_flags): Move to new proc-flags.c section.
7875 (proc_prettyfprint_flags): New prototype.
7876 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7877 (proc_syscall, proc_cursig): Likewise.
7878 (proc_set_kill_on_last_close): Likewise.
7879 (proc_unset_kill_on_last_close): Likewise.
7880 (proc_set_watchpoint): Make static.
7881 (proc_delete_dead_threads): Likewise.
7882 (procfs_set_watchpoint): Likewise.
7883 (_initialize_procfs): Add prototype.
7884 * proc-events.c: Include proc-utils.h.
7885 (init_syscall_table): Make static.
7886 * proc-api.c (_initialize_proc_api): Add prototype.
7887 * proc-flags.c: Include proc-utils.h.
7888
9009e1ae
MR
78892012-04-26 Maciej W. Rozycki <[email protected]>
7890
7891 * configure.ac: Add AC_ARG_PROGRAM.
7892 * configure: Regenerate.
7893
4fae6e18
JK
78942012-04-26 Jan Kratochvil <[email protected]>
7895
7896 Fix DW_AT_lower_bound defaults for DWARF-4+.
7897 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7898 high. New variable low_default_is_valid. Implement DWARF-4+
7899 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7900 no default by the DWARF standard.
7901
14132e89 79022012-04-26 Maciej W. Rozycki <[email protected]>
f782ad9b 7903 Maciej W. Rozycki <[email protected]>
14132e89
MR
7904
7905 * infrun.c (handle_inferior_event): Move the check for return
7906 trampolines ahead of the check for function trampolines.
7907 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7908 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7909 (mips_str_mips16_ret_stub): Likewise.
7910 (mips_str_call_fp_stub): Likewise.
7911 (mips_str_call_stub): Likewise.
7912 (mips_str_fn_stub): Likewise.
7913 (mips_str_pic): Likewise.
7914 (mips_in_frame_stub): New function.
7915 (mips_unwind_pc): Return the return address rather than the PC
7916 if the PC of an intermediate frame is inside a call thunk.
7917 (mips_is_stub_suffix): New function.
7918 (mips_is_stub_mode): Likewise.
7919 (mips_get_mips16_fn_stub_pc): Likewise.
7920 (mips_skip_mips16_trampoline_code): Update to handle all the
7921 currently generated stub types. Don't recurse into __fn_stub
7922 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7923 Use cooked register accesses.
7924 (mips_in_return_stub): Reintroduce function.
7925 (mips_skip_trampoline_code): Traverse trampolines recursively.
7926 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7927
518f0db5 79282012-04-26 Joel Brobecker <[email protected]>
7929
7930 GDB 7.4.1 released.
7931
3184d3f9
JL
79322012-04-26 Jonathan Larmour <[email protected]>
7933
7934 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7935 * features/arm-with-m-vfp-d16.xml: New file. Describes
7936 Cortex-M with VFPv4-sp-d16 FPU register layout.
7937 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7938 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7939 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7940 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7941 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7942
b6201d44
DE
79432012-04-25 Doug Evans <[email protected]>
7944
7945 * cli/cli-decode.c (print_doc_line): Use stream instead of
7946 current_uiout.
7947
4e2f8df6
SDJ
79482012-04-25 Sergio Durigan Junior <[email protected]>
7949
7950 * features/arm-with-iwmmxt.c: Regenerate.
7951 * features/arm-with-m-fpa-layout.c: Likewise.
7952 * features/arm-with-m.c: Likewise.
7953 * features/arm-with-neon.c: Likewise.
7954 * features/arm-with-vfpv2.c: Likewise.
7955 * features/arm-with-vfpv3.c: Likewise.
7956 * features/mips-dsp-linux.c: Likewise.
7957 * features/mips-linux.c: Likewise.
7958 * features/mips64-dsp-linux.c: Likewise.
7959 * features/mips64-linux.c: Likewise.
7960 * features/s390-linux32.c: Likewise.
7961 * features/s390-linux32v1.c: Likewise.
7962 * features/s390-linux32v2.c: Likewise.
7963 * features/s390-linux64.c: Likewise.
7964 * features/s390-linux64v1.c: Likewise.
7965 * features/s390-linux64v2.c: Likewise.
7966 * features/s390x-linux64.c: Likewise.
7967 * features/s390x-linux64v1.c: Likewise.
7968 * features/s390x-linux64v2.c: Likewise.
7969 * features/tic6x-c62x-linux.c: Likewise.
7970 * features/tic6x-c62x.c: Likewise.
7971 * features/tic6x-c64x-linux.c: Likewise.
7972 * features/tic6x-c64x.c: Likewise.
7973 * features/tic6x-c64xp-linux.c: Likewise.
7974 * features/tic6x-c64xp.c: Likewise.
7975 * target-descriptions.c: Only generate `field_type' and `type'
7976 variables when needed.
7977
2def3e66
JB
79782012-04-25 Fredrik Hederstierna <[email protected]>
7979
7980 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7981
a766d390
DE
79822012-04-25 Doug Evans <[email protected]>
7983
7984 Initial pass at Go language support.
7985 * NEWS: Mention Go.
7986 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7987 go-valprint.c.
7988 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7989 (YYFILES): Add go-exp.c.
7990 (YYOBJ): Add go-exp.o.
7991 (local-maintainer-clean): Delete go-exp.c.
7992 * defs.h (enum language): Add language_go.
7993 * dwarf2read.c: #include "go-lang.h".
7994 (fixup_go_packaging): New function.
7995 (process_full_comp_unit): Call it when processing Go CUs.
7996 (dwarf2_physname): Add Go support.
7997 (read_file_scope): Handle missing language spec for GNU Go.
7998 (set_cu_language): Handle DW_LANG_Go.
7999 * go-exp.y: New file.
8000 * go-lang.h: New file.
8001 * go-lang.c: New file.
8002 * go-typeprint.c: New file.
8003 * go-valprint.c: New file.
8004 * symtab.c: #include "go-lang.h".
8005 (symbol_set_language): Handle language_go.
8006 (symbol_find_demangled_name, symbol_set_names): Ditto.
8007 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8008
4e2af517
JM
80092012-04-24 Jim Meyering <[email protected]>
8010
8011 avoid a few strncpy-induced buffer overruns
8012 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8013 fname and psargs before trying to concatenate.
8014 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8015 "name" before applying strchr.
8016
b77b7f52
SCR
80172012-04-25 Siva Chandra Reddy <[email protected]>
8018
8019 * CONTRIBUTE: Use unified diff instead of context diff when
8020 generating patches.
8021
6321c22a
MR
80222012-04-24 Maciej W. Rozycki <[email protected]>
8023
8024 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8025 code. Handle JR.HB correctly.
8026
742c84f6
MR
80272012-04-24 Maciej W. Rozycki <[email protected]>
8028
8029 * mips-tdep.c
8030 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8031 with the other MIPS16 helpers.
8032
7fc7e0c3
SDJ
80332012-04-24 Sergio Durigan Junior <[email protected]>
8034
8035 * observer.sh: Conditionally declare `args', thus cleaning up
8036 unused instances of this variable.
8037
20388dd6
YQ
80382012-04-24 Yao Qi <[email protected]>
8039
8040 Revert this patch to allow breakpoint always-inserted
8041 in record target.
8042 2011-12-05 Pedro Alves <[email protected]>
f782ad9b
AS
8043 * breakpoint.c: Include record.h.
8044 (breakpoints_always_inserted_mode): Return false when the record
8045 target is in use.
20388dd6
YQ
8046
8047 * breakpoint.c (iterate_over_bp_locations): New.
8048 * breakpoint.h: Declare.
8049 New typedef walk_bp_location_callback.
8050 * record.c (record_open): Call record_init_record_breakpoints.
8051 (record_sync_record_breakpoints): New.
8052 (record_init_record_breakpoints): New.
8053 * NEWS: Mention supporting breakpoint always-inserted mode in
8054 record target.
8055
4734f50e
MK
80562012-04-24 Marc Khouzam <[email protected]>
8057
8058 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8059 any thread.
8060
c326b90e
YQ
80612012-04-24 Yao Qi <[email protected]>
8062
8063 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8064 (is_catchpoint): ... it.
8065 (print_one_breakpoint_location): Caller update.
8066 * breakpoint.h: Update declaration.
8067
d8fb5a1e
DM
80682012-04-23 David S. Miller <[email protected]>
8069
8070 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8071
34431a2a
TT
80722012-04-23 Tom Tromey <[email protected]>
8073
8074 * buildsym.c (add_free_pendings): Remove.
8075 * buildsym.h (add_free_pendings): Remove.
8076
4568ecf9
DE
80772012-04-23 Doug Evans <[email protected]>
8078
8079 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8080 attr.u.unsnd instead of attr.u.addr.
8081 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8082 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8083 DW_FORM_ref_udata.
8084 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8085 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8086 DW_FORM_ref_udata.
8087 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8088
dca9aa3a
MR
80892012-04-23 Maciej W. Rozycki <[email protected]>
8090
8091 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8092 (mips_o32_return_value): Likewise.
8093 (mips_o64_return_value): Likewise.
8094
c8ea1972
PH
80952012-04-21 Paul Hilfinger <[email protected]>
8096
8097 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
8098 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8099 their treatment in eval.c.
c8ea1972 8100
8d1b3521
DM
81012012-04-21 David S. Miller <[email protected]>
8102
8103 * sparc-tdep.c (X_DISP10): Define.
8104 (sparc_analyze_control_transfer): Handle compare-and-branch.
8105
03145bf4
JL
81062012-04-21 Jonathan Larmour <[email protected]>
8107
8108 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8109 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8110
004159a2 81112012-04-20 Nigel Stephens <[email protected]>
f782ad9b 8112 Maciej W. Rozycki <[email protected]>
004159a2
MR
8113
8114 * mips-tdep.c (mips_float_register_p): New function.
8115 (mips_convert_register_float_case_p): Use mips_float_register_p.
8116 (mips_register_type): Likewise.
8117 (mips_print_register): Likewise.
8118 (print_gp_register_row): Likewise.
8119 (mips_print_registers_info): Likewise.
8120
7f0e6aae
MR
81212012-04-20 Shun-Yen Lu <[email protected]>
8122
8123 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8124 of mips16 symbols.
8125
bc17beea
AP
81262012-04-20 Andrew Pinski <[email protected]>
8127
8128 * MAINTAINERS (Write After Approval): Add myself to the list.
8129
1730a5a5
SDJ
81302012-04-20 Sergio Durigan Junior <[email protected]>
8131
8132 * MAINTAINERS: Update my e-mail address.
8133
38ea300a
PA
81342012-04-20 Pedro Alves <[email protected]>
8135
8136 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8137 $srcdir.
8138 * configure: Regenerate.
8139
111dfaae
SDJ
81402012-04-20 Sergio Durigan Junior <[email protected]>
8141
8142 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8143 declaration.
8144 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8145
4fb2c64a
JK
81462012-04-20 Jan Kratochvil <[email protected]>
8147
8148 Fix compilation compatibility with python-2.4
8149 * python/py-type.c (convert_field): Cast ADDRSTRING for
8150 PyObject_SetAttrString as non-const. New comment.
8151
6328eb38
TT
81522012-04-19 Tom Tromey <[email protected]>
8153
8154 * top.c (quit_target): Use all_cleanups.
8155 * main.c (captured_command_loop): Use all_cleanups.
8156 * exceptions.c (throw_exception): Use all_cleanups.
8157
c971b7fa
PA
81582012-04-19 Pedro Alves <[email protected]>
8159
8160 * Makefile.in (GNULIB_BUILDDIR): New.
8161 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8162 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8163 (CLEANDIRS). Remove gnulib/import.
8164 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8165 (all-lib): Ditto.
8166 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8167 (gnulib/import/Makefile): Replace gnulib/import with
8168 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8169 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8170 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8171 acx_configure_dir.m4.
8172 * acinclude.m4: Include acx_configure_dir.m4.
8173 * acx_configure_dir.m4: New file.
8174 * aclocal.m4: Regenerate.
a09130f9
PA
8175 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8176 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8177 (GNULIB): New variable.
8178 (GNULIB_STDINT_H): Adjust.
8179 (AC_OUTPUT): Don't output gnulib/Makefile.
8180 * gdb/defs.h: Include build-gnulib/config.h.
8181 * aclocal.m4: Regenerate.
8182 * config.in: Regenerate.
8183 * configure: Regenerate.
8184
8185 * gnulib/Makefile.in: New file.
8186 * gnulib/configure.ac: New file.
8187 * gnulib/aclocal.m4: New file.
8188 * gnulib/config.in: New file.
8189 * gnulib/configure: New file.
c971b7fa
PA
8190 * gnulib/: Re-run gnulib-tool to adjust.
8191
b10faa68
DE
81922012-04-19 Doug Evans <[email protected]>
8193
8194 * cleanups.h (struct cleanup): Move to cleanups.c.
8195 (make_cleanup_dtor_ftype): New typedef.
8196 (make_cleanup_dtor): Use it.
8197 (ALL_CLEANUPS): Replace with ...
8198 (all_cleanups): ... this. Declare. All uses updated.
8199 * cleanups.c: #include "gdb_assert.h".
8200 (sentinel_cleanup): New static global.
8201 (SENTINEL_CLEANUP): Define.
8202 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8203 (make_my_cleanup2): Assert result is non-NULL.
8204 (all_cleanups): New function.
8205 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8206 of NULL.
8207
d8c267cc
PA
82082012-04-19 Pedro Alves <[email protected]>
8209
8210 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8211 Adjust paths to gnulib imported files.
8212
809277f8
PA
82132012-04-19 Pedro Alves <[email protected]>
8214
8215 * gnulib/: Move whole directory ...
8216 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8217 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8218 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8219 (aclocal_m4_deps): Adjust.
8220 * aclocal.m4: Regenerate.
8221 * configure: Regenerate.
8222 * configure.ac: Adjust AC_OUTPUT output.
8223
aad9eab9
YQ
82242012-04-19 Yao Qi <[email protected]>
8225
8226 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8227 (vec.o): New rule.
8228 * vec.c: Move it ...
8229 * common/vec.c: ... here.
8230 * vec.h: Move it ...
8231 * common/vec.h: ... here.
8232
48fe4669
YQ
82332012-04-19 Yao Qi <[email protected]>
8234
8235 * gdb-code-style.el: New.
8236
770d76d7
PA
82372012-04-18 Pedro Alves <[email protected]>
8238
8239 Update gnulib from latest git.
8240 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8241
8242 * gnulib/Makefile.am: Update.
8243 * gnulib/dummy.c: Update.
8244 * gnulib/extra/arg-nonnull.h: Update.
8245 * gnulib/extra/c++defs.h: Update.
8246 * gnulib/extra/update-copyright: Update.
8247 * gnulib/extra/warn-on-use.h: Update.
8248 * gnulib/inttypes.in.h: Update.
8249 * gnulib/m4/00gnulib.m4: Update.
8250 * gnulib/m4/extensions.m4: Update.
8251 * gnulib/m4/gnulib-cache.m4: Update.
8252 * gnulib/m4/gnulib-common.m4: Update.
8253 * gnulib/m4/gnulib-comp.m4: Update.
8254 * gnulib/m4/gnulib-tool.m4: Update.
8255 * gnulib/m4/include_next.m4: Update.
8256 * gnulib/m4/inttypes-pri.m4: Update.
8257 * gnulib/m4/inttypes.m4: Update.
8258 * gnulib/m4/longlong.m4: Update.
8259 * gnulib/m4/memchr.m4: Update.
8260 * gnulib/m4/memmem.m4: Update.
8261 * gnulib/m4/mmap-anon.m4: Update.
8262 * gnulib/m4/multiarch.m4: Update.
8263 * gnulib/m4/onceonly.m4: Update.
8264 * gnulib/m4/stddef_h.m4: Update.
8265 * gnulib/m4/stdint.m4: Update.
8266 * gnulib/m4/string_h.m4: Update.
8267 * gnulib/m4/warn-on-use.m4: Update.
8268 * gnulib/m4/wchar_h.m4: Update.
8269 * gnulib/m4/wchar_t.m4: Update.
8270 * gnulib/m4/wint_t.m4: Update.
8271 * gnulib/memchr.c: Update.
8272 * gnulib/memmem.c: Update.
8273 * gnulib/stddef.in.h: Update.
8274 * gnulib/stdint.in.h: Update.
8275 * gnulib/str-two-way.h: Update.
8276 * gnulib/string.in.h: Update.
8277 * gnulib/wchar.in.h: Update.
8278
8279 * gnulib/extra/arg-nonnull.h: Delete.
8280 * gnulib/extra/c++defs.h: Delete.
8281 * gnulib/extra/warn-on-use.h: Delete.
8282 * gnulib/m4/wchar_h.m4: Delete.
8283 * gnulib/m4/wint_t.m4: Delete.
8284 * gnulib/wchar.in.h: Delete.
8285
8286 * gnulib/extra/snippets/arg-nonnull.h: New.
8287 * gnulib/extra/snippets/c++defs.h: New.
8288 * gnulib/extra/snippets/warn-on-use.h: New.
8289
8290 * aclocal.m4: Regenerate.
8291 * config.in: Regenerate.
8292 * configure: Regenerate.
8293 * gnulib/Makefile.in: Regenerate.
8294
174e088e
PA
82952012-04-18 Pedro Alves <[email protected]>
8296
8297 Reimport the update-copyright module from gnulib
8298 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8299
8300 * configure: Regenerate.
8301 * gnulib/Makefile.am: Update.
8302 * gnulib/Makefile.in: Regenerate.
8303 * gnulib/extra/update-copyright: Update.
8304 * gnulib/m4/gnulib-cache.m4: Update.
8305 * gnulib/m4/gnulib-comp.m4: Update.
8306
7f533142
JB
83072012-04-18 Tristan Gingold <[email protected]>
8308
8309 * configure.ac (aix): Put -lpthread into libs.
8310 * configure: Regenerate.
8311
001822aa
TT
83122012-04-18 Tom Tromey <[email protected]>
8313
8314 * linespec.c (convert_linespec_to_sals): Don't use
8315 SYMBOL_OBJ_SECTION.
8316 (compare_msymbols): Arguments are minsym_and_objfile, not
8317 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8318
db026a31
PA
83192012-04-18 Pedro Alves <[email protected]>
8320
8321 Revert gnulib/ part of:
8322 2011-01-01 Joel Brobecker <[email protected]>
8323 Copyright year update in most files (performed by copyright.sh).
8324
12df843f
JK
83252012-04-18 Jan Kratochvil <[email protected]>
8326
8327 Fix 64-bit constants on 32-bit hosts.
8328 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8329 from unsigned long to ULONGEST.
8330 (read_signed_leb128): Change declaration return type from long to
8331 LONGEST.
8332 (dwarf2_const_value_attr): Change declaration parameter value from long
8333 to LONGEST.
8334 (dwarf2_compute_name): Change variable value from long to LONGEST.
8335 (read_unsigned_leb128): Change return type, variable result and some
8336 casts from unsigned long to ULONGEST.
8337 (read_signed_leb128): Change return type, variable result and some
8338 casts from long to LONGEST.
8339 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8340 value from long to LONGEST.
8341 (dwarf2_const_value): Change variable value from long to LONGEST.
8342 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8343 plongest and hex_string.
8344 * symtab.h (struct general_symbol_info): Change ivalue from long to
8345 LONGEST, remove the comment.
8346 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8347 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8348
14e75d8e
JK
83492012-04-18 Siddhesh Poyarekar <[email protected]>
8350
8351 PR symtab/7259:
8352 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8353 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
8354 (ada_discrete_type_low_bound): Fix function comment. Use
8355 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
8356 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8357 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8358 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8359 Use TYPE_FIELD_ENUMVAL.
8360 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8361 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8362 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8363 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8364 TYPE_CODE_ENUM.
8365 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8366 * dwarf2read.c (process_enumeration_scope): Likewise.
8367 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8368 field.bitpos.
8369 (class StructMainTypePrettyPrinter): Support also
8370 FIELD_LOC_KIND_ENUMVAL.
8371 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8372 TYPE_CODE_ENUM.
8373 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8374 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8375 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8376 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8377 field enumval.
8378 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8379 accommodate enumval.
8380 (struct call_site): Adjust loc_kind to accommodate enumval.
8381 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8382 (TYPE_FIELD_ENUMVAL): New macros.
8383 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8384 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8385 TYPE_CODE_ENUM.
8386 * p-typeprint.c (pascal_type_print_base): Likewise.
8387 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8388 enumval.
8389 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8390 * python/py-type.c (convert_field): New variable addrstring. Use
8391 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8392 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8393 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8394 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8395 TYPE_CODE_ENUM.
8396 * valprint.c (generic_val_print): Likewise.
8397
380bca97
DE
83982012-04-17 Doug Evans <[email protected]>
8399
dcc07052
DE
8400 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8401
380bca97
DE
8402 * dwarf2read.c: Whitespace fixes.
8403 (lookup_signatured_type): Tweak comment.
8404 (get_die_type_at_offset): Fix comment.
8405
ec92004f
JB
84062012-04-17 Joel Brobecker <[email protected]>
8407
8408 * xcoffread.c (xcoff_secnum_to_sections): New function.
8409 (secnum_to_section, secnum_to_bfd_section): Reimplement
8410 using xcoff_secnum_to_sections. Rename "secnum" parameter
8411 into "n_scnum".
8412 (RECORD_MINIMAL_SYMBOL): Delete.
8413 (record_minimal_symbol): New function.
8414 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8415 by call to record_minimal_symbol and set misc_func_recorded
8416 to 1. Set last_csect_sec to the XCOFF section index instead
8417 of GDB's section_offset index. Update calls to
8418 prim_record_minimal_symbol_and_info to pass the BFD section
8419 as well.
8420
40301fb7
JB
84212012-04-17 Joel Brobecker <[email protected]>
8422
8423 * xcoffread.c (read_xcoff_symtab): Delete variables
8424 last_csect_val and last_csect_sec and associated code.
8425
e0088cfd
DE
84262012-04-17 Doug Evans <[email protected]>
8427
58d5e2c3
DE
8428 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8429 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8430 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8431 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8432
c27f5738
DE
8433 * cleanups.h: New file.
8434 * cleanups.c: New file.
8435 * Makefile.in (SFILES): Add cleanups.c.
8436 (HFILES_NO_SRCDIR): Add cleanups.h.
8437 (COMMON_OBS): Add cleanups.o.
8438 * defs.h (struct cleanup): Moved to cleanups.h.
8439 (do_cleanups,do_final_cleanups): Ditto.
8440 (discard_cleanups,discard_final_cleanups): Ditto
8441 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8442 (save_cleanups,save_final_cleanups): Ditto.
8443 (restore_cleanups,restore_final_cleanups): Ditto.
8444 (null_cleanup): Ditto.
8445 (make_my_cleanup,make_my_cleanup2): Ditto.
8446 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8447 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8448 (do_cleanups,do_final_cleanups): Ditto.
8449 (discard_cleanups,discard_final_cleanups): Ditto
8450 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8451 (save_cleanups,save_final_cleanups): Ditto.
8452 (restore_cleanups,restore_final_cleanups): Ditto.
8453 (null_cleanup): Ditto.
8454 (make_my_cleanup,make_my_cleanup2): Ditto.
8455 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8456
e0088cfd
DE
8457 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8458 make_my_cleanup.
8459 (make_cleanup_dyn_string_delete): Ditto.
8460 (make_cleanup_ui_file_delete): Ditto.
8461 (make_cleanup_ui_out_redirect_pop): Ditto.
8462 (make_cleanup_free_section_addr_info): Ditto.
8463 (make_cleanup_restore_integer): Ditto.
8464 (make_cleanup_unpush_target): Ditto.
8465 (make_cleanup_value_free_to_mark): Ditto.
8466 (make_cleanup_value_free): Ditto.
8467 (make_cleanup_free_so): Ditto.
8468
4dc84fd1
JK
84692012-04-17 Jan Kratochvil <[email protected]>
8470
8471 New option "set debug auto-load".
8472 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8473 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8474 (auto_load_safe_path_vec_update)
8475 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8476 if DEBUG_AUTO_LOAD.
8477 (file_is_auto_load_safe): New parameters debug_fmt and ....
8478 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8479 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8480 caller by explanatory string.
8481 (_initialize_auto_load): Register "set debug auto-load".
8482 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8483 and ....
8484 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8485 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8486 by explanatory string.
8487 * main.c (captured_main): Likewise.
8488 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8489 (source_section_scripts): Likewise.
8490
bccbefd2
JK
84912012-04-17 Jan Kratochvil <[email protected]>
8492
8493 New option "set auto-load safe-path".
8494 * NEWS: New commands "set auto-load safe-path"
8495 and "show auto-load safe-path".
8496 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8497 (auto_load_safe_path, auto_load_safe_path_vec)
8498 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8499 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8500 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8501 (source_gdb_script_for_objfile): New variable is_safe. Call
8502 file_is_auto_load_safe. Return if it is not.
8503 (struct loaded_script): New field loaded.
8504 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8505 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8506 output "Missing" to "No".
8507 (_initialize_auto_load): New variable cmd. Initialize
8508 auto_load_safe_path. Register "set auto-load safe-path",
8509 "show auto-load safe-path" and "add-auto-load-safe-path".
8510 * auto-load.h (maybe_add_script): Add parameter loaded.
8511 (file_is_auto_load_safe): New declaration.
8512 * config.in: Regenerate.
8513 * configure: Regenerate.
8514 * configure.ac: New parameters --with-auto-load-safe-path
8515 and --without-auto-load-safe-path.
8516 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8517 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8518 * main.c (captured_main): Check file_is_auto_load_safe for
8519 LOCAL_GDBINIT.
8520 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8521 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8522 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8523 not.
8524
bf88dd68
JK
85252012-04-17 Jan Kratochvil <[email protected]>
8526
8527 auto-load: Implementation.
8528 * NEWS: New descriptions for "info auto-load",
8529 "info auto-load gdb-scripts", "info auto-load python-scripts",
8530 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8531 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8532 and "show auto-load-scripts". New description for "set auto-load",
8533 "show auto-load", "set auto-load gdb-scripts",
8534 "show auto-load gdb-scripts", "set auto-load python-scripts",
8535 "show auto-load python-scripts", "set auto-load local-gdbinit",
8536 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8537 "show auto-load libthread-db".
8538 * auto-load.c: Remove include python/python-internal.h. Add includes
8539 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8540 cli/cli-setshow.h.
8541 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8542 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8543 (gdbpy_global_auto_load): Rename to ...
8544 (global_auto_load): ... here.
8545 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8546 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8547 (script_language_gdb, source_gdb_script_for_objfile): New.
8548 (struct loaded_script): New field language.
8549 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8550 LANGUAGE.
8551 (maybe_add_script): Add parameter language. Drop redundant
8552 entry.full_path initialization. Initialize entry.language and
8553 (*slot)->language.
8554 (auto_load_objfile_script): Change parameter suffix to language.
8555 Remove the call of maybe_add_script.
8556 Call language->source_script_for_objfile.
8557 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8558 New.
8559 (collect_matching_scripts): Adjust it for
8560 struct collect_matching_scripts_data.
8561 (auto_load_info_scripts_pattern_nl): New variable.
8562 (info_auto_load_scripts): Rename to ...
8563 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8564 for struct collect_matching_scripts_data.
8565 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8566 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8567 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8568 (auto_load_info_cmdlist_get): New.
8569 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8570 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8571 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8572 "info auto-load local-gdbinit".
8573 * auto-load.h (struct script_language): New.
8574 (gdbpy_global_auto_load): Rename to ...
8575 (global_auto_load): ... here.
8576 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8577 (auto_load_local_gdbinit_loaded): New declarations.
8578 (maybe_add_script): New parameter language.
8579 (auto_load_objfile_script): Change parameter suffix to language.
8580 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8581 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8582 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8583 declarations.
8584 * linux-thread-db.c: Include auto-load.h and ctype.h.
8585 (auto_load_thread_db, show_auto_load_thread_db): New.
8586 (struct thread_db_info): New field filename.
8587 (delete_thread_db_info): Call xfree for FILENAME.
8588 (try_thread_db_load): Initialize FILENAME.
8589 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8590 if !AUTO_LOAD_THREAD_DB.
8591 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8592 (_initialize_thread_db): Install auto_load_thread_db
8593 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8594 as "info auto-load libthread-db".
8595 * main.c (captured_main): Rename gdbpy_global_auto_load to
8596 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8597 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8598 (print_gdb_help): Extend the help for 'local init file'.
8599 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8600 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8601 (auto_load_scripts): Rename to ...
8602 (auto_load_python_scripts): ... here, update the comment.
8603 (gdbpy_load_auto_script_for_objfile): New declaration.
8604 (show_auto_load_python_scripts, script_language_python)
8605 (gdbpy_load_auto_script_for_objfile): New.
8606 (source_section_scripts): Refactor the code.
8607 (load_auto_scripts_for_objfile): Rename to ...
8608 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8609 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8610 (info_auto_load_python_scripts): New.
8611 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8612 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8613 Register "set auto-load-scripts" as its deprecated alias. Register
8614 "info auto-load python-scripts". Register "info auto-load-scripts" as
8615 its deprecated alias.
8616 (load_auto_scripts_for_objfile): Rename to ...
8617 (gdbpy_load_auto_scripts_for_objfile): ... here.
8618 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8619 (gdbpy_load_auto_scripts_for_objfile): ... here.
8620
e2207b9a
JK
86212012-04-17 Jan Kratochvil <[email protected]>
8622
8623 auto-load: Move files.
8624 * Makefile.in (SFILES): Add auto-load.c.
8625 (HFILES_NO_SRCDIR): Add auto-load.h.
8626 (COMMON_OBS): Add auto-load.o.
8627 (distclean): Change .gdbinit for gdb-gdb.gdb.
8628 * auto-load.c: New file, with parts from python/py-auto-load.c.
8629 * auto-load.h: New file, with parts from python/python.h.
8630 * configure: Regenerate.
8631 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8632 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8633 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8634 * main.c: Include auto-load.h.
8635 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8636 command.h, observer.h and progspace.h to auto-load.c. Add include
8637 auto-load.h.
8638 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8639 (struct loaded_script, auto_load_pspace_data)
8640 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8641 (hash_loaded_script_entry, eq_loaded_script_entry)
8642 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8643 (maybe_add_script): Move to auto-load.c.
8644 (source_section_scripts): Change maybe_add_script parameters passing,
8645 use script_not_found_warning_print.
8646 (clear_section_scripts, auto_load_objfile_script)
8647 (auto_load_new_objfile, loaded_script_ptr)
8648 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8649 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8650 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8651 auto_load_new_objfile and info_auto_load_scripts initizations to
8652 auto-load.c.
8653 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8654
e4ab2fad
JK
86552012-04-17 Jan Kratochvil <[email protected]>
8656
8657 Code cleanup.
8658 * charset.c (find_charset_names): Remove variables ix and elt.
8659 Use free_char_ptr_vec.
8660 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8661 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8662 debugdir_end. New variable debugdir_len.
8663 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8664 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8665 declarations.
8666 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8667 and elt. Use free_char_ptr_vec.
8668 * source.c (add_path): Remove variables argv, arg and argv_index.
8669 New variables dir_vec, back_to, ix and name.
8670 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8671 make_cleanup_freeargv. Remove variable separator. Simplify the code
8672 no longer expecting DIRNAME_SEPARATOR.
8673 (openp): Remove variable p, p1 and len. New variables dir_vec,
8674 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8675 no longer expecting DIRNAME_SEPARATOR.
8676 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8677 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8678 debugdir_end.
8679 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8680 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8681 (dirnames_to_char_ptr_vec): New functions.
8682
5ee4ed9f
JK
86832012-04-17 Jan Kratochvil <[email protected]>
8684
8685 Code cleanup.
8686 * source.c (add_path): Remove always true conditional 'p == 0' and
8687 unindent its code block.
8688
f41f5e61
PA
86892012-04-17 Pedro Alves <[email protected]>
8690
8691 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8692 (FIELD_BITPOS_LVAL): ... this.
8693 (FIELD_BITPOS): New.
8694 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8695 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8696 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8697 SET_FIELD_BITPOS.
8698 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8699 SET_FIELD_BITPOS.
8700 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8701 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8702 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8703 SET_FIELD_BITPOS.
8704
945b3a32
JK
87052012-04-17 Jan Kratochvil <[email protected]>
8706
8707 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8708 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8709 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8710 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8711 * jv-lang.c (java_link_class_type): Likewise, once.
8712 * stabsread.c (read_enum_type): Likewise.
8713
42476b70
YQ
87142012-04-16 Yao Qi <[email protected]>
8715
8716 * common/agent.c (agent_run_command): Add one more parameter `len'.
8717 Update callers.
8718 * common/agent.h: Update declaration.
8719 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8720 Update.
8721 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8722
8264ba82
AG
87232012-04-14 Anton Gorenkov <[email protected]>
8724
8725 PR mi/13393
8726 * value.c (value_actual_type): New function.
8727 * value.h (value_actual_type): New declaration.
8728 * varobj.c (update_type_if_necessary): New function.
8729 (varobj_create): Call value_actual_type instead of
8730 value_type.
8731 (install_dynamic_child): distinct changed and type changed MI variable
8732 objects.
8733 (update_dynamic_varobj_children): Updated for install_dynamic_child
8734 change. All callers updated.
a09130f9 8735 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8736 the value changed and RTTI is used to determine the type.
8737 (create_child_with_value): Call value_actual_type instead of
8738 value_type.
a09130f9 8739 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8740 specify whether the given value should be casted to enclosing type.
8741 All callers updated.
8742
55a8c076
YQ
87432012-04-14 Yao Qi <[email protected]>
8744
8745 Import gnulib module inttypes from git
8746 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8747 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8748 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8749 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8750 * aclocal.m4, config.in, configure: Regenerated.
8751 * gnulib/Makefile.am: Update.
8752 * gnulib/Makefile.in: Update.
8753 * gnulib/m4/gnulib-cache.m4: Update.
8754 * gnulib/m4/gnulib-comp.m4: Update.
8755 * gnulib/inttypes.in.h: New.
8756 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8757 * gnulib/m4/inttypes.m4: New.
55a8c076 8758
ca7781d2
LM
87592012-04-13 Luis Machado <[email protected]>
8760
8761 * infrun.c (resume): Update PC address to the real PC after
8762 preparing to do displaced stepping.
8763
e319fa28
DE
87642012-04-12 Doug Evans <[email protected]>
8765
8766 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8767 All callers updated.
8768
15add3f5
MK
87692012-04-12 Mark Kettenis <[email protected]>
8770
8771 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8772
52dc124a
DE
87732012-04-12 Doug Evans <[email protected]>
8774
0e50663e
DE
8775 * dwarf2read.c (create_all_type_units): Renamed from
8776 create_debug_types_hash_table. All callers updated.
8777
52dc124a
DE
8778 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8779 local type_sig to sig_type, type_offset to type_offset_in_tu.
8780 (hash_signatured_type): Renamed from hash_type_signature,
8781 all callers updated.
8782 (eq_signatured_type): Renamed from eq_type_signature,
8783 all callers updated.
8784 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8785 (process_enumeration_scope): Ditto.
8786 (lookup_signatured_type_at_offset): Ditto.
8787 (load_full_type_unit, read_signatured_type): Ditto.
8788
248fd3bf
YQ
87892012-04-12 Yao Qi <[email protected]>
8790
8791 * remote.c (async_remote_interrupt): Correct function name in
8792 debug message.
8793 (async_remote_interrupt_twice): Ditto.
8794
bc3aa6c3
DE
87952012-04-11 Yuanhui Zhang <[email protected]>
8796
8797 * source.c (find_and_open_source): Consistently pass resulting
8798 full path through xfullpath.
8799
9e529e1d
JK
88002012-04-11 Jan Kratochvil <[email protected]>
8801
8802 Provide more specific displaced-stepping memory error message.
8803 * infrun.c (displaced_step_prepare): New variable status. Call
8804 target_read_memory instead of read_memory, provide more specific
8805 error message.
8806
82e0cec1
TG
88072012-04-11 Tristan Gingold <[email protected]>
8808
8809 PR gdb/13901
8810 * darwin-nat.c (darwin_execvp): Revert previous patch.
8811
d987a266
TG
88122012-04-11 Tristan Gingold <[email protected]>
8813
8814 PR gdb/13901
8815 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8816 in case of change.
8817
016b7430
TG
88182012-04-11 Tristan Gingold <[email protected]>
8819
8820 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8821 warning.
8822
06fc020f
SCR
88232012-04-11 Siva Chandra Reddy <[email protected]>
8824
8825 New command 'explore' which helps explore values and types in
8826 scope.
8827 * NEWS: Add an entry about the new 'explore' command.
8828 * data-directory/Makefile.in: Add gdb/command/explore.py
8829 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8830 command using the GDB Python API.
06fc020f 8831
de0919f8 88322012-04-10 Maciej W. Rozycki <[email protected]>
34b192ce
MR
8833
8834 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8835 extension in jump target calculation.
8836
de0919f8 88372012-04-10 Maciej W. Rozycki <[email protected]>
9e8da49c
MR
8838
8839 * mips-tdep.c (mips32_next_pc): Handle JALX.
8840
2f26ef89
YQ
88412012-04-10 Yao Qi <[email protected]>
8842
8843 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8844
2e505b66
YQ
88452012-04-10 Yao Qi <[email protected]>
8846
8847 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8848 and gnulib/m4/gnulib-tool.m4.
8849
0d99eb77
DE
88502012-04-10 Doug Evans <[email protected]>
8851
8852 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8853 (load_partial_dies): Clarify comment.
8854 (find_partial_die): Support rereading type units.
8855 Clarify CU handling, if we know offset is in CU, don't search for the
8856 containing CU. Add comment regarding memory waste.
8857
9a82b8ff
L
88582012-04-10 H.J. Lu <[email protected]>
8859
8860 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8861 i386/x32-avx and i386/x32-avx-linux.
8862 (i386/x32-expedite): New.
8863 (i386/x32-linux-expedite): Likewise.
8864 (i386/x32-avx-expedite): Likewise.
8865 (i386/x32-avx-linux-expedite): Likewise.
8866 ($(outdir)/i386/x32.dat): Likewise.
8867 ($(outdir)/i386/x32-linux.dat): Likewise.
8868 ($(outdir)/i386/x32-avx.dat): Likewise.
8869 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8870
8871 * features/i386/x32-avx-linux.xml: New file.
8872 * features/i386/x32-avx.xml: Likewise.
8873 * features/i386/x32-core.xml: Likewise.
8874 * features/i386/x32-linux.xml: Likewise.
8875 * features/i386/x32.xml: Likewise.
8876
8877 * features/i386/x32-avx-linux.c: New. Generated.
8878 * features/i386/x32-avx.c: Likewise.
8879 * features/i386/x32-linux.c: Likewise.
8880 * features/i386/x32.c: Likewise.
8881 * regformats/i386/x32-avx-linux.dat: Likewise.
8882 * regformats/i386/x32-avx.dat: Likewise.
8883 * regformats/i386/x32-linux.dat: Likewise.
8884 * regformats/i386/x32.dat: Likewise.
8885
ee41036f
TG
88862012-04-10 Tristan Gingold <[email protected]>
8887
8888 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8889 code to kill the inferior.
8890
a7aa5b8a
MK
88912012-04-09 Mark Kettenis <[email protected]>
8892
8893 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8894 defines.
8895 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8896 defines.
a09130f9 8897 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8898 (yyvsp): New defines.
8899 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8900 defines.
8901 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8902 defines.
8903 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8904 defines.
8905 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8906 defines.
8907 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8908 defines.
8909
fb57d452
MK
89102012-04-09 Mark Kettenis <[email protected]>
8911
a09130f9 8912 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8913 (sparc64_store_arguments): Fix coding style.
8914
cdc7b32f
MK
89152012-04-07 Mark Kettenis <[email protected]>
8916
8917 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8918 complex floats, adjust some related comments and tighten a related
8919 assertion.
8920 (sparc64_extract_return_value): Handle complex floats.
8921
7adf1e79
DE
89222012-04-07 Doug Evans <[email protected]>
8923
8924 * dwarf2read.c (load_partial_dies): Change condition to assert.
8925
50f1ae7b
DE
89262012-04-06 Doug Evans <[email protected]>
8927
8928 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8929 "mov %rsp,%rbp".
8930
55fa75c3
KB
89312012-04-05 Kevin Buettner <[email protected]>
8932
8933 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8934 fencepost error.
8935 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8936 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8937 architecture.
8938
40e084e1
KS
89392012-04-05 Keith Seitz <[email protected]>
8940
8941 * linespec.c (decode_compound): Remove.
8942 (enum offset_relative_sign): New enum.
8943 (struct line_offset): New struct.
8944 (struct linespec): New struct.
8945 (struct linespec_state): Move file_symtabs,
8946 user_filename, and user_function into struct linespec.
8947 Make result an anonymous struct holding vectors of
8948 symbolp and minsym_and_objfile_d.
8949 Add language member.
8950 (enum ls_token_type): New enum.
8951 (linespec_keywords): New array.
8952 (struct ls_token): New struct.
8953 (struct ls_parser): New struct.
8954 (linespec_lexer_lex_number): New function.
8955 (linespec_lexer_lex_keyword): New function.
8956 (is_ada_operator): New function.
8957 (skip_quote_char): New function.
8958 (copy_token_string): New function.
8959 (is_closing_quote_enclosed): New function.
8960 (find_parameter_list_end): New function.
8961 (linespec_lexer_lex_string): New function.
8962 (linespec_lexer_lex_one): New function.
8963 (linespec_lexer_consume_token): New function.
8964 (linespec_lexer_peek_token): New function.
8965 (cplusplus_error): Remove unused function.
8966 (find_methods): Update comment.
8967 (find_toplevel_char): Return const.
8968 (is_objc_method_format): Remove unused function.
8969 (find_toplevel_string): New function.
8970 (is_linespec_boundary): Remove.
8971 (symbol_not_found_error): New function.
8972 (find_method_overload_end): Remove function.
8973 (unexpected_linespec_error): New function.
8974 (keep_name_info): Remove.
8975 (linespec_parse_line_offset): New function.
8976 (linespec_parse_basic): New function.
8977 (canonicalize_linespec): New function.
8978 (decode_line_internal): Remove.
8979 (create_sals_line_offset): New function adapted from
8980 decode_all_digits.
8981 (convert_linespec_to_sals): New function.
8982 (parse_linespec): New function.
8983 (linespec_parser_new): New function.
8984 (linespec_state_destructor): Change parameter type to
8985 struct linespec_state *.
8986 Add language parameter.
8987 Remove freeing of moved members.
8988 (linespec_parser_delete): New function.
8989 (decode_line_full): Use parse_linespec and linespec_parser_new.
8990 (decode_line_1): Likewise.
8991 (decode_indirect): Rename to ...
8992 (linespec_expression_to_pc): ... this and rewrite
8993 to simply find CORE_ADDR, storing this result for later
8994 conversion to SALs.
8995 (locate_first_half): Remove.
8996 (deocde_objc): Add parameter LS.
8997 Initialize new struct collect_info members.
8998 Handle minimal symbols, too.
8999 (decode_compound): Delete.
9000 (lookup_prefix_sym): Rewrite.
9001 (compare_msymbols): New function.
9002 (find_method): Rewrite.
9003 Do not call cplusplus_error.
9004 (symtabs_from_filename): Rewrite.
9005 (collect_function_symbols): Delete.
9006 (find_function_symbols): Rewrite without ARGPTR-style
9007 processing.
9008 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9009 (decode_dollar): Adapted and renamed to ...
9010 (linespec_parse_variable): ... this.
9011 (find_linespec_symbols): New function.
9012 (decode_label): Adapted and renamed to ...
9013 (find_label_symbols): ... this.
9014 (decode_digits_list_mode): Add and use LS argument.
9015 (decode_digits_ordinary): Likewise.
9016 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9017 If in list mode, allow any symbol class. Otherwise, only
9018 permit LOC_BLOCK symbols.
9019 (minsym_found): Update comments.
9020 (search_minsyms_for_name): Do not convert the matching symbol
9021 into a SAL. Simply push the symbol and objfile into the
9022 result vector.
9023 (decode_variable): Delete. Contents adapted into
9024 find_linespec_symbols.
9025
9026 * cp-support.c (SKIP_SPACE): Remove.
9027 (operator_tokens): Remove unused global.
9028 (cp_validate_operator): Remove.
9029 * cp-support.h (cp_validate_operator): Remove declaration.
9030
a72c8f6a
JK
90312012-04-03 Jan Kratochvil <[email protected]>
9032
9033 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9034 for TYPE_VPTR_FIELDNO.
9035 * valprint.c (valprint_check_validity): Make it global, move the
9036 function comment ...
9037 * value.h (valprint_check_validity): ... to this new declaration.
9038
cf9bb588
TG
90392012-04-02 Tristan Gingold <[email protected]>
9040
9041 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9042 the STATE32 api for i386 state.
9043 (i386_darwin_store_inferior_registers): Likewise.
9044
17092398
TG
90452012-04-02 Tristan Gingold <[email protected]>
9046
9047 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9048 SS offset.
9049 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9050 format_string.
9051
ece0061f
TG
90522012-04-02 Tristan Gingold <[email protected]>
9053
9054 PR gdb/13901
d987a266 9055 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 9056
cf65ecd3
JK
90572012-04-02 Jan Kratochvil <[email protected]>
9058
9059 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9060
9bc3523d
TT
90612012-03-30 Tom Tromey <[email protected]>
9062
9063 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9064 of TRY_CATCH. Fix error handling.
9065 * python/py-value.c (convert_value_from_python): Move 'old'
9066 declaration to innermost scope.
9067
b1ed564a
JB
90682012-03-29 Joel Brobecker <[email protected]>
9069 Andrey Smirnov <[email protected]>
9070
9071 -Wshadow warning fix.
9072 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9073 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9074 Adjust code accordingly.
9075
cb8e9b97
JB
90762012-03-29 Joel Brobecker <[email protected]>
9077
9078 * ada-lang.c (symbol_completion_add): Rename parameter
9079 "encoded" into "encoded_p". Ajust code and documentation
9080 accordingly.
9081
c0af1706
JB
90822012-03-29 Joel Brobecker <[email protected]>
9083 Andrey Smirnov <[email protected]>
9084
9085 -Wshadow warning fix.
9086 * ada-lang.c (symbol_completion_add): Rename parameter
9087 "wild_match" into wild_match_p. Update code and documentation
9088 accordingly.
9089
6ea35997
JB
90902012-03-29 Joel Brobecker <[email protected]>
9091
9092 * ada-lang.c (symbol_completion_match): Rename parameter
9093 "encoded" into "encoded_p". Ajust code and documentation
9094 accordingly.
9095
e701b3c0
JB
90962012-03-29 Joel Brobecker <[email protected]>
9097 Andrey Smirnov <[email protected]>
9098
9099 -Wshadow warning fix.
9100 * ada-lang.c (symbol_completion_match): Rename parameter
9101 "wild_match" into "wild_match_p". Adjust code and function
9102 documentation accordingly.
9103
5e2336be
JB
91042012-03-29 Joel Brobecker <[email protected]>
9105 Andrey Smirnov <[email protected]>
9106
9107 -Wshadow warning fix.
9108 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9109 "symbol_info" into "info". Adjust code accordingly.
9110 (ada_lookup_symbol): Likewise.
9111
9f88c959
JB
91122012-03-29 Joel Brobecker <[email protected]>
9113
9114 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9115 of this function's documentation.
9116
82ccd55e
JB
91172012-03-29 Joel Brobecker <[email protected]>
9118 Andrey Smirnov <[email protected]>
9119
9120 -Wshadow warning fix.
9121 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9122 variable into "wild_match_p". Adjust code accordingly.
9123
d0a8ab18
JB
91242012-03-29 Joel Brobecker <[email protected]>
9125 Andrey Smirnov <[email protected]>
9126
9127 -Wshadow warning fix.
9128 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9129 parameter into "wild_match_p". Adjust code accordingly.
9130 Document this parameter in the function description.
9131
48b78332
JB
91322012-03-29 Joel Brobecker <[email protected]>
9133 Andrey Smirnov <[email protected]>
9134
9135 -Wshadow warning fix.
9136 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9137 "wild_match" parameter to "wild_match_p" (-Wshadow).
9138
2e6e0353
JB
91392012-03-29 Joel Brobecker <[email protected]>
9140
9141 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9142 in function documentation.
9143
dc4024cd
JB
91442012-03-29 Joel Brobecker <[email protected]>
9145 Andrey Smirnov <[email protected]>
9146
9147 -Wshadow warning fix.
9148 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9149 variable into wild_match_p. Adjust code accordingly.
9150
6c88661c
JB
91512012-03-29 Joel Brobecker <[email protected]>
9152 Andrey Smirnov <[email protected]>
9153
9154 * ada-valprint.c (ada_val_print_1): Move the code handling
9155 TYPE_CODE_ENUM inside its own lexical block. Declare
9156 variables len and val there, instead of in the function's
9157 top level block. Avoid declaring deref_val again in a way
9158 that shadows another variable of the same name declared
9159 in one of the up-level blocks. Just re-use the up-level
9160 variable instead.
9161
4e5c77fe
JB
91622012-03-29 Joel Brobecker <[email protected]>
9163
9164 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9165 Replace block_found argument by symbol_info. Adjust
9166 implementation accordingly. Add function documentation.
9167 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9168 Fix documentation.
9169 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9170 * ada-exp.y (write_object_renaming): Adjust to new
9171 ada_lookup_encoded_symbol API.
9172
1c0ac8c7
JB
91732012-03-29 Joel Brobecker <[email protected]>
9174
9175 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9176 documentation.
9177
2aaed979
KB
91782012-03-28 Rathish C <[email protected]>
9179
9180 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9181 (v850_register_name): Add the mpu and fpu register names.
9182 (v850e_register_name): Add the mpu and fpu register names.
9183 (v850e2_register_name): New function.
a09130f9 9184 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
9185 bfd_mach_v850e2v3.
9186
927fbba6
JB
91872012-03-28 Joel Brobecker <[email protected]>
9188
9189 * NEWS: Add entry for Ada varobj support.
9190
d32cafc7
JB
91912012-03-28 Joel Brobecker <[email protected]>
9192
9193 * varobj.c (default_value_is_changeable_p): New function,
9194 extracted from varobj_value_is_changeable_p. Add declaration.
9195 (ada_value_is_changeable_p): New function, extracted from
9196 varobj_value_is_changeable_p. Add declaration.
9197 (struct language_specific): New field "value_is_changeable_p".
9198 (languages): Add entries for new field.
9199 (varobj_create): Set language before calling install_new_value.
9200 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9201 "value_is_changeable_p" language callback.
9202
181875a4
JB
92032012-03-28 Joel Brobecker <[email protected]>
9204
9205 * ada-varobj.h, ada-varobj.c: New files.
9206 * Makefile.in (SFILES): Add ada-varobj.c.
9207 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9208 (COMMON_OBS): Add ada-varobj.o.
9209
7a290c40
JB
92102012-03-28 Joel Brobecker <[email protected]>
9211
9212 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9213 (struct language_specific): New field "value_has_mutated".
9214 (languages): Set field "value_has_mutated" in each entry of array.
9215 (varobj_value_has_mutated): New function.
9216 (varobj_udpdate): Add handling of type mutation.
9217 (value_of_root): Add handling of type mutation.
9218 (ada_value_has_mutated): New function.
9219
ca9b8b9c
PA
92202012-03-28 Pedro Alves <[email protected]>
9221
9222 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9223 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9224
cc0265cd
TT
92252012-03-28 Tom Tromey <[email protected]>
9226
9227 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9228 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9229 before returning.
9230
3ad2ec6f
TT
92312012-03-28 Tom Tromey <[email protected]>
9232
9233 * .dir-locals.el: New file.
9234
4a6510ba
PA
92352012-03-28 Pedro Alves <[email protected]>
9236
9237 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9238
5a75128f
JB
92392012-03-28 Joel Brobecker <[email protected]>
9240
9241 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9242 handling for r0.
9243
f99d8bf4
PA
92442012-03-27 Pedro Alves <[email protected]>
9245
9246 Eliminate struct ui_stream.
9247
9248 * ui-out.h (struct ui_stream): Delete.
9249 (ui_out_field_stream): Adjust prototype.
9250 (ui_out_stream_new, ui_out_stream_delete)
9251 (make_cleanup_ui_out_stream_delete): Delete declarations.
9252 * ui-out.c (ui_out_field_stream): Change prototype to take a
9253 ui_file instead of a ui_stream. Adjust.
9254 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9255 (make_cleanup_ui_out_stream_delete): Delete.
9256 * breakpoint.c (print_breakpoint_location)
9257 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9258 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9259 * disasm.c (dump_insns): Ditto.
9260 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9261 prototype.
9262 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9263 ui_stream/ui_out_stream_new.
9264 * infcmd.c (print_return_value): Ditto.
9265 * osdata.c (info_osdata_command): Don't allocate a local
9266 ui_stream.
9267 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9268 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9269 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9270 allocate a local ui_stream.
9271 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9272 instead of ui_stream/ui_out_stream_new.
9273 (list_args_or_locals): Don't allocate a local ui_stream.
9274 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9275 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9276 ui_stream/ui_out_stream_new.
9277 * cli/cli-setshow.c (do_setshow_command): Ditto.
9278
6350a066 92792012-03-27 Oza Pawandeep <[email protected]>
72508ac0 9280
6350a066
PA
9281 * arm-linux-tdep.c (arm_linux_init_abi): Call
9282 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9283 * arm-tdep.c (arm_process_record): New function.
9284 (deallocate_reg_mem): New function.
9285 (decode_insn): New function.
9286 (thumb_record_branch): New function.
9287 (thumb_record_ldm_stm_swi(): New function.
9288 (thumb_record_misc): New function.
9289 (thumb_record_ld_st_stack): New function.
9290 (thumb_record_ld_st_imm_offset): New function.
9291 (thumb_record_ld_st_reg_offset(): New function.
9292 (thumb_record_add_sub_cmp_mov): New function.
9293 (thumb_record_shift_add_sub): New function.
9294 (arm_record_coproc_data_proc): New function.
9295 (arm_record_coproc): New function.
9296 (arm_record_b_bl): New function.
9297 (arm_record_ld_st_multiple): New function.
9298 (arm_record_ld_st_reg_offset): New function.
9299 (arm_record_ld_st_imm_offset): New function.
9300 (arm_record_data_proc_imm): New function.
9301 (arm_record_data_proc_misc_ld_str): New function.
9302 (arm_record_extension_space): New function.
9303 (arm_record_strx): New function.
9304 (sbo_sbz): New function.
9305 (struct insn_decode_record): New structure for arm insn record.
9306 (REG_ALLOC): New macro for reg allocations.
9307 (MEM_ALLOC): New macro for memory allocations.
9308 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 9309
89e028e2
AS
93102012-03-27 Andreas Schwab <[email protected]>
9311
9312 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9313 (store_register): Likewise.
9314
6350a066 93152012-03-26 Oza Pawandeep <[email protected]>
3d9a9eb0 9316
6350a066 9317 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 9318
5b43fab2
JK
93192012-03-25 Jan Kratochvil <[email protected]>
9320
9321 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9322 Describe also the option "auto".
9323
b5453b95
RH
93242012-03-22 Richard Henderson <[email protected]>
9325
9326 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9327 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9328
227ee7fc
RH
93292012-03-22 Richard Henderson <[email protected]>
9330
9331 * jit.c (jit_read_code_entry): Compute alignment and offset of
9332 int64_t member before computing entry_size.
9333
7b282c5a
SCR
93342012-03-22 Siva Chandra Reddy <[email protected]>
9335
9336 Python scripting: Add new method Value.referenced_value to
9337 gdb.Value which can dereference pointer as well as reference
9338 values.
9339 * NEWS: Add entry under 'Python scripting' about the new method
9340 Value.referenced_value on gdb.Value objects.
9341 * python/py-value.c (valpy_referenced_value): New function
9342 defining a new method on gdb.Value objects which can dereference
9343 pointer and reference values.
9344
0c83539f
SCR
93452012-03-22 Siva Chandra Reddy <[email protected]>
9346
9347 * MAINTAINERS (Write After Approval): Add myself to the list.
9348
7ccffd7c
KB
93492012-03-21 Kevin Buettner <[email protected]>
9350
9351 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9352 in addition to "main".
9353
bd0b9f9e
JB
93542012-03-21 Joel Brobecker <[email protected]>
9355
9356 * expression.h (op_name): Add declaration.
9357 * expprint.c (op_name): Remove declaration. Make non-static.
9358 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9359
a5362b9a
TS
93602012-03-21 Thomas Schwinge <[email protected]>
9361
9362 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9363 of struct siginfo.
9364 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9365 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9366 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9367 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9368 (linux_nat_get_siginfo): Likewise.
9369 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9370 (linux_nat_get_siginfo): Likewise.
9371 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9372 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9373 * procfs.c (gdb_siginfo_t): Likewise.
9374
adcadaab
MF
93752012-03-21 Mike Frysinger <[email protected]>
9376
9377 * .gitignore: Ignore more files.
9378
e278ad5b
PA
93792012-03-20 Pedro Alves <[email protected]>
9380
9381 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9382 returns.
9383
741e63d7
YQ
93842012-03-20 Yao Qi <[email protected]>
9385
9386 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9387 comment.
9388
b64f50a1
JK
93892012-03-19 Jan Kratochvil <[email protected]>
9390
9391 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9392 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9393 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9394 sect_offset.
9395 * dwarf2expr.h (cu_offset, sect_offset): New types.
9396 (struct dwarf_expr_context_funcs) <dwarf_call>
9397 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9398 sect_offset.
9399 (struct dwarf_expr_context) <len>: Improve the comment.
9400 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9401 cu_offset and sect_offset.
9402 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9403 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9404 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9405 * dwarf2loc.h: Include dwarf2expr.h.
9406 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9407 and sect_offset.
9408 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9409 Improve the comment.
9410 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9411 (struct signatured_type, struct line_header, struct partial_die_info)
9412 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9413 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9414 (get_die_type_at_offset, create_cus_from_index)
9415 (create_signatured_type_table_from_index, dw2_get_file_names)
9416 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9417 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9418 (create_debug_types_hash_table, process_psymtab_comp_unit)
9419 (load_partial_comp_unit, create_all_comp_units)
9420 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9421 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9422 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9423 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9424 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9425 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9426 (find_partial_die, read_attribute_value, lookup_die_type)
9427 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9428 (is_ref_attr): New function comment.
9429 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9430 Use cu_offset and sect_offset.
9431 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9432 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9433 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9434 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9435 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9436 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9437 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9438 sect_offset.
9439
e97a38f7
JK
94402012-03-19 Jan Kratochvil <[email protected]>
9441
9442 Code cleanup.
9443 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9444 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9445 with xfree.
9446 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9447
8320cc4f
JK
94482012-03-19 Jan Kratochvil <[email protected]>
9449
9450 * NEWS: Describe new options --init-command=FILE, -ix and
9451 --init-eval-command=COMMAND, -iex.
9452 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9453 CMDARG_INIT_COMMAND.
9454 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9455 "init-command", "init-eval-command", "ix" and "iex" to the variable
9456 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9457 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9458 (print_gdb_help): Describe --init-command=FILE, -ix and
9459 --init-eval-command=COMMAND, -iex.
9460
26743505
JK
94612012-03-19 Jan Kratochvil <[email protected]>
9462
9463 Code cleanup.
9464 * main.c (struct cmdarg): Move it here from main. Add more comments.
9465 (cmdarg_s, VEC (cmdarg_s)): New.
9466 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9467 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9468 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9469 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9470 of CMDARG.
9471
5ff5c7b4
TT
94722012-03-19 Tom Tromey <[email protected]>
9473
9474 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9475
ab260dad
JK
94762012-03-16 Jan Kratochvil <[email protected]>
9477
9478 PR symtab/13777
9479 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9480 GCC >=4.5.
9481
c366c1f0
TT
94822012-03-16 Chris January <[email protected]>
9483
9484 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9485 of clear.
9486
e16edb45
TT
94872012-03-16 Chris January <[email protected]>
9488
9489 * source.c (add_path): Use memmove instead of strcpy because the
9490 strings overlap.
9491
53ba8333
JB
94922012-03-16 Joel Brobecker <[email protected]>
9493
9494 * value.h (set_value_parent): Add declaration.
9495 * value.c (set_value_parent): New function.
9496 (value_address): If VALUE->PARENT is not NULL, then use it as
9497 the base address instead of VALUE->LOCATION.address.
9498 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9499 the same as OBJ's address. Adjust V's offset accordingly.
9500 Set V's parent.
9501
481860b3
GB
95022012-03-16 Gary Benson <[email protected]>
9503
9504 PR breakpoints/10738
9505 * dwarf2read.c (use_deprecated_index_sections): New global.
9506 (struct partial_die_info): New member may_be_inlined.
9507 (read_partial_die): Set may_be_inlined where appropriate.
9508 (add_partial_subprogram): Add partial symbols for partial
9509 DIEs that may be inlined.
9510 (new_symbol_full): Add inlined subroutines to the current
9511 scope.
9512 (write_psymtabs_to_index): Bump version number.
9513 (dwarf2_read_index): Read only version 6 indices unless
9514 use_deprecated_index_sections is set.
9515 * linespec.c (symbol_and_data_callback): New structure.
9516 (iterate_inline_only): New function.
9517 (iterate_over_all_matching_symtabs): New argument
9518 "include_inline". If nonzero, also call the callback for
9519 symbols representing inlined subroutines.
9520 (lookup_prefix_sym): Pass extra argument to the above.
9521 (find_function_symbols): Likewise.
9522 (add_matching_symbols_to_info): Likewise.
9523 * NEWS: Mention that GDB can now set breakpoints on inlined
9524 functions.
9525
d0e7e15a
PM
95262012-03-16 Pierre Muller <[email protected]>
9527
9528 * p-typeprint.c (pascal_type_print_method_args):
9529 Fix display of parameter of methods.
9530
3d354654
PM
95312012-03-16 Pierre Muller <[email protected]>
9532
9533 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9534 Add missing prototype.
9535
cafe75b0
JK
95362012-03-16 Yao Qi <[email protected]>
9537 Jan Kratochvil <[email protected]>
9538
9539 Fix false compilation warning.
9540 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9541
25f8c692
JL
95422012-03-15 Jonathan Larmour <[email protected]>
9543 Pedro Alves <[email protected]>
9544
9545 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9546 (arm_register_g_packet_guesses): New function.
9547 (arm_gdbarch_init): Don't force a target description with
9548 registers when the executable is detected as M-profile. Instead
9549 set gdbarch->tdep->is_m. Register `g' packet guesses.
9550 (_initialize_arm_tdep): Initialize the new target description.
9551 * features/arm-with-m-fpa-layout.xml: New description.
9552 * features/arm-with-m-fpa-layout.c: New, generated.
9553
35c63cd8
JB
95542012-03-15 Joel Brobecker <[email protected]>
9555
9556 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9557 Update function description.
9558 (insert_bp_location): Do not wipe bl->target_info out.
9559 * mem-break.c: #include "gdb_string.h".
9560 (default_memory_insert_breakpoint): Do not call target_read_memory
9561 with a pointer to the breakpoint's shadow_contents buffer. Use
9562 a local buffer instead.
9563 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9564
57651221
TT
95652012-03-15 Tom Tromey <[email protected]>
9566
9567 * NEWS: Mention "info vtbl", not "info vtable".
9568 * cp-support.c (info_vtbl_command): Fix comment.
9569 (_initialize_cp_support): Fix text.
9570
410528f0
TT
95712012-03-15 Tom Tromey <[email protected]>
9572
9573 * cp-valprint.c (cp_print_value_fields): Use
9574 print_function_pointer_address for vtable slot.
9575
c4aeac85
TT
95762012-03-15 Tom Tromey <[email protected]>
9577
9578 * gnu-v3-abi.c (struct value_and_voffset): New.
9579 (hash_value_and_voffset, eq_value_and_voffset)
9580 (compare_value_and_voffset, compute_vtable_size)
9581 (print_one_vtable, gnuv3_print_vtable): New functions.
9582 (init_gnuv3_ops): Initialize 'print_vtable' field.
9583 * cp-support.c (info_vtbl_command): New function.
9584 (_initialize_cp_support): Add "info vtbl".
9585 * cp-abi.h (cplus_print_vtable): Declare.
9586 (struct cp_abi_ops) <print_vtable>: New field.
9587 * cp-abi.c (cplus_print_vtable): New function.
9588 * NEWS: Update.
9589
95cbceff
TT
95902012-03-15 Tom Tromey <[email protected]>
9591
9592 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9593 iterate_over_symbols.
9594
589b4a32
DE
95952012-03-14 Doug Evans <[email protected]>
9596
9597 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9598 DW_OP_GNU_parameter_ref.
9599
e837f12a
JK
96002012-03-14 Jan Kratochvil <[email protected]>
9601
9602 Fix double prompt of 'interpreter-exec mi'.
9603 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9604 (mi_interpreter_resume): use it.
9605 (mi_execute_command_input_handler): New function.
9606 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9607 mi_execute_command_input_handler.
9608
ff1e4526 96092012-03-13 Josh Matthews <[email protected]> (tiny change)
c381a3f6
JB
9610
9611 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9612 prototype.
9613 (darwin_debug_port_info): Make static.
9614 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9615 * machoread.c (_initialize_machoread): Add prototype.
9616 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9617 (i386_darwin_set_control, i386_darwin_get_control)
9618 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9619 i386_darwin_get_status, i386_darwin_get_control):
9620 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9621
d8a5d6ee
JB
96222012-03-13 Joel Brobecker <[email protected]>
9623
9624 * ax-gdb.c (gen_usual_unary): Remove special handling of
9625 enum and bool types.
9626
af381b8c
JB
96272012-03-13 Joel Brobecker <[email protected]>
9628
9629 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9630
786c562f
JB
96312012-03-13 Joel Brobecker <[email protected]>
9632
9633 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9634
e3ebf1bb
JB
96352012-03-13 Chris January <[email protected]>
9636
9637 * aix-thread.c (fill_sprs): Store the floating point registers
9638 at the correct offsets into vals.
9639
c5b7e1cb
DE
96402012-03-13 Doug Evans <[email protected]>
9641
16899756
DE
9642 * NEWS: Mention symbol-reloading has been deleted.
9643 * symfile.c (symbol_reloading): Delete.
9644 (show_symbol_reloading): Delete.
9645 (_initialize_symfile): Delete set/show symbol-reloading.
9646
c5b7e1cb
DE
9647 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9648 read_in_chain until we have successfully read it in.
9649 (load_full_comp_unit): Ditto.
9650 (read_signatured_type): Add comment.
9651
46cb6474
JB
96522012-03-13 Chris January <[email protected]>
9653
9654 * stabsread.c (fix_common_block): Change type of valu argument
9655 to CORE_ADDR.
9656
76219d77
JB
96572012-03-13 Chris January <[email protected]>
9658
9659 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9660 instruction.
9661
87b0bb13
JK
96622012-03-13 Jan Kratochvil <[email protected]>
9663
9664 * common/linux-procfs.c (linux_proc_get_int): New, from
9665 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9666 field.
9667 (linux_proc_get_tgid): Only call linux_proc_get_int.
9668 (linux_proc_get_tracerpid): New.
9669 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9670 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9671 linux_proc_pid_has_state.
9672 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9673 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9674 (linux_ptrace_attach_warnings): New.
9675 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9676 New declaration.
9677 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9678 (linux_nat_attach): New variables ex, buffer, message and message_s.
9679 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9680
5f572dec
JK
96812012-03-13 Jan Kratochvil <[email protected]>
9682
9683 * Makefile.in (linux-ptrace.o): New.
9684 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9685 from linux-nat.c.
9686 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9687 * common/linux-ptrace.c: New file.
9688 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9689 * config/arm/linux.mh: Likewise.
9690 * config/i386/linux.mh: Likewise.
9691 * config/i386/linux64.mh: Likewise.
9692 * config/ia64/linux.mh: Likewise.
9693 * config/m32r/linux.mh: Likewise.
9694 * config/m68k/linux.mh: Likewise.
9695 * config/mips/linux.mh: Likewise.
9696 * config/pa/linux.mh: Likewise.
9697 * config/powerpc/linux.mh: Likewise.
9698 * config/powerpc/ppc64-linux.mh: Likewise.
9699 * config/powerpc/spu-linux.mh: Likewise.
9700 * config/s390/s390.mh: Likewise.
9701 * config/sparc/linux.mh: Likewise.
9702 * config/sparc/linux64.mh: Likewise.
9703 * config/xtensa/linux.mh: Likewise.
9704 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9705 common/linux-procfs.c.
9706 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9707
44f238bb
PA
97082012-03-13 Hui Zhu <[email protected]>
9709 Pedro Alves <[email protected]>
9710
9711 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9712 CREATE_BREAKPOINT_FLAGS_INSERTED.
9713 (create_breakpoint_sal, create_breakpoints_sal)
9714 (base_breakpoint_create_breakpoints_sal)
9715 (tracepoint_create_breakpoints_sal)
9716 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9717 down.
9718 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9719 (ftrace_command, strace_command): Adjust.
9720 (create_tracepoint_from_upload): Pass
9721 CREATE_BREAKPOINT_FLAGS_INSERTED.
9722 * breakpoint.h (enum breakpoint_create_flags): New.
9723 (create_breakpoint): New flags parameter.
9724 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9725 * python/py-breakpoint.c (bppy_init): Adjust.
9726 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9727 * spu-tdep.c (spu_catch_start): Adjust.
9728
1e51243a
PA
97292012-03-13 Pedro Alves <[email protected]>
9730 Hui Zhu <[email protected]>
9731 Yao Qi <[email protected]>
9732
9733 * remote.c (struct remote_state): New field `starting_up'.
9734 (remote_start_remote): Set and clear it.
9735 (remote_can_download_tracepoint): If starting up, return false.
9736
fa3064dd
YQ
97372012-03-13 Yao Qi <[email protected]>
9738
9739 * inferior.h (struct inferior): Remove fields any_syscall_count,
9740 syscalls_counts and total_syscalls_count. Move them to new
9741 struct catch_syscall_inferior_data in breakpoint.c.
9742 * breakpoint.c: Call DEF_VEC_I(int).
9743 (struct catch_syscall_inferior_data): New.
9744 (get_catch_syscall_inferior_data): New.
9745 (catch_syscall_inferior_data_cleanup): New.
9746 (insert_catch_syscall): Update to access data in
9747 struct catch_syscall_inferior_data.
9748 (insert_catch_syscall): Likewise.
9749 (remove_catch_syscall): Likewise.
9750 (remove_catch_syscall): Likewise.
9751 (is_syscall_catchpoint_enabled): Likewise.
9752 (add_catch_command): Likewise.
9753 (_initialize_breakpoint): Register cleanup.
9754 * breakpoint.h: Removed DEF_VEC_I(int).
9755 * dwarf2loc.c: Call DEF_VEC_I(int).
9756 * mi/mi-main.c: Likewise.
9757
460fac3c
MK
97582012-03-12 Mark Kettenis <[email protected]>
9759
9760 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9761
e1aca11e
JB
97622012-03-12 Chris January <[email protected]>
9763
9764 * aix-thread.c (_initialize_aix_thread): Add prototype.
9765 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9766 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9767
649c7061
JB
97682012-03-12 Joel Brobecker <[email protected]>
9769
9770 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9771 include of "amd64-nat.h".
9772
0b49e518
TT
97732012-03-12 Tom Tromey <[email protected]>
9774
9775 * buildsym.c (record_pending_block): Now static.
9776 * buildsym.h: (record_pending_block): Remove.
9777
fd24fa94
AT
97782012-03-12 Andreas Tobler <[email protected]>
9779
9780 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9781
ba919b58
TT
97822012-03-09 Tom Tromey <[email protected]>
9783
9784 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9785 producer_is_gxx_lt_4_6>: New fields.
9786 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9787
a48e046c
TT
97882012-03-09 Tom Tromey <[email protected]>
9789
9790 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9791
6f5e9362
JB
97922012-03-08 Joel Brobecker <[email protected]>
9793
9794 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9795 prototype.
9796
8d037db9
JB
97972012-03-08 Joel Brobecker <[email protected]>
9798
9799 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9800
4e841acf
JK
98012012-03-08 Jan Kratochvil <[email protected]>
9802
9803 Fix -Wmissing-prototypes build.
9804 * arm-linux-nat.c (get_thread_id): Make it static.
9805 * xtensa-linux-nat.c (get_thread_id): Likewise.
9806
c6030312
JB
98072012-03-08 Joel Brobecker <[email protected]>
9808
9809 * server.c (process_point_options): If a conditional expression
9810 is found, only print a message if remote_debug is nonzero.
9811
52323be9
LM
98122012-03-08 Luis Machado <[email protected]>
9813
9814 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9815 of internal error for unknown/unsupported types.
9816
7fe25d9b
JK
98172012-03-08 Jan Kratochvil <[email protected]>
9818
9819 Fix CU relative vs. absolute DIE offsets.
9820 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9821 offset to offset_in_cu.
9822 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9823 TYPE_OFFSET.
9824 (dwarf2_fetch_die_location_block): Rename parameter offset to
9825 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9826
05e7c244
JK
98272012-03-08 Jan Kratochvil <[email protected]>
9828
9829 * libunwind-frame.c: Rename to ...
9830 * ia64-libunwind-tdep.c: ... here.
9831 * libunwind-frame.h: Rename to ...
9832 * ia64-libunwind-tdep.h: ... here.
9833 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9834 ia64-libunwind-tdep.h.
9835 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9836 * README (--with-libunwind): Rename to ...
9837 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9838 * config.in: Regenerate.
9839 * configure: Regenerate.
9840 * configure.ac: New option --with-libunwind-ia64, make the
9841 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9842 Remove AC_DEFINE for HAVE_LIBUNWIND.
9843 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9844 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9845 Rename libunwind-frame in the general comment.
9846 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9847 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9848 Move forward declarations inside #ifndef. Rename libunwind-frame in
9849 the general comment.
9850 * ia64-tdep.c: Rename libunwind-frame.h #include to
9851 ia64-libunwind-tdep.h.
9852 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9853 (ia64_libunwind_descr): Rename libunwind-frame to
9854 ia64-libunwind-tdep in these function comments.
9855 * ia64-tdep.h: Rename libunwind-frame.h #include to
9856 ia64-libunwind-tdep.h.
9857 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9858 ia64-libunwind-tdep in that data comment.
9859
3755cbfd
JK
98602012-03-08 Jan Kratochvil <[email protected]>
9861
9862 * libunwind-frame.h (struct frame_unwind): New declaration.
9863
d1cda5d9
JB
98642012-03-08 Joel Brobecker <[email protected]>
9865
9866 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9867 "set breakpoint condition-evaluation" command.
9868
a0ba0aa2
TG
98692012-03-08 Tristan Gingold <[email protected]>
9870
9871 * sparc-stub.c: Move to stubs/
9872 * sh-stub.c: Likewise.
9873 * m68k-stub.c: Likewise.
9874 * m32r-stub.c: Likewise.
9875 * i386-stub.c: Likewise.
9876
7b8b6d6d
AS
98772012-03-08 Andreas Schwab <[email protected]>
9878
007cafee
AS
9879 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9880 linux_get_siginfo_type.
9881
7b8b6d6d
AS
9882 * m68klinux-nat.c: Include "gdb_proc_service.h".
9883 (PTRACE_GET_THREAD_AREA): Define.
9884 (ps_get_thread_area): New function.
9885
bba74b36
YQ
98862012-03-08 Yao Qi <[email protected]>
9887
9888 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9889 `xsnprintf'.
9890 (remote_query_attached): Likewise.
9891 (remote_static_tracepoint_marker_at): Likewise.
9892 (remote_set_permissions): Likewise.
9893 (remote_detach_1, extended_remote_attach_1): Likewise.
9894 (send_g_packet, remote_vkill): Likewise.
9895 (extended_remote_disable_randomization): Likewise.
9896 (remote_add_target_side_condition): Likewise.
9897 (remote_insert_breakpoint): Likewise.
9898 (remote_remove_breakpoint): Likewise.
9899 (remote_insert_watchpoint): Likewise.
9900 (remote_remove_watchpoint): Likewise.
9901 (remote_insert_hw_breakpoint): Likewise.
9902 (remote_insert_hw_breakpoint): Likewise.
9903 (remote_remove_hw_breakpoint): Likewise.
9904 (remote_download_command_source): Likewise.
9905 (remote_download_tracepoint): Likewise.
9906 (remote_download_trace_state_variable): Likewise.
9907 (remote_disable_tracepoint): Likewise.
9908 (remote_trace_set_readonly_regions): Likewise.
9909 (remote_get_tracepoint_status): Likewise.
9910 (remote_trace_find): Likewise.
9911 (remote_get_trace_state_variable_value): Likewise.
9912 (remote_set_disconnected_tracing): Likewise.
9913 (remote_set_circular_trace_buffer): Likewise.
9914 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9915 (remote_use_agent): Likewise.
9916 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9917 Update callers.
9918
9b224c5e
PA
99192012-03-07 Pedro Alves <[email protected]>
9920
9921 * NEWS: Mention QProgramSignals.
9922 * inferior.h (update_signals_program_target): Declare.
9923 * infrun.c: (update_signals_program_target): New.
9924 (handle_command): Update the target of the new program signals
9925 array changes.
9926 * remote.c (PACKET_QProgramSignals): New enum.
9927 (last_program_signals_packet): New global.
9928 (remote_program_signals): New.
9929 (remote_start_remote): Update the target with the program signals
9930 list.
9931 (remote_protocol_features): Add entry for QPassSignals.
9932 (remote_open_1): Free anc clear last_program_signals_packet.
9933 (init_remote_ops): Install remote_program_signals.
9934 * target.c (update_current_target): Adjust.
9935 (target_program_signals): New.
9936 * target.h (struct target_ops) <to_program_signals>: New field.
9937 (target_program_signals): Declare.
9938
74c48cbb
PA
99392012-03-07 Pedro Alves <[email protected]>
9940
9941 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9942 extensions.
9943
0c13fc49
AS
99442012-03-07 Andreas Schwab <[email protected]>
9945
9946 * m68klinux-nat.c (getregs_supplies): Make static.
9947 (getfpregs_supplies): Likewise.
9948 (have_ptrace_getregs): Likewise.
9949
1281d2a3
JB
99502012-03-06 Joel Brobecker <[email protected]>
9951
9952 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9953 in call to get_die_type_at_offset.
9954
2b03b41d
SS
99552012-03-06 Stan Shebs <[email protected]>
9956
9957 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9958 * mi/mi-cmd-disas.c: Ditto.
9959 * mi/mi-cmd-env.c: Ditto.
9960 * mi/mi-cmd-file.c: Ditto.
9961 * mi/mi-cmd-stack.c: Ditto.
9962 * mi/mi-cmd-target.c: Ditto.
9963 * mi/mi-cmd-var.c: Ditto.
9964 * mi/mi-cmds.c: Ditto.
9965 * mi/mi-cmds.h: Ditto.
9966 * mi/mi-console.c: Ditto.
9967 * mi/mi-getopt.c: Ditto.
9968 * mi/mi-getopt.h: Ditto.
9969 * mi/mi-interp.c: Ditto.
9970 * mi/mi-main.c: Ditto.
9971 * mi/mi-out.c: Ditto.
9972 * mi/mi-parse.c: Ditto.
9973 * mi/mi-parse.h: Ditto.
9974 * mi/mi-symbol-cmds.c: Ditto.
9975
9976 * mi/mi-getopt.h: Move mi_opt struct up.
9977 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9978 return.
9979 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9980
c988ad87
TT
99812012-03-06 Tom Tromey <[email protected]>
9982
9983 * proc-service.c (ps_pglobal_lookup): Set the current program
9984 space.
9985
1b7c1b10
PA
99862012-03-06 Pedro Alves <[email protected]>
9987
9988 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9989
3c182069
JB
99902012-03-05 Joel Brobecker <[email protected]>
9991
9992 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9993
2e794194
JK
99942012-03-05 Jan Kratochvil <[email protected]>
9995
9996 Code cleanup.
9997 * common/linux-osdata.c (linux_common_core_of_thread): New function
9998 comment.
9999 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10000 call by linux_common_core_of_thread.
10001 (linux_nat_core_of_thread_1): Remove.
10002 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10003 * linux-thread-db.c: Include linux-osdata.h.
10004 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10005 linux_common_core_of_thread.
10006
9f9f1f31
TT
100072012-03-05 Tom Tromey <[email protected]>
10008
10009 * value.c (value_primitive_field): Don't fetch contents for
10010 non-virtual bases.
10011
b7b189f3
TT
100122012-03-05 Tom Tromey <[email protected]>
10013
10014 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10015
05b8a789 100162012-03-05 Andreas Arnez <[email protected]>
5538f557 10017
5538f557
JB
10018 * s390-nat.c: Include "gregset.h".
10019
75528772
JK
100202012-03-05 Jan Kratochvil <[email protected]>
10021
10022 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10023 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10024 (libunwind_load): New variable so_error, use it for dlerror. Try to
10025 load also LIBUNWIND_SO_7.
10026
275418ae
PA
100272012-03-05 Pedro Alves <[email protected]>
10028
10029 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10030 is not NULL, and remove resulting dead code.
10031
5cbb9812
TS
100322012-03-05 Thomas Schwinge <[email protected]>
10033
10034 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10035 prologue to sh_analyze_prologue.
10036 (sh_analyze_prologue): Make better use of such an upper limit, and
10037 generally be more cautious about accessing memory.
10038
541515ad
TT
100392012-03-05 Tom Tromey <[email protected]>
10040
10041 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10042 _initialize_ia64_hpux_tdep.
10043
b4d36fb8
PA
100442012-03-05 Pedro Alves <[email protected]>
10045
24490249
PA
10046 PR gdb/13766
10047
b4d36fb8
PA
10048 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10049 the register state is clear, supply explicit zero, instead of
10050 marking the register unavailable.
10051
60c9a3c0
TG
100522012-03-05 Tristan Gingold <[email protected]>
10053
10054 * NEWS: Mention OpenVMS ia64 new target.
10055
696759ad
TG
100562012-03-05 Tristan Gingold <[email protected]>
10057
10058 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10059 (ia64_unw_accessors, ia64_unw_rse_accessors)
10060 (ia64_libunwind_descr): Declare.
10061 * ia64-vms-tdep.c: New file.
10062 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10063 (ia64_libunwind_descr): Make them public.
10064 * configure.tgt: Add ia64-*-*vms*.
10065 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10066 (ALLDEPFILES): Add ia64-vms-tdep.c
10067
34864976
TG
100682012-03-05 Tristan Gingold <[email protected]>
10069
169081d0
TG
10070 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10071 * remote.c (PACKET_qXfer_uib): New enum value.
10072 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10073 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10074 (_initialize_remote): Call add_packet_config_cmd for
10075 xfer:uib packet.
10076
100772012-03-05 Tristan Gingold <[email protected]>
10078
10079 * osabi.c (gdb_osabi_names): Add OpenVMS.
10080 (generic_elf_osabi_sniffer): Likewise.
10081 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 10082
6597b100
JK
100832012-03-04 Jan Kratochvil <[email protected]>
10084
10085 Removed unused code.
10086 * libunwind-frame.c (libunwind_frame_unwind)
10087 (libunwind_frame_base_address): Remove.
10088 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10089
87399aa1
YQ
100902012-03-04 Yao Qi <[email protected]>
10091
10092 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10093 remove trailing new line.
10094 (agent_run_command, agent_run_command): Add _ markup.
10095 (agent_capability_check): Likewise.
10096
abf1152a
JK
100972012-03-03 Jan Kratochvil <[email protected]>
10098
10099 * breakpoint.c (set_condition_evaluation_mode): Set
10100 CONDITION_EVALUATION_MODE unconditionally.
10101
5808517f
YQ
101022012-03-03 Yao Qi <[email protected]>
10103
10104 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10105 * common/agent.h: Update declaration.
10106 * inf-child.c (inf_child_use_agent): New.
10107 (inf_child_can_use_agent): New.
10108 (inf_child_target): Initialize fields `to_use_agent'
10109 and `to_can_use_agent'.
10110 * agent.c (agent_new_objfile): New.
89b7509a 10111 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
10112 observer.
10113
10114 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10115 New.
89b7509a 10116 (linux_target_install_ops): Initialize field
5808517f
YQ
10117 `to_static_tracepoint_markers_by_strid'.
10118 * remote.c (free_current_marker): Move it to ...
10119 * tracepoint.c (free_current_marker): ... here. New.
10120 (cleanup_target_stop): New.
10121 * tracepoint.h: Declare free_current_marker.
10122 * NEWS: Add one entry about `info static-tracepoint-marker'.
10123
58b4daa5
YQ
101242012-03-03 Yao Qi <[email protected]>
10125
10126 * common/agent.c (agent_loaded_p): New.
89b7509a 10127 (agent_look_up_symbols): New global.
58b4daa5
YQ
10128 * common/agent.h: Declare agent_loaded_p.
10129
8ffcbaaf
YQ
101302012-03-03 Yao Qi <[email protected]>
10131
10132 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10133 (agent_capability_check, agent_capability_invalidate): New.
10134 (symbol_list): New array element.
10135 * common/agent.h (enum agent_capa): New.
10136 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10137
d1feda86
YQ
101382012-03-03 Yao Qi <[email protected]>
10139
10140 * target.h (struct target_ops) <to_use_agent>: New field.
10141 (struct target_ops) <to_can_use_agent>: New field.
10142 (target_use_agent, target_can_use_agent): New macro.
10143 * target.c (update_current_target): Update.
10144 * remote.c: New enum `PACKET_QAgent'.
10145 (remote_protocol_features): Add a new element.
10146 (remote_use_agent, remote_can_use_agent): New.
10147 (init_remote_ops): Initialize field `can_use_agent' with
10148 remote_can_use_agent. Intiailize field `use_agent' with
10149 remote_use_agent.
10150 * common/agent.c (use_agent): New global.
10151 * common/agent.h: Declare it.
10152 * tracepoint.c (info_static_tracepoint_markers_command): Add
10153 comment.
10154 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10155 (COMMON_OBS): Add common/agent.o and agent.o
10156 (common-agent.o): New rule.
10157 * agent.c: New.
10158
2fa291ac
YQ
101592012-03-03 Yao Qi <[email protected]>
10160
10161 * common/agent.c: New.
10162 * common/agent.h: New.
10163 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10164 AC_CHECK_HEADERS.
10165 * configure, configh.in: Regenerated.
10166
9fc05685
KB
101672012-03-02 Kevin Buettner <[email protected]>
10168
10169 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10170 unless it exists for this architecture.
10171
a5ee536b
JB
101722012-03-02 Joel Brobecker <[email protected]>
10173
10174 * language.h (struct language_defn): New "method" la_read_var_value.
10175 * findvar.c: #include "language.h".
10176 (default_read_var_value): Renames read_var_value. Rewrite
10177 function description.
10178 (read_var_value): New function.
10179 * value.h (default_read_var_value): Add prototype.
10180 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10181 New functions.
10182 (ada_language_defn): Add entry for la_read_var_value.
10183 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10184 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10185 language_defn structures to add entry for new la_read_var_value
10186 field.
10187
f59f708a
PA
101882012-03-02 Tom Tromey <[email protected]>
10189 Pedro Alves <[email protected]>
10190
10191 PR breakpoints/13776:
10192 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10193 breakpoints.
10194 (delete_longjmp_breakpoint_at_next_stop): New.
10195 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10196 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10197 before deleting the inferior. Add comments.
10198 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10199 breakpoints immediately, but only on next stop. Move that code
10200 next to where we mark other breakpoints for deletion.
10201
44099a67
JB
102022012-03-02 Joel Brobecker <[email protected]>
10203
10204 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10205 marker.
10206 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10207 violation.
10208
2a2ef594
PA
102092012-03-02 Pedro Alves <[email protected]>
10210
10211 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10212
b261e0c5
UW
102132012-03-02 Ulrich Weigand <[email protected]>
10214
10215 Fix -Wmissing-prototypes build.
10216 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10217 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10218 (gdbsim_has_memory): Likewise.
10219
a95babbf
YQ
102202012-03-02 Yao Qi <[email protected]>
10221
10222 Fix -Wmissing-prototypes build.
10223 * charset.c (phony_iconv_open): Make static.
10224 (phony_iconv_close, phony_iconv): Likewise.
10225 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10226 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10227 prototype.
10228 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10229 * ser-mingw.c (create_select_thread): Make static.
10230 * windows-termcap.c (tgetent): New prototype.
10231 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10232
d603d4b3
JK
102332012-03-02 Zhang Yuanhui <[email protected]>
10234
10235 Fix -Wmissing-prototypes build.
10236 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10237 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10238 (_initialize_loadable): New prototypes.
10239
7fb3ad1f
DE
102402012-03-02 Doug Evans <[email protected]>
10241
10242 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10243 abbrev table, read_comp_unit will do it.
10244
693be288
JK
102452012-03-02 Jan Kratochvil <[email protected]>
10246
10247 Fix -Wmissing-prototypes build.
10248 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10249 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10250 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10251 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10252 (_initialize_arm_symbian_tdep): New prototype.
10253 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10254 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10255 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10256 static.
10257 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10258 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10259 prototype.
10260 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10261 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10262 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10263 static.
10264 * moxie-tdep.c (moxie_process_record): Likewise.
10265 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10266 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10267 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10268 (_initialize_rl78_tdep): New prototype.
10269 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10270 (_initialize_rx_tdep): New prototype.
10271 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10272 (_initialize_darwin_solib): New prototype.
10273 * solib-spu.c: Include solib-spu.h.
10274 (_initialize_spu_solib): New prototype.
10275 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10276 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10277 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10278 (tic6x_software_single_step): Make it static.
10279 (_initialize_tic6x_tdep): New prototype.
10280
638234e5
JK
102812012-03-02 Jan Kratochvil <[email protected]>
10282
10283 Fix -Wmissing-prototypes build.
10284 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10285 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10286
f4a6f16d
JK
102872012-03-01 Jan Kratochvil <[email protected]>
10288
10289 Fix -Wmissing-prototypes build.
10290 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10291 (frv_have_stopped_data_address): Remove.
10292
04dcf5fa
JK
102932012-03-01 Jan Kratochvil <[email protected]>
10294
10295 Fix -Wmissing-prototypes build.
10296 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10297 * sh-tdep.c: Include sh64-tdep.h.
10298 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10299 * sh64-tdep.c: Include sh64-tdep.h.
10300 * sh64-tdep.h: New file.
10301
19080931
MR
103022012-03-01 Maciej W. Rozycki <[email protected]>
10303
10304 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10305
9aac7884
MR
103062012-03-01 Maciej W. Rozycki <[email protected]>
10307
10308 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10309 sp_regnum once the gdbarch_init_osabi hook has been called.
10310
a385295e
MR
103112012-03-01 Maciej W. Rozycki <[email protected]>
10312
10313 * mips-tdep.c (mips32_bc1_pc): New function.
10314 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10315 BPOSGE32 and BPOSGE64 instructions.
10316 (deal_with_atomic_sequence): Likewise.
10317 (mips32_instruction_has_delay_slot): Likewise.
10318
1faeff08 103192012-03-01 Maciej W. Rozycki <[email protected]>
a09130f9
PA
10320 Chris Dearman <[email protected]>
10321 Maciej W. Rozycki <[email protected]>
10322 Joseph Myers <[email protected]>
1faeff08
MR
10323
10324 * features/mips-dsp.xml: New file.
10325 * features/mips64-dsp.xml: New file.
10326 * features/mips-dsp-linux.xml: New file.
10327 * features/mips64-dsp-linux.xml: New file.
10328 * features/Makefile (WHICH): Add mips-dsp-linux and
10329 mips64-dsp-linux.
10330 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10331 * features/mips-dsp-linux.c: New file.
10332 * features/mips64-dsp-linux.c: New file.
10333 * regformats/mips-dsp-linux.dat: New file.
10334 * regformats/mips64-dsp-linux.dat: New file.
10335 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10336 registers.
10337 (mips64_linux_register_addr): Likewise.
10338 (mips64_linux_regsets_fetch_registers): Likewise.
10339 (mips64_linux_regsets_store_registers): Likewise.
10340 (mips64_linux_fetch_registers): Update call to
10341 mips64_linux_regsets_fetch_registers.
10342 (mips64_linux_store_registers): Update call to
10343 mips64_linux_regsets_store_registers.
10344 (mips_linux_read_description): Probe for DSP registers.
10345 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10346 and initialize_tdesc_mips64_dsp_linux.
10347 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10348 Remove padding of no longer used embedded register slots.
10349 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10350 (MIPS_RESTART_REGNUM): Redefine enum value.
10351 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10352 strings.
10353 (mips_tx39_reg_names): Likewise.
10354 (mips_linux_reg_names): New array of register names for Linux
10355 targets.
10356 (mips_register_name): Check for a null pointer in
10357 mips_processor_reg_names and return an empty string.
10358 (mips_register_type): Exclude embedded registers for the IRIX
10359 and Linux ABIs.
10360 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10361 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10362 DSP registers.
10363 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10364 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10365 (mips_gdbarch_init): Likewise. Initialize internal register
10366 indices for the Linux ABI. Use dynamic numbers to refer to
10367 registers, as applicable, while parsing the target description.
10368 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10369
263689d8
JB
103702012-03-01 Joel Brobecker <[email protected]>
10371
10372 * frame.h (read_frame_register_unsigned): Fix typo in function
10373 description.
10374
f3b4f45c
PA
103752012-03-01 Pedro Alves <[email protected]>
10376
10377 * jit-reader.in [!__cplusplus]
10378 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10379
b03a2011
PA
103802012-03-01 Pedro Alves <[email protected]>
10381
10382 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10383 * configure: Regenerate.
10384
70221824
PA
103852012-03-01 Pedro Alves <[email protected]>
10386
10387 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10388 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10389 (ftrace_command, strace_command): Make static.
10390 * d-lang.c (_initialize_d_language): Declare.
10391 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10392 * dwarf2loc.c (_initialize_dwarf2loc):
10393 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10394 * exec.c (exec_get_section_table): Make static.
10395 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10396 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10397 * inferior.c (remove_inferior_command, add_inferior_command)
10398 (clone_inferior_command): Make static.
10399 * linux-nat.c (linux_nat_thread_address_space)
10400 (linux_nat_core_of_thread): Make static.
10401 * linux-tdep.c (_initialize_linux_tdep): Declare.
10402 * objc-lang.c (_initialize_objc_lang): Declare.
10403 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10404 Make static.
10405 (_initialize_opencl_language): Declare.
10406 * record.c (_initialize_record): Declare.
10407 * remote.c (demand_private_info, remote_get_tib_address)
10408 (remote_supports_cond_tracepoints)
10409 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10410 Make static.
10411 * skip.c (_initialize_step_skip): Declare.
10412 * symtab.c (skip_prologue_using_lineinfo): Make static.
10413 * tracepoint.c (delete_trace_state_variable)
10414 (trace_variable_command, delete_trace_variable_command)
10415 (get_uploaded_tsv, find_matching_tracepoint_location)
10416 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10417 Make static.
10418 * value.c (pack_unsigned_long): Make static.
10419 * varobj.c (varobj_ensure_python_env): Make static.
10420 * windows-tdep.c (_initialize_windows_tdep): Declare.
10421 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10422
33fbcbee
PA
104232012-03-01 Pedro Alves <[email protected]>
10424
10425 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10426 gdbarch parameter.
10427 (linux_init_abi): Install it as has_shared_address_space gdbarch
10428 callback.
10429
44d0cd3b
PA
104302012-03-01 Pedro Alves <[email protected]>
10431
10432 * observer.c (observer_test_first_notification_function)
10433 (observer_test_second_notification_function)
10434 (observer_test_third_notification_function): Add declarations.
10435
ed01b82c
PA
104362012-03-01 Pedro Alves <[email protected]>
10437
10438 * common/signals.c (default_target_signal_to_host)
10439 (default_target_signal_from_host): Move ...
10440 * arch-utils.c: ... here.
10441 * arch-utils.h (default_target_signal_to_host)
10442 (default_target_signal_from_host): Declare.
10443
10444 * common/signals.c (target_signal_from_command): Move ...
10445 * infrun.c: ... here.
10446 * inferior.h (target_signal_from_command): Declare.
10447 * target.h (target_signal_from_command)
10448 (default_target_signal_from_host, default_target_signal_to_host):
10449 Delete declarations.
10450
10451 * common/signals.c (_initialize_signals): Delete.
10452
c9b87335
PA
104532012-03-01 Pedro Alves <[email protected]>
10454
10455 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10456 both __cplusplus and !__cplusplus.
10457
9340a6c0
PA
104582012-03-01 Pedro Alves <[email protected]>
10459
10460 * psymtab.c (find_and_open_source): Delete declaration.
10461 * source.c (find_and_open_source): Move comment ...
10462 * source.h (find_and_open_source): ... to this new declaration.
10463
e451c4a1
PA
104642012-03-01 Pedro Alves <[email protected]>
10465
10466 * inline-frame.c: Include inline-frame.h.
10467
983fb104
PA
104682012-03-01 Pedro Alves <[email protected]>
10469
10470 * tui/tui-data.c (set_gen_win_origin): Delete.
10471 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10472 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10473
5fbce5df
PA
104742012-03-01 Pedro Alves <[email protected]>
10475
10476 * remote.c (encode_actions): Delete declaration.
10477 * tracepoint.c (encode_actions): Make extern.
10478 * tracepoint.h (encode_actions): Declare.
10479
49a8461d
PA
104802012-03-01 Pedro Alves <[email protected]>
10481
10482 * python/py-breakpoint.c: Include python.h.
10483 * python/py-continueevent.c (create_continue_event_object): Make
10484 static.
10485 * python/py-lazy-string.c (stpy_get_type): Make static.
10486 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10487 Make static.
10488 * python/py-utils.c (unicode_to_target_python_string): Make
10489 static.
10490 * python/py-value.c: Include python.h.
10491
9079102f
PA
104922012-03-01 Pedro Alves <[email protected]>
10493
10494 * inferior.c (delete_threads_of_inferior): Delete.
10495
a298c5e8
PA
104962012-03-01 Pedro Alves <[email protected]>
10497
10498 Import fallback definitions from glibc.
10499
10500 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10501 ps_prochandle): Forward declare.
10502 (ps_err_e): Use glibc's comments.
10503 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10504 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10505 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10506 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10507 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10508 (struct ps_prochandle): Adjust comment.
10509
e3084549
PA
105102012-03-01 Pedro Alves <[email protected]>
10511
10512 * ada-lang.c (ada_modulus_from_name): Delete.
10513 * ada-lex.l (lexer_init): Make static.
10514
ad5f7d6e
PA
105152012-03-01 Pedro Alves <[email protected]>
10516
10517 PR gdb/13767
10518
10519 * frame.c (read_frame_register_unsigned): New.
10520 * frame.h (read_frame_register_unsigned): Declare.
10521 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10522 Handle it.
10523 (print_i387_control_word): New parameter `control_p'. Handle it.
10524 (i387_print_float_info): Handle unavailable float registers.
10525
e0a4d108
KS
105262012-03-01 Keith Seitz <[email protected]>
10527
10528 * linespec.c (decode_line_2): Sort the list of methods
10529 alphabetically before presenting the user with a selection
10530 menu.
10531
122d1940
DE
105322012-03-01 Doug Evans <[email protected]>
10533
10534 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10535 has_namespace_info.
10536 (dwarf2_read_abbrevs): Remove corresponding initialization.
10537
7d74f244
DE
105382012-03-01 Scott J. Goldman <[email protected]>
10539
10540 * NEWS: Mention new python command class gdb.COMMAND_USER.
10541 * cli/cli-cmds.c (show_user): Print error when used on a python
10542 command.
10543 (init_cli_cmds): Update documentation strings for "show user" and
10544 "set/show max-user-call-depth" to clarify that it does not apply to
10545 python commands.
10546 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10547 error check.
10548 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10549 gdb python api.
10550 * top.c (execute_command): Only execute a user-defined command as a
10551 legacy macro if c->user_commands is set.
10552
e88acd96
TT
105532012-03-01 Tom Tromey <[email protected]>
10554
10555 * valprint.h (struct generic_val_print_decorations): New.
10556 (generic_val_print): Declare.
10557 * valprint.c (generic_val_print): New function.
10558 * p-valprint.c (p_decorations): New global.
10559 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10560 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10561 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10562 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10563 * m2-valprint.c (m2_decorations): New global.
10564 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10565 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10566 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10567 TYPE_CODE_ERROR>: Call generic_val_print.
10568 * f-valprint.c (f_decorations): New global.
10569 (f_val_print): Use print_function_pointer_address.
10570 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10571 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10572 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10573 generic_val_print.
10574 * c-valprint.c (c_decorations): New global.
10575 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10576 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10577 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10578 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10579 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10580 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10581 case.
10582
d3eab38a
TT
105832012-03-01 Tom Tromey <[email protected]>
10584
10585 * valprint.c (val_print): Update.
10586 * p-valprint (pascal_val_print): Return void.
10587 * p-lang.h (pascal_val_print): Return void.
10588 * m2-valprint.c (m2_val_print): Return void.
10589 * m2-lang.h (m2_val_print): Return void.
10590 * language.h (struct language_defn) <la_val_print>: Return void.
10591 * language.c (unk_lang_val_print): Return void.
10592 * jv-valprint.c (java_val_print): Return void.
10593 * jv-lang.h (java_val_print): Return void.
10594 * f-valprint.c (f_val_print): Return void.
10595 * f-lang.h (f_val_print): Return void.
10596 * d-valprint.c (d_val_print): Return void.
10597 (dynamic_array_type): Update.
10598 * d-lang.h (d_val_print): Return void.
10599 * c-valprint.c (c_val_print): Return void.
10600 * c-lang.h (c_val_print): Return void.
10601 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10602 void.
10603 * ada-lang.h (ada_val_print): Return void.
10604
35c0084b
TT
106052012-03-01 Tom Tromey <[email protected]>
10606
10607 * value.h (val_print): Return void.
10608 * valprint.c (val_print): Return void.
10609
a1f5dd1b
TT
106102012-03-01 Tom Tromey <[email protected]>
10611
10612 * value.h (common_val_print): Return void.
10613 * valprint.c (common_val_print): Return void.
10614
8e069a98
TT
106152012-03-01 Tom Tromey <[email protected]>
10616
10617 * value.h (value_print): Return void.
10618 * valprint.c (value_print): Return void.
10619 * p-valprint.c (pascal_value_print): Return void.
10620 * p-lang.h (pascal_value_print): Return void.
10621 * language.h (struct language_defn) <la_value_print>: Return
10622 void.
10623 * language.c (unk_lang_value_print): Return void.
10624 * jv-valprint.c (java_value_print): Return void.
10625 * jv-lang.h (java_value_print): Return void.
10626 * f-valprint.c (c_value_print): Don't declare.
10627 Include c-lang.h.
10628 * c-valprint.c (c_value_print): Return void.
10629 * c-lang.h (c_value_print): Return void.
10630 * ada-valprint.c (ada_value_print): Return void.
10631 * ada-lang.h (ada_value_print): Return void.
10632
be335936
TT
106332012-03-01 Tom Tromey <[email protected]>
10634
10635 * value.c (value_primitive_field): Handle virtual base classes.
10636
b0db66a7
TT
106372012-03-01 Tom Tromey <[email protected]>
10638
10639 * gdbtypes.h (struct vbase): Remove.
10640
132c57b4
TT
106412012-03-01 Tom Tromey <[email protected]>
10642
10643 * c-valprint.c (print_function_pointer_address): Move...
10644 * valprint.c: ... here. Make non-static.
10645 * m2-valprint.c (print_function_pointer_address): Remove.
10646 * valprint.h (print_function_pointer_address): Declare.
10647
e41eec66
JB
106482012-03-01 Joel Brobecker <[email protected]>
10649
10650 * NEWS: Document the fact that one can provide a condition when
10651 creating an Ada exception catchpoint.
10652
19c37f24
TT
106532012-03-01 Tom Tromey <[email protected]>
10654
10655 * valprint.c (val_print_type_code_flags): Fix placement of
10656 trailing brace.
10657
f0fed3a3
JB
106582012-03-01 Joel Brobecker <[email protected]>
10659
10660 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10661 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10662 environment variable before calling update-copyright.
10663
8ba85d85
JB
106642012-03-01 Joel Brobecker <[email protected]>
10665
10666 * gnulib/extra/update-copyright: Update to the latest from
10667 gnulib's git repository.
10668 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10669 variable to 2 instead of 1.
10670
8219b1e8
JB
106712012-02-29 Joel Brobecker <[email protected]>
10672
10673 * varobj.c (c_value_of_variable): Remove dead code.
10674
718cb7da
JB
106752012-02-29 Joel Brobecker <[email protected]>
10676
10677 * ada-lex.p (processId): Do not modify already encoded IDs.
10678 Update function documentation.
10679
739593e0
JB
106802012-02-29 Joel Brobecker <[email protected]>
10681
10682 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10683 "name" with "struct symbol *name_sym".
10684 * ada-exp.y (write_var_or_type): Update call to
10685 ada_find_renaming_symbol.
10686 "name" with "struct symbol *name_sym". Adjust Implementation
10687 accordingly. Adjust the function documentation.
10688
852dff6c
JB
106892012-02-29 Joel Brobecker <[email protected]>
10690
10691 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10692 * ada-lang.c (ada_find_any_type): Add advance declaration.
10693 Make static. Replace ada_find_any_symbol by
10694 ada_find_any_type_symbol.
10695 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10696 Improve function description. Make static.
10697 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10698 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10699
1b611343
JB
107002012-02-29 Joel Brobecker <[email protected]>
10701
10702 * ada-lang.c (struct tag_args): Delete.
10703 (ada_get_tsd_type): Function body moved up in source file.
10704 (ada_tag_name_1, ada_tag_name_2): Delete.
10705 (ada_get_tsd_from_tag): New function.
10706 (ada_tag_name_from_tsd): New function.
10707 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10708 to determine the tag name.
10709
41246937
JB
107102012-02-29 Joel Brobecker <[email protected]>
10711
10712 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10713 declaration.
10714 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10715 function.
10716
ffde82bf
JB
107172012-02-29 Joel Brobecker <[email protected]>
10718
10719 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10720
2ad01556
JB
107212012-02-29 Joel Brobecker <[email protected]>
10722
10723 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10724 full searches.
10725
99b1c762
JB
107262012-02-29 Joel Brobecker <[email protected]>
10727
10728 * ada-lang.c (constrained_packed_array_type): If there is a
10729 parallel XA type, use it to determine the array index type.
10730
2d4a02ee
JB
107312012-02-29 Joel Brobecker <[email protected]>
10732
10733 * ada-valprint.c (ada_val_print_1): If our value is a reference
10734 to an array descriptor, dereference it before converting it
10735 to a simple array.
10736
c48db5ca
JB
107372012-02-29 Joel Brobecker <[email protected]>
10738
10739 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10740 creating fixed value.
10741 (ada_value_ind, ada_coerce_ref, assign_component)
10742 (ada_evaluate_subexp): Remove call to unwrap_value before
10743 call to ada_to_fixed_value.
10744
2e6fda7d
JB
107452012-02-29 Joel Brobecker <[email protected]>
10746
10747 * ada-lang.c (to_fixed_array_type): Set result's type name.
10748
5845583d
JB
107492012-02-29 Joel Brobecker <[email protected]>
10750
10751 * ada-lang.c (catch_ada_exception_command_split): Add new
10752 argument cond_string. Add support for condition at end of
10753 "catch exception" commands.
10754 (ada_decode_exception_location): Add new argument cond_string.
10755 Update call to catch_ada_exception_command_split.
10756 (create_ada_exception_catchpoint): Add new argument cond_string.
10757 Set the breakpoint condition if needed.
10758 (catch_ada_exception_command): Update call to
10759 ada_decode_exception_location.
10760 (ada_decode_assert_location): Add function documentation.
10761 Add support for condition at end of "catch assert" command.
10762 (catch_assert_command): Update calls to ada_decode_assert_location
10763 and create_ada_exception_catchpoint.
10764
9a7f938f
JK
107652012-02-29 Jan Kratochvil <[email protected]>
10766
10767 Fix disp-step-syscall.exp: fork: single step over fork.
10768 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10769 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10770 comment, change parameters gdbarch and ptid to regcache. Remove
10771 parameter regcache, initialize gdbarch from regcache here.
10772 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10773 New functions.
10774 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10775 instead.
10776 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10777 'syscall'. Make the 'int' check more strict.
10778
ffdf6de5
JK
107792012-02-29 Jan Kratochvil <[email protected]>
10780
10781 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10782 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10783 (i386_linux_intx80_sysenter_syscall_record): ... here.
10784 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10785 Use the renamed function name.
10786
c70a6932
JK
107872012-02-29 Jan Kratochvil <[email protected]>
10788
10789 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10790 * breakpoint.c (until_break_command): Likewise.
10791 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10792 * infcall.c (call_function_by_hand): Likewise.
10793 * infcmd.c (finish_forward): Likewise.
10794 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10795
05b8a789 107962012-02-28 Tristan Gingold <[email protected]>
d4cd3da9 10797
d4cd3da9
JB
10798 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10799 avoid variable assignments inside condition.
10800
6425366c
JK
108012012-02-28 Jan Kratochvil <[email protected]>
10802
10803 Fix static analysis issue found by cppcheck.
10804 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10805 uninitialized BUF for size 2.
10806
c8cef75f 108072012-02-27 Chris Dearman <[email protected]>
a09130f9
PA
10808 Nathan Froyd <[email protected]>
10809 Maciej W. Rozycki <[email protected]>
c8cef75f
MR
10810
10811 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10812 (mips16_instruction_has_delay_slot): Likewise.
10813 (mips_segment_boundary): Likewise.
10814 (mips_adjust_breakpoint_address): Likewise.
10815 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10816
473347ad 108172012-02-27 Maciej W. Rozycki <[email protected]>
a09130f9 10818 Maciej W. Rozycki <[email protected]>
473347ad
MR
10819
10820 * infrun.c (handle_inferior_event): Don't proceed through
10821 shared library trampolines if stepping at the machine
10822 instruction level.
10823
cf233303
MR
108242012-02-27 Maciej W. Rozycki <[email protected]>
10825
10826 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10827 too.
10828
cb2cf4ce
TS
108292012-02-27 Thomas Schwinge <[email protected]>
10830
10831 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10832 (sh_stub_unwind_sniffer): New functions.
10833 (sh_stub_unwind): New variable.
10834 (sh_gdbarch_init): Wire everything.
10835
644cebc9
PA
108362012-02-27 Pedro Alves <[email protected]>
10837
10838 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10839 (linux_nat_post_attach_wait): Adjust to use
10840 linux_proc_pid_is_stopped.
10841 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10842 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10843 based on pid_is_stopped from both linux-nat.c and
10844 gdbserver/linux-low.c, and renamed.
10845
283002cf
MR
108462012-02-24 Maciej W. Rozycki <[email protected]>
10847
10848 * remote.c (remote_watchpoint_addr_within_range): New function.
10849 (init_remote_ops): Use it.
10850
9b3e86b1
MR
108512012-02-24 Maciej W. Rozycki <[email protected]>
10852
10853 * target.h (target_watchpoint_addr_within_range): Document macro.
10854
e36930bb
PA
108552012-02-24 Pedro Alves <[email protected]>
10856
10857 * stack.c (set_last_displayed_sal): Issue internal_error instead
10858 of warning, and issue it after clearing the last displayed sal.
10859
883bc8d1
PA
108602012-02-24 Jan Kratochvil <[email protected]>
10861 Pedro Alves <[email protected]>
10862
10863 * breakpoint.c (until_break_command): Install breakpoints after
10864 all frame manipulations.
10865
b775012e
LM
108662012-02-24 Luis Machado <[email protected]>
10867
10868 * remote.c (remote_supports_cond_breakpoints): New forward
10869 declaration.
10870 (remote_add_target_side_condition): New function.
10871 (remote_insert_breakpoint): Add target-side breakpoint
10872 conditional if supported.
10873 (remote_insert_hw_breakpoint): Likewise.
10874 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10875 hook.
10876
10877 * target.c (update_current_target): Inherit
10878 to_supports_evaluation_of_breakpoint_conditions.
10879 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10880
10881 * target.h (struct target_ops)
10882 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10883 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10884
10885 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10886 (condition_evaluation_both, condition_evaluation_auto,
10887 condition_evaluation_host, condition_evaluation_target,
10888 condition_evaluation_enums, condition_evaluation_mode_1,
10889 condition_evaluation_mode): New static globals.
10890 (translate_condition_evaluation_mode): New function.
10891 (breakpoint_condition_evaluation_mode): New function.
10892 (gdb_evaluates_breakpoint_condition_p): New function.
10893 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10894 (mark_breakpoint_modified): New function.
10895 (mark_breakpoint_location_modified): New function.
10896 (set_condition_evaluation_mode): New function.
10897 (show_condition_evaluation_mode): New function.
10898 (bp_location_compare_addrs): New function.
10899 (get_first_location_gte_addr): New helper function.
10900 (set_breakpoint_condition): Free condition bytecode if locations
10901 has become unconditional. Call mark_breakpoint_modified (...).
10902 (condition_command): Call update_global_location_list (1) for
10903 breakpoints.
10904 (breakpoint_xfer_memory): Use is_breakpoint (...).
10905 (is_breakpoint): New function.
10906 (parse_cond_to_aexpr): New function.
10907 (build_target_condition_list): New function.
10908 (insert_bp_location): Handle target-side conditional
10909 breakpoints and call build_target_condition_list (...).
10910 (update_inserted_breakpoint_locations): New function.
10911 (insert_breakpoint_locations): Handle target-side conditional
10912 breakpoints.
10913 (bpstat_check_breakpoint_conditions): Add comment.
10914 (bp_condition_evaluator): New function.
10915 (bp_location_condition_evaluator): New function.
10916 (print_breakpoint_location): Print information on where the condition
10917 will be evaluated.
10918 (print_one_breakpoint_location): Likewise.
10919 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10920 breakpoint location.
10921 (force_breakpoint_reinsertion): New functions.
10922 (update_global_location_list): Handle target-side breakpoint
10923 conditions.
10924 Reinsert locations that are already inserted if conditions have
10925 changed.
10926 (bp_location_dtor): Free agent expression bytecode.
10927 (disable_breakpoint): Call mark_breakpoint_modified (...).
10928 Call update_global_location_list (...) with parameter 1 for breakpoints.
10929 (disable_command): Call mark_breakpoint_location_modified (...).
10930 Call update_global_location_list (...) with parameter 1 for breakpoints.
10931 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10932 (enable_command): mark_breakpoint_location_modified (...).
10933 (_initialize_breakpoint): Update documentation and add
10934 condition-evaluation breakpoint subcommand.
10935
10936 * breakpoint.h: Include ax.h.
10937 (condition_list): New data structure.
10938 (condition_status): New enum.
10939 (bp_target_info) <cond_list>: New field.
10940 (bp_location) <condition_changed, cond_bytecode>: New fields.
10941 (is_breakpoint): New prototype.
10942
3788aec7
LM
109432012-02-24 Luis Machado <[email protected]>
10944
10945 * remote.c (remote_state) <cond_breakpoints>: New field.
10946 (PACKET_ConditionalBreakpoints): New enum.
10947 (remote_cond_breakpoint_feature): New function.
10948 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10949 (remote_supports_cond_breakpoints): New function.
10950 (_initialize_remote): Add new packet configuration for
10951 target-side conditional breakpoints.
10952
72895ff6
LM
109532012-02-24 Luis Machado <[email protected]>
10954
10955 * NEWS: Mention target-side conditional breakpoint support,
10956 new condition-evaluation breakpoint subcommand and remote
10957 packet extensions.
10958
dea2aa5f
LM
109592012-02-24 Luis Machado <[email protected]>
10960
10961 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10962 number.
10963
8a8bc27f
TS
109642012-02-24 Thomas Schwinge <[email protected]>
10965
10966 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10967 (after_prologue): Remove.
10968
6b446fdf
TT
109692012-02-23 Tom Tromey <[email protected]>
10970
10971 * jv-valprint.c (java_val_print): Remove dead code.
10972
ef59abfb
TG
109732012-02-23 Tristan Gingold <[email protected]>
10974
a09130f9
PA
10975 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10976 known_tasks_element and known_tasks_length fields.
10977 (read_known_tasks_array): Change argument type. Use pointer type
10978 and number of elements from DATA. Adjust.
10979 (read_known_tasks_list): Likewise.
10980 (get_known_tasks_addr): Remove.
10981 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10982 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10983 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10984
def166f6
JK
109852012-02-23 Jan Kratochvil <[email protected]>
10986
10987 PR backtrace/13716
10988 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10989 it after set_momentary_breakpoint.
10990
aeaa2474
SA
109912012-02-22 Sterling Augustine <[email protected]>
10992
10993 PR 13689:
10994 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10995
feea76c2
GB
109962012-02-22 Gary Benson <[email protected]>
10997
10998 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10999 (find_slot_in_mapped_hash): Likewise.
11000
f06e05e0
JK
110012012-02-21 Jan Kratochvil <[email protected]>
11002
11003 PR build/13638
11004 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11005 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11006 * configure: Regenerate.
11007
b54a8fd7
PA
110082012-02-21 Tristan Gingold <[email protected]>
11009 Pedro Alves <[email protected]>
11010
11011 * ia64-tdep.c: Do not include libunwind-ia64.h.
11012 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11013 Include libunwind-ia64.h instead of libunwind.h.
11014 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11015 for libunwind.h existence.
11016 * configure, config.in: Regenerate.
11017
dfcee124
AG
110182012-02-21 Anton Gorenkov <[email protected]>
11019
11020 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11021 instead of value_rtti_target_type.
11022 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11023 instead of value_rtti_target_type.
11024 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11025 value_rtti_target_type.
11026 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11027 (value_rtti_target_type): Rename to ...
11028 (value_rtti_indirect_type): ... here and make it indirect. Update
11029 function comment.
11030 * value.c (readjust_indirect_value_type): New function.
11031 (coerce_ref): Support for enclosing type setting for references
11032 with readjust_indirect_value_type.
11033 * value.h (readjust_value_type): New declaration.
11034 (value_rtti_target_type): Rename to ...
11035 (value_rtti_indirect_type): ... here.
11036
02568277
AG
110372012-02-21 Anton Gorenkov <[email protected]>
11038
11039 * MAINTAINERS (Write After Approval): Add myself to the list.
11040
10c07b7e 110412012-02-20 Doug Evans <[email protected]>
28ee876a 11042
d82ea6a8
DE
11043 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11044 Rename objfile_p_char parameter to objfilep.
11045 (build_objfile_section_table): Result is now void. All callers
11046 updated.
11047 * objfiles.h (struct objfile): Tweak comments, whitespace.
11048 (build_objfile_section_table): Update.
11049
28ee876a
DE
11050 * elfread.c (elf_symfile_segments): Fix warning text.
11051
24c79950
TT
110522012-02-20 Tom Tromey <[email protected]>
11053
11054 PR gdb/13498:
11055 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11056 particular set of file names once.
11057 (dw2_map_symbol_filenames): Likewise.
11058
3a9b40b6
JK
110592012-02-20 Jan Kratochvil <[email protected]>
11060
11061 Code cleanup.
11062 * main.c (write_files): Remove the declaration.
11063 (external_editor_command): Move the declaration ...
11064 [GDBTK] (external_editor_command): ... here. Fix the comment.
11065
4d0795ca
TT
110662012-02-20 Tom Tromey <[email protected]>
11067
11068 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11069 extraneous block.
11070
637fd620
TG
110712012-02-20 Tristan Gingold <[email protected]>
11072
11073 * darwin-nat.h (enum darwin_msg_state): Add comments.
11074
6f124894
TG
110752012-02-20 Tristan Gingold <[email protected]>
11076
11077 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11078 value.
11079
2e6e3d9c
JB
110802012-20-18 Joel Brobecker <[email protected]>
11081
11082 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11083 between function description and implementation.
11084
2e8265fd
TT
110852012-02-17 Tom Tromey <[email protected]>
11086
11087 PR python/12070:
11088 * python/py-event.c (event_object_getset): New global.
11089 (event_object_type): Reference it.
11090 * python/py-type.c (field_object_getset): New global.
11091 (field_object_type): Reference it.
11092 * python/python-internal.h (gdb_py_generic_dict): Declare.
11093 * python/py-utils.c (gdb_py_generic_dict): New function.
11094
8544a150 110952012-02-17 Tristan Gingold <[email protected]>
6f124894 11096
8544a150 11097 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 11098
ca193e27
TS
110992012-02-17 Thomas Schwinge <[email protected]>
11100
11101 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11102 TYPE_CALLING_CONVENTION annotation.
11103
e5586183
KB
111042012-02-16 Kevin Buettner <[email protected]>
11105
11106 * MAINTAINERS: Add rx to target ISA section.
11107 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11108 (ALLDEPFILES): Add rx-tdep.c.
11109
7dcd53a0
TT
111102012-02-16 Tom Tromey <[email protected]>
11111
11112 * symfile.c (symbol_file_add_main_1): Use inferior's
11113 symfile_flags.
11114 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11115 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11116 inferior.
11117 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11118 inferior.
11119 (follow_exec): Use inferior's symfile_flags.
11120 * inferior.h (struct inferior) <symfile_flags>: New field.
11121
ddd60447
MF
111222012-02-16 Mike Frysinger <[email protected]>
11123
11124 PR gdb/9734:
11125 * remote-sim.c (gdbsim_create_inferior): Call error() when
11126 sim_create_inferior() fails.
11127
b0d32fb6
TG
111282012-02-16 Josh Matthews <[email protected]>
11129
11130 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11131
9addecb9
TT
111322012-02-16 Tom Tromey <[email protected]>
11133
11134 PR c++/13653:
11135 * thread.c (struct current_thread_cleanup) <was_removable>: New
11136 field.
11137 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11138 (make_cleanup_restore_current_thread): Initialize new field.
11139
a58b110a
KB
111402012-02-15 Kevin Buettner <[email protected]>
11141
11142 * MAINTAINERS: Add rl78 to target ISA section.
11143 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11144 (ALLDEPFILES): Add rl78-tdep.c.
11145 * NEWS: Mention rl78 as a new target.
11146
4cb6da1c
AR
111472012-02-15 Aleksandar Ristovski <[email protected]>
11148
11149 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11150 data.
11151 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11152
3af2590d
TT
111532012-02-15 Tom Tromey <[email protected]>
11154
11155 PR gdb/12659:
11156 * infcmd.c (registers_info): Print just the current register's
11157 name.
11158
c6910659
TT
111592012-02-15 Tom Tromey <[email protected]>
11160
11161 * python/py-symbol.c (sympy_value): Use _().
11162
7cee1e54
PA
111632012-02-15 Pedro Alves <[email protected]>
11164
11165 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11166 output to be like native targets'.
11167 (remote_pid_to_str): Special case the null ptid.
11168
816338b5
SS
111692012-02-14 Stan Shebs <[email protected]>
11170
11171 * NEWS: Mention enable count command.
11172 * breakpoint.h (struct breakpoint): New field enable_count.
11173 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11174 (enable_breakpoint): Add arg to call.
11175 (struct disp_data): New struct.
11176 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11177 (do_map_enable_once_breakpoint): Create a struct and pass it.
11178 (do_map_enable_delete_breakpoint): Ditto.
11179 (do_map_enable_count_breakpoint): New function.
11180 (enable_count_command): New function.
11181 (bpstat_stop_status): Decrement enable_count.
11182 (print_one_breakpoint_location): Report enable count.
11183 (_initialize_breakpoint): Add enable count command.
11184
c47a44f4
KB
111852012-02-14 Kevin Buettner <[email protected]>
11186
11187 * rl78-tdep.c (reggroups.h): Include.
11188 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11189 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11190 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11191 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11192 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11193 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11194 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11195 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11196 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11197 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11198 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11199 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11200 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11201 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11202 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11203 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11204 beginning of register list.
11205 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11206 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11207 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11208 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11209 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11210 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11211 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11212 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11213 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11214 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11215 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11216 the pseudo registers. Rearrange other pseudo registers too so
11217 that the bank registers appear at the end.
11218 (rl78_register_type): Account for the fact that the byte sized
11219 bank registers are now pseudo-registers.
11220 (rl78_register_name): Rearrange the register name array. Make
11221 initial set of raw banked registers inaccessible.
11222 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11223 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11224 case for copying bytes back and forth between raw and pseudo
11225 versions of the banked registers. Update other cases to reflect
11226 the changed names.
11227 (rl78_return_value): Update to account for changed names of
11228 raw registers.
11229 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11230 rl78_register_sim_regno().
11231
e4569f1e
KB
112322012-02-14 Kevin Buettner <[email protected]>
11233
11234 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11235 the name parameter being passed to find_pc_partial_function().
11236
7a05aae7
JK
112372012-02-14 Jan Kratochvil <[email protected]>
11238
11239 * MAINTAINERS: Step down from being ia64 target maintainer.
11240
11fde611
JK
112412012-02-12 Jan Kratochvil <[email protected]>
11242
11243 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11244 compilation warning.
11245
57008375
JK
112462012-02-12 Jan Kratochvil <[email protected]>
11247
11248 Fix crash on loaded shlibs without loaded exec_bfd.
11249 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11250 (set_section_command): Replace exec_bfd by p->bfd.
11251
ff3c9849
TT
112522012-02-10 Tom Tromey <[email protected]>
11253
11254 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11255 when we have a C++ qualified name.
11256
db2b9fdd
PA
112572012-02-10 Pedro Alves <[email protected]>
11258
11259 * inferior.c (inferior_pid_to_str): New.
11260 (print_inferior, inferior_command): Use it.
11261
12cd34f3
PA
112622012-02-10 Pedro Alves <[email protected]>
11263
11264 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11265 the test CFLAGS.
11266 * configure: Regenerate.
11267
e871429d
JK
112682012-02-10 Jan Kratochvil <[email protected]>
11269
11270 * linespec.c (decode_line_internal): Fix comment correctness.
11271
1916efaf
PA
112722012-02-09 Valery Khromov <[email protected]>
11273
11274 PR gdb/12953
11275 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11276 * amd64bsd-nat.c: Add support for debug registers (adapted from
11277 i386bsd-nat.c).
11278 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11279 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11280 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11281 (amd64bsd_dr_get_control): New functions.
11282 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11283 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11284 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11285 watchpoints initialization.
11286 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11287
f4859d94
JK
112882012-02-09 Jan Kratochvil <[email protected]>
11289
11290 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11291 flds_bnds.fields.
11292 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11293
c56a97f9
JK
112942012-02-09 Jan Kratochvil <[email protected]>
11295
11296 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11297
1a119f36
JB
112982012-02-08 Joel Brobecker <[email protected]>
11299
11300 * language.h (symbol_name_cmp_ftype): Renames
11301 symbol_name_match_p_ftype.
11302 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11303 la_get_symbol_name_match_p.
11304 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11305 ada_get_symbol_name_match_p. Update comment.
11306 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11307 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11308 Renames symbol_name_match_p. Update field type.
11309 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11310 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11311 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11312 "la_get_symbol_name_cmp" in comments.
11313 * language.c: Likewise.
11314
c71bb1cf
RO
113152012-02-08 Rainer Orth <[email protected]>
11316
11317 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11318 %eflags offset.
11319 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11320 (amd64_sol2_gregset32_reg_offs): Likewise.
11321
4b2d20a5
TG
113222012-02-08 Joel Brobecker <[email protected]>
11323
11324 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11325 of the returned BFD is allocated by GDB.
11326
f0823d2c
TT
113272012-02-07 Tom Tromey <[email protected]>
11328
11329 PR python/12027:
11330 * python/python-internal.h (frame_object_type): Declare.
11331 * python/py-symbol.c (sympy_needs_frame): New function.
11332 (sympy_value): New function.
11333 (symbol_object_getset): Add "needs_frame".
11334 (symbol_object_methods): Add "value".
11335 * python/py-frame.c (frame_object_type): No longer static.
11336
64e7d9dd
TT
113372012-02-07 Tom Tromey <[email protected]>
11338
11339 PR python/13599:
11340 * python/py-symbol.c (sympy_line): New function.
11341 (symbol_object_getset): Add "line".
11342
1d6b2d2b
TT
113432012-02-07 Tom Tromey <[email protected]>
11344
11345 * charset.c (find_charset_names): Check 'in' against NULL.
11346
0d5cff50
DE
113472012-02-06 Doug Evans <[email protected]>
11348
11349 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11350 and fields.name members from char * to const char *. All uses updated.
11351 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11352 from char * to const char *. All uses updated.
11353 (type_name_no_tag): Update.
11354 (lookup_unsigned_typename, lookup_signed_typename): Update.
11355 * gdbtypes.c (type_name_no_tag): Change result type
11356 from char * to const char *. All callers updated.
11357 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11358 name parameter from char * to const char *.
11359 * symtab.h (struct cplus_specific): Change type of demangled_name
11360 member from char * to const char *. All uses updated.
11361 (struct general_symbol_info): Change type of name and
11362 mangled_lang.demangled_name members from char * to const char *.
11363 All uses updated.
11364 (symbol_get_demangled_name, symbol_natural_name): Update.
11365 (symbol_demangled_name, symbol_search_name): Update.
11366 * symtab.c (symbol_get_demangled_name): Change result type
11367 from char * to const char *. All callers updated.
11368 (symbol_natural_name, symbol_demangled_name): Ditto.
11369 (symbol_search_name): Ditto.
11370 (completion_list_add_name): Change type of symname,sym_text,
11371 text,word parameters from char * to const char *.
11372 (completion_list_objc_symbol): Change type of sym_text,
11373 text,word parameters from char * to const char *.
11374 * ada-lang.c (find_struct_field): Change type of name parameter
11375 from char * to const char *.
11376 (encoded_ordered_before): Similarly for N0,N1 parameters.
11377 (old_renaming_is_invisible): Similarly for function_name parameter.
11378 (ada_type_name): Change result type from char * to const char *.
11379 All callers updated.
11380 * ada-lang.h (ada_type_name): Update.
11381 * buildsym.c (hashname): Change type of name parameter
11382 from char * to const char *.
11383 * buildsym.h (hashname): Update.
11384 * dbxread.c (end_psymtab): Change type of include_list parameter
11385 from char ** to const char **.
11386 * dwarf2read.c (determine_prefix): Change result type
11387 from char * to const char *. All callers updated.
11388 * f-lang.c (find_common_for_function): Change type of name, funcname
11389 parameters from char * to const char *.
11390 * f-lang.c (find_common_for_function): Update.
11391 * f-valprint.c (list_all_visible_commons): Change type of funcname
11392 parameters from char * to const char *.
11393 * gdbarch.sh (static_transform_name): Change type of name parameter
11394 and result from char * to const char *.
11395 * gdbarch.c: Regenerate.
11396 * gdbarch.h: Regenerate.
11397 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11398 of name parameter from char * to const char *.
11399 * jv-lang.c (java_primitive_type_from_name): Ditto.
11400 (java_demangled_signature_length): Similarly for signature parameter.
11401 (java_demangled_signature_copy): Ditto.
11402 (java_demangle_type_signature): Ditto.
11403 * jv-lang.h (java_primitive_type_from_name): Update.
11404 (java_demangle_type_signature): Update.
11405 * objc-lang.c (specialcmp): Change type of a,b parameters
11406 from char * to const char *.
11407 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11408 from char * to const char *. All callers updated.
11409 * p-lang.h (is_pascal_string_type): Update.
11410 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11411 of name parameter from char * to const char *.
11412 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11413 * utils.c (fprintf_symbol_filtered): Ditto.
11414 * defs.h (fprintf_symbol_filtered): Update.
11415 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11416 * stabsread.h (end_psymtab): Update.
11417 * stack.c (find_frame_funname): Change type of funname parameter
11418 from char ** to const char **.
11419 * stack.h (find_frame_funname): Update.
11420 * typeprint.c (type_print): Change type of varstring parameter
11421 from char * to const char *.
11422 * value.h (type_print): Update.
11423 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11424 from char * to const char *. All callers updated.
11425 (xcoff_end_psymtab): Change type of include_list parameter
11426 from char ** to const char **. All callers updated.
11427 (swap_sym): Similarly for name parameter. All callers updated.
11428 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11429 Use xstrdup.
11430 (process_coff_symbol): Use xstrdup.
11431 * stabsread.c (stabs_method_name_from_physname): Renamed from
11432 update_method_name_from_physname. Change result type from void
11433 to char *. All callers updated.
11434 (read_member_functions): In has_destructor case, store name in objfile
11435 obstack instead of malloc space. In !has_stub case, fix mem leak.
11436
5579a92e
TT
114372012-02-06 Luca Pizzamiglio <[email protected]>
11438
11439 * configure: Rebuild.
11440 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11441 LDFLAGS.
11442
9058f767
KB
114432012-02-03 Kevin Buettner <[email protected]>
11444
11445 * configure.tgt (rl78-*-elf): New target.
11446 * rl78-tdep.c: New file.
11447
5b37825d
PW
114482012-02-03 Philippe Waroquiers <[email protected]>
11449
11450 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11451 and continue the loop. Add QUIT statement.
11452
e009ee71
TT
114532012-02-03 Tom Tromey <[email protected]>
11454
11455 PR gdb/13596:
11456 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11457 bfd_lookup_symbol_from_symtab.
11458 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11459 gdb_bfd_lookup_symbol_from_symtab.
11460
f7e44f65
JB
114612012-02-03 Joel Brobecker <[email protected]>
11462
11463 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11464 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11465 symbol. Add assertion that sym2 is never NULL.
11466
2c02bd72
DE
114672012-02-02 Doug Evans <[email protected]>
11468
11469 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11470 "name" parameter to const char ** from char **. All callers updated.
11471 (find_pc_partial_function): Ditto.
11472 (cache_pc_function_name): Change type to const char * from char *.
11473 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11474 (find_pc_partial_function): Update.
11475 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11476 type of "name" parameter to const char * from char *.
11477 All uses updated.
11478 * arch-utils.c (generic_in_solib_return_trampoline): Change
11479 type of "name" parameter to const char * from char *.
11480 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11481 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11482 type of "name" parameter to const char * from char *.
11483 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11484 * gdbarch.c: Regenerate.
11485 * gdbarch.h: Regenerate.
11486 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11487 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11488 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11489 type of "name" parameter to const char * from char *.
11490 * skip.c (skip_function_pc): Ditto.
11491 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11492 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11493 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11494 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11495 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11496 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11497 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11498 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11499 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11500
e886a173
PA
115012012-02-02 Pedro Alves <[email protected]>
11502
11503 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11504 the current inferior has no execution. Make sure the current
11505 remote process matches gdb's current inferior.
11506
c709a7c2
TT
115072012-02-02 Tom Tromey <[email protected]>
11508
11509 PR gdb/13405:
11510 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11511 read-only memory.
11512
f149aabd
TT
115132012-02-02 Tom Tromey <[email protected]>
11514
11515 PR gdb/9307:
11516 * symtab.c (lookup_language_this): Set block_found.
11517
03bef283
TT
115182012-02-01 Tom Tromey <[email protected]>
11519
11520 PR gdb/13431:
11521 * jit.c (struct jit_inferior_data): Rewrite.
11522 (struct jit_objfile_data): New.
11523 (get_jit_objfile_data): New function.
11524 (add_objfile_entry): Update.
11525 (jit_read_descriptor): Return int. Replace descriptor_addr
11526 argument with inf_data. Update. Don't call error.
11527 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11528 descriptor here.
11529 (jit_inferior_init): Don't look up descriptor. Don't call error.
11530 (jit_reset_inferior_data_and_breakpoints)
11531 (jit_inferior_created_observer): Remove.
11532 (jit_inferior_exit_hook): Update.
11533 (jit_executable_changed_observer): Remove.
11534 (jit_event_handler): Update.
11535 (free_objfile_data): Reset inferior data if needed.
11536 (_initialize_jit): Update.
11537
f0bbc364
TT
115382012-02-01 Tom Tromey <[email protected]>
11539
11540 * jit.c (bfd_open_from_target_memory): Move higher in file.
11541
47c1316c
TG
115422012-02-01 Tristan Gingold <[email protected]>
11543
11544 * libunwind-frame.c (libunwind_load): Display message if dlopen
11545 failed.
11546
8e704927
GB
115472012-02-01 Gary Benson <[email protected]>
11548
09c7a31f 11549 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
11550 (iterate_over_symbols): Use the above.
11551 * symtab.c (iterate_over_symbols): Likewise.
11552 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11553 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11554 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11555 (iterate_name_matcher): Document return values.
11556 (collect_one_symbol): Likewise.
11557 (collect_function_symbols): Likewise.
11558 (collect_symbols): Likewise.
11559
d9680e73
TT
115602012-02-01 Tom Tromey <[email protected]>
11561
11562 * ada-lang.c (resolve_subexp): Update.
11563 (ada_lookup_symbol_list): Add 'full_search' argument.
11564 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11565 ada_lookup_symbol_list.
11566 (ada_lookup_encoded_symbol): Update.
11567 (get_var_value): Update.
11568 * ada-exp.y (block_lookup): Update.
11569 (write_var_or_type): Update.
11570 (write_name_assoc): Update.
11571 * ada-lang.h (ada_lookup_symbol_list): Update.
11572
72e1143f
TT
115732012-01-31 Tom Tromey <[email protected]>
11574
11575 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11576 comment.
11577
ab2d2ad3
DE
115782012-01-31 Doug Evans <[email protected]>
11579
11580 * symtab.h: Remove outdated comment.
e9111bf7 11581 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 11582
bc884eba
JB
115832012-02-01 Josh Matthews <[email protected]> (tiny change)
11584
11585 Fix build error in Darwin port.
11586 * i386-darwin-nat.c: Include i386-nat.h.
11587
8fc3fc34
TT
115882012-01-30 Tom Tromey <[email protected]>
11589
11590 PR breakpoints/13568:
11591 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11592 argument. Check for recursive includes.
11593 (dwarf_decode_macros): Create an include hash.
11594
5d853008
ME
115952012-01-30 Michael Eager <[email protected]>
11596
11597 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11598 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 11599 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
11600 (powerpc_linux_in_plt_stub): New function.
11601 (powerpc_linux_in_dynsym_resolve_code): New function.
11602 (ppc_skip_trampoline_code): New function.
11603 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11604 Use glibc_skip_solib_resolver.
11605
40478521
JK
116062012-01-28 Jan Kratochvil <[email protected]>
11607
11608 Code cleanup: Make 1440 bytes of data segment read-only.
11609 * arch-utils.c (endian_enum): Make it const char *const [].
11610 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11611 Likewise.
11612 * breakpoint.c (always_inserted_enums): Likewise.
11613 * cli/cli-cmds.c (script_ext_enums): Likewise.
11614 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11615 enumlist parameter const char *const *.
11616 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11617 const char *const *.
11618 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11619 parameter const char *const *.
11620 * cris-tdep.c (cris_modes): Make it const char *const [].
11621 * filesystem.c (target_file_system_kinds): Likewise.
11622 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11623 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11624 (can_use_displaced_stepping_enum, scheduler_enums)
11625 (exec_direction_names): Likewise.
11626 * language.c (_initialize_language): Make the type_or_range_names and
11627 case_sensitive_names variables const char *const [].
11628 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11629 * python/python.c (python_excp_enums): Likewise.
11630 * remote.c (interrupt_sequence_modes): Likewise.
11631 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11632 * serial.c (logbase_enums): Likewise.
11633 * sh-tdep.c (sh_cc_enum): Likewise.
11634 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11635 Likewise.
11636 * symtab.c (multiple_symbols_modes): Likewise.
11637 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11638 Likewise.
11639 * utils.c (internal_problem_modes): Likewise.
11640
b3b8b934
JK
116412012-01-27 Jan Kratochvil <[email protected]>
11642
11643 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11644 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11645 result.
11646
8c85a4e2
DE
116472012-01-27 Doug Evans <[email protected]>
11648
11649 * configure.ac (with_python): Fix absolute path handling for win32.
11650 * configure: Regenerate.
11651
78d8b4d7
DE
116522012-01-26 Doug Evans <[email protected]>
11653
eca864fe
DE
11654 * symtab.c: Whitespace cleanup, no code changes.
11655
7e082072
DE
11656 * symtab.c (lookup_symbol_in_language): Improve comment.
11657 (lookup_symbol_aux): Fix comment.
11658
7dc25483
DE
11659 * psymtab.c (add_psymbol_to_list): Result is now "void".
11660 * psympriv.h (add_psymbol_to_list): Update.
11661
78d8b4d7
DE
11662 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11663
4c63965b
JK
116642012-01-26 Jan Kratochvil <[email protected]>
11665
11666 Do not open script filenames twice.
11667 * cli/cli-cmds.c (source_script_from_stream): Pass to
11668 source_python_script also STREAM.
11669 * python/py-auto-load.c (source_section_scripts): Pass to
11670 source_python_script_for_objfile also STREAM.
11671 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11672 also INPUT.
11673 * python/python-internal.h (source_python_script_for_objfile): New
11674 parameter file, rename parameter file to filename.
11675 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11676 instead if !_WIN32. Update the function comment.
11677 (source_python_script, source_python_script_for_objfile)
11678 (source_python_script): New parameter file, rename parameter file to
11679 filename. Pass FILENAME to python_run_simple_file.
11680 * python/python.h (source_python_script): New parameter file, rename
11681 parameter file to filename.
11682
88f38a04
PA
116832012-01-26 Pedro Alves <[email protected]>
11684
11685 * corelow.c (core_has_fake_pid): Delete.
11686 (core_close): Delete references to `core_has_fake_pid'.
11687 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11688 (core_open): Delete references to `core_has_fake_pid'.
11689 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11690 the removed global.
11691
e078317b
JB
116922012-01-26 Joel Brobecker <[email protected]>
11693
11694 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11695 Remove language parameter from name_matcher. Adjust the comment.
11696 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11697 Remove language parameter.
11698 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11699 * linespec.c (iterate_name_matcher): Likewise.
11700 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11701 name_matcher. Adjust call accordingly.
11702 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11703 (maintenance_check_symtabs): Adjust type of parameter "fun".
11704 * psymtab.h (maintenance_check_symtabs): Likewise.
11705
74ccd7f5
JB
117062012-01-26 Joel Brobecker <[email protected]>
11707
11708 * language.h (symbol_name_match_p_ftype): New typedef.
11709 (struct language_defn): Replace field la_symbol_name_compare
11710 by la_get_symbol_name_match_p.
11711 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11712 (ada_language_defn): Use it.
11713 * linespec.c (struct symbol_matcher_data): New type.
11714 (iterate_name_matcher): Rewrite.
11715 (iterate_over_all_matching_symtabs): Pass a pointer to
11716 a symbol_matcher_data struct to expand_symtabs_matching
11717 instead of just the lookup name.
11718 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11719 opencl-lang.c, p-lang.c, language.c: Delete field
11720 la_symbol_name_compare, and replace by NULL for new field
11721 la_get_symbol_name_match_p.
11722 * symfile.h (struct quick_symbol_functions): Update comment.
11723
5d268276
TT
117242012-01-25 Tom Tromey <[email protected]>
11725
11726 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11727 dereferencing.
11728
edcc5120
TT
117292012-01-24 Tom Tromey <[email protected]>
11730
11731 PR symtab/12406:
11732 * solib.c (update_solib_list): Update the program space's
11733 added_solibs and deleted_solibs fields.
11734 * progspace.h (struct program_space) <added_solibs,
11735 deleted_solibs>: New fields.
11736 (clear_program_space_solib_cache): Declare.
11737 * progspace.c (release_program_space): Call
11738 clear_program_space_solib_cache.
11739 (clear_program_space_solib_cache): New function.
11740 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11741 bpstat_stop_status. Use handle_solib_event.
11742 * breakpoint.c: Include gdb_regex.h.
11743 (print_solib_event): New function.
11744 (bpstat_print): Use print_solib_event.
11745 (bpstat_stop_status): Add special case for bp_shlib_event.
11746 (handle_solib_event): New function.
11747 (bpstat_what): Use handle_solib_event.
11748 (struct solib_catchpoint): New.
11749 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11750 (breakpoint_hit_catch_solib, check_status_catch_solib)
11751 (print_it_catch_solib, print_one_catch_solib)
11752 (print_mention_catch_solib, print_recreate_catch_solib): New
11753 functions.
11754 (catch_solib_breakpoint_ops): New global.
11755 (catch_load_or_unload, catch_load_command_1)
11756 (catch_unload_command_1): New functions.
11757 (internal_bkpt_check_status): Add special case for
11758 bp_shlib_event.
11759 (internal_bkpt_print_it): Use print_solib_event.
11760 (initialize_breakpoint_ops): Initialize
11761 catch_solib_breakpoint_ops.
11762 (_initialize_breakpoint): Register "catch load" and "catch
11763 unload".
11764 * breakpoint.h (handle_solib_event): Declare.
11765 * NEWS: Add entry for "catch load" and "catch unload".
11766
fa864999
TT
117672012-01-24 Tom Tromey <[email protected]>
11768
11769 * ada-lang.c: Include gdb_vecs.h.
11770 * charset.c: Include gdb_vecs.h.
11771 * tracepoint.h: Include gdb_vecs.h.
11772 * gdb_vecs.h: New file.
11773
f90263c1
TT
117742012-01-24 Pedro Alves <[email protected]>
11775
11776 * breakpoint.c (breakpoint_hit_catch_fork)
11777 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11778 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11779 * infrun.c (inferior_has_forked, inferior_has_vforked)
11780 (inferior_has_execd, inferior_has_called_syscall): Delete.
11781 (handle_syscall_event): Get syscall_number from the execution
11782 control state's wait status.
11783 (wait_for_inferior): Don't clear syscall_number.
11784
09ac7c10
TT
117852012-01-24 Pedro Alves <[email protected]>
11786
11787 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11788 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11789 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11790 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11791 `ws' parameter.
11792 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11793 false for events other than TARGET_SIGNAL_TRAP.
11794 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11795 Add `ws' parameter.
11796 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11797 events other than TARGET_SIGNAL_TRAP.
11798 (tracepoint_breakpoint_hit): Add `ws' parameter.
11799 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11800 parameter.
11801 (bpstat_stop_status): Same.
11802 (pc_at_non_inline_function): Same.
11803 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11804 to pass the current event's waitstatus to bpstat_stop_status
11805 and pc_at_non_inline_function.
11806
86eb7e95
JK
118072012-01-24 Jan Kratochvil <[email protected]>
11808
11809 Code cleanup.
11810 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11811 Update the function comment for it.
11812 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11813 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11814 for STREAM.
11815
a9b3a50f
PA
118162012-01-24 Pedro Alves <[email protected]>
11817
11818 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11819 outside `bs->stop' block.
11820 (bpstat_what): Rework bp_shlib_event handling.
11821 (internal_bkpt_check_status): If the breakpoint is a
11822 bp_shlib_event, then set bs->stop and bs->print if
11823 stop_on_solib_events is set.
11824
53fe1783
GB
118252012-01-24 Gary Benson <[email protected]>
11826
11827 Delete #if 0'd out code.
11828 * stack.c (print_frame_label_vars): Remove.
11829 (catch_info): Likewise.
11830 (_initialize_stack): Remove "info catch" command.
11831 * NEWS: Mention the above.
11832
49c62f2e
PA
118332012-01-24 Pedro Alves <[email protected]>
11834
11835 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11836 it.
11837 (remote_notice_new_inferior): If the remote end doesn't support
11838 the multiprocess extensions, then the PID is fake.
11839 (add_current_inferior_and_thread): New.
11840 (remote_start_remote): Use it.
11841 (extended_remote_attach_1): Adjust.
11842 (extended_remote_create_inferior_1): Use
11843 add_current_inferior_and_thread.
11844
d0d8b0c6
JK
118452012-01-24 Jan Kratochvil <[email protected]>
11846
11847 Fix watchpoints to be specific for each inferior.
11848 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11849 current_program_space.
11850 * i386-nat.c (i386_inferior_data_cleanup): New.
11851 (i386_inferior_data_get): Replace variable inf_data_local by an
11852 inferior_data call.
11853 (i386_use_watchpoints): Initialize i386_inferior_data.
11854 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11855 specific iterate_over_lwps.
11856
4403d8e9
JK
118572012-01-24 Jan Kratochvil <[email protected]>
11858
11859 Fix watchpoints across inferior fork.
11860 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11861 comment for linux_nat_iterate_watchpoint_lwps.
11862 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11863 linux_nat_iterate_watchpoint_lwps.
11864 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11865 * i386-linux-nat.c (update_debug_registers_callback): Update the
11866 comment for linux_nat_iterate_watchpoint_lwps.
11867 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11868 linux_nat_iterate_watchpoint_lwps.
11869 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11870 * i386-nat.c: Include inferior.h.
11871 (dr_mirror): Remove.
11872 (i386_inferior_data, struct i386_inferior_data)
11873 (i386_inferior_data_get): New.
11874 (i386_debug_reg_state): Use i386_inferior_data_get.
11875 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11876 (i386_insert_watchpoint, i386_remove_watchpoint)
11877 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11878 (i386_remove_hw_breakpoint): New variable state, use
11879 i386_debug_reg_state instead of DR_MIRROR.
11880 * linux-nat.c (delete_lwp): New declaration.
11881 (num_lwps): Move here from downwards.
11882 (delete_lwp_cleanup): New.
11883 (linux_child_follow_fork): Create new child_lp, call
11884 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11885 PTRACE_DETACH.
11886 (num_lwps): Move upwards.
11887 (linux_nat_iterate_watchpoint_lwps): New.
11888 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11889 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11890
2992c9a7 118912012-01-24 Joel Brobecker <[email protected]>
11892
11893 GDB 7.4 released.
11894
e360902b
PA
118952012-01-23 Pedro Alves <[email protected]>
11896
11897 * top.c (caution): Rename to ...
11898 (confirm): ... this.
11899 (show_caution): Rename to ...
11900 (show_confirm): ... this.
11901 (quit_cover): Adjust.
11902 (init_main): Adjust.
11903 * top.h (caution): Rename to ...
11904 (confirm): ... this.
11905 * utils.c (internal_vproblem, defaulted_query): Adjust.
11906
050a2e1d
PA
119072012-01-23 Pedro Alves <[email protected]>
11908
11909 * top.c (caution): Update comment.
11910 (execute_command): Don't consider the current value of `caution'.
11911
77a35dd8
JK
119122012-01-23 Jan Kratochvil <[email protected]>
11913
11914 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11915
a71b5a38
UW
119162012-01-23 Ulrich Weigand <[email protected]>
11917
11918 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11919 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11920 * target.c (target_fileio_pwrite): Remove buffer address from
11921 debug output.
11922 (target_fileio_pread): Likewise.
11923
d99bd577
UW
119242012-01-20 Ulrich Weigand <[email protected]>
11925
11926 * NEWS: Document remote "info proc" and "generate-core-file".
11927
35c2fab7
UW
119282012-01-20 Ulrich Weigand <[email protected]>
11929
11930 * gdbarch.sh (find_memory_regions): New callback.
11931 * gdbarch.c, gdbarch.h: Regenerate.
11932
11933 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11934 callback before falling back to target method.
11935
11936 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11937 (linux_target_install_ops): No longer install it.
11938
11939 * linux-tdep.c (linux_find_memory_regions): New function.
11940 (linux_init_abi): Install it.
11941
6432734d
UW
119422012-01-20 Ulrich Weigand <[email protected]>
11943
11944 * gdbarch.sh (make_corefile_notes): New architecture callback.
11945 * gdbarch.c: Regenerate.
11946 * gdbarch.h: Likewise.
11947
11948 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11949 before target_make_corefile_notes. If NULL is returned, the
11950 target does not support core file generation.
11951
11952 * linux-nat.c: Include "linux-tdep.h".
11953 (find_signalled_thread, find_stop_signal): Remove.
11954 (linux_nat_do_thread_registers): Likewise.
11955 (struct linux_nat_corefile_thread_data): Likewise.
11956 (linux_nat_corefile_thread_callback): Likewise.
11957 (iterate_over_spus): Likewise.
11958 (struct linux_spu_corefile_data): Likewise.
11959 (linux_spu_corefile_callback): Likewise.
11960 (linux_spu_make_corefile_notes): Likewise.
11961 (linux_nat_collect_thread_registers): New function.
11962 (linux_nat_make_corefile_notes): Replace contents by call to
11963 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11964 as native-only callback.
11965
11966 * linux-tdep.h: Include "bfd.h".
11967 (struct regcache): Add forward declaration.
11968 (linux_collect_thread_registers_ftype): New typedef.
11969 (linux_make_corefile_notes): Add prototype.
11970 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11971 "regset.h", and "elf-bfd.h".
11972 (find_signalled_thread, find_stop_signal): New functions.
11973 (linux_spu_make_corefile_notes): Likewise.
11974 (linux_collect_thread_registers): Likewise.
11975 (struct linux_corefile_thread_data): New data structure.
11976 (linux_corefile_thread_callback): New funcion.
11977 (linux_make_corefile_notes): Likewise.
11978 (linux_make_corefile_notes_1): Likewise.
11979 (linux_init_abi): Install it.
11980
3030c96e
UW
119812012-01-20 Ulrich Weigand <[email protected]>
11982
11983 * gdbarch.sh (info_proc): New callback.
11984 * gdbarch.c, gdbarch.h: Regenerate.
11985
11986 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11987 before falling back to the target info_proc callback.
11988
11989 * linux-nat.c: Do not include "cli/cli-utils.h".
11990 (linux_nat_info_proc): Remove.
11991 (linux_target_install_ops): No longer install it.
11992
11993 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11994 (read_mapping): New function.
11995 (linux_info_proc): Likewise.
11996 (linux_init_abi): Install it.
11997
145b16a9
UW
119982012-01-20 Ulrich Weigand <[email protected]>
11999
12000 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12001 * infcmd.c: (info_proc_cmd_1): New function.
12002 (info_proc_cmd): New function, moved here from equivalent routine
12003 orignally in linux-nat.c.
12004 (info_proc_cmd_mappings): Likewise.
12005 (info_proc_cmd_stat): Likewise.
12006 (info_proc_cmd_status): Likewise.
12007 (info_proc_cmd_cwd): Likewise.
12008 (info_proc_cmd_cmdline): Likewise.
12009 (info_proc_cmd_exe): Likewise.
12010 (info_proc_cmd_all): Likewise.
12011 (_initialize_infcmd): Install "info proc" command and subcommands.
12012
12013 * target.h (struct target_ops): Add to_info_proc.
12014 (target_info_proc): Add prototype.
12015 * target.c (target_info_proc): New function.
12016
12017 * procfs.c (procfs_info_proc): Add prototype.
12018 (info_proc_cmd): Rename into ...
12019 (procfs_info_proc): ... this. Update argument types as appropriate
12020 for a to_info_proc implementation. Handle "what" argument.
12021 (procfs_target): Install procfs_info_proc.
12022 (_initialize_procfs): No longer install "info proc" command.
12023
12024 * linux-nat.c: (enum info_proc_what): Remove.
12025 (linux_nat_info_proc_cmd_1): Rename into ...
12026 (linux_nat_info_proc): ... this. Update argument types as appropriate
12027 for a to_info_proc implementation.
12028 (linux_nat_info_proc_cmd): Remove.
12029 (linux_nat_info_proc_cmd_mappings): Likewise.
12030 (linux_nat_info_proc_cmd_stat): Likewise.
12031 (linux_nat_info_proc_cmd_status): Likewise.
12032 (linux_nat_info_proc_cmd_cwd): Likewise.
12033 (linux_nat_info_proc_cmd_cmdline): Likewise.
12034 (linux_nat_info_proc_cmd_exe): Likewise.
12035 (linux_nat_info_proc_cmd_all): Likewise.
12036 (linux_target_install_ops): Install linux_nat_info_proc.
12037 (_initialize_linux_nat): No longer install "info proc" command
12038 and subcommands.
12039
b9e7b9c3
UW
120402012-01-20 Ulrich Weigand <[email protected]>
12041
12042 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12043 * config.in, configure: Regenerate.
12044
12045 * target.h (struct target_ops): Add to_fileio_readlink.
12046 (target_fileio_readlink): Add prototype.
12047 * target.c (target_fileio_readlink): New function.
12048
12049 * inf-child.c: Conditionally include <sys/param.h>.
12050 (inf_child_fileio_readlink): New function.
12051 (inf_child_target): Install it.
12052
12053 * remote.c (PACKET_vFile_readlink): New enum value.
12054 (remote_hostio_readlink): New function.
12055 (init_remote_ops): Install it.
12056 (_initialize_remote): Handle vFile:readlink packet type.
12057
7313baad
UW
120582012-01-20 Pedro Alves <[email protected]>
12059 Ulrich Weigand <[email protected]>
12060
12061 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12062 * config.in, configure: Regenerate.
12063
12064 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12065 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12066 (target_fileio_open): Add prototype.
12067 (target_fileio_pwrite): Likewise.
12068 (target_fileio_pread): Likewise.
12069 (target_fileio_close): Likewise.
12070 (target_fileio_unlink): Likewise.
12071 (target_fileio_read_alloc): Likewise.
12072 (target_fileio_read_stralloc): Likewise.
12073
12074 * target.c: Include "gdb/fileio.h".
12075 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12076 (default_fileio_target): New function.
12077 (target_fileio_open): Likewise.
12078 (target_fileio_pwrite): Likewise.
12079 (target_fileio_pread): Likewise.
12080 (target_fileio_close): Likewise.
12081 (target_fileio_unlink): Likewise.
12082 (target_fileio_close_cleanup): Likewise.
12083 (target_fileio_read_alloc_1): Likewise.
12084 (target_fileio_read_alloc): Likewise.
12085 (target_fileio_read_stralloc): Likewise.
12086
12087 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12088 <fcntl.h>, and <unistd.h>.
12089 (inf_child_fileio_open_flags_to_host): New function.
12090 (inf_child_errno_to_fileio_error): Likewise.
12091 (inf_child_fileio_open): Likewise.
12092 (inf_child_fileio_pwrite): Likewise.
12093 (inf_child_fileio_pread): Likewise.
12094 (inf_child_fileio_close): Likewise.
12095 (inf_child_fileio_unlink): Likewise.
12096 (inf_child_target): Install to_fileio routines.
12097
12098 * remote.c (init_remote_ops): Install to_fileio routines.
12099
901f9912
UW
121002012-01-20 Pedro Alves <[email protected]>
12101 Ulrich Weigand <[email protected]>
12102
12103 * remote.c (remote_multi_process_p): Only check for multi-process
12104 protocol feature, do not check for extended protocol.
12105 (remote_supports_multi_process): Check for extended protocol here.
12106 (set_general_process): Likewise.
12107 (extended_remote_kill): Likewise.
12108 (remote_pid_to_str): Likewise.
12109 (remote_query_supported): Always query multiprocess mode.
12110
e714e1bf
UW
121112012-01-20 Pedro Alves <[email protected]>
12112 Ulrich Weigand <[email protected]>
12113
12114 * inferior.h (struct inferior): Add fake_pid_p.
12115 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12116 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12117 magic_null_ptid since the remote side doesn't provide a real PID.
12118
50897289
TT
121192012-01-19 Tom Tromey <[email protected]>
12120
12121 * NEWS: Combine the two Python sections.
12122
1afc2033
JK
121232012-01-19 Jan Kratochvil <[email protected]>
12124
12125 * target.h (target_close): Update comment on the target's unpush state.
12126
305436e0
PA
121272012-01-19 Pedro Alves <[email protected]>
12128
12129 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12130 linux_nat_async directly instead of going through the target
12131 vector.
12132 * target.c (unpush_target): Close target after unpushing it, not
12133 before.
12134
49323895
GB
121352012-01-19 Gary Benson <[email protected]>
12136
12137 * mdebugread.c (sort_blocks): Replace integer constants with ones
12138 derived from FIRST_LOCAL_BLOCK.
12139
1db33378
PP
121402012-01-18 Paul Pluzhnikov <[email protected]>
12141 Jan Kratochvil <[email protected]>
12142
12143 PR gdb/9538
12144 * symfile.c (find_separate_debug_file): New function.
12145 (terminate_after_last_dir_separator): Likewise.
12146 (find_separate_debug_file_by_debuglink): Also try realpath.
12147 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12148 * configure: Regenerate.
12149 * config.in: Regenerate.
12150
f83d8a90
DE
121512012-01-18 Doug Evans <[email protected]>
12152
12153 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12154 (main.o): Remove rule.
12155 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12156 (--with-sysroot): Rewrite.
12157 * configure: Regenerate.
12158 * config.in: Regenerate.
12159
2dbca4d6
SDJ
121602012-01-18 Sergio Durigan Junior <[email protected]>
12161
12162 * parse.c (initialize_expout): New function.
12163 (reallocate_expout): Likewise.
12164 (parse_exp_in_context): Use `initialize_expout' and
12165 `reallocate_expout' when appropriate.
12166
0695b514
PA
121672012-01-18 Pedro Alves <[email protected]>
12168
12169 * record.c (struct record_breakpoint, record_breakpoint_p)
12170 (record_breakpoints): New.
12171 (record_insert_breakpoint, record_remove_breakpoint): Manage
12172 record breakpoints list. Only remove breakpoints from the
12173 inferior if they had been inserted there in the first place.
12174
136e1c30
DE
121752012-01-17 Doug Evans <[email protected]>
12176
12177 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12178 if we know we don't have a file name to look for.
12179
c0bf857d
PA
121802012-01-17 Pedro Alves <[email protected]>
12181
12182 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12183 the frame's stop reason is UNWIND_UNAVAILABLE.
12184
b486de60
JK
121852012-01-17 Jan Kratochvil <[email protected]>
12186
12187 Fix compilation error.
12188 * m2-exp.y (yyerror): Use ANSI C prototype.
12189
d04550a6
SDJ
121902012-01-16 Sergio Durigan Junior <[email protected]>
12191
12192 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12193 (growbuf_by_size): Likewise.
12194 (yyerror): Likewise.
12195 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12196 (modblock): Remove variable (was #if 0'ed).
12197 (parse_number): Convert prototype from K&R to ANSI C.
12198 (yyerror): Likewise.
12199 * objc-exp.y (parse_number): Likewise.
12200 (yyerror): Likewise.
12201 (yylex): Remove #if 0'ed code.
12202 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12203 (yyerror): Likewise.
12204
4aac40c8
TT
122052012-01-16 Tom Tromey <[email protected]>
12206
12207 * NEWS: Add item.
12208 * symtab.h (compare_filenames_for_search): Declare.
12209 * symtab.c (compare_filenames_for_search): New function.
12210 (iterate_over_some_symtabs): Use it.
12211 * symfile.h (struct quick_symbol_functions)
12212 <map_symtabs_matching_filename>: Change spec.
12213 * psymtab.c (partial_map_symtabs_matching_filename): Use
12214 compare_filenames_for_search. Update for new spec.
12215 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12216 compare_filenames_for_search. Update for new spec.
12217 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12218
cafec441
TT
122192012-01-16 Tom Tromey <[email protected]>
12220
12221 PR python/13281:
12222 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12223 (struct main_type) <flag_flag_enum>: New field.
12224 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12225 * NEWS: Add entries.
12226 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12227 enums.
12228 * python/lib/gdb/printing.py (_EnumInstance): New class.
12229 (FlagEnumerationPrinter): Likewise.
12230
983af33b
SDJ
122312012-01-16 Sergio Durigan Junior <[email protected]>
12232
12233 * breakpoint.c (create_sals_from_address_default): New function.
12234 (create_breakpoints_sal_default): Likewise.
12235 (decode_linespec_default): Likewise.
12236 (is_marker_spec): Removed.
12237 (strace_marker_p): New function.
12238 (init_breakpoint_sal): Using `strace_marker_p' instead of
12239 `is_marker_spec'.
12240 (create_breakpoint): Call method `create_sals_from_address' from
12241 breakpoint_ops, replacing code that created SALs conditionally
12242 on the type of the breakpoint. Call method `create_breakpoints_sal',
12243 replacing code that created breakpoints conditionally on the type
12244 wanted.
12245 (base_breakpoint_create_sals_from_address): New function.
12246 (base_breakpoint_create_breakpoints_sal): Likewise.
12247 (base_breakpoint_decode_linespec): Likewise.
12248 (base_breakpoint_ops): Add methods
12249 `base_breakpoint_create_sals_from_address',
12250 `base_breakpoint_create_breakpoints_sal' and
12251 `base_breakpoint_decode_linespec'.
12252 (bkpt_create_sals_from_address): New function.
12253 (bkpt_create_breakpoints_sal): Likewise.
12254 (bkpt_decode_linespec): Likewise.
12255 (tracepoint_create_sals_from_address): Likewise.
12256 (tracepoint_create_breakpoints_sal): Likewise.
12257 (tracepoint_decode_linespec): Likewise.
12258 (strace_marker_create_sals_from_address): Likewise.
12259 (strace_marker_create_breakpoints_sal): Likewise.
12260 (strace_marker_decode_linespec): Likewise.
12261 (strace_marker_breakpoint_ops): New variable.
12262 (addr_string_to_sals): Remove `marker_spec'. Call method
12263 `decode_linespec' from breakpoint_ops, replacing code that decoded
12264 an address string into a SAL. Use `strace_marker_p' instead of
12265 `marker_spec'.
12266 (strace_command): Decide whether we are dealing with a static
12267 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12268 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12269 * breakpoint.h (linespec_result, linespec_sals): New forward
12270 declarations.
12271 (breakpoint_ops) <create_sals_from_address>,
12272 <create_breakpoints_sal>, <decode_linespec>: New methods.
12273
4795f398
DE
122742012-01-14 Doug Evans <[email protected]>
12275
12276 * NEWS: Update text for "maint set python print-stack".
12277 It is deprecated in gdb 7.4 and deleted in 7.5.
12278
ee5106fe
EZ
122792012-01-13 Eli Zaretskii <[email protected]>
12280
12281 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12282 including curses.h.
12283
b161e06f
JK
122842012-01-12 Jan Kratochvil <[email protected]>
12285
12286 * configure: Regenerate.
12287 * config.in: Regenerate.
12288
85254831
KS
122892012-01-12 Keith Seitz <[email protected]>
12290
12291 PR mi/10586
12292 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12293 (ANONYMOUS_UNION_NAME): Define.
12294 (is_path_expr_parent): New function.
12295 (get_path_expr_parent): New function.
12296 (is_anonymous_child): New function.
12297 (create_child_with_value): If the child is anonymous and without
12298 a name, assign an object name to it.
12299 (c_describe_child): Use get_path_expr_parent to determine
12300 the parent expression.
12301 If there field represents an anonymous struct or union and
12302 has no name, set an appropriate display name and expression.
12303 (cplus_describe_child): Likewise.
12304
620fa63a
PA
123052012-01-12 Pedro Alves <[email protected]>
12306
12307 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12308 available when %ebp is found to be zero (outermost).
12309
2efa2c79
AT
123102012-01-11 Andreas Tobler <[email protected]>
12311
12312 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12313 an internal gdb_static_assert.
12314 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12315
88e7d25d
TT
123162012-01-11 Tom Tromey <[email protected]>
12317
12318 PR gdb/9598:
12319 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12320 catch" and "catch throw".
12321
72384ba3
PH
123222012-01-11 Paul Hilfinger <[email protected]>
12323
12324 * blockframe.c (block_innermost_frame): Start search from selected
12325 frame, if present, or otherwise the current frame.
12326
12327 * c-exp.y (variable): Update innermost_block for
12328 'block COLONCOLON NAME' clause.
12329 * m2-exp.y (variable): Ditto.
12330 * objc-exp.y (variable): Ditto.
12331
065a711f
TT
123322012-01-10 Tom Tromey <[email protected]>
12333
12334 PR python/13199:
12335 * python/python.c (finish_python_initialization): Set sys.argv.
12336
f3f5162e
DE
123372012-01-10 Doug Evans <[email protected]>
12338
12339 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12340 "want_line_info". All callers updated.
12341 (dwarf_decode_lines_1): New function.
12342 (handle_DW_AT_stmt_list): Add function comment.
12343 New arg "want_line_info". All callers updated.
12344 (read_file_scope,read_type_unit_scope): Move comment from
12345 handle_DW_AT_stmt_list to here.
12346
9934703b
JK
123472012-01-10 Jan Kratochvil <[email protected]>
12348
12349 Fix regression after libiberty/ update for GCC PR 6057 and others.
12350 * c-exp.y (operator) <OPERATOR DELETE>
12351 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12352 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12353 (make_builtin_type, make_name): New variable i, add gdb_assert.
12354 (operator) <OPERATOR NEW>: Update ARGS to 3.
12355 (operator) <OPERATOR DELETE>: Add trailing space.
12356 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12357 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12358 * cp-support.c (cp_canonicalize_string): Check NULL from
12359 cp_comp_to_string, call warning and return.
12360
06b9f45f
JK
123612012-01-10 Jan Kratochvil <[email protected]>
12362
12363 Fix duplicate .o files after omitting libbfd.a.
12364 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12365 (SFILES): Add corelow.c.
12366 (COMMON_OBS): Add corelow.o.
12367 (ALLDEPFILES): Remove corelow.c.
12368 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12369 * config/alpha/alpha-osf3.mh: Likewise.
12370 * config/alpha/fbsd.mh: Likewise.
12371 * config/arm/nbsdaout.mh: Likewise.
12372 * config/arm/nbsdelf.mh: Likewise.
12373 * config/i386/i386gnu.mh: Likewise.
12374 * config/ia64/hpux.mh: Likewise.
12375 * config/ia64/linux.mh: Likewise.
12376 * config/m32r/linux.mh: Likewise.
12377 * config/m68k/linux.mh: Likewise.
12378 * config/mips/irix5.mh: Likewise.
12379 * config/mips/irix6.mh: Likewise.
12380 * config/pa/hpux.mh: Likewise.
12381 * config/pa/linux.mh: Likewise.
12382 * config/powerpc/aix.mh: Likewise.
12383 * config/sparc/linux.mh: Likewise.
12384 * config/sparc/linux64.mh: Likewise.
12385 * config/sparc/sol2.mh: Likewise.
12386 * config/vax/vax.mh: Likewise.
12387 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12388 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12389 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12390 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12391 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12392 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12393 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12394 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12395 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12396 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12397 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12398 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12399 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12400 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12401 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12402 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12403 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12404 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12405 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12406 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12407 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12408 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12409 corelow.o from gdb_target_obs.
12410 * corefile.c (core_target): Update the comment on NULL value.
12411 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12412 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12413 MATCHES. Drop YUMMY set on NULL.
12414 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12415 reclaim CORE_DATA if it is already NULL.
12416
34365054
DE
124172012-01-09 Doug Evans <[email protected]>
12418
12419 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12420 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12421
696166a3
KS
124222012-01-09 Keith Seitz <[email protected]>
12423
12424 * breakpoint.c (wrapper.h): Don't include.
12425
8e7b59a5
KS
124262012-01-09 Keith Seitz <[email protected]>
12427
12428 * Makefile.in (SFILES): Remove wrapper.c.
12429 (HFILES_NO_SRCDIR): Remove wrapper.h.
12430 (COMMON_OBS): Remove wrapper.o.
12431 * cli/cli-interp.c: Don't inlude wrapper.h.
12432 * corelow.c: Likewise.
12433 (core_open): Replace gdb_target_find_new_threads with
12434 TRY_CATCH around target_find_new_threads.
12435 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12436 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12437 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12438 evaluate_expression.
12439 (varobj_set_value): Likewise for evaluate_expression and
12440 value_assign.
12441 (install_new_variable): Likewise for value_fetch_lazy.
12442 (adjust_value_for_child_access): Likewise for value_ind.
12443 (c_describe_child): Likewise for value_subscript and
12444 value_ind.
12445 (c_value_of_root): Likewise for evaluate_expression.
12446 * wrapper.c: Remove.
12447 * wrapper.h: Remove.
12448
1a4eeb98
DE
124492012-01-09 Doug Evans <[email protected]>
12450
9ff913ba
DE
12451 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12452 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12453 "abfd" args with "section". All callers updated.
12454 Error checking code moved ...
12455 (error_check_comp_unit_head): ... here. New function.
12456 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12457 Delete arg "abfd". New arg "type_offset". All callers updated.
12458 (create_debug_types_hash_table): Simplify by using
12459 read_and_check_type_unit_head.
12460
1a4eeb98
DE
12461 * parser-defs.h (namecopy): Delete.
12462 * parse.c (namecopy, namecopy_size): Move into copy_name.
12463
2e6af8c0
JK
124642012-01-09 Jan Kratochvil <[email protected]>
12465
12466 Partially fix duplicate .o files after omitting libbfd.a.
12467 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12468 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12469 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12470 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12471 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12472 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12473 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12474
9f2f828a
PA
124752012-01-09 Pedro Alves <[email protected]>
12476
12477 * MAINTAINERS: Update my email address.
12478
4d72c0bc
DE
124792012-01-08 Doug Evans <[email protected]>
12480
d467dd73
DE
12481 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12482 n_type_units. Rename type_comp_units to all_type_units.
12483 All uses updated.
12484 (add_signatured_type_cu_to_table): Renamed from
12485 add_signatured_type_cu_to_list. All callers updated.
12486
4d72c0bc
DE
12487 * gdbtypes.h (struct cplus_struct_type): Delete member
12488 nfn_fields_total. All uses removed.
12489
21b2bd31
DE
124902012-01-06 Doug Evans <[email protected]>
12491
12492 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12493 to top of file.
12494 (dwarf2_find_comp_unit): Delete.
12495 (process_psymtab_comp_unit): Make result "void".
12496 Delete args buffer, info_ptr, buffer_size, and replace with
12497 "section". All callers updated.
12498 (dwarf2_build_psymtabs_hard): Simplify.
12499
bfd189b1
SDJ
125002012-01-06 Sergio Durigan Junior <[email protected]>
12501 Thiago Jung Bauermann <[email protected]>
12502
12503 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12504 before `struct gdb_exception'.
12505 * breakpoint.c (update_global_location_list_nothrow)
12506 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12507 * cp-abi.c (value_rtti_type): Likewise.
12508 * cp-support.c (cp_validate_operator): Likewise.
12509 * infrun.c (insert_exception_resume_breakpoint)
12510 (check_exception_resume, keep_going): Likewise.
12511 * mi-interp.c (mi_breakpoint_created)
12512 (mi_breakpoint_modified): Likewise.
12513 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12514 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12515 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12516
6b07635f
DE
125172012-01-05 Doug Evans <[email protected]>
12518
0b30b85c
DE
12519 * dwarf2read.c (statement_prologue): Delete, unused.
12520
98714339
DE
12521 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12522 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12523
6b07635f
DE
12524 * dwarf2read.c (comp_unit_header): Delete, unused.
12525
761f4555
UW
125262012-01-05 Ulrich Weigand <[email protected]>
12527
12528 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12529 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12530
2ca0b532
PA
125312012-01-05 Khoo Yit Phang <[email protected]>
12532
12533 * infrun.c (normal_stop): Don't skip calling the normal_stop
12534 observers if the thread was doing a multi-step, but stopped for
12535 some reason other than stepping.
12536
50aeff07
PA
125372012-01-05 Pedro Alves <[email protected]>
12538
12539 * cli/cli-decode.h: Add comments.
12540 (CMD_LIST_AMBIGUOUS): Moved to command.h
12541 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12542 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12543 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12544 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12545 (add_com, add_com_alias, add_info, add_info_alias)
12546 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12547 declarations.
12548 * command.h: Add and adjust comments.
12549 (CMD_LIST_AMBIGUOUS): Moved here.
12550 (help_cmd, help_cmd_list): Delete declarations.
12551
5953832c
DE
125522012-01-04 Doug Evans <[email protected]>
12553
e5fe5e75
DE
12554 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12555 All callers updated.
12556 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12557 Replace all arguments with "per_cu". All callers updated.
12558
28dee7f5
DE
12559 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12560
23745b47
DE
12561 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12562 New arg "per_cu". All callers updated.
12563
5953832c
DE
12564 Delete #if 0'd out code.
12565 * language.c (binop_result_type): Delete.
12566 (simple_type, ordered_type, same_type, integral_type): Delete.
12567 (numeric_type, character_type, string_type, boolean_type): Delete.
12568 (float_type, structured_type): Delete.
12569 * language.h: Update.
12570
0f5b7562
TT
125712012-01-04 Tom Tromey <[email protected]>
12572
12573 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12574
78218f56
JB
125752012-01-04 Joel Brobecker <[email protected]>
12576
12577 * corefile.c (close_exec_file): Delete.
12578 (reopen_exec_file): Remove commented out code that seems related
12579 to close_exec_file, which is being deleted here.
12580 * inferior.h (close_exec_file): Delete.
12581 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12582
0fcd72ba
JB
125832012-01-04 Joel Brobecker <[email protected]>
12584
12585 * ada-lang.c: #include "cli/cli-utils.h".
12586 (get_selections): Use skip_spaces.
12587 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12588 (catch_ada_exception_command_split): Use skip_spaces.
12589 (ada_decode_assert_location): Likewise.
12590
1dabb4c4
JB
125912012-01-04 Joel Brobecker <[email protected]>
12592
12593 * linespec.c (decode_line_internal): Check for C++ or Java
12594 compound constructs only if the current language is C, C++
12595 or Java.
12596
5931a2fa
JK
125972012-01-04 Jan Kratochvil <[email protected]>
12598
12599 Revert:
12600 2012-01-02 Jan Kratochvil <[email protected]>
12601 Joel Brobecker <[email protected]>
12602 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12603 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12604 3 times.
12605 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12606 fall through into AT_ENTRY_POINT.
12607 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12608 DUMMY_ADDR with it.
12609 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12610 PPC_INSN_SIZE skip to 3 times.
12611
1a2da5ee
JB
126122012-01-04 Joel Brobecker <[email protected]>
12613
12614 * linespec.c (add_minsym): Preserve function descriptors.
12615
8645ff69
UW
126162012-01-04 Ulrich Weigand <[email protected]>
12617
12618 * breakpoint.c (all_locations_are_pending): Consider locations
12619 in program spaces executing during startup pending as well.
12620
0b302171
JB
126212012-01-04 Joel Brobecker <[email protected]>
12622
12623 Copyright year update in most files of the GDB Project.
12624
8ba098ad
JB
126252012-01-04 Joel Brobecker <[email protected]>
12626
12627 * copyright.sh: Delete.
12628 * copyright.py: Rewrite.
12629
09c01c30
JB
126302012-01-04 Joel Brobecker <[email protected]>
12631
12632 * gnulib/extra/update-copyright: New file, imported from gnulib.
12633
3c36c0af
JB
126342012-01-04 Joel Brobecker <[email protected]>
12635
12636 * README (Copyright and License Notices): New section.
12637
888fe1e1
TT
126382012-01-03 Tom Tromey <[email protected]>
12639
12640 PR python/12533:
12641 * python/py-value.c (valpy_dereference, valpy_get_address
12642 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12643 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12644 (valpy_absolute, valpy_richcompare): Free intermediate values.
12645
6e681866
JB
126462011-01-03 Joel Brobecker <[email protected]>
12647
12648 * ada-lang.c: Reformat the copyright notice.
12649
0cd09acb
JK
126502012-01-02 Jan Kratochvil <[email protected]>
12651
12652 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12653 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12654 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12655 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12656 Revert this part of:
12657 2012-01-02 Jan Kratochvil <[email protected]>
12658 Build gdb directly from *.o files not using libgdb.a.
12659 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12660
12c3e59c
JB
126612012-01-02 Joel Brobecker <[email protected]>
12662
12663 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12664 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12665 Reformat the copyright header.
12666
11bf1490
JK
126672012-01-02 Jan Kratochvil <[email protected]>
12668
12669 Revert this part of:
12670 2012-01-02 Jan Kratochvil <[email protected]>
12671 Remove the gdbtui binary.
12672 * gdb.c (main): Remove args.interpreter_p initialization.
12673 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12674 * main.h (struct captured_main_args): Remove interpreter_p.
12675
1fef196f
JB
126762012-01-02 Joel Brobecker <[email protected]>
12677
12678 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12679
67827812
JB
126802012-01-02 Joel Brobecker <[email protected]>
12681
12682 * top.c (print_gdb_version): Update copyright year.
12683
a4d0b831
YQ
126842012-01-02 Yao Qi <[email protected]>
12685
12686 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12687
b5914469
JK
126882012-01-02 Jan Kratochvil <[email protected]>
12689 Joel Brobecker <[email protected]>
12690
12691 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12692 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12693 3 times.
12694 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12695 fall through into AT_ENTRY_POINT.
12696 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12697 DUMMY_ADDR with it.
12698 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12699 PPC_INSN_SIZE skip to 3 times.
12700
8da828f7
JK
127012012-01-02 Jan Kratochvil <[email protected]>
12702
12703 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12704 the return value.
12705 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12706
8574e74b
JK
127072012-01-02 Jan Kratochvil <[email protected]>
12708
12709 Build gdb directly from *.o files not using libgdb.a.
12710 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12711 (COMMON_OBS): Remove solib-target.o.
12712 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12713 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12714 (LIBGDB_OBS, libgdb.a): Move it above.
12715 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12716 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12717 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12718 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12719 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12720 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12721 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12722 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12723 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12724 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12725 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12726 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12727 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12728 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12729 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12730 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12731 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12732 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12733 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12734 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12735 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12736 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12737 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12738 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12739 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12740 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12741 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12742
217bff3e
JK
127432012-01-02 Jan Kratochvil <[email protected]>
12744
12745 Remove the gdbtui binary.
12746 * .gitignore (/gdbtui): Remove.
12747 * Makefile.in (TUI): Remove.
12748 (SUBDIR_TUI_OBS): Remove tui-main.o.
12749 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12750 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12751 (tui-main.o): Remove.
12752 (all_object_files): Remove tui-main.o.
12753 * NEWS: New note for the gdbtui removal.
12754 * configure: Rebuilt.
12755 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12756 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12757 CONFIG_UNINSTALL respectively.
12758 * gdb.c (main): Remove args.interpreter_p initialization.
12759 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12760 * main.h (struct captured_main_args): Remove interpreter_p.
12761 * tui/tui-main.c: Remove.
12762
9cdd5dbd
DE
127632012-01-01 Doug Evans <[email protected]>
12764
bb5ed363
DE
12765 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12766 (dwarf2_physname, read_import_statement): Ditto.
12767 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12768 (process_structure_scope read_subroutine_type): Ditto.
12769 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12770 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12771 (dwarf2_fetch_die_location_block): Ditto.
12772 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12773
a0f42c21
DE
12774 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12775 All callers updated.
12776 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12777 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12778 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12779
2dc860c0
DE
12780 * dwarf2read.c (load_cu): Move assert to more useful location.
12781
68dc6402
DE
12782 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12783 All callers updated.
12784
9cdd5dbd
DE
12785 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12786 (dwarf2_elf_names): Minor reformat.
12787 (dwarf2_per_cu_data): Tweak comment.
12788 (dwarf2_read_section): Fix comment.
12789 (create_all_comp_units): Fix comment.
12790 (load_full_comp_unit): Fix comment.
12791 (process_full_comp_unit): Fix comment.
12792 (read_signatured_type): Fix comment.
12793
0c10e53e 12794For older changes see ChangeLog-2011.
c906108c
SS
12795\f
12796Local Variables:
12797mode: change-log
12798left-margin: 8
12799fill-column: 74
12800version-control: never
57da7796 12801coding: utf-8
c906108c 12802End:
This page took 4.56408 seconds and 4 git commands to generate.