gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c9b6281a
YQ
12012-12-15 Yao Qi <yao@codesourcery.com>
2
3 * remote-notif.c (_initialize_notif): Add new commands
4 'set debug notification' and 'show debug notification'.
5 * NEWS: Mention these new commands.
6
722247f1
YQ
72012-12-15 Yao Qi <yao@codesourcery.com>
8
9 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
10 (SFILES): Add "remote-notif.c".
11 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
12 * remote-notif.c: New. Factored out from remote.c.
13 * remote-notif.h: New.
14 * remote.c: Include "remote-notif.h".
15 (stop_reply_xmalloc, do_stop_reply_xfree):
16 (remote_parse_stop_reply, remote_get_pending_stop_replies):
17 (remote_async_get_pending_events_handler): Remove declarations.
18 (remote_parse_stop_reply): Declare.
19 (pending_stop_reply): Remove.
20 (remote_async_get_pending_events_token): Move to
21 remote-notif.c.
22 (remote_close): Replace 'delete_async_event_handler' with
23 remote_notif_unregister_async_event_handler.
24 Don't call discard_pending_stop_replies.
25 (remote_start_remote): Replace code with remote_notif_parse
26 and remote_notif_get_pending_replies.
27 (remote_open_1): Replace 'create_async_event_handler' with
28 remote_notif_register_async_event_handler.
29 (extended_remote_attach_1): Call remote_notif_parse and
30 notif_stop_reply_push.
31 (struct stop_reply) <next>: Remove.
32 <base>: New field.
33 Callers update.
34 (stop_reply_queue): Change its type.
35 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
36 (remote_notif_remove_all): New.
37 (discard_pending_stop_replies): Update.
38 (remote_notif_stop_ack, stop_reply_dtr): New.
39 (remote_notif_stop_alloc_event): New.
40 (notif_client_stop): New variable.
41 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
42 (queued_stop_reply, peek_stop_reply): Adjust.
43 (remote_get_pending_stop_replies): Rename to
44 remote_notif_get_pending_events.
45 (handle_notification): Move to remote-notif.c.
46 (remote_async_get_pending_events_handler): Likewise.
47 (remote_wait_as): Adjust to call remote_notif_parse.
48 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
49 Return minus_one_ptid early if gets a notification.
50 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
51 (_initialize_remote): Call QUEUE_alloc. Update caller.
52 (remote_resume): Call 'remote_notif_process' in all-stop mode.
53 * remote.h: Include "remote-notif.h".
54 (remote_notif_get_pending_replies): Declare.
55
5f4cf0bb
YQ
562012-12-15 Yao Qi <yao@codesourcery.com>
57
58 * remote.c (discard_pending_stop_replies): Update declaration.
59 (remote_detach_1, extended_remote_mourn_1): Likewise.
60 (discard_pending_stop_replies): Change parameter from PID to
61 INF.
62 (remote_close): Update caller.
63 (_initialize_remote): Attach discard_pending_stop_replies to
64 inferior_exit observer.
65
fee9eda9
YQ
662012-12-15 Yao Qi <yao@codesourcery.com>
67
68 * remote.c (getpkt_or_notif_sane): Add one more argument in
69 its declaration.
70 (getpkt_or_notif_sane_1): Add one more argument.
71 (getpkt_sane): Update caller.
72 (getpkt_or_notif_sane): Likewise. Update call
73 togetpkt_or_notif_sane_1.
74 (remote_wait_ns): Update caller.
75
dbb0cf06
YQ
762012-12-15 Yao Qi <yao@codesourcery.com>
77 Doug Evans <dje@google.com>
78
79 * common/queue.h: New.
80
f2a8bc8a
YQ
812012-12-15 Yao Qi <yao@codesourcery.com>
82
83 * breakpoint.c (print_one_breakpoint_location): Display the
84 state of 'installed' of each non-pending location of a tracepoint
85 in both CLI and MI.
86 (download_tracepoint_locations): Notify 'breakpoint-modified'
87 observer if any tracepoint location is downloaded.
88 * tracepoint.c (start_tracing): Likewise.
89 (merge_uploaded_tracepoints): Record all modified
90 tracepoints and notify 'breakpoint-modified' observer for them.
91
92 * NEWS: Mention the change for CLI and MI.
93
7ed2c994
YQ
942012-12-15 Yao Qi <yao@codesourcery.com>
95
96 * breakpoint.c (download_tracepoint_locations): Iterate over
97 ALL_TRACEPOINTS first and then iterate over locations of
98 each tracepoint.
99
b25d79d4
PM
1002012-12-14 Pierre Muller <muller@sourceware.org>
101 Pedro Alves <palves@redhat.com>
102
103 * solib-target.c (solib_target_current_sos): Remove 'const'
104 qualifier from type of library_document local variable to be
105 able to free it and avoid a memory leak.
106 Use cleanup chain to avoid leak even if exceptino is generated.
107
6592e36f
TT
1082012-12-14 Tom Tromey <tromey@redhat.com>
109
110 PR c++/8888:
111 * symtab.c (lookup_symbol_aux): If constructor is found, consider
112 returning the type instead.
113 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
114 found.
115
7d27a96d
TT
1162012-12-14 Tom Tromey <tromey@redhat.com>
117
118 Partial fix for PR c++/14160:
119 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
120 * dwarf2read.c (dwarf2_is_constructor): New function.
121 (dwarf2_add_member_fn): Use it.
122 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
123 TYPE_FN_FIELD_CONSTRUCTOR.
124 * jv-typeprint.c (java_type_print_base): Use
125 TYPE_FN_FIELD_CONSTRUCTOR.
126 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
127 <dummy>: Shrink.
128 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
129
1993b719
TT
1302012-12-14 Tom Tromey <tromey@redhat.com>
131
132 * c-exp.y (block, variable, name_not_typename, lex_one_token,
133 classify_name): Update.
134 * c-valprint.c (c_val_print): Update.
135 * f-exp.y (yylex): Update.
136 * go-exp.y (package_name_p, classify_packaged_name)
137 (classify_name): Update.
138 * jv-exp.y (push_variable): Update.
139 * m2-exp.y (variable): Update.
140 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
141 * p-exp.y (block, variable, yylex): Update.
142 * p-valprint.c (pascal_val_print): Update.
143 * parse.c (write_dollar_variable): Update.
144 * printcmd.c (address_info): Update.
145 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
146 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
147 (lookup_symbol): Change type of 'is_a_field_of_this'.
148 (check_field): Add 'is_a_field_of_this' argument.
149 * symtab.h (struct field_of_this_result): New.
150 (lookup_symbol, lookup_symbol_in_language): Update.
151
2dc3df72
TT
1522012-12-14 Tom Tromey <tromey@redhat.com>
153
154 * symtab.c (check_field): Now static. Move from...
155 * valops.c (check_field): ... here. Remove.
156 * value.h (check_field): Don't declare.
157
451b7c33
TT
1582012-12-14 Tom Tromey <tromey@redhat.com>
159
160 * NEWS: Mention "info proc" and core files.
161 * corelow.c (core_info_proc): New function.
162 (init_core_ops): Set to_info_proc.
163 * gdbarch.c, gdbarch.h: Rebuild.
164 * gdbarch.sh (core_info_proc): New method.
165 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
166 * linux-tdep.c (linux_core_info_proc_mappings)
167 (linux_core_info_proc): New functions.
168 (linux_find_memory_region_ftype): New typedef.
169 (linux_find_memory_regions_full): New function, from
170 linux_find_memory_regions.
171 (struct linux_find_memory_regions_data): New.
172 (linux_find_memory_regions_thunk): New function.
173 (linux_find_memory_regions): Rewrite.
174 (struct linux_make_mappings_data): New.
175 (linux_make_mappings_callback)
176 (linux_make_mappings_corefile_notes): New functions.
177 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
178 (linux_init_abi): Call set_gdbarch_core_info_proc.
179 * target.c (target_info_proc): Return 'int'.
180 * target.h (target_info_proc): Update.
181
49dc7f4b
PM
1822012-12-14 Pierre Muller <muller@sourceware.org>
183
184 * windows-nat.c (windows_xfer_shared_libraries): Avoid
185 memory leak when OFFSET >= LEN_AVAIL.
186
e03e6279
TT
1872012-12-13 Tom Tromey <tromey@redhat.com>
188
189 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
190
7b9c0bfb
TT
1912012-12-13 Tom Tromey <tromey@redhat.com>
192
193 * acinclude.m4 (CY_AC_C_WORKS): Remove.
194
d8f4a83e
PM
1952012-12-13 Pierre Muller <muller@sourceware.org>
196
197 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
198 local variable and zero terminate it to avoid possible problems
199 in strcmp.
200
aab2f004
PA
2012012-12-13 Pedro Alves <palves@redhat.com>
202
203 * coff-pe-read.c: Include coff/internal.h.
204 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
205 Null terminate buffer explicitly instead of memset the whole
206 buffer.
207
78ea0eca
PM
2082012-12-13 Pierre Muller <muller@sourceware.org>
209
210 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
211 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
212 for already defined macros.
213
3999122f
PM
2142012-12-13 Pierre Muller <muller@sourceware.org>
215
216 * coff-pe-read.h (pe_text_section_offset): Declare new function.
217 * coff-pe-read.c (debug_coff_pe_read): New static variable.
218 (struct read_pe_section_data): Add section_name field.
219 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
220 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
221 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
222 (get_pe_section_index): New function.
223 (struct pe_sections_info): New type.
224 (get_section_vmas): Use new struct pe_sections_info.
225 (add_pe_exported_sym): Handle unnamed exported function.
226 (add_pe_forwarded_sym): New function.
227 (read_pe_truncate_name): Truncate at last dot.
228 (pe_as16): New function.
229 (read_pe_exported_syms): Use ordinal of function to
230 retrieve correct RVA address of function and handle
231 forwarded symbol.
232 (pe_text_section_offset): New function.
233 (show_debug_coff_pe_read): New function.
234 (_initialize_coff_pe_read): New function adding
235 'set/show debug coff_pe_read' commands.
236
237 * windows-tdep.c (windows_xfer_shared_library): Use
238 pe_text_section_offset function instead of possibly wrong
239 0x1000 constant for .text sextion offset.
240
c9023fb3
PA
2412012-12-13 Pedro Alves <palves@redhat.com>
242
243 * gdbarch.sh (do_read): Set IFS to blank.
244
3fa7bf06
MG
2452012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
246
247 * NEWS: Mention the -catch-load/-catch-unload MI commands.
248
91985142 2492012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
f87e3f15 250
91985142
MG
251 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
252 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
253 * breakpoint.c (add_solib_catchpoint): New function that
254 can be used by both CLI and MI, factored out from
255 catch_load_or_unload.
256 (catch_load_or_unload): Strip it down and make it use the
257 new add_solib_catchpoint.
258 * breakpoint.h (add_solib_catchpoint): Declare it.
259 * mi/mi-cmd-break.h: New file.
260 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
261 (setup_breakpoint_reporting): New function used for both
262 catchpoints and breakpoints.
263 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
264 * mi/mi-cmd-catch.c: New file.
265 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
266 and -catch-unload.
267 * mi/mi-cmds.h: Declare the handlers for -catch-load and
268 -catch-unload.
269
5c80ed9d
TT
2702012-11-28 Tom Tromey <tromey@redhat.com>
271
272 * dbxread.c (read_dbx_symtab): Update.
273 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
274 (read_ofile_symtab): Add 'objfile' argument.
275 * dwarf2read.c (process_psymtab_comp_unit_reader)
276 (build_type_psymtabs_reader): Update.
277 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
278 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
279 argument.
280 (parse_procedure, parse_partial_symbols): Update.
281 (psymtab_to_symtab_1): Add 'objfile' argument.
282 * psympriv.h (struct partial_symtab) <objfile>: Remove.
283 <read_symtab>: Add 'objfile' argument.
284 (sort_pst_symbols, discard_psymtab): Update.
285 * psymtab.c (partial_map_expand_apply): Update.
286 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
287 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
288 (find_pc_sect_psymbol): Add 'objfile' argument.
289 (lookup_symbol_aux_psymtabs): Update.
290 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
291 Add 'objfile' argument.
292 (find_last_source_symtab_from_partial, dump_psymtab)
293 (dump_psymtabs_for_objfile, read_symtabs_for_function)
294 (expand_partial_symbol_tables, read_psymtabs_with_filename)
295 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
296 (expand_symtabs_matching_via_partial): Update.
297 (sort_pst_symbols): Add 'objfile' argument.
298 (allocate_psymtab): Update.
299 (discard_psymtab): Add 'objfile' argument.
300 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
301 * stabsread.h (end_psymtab): Update.
302 * xcoffread.c (this_symtab_objfile): New global.
303 (process_linenos, enter_line_range, xcoff_next_symbol_text):
304 Update.
305 (read_xcoff_symtab): Add 'objfile' argument.
306 (read_symbol, read_symbol_lineno): Update.
307 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
308 (xcoff_end_psymtab): Add 'objfile' argument.
309 (scan_xcoff_symtab): Update.
310
9a27f2c6
PK
3112012-12-12 Paul Koning <paul_koning@dell.com>
312
313 Add support for Python 3.
314 * NEWS: Mention Python 3 support.
315 * varobj.c (value_get_print_value): Use
316 python_string_to_target_string.
317 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
318 of type objects.
319 * python/py-breakpoint.c: Ditto.
320 * python/py-cmd.c: Ditto.
321 * python/py-event.c: Ditto.
322 * python/py-event.h: Ditto.
323 * python/py-evtregistry.c: Ditto.
324 * python/py-finishbreakpoint.c: Ditto.
325 * python/py-frame.c: Ditto.
326 * python/py-function.c: Ditto.
327 * python/py-infthread.c: Ditto.
328 * python/py-lazy-string.c: Ditto.
329 * python/py-progspace.c: Ditto.
330 * /python/py-symbol.c: Ditto.
331 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
332 initialization for Python 3.
333 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
334 of type objects.
335 (infpy_read_memory): Return memoryview object if Python 3.
336 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
337 (infpy_search_memory): Ditto.
338 (get_buffer): New function for Python 3.
339 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
340 of type objects.
341 (objfpy_dealloc): Use Py_TYPE to call tp_free.
342 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
343 of type objects.
344 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
345 (set_attr): Ditto.
346 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
347 instead of PyString methods if Python 3.
348 (print_children): Skip push_dummy_python_frame call if Python 3.
349 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
350 of type objects.
351 (salpy_dealloc): Use Py_TYPE to call tp_free.
352 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
353 of type objects.
354 (field_dealloc): Use Py_TYPE to call tp_free.
355 (typy_dealloc): Ditto.
356 (type_object_as_number): Adjust struct initializations for
357 differences in layout for Python 2 vs. Python 3.
358 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
359 string case for Python 3.
360 (unicode_to_encoded_python_string): Shorten code (no functional
f87e3f15 361 change).
9a27f2c6
PK
362 (python_string_to_target_python_string): Comment that in Python 3
363 returned value is a Python "bytes" type.
364 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
365 (gdb_py_object_from_longest): Omit non-long integer case in Python
366 3.
367 (gdb_py_object_from_ulongest): Ditto.
368 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
369 of type objects.
370 (valpy_dealloc): Use Py_TYPE to call tp_free.
371 (valpy_int): Omit function if Python 3.
372 (convert_value_from_python): Use "%S" format (Python object as a
373 string) if Python 3.
374 (value_object_as_number): Adjust struct initializations for
375 differences in layout for Python 2 vs. Python 3.
376 * python/python-config.py: Adjust syntax for Python 3
f87e3f15 377 compatibility.
9a27f2c6
PK
378 Include "sys.abiflags" string as part of python library name, if
379 that attribute exists (Python 3).
380 * python/python-internal.h (IS_PY3): Define if Python 3.
381 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
382 placeholder value if Python 3.
383 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
384 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
385 analogous Python 3 API function if Python 3.
386 (PyVarObject_HEAD_INIT): Define if not already defined.
387 (Py_TYPE): Ditto.
388 * python/python.c (eval_python_command): Omit Py_FlushLine call if
389 Python 3.
390 Check return values of all Python API calls for error.
391 Supply dummy "python" and "python-interactive" commands if Python
392 initialization failed.
393 (_initialize_python): Convert argc to wchar_t** if Python 3.
394 Add module initialization for Python 3.
395 (finish_python_initialization): Pass wchar_t * argument to
396 PySys_SetPath if Python 3.
397 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
398 (_GdbFile): New class for common output file behavior.
399 (GdbOutFile): Subclass from _GdbFile.
400 (GdbOutputErrorFile): Ditto.
401 (auto_load_packages): Adjust syntax for Python 3 compatibility.
402 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
403 * python/lib/gdb/prompt.py: Use sorted() function rather than
404 sort() method.
405 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
406 Adjust syntax for Python 3 compatibility.
407 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
408 rather than sort() method.
409 Adjust syntax for Python 3 compatibility.
410 * python/lib/gdb/command/type_printers.py: Ditto.
411 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
412 value is a memoryview object if Python 3.
413
b8b98ad1
TT
4142012-12-12 Tom Tromey <tromey@redhat.com>
415
416 * coffread.c (coff_objfile_data_key): New global.
417 (coff_symfile_init): Use set_objfile_data.
418 (coff_symfile_read): Use objfile_data.
419 (coff_symfile_finish): Don't free deprecated_sym_private.
420 (coff_free_info): New function.
421 (_initialize_coffread): Initialize coff_objfile_data_key.
422 * mdebugread.c (pending_list): Update comment.
423 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
424 * symfile.c (reread_symbols): Don't mention
425 deprecated_sym_private.
426 * xcoffread.c (xcoff_objfile_data_key): New global.
427 (XCOFF_DATA): New macro.
428 (process_linenos, enter_line_range, xcoff_next_symbol_text)
429 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
430 XCOFF_DATA.
431 (xcoff_new_init) Use set_objfile_data.
432 (xcoff_symfile_finish): Don't free deprecated_sym_private.
433 (init_stringtab, swap_sym, scan_xcoff_symtab)
434 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
435 (xcoff_free_info): New function.
436 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
437
afedb563
MG
4382012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
439
440 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
441
d2f4b8fe
TT
4422012-12-12 Tom Tromey <tromey@redhat.com>
443
444 * coffread.c (coff_symfile_init): Use set_objfile_data.
445 (coff_symfile_read): Use DBX_SYMFILE_INFO.
446 * dbxread.c (dbx_objfile_data_key): New global.
447 (dbx_symfile_init): Use set_objfile_data.
448 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
449 (dbx_free_symfile_info): New function.
450 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
451 DBX_SYMFILE_INFO.
452 (stabsect_build_psymtabs): Use set_objfile_data.
453 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
454 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
455 set_objfile_data.
456 (free_elfinfo): Use DBX_SYMFILE_INFO.
457 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
458 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
459 * gdb-stabs.h (dbx_objfile_data_key): Declare.
460 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
461 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
462 * somread.c (som_symfile_finish): Don't free
463 deprecated_sym_stab_info.
464
6f112b18
JB
4652012-12-12 Joel Brobecker <brobecker@adacore.com>
466
467 * gdbarch.sh (software_single_step): Remove trailing space in
468 comment (gdbarch.h is already correct).
469
8d2cc612
TT
4702012-12-11 Tom Tromey <tromey@redhat.com>
471
472 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
473
735522c2
TT
4742012-12-11 Tom Tromey <tromey@redhat.com>
475
476 * dsrec.c (report_transfer_performance): Don't declare.
477 (load_srec): Use gettimeofday, print_transfer_performance.
478 * symfile.c (report_transfer_performance): Remove.
479
3e3420f6
PA
4802012-12-11 Pedro Alves <pedro@codesourcery.com>
481 Pedro Alves <palves@redhat.com>
482
483 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
484 NT_PSTATUS note.
485 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
486 differently from LWP IDs.
487
05b4bd79
PA
4882012-12-11 Pedro Alves <palves@redhat.com>
489
490 * configure.ac (detect type of /proc): Remove Unixware handling.
491 * configure: Regenerate.
492 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
493 (ioctl_table) [PCRESET]: Remove entry.
494 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
495 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
496 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
497 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
498 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
499 Unixware in comments throughout.
500 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
501 and remove mention of Unixware.
502
072cabfe
DE
5032012-12-10 Doug Evans <dje@google.com>
504
ab435259
DE
505 * dwarf2read.c (dwarf2_cu): Enhance comment.
506 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
507 the DWO file.
508 (dwarf2_record_block_ranges): Ditto.
509
c766f7ec
DE
510 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
511
072cabfe
DE
512 * symtab.c (find_pc_sect_symtab): Add comment.
513
660ff106
TT
5142012-12-10 Tom Tromey <tromey@redhat.com>
515
516 * defs.h: Don't check for definition of LONGEST.
517 (min, max): Remove duplicates.
518
8b9737bf
TT
5192012-12-10 Tom Tromey <tromey@redhat.com>
520
521 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
522 (dwarf2_fetch_die_loc_cu_off): Rename from
523 dwarf2_fetch_die_location_block. Rewrite to use
524 dwarf2_fetch_die_loc_sect_off.
525 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
526 (dwarf2_fetch_die_loc_cu_off): Rename.
527 * dwarf2loc.c (indirect_pieced_value): Use
528 dwarf2_fetch_die_loc_sect_off.
529 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
530 comment.
531 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
532 * dwarf2expr.c (add_piece): Update.
533 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
534
93eed41f
TT
5352012-12-10 Tom Tromey <tromey@redhat.com>
536
537 * buildsym.c (struct pending_block): Move from buildsym.h.
538 (pending_blocks): Likewise; now static.
539 (pending_block_obstack): New global.
540 (free_pending_blocks): Free blocks.
541 (record_pending_block): Use pending_block_obstack.
542 * buildsym.h (struct pending_block): Move definition to
543 buildsym.c.
544 (pending_blocks): Don't declare.
545
d2e5c99a
PA
5462012-12-10 Pedro Alves <palves@redhat.com>
547
548 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
549 dead SCO code, and adjust function description comment.
550
74a0d9f6
JK
5512012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
552
553 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
554 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
555 CC_HAS_LONG_LONG.
556 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
557 * dwarf2read.c (extract_cu_value): Remove the function.
558 (create_cus_from_index_list): Make the return type void, inline the
559 extract_cu_value caller, include new gdb_static_assert.
560 (create_cus_from_index): Make the return type void, update the function
561 comment, update the create_cus_from_index_list caller.
562 (create_signatured_type_table_from_index): Make the return type void,
563 inline the extract_cu_value caller, include new gdb_static_assert.
564 (dwarf2_read_index): Update the create_cus_from_index and
565 create_signatured_type_table_from_index caller.
566 * printcmd.c (ui_printf): Remove conditionalizations for
567 CC_HAS_LONG_LONG.
568 * config.in: Regenerate.
569 * configure: Regenerate.
570
1b80a9fa
JK
5712012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
572
573 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
574 Update the comment for checked_producer.
575 (check_producer): New forward declaration.
576 (producer_is_gcc_lt_4_3): New function.
577 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
578 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
579
2f68a895
TT
5802012-12-07 Tom Tromey <tromey@redhat.com>
581
582 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
583 argument, assertion.
584 * c-exp.y (typebase): Add completion productions.
585 * completer.c (expression_completer): Handle tag completion.
586 * expression.h (parse_expression_for_completion): Add argument.
587 * f-lang.c (f_make_symbol_completion_list): Add 'code'
588 argument.
589 * language.h (struct language_defn)
590 <la_make_symbol_completion_list>: Add 'code' argument.
591 * parse.c (expout_tag_completion_type, expout_completion_name):
592 New globals.
593 (mark_struct_expression): Add assertion.
594 (mark_completion_tag): New function.
595 (parse_exp_in_context): Initialize new globals.
596 (parse_expression_for_completion): Add 'code' argument. Handle
597 tag completion.
598 * parser-defs.h (mark_completion_tag): Declare.
599 * symtab.c (default_make_symbol_completion_list_break_on): Add
600 'code' argument. Update.
601 (default_make_symbol_completion_list): Add 'code' argument.
602 (make_symbol_completion_list): Update.
603 (make_symbol_completion_type): New function.
604 * symtab.h (default_make_symbol_completion_list_break_on)
605 (default_make_symbol_completion_list): Update.
606 (make_symbol_completion_type): Declare.
607
155da517
TT
6082012-12-07 Tom Tromey <tromey@redhat.com>
609
610 * expression.h (parse_expression_for_completion): Rename
611 from parse_field_expression.
612 (parse_completion): Rename from in_parse_field.
613 * c-exp.y (lex_one_token): Update.
614 * completer.c (expression_completer): Update.
615 * go-exp.y (lex_one_token): Update.
616 * p-exp.y (yylex): Update.
617 * parse.c (parse_completion): Rename from in_parse_field.
618 (parse_exp_in_context): Update.
619 (parse_expression_for_completion): Rename from
620 parse_field_expression. Update.
621
4fc5d43e
TT
6222012-12-07 Tom Tromey <tromey@redhat.com>
623
624 * typeprint.c (_initialize_typeprint): Set completer
625 for "whatis" and "ptype".
626
ab39020b
JB
6272012-12-07 Joel Brobecker <brobecker@adacore.com>
628
629 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
630 "sim/common/cgen-fpu.h". Remove invalid entries
631 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
632 which actually have an FSF copyright header.
633
2cb50f9d
JB
6342012-12-07 Joel Brobecker <brobecker@adacore.com>
635
636 * osf-share/AT386/cma_thread_io.h: Delete.
637 * osf-share/HP800/cma_thread_io.h: Delete.
638 * osf-share/README: Delete.
639 * osf-share/RIOS/cma_thread_io.h: Delete.
640 * osf-share/cma_attr.h: Delete.
641 * osf-share/cma_deb_core.h: Delete.
642 * osf-share/cma_debug_client.h: Delete.
643 * osf-share/cma_errors.h: Delete.
644 * osf-share/cma_handle.h: Delete.
645 * osf-share/cma_init.h: Delete.
646 * osf-share/cma_list.h: Delete.
647 * osf-share/cma_mutex.h: Delete.
648 * osf-share/cma_sched.h: Delete.
649 * osf-share/cma_semaphore_defs.h: Delete.
650 * osf-share/cma_sequence.h: Delete.
651 * osf-share/cma_stack.h: Delete.
652 * osf-share/cma_stack_int.h: Delete.
653 * osf-share/cma_tcb_defs.h: Delete.
654 * osf-share/cma_util.h: Delete.
655 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
656 in osf-share.
657 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
658 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
659 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
660
0ba2eb0f
TT
6612012-12-06 Pedro Alves <palves@redhat.com>
662 Tom Tromey <tromey@redhat.com>
663
664 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
665
731145cb
TT
6662012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
667
668 PR mi/14741:
669 * mi/mi-cmd-var.c (varobj_update_one): Take value of
670 attribute "dynamic" and "displayhint" from printed child,
671 not the root variable.
672
eff44fea
JB
6732012-12-06 Joel Brobecker <brobecker@adacore.com>
674
675 * aix-thread.c (getthrds): Fix type of 4th parameter.
676 (get_signaled_thread): Change type of variable ktid to tid_t.
677
c90a0773
HZ
6782012-12-06 Hui Zhu <hui_zhu@mentor.com>
679
680 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
681 value of get_frame_block.
682
5bc81a00
PM
6832012-12-05 Pierre Muller <muller@sourceware.org>
684
685 Avoid memory leaks on struct cmd_list_element.doc field.
686 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
687 if flags contains DOC_ALLOCATED.
688 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
689 flags.
690 (delete_cmd): Handle DOC_ALLOCATED flag.
691 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
692 in flags filed of struct cmd_list_element.
693 (struct cmd_list_element): Document new flag item.
694
b5ebcee6
DE
6952012-12-04 Doug Evans <dje@google.com>
696
697 * symmisc.c: Whitespace fixes.
698
56bf0743
KB
6992012-12-04 Karthik Bhat <kv.bhat@samsung.com>
700
701 * i386-tdep.c (i386_skip_prologue): Using symbol table
702 to find the end of prologue for clang compiled binaries.
703 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
704 to find the end of prologue for clang compiled binaries.
705
56e64610
DE
7062012-12-03 Doug Evans <dje@google.com>
707
708 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
709 (dw2_find_symbol_file): Delete unused local file_data.
710
270140bd
TT
7112012-12-03 Tom Tromey <tromey@redhat.com>
712
713 * ada-exp.y (write_object_renaming, write_var_or_type)
714 (write_ambiguous_var, write_var_from_sym): Make blocks const.
715 * ada-lang.c (replace_operator_with_call)
716 (find_old_style_renaming_symbol): Make blocks const.
717 * ada-lang.h (ada_find_renaming_symbol): Update.
718 (struct ada_symbol_info) <block>: Now const.
719 * breakpoint.c (watch_command_1): Update.
720 * breakpoint.h (struct watchpoint) <exp_valid_block,
721 cond_exp_valid_block>: Now const.
722 * c-exp.y (classify_inner_name, classify_name): Make block
723 argument const.
724 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
725 const.
726 * expression.h (innermost_block, parse_exp_1): Update.
727 (union exp_element) <block>: Now const.
728 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
729 (lookup_struct): Make block argument const.
730 * gdbtypes.h (lookup_template_type): Update.
731 * go-exp.y (classify_name, classify_packaged_name)
732 (package_name_p): Make block argument const.
733 * objc-lang.c (lookup_struct_typedef): Make block argument const.
734 * objc-lang.h (lookup_struct_typedef): Update.
735 * parse.c (parse_exp_in_context, parse_exp_1)
736 (write_exp_elt_block): Make block arguments const.
737 (expression_context_block, innermost_block): Now const.
738 * parser-defs.h (write_exp_elt_block): Update.
739 (expression_context_block, innermost_block, block_found): Now
740 const.
741 * printcmd.c (struct display) <block>: Now const.
742 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
743 * valops.c (address_of_variable): Make block argument const.
744 * value.h (value_of_variable): Update.
745 * varobj.c (struct varobj_root) <valid_block>: Now const.
746
31f56a27
YQ
7472012-11-30 Yao Qi <yao@codesourcery.com>
748
749 * breakpoint.c (print_one_breakpoint_location): Indent code.
750
556ec64d
YQ
7512012-11-30 Yao Qi <yao@codesourcery.com>
752
753 * breakpoint.c (print_one_breakpoint_location): Combine two
754 blocks handling 'hit count' together.
755
3d3fef6b
YQ
7562012-11-30 Yao Qi <yao@codesourcery.com>
757
758 * infrun.c (error_is_running, ensure_not_running): Move them
759 to ...
760 * infcmd.c (error_is_running, ensure_not_running): ... here.
761 Make them 'static'.
762 * inferior.h: Remove declarations of error_is_running and
763 ensure_not_running.
764
7cd12a76
YQ
7652012-11-30 Yao Qi <yao@codesourcery.com>
766
767 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
768 check REGNUM >= 0.
769
7a76f5b8
YQ
7702012-11-30 Yao Qi <yao@codesourcery.com>
771
772 * infrun.c: Make the declaration of 'init_infwait_state'
773 static.
774 (init_infwait_state): Make it 'static'.
775
b1209b03
UW
7762012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
777
778 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
779 return value to void to avoid compiler warning.
780
ea5e6b0e
UW
7812012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
782
783 * opencl-lang.c (opencl_print_type): New function.
784 (opencl_language_arch_info): Install it.
785
a93478ea
TT
7862012-11-29 Tom Tromey <tromey@redhat.com>
787
788 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
789 xvasprintf.
790 * common/common-utils.c (xasprintf, xvasprintf): Remove.
791 * common/common-utils.h (xasprintf, xvasprintf): Remove.
792
ac4a2da4
JG
7932012-11-29 Jerome Guitton <guitton@adacore.com>
794
795 * ada-lang.c (ada_is_interface_tag): New function.
796 (ada_is_ignored_field): Add interface tags to the list
797 of ignored fields.
798
b50d69b5
JG
7992012-11-29 Jerome Guitton <guitton@adacore.com>
800
f87e3f15 801 * ada-lang.h (ada_tag_value_at_base_address): New function
b50d69b5
JG
802 declaration.
803 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
804 New functions.
805 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
806 relocate the class-wide value if need be.
807 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
808 Let ada_tag_value_at_base_address relocate the class-wide access/ref
809 before dereferencing it.
810 * ada-valprint.c (ada_val_print_1): Relocate to base address
811 before displaying the content of an interface-wide ref.
812
ca1f964d
JG
8132012-11-29 Jerome Guitton <guitton@adacore.com>
814
815 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
816
38d03cf1 8172012-11-29 Joel Brobecker <brobecker@adacore.com>
818
819 GDB 7.5.1 released.
820
f5682501
YQ
8212012-11-29 Yao Qi <yao@codesourcery.com>
822 Tom Tromey <tromey@redhat.com>
823
824 * eval.c (evaluate_subexp_standard): Get the correct pointer
825 type for TYPE_CODE_MEMBERPTR.
826
f359d716
EBM
8272012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
828
829 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
830 since now it is being done by binutils' powerpc_init_dialect().
831
0cd61f44
TT
8322012-11-28 Tom Tromey <tromey@redhat.com>
833
834 PR gdb/14290:
835 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
836 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
837 Use it.
838 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
839 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
840 (gdb_bfd_openr_next_archived_file): Use it.
841
945bf713
MM
8422012-11-28 Markus Metzger <markus.t.metzger@intel.com>
843
844 * configure.ac: Check for linux/perf_event.h.
845 * config.in: Regenerated.
846 * configure: Regenerated.
847
7e20dfcd
YQ
8482012-11-28 Yao Qi <yao@codesourcery.com>
849
850 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
851 abbreviate 'delete tracepoints' to 'delete tr'.
852 * corefile.c (_initialize_core): Call add_alias_cmd to
853 abbreviate 'set gnutarget' to 'set g'.
854 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
855 'show convenience' to 'show conv'.
856
b8293cc8
JB
8572012-11-27 Joel Brobecker <brobecker@adacore.com>
858
859 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
860 call to sparc_supply_fpregset.
861 (fill_fpregset): Fix first parameter in call to
862 sparc_collect_fpregset.
863
8c2b9656
YQ
8642012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
865 Kazu Hirata <kazu@codesourcery.com>
866 Yao Qi <yao@codesourcery.com>
867
868 * objfiles.c (init_entry_point_info): Call
869 gdbarch_convert_from_func_ptr_addr and
870 gdbarch_addr_bits_remove here ...
871 (entry_point_address_query): ... instead of here.
872 * solib-svr4.c (exec_entry_point): Call
873 gdbarch_addr_bits_remove.
874 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
875 the entry address.
876
5edf51fe
YQ
8772012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
878 Yao Qi <yao@codesourcery.com>
879
880 * eval.c (evaluate_subexp_standard): Add handling of
881 TYPE_CODE_MEMBERPTR when calling functions. Correct the
882 result of ptype for calling a TYPE_CODE_METHODPTR.
883
ca242aad
YQ
8842012-11-27 Yao Qi <yao@codesourcery.com>
885
886 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
887 warning.
888 Add i18n markup.
889
608e2dbb
TT
8902012-11-26 Alexander Larsson <alexl@redhat.com>
891 Jan Kratochvil <jan.kratochvil@redhat.com>
892 Tom Tromey <tromey@redhat.com>
893
894 * NEWS: Mention mini debuginfo feature.
895 * minidebug.c: New file.
896 * configure.ac: Check for lzma.
897 * configure, config.in: Rebuild.
898 * Makefile.in (LIBLZMA): New variable.
899 (CLIBS): Include LIBLZMA.
900 (SFILES): Mention minidebug.c.
901 (COMMON_OBS): Mention minidebug.o.
902 * symfile.c (read_symbols): New function.
903 (syms_from_objfile, reread_symbols): Call it.
904 * symfile.h (find_separate_debug_file_in_section): Declare.
905
17d6efc4
JB
9062012-11-26 Keith Seitz <keiths@redhat.com>
907
908 * exec.c (exec_file_attach): Move cleanup after verifying that
909 memory has in fact been allocated.
910
210bbc17
TT
9112012-11-26 Tom Tromey <tromey@redhat.com>
912
913 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
914 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
915 SYMBOL_SYMTAB.
916 * skip.c (skip_info): Use SYMBOL_SYMTAB.
917
0270a750
PA
9182012-11-26 Maxime Villard <rustyBSD@gmx.fr>
919 Pedro Alves <palves@redhat.com>
920
921 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
922 size parameter passed to readlink by one byte.
923 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
924 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
925 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
926 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
927 size by one byte.
928
9c16be9a
YQ
9292012-11-26 Yao Qi <yao@codesourcery.com>
930
931 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
932 extraneous parentheses.
933
e6f3fa52
YQ
9342012-11-26 Yao Qi <yao@codesourcery.com>
935
936 * remote.c (remote_start_remote): Typo fix.
937
db75c717
DM
9382012-11-23 David S. Miller <davem@davemloft.net>
939
940 * sparc-tdep.h (struct sparc_fpregset): New data structure.
941 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
942 sparc32_sol2_fpregset): Declare new globals.
943 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
944 'fpregset' argument.
945 * sparc64-tdep.h (sparc64_supply_fpregset,
946 sparc64_collect_fpregset): Likewise.
947 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
948 globals.
949 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
950 (sparc_fpregset): Declare new global.
951 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
952 'fpregset' argument.
953 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
954 into handler.
955 (fill_fpregset): Likewise.
956 (_initialize_sparc_linux_nat): Set sparc_fpregset to
957 sparc32_bsd_fpregset.
958 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
959 sparc32_bsd_fpregset down into handler.
960 (sparc32_linux_collect_core_fpregset): Likewise.
961 * sparc-nat.c (sparc_fpregset): Define.
962 (sparc_supply_fpregset): Add 'fpregset' argument.
963 (sparc_collect_fpregset): Likewise.
964 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
965 into fpregset handler.
966 (sparc_store_inferior_registers): Likewise.
967 (_initialize_sparc_nat): Set sparc_fpregset to
968 sparc32_sunos4_fpregset if NULL.
969 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
970 down into handler.
971 (fill_fpregset): Likewise.
972 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
973 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
974 use it to compute offsets.
975 (sparc32_collect_fpregset): Likewise.
976 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
977 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
978 down into handler.
979 (fill_fpregset): Likewise.
980 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
981 Likewise.
982 (sparc64_linux_collect_core_fpregset): Likewise.
983 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
984 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
985 use it to compute offsets.
986 (sparc64_collect_fpregset): Likewise.
987 (sparc64_bsd_fpregset): Define.
988 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
989 sparc64_bsd_fpregset down into handler.
990 (sparc64fbsd_collect_fpregset): Likewise.
991 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
992 and pass sparc{32,64}_bsd_fpregset down into handler.
993 (sparc64nbsd_collect_fpregset): Likewise.
994 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
995 sparc64_bsd_fpregset down into handler.
996 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
997 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
998 to sparc32_bsd_fpregset.
999 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1000 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1001 (sparc32nbsd_supply_fpregset): Likewise.
1002
cfcad218
TT
10032012-11-21 Tom Tromey <tromey@redhat.com>
1004
1005 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1006 field.
1007 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1008 Remove.
1009 * c-typeprint.c (c_type_print_base): Update.
1010
85ddcc70
YQ
10112012-11-21 Yao Qi <yao@codesourcery.com>
1012
1013 PR tdep/7438
1014 * gdbarch.sh (smash_text_address): Remove.
1015 * gdbarch.c, gdbarch.h: Regenerate.
1016 * arm-tdep.c (arm_smash_text_address): Remove.
1017 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1018 * hppa-tdep.c (hppa_smash_text_address): Remove.
1019 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1020 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1021 Caller update.
1022 * coffread.c (coff_symtab_read): Caller update.
1023 * dbxread.c (process_one_symbol): Likewise.
1024 * elfread.c (record_minimal_symbol): Likewise.
1025 * somread.c (som_symtab_read): Likewise.
1026
11522069
PM
10272012-11-20 Pierre Muller <muller@sourceware.org>
1028
1029 ARI fixes: sprintf rule.
1030 Replace sprintf function calls for char arrays by
1031 calls to xsnprintf calls.
1032 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1033 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1034 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1035 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1036 * breakpoint.c (condition_completer): Ditto.
1037 (create_tracepoint_from_upload): Ditto.
1038 * dwarf2read.c (file_full_name): Ditto.
1039 * gcore.c (gcore_command): Ditto.
1040 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1041 * go32-nat.c (go32_sysinfo): Ditto.
1042 * interps.c (interp_set): Ditto.
1043 * m32c-tdep.c (make_types): Ditto.
1044 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1045 * remote-m32r-sdi.c (m32r_open): Ditto.
1046 * sol-thread.c (td_err_string): Ditto.
1047 (td_state_string, solaris_pid_to_str): Ditto.
1048 * symtab.c (gdb_mangle_name): Ditto.
1049 * cli/cli-script.c (execute_control_command): Ditto.
1050 (define_command, document_command): Ditto.
1051 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1052 * tui/tui-stack.c (tui_make_status_line): Ditto.
1053 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1054
ace21957
MF
10552012-11-20 Mike Frysinger <vapier@gentoo.org>
1056
1057 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1058 it when looking at ptr->func.
1059 * command.h (complete_on_cmdlist): Add a fourth arg.
1060 * completer.c (complete_line_internal): Add local ignore_help_classes,
1061 and set it to 1 when reason is not handle_help. Pass this down to
1062 lookup_cmd_1 and complete_on_cmdlist.
1063
ec6632d7
TT
10642012-11-20 Tom Tromey <tromey@redhat.com>
1065
1066 * completer.c (count_struct_fields): Remove.
1067 (expression_completer): Don't call count_struct_fields.
1068
ef37bb07
PA
10692012-11-20 Pedro Alves <palves@redhat.com>
1070
1071 * annotate.c (breakpoints_changed): Rename to ...
1072 (annotate_breakpoints_changed): ... this.
1073 (annotate_stopped, breakpoint_changed): Adjust caller.
1074 * annotate.h (breakpoints_changed): Rename to ...
1075 (annotate_breakpoints_changed): ... this.
1076 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1077 (do_map_commands_command, init_raw_breakpoint, clear_command)
1078 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1079
b245bdfc
DM
10802012-11-20 David S. Miller <davem@davemloft.net>
1081
1082 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1083 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1084 sysconf.
1085 (get_cores_used_by_process): Update comment.
1086
bd0cfc4d
YQ
10872012-11-20 Yao Qi <yao@codesourcery.com>
1088
1089 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1090
de9f1b68
YQ
10912012-11-20 Yao Qi <yao@codesourcery.com>
1092
1093 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1094 to deprecated_context_hook.
1095
8870954f
YQ
10962012-11-19 Yao Qi <yao@codesourcery.com>
1097
1098 * infrun.c (infwait_state): Add static.
1099
8dea366b
KS
11002012-11-16 Keith Seitz <keiths@redhat.com>
1101
1102 PR c++/13615
1103 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1104 parameter and pass it to lookup_symbol_file.
1105 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1106 to search base classes.
1107 (cp_lookup_symbol_namespace): Likewise.
1108 (lookup_namespace_scope): Likewise.
1109 (lookup_symbol_file): Add SEARCH parameter.
1110 If SEARCH is non-zero and no symbol is found, lookup the class
1111 and call cp_lookup_nested_symbol.
1112 (find_symbol_in_baseclass): New function.
1113 (cp_lookup_nested_symbol): Do not let
1114 cp_lookup_symbol_in_namespace search through base classes.
1115 Do that later when there is no global symbol match.
1116
e64e0392
DE
11172012-11-16 Doug Evans <dje@google.com>
1118
1119 * main.c (gdb_datadir_provided): New static global.
1120 (get_init_files): If --data-directory is provided,
1121 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1122 * NEWS: Mention it.
1123
8bdce1ff
PM
11242012-11-15 Pierre Muller <muller@sourceware.org>
1125
1126 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1127 * gdb_stat.h: Delete. Moved to common directory.
1128 * common/gdb_stat.h: New file.
1129 * gdb_wait.h: Delete. Moved to common directory.
1130 * common/gdb_wait.h: New file.
1131 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1132 location.
1133 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1134 location.
1135 (stat.h rule): Adapt to new gdb_stat.h location.
1136 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1137 <sys/stat.h> header.
1138 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1139 <sys/wait.h> header.
1140
3a731e0f
PM
11412012-11-15 Pierre Muller <muller@sourceware.org>
1142
1143 * configure.ac (AC_HEADER_STAT): Remove.
1144 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1145 and corresponding code.
1146 * configure: Regenerate.
1147 * config.in: Regenerate.
1148
2792b94d
PM
11492012-11-15 Pierre Muller <muller@sourceware.org>
1150
1151 ARI xasprintf rule fixes.
1152 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1153 instead of xasprintf.
1154 (open_and_init_dwp_file): Ditto.
1155
5e34c6c3
LM
11562012-11-14 Luis Machado <lgustavo@codesourcery.com>
1157
1158 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1159 target types.
1160
e68227b9
TT
11612012-11-14 Tom Tromey <tromey@redhat.com>
1162
1163 * configure, config.in: Rebuild.
1164 * configure.ac: Don't check for ctype.h, time.h.
1165 * expprint.c: Don't use HAVE_CTYPE_H.
1166
aff68abb
TT
11672012-11-13 Tom Tromey <tromey@redhat.com>
1168
1169 * gdbarch.h, gdbarch.c: Rebuild.
1170 * gdbarch.sh (set_target_gdbarch): Rename from
1171 deprecated_target_gdbarch_select_hack.
1172 * arch-utils.c (gdbarch_update_p): Update.
1173 (set_gdbarch_from_file): Update.
1174
84277139 11752012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
1176
1177 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1178 as responsible of contrib/ari directory.
1179
2ae28aa9
YQ
11802012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1181 Yao Qi <yao@codesourcery.com>
1182
1183 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1184 bit of EXC_RETURN.
1185 (arm_m_exception_cache, arm_m_exception_this_id)
1186 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1187 (arm_m_exception_unwind): New.
1188 (arm_gdbarch_init): Register arm_m_exception_unwind.
1189
62747a60
TT
11902012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1191
1192 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1193 parameter COUNT, for pattern filling of memory regions.
1194 * NEWS: Mention it.
1195
4cd29721
MM
11962012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1197
1198 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1199 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1200 to print_source_lines ().
1201 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1202 flag.
1203 * source.c (print_source_lines_base): Prefix source line with
1204 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1205
dfaae886
MM
12062012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1207
1208 * symtab.h (print_source_lines_flags): New enum.
1209 * source.c (print_source_lines_base): Change noerror to flags.
1210 (print_source_lines): Change noerror to flags.
1211
08850b56
PM
12122012-11-13 Pierre Muller <muller@sourceware.org>
1213
1214 ARI fixes: Avoid sprintf function use rule.
1215 * charset.c (convert_between_encodings): Use xsnprintf.
1216 * cli-out.c (cli_field_int): Likewise.
1217 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1218 * expprint.c (op_name_standard): Likewise.
1219 * frv-tdep.c (set_variant_num_gprs): Likewise.
1220 (set_variant_num_fprs): Likewise.
1221 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1222 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1223 (nto_init_solib_absolute_prefix): Likewise.
1224 * source.c (init_source_path): Likewise.
1225 (print_source_lines_base): Likewise.
1226 * valprint.c (print_wchar): Likewise.
1227 * mi/mi-out.c (mi_field_int): Likewise.
1228 windows-nat.c (windows_pid_to_exec_file): Likewise.
1229 (windows_create_inferior): Likewise.
1230 (_initialize_check_for_gdb_ini): Likewise.
1231
ca9d61b9
JB
12322012-11-12 Joel Brobecker <brobecker@adacore.com>
1233
1234 * frame.h (deprecated_frame_register_read): Renames
1235 frame_register_read.
1236 * frame.c (deprecated_frame_register_read): Renames
1237 frame_register_read. Update all callers.
1238 * i386-tdep.c: Update all callers of frame_register_read.
1239 * infcmd.c: Likewise.
1240 * jit.c: Likewise.
1241 * mips-tdep.c: Likewise.
1242 * mt-tdep.c: Likewise.
1243 * sh64-tdep.c: Likewise.
1244
b2c7d45a
JB
12452012-11-12 Joel Brobecker <brobecker@adacore.com>
1246
1247 * frame.h (frame_register_read): Remove FIXME comment.
1248 * frame.c (frame_register_read): Add suggestion explaining
1249 which function to use in place of this one.
1250
31594462
TT
12512012-11-12 Tom Tromey <tromey@redhat.com>
1252
1253 * python/python.c (start_type_printers): Initialize 'result_obj'.
1254
18a9fc12
TT
12552012-11-12 Tom Tromey <tromey@redhat.com>
1256
1257 * NEWS: Update.
1258 * data-directory/Makefile.in (PYTHON_FILES): Add
1259 type_printers.py.
1260 * python/lib/gdb/command/type_printers.py: New file.
1261 * python/lib/gdb/command/types.py (TypePrinter): New class.
1262 (_get_some_type_recognizers, get_type_recognizers,
1263 apply_type_recognizers, register_type_printer): New
1264 functions.
1265 * python/py-objfile.c (objfile_object) <type_printers>: New
1266 field.
1267 (objfpy_dealloc): Decref new field.
1268 (objfpy_new): Set new field.
1269 (objfpy_get_type_printers, objfpy_set_type_printers): New
1270 functions.
1271 (objfile_to_objfile_object): Set new field.
1272 (objfile_getset): Add "type_printers".
1273 * python/py-progspace.c (pspace_object) <type_printers>: New
1274 field.
1275 (pspy_dealloc): Decref new field.
1276 (pspy_new): Set new field.
1277 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1278 (pspace_to_pspace_object): Set new field.
1279 (pspace_getset): Add "type_printers".
1280 * python/python.c (start_type_printers, apply_type_printers,
1281 free_type_printers): New functions.
1282 (_initialize_python): Set gdb.type_printers.
1283 * python/python.h (start_type_printers, apply_type_printers,
1284 free_type_printers): Declare.
1285 * typeprint.c (type_print_raw_options, default_ptype_flags):
1286 Update for new fields.
1287 (do_free_global_table, create_global_typedef_table,
1288 find_global_typedef): New functions.
1289 (find_typedef_in_hash): Use find_global_typedef.
1290 (whatis_exp): Use create_global_typedef_table. Change cleanup
1291 handling.
1292 * typeprint.h (struct type_print_options) <global_typedefs,
1293 global_printers>: New fields.
1294
bd69fc68
TT
12952012-11-12 Tom Tromey <tromey@redhat.com>
1296
1297 * c-typeprint.c (find_typedef_for_canonicalize,
1298 print_name_maybe_canonical): New functions.
1299 (c_print_type): Look up type name.
1300 (cp_type_print_derivation_info): Add flags argument. Use
1301 print_name_maybe_canonical.
1302 (cp_type_print_method_args): Add wrapping.
1303 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1304 (c_type_print_template_args): New function.
1305 (c_type_print_base): Change wrapping. Use
1306 print_name_maybe_canonical.
1307 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1308 type name lookups.
1309 * gdbtypes.c (types_equal): No longer static.
1310 * gdbtypes.h (types_equal): Declare.
1311 * typeprint.c (type_print_raw_options, default_ptype_flags):
1312 Update.
1313 (struct typedef_hash_table): New.
1314 (hash_typedef_field, eq_typedef_field,
1315 recursively_update_typedef_hash, add_template_parameters,
1316 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1317 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1318 copy_typedef_hash, find_typedef_in_hash): New functions.
1319 * typeprint.h (struct type_print_options) <local_typedefs>:
1320 New field.
1321 (recursively_update_typedef_hash, add_template_parameters,
1322 create_typedef_hash, free_typedef_hash,
1323 make_cleanup_free_typedef_hash, copy_typedef_hash,
1324 find_typedef_in_hash): Declare.
1325
2621e0fd
TT
13262012-11-12 Tom Tromey <tromey@redhat.com>
1327
1328 * cp-support.c (inspect_type,
1329 replace_typedefs_qualified_name, replace_typedefs): Add
1330 finder, data arguments. Call as needed.
1331 (cp_canonicalize_string_full): New function.
1332 (cp_canonicalize_string_no_typedefs): Rewrite.
1333 * cp-support.h (canonicalization_ftype): New typedef.
1334 (cp_canonicalize_string_full): Declare.
1335
53342f27
TT
13362012-11-12 Tom Tromey <tromey@redhat.com>
1337
1338 * NEWS: Update.
1339 * c-typeprint.c (c_type_print_base): Handle print_method and
1340 print_typedefs flags.
1341 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1342 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1343 options.
1344 * typeprint.c (type_print_raw_options, default_ptype_flags):
1345 Update for new field.s
1346 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1347 (setprinttypelist, showprinttypelist, print_methods,
1348 print_typedefs): New globals.
1349 (set_print_type, show_print_type, set_print_type_methods,
1350 show_print_type_methods, set_print_type_typedefs,
1351 show_print_type_typedefs): New functions.
1352 (_initialize_typeprint): Update documentation. Add "print
1353 type methods" and "print type typedefs" parameters.
1354 * typeprint.h (struct type_print_options) <print_methods,
1355 print_typedefs>: New fields.
1356
6c8702eb
TT
13572012-11-12 Tom Tromey <tromey@redhat.com>
1358
1359 * c-typeprint.c (cp_type_print_method_args): Add flags
1360 argument. Call c_print_type, not type_print.
1361 (c_type_print_base): Call c_print_type, not type_print.
1362 Update.
1363
79d43c61
TT
13642012-11-12 Tom Tromey <tromey@redhat.com>
1365
1366 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1367 to type-printing functions.
1368 * ada-lang.h (ada_print_type): Add argument.
1369 * ada-typeprint.c (print_array_type, print_variant_clauses,
1370 print_variant_part, print_selected_record_field_types,
1371 print_record_field_types, print_unchecked_union_type,
1372 print_func_type, ada_print_type): Add flags argument.
1373 (ada_print_typedef): Update.
1374 * c-exp.y (OPERATOR conversion_type_id): Update.
1375 * c-lang.h (c_print_type, c_type_print_base): Update.
1376 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1377 c_type_print_modifier, c_type_print_args,
1378 c_type_print_varspec_suffix, c_type_print_base): Add flags
1379 argument.
1380 * cp-valprint.c (cp_print_class_member): Update.
1381 * dwarf2read.c (dwarf2_compute_name): Update.
1382 * f-lang.h (f_print_type): Add argument.
1383 * f-typeprint.c (f_print_type): Add flags argument.
1384 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1385 * go-lang.h (go_print_type): Add argument.
1386 * go-typeprint.c (go_print_type): Add flags argument.
1387 * jv-lang.h (java_print_type): Add argument.
1388 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1389 flags argument.
1390 * language.c (unk_lang_print_type): Add flags argument.
1391 * language.h (struct language_defn) <la_print_type>: Add flags
1392 argument.
1393 (LA_PRINT_TYPE): Likewise.
1394 * m2-lang.h (m2_print_type): Add argument.
1395 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1396 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1397 m2_unbounded_array, m2_record_fields): Add flags argument.
1398 * p-lang.h (pascal_print_type, pascal_type_print_base,
1399 pascal_type_print_varspec_prefix): Add argument.
1400 * p-typeprint.c (pascal_print_type,
1401 pascal_type_print_varspec_prefix, pascal_print_func_args,
1402 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1403 flags argument.
1404 * symmisc.c (print_symbol): Update.
1405 * typeprint.c (type_print_raw_options, default_ptype_flags):
1406 New globals.
1407 (type_print): Update.
1408 * typeprint.h (struct type_print_options): New.
1409 (type_print_raw_options): Declare.
1410 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1411
cf4ded82
KS
14122012-11-10 Keith Seitz <keiths@redhat.com>
1413
1414 * breakpoint.c (clear_command): Add cleanup for
1415 sals.sals if an argument is given.
1416
1417 * linespec.c (parse_linespec): Do cleanups after
1418 parsing a convenience variable.
1419
0d63ecda
KS
14202012-11-10 Keith Seitz <keiths@redhat.com>
1421
1422 PR gdb/14288
1423 * c-valprint.c (c_val_print): For character arrays
1424 with "print null" option on, print ellipses if
1425 the output is truncated and the next character is not \000.
1426 * valprint.c (MAX_WCHARS): Define.
1427 (WCHAR_BUFLEN): Likewise.
1428 (WCHAR_BUFLEN_MAX): Likewise.
1429 (struct converted_character): New structure.
1430 (count_next_character): New function.
1431 (print_converted_chars_to_obstack): New function.
1432 (generic_printstr): Rewrite using count_next_character
1433 and print_converted_chars_to_obstack.
1434
9b8d6827
SC
14352012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1436
1437 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1438 while executing the gdb command.
1439 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1440 are called from prompt_for_continue.
1441 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1442
e840f632
SC
14432012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1444
1445 PR tui/9584
1446
1447 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1448 but insert the command to execute in readline's buffer.
1449
f5656ead
TT
14502012-11-09 Tom Tromey <tromey@redhat.com>
1451
1452 * gdbarch.sh (target_gdbarch): Remove macro.
1453 (get_target_gdbarch): Rename to target_gdbarch.
1454 * gdbarch.c, gdbarch.h: Rebuild.
1455 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1456 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1457 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1458 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1459 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1460 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1461 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1462 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1463 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1464 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1465 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1466 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1467 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1468 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1469 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1470 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1471 target-descriptions.c, target.c, target.h, tracepoint.c,
1472 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1473 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1474 python/py-inferior.c, python/python.c: Update.
1475
ed8a1c2d
AB
14762012-11-09 Andrew Burgess <aburgess@broadcom.com>
1477
1478 * source.c (print_source_lines_base): Add fullname field giving
1479 full path to file in mi output.
1480 * NEWS: Mention the new fullname field.
1481
504b36fd
YQ
14822012-11-09 Yao Qi <yao@codesourcery.com>
1483
1484 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1485
9107fc8d
PA
14862012-11-09 Pedro Alves <palves@redhat.com>
1487
1488 PR gdb/14306
1489
1490 * infrun.c: Include target-descriptions.h.
1491 (follow_exec): Fetch new target description.
1492
30f8135b
YQ
14932012-11-09 Yao Qi <yao@codesourcery.com>
1494
1495 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1496 0x8d (lea).
1497
558a9d82
YQ
14982012-11-09 Yao Qi <yao@codesourcery.com>
1499
1500 * breakpoint.c: Declare set_tracepoint_count.
1501 (install_breakpoint): Call set_tracepoint_count if B is a
1502 tracepoint.
1503 (trace_command): Don't call set_tracepoint_count. Re-indent.
1504 (strace_command, ftrace_command):
1505 (create_tracepoint_from_upload): Likewise.
1506
6ecd4729
PA
15072012-11-09 Pedro Alves <palves@redhat.com>
1508
1509 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1510 (get_target_gdbarch) <gdbarch.h>: New function.
1511 (startup_gdbarch) <gdbarch.h>: Declare.
1512 <gdbarch.c> (target_gdbarch): Delete.
1513 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1514 current inferior's gdbarch.
1515 <gdbarch.c> (get_target_gdbarch): New function.
1516 * inferior.c: Include target-descriptions.h.
1517 (free_inferior): Free target description info.
1518 (add_inferior_with_spaces): Set the inferior's initial
1519 architecture.
1520 (clone_inferior_command): Copy the original inferior's target
1521 description if it was user specified.
1522 (initialize_inferiors): Add comment.
1523 * inferior.h (struct target_desc_info): Forward declare.
1524 (struct inferior) <gdbarch>: New field.
1525 * linux-nat.c: Include target-descriptions.h.
1526 (linux_child_follow_fork): Copy the parent's architecture and
1527 target description to the child.
1528 * target-descriptions.c: Include inferior.h.
1529 (struct target_desc_info): New structure, holding the equivalents
1530 of ...
1531 (target_desc_fetched, current_target_desc)
1532 (target_description_filename): ... these removed globals.
1533 (get_tdesc_info, target_desc_info_from_user_p)
1534 (copy_inferior_target_desc_info, target_desc_info_free): New.
1535 (target_desc_fetched, current_target_desc)
1536 (target_description_filename): Reimplemented as convenience
1537 macros.
1538 (tdesc_filename_cmd_string): New global.
1539 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1540 tdescs filename ..." commands to the per-inferior equivalent.
1541 (show_tdesc_filename_cmd): Get the value to show from the
1542 per-inferior description filename.
1543 (_initilize_target_descriptions): Change the "set/show tdesc
1544 filename" commands' variable.
1545 * target-descriptions.h (struct target_desc, struct target_desc_info)
1546 (struct inferior): Forward declare.
1547 (target_find_description, target_clear_description)
1548 (target_current_description): Adjust comments.
1549 (copy_inferior_target_desc_info, target_desc_info_free)
1550 (target_desc_info_from_user_p). Declare.
1551
4ca4d161
SC
15522012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1553
1554 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1555 (tui_target_wait_hook): Remove.
1556 (tui_install_hooks): Install the about_to_proceed observer.
1557 (tui_remove_hooks): And remove it here.
1558
9015683b
TT
15592012-11-08 Tom Tromey <tromey@redhat.com>
1560
1561 * linux-tdep.c (linux_make_siginfo_note): New function.
1562 (linux_make_corefile_notes): Use it.
1563 * corelow.c (get_core_siginfo): New function.
1564 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1565
ea9f10bb
TT
15662012-11-08 Tom Tromey <tromey@redhat.com>
1567
1568 PR gdb/14704:
1569 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1570 (zlib_decompress_section): Remove.
1571 (gdb_bfd_map_section): Only check for compressed section
1572 in mmap case. Use bfd_get_full_section_contents.
1573 * osabi.c (check_note): Add 'sectsize' argument. Read
1574 section data.
1575 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1576 section data. Update for check_note change.
1577 * xcoffread.c (xcoff_initial_scan): Use
1578 bfd_get_full_section_contents.
1579 * py-auto-load.c (auto_load_section_scripts): Use
1580 bfd_get_full_section_contents.
1581 * contrib/cc-with-tweaks.sh: Add -Z option.
1582
d071a26b
TT
15832012-11-08 Tom Tromey <tromey@redhat.com>
1584
1585 * python/py-bpevent.c: Include defs.h.
1586 * python/py-continueevent.c: Include defs.h.
1587 * python/py-event.c: Include defs.h.
1588 * python/py-event.h: Don't include defs.h.
1589 * python/py-events.h: Don't include defs.h.
1590 * python/py-evts.c: Include defs.h.
1591 * python/py-exitedevent.c: Include defs.h.
1592 * python/py-newobjfileevent.c: Include defs.h.
1593 * python/py-signalevent.c: Include defs.h.
1594 * python/py-stopevent.c: Include defs.h.
1595 * python/py-threadevent.c: Include defs.h.
1596
4574b35a
PM
15972012-11-08 Pierre Muller <muller@sourceware.org>
1598
1599 * update-web-ari.sh (print_heading): Add number of files
1600 checked.
1601 (nb_files): New variable counting the number of sources
1602 files found by gdb_find.sh script.
1603 (debug_awk): New variable to allow extra debug output.
1604 (indexes): Add more information if DEBUG_AWK is set.
1605
2834ab42
EBM
16062012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1607
1608 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1609 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1610 following the change in PLT call stubs on linker.
1611
84f13595
PM
16122012-11-08 Pierre Muller <muller@sourceware.org>
1613
1614 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1615 as default language.
1616 (AWK): Use = instead of == for sh test to avoid warning.
1617 (Linux rule): Correct [:digit] into [[:digit:]].
1618 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1619 (vasprintf rule): Adapt to common subdirectory moves.
1620 (xasprintf rule): Idem.
1621 (xvasprintf rule): Idem.
1622 (var_boolean rule): Accept occurence in == or != test.
1623
1624 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1625
d69e6a33
SC
16262012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1627
1628 * tui/tui-hooks.c (tui_inferior_exit): New function.
1629 (tui_detach_hook): Remove.
1630 (tui_install_hooks): Install the inferior exit observer.
1631 (tui_remove_hooks): Remove it.
1632
1e96de83
YQ
16332012-11-08 Yao Qi <yao@codesourcery.com>
1634
1635 PR gdb/14777.
1636 * source.c (_initialize_source): Call add_com_alias to abbreviate
1637 'forward-search' as 'fo'.
1638
0baeab03
PA
16392012-11-07 Pedro Alves <palves@redhat.com>
1640
1641 * arm-tdep.c: Make defs.h be the first include.
1642 * coff-pe-read.c: Ditto.
1643 * gnu-nat.c: Ditto.
1644 * go32-nat.c: Ditto.
1645 * i386-nat.c: Ditto.
1646 * ppcnbsd-nat.c: Ditto.
1647 * ada-varobj.h: Don't include defs.h.
1648 * i386-darwin-tdep.h: Ditto.
1649 * i386-nat.h: Ditto.
1650
892a8570
PA
16512012-11-07 Pedro Alves <palves@redhat.com>
1652
1653 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1654 Committee.
1655
719502e9
PM
16562012-11-07 Pierre Muller <muller@sourceware.org>
1657
1658 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1659 File already uses "gdb_dirent.h" header.
1660
ed86b350
YQ
16612012-11-07 Yao Qi <yao@codesourcery.com>
1662
1663 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1664 tracepoint_count'.
1665
9a4f1e4f
TT
16662012-11-06 Tom Tromey <tromey@redhat.com>
1667
1668 * target.h (inferior_has_forked, inferior_has_vforked)
1669 (inferior_has_execd, inferior_has_called_syscall): Remove
1670 declarations.
1671
0316657e
PM
16722012-11-06 Pierre Muller <muller@sourceware.org>
1673
1674 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1675 add missing internalization markup.
1676
f6592439
PA
16772012-11-06 Pedro Alves <palves@redhat.com>
1678
1679 PR gdb/14810
1680
1681 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1682
01f2564a
PM
16832012-11-06 Pierre Muller <muller@sourceware.org>
1684
1685 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1686 is not executable.
1687
f37c4431
JB
16882012-11-05 Joel Brobecker <brobecker@adacore.com>
1689
1690 * gnulib/update-gnulib.sh: New script.
1691
550889c3
JB
16922012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1693
1694 * MAINTAINERS: Update my email address.
1695
954b50b3
TT
16962012-11-05 Tom Tromey <tromey@redhat.com>
1697
1698 * frame.c (put_frame_register): Don't use temporary buffer.
1699
68c9da30
PA
17002012-11-05 Pedro Alves <palves@redhat.com>
1701
1702 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1703 child. Clear 'pending_detach'.
1704 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1705 'pending_detach' in the vfork parent.
1706
80626a55
DE
17072012-11-05 Doug Evans <dje@google.com>
1708
1709 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1710 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1711 * dwarf2read.c: #include "elf-bfd.h".
1712 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1713 (dwop_section_names): Renamed from dwo_section names. All uses
1714 updated. Add entries for .debug_cu_index, .debug_tu_index.
1715 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1716 All uses updated.
1717 (struct dwp_sections): New type.
1718 (struct virtual_dwo_sections): New type.
1719 (struct dwp_hash_table): New type.
1720 (struct dwp_file): New type.
1721 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1722 read in. Handle DWOs coming from DWP files.
1723 (lookup_dwo_file_slot): New function.
1724 (dwarf2_locate_dwo_sections): Move definition closer to use.
1725 (create_dwo_debug_info_hash_table_reader): Renamed from
1726 create_debug_info_hash_table_reader. All callers updated.
1727 (create_dwo_debug_info_hash_table): Renamed from
1728 create_debug_info_hash_table. All callers updated.
1729 (create_dwp_hash_table): New function.
1730 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1731 (lookup_dwo_in_dwp): New function.
1732 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1733 is_dwp. All callers updated.
1734 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1735 (open_and_init_dwo_file): Renamed from init_dwo_file.
1736 All callers updated.
1737 (lookup_dwo_file): Delete.
1738 (dwarf2_locate_dwp_sections): New function.
1739 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1740 (allocate_dwp_loaded_cutus_table): New function.
1741 (open_and_init_dwp_file): New function.
1742 (lookup_dwo_cutu): New function.
1743 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1744
6f6484cd
YQ
17452012-11-03 Yao Qi <yao@codesourcery.com>
1746
1747 Fix PR gdb/14617.
1748 * breakpoint.c (trace_pass_set_count): Call
1749 observer_notify_breakpoint_modified instead of
1750 observer_notify_tracepoint_modified.
1751 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1752
b45627a0
TT
17532012-11-02 Tom Tromey <tromey@redhat.com>
1754
1755 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1756 argument to complete_on_enum.
1757
d4fb63e1
TT
17582012-11-02 Tom Tromey <tromey@redhat.com>
1759
1760 * configure: Rebuild.
1761 * configure.ac (build_warnings): Add -Wempty-body.
1762 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1763 * remote.c (handle_notification): Use braces for empty 'else' body.
1764 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1765 'else' body.
1766 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1767 'else' body.
1768 * solib-som.c (som_relocate_section_addresses): Use braces
1769 for empty 'else' body.
1770 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1771 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1772
f50f4e56
PA
17732012-11-02 Pedro Alves <palves@redhat.com>
1774
1775 PR gdb/14766
1776
1777 * infrun.c (handle_inferior_event)
1778 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1779 null_ptid before handling a vfork child exec or exit. Switch to
1780 the event ptid afterwards.
1781
f0559fff
YQ
17822012-11-02 Yao Qi <yao@codesourcery.com>
1783
1784 * std-operator.def: Remove OP_LABELED.
1785 * eval.c: Remove the declaration of 'get_label'.
1786 (get_label): Remove.
1787 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1788 Update comment.
1789 Remove local variable 'variantno' and related code.
1790 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1791 with 'fieldno'.
1792 * expprint.c (print_subexp_standard): Likewise.
1793 (dump_subexp_body_standard): Likewise.
1794 * parse.c (operator_length_standard): Likewise.
1795
e5496e3e
PM
17962012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1797
1798 Incorporate ARI web page generator into GDB sources.
1799 * contrib/ari/create-web-ari-in-src.sh: New file.
1800 * contrib/ari/gdb_ari.sh: New file.
1801 * contrib/ari/gdb_find.sh: New file.
1802 * contrib/ari/update-web-ari.sh: New file.
1803
c66fb220
TT
18042012-10-31 Tom Tromey <tromey@redhat.com>
1805
1806 * gdbarch.c: Rebuild.
1807 * gdbarch.sh: Remove references to gdbarch_swap.
1808 * corelow.c (core_open): Remove obsolete comment.
1809
2f27adfe
AB
18102012-10-31 Andrew Burgess <aburgess@broadcom.com>
1811
1812 PR cli/14772
1813 * c-typeprint.c (c_print_type): Don't print a space for vector
1814 types, this is handled within the suffix.
1815 (c_type_print_varspec_suffix): Add a space to vector suffix.
1816
144db827
PA
18172012-10-26 Pedro Alves <palves@redhat.com>
1818
1819 * amd64-tdep.c (amd64_relocate_instruction): Use
1820 store_unsigned_integer instead of memcpy.
1821 * i386-tdep.c (i386_relocate_instruction): Ditto.
1822
940c3c06
PA
18232012-10-26 Pedro Alves <palves@redhat.com>
1824
1825 * infrun.c (handle_inferior_event): Merge handling of
1826 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1827 switch case.
1828
47b19065
PA
18292012-10-26 Pedro Alves <palves@redhat.com>
1830
1831 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1832 Remove comment.
1833
87d2d2a4
PA
18342012-10-26 Pedro Alves <palves@redhat.com>
1835
1836 * target.c (target_waitstatus_to_string): Handle
1837 TARGET_WAITKIND_VFORK_DONE.
1838
fed708ed
PA
18392012-10-26 Pedro Alves <palves@redhat.com>
1840
1841 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1842 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1843
2590b645
JB
18442012-10-24 Tristan Gingold <gingold@adacore.com>
1845
1846 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1847 Add comments.
1848
bed0c243
JB
18492012-10-24 Joel Brobecker <brobecker@adacore.com>
1850
1851 * ravenscar-thread.c (ravenscar_wait): Only update the list
1852 of threads and inferior_ptid if the inferior is still alive.
1853
f69c91ad
JB
18542012-10-24 Joel Brobecker <brobecker@adacore.com>
1855
1856 * ada-lang.c (is_known_support_routine): Use lbasename when
1857 matching the symtab's filename against
1858 known_runtime_file_name_patterns.
1859
d99dcf51
JB
18602012-10-24 Joel Brobecker <brobecker@adacore.com>
1861
1862 * ada-lang.c (ada_same_array_size_p): New function.
1863 (ada_promote_array_of_integrals): New function.
1864 (coerce_for_assign): Add handling of arrays where the elements
1865 are integrals of a smaller size than the size of the target
1866 array element type.
1867
32560274
JB
18682012-10-24 Joel Brobecker <brobecker@adacore.com>
1869
1870 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1871 against maximum exponent value.
1872
5a04cc98
JB
18732012-10-24 Joel Brobecker <brobecker@adacore.com>
1874
1875 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1876 "unwind-seh.c".
1877
5ded5331
JB
18782012-10-24 Joel Brobecker <brobecker@adacore.com>
1879
1880 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1881 strip typedef layer when computing the fixed type's field type,
1882 only when computing its size.
1883
2445fd7b
MK
18842012-10-24 Mark Kettenis <kettenis@gnu.org>
1885
1886 PR gdb/12783
1887 * i386-tdep.c (i386_return_value): Handle complex double and long
1888 double.
1889
8f205f9c
JB
18902012-10-24 Joel Brobecker <brobecker@adacore.com>
1891
1892 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1893 New local variable args_len.
1894 Quote the name of the executable when computing the command line.
1895
7f7930dd
MK
18962012-10-23 Mark Kettenis <kettenis@gnu.org>
1897
1898 PR gdb/12796
1899 PR gdb/12798
1900 PR gdb/12800
1901 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1902 AMD64_FTAG_REGNUM.
1903 * amd64-tdep.c (amd64_classify): Classify complex types.
1904 (amd64_return_value): Handle the COMPLEX_X87 class.
1905
38a69d0a
JB
19062012-10-23 Joel Brobecker <brobecker@adacore.com>
1907
1908 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1909 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1910
83ab93c6
JB
19112012-10-23 Joel Brobecker <brobecker@adacore.com>
1912
1913 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1914 function.
1915 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1916 to amd64_windows_auto_wide_charset.
1917
f6fbab7d
YQ
19182012-10-23 Yao Qi <yao@codesourcery.com>
1919
1920 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1921 * event-top.h: Remove its declaration.
1922 (async_request_quit): Call mark_async_signal_handler instead of
1923 mark_async_signal_handler_wrapper.
1924 (async_do_nothing, async_disconnect): Likewise.
1925 (async_stop_sig): Likewise.
1926 * remote.c (handle_remote_sigint): Likewise.
1927 (handle_remote_sigint_twice): Likewise.
1928
05fa9251
YQ
19292012-10-23 Yao Qi <yao@codesourcery.com>
1930
1931 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1932 with 'static struct async_signal_handler *'.
1933 (sighup_token, sigquit_token, sigstp_token): Likewise.
1934
08af7a40
AA
19352012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1936
1937 * gdbarch.sh (function_list): Use 'pstring' when printing
1938 a variable which could return NULL.
1939 * gdbarch.c: Regenerate.
1940
beb4b03c 19412012-10-10 Joel Brobecker <brobecker@adacore.com>
f87e3f15 1942 Tom Tromey <tromey@redhat.com>
beb4b03c
JB
1943
1944 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1945 inneffective if condition by gdb assertion. Add function
1946 description comment.
1947
a5b12627
JB
19482012-10-19 Joel Brobecker <brobecker@adacore.com>
1949
1950 * parser-defs.h (struct exp_descriptor): Document constraint
1951 on return value for "op_name" callbacks.
1952
0b0865da
TT
19532012-10-18 Tom Tromey <tromey@redhat.com>
1954
1955 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1956 * symtab.c (iterate_over_some_symtabs): Constify.
1957 * source.h (symtab_to_fullname): Return 'const char *'.
1958 * source.c (symtab_to_fullname): Return 'const char *'.
1959 * python/py-symtab.c (stpy_fullname): Constify.
1960 * cli/cli-cmds.c (edit_command): Constify.
1961 * breakpoint.c (print_breakpoint_location)
1962 (update_static_tracepoint): Constify.
1963
94b0e70d
TT
19642012-10-18 Tom Tromey <tromey@redhat.com>
1965
1966 * breakpoint.c (compare_breakpoints): Fix comparison.
1967
fff10684
TT
19682012-10-18 Tom Tromey <tromey@redhat.com>
1969
1970 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1971 gdb_wchar_t to convert_between_encodings.
1972
8de0566d
YQ
19732012-10-17 Yao Qi <yao@codesourcery.com>
1974
1975 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1976 more parameter 'inferior'.
1977 * corefile.c (write_memory_with_notification): Caller update.
1978
1979 * mi/mi-cmd-var.c: Include "mi-main.h".
1980 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1981 to 1 and restore it later.
1982 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1983 and "data-write-memory-bytes.
1984 * mi/mi-interp.c: Include objfiles.h.
1985 (mi_interpreter_init): Call observer_attach_memory_changed.
1986 (mi_memory_changed): New.
1987 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1988 New field.
1989
1990 * NEWS: Mention new MI notification "memory-changed".
1991
6235cdd1
JK
19922012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1993
1994 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1995
07540c15
DE
19962012-10-15 Doug Evans <dje@google.com>
1997
1998 New option -nh: inhibit loading of ~/.gdbinit.
1999 * NEWS: Mention -nh.
2000 * main.c (captured_main): Recognize and process -nh.
2001 (print_gdb_help): Mention -nh.
2002 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2003
eab09350
L
20042012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2005
2006 PR backtrace/14646
2007 PR gdb/14647
2008 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2009 pc_regnum_from_eax.
2010 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2011 nor pc_regnum_from_eax.
2012 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2013 nor pc_regnum_from_eax.
2014
9e3a7d65
JK
20152012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2016
2017 Fix entry values resolving in inlined frames.
2018 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2019 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2020 entries of FRAME.
2021
c83393b9
JB
20222012-10-15 Joel Brobecker <brobecker@adacore.com>
2023
2024 * configure.ac: Build with -DMS_WIN64 if building with Python
2025 enabled using GCC on amd64-windows.
2026 * configure: Regenerate.
2027
801e4185
TT
20282012-10-15 Tom Tromey <tromey@redhat.com>
2029
2030 PR python/14635:
2031 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2032 to Py_None.
2033
74f910c8
TT
20342012-10-15 Tom Tromey <tromey@redhat.com>
2035
2036 PR python/14634:
2037 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2038
2a7c8fd5
AB
20392012-10-11 Andrew Burgess <aburgess@broadcom.com>
2040
2041 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2042 reset thread numbering back to 1.
2043
7c09e5a0
DE
20442012-10-11 Doug Evans <dje@google.com>
2045
2046 PR breakpoints/14643.
2047 * linespec.c (struct ls_parser): New member keyword_ok.
2048 (linespec_lexer_lex_string): Add comment.
2049 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2050 for one.
2051 (parse_linespec): Set keyword_ok.
2052
a1855c1d
DE
20532012-10-10 Doug Evans <dje@google.com>
2054
844226d6
DE
2055 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2056 "0x" prefix on address in log message.
2057
a1855c1d
DE
2058 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2059 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2060 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2061 (lookup_dwo_file): Add const to dwo_name parameter.
2062 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2063
2e24f4aa
JK
20642012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2065
2066 Fix crash during stepping on ppc32.
2067 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2068 SYM.
2069
aa14df25
DE
20702012-10-03 Doug Evans <dje@google.com>
2071
2072 PR symtab/14601
2073 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2074
3d468296
AB
20752012-10-02 Andrew Burgess <aburgess@broadcom.com>
2076
2077 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2078 output and use uint32_t not long to ensure 4 byte size.
2079
8f0ee2eb
JB
20802012-10-02 Joel Brobecker <brobecker@adacore.com>
2081
2082 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2083 unref'ed it.
2084
b3dc46ff
AB
20852012-10-01 Andrew Burgess <aburgess@broadcom.com>
2086
2087 * target.c (simple_search_memory): Include access length in
2088 warning message.
2089
f712f01f
EBM
20902012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2091 Edjunior Machado <emachado@linux.vnet.ibm.com>
2092
2093 PR gdb/13989
2094 * solib.c (solib_find): Prevent GDB from loading native libraries when
2095 debugging a cross-target corefile.
2096
39181896
PA
20972012-09-28 selven <pcthegreat@gmail.com>
2098
2099 Make definition match declaration.
2100
2101 * regcache.c (regcache_register_status): Change return type to
2102 enum register_status.
2103
4c2786ba
YQ
21042012-09-28 Yao Qi <yao@codesourcery.com>
2105
2106 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2107 write_memory_with_notification instead of write_memory.
2108 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2109 instead of target_write_memory.
2110
1ae0c35e
YQ
21112012-09-28 Yao Qi <yao@codesourcery.com>
2112
2113 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2114 when the length of content is not an even number.
2115
7977e5d2
TT
21162012-09-27 Tom Tromey <tromey@redhat.com>
2117
2118 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2119 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2120
807160da
JB
21212012-09-27 Joel Brobecker <brobecker@adacore.com>
2122
2123 * sol-thread.c (sol_thread_fetch_registers)
2124 (sol_thread_store_registers): Delete commented out code.
2125
43c75337
JB
21262012-09-27 Joel Brobecker <brobecker@adacore.com>
2127
2128 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2129 Move these functions to sparc-sol-thread.c.
2130 * sparc-sol-thread.c: New file.
2131 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2132 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2133 configurations.
2134 * configure: Regenerate.
2135
d292a972
JB
21362012-09-27 Joel Brobecker <brobecker@adacore.com>
2137
2138 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2139 Remove commented-out code.
2140
8c3da003
JB
21412012-09-27 Joel Brobecker <brobecker@adacore.com>
2142
2143 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2144 Enable this code for sparc hosts only.
2145
f00482b6
JB
21462012-09-27 Joel Brobecker <brobecker@adacore.com>
2147
2148 * procfs.h (procfs_find_LDT_entry): Add declaration.
2149 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2150 function procfs_find_LDT_entry.
2151
337c776f
JB
21522012-09-27 Joel Brobecker <brobecker@adacore.com>
2153
2154 * procfs.c (proc_get_LDT_entry): Make static.
2155
1a04d88f
JB
21562012-09-27 Joel Brobecker <brobecker@adacore.com>
2157
2158 * procfs.c (proc_find_memory_regions): Fix declaration.
2159
bad43aa5
SP
21602012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2161
2162 * amd64-tdep.c (amd64_return_value): Revert previous change
2163 that used TYPE_LENGTH directly.
2164 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2165 (bfin_store_return_value): Likewise.
2166 * cris-tdep.c (cris_store_return_value): Likewise.
2167 (cris_extract_return_value): Likewise.
2168 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2169 * hppa-tdep.c (hppa64_return_value): Likewise.
2170 * lm32-tdep.c (lm32_store_return_value): Likewise.
2171 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2172 * spu-tdep.c (spu_value_from_register): Likewise.
2173 * vax-tdep.c (vax_return_value): Likewise.
2174
63375b74
SP
21752012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2176
2177 * gdbtypes.c (lookup_array_range_type): Expand parameters
2178 LOW_BOUND and HIGH_BOUND to LONGEST.
2179 (lookup_string_range_type): Likewise.
2180 * gdbtypes.h (lookup_array_range_type): Likewise.
2181 (lookup_string_range_type): Likewise.
2182 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2183 Expand HIGHBOUND to ssize_t.
2184 (value_string): Likewise.
2185 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2186 (value_string): Likewise.
2187
19ca11c5
YQ
21882012-09-27 Yao Qi <yao@codesourcery.com>
2189
2190 PR breakpoints/13898
2191 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2192 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2193 per breakpoint type.
2194
92107356
PM
21952012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2196
2197 * procfs.c: Add gdb_bfd header.
2198 * rs6000-nat.c: Likewise.
2199 * solib-pa64.c: Likewise.
2200 * spu-linux-nat.c: Likewise.
2201 * windows-nat.c: Likewise.
2202
9742094a
TT
22032012-09-26 Tom Tromey <tromey@redhat.com>
2204
2205 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2206
0971de02
TT
22072012-09-26 Tom Tromey <tromey@redhat.com>
2208
2209 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2210 (read_common_block): Handle child DIEs with
2211 DW_AT_data_member_location.
2212 (new_symbol_full): Add special case for common blocks.
2213
4357ac6c
TT
22142012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2215 Tom Tromey <tromey@redhat.com>
2216
2217 * dwarf2read.c (read_common_block): Rewrite.
2218 (new_symbol_full): Handle DW_TAG_common_block.
2219 * f-lang.c (head_common_list, find_common_for_function):
2220 Remove.
2221 * f-lang.h (struct common_entry, struct saved_f77_common,
2222 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2223 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2224 BLANK_COMMON_NAME_LOCAL): Remove.
2225 (struct common_block): New.
2226 * f-valprint.c (list_all_visible_commons): Remove.
2227 (info_common_command_for_block): New function.
2228 (info_common_command): Use it.
2229 * stack.c (iterate_over_block_locals): Special case for
2230 COMMON_BLOCK_DOMAIN.
2231 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2232 constant.
2233 (struct general_symbol_info) <value.common_block>: New field.
2234 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2235
965f07a8
TT
22362012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2237 Tom Tromey <tromey@redhat.com>
2238
2239 * f-lang.c (allocate_saved_bf_node,
2240 allocate_saved_function_node, allocate_saved_f77_common_node,
2241 allocate_common_entry_node, tail_common_list, current_common,
2242 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2243 tmp_bf_ptr, add_common_block, add_common_entry,
2244 find_first_common_named, patch_common_entries,
2245 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2246 global_remote_debug, get_bf_for_fcn, saved_function_list,
2247 saved_function_list_end, clear_function_list, struct saved_fcn,
2248 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2249 SAVED_BF, SAVED_BF_PTR): Remove.
2250 * f-lang.h (tail_common_list, current_common,
2251 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2252 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2253 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2254 real_main_c_value): Remove.
2255 * f-valprint.c (there_is_a_visible_common_named): Remove.
2256
6f380991
AB
22572012-09-26 Andrew Burgess <aburgess@broadcom.com>
2258
2259 * breakpoint.c (update_global_location_list): Ignore previous
2260 duplicate status of a breakpoint when starting a new scan for
2261 duplicate breakpoints.
2262
9ead7ae4 22632012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 2264 PR breakpoints/14419
2536b51c
YQ
2265 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2266 support LLVM compiler.
9ead7ae4 2267
8f8a23a2
SP
22682012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2269
2270 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2271 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2272 (bfin_store_return_value): Likewise.
2273 * cris-tdep.c (cris_store_return_value): Likewise.
2274 (cris_extract_return_value): Likewise.
2275 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2276 * hppa-tdep.c (hppa64_return_value): Likewise.
2277 * lm32-tdep.c (lm32_store_return_value): Likewise.
2278 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2279 * spu-tdep.c (spu_value_from_register): Likewise.
2280 * vax-tdep.c (vax_return_value): Likewise.
2281
d7019589
SP
22822012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2283
2284 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2285 parameter LEN to ssize_t.
2286
744a8059
SP
22872012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2288
2289 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2290 variable LEN.
2291 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2292 directly.
2293 (alpha_store_return_value): Likewise.
2294 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2295 (amd64_push_arguments): Likewise.
2296 * ax-gdb.c (gen_trace_static_fields): Likewise.
2297 (gen_traced_pop): Likewise.
2298 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2299 * breakpoint.c (update_watchpoint): Likewise.
2300 * findcmd.c (parse_find_args): Use local variable for type
2301 instead of length.
2302 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2303 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2304 (h8300_store_return_value): Likewise.
2305 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2306 Use i386_darwin_arg_type_alignment directly.
2307 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2308 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2309 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2310 (m68hc11_extract_return_value): Likewise.
2311 * mep-tdep.c (mep_push_dummy_call): Likewise.
2312 * printcmd.c (float_type_from_length): Likewise.
2313 * s390-tdep.c (s390_value_from_register): Likewise.
2314 * stack.c (read_frame_arg): Likewise.
2315 * tracepoint.c (encode_actions_1): Likewise.
2316 * valops.c (value_fetch_lazy): Use local variable for type
2317 instead of length. Use TYPE_LENGTH directly.
2318 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2319
a4b411d6
JB
23202012-09-25 Joel Brobecker <brobecker@adacore.com>
2321
2322 * symtab.c (skip_prologue_sal): Fix typo in comment.
2323
11dba07a
JB
23242012-09-25 Joel Brobecker <brobecker@adacore.com>
2325
2326 * linespec.c (create_sals_line_offset): Fix typo in comment.
2327
318102b9
SP
23282012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2329
2330 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2331 use plongest to print the array size.
2332
b4aa388a
SP
23332012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2334
2335 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2336 * p-valprint.c (pascal_type_print_base): Likewise.
2337
84cebc4a
YQ
23382012-09-22 Yao Qi <yao@codesourcery.com>
2339
2340 * remote.c (remote_get_trace_status): Remove setting default
2341 values of fields of 'ts'.
2342
04e7407c
JK
23432012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2344
2345 Fix internal error on canonicalization of clang types.
2346 * cp-name-parser.y (operator): New comment at make_operator call for
2347 new, delete, new[] and delete[].
2348 (exp): Use "sizeof ". Add new comment at make_operator call.
2349
9bf4bce9
JK
23502012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2351
2352 Fix disassemble without parameters in tailcall frame.
2353 * cli/cli-cmds.c (disassemble_current_function): Use
2354 get_frame_address_in_block.
2355
1c5b7826
TT
23562012-09-21 Tom Tromey <tromey@redhat.com>
2357
2358 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2359 TYPE_CODE_UNION>: Unify, removing a goto.
2360
62a49610
TT
23612012-09-21 Tom Tromey <tromey@redhat.com>
2362
2363 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2364
2603f7ee
AB
23652012-09-21 Andrew Burgess <aburgess@broadcom.com>
2366
2367 * findvar.c (read_frame_register_value): Mark the result value as
2368 optimized out if any of the input registers have been optimized out.
2369
810849a3
AS
23702012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2371
2372 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2373
0953dec1
SP
23742012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2375
2376 * eval.c (evaluate_subexp_standard): Eliminate single-use
2377 variable LOWER.
2378
82a90ccf
YQ
23792012-09-21 Yao Qi <yao@codesourcery.com>
2380
2381 * mi/mi-interp.c: Declare mi_record_changed.
2382 (mi_interpreter_init): Call observer_attach_record_changed.
2383 (mi_record_changed): New.
2384 * record.c (record_open): Call observer_notify_record_changed.
2385 (cmd_record_stop): Call observer_notify_record_changed.
2386 * NEWS: Mention it.
2387
d7de8e3c
TT
23882012-09-20 Tom Tromey <tromey@redhat.com>
2389
2390 * NEWS: Update.
2391 * python/python.c (finalize_python): New function.
2392 (_initialize_python): Make a final cleanup.
2393
43c7c83d
DE
23942012-09-19 Doug Evans <dje@google.com>
2395
2396 * buildsym.h (param_symbols): Delete, unused.
2397 (context_stack): Delete member "params", unused.
2398 * buildsym.c (push_context): Update.
2399 * dwarf2read.c (read_func_scope): Update.
2400
aa9259cc
TS
24012012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2402
a6521d9a
TS
2403 * sh-tdep.c (sh_register_convert_to_virtual)
2404 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2405 all callers. Just do a memcpy if not the little-endian case.
2406
f92589cb
TS
2407 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2408 set_gdbarch_double_format and set_gdbarch_long_double_format.
2409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2410 set_gdbarch_double_format.
2411 * sh-tdep.c (sh_gdbarch_init): Likewise.
2412
aa9259cc
TS
2413 * NEWS: Document the removal of SH's 'regs' command.
2414 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2415 command.
2416
c1d780c2
SDJ
24172012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2418
2419 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2420 `jump'.
2421
4ae24af0
JB
24222012-09-18 Joel Brobecker <brobecker@adacore.com>
2423
2424 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2425 language when iterating over symbols.
2426
bb25a15c
YQ
24272012-09-18 Yao Qi <yao@codesourcery.com>
2428
2429 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2430 (mi_interpreter_init): Call observer_attach_tsv_created and
2431 observer_attach_tsv_deleted.
2432 (mi_tsv_created, mi_tsv_deleted): New.
2433 * tracepoint.c (delete_trace_state_variable): Call
2434 observer_notify_tsv_deleted.
2435 (trace_variable_command): Call observer_notify_tsv_created.
2436 (delete_trace_variable_command): Call
2437 observer_notify_tsv_deleted.
2438 (create_tsv_from_upload): Call observer_notify_tsv_created.
2439 * NEWS: Mention it.
2440
201b4506
YQ
24412012-09-18 Yao Qi <yao@codesourcery.com>
2442
2443 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2444 if traceframe changed.
2445 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2446 "trace-find".
2447 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2448 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2449 'traceframe_changed'.
2450 (mi_traceframe_changed): New.
2451 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2452 New field.
2453 * NEWS: Mention the new MI notification.
2454
eaeb12db
MW
24552012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2456
2457 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2458
6e3c039e
JK
24592012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2460
2461 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2462 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2463 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2464 Extend code also for PaX support. Convert all gdb_assert to warning
2465 calls.
2466
9a950c7c
JK
24672012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2468
2469 Implement auto-load user conveniences suggested by Doug Evans.
2470 * auto-load.c: Include top.h.
2471 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2472 (_initialize_auto_load): New variable scripts_directory_help. Mention
2473 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2474 scripts-directory. Document in online help one can use also files for
2475 set auto-load safe-path.
2476 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2477 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2478
deec9a9d
SP
24792012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2480
2481 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2482 of LEN.
2483
354ecfd5
SP
24842012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2485
2486 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2487 ELTLEN and use TYPE_LENGTH directly.
2488 (m2_val_print): Likewise.
2489 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2490 variable LEN and use TYPE_LENGTH directly.
2491 (m68k_svr4_store_return_value): Likewise.
2492 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2493 ARGLEN and use TYPE_LENGTH directly.
2494 (mips_o64_push_dummy_call): Likewise.
2495 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2496 variable LENGTH and use TYPE_LENGTH directly.
2497 (s390_function_arg_float): Likewise.
2498 (s390_function_arg_integer): Likewise.
2499 (s390_push_dummy_call): Likewise.
2500 (s390_return_value_convention): Likewise.
2501 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2502 TYPE_LENGTH directly.
2503
6fc1c773
YQ
25042012-09-17 Yao Qi <yao@codesourcery.com>
2505
2506 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2507 Update comment to add_setshow_integer_cmd.
2508 * cli/cli-setshow.c (do_set_command): Handle case
2509 'var_zuinteger_unlimited'.
2510 (do_show_command): Likewise.
2511 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2512 for command 'remotetimeout'.
2513 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2514 to var_integer.
f87e3f15
PA
2515 * source.c (_initialize_source): Call
2516 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
6fc1c773 2517
6acef6cd
SP
25182012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2519
2520 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2521 variable LEN.
2522
1ab3b62c
JK
25232012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2524
2525 PR 14119
2526 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2527 (frame_pop): Drop also TAILCALL_FRAME frames.
2528 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2529
acf9414f
JK
25302012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 Pedro Alves <palves@redhat.com>
2532
2533 PR 14548
2534 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2535 function start if we are already at function start. Both for
2536 reverse-next and for reverse-step into function without line number
2537 info.
2538
193facb3
JK
25392012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2540
2541 Code cleanup - rename 'inline' depth to 'artificial' depth.
2542 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2543 frame_id_artificial_p, extend the comment.
2544 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2545 * frame.c (fprint_frame_id): Rename at a user, change debug output
2546 text to "artificial=".
2547 (skip_inlined_frames): Rename to ...
2548 (skip_artificial_frames): ... here. Extend the comment.
2549 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2550 (frame_id_inlined_p): Rename to ...
2551 (frame_id_artificial_p): ... here. Rename at a user.
2552 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2553 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2554 at a user.
2555 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2556 Extend the comment.
2557 (frame_id_inlined_p): Rename to ...
2558 (frame_id_artificial_p): ... here.
2559 * inline-frame.c (inline_frame_this_id): Rename at a user.
2560
42056501
AB
25612012-09-14 Andrew Burgess <aburgess@broadcom.com>
2562
2563 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2564 vector variables using vector_size syntax rather than array
2565 syntax.
2566
84c47588
SP
25672012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2568
2569 * valarith.c (value_concat): Replace unsafe ALLOCA with
2570 XMALLOC/XFREE.
2571
f4045bcb
PA
25722012-09-14 Pedro Alves <palves@redhat.com>
2573
2574 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2575
63b46266
YPK
25762012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2577
2578 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2579 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2580 data-directory as appropriate.
2581
ddd7a8e7
SP
25822012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2583
2584 * printcmd.c (ui_printf): Eliminate single-use variable
2585 PARAM_LEN.
2586
d649a38e
YQ
25872012-09-14 Yao Qi <yao@codesourcery.com>
2588 Pedro Alves <palves@redhat.com>
2589
2590 * valops.c (value_assign): Move observer_notify_target_changed
2591 below to replace reinit_frame_cache.
2592
b9516fa1
YPK
25932012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2594
2595 Refactor Python "gdb" module into a proper Python package, by
2596 introducing a new "_gdb" module for code implemented in C, and
2597 using reload/__import__ instead of exec.
2598 * python/lib/gdb/__init__.py: Import * from _gdb.
2599 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2600 prompt_hook, sys.argv): Moved from finish_python_initialization.
2601 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2602 (packages, auto_load_packages): New list and function replacing
2603 module_dict and auto-loading code, using __file__ instead of
2604 gdb.PYTHONDIR and reload/__import__ instead of exec.
2605 (GdbSetPythonDirectory): Replacing function of the same name
2606 from finish_python_initialization, using reload/__import__ instead
2607 of exec, as well as call auto_load_packages.
2608 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2609 gdb_python_module and not gdb_module.
2610 * python/python-internal.h (gdb_python_module): Declare.
2611 * python/python.c (gdb_python_module): New global.
2612 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2613 (_initialize_python): Rename gdb module to _gdb.
2614 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2615 (finish_python_initialization): Move Python code to
2616 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2617 __main__.
2618
aa0fbdd8
PA
26192012-09-13 Pedro Alves <palves@redhat.com>
2620
2621 * Makefile.in (COMMON_OBS): Add registry.o.
2622 * registry.c: New file.
2623 * registry.h (struct registry_container): Declare.
2624 (registry_data_callback): New typedef.
2625 (struct registry_data, struct registry_data_registration, struct
2626 registry_data_registry): New type.
2627 (register_data_with_cleanup, registry_alloc_data)
2628 (registry_callback_adaptor, registry_clear_data)
2629 (registry_container_free_data, registry_set_data, registry_data):
2630 Declare.
2631 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2632 the new common structures and functions.
2633 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2634 callback typedefs.
2635
42b5c53d
MW
26362012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2637
2638 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2639 there is an error inserting hardware breakpoints and use the
2640 error message from the target.
2641
2642 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
f87e3f15
PA
2643 Catch this exception and print the error message contained within.
2644 Do not print the default hardware error breakpoint message in this
2645 case.
42b5c53d 2646
a1b64ce1
DE
26472012-09-12 Doug Evans <dje@google.com>
2648
2649 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2650 cu == NULL.
2651
83a788b8
DE
26522012-09-11 Doug Evans <dje@google.com>
2653
2654 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2655 .gdb_index symbol attributes if there are none.
2656
d9eaeb59
JB
26572012-09-11 Joel Brobecker <brobecker@adacore.com>
2658
2659 * symtab.h (struct minimal_symbol) [has_size]: New field.
2660 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2661 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2662 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2663 minimal symbols if the symbol's size is actually known.
2664 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2665 of msymbol's size field. Add comment.
2666 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2667 SET_MSYMBOL_SIZE to set the minimal symbol size.
2668
a83e9154
JB
26692012-09-11 Joel Brobecker <brobecker@adacore.com>
2670
2671 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2672 minimal_symbol struct object, rather than setting some of its
2673 fields one by one.
2674
350b1b26
AB
26752012-09-11 Andrew Burgess <aburgess@broadcom.com>
2676
2677 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2678 passed_a_ptr flag when displaying typedef types.
2679
2fa15f23
JB
26802012-09-10 Joel Brobecker <brobecker@adacore.com>
2681
2682 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2683 the optimized_out flag is preserved.
2684
5152ff90
AG
26852012-09-10 Anthony Green <green@moxielogic.com>
2686
2687 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2688 prologue changes in GCC.
2689
5b4f6e25
KS
26902012-09-10 Keith Seitz <keiths@redhat.com>
2691
2692 PR gdb/13483
2693 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2694 (BOOL_CONVERSION_BADNESS): ... this.
2695 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2696 (rank_one_type): Allow all boolean conversions
2697 permitted by the standard.
2698
f1070426
TT
26992012-09-06 Tom Tromey <tromey@redhat.com>
2700
2701 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2702 Don't decref py_objfile.
2703
a8db4212
YPK
27042012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2705
2706 Do not enable -lmcheck by default when Python is enabled with
2707 threading support.
2708 * configure.ac: (python_has_threads) New variable, by testing
2709 if WITH_THREAD is defined in Python.h.
2710 Move --enable-lmcheck after --with-python.
2711 Do not enable -lmcheck by default if python_has_threads=yes.
2712 Warn if --enable-lmcheck and python_has_threads=yes.
2713 * configure: Regenerate.
2714
648beb2b
YQ
27152012-08-31 Yao Qi <yao@codesourcery.com>
2716
2717 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2718 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2719 Update some commands.
2720 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
f87e3f15
PA
2721 * mi/mi-main.c (mi_cmd_execute): Set
2722 '*parse->cmd->suppress_notification' to 1.
648beb2b 2723
ef07a9f7
YQ
27242012-08-31 Yao Qi <yao@codesourcery.com>
2725
2726 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2727
fda395cf
YPK
27282012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2729
2730 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2731
8efd8e78
DE
27322012-08-29 Doug Evans <dje@google.com>
2733
2734 * main.c (print_gdb_help): Remove reference to
2735 --use-deprecated-index-sections.
2736
883b9c6c
YQ
27372012-08-28 Yao Qi <yao@codesourcery.com>
2738
2739 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2740 (init_cmds): Call add_setshow_uinteger_cmd for command
2741 'max-user-call-depth'.
2742 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2743 declaration of 'max_user_call_depth'.
2744 * frame.c (backtrace_limit): Add 'unsigned'.
2745 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2746 'limit'.
2747 * remote.c (remoteaddresssize): Add 'unsigned'.
2748 (remote_address_masked): Change local var 'address_size' to
2749 'unsigned'.
2750 (_initialize_remote): Call add_setshow_uinteger_cmd for
2751 'remoteaddresssize'.
2752 * top.c (history_size): Add 'unsigned'.
2753 (show_commands): Change local variables to 'unsigned'.
2754 (set_history_size_command): Don't check history_size is negative.
2755 Adjust the condition to call unstifle_history and set history_size
2756 to UNIT_MAX.
2757
1292279a
PA
27582012-08-28 Pedro Alves <palves@redhat.com>
2759
2760 PR gdb/14428
2761
2762 * infcmd.c (default_print_one_register_info): New, factored out
2763 from default_print_registers_info.
2764 (default_print_registers_info): Use it. Mark value unavailable if
2765 necessary.
2766 (registers_info): Print user registers with
2767 default_print_one_register_info.
2768
f629cd75
L
27692010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2770
2771 PR tui/14486
2772 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2773 is not NULL before referencing it.
2774
1c8cdcb1
JK
27752012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2776
2777 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2778 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2779 original PC for it.
2780
e9687799
JK
27812012-08-27 Eli Zaretskii <eliz@gnu.org>
2782 Jan Kratochvil <jan.kratochvil@redhat.com>
2783
2784 * auto-load.c (auto_load_objfile_script): Rename to ...
2785 (auto_load_objfile_script_1): ... here, change variable realname to
2786 parameter realname, document it, add return value, add variable retval.
2787 (auto_load_objfile_script): New function.
2788
7afa1642
JK
27892012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2790
2791 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2792 followed by a whitespace.
2793
dc7650b8
JK
27942012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
28e66c70 2796 PR gdb/14494.
dc7650b8
JK
2797 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2798 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2799 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2800 here.
2801
1591a1e8
PA
28022012-08-27 Wei-cheng Wang <cole945@gmail.com>
2803
2804 * memattr.c (create_mem_region): Fix memory region overlapping
2805 checking.
2806
ecfb0d68
SP
28072012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2808
2809 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2810 with xmalloc/cleanup.
2811 * mt-tdep.c (mt_push_dummy_call): Likewise.
2812 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2813 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2814
8c56c1b9
YQ
28152012-08-24 Yao Qi <yao@codesourcery.com>
2816
2817 * jv-exp.y (push_expression_name): Add "." at the end of error
2818 message.
2819
e3480f4a
YPK
28202012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2821
2822 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2823 * python/python.c (_initialize_python): Update documentation.
2824
dfbd5e7b
PA
28252012-08-23 Pedro Alves <palves@redhat.com>
2826
2827 * infrun.c (_initialize_infrun) <handle command help text>:
2828 Mention that multiple signals are supported.
2829
2edda2ff
PA
28302012-08-23 Pedro Alves <palves@redhat.com>
2831
2832 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2833 string.
2834
8d735b87
YQ
28352012-08-23 Yao Qi <yao@codesourcery.com>
2836
2837 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2838 (tfind_1): Don't call registers_changed, set_traceframe_num,
2839 and clear_traceframe_info.
2840 Call set_current_traceframe.
2841 (set_current_traceframe): call set_traceframe_num.
2842
c5d9b215
SDJ
28432012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2844
2845 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2846 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2847
037bbc8e
YPK
28482012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2849
2850 Enable readline in Python in a GDB-specific way and block the
2851 standard Python readline module to prevent conflicts with GDB.
2852 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2853 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2854 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2855 * python/py-gdb-readline.c: New file.
2856 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2857 prototype.
2858 * python/python.c (_initialize_python): Call
2859 gdbpy_initialize_gdb_readline.
2860
406b1477
KS
28612012-08-22 Keith Seitz <keiths@redhat.com>
2862
2863 * defs.h: Include build-gnulib/config.h
2864
6ca1b147
JM
28652012-08-22 Joseph Myers <joseph@codesourcery.com>
2866
2867 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2868 and blx pc.
2869
8315665e
YPK
28702012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2871
2872 Add a new "python-interactive" command that starts a standard
2873 Python interactive prompt with "pi" as alias, and add "py" as
2874 an alias to "python".
2875 * NEWS: Mention the new commands.
8315665e
YPK
2876 * python/python.c (eval_python_command): New function.
2877 (python_interactive_command): For "python-interactive" with
2878 arguments, call eval_python_command. For "python-interactive"
2879 without arguments, call PyRun_InteractiveLoop.
2880 (_initialize_python): Add "python-interactive" command with
2881 "pi" as alias, and add "py" as an alias to "python".
2882
522002f9
TT
28832012-08-22 Tom Tromey <tromey@redhat.com>
2884
2885 * defs.h (quit_flag): Don't declare.
2886 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2887 (QUIT): Use new functions.
2888 * event-top.c (command_handler): Use clear_quit_flag.
2889 (handle_sigint): Use set_quit_flag.
2890 (async_request_quit): Use check_quit_flag. Don't check
2891 immediate_quit.
2892 * exceptions.c (throw_exception): Use clear_quit_flag.
2893 * main.c (captured_main): Use clear_quit_flag.
2894 * python/python.c (clear_quit_flag, set_quit_flag)
2895 (check_quit_flag): New functions.
2896 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2897 clear_quit_flag.
2898 * remote.c (remote_wait_as): Use check_quit_flag,
2899 clear_quit_flag.
2900 (remote_start_remote): Call QUIT.
2901 * symfile.c (load_progress): Use check_quit_flag.
2902 * top.c (command_loop): Use clear_quit_flag.
2903 (command_line_input): Call QUIT.
2904 * utils.c (quit_flag): Conditionally define.
2905 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2906 functions.
2907 (prompt_for_continue): Call QUIT. Use quit, not
2908 async_request_quit.
2909 * remote-mips.c (mips_expect_timeout): Call QUIT.
2910 * monitor.c (monitor_expect): Call QUIT.
2911
b583003e
TT
29122012-08-22 Tom Tromey <tromey@redhat.com>
2913
2914 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2915 (async_init_signals): Update.
2916 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2917 (SIGWINCH_HANDLER_BODY): Remove.
2918
e1507e95
TT
29192012-08-22 Tom Tromey <tromey@redhat.com>
2920
2921 * jit.c (jit_object_close_impl): Don't malloc the objfile
2922 name.
2923 * objfiles.c (allocate_objfile): Don't malloc the objfile
2924 name.
2925 (free_objfile): Don't free the objfile name.
2926 * objfiles.h (struct objfile) <name>: Update comment.
2927 * symfile.c (reread_symbols): Fix reference counting. Don't
2928 malloc objfile name.
2929
1c00ec6b
TT
29302012-08-22 Tom Tromey <tromey@redhat.com>
2931
2932 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2933 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2934 (symfile_bfd_open): Likewise.
2935 (generic_load): Likewise.
2936 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2937 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2938 gdb_bfd_open.
2939 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2940 Use gdb_bfd_open.
2941 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2942 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2943 (pmon_load_fast): Likewise.
2944 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2945 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2946 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2947 (macho_check_dsym): Likewise.
2948 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2949 (m32r_upload_command): Likewise.
2950 * gdb_bfd.h (gdb_bfd_cache): Declare.
2951 * gdb_bfd.c (struct gdb_bfd_data): New.
2952 (gdb_bfd_cache): New global.
2953 (struct gdb_bfd_cache_search): New.
2954 (hash_bfd): New function.
2955 (eq_bfd): Likewise.
2956 (gdb_bfd_open): Likewise.
2957 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2958 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2959 gdb_bfd_data.
2960 * exec.c (exec_file_attach): Use gdb_bfd_open.
2961 * dsrec.c (load_srec): Use gdb_bfd_open.
2962
6532ff36
TT
29632012-08-22 Tom Tromey <tromey@redhat.com>
2964
2965 * dwarf2read.c (macro_start_file): Update.
2966 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2967 (free_objfile_per_bfd_storage): Destroy macro_cache.
2968 (allocate_objfile, free_objfile): Update.
2969 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2970 New field.
2971 (struct objfile) <macro_cache>: Remove.
2972 * symfile.c (reread_symbols): Update.
2973 * symmisc.c (print_symbol_bcache_statistics): Update.
2974 (print_objfile_statistics): Update.
2975
706e3705
TT
29762012-08-22 Tom Tromey <tromey@redhat.com>
2977
2978 * elfread.c (elf_symtab_read): Update.
2979 * objfiles.c (objfiles_bfd_data): New global.
2980 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2981 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2982 (allocate_objfile, free_objfile): Update.
2983 (_initialize_objfiles): Initialize objfiles_bfd_data.
2984 * objfiles.h (struct objfile_per_bfd_storage): New.
2985 (struct objfile) <per_bfd>: New field.
2986 <filename_cache>: Remove.
2987 (set_objfile_per_bfd): Declare.
2988 * symfile.c (reread_symbols): Update. Call
2989 set_objfile_per_bfd.
2990 (allocate_symtab): Update.
2991 * symmisc.c (print_symbol_bcache_statistics): Update.
2992 (print_objfile_statistics): Print the size of the BFD obstack.
2993
e992eda4
TT
29942012-08-22 Tom Tromey <tromey@redhat.com>
2995
2996 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2997 * gdb_bfd.c: Use DEFINE_REGISTRY.
2998 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2999 (gdb_bfd_ref): Call bfd_alloc_data.
3000 (gdb_bfd_unref): Call bfd_free_data.
3001
6b81941e
TT
30022012-08-22 Tom Tromey <tromey@redhat.com>
3003
3004 * registry.h (struct registry_fields): New.
3005 (REGISTRY_FIELDS): Redefine.
3006 (REGISTRY_ACCESS_FIELD): New macro.
3007 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3008 functions.
3009
8e260fc0
TT
30102012-08-22 Tom Tromey <tromey@redhat.com>
3011
3012 * auto-load.c (_initialize_auto_load): Update.
3013 * solib-svr4.c (_initialize_svr4_solib): Update
3014 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3015 * solib-darwin.c (_initialize_darwin_solib): Update.
3016 * registry.h: New file.
3017 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3018 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3019 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3020 (register_program_space_data_with_cleanup)
3021 (register_program_space_data, program_space_alloc_data)
3022 (clear_program_space_data, set_program_space_data)
3023 (program_space_data): Don't declare.
3024 * progspace.c: Use DEFINE_REGISTRY.
3025 (struct program_space_data, struct
3026 program_space_data_registration, struct
3027 program_space_data_registry, program_space_data_registry)
3028 (register_program_space_data_with_cleanup)
3029 (register_program_space_data, program_space_alloc_data)
3030 (program_space_free_data, clear_program_space_data)
3031 (set_program_space_data, program_space_data): Remove.
3032 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3033 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3034 (register_objfile_data_with_cleanup, register_objfile_data)
3035 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3036 declare.
3037 * objfiles.c: Use DEFINE_REGISTRY.
3038 (struct objfile_data, struct objfile_data_registration, struct
3039 objfile_data_registry, objfile_data_registry)
3040 (register_objfile_data_with_cleanup, register_objfile_data)
3041 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3042 (set_objfile_data, objfile_data): Remove.
3043 (_initialize_objfiles): Update.
3044 * jit.c (_initialize_jit): Update.
3045 * inflow.c (_initialize_inflow): Update.
3046 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3047 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3048 (register_inferior_data_with_cleanup, register_inferior_data)
3049 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3050 declare.
3051 * inferior.c: Use DEFINE_REGISTRY.
3052 (struct inferior_data, struct inferior_data_registration, struct
3053 inferior_data_registry, inferior_data_registry)
3054 (register_inferior_data_with_cleanup, register_inferior_data)
3055 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3056 (set_inferior_data, inferior_data): Remove.
3057 * auxv.c (_initialize_auxv): Update.
3058 * ada-lang.c (_initialize_ada_language): Update.
3059 * breakpoint.c (_initialize_breakpoint): Update.
3060 * i386-nat.c (i386_use_watchpoints): Update.
3061
ed9eebaf
TT
30622012-08-22 Tom Tromey <tromey@redhat.com>
3063
3064 * exec.c (exec_close, exec_file_attach): Update.
3065 (add_to_section_table): Initialize 'key' field.
3066 (add_target_sections, remove_target_sections): Add 'key' argument.
3067 * exec.h (add_target_sections, remove_target_sections): Add
3068 'key' argument.
3069 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3070 (reload_shared_libraries_1): Update.
3071 * target.h (struct target_section) <key>: New field.
3072
2f2e97fa
TT
30732012-08-22 Tom Tromey <tromey@redhat.com>
3074
3075 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3076
b3dbbd6f
PM
30772012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3078
3079 * symfile.c (allocate_symtab): Use host_address_to_string
3080 function instead of cast of pointer to long which is not
3081 compatible with x86_64-w64-mingw32 build.
3082
f94363d7
AP
30832012-08-19 Andrew Pinski <apinski@cavium.com>
3084
3085 * mips-tdep.c (is_octeon): New function.
3086 (is_octeon_bbit_op): New function.
3087 (mips32_next_pc): Handle Octeon's bbit instructions.
3088 (mips32_instruction_has_delay_slot): Likewise.
3089
78a59c2f
AP
30902012-08-19 Andrew Pinski <apinski@cavium.com>
3091
3092 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3093 before the function.
3094
4f5bcb50
AP
30952012-08-19 Andrew Pinski <apinski@cavium.com>
3096
3097 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3098
e5afdbd7
KS
30992012-08-19 Keith Seitz <keiths@redhat.com>
3100
3101 PR c++/14365
3102 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3103 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3104
13c9750e
EZ
31052012-08-18 Eli Zaretskii <eliz@gnu.org>
3106
3107 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3108 The typo broke "make TAGS".
3109
db761810 31102012-08-17 Joel Brobecker <brobecker@adacore.com>
3111
3112 GDB 7.5 released.
3113
a451cb65
KS
31142012-08-17 Keith Seitz <keiths@redhat.com>
3115
3116 PR c++/13356
3117 * gdbtypes.c (strict_type_checking): New variable.
3118 (show_strict_type_checking): New function.
3119 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3120 if strict type checking is disabled.
3121 (_initialize_gdbtypes): Add "check type" subcommand.
3122 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3123
31242012-08-17 Keith Seitz <keiths@redhat.com>
3125
3126 * language.h (type_mode): Remove.
3127 (type_check): Remove.
3128 (struct language_defn): Remove la_type_check.
3129 (STRICT_TYPE): Remove unused macro.
3130 (type_error): Remove.
3131 * language.c (set_type_range_case): Renamed to ...
3132 (set_range_case): ... this. Update all callers.
3133 Remove type_mode/type_check.
3134 (type_mode): Remove.
3135 (type_check): Remove.
3136 (show_type_command): Remove.
3137 (set_type_command): Remove.
3138 (language_info): Remove type checking output.
3139 (type_error): Remove unused function.
3140 (range_error): Update comment.
3141 (unknown_language_defn): Remove la_type_check.
3142 (auto_language_defn): Likewise.
3143 (local_language_defn): Likewise.
3144 (_initialize_language): Remove "check type" subcommand.
3145 * ada-lang.c (ada_language_defn): Remove la_type_check.
3146 * c-lang.c (c_language_defn): Likewise.
3147 (cplus_language_defn): Likewise.
3148 (asm_language_defn): Likewise.
3149 (minimal_language_defn): Likewise.
3150 * d-lang.c (d_language_defn): Likewise.
3151 * f-lang.c (f_language_defn): Likewise.
3152 * go-lang.c (go_language_defn): Likewise.
3153 * jv-lang.c (java_language_defn): Likewise.
3154 * m2-lang.c (m2_language_defn): Likewise.
3155 * objc-lang.c (objc_language_defn): Likewise.
3156 * opencl-lang.c (opencl_language_defn): Likewise.
3157 * p-lang.c (pascal_language_defn): Likewise.
3158
dbf6a605
MF
31592012-08-16 Mike Frysinger <vapier@gentoo.org>
3160
3161 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3162
973e3cf7
JB
31632012-08-16 Joel Brobecker <brobecker@adacore.com>
3164
3165 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3166 New function.
3167 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3168 using the regache. Use ia64_hpux_get_register_from_save_state_t
3169 to access the bsp and bspstore registers if not.
3170
d80ee84f
JB
31712012-08-16 Joel Brobecker <brobecker@adacore.com>
3172
3173 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3174 * breakpoint.c (detach_breakpoints): Change pid parameter into
3175 a ptid. Adjust code accordingly.
3176 * infrun.c (handle_inferior_event): Delete variable child_pid.
3177 Update call to detach_breakpoints to pass the child ptid for
3178 fork events.
3179 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3180 assert that inferior_ptid's lwp is zero.
3181 (linux_handle_extended_wait): Update call to detach_breakpoints.
3182 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3183 detach_breakpoints.
3184
2dcc6086
JB
31852012-08-16 Joel Brobecker <brobecker@adacore.com>
3186
3187 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3188 parent, only call detach_breakpoints if tts.tts_event ==
3189 TTEVT_VFORK.
3190
0c92d8c1
JB
31912012-08-16 Joel Brobecker <brobecker@adacore.com>
3192
3193 * dwarf2-frame.c (dwarf2_frame_cache): Use
3194 get_frame_address_in_block instead of get_frame_pc as
3195 the bound for executing the frame's FDE.
3196
6b1755ce
YQ
31972012-08-16 Yao Qi <yao@codesourcery.com>
3198
3199 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3200 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3201 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3202 (c_type_print_varspec_suffix): Likewise.
3203 * eval.c (evaluate_subexp_standard): Likewise.
3204 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3205 (f_type_print_varspec_suffix): Likewise.
3206 * gdbtypes.c (is_scalar_type): Likewise.
3207 (recursive_dump_type): Likewise.
3208 * infcall.c (value_arg_coerce): Likewise.
3209 * m2-valprint.c (m2_val_print): Likewise.
3210 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3211 (pascal_type_print_varspec_suffix): Likewise.
3212 (pascal_type_print_base): Likewise.
3213 * p-valprint.c (pascal_val_print): Likewise.
3214 (pascal_val_print): Likewise.
3215 * valops.c (value_slice): Likewise.
3216 * valprint.c (scalar_type_p): Likewise.
3217 * valarith.c (value_bitstring_subscript): Remove.
3218 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3219 Remove comment on TYPE_CODE_BITSTRING.
3220
3221 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3222 TYPE_CODE_BITSTRING.
3223
3224 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3225 slot 0.
3226
8acc4065
YQ
32272012-08-16 Yao Qi <yao@codesourcery.com>
3228
3229 * tracepoint.c (trace_find_none_command): Remove.
3230 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3231
8128fd8e
YQ
32322012-08-16 Yao Qi <yao@codesourcery.com>
3233
3234 * remote.c (handle_notification): Remove parameter 'length'.
3235 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3236
2873700e
KS
32372012-08-15 Keith Seitz <keiths@redhat.com>
3238
3239 * gdbtypes.c (opaque_type_resolution): Make static.
3240 Add missing comment.
3241 (overload_debug): Add missing comment.
3242 (show_opaque_type_resolution): Likewise.
3243 (show_overload_debug): Likewise.
3244 (print_bit_vector): Remove unnecessary forward declaration.
3245 (print_arg_types): Likewise.
3246 (dump_fn_fieldlists): Likewise.
3247 (print_cplus_stuff): Likewise.
3248
b82d08cd
TT
32492012-08-15 Tom Tromey <tromey@redhat.com>
3250
3251 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3252 (gdb_bfd_ref): Initialize new field.
3253 (gdb_bfd_unref): Unref the archive BFD.
3254 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3255 parent archive.
3256
db6573d6
TT
32572012-08-15 Tom Tromey <tromey@redhat.com>
3258
3259 PR python/14387:
3260 * python/py-bpevent.c (create_breakpoint_event_object): Update
3261 comment.
3262 * python/py-event.c (evpy_add_attribute): Update comment.
3263 * python/py-exitedevent.c (create_exited_event_object): Fix
3264 reference counting and error handling.
3265 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3266 Fix reference counting.
3267 * python/py-signalevent.c (create_signal_event_object): Fix
3268 reference counting and error handling.
3269 * python/py-stopevent.c (emit_stop_event): Fix reference
3270 counting.
3271 * python/py-threadevent.c (get_event_thread): Return a
3272 borrowed reference.
3273 * python/py-type.c (convert_field): Fix reference counting.
3274
a036ba48
TT
32752012-08-15 Tom Tromey <tromey@redhat.com>
3276
3277 * dwarf2read.c (dwarf_decode_macro_bytes)
3278 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3279 as hash key.
3280
486c7739
MF
32812012-08-14 Mike Frysinger <vapier@gentoo.org>
3282
3283 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3284 stepi, nexti, finish, next, step, jump, and continue commands.
3285 * infrun.c (_initialize_infrun): Update help text for the handle
3286 command.
3287
4cf93a03
DE
32882012-08-14 Doug Evans <dje@google.com>
3289
70b099cf
DE
3290 * gdbtypes.c (struct extra): Delete, unused.
3291
5212577a
DE
3292 * gdbtypes.c: Whitespace cleanup.
3293 (address_space_name_to_int): Remove "extern" from definition.
3294 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3295
4cf93a03
DE
3296 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3297 TYPE_POINTER_TYPE (type).
3298
3756ef7e
GB
32992012-08-14 Gary Benson <gbenson@redhat.com>
3300
3301 * solib-svr4.c (svr4_free_library_list): Use free_so.
3302
40d72643
MF
33032012-08-13 Mike Frysinger <vapier@gentoo.org>
3304
3305 * .gitignore: Add go-exp.c.
3306
f47f77df
DE
33072012-08-13 Doug Evans <dje@google.com>
3308
3309 * value.c (show_convenience): Tweak comment.
3310 (_initialize_values): Mention convenience functions in the help text
3311 for "show convenience".
3312
7507c54a
YQ
33132012-08-13 Yao Qi <yao@codesourcery.com>
3314
3315 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3316 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3317 TERNOP_SLICE_COUNT.
3318 * eval.c (evaluate_subexp_standard): Likewise.
3319 * expprint.c (print_subexp_standard): Likewise.
3320 (dump_subexp_body_standard): Likewise.
3321 * parse.c (operator_length_standard): Likewise.
3322
5cad9736
YQ
33232012-08-13 Yao Qi <yao@codesourcery.com>
3324
3325 * std-operator.def: Remove OP_BITSTRING.
3326 * breakpoint.c (watchpoint_exp_is_const): Update.
3327 * eval.c (evaluate_subexp_standard): Remove handling to
3328 OP_BITSTRING.
3329 * expprint.c (print_subexp_standard): Likewise.
3330 (dump_subexp_body_standard): Likewise.
3331 * parse.c (operator_length_standard): Likewise.
3332 * valops.c (value_bitstring): Remove.
3333 * value.h: Remove the declaration of 'value_bitstring'.
3334
bad7670a
SDJ
33352012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3336
3337 * linespec.c (find_methods): Remove unused variables `i1' and
3338 `name_len'.
3339 (decode_line_full): Likewise for `arg_start'.
3340
d9dce7fa
SDJ
33412012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3342
3343 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3344 (zlib_decompress_section): Likewise for `section_data'.
3345 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3346
a72c3253
DE
33472012-08-10 Doug Evans <dje@google.com>
3348
3349 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3350 * NEWS: Document them.
3351 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3352 function/strfns.py.
3353 * python/py-type.c (typy_array_1): New function.
3354 (typy_array): Call it.
3355 (typy_vector): New function.
3356 (type_object_methods): Add "vector".
3357 * python/lib/gdb/function/__init__.py: New file.
3358 * python/lib/gdb/function/strfns.py: New file.
3359
200bc880
SP
33602012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3361
3362 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3363 for TYPE_FIELD_BITPOS.
3364 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3365
de0bea00
MF
33662012-08-10 Mike Frysinger <vapier@gentoo.org>
3367
3368 PR cli/10436:
3369 * common/vec.h (VEC_merge): Define.
3370 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3371 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3372 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3373 * completer.c: Include gdb_signals.h.
3374 (signal_completer): Define.
3375 * completer.h (signal_completer): Add prototype.
3376 * infcmd.c (_initialize_infcmd): Assign the command
3377 completer for "signal" to handle_completer.
3378 * infrun.c: Include completer.h.
3379 (handle_completer): Define.
3380 (_initialize_infrun): Declare a new local variable c. Store the
3381 result of add_com("handle") to it. Assign the command
3382 completer for "handle" to handle_completer.
3383
5b9afe8a
YQ
33842012-08-09 Yao Qi <yao@codesourcery.com>
3385
3386 * cli/cli-decode.c (set_cmd_prefix): New.
3387 (lookup_cmd_for_prefixlist): New.
3388 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3389 of each cmd_list_element in *prefixlist.
3390 (add_setshow_cmd_full): set_cmd_prefix.
3391 (add_alias_cmd): Likewise.
3392 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3393 Declare 'auto_boolean_enums'.
3394 * cli/cli-setshow.c: Include "observer.h".
3395 (notify_command_param_changed_p): New.
3396 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3397 Remove 'static'.
3398 (do_setshow_command): Split it to ...
3399 (do_set_command, do_show_command): ... them. New.
3400 (do_set_command): Call observer_notify_command_param_changed if
3401 notify_command_param_changed_p returns true.
3402 (cmd_show_list): Caller update.
3403 * auto-load.c (set_auto_load_cmd): Likewise.
3404 * remote.c (show_remote_cmd): Likewise.
3405 * cli/cli-setshow.h: Update declarations.
3406 * top.c (execute_command): Call do_set_command and do_show_command.
3407
3408 * NEWS: Mention new MI notification.
3409 * mi/mi-interp.c: Declare mi_command_param_changed.
3410 (mi_interpreter_init): Attach mi_command_param_changed to
3411 observer command_param_changed.
3412 (mi_command_param_changed): New.
3413 Remove mi_suppress_breakpoint_notifications.
3414 Define global variable mi_suppress_notification.
3415 (mi_breakpoint_created): Update.
3416 (mi_breakpoint_deleted): Likewise.
3417 (mi_breakpoint_modified): Likewise.
3418 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3419 'gdb-set' and set mi_suppress_notification.
3420 * mi/mi-main.h: (mi_suppress_notification): New struct.
3421
1969df89
JK
34222012-08-09 Andreas Tobler <andreast@fgznet.ch>
3423 Jan Kratochvil <jan.kratochvil@redhat.com>
3424
3425 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3426
8bfd80db
YQ
34272012-08-09 Yao Qi <yao@codesourcery.com>
3428
3429 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3430 (skiplist): Move it to skip.c.
3431 (init_cmd_lists): Remove code setting enablebreaklist and
3432 skiplist to NULL.
3433 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3434 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3435 skiplist.
3436 * gdbcmd.h: Likewise.
3437 * skip.c (_initialize_step_skip): Move 'skiplist' from
3438 cli/cli-cmds.c.
3439
28578e6b
YQ
34402012-08-09 Yao Qi <yao@codesourcery.com>
3441
3442 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3443 * gnu-nat.c, symfile.c: Likewise.
3444
260c0b2a
DE
34452012-08-08 Aaron Gamble <agamble@google.com>
3446
3447 * utils.c (prompt_for_continue_wait_time): New static global.
3448 (make_command_stats_cleanup): Initialize it.
3449 (report_command_stats): Subtract time waiting for user.
3450 (prompt_for_continue): Track time waiting for user.
3451 (defaulted_query): Track time waiting for user.
3452
4f485ebc
DE
34532012-08-08 Doug Evans <dje@google.com>
3454
3455 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3456 UNOP_MEMVAL_TYPE.
3457 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3458 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3459 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3460 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3461 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3462 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3463 elt.
3464 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3465 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3466 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3467 (dump_prefix_expression): Handle OP_TYPE.
3468
2acf2b39
KS
34692012-08-08 Keith Seitz <keiths@redhat.com>
3470
3471 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3472 addr_start.
3473
e6712ff1
DE
34742012-08-08 Doug Evans <dje@google.com>
3475
3476 * linux-thread-db.c: #include "gdb_vecs.h".
3477 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3478 updated.
3479 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3480 (thread_db_load_search): Use a vector to iterate over path elements.
3481 Handle text appearing after "$pdir".
3482
3483 * gdb_string.h: Moved to ...
3484 * common/gdb_string.h: ... here.
3485 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3486 gdb_string.h and gdb_assert.h.
3487
ab854e54
YQ
34882012-08-08 Yao Qi <yao@codesourcery.com>
3489
3490 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3491 (tic6x_value_to_register): Likewise.
3492 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3493 and set_gdbarch_value_to_register.
3494
4f69f4c2
JK
34952012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3496 Jean-Marc Saffroy <saffroy@gmail.com>
3497
3498 PR 11804
3499 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3500 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3501 * gcore.c (gcore_create_callback): New function comment. Add modified
3502 parameter. Only write modified regions. Set SEC_READONLY exactly
3503 according to MODIFIED.
3504 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3505 the passed modified value to FUNC.
3506 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3507 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3508 first. New variables modified and has_anonymous. Parse the lines of
3509 smaps file. Add the passed MODIFIED value to FUNC.
3510 * procfs.c (find_memory_regions_callback): Add the passed modified
3511 value.
3512
78ac5f83
TT
35132012-08-06 Tom Tromey <tromey@redhat.com>
3514
3515 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3516 (dwarf2_frame_cache): Use it.
3517 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3518 cache initialization constraint.
3519
2c12abee
TT
35202012-08-06 Tom Tromey <tromey@redhat.com>
3521
3522 PR python/14386:
3523 * varobj.c (update_dynamic_varobj_children): Don't call
3524 PyIter_Check.
3525
4979d7f0
TT
35262012-08-06 Tom Tromey <tromey@redhat.com>
3527
3528 PR cli/14392:
3529 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3530
f3c8a52a
JK
35312012-08-06 Nathaniel Flath <flat0103@gmail.com>
3532
3533 * NEWS: New entry for 'cd' default parameters.
3534 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3535
5a1cf4d6
TT
35362012-08-03 Tom Tromey <tromey@redhat.com>
3537
3538 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3539 return.
3540
7c3270ae
UW
35412012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3542
3543 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3544 to attempting lseek/write.
3545 (inf_child_fileio_pread): Likewise for pread.
3546
ccce17b0
YQ
35472012-08-02 Yao Qi <yao@codesourcery.com>
3548
3549 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3550 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3551 add_setshow_zinteger_cmd.
3552 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3553 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3554 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3555 instead of add_setshow_zinteger_cmd.
3556 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3557 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3558 instead of add_setshow_zinteger_cmd.
3559 * frame.c (frame_debug): Add 'unsigned'.
3560 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3561 add_setshow_zinteger_cmd.
3562 * frame.h: Update the declaration of 'frame_debug'.
3563 * gdbtypes.c (overload_debug): Add 'unsigned'.
3564 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3565 add_setshow_zinteger_cmd.
3566 * inferior.h: Update declaration of 'debug_infrun'.
3567 * infrun.c (debug_infrun): Add 'unsigned'.
3568 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3569 add_setshow_zinteger_cmd.
3570 * jit.c (jit_debug): Add 'unsigned'.
3571 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3572 add_setshow_zinteger_cmd.
3573 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3574 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3575 instead of add_setshow_zinteger_cmd.
3576 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3577 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3578 add_setshow_zinteger_cmd.
3579 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3580 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3581 instead of add_setshow_zinteger_cmd.
3582 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3583 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3584 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3585 intead of add_setshow_zinteger_cmd.
3586 * mips-tdep.c (mips_debug): Add 'unsigned'.
3587 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3588 instead of add_setshow_zinteger_cmd.
3589 * monitor.c (monitor_debug): Add 'unsigned'.
3590 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3591 add_setshow_zinteger_cmd.
3592 * observer.c (observer_debug): Add 'unsigned'.
3593 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3594 add_setshow_zinteger_cmd.
3595 * parse.c (expressiondebug): Add 'unsigned'.
3596 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3597 add_setshow_zinteger_cmd.
3598 * record.c (record_debug): Add 'unsigned'.
3599 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3600 add_setshow_zinteger_cmd.
3601 * record.h: Update the declaration of 'record_debug'.
3602 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3603 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3604 add_setshow_zinteger_cmd.
3605 * serial.c (global_serial_debug_p): Add 'unsigned'.
3606 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3607 add_setshow_zinteger_cmd.
3608 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3609 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3610 add_setshow_zinteger_cmd.
3611 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3612 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3613 add_setshow_zinteger_cmd.
3614 * target.c (targetdebug): Add 'unsigned'.
3615 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3616 add_setshow_zinteger_cmd.
3617 * valops.c (overload_debug): Add 'unsigned'.
3618 * varobj.c (varobjdebug): Add 'unsigned'.
3619 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3620 add_setshow_zinteger_cmd.
3621 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3622 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3623 instead of add_setshow_zinteger_cmd.
3624
3625 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3626 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3627 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3628 instead of add_setshow_zinteger_cmd.
3629 * gdbarch.c, gdbarch.h: Re-generated.
3630
95b07c96
YQ
36312012-08-02 Yao Qi <yao@codesourcery.com>
3632
3633 * nto-tdep.c: Don't include cli/cli-decode.h and
3634 cli/cli-cmds.h.
3635 (_initialize_nto_tdep): Remove.
3636 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3637 Remove field.
3638 Remove macro nto_internal_debugging.
3639
57295b0b
RH
36402012-08-01 Richard Henderson <rth@redhat.com>
3641
3642 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3643 (mep-*-*) [gdb_target_obs]: Likewise.
3644
f782ad9b
AS
36452012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3646
3647 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3648 linux_get_siginfo_type.
3649
a14dd77e
JK
36502012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3651
3652 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3653 AT_ENTRY_POINT.
3654 (call_function_by_hand) <ON_STACK>: Call write_memory with
3655 gdbarch_breakpoint_from_pc, if possible.
3656 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3657 here.
3658
1467929f
YQ
36592012-07-31 Yao Qi <yao@codesourcery.com>
3660
3661 * tracepoint.c: Add 'static' for some variables.
3662
70976b65
YQ
36632012-07-31 Yao Qi <yao@codesourcery.com>
3664
3665 * go32-nat.c: Declare _initialize_go32_nat.
3666 * ser-go32.c: Declare _initialize_ser_dos.
3667 * top.c (do_chdir_cleanup): Add 'static'.
3668
eff9c3e6
KS
36692012-07-30 Keith Seitz <keiths@redhat.com>
3670
3671 * linespec.c (linespec_lex_number): A number followed
3672 by quotes is a valid number, too.
3673
728400d7
TT
36742012-07-30 Tom Tromey <tromey@redhat.com>
3675
3676 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3677
fcf303ab
UW
36782012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3679
3680 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3681 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3682
4e969b4f
AB
36832012-07-30 Andrew Burgess <aburgess@broadcom.com>
3684
3685 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3686 invalid or reevaluated to prevent prevent references to possibly
3687 delete'd type objects being left in the varobj.
3688
c4bfde41
JK
36892012-07-27 Tom Tromey <tromey@redhat.com>
3690 Jan Kratochvil <jan.kratochvil@redhat.com>
3691
3692 * copying.awk: Print buffer-read-only and vi ro markers.
3693 * copying.c: Rebuild.
3694 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3695 * gdbarch.c, gdbarch.h: Rebuild.
3696 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3697 buffer-read-only and vi ro markers.
3698 * features/arm-with-iwmmxt.c: Rebuild.
3699 * features/arm-with-m-fpa-layout.c: Rebuild.
3700 * features/arm-with-m-vfp-d16.c: Rebuild.
3701 * features/arm-with-m.c: Rebuild.
3702 * features/arm-with-neon.c: Rebuild.
3703 * features/arm-with-vfpv2.c: Rebuild.
3704 * features/arm-with-vfpv3.c: Rebuild.
3705 * features/i386/amd64-avx-linux.c: Rebuild.
3706 * features/i386/amd64-avx.c: Rebuild.
3707 * features/i386/amd64-linux.c: Rebuild.
3708 * features/i386/amd64.c: Rebuild.
3709 * features/i386/i386-avx-linux.c: Rebuild.
3710 * features/i386/i386-avx.c: Rebuild.
3711 * features/i386/i386-linux.c: Rebuild.
3712 * features/i386/i386-mmx-linux.c: Rebuild.
3713 * features/i386/i386-mmx.c: Rebuild.
3714 * features/i386/i386.c: Rebuild.
3715 * features/i386/x32-avx-linux.c: Rebuild.
3716 * features/i386/x32-avx.c: Rebuild.
3717 * features/i386/x32-linux.c: Rebuild.
3718 * features/i386/x32.c: Rebuild.
3719 * features/mips-dsp-linux.c: Rebuild.
3720 * features/mips-linux.c: Rebuild.
3721 * features/mips64-dsp-linux.c: Rebuild.
3722 * features/mips64-linux.c: Rebuild.
3723 * features/rs6000/powerpc-32.c: Rebuild.
3724 * features/rs6000/powerpc-32l.c: Rebuild.
3725 * features/rs6000/powerpc-403.c: Rebuild.
3726 * features/rs6000/powerpc-403gc.c: Rebuild.
3727 * features/rs6000/powerpc-405.c: Rebuild.
3728 * features/rs6000/powerpc-505.c: Rebuild.
3729 * features/rs6000/powerpc-601.c: Rebuild.
3730 * features/rs6000/powerpc-602.c: Rebuild.
3731 * features/rs6000/powerpc-603.c: Rebuild.
3732 * features/rs6000/powerpc-604.c: Rebuild.
3733 * features/rs6000/powerpc-64.c: Rebuild.
3734 * features/rs6000/powerpc-64l.c: Rebuild.
3735 * features/rs6000/powerpc-7400.c: Rebuild.
3736 * features/rs6000/powerpc-750.c: Rebuild.
3737 * features/rs6000/powerpc-860.c: Rebuild.
3738 * features/rs6000/powerpc-altivec32.c: Rebuild.
3739 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3740 * features/rs6000/powerpc-altivec64.c: Rebuild.
3741 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3742 * features/rs6000/powerpc-cell32l.c: Rebuild.
3743 * features/rs6000/powerpc-cell64l.c: Rebuild.
3744 * features/rs6000/powerpc-e500.c: Rebuild.
3745 * features/rs6000/powerpc-e500l.c: Rebuild.
3746 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3747 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3748 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3749 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3750 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3751 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3752 * features/rs6000/powerpc-vsx32.c: Rebuild.
3753 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3754 * features/rs6000/powerpc-vsx64.c: Rebuild.
3755 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3756 * features/rs6000/rs6000.c: Rebuild.
3757 * features/s390-linux32.c: Rebuild.
3758 * features/s390-linux32v1.c: Rebuild.
3759 * features/s390-linux32v2.c: Rebuild.
3760 * features/s390-linux64.c: Rebuild.
3761 * features/s390-linux64v1.c: Rebuild.
3762 * features/s390-linux64v2.c: Rebuild.
3763 * features/s390x-linux64.c: Rebuild.
3764 * features/s390x-linux64v1.c: Rebuild.
3765 * features/s390x-linux64v2.c: Rebuild.
3766 * features/tic6x-c62x-linux.c: Rebuild.
3767 * features/tic6x-c62x.c: Rebuild.
3768 * features/tic6x-c64x-linux.c: Rebuild.
3769 * features/tic6x-c64x.c: Rebuild.
3770 * features/tic6x-c64xp-linux.c: Rebuild.
3771 * features/tic6x-c64xp.c: Rebuild.
3772
826f0041
TT
37732012-07-27 Tom Tromey <tromey@redhat.com>
3774
3775 * c-exp.y (classify_name): Avoid assignment in condition.
3776
84552b16
PA
37772012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3778
3779 * amd64-windows-tdep.c: Include "frame.h".
3780 (amd64_windows_skip_trampoline_code): New function.
3781 (amd64_windows_init_abi): Add trampoline registration.
3782
a8a64aa8
YQ
37832012-07-27 Yao Qi <yao@codesourcery.com>
3784
3785 * tracepoint.c (cur_traceframe_number): Remove.
3786 (set_tfile_traceframe): Remove.
3787 (tfile_trace_find, tfile_fetch_registers): Update callers.
3788 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3789 (tfile_open, tfile_trace_find): Likewise.
3790
d99067cb
YQ
37912012-07-27 Yao Qi <yao@codesourcery.com>
3792
3793 * thread.c (switch_to_thread): Don't call registers_changed.
3794
f2e8016f
TT
37952012-07-26 Tom Tromey <tromey@redhat.com>
3796
f782ad9b
AS
3797 * Makefile.in (SFILES): Remove objc-exp.y.
3798 (YYFILES): Remove objc-exp.c.
3799 (YYOBJ): Remove objc-exp.o.
3800 (local-maintainer-clean): Don't mention objc-exp.c.
3801 * c-exp.y: Include objc-lang.h.
3802 (%union) <class>: New field.
3803 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3804 (exp): Clone subscript production for OBJC_LBRAC. Add various
3805 Objective C productions.
3806 (msglist, msgarglist, msgarg): New productions.
3807 (array_mod, func_mod, operator): Clone productions for
3808 OBJC_LBRAC.
3809 (parse_string_or_char): Handle '@' strings.
3810 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3811 (classify_name): Check la_name_of_this. Recognize ObjC class
3812 names.
3813 * objc-exp.y: Remove.
3814 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3815 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3816
f66713d2
JK
38172012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3818
3819 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3820
7cfe01b4
JK
38212012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3822
3823 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3824 and decrement.
3825
5ba19b4c
TT
38262012-07-26 Tom Tromey <tromey@redhat.com>
3827
3828 * copying.c: Rebuild.
3829 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3830 'no_class'.
3831
27618ce4
TT
38322012-07-26 Tom Tromey <tromey@redhat.com>
3833
3834 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3835 immediate_quit.
3836 (print_objfile_statistics): Likewise.
3837 (maintenance_print_symbols): Likewise.
3838 (maintenance_print_msymbols): Likewise.
3839 (maintenance_print_objfiles): Likewise.
3840 * psymtab.c (print_partial_symbols): Call QUIT.
3841 (maintenance_print_psymbols): Likewise. Don't modify
3842 immediate_quit.
3843 * copying.c (show_copying_command): Don't modify immediate_quit.
3844 (show_warranty_command): Likewise.
3845 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3846
dd3818c8
KS
38472012-07-26 Keith Seitz <keiths@redhat.com>
3848
3849 * linespec.c (linespec_lexer_lex_number): The input
3850 is also a valid number if the next character is a comma
3851 or colon.
3852
23a80689
JB
38532012-07-26 Joel Brobecker <brobecker@adacore.com>
3854
3855 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3856 configure options.
3857
29f77997
TG
38582012-07-26 Tristan Gingold <gingold@adacore.com>
3859
3860 * machoread.c: Include gdb_bfd.h.
3861
a55c1f32
TG
38622012-07-26 Tristan Gingold <gingold@adacore.com>
3863
3864 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3865 offset.
3866
56eb65bd
SP
38672012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3868
3869 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3870 SIZE to size_t.
3871 (dwarf2_evaluate_loc_desc): Likewise.
3872 (dwarf2_loc_desc_needs_frame): Likewise.
3873 (locexpr_describe_location_1): Likewise.
3874 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3875 size_t.
3876 (struct dwarf2_loclist_baton): Likewise.
3877 * dwarf2read.c (struct dwarf_block): Likewise.
3878 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3879 (decode_locdesc): Expand SIZE and I to size_t.
3880
aec8845c
JK
38812012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3882
3883 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3884
33d7655b
JB
38852012-07-25 Joel Brobecker <brobecker@adacore.com>
3886
3887 * doublest.c (convert_doublest_to_floatformat): If the exponent
3888 is too small, treat the value as zero. If the exponent is too
3889 large, treat the value as infinity.
3890
a22d44ff
JB
38912012-07-25 Joel Brobecker <brobecker@adacore.com>
3892
3893 * configure.ac: Add --enable-lmcheck configure option.
3894 * configure: Regenerate.
3895
d6b28940
TT
38962012-07-25 Tom Tromey <tromey@redhat.com>
3897
f782ad9b
AS
3898 * NEWS: Mention maint info bfds.
3899 * gdb_bfd.c (all_bfds): New global.
3900 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3901 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3902 New functions.
d6b28940 3903
6e73ba20
RC
39042012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3905
3906 * configure.tgt: Add v850*-*-rtems*.
3907
d560eebd
TT
39082012-07-25 Tom Tromey <tromey@redhat.com>
3909
3910 * macrotab.c (macro_bcache_str): Remove cast.
3911
d7cbec71
HZ
39122012-07-25 Hui Zhu <hui_zhu@mentor.com>
3913
3914 * linespec.c (linespec_lexer_lex_number): Update comments,
3915 change the return and add check to make sure the input is
3916 the decimal numbers.
3917 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3918 false, call linespec_lexer_lex_string.
3919
882f447f
TT
39202012-07-24 Tom Tromey <tromey@redhat.com>
3921
3922 * symfile.c (symbol_file_add): Don't open BFD twice.
3923
53ab4066 39242012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3925
3926 * breakpoint.c (create_breakpoint): Store condition for pending
3927 breakpoints.
3928
108fb0f7
AS
39292012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3930
3931 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3932 (m68k_return_value): Handle complex types like structures.
3933 (m68k_svr4_return_value): Likewise.
3934
1634dcbe
JK
39352012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3936
3937 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3938 parameters to bfd_get_section_name.
3939
e2d12c21
YQ
39402012-07-24 Yao Qi <yao@codesourcery.com>
3941
3942 * cli/cli-setshow.c: Handle case 'var_uinteger'
3943 and 'var_zuninteger' together. Handle case 'var_integer' and
3944 'var_zinteger' together.
3945
64b92e45
KS
39462012-07-23 Keith Seitz <keiths@redhat.com>
3947
3948 * linespec.c (convert_linespec_to_sal): Don't add
3949 any symbols to the result vector if symbol_to_sal
3950 returns zero.
3951
0f5f4ffe
KS
39522012-07-23 Keith Seitz <keiths@redhat.com>
3953
3954 * linespec.c (decode_objc): Record the function name
3955 in the linespec.
3956
da1cc82f
TT
39572012-07-23 Tom Tromey <tromey@redhat.com>
3958
3959 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3960 counting.
3961 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3962 (map_vmap): Acquire a reference to the BFD.
3963
6c18f3e0
SP
39642012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3965
3966 * p-valprint.c (pascal_object_print_value): Replace potentially
3967 unsafe alloca with xmalloc/xfree.
3968 * valops.c (search_struct_method): Likewise.
3969
695c3173
TT
39702012-07-23 Tom Tromey <tromey@redhat.com>
3971
3972 * solib-svr4.c (enable_break): Update.
3973 * bfd-target.h (target_bfd_reopen): Update documentation.
3974
08d2cd74
TT
39752012-07-23 Tom Tromey <tromey@redhat.com>
3976
3977 * symfile.c (separate_debug_file_exists): Update.
3978 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3979 (reread_symbols): Update.
3980 * elfread.c (build_id_verify): Update.
3981 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3982 bfd_open_maybe_remote.
3983
596f7d67
TT
39842012-07-23 Tom Tromey <tromey@redhat.com>
3985
3986 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3987
8ac244b4
TT
39882012-07-23 Tom Tromey <tromey@redhat.com>
3989
3990 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3991 and 'abfd'.
3992 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3993 and 'abfd'.
3994 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3995 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3996 'abfd'.
3997 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3998 * objfiles.c (allocate_objfile): Acquire a new reference.
3999 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4000 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4001 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4002 a cleanup for 'nbfd'.
4003 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4004 for 'nbfd'.
4005 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4006 make a cleanup for 'abfd'.
4007 (symbol_file_add): Make a BFD cleanup.
4008
64c31149
TT
40092012-07-23 Tom Tromey <tromey@redhat.com>
4010
4011 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4012 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4013 * corelow.c (core_open): Use gdb_bfd_fopen.
4014 * dsrec.c (load_srec): Use gdb_bfd_openr.
4015 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4016 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4017 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4018 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4019 (gdb_bfd_fdopenr): New functions.
4020 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4021 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4022 (gdb_bfd_fdopenr): Declare.
4023 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4024 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4025 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4026 gdb_bfd_openr_next_archived_file.
4027 (macho_check_dsym): Use gdb_bfd_openr.
4028 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4029 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4030 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4031 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4032 gdb_bfd_openr.
4033 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4034 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4035 gdb_bfd_openr_next_archived_file.
4036 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4037 Use gdb_bfd_openr.
4038 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4039 gdb_bfd_openr.
4040 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4041 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4042 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4043 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4044 (symfile_bfd_open): Use gdb_bfd_fopen.
4045 (generic_load): Use gdb_bfd_openr.
4046 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4047
520b0001
TT
40482012-07-23 Tom Tromey <tromey@redhat.com>
4049
4050 * bfd-target.c (target_bfd_reopen): Update.
4051 * cli/cli-dump.c (bfd_openr_with_cleanup)
4052 (bfd_openw_with_cleanup): Update.
4053 * corelow.c (core_open): Update.
4054 * dsrec.c (load_srec): Update.
4055 * exec.c (exec_file_attach): Update.
4056 * gcore.c (create_gcore_bfd): Update.
4057 * gdb_bfd.c (gdb_bfd_ref): Return void.
4058 (gdb_bfd_open): Update.
4059 * gdb_bfd.h (gdb_bfd_ref): Return void.
4060 Update comments.
4061 * jit.c (jit_bfd_try_read_symtab): Update.
4062 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4063 * machoread.c (macho_symfile_read_all_oso): Update.
4064 (macho_check_dsym): Update.
4065 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4066 * remote-m32r-sdi.c (m32r_load): Update.
4067 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4068 * rs6000-nat.c (add_vmap): Update.
4069 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4070 Update.
4071 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4072 * solib-spu.c (spu_bfd_open): Update.
4073 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4074 * spu-linux-nat.c (spu_bfd_open): Update.
4075 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4076 (generic_load): Update.
4077 * windows-nat.c (windows_make_so): Update.
4078
2322ff16
SP
40792012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4080
4081 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4082
3def0b36
PA
40832012-07-20 Jeff Kenton <jkenton@tilera.com>
4084
4085 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4086 SIGTRAMP_FRAME unwinding.
4087
e615022a
DE
40882012-07-20 Doug Evans <dje@google.com>
4089
4090 * NEWS: Document new options "set/show use-deprecated-index-sections",
4091 and delete reference to --use-deprecated-index-sections.
4092 * symfile.h (use_deprecated_index_sections): Delete.
4093 * dwarf2read.c (use_deprecated_index_sections): Make static.
4094 (read_index_from_section): Update wording of how to load
4095 deprecated index sections.
4096 (_initialize_dwarf2_read): New options
4097 "set/show use-deprecated-index-sections".
4098 * main.c (captured_main): Delete --use-deprecated-index-sections.
4099
64776a0b
PA
41002012-07-20 Pedro Alves <palves@redhat.com>
4101
4102 PR threads/11692
4103 PR gdb/12203
4104
4105 * infrun.c (handle_inferior_event) <new thread>: Don't special
4106 case minus_one_ptid.
4107 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4108 * linux-thread-db.c (thread_get_info_callback): Don't return early
4109 if the thread is zombie.
4110 (thread_from_lwp): Change return type to void. Rewrite stale
4111 comment.
4112 (attach_thread): Don't return early if the thread is zombie,
4113 instead set its "dying" flag.
4114 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4115 (find_new_threads_callback): Don't return early if the thread is
4116 zombie.
4117
09826ec5
PA
41182012-07-20 Pedro Alves <palves@redhat.com>
4119
4120 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4121 * target.c (target_wait): Likewise.
4122 (str_comma_list_concat_elem, do_option, target_options_to_string):
4123 New functions.
4124 * target.h (target_options_to_string): Declare.
4125
f7a35f02
TT
41262012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4127 Tom Tromey <tromey@redhat.com>
4128
4129 * dwarf2read.c (dwarf_decode_macros)
4130 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4131 DW_MACRO_GNU_transparent_include_alt>: New cases.
4132 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4133 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4134
b81e1ee0
TT
41352012-07-20 Tom Tromey <tromey@redhat.com>
4136
4137 * dwarf2read.c (try_open_dwo_file): Don't call
4138 gdb_bfd_stash_filename.
4139
99c1624c
PA
41402012-07-20 Pedro Alves <palves@redhat.com>
4141
4142 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4143 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4144 (i386_process_record): Tweak description comments.
4145
4ffa4fc7
PA
41462012-07-20 Pedro Alves <palves@redhat.com>
4147
4148 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4149 (i386_process_record): Use record_read_memory.
4150 * record.c (record_read_memory): New function.
4151 (record_arch_list_add_mem, record_exec_insn): Use
4152 record_read_memory.
4153 * record.h (record_read_memory): Declare.
4154
c24343e2
YQ
41552012-07-20 Yao Qi <yao@codesourcery.com>
4156
4157 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4158 NULL for xfree.
4159
90f47860
PA
41602012-07-19 Pedro Alves <palves@redhat.com>
4161
4162 * record.c (record_resume): Ask the target beneath to report all
4163 signals.
4164
01093045
DE
41652012-07-19 Doug Evans <dje@google.com>
4166
4167 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4168 there's no section at address zero.
4169 (dwarf2_record_block_ranges): Ditto.
4170
a7c3d162
YQ
41712012-07-19 Yao Qi <yao@codesourcery.com>
4172
4173 * command.h, remote.c: Fix a typo in comment.
4174
608b4967
TT
41752012-07-19 Tom Tromey <tromey@redhat.com>
4176
4177 PR exp/13206:
4178 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4179 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4180 OP_DECLTYPE>: New cases.
4181 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4182 (type_exp): Add new productions.
4183 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4184 and decltype.
4185 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4186 New case.
4187 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4188 OP_DECLTYPE>: New case.
4189 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4190 New case.
4191 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4192 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4193
274b54d7
TT
41942012-07-19 Tom Tromey <tromey@redhat.com>
4195
4196 * c-exp.y (enum token_flags): New.
4197 (struct token) <cxx_only>: Remove.
4198 <flags>: New field.
4199 (tokentab3, tokentab2, ident_tokens): Update.
4200 (lex_one_token): Update. Handle FLAG_SHADOW.
4201
9eaf6705
TT
42022012-07-19 Tom Tromey <tromey@redhat.com>
4203
4204 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4205 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4206 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4207 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4208 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4209 type_exp production where appropriate.
4210 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4211 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4212 <UNOP_MEMVAL_TYPE>: New case.
4213 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4214 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4215 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4216 <UNOP_MEMVAL_TYPE>: New case.
4217 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4218 UNOP_REINTERPRET_CAST>: Update.
4219 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4220 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4221 UNOP_REINTERPRET_CAST>: Update.
4222 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4223 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4224 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4225 constants.
4226
6ace3df1
YQ
42272012-07-19 Yao Qi <yao@codesourcery.com>
4228 Jan Kratochvil <jan.kratochvil@redhat.com>
4229
4230 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4231 and case 'var_optional_filename' together.
4232 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4233 instead of add_setshow_optional_filename_cmd for setshow command
4234 'args'. Set completer for 'set args'.
4235
48faced0
DE
42362012-07-18 Doug Evans <dje@google.com>
4237
4238 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4239 * common/gdb_vecs.c: New file, contents from utils.c.
4240 * common/host-defs.h: New file, contents from defs.h.
4241 * utils.h: New file, contents from defs.h.
4242 * defs.h: Move all declarations of objects defined in utils.c
4243 to utils.h (except QUIT() and related).
4244 #include "utils.h", "host-defs.h".
4245 * probe.h (probe_p): Move here from gdb_vecs.h.
4246 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4247 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4248 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4249 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4250 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4251 (COMMON_OBS): Add gdb_vecs.o.
4252 (gdb_vecs.o): New rule.
4253
66f1999b
KS
42542012-07-18 Keith Seitz <keiths@redhat.com>
4255
4256 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4257 parameter. If non-zero, use SYMNAME as the canonical name
4258 for the SaL.
4259 Update all callers.
4260 (convert_linespec_to_sals): Use add_sal_to_sals for
4261 expressions, too.
4262 (decode_line_full): No need to "fill in missing canonical names"
4263 anymore. Simply make cleanups for the allocated names.
4264
5d94e27b
KS
42652012-07-18 Keith Seitz <keiths@redhat.com>
4266
4267 * linespec.c (struct linespec): Constify expression,
4268 source_filename, function_name, and label_name.
4269 (symbol_not_found_error): Make all parameters const.
4270 (linespec_parser_delete): No need to check for NULL
4271 when using xfree. Cast const char * to char * for xfree.
4272
af4908ba
KS
42732012-07-18 Keith Seitz <keiths@redhat.com>
4274
4275 * breakpoint.c (invalid_thread_id_error): New function.
4276 (find_condition_and_thread): Use invalid_thread_id_error.
4277 (watch_command_1): Likewise.
4278
853254db
TT
42792012-07-18 Tom Tromey <tromey@redhat.com>
4280
4281 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4282 * contrib/cc-with-tweaks.sh: New file.
4283
2ec9a5e0
TT
42842012-07-18 Tom Tromey <tromey@redhat.com>
4285
4286 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4287 (locate_dwz_sections): Recognize .gdb_index.
4288 (create_cus_from_index_list): New function.
4289 (create_cus_from_index): Use it. Handle .dwz data.
4290 (read_index_from_section): New function, extracted from
4291 dwarf2_read_index.
4292 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4293 if needed.
4294
36586728
TT
42952012-07-18 Tom Tromey <tromey@redhat.com>
4296
4297 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4298 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4299 <is_dwz>: New field.
4300 (struct dwz_file): New.
4301 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4302 (locate_dwz_sections, dwarf2_get_dwz_file)
4303 (get_abbrev_section_for_cu): New functions.
4304 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4305 (read_and_check_type_unit_head): Add abbrev_section argument.
4306 (create_debug_types_hash_table): Update.
4307 (init_cutu_and_read_dies): Use proper abbrev section.
4308 (init_cutu_and_read_dies_no_follow): Likewise.
4309 (set_partial_user): Do nothing if PST==NULL.
4310 (read_comp_units_from_section): New function.
4311 (create_all_comp_units): Use it.
4312 (scan_partial_symbols, partial_die_parent_scope): Update.
4313 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4314 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4315 (find_partial_die): Add offset_in_dwz argument. Update.
4316 (guess_partial_die_structure_name, fixup_partial_die): Update.
4317 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4318 DW_FORM_GNU_strp_alt.
4319 (read_indirect_string_from_dwz): New function.
4320 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4321 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4322 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4323 (follow_die_offset): Add offset_in_dwz argument.
4324 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4325 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4326 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4327 Handle new macro forms.
4328 (dwarf_decode_macros): Update.
4329 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4330 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4331 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4332 (create_debug_types_hash_table): Use correct abbrev section.
4333 (get_debug_line_section): New function.
4334 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4335 (process_full_comp_unit): Pass 'required' argument to
4336 end_symtab_get_static_block.
4337 * buildsym.h (end_symtab_get_static_block): Update.
4338 * buildsym.c (end_symtab_get_static_block): Add 'required'
4339 argument.
4340 (end_symtab, end_expandable_symtab): Update.
4341
4bf44c1c
TT
43422012-07-18 Tom Tromey <tromey@redhat.com>
4343
4344 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4345 (pagesize): Remove.
4346 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4347 (zlib_decompress_section): Remove.
4348 (dwarf2_read_section): Use gdb_bfd_map_section.
4349 (munmap_section_buffer): Remove.
4350 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4351 munmap_section_buffer.
4352 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4353 (struct gdb_bfd_section_data): New.
4354 (free_one_bfd_section): New function.
4355 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4356 (get_section_descriptor, zlib_decompress_section)
4357 (gdb_bfd_map_section): New functions.
4358 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4359
bb397797
TT
43602012-07-18 Tom Tromey <tromey@redhat.com>
4361
4362 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4363
6ec53d05
TT
43642012-07-18 Tom Tromey <tromey@redhat.com>
4365
4366 * gdb_bfd.c (struct gdb_bfd_data): New.
4367 (gdb_bfd_cache): New global.
4368 (struct gdb_bfd_cache_search): New.
4369 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4370 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4371 * gdb_bfd.h (gdb_bfd_open): Declare.
4372
f9a062ff
TT
43732012-07-18 Tom Tromey <tromey@redhat.com>
4374
4375 * utils.c (make_cleanup_bfd_unref): Rename from
4376 make_cleanup_bfd_close.
4377 * defs.h (make_cleanup_bfd_unref): Rename from
4378 make_cleanup_bfd_close.
4379 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4380 (bfd_openw_with_cleanup): Update.
4381 * corelow.c (core_open): Update.
4382 * dsrec.c (load_srec): Update.
4383 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4384 * remote-m32r-sdi.c (m32r_load): Update.
4385 * remote-mips.c (mips_load_srec): Update.
4386 (pmon_load_fast): Update.
4387 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4388 Update.
4389 (darwin_bfd_open): Update.
4390 * solib.c (solib_bfd_fopen): Update.
4391 * symfile-mem.c (symbol_file_add_from_memory): Update.
4392 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4393 (symfile_bfd_open): Update.
4394 (generic_load): Update.
4395
d6ad71ba
TT
43962012-07-18 Tom Tromey <tromey@redhat.com>
4397
4398 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4399 (pmon_load_fast): Likewise.
4400 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4401 (m32r_upload_command): Likewise.
4402 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4403 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4404 Use make_cleanup_bfd_close.
4405
a4453b7e
TT
44062012-07-18 Tom Tromey <tromey@redhat.com>
4407
4408 * symfile.c (symfile_bfd_open): Don't copy name. Call
4409 gdb_bfd_stash_filename.
4410 (load_command): Open the new BFD before freeing the old.
4411 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4412 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4413 Call gdb_bfd_stash_filename.
4414 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4415 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4416 gdb_bfd_stash_filename.
4417 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4418 Free found_pathname.
4419 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4420 gdb_bfd_stash_filename.
4421 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4422 * machoread.c (macho_add_oso_symfile): Call
4423 gdb_bfd_stash_filename.
4424 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4425 gdb_bfd_stash_filename.
4426 (macho_check_dsym): Don't copy filename. Call
4427 gdb_bfd_stash_filename.
4428 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4429 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4430 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4431 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4432 * exec.c (exec_close): Don't free the BFD's filename.
4433 (exec_file_attach): Don't copy the filename. Call
4434 gdb_bfd_stash_filename.
4435 * corelow.c (core_close): Don't free the BFD's filename.
4436 (core_open): Call gdb_bfd_stash_filename.
4437 * corefile.c (reopen_exec_file): Remove #if 0 code.
4438 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4439 pathname.
4440 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4441
cbb099e8
TT
44422012-07-18 Tom Tromey <tromey@redhat.com>
4443
4444 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4445 gdb_bfd_unref.
4446 (free_dwo_file): Use gdb_bfd_unref.
4447 * cli/cli-dump.c: Include gdb_bfd.h.
4448 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4449 (bfd_openr_with_cleanup): Likewise.
4450 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4451 gdb_bfd_unref.
4452 * utils.c: Include gdb_bfd.h.
4453 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4454 * symfile.c: Include gdb_bfd.h.
4455 (separate_debug_file_exists): Use gdb_bfd_unref.
4456 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4457 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4458 (generic_load): Use gdb_bfd_ref.
4459 (reread_symbols): Use gdb_bfd_unref.
4460 * symfile-mem.c: Include gdb_bfd.h.
4461 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4462 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4463 * solib.c: Include gdb_bfd.h.
4464 (solib_bfd_fopen): Use gdb_bfd_ref.
4465 (solib_bfd_open): Use gdb_bfd_unref.
4466 (free_so_symbols): Use gdb_bfd_unref.
4467 (reload_shared_libraries_1): Use gdb_bfd_unref.
4468 * solib-spu.c: Include gdb_bfd.h.
4469 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4470 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4471 gdb_bfd_unref.
4472 * solib-frv.c: Include gdb_bfd.h.
4473 (enable_break2): Use gdb_bfd_unref.
4474 * solib-dsbt.c: Include gdb_bfd.h.
4475 (enable_break2): Use gdb_bfd_unref.
4476 * solib-darwin.c: Include gdb_bfd.h.
4477 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4478 gdb_bfd_unref.
4479 (darwin_bfd_open): Use gdb_bfd_unref.
4480 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4481 * remote-mips.c: Include gdb_bfd.h.
4482 (mips_load_srec): Use gdb_bfd_ref.
4483 (pmon_load_fast): Use gdb_bfd_ref.
4484 * remote-m32r-sdi.c: Include gdb_bfd.h.
4485 (m32r_load): Use gdb_bfd_ref.
4486 * record.c: Include gdb_bfd.h.
4487 (record_save_cleanups): Use gdb_bfd_unref.
4488 (cmd_record_save): Use gdb_bfd_unref.
4489 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4490 gdb_bfd_unref.
4491 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4492 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4493 * objfiles.c: Include gdb_bfd.h.
4494 (free_objfile): Use gdb_bfd_unref.
4495 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4496 gdb_bfd.c.
4497 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4498 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4499 (macho_check_dsym): Likewise.
4500 * m32r-rom.c: Include gdb_bfd.h.
4501 (m32r_load): Use gdb_bfd_ref.
4502 (m32r_upload_command): Use gdb_bfd_ref.
4503 * jit.c: Include gdb_bfd.h.
4504 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4505 * gdb_bfd.h: New file.
4506 * gdb_bfd.c: New file.
4507 * gcore.c: Include gdb_bfd.h.
4508 (create_gcore_bfd): Use gdb_bfd_ref.
4509 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4510 (gcore_command): Use gdb_bfd_unref.
4511 * exec.c: Include gdb_bfd.h.
4512 (exec_close): Use gdb_bfd_unref.
4513 (exec_close_1): Use gdb_bfd_unref.
4514 (exec_file_attach): Use gdb_bfd_ref.
4515 * elfread.c: Include gdb_bfd.h.
4516 (build_id_verify): Use gdb_bfd_unref.
4517 * dsrec.c: Include gdb_bfd.h.
4518 (load_srec): Use gdb_bfd_ref.
4519 * corelow.c: Include gdb_bfd.h.
4520 (core_close): Use gdb_bfd_unref.
4521 (core_open): Use gdb_bfd_ref.
4522 * bfd-target.c: Include gdb_bfd.h.
4523 (target_bfd_xclose): Use gdb_bfd_unref.
4524 (target_bfd_reopen): Use gdb_bfd_ref.
4525 * Makefile.in (SFILES): Add gdb_bfd.c.
4526 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4527 (COMMON_OBS): Add gdb_bfd.o.
4528
ed1d1739
KS
45292012-07-18 Keith Seitz <keiths@redhat.com>
4530
4531 * breakpoint.c (find_condition_and_thread): Initialize
4532 TASK and REST.
4533 (create_breakpiont): find_condition_and_thread will now
4534 initialize COND_STRING, THREAD, and REST (and TASK).
4535 (addr_string_to_sals): Likewise.
4536
eab402df
PA
45372012-07-18 Pedro Alves <palves@redhat.com>
4538
4539 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4540 Pull the single step breakpoints out of the target.
4541
2b963b68
SDJ
45422012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4543
4544 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4545 * stap-probe.c (compile_probe_arg): Likewise.
4546
6bac7473
SDJ
45472012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4548
4549 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4550 (elf_compile_to_ax): Likewise.
4551 * infrun.c (insert_exception_resume_from_probe): Likewise.
4552 (check_exception_resume): Remove `objfile' variable.
4553 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4554 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4555 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4556 (compare_entries): Rename to...
4557 (compare_probes): ...this. Adjust function to work with
4558 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4559 respectively.
4560 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4561 `VEC (probe_p) *'.
4562 (print_ui_out_info): Adjust argument to be `struct probe *'.
4563 (info_probes_for_ops): Adjust internal computations to use
4564 `VEC (probe_p) *'.
4565 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4566 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4567 gen_info_probes_table_values>: Remove `objfile' argument.
4568 (struct probe) <objfile>: New field.
4569 (find_probe_by_pc): Remove `objfile' argument.
4570 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4571 (stap_get_probe_argument_count): Likewise.
4572 (stap_get_arg): Likewise.
4573 (stap_evaluate_probe_argument): Likewise.
4574 (stap_compile_to_ax): Likewise.
4575 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4576 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4577 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4578 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4579 sym_compile_to_ax>: Likewise.
4580
3347eb1a 45812012-07-18 Terry Guo <terry.guo@arm.com>
4582
4583 PR 14329
4584 * defs.h (GDB_MI_MSG_WIDTH): New.
4585 * ser_base (ser_base_read_error_fd): New function.
4586 (do_ser_base_readchar): Poll error file descriptor as well as
4587 standard output.
f782ad9b 4588 (generic_readchar): Refactor error handling.
3347eb1a 4589
80c8d323
JB
45902012-07-18 Joel Brobecker <brobecker@adacore.com>
4591
4592 * NEWS: Create a new section for the next release branch.
4593 Rename the section of the current branch, now that it has
4594 been cut.
4595
b45a0664 45962012-07-18 Joel Brobecker <brobecker@adacore.com>
4597
4598 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4599 * version.in: Bump version to 7.5.50.20120718-cvs.
4600
09cf2b22
KS
46012012-07-17 Keith Seitz <keiths@redhat.com>
4602
4603 * linespec.c (linespec_parse_line_offset): Make parameter
4604 const.
4605
8f043999
JK
46062012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4607
4608 PR 11914
4609 * f-valprint.c (info_common_command): New variable frame_id.
4610 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4611 * printcmd.c (print_variable_and_value): Extend function comment.
4612 Add comment for invalidated FRAME.
4613 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4614 FI form FRAME_ID after each print_frame_local_vars.
4615 (struct print_variable_and_value_data): Change frame to frame_id.
4616 (do_print_variable_and_value): New variable frame, initialize it from
4617 p->frame_id. Add comment for invalidated FRAME.
4618 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4619 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4620 for invalidated FRAME.
4621
ae5e0686
MK
46222012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4623 Pedro Alves <palves@redhat.com>
4624
4625 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4626 loop.
4627
5049c5be
TT
46282012-07-16 Tom Tromey <tromey@redhat.com>
4629
4630 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4631
2908cac6
DE
46322012-07-15 Doug Evans <dje@google.com>
4633
094b34ac
DE
4634 * dwarf2read.c (stmt_list_hash): New struct.
4635 (type_unit_group): Embed "per_cu" member, remove pointer.
4636 New union member "t", move member "tus" into it, all uses updated.
4637 New member "hash", replaces member "line_offset, all uses updated.
4638 (quick_file_names): Replace member "offset" with "hash", all uses
4639 updated.
4640 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4641 (hash_file_name_entry, eq_file_name_entry): Call them.
4642 (hash_type_unit_group, eq_type_unit_group): Ditto.
4643 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4644 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4645 (dw2_get_file_names): Update.
4646 (create_type_unit_group): Replace "per_cu" arg with "cu".
4647 All callers updated. Fix "quick" (.gdb_index) handling.
4648 (get_type_unit_group): Replace "per_cu" arg with "cu".
4649 All callers updated.
4650 (build_type_unit_groups): Don't reset tu_stats.
4651
2908cac6
DE
4652 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4653 "tab_cur_size". Change member "tab" to be a htab_t.
4654 (create_filename_seen_cache): Update.
4655 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4656 (filename_seen): Update.
4657
a2b6eff5
DE
46582012-07-13 Doug Evans <dje@google.com>
4659
4660 * symtab.c (filename_seen): Update comment.
4661
4359dff1
JK
46622012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4663 Doug Evans <dje@google.com>
4664
4665 * buildsym.c (end_symtab_1): Split it to ...
4666 (end_symtab_get_static_block): ... this ...
4667 (end_symtab_from_static_block): ... and this function.
4668 (end_symtab, end_expandable_symtab): Call them.
4669 * buildsym.h (end_symtab_get_static_block)
4670 (end_symtab_from_static_block): New declarations.
4671 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4672 Set its valid CU ranges.
4673
a24f71ab
JK
46742012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4675
4676 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4677 DW_OP_GNU_parameter_ref.
4678
d76b7dbc
JK
46792012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4680
4681 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4682 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4683
9fdc877b
DE
46842012-07-13 Doug Evans <dje@google.com>
4685
4686 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4687 (filename_seen_cache): New struct.
4688 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4689 (create_filename_seen_cache): New function.
4690 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4691 (filename_seen): Delete arg "first". New arg "cache". All callers
4692 updated.
4693 (output_source_filename_data): New struct.
4694 (output_source_filename): Delete arg "first". New arg "data".
4695 All callers updated.
4696 (sources_info): Delete local "first". New locals "data", "cleanups".
4697 Rewrite to use filename_seen_cache.
4698 (add_partial_filename_data): Delete member "first". New member
4699 "filename_seen_cache". All uses updated.
4700 (make_source_files_completion_list): Rewrite to use
4701 filename_seen_cache.
4702
f80c6f3f
DE
47032012-07-12 Doug Evans <dje@google.com>
4704
4705 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4706
0bfa869d
DE
47072012-07-10 Doug Evans <dje@google.com>
4708
f4dc4d17
DE
4709 PR gdb/13498
4710 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4711 all_type_unit_groups, type_unit_groups, tu_stats.
4712 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4713 All uses updated. Add type_unit_group to union "s".
4714 (type_unit_group): New struct.
4715 (IS_TYPE_UNIT_GROUP): New macro.
4716 (abbrev_table): Delete unused member "section".
4717 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4718 (dw2_get_cu): Assert not used with type_unit_group.
4719 (dw2_get_primary_cu): New function.
4720 (dw2_build_type_unit_groups_reader): New function.
4721 (dw2_build_type_unit_groups): New function.
4722 (dw2_get_file_names): Assert not called on type units.
4723 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4724 Redo loop to iterate over type unit groups instead of type units.
4725 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4726 (read_abbrev_offset): New function.
4727 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4728 updated.
4729 (create_partial_symtab): New function.
4730 (process_psymtab_comp_unit_reader): Assert not used with type units.
4731 Call create_partial_symtab.
4732 (process_psymtab_type_unit): Delete.
4733 (hash_type_unit_group, eq_type_unit_group): New functions.
4734 (allocate_type_unit_groups_table): New function.
4735 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4736 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4737 (create_type_unit_group, get_type_unit_group): New functions.
4738 (tu_abbrev_offset): New struct.
4739 (sort_tu_by_abbrev_offset): New function.
4740 (add_type_unit_group_to_table): New function.
4741 (build_type_unit_groups): New function.
4742 (build_type_psymtabs_reader): New function.
4743 (build_type_psymtab_dependencies): New function.
4744 (build_type_psymtabs): Rewrite.
4745 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4746 is seen in a type unit.
4747 (process_queue): Move symtab expansion debugging printfs here.
4748 Call process_full_type_unit for type units.
4749 (compute_symtab_includes): Assert not called for type units.
4750 (process_cu_includes): Don't call compute_symtab_includes for
4751 type units.
4752 (process_full_type_unit): New function.
4753 (process_imported_unit_die): Flag an error if called for type units.
4754 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4755 updated. Assert not called for type units.
4756 (read_file_scope): Call dwarf2_start_symtab.
4757 (setup_type_unit_groups): New function.
4758 (read_type_unit_scope): Rewrite.
4759 (abbrev_table_read_table): Initialize abbrev_table->offset.
4760 (abbrev_table_free_cleanup): New function.
4761 (dwarf2_start_symtab): New function.
4762 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4763 * buildsym.c (finish_block_internal): New arg "expandable".
4764 All callers updated.
4765 (start_symtab): Move most contents to ...
4766 (restart_symtab): ... here. New function.
4767 (reset_symtab_globals): New function.
4768 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4769 Call reset_symtab_globals.
4770 (end_symtab, end_expandable_symtab): New functions.
4771 (set_missing_symtab, augment_type_symtab): New functions.
4772 * buildsym.h (end_expandable_symtab): Declare.
4773 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4774 * psympriv.h (struct partial_symtab): New member "anonymous".
4775 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4776 anonymous psymtabs.
4777 (read_psymtabs_with_filename): Ditto.
4778 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4779 (expand_symtabs_matching_via_partial): Ditto.
4780 (dump_psymtab): Update.
0bfa869d
DE
4781 * dictionary.c (dict_add_pending): New function.
4782 * dictionary.h (dict_add_pending): Declare.
4783
45e58e77
DE
47842012-07-09 Doug Evans <dje@google.com>
4785
b74db436
DE
4786 * buildsym.c (start_subfile): Remove unnecessary check for
4787 name == NULL.
4788
fd55216c
DE
4789 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4790
6721b2ec
DE
4791 * dwarf2read.c (load_full_type_unit): Simplify.
4792
b4dd5633
DE
4793 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4794 to struct signatured_type **. All uses updated.
4795
45e58e77
DE
4796 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4797 All callers updated.
4798
e314d629
TT
47992012-07-09 Tom Tromey <tromey@redhat.com>
4800
4801 * c-exp.y (check_parameter_typelist): New function.
4802 (parameter_typelist): Call it.
4803 * eval.c (make_params): Handle '(void)' case.
4804 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4805 '(void)' case.
4806
aa7c7447
JK
48072012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4808
4809 * common/linux-ptrace.c: Include gdb_assert.h.
4810 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4811 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4812 stdint.h.
4813 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4814 functions.
4815 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4816 * linux-nat.c (linux_child_post_attach)
4817 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4818
889003ed
JK
48192012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4820
4821 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4822 nptl <2.7 bug workaround for core files.
4823
da559b09
JK
48242012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4825
4826 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4827 clearing.
4828 (save_siginfo): Remove.
4829 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4830 call.
4831 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4832 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4833 * linux-nat.h (struct lwp_info): Remove field siginfo.
4834
f865ee35
JK
48352012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4836
4837 Code cleanup for the next patch.
4838 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4839 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4840 call for it.
4841 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4842 (ia64_linux_stopped_data_address):
4843 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4844 the return value.
4845 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4846 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4847 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4848 call for it.
4849
76b83c51
JK
48502012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4851
4852 PR 14321
4853 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4854 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4855
a6fb9c08
TT
48562012-07-06 Tom Tromey <tromey@redhat.com>
4857
4858 * c-exp.y (DOTDOTDOT): New token.
4859 (func_mod, exp): Use parameter_typelist.
4860 (parameter_typelist): New production.
4861 (tokentab3): Add "..." token.
4862 * eval.c (make_params): Handle varargs.
4863 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4864 varargs.
4865
71918a86
TT
48662012-07-06 Tom Tromey <tromey@redhat.com>
4867
4868 PR exp/9608:
4869 * c-exp.y (%union) <tvec>: Change type.
4870 (func_mod): Now uses <tvec> type.
4871 (exp): Update for tvec change.
4872 (direct_abs_decl): Push the typelist.
4873 (func_mod): Return a typelist.
4874 (nonempty_typelist): Update for tvec change.
4875 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4876 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4877 * parse.c (pop_type_list): New function.
4878 (push_typelist): New function.
4879 (follow_types): Handle tp_function_with_arguments.
4880 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4881 (enum type_pieces) <tp_function_with_arguments>: New constant.
4882 (union type_stack_elt) <typelist_val>: New field.
4883 (push_typelist): Declare.
4884
fcde5961
TT
48852012-07-06 Tom Tromey <tromey@redhat.com>
4886
4887 * c-exp.y (%union) <type_stack>: New field.
4888 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4889 (ptr_operator_ts): New production.
4890 (ptype): Update.
4891 * parse.c (type_stack_reserve): New function.
4892 (check_type_stack_depth): Use it.
4893 (pop_type_stack, append_type_stack, push_type_stack)
4894 (get_type_stack, type_stack_cleanup): New functions.
4895 (follow_types): Handle tp_type_stack.
4896 (_initialize_parse): Simplify initialization.
4897 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4898 constant.
4899 (union type_stack_elt) <stack_val>: New field.
4900 (get_type_stack, append_type_stack, push_type_stack)
4901 (type_stack_cleanup): Declare.
4902
1a7d0ce4
TT
49032012-07-06 Tom Tromey <tromey@redhat.com>
4904
4905 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4906 Remove.
4907 (struct type_stack): New.
4908 * parse.c (type_stack, type_stack_size, type_stack_depth):
4909 Remove.
4910 (type_stack): New global.
4911 (parse_exp_in_context, check_type_stack_depth)
4912 (insert_into_type_stack, insert_type, push_type, push_type_int)
4913 (insert_type_address_space, pop_type, pop_type_int)
4914 (_initialize_parse): Update.
4915
16d01384
TT
49162012-07-06 Tom Tromey <tromey@redhat.com>
4917
4918 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4919 Remove %type.
4920
9bfc60bf
SP
49212012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4922
4923 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4924
d5161074
SP
49252012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4926 Jan Kratochvil <jan.kratochvil@redhat.com>
4927
4928 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4929 alloca with xmalloc/xfree.
4930
a74bc576
SP
49312012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4932
4933 * MAINTAINERS (Write After Approval): Add myself to the list.
4934
667e0a4b
DE
49352012-07-05 Doug Evans <dje@google.com>
4936
4937 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4938
34b536a8
HZ
49392012-07-05 Hui Zhu <hui_zhu@mentor.com>
4940
4941 * ax-gdb.c (cli/cli-utils.h): New include.
4942 (linespec.h): Ditto.
4943 (agent_eval_command_one): New function.
4944 (agent_command_1): Ditto.
4945 (agent_command): Call function agent_command_1.
4946 (agent_eval_command): Ditto.
4947 (_initialize_ax_gdb): Change help for "maint agent"
4948 and "maint agent-eval".
4949
e6f0bce7
HZ
49502012-07-05 Hui Zhu <hui_zhu@mentor.com>
4951
4952 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4953 * cli/cli-utils.c (check_for_argument): New function.
4954 * cli/cli-utils.h (check_for_argument): Ditto.
4955
1b3371b1
L
49562012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4957
4958 * NEWS: Mention x32 ABI support.
4959
23e2d720
L
49602012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4961
4962 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4963 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4964
4965 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4966 and pc_regnum_from_eax to -1. Update SP regnum from
4967 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4968 needed.
4969
4970 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4971 pc_regnum_from_eax.
4972
836bf454
JK
49732012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4974
4975 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4976 * dwarf2expr.h: Include gdbtypes.h.
4977 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4978 these forward declarations.
4979 (cu_offset, sect_offset): Move these ...
4980 * gdbtypes.h: Remove include dwarf2expr.h.
4981 (cu_offset, sect_offset): ... here.
4982
1e55e04f
L
49832012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4984
4985 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4986 (amd64_linux_sigtramp_code): This.
4987 (amd64_x32_linux_sigtramp_code): New.
4988 (LINUX_SIGTRAMP_LEN): Updated.
4989 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4990
7d0e21ad
JK
49912012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4992
4993 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4994
8775fd2d
JK
49952012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4996
4997 * config.in: Regenerate.
4998 * configure: Regenerate.
4999 * configure.ac: Remove check for gnu/libc-version.h.
5000 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5001 gnu/libc-version.h.
5002 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5003 variables libc_version, libc_major and libc_minor. Replace sscanf by
5004 inferior_has_bug. Extend the comment.
5005
fcb44371
JK
50062012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5007
5008 * linux-thread-db.c (inferior_has_bug): New function.
5009 (thread_db_find_new_threads_silently): Return boolean as checked by
5010 inferior_has_bug, describe it in the comments.
5011 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5012 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 5013 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
5014 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5015 if UNTIL_NO_NEW,
5016
09406207
DE
50172012-07-02 Doug Evans <dje@google.com>
5018
0907af0c
DE
5019 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5020 related to queue management.
5021
09406207
DE
5022 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5023 instead of "debug dwarf2-die" in debugging printfs.
5024 (create_debug_info_hash_table_reader): Ditto.
5025 (create_debug_info_hash_table): Ditto.
5026 (init_dwo_file): Ditto.
5027 (init_cutu_and_read_dies): Add debugging printf.
5028 (init_cutu_and_read_dies_no_follow): Ditto.
5029 (process_psymtab_comp_unit_reader): Ditto.
5030
d3ce09f5
SS
50312012-07-02 Stan Shebs <stan@codesourcery.com>
5032
5033 Add target-side support for dynamic printf.
5034 * NEWS: Mention the additional style.
5035 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5036 (struct bp_location): New field cmd_bytecode.
5037 * breakpoint.c: Include format.h.
5038 (disconnected_dprintf): New global.
5039 (parse_cmd_to_aexpr): New function.
5040 (build_target_command_list): New function.
5041 (insert_bp_location): Call it.
5042 (remove_breakpoints_pid): Skip dprintf breakpoints.
5043 (print_one_breakpoint_location): Ditto.
5044 (dprintf_style_agent): New global.
5045 (dprintf_style_enums): Add dprintf_style_agent.
5046 (update_dprintf_command_list): Add agent case.
5047 (agent_printf_command): New function.
5048 (_initialize_breakpoint): Add new commands.
5049 * common/ax.def (printf): New bytecode.
5050 * ax.h (ax_string): Declare.
5051 * ax-gdb.h (gen_printf): Declare.
5052 * ax-gdb.c: Include cli-utils.h, format.h.
5053 (gen_printf): New function.
5054 (maint_agent_print_command): New function.
5055 (_initialize_ax_gdb): Add maint agent-printf command.
5056 * ax-general.c (ax_string): New function.
5057 (ax_print): Add printf disassembly.
5058 * Makefile.in (SFILES): Add format.c
5059 (COMMON_OBS): Add format.o.
5060 * common/format.h: New file.
5061 * common/format.c: New file.
5062 * printcmd.c: Include format.h.
5063 (ui_printf): Call parse_format_string.
5064 * remote.c (remote_state): New field breakpoint_commands.
5065 (PACKET_BreakpointCommands): New enum.
5066 (remote_breakpoint_commands_feature): New function.
5067 (remote_protocol_features): Add new BreakpointCommands entry.
5068 (remote_can_run_breakpoint_commands): New function.
5069 (remote_add_target_side_commands): New function.
5070 (remote_insert_breakpoint): Call it.
5071 (remote_insert_hw_breakpoint): Ditto.
5072 (_initialize_remote): Add new packet configuration for
5073 target-side breakpoint commands.
5074 * target.h (struct target_ops): New field
5075 to_can_run_breakpoint_commands.
5076 (target_can_run_breakpoint_commands): New macro.
5077 * target.c (update_current_target): Handle
5078 to_can_run_breakpoint_commands.
5079
2d7b58e8
JK
50802012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5081
5082 Execute -ix and -iex only after system and user gdbinit files.
5083 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5084 processing down after gdbinit files.
5085
8690e634
JK
50862012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5087
5088 Add fnmatch-gnu module.
5089 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5090 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5091 * gnulib/aclocal.m4: Regenerate.
5092 * gnulib/config.in: Regenerate.
5093 * gnulib/configure: Regenerate.
5094 * gnulib/import/dummy.c: Remove.
5095 * gnulib/import/Makefile.am: Regenerate.
5096 * gnulib/import/Makefile.in: Likewise.
5097 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5098 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5099 * gnulib/import/alloca.c: New file.
5100 * gnulib/import/alloca.in.h: Likewise.
5101 * gnulib/import/config.charset: Likewise.
5102 * gnulib/import/fnmatch.c: Likewise.
5103 * gnulib/import/fnmatch.in.h: Likewise.
5104 * gnulib/import/fnmatch_loop.c: Likewise.
5105 * gnulib/import/localcharset.c: Likewise.
5106 * gnulib/import/localcharset.h: Likewise.
5107 * gnulib/import/m4/alloca.m4: Likewise.
5108 * gnulib/import/m4/codeset.m4: Likewise.
5109 * gnulib/import/m4/configmake.m4: Likewise.
5110 * gnulib/import/m4/fcntl-o.m4: Likewise.
5111 * gnulib/import/m4/fnmatch.m4: Likewise.
5112 * gnulib/import/m4/glibc21.m4: Likewise.
5113 * gnulib/import/m4/localcharset.m4: Likewise.
5114 * gnulib/import/m4/locale-fr.m4: Likewise.
5115 * gnulib/import/m4/locale-ja.m4: Likewise.
5116 * gnulib/import/m4/locale-zh.m4: Likewise.
5117 * gnulib/import/m4/mbrtowc.m4: Likewise.
5118 * gnulib/import/m4/mbsinit.m4: Likewise.
5119 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5120 * gnulib/import/m4/mbstate_t.m4: Likewise.
5121 * gnulib/import/m4/stdbool.m4: Likewise.
5122 * gnulib/import/m4/wchar_h.m4: Likewise.
5123 * gnulib/import/m4/wctype_h.m4: Likewise.
5124 * gnulib/import/m4/wint_t.m4: Likewise.
5125 * gnulib/import/mbrtowc.c: Likewise.
5126 * gnulib/import/mbsinit.c: Likewise.
5127 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5128 * gnulib/import/mbsrtowcs-state.c: Likewise.
5129 * gnulib/import/mbsrtowcs.c: Likewise.
5130 * gnulib/import/ref-add.sin: Likewise.
5131 * gnulib/import/ref-del.sin: Likewise.
5132 * gnulib/import/stdbool.in.h: Likewise.
5133 * gnulib/import/streq.h: Likewise.
5134 * gnulib/import/strnlen1.c: Likewise.
5135 * gnulib/import/strnlen1.h: Likewise.
5136 * gnulib/import/verify.h: Likewise.
5137 * gnulib/import/wchar.in.h: Likewise.
5138 * gnulib/import/wctype.in.h: Likewise.
5139
202cbf1c
JK
51402012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5141
5142 Support shell wildcards for 'set auto-load safe-path'.
5143 * auto-load.c: Include fnmatch.h.
5144 (filename_is_in_dir): Rename to ...
5145 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5146 it. Update function comment. Rename dir_len to pattern_len. New
5147 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5148 messages. Use gdb_filename_fnmatch.
5149 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5150 pattern.
5151 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5152 * defs.h (gdb_filename_fnmatch): New declaration.
5153 * utils.c: Include fnmatch.h.
5154 (gdb_filename_fnmatch): New function.
5155
fb7b5af4
SDJ
51562012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5157
5158 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5159 `-probe' and `-probe-stap' options.
5160
72d0e2c5
YQ
51612012-07-01 Yao Qi <yao@codesourcery.com>
5162
5163 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5164 always_inserted_off, and always_inserted_enums.
5165 Change always_inserted_mode's type to 'enum auto_boolean'.
5166 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5167 callers.
5168 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5169 of add_setshow_enum_cmd.
5170 * infrun.c: Remove can_use_displaced_stepping_auto,
5171 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5172 can_use_displaced_stepping_enum.
5173 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
f87e3f15
PA
5174 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5175 callers.
72d0e2c5
YQ
5176 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5177 add_setshow_enum_cmd.
5178
42e7ad6c
DE
51792012-06-30 Doug Evans <dje@google.com>
5180
5181 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5182 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5183 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5184
39cf75f7
DE
51852012-06-29 Doug Evans <dje@google.com>
5186
5187 * linespec.c: #include "stack.h".
5188 (decode_line_with_current_source): Moved here from symtab.c and
5189 renamed from decode_line_spec. All callers updated.
5190 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5191 renamed from decode_line_spec_1. All callers updated.
5192 * linespec.h (decode_line_with_current_source): Move declaration here
5193 from symtab.h and renamed from decode_line_spec.
5194 (decode_line_with_last_displayed): Move declaration here from symtab.h
5195 and renamed from decode_line_spec_1.
5196 * macrocmd.c: #include "linespec.h".
5197 * symtab.c: Remove #include "linespec.h".
5198
433df2d4
DE
51992012-06-28 Doug Evans <dje@google.com>
5200
1ce1cefd
DE
5201 * dwarf2read.c (get_cu_length): New function.
5202 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5203 (create_debug_types_hash_table): Ditto.
5204 (init_cutu_and_read_dies): Ditto.
5205 (init_cutu_and_read_dies_no_follow): Ditto.
5206
3b80fe9b
DE
5207 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5208
433df2d4
DE
5209 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5210 (struct abbrev_table): Define.
5211 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5212 abbrev_table.
5213 (init_cutu_and_read_dies): Update.
5214 (abbrev_table_alloc_abbrev): New function. Replaces
5215 dwarf_alloc_abbrev. All callers updated.
5216 (abbrev_table_add_abbrev): New function.
5217 (abbrev_table_lookup_abbrev): New function. Replaces
5218 dwarf2_lookup_abbrev. All callers updated.
5219 (abbrev_table_read_table): New function. Contents moved here from
5220 dwarf2_read_abbrevs.
5221 (dwarf2_read_abbrevs): Call it.
5222 (abbrev_table_free): New function.
5223 (dwarf2_free_abbrev_table): Call it.
5224
71caed83
SS
52252012-06-28 Stan Shebs <stan@codesourcery.com>
5226
5227 * osdata.c (info_osdata_command): Filter out "Title" columns
5228 from non-MI uses.
5229 * common/linux-osdata.c (struct osdata_type): Add title field.
5230 (osdata_table): Add titles to each entry.
5231 (linux_command_xfer_osdata): Add a column for title data.
5232
37ce89eb
SS
52332012-06-28 Stan Shebs <stan@codesourcery.com>
5234
5235 Make logging work for MI.
5236 * NEWS: Mention it.
5237 * interps.h (interp_set_logging_ftype): New typedef.
5238 (struct interp_procs): New field set_logging_proc.
5239 (current_interp_set_logging): Declare.
5240 * interps.c (current_interp_set_logging): New function.
5241 * cli/cli-logging.c: Include interps.h.
5242 (set_logging_redirect): Call current_interp_set_logging.
5243 (pop_output_files): Ditto.
5244 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5245 * mi/mi-console.h (mi_console_set_raw): Declare.
5246 * mi/mi-console.c (mi_console_set_raw): New function.
5247 * mi/mi-interp.c (saved_raw_stdout): New global.
5248 (mi_set_logging): New function.
5249 (_initialize_mi_interp): Add it to interp procs.
5250
659c9f3a
DE
52512012-06-28 Doug Evans <dje@google.com>
5252
a743abeb
DE
5253 * symtab.c (lookup_symbol_aux_objfile): Use
5254 ALL_OBJFILE_PRIMARY_SYMTABS.
5255
659c9f3a
DE
5256 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5257
da2d6d3d
JK
52582012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5259
5260 * common/buffer.c: Include inttypes.h and stdint.h.
5261 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5262
e5ef252a
PA
52632012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5264 Pedro Alves <palves@redhat.com>
5265
5266 * gdbthread.h (ALL_THREADS): New macro.
5267 (thread_list): Declare.
5268 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5269 going, but instead fall through to the stepping handling.
5270 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5271 the passed in signal. Adjust debug output.
5272 (resume_callback): Rename to ...
5273 (linux_nat_resume_callback): ... this. Pass the thread's last
5274 stop signal, if in "pass" state.
5275 (linux_nat_resume): Adjust to rename.
5276 (stop_wait_callback): New assertion. Don't respawn signals;
5277 instead let the LWP remain with SIGNALLED set.
5278 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5279 * remote.c (append_pending_thread_resumptions): New.
5280 (remote_vcont_resume): Call it.
5281 * target.h (target_resume): Extend comment.
5282
1d7975eb
IS
52832012-06-28 Iain Sandoe <iain@codesourcery.com>
5284
5285 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5286
2e3cf129
DE
52872012-06-27 Doug Evans <dje@google.com>
5288
5289 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5290 Delete have_addr_base, unused. All uses updated.
5291 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5292 (dwarf2_get_pc_bounds): Add ranges_base.
5293 (dwarf2_record_block_ranges): Ditto.
5294
1bb9788d
TT
52952012-06-27 Tom Tromey <tromey@redhat.com>
5296
5297 PR macros/7961:
5298 * varobj.c (varobj_create): Update.
5299 (varobj_set_value): Update.
5300 * tracepoint.c (validate_actionline): Update.
5301 (encode_actions_1): Update.
5302 * parse.c (parse_exp_1): Add 'pc' argument.
5303 (parse_exp_in_context): Add 'pc' argument. Change how
5304 expression_context_pc is set.
5305 (parse_expression): Update.
5306 (parse_field_expression): Update.
5307 * expression.h (parse_exp_1): Update.
5308 * eval.c (parse_to_comma_and_eval): Update.
5309 * breakpoint.c (set_breakpoint_condition): Update.
5310 (update_watchpoint): Update.
5311 (init_breakpoint_sal): Update
5312 (find_condition_and_thread): Update.
5313 (watch_command_1): Update.
5314 (update_breakpoint_locations): Update.
5315 * ada-lang.c (ada_read_renaming_var_value): Update.
5316 (create_excep_cond_exprs): Update.
5317
0bc3a05c
DE
53182012-06-27 Doug Evans <dje@google.com>
5319
5320 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5321 type units.
5322
4bdcc0c1
DE
53232012-06-26 Doug Evans <dje@google.com>
5324
5325 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5326 prototype.
5327 (error_check_comp_unit_head): New arg abbrev_section. All callers
5328 updated.
5329 (read_and_check_comp_unit_head): Ditto.
5330 (read_and_check_type_unit_head): Ditto.
5331
ee0bf529
SCR
53322012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5333
5334 New attribute 'last' for gdb.Symtab_and_line.
5335 * NEWS (Python Scripting): Add entry about the new attribute.
5336 * python/py-symtab.c (salpy_get_last): New function which
5337 implements the get method for the 'last' attribute of
5338 gdb.Symtab_and_line.
5339 (sal_object_getset): Add entry for the 'last' attribute.
5340
1c658ad5
DE
53412012-06-26 Doug Evans <dje@google.com>
5342
09262596
DE
5343 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5344 (dwo_sections): Add macinfo, macro.
5345 (dwarf2_locate_dwo_sections): Watch for macro sections.
5346 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5347 All callers updated. Handle DWO files.
5348
45cfd468
DE
5349 * NEWS: Mention new options "set debug dwarf2-read" and
5350 "set debug symtab-create".
5351 * dwarf2read.c (dwarf2_read_debug): New static global.
5352 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5353 (process_queue): Ditto.
5354 (process_full_comp_unit): Ditto.
5355 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5356 * elfread.c (elf_symfile_read): Add debugging printf.
5357 * minsyms.c (install_minimal_symbols): Ditto.
5358 * psymtab.c (allocate_psymtab): Ditto.
5359 * symfile.c (allocate_symtab): Ditto.
5360 * symtab.c (symtab_create_debug): New global.
5361 (_initialize_symtab): Add new option "set debug symtab-create".
5362 * symtab.h (symtab_create_debug): Declare.
5363
1c658ad5
DE
5364 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5365 (lookup_dwo_type_unit): Ditto.
5366
6fea9e18
L
53672012-06-26 Roland McGrath <roland@hack.frob.com>
5368 H.J. Lu <hongjiu.lu@intel.com>
5369
5370 * amd64-linux-nat.c: Include <sys/user.h>.
5371 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5372 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5373 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5374
5375 * configure.ac: Check if the fs_base and gs_base members of
5376 `struct user_regs_struct' exist.
5377 * config.in: Regenerated.
5378 * configure: Likewise.
5379
adb4fe3b
ME
53802012-06-25 Michael Eager <eager@eagercon.com>
5381
5382 PR python/14291
f782ad9b 5383 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 5384
fc51cce1
MGD
53852012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5386
5387 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5388 register as a stack alignment in ARM mode.
5389
40a73391
JK
53902012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5391
5392 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5393 * gnulib/config.in: Regenerate.
5394 * gnulib/configure: Likewise.
5395 * gnulib/import/m4/extensions.m4: Update it.
5396 * gnulib/import/m4/gnulib-common.m4: Likewise.
5397 * gnulib/import/m4/memmem.m4: Likewise.
5398 * gnulib/import/m4/mmap-anon.m4: Likewise.
5399 * gnulib/import/m4/multiarch.m4: Likewise.
5400 * gnulib/import/stdint.in.h: Likewise.
5401
972daa01
YQ
54022012-06-24 Yao Qi <yao@codesourcery.com>
5403
5404 * corefile.c (write_memory_with_notification): New.
5405 * gdbcore.h: Declare write_memory_with_notification.
5406 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5407 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5408 * valops.c (value_assign): Likewise.
5409 * python/py-inferior.c (infpy_write_memory): Call
5410 'write_memory_with_notification'.
5411
8d6e0714
JK
54122012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5413
5414 * cc-with-index.sh: Use also -ex "set auto-load no".
5415
156942c7
DE
54162012-06-23 Doug Evans <dje@google.com>
5417
5418 PR 14125
5419 * NEWS: Document additions to .gdb_index.
5420 * dwarf2read.c: #include "gdb/gdb-index.h".
5421 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5422 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5423 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5424 (dwarf2_read_index): Recognize version 7.
5425 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5426 block_kind, domain): All callers updated.
5427 (dw2_find_symbol_file): Handle new index CU values.
5428 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5429 (add_index_entry): New args is_static, kind. All callers updated.
5430 (offset_type_compare, uniquify_cu_indices): New functions
5431 (symbol_kind): New function.
5432 (write_psymtabs_to_index): Remove duplicate CU values.
5433 (write_psymtabs_to_index): Write .gdb_index version 7.
5434
352b3eda
JB
54352012-06-22 Joel Brobecker <brobecker@adacore.com>
5436
5437 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5438 * configure: Regenerate.
5439
2678e2af
YQ
54402012-06-20 Yao Qi <yao@codesourcery.com>
5441
5442 * python/py-inferior.c: Update comments of infpy_read_memory
5443 and infpy_write_memory.
5444
95c391b6
TT
54452012-06-19 Tom Tromey <tromey@redhat.com>
5446
5447 PR exp/9514:
5448 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5449 (push_type_address_space): Remove.
5450 * parse.c (insert_into_type_stack): New function.
5451 (insert_type): Likewise.
5452 (insert_type_address_space): Rename from push_type_address_space.
5453 Insert tp_space_identifier.
5454 * c-exp.y (ptr_operator): New production.
5455 (abs_decl): Use ptr_operator.
5456 (space_identifier): Call insert_type_address_space.
5457 (ptype): Don't use const_or_volatile_or_space_identifier.
5458 (const_or_volatile_noopt): Call insert_type.
5459 (conversion_type_id, conversion_declarator): New productions.
5460 (operator): Use conversion_type_id.
5461
6ac9ef80
DE
54622012-06-18 Doug Evans <dje@google.com>
5463
422d65e7
DE
5464 * symtab.h (minimal_symbol): New member created_by_gdb.
5465 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5466 created by gdb.
5467 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5468 (search_symbols): Call it instead of lookup_symbol.
5469 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5470
49f6c839
DE
5471 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5472 Adjust address for DW_OP_GNU_addr_index.
5473 * dwarf2expr.h (dwarf_expr_context): Update comment.
5474 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5475 all callers updated. Handle TLS vars described with
5476 DW_OP_GNU_const_index.
5477 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5478 and DW_OP_GNU_const_index.
5479 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5480
6ac9ef80
DE
5481 * block.c (find_block_in_blockvector): Make explicit the fact that we
5482 ignore GLOBAL_BLOCK.
5483
4cd18215
TT
54842012-06-18 Tom Tromey <tromey@redhat.com>
5485
5486 * c-exp.y (operator): Remove trailing space after "delete" and
5487 "delete[]".
5488
a9b8d892
JK
54892012-06-18 Mark Kettenis <kettenis@gnu.org>
5490 Jan Kratochvil <jan.kratochvil@redhat.com>
5491
5492 Switch i386 and derived targets to ON_STACK.
5493 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5494 (amd64_dicos_init_abi): Remove its installment.
5495 * dicos-tdep.c (dicos_init_abi): Remove the
5496 set_gdbarch_call_dummy_location call. Update the comment here.
5497 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5498 (i386_dicos_init_abi): Remove its installment.
5499 * i386-tdep.c (i386_push_dummy_code): New function.
5500 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5501 i386_push_dummy_code.
5502
e2e4d78b
JK
55032012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5504
5505 Remove stale dummy frames.
5506 * breakpoint.c: Include dummy-frame.h.
5507 (longjmp_breakpoint_ops): New variable.
5508 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5509 bp_longjmp_call_dummy.
5510 (bpstat_what, bptype_string, print_one_breakpoint_location)
5511 (init_bp_location): Support bp_longjmp_call_dummy.
5512 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5513 (set_longjmp_breakpoint_for_call_dummy)
5514 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5515 functions.
5516 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5517 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5518 FIXME comment and extend the other comment for bp_call_dummy.
5519 (set_longjmp_breakpoint_for_call_dummy)
5520 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5521 * dummy-frame.c: Include gdbthread.h.
5522 (pop_dummy_frame_bpt): New function.
5523 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5524 (dummy_frame_discard): New function.
5525 (cleanup_dummy_frames): Update the comment about longjmps.
5526 * dummy-frame.h (dummy_frame_discard): New declaration.
5527 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5528 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5529 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5530 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5531 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5532 keep_going if IS_LONGJMP and there is no other reason to stop.
5533
09d5912c
TT
55342012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5535
5536 * remote-sim.c (sim_command_completer): Initialize
5537 variable 'result'.
5538
1788b2d3
JK
55392012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5540
5541 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5542 * dwarf2loc.c (call_site_parameter_matches): Support
5543 CALL_SITE_PARAMETER_PARAM_OFFSET.
5544 (needs_dwarf_reg_entry_value): Push stub value.
5545 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5546 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5547 * gdbtypes.h (enum call_site_parameter_kind): New item
5548 CALL_SITE_PARAMETER_PARAM_OFFSET.
5549 (struct call_site.parameter.u): New field param_offset.
5550
24c5c679
JK
55512012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5552
5553 Code cleanup: Generalize call_site.parameter key.
5554 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5555 variable dwarf_reg. New variable kind_u. Update parameters to
5556 push_dwarf_reg_entry_value.
5557 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5558 * dwarf2expr.h (enum call_site_parameter_kind)
5559 (union call_site_parameter_u): Forward declarations.
5560 (struct dwarf_expr_context_funcs): Update parameters and their
5561 description for push_dwarf_reg_entry_value.
5562 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5563 * dwarf2loc.c (call_site_parameter_matches): New function.
5564 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5565 description. Use call_site_parameter_matches.
5566 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5567 Update parameters and their description.
5568 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5569 New variable kind_u. Adjust the caller for updated parameters.
5570 (needs_dwarf_reg_entry_value): Update parameters.
5571 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5572 instead of attr. Update for the changed fields of struct
5573 call_site_parameter.
5574 * gdbtypes.h: Include dwarf2expr.h.
5575 (enum call_site_parameter_kind): New.
5576 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5577 fb_offset into new union u.
5578
ac142d96
L
55792012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5580
5581 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5582 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5583 for x32.
5584
ba224c70
L
55852012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5586
5587 * amd64-linux-nat.c (compat_x32_clock_t): New.
5588 (compat_x32_siginfo_t): Likewise.
5589 (compat_x32_siginfo_from_siginfo): Likewise.
5590 (siginfo_from_compat_x32_siginfo): Likewise.
5591 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5592 and siginfo_from_compat_x32_siginfo for x32.
5593
7ecbc825
HZ
55942012-06-15 Hui Zhu <hui_zhu@mentor.com>
5595
5596 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5597
233dfcf0
L
55982012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5599
5600 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5601 instead of gdbarch_ptr_bit.
5602 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5603 (amd64_supply_native_gregset): Likewise.
5604 (amd64_collect_native_gregset): Likewise.
5605 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5606 (amd64_supply_xsave): Likewise.
5607 (amd64_collect_fxsave): Likewise.
5608 (amd64_collect_xsave): Likewise.
5609
6da38f42
L
56102012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5611
5612 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5613 (amd64_linux_read_description): Check DS segment register for
5614 x32 process.
5615
663b969e
TT
56162012-06-15 Tom Tromey <tromey@redhat.com>
5617
5618 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5619 init_cutu_and_read_dies.
5620
d6f05027
IS
56212012-06-15 Iain Sandoe <iain@codesourcery.com>
5622
5623 * MAINTAINERS (Write After Approval): Add myself to the list.
5624
6598ed07
TT
56252012-06-15 Tom Tromey <tromey@redhat.com>
5626
5627 * valops.c (value_find_oload_method_list): Now static.
5628 * value.h (value_find_oload_method_list): Don't declare.
5629
2b214ea6
TT
56302012-06-15 Tom Tromey <tromey@redhat.com>
5631
5632 * valops.c (find_overload_match): Use value_ind.
5633
a210c238
MR
56342012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5635
5636 * infrun.c (handle_inferior_event): Correct indentation.
5637
3771a44c
DE
56382012-06-14 Doug Evans <dje@google.com>
5639
5640 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5641 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5642 All uses updated.
5643 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5644 updated. Handle DEBUG_LOC_START_LENGTH.
5645 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5646 (loclist_describe_location): Ditto.
5647
1c5a993e
MR
56482012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5649
5650 PR backtrace/13866
5651 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5652 after hiding inline functions.
5653
0b155465
JB
56542012-06-13 Joel Brobecker <brobecker@adacore.com>
5655
5656 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5657 _initialize_inf_ttrace.
5658
45717bac
JB
56592012-06-13 Joel Brobecker <brobecker@adacore.com>
5660
5661 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5662 _initialize_hppa_hpux_nat.
5663
34370865
JB
56642012-06-13 Joel Brobecker <brobecker@adacore.com>
5665
5666 * remote-sim.c (sim_command_completer): Change type of return
5667 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5668
284c5a60
MK
56692012-06-13 Mark Kettenis <kettenis@gnu.org>
5670 Jan Kratochvil <jan.kratochvil@redhat.com>
5671
5672 PR tdep/14222
5673 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5674 stack on a 16-byte boundary.
5675
2535757a
TT
56762012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5677
5678 * jit.c (finalize_symtab): Set function's return type to 'void' by
5679 default.
5680
fff4548b
MK
56812012-06-13 Mark Kettenis <kettenis@gnu.org>
5682 H.J. Lu <hongjiu.lu@intel.com>
5683
5a83521a
MK
5684 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5685 Move bits common to both the classic LP64 and the new x32 ILP32
5686 ABI here.
5687 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5688 (amd64_x32_linux_init_abi): New function.
5689 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5690 subtype.
5691
fff4548b
MK
5692 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5693 * i386-tdep.c (i386_pseudo_register_name): Make public.
5694 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5695 * amd64-tdep.c (amd64_dword_names): Add "eip".
5696 (amd64_x32_pseudo_register_type): New function
5697 (amd64_x32_init_abi): New function.
5698
dd80ea3c
JK
56992012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5700
5701 PR build/14003
5702 * inferior.h (struct inferior_suspend_state): Comment out.
5703 (struct inferior): Comment out the field suspend.
5704 * infrun.c (struct infcall_suspend_state): Comment out the field
5705 inferior_suspend.
5706 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5707 out its assignment.
5708
50af5481
JK
57092012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5710
5711 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5712 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5713 function comment. Return ERROR for unresolved cases. Implement
5714 returning proper NAME.
5715 (yylex): Accept also NAME from classify_inner_name.
5716 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5717 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5718 LOC_TYPEDEF type.
5719 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5720
d55637df
TT
57212012-06-13 Tom Tromey <tromey@redhat.com>
5722
5723 * breakpoint.c (condition_completer): New function.
5724 (_initialize_breakpoint): Use it.
5725 * value.c (complete_internalvar): New function.
5726 * value.h (complete_internalvar): Declare.
5727
49c4e619
TT
57282012-06-13 Tom Tromey <tromey@redhat.com>
5729
5730 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5731 * breakpoint.c (catch_syscall_completer): Return a VEC.
5732 * cli/cli-cmds.c (complete_command): Update.
5733 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5734 (complete_on_enum): Likewise.
5735 * command.h: Include gdb_vecs.h.
5736 (completer_ftype): Change return type.
5737 (complete_on_cmdlist, complete_on_enum): Likewise.
5738 * completer.c (noop_completer, filename_completer)
5739 (location_completer): Return a VEC.
5740 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5741 to a VEC.
5742 (expression_completer, complete_line_internal, complete_line)
5743 (command_completer): Return a VEC.
5744 (gdb_completion_word_break_characters, line_completion_function):
5745 Update.
5746 * completer.h: Include gdb_vecs.h.
5747 (complete_line, noop_completer, filename_completer)
5748 (expression_completer, location_completer, command_completer):
5749 Update.
5750 * f-lang.c (f_word_break_characters): Return a VEC.
5751 * interps.c (interpreter_completer): Return a VEC.
5752 * language.h (struct language_defn)
5753 <la_make_symbol_completion_list>: Return a VEC.
5754 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5755 * symtab.c (free_completion_list): Take a VEC.
5756 (return_val_size, return_val_index): Remove.
5757 (return_val): Now a VEC.
5758 (completion_list_add_name): Update.
5759 (default_make_symbol_completion_list_break_on)
5760 (default_make_symbol_completion_list, make_symbol_completion_list)
5761 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5762 Return a VEC.
5763 (add_filename_to_list): Update.
5764 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5765 <list>: Now a VEC.
5766 (maybe_add_partial_symtab_filename): Update.
5767 (make_source_files_completion_list): Return a VEC.
5768 * symtab.h (default_make_symbol_completion_list_break_on)
5769 (default_make_symbol_completion_list, make_symbol_completion_list)
5770 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5771 (make_source_files_completion_list): Update.
5772
625e8578
TT
57732012-06-13 Tom Tromey <tromey@redhat.com>
5774
5775 * breakpoint.c (add_catch_command): Use completer_ftype.
5776 * breakpoint.h: Include command.h.
5777 (add_catch_command): Use completer_ftype.
5778 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5779 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5780 Use completer_ftype.
5781 * command.h (completer_ftype): New typedef.
5782 (set_cmd_completer): Use it.
5783 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5784 completer_ftype.
5785
5eb3b062
PA
57862012-06-13 Pedro Alves <palves@redhat.com>
5787
5788 Partial revert of previous change.
5789
5790 * serial.c (scb_base): New global.
5791 (serial_for_fd): New.
5792 (serial_open, serial_fdopen_ops): Link new serial in open serials
5793 chain.
5794 (do_serial_close): Unlink serial from the open serials chain.
5795
8b3ee56d
PA
57962012-06-12 Pedro Alves <palves@redhat.com>
5797
5798 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5799 threads here.
5800 (prepare_for_detach): No longer context switch here in non-stop
5801 mode.
5802 (fetch_inferior_event): Ditto.
5803 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5804 to the event thread before removing breakpoints. Switch to the
5805 event thread before inserting breakpoints and resuming.
5806 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5807 event thread before resuming.
5808 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5809 Switch to the event thread before removing breakpoints.
5810
5d60742e
EZ
58112012-06-12 Eli Zaretskii <eliz@gnu.org>
5812
5813 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5814 special characters correctly for the Windows shells. See
5815 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5816 report.
5817 [!__MINGW32__]: Remove extra double quote character from special
5818 characters.
5819
a6feecf7
SS
58202012-06-11 Stan Shebs <stan@codesourcery.com>
5821
5822 * ui-out.h: Remove #if 0 declarations.
5823 * ui-out.c: Remove #if 0 functions.
5824
ddefb60f
PA
58252012-06-11 Pedro Alves <palves@redhat.com>
5826
5827 * ser-base.c (run_async_handler_and_reschedule): New.
5828 (fd_event, push_event): Use it.
5829 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5830 reference count to 1.
5831 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5832 instead of xfree.
5833 (serial_is_open, serial_ref, serial_unref): New.
5834 * serial.h (serial_open): Adjust comment.
5835 (serial_is_open): Declare.
5836 (serial_close): Adjust comment.
5837 (serial_ref, serial_unref) Declare.
5838 (struct serial): New field 'refcnt'.
5839
d5ad6aa5
PA
58402012-06-11 Pedro Alves <palves@redhat.com>
5841
5842 Remove #if 0'd "connect" command, and unnecessary associated
5843 refcounting and serial reuse bits.
5844
5845 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5846 * serial.c (last_serial_opened): Delete.
5847 (scb_base): Delete.
5848 (serial_open): Adjust.
5849 (serial_for_fd): Delete.
5850 (serial_fdopen_ops, do_serial_close): Adjust.
5851 (serial_fdopen_ops): Adjust.
5852
318aa544
PA
58532012-06-11 Pedro Alves <palves@redhat.com>
5854
5855 * serial.c (do_serial_close): Remove early return when SCB is
5856 null.
5857
07261596
TT
58582012-06-11 Tom Tromey <tromey@redhat.com>
5859
5860 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5861
cc80f267
JK
58622012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5863
5864 Fix regression by the "ambiguous linespec" series.
5865 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5866 get_last_displayed_symtab and get_last_displayed_line and depending
5867 on CURSAL.
5868
356d9f9d
TT
58692012-06-11 Tom Tromey <tromey@redhat.com>
5870
5871 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5872 (dw2_find_symbol_file): Use it.
5873
232b8704
ME
58742012-06-11 Michael Eager <eager@eagercon.com>
5875
5876 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5877 * mips-linux-tdep.h (mips_signals): New
5878
e81a37f7
TT
58792012-06-11 Tom Tromey <tromey@redhat.com>
5880
5881 * infrun.c (handle_inferior_event)
5882 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5883 breakpoint.
5884 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5885 exception logic in all cases. Update comments.
5886 (insert_longjmp_resume_breakpoint): Set the exception resume
5887 breakpoint.
5888
2e81047f
MR
58892012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5890
5891 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5892
4e32eda7
SCR
58932012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5894
5895 * valarith.c (binop_types_user_defined_p): Fix a typo.
5896
18648a37 58972012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5898 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5899
5900 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5901 * arch-utils.h: Declare.
5902 * gdbarch.sh: Add return_in_first_hidden_param_p.
5903 * gdbarch.c, gdbarch.h: Regenerated.
5904 * infcall.c (call_function_by_hand): Call
5905 gdbarch_return_in_first_hidden_param_p instead of
5906 language_pass_by_reference.
5907
5908 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5909 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5910 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5911 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5912 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5913 `cplus_return_struct_by_reference'.
5914 (tic6x_return_value): Handle language cplusplus.
5915 (tic6x_return_in_first_hidden_param_p): New.
5916 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5917
034e5797
DE
59182012-06-07 Doug Evans <dje@google.com>
5919
5920 * dwarf2read.c (dwarf2_cu): Add comment.
5921
6a00aa1e
MR
59222012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5923
5924 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5925 variable.
5926 (mips_eabi_push_dummy_call): Likewise.
5927 (mips_n32n64_push_dummy_call): Likewise.
5928 (mips_o32_push_dummy_call): Likewise.
5929 (mips_o64_push_dummy_call): Likewise.
5930
eaa05d59
MR
59312012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5932
5933 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5934
de13fcf2
MR
59352012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5936
5937 * mips-tdep.c (mips_pseudo_register_type): Use
5938 mips_float_register_p.
5939
c3a01a22
PA
59402012-06-06 Pedro Alves <palves@redhat.com>
5941
5942 * infrun.c (handle_inferior_event): Remove calls to
5943 reinit_frame_cache that follow a context_switch call.
5944
d25f45d9
PA
59452012-06-06 Pedro Alves <palves@redhat.com>
5946
5947 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5948 context_switch and remove stale comment.
5949
359f5fe6
PA
59502012-06-06 Pedro Alves <palves@redhat.com>
5951
5952 * infrun.c (struct execution_control_state): Remove
5953 `new_thread_event' field.
5954 (handle_inferior_event): Simplify new threads handling; don't
5955 resume the inferior if we find a new thread.
5956
2d4c29c5
TS
59572012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5958
5959 * NEWS: Document the deprecation of SH's 'regs' command.
5960 * inferior.h (all_registers_info): Add function declaration.
5961 * sh-tdep.c (sh_show_regs): Remove variable.
5962 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5963 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5964 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5965 (sh_show_regs_command): Remove functions.
5966 (sh_gdbarch_init): Don't set sh_show_regs.
5967 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5968 'info all-registers'.
5969 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5970 (sh64_show_regs): Remove functions.
5971 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5972
f5f1cdb6
JK
59732012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5974
5975 * configure.ac: Move development=true below AC_INIT.
5976 * configure: Regenerate.
5977
bf6309af
SS
59782012-06-05 Stan Shebs <stan@codesourcery.com>
5979
5980 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5981 gdb_stdout.
5982
45aa4659
JK
59832012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5984
5985 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5986 argument as ssize_t.
5987 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5988 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5989 * target.c (target_read_stack, target_write_memory)
5990 (target_write_raw_memory): Likewise.
5991 * target.h (target_read_stack, target_write_memory)
5992 (target_write_raw_memory): Likewise.
5993
1b162304
JK
59942012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5995
5996 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5997 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5998 * target.c (target_read_memory): Change LEN to ssize_t.
5999 * target.h (target_read_memory): Change LEN to ssize_t.
6000
8556afb4
PA
60012012-06-05 Pedro Alves <palves@redhat.com>
6002
6003 PR backtrace/13866
6004
6005 * breakpoint.c (until_break_command): Only fetch the selected
6006 frame after decode_line_1.
6007
fb139f32
PA
60082012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6009
6010 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6011 event breakpoint at _start, __start or main if a program
6012 interpreter is not found.
6013
a8e1bb34
JB
60142012-06-05 Joel Brobecker <brobecker@adacore.com>
6015
6016 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6017 Add declaration.
6018 * windows-tdep.c: #include "objfiles.h".
6019 (windows_iterate_over_objfiles_in_search_order): New function.
6020 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6021 iterate_over_objfiles_in_search_order gdbarch method to
6022 windows_iterate_over_objfiles_in_search_order.
6023 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6024
19630284
JB
60252012-06-05 Joel Brobecker <brobecker@adacore.com>
6026
6027 * gdbarch.sh: Add generation of
6028 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6029 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6030 (iterate_over_objfiles_in_search_order): New gdbarch method.
6031 * gdbarch.h, gdbarch.c: Regenerate.
6032 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6033 Add declaration.
6034 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6035 New function.
6036 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6037 out of lookup_symbol_aux_symtabs.
6038 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6039 call to lookup_symbol_aux_objfile.
6040 (struct global_sym_lookup_data): New type.
6041 (lookup_symbol_global_iterator_cb): New function.
6042 (lookup_symbol_global): Search for symbol using
6043 gdbarch_iterate_over_objfiles_in_search_order and
6044 lookup_symbol_global_iterator_cb.
6045 * findvar.c (struct minsym_lookup_data): New type.
6046 (minsym_lookup_iterator_cb): New function.
6047 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6048 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6049 and minsym_lookup_iterator_cb.
6050
67ff19f7
JB
60512012-06-05 Joel Brobecker <brobecker@adacore.com>
6052
6053 Revert the following patch:
6054 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6055 try locating the symbol in the symbol's own objfile first, before
6056 extending the search to all objfiles.
6057 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6058 out of lookup_symbol_aux_symtabs.
6059 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6060 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6061 Do not search EXCLUDE_OBJFILE.
6062 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6063 (lookup_symbol_global): Search for matches in the block's objfile
6064 first, before searching all other objfiles.
6065
ccab2054
JB
60662012-06-05 Joel Brobecker <brobecker@adacore.com>
6067
6068 * breakpoint.c (find_condition_and_thread): Stop parsing
6069 as soon as the first invalid keyword is found.
6070
e23d4a9c
JB
60712012-06-05 Joel Brobecker <brobecker@adacore.com>
6072
6073 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6074
70160166
JB
60752012-06-05 Joel Brobecker <brobecker@adacore.com>
6076
6077 * config/djgpp/djcheck.sh: Add copyright header.
6078
399501a5
JB
60792012-06-05 Joel Brobecker <brobecker@adacore.com>
6080
6081 * copyright.py (update_files, main): Fix path to update-copyright
6082 script.
6083
3770a159
JB
60842012-06-05 Joel Brobecker <brobecker@adacore.com>
6085
6086 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6087 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6088 for which a reminder to update by hand is printed.
6089
4aad0dfc
DE
60902012-06-04 Doug Evans <dje@google.com>
6091
6092 * buildsym.c (make_blockvector): Add comment.
6093
1f8cf220
PA
60942012-06-04 Pedro Alves <palves@redhat.com>
6095
6096 * arch-utils.c (default_gdb_signal_from_target): Delete.
6097 * arch-utils.h (default_gdb_signal_from_target): Delete.
6098 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6099 gdbarch_gdb_signal_from_target_p.
6100 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6101 predicate).
6102 * gdbarch.h: Regenerate.
6103 * gdbarch.c: Regenerate.
6104
86b49880
PA
61052012-06-04 Pedro Alves <palves@redhat.com>
6106
6107 * gdbarch.sh (gdb_signal_from_target): Mention that the
6108 implementation of the method must be host independent.
6109 * gdbarch.h: Regenerate.
6110
fe78531d
JK
61112012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6112
6113 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6114 parameters.
6115 (target_read_memory_bfd): New function.
6116 (symbol_file_add_from_memory): Use it.
6117
d790cf0a
DE
61182012-06-03 Doug Evans <dje@google.com>
6119
78e5175a
DE
6120 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6121 of primary symtab.
6122 (basic_lookup_transparent_type): Ditto.
6123
d790cf0a
DE
6124 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6125 (ALL_PRIMARY_SYMTABS): Use it.
6126 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6127 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6128 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6129 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6130 (basic_lookup_transparent_type): Ditto.
6131
c6e5ee5e
SDJ
61322012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6133
6134 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6135 it to optimize resolution of demangled name.
6136
a68ffae9
JK
61372012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6138
6139 * configure.ac (development): Define new variable.
6140 Call AC_CHECK_LIB for mcheck if $development.
6141 (ERROR_ON_WARNING): Enable it by default only if $development.
6142 * config.in: Regenerate.
6143 * configure: Regenerate.
6144
5299c1c4
JK
61452012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6146
6147 * target.c (target_read_memory): Make LEN argument as size_t.
6148 * target.h (target_read_memory): Likewise.
6149
61502012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
6151
6152 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6153
0c56f59b
EBM
61542012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6155
6156 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6157 BookE interface for PowerPC server processors if not available
6158 in the Linux Kernel.
6159
71bdabee
KS
61602012-05-31 Keith Seitz <keiths@redhat.com>
6161
6162 * linespec.c (decode_objc): Add cleanup to free
6163 INFO.FILE_SYMTABS.
6164 (find_linespec_symbols): Add cleanup to free CLASSES.
6165 * symfile.c (find_separate_debug_file_by_debuglink): Add
6166 cleanup to free DEBUGLINK.
6167 * ui-out.c (clear_header_list): No need to check if
6168 HEADER_NEXT.COLHDR is NULL.
6169 Free HEADER_NEXT.COL_NAME.
6170
acbd605d
MGD
61712012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6172
6173 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6174 warning.
6175
65662cde
PA
61762012-05-30 Jeff Kenton <jkenton@tilera.com>
6177
6178 * configure.host (gdb_host_cpu): Handle tilegx*.
6179 (gdb_host): Handle tilegx-*-linux*.
6180 * tilegx-linux-nat.c: New file.
6181 * config/tilegx/linux.mh: New file.
6182
ade64f0e
PA
61832012-05-30 Jeff Kenton <jkenton@tilera.com>
6184
6185 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6186 tilegx-linux-tdep.o.
6187 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6188 tilegx-linux-tdep.c.
6189 * configure.tgt: Handle tilegx-*-linux*.
6190 * tilegx-tdep.h: New file.
6191 * tilegx-tdep.c: New file.
6192 * tilegx-linux-tdep.c: New file.
6193 * regformats/reg-tilegx.dat: New file.
6194
bb08bdbd
EBM
61952012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6196
6197 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6198 accounting of hw watchpoints on ppc.
6199
ebd86fb5
TJB
62002012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6201
6202 * source.c (openp): Expand tilde in path entries.
6203
0a0edcd5
DE
62042012-05-29 Doug Evans <dje@google.com>
6205
98cc87bd
DE
6206 * buildsym.c (block_compar): Fix comment.
6207 (end_symtab): Fix and clarify some comments.
6208
0a0edcd5
DE
6209 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6210 cleanup_undefined_types.
6211 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6212 All callers updated.
6213
6f0c7050
TT
62142012-05-29 Tom Tromey <tromey@redhat.com>
6215
6216 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6217 fails.
6218 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6219 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6220 fails.
6221 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6222 fails.
6223
ec95993c
TG
62242012-05-29 Tristan Gingold <gingold@adacore.com>
6225
6226 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6227 (struct darwin_info): ... New struct.
6228 (solib_darwin_pspace_data): New variable.
6229 (darwin_pspace_data_cleanup): New function.
6230 (get_darwin_info): Likewise.
6231 (darwin_dyld_version_ok, darwin_load_image_infos)
6232 (darwin_solib_get_all_image_info_addr_at_init)
6233 (darwin_solib_read_all_image_info_addr): Add info argument.
6234 Adjust code.
6235 (darwin_current_sos): Use per pspace structure.
6236 (darwin_solib_create_inferior_hook): Likewise.
6237 (darwin_clear_solib): Likewise.
6238 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6239
ae25568b
PA
62402012-05-28 Pedro Alves <palves@redhat.com>
6241
6242 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6243 block that uses them. Clear ecss before handling each event.
6244
0c5bf5a9
JK
62452012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6246
6247 * solib-svr4.c (svr4_current_sos): New comment on
6248 svr4_current_sos_via_xfer_libraries fall back.
6249
bfb05775
JK
62502012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6251
6252 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6253 it as a fallback for TYPE_IS_OPAQUE.
6254 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6255 symbols for lookup_symbol.
6256
685b1105
JK
62572012-05-24 John Steele Scott <toojays@toojays.net>
6258
6259 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6260 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6261 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6262 (check_producer): ... this new function, which also checks for ICC
6263 and caches the result.
6264 (producer_is_icc): New function.
6265 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6266 producer was ICC.
6267
22203bbf
PA
62682012-05-24 Pedro Alves <palves@redhat.com>
6269
6270 PR gdb/7205
6271
6272 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6273 (default_gdb_signal_to_target): ... this. Add comment.
6274 (default_gdb_signal_from_host): Rename to ...
6275 (default_gdb_signal_from_target): ... this. Add comment.
6276 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6277 (default_gdb_signal_to_target): ... this.
6278 (default_gdb_signal_from_host): Rename to ...
6279 (default_gdb_signal_from_target): ... this.
6280 * corelow.c (core_open): Adjust to naming change. Replace comment.
6281 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6282 (gdb_signal_from_target): ... this. Adjust to
6283 default_gdb_signal_from_host naming change. Extend comment.
6284 (gdb_signal_to_host): Rename to ...
6285 (gdb_signal_to_target): ... this. Adjust to
6286 default_gdb_signal_to_host naming change.
6287 * gdbarch.h, gdbarch.c: Renegerate.
6288
a493e3e2
PA
62892012-05-24 Pedro Alves <palves@redhat.com>
6290
6291 PR gdb/7205
6292
f782ad9b 6293 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 6294
2ea28649
PA
62952012-05-24 Pedro Alves <palves@redhat.com>
6296
6297 PR gdb/7205
6298
6299 Replace target_signal with gdb_signal throughout.
6300
b09846a9
PA
63012012-05-24 Pedro Alves <palves@redhat.com>
6302
6303 PR tui/14159
6304
6305 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6306 string, instead of reusing the va_list argument.
6307
e77c107e
TT
63082012-05-24 Tom Tromey <tromey@redhat.com>
6309
6310 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6311 Remove.
6312
9fccedf7
DE
63132012-05-23 Doug Evans <dje@google.com>
6314
d50bd42b
DE
6315 * symtab.c (search_symbols): Formatting fixes.
6316 (print_symbol_info): Formatting fixes.
6317
9fccedf7
DE
6318 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6319 int64_t change to leb128 API.
6320 (read_encoded_value, decode_frame_entry_1): Ditto.
6321 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6322 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6323 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6324 (execute_stack_op): Ditto.
6325 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6326 (safe_read_uleb128, safe_read_sleb128): Ditto.
6327 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6328 (dwarf2_compile_expr_to_ax): Ditto.
6329 (locexpr_describe_location_piece): Ditto.
6330 (disassemble_dwarf_expression): Ditto.
6331 (locexpr_describe_location_1): Ditto.
6332
f3e0e960
SS
63332012-05-23 Stan Shebs <stan@codesourcery.com>
6334 Kwok Cheung Yeung <kcy@codesourcery.com>
6335
6336 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6337 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6338 (mi-cmd-info.o): New rule.
6339 * osdata.h (info_osdata_command): New declaration.
6340 * osdata.c (info_osdata_command): Change to non-static.
6341 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6342 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6343 * mi/mi-cmd-info.c: New file.
6344
c51fe631
DE
63452012-05-23 Doug Evans <dje@google.com>
6346
71cddcc1
DE
6347 * symtab.c (search_symbols): Pass NULL for file_matcher to
6348 expand_symtabs_matching if there are no files to match.
6349
c51fe631
DE
6350 * gdbtypes.c (lookup_typename): Simplify.
6351
a79378d4
PA
63522012-05-23 Pedro Alves <palves@redhat.com>
6353
6354 * arch-utils.h (default_target_signal_to_host): Delete.
6355 * arch-utils.c (default_target_signal_to_host): Delete.
6356 * gdbarch.sh (target_signal_to_host): Remove.
6357 * gdbarch.h, gdbarch.c: Regenerate.
6358
f664829e
DE
63592012-05-22 Doug Evans <dje@google.com>
6360
6361 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6362 "const gdb_byte *".
6363 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6364 (execute_cfa_program): Update to match API of leb128 functions.
6365 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6366 "const gdb_byte *".
6367 (read_unsigned_leb128, read_signed_leb128): Delete.
6368 (read_initial_length): Change type of buf argument to
6369 "const gdb_byte *".
6370 (read_encoded_value): Update to match API of leb128 functions.
6371 (decode_frame_entry): Change result to "const gdb_byte *", and
6372 similarly for "start" parameter.
6373 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6374 (dwarf2_build_frame_info): Change local frame_ptr to
6375 "const gdb_byte *".
6376 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6377 read_uleb128, read_sleb128. All callers updated.
6378 (safe_skip_leb128): New function.
6379 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6380 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6381 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6382 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6383 read_uleb128, read_sleb128.
6384 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6385 (execute_stack_op): Update to match API of leb128 functions.
6386 * dwarf2expr.h: #include "leb128.h".
6387 (read_uleb128, read_sleb128): Delete.
6388 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6389 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6390 * dwarf2loc.c (debug_loc_kind): New enum.
6391 (decode_debug_loc_addresses): New function.
6392 (decode_debug_loc_dwo_addresses): New function.
6393 (dwarf2_find_location_expression): Rewrite.
6394 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6395 (locexpr_describe_location_piece): Ditto.
6396 (disassemble_dwarf_expression): Ditto.
6397 (locexpr_describe_location_1): Ditto.
6398 (loclist_describe_location): Rewrite.
6399 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6400 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6401 (dwarf2_section_buffer_overflow_complaint): Renamed from
6402 dwarf2_macros_too_long_complaint. All callers updated.
6403 (skip_leb128): Delete.
6404 (init_cu_die_reader): Initialize reader->buffer_end.
6405 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6406 (skip_form_bytes): New arg buffer_end. All callers updated.
6407 Replace call to skip_leb128 with gdb_skip_leb128.
6408 (skip_unknown_opcode): New arg mac_end. All callers updated.
6409 (fill_in_loclist_baton): Initialize baton->from_dwo.
6410
837a1b32
MR
64112012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6412
6413 * mips-linux-nat.c (mips_linux_read_description): Use a more
6414 verbose error message.
6415
d0e64392
MR
64162012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6417
6418 * NEWS: Add MIPS/Linux DSP support.
6419 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6420 (SIGCONTEXT_DSPCTL): New macro.
6421 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6422 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6423 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6424 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6425 (N64_SIGCONTEXT_HI3): Likewise.
6426 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6427 (N64_SIGCONTEXT_LO3): Likewise.
6428 (N64_SIGCONTEXT_DSPCTL): Likewise.
6429 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6430 (mips_linux_o32_sigframe_init): Handle DSP registers.
6431 (mips_linux_n32n64_sigframe_init): Likewise.
6432
8bea7ed1
PM
64332012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6434
6435 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6436 call to abort.
6437
dab06dbe
PA
64382012-05-22 Pedro Alves <palves@redhat.com>
6439
6440 * target.h (store_waitstatus): Move declaration ...
6441 * inf-child.h (store_waitstatus): ... here.
6442 * target.c: Move inclusion of gdb_wait.h, and ...
6443 (store_waitstatus): ... this ...
6444 * inf-child.c: ... here.
6445 * linux-nat.c: Include inf-child.h.
6446 * rs6000-nat.c: Include inf-child.h.
6447 * spu-linux-nat.c: Include inf-child.h.
6448
43011e52
PM
64492012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6450
6451 * tracepoint.c (start_tracing): Add missing i18n markup.
6452 (stop_tracing, set_trace_user): Ditto.
6453 (set_trace_notes, set_trace_stop_notes): Ditto.
6454
b1af9e97
TT
64552012-05-21 Tom Tromey <tromey@redhat.com>
6456
6457 PR c++/7173:
6458 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6459 types.
6460 * value.h (value_cast_pointers): Update.
6461 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6462 (value_cast): Update.
6463 (update_search_result): New function.
6464 (do_search_struct_field): New, from search_struct_field. Check
6465 for ambiguous results.
6466 (search_struct_field): Rewrite.
6467 * infcall.c (value_arg_coerce): Update.
6468 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6469 value_cast_pointers.
6470 * ada-lang.c (ada_convert_actual): Update.
6471
e9e5e6b3
TT
64722012-05-21 Tom Tromey <tromey@redhat.com>
6473
6474 * macroexp.c (macro_stringify): Terminate the string.
6475
1564a261
JK
64762012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6477
6478 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6479 Describe it.
6480 * auto-load.c (auto_load_expand_dir_vars): New function.
6481 (auto_load_safe_path_vec_update): Use it, remove the
6482 substitute_path_component call thanks to it.
6483 (auto_load_objfile_script): Remove the debug_file_directory processing.
6484 Use auto_load_expand_dir_vars, remove the substitute_path_component
6485 call thanks to it.
6486 * configure: Regenerate.
6487 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6488 path. Escape $ also for $debugdir.
6489 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6490 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6491
a3ec0bb1
DE
64922012-05-20 Doug Evans <dje@google.com>
6493
6494 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6495 before use. Check for symtab->includes == NULL before scanning it.
6496
d467df4e
MR
64972012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6498
6499 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6500
4cc0665f
MR
65012012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6502
6503 * NEWS: Add microMIPS support and "set mips compression",
6504 "show mips compression" commands.
6505 * mips-tdep.h (mips_isa): New enum.
6506 (gdbarch_tdep): Add mips_isa.
6507 (mips_pc_is_mips16): Update prototype.
6508 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6509 * mips-tdep.c (mips_compression_mips16): New variable.
6510 (mips_compression_micromips): Likewise.
6511 (mips_compression_strings): Likewise.
6512 (mips_compression_string): Likewise.
6513 (is_mips16_isa, is_micromips_isa): New functions.
6514 (is_mips16_addr): Rename to...
6515 (is_compact_addr): ... this.
6516 (unmake_mips16_addr): Likewise to...
6517 (unmake_compact_addr): ... this.
6518 (make_mips16_addr): Likewise to...
6519 (make_compact_addr): ... this.
6520 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6521 functions.
6522 (mips_elf_make_msymbol_special): Handle microMIPS code.
6523 (msymbol_is_special): Rename to...
6524 (msymbol_is_mips16): ... this.
6525 (mips_make_symbol_special, mips_pc_is_mips16): Update
6526 accordingly.
6527 (msymbol_is_mips, msymbol_is_micromips): New functions.
6528 (mips16_to_32_reg): Rename to...
6529 (mips_reg3_to_reg): ... this.
6530 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6531 (mips_pc_isa): Likewise.
6532 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6533 code.
6534 (mips_fetch_instruction): Pass return status instead of printing
6535 an error message if requested. Handle microMIPS code. Bail out
6536 on an invalid ISA.
6537 (micromips_op): New macro.
6538 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6539 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6540 (b6s4_op, b7s3_reg): Likewise.
6541 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6542 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6543 (mips_insn_size): New function.
6544 (mips32_next_pc): Update mips_fetch_instruction call.
6545 (micromips_relative_offset7): New function.
6546 (micromips_relative_offset10): Likewise.
6547 (micromips_relative_offset16): Likewise.
6548 (micromips_pc_insn_size): Likewise.
6549 (micromips_bc1_pc): Likewise.
6550 (micromips_next_pc): Likewise.
6551 (unpack_mips16): Update mips_fetch_instruction call.
6552 (extended_mips16_next_pc): Update according to change to
6553 mips16_to_32_reg.
6554 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6555 code.
6556 (mips16_scan_prologue): Update mips_fetch_instruction call.
6557 Update according to change to mips16_to_32_reg.
6558 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6559 (mips_insn16_frame_base_sniffer): Likewise.
6560 (micromips_decode_imm9): New function.
6561 (micromips_scan_prologue): Likewise.
6562 (mips_micro_frame_cache): Likewise.
6563 (mips_micro_frame_this_id): Likewise.
6564 (mips_micro_frame_prev_register): Likewise.
6565 (mips_micro_frame_sniffer): Likewise.
6566 (mips_micro_frame_unwind): New variable.
6567 (mips_micro_frame_base_address): New function.
6568 (mips_micro_frame_base): New variable.
6569 (mips_micro_frame_base_sniffer): New function.
6570 (mips32_scan_prologue): Update mips_fetch_instruction call.
6571 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6572 rather than for MIPS16.
6573 (mips_insn32_frame_base_sniffer): Likewise.
6574 (mips_addr_bits_remove): Handle microMIPS code.
6575 (deal_with_atomic_sequence): Rename to...
6576 (mips_deal_with_atomic_sequence): ... this. Update the type
6577 of the variable used to hold an instruction. Remove the ISA bit
6578 check. Update mips_fetch_instruction call.
6579 (micromips_deal_with_atomic_sequence): New function.
6580 (deal_with_atomic_sequence): Likewise.
6581 (mips_about_to_return): Handle microMIPS code. Update
6582 mips_fetch_instruction call.
6583 (heuristic_proc_start): Check for the standard MIPS ISA rather
6584 than for MIPS16. Update mips_pc_is_mips16 and
6585 mips_fetch_instruction calls. Handle microMIPS code.
6586 (mips_push_dummy_code): Handle microMIPS code.
6587 (mips_eabi_push_dummy_call): Likewise.
6588 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6589 (mips_o64_push_dummy_call): Handle microMIPS code.
6590 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6591 (is_delayed): Remove function.
6592 (mips_single_step_through_delay): Replace the call to is_delayed
6593 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6594 Handle microMIPS code.
6595 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6596 microMIPS code.
6597 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6598 call.
6599 (micromips_in_function_epilogue_p): New function.
6600 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6601 call.
6602 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6603 Handle microMIPS.
6604 (gdb_print_insn_mips): Likewise.
6605 (mips_breakpoint_from_pc): Likewise.
6606 (mips_remote_breakpoint_from_pc): New function.
6607 (mips32_instruction_has_delay_slot): Simplify making use of the
6608 updated mips_fetch_instruction interface.
6609 (micromips_instruction_has_delay_slot): New function.
6610 (mips16_instruction_has_delay_slot): Simplify making use of the
6611 updated mips_fetch_instruction interface.
6612 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 6613 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
6614 calls. Handle microMIPS code.
6615 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6616 (mips_skip_trampoline_code): Handle microMIPS code.
6617 (global_mips_compression): New function.
6618 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6619 file flags. Register the microMIPS remote breakpoint handler
6620 and heuristic frame unwinder.
6621 (show_mips_compression): New function.
6622 (_initialize_mips_tdep): Add the "set mips compression" and
6623 "show mips compression" commands.
6624
22e048c9
SDJ
66252012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6626
6627 * ada-lang.c:
6628 * ada-tasks.c:
6629 * ada-varobj.c:
6630 * amd64-darwin-tdep.c:
6631 * arm-symbian-tdep.c:
6632 * arm-tdep.c:
6633 * avr-tdep.c:
6634 * ax-gdb.c:
6635 * bfin-linux-tdep.c:
6636 * breakpoint.c:
6637 * c-valprint.c:
6638 * cli/cli-cmds.c:
6639 * coffread.c:
6640 * cp-support.c:
6641 * cris-tdep.c:
6642 * dwarf2-frame-tailcall.c:
6643 * dwarf2-frame.c:
6644 * dwarf2expr.c:
6645 * dwarf2loc.c:
6646 * dwarf2read.c:
6647 * elfread.c:
6648 * eval.c:
6649 * expprint.c:
6650 * f-valprint.c:
6651 * frv-tdep.c:
6652 * h8300-tdep.c:
6653 * hppa-hpux-tdep.c:
6654 * hppa-tdep.c:
6655 * hppanbsd-tdep.c:
6656 * i386-nto-tdep.c:
6657 * i386-tdep.c:
6658 * i387-tdep.c:
6659 * ia64-tdep.c:
6660 * jit.c:
6661 * linespec.c:
6662 * linux-tdep.c:
6663 * lm32-tdep.c:
6664 * m2-valprint.c:
6665 * m32c-tdep.c:
6666 * m32r-rom.c:
6667 * m32r-tdep.c:
6668 * m68k-tdep.c:
6669 * m68klinux-tdep.c:
6670 * mi/mi-main.c:
6671 * microblaze-tdep.c:
6672 * mips-linux-tdep.c:
6673 * mips-tdep.c:
6674 * mn10300-tdep.c:
6675 * p-valprint.c:
6676 * parse.c:
6677 * ppc-linux-tdep.c:
6678 * ppc-sysv-tdep.c:
6679 * printcmd.c:
6680 * python/py-finishbreakpoint.c:
6681 * python/py-inferior.c:
6682 * python/py-infthread.c:
6683 * python/py-type.c:
6684 * python/python.c:
6685 * remote-fileio.c:
6686 * remote-m32r-sdi.c:
6687 * remote-mips.c:
6688 * reverse.c:
6689 * rl78-tdep.c:
6690 * rs6000-aix-tdep.c:
6691 * rs6000-tdep.c:
6692 * s390-tdep.c:
6693 * score-tdep.c:
6694 * sh64-tdep.c:
6695 * skip.c:
6696 * solib-darwin.c:
6697 * solib-dsbt.c:
6698 * solib-frv.c:
6699 * sparc-tdep.c:
6700 * spu-multiarch.c:
6701 * spu-tdep.c:
6702 * stack.c:
6703 * symfile.c:
6704 * symtab.c:
6705 * tic6x-tdep.c:
6706 * tracepoint.c:
6707 * v850-tdep.c:
6708 * valarith.c:
6709 * valprint.c:
6710 * value.c:
6711 * xcoffread.c:
6712 * xtensa-tdep.c:
6713 * ada-lang.c:
6714 * ada-tasks.c:
6715 * ada-varobj.c:
6716 * amd64-darwin-tdep.c:
6717 * arm-symbian-tdep.c:
6718 * arm-tdep.c: Delete unused variables.
6719
aff139ff
JK
67202012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6721
6722 Rename $ddir to $datadir.
6723 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6724 * auto-load.c (auto_load_safe_path_vec_update)
6725 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6726 * configure: Regenerate.
6727 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6728 Likewise. Remove the 'use $ddir' help string.
6729
f7bfa992
JK
67302012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6731
6732 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6733 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6734
9cb709b6
TT
67352012-05-18 Tom Tromey <tromey@redhat.com>
6736
6737 PR exp/13907:
6738 * valprint.h (struct value_print_options) <symbol_print>: New
6739 field.
6740 * valprint.c (user_print_options): Add default for symbol_print.
6741 (show_symbol_print): New function.
6742 (generic_val_print): Respect symbol_print.
6743 (_initialize_valprint): Add "print symbol" setting.
6744 * f-valprint.c (f_val_print): Respect symbol_print.
6745 * c-valprint.c (c_val_print): Respect symbol_print.
6746 * NEWS: Update.
6747 * printcmd.c (print_address_symbolic): Return int. Ignore some
6748 zero-size symbols.
6749 (print_address_demangle): Return int.
6750 * defs.h: (print_address_symbolic): Return int.
6751 * value.h (print_address_demangle): Return int.
6752
b012acdd
TT
67532012-05-18 Tom Tromey <tromey@redhat.com>
6754
6755 * valprint.c (val_print_string): Don't print leading space.
6756 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6757 print space before string or vtbl.
6758 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6759 before string.
6760 * jv-valprint.c (java_value_print): Print space before string.
6761 * go-valprint.c (print_go_string): Print space before string.
6762 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6763 space before string.
6764 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6765 space before string or vtbl.
6766 * auxv.c (fprint_target_auxv): Print space after address.
6767
1d51a733
TT
67682012-05-18 Tom Tromey <tromey@redhat.com>
6769
6770 * printcmd.c (print_address_demangle): Remove special case for 0.
6771
edf0c1b7
TT
67722012-05-18 Tom Tromey <tromey@redhat.com>
6773
6774 * printcmd.c (print_address_demangle): Add 'opts' argument.
6775 * p-valprint.c (pascal_val_print): Update.
6776 * jv-valprint.c (java_val_print): Update.
6777 * value.h: Update.
6778 * valprint.c (generic_val_print): Update.
6779 (print_function_pointer_address): Add 'options' argument. Remove
6780 'addressprint' argument. Update.
6781 * m2-valprint.c (print_unpacked_pointer): Update.
6782 * gnu-v3-abi.c (print_one_vtable): Update.
6783 (gnuv3_print_method_ptr): Update.
6784 * f-valprint.c (f_val_print): Update.
6785 * cp-valprint.c (cp_print_value_fields): Update.
6786 * valprint.h (print_function_pointer_address): Update.
6787 * c-valprint.c (c_val_print): Update.
6788
9703b513
TT
67892012-05-18 Tom Tromey <tromey@redhat.com>
6790
6791 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6792 directly corresponding to the found psymtab.
6793 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6794 (dw2_find_pc_sect_symtab): Use it.
6795 * block.h (blockvector_contains_pc): Declare.
6796 * block.c (find_block_in_blockvector): New function.
6797 (blockvector_for_pc_sect): Use it.
6798 (blockvector_contains_pc): New function.
6799
5a439849
MR
68002012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6801
6802 * mips-tdep.h (mips_write_pc): New prototype.
6803 * mips-tdep.c (mips_write_pc): Make external, add description.
6804 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6805 add description.
6806
8376de04
MR
68072012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6808
6809 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6810 mips_regnum->pc.
6811 (mips_unwind_pc, mips_write_pc): Likewise.
6812 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6813 gdbarch_read_pc.
6814
d3581e61
JB
68152012-05-17 Joel Brobecker <brobecker@adacore.com>
6816
6817 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6818 proc_warn, proc_error, proc_get_status, proc_flags,
6819 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6820 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6821 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6822 proc_stop_process, proc_wait_for_stop, proc_run_process,
6823 proc_set_traced_signals, proc_set_traced_faults,
6824 proc_set_traced_sysentry, proc_set_traced_sysexit,
6825 proc_set_held_signals, proc_get_held_signals,
6826 proc_get_traced_signals, proc_get_traced_faults,
6827 proc_get_traced_sysentry, proc_get_traced_sysexit,
6828 proc_clear_current_fault, proc_set_current_signal,
6829 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6830 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6831 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6832 proc_get_current_thread, proc_get_current_thread,
6833 proc_get_current_thread, proc_update_threads,
6834 proc_update_threads, proc_update_threads, proc_update_threads,
6835 proc_iterate_over_threads, procfs_find_new_threads,
6836 procfs_pid_to_str): Make static. Remove advance declaration.
6837 (proc_cursig): Make static. Conditionalized defintion on
6838 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6839 (proc_syscall, proc_set_kill_on_last_close,
6840 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6841 proc_get_pending_signals, proc_get_signal_actions,
6842 proc_trace_signal, proc_ignore_signal): Delete.
6843
81b9b86e
SDJ
68442012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6845
6846 * coffread.c (cs_section_address): Passing proper argument for
6847 `bfd_get_section_vma'.
6848 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6849 `bfd_get_section_flags'.
6850 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6851 `bfd_get_section_vma'.
6852
abc9d0dc
TT
68532012-05-16 Tom Tromey <tromey@redhat.com>
6854
6855 PR macros/13205:
6856 * macrotab.h: (macro_define_special): Declare.
6857 (enum macro_special_kind): New.
6858 (struct macro_definition) <argc, replacement>: Update comments.
6859 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6860 (macro_define_object_internal): New function.
6861 (macro_define_object): Use it.
6862 (macro_define_special): New function.
6863 (fixup_definition): New function.
6864 (macro_lookup_definition, foreach_macro_in_scope)
6865 (foreach_macro): Use fixup_definition.
6866 * macroexp.h (macro_stringify): Declare.
6867 * macroexp.c (free_buffer_return_text): New function.
6868 (stringify): Constify "arg".
6869 (macro_stringify): New function.
6870 * dwarf2read.c (macro_start_file): Call macro_define_special.
6871
6a3a010b 68722012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6873 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6874
6875 * breakpoint.h (bp_location): Add related_address member.
6876 * inferior.h (get_return_value): Take a pointer to struct value
6877 instead of struct type for the function requested.
6878 * value.h (using_struct_return): Likewise.
6879 * gdbarch.sh (return_value): Take a pointer to struct value
6880 instead of struct type for the function requested.
6881 * breakpoint.c (set_breakpoint_location_function): Initialize
6882 related_address for bp_gnu_ifunc_resolver breakpoints.
6883 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6884 requested function's address to gdbarch_return_value.
6885 * eval.c (evaluate_subexp_standard): Pass the requested
6886 function's address to using_struct_return.
6887 * infcall.c (call_function_by_hand): Pass the requested
6888 function's address to using_struct_return and
6889 gdbarch_return_value.
6890 * infcmd.c (get_return_value): Take a pointer to struct value
6891 instead of struct type for the function requested.
6892 (print_return_value): Update accordingly.
6893 (finish_command_continuation): Likewise.
6894 * stack.c (return_command): Pass the requested function's
6895 address to using_struct_return and gdbarch_return_value.
6896 * value.c (using_struct_return): Take a pointer to struct value
6897 instead of struct type for the function requested. Pass the
6898 requested function's address to gdbarch_return_value.
6899 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6900 New function_value member, replacing function_type.
6901 (bpfinishpy_dealloc): Update accordingly.
6902 (bpfinishpy_pre_stop_hook): Likewise.
6903 (bpfinishpy_init): Likewise. Record the requested function's
6904 address.
6905 * mips-tdep.c (mips_fval_reg): New enum.
6906 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6907 words put in GP registers.
6908 (mips_o64_push_dummy_call): Update a comment.
6909 (mips_o32_return_value): Take a pointer to struct value instead
6910 of struct type for the function requested and use it to check if
6911 using the MIPS16 calling convention. Return the designated
6912 general purpose registers for floating-point values returned in
6913 MIPS16 mode.
6914 (mips_o64_return_value): Likewise.
6915 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6916 (ppc_sysv_abi_broken_return_value): Likewise.
6917 (ppc64_sysv_abi_return_value): Likewise.
6918 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6919 value instead of struct type for the function requested.
6920 * amd64-tdep.c (amd64_return_value): Likewise.
6921 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6922 * arm-tdep.c (arm_return_value): Likewise.
6923 * avr-tdep.c (avr_return_value): Likewise.
6924 * bfin-tdep.c (bfin_return_value): Likewise.
6925 * cris-tdep.c (cris_return_value): Likewise.
6926 * frv-tdep.c (frv_return_value): Likewise.
6927 * h8300-tdep.c (h8300_return_value): Likewise.
6928 (h8300h_return_value): Likewise.
6929 * hppa-tdep.c (hppa32_return_value): Likewise.
6930 (hppa64_return_value): Likewise.
6931 * i386-tdep.c (i386_return_value): Likewise.
6932 * ia64-tdep.c (ia64_return_value): Likewise.
6933 * iq2000-tdep.c (iq2000_return_value): Likewise.
6934 * lm32-tdep.c (lm32_return_value): Likewise.
6935 * m32c-tdep.c (m32c_return_value): Likewise.
6936 * m32r-tdep.c (m32r_return_value): Likewise.
6937 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6938 * m68k-tdep.c (m68k_return_value): Likewise.
6939 (m68k_svr4_return_value): Likewise.
6940 * m88k-tdep.c (m88k_return_value): Likewise.
6941 * mep-tdep.c (mep_return_value): Likewise.
6942 * microblaze-tdep.c (microblaze_return_value): Likewise.
6943 * mn10300-tdep.c (mn10300_return_value): Likewise.
6944 * moxie-tdep.c (moxie_return_value): Likewise.
6945 * mt-tdep.c (mt_return_value): Likewise.
6946 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6947 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6948 (ppc_sysv_abi_broken_return_value): Likewise.
6949 (ppc64_sysv_abi_return_value): Likewise.
6950 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6951 * rl78-tdep.c (rl78_return_value): Likewise.
6952 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6953 * rx-tdep.c (rx_return_value): Likewise.
6954 * s390-tdep.c (s390_return_value): Likewise.
6955 * score-tdep.c (score_return_value): Likewise.
6956 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6957 (sh_return_value_fpu): Likewise.
6958 * sh64-tdep.c (sh64_return_value): Likewise.
6959 * sparc-tdep.c (sparc32_return_value): Likewise.
6960 * sparc64-tdep.c (sparc64_return_value): Likewise.
6961 * spu-tdep.c (spu_return_value): Likewise.
6962 * tic6x-tdep.c (tic6x_return_value): Likewise.
6963 * v850-tdep.c (v850_return_value): Likewise.
6964 * vax-tdep.c (vax_return_value): Likewise.
6965 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6966 * xtensa-tdep.c (xtensa_return_value): Likewise.
6967 * gdbarch.c: Regenerate.
6968 * gdbarch.h: Regenerate.
6969
29ca12b3
TT
69702012-05-15 Tom Tromey <tromey@redhat.com>
6971
6972 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6973
588ae58c
JB
69742012-05-15 Joel Brobecker <brobecker@adacore.com>
6975
6976 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6977 of command in two error message.
6978
855a6e68
JB
69792012-05-15 Joel Brobecker <brobecker@adacore.com>
6980
6981 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6982
d634f2de
JB
69832012-05-15 Joel Brobecker <brobecker@adacore.com>
6984
6985 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6986
9cc815f5
JK
69872012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6988
6989 * NEWS (show auto-load scripts-directory): Add forgotten command.
6990
6a609e58
JK
69912012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6992
6993 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6994 parameters.
6995
ac1438b5
L
69962012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6997
6998 * amd64-tdep.c: Include features/i386/x32.c and
6999 features/i386/x32-avx.c.
7000 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7001 initialize_tdesc_x32_avx.
7002
e7e0cddf
SS
70032012-05-14 Stan Shebs <stan@codesourcery.com>
7004
7005 Add dynamic printf.
7006 * breakpoint.h (enum bptype): New type bp_dprintf.
7007 (struct breakpoint): New field extra_string.
7008 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7009 (create_breakpoint): Add extra_string arg.
7010 * breakpoint.c (dprintf_breakpoint_ops): New.
7011 (is_breakpoint): Add bp_dprintf.
7012 (bpstat_what): Add dprintf case.
7013 (bptype_string): Ditto.
7014 (print_one_breakpoint_location): Ditto.
7015 (init_bp_location): Ditto.
7016 (bkpt_print_mention): Ditto.
7017 (dprintf_style_enums): New array.
7018 (dprintf_style): New global.
7019 (dprintf_function): New global.
7020 (dprintf_channel): New global.
7021 (update_dprintf_command_list): New function.
7022 (update_dprintf_commands): New function.
7023 (init_breakpoint_sal): Add extra_string argument, handle it.
7024 (create_breakpoint_sal): Add extra_string argument.
7025 (create_breakpoints_sal): Add extra_string argument, update callers.
7026 (find_condition_and_thread): Add extra argument.
7027 (create_breakpoint): Add extra_string argument, record it.
7028 (dprintf_command): New function.
7029 (break_command_1): Add arg to create_breakpoint call.
7030 (handle_gnu_v3_exceptions): Ditto.
7031 (trace_command): Ditto.
7032 (ftrace_command): Ditto.
7033 (strace_command): Ditto.
7034 (bkpt_print_mention): Add dprintf case.
7035 (create_breakpoint_sal_default): Add extra_string argument.
7036 (_initialize_breakpoint): Add new commands.
7037 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7038 * python/py-breakpoint.c (bppy_init): Ditto.
7039 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7040
8ae38c14
MR
70412012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7042
7043 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7044
9f676e66
SCR
70452012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7046
7047 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7048 unsigned long long.
7049
7efc75aa
SCR
70502012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7051
7052 Add a new function gdb.find_pc_line to the Python API.
7053 * NEWS (Python Scripting): Add entry about the new function.
7054 * python/python.c (gdbpy_find_pc_line): New function which
7055 implements gdb.find_pc_line.
7056 (GdbMethods): Add entry for the new function.
7057
70af3797
PA
70582012-05-12 Pedro Alves <palves@redhat.com>
7059
7060 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7061 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7062
06da564e
EZ
70632012-05-12 Eli Zaretskii <eliz@gnu.org>
7064
7065 * inferior.c: Include completer.h
7066 (initialize_inferiors): Set completer of add-inferior to
7067 filename_completer.
7068
0288cee2
L
70692012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7070
7071 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7072 gdbarch_ptr_bit for x32 core dump.
7073
f6537a2c
L
70742012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7075
7076 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7077 and features/i386/x32-avx-linux.c.
7078
85d4a676
SS
70792012-05-11 Stan Shebs <stan@codesourcery.com>
7080 Kwok Cheung Yeung <kcy@codesourcery.com>
7081
7082 * NEWS: Describe new info os commands.
7083 * common/linux-osdata.c (PID_T, TIME_T): Define.
7084 (MAX_PID_T_STRLEN): New.
7085 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7086 MAX_PID_T_STRLEN.
7087 (command_from_pid): Add comment. Change to use PID_T.
7088 (commandline_from_pid): Change to use PID_T.
7089 (user_from_pid): Add comment.
7090 (get_process_owner): Add comment. Change to use PID_T and
7091 MAX_PID_T_STRLEN.
7092 (get_number_of_cpu_cores): Add comment.
7093 (get_cores_used_by_process): Add comment. Change to use PID_T and
7094 MAX_PID_T_STRLEN.
7095 (linux_xfer_osdata_processes): Change to use PID_T and
7096 MAX_PID_T_STRLEN.
7097 (compare_processes): New function.
7098 (linux_xfer_osdata_processgroups): New function.
7099 (linux_xfer_osdata_threads): Change to use PID_T.
7100 (linux_xfer_osdata_fds): New function.
7101 (format_socket_state, print_sockets): New functions.
7102 (union socket_addr): New union.
7103 (linux_xfer_osdata_isockets): New function.
7104 (time_from_time_t, group_from_gid): New functions.
7105 (linux_xfer_osdata_shm): New function.
7106 (linux_xfer_osdata_sem): New function.
7107 (linux_xfer_osdata_msg): New function.
7108 (linux_xfer_osdata_modules): New function.
7109 (osdata_table): Add new entries.
7110 * common/buffer.c (buffer_xml_printf): Add support for long and
7111 long long format specifiers.
7112
f24afd6d
L
71132012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7114
7115 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7116 (tdesc_x32_avx_linux): Likewise.
7117
7349ff92
JK
71182012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7119
7120 Implement multi-component --with-auto-load-dir.
7121 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7122 entries.
7123 (--with-auto-load-safe-path): Update the default value description.
7124 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7125 New.
7126 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7127 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7128 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7129 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7130 "set auto-load scripts-directory".
7131 * config.in: Regenerate.
7132 * configure: Regenerate.
7133 * configure.ac (--with-auto-load-dir): New configure option.
7134 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7135
6dea1fbd
JK
71362012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7137
7138 Provide $ddir substitution for --with-auto-load-safe-path.
7139 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7140 entries.
7141 * auto-load.c: Include observer.h.
7142 (auto_load_safe_path_vec_update): Call substitute_path_component for
7143 each component. New variable ddir_subst.
7144 (auto_load_gdb_datadir_changed): New function.
7145 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7146 AUTO_LOAD_SAFE_PATH. New comment.
7147 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7148 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7149 * config.in: Regenerate.
7150 * configure: Regenerate.
7151 * configure.ac (--auto-load-safe-path): Rename
7152 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7153 GDB_DATADIR/auto-load.
7154 * defs.h (substitute_path_component): New declaration.
7155 * top.c: Include observer.h.
7156 (set_gdb_datadir): New function.
7157 (init_main): Install it for "set data-directory".
7158 * utils.c (substitute_path_component): New function.
7159
b09aca3a
JK
71602012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7161
7162 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7163 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7164 DEBUG_FILE_DIRECTORY. Handle multiple components of
7165 DEBUG_FILE_DIRECTORY.
7166
95554aad
TT
71672012-05-10 Tom Tromey <tromey@redhat.com>
7168
7169 * dwarf2read.c (recursively_write_psymbols): New function.
7170 (write_psymtabs_to_index): Use it.
7171
7172 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7173 field.
7174 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7175 (load_partial_comp_unit): Update.
7176 (queue_comp_unit): Add argument 'pretend_language'.
7177 (process_queue): Update.
7178 (psymtab_to_symtab_1): Skip dependencies that have a user.
7179 (load_partial_comp_unit_reader): Give meaning to the 'data'
7180 argument.
7181 (load_full_comp_unit): Add 'pretend_language' argument.
7182 (process_full_comp_unit): Add 'pretend_language' argument. Set
7183 language on CU.
7184 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7185 Update.
7186 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7187 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7188 Update.
7189 (prepare_one_comp_unit): Add 'pretend_language' argument.
7190
7191 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7192 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7193 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7194 (dw2_do_instantiate_symtab): Check whether symtab was read in
7195 before queueing.
7196 (dw2_instantiate_symtab): Add assertion. Call
7197 process_cu_includes.
7198 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7199 (partial_symtab_p): New typedef.
7200 (set_partial_user): New function.
7201 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7202 (scan_partial_symbols): Add imported CU to imported_symtabs.
7203 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7204 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7205 (get_symtab, recursively_compute_inclusions)
7206 (compute_symtab_includes, process_cu_includes)
7207 (process_imported_unit_die): New functions.
7208 (process_die) <DW_TAG_imported_unit>: New case.
7209 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7210
7211 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7212 comment.
7213 (struct partial_die_info) <locdesc>: Remove.
7214 <d>: New field.
7215 (process_psymtab_comp_unit): Add 'read_partial' argument.
7216 Update.
7217 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7218 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7219 (add_partial_symbol): Update.
7220 (process_die): Handle DW_TAG_partial_unit.
7221 (read_file_scope): Update comment.
7222 (load_partial_dies): Handle DW_TAG_imported_unit.
7223 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7224 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7225
e871fbb9
TT
72262012-05-10 Tom Tromey <tromey@redhat.com>
7227
7228 * cc-with-dwz.sh: New file.
7229
b5b04b5b
TT
72302012-05-10 Tom Tromey <tromey@redhat.com>
7231
7232 * symtab.h (struct symtab) <includes, user>: New fields.
7233 * block.h (struct block_iterator) <d, idx, which>: New fields.
7234 * block.c (initialize_block_iterator, find_iterator_symtab)
7235 (block_iterator_step, block_iter_name_step)
7236 (block_iter_match_step): New functions.
7237 (block_iterator_first, block_iterator_next)
7238 (block_iter_name_first, block_iter_name_next)
7239 (block_iter_match_first, block_iter_match_next): Rewrite.
7240 (get_block_symtab): New function.
7241
84a146c9
TT
72422012-05-10 Tom Tromey <tromey@redhat.com>
7243
7244 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7245 set_block_symtab.
7246 * jit.c (finalize_symtab): Use allocate_global_block,
7247 set_block_symtab.
7248 * buildsym.c (finish_block_internal): New function, from old
7249 finish_block.
7250 (finish_block): Rewrite.
7251 (end_symtab): Use finish_block_internal, set_block_symtab.
7252 * block.h (struct global_block): New.
7253 (allocate_global_block, set_block_symtab): Declare.
7254 * block.c (allocate_global_block, set_block_symtab): New
7255 functions.
7256
9439a077
TT
72572012-05-10 Tom Tromey <tromey@redhat.com>
7258
7259 * psymtab.c (partial_map_expand_apply): Add assertion.
7260 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7261 (psymtab_to_symtab): Find unshared psymtab.
7262 (dump_psymtab): Print including psymtabs.
7263 (recursively_search_psymtabs): New function.
7264 (expand_symtabs_matching_via_partial): Use it.
7265 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7266 fields.
7267 (enum psymtab_search_status): New.
7268
8157b174
TT
72692012-05-10 Tom Tromey <tromey@redhat.com>
7270
7271 * tracepoint.c (scope_info): Update.
7272 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7273 (find_pc_sect_symtab, search_symbols)
7274 (default_make_symbol_completion_list_break_on)
7275 (make_file_symbol_completion_list): Update.
7276 * symmisc.c (dump_symtab_1): Update.
7277 * stack.c (print_frame_args, iterate_over_block_locals)
7278 (print_frame_labels, iterate_over_block_arg_vars): Update.
7279 * python/py-block.c (block_object) <dict>: Remove.
7280 <block>: New field.
7281 <iter>: Change type.
7282 (blpy_iter): Update.
7283 (blpy_block_syms_iternext): Update.
7284 * psymtab.c (map_block): Use block iterators.
7285 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7286 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7287 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7288 * infrun.c (check_exception_resume): Update.
7289 * cp-support.c (make_symbol_overload_list_block): Update.
7290 * coffread.c (patch_opaque_types): Update.
7291 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7292 * block.h (struct block_iterator): New.
7293 (block_iterator_first, block_iterator_next, block_iter_name_first)
7294 (block_iter_name_next, block_iter_match_first)
7295 (block_iter_match_next): Declare.
7296 (ALL_BLOCK_SYMBOLS): Redefine.
7297 * block.c (block_iterator_first, block_iterator_next)
7298 (block_iter_name_first, block_iter_name_next)
7299 (block_iter_match_first, block_iter_match_next): New functions.
7300 * ada-lang.c (ada_add_block_symbols)
7301 (ada_make_symbol_completion_list): Use block iterator.
7302
a2ca7a52
TT
73032012-05-10 Tom Tromey <tromey@redhat.com>
7304
7305 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7306 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7307 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7308 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7309 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7310 Update.
7311
64ea88dc
JB
73122012-05-10 Joel Brobecker <brobecker@adacore.com>
7313
7314 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7315 print-file-var-lib2.c, print-file-var-main.c and
7316 print-file-var.exp (located in gdb/testsuite/gdb.base).
7317
99a547d6
JB
73182012-05-10 Joel Brobecker <brobecker@adacore.com>
7319
7320 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7321 try locating the symbol in the symbol's own objfile first, before
7322 extending the search to all objfiles.
7323 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7324 out of lookup_symbol_aux_symtabs.
7325 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7326 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7327 Do not search EXCLUDE_OBJFILE.
7328 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7329 (lookup_symbol_global): Search for matches in the block's objfile
7330 first, before searching all other objfiles.
7331
0ece64fd
TG
73322012-05-10 Tristan Gingold <gingold@adacore.com>
7333
7334 * printcmd.c (set_command): Add pre/post inc/dec.
7335
3d16a105
FCE
73362012-05-09 Frank Ch. Eigler <fche@redhat.com>
7337
7338 * gdb.1: Document -ex option.
7339
2efbc0f7
JB
73402012-05-09 Joel Brobecker <brobecker@adacore.com>
7341
7342 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7343 * inferior.h (AT_SYMBOL): Delete.
7344
2c76a0c7
JB
73452012-05-09 Joel Brobecker <brobecker@adacore.com>
7346
7347 * mips-tdep.c (mips_push_dummy_code): New function.
7348 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7349 ON_STACK and install mips_push_dummy_code as our gdbarch
7350 push_dummy_code routine.
7351
9401a810
PA
73522012-05-09 Pedro Alves <palves@redhat.com>
7353
7354 * target.c (set_maintenance_target_async_permitted): Rename to ...
7355 (set_target_async_command): ... this.
7356 (show_maintenance_target_async_permitted): Rename to ...
7357 (show_target_async_command): ... this.
7358 (initialize_targets): Adjust.
7359
3929b321
DE
73602012-05-08 Doug Evans <dje@google.com>
7361
7362 * go-exp.y (classify_name): Add missing assignment of fields of
7363 yylval.ssym.
7364
c41535fd
EZ
73652012-05-08 Eli Zaretskii <eliz@gnu.org>
7366
7367 Display the ">" prompt in interactive mode while reading canned
7368 commands, even when the current interpreter is MI.
7369
7370 * interps.c (interp_set_temp): New function.
7371
7372 * interps.h (interp_set_temp): Add prototype.
7373
7374 * cli/cli-script.c (restore_interp): New cleanup function.
7375 (read_command_lines): Temporarily override the current interpreter
7376 with CLI and arrange for restoring the original one.
7377
c0749c4d
JS
73782012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7379
7380 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7381
d7333987
SDJ
73822012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7383
7384 * probe.c (parse_probes): Move conditional to check for
7385 debuginfo files from here...
7386 * stap-probe.c (stap_get_probes): ... to here.
7387
649e6d92
MK
73882012-05-07 Mark Kettenis <kettenis@gnu.org>
7389 H.J. Lu <hongjiu.lu@intel.com>
7390
7391 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7392 `movl %esp, %ebp' for the X32 ABI.
7393
f39c6ffd
TT
73942012-05-07 Tom Tromey <tromey@redhat.com>
7395
7396 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7397 get_DW_TAG_name.
7398 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7399 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7400 (dwarf_stack_op_name): Remove.
7401 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7402 (decode_locdesc): Use get_DW_OP_name.
7403 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7404 (dwarf2_compile_expr_to_ax): Likewise.
7405 (disassemble_dwarf_expression): Likewise.
7406 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7407
1e1f6591
CLT
74082012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7409
7410 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7411 (sh_linux_sigtramp_cache): New function.
7412 (sh_linux_sigreturn_init): New function.
7413 (sh_linux_rt_sigreturn_init): New function.
7414 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7415 patterns.
7416 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7417 syscall codes.
7418 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7419 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7420 (sh_linux_init_abi): Add init calls to register new tramp_frame
7421 definitions under 32-bit SH, update comments.
7422
545c08b4
PA
74232012-05-07 Pedro Alves <palves@redhat.com>
7424
daac165e
PA
7425 PR gdb/10952
7426
545c08b4
PA
7427 * amd64-linux-tdep.c: Include glibc-tdep.h.
7428 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7429 gdbarch_skip_solib_resolver callback.
7430
af2c1515
JK
74312012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7432
7433 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7434 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7435 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7436 (add_auto_load_safe_path): Change the error message.
7437 (_initialize_auto_load): Change the "safe-path" help text.
7438 * configure: Regenerate
7439 * configure.ac (--without-auto-load-safe-path): Set
7440 WITH_AUTO_LOAD_SAFE_PATH to /.
7441
1067f998
SDJ
74422012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7443
7444 * stap-probe.h: Do not include unecessary `probe.h'.
7445
45dfa85a
AM
74462012-05-05 Alan Modra <amodra@gmail.com>
7447
7448 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7449 bfd_und_section_ptr.
7450 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7451 and bfd_com_section_ptr.
7452
cf093994
JB
74532012-05-04 Joel Brobecker <brobecker@adacore.com>
7454
762ebb75 7455 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 7456
d40dc7a8
JB
74572012-05-04 Joel Brobecker <brobecker@adacore.com>
7458
7459 * windows-nat.h (segment_register_p_ftype): New typedef.
7460 (windows_set_segment_register_p): Add declaration.
7461 * windows-nat.c (segment_register_p): New static global.
7462 (windows_set_segment_register_p): New function.
7463 (do_windows_fetch_inferior_registers): Add special handling
7464 for segment registers.
7465 * amd64-windows-nat.c: #include "amd64-tdep.h".
7466 (amd64_windows_segment_register_p): New function.
7467 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7468 * i386-windows-nat.c: #include "i386-tdep.h".
7469 (i386_windows_segment_register_p): New function.
7470 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7471
52b3699b
TG
74722012-05-04 Tristan Gingold <gingold@adacore.com>
7473
7474 * printcmd.c (set_command): Emit a warning if the expression is not
7475 an assignment.
7476
94c74239
JB
74772012-05-03 Joel Brobecker <brobecker@adacore.com>
7478
7479 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7480 Make static.
7481
fcf57f19
SDJ
74822012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7483
7484 * stap-probe.c (stap_is_operator): Change declaration.
7485 (stap_get_opcode): Change return value.
7486 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7487 `stap_parse_argument_1'.
7488
27d2932e
PA
74892012-05-03 Pedro Alves <pedro@codesourcery.com>
7490
7491 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7492 debug log.
7493
a20ee7a4
SCR
74942012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7495
7496 Add two new methods global_block and static_block to gdb.Symtab
7497 objects.
7498 * NEWS (Python scripting): Add entry about the new methods.
7499 * python/py-symtab.c (stpy_global_block): New function which
7500 implements the gdb.Symtab.global_block() method.
7501 (stpy_static_block): New function which implements the
7502 gdb.Symtab.static_block() method.
7503 (symtab_object_methods): Add entries for the two new methods.
7504
943cb756
DE
75052012-05-03 Doug Evans <dje@google.com>
7506
7507 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7508 files.
7509
f4644a3f
YQ
75102012-05-03 Yao Qi <yao@codesourcery.com>
7511
7512 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7513 space.
7514 (i386_process_record): Ditto.
7515
ef61f180
JB
75162012-05-02 Joel Brobecker <brobecker@adacore.com>
7517
7518 * infcall.c (unwind_on_signal_p): Make static.
7519
02f1df11
JB
75202012-05-02 Joel Brobecker <brobecker@adacore.com>
7521
7522 * sol-thread.c (solaris_pid_to_str): Make static.
7523 (_initialize_sol_thread): Add prototype.
7524
39023530
JB
75252012-05-02 Joel Brobecker <brobecker@adacore.com>
7526
7527 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7528
c6b0c501
CF
75292012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7530
7531 * MAINTAINERS: Remove myself.
7532
1ef71717
JK
75332012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7534
7535 Fix --without-auto-load-safe-path for MS-Windows host platform.
7536 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7537
b31b86a7
EZ
75382012-05-02 Eli Zaretskii <eliz@gnu.org>
7539
7540 * gdb_curses.h: Undefine KEY_EVENT before including curses
7541 headers. Move "#undef MOUSE_MOVED" before any curses header
7542 inclusion.
7543
777532fc
SDJ
75442012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7545
7546 * features/i386/i386-mmx-linux.c: Regenerate.
7547 * features/rs6000/powerpc-32.c: Likewise.
7548 * features/rs6000/powerpc-32l.c: Likewise.
7549 * features/rs6000/powerpc-403.c: Likewise.
7550 * features/rs6000/powerpc-403gc.c: Likewise.
7551 * features/rs6000/powerpc-405.c: Likewise.
7552 * features/rs6000/powerpc-505.c: Likewise.
7553 * features/rs6000/powerpc-601.c: Likewise.
7554 * features/rs6000/powerpc-602.c: Likewise.
7555 * features/rs6000/powerpc-603.c: Likewise.
7556 * features/rs6000/powerpc-604.c: Likewise.
7557 * features/rs6000/powerpc-64.c: Likewise.
7558 * features/rs6000/powerpc-64l.c: Likewise.
7559 * features/rs6000/powerpc-750.c: Likewise.
7560 * features/rs6000/powerpc-860.c: Likewise.
7561 * features/rs6000/powerpc-e500.c: Likewise.
7562 * features/rs6000/powerpc-e500l.c: Likewise.
7563 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7564 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7565 * features/rs6000/rs6000.c: Likewise.
7566
d71871bc
SDJ
75672012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7568
7569 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7570 variable.
7571 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7572 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7573 (stap_parse_argument) <e>: Likewise.
7574 (handle_stap_probe) <byte_order>: Likewise.
7575
fd820528
DE
75762012-04-30 Doug Evans <dje@google.com>
7577
7578 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7579 init_and_read_dies_worker. All callers updated.
7580 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7581 replaced with init_cutu_and_read_dies.
7582 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7583 (find_partial_die): Remove FIXME. Don't free current CU.
7584
ec3f619d 75852012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
7586
7587 * contrib: New directory.
7588 * contrib/test_pubnames_and_indexes.py: New file.
7589
fceca515
DE
75902012-04-30 Doug Evans <dje@google.com>
7591
7592 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7593 All callers updated.
7594 (init_cu_die_reader): Verify the section is non-empty.
7595 (dwarf_decode_line_header): Don't dereference section->asection
7596 until we know the section is present.
7597
311fe7e1
SDJ
75982012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7599
7600 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7601 probes.
7602
5977971a
YQ
76032012-04-29 Yao Qi <yao@codesourcery.com>
7604
7605 * gdb-code-style.el: New hook gdb-markup-hook
7606 and gdb-comment-hook.
7607
dee91e82
DE
76082012-04-28 Doug Evans <dje@google.com>
7609
3019eac3
DE
7610 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7611 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7612 objfile->obfd.
7613 * symfile.h (dwarf2_debug_sections): New member addr.
7614 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7615 (ctx_no_get_addr_index): New function.
7616 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7617 (ctx_no_get_addr_index): Declare.
7618 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7619 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7620 (dwarf_expr_ctx_funcs): Update.
7621 (needs_get_addr_index): New function.
7622 (needs_frame_ctx_funcs): Update.
7623 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7624 * dwarf2read.c: #include "gdbcore.h".
7625 (dwarf2_per_objfile): New members addr, dwo_files.
7626 (dwarf2_elf_names): Add entry for addr.
7627 (struct dwo_section_names): New type.
7628 (dwo_section_names): New static global.
7629 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7630 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7631 old debug_types_section member updated to use this.
7632 Rename member debug_types_section to info_or_types_section,
7633 all uses updated.
7634 (signatured_type): Rename member type_offset to type_offset_in_tu,
7635 all uses updated. New member type_offset_in_section.
7636 (struct dwo_sections): New type.
7637 (struct dwo_unit): New type.
7638 (struct dwo_file): New type.
7639 (die_reader_specs): New member dwo_file.
7640 (dwarf2_locate_sections): Watch for .debug_addr.
7641 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7642 (dwarf2_read_section): Get bfd of section from bfd's asection,
7643 instead of objfile.
7644 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7645 (create_signatured_type_table_from_index): Initialize
7646 sig_type->info_or_types_section.
7647 (dw2_get_file_names): Statement lists for type units with DWO files
7648 live in the DWO file.
7649 (create_debug_types_hash_table): New function.
7650 (create_all_type_units): Rewrite.
7651 (init_cu_die_reader): New arg dwo_file, all callers updated.
7652 (init_and_read_dies_worker): Get section from
7653 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7654 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7655 continue reading the CU/TU from there.
7656 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7657 updated. Get section from this_cu->info_or_types_section.
7658 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7659 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7660 DW_FORM_GNU_str_index.
7661 (hash_dwo_file, eq_dwo_file): New functions.
7662 (allocate_dwo_file_hash_table): New function.
7663 (hash_dwo_unit, eq_dwo_unit): New functions.
7664 (allocate_dwo_unit_table): New function.
7665 (dwarf2_locate_dwo_sections): New function.
7666 (struct create_dwo_info_table_data): New type.
7667 (create_debug_info_hash_table_reader): New function.
7668 (create_debug_info_hash_table): New function.
7669 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7670 (lookup_dwo_file): New function.
7671 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7672 (free_dwo_file, free_dwo_file_cleanup): New functions.
7673 (free_dwo_file_from_slot, free_dwo_files): New functions.
7674 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7675 (dwarf2_record_block_ranges): Ditto.
7676 (read_partial_die): Ditto.
7677 (process_enumeration_scope): Update to use type_offset_in_section.
7678 (read_full_die_1): New function.
7679 (read_full_die): Rewrite.
7680 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7681 DW_FORM_GNU_str_index.
7682 (read_addr_index_1, read_addr_index): New functions.
7683 (read_addr_index_from_leb128): New function.
7684 (struct dwarf2_read_addr_index_data): New type.
7685 (dwarf2_read_addr_index_reader): New function.
7686 (dwarf2_read_addr_index): New function.
7687 (read_str_index): New function.
7688 (leb128_size): New function.
7689 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7690 If processing a type unit from a DWO file, get the line section
7691 from the DWO file.
7692 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7693 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7694 DW_FORM_GNU_str_index.
7695 (lookup_die_type): Check whether section offset of type's die is
7696 known before looking it up. Remove assert. Condition can
7697 legimately happen for inter-cu type references.
7698 (dwarf_attr_name): Handle Fission attributes.
7699 (dwarf_form_name): Handle Fission forms.
7700 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7701 DW_FORM_GNU_str_index.
7702 (follow_die_sig): Update to use type_offset_in_section.
7703 (decode_locdesc): New case DW_OP_GNU_addr_index.
7704 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7705 DW_FORM_GNU_str_index.
7706 (cu_debug_loc_section): New function.
7707 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7708 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7709 Free DWO files if present.
7710 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7711
dee91e82
DE
7712 Refactor DIE reading.
7713 * dwarf2read.c (dwarf2_per_objfile): Replace members
7714 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7715 (die_reader_specs): New member "die_section". Temporarily make
7716 member "buffer" non-const, pending constifying all info_ptr uses.
7717 (die_reader_func_ftype): New typedef.
7718 (dw2_get_file_names_reader): New function.
7719 (dw2_get_file_names): Rewrite.
7720 (read_and_check_type_unit_head): Rename arg type_offset to
7721 type_offset_in_tu.
7722 (create_all_type_units): Improve debugging message.
7723 Improve dummy type unit check.
7724 (init_cu_die_reader): New arg "section". All callers updated.
7725 (init_and_read_dies_worker): New function.
7726 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7727 (init_cutu_and_read_dies_no_follow): New function.
7728 (init_cutu_and_read_dies_simple): New function.
7729 (process_psymtab_comp_unit_reader): New function.
7730 (process_psymtab_comp_unit): Delete args section,
7731 is_debug_types_section. Rewrite. All callers updated.
7732 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7733 All callers updated. Rewrite.
7734 (load_partial_comp_unit_reader): New function.
7735 (load_partial_comp_unit): Rewrite.
7736 (skip_children): New arg reader. Delete args buffer, cu.
7737 All callers updated.
7738 (skip_one_die): New arg reader. Delete args buffer, cu.
7739 All callers updated.
7740 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7741 All callers updated.
7742 (load_full_comp_unit_reader): New function.
7743 (load_full_comp_unit): Rewrite.
7744 (read_comp_unit): Delete.
7745 (read_die_and_children_1): Delete, contents moved ...
7746 (read_die_and_children): ... here.
7747 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7748 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7749 All callers updated.
7750 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7751 All callers updated.
7752 (find_partial_die): Rewrite load_all_dies support.
7753 (read_attribute_value): New arg reader. Delete args abfd, cu.
7754 All callers updated.
7755 (read_attribute): New arg reader. Delete args abfd, cu.
7756 All callers updated.
7757 (load_full_type_unit): Add assert.
7758 (read_signatured_type_reader): New function.
7759 (read_signatured_type): Rewrite.
7760 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7761 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7762 All callers updated. Set per_cu->cu = NULL after freeing it.
7763 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7764 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7765 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7766 (set_die_type): Update.
7767 (get_die_type_at_offset): Update.
7768 (read_file_scope): Call prepare_one_comp_unit.
7769 (read_type_unit_scope): Ditto.
7770 (prepare_one_comp_unit): Set producer if present.
7771
72d59e0d
SDJ
77722012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7773
7774 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7775 gettext function on `error'.
7776
0fefef59
DE
77772012-04-27 Doug Evans <dje@google.com>
7778
7779 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7780 is empty.
7781
28106bc2
SDJ
77822012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7783 Tom Tromey <tromey@redhat.com>
7784
7785 * breakpoint.c (struct breakpoint_objfile_data)
7786 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7787 <exception_probes>: New fields.
7788 (free_breakpoint_probes): New function.
7789 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7790 `_Unwind_DebugHook'.
7791 (create_exception_master_breakpoint): Likewise.
7792 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7793 * infrun.c: Including necessary header files for handling SystemTap
7794 probes.
7795 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7796 via SystemTap probes.
7797 (check_exception_resume): Remove `func' argument. Handle exception
7798 unwinding breakpoint set via a SystemTap probe.
7799 (insert_exception_resume_from_probe): New function.
7800
55aa24fb
SDJ
78012012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7802 Tom Tromey <tromey@redhat.com>
7803 Jan Kratochvil <jan.kratochvil@redhat.com>
7804
7805 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7806 (COMMON_OBS): Likewise.
7807 (HFILES_NO_SRCDIR): Add `probe'.
7808 * NEWS: Mention support for static and SystemTap probes.
7809 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7810 SystemTap probes' arguments parser.
7811 * arm-linux-tdep.c: Including headers needed to perform the parsing
7812 of SystemTap probes' arguments.
7813 (arm_stap_is_single_operand): New function.
7814 (arm_stap_parse_special_token): Likewise.
7815 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7816 probes' arguments parser.
7817 * ax-gdb.c (require_rvalue): Removing static declaration.
7818 (gen_expr): Likewise.
7819 * ax-gdb.h (gen_expr): Declaring function.
7820 (require_rvalue): Likewise.
7821 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7822 (bkpt_probe_breakpoint_ops): New variable.
7823 (momentary_breakpoint_from_master): Set the `probe' value.
7824 (add_location_to_breakpoint): Likewise.
7825 (break_command_1): Using proper breakpoint_ops according to the
7826 argument passed by the user in the command line.
7827 (bkpt_probe_insert_location): New function.
7828 (bkpt_probe_remove_location): Likewise.
7829 (bkpt_probe_create_sals_from_address): Likewise.
7830 (bkpt_probe_decode_linespec): Likewise.
7831 (tracepoint_probe_create_sals_from_address): Likewise.
7832 (tracepoint_probe_decode_linespec): Likewise.
7833 (tracepoint_probe_breakpoint_ops): New variable.
7834 (trace_command): Using proper breakpoint_ops according to the
7835 argument passed by the user in the command line.
7836 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7837 static probes on breakpoints and tracepoints.
7838 * breakpoint.h (struct bp_location) <probe>: New field.
7839 * cli-utils.c (skip_spaces_const): New function.
7840 (extract_arg): Likewise.
7841 * cli-utils.h (skip_spaces_const): Likewise.
7842 (extract_arg): Likewise.
7843 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7844 * configure.ac: Append `stap-probe.o' to be generated when ELF
7845 support is present.
7846 * configure: Regenerate.
7847 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7848 * elfread.c: Include `probe.h' and `arch-utils.h'.
7849 (probe_key): New variable.
7850 (elf_get_probes): New function.
7851 (elf_get_probe_argument_count): Likewise.
7852 (elf_evaluate_probe_argument): Likewise.
7853 (elf_compile_to_ax): Likewise.
7854 (elf_symfile_relocate_probe): Likewise.
7855 (stap_probe_key_free): Likewise.
7856 (elf_probe_fns): New variable.
7857 (elf_sym_fns): Add `sym_probe_fns' value.
7858 (elf_sym_fns_lazy_psyms): Likewise.
7859 (elf_sym_fns_gdb_index): Likewise.
7860 (_initialize_elfread): Initialize objfile cache for static
7861 probes.
7862 * gdb_vecs.h (struct probe): New forward declaration.
7863 (probe_p): New VEC declaration.
7864 * gdbarch.c: Regenerate.
7865 * gdbarch.h: Regenerate.
7866 * gdbarch.sh (stap_integer_prefix): New variable.
7867 (stap_integer_suffix): Likewise.
7868 (stap_register_prefix): Likewise.
7869 (stap_register_suffix): Likewise.
7870 (stap_register_indirection_prefix): Likewise.
7871 (stap_register_indirection_suffix): Likewise.
7872 (stap_gdb_register_prefix): Likewise.
7873 (stap_gdb_register_suffix): Likewise.
7874 (stap_is_single_operand): New function.
7875 (stap_parse_special_token): Likewise.
7876 (struct stap_parse_info): Forward declaration.
7877 * i386-tdep.c: Including headers needed to perform the parsing
7878 of SystemTap probes' arguments.
7879 (i386_stap_is_single_operand): New function.
7880 (i386_stap_parse_special_token): Likewise.
7881 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7882 probes' arguments parser.
7883 * i386-tdep.h (i386_stap_is_single_operand): New function.
7884 (i386_stap_parse_special_token): Likewise.
7885 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7886 * mipsread.c (ecoff_sym_fns): Likewise.
7887 * objfiles.c (objfile_relocate1): Support relocation for static
7888 probes.
7889 * parse.c (prefixify_expression): Remove static declaration.
7890 (initialize_expout): Likewise.
7891 (reallocate_expout): Likewise.
7892 * parser-defs.h (initialize_expout): Declare function.
7893 (reallocate_expout): Likewise.
7894 (prefixify_expression): Likewise.
7895 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7896 of SystemTap probes' arguments.
7897 (ppc_stap_is_single_operand): New function.
7898 (ppc_stap_parse_special_token): Likewise.
7899 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7900 probes' arguments parser.
7901 * probe.c: New file, for generic statically defined probe support.
7902 * probe.h: Likewise.
7903 * s390-tdep.c: Including headers needed to perform the parsing of
7904 SystemTap probes' arguments.
7905 (s390_stap_is_single_operand): New function.
7906 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7907 probes' arguments parser.
7908 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7909 * stap-probe.c: New file, for SystemTap probe support.
7910 * stap-probe.h: Likewise.
7911 * symfile.h: Include `gdb_vecs.h'.
7912 (struct sym_probe_fns): New struct.
7913 (struct sym_fns) <sym_probe_fns>: New field.
7914 * symtab.c (init_sal): Initialize `probe' field.
7915 * symtab.h (struct probe): Forward declaration.
7916 (struct symtab_and_line) <probe>: New field.
7917 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7918 locations.
7919 (stop_tracing): Likewise.
7920 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7921
22d2b532
SDJ
79222012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7923 Tom Tromey <tromey@redhat.com>
7924
7925 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7926 and to compile agent expressions.
7927 * infrun.c (siginfo_make_value): New argument `ignore'.
7928 (siginfo_funcs): New struct.
7929 (_initialize_infrun): New argument when calling
7930 `create_internalvar_type_lazy'.
7931 * thread.c (thread_id_make_value): New argument `ignore'.
7932 (thread_funcs): New struct.
7933 (_initialize_thread): New argument when calling
7934 `create_internalvar_type_lazy'.
7935 * tracepoint.c (sdata_make_value): New argument `ignore'.
7936 (sdata_funcs): New struct.
7937 (_initialize_tracepoint): New argument when calling
7938 `create_internalvar_type_lazy'.
7939 * value.c (make_value): New struct.
7940 (create_internalvar_type_lazy): New argument `data'.
7941 (compile_internalvar_to_ax): New function.
7942 (value_of_internalvar): Properly handling `make_value' case.
7943 (clear_internalvar): Likewise.
7944 (show_convenience): Adding `TRY_CATCH' block.
7945 * value.h (internalvar_make_value): Delete, replace by...
7946 (struct internalvar_funcs): ... this.
7947 (create_internalvar_type_lazy) <fun>: Delete argument.
7948 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7949 (compile_internalvar_to_ax): New function.
7950 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7951 (tlb_funcs): New struct.
7952 (_initialize_windows_tdep): New argument when calling
7953 `create_internalvar_type_lazy'.
7954
91da1414
MW
79552012-04-27 Mark Wielaard <mjw@redhat.com>
7956
7957 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7958 see whether it is an address or a constant offset from DW_AT_low_pc.
7959 (dwarf2_record_block_ranges): Likewise.
7960 (read_partial_die): Likewise.
7961
4ab9d8ec
MW
79622012-04-26 Mark Wielaard <mjw@redhat.com>
7963
7964 * MAINTAINERS (Write After Approval): Add myself to the list.
7965
a0911fd0
MR
79662012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7967
7968 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7969 (proc_prettyprint_signal): Likewise.
7970 (proc_prettyprint_faultset): Likewise.
7971 (proc_prettyprint_fault): Likewise.
7972 (proc_prettyprint_actionset): Likewise.
7973 (proc_prettyprint_flags): Move to new proc-flags.c section.
7974 (proc_prettyfprint_flags): New prototype.
7975 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7976 (proc_syscall, proc_cursig): Likewise.
7977 (proc_set_kill_on_last_close): Likewise.
7978 (proc_unset_kill_on_last_close): Likewise.
7979 (proc_set_watchpoint): Make static.
7980 (proc_delete_dead_threads): Likewise.
7981 (procfs_set_watchpoint): Likewise.
7982 (_initialize_procfs): Add prototype.
7983 * proc-events.c: Include proc-utils.h.
7984 (init_syscall_table): Make static.
7985 * proc-api.c (_initialize_proc_api): Add prototype.
7986 * proc-flags.c: Include proc-utils.h.
7987
9009e1ae
MR
79882012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7989
7990 * configure.ac: Add AC_ARG_PROGRAM.
7991 * configure: Regenerate.
7992
4fae6e18
JK
79932012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7994
7995 Fix DW_AT_lower_bound defaults for DWARF-4+.
7996 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7997 high. New variable low_default_is_valid. Implement DWARF-4+
7998 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7999 no default by the DWARF standard.
8000
14132e89 80012012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 8002 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
8003
8004 * infrun.c (handle_inferior_event): Move the check for return
8005 trampolines ahead of the check for function trampolines.
8006 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8007 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8008 (mips_str_mips16_ret_stub): Likewise.
8009 (mips_str_call_fp_stub): Likewise.
8010 (mips_str_call_stub): Likewise.
8011 (mips_str_fn_stub): Likewise.
8012 (mips_str_pic): Likewise.
8013 (mips_in_frame_stub): New function.
8014 (mips_unwind_pc): Return the return address rather than the PC
8015 if the PC of an intermediate frame is inside a call thunk.
8016 (mips_is_stub_suffix): New function.
8017 (mips_is_stub_mode): Likewise.
8018 (mips_get_mips16_fn_stub_pc): Likewise.
8019 (mips_skip_mips16_trampoline_code): Update to handle all the
8020 currently generated stub types. Don't recurse into __fn_stub
8021 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8022 Use cooked register accesses.
8023 (mips_in_return_stub): Reintroduce function.
8024 (mips_skip_trampoline_code): Traverse trampolines recursively.
8025 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8026
518f0db5 80272012-04-26 Joel Brobecker <brobecker@adacore.com>
8028
8029 GDB 7.4.1 released.
8030
3184d3f9
JL
80312012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8032
8033 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8034 * features/arm-with-m-vfp-d16.xml: New file. Describes
8035 Cortex-M with VFPv4-sp-d16 FPU register layout.
8036 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8037 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8038 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8039 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8040 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8041
b6201d44
DE
80422012-04-25 Doug Evans <dje@google.com>
8043
8044 * cli/cli-decode.c (print_doc_line): Use stream instead of
8045 current_uiout.
8046
4e2f8df6
SDJ
80472012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8048
8049 * features/arm-with-iwmmxt.c: Regenerate.
8050 * features/arm-with-m-fpa-layout.c: Likewise.
8051 * features/arm-with-m.c: Likewise.
8052 * features/arm-with-neon.c: Likewise.
8053 * features/arm-with-vfpv2.c: Likewise.
8054 * features/arm-with-vfpv3.c: Likewise.
8055 * features/mips-dsp-linux.c: Likewise.
8056 * features/mips-linux.c: Likewise.
8057 * features/mips64-dsp-linux.c: Likewise.
8058 * features/mips64-linux.c: Likewise.
8059 * features/s390-linux32.c: Likewise.
8060 * features/s390-linux32v1.c: Likewise.
8061 * features/s390-linux32v2.c: Likewise.
8062 * features/s390-linux64.c: Likewise.
8063 * features/s390-linux64v1.c: Likewise.
8064 * features/s390-linux64v2.c: Likewise.
8065 * features/s390x-linux64.c: Likewise.
8066 * features/s390x-linux64v1.c: Likewise.
8067 * features/s390x-linux64v2.c: Likewise.
8068 * features/tic6x-c62x-linux.c: Likewise.
8069 * features/tic6x-c62x.c: Likewise.
8070 * features/tic6x-c64x-linux.c: Likewise.
8071 * features/tic6x-c64x.c: Likewise.
8072 * features/tic6x-c64xp-linux.c: Likewise.
8073 * features/tic6x-c64xp.c: Likewise.
8074 * target-descriptions.c: Only generate `field_type' and `type'
8075 variables when needed.
8076
2def3e66
JB
80772012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8078
8079 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8080
a766d390
DE
80812012-04-25 Doug Evans <dje@google.com>
8082
8083 Initial pass at Go language support.
8084 * NEWS: Mention Go.
8085 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8086 go-valprint.c.
8087 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8088 (YYFILES): Add go-exp.c.
8089 (YYOBJ): Add go-exp.o.
8090 (local-maintainer-clean): Delete go-exp.c.
8091 * defs.h (enum language): Add language_go.
8092 * dwarf2read.c: #include "go-lang.h".
8093 (fixup_go_packaging): New function.
8094 (process_full_comp_unit): Call it when processing Go CUs.
8095 (dwarf2_physname): Add Go support.
8096 (read_file_scope): Handle missing language spec for GNU Go.
8097 (set_cu_language): Handle DW_LANG_Go.
8098 * go-exp.y: New file.
8099 * go-lang.h: New file.
8100 * go-lang.c: New file.
8101 * go-typeprint.c: New file.
8102 * go-valprint.c: New file.
8103 * symtab.c: #include "go-lang.h".
8104 (symbol_set_language): Handle language_go.
8105 (symbol_find_demangled_name, symbol_set_names): Ditto.
8106 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8107
4e2af517
JM
81082012-04-24 Jim Meyering <meyering@redhat.com>
8109
8110 avoid a few strncpy-induced buffer overruns
8111 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8112 fname and psargs before trying to concatenate.
8113 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8114 "name" before applying strchr.
8115
b77b7f52
SCR
81162012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8117
8118 * CONTRIBUTE: Use unified diff instead of context diff when
8119 generating patches.
8120
6321c22a
MR
81212012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8122
8123 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8124 code. Handle JR.HB correctly.
8125
742c84f6
MR
81262012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8127
8128 * mips-tdep.c
8129 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8130 with the other MIPS16 helpers.
8131
7fc7e0c3
SDJ
81322012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8133
8134 * observer.sh: Conditionally declare `args', thus cleaning up
8135 unused instances of this variable.
8136
20388dd6
YQ
81372012-04-24 Yao Qi <yao@codesourcery.com>
8138
8139 Revert this patch to allow breakpoint always-inserted
8140 in record target.
8141 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
8142 * breakpoint.c: Include record.h.
8143 (breakpoints_always_inserted_mode): Return false when the record
8144 target is in use.
20388dd6
YQ
8145
8146 * breakpoint.c (iterate_over_bp_locations): New.
8147 * breakpoint.h: Declare.
8148 New typedef walk_bp_location_callback.
8149 * record.c (record_open): Call record_init_record_breakpoints.
8150 (record_sync_record_breakpoints): New.
8151 (record_init_record_breakpoints): New.
8152 * NEWS: Mention supporting breakpoint always-inserted mode in
8153 record target.
8154
4734f50e
MK
81552012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8156
8157 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8158 any thread.
8159
c326b90e
YQ
81602012-04-24 Yao Qi <yao@codesourcery.com>
8161
8162 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8163 (is_catchpoint): ... it.
8164 (print_one_breakpoint_location): Caller update.
8165 * breakpoint.h: Update declaration.
8166
d8fb5a1e
DM
81672012-04-23 David S. Miller <davem@davemloft.net>
8168
8169 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8170
34431a2a
TT
81712012-04-23 Tom Tromey <tromey@redhat.com>
8172
8173 * buildsym.c (add_free_pendings): Remove.
8174 * buildsym.h (add_free_pendings): Remove.
8175
4568ecf9
DE
81762012-04-23 Doug Evans <dje@google.com>
8177
8178 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8179 attr.u.unsnd instead of attr.u.addr.
8180 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8181 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8182 DW_FORM_ref_udata.
8183 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8184 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8185 DW_FORM_ref_udata.
8186 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8187
dca9aa3a
MR
81882012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8189
8190 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8191 (mips_o32_return_value): Likewise.
8192 (mips_o64_return_value): Likewise.
8193
c8ea1972
PH
81942012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8195
8196 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
8197 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8198 their treatment in eval.c.
c8ea1972 8199
8d1b3521
DM
82002012-04-21 David S. Miller <davem@davemloft.net>
8201
8202 * sparc-tdep.c (X_DISP10): Define.
8203 (sparc_analyze_control_transfer): Handle compare-and-branch.
8204
03145bf4
JL
82052012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8206
8207 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8208 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8209
004159a2 82102012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 8211 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
8212
8213 * mips-tdep.c (mips_float_register_p): New function.
8214 (mips_convert_register_float_case_p): Use mips_float_register_p.
8215 (mips_register_type): Likewise.
8216 (mips_print_register): Likewise.
8217 (print_gp_register_row): Likewise.
8218 (mips_print_registers_info): Likewise.
8219
7f0e6aae
MR
82202012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8221
8222 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8223 of mips16 symbols.
8224
bc17beea
AP
82252012-04-20 Andrew Pinski <apinski@cavium.com>
8226
8227 * MAINTAINERS (Write After Approval): Add myself to the list.
8228
1730a5a5
SDJ
82292012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8230
8231 * MAINTAINERS: Update my e-mail address.
8232
38ea300a
PA
82332012-04-20 Pedro Alves <palves@redhat.com>
8234
8235 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8236 $srcdir.
8237 * configure: Regenerate.
8238
111dfaae
SDJ
82392012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8240
8241 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8242 declaration.
8243 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8244
4fb2c64a
JK
82452012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8246
8247 Fix compilation compatibility with python-2.4
8248 * python/py-type.c (convert_field): Cast ADDRSTRING for
8249 PyObject_SetAttrString as non-const. New comment.
8250
6328eb38
TT
82512012-04-19 Tom Tromey <tromey@redhat.com>
8252
8253 * top.c (quit_target): Use all_cleanups.
8254 * main.c (captured_command_loop): Use all_cleanups.
8255 * exceptions.c (throw_exception): Use all_cleanups.
8256
c971b7fa
PA
82572012-04-19 Pedro Alves <palves@redhat.com>
8258
8259 * Makefile.in (GNULIB_BUILDDIR): New.
8260 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8261 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8262 (CLEANDIRS). Remove gnulib/import.
8263 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8264 (all-lib): Ditto.
8265 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8266 (gnulib/import/Makefile): Replace gnulib/import with
8267 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8268 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8269 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8270 acx_configure_dir.m4.
8271 * acinclude.m4: Include acx_configure_dir.m4.
8272 * acx_configure_dir.m4: New file.
8273 * aclocal.m4: Regenerate.
a09130f9
PA
8274 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8275 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8276 (GNULIB): New variable.
8277 (GNULIB_STDINT_H): Adjust.
8278 (AC_OUTPUT): Don't output gnulib/Makefile.
8279 * gdb/defs.h: Include build-gnulib/config.h.
8280 * aclocal.m4: Regenerate.
8281 * config.in: Regenerate.
8282 * configure: Regenerate.
8283
8284 * gnulib/Makefile.in: New file.
8285 * gnulib/configure.ac: New file.
8286 * gnulib/aclocal.m4: New file.
8287 * gnulib/config.in: New file.
8288 * gnulib/configure: New file.
c971b7fa
PA
8289 * gnulib/: Re-run gnulib-tool to adjust.
8290
b10faa68
DE
82912012-04-19 Doug Evans <dje@google.com>
8292
8293 * cleanups.h (struct cleanup): Move to cleanups.c.
8294 (make_cleanup_dtor_ftype): New typedef.
8295 (make_cleanup_dtor): Use it.
8296 (ALL_CLEANUPS): Replace with ...
8297 (all_cleanups): ... this. Declare. All uses updated.
8298 * cleanups.c: #include "gdb_assert.h".
8299 (sentinel_cleanup): New static global.
8300 (SENTINEL_CLEANUP): Define.
8301 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8302 (make_my_cleanup2): Assert result is non-NULL.
8303 (all_cleanups): New function.
8304 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8305 of NULL.
8306
d8c267cc
PA
83072012-04-19 Pedro Alves <palves@redhat.com>
8308
8309 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8310 Adjust paths to gnulib imported files.
8311
809277f8
PA
83122012-04-19 Pedro Alves <palves@redhat.com>
8313
8314 * gnulib/: Move whole directory ...
8315 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8316 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8317 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8318 (aclocal_m4_deps): Adjust.
8319 * aclocal.m4: Regenerate.
8320 * configure: Regenerate.
8321 * configure.ac: Adjust AC_OUTPUT output.
8322
aad9eab9
YQ
83232012-04-19 Yao Qi <yao@codesourcery.com>
8324
8325 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8326 (vec.o): New rule.
8327 * vec.c: Move it ...
8328 * common/vec.c: ... here.
8329 * vec.h: Move it ...
8330 * common/vec.h: ... here.
8331
48fe4669
YQ
83322012-04-19 Yao Qi <yao@codesourcery.com>
8333
8334 * gdb-code-style.el: New.
8335
770d76d7
PA
83362012-04-18 Pedro Alves <palves@redhat.com>
8337
8338 Update gnulib from latest git.
8339 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8340
8341 * gnulib/Makefile.am: Update.
8342 * gnulib/dummy.c: Update.
8343 * gnulib/extra/arg-nonnull.h: Update.
8344 * gnulib/extra/c++defs.h: Update.
8345 * gnulib/extra/update-copyright: Update.
8346 * gnulib/extra/warn-on-use.h: Update.
8347 * gnulib/inttypes.in.h: Update.
8348 * gnulib/m4/00gnulib.m4: Update.
8349 * gnulib/m4/extensions.m4: Update.
8350 * gnulib/m4/gnulib-cache.m4: Update.
8351 * gnulib/m4/gnulib-common.m4: Update.
8352 * gnulib/m4/gnulib-comp.m4: Update.
8353 * gnulib/m4/gnulib-tool.m4: Update.
8354 * gnulib/m4/include_next.m4: Update.
8355 * gnulib/m4/inttypes-pri.m4: Update.
8356 * gnulib/m4/inttypes.m4: Update.
8357 * gnulib/m4/longlong.m4: Update.
8358 * gnulib/m4/memchr.m4: Update.
8359 * gnulib/m4/memmem.m4: Update.
8360 * gnulib/m4/mmap-anon.m4: Update.
8361 * gnulib/m4/multiarch.m4: Update.
8362 * gnulib/m4/onceonly.m4: Update.
8363 * gnulib/m4/stddef_h.m4: Update.
8364 * gnulib/m4/stdint.m4: Update.
8365 * gnulib/m4/string_h.m4: Update.
8366 * gnulib/m4/warn-on-use.m4: Update.
8367 * gnulib/m4/wchar_h.m4: Update.
8368 * gnulib/m4/wchar_t.m4: Update.
8369 * gnulib/m4/wint_t.m4: Update.
8370 * gnulib/memchr.c: Update.
8371 * gnulib/memmem.c: Update.
8372 * gnulib/stddef.in.h: Update.
8373 * gnulib/stdint.in.h: Update.
8374 * gnulib/str-two-way.h: Update.
8375 * gnulib/string.in.h: Update.
8376 * gnulib/wchar.in.h: Update.
8377
8378 * gnulib/extra/arg-nonnull.h: Delete.
8379 * gnulib/extra/c++defs.h: Delete.
8380 * gnulib/extra/warn-on-use.h: Delete.
8381 * gnulib/m4/wchar_h.m4: Delete.
8382 * gnulib/m4/wint_t.m4: Delete.
8383 * gnulib/wchar.in.h: Delete.
8384
8385 * gnulib/extra/snippets/arg-nonnull.h: New.
8386 * gnulib/extra/snippets/c++defs.h: New.
8387 * gnulib/extra/snippets/warn-on-use.h: New.
8388
8389 * aclocal.m4: Regenerate.
8390 * config.in: Regenerate.
8391 * configure: Regenerate.
8392 * gnulib/Makefile.in: Regenerate.
8393
174e088e
PA
83942012-04-18 Pedro Alves <palves@redhat.com>
8395
8396 Reimport the update-copyright module from gnulib
8397 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8398
8399 * configure: Regenerate.
8400 * gnulib/Makefile.am: Update.
8401 * gnulib/Makefile.in: Regenerate.
8402 * gnulib/extra/update-copyright: Update.
8403 * gnulib/m4/gnulib-cache.m4: Update.
8404 * gnulib/m4/gnulib-comp.m4: Update.
8405
7f533142
JB
84062012-04-18 Tristan Gingold <gingold@adacore.com>
8407
8408 * configure.ac (aix): Put -lpthread into libs.
8409 * configure: Regenerate.
8410
001822aa
TT
84112012-04-18 Tom Tromey <tromey@redhat.com>
8412
8413 * linespec.c (convert_linespec_to_sals): Don't use
8414 SYMBOL_OBJ_SECTION.
8415 (compare_msymbols): Arguments are minsym_and_objfile, not
8416 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8417
db026a31
PA
84182012-04-18 Pedro Alves <palves@redhat.com>
8419
8420 Revert gnulib/ part of:
8421 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8422 Copyright year update in most files (performed by copyright.sh).
8423
12df843f
JK
84242012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8425
8426 Fix 64-bit constants on 32-bit hosts.
8427 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8428 from unsigned long to ULONGEST.
8429 (read_signed_leb128): Change declaration return type from long to
8430 LONGEST.
8431 (dwarf2_const_value_attr): Change declaration parameter value from long
8432 to LONGEST.
8433 (dwarf2_compute_name): Change variable value from long to LONGEST.
8434 (read_unsigned_leb128): Change return type, variable result and some
8435 casts from unsigned long to ULONGEST.
8436 (read_signed_leb128): Change return type, variable result and some
8437 casts from long to LONGEST.
8438 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8439 value from long to LONGEST.
8440 (dwarf2_const_value): Change variable value from long to LONGEST.
8441 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8442 plongest and hex_string.
8443 * symtab.h (struct general_symbol_info): Change ivalue from long to
8444 LONGEST, remove the comment.
8445 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8446 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8447
14e75d8e
JK
84482012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8449
8450 PR symtab/7259:
8451 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8452 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
8453 (ada_discrete_type_low_bound): Fix function comment. Use
8454 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
8455 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8456 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8457 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8458 Use TYPE_FIELD_ENUMVAL.
8459 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8460 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8461 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8462 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8463 TYPE_CODE_ENUM.
8464 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8465 * dwarf2read.c (process_enumeration_scope): Likewise.
8466 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8467 field.bitpos.
8468 (class StructMainTypePrettyPrinter): Support also
8469 FIELD_LOC_KIND_ENUMVAL.
8470 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8471 TYPE_CODE_ENUM.
8472 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8473 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8474 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8475 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8476 field enumval.
8477 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8478 accommodate enumval.
8479 (struct call_site): Adjust loc_kind to accommodate enumval.
8480 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8481 (TYPE_FIELD_ENUMVAL): New macros.
8482 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8483 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8484 TYPE_CODE_ENUM.
8485 * p-typeprint.c (pascal_type_print_base): Likewise.
8486 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8487 enumval.
8488 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8489 * python/py-type.c (convert_field): New variable addrstring. Use
8490 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8491 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8492 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8493 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8494 TYPE_CODE_ENUM.
8495 * valprint.c (generic_val_print): Likewise.
8496
380bca97
DE
84972012-04-17 Doug Evans <dje@google.com>
8498
dcc07052
DE
8499 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8500
380bca97
DE
8501 * dwarf2read.c: Whitespace fixes.
8502 (lookup_signatured_type): Tweak comment.
8503 (get_die_type_at_offset): Fix comment.
8504
ec92004f
JB
85052012-04-17 Joel Brobecker <brobecker@adacore.com>
8506
8507 * xcoffread.c (xcoff_secnum_to_sections): New function.
8508 (secnum_to_section, secnum_to_bfd_section): Reimplement
8509 using xcoff_secnum_to_sections. Rename "secnum" parameter
8510 into "n_scnum".
8511 (RECORD_MINIMAL_SYMBOL): Delete.
8512 (record_minimal_symbol): New function.
8513 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8514 by call to record_minimal_symbol and set misc_func_recorded
8515 to 1. Set last_csect_sec to the XCOFF section index instead
8516 of GDB's section_offset index. Update calls to
8517 prim_record_minimal_symbol_and_info to pass the BFD section
8518 as well.
8519
40301fb7
JB
85202012-04-17 Joel Brobecker <brobecker@adacore.com>
8521
8522 * xcoffread.c (read_xcoff_symtab): Delete variables
8523 last_csect_val and last_csect_sec and associated code.
8524
e0088cfd
DE
85252012-04-17 Doug Evans <dje@google.com>
8526
58d5e2c3
DE
8527 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8528 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8529 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8530 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8531
c27f5738
DE
8532 * cleanups.h: New file.
8533 * cleanups.c: New file.
8534 * Makefile.in (SFILES): Add cleanups.c.
8535 (HFILES_NO_SRCDIR): Add cleanups.h.
8536 (COMMON_OBS): Add cleanups.o.
8537 * defs.h (struct cleanup): Moved to cleanups.h.
8538 (do_cleanups,do_final_cleanups): Ditto.
8539 (discard_cleanups,discard_final_cleanups): Ditto
8540 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8541 (save_cleanups,save_final_cleanups): Ditto.
8542 (restore_cleanups,restore_final_cleanups): Ditto.
8543 (null_cleanup): Ditto.
8544 (make_my_cleanup,make_my_cleanup2): Ditto.
8545 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8546 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8547 (do_cleanups,do_final_cleanups): Ditto.
8548 (discard_cleanups,discard_final_cleanups): Ditto
8549 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8550 (save_cleanups,save_final_cleanups): Ditto.
8551 (restore_cleanups,restore_final_cleanups): Ditto.
8552 (null_cleanup): Ditto.
8553 (make_my_cleanup,make_my_cleanup2): Ditto.
8554 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8555
e0088cfd
DE
8556 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8557 make_my_cleanup.
8558 (make_cleanup_dyn_string_delete): Ditto.
8559 (make_cleanup_ui_file_delete): Ditto.
8560 (make_cleanup_ui_out_redirect_pop): Ditto.
8561 (make_cleanup_free_section_addr_info): Ditto.
8562 (make_cleanup_restore_integer): Ditto.
8563 (make_cleanup_unpush_target): Ditto.
8564 (make_cleanup_value_free_to_mark): Ditto.
8565 (make_cleanup_value_free): Ditto.
8566 (make_cleanup_free_so): Ditto.
8567
4dc84fd1
JK
85682012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8569
8570 New option "set debug auto-load".
8571 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8572 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8573 (auto_load_safe_path_vec_update)
8574 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8575 if DEBUG_AUTO_LOAD.
8576 (file_is_auto_load_safe): New parameters debug_fmt and ....
8577 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8578 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8579 caller by explanatory string.
8580 (_initialize_auto_load): Register "set debug auto-load".
8581 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8582 and ....
8583 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8584 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8585 by explanatory string.
8586 * main.c (captured_main): Likewise.
8587 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8588 (source_section_scripts): Likewise.
8589
bccbefd2
JK
85902012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8591
8592 New option "set auto-load safe-path".
8593 * NEWS: New commands "set auto-load safe-path"
8594 and "show auto-load safe-path".
8595 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8596 (auto_load_safe_path, auto_load_safe_path_vec)
8597 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8598 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8599 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8600 (source_gdb_script_for_objfile): New variable is_safe. Call
8601 file_is_auto_load_safe. Return if it is not.
8602 (struct loaded_script): New field loaded.
8603 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8604 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8605 output "Missing" to "No".
8606 (_initialize_auto_load): New variable cmd. Initialize
8607 auto_load_safe_path. Register "set auto-load safe-path",
8608 "show auto-load safe-path" and "add-auto-load-safe-path".
8609 * auto-load.h (maybe_add_script): Add parameter loaded.
8610 (file_is_auto_load_safe): New declaration.
8611 * config.in: Regenerate.
8612 * configure: Regenerate.
8613 * configure.ac: New parameters --with-auto-load-safe-path
8614 and --without-auto-load-safe-path.
8615 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8616 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8617 * main.c (captured_main): Check file_is_auto_load_safe for
8618 LOCAL_GDBINIT.
8619 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8620 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8621 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8622 not.
8623
bf88dd68
JK
86242012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8625
8626 auto-load: Implementation.
8627 * NEWS: New descriptions for "info auto-load",
8628 "info auto-load gdb-scripts", "info auto-load python-scripts",
8629 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8630 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8631 and "show auto-load-scripts". New description for "set auto-load",
8632 "show auto-load", "set auto-load gdb-scripts",
8633 "show auto-load gdb-scripts", "set auto-load python-scripts",
8634 "show auto-load python-scripts", "set auto-load local-gdbinit",
8635 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8636 "show auto-load libthread-db".
8637 * auto-load.c: Remove include python/python-internal.h. Add includes
8638 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8639 cli/cli-setshow.h.
8640 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8641 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8642 (gdbpy_global_auto_load): Rename to ...
8643 (global_auto_load): ... here.
8644 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8645 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8646 (script_language_gdb, source_gdb_script_for_objfile): New.
8647 (struct loaded_script): New field language.
8648 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8649 LANGUAGE.
8650 (maybe_add_script): Add parameter language. Drop redundant
8651 entry.full_path initialization. Initialize entry.language and
8652 (*slot)->language.
8653 (auto_load_objfile_script): Change parameter suffix to language.
8654 Remove the call of maybe_add_script.
8655 Call language->source_script_for_objfile.
8656 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8657 New.
8658 (collect_matching_scripts): Adjust it for
8659 struct collect_matching_scripts_data.
8660 (auto_load_info_scripts_pattern_nl): New variable.
8661 (info_auto_load_scripts): Rename to ...
8662 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8663 for struct collect_matching_scripts_data.
8664 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8665 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8666 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8667 (auto_load_info_cmdlist_get): New.
8668 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8669 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8670 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8671 "info auto-load local-gdbinit".
8672 * auto-load.h (struct script_language): New.
8673 (gdbpy_global_auto_load): Rename to ...
8674 (global_auto_load): ... here.
8675 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8676 (auto_load_local_gdbinit_loaded): New declarations.
8677 (maybe_add_script): New parameter language.
8678 (auto_load_objfile_script): Change parameter suffix to language.
8679 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8680 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8681 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8682 declarations.
8683 * linux-thread-db.c: Include auto-load.h and ctype.h.
8684 (auto_load_thread_db, show_auto_load_thread_db): New.
8685 (struct thread_db_info): New field filename.
8686 (delete_thread_db_info): Call xfree for FILENAME.
8687 (try_thread_db_load): Initialize FILENAME.
8688 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8689 if !AUTO_LOAD_THREAD_DB.
8690 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8691 (_initialize_thread_db): Install auto_load_thread_db
8692 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8693 as "info auto-load libthread-db".
8694 * main.c (captured_main): Rename gdbpy_global_auto_load to
8695 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8696 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8697 (print_gdb_help): Extend the help for 'local init file'.
8698 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8699 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8700 (auto_load_scripts): Rename to ...
8701 (auto_load_python_scripts): ... here, update the comment.
8702 (gdbpy_load_auto_script_for_objfile): New declaration.
8703 (show_auto_load_python_scripts, script_language_python)
8704 (gdbpy_load_auto_script_for_objfile): New.
8705 (source_section_scripts): Refactor the code.
8706 (load_auto_scripts_for_objfile): Rename to ...
8707 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8708 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8709 (info_auto_load_python_scripts): New.
8710 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8711 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8712 Register "set auto-load-scripts" as its deprecated alias. Register
8713 "info auto-load python-scripts". Register "info auto-load-scripts" as
8714 its deprecated alias.
8715 (load_auto_scripts_for_objfile): Rename to ...
8716 (gdbpy_load_auto_scripts_for_objfile): ... here.
8717 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8718 (gdbpy_load_auto_scripts_for_objfile): ... here.
8719
e2207b9a
JK
87202012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8721
8722 auto-load: Move files.
8723 * Makefile.in (SFILES): Add auto-load.c.
8724 (HFILES_NO_SRCDIR): Add auto-load.h.
8725 (COMMON_OBS): Add auto-load.o.
8726 (distclean): Change .gdbinit for gdb-gdb.gdb.
8727 * auto-load.c: New file, with parts from python/py-auto-load.c.
8728 * auto-load.h: New file, with parts from python/python.h.
8729 * configure: Regenerate.
8730 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8731 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8732 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8733 * main.c: Include auto-load.h.
8734 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8735 command.h, observer.h and progspace.h to auto-load.c. Add include
8736 auto-load.h.
8737 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8738 (struct loaded_script, auto_load_pspace_data)
8739 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8740 (hash_loaded_script_entry, eq_loaded_script_entry)
8741 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8742 (maybe_add_script): Move to auto-load.c.
8743 (source_section_scripts): Change maybe_add_script parameters passing,
8744 use script_not_found_warning_print.
8745 (clear_section_scripts, auto_load_objfile_script)
8746 (auto_load_new_objfile, loaded_script_ptr)
8747 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8748 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8749 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8750 auto_load_new_objfile and info_auto_load_scripts initizations to
8751 auto-load.c.
8752 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8753
e4ab2fad
JK
87542012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8755
8756 Code cleanup.
8757 * charset.c (find_charset_names): Remove variables ix and elt.
8758 Use free_char_ptr_vec.
8759 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8760 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8761 debugdir_end. New variable debugdir_len.
8762 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8763 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8764 declarations.
8765 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8766 and elt. Use free_char_ptr_vec.
8767 * source.c (add_path): Remove variables argv, arg and argv_index.
8768 New variables dir_vec, back_to, ix and name.
8769 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8770 make_cleanup_freeargv. Remove variable separator. Simplify the code
8771 no longer expecting DIRNAME_SEPARATOR.
8772 (openp): Remove variable p, p1 and len. New variables dir_vec,
8773 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8774 no longer expecting DIRNAME_SEPARATOR.
8775 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8776 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8777 debugdir_end.
8778 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8779 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8780 (dirnames_to_char_ptr_vec): New functions.
8781
5ee4ed9f
JK
87822012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8783
8784 Code cleanup.
8785 * source.c (add_path): Remove always true conditional 'p == 0' and
8786 unindent its code block.
8787
f41f5e61
PA
87882012-04-17 Pedro Alves <palves@redhat.com>
8789
8790 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8791 (FIELD_BITPOS_LVAL): ... this.
8792 (FIELD_BITPOS): New.
8793 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8794 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8795 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8796 SET_FIELD_BITPOS.
8797 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8798 SET_FIELD_BITPOS.
8799 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8800 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8801 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8802 SET_FIELD_BITPOS.
8803
945b3a32
JK
88042012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8805
8806 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8807 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8808 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8809 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8810 * jv-lang.c (java_link_class_type): Likewise, once.
8811 * stabsread.c (read_enum_type): Likewise.
8812
42476b70
YQ
88132012-04-16 Yao Qi <yao@codesourcery.com>
8814
8815 * common/agent.c (agent_run_command): Add one more parameter `len'.
8816 Update callers.
8817 * common/agent.h: Update declaration.
8818 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8819 Update.
8820 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8821
8264ba82
AG
88222012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8823
8824 PR mi/13393
8825 * value.c (value_actual_type): New function.
8826 * value.h (value_actual_type): New declaration.
8827 * varobj.c (update_type_if_necessary): New function.
8828 (varobj_create): Call value_actual_type instead of
8829 value_type.
8830 (install_dynamic_child): distinct changed and type changed MI variable
8831 objects.
8832 (update_dynamic_varobj_children): Updated for install_dynamic_child
8833 change. All callers updated.
a09130f9 8834 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8835 the value changed and RTTI is used to determine the type.
8836 (create_child_with_value): Call value_actual_type instead of
8837 value_type.
a09130f9 8838 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8839 specify whether the given value should be casted to enclosing type.
8840 All callers updated.
8841
55a8c076
YQ
88422012-04-14 Yao Qi <yao@codesourcery.com>
8843
8844 Import gnulib module inttypes from git
8845 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8846 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8847 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8848 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8849 * aclocal.m4, config.in, configure: Regenerated.
8850 * gnulib/Makefile.am: Update.
8851 * gnulib/Makefile.in: Update.
8852 * gnulib/m4/gnulib-cache.m4: Update.
8853 * gnulib/m4/gnulib-comp.m4: Update.
8854 * gnulib/inttypes.in.h: New.
8855 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8856 * gnulib/m4/inttypes.m4: New.
55a8c076 8857
ca7781d2
LM
88582012-04-13 Luis Machado <lgustavo@codesourcery.com>
8859
8860 * infrun.c (resume): Update PC address to the real PC after
8861 preparing to do displaced stepping.
8862
e319fa28
DE
88632012-04-12 Doug Evans <dje@google.com>
8864
8865 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8866 All callers updated.
8867
15add3f5
MK
88682012-04-12 Mark Kettenis <kettenis@gnu.org>
8869
8870 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8871
52dc124a
DE
88722012-04-12 Doug Evans <dje@google.com>
8873
0e50663e
DE
8874 * dwarf2read.c (create_all_type_units): Renamed from
8875 create_debug_types_hash_table. All callers updated.
8876
52dc124a
DE
8877 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8878 local type_sig to sig_type, type_offset to type_offset_in_tu.
8879 (hash_signatured_type): Renamed from hash_type_signature,
8880 all callers updated.
8881 (eq_signatured_type): Renamed from eq_type_signature,
8882 all callers updated.
8883 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8884 (process_enumeration_scope): Ditto.
8885 (lookup_signatured_type_at_offset): Ditto.
8886 (load_full_type_unit, read_signatured_type): Ditto.
8887
248fd3bf
YQ
88882012-04-12 Yao Qi <yao@codesourcery.com>
8889
8890 * remote.c (async_remote_interrupt): Correct function name in
8891 debug message.
8892 (async_remote_interrupt_twice): Ditto.
8893
bc3aa6c3
DE
88942012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8895
8896 * source.c (find_and_open_source): Consistently pass resulting
8897 full path through xfullpath.
8898
9e529e1d
JK
88992012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8900
8901 Provide more specific displaced-stepping memory error message.
8902 * infrun.c (displaced_step_prepare): New variable status. Call
8903 target_read_memory instead of read_memory, provide more specific
8904 error message.
8905
82e0cec1
TG
89062012-04-11 Tristan Gingold <gingold@adacore.com>
8907
8908 PR gdb/13901
8909 * darwin-nat.c (darwin_execvp): Revert previous patch.
8910
d987a266
TG
89112012-04-11 Tristan Gingold <gingold@adacore.com>
8912
8913 PR gdb/13901
8914 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8915 in case of change.
8916
016b7430
TG
89172012-04-11 Tristan Gingold <gingold@adacore.com>
8918
8919 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8920 warning.
8921
06fc020f
SCR
89222012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8923
8924 New command 'explore' which helps explore values and types in
8925 scope.
8926 * NEWS: Add an entry about the new 'explore' command.
8927 * data-directory/Makefile.in: Add gdb/command/explore.py
8928 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8929 command using the GDB Python API.
06fc020f 8930
de0919f8 89312012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8932
8933 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8934 extension in jump target calculation.
8935
de0919f8 89362012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8937
8938 * mips-tdep.c (mips32_next_pc): Handle JALX.
8939
2f26ef89
YQ
89402012-04-10 Yao Qi <yao@codesourcery.com>
8941
8942 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8943
2e505b66
YQ
89442012-04-10 Yao Qi <yao@codesourcery.com>
8945
8946 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8947 and gnulib/m4/gnulib-tool.m4.
8948
0d99eb77
DE
89492012-04-10 Doug Evans <dje@google.com>
8950
8951 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8952 (load_partial_dies): Clarify comment.
8953 (find_partial_die): Support rereading type units.
8954 Clarify CU handling, if we know offset is in CU, don't search for the
8955 containing CU. Add comment regarding memory waste.
8956
9a82b8ff
L
89572012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8958
8959 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8960 i386/x32-avx and i386/x32-avx-linux.
8961 (i386/x32-expedite): New.
8962 (i386/x32-linux-expedite): Likewise.
8963 (i386/x32-avx-expedite): Likewise.
8964 (i386/x32-avx-linux-expedite): Likewise.
8965 ($(outdir)/i386/x32.dat): Likewise.
8966 ($(outdir)/i386/x32-linux.dat): Likewise.
8967 ($(outdir)/i386/x32-avx.dat): Likewise.
8968 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8969
8970 * features/i386/x32-avx-linux.xml: New file.
8971 * features/i386/x32-avx.xml: Likewise.
8972 * features/i386/x32-core.xml: Likewise.
8973 * features/i386/x32-linux.xml: Likewise.
8974 * features/i386/x32.xml: Likewise.
8975
8976 * features/i386/x32-avx-linux.c: New. Generated.
8977 * features/i386/x32-avx.c: Likewise.
8978 * features/i386/x32-linux.c: Likewise.
8979 * features/i386/x32.c: Likewise.
8980 * regformats/i386/x32-avx-linux.dat: Likewise.
8981 * regformats/i386/x32-avx.dat: Likewise.
8982 * regformats/i386/x32-linux.dat: Likewise.
8983 * regformats/i386/x32.dat: Likewise.
8984
ee41036f
TG
89852012-04-10 Tristan Gingold <gingold@adacore.com>
8986
8987 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8988 code to kill the inferior.
8989
a7aa5b8a
MK
89902012-04-09 Mark Kettenis <kettenis@gnu.org>
8991
8992 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8993 defines.
8994 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8995 defines.
a09130f9 8996 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8997 (yyvsp): New defines.
8998 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8999 defines.
9000 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9001 defines.
9002 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9003 defines.
9004 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9005 defines.
9006 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9007 defines.
9008
fb57d452
MK
90092012-04-09 Mark Kettenis <kettenis@gnu.org>
9010
a09130f9 9011 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
9012 (sparc64_store_arguments): Fix coding style.
9013
cdc7b32f
MK
90142012-04-07 Mark Kettenis <kettenis@gnu.org>
9015
9016 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9017 complex floats, adjust some related comments and tighten a related
9018 assertion.
9019 (sparc64_extract_return_value): Handle complex floats.
9020
7adf1e79
DE
90212012-04-07 Doug Evans <dje@google.com>
9022
9023 * dwarf2read.c (load_partial_dies): Change condition to assert.
9024
50f1ae7b
DE
90252012-04-06 Doug Evans <dje@google.com>
9026
9027 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9028 "mov %rsp,%rbp".
9029
55fa75c3
KB
90302012-04-05 Kevin Buettner <kevinb@redhat.com>
9031
9032 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9033 fencepost error.
9034 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9035 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9036 architecture.
9037
40e084e1
KS
90382012-04-05 Keith Seitz <keiths@redhat.com>
9039
9040 * linespec.c (decode_compound): Remove.
9041 (enum offset_relative_sign): New enum.
9042 (struct line_offset): New struct.
9043 (struct linespec): New struct.
9044 (struct linespec_state): Move file_symtabs,
9045 user_filename, and user_function into struct linespec.
9046 Make result an anonymous struct holding vectors of
9047 symbolp and minsym_and_objfile_d.
9048 Add language member.
9049 (enum ls_token_type): New enum.
9050 (linespec_keywords): New array.
9051 (struct ls_token): New struct.
9052 (struct ls_parser): New struct.
9053 (linespec_lexer_lex_number): New function.
9054 (linespec_lexer_lex_keyword): New function.
9055 (is_ada_operator): New function.
9056 (skip_quote_char): New function.
9057 (copy_token_string): New function.
9058 (is_closing_quote_enclosed): New function.
9059 (find_parameter_list_end): New function.
9060 (linespec_lexer_lex_string): New function.
9061 (linespec_lexer_lex_one): New function.
9062 (linespec_lexer_consume_token): New function.
9063 (linespec_lexer_peek_token): New function.
9064 (cplusplus_error): Remove unused function.
9065 (find_methods): Update comment.
9066 (find_toplevel_char): Return const.
9067 (is_objc_method_format): Remove unused function.
9068 (find_toplevel_string): New function.
9069 (is_linespec_boundary): Remove.
9070 (symbol_not_found_error): New function.
9071 (find_method_overload_end): Remove function.
9072 (unexpected_linespec_error): New function.
9073 (keep_name_info): Remove.
9074 (linespec_parse_line_offset): New function.
9075 (linespec_parse_basic): New function.
9076 (canonicalize_linespec): New function.
9077 (decode_line_internal): Remove.
9078 (create_sals_line_offset): New function adapted from
9079 decode_all_digits.
9080 (convert_linespec_to_sals): New function.
9081 (parse_linespec): New function.
9082 (linespec_parser_new): New function.
9083 (linespec_state_destructor): Change parameter type to
9084 struct linespec_state *.
9085 Add language parameter.
9086 Remove freeing of moved members.
9087 (linespec_parser_delete): New function.
9088 (decode_line_full): Use parse_linespec and linespec_parser_new.
9089 (decode_line_1): Likewise.
9090 (decode_indirect): Rename to ...
9091 (linespec_expression_to_pc): ... this and rewrite
9092 to simply find CORE_ADDR, storing this result for later
9093 conversion to SALs.
9094 (locate_first_half): Remove.
9095 (deocde_objc): Add parameter LS.
9096 Initialize new struct collect_info members.
9097 Handle minimal symbols, too.
9098 (decode_compound): Delete.
9099 (lookup_prefix_sym): Rewrite.
9100 (compare_msymbols): New function.
9101 (find_method): Rewrite.
9102 Do not call cplusplus_error.
9103 (symtabs_from_filename): Rewrite.
9104 (collect_function_symbols): Delete.
9105 (find_function_symbols): Rewrite without ARGPTR-style
9106 processing.
9107 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9108 (decode_dollar): Adapted and renamed to ...
9109 (linespec_parse_variable): ... this.
9110 (find_linespec_symbols): New function.
9111 (decode_label): Adapted and renamed to ...
9112 (find_label_symbols): ... this.
9113 (decode_digits_list_mode): Add and use LS argument.
9114 (decode_digits_ordinary): Likewise.
9115 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9116 If in list mode, allow any symbol class. Otherwise, only
9117 permit LOC_BLOCK symbols.
9118 (minsym_found): Update comments.
9119 (search_minsyms_for_name): Do not convert the matching symbol
9120 into a SAL. Simply push the symbol and objfile into the
9121 result vector.
9122 (decode_variable): Delete. Contents adapted into
9123 find_linespec_symbols.
9124
9125 * cp-support.c (SKIP_SPACE): Remove.
9126 (operator_tokens): Remove unused global.
9127 (cp_validate_operator): Remove.
9128 * cp-support.h (cp_validate_operator): Remove declaration.
9129
a72c8f6a
JK
91302012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9131
9132 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9133 for TYPE_VPTR_FIELDNO.
9134 * valprint.c (valprint_check_validity): Make it global, move the
9135 function comment ...
9136 * value.h (valprint_check_validity): ... to this new declaration.
9137
cf9bb588
TG
91382012-04-02 Tristan Gingold <gingold@adacore.com>
9139
9140 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9141 the STATE32 api for i386 state.
9142 (i386_darwin_store_inferior_registers): Likewise.
9143
17092398
TG
91442012-04-02 Tristan Gingold <gingold@adacore.com>
9145
9146 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9147 SS offset.
9148 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9149 format_string.
9150
ece0061f
TG
91512012-04-02 Tristan Gingold <gingold@adacore.com>
9152
9153 PR gdb/13901
d987a266 9154 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 9155
cf65ecd3
JK
91562012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9157
9158 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9159
9bc3523d
TT
91602012-03-30 Tom Tromey <tromey@redhat.com>
9161
9162 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9163 of TRY_CATCH. Fix error handling.
9164 * python/py-value.c (convert_value_from_python): Move 'old'
9165 declaration to innermost scope.
9166
b1ed564a
JB
91672012-03-29 Joel Brobecker <brobecker@adacore.com>
9168 Andrey Smirnov <andrew.smirnov@gmail.com>
9169
9170 -Wshadow warning fix.
9171 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9172 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9173 Adjust code accordingly.
9174
cb8e9b97
JB
91752012-03-29 Joel Brobecker <brobecker@adacore.com>
9176
9177 * ada-lang.c (symbol_completion_add): Rename parameter
9178 "encoded" into "encoded_p". Ajust code and documentation
9179 accordingly.
9180
c0af1706
JB
91812012-03-29 Joel Brobecker <brobecker@adacore.com>
9182 Andrey Smirnov <andrew.smirnov@gmail.com>
9183
9184 -Wshadow warning fix.
9185 * ada-lang.c (symbol_completion_add): Rename parameter
9186 "wild_match" into wild_match_p. Update code and documentation
9187 accordingly.
9188
6ea35997
JB
91892012-03-29 Joel Brobecker <brobecker@adacore.com>
9190
9191 * ada-lang.c (symbol_completion_match): Rename parameter
9192 "encoded" into "encoded_p". Ajust code and documentation
9193 accordingly.
9194
e701b3c0
JB
91952012-03-29 Joel Brobecker <brobecker@adacore.com>
9196 Andrey Smirnov <andrew.smirnov@gmail.com>
9197
9198 -Wshadow warning fix.
9199 * ada-lang.c (symbol_completion_match): Rename parameter
9200 "wild_match" into "wild_match_p". Adjust code and function
9201 documentation accordingly.
9202
5e2336be
JB
92032012-03-29 Joel Brobecker <brobecker@adacore.com>
9204 Andrey Smirnov <andrew.smirnov@gmail.com>
9205
9206 -Wshadow warning fix.
9207 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9208 "symbol_info" into "info". Adjust code accordingly.
9209 (ada_lookup_symbol): Likewise.
9210
9f88c959
JB
92112012-03-29 Joel Brobecker <brobecker@adacore.com>
9212
9213 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9214 of this function's documentation.
9215
82ccd55e
JB
92162012-03-29 Joel Brobecker <brobecker@adacore.com>
9217 Andrey Smirnov <andrew.smirnov@gmail.com>
9218
9219 -Wshadow warning fix.
9220 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9221 variable into "wild_match_p". Adjust code accordingly.
9222
d0a8ab18
JB
92232012-03-29 Joel Brobecker <brobecker@adacore.com>
9224 Andrey Smirnov <andrew.smirnov@gmail.com>
9225
9226 -Wshadow warning fix.
9227 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9228 parameter into "wild_match_p". Adjust code accordingly.
9229 Document this parameter in the function description.
9230
48b78332
JB
92312012-03-29 Joel Brobecker <brobecker@adacore.com>
9232 Andrey Smirnov <andrew.smirnov@gmail.com>
9233
9234 -Wshadow warning fix.
9235 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9236 "wild_match" parameter to "wild_match_p" (-Wshadow).
9237
2e6e0353
JB
92382012-03-29 Joel Brobecker <brobecker@adacore.com>
9239
9240 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9241 in function documentation.
9242
dc4024cd
JB
92432012-03-29 Joel Brobecker <brobecker@adacore.com>
9244 Andrey Smirnov <andrew.smirnov@gmail.com>
9245
9246 -Wshadow warning fix.
9247 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9248 variable into wild_match_p. Adjust code accordingly.
9249
6c88661c
JB
92502012-03-29 Joel Brobecker <brobecker@adacore.com>
9251 Andrey Smirnov <andrew.smirnov@gmail.com>
9252
9253 * ada-valprint.c (ada_val_print_1): Move the code handling
9254 TYPE_CODE_ENUM inside its own lexical block. Declare
9255 variables len and val there, instead of in the function's
9256 top level block. Avoid declaring deref_val again in a way
9257 that shadows another variable of the same name declared
9258 in one of the up-level blocks. Just re-use the up-level
9259 variable instead.
9260
4e5c77fe
JB
92612012-03-29 Joel Brobecker <brobecker@adacore.com>
9262
9263 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9264 Replace block_found argument by symbol_info. Adjust
9265 implementation accordingly. Add function documentation.
9266 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9267 Fix documentation.
9268 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9269 * ada-exp.y (write_object_renaming): Adjust to new
9270 ada_lookup_encoded_symbol API.
9271
1c0ac8c7
JB
92722012-03-29 Joel Brobecker <brobecker@adacore.com>
9273
9274 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9275 documentation.
9276
2aaed979
KB
92772012-03-28 Rathish C <rathish.c@kpitcummins.com>
9278
9279 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9280 (v850_register_name): Add the mpu and fpu register names.
9281 (v850e_register_name): Add the mpu and fpu register names.
9282 (v850e2_register_name): New function.
a09130f9 9283 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
9284 bfd_mach_v850e2v3.
9285
927fbba6
JB
92862012-03-28 Joel Brobecker <brobecker@adacore.com>
9287
9288 * NEWS: Add entry for Ada varobj support.
9289
d32cafc7
JB
92902012-03-28 Joel Brobecker <brobecker@adacore.com>
9291
9292 * varobj.c (default_value_is_changeable_p): New function,
9293 extracted from varobj_value_is_changeable_p. Add declaration.
9294 (ada_value_is_changeable_p): New function, extracted from
9295 varobj_value_is_changeable_p. Add declaration.
9296 (struct language_specific): New field "value_is_changeable_p".
9297 (languages): Add entries for new field.
9298 (varobj_create): Set language before calling install_new_value.
9299 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9300 "value_is_changeable_p" language callback.
9301
181875a4
JB
93022012-03-28 Joel Brobecker <brobecker@adacore.com>
9303
9304 * ada-varobj.h, ada-varobj.c: New files.
9305 * Makefile.in (SFILES): Add ada-varobj.c.
9306 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9307 (COMMON_OBS): Add ada-varobj.o.
9308
7a290c40
JB
93092012-03-28 Joel Brobecker <brobecker@adacore.com>
9310
9311 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9312 (struct language_specific): New field "value_has_mutated".
9313 (languages): Set field "value_has_mutated" in each entry of array.
9314 (varobj_value_has_mutated): New function.
9315 (varobj_udpdate): Add handling of type mutation.
9316 (value_of_root): Add handling of type mutation.
9317 (ada_value_has_mutated): New function.
9318
ca9b8b9c
PA
93192012-03-28 Pedro Alves <palves@redhat.com>
9320
9321 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9322 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9323
cc0265cd
TT
93242012-03-28 Tom Tromey <tromey@redhat.com>
9325
9326 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9327 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9328 before returning.
9329
3ad2ec6f
TT
93302012-03-28 Tom Tromey <tromey@redhat.com>
9331
9332 * .dir-locals.el: New file.
9333
4a6510ba
PA
93342012-03-28 Pedro Alves <palves@redhat.com>
9335
9336 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9337
5a75128f
JB
93382012-03-28 Joel Brobecker <brobecker@adacore.com>
9339
9340 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9341 handling for r0.
9342
f99d8bf4
PA
93432012-03-27 Pedro Alves <palves@redhat.com>
9344
9345 Eliminate struct ui_stream.
9346
9347 * ui-out.h (struct ui_stream): Delete.
9348 (ui_out_field_stream): Adjust prototype.
9349 (ui_out_stream_new, ui_out_stream_delete)
9350 (make_cleanup_ui_out_stream_delete): Delete declarations.
9351 * ui-out.c (ui_out_field_stream): Change prototype to take a
9352 ui_file instead of a ui_stream. Adjust.
9353 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9354 (make_cleanup_ui_out_stream_delete): Delete.
9355 * breakpoint.c (print_breakpoint_location)
9356 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9357 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9358 * disasm.c (dump_insns): Ditto.
9359 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9360 prototype.
9361 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9362 ui_stream/ui_out_stream_new.
9363 * infcmd.c (print_return_value): Ditto.
9364 * osdata.c (info_osdata_command): Don't allocate a local
9365 ui_stream.
9366 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9367 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9368 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9369 allocate a local ui_stream.
9370 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9371 instead of ui_stream/ui_out_stream_new.
9372 (list_args_or_locals): Don't allocate a local ui_stream.
9373 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9374 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9375 ui_stream/ui_out_stream_new.
9376 * cli/cli-setshow.c (do_setshow_command): Ditto.
9377
6350a066 93782012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 9379
6350a066
PA
9380 * arm-linux-tdep.c (arm_linux_init_abi): Call
9381 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9382 * arm-tdep.c (arm_process_record): New function.
9383 (deallocate_reg_mem): New function.
9384 (decode_insn): New function.
9385 (thumb_record_branch): New function.
9386 (thumb_record_ldm_stm_swi(): New function.
9387 (thumb_record_misc): New function.
9388 (thumb_record_ld_st_stack): New function.
9389 (thumb_record_ld_st_imm_offset): New function.
9390 (thumb_record_ld_st_reg_offset(): New function.
9391 (thumb_record_add_sub_cmp_mov): New function.
9392 (thumb_record_shift_add_sub): New function.
9393 (arm_record_coproc_data_proc): New function.
9394 (arm_record_coproc): New function.
9395 (arm_record_b_bl): New function.
9396 (arm_record_ld_st_multiple): New function.
9397 (arm_record_ld_st_reg_offset): New function.
9398 (arm_record_ld_st_imm_offset): New function.
9399 (arm_record_data_proc_imm): New function.
9400 (arm_record_data_proc_misc_ld_str): New function.
9401 (arm_record_extension_space): New function.
9402 (arm_record_strx): New function.
9403 (sbo_sbz): New function.
9404 (struct insn_decode_record): New structure for arm insn record.
9405 (REG_ALLOC): New macro for reg allocations.
9406 (MEM_ALLOC): New macro for memory allocations.
9407 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 9408
89e028e2
AS
94092012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9410
9411 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9412 (store_register): Likewise.
9413
6350a066 94142012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 9415
6350a066 9416 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 9417
5b43fab2
JK
94182012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9419
9420 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9421 Describe also the option "auto".
9422
b5453b95
RH
94232012-03-22 Richard Henderson <rth@redhat.com>
9424
9425 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9426 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9427
227ee7fc
RH
94282012-03-22 Richard Henderson <rth@redhat.com>
9429
9430 * jit.c (jit_read_code_entry): Compute alignment and offset of
9431 int64_t member before computing entry_size.
9432
7b282c5a
SCR
94332012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9434
9435 Python scripting: Add new method Value.referenced_value to
9436 gdb.Value which can dereference pointer as well as reference
9437 values.
9438 * NEWS: Add entry under 'Python scripting' about the new method
9439 Value.referenced_value on gdb.Value objects.
9440 * python/py-value.c (valpy_referenced_value): New function
9441 defining a new method on gdb.Value objects which can dereference
9442 pointer and reference values.
9443
0c83539f
SCR
94442012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9445
9446 * MAINTAINERS (Write After Approval): Add myself to the list.
9447
7ccffd7c
KB
94482012-03-21 Kevin Buettner <kevinb@redhat.com>
9449
9450 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9451 in addition to "main".
9452
bd0b9f9e
JB
94532012-03-21 Joel Brobecker <brobecker@adacore.com>
9454
9455 * expression.h (op_name): Add declaration.
9456 * expprint.c (op_name): Remove declaration. Make non-static.
9457 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9458
a5362b9a
TS
94592012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9460
9461 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9462 of struct siginfo.
9463 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9464 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9465 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9466 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9467 (linux_nat_get_siginfo): Likewise.
9468 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9469 (linux_nat_get_siginfo): Likewise.
9470 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9471 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9472 * procfs.c (gdb_siginfo_t): Likewise.
9473
adcadaab
MF
94742012-03-21 Mike Frysinger <vapier@gentoo.org>
9475
9476 * .gitignore: Ignore more files.
9477
e278ad5b
PA
94782012-03-20 Pedro Alves <palves@redhat.com>
9479
9480 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9481 returns.
9482
741e63d7
YQ
94832012-03-20 Yao Qi <yao@codesourcery.com>
9484
9485 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9486 comment.
9487
b64f50a1
JK
94882012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9489
9490 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9491 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9492 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9493 sect_offset.
9494 * dwarf2expr.h (cu_offset, sect_offset): New types.
9495 (struct dwarf_expr_context_funcs) <dwarf_call>
9496 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9497 sect_offset.
9498 (struct dwarf_expr_context) <len>: Improve the comment.
9499 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9500 cu_offset and sect_offset.
9501 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9502 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9503 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9504 * dwarf2loc.h: Include dwarf2expr.h.
9505 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9506 and sect_offset.
9507 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9508 Improve the comment.
9509 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9510 (struct signatured_type, struct line_header, struct partial_die_info)
9511 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9512 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9513 (get_die_type_at_offset, create_cus_from_index)
9514 (create_signatured_type_table_from_index, dw2_get_file_names)
9515 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9516 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9517 (create_debug_types_hash_table, process_psymtab_comp_unit)
9518 (load_partial_comp_unit, create_all_comp_units)
9519 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9520 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9521 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9522 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9523 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9524 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9525 (find_partial_die, read_attribute_value, lookup_die_type)
9526 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9527 (is_ref_attr): New function comment.
9528 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9529 Use cu_offset and sect_offset.
9530 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9531 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9532 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9533 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9534 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9535 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9536 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9537 sect_offset.
9538
e97a38f7
JK
95392012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9540
9541 Code cleanup.
9542 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9543 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9544 with xfree.
9545 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9546
8320cc4f
JK
95472012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9548
9549 * NEWS: Describe new options --init-command=FILE, -ix and
9550 --init-eval-command=COMMAND, -iex.
9551 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9552 CMDARG_INIT_COMMAND.
9553 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9554 "init-command", "init-eval-command", "ix" and "iex" to the variable
9555 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9556 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9557 (print_gdb_help): Describe --init-command=FILE, -ix and
9558 --init-eval-command=COMMAND, -iex.
9559
26743505
JK
95602012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9561
9562 Code cleanup.
9563 * main.c (struct cmdarg): Move it here from main. Add more comments.
9564 (cmdarg_s, VEC (cmdarg_s)): New.
9565 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9566 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9567 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9568 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9569 of CMDARG.
9570
5ff5c7b4
TT
95712012-03-19 Tom Tromey <tromey@redhat.com>
9572
9573 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9574
ab260dad
JK
95752012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9576
9577 PR symtab/13777
9578 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9579 GCC >=4.5.
9580
c366c1f0
TT
95812012-03-16 Chris January <chris.january@allinea.com>
9582
9583 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9584 of clear.
9585
e16edb45
TT
95862012-03-16 Chris January <chris.january@allinea.com>
9587
9588 * source.c (add_path): Use memmove instead of strcpy because the
9589 strings overlap.
9590
53ba8333
JB
95912012-03-16 Joel Brobecker <brobecker@adacore.com>
9592
9593 * value.h (set_value_parent): Add declaration.
9594 * value.c (set_value_parent): New function.
9595 (value_address): If VALUE->PARENT is not NULL, then use it as
9596 the base address instead of VALUE->LOCATION.address.
9597 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9598 the same as OBJ's address. Adjust V's offset accordingly.
9599 Set V's parent.
9600
481860b3
GB
96012012-03-16 Gary Benson <gbenson@redhat.com>
9602
9603 PR breakpoints/10738
9604 * dwarf2read.c (use_deprecated_index_sections): New global.
9605 (struct partial_die_info): New member may_be_inlined.
9606 (read_partial_die): Set may_be_inlined where appropriate.
9607 (add_partial_subprogram): Add partial symbols for partial
9608 DIEs that may be inlined.
9609 (new_symbol_full): Add inlined subroutines to the current
9610 scope.
9611 (write_psymtabs_to_index): Bump version number.
9612 (dwarf2_read_index): Read only version 6 indices unless
9613 use_deprecated_index_sections is set.
9614 * linespec.c (symbol_and_data_callback): New structure.
9615 (iterate_inline_only): New function.
9616 (iterate_over_all_matching_symtabs): New argument
9617 "include_inline". If nonzero, also call the callback for
9618 symbols representing inlined subroutines.
9619 (lookup_prefix_sym): Pass extra argument to the above.
9620 (find_function_symbols): Likewise.
9621 (add_matching_symbols_to_info): Likewise.
9622 * NEWS: Mention that GDB can now set breakpoints on inlined
9623 functions.
9624
d0e7e15a
PM
96252012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9626
9627 * p-typeprint.c (pascal_type_print_method_args):
9628 Fix display of parameter of methods.
9629
3d354654
PM
96302012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9631
9632 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9633 Add missing prototype.
9634
cafe75b0
JK
96352012-03-16 Yao Qi <yao@codesourcery.com>
9636 Jan Kratochvil <jan.kratochvil@redhat.com>
9637
9638 Fix false compilation warning.
9639 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9640
25f8c692
JL
96412012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9642 Pedro Alves <pedro@codesourcery.com>
9643
9644 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9645 (arm_register_g_packet_guesses): New function.
9646 (arm_gdbarch_init): Don't force a target description with
9647 registers when the executable is detected as M-profile. Instead
9648 set gdbarch->tdep->is_m. Register `g' packet guesses.
9649 (_initialize_arm_tdep): Initialize the new target description.
9650 * features/arm-with-m-fpa-layout.xml: New description.
9651 * features/arm-with-m-fpa-layout.c: New, generated.
9652
35c63cd8
JB
96532012-03-15 Joel Brobecker <brobecker@adacore.com>
9654
9655 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9656 Update function description.
9657 (insert_bp_location): Do not wipe bl->target_info out.
9658 * mem-break.c: #include "gdb_string.h".
9659 (default_memory_insert_breakpoint): Do not call target_read_memory
9660 with a pointer to the breakpoint's shadow_contents buffer. Use
9661 a local buffer instead.
9662 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9663
57651221
TT
96642012-03-15 Tom Tromey <tromey@redhat.com>
9665
9666 * NEWS: Mention "info vtbl", not "info vtable".
9667 * cp-support.c (info_vtbl_command): Fix comment.
9668 (_initialize_cp_support): Fix text.
9669
410528f0
TT
96702012-03-15 Tom Tromey <tromey@redhat.com>
9671
9672 * cp-valprint.c (cp_print_value_fields): Use
9673 print_function_pointer_address for vtable slot.
9674
c4aeac85
TT
96752012-03-15 Tom Tromey <tromey@redhat.com>
9676
9677 * gnu-v3-abi.c (struct value_and_voffset): New.
9678 (hash_value_and_voffset, eq_value_and_voffset)
9679 (compare_value_and_voffset, compute_vtable_size)
9680 (print_one_vtable, gnuv3_print_vtable): New functions.
9681 (init_gnuv3_ops): Initialize 'print_vtable' field.
9682 * cp-support.c (info_vtbl_command): New function.
9683 (_initialize_cp_support): Add "info vtbl".
9684 * cp-abi.h (cplus_print_vtable): Declare.
9685 (struct cp_abi_ops) <print_vtable>: New field.
9686 * cp-abi.c (cplus_print_vtable): New function.
9687 * NEWS: Update.
9688
95cbceff
TT
96892012-03-15 Tom Tromey <tromey@redhat.com>
9690
9691 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9692 iterate_over_symbols.
9693
589b4a32
DE
96942012-03-14 Doug Evans <dje@google.com>
9695
9696 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9697 DW_OP_GNU_parameter_ref.
9698
e837f12a
JK
96992012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9700
9701 Fix double prompt of 'interpreter-exec mi'.
9702 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9703 (mi_interpreter_resume): use it.
9704 (mi_execute_command_input_handler): New function.
9705 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9706 mi_execute_command_input_handler.
9707
ff1e4526 97082012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
9709
9710 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9711 prototype.
9712 (darwin_debug_port_info): Make static.
9713 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9714 * machoread.c (_initialize_machoread): Add prototype.
9715 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9716 (i386_darwin_set_control, i386_darwin_get_control)
9717 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9718 i386_darwin_get_status, i386_darwin_get_control):
9719 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9720
d8a5d6ee
JB
97212012-03-13 Joel Brobecker <brobecker@adacore.com>
9722
9723 * ax-gdb.c (gen_usual_unary): Remove special handling of
9724 enum and bool types.
9725
af381b8c
JB
97262012-03-13 Joel Brobecker <brobecker@adacore.com>
9727
9728 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9729
786c562f
JB
97302012-03-13 Joel Brobecker <brobecker@adacore.com>
9731
9732 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9733
e3ebf1bb
JB
97342012-03-13 Chris January <chris.january@allinea.com>
9735
9736 * aix-thread.c (fill_sprs): Store the floating point registers
9737 at the correct offsets into vals.
9738
c5b7e1cb
DE
97392012-03-13 Doug Evans <dje@google.com>
9740
16899756
DE
9741 * NEWS: Mention symbol-reloading has been deleted.
9742 * symfile.c (symbol_reloading): Delete.
9743 (show_symbol_reloading): Delete.
9744 (_initialize_symfile): Delete set/show symbol-reloading.
9745
c5b7e1cb
DE
9746 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9747 read_in_chain until we have successfully read it in.
9748 (load_full_comp_unit): Ditto.
9749 (read_signatured_type): Add comment.
9750
46cb6474
JB
97512012-03-13 Chris January <chris.january@allinea.com>
9752
9753 * stabsread.c (fix_common_block): Change type of valu argument
9754 to CORE_ADDR.
9755
76219d77
JB
97562012-03-13 Chris January <chris.january@allinea.com>
9757
9758 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9759 instruction.
9760
87b0bb13
JK
97612012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9762
9763 * common/linux-procfs.c (linux_proc_get_int): New, from
9764 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9765 field.
9766 (linux_proc_get_tgid): Only call linux_proc_get_int.
9767 (linux_proc_get_tracerpid): New.
9768 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9769 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9770 linux_proc_pid_has_state.
9771 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9772 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9773 (linux_ptrace_attach_warnings): New.
9774 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9775 New declaration.
9776 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9777 (linux_nat_attach): New variables ex, buffer, message and message_s.
9778 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9779
5f572dec
JK
97802012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9781
9782 * Makefile.in (linux-ptrace.o): New.
9783 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9784 from linux-nat.c.
9785 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9786 * common/linux-ptrace.c: New file.
9787 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9788 * config/arm/linux.mh: Likewise.
9789 * config/i386/linux.mh: Likewise.
9790 * config/i386/linux64.mh: Likewise.
9791 * config/ia64/linux.mh: Likewise.
9792 * config/m32r/linux.mh: Likewise.
9793 * config/m68k/linux.mh: Likewise.
9794 * config/mips/linux.mh: Likewise.
9795 * config/pa/linux.mh: Likewise.
9796 * config/powerpc/linux.mh: Likewise.
9797 * config/powerpc/ppc64-linux.mh: Likewise.
9798 * config/powerpc/spu-linux.mh: Likewise.
9799 * config/s390/s390.mh: Likewise.
9800 * config/sparc/linux.mh: Likewise.
9801 * config/sparc/linux64.mh: Likewise.
9802 * config/xtensa/linux.mh: Likewise.
9803 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9804 common/linux-procfs.c.
9805 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9806
44f238bb
PA
98072012-03-13 Hui Zhu <teawater@gmail.com>
9808 Pedro Alves <palves@redhat.com>
9809
9810 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9811 CREATE_BREAKPOINT_FLAGS_INSERTED.
9812 (create_breakpoint_sal, create_breakpoints_sal)
9813 (base_breakpoint_create_breakpoints_sal)
9814 (tracepoint_create_breakpoints_sal)
9815 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9816 down.
9817 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9818 (ftrace_command, strace_command): Adjust.
9819 (create_tracepoint_from_upload): Pass
9820 CREATE_BREAKPOINT_FLAGS_INSERTED.
9821 * breakpoint.h (enum breakpoint_create_flags): New.
9822 (create_breakpoint): New flags parameter.
9823 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9824 * python/py-breakpoint.c (bppy_init): Adjust.
9825 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9826 * spu-tdep.c (spu_catch_start): Adjust.
9827
1e51243a
PA
98282012-03-13 Pedro Alves <palves@redhat.com>
9829 Hui Zhu <teawater@gmail.com>
9830 Yao Qi <yao@codesourcery.com>
9831
9832 * remote.c (struct remote_state): New field `starting_up'.
9833 (remote_start_remote): Set and clear it.
9834 (remote_can_download_tracepoint): If starting up, return false.
9835
fa3064dd
YQ
98362012-03-13 Yao Qi <yao@codesourcery.com>
9837
9838 * inferior.h (struct inferior): Remove fields any_syscall_count,
9839 syscalls_counts and total_syscalls_count. Move them to new
9840 struct catch_syscall_inferior_data in breakpoint.c.
9841 * breakpoint.c: Call DEF_VEC_I(int).
9842 (struct catch_syscall_inferior_data): New.
9843 (get_catch_syscall_inferior_data): New.
9844 (catch_syscall_inferior_data_cleanup): New.
9845 (insert_catch_syscall): Update to access data in
9846 struct catch_syscall_inferior_data.
9847 (insert_catch_syscall): Likewise.
9848 (remove_catch_syscall): Likewise.
9849 (remove_catch_syscall): Likewise.
9850 (is_syscall_catchpoint_enabled): Likewise.
9851 (add_catch_command): Likewise.
9852 (_initialize_breakpoint): Register cleanup.
9853 * breakpoint.h: Removed DEF_VEC_I(int).
9854 * dwarf2loc.c: Call DEF_VEC_I(int).
9855 * mi/mi-main.c: Likewise.
9856
460fac3c
MK
98572012-03-12 Mark Kettenis <kettenis@gnu.org>
9858
9859 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9860
e1aca11e
JB
98612012-03-12 Chris January <chris.january@allinea.com>
9862
9863 * aix-thread.c (_initialize_aix_thread): Add prototype.
9864 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9865 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9866
649c7061
JB
98672012-03-12 Joel Brobecker <brobecker@adacore.com>
9868
9869 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9870 include of "amd64-nat.h".
9871
0b49e518
TT
98722012-03-12 Tom Tromey <tromey@redhat.com>
9873
9874 * buildsym.c (record_pending_block): Now static.
9875 * buildsym.h: (record_pending_block): Remove.
9876
fd24fa94
AT
98772012-03-12 Andreas Tobler <andreast@fgznet.ch>
9878
9879 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9880
ba919b58
TT
98812012-03-09 Tom Tromey <tromey@redhat.com>
9882
9883 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9884 producer_is_gxx_lt_4_6>: New fields.
9885 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9886
a48e046c
TT
98872012-03-09 Tom Tromey <tromey@redhat.com>
9888
9889 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9890
6f5e9362
JB
98912012-03-08 Joel Brobecker <brobecker@adacore.com>
9892
9893 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9894 prototype.
9895
8d037db9
JB
98962012-03-08 Joel Brobecker <brobecker@adacore.com>
9897
9898 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9899
4e841acf
JK
99002012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9901
9902 Fix -Wmissing-prototypes build.
9903 * arm-linux-nat.c (get_thread_id): Make it static.
9904 * xtensa-linux-nat.c (get_thread_id): Likewise.
9905
c6030312
JB
99062012-03-08 Joel Brobecker <brobecker@adacore.com>
9907
9908 * server.c (process_point_options): If a conditional expression
9909 is found, only print a message if remote_debug is nonzero.
9910
52323be9
LM
99112012-03-08 Luis Machado <lgustavo@codesourcery.com>
9912
9913 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9914 of internal error for unknown/unsupported types.
9915
7fe25d9b
JK
99162012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9917
9918 Fix CU relative vs. absolute DIE offsets.
9919 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9920 offset to offset_in_cu.
9921 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9922 TYPE_OFFSET.
9923 (dwarf2_fetch_die_location_block): Rename parameter offset to
9924 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9925
05e7c244
JK
99262012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9927
9928 * libunwind-frame.c: Rename to ...
9929 * ia64-libunwind-tdep.c: ... here.
9930 * libunwind-frame.h: Rename to ...
9931 * ia64-libunwind-tdep.h: ... here.
9932 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9933 ia64-libunwind-tdep.h.
9934 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9935 * README (--with-libunwind): Rename to ...
9936 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9937 * config.in: Regenerate.
9938 * configure: Regenerate.
9939 * configure.ac: New option --with-libunwind-ia64, make the
9940 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9941 Remove AC_DEFINE for HAVE_LIBUNWIND.
9942 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9943 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9944 Rename libunwind-frame in the general comment.
9945 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9946 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9947 Move forward declarations inside #ifndef. Rename libunwind-frame in
9948 the general comment.
9949 * ia64-tdep.c: Rename libunwind-frame.h #include to
9950 ia64-libunwind-tdep.h.
9951 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9952 (ia64_libunwind_descr): Rename libunwind-frame to
9953 ia64-libunwind-tdep in these function comments.
9954 * ia64-tdep.h: Rename libunwind-frame.h #include to
9955 ia64-libunwind-tdep.h.
9956 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9957 ia64-libunwind-tdep in that data comment.
9958
3755cbfd
JK
99592012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9960
9961 * libunwind-frame.h (struct frame_unwind): New declaration.
9962
d1cda5d9
JB
99632012-03-08 Joel Brobecker <brobecker@adacore.com>
9964
9965 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9966 "set breakpoint condition-evaluation" command.
9967
a0ba0aa2
TG
99682012-03-08 Tristan Gingold <gingold@adacore.com>
9969
9970 * sparc-stub.c: Move to stubs/
9971 * sh-stub.c: Likewise.
9972 * m68k-stub.c: Likewise.
9973 * m32r-stub.c: Likewise.
9974 * i386-stub.c: Likewise.
9975
7b8b6d6d
AS
99762012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9977
007cafee
AS
9978 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9979 linux_get_siginfo_type.
9980
7b8b6d6d
AS
9981 * m68klinux-nat.c: Include "gdb_proc_service.h".
9982 (PTRACE_GET_THREAD_AREA): Define.
9983 (ps_get_thread_area): New function.
9984
bba74b36
YQ
99852012-03-08 Yao Qi <yao@codesourcery.com>
9986
9987 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9988 `xsnprintf'.
9989 (remote_query_attached): Likewise.
9990 (remote_static_tracepoint_marker_at): Likewise.
9991 (remote_set_permissions): Likewise.
9992 (remote_detach_1, extended_remote_attach_1): Likewise.
9993 (send_g_packet, remote_vkill): Likewise.
9994 (extended_remote_disable_randomization): Likewise.
9995 (remote_add_target_side_condition): Likewise.
9996 (remote_insert_breakpoint): Likewise.
9997 (remote_remove_breakpoint): Likewise.
9998 (remote_insert_watchpoint): Likewise.
9999 (remote_remove_watchpoint): Likewise.
10000 (remote_insert_hw_breakpoint): Likewise.
10001 (remote_insert_hw_breakpoint): Likewise.
10002 (remote_remove_hw_breakpoint): Likewise.
10003 (remote_download_command_source): Likewise.
10004 (remote_download_tracepoint): Likewise.
10005 (remote_download_trace_state_variable): Likewise.
10006 (remote_disable_tracepoint): Likewise.
10007 (remote_trace_set_readonly_regions): Likewise.
10008 (remote_get_tracepoint_status): Likewise.
10009 (remote_trace_find): Likewise.
10010 (remote_get_trace_state_variable_value): Likewise.
10011 (remote_set_disconnected_tracing): Likewise.
10012 (remote_set_circular_trace_buffer): Likewise.
10013 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10014 (remote_use_agent): Likewise.
10015 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10016 Update callers.
10017
9b224c5e
PA
100182012-03-07 Pedro Alves <palves@redhat.com>
10019
10020 * NEWS: Mention QProgramSignals.
10021 * inferior.h (update_signals_program_target): Declare.
10022 * infrun.c: (update_signals_program_target): New.
10023 (handle_command): Update the target of the new program signals
10024 array changes.
10025 * remote.c (PACKET_QProgramSignals): New enum.
10026 (last_program_signals_packet): New global.
10027 (remote_program_signals): New.
10028 (remote_start_remote): Update the target with the program signals
10029 list.
10030 (remote_protocol_features): Add entry for QPassSignals.
10031 (remote_open_1): Free anc clear last_program_signals_packet.
10032 (init_remote_ops): Install remote_program_signals.
10033 * target.c (update_current_target): Adjust.
10034 (target_program_signals): New.
10035 * target.h (struct target_ops) <to_program_signals>: New field.
10036 (target_program_signals): Declare.
10037
74c48cbb
PA
100382012-03-07 Pedro Alves <palves@redhat.com>
10039
10040 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10041 extensions.
10042
0c13fc49
AS
100432012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10044
10045 * m68klinux-nat.c (getregs_supplies): Make static.
10046 (getfpregs_supplies): Likewise.
10047 (have_ptrace_getregs): Likewise.
10048
1281d2a3
JB
100492012-03-06 Joel Brobecker <brobecker@adacore.com>
10050
10051 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10052 in call to get_die_type_at_offset.
10053
2b03b41d
SS
100542012-03-06 Stan Shebs <stan@codesourcery.com>
10055
10056 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10057 * mi/mi-cmd-disas.c: Ditto.
10058 * mi/mi-cmd-env.c: Ditto.
10059 * mi/mi-cmd-file.c: Ditto.
10060 * mi/mi-cmd-stack.c: Ditto.
10061 * mi/mi-cmd-target.c: Ditto.
10062 * mi/mi-cmd-var.c: Ditto.
10063 * mi/mi-cmds.c: Ditto.
10064 * mi/mi-cmds.h: Ditto.
10065 * mi/mi-console.c: Ditto.
10066 * mi/mi-getopt.c: Ditto.
10067 * mi/mi-getopt.h: Ditto.
10068 * mi/mi-interp.c: Ditto.
10069 * mi/mi-main.c: Ditto.
10070 * mi/mi-out.c: Ditto.
10071 * mi/mi-parse.c: Ditto.
10072 * mi/mi-parse.h: Ditto.
10073 * mi/mi-symbol-cmds.c: Ditto.
10074
10075 * mi/mi-getopt.h: Move mi_opt struct up.
10076 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10077 return.
10078 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10079
c988ad87
TT
100802012-03-06 Tom Tromey <tromey@redhat.com>
10081
10082 * proc-service.c (ps_pglobal_lookup): Set the current program
10083 space.
10084
1b7c1b10
PA
100852012-03-06 Pedro Alves <palves@redhat.com>
10086
10087 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10088
3c182069
JB
100892012-03-05 Joel Brobecker <brobecker@adacore.com>
10090
10091 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10092
2e794194
JK
100932012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10094
10095 Code cleanup.
10096 * common/linux-osdata.c (linux_common_core_of_thread): New function
10097 comment.
10098 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10099 call by linux_common_core_of_thread.
10100 (linux_nat_core_of_thread_1): Remove.
10101 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10102 * linux-thread-db.c: Include linux-osdata.h.
10103 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10104 linux_common_core_of_thread.
10105
9f9f1f31
TT
101062012-03-05 Tom Tromey <tromey@redhat.com>
10107
10108 * value.c (value_primitive_field): Don't fetch contents for
10109 non-virtual bases.
10110
b7b189f3
TT
101112012-03-05 Tom Tromey <tromey@redhat.com>
10112
10113 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10114
05b8a789 101152012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 10116
5538f557
JB
10117 * s390-nat.c: Include "gregset.h".
10118
75528772
JK
101192012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10120
10121 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10122 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10123 (libunwind_load): New variable so_error, use it for dlerror. Try to
10124 load also LIBUNWIND_SO_7.
10125
275418ae
PA
101262012-03-05 Pedro Alves <palves@redhat.com>
10127
10128 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10129 is not NULL, and remove resulting dead code.
10130
5cbb9812
TS
101312012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10132
10133 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10134 prologue to sh_analyze_prologue.
10135 (sh_analyze_prologue): Make better use of such an upper limit, and
10136 generally be more cautious about accessing memory.
10137
541515ad
TT
101382012-03-05 Tom Tromey <tromey@redhat.com>
10139
10140 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10141 _initialize_ia64_hpux_tdep.
10142
b4d36fb8
PA
101432012-03-05 Pedro Alves <palves@redhat.com>
10144
24490249
PA
10145 PR gdb/13766
10146
b4d36fb8
PA
10147 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10148 the register state is clear, supply explicit zero, instead of
10149 marking the register unavailable.
10150
60c9a3c0
TG
101512012-03-05 Tristan Gingold <gingold@adacore.com>
10152
10153 * NEWS: Mention OpenVMS ia64 new target.
10154
696759ad
TG
101552012-03-05 Tristan Gingold <gingold@adacore.com>
10156
10157 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10158 (ia64_unw_accessors, ia64_unw_rse_accessors)
10159 (ia64_libunwind_descr): Declare.
10160 * ia64-vms-tdep.c: New file.
10161 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10162 (ia64_libunwind_descr): Make them public.
10163 * configure.tgt: Add ia64-*-*vms*.
10164 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10165 (ALLDEPFILES): Add ia64-vms-tdep.c
10166
34864976
TG
101672012-03-05 Tristan Gingold <gingold@adacore.com>
10168
169081d0
TG
10169 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10170 * remote.c (PACKET_qXfer_uib): New enum value.
10171 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10172 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10173 (_initialize_remote): Call add_packet_config_cmd for
10174 xfer:uib packet.
10175
101762012-03-05 Tristan Gingold <gingold@adacore.com>
10177
10178 * osabi.c (gdb_osabi_names): Add OpenVMS.
10179 (generic_elf_osabi_sniffer): Likewise.
10180 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 10181
6597b100
JK
101822012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10183
10184 Removed unused code.
10185 * libunwind-frame.c (libunwind_frame_unwind)
10186 (libunwind_frame_base_address): Remove.
10187 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10188
87399aa1
YQ
101892012-03-04 Yao Qi <yao@codesourcery.com>
10190
10191 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10192 remove trailing new line.
10193 (agent_run_command, agent_run_command): Add _ markup.
10194 (agent_capability_check): Likewise.
10195
abf1152a
JK
101962012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10197
10198 * breakpoint.c (set_condition_evaluation_mode): Set
10199 CONDITION_EVALUATION_MODE unconditionally.
10200
5808517f
YQ
102012012-03-03 Yao Qi <yao@codesourcery.com>
10202
10203 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10204 * common/agent.h: Update declaration.
10205 * inf-child.c (inf_child_use_agent): New.
10206 (inf_child_can_use_agent): New.
10207 (inf_child_target): Initialize fields `to_use_agent'
10208 and `to_can_use_agent'.
10209 * agent.c (agent_new_objfile): New.
89b7509a 10210 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
10211 observer.
10212
10213 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10214 New.
89b7509a 10215 (linux_target_install_ops): Initialize field
5808517f
YQ
10216 `to_static_tracepoint_markers_by_strid'.
10217 * remote.c (free_current_marker): Move it to ...
10218 * tracepoint.c (free_current_marker): ... here. New.
10219 (cleanup_target_stop): New.
10220 * tracepoint.h: Declare free_current_marker.
10221 * NEWS: Add one entry about `info static-tracepoint-marker'.
10222
58b4daa5
YQ
102232012-03-03 Yao Qi <yao@codesourcery.com>
10224
10225 * common/agent.c (agent_loaded_p): New.
89b7509a 10226 (agent_look_up_symbols): New global.
58b4daa5
YQ
10227 * common/agent.h: Declare agent_loaded_p.
10228
8ffcbaaf
YQ
102292012-03-03 Yao Qi <yao@codesourcery.com>
10230
10231 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10232 (agent_capability_check, agent_capability_invalidate): New.
10233 (symbol_list): New array element.
10234 * common/agent.h (enum agent_capa): New.
10235 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10236
d1feda86
YQ
102372012-03-03 Yao Qi <yao@codesourcery.com>
10238
10239 * target.h (struct target_ops) <to_use_agent>: New field.
10240 (struct target_ops) <to_can_use_agent>: New field.
10241 (target_use_agent, target_can_use_agent): New macro.
10242 * target.c (update_current_target): Update.
10243 * remote.c: New enum `PACKET_QAgent'.
10244 (remote_protocol_features): Add a new element.
10245 (remote_use_agent, remote_can_use_agent): New.
10246 (init_remote_ops): Initialize field `can_use_agent' with
10247 remote_can_use_agent. Intiailize field `use_agent' with
10248 remote_use_agent.
10249 * common/agent.c (use_agent): New global.
10250 * common/agent.h: Declare it.
10251 * tracepoint.c (info_static_tracepoint_markers_command): Add
10252 comment.
10253 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10254 (COMMON_OBS): Add common/agent.o and agent.o
10255 (common-agent.o): New rule.
10256 * agent.c: New.
10257
2fa291ac
YQ
102582012-03-03 Yao Qi <yao@codesourcery.com>
10259
10260 * common/agent.c: New.
10261 * common/agent.h: New.
10262 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10263 AC_CHECK_HEADERS.
10264 * configure, configh.in: Regenerated.
10265
9fc05685
KB
102662012-03-02 Kevin Buettner <kevinb@redhat.com>
10267
10268 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10269 unless it exists for this architecture.
10270
a5ee536b
JB
102712012-03-02 Joel Brobecker <brobecker@adacore.com>
10272
10273 * language.h (struct language_defn): New "method" la_read_var_value.
10274 * findvar.c: #include "language.h".
10275 (default_read_var_value): Renames read_var_value. Rewrite
10276 function description.
10277 (read_var_value): New function.
10278 * value.h (default_read_var_value): Add prototype.
10279 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10280 New functions.
10281 (ada_language_defn): Add entry for la_read_var_value.
10282 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10283 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10284 language_defn structures to add entry for new la_read_var_value
10285 field.
10286
f59f708a
PA
102872012-03-02 Tom Tromey <tromey@redhat.com>
10288 Pedro Alves <palves@redhat.com>
10289
10290 PR breakpoints/13776:
10291 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10292 breakpoints.
10293 (delete_longjmp_breakpoint_at_next_stop): New.
10294 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10295 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10296 before deleting the inferior. Add comments.
10297 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10298 breakpoints immediately, but only on next stop. Move that code
10299 next to where we mark other breakpoints for deletion.
10300
44099a67
JB
103012012-03-02 Joel Brobecker <brobecker@adacore.com>
10302
10303 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10304 marker.
10305 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10306 violation.
10307
2a2ef594
PA
103082012-03-02 Pedro Alves <palves@redhat.com>
10309
10310 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10311
b261e0c5
UW
103122012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10313
10314 Fix -Wmissing-prototypes build.
10315 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10316 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10317 (gdbsim_has_memory): Likewise.
10318
a95babbf
YQ
103192012-03-02 Yao Qi <yao@codesourcery.com>
10320
10321 Fix -Wmissing-prototypes build.
10322 * charset.c (phony_iconv_open): Make static.
10323 (phony_iconv_close, phony_iconv): Likewise.
10324 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10325 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10326 prototype.
10327 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10328 * ser-mingw.c (create_select_thread): Make static.
10329 * windows-termcap.c (tgetent): New prototype.
10330 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10331
d603d4b3
JK
103322012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10333
10334 Fix -Wmissing-prototypes build.
10335 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10336 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10337 (_initialize_loadable): New prototypes.
10338
7fb3ad1f
DE
103392012-03-02 Doug Evans <dje@google.com>
10340
10341 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10342 abbrev table, read_comp_unit will do it.
10343
693be288
JK
103442012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10345
10346 Fix -Wmissing-prototypes build.
10347 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10348 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10349 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10350 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10351 (_initialize_arm_symbian_tdep): New prototype.
10352 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10353 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10354 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10355 static.
10356 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10357 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10358 prototype.
10359 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10360 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10361 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10362 static.
10363 * moxie-tdep.c (moxie_process_record): Likewise.
10364 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10365 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10366 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10367 (_initialize_rl78_tdep): New prototype.
10368 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10369 (_initialize_rx_tdep): New prototype.
10370 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10371 (_initialize_darwin_solib): New prototype.
10372 * solib-spu.c: Include solib-spu.h.
10373 (_initialize_spu_solib): New prototype.
10374 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10375 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10376 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10377 (tic6x_software_single_step): Make it static.
10378 (_initialize_tic6x_tdep): New prototype.
10379
638234e5
JK
103802012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10381
10382 Fix -Wmissing-prototypes build.
10383 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10384 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10385
f4a6f16d
JK
103862012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10387
10388 Fix -Wmissing-prototypes build.
10389 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10390 (frv_have_stopped_data_address): Remove.
10391
04dcf5fa
JK
103922012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10393
10394 Fix -Wmissing-prototypes build.
10395 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10396 * sh-tdep.c: Include sh64-tdep.h.
10397 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10398 * sh64-tdep.c: Include sh64-tdep.h.
10399 * sh64-tdep.h: New file.
10400
19080931
MR
104012012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10402
10403 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10404
9aac7884
MR
104052012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10406
10407 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10408 sp_regnum once the gdbarch_init_osabi hook has been called.
10409
a385295e
MR
104102012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10411
10412 * mips-tdep.c (mips32_bc1_pc): New function.
10413 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10414 BPOSGE32 and BPOSGE64 instructions.
10415 (deal_with_atomic_sequence): Likewise.
10416 (mips32_instruction_has_delay_slot): Likewise.
10417
1faeff08 104182012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
10419 Chris Dearman <chris@mips.com>
10420 Maciej W. Rozycki <macro@codesourcery.com>
10421 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
10422
10423 * features/mips-dsp.xml: New file.
10424 * features/mips64-dsp.xml: New file.
10425 * features/mips-dsp-linux.xml: New file.
10426 * features/mips64-dsp-linux.xml: New file.
10427 * features/Makefile (WHICH): Add mips-dsp-linux and
10428 mips64-dsp-linux.
10429 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10430 * features/mips-dsp-linux.c: New file.
10431 * features/mips64-dsp-linux.c: New file.
10432 * regformats/mips-dsp-linux.dat: New file.
10433 * regformats/mips64-dsp-linux.dat: New file.
10434 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10435 registers.
10436 (mips64_linux_register_addr): Likewise.
10437 (mips64_linux_regsets_fetch_registers): Likewise.
10438 (mips64_linux_regsets_store_registers): Likewise.
10439 (mips64_linux_fetch_registers): Update call to
10440 mips64_linux_regsets_fetch_registers.
10441 (mips64_linux_store_registers): Update call to
10442 mips64_linux_regsets_store_registers.
10443 (mips_linux_read_description): Probe for DSP registers.
10444 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10445 and initialize_tdesc_mips64_dsp_linux.
10446 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10447 Remove padding of no longer used embedded register slots.
10448 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10449 (MIPS_RESTART_REGNUM): Redefine enum value.
10450 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10451 strings.
10452 (mips_tx39_reg_names): Likewise.
10453 (mips_linux_reg_names): New array of register names for Linux
10454 targets.
10455 (mips_register_name): Check for a null pointer in
10456 mips_processor_reg_names and return an empty string.
10457 (mips_register_type): Exclude embedded registers for the IRIX
10458 and Linux ABIs.
10459 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10460 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10461 DSP registers.
10462 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10463 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10464 (mips_gdbarch_init): Likewise. Initialize internal register
10465 indices for the Linux ABI. Use dynamic numbers to refer to
10466 registers, as applicable, while parsing the target description.
10467 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10468
263689d8
JB
104692012-03-01 Joel Brobecker <brobecker@adacore.com>
10470
10471 * frame.h (read_frame_register_unsigned): Fix typo in function
10472 description.
10473
f3b4f45c
PA
104742012-03-01 Pedro Alves <palves@redhat.com>
10475
10476 * jit-reader.in [!__cplusplus]
10477 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10478
b03a2011
PA
104792012-03-01 Pedro Alves <palves@redhat.com>
10480
10481 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10482 * configure: Regenerate.
10483
70221824
PA
104842012-03-01 Pedro Alves <palves@redhat.com>
10485
10486 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10487 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10488 (ftrace_command, strace_command): Make static.
10489 * d-lang.c (_initialize_d_language): Declare.
10490 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10491 * dwarf2loc.c (_initialize_dwarf2loc):
10492 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10493 * exec.c (exec_get_section_table): Make static.
10494 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10495 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10496 * inferior.c (remove_inferior_command, add_inferior_command)
10497 (clone_inferior_command): Make static.
10498 * linux-nat.c (linux_nat_thread_address_space)
10499 (linux_nat_core_of_thread): Make static.
10500 * linux-tdep.c (_initialize_linux_tdep): Declare.
10501 * objc-lang.c (_initialize_objc_lang): Declare.
10502 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10503 Make static.
10504 (_initialize_opencl_language): Declare.
10505 * record.c (_initialize_record): Declare.
10506 * remote.c (demand_private_info, remote_get_tib_address)
10507 (remote_supports_cond_tracepoints)
10508 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10509 Make static.
10510 * skip.c (_initialize_step_skip): Declare.
10511 * symtab.c (skip_prologue_using_lineinfo): Make static.
10512 * tracepoint.c (delete_trace_state_variable)
10513 (trace_variable_command, delete_trace_variable_command)
10514 (get_uploaded_tsv, find_matching_tracepoint_location)
10515 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10516 Make static.
10517 * value.c (pack_unsigned_long): Make static.
10518 * varobj.c (varobj_ensure_python_env): Make static.
10519 * windows-tdep.c (_initialize_windows_tdep): Declare.
10520 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10521
33fbcbee
PA
105222012-03-01 Pedro Alves <palves@redhat.com>
10523
10524 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10525 gdbarch parameter.
10526 (linux_init_abi): Install it as has_shared_address_space gdbarch
10527 callback.
10528
44d0cd3b
PA
105292012-03-01 Pedro Alves <palves@redhat.com>
10530
10531 * observer.c (observer_test_first_notification_function)
10532 (observer_test_second_notification_function)
10533 (observer_test_third_notification_function): Add declarations.
10534
ed01b82c
PA
105352012-03-01 Pedro Alves <palves@redhat.com>
10536
10537 * common/signals.c (default_target_signal_to_host)
10538 (default_target_signal_from_host): Move ...
10539 * arch-utils.c: ... here.
10540 * arch-utils.h (default_target_signal_to_host)
10541 (default_target_signal_from_host): Declare.
10542
10543 * common/signals.c (target_signal_from_command): Move ...
10544 * infrun.c: ... here.
10545 * inferior.h (target_signal_from_command): Declare.
10546 * target.h (target_signal_from_command)
10547 (default_target_signal_from_host, default_target_signal_to_host):
10548 Delete declarations.
10549
10550 * common/signals.c (_initialize_signals): Delete.
10551
c9b87335
PA
105522012-03-01 Pedro Alves <palves@redhat.com>
10553
10554 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10555 both __cplusplus and !__cplusplus.
10556
9340a6c0
PA
105572012-03-01 Pedro Alves <palves@redhat.com>
10558
10559 * psymtab.c (find_and_open_source): Delete declaration.
10560 * source.c (find_and_open_source): Move comment ...
10561 * source.h (find_and_open_source): ... to this new declaration.
10562
e451c4a1
PA
105632012-03-01 Pedro Alves <palves@redhat.com>
10564
10565 * inline-frame.c: Include inline-frame.h.
10566
983fb104
PA
105672012-03-01 Pedro Alves <palves@redhat.com>
10568
10569 * tui/tui-data.c (set_gen_win_origin): Delete.
10570 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10571 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10572
5fbce5df
PA
105732012-03-01 Pedro Alves <palves@redhat.com>
10574
10575 * remote.c (encode_actions): Delete declaration.
10576 * tracepoint.c (encode_actions): Make extern.
10577 * tracepoint.h (encode_actions): Declare.
10578
49a8461d
PA
105792012-03-01 Pedro Alves <palves@redhat.com>
10580
10581 * python/py-breakpoint.c: Include python.h.
10582 * python/py-continueevent.c (create_continue_event_object): Make
10583 static.
10584 * python/py-lazy-string.c (stpy_get_type): Make static.
10585 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10586 Make static.
10587 * python/py-utils.c (unicode_to_target_python_string): Make
10588 static.
10589 * python/py-value.c: Include python.h.
10590
9079102f
PA
105912012-03-01 Pedro Alves <palves@redhat.com>
10592
10593 * inferior.c (delete_threads_of_inferior): Delete.
10594
a298c5e8
PA
105952012-03-01 Pedro Alves <palves@redhat.com>
10596
10597 Import fallback definitions from glibc.
10598
10599 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10600 ps_prochandle): Forward declare.
10601 (ps_err_e): Use glibc's comments.
10602 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10603 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10604 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10605 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10606 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10607 (struct ps_prochandle): Adjust comment.
10608
e3084549
PA
106092012-03-01 Pedro Alves <palves@redhat.com>
10610
10611 * ada-lang.c (ada_modulus_from_name): Delete.
10612 * ada-lex.l (lexer_init): Make static.
10613
ad5f7d6e
PA
106142012-03-01 Pedro Alves <palves@redhat.com>
10615
10616 PR gdb/13767
10617
10618 * frame.c (read_frame_register_unsigned): New.
10619 * frame.h (read_frame_register_unsigned): Declare.
10620 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10621 Handle it.
10622 (print_i387_control_word): New parameter `control_p'. Handle it.
10623 (i387_print_float_info): Handle unavailable float registers.
10624
e0a4d108
KS
106252012-03-01 Keith Seitz <keiths@redhat.com>
10626
10627 * linespec.c (decode_line_2): Sort the list of methods
10628 alphabetically before presenting the user with a selection
10629 menu.
10630
122d1940
DE
106312012-03-01 Doug Evans <dje@google.com>
10632
10633 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10634 has_namespace_info.
10635 (dwarf2_read_abbrevs): Remove corresponding initialization.
10636
7d74f244
DE
106372012-03-01 Scott J. Goldman <scottjg@vmware.com>
10638
10639 * NEWS: Mention new python command class gdb.COMMAND_USER.
10640 * cli/cli-cmds.c (show_user): Print error when used on a python
10641 command.
10642 (init_cli_cmds): Update documentation strings for "show user" and
10643 "set/show max-user-call-depth" to clarify that it does not apply to
10644 python commands.
10645 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10646 error check.
10647 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10648 gdb python api.
10649 * top.c (execute_command): Only execute a user-defined command as a
10650 legacy macro if c->user_commands is set.
10651
e88acd96
TT
106522012-03-01 Tom Tromey <tromey@redhat.com>
10653
10654 * valprint.h (struct generic_val_print_decorations): New.
10655 (generic_val_print): Declare.
10656 * valprint.c (generic_val_print): New function.
10657 * p-valprint.c (p_decorations): New global.
10658 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10659 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10660 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10661 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10662 * m2-valprint.c (m2_decorations): New global.
10663 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10664 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10665 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10666 TYPE_CODE_ERROR>: Call generic_val_print.
10667 * f-valprint.c (f_decorations): New global.
10668 (f_val_print): Use print_function_pointer_address.
10669 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10670 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10671 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10672 generic_val_print.
10673 * c-valprint.c (c_decorations): New global.
10674 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10675 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10676 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10677 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10678 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10679 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10680 case.
10681
d3eab38a
TT
106822012-03-01 Tom Tromey <tromey@redhat.com>
10683
10684 * valprint.c (val_print): Update.
10685 * p-valprint (pascal_val_print): Return void.
10686 * p-lang.h (pascal_val_print): Return void.
10687 * m2-valprint.c (m2_val_print): Return void.
10688 * m2-lang.h (m2_val_print): Return void.
10689 * language.h (struct language_defn) <la_val_print>: Return void.
10690 * language.c (unk_lang_val_print): Return void.
10691 * jv-valprint.c (java_val_print): Return void.
10692 * jv-lang.h (java_val_print): Return void.
10693 * f-valprint.c (f_val_print): Return void.
10694 * f-lang.h (f_val_print): Return void.
10695 * d-valprint.c (d_val_print): Return void.
10696 (dynamic_array_type): Update.
10697 * d-lang.h (d_val_print): Return void.
10698 * c-valprint.c (c_val_print): Return void.
10699 * c-lang.h (c_val_print): Return void.
10700 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10701 void.
10702 * ada-lang.h (ada_val_print): Return void.
10703
35c0084b
TT
107042012-03-01 Tom Tromey <tromey@redhat.com>
10705
10706 * value.h (val_print): Return void.
10707 * valprint.c (val_print): Return void.
10708
a1f5dd1b
TT
107092012-03-01 Tom Tromey <tromey@redhat.com>
10710
10711 * value.h (common_val_print): Return void.
10712 * valprint.c (common_val_print): Return void.
10713
8e069a98
TT
107142012-03-01 Tom Tromey <tromey@redhat.com>
10715
10716 * value.h (value_print): Return void.
10717 * valprint.c (value_print): Return void.
10718 * p-valprint.c (pascal_value_print): Return void.
10719 * p-lang.h (pascal_value_print): Return void.
10720 * language.h (struct language_defn) <la_value_print>: Return
10721 void.
10722 * language.c (unk_lang_value_print): Return void.
10723 * jv-valprint.c (java_value_print): Return void.
10724 * jv-lang.h (java_value_print): Return void.
10725 * f-valprint.c (c_value_print): Don't declare.
10726 Include c-lang.h.
10727 * c-valprint.c (c_value_print): Return void.
10728 * c-lang.h (c_value_print): Return void.
10729 * ada-valprint.c (ada_value_print): Return void.
10730 * ada-lang.h (ada_value_print): Return void.
10731
be335936
TT
107322012-03-01 Tom Tromey <tromey@redhat.com>
10733
10734 * value.c (value_primitive_field): Handle virtual base classes.
10735
b0db66a7
TT
107362012-03-01 Tom Tromey <tromey@redhat.com>
10737
10738 * gdbtypes.h (struct vbase): Remove.
10739
132c57b4
TT
107402012-03-01 Tom Tromey <tromey@redhat.com>
10741
10742 * c-valprint.c (print_function_pointer_address): Move...
10743 * valprint.c: ... here. Make non-static.
10744 * m2-valprint.c (print_function_pointer_address): Remove.
10745 * valprint.h (print_function_pointer_address): Declare.
10746
e41eec66
JB
107472012-03-01 Joel Brobecker <brobecker@adacore.com>
10748
10749 * NEWS: Document the fact that one can provide a condition when
10750 creating an Ada exception catchpoint.
10751
19c37f24
TT
107522012-03-01 Tom Tromey <tromey@redhat.com>
10753
10754 * valprint.c (val_print_type_code_flags): Fix placement of
10755 trailing brace.
10756
f0fed3a3
JB
107572012-03-01 Joel Brobecker <brobecker@adacore.com>
10758
10759 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10760 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10761 environment variable before calling update-copyright.
10762
8ba85d85
JB
107632012-03-01 Joel Brobecker <brobecker@adacore.com>
10764
10765 * gnulib/extra/update-copyright: Update to the latest from
10766 gnulib's git repository.
10767 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10768 variable to 2 instead of 1.
10769
8219b1e8
JB
107702012-02-29 Joel Brobecker <brobecker@adacore.com>
10771
10772 * varobj.c (c_value_of_variable): Remove dead code.
10773
718cb7da
JB
107742012-02-29 Joel Brobecker <brobecker@adacore.com>
10775
10776 * ada-lex.p (processId): Do not modify already encoded IDs.
10777 Update function documentation.
10778
739593e0
JB
107792012-02-29 Joel Brobecker <brobecker@adacore.com>
10780
10781 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10782 "name" with "struct symbol *name_sym".
10783 * ada-exp.y (write_var_or_type): Update call to
10784 ada_find_renaming_symbol.
10785 "name" with "struct symbol *name_sym". Adjust Implementation
10786 accordingly. Adjust the function documentation.
10787
852dff6c
JB
107882012-02-29 Joel Brobecker <brobecker@adacore.com>
10789
10790 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10791 * ada-lang.c (ada_find_any_type): Add advance declaration.
10792 Make static. Replace ada_find_any_symbol by
10793 ada_find_any_type_symbol.
10794 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10795 Improve function description. Make static.
10796 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10797 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10798
1b611343
JB
107992012-02-29 Joel Brobecker <brobecker@adacore.com>
10800
10801 * ada-lang.c (struct tag_args): Delete.
10802 (ada_get_tsd_type): Function body moved up in source file.
10803 (ada_tag_name_1, ada_tag_name_2): Delete.
10804 (ada_get_tsd_from_tag): New function.
10805 (ada_tag_name_from_tsd): New function.
10806 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10807 to determine the tag name.
10808
41246937
JB
108092012-02-29 Joel Brobecker <brobecker@adacore.com>
10810
10811 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10812 declaration.
10813 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10814 function.
10815
ffde82bf
JB
108162012-02-29 Joel Brobecker <brobecker@adacore.com>
10817
10818 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10819
2ad01556
JB
108202012-02-29 Joel Brobecker <brobecker@adacore.com>
10821
10822 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10823 full searches.
10824
99b1c762
JB
108252012-02-29 Joel Brobecker <brobecker@adacore.com>
10826
10827 * ada-lang.c (constrained_packed_array_type): If there is a
10828 parallel XA type, use it to determine the array index type.
10829
2d4a02ee
JB
108302012-02-29 Joel Brobecker <brobecker@adacore.com>
10831
10832 * ada-valprint.c (ada_val_print_1): If our value is a reference
10833 to an array descriptor, dereference it before converting it
10834 to a simple array.
10835
c48db5ca
JB
108362012-02-29 Joel Brobecker <brobecker@adacore.com>
10837
10838 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10839 creating fixed value.
10840 (ada_value_ind, ada_coerce_ref, assign_component)
10841 (ada_evaluate_subexp): Remove call to unwrap_value before
10842 call to ada_to_fixed_value.
10843
2e6fda7d
JB
108442012-02-29 Joel Brobecker <brobecker@adacore.com>
10845
10846 * ada-lang.c (to_fixed_array_type): Set result's type name.
10847
5845583d
JB
108482012-02-29 Joel Brobecker <brobecker@adacore.com>
10849
10850 * ada-lang.c (catch_ada_exception_command_split): Add new
10851 argument cond_string. Add support for condition at end of
10852 "catch exception" commands.
10853 (ada_decode_exception_location): Add new argument cond_string.
10854 Update call to catch_ada_exception_command_split.
10855 (create_ada_exception_catchpoint): Add new argument cond_string.
10856 Set the breakpoint condition if needed.
10857 (catch_ada_exception_command): Update call to
10858 ada_decode_exception_location.
10859 (ada_decode_assert_location): Add function documentation.
10860 Add support for condition at end of "catch assert" command.
10861 (catch_assert_command): Update calls to ada_decode_assert_location
10862 and create_ada_exception_catchpoint.
10863
9a7f938f
JK
108642012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10865
10866 Fix disp-step-syscall.exp: fork: single step over fork.
10867 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10868 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10869 comment, change parameters gdbarch and ptid to regcache. Remove
10870 parameter regcache, initialize gdbarch from regcache here.
10871 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10872 New functions.
10873 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10874 instead.
10875 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10876 'syscall'. Make the 'int' check more strict.
10877
ffdf6de5
JK
108782012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10879
10880 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10881 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10882 (i386_linux_intx80_sysenter_syscall_record): ... here.
10883 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10884 Use the renamed function name.
10885
c70a6932
JK
108862012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10887
10888 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10889 * breakpoint.c (until_break_command): Likewise.
10890 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10891 * infcall.c (call_function_by_hand): Likewise.
10892 * infcmd.c (finish_forward): Likewise.
10893 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10894
05b8a789 108952012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10896
d4cd3da9
JB
10897 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10898 avoid variable assignments inside condition.
10899
6425366c
JK
109002012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10901
10902 Fix static analysis issue found by cppcheck.
10903 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10904 uninitialized BUF for size 2.
10905
c8cef75f 109062012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10907 Nathan Froyd <froydnj@codesourcery.com>
10908 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10909
10910 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10911 (mips16_instruction_has_delay_slot): Likewise.
10912 (mips_segment_boundary): Likewise.
10913 (mips_adjust_breakpoint_address): Likewise.
10914 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10915
473347ad 109162012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10917 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10918
10919 * infrun.c (handle_inferior_event): Don't proceed through
10920 shared library trampolines if stepping at the machine
10921 instruction level.
10922
cf233303
MR
109232012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10924
10925 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10926 too.
10927
cb2cf4ce
TS
109282012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10929
10930 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10931 (sh_stub_unwind_sniffer): New functions.
10932 (sh_stub_unwind): New variable.
10933 (sh_gdbarch_init): Wire everything.
10934
644cebc9
PA
109352012-02-27 Pedro Alves <palves@redhat.com>
10936
10937 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10938 (linux_nat_post_attach_wait): Adjust to use
10939 linux_proc_pid_is_stopped.
10940 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10941 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10942 based on pid_is_stopped from both linux-nat.c and
10943 gdbserver/linux-low.c, and renamed.
10944
283002cf
MR
109452012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10946
10947 * remote.c (remote_watchpoint_addr_within_range): New function.
10948 (init_remote_ops): Use it.
10949
9b3e86b1
MR
109502012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10951
10952 * target.h (target_watchpoint_addr_within_range): Document macro.
10953
e36930bb
PA
109542012-02-24 Pedro Alves <palves@redhat.com>
10955
10956 * stack.c (set_last_displayed_sal): Issue internal_error instead
10957 of warning, and issue it after clearing the last displayed sal.
10958
883bc8d1
PA
109592012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10960 Pedro Alves <palves@redhat.com>
10961
10962 * breakpoint.c (until_break_command): Install breakpoints after
10963 all frame manipulations.
10964
b775012e
LM
109652012-02-24 Luis Machado <lgustavo@codesourcery.com>
10966
10967 * remote.c (remote_supports_cond_breakpoints): New forward
10968 declaration.
10969 (remote_add_target_side_condition): New function.
10970 (remote_insert_breakpoint): Add target-side breakpoint
10971 conditional if supported.
10972 (remote_insert_hw_breakpoint): Likewise.
10973 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10974 hook.
10975
10976 * target.c (update_current_target): Inherit
10977 to_supports_evaluation_of_breakpoint_conditions.
10978 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10979
10980 * target.h (struct target_ops)
10981 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10982 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10983
10984 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10985 (condition_evaluation_both, condition_evaluation_auto,
10986 condition_evaluation_host, condition_evaluation_target,
10987 condition_evaluation_enums, condition_evaluation_mode_1,
10988 condition_evaluation_mode): New static globals.
10989 (translate_condition_evaluation_mode): New function.
10990 (breakpoint_condition_evaluation_mode): New function.
10991 (gdb_evaluates_breakpoint_condition_p): New function.
10992 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10993 (mark_breakpoint_modified): New function.
10994 (mark_breakpoint_location_modified): New function.
10995 (set_condition_evaluation_mode): New function.
10996 (show_condition_evaluation_mode): New function.
10997 (bp_location_compare_addrs): New function.
10998 (get_first_location_gte_addr): New helper function.
10999 (set_breakpoint_condition): Free condition bytecode if locations
11000 has become unconditional. Call mark_breakpoint_modified (...).
11001 (condition_command): Call update_global_location_list (1) for
11002 breakpoints.
11003 (breakpoint_xfer_memory): Use is_breakpoint (...).
11004 (is_breakpoint): New function.
11005 (parse_cond_to_aexpr): New function.
11006 (build_target_condition_list): New function.
11007 (insert_bp_location): Handle target-side conditional
11008 breakpoints and call build_target_condition_list (...).
11009 (update_inserted_breakpoint_locations): New function.
11010 (insert_breakpoint_locations): Handle target-side conditional
11011 breakpoints.
11012 (bpstat_check_breakpoint_conditions): Add comment.
11013 (bp_condition_evaluator): New function.
11014 (bp_location_condition_evaluator): New function.
11015 (print_breakpoint_location): Print information on where the condition
11016 will be evaluated.
11017 (print_one_breakpoint_location): Likewise.
11018 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11019 breakpoint location.
11020 (force_breakpoint_reinsertion): New functions.
11021 (update_global_location_list): Handle target-side breakpoint
11022 conditions.
11023 Reinsert locations that are already inserted if conditions have
11024 changed.
11025 (bp_location_dtor): Free agent expression bytecode.
11026 (disable_breakpoint): Call mark_breakpoint_modified (...).
11027 Call update_global_location_list (...) with parameter 1 for breakpoints.
11028 (disable_command): Call mark_breakpoint_location_modified (...).
11029 Call update_global_location_list (...) with parameter 1 for breakpoints.
11030 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11031 (enable_command): mark_breakpoint_location_modified (...).
11032 (_initialize_breakpoint): Update documentation and add
11033 condition-evaluation breakpoint subcommand.
11034
11035 * breakpoint.h: Include ax.h.
11036 (condition_list): New data structure.
11037 (condition_status): New enum.
11038 (bp_target_info) <cond_list>: New field.
11039 (bp_location) <condition_changed, cond_bytecode>: New fields.
11040 (is_breakpoint): New prototype.
11041
3788aec7
LM
110422012-02-24 Luis Machado <lgustavo@codesourcery.com>
11043
11044 * remote.c (remote_state) <cond_breakpoints>: New field.
11045 (PACKET_ConditionalBreakpoints): New enum.
11046 (remote_cond_breakpoint_feature): New function.
11047 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11048 (remote_supports_cond_breakpoints): New function.
11049 (_initialize_remote): Add new packet configuration for
11050 target-side conditional breakpoints.
11051
72895ff6
LM
110522012-02-24 Luis Machado <lgustavo@codesourcery.com>
11053
11054 * NEWS: Mention target-side conditional breakpoint support,
11055 new condition-evaluation breakpoint subcommand and remote
11056 packet extensions.
11057
dea2aa5f
LM
110582012-02-24 Luis Machado <lgustavo@codesourcery.com>
11059
11060 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11061 number.
11062
8a8bc27f
TS
110632012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11064
11065 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11066 (after_prologue): Remove.
11067
6b446fdf
TT
110682012-02-23 Tom Tromey <tromey@redhat.com>
11069
11070 * jv-valprint.c (java_val_print): Remove dead code.
11071
ef59abfb
TG
110722012-02-23 Tristan Gingold <gingold@adacore.com>
11073
a09130f9
PA
11074 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11075 known_tasks_element and known_tasks_length fields.
11076 (read_known_tasks_array): Change argument type. Use pointer type
11077 and number of elements from DATA. Adjust.
11078 (read_known_tasks_list): Likewise.
11079 (get_known_tasks_addr): Remove.
11080 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11081 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11082 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 11083
def166f6
JK
110842012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11085
11086 PR backtrace/13716
11087 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11088 it after set_momentary_breakpoint.
11089
aeaa2474
SA
110902012-02-22 Sterling Augustine <saugustine@google.com>
11091
11092 PR 13689:
11093 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11094
feea76c2
GB
110952012-02-22 Gary Benson <gbenson@redhat.com>
11096
11097 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11098 (find_slot_in_mapped_hash): Likewise.
11099
f06e05e0
JK
111002012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11101
11102 PR build/13638
11103 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11104 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11105 * configure: Regenerate.
11106
b54a8fd7
PA
111072012-02-21 Tristan Gingold <gingold@adacore.com>
11108 Pedro Alves <palves@redhat.com>
11109
11110 * ia64-tdep.c: Do not include libunwind-ia64.h.
11111 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11112 Include libunwind-ia64.h instead of libunwind.h.
11113 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11114 for libunwind.h existence.
11115 * configure, config.in: Regenerate.
11116
dfcee124
AG
111172012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11118
11119 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11120 instead of value_rtti_target_type.
11121 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11122 instead of value_rtti_target_type.
11123 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11124 value_rtti_target_type.
11125 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11126 (value_rtti_target_type): Rename to ...
11127 (value_rtti_indirect_type): ... here and make it indirect. Update
11128 function comment.
11129 * value.c (readjust_indirect_value_type): New function.
11130 (coerce_ref): Support for enclosing type setting for references
11131 with readjust_indirect_value_type.
11132 * value.h (readjust_value_type): New declaration.
11133 (value_rtti_target_type): Rename to ...
11134 (value_rtti_indirect_type): ... here.
11135
02568277
AG
111362012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11137
11138 * MAINTAINERS (Write After Approval): Add myself to the list.
11139
10c07b7e 111402012-02-20 Doug Evans <dje@google.com>
28ee876a 11141
d82ea6a8
DE
11142 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11143 Rename objfile_p_char parameter to objfilep.
11144 (build_objfile_section_table): Result is now void. All callers
11145 updated.
11146 * objfiles.h (struct objfile): Tweak comments, whitespace.
11147 (build_objfile_section_table): Update.
11148
28ee876a
DE
11149 * elfread.c (elf_symfile_segments): Fix warning text.
11150
24c79950
TT
111512012-02-20 Tom Tromey <tromey@redhat.com>
11152
11153 PR gdb/13498:
11154 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11155 particular set of file names once.
11156 (dw2_map_symbol_filenames): Likewise.
11157
3a9b40b6
JK
111582012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11159
11160 Code cleanup.
11161 * main.c (write_files): Remove the declaration.
11162 (external_editor_command): Move the declaration ...
11163 [GDBTK] (external_editor_command): ... here. Fix the comment.
11164
4d0795ca
TT
111652012-02-20 Tom Tromey <tromey@redhat.com>
11166
11167 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11168 extraneous block.
11169
637fd620
TG
111702012-02-20 Tristan Gingold <gingold@adacore.com>
11171
11172 * darwin-nat.h (enum darwin_msg_state): Add comments.
11173
6f124894
TG
111742012-02-20 Tristan Gingold <gingold@adacore.com>
11175
11176 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11177 value.
11178
2e6e3d9c
JB
111792012-20-18 Joel Brobecker <brobecker@adacore.com>
11180
11181 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11182 between function description and implementation.
11183
2e8265fd
TT
111842012-02-17 Tom Tromey <tromey@redhat.com>
11185
11186 PR python/12070:
11187 * python/py-event.c (event_object_getset): New global.
11188 (event_object_type): Reference it.
11189 * python/py-type.c (field_object_getset): New global.
11190 (field_object_type): Reference it.
11191 * python/python-internal.h (gdb_py_generic_dict): Declare.
11192 * python/py-utils.c (gdb_py_generic_dict): New function.
11193
8544a150 111942012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 11195
8544a150 11196 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 11197
ca193e27
TS
111982012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11199
11200 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11201 TYPE_CALLING_CONVENTION annotation.
11202
e5586183
KB
112032012-02-16 Kevin Buettner <kevinb@redhat.com>
11204
11205 * MAINTAINERS: Add rx to target ISA section.
11206 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11207 (ALLDEPFILES): Add rx-tdep.c.
11208
7dcd53a0
TT
112092012-02-16 Tom Tromey <tromey@redhat.com>
11210
11211 * symfile.c (symbol_file_add_main_1): Use inferior's
11212 symfile_flags.
11213 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11214 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11215 inferior.
11216 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11217 inferior.
11218 (follow_exec): Use inferior's symfile_flags.
11219 * inferior.h (struct inferior) <symfile_flags>: New field.
11220
ddd60447
MF
112212012-02-16 Mike Frysinger <vapier@gentoo.org>
11222
11223 PR gdb/9734:
11224 * remote-sim.c (gdbsim_create_inferior): Call error() when
11225 sim_create_inferior() fails.
11226
b0d32fb6
TG
112272012-02-16 Josh Matthews <josh@joshmatthews.net>
11228
11229 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11230
9addecb9
TT
112312012-02-16 Tom Tromey <tromey@redhat.com>
11232
11233 PR c++/13653:
11234 * thread.c (struct current_thread_cleanup) <was_removable>: New
11235 field.
11236 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11237 (make_cleanup_restore_current_thread): Initialize new field.
11238
a58b110a
KB
112392012-02-15 Kevin Buettner <kevinb@redhat.com>
11240
11241 * MAINTAINERS: Add rl78 to target ISA section.
11242 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11243 (ALLDEPFILES): Add rl78-tdep.c.
11244 * NEWS: Mention rl78 as a new target.
11245
4cb6da1c
AR
112462012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11247
11248 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11249 data.
11250 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11251
3af2590d
TT
112522012-02-15 Tom Tromey <tromey@redhat.com>
11253
11254 PR gdb/12659:
11255 * infcmd.c (registers_info): Print just the current register's
11256 name.
11257
c6910659
TT
112582012-02-15 Tom Tromey <tromey@redhat.com>
11259
11260 * python/py-symbol.c (sympy_value): Use _().
11261
7cee1e54
PA
112622012-02-15 Pedro Alves <palves@redhat.com>
11263
11264 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11265 output to be like native targets'.
11266 (remote_pid_to_str): Special case the null ptid.
11267
816338b5
SS
112682012-02-14 Stan Shebs <stan@codesourcery.com>
11269
11270 * NEWS: Mention enable count command.
11271 * breakpoint.h (struct breakpoint): New field enable_count.
11272 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11273 (enable_breakpoint): Add arg to call.
11274 (struct disp_data): New struct.
11275 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11276 (do_map_enable_once_breakpoint): Create a struct and pass it.
11277 (do_map_enable_delete_breakpoint): Ditto.
11278 (do_map_enable_count_breakpoint): New function.
11279 (enable_count_command): New function.
11280 (bpstat_stop_status): Decrement enable_count.
11281 (print_one_breakpoint_location): Report enable count.
11282 (_initialize_breakpoint): Add enable count command.
11283
c47a44f4
KB
112842012-02-14 Kevin Buettner <kevinb@redhat.com>
11285
11286 * rl78-tdep.c (reggroups.h): Include.
11287 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11288 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11289 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11290 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11291 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11292 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11293 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11294 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11295 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11296 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11297 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11298 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11299 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11300 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11301 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11302 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11303 beginning of register list.
11304 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11305 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11306 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11307 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11308 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11309 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11310 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11311 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11312 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11313 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11314 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11315 the pseudo registers. Rearrange other pseudo registers too so
11316 that the bank registers appear at the end.
11317 (rl78_register_type): Account for the fact that the byte sized
11318 bank registers are now pseudo-registers.
11319 (rl78_register_name): Rearrange the register name array. Make
11320 initial set of raw banked registers inaccessible.
11321 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11322 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11323 case for copying bytes back and forth between raw and pseudo
11324 versions of the banked registers. Update other cases to reflect
11325 the changed names.
11326 (rl78_return_value): Update to account for changed names of
11327 raw registers.
11328 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11329 rl78_register_sim_regno().
11330
e4569f1e
KB
113312012-02-14 Kevin Buettner <kevinb@redhat.com>
11332
11333 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11334 the name parameter being passed to find_pc_partial_function().
11335
7a05aae7
JK
113362012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11337
11338 * MAINTAINERS: Step down from being ia64 target maintainer.
11339
11fde611
JK
113402012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11341
11342 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11343 compilation warning.
11344
57008375
JK
113452012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11346
11347 Fix crash on loaded shlibs without loaded exec_bfd.
11348 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11349 (set_section_command): Replace exec_bfd by p->bfd.
11350
ff3c9849
TT
113512012-02-10 Tom Tromey <tromey@redhat.com>
11352
11353 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11354 when we have a C++ qualified name.
11355
db2b9fdd
PA
113562012-02-10 Pedro Alves <palves@redhat.com>
11357
11358 * inferior.c (inferior_pid_to_str): New.
11359 (print_inferior, inferior_command): Use it.
11360
12cd34f3
PA
113612012-02-10 Pedro Alves <palves@redhat.com>
11362
11363 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11364 the test CFLAGS.
11365 * configure: Regenerate.
11366
e871429d
JK
113672012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11368
11369 * linespec.c (decode_line_internal): Fix comment correctness.
11370
1916efaf
PA
113712012-02-09 Valery Khromov <valery.khromov@gmail.com>
11372
11373 PR gdb/12953
11374 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11375 * amd64bsd-nat.c: Add support for debug registers (adapted from
11376 i386bsd-nat.c).
11377 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11378 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11379 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11380 (amd64bsd_dr_get_control): New functions.
11381 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11382 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11383 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11384 watchpoints initialization.
11385 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11386
f4859d94
JK
113872012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11388
11389 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11390 flds_bnds.fields.
11391 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11392
c56a97f9
JK
113932012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11394
11395 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11396
1a119f36
JB
113972012-02-08 Joel Brobecker <brobecker@adacore.com>
11398
11399 * language.h (symbol_name_cmp_ftype): Renames
11400 symbol_name_match_p_ftype.
11401 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11402 la_get_symbol_name_match_p.
11403 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11404 ada_get_symbol_name_match_p. Update comment.
11405 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11406 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11407 Renames symbol_name_match_p. Update field type.
11408 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11409 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11410 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11411 "la_get_symbol_name_cmp" in comments.
11412 * language.c: Likewise.
11413
c71bb1cf
RO
114142012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11415
11416 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11417 %eflags offset.
11418 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11419 (amd64_sol2_gregset32_reg_offs): Likewise.
11420
4b2d20a5
TG
114212012-02-08 Joel Brobecker <brobecker@adacore.com>
11422
11423 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11424 of the returned BFD is allocated by GDB.
11425
f0823d2c
TT
114262012-02-07 Tom Tromey <tromey@redhat.com>
11427
11428 PR python/12027:
11429 * python/python-internal.h (frame_object_type): Declare.
11430 * python/py-symbol.c (sympy_needs_frame): New function.
11431 (sympy_value): New function.
11432 (symbol_object_getset): Add "needs_frame".
11433 (symbol_object_methods): Add "value".
11434 * python/py-frame.c (frame_object_type): No longer static.
11435
64e7d9dd
TT
114362012-02-07 Tom Tromey <tromey@redhat.com>
11437
11438 PR python/13599:
11439 * python/py-symbol.c (sympy_line): New function.
11440 (symbol_object_getset): Add "line".
11441
1d6b2d2b
TT
114422012-02-07 Tom Tromey <tromey@redhat.com>
11443
11444 * charset.c (find_charset_names): Check 'in' against NULL.
11445
0d5cff50
DE
114462012-02-06 Doug Evans <dje@google.com>
11447
11448 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11449 and fields.name members from char * to const char *. All uses updated.
11450 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11451 from char * to const char *. All uses updated.
11452 (type_name_no_tag): Update.
11453 (lookup_unsigned_typename, lookup_signed_typename): Update.
11454 * gdbtypes.c (type_name_no_tag): Change result type
11455 from char * to const char *. All callers updated.
11456 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11457 name parameter from char * to const char *.
11458 * symtab.h (struct cplus_specific): Change type of demangled_name
11459 member from char * to const char *. All uses updated.
11460 (struct general_symbol_info): Change type of name and
11461 mangled_lang.demangled_name members from char * to const char *.
11462 All uses updated.
11463 (symbol_get_demangled_name, symbol_natural_name): Update.
11464 (symbol_demangled_name, symbol_search_name): Update.
11465 * symtab.c (symbol_get_demangled_name): Change result type
11466 from char * to const char *. All callers updated.
11467 (symbol_natural_name, symbol_demangled_name): Ditto.
11468 (symbol_search_name): Ditto.
11469 (completion_list_add_name): Change type of symname,sym_text,
11470 text,word parameters from char * to const char *.
11471 (completion_list_objc_symbol): Change type of sym_text,
11472 text,word parameters from char * to const char *.
11473 * ada-lang.c (find_struct_field): Change type of name parameter
11474 from char * to const char *.
11475 (encoded_ordered_before): Similarly for N0,N1 parameters.
11476 (old_renaming_is_invisible): Similarly for function_name parameter.
11477 (ada_type_name): Change result type from char * to const char *.
11478 All callers updated.
11479 * ada-lang.h (ada_type_name): Update.
11480 * buildsym.c (hashname): Change type of name parameter
11481 from char * to const char *.
11482 * buildsym.h (hashname): Update.
11483 * dbxread.c (end_psymtab): Change type of include_list parameter
11484 from char ** to const char **.
11485 * dwarf2read.c (determine_prefix): Change result type
11486 from char * to const char *. All callers updated.
11487 * f-lang.c (find_common_for_function): Change type of name, funcname
11488 parameters from char * to const char *.
11489 * f-lang.c (find_common_for_function): Update.
11490 * f-valprint.c (list_all_visible_commons): Change type of funcname
11491 parameters from char * to const char *.
11492 * gdbarch.sh (static_transform_name): Change type of name parameter
11493 and result from char * to const char *.
11494 * gdbarch.c: Regenerate.
11495 * gdbarch.h: Regenerate.
11496 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11497 of name parameter from char * to const char *.
11498 * jv-lang.c (java_primitive_type_from_name): Ditto.
11499 (java_demangled_signature_length): Similarly for signature parameter.
11500 (java_demangled_signature_copy): Ditto.
11501 (java_demangle_type_signature): Ditto.
11502 * jv-lang.h (java_primitive_type_from_name): Update.
11503 (java_demangle_type_signature): Update.
11504 * objc-lang.c (specialcmp): Change type of a,b parameters
11505 from char * to const char *.
11506 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11507 from char * to const char *. All callers updated.
11508 * p-lang.h (is_pascal_string_type): Update.
11509 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11510 of name parameter from char * to const char *.
11511 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11512 * utils.c (fprintf_symbol_filtered): Ditto.
11513 * defs.h (fprintf_symbol_filtered): Update.
11514 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11515 * stabsread.h (end_psymtab): Update.
11516 * stack.c (find_frame_funname): Change type of funname parameter
11517 from char ** to const char **.
11518 * stack.h (find_frame_funname): Update.
11519 * typeprint.c (type_print): Change type of varstring parameter
11520 from char * to const char *.
11521 * value.h (type_print): Update.
11522 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11523 from char * to const char *. All callers updated.
11524 (xcoff_end_psymtab): Change type of include_list parameter
11525 from char ** to const char **. All callers updated.
11526 (swap_sym): Similarly for name parameter. All callers updated.
11527 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11528 Use xstrdup.
11529 (process_coff_symbol): Use xstrdup.
11530 * stabsread.c (stabs_method_name_from_physname): Renamed from
11531 update_method_name_from_physname. Change result type from void
11532 to char *. All callers updated.
11533 (read_member_functions): In has_destructor case, store name in objfile
11534 obstack instead of malloc space. In !has_stub case, fix mem leak.
11535
5579a92e
TT
115362012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11537
11538 * configure: Rebuild.
11539 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11540 LDFLAGS.
11541
9058f767
KB
115422012-02-03 Kevin Buettner <kevinb@redhat.com>
11543
11544 * configure.tgt (rl78-*-elf): New target.
11545 * rl78-tdep.c: New file.
11546
5b37825d
PW
115472012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11548
11549 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11550 and continue the loop. Add QUIT statement.
11551
e009ee71
TT
115522012-02-03 Tom Tromey <tromey@redhat.com>
11553
11554 PR gdb/13596:
11555 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11556 bfd_lookup_symbol_from_symtab.
11557 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11558 gdb_bfd_lookup_symbol_from_symtab.
11559
f7e44f65
JB
115602012-02-03 Joel Brobecker <brobecker@adacore.com>
11561
11562 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11563 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11564 symbol. Add assertion that sym2 is never NULL.
11565
2c02bd72
DE
115662012-02-02 Doug Evans <dje@google.com>
11567
11568 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11569 "name" parameter to const char ** from char **. All callers updated.
11570 (find_pc_partial_function): Ditto.
11571 (cache_pc_function_name): Change type to const char * from char *.
11572 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11573 (find_pc_partial_function): Update.
11574 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11575 type of "name" parameter to const char * from char *.
11576 All uses updated.
11577 * arch-utils.c (generic_in_solib_return_trampoline): Change
11578 type of "name" parameter to const char * from char *.
11579 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11580 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11581 type of "name" parameter to const char * from char *.
11582 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11583 * gdbarch.c: Regenerate.
11584 * gdbarch.h: Regenerate.
11585 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11586 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11587 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11588 type of "name" parameter to const char * from char *.
11589 * skip.c (skip_function_pc): Ditto.
11590 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11591 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11592 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11593 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11594 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11595 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11596 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11597 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11598 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11599
e886a173
PA
116002012-02-02 Pedro Alves <palves@redhat.com>
11601
11602 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11603 the current inferior has no execution. Make sure the current
11604 remote process matches gdb's current inferior.
11605
c709a7c2
TT
116062012-02-02 Tom Tromey <tromey@redhat.com>
11607
11608 PR gdb/13405:
11609 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11610 read-only memory.
11611
f149aabd
TT
116122012-02-02 Tom Tromey <tromey@redhat.com>
11613
11614 PR gdb/9307:
11615 * symtab.c (lookup_language_this): Set block_found.
11616
03bef283
TT
116172012-02-01 Tom Tromey <tromey@redhat.com>
11618
11619 PR gdb/13431:
11620 * jit.c (struct jit_inferior_data): Rewrite.
11621 (struct jit_objfile_data): New.
11622 (get_jit_objfile_data): New function.
11623 (add_objfile_entry): Update.
11624 (jit_read_descriptor): Return int. Replace descriptor_addr
11625 argument with inf_data. Update. Don't call error.
11626 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11627 descriptor here.
11628 (jit_inferior_init): Don't look up descriptor. Don't call error.
11629 (jit_reset_inferior_data_and_breakpoints)
11630 (jit_inferior_created_observer): Remove.
11631 (jit_inferior_exit_hook): Update.
11632 (jit_executable_changed_observer): Remove.
11633 (jit_event_handler): Update.
11634 (free_objfile_data): Reset inferior data if needed.
11635 (_initialize_jit): Update.
11636
f0bbc364
TT
116372012-02-01 Tom Tromey <tromey@redhat.com>
11638
11639 * jit.c (bfd_open_from_target_memory): Move higher in file.
11640
47c1316c
TG
116412012-02-01 Tristan Gingold <gingold@adacore.com>
11642
11643 * libunwind-frame.c (libunwind_load): Display message if dlopen
11644 failed.
11645
8e704927
GB
116462012-02-01 Gary Benson <gbenson@redhat.com>
11647
09c7a31f 11648 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
11649 (iterate_over_symbols): Use the above.
11650 * symtab.c (iterate_over_symbols): Likewise.
11651 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11652 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11653 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11654 (iterate_name_matcher): Document return values.
11655 (collect_one_symbol): Likewise.
11656 (collect_function_symbols): Likewise.
11657 (collect_symbols): Likewise.
11658
d9680e73
TT
116592012-02-01 Tom Tromey <tromey@redhat.com>
11660
11661 * ada-lang.c (resolve_subexp): Update.
11662 (ada_lookup_symbol_list): Add 'full_search' argument.
11663 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11664 ada_lookup_symbol_list.
11665 (ada_lookup_encoded_symbol): Update.
11666 (get_var_value): Update.
11667 * ada-exp.y (block_lookup): Update.
11668 (write_var_or_type): Update.
11669 (write_name_assoc): Update.
11670 * ada-lang.h (ada_lookup_symbol_list): Update.
11671
72e1143f
TT
116722012-01-31 Tom Tromey <tromey@redhat.com>
11673
11674 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11675 comment.
11676
ab2d2ad3
DE
116772012-01-31 Doug Evans <dje@google.com>
11678
11679 * symtab.h: Remove outdated comment.
e9111bf7 11680 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 11681
bc884eba
JB
116822012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11683
11684 Fix build error in Darwin port.
11685 * i386-darwin-nat.c: Include i386-nat.h.
11686
8fc3fc34
TT
116872012-01-30 Tom Tromey <tromey@redhat.com>
11688
11689 PR breakpoints/13568:
11690 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11691 argument. Check for recursive includes.
11692 (dwarf_decode_macros): Create an include hash.
11693
5d853008
ME
116942012-01-30 Michael Eager <eager@eagercon.com>
11695
11696 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11697 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 11698 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
11699 (powerpc_linux_in_plt_stub): New function.
11700 (powerpc_linux_in_dynsym_resolve_code): New function.
11701 (ppc_skip_trampoline_code): New function.
11702 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11703 Use glibc_skip_solib_resolver.
11704
40478521
JK
117052012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11706
11707 Code cleanup: Make 1440 bytes of data segment read-only.
11708 * arch-utils.c (endian_enum): Make it const char *const [].
11709 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11710 Likewise.
11711 * breakpoint.c (always_inserted_enums): Likewise.
11712 * cli/cli-cmds.c (script_ext_enums): Likewise.
11713 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11714 enumlist parameter const char *const *.
11715 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11716 const char *const *.
11717 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11718 parameter const char *const *.
11719 * cris-tdep.c (cris_modes): Make it const char *const [].
11720 * filesystem.c (target_file_system_kinds): Likewise.
11721 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11722 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11723 (can_use_displaced_stepping_enum, scheduler_enums)
11724 (exec_direction_names): Likewise.
11725 * language.c (_initialize_language): Make the type_or_range_names and
11726 case_sensitive_names variables const char *const [].
11727 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11728 * python/python.c (python_excp_enums): Likewise.
11729 * remote.c (interrupt_sequence_modes): Likewise.
11730 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11731 * serial.c (logbase_enums): Likewise.
11732 * sh-tdep.c (sh_cc_enum): Likewise.
11733 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11734 Likewise.
11735 * symtab.c (multiple_symbols_modes): Likewise.
11736 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11737 Likewise.
11738 * utils.c (internal_problem_modes): Likewise.
11739
b3b8b934
JK
117402012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11741
11742 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11743 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11744 result.
11745
8c85a4e2
DE
117462012-01-27 Doug Evans <dje@google.com>
11747
11748 * configure.ac (with_python): Fix absolute path handling for win32.
11749 * configure: Regenerate.
11750
78d8b4d7
DE
117512012-01-26 Doug Evans <dje@google.com>
11752
eca864fe
DE
11753 * symtab.c: Whitespace cleanup, no code changes.
11754
7e082072
DE
11755 * symtab.c (lookup_symbol_in_language): Improve comment.
11756 (lookup_symbol_aux): Fix comment.
11757
7dc25483
DE
11758 * psymtab.c (add_psymbol_to_list): Result is now "void".
11759 * psympriv.h (add_psymbol_to_list): Update.
11760
78d8b4d7
DE
11761 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11762
4c63965b
JK
117632012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11764
11765 Do not open script filenames twice.
11766 * cli/cli-cmds.c (source_script_from_stream): Pass to
11767 source_python_script also STREAM.
11768 * python/py-auto-load.c (source_section_scripts): Pass to
11769 source_python_script_for_objfile also STREAM.
11770 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11771 also INPUT.
11772 * python/python-internal.h (source_python_script_for_objfile): New
11773 parameter file, rename parameter file to filename.
11774 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11775 instead if !_WIN32. Update the function comment.
11776 (source_python_script, source_python_script_for_objfile)
11777 (source_python_script): New parameter file, rename parameter file to
11778 filename. Pass FILENAME to python_run_simple_file.
11779 * python/python.h (source_python_script): New parameter file, rename
11780 parameter file to filename.
11781
88f38a04
PA
117822012-01-26 Pedro Alves <palves@redhat.com>
11783
11784 * corelow.c (core_has_fake_pid): Delete.
11785 (core_close): Delete references to `core_has_fake_pid'.
11786 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11787 (core_open): Delete references to `core_has_fake_pid'.
11788 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11789 the removed global.
11790
e078317b
JB
117912012-01-26 Joel Brobecker <brobecker@adacore.com>
11792
11793 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11794 Remove language parameter from name_matcher. Adjust the comment.
11795 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11796 Remove language parameter.
11797 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11798 * linespec.c (iterate_name_matcher): Likewise.
11799 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11800 name_matcher. Adjust call accordingly.
11801 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11802 (maintenance_check_symtabs): Adjust type of parameter "fun".
11803 * psymtab.h (maintenance_check_symtabs): Likewise.
11804
74ccd7f5
JB
118052012-01-26 Joel Brobecker <brobecker@adacore.com>
11806
11807 * language.h (symbol_name_match_p_ftype): New typedef.
11808 (struct language_defn): Replace field la_symbol_name_compare
11809 by la_get_symbol_name_match_p.
11810 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11811 (ada_language_defn): Use it.
11812 * linespec.c (struct symbol_matcher_data): New type.
11813 (iterate_name_matcher): Rewrite.
11814 (iterate_over_all_matching_symtabs): Pass a pointer to
11815 a symbol_matcher_data struct to expand_symtabs_matching
11816 instead of just the lookup name.
11817 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11818 opencl-lang.c, p-lang.c, language.c: Delete field
11819 la_symbol_name_compare, and replace by NULL for new field
11820 la_get_symbol_name_match_p.
11821 * symfile.h (struct quick_symbol_functions): Update comment.
11822
5d268276
TT
118232012-01-25 Tom Tromey <tromey@redhat.com>
11824
11825 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11826 dereferencing.
11827
edcc5120
TT
118282012-01-24 Tom Tromey <tromey@redhat.com>
11829
11830 PR symtab/12406:
11831 * solib.c (update_solib_list): Update the program space's
11832 added_solibs and deleted_solibs fields.
11833 * progspace.h (struct program_space) <added_solibs,
11834 deleted_solibs>: New fields.
11835 (clear_program_space_solib_cache): Declare.
11836 * progspace.c (release_program_space): Call
11837 clear_program_space_solib_cache.
11838 (clear_program_space_solib_cache): New function.
11839 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11840 bpstat_stop_status. Use handle_solib_event.
11841 * breakpoint.c: Include gdb_regex.h.
11842 (print_solib_event): New function.
11843 (bpstat_print): Use print_solib_event.
11844 (bpstat_stop_status): Add special case for bp_shlib_event.
11845 (handle_solib_event): New function.
11846 (bpstat_what): Use handle_solib_event.
11847 (struct solib_catchpoint): New.
11848 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11849 (breakpoint_hit_catch_solib, check_status_catch_solib)
11850 (print_it_catch_solib, print_one_catch_solib)
11851 (print_mention_catch_solib, print_recreate_catch_solib): New
11852 functions.
11853 (catch_solib_breakpoint_ops): New global.
11854 (catch_load_or_unload, catch_load_command_1)
11855 (catch_unload_command_1): New functions.
11856 (internal_bkpt_check_status): Add special case for
11857 bp_shlib_event.
11858 (internal_bkpt_print_it): Use print_solib_event.
11859 (initialize_breakpoint_ops): Initialize
11860 catch_solib_breakpoint_ops.
11861 (_initialize_breakpoint): Register "catch load" and "catch
11862 unload".
11863 * breakpoint.h (handle_solib_event): Declare.
11864 * NEWS: Add entry for "catch load" and "catch unload".
11865
fa864999
TT
118662012-01-24 Tom Tromey <tromey@redhat.com>
11867
11868 * ada-lang.c: Include gdb_vecs.h.
11869 * charset.c: Include gdb_vecs.h.
11870 * tracepoint.h: Include gdb_vecs.h.
11871 * gdb_vecs.h: New file.
11872
f90263c1
TT
118732012-01-24 Pedro Alves <pedro@codesourcery.com>
11874
11875 * breakpoint.c (breakpoint_hit_catch_fork)
11876 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11877 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11878 * infrun.c (inferior_has_forked, inferior_has_vforked)
11879 (inferior_has_execd, inferior_has_called_syscall): Delete.
11880 (handle_syscall_event): Get syscall_number from the execution
11881 control state's wait status.
11882 (wait_for_inferior): Don't clear syscall_number.
11883
09ac7c10
TT
118842012-01-24 Pedro Alves <palves@redhat.com>
11885
11886 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11887 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11888 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11889 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11890 `ws' parameter.
11891 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11892 false for events other than TARGET_SIGNAL_TRAP.
11893 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11894 Add `ws' parameter.
11895 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11896 events other than TARGET_SIGNAL_TRAP.
11897 (tracepoint_breakpoint_hit): Add `ws' parameter.
11898 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11899 parameter.
11900 (bpstat_stop_status): Same.
11901 (pc_at_non_inline_function): Same.
11902 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11903 to pass the current event's waitstatus to bpstat_stop_status
11904 and pc_at_non_inline_function.
11905
86eb7e95
JK
119062012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11907
11908 Code cleanup.
11909 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11910 Update the function comment for it.
11911 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11912 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11913 for STREAM.
11914
a9b3a50f
PA
119152012-01-24 Pedro Alves <palves@redhat.com>
11916
11917 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11918 outside `bs->stop' block.
11919 (bpstat_what): Rework bp_shlib_event handling.
11920 (internal_bkpt_check_status): If the breakpoint is a
11921 bp_shlib_event, then set bs->stop and bs->print if
11922 stop_on_solib_events is set.
11923
53fe1783
GB
119242012-01-24 Gary Benson <gbenson@redhat.com>
11925
11926 Delete #if 0'd out code.
11927 * stack.c (print_frame_label_vars): Remove.
11928 (catch_info): Likewise.
11929 (_initialize_stack): Remove "info catch" command.
11930 * NEWS: Mention the above.
11931
49c62f2e
PA
119322012-01-24 Pedro Alves <palves@redhat.com>
11933
11934 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11935 it.
11936 (remote_notice_new_inferior): If the remote end doesn't support
11937 the multiprocess extensions, then the PID is fake.
11938 (add_current_inferior_and_thread): New.
11939 (remote_start_remote): Use it.
11940 (extended_remote_attach_1): Adjust.
11941 (extended_remote_create_inferior_1): Use
11942 add_current_inferior_and_thread.
11943
d0d8b0c6
JK
119442012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11945
11946 Fix watchpoints to be specific for each inferior.
11947 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11948 current_program_space.
11949 * i386-nat.c (i386_inferior_data_cleanup): New.
11950 (i386_inferior_data_get): Replace variable inf_data_local by an
11951 inferior_data call.
11952 (i386_use_watchpoints): Initialize i386_inferior_data.
11953 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11954 specific iterate_over_lwps.
11955
4403d8e9
JK
119562012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11957
11958 Fix watchpoints across inferior fork.
11959 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11960 comment for linux_nat_iterate_watchpoint_lwps.
11961 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11962 linux_nat_iterate_watchpoint_lwps.
11963 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11964 * i386-linux-nat.c (update_debug_registers_callback): Update the
11965 comment for linux_nat_iterate_watchpoint_lwps.
11966 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11967 linux_nat_iterate_watchpoint_lwps.
11968 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11969 * i386-nat.c: Include inferior.h.
11970 (dr_mirror): Remove.
11971 (i386_inferior_data, struct i386_inferior_data)
11972 (i386_inferior_data_get): New.
11973 (i386_debug_reg_state): Use i386_inferior_data_get.
11974 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11975 (i386_insert_watchpoint, i386_remove_watchpoint)
11976 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11977 (i386_remove_hw_breakpoint): New variable state, use
11978 i386_debug_reg_state instead of DR_MIRROR.
11979 * linux-nat.c (delete_lwp): New declaration.
11980 (num_lwps): Move here from downwards.
11981 (delete_lwp_cleanup): New.
11982 (linux_child_follow_fork): Create new child_lp, call
11983 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11984 PTRACE_DETACH.
11985 (num_lwps): Move upwards.
11986 (linux_nat_iterate_watchpoint_lwps): New.
11987 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11988 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11989
2992c9a7 119902012-01-24 Joel Brobecker <brobecker@adacore.com>
11991
11992 GDB 7.4 released.
11993
e360902b
PA
119942012-01-23 Pedro Alves <palves@redhat.com>
11995
11996 * top.c (caution): Rename to ...
11997 (confirm): ... this.
11998 (show_caution): Rename to ...
11999 (show_confirm): ... this.
12000 (quit_cover): Adjust.
12001 (init_main): Adjust.
12002 * top.h (caution): Rename to ...
12003 (confirm): ... this.
12004 * utils.c (internal_vproblem, defaulted_query): Adjust.
12005
050a2e1d
PA
120062012-01-23 Pedro Alves <palves@redhat.com>
12007
12008 * top.c (caution): Update comment.
12009 (execute_command): Don't consider the current value of `caution'.
12010
77a35dd8
JK
120112012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12012
12013 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12014
a71b5a38
UW
120152012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12016
12017 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12018 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12019 * target.c (target_fileio_pwrite): Remove buffer address from
12020 debug output.
12021 (target_fileio_pread): Likewise.
12022
d99bd577
UW
120232012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12024
12025 * NEWS: Document remote "info proc" and "generate-core-file".
12026
35c2fab7
UW
120272012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12028
12029 * gdbarch.sh (find_memory_regions): New callback.
12030 * gdbarch.c, gdbarch.h: Regenerate.
12031
12032 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12033 callback before falling back to target method.
12034
12035 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12036 (linux_target_install_ops): No longer install it.
12037
12038 * linux-tdep.c (linux_find_memory_regions): New function.
12039 (linux_init_abi): Install it.
12040
6432734d
UW
120412012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12042
12043 * gdbarch.sh (make_corefile_notes): New architecture callback.
12044 * gdbarch.c: Regenerate.
12045 * gdbarch.h: Likewise.
12046
12047 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12048 before target_make_corefile_notes. If NULL is returned, the
12049 target does not support core file generation.
12050
12051 * linux-nat.c: Include "linux-tdep.h".
12052 (find_signalled_thread, find_stop_signal): Remove.
12053 (linux_nat_do_thread_registers): Likewise.
12054 (struct linux_nat_corefile_thread_data): Likewise.
12055 (linux_nat_corefile_thread_callback): Likewise.
12056 (iterate_over_spus): Likewise.
12057 (struct linux_spu_corefile_data): Likewise.
12058 (linux_spu_corefile_callback): Likewise.
12059 (linux_spu_make_corefile_notes): Likewise.
12060 (linux_nat_collect_thread_registers): New function.
12061 (linux_nat_make_corefile_notes): Replace contents by call to
12062 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12063 as native-only callback.
12064
12065 * linux-tdep.h: Include "bfd.h".
12066 (struct regcache): Add forward declaration.
12067 (linux_collect_thread_registers_ftype): New typedef.
12068 (linux_make_corefile_notes): Add prototype.
12069 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12070 "regset.h", and "elf-bfd.h".
12071 (find_signalled_thread, find_stop_signal): New functions.
12072 (linux_spu_make_corefile_notes): Likewise.
12073 (linux_collect_thread_registers): Likewise.
12074 (struct linux_corefile_thread_data): New data structure.
12075 (linux_corefile_thread_callback): New funcion.
12076 (linux_make_corefile_notes): Likewise.
12077 (linux_make_corefile_notes_1): Likewise.
12078 (linux_init_abi): Install it.
12079
3030c96e
UW
120802012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12081
12082 * gdbarch.sh (info_proc): New callback.
12083 * gdbarch.c, gdbarch.h: Regenerate.
12084
12085 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12086 before falling back to the target info_proc callback.
12087
12088 * linux-nat.c: Do not include "cli/cli-utils.h".
12089 (linux_nat_info_proc): Remove.
12090 (linux_target_install_ops): No longer install it.
12091
12092 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12093 (read_mapping): New function.
12094 (linux_info_proc): Likewise.
12095 (linux_init_abi): Install it.
12096
145b16a9
UW
120972012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12098
12099 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12100 * infcmd.c: (info_proc_cmd_1): New function.
12101 (info_proc_cmd): New function, moved here from equivalent routine
12102 orignally in linux-nat.c.
12103 (info_proc_cmd_mappings): Likewise.
12104 (info_proc_cmd_stat): Likewise.
12105 (info_proc_cmd_status): Likewise.
12106 (info_proc_cmd_cwd): Likewise.
12107 (info_proc_cmd_cmdline): Likewise.
12108 (info_proc_cmd_exe): Likewise.
12109 (info_proc_cmd_all): Likewise.
12110 (_initialize_infcmd): Install "info proc" command and subcommands.
12111
12112 * target.h (struct target_ops): Add to_info_proc.
12113 (target_info_proc): Add prototype.
12114 * target.c (target_info_proc): New function.
12115
12116 * procfs.c (procfs_info_proc): Add prototype.
12117 (info_proc_cmd): Rename into ...
12118 (procfs_info_proc): ... this. Update argument types as appropriate
12119 for a to_info_proc implementation. Handle "what" argument.
12120 (procfs_target): Install procfs_info_proc.
12121 (_initialize_procfs): No longer install "info proc" command.
12122
12123 * linux-nat.c: (enum info_proc_what): Remove.
12124 (linux_nat_info_proc_cmd_1): Rename into ...
12125 (linux_nat_info_proc): ... this. Update argument types as appropriate
12126 for a to_info_proc implementation.
12127 (linux_nat_info_proc_cmd): Remove.
12128 (linux_nat_info_proc_cmd_mappings): Likewise.
12129 (linux_nat_info_proc_cmd_stat): Likewise.
12130 (linux_nat_info_proc_cmd_status): Likewise.
12131 (linux_nat_info_proc_cmd_cwd): Likewise.
12132 (linux_nat_info_proc_cmd_cmdline): Likewise.
12133 (linux_nat_info_proc_cmd_exe): Likewise.
12134 (linux_nat_info_proc_cmd_all): Likewise.
12135 (linux_target_install_ops): Install linux_nat_info_proc.
12136 (_initialize_linux_nat): No longer install "info proc" command
12137 and subcommands.
12138
b9e7b9c3
UW
121392012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12140
12141 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12142 * config.in, configure: Regenerate.
12143
12144 * target.h (struct target_ops): Add to_fileio_readlink.
12145 (target_fileio_readlink): Add prototype.
12146 * target.c (target_fileio_readlink): New function.
12147
12148 * inf-child.c: Conditionally include <sys/param.h>.
12149 (inf_child_fileio_readlink): New function.
12150 (inf_child_target): Install it.
12151
12152 * remote.c (PACKET_vFile_readlink): New enum value.
12153 (remote_hostio_readlink): New function.
12154 (init_remote_ops): Install it.
12155 (_initialize_remote): Handle vFile:readlink packet type.
12156
7313baad
UW
121572012-01-20 Pedro Alves <palves@redhat.com>
12158 Ulrich Weigand <ulrich.weigand@linaro.org>
12159
12160 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12161 * config.in, configure: Regenerate.
12162
12163 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12164 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12165 (target_fileio_open): Add prototype.
12166 (target_fileio_pwrite): Likewise.
12167 (target_fileio_pread): Likewise.
12168 (target_fileio_close): Likewise.
12169 (target_fileio_unlink): Likewise.
12170 (target_fileio_read_alloc): Likewise.
12171 (target_fileio_read_stralloc): Likewise.
12172
12173 * target.c: Include "gdb/fileio.h".
12174 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12175 (default_fileio_target): New function.
12176 (target_fileio_open): Likewise.
12177 (target_fileio_pwrite): Likewise.
12178 (target_fileio_pread): Likewise.
12179 (target_fileio_close): Likewise.
12180 (target_fileio_unlink): Likewise.
12181 (target_fileio_close_cleanup): Likewise.
12182 (target_fileio_read_alloc_1): Likewise.
12183 (target_fileio_read_alloc): Likewise.
12184 (target_fileio_read_stralloc): Likewise.
12185
12186 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12187 <fcntl.h>, and <unistd.h>.
12188 (inf_child_fileio_open_flags_to_host): New function.
12189 (inf_child_errno_to_fileio_error): Likewise.
12190 (inf_child_fileio_open): Likewise.
12191 (inf_child_fileio_pwrite): Likewise.
12192 (inf_child_fileio_pread): Likewise.
12193 (inf_child_fileio_close): Likewise.
12194 (inf_child_fileio_unlink): Likewise.
12195 (inf_child_target): Install to_fileio routines.
12196
12197 * remote.c (init_remote_ops): Install to_fileio routines.
12198
901f9912
UW
121992012-01-20 Pedro Alves <palves@redhat.com>
12200 Ulrich Weigand <ulrich.weigand@linaro.org>
12201
12202 * remote.c (remote_multi_process_p): Only check for multi-process
12203 protocol feature, do not check for extended protocol.
12204 (remote_supports_multi_process): Check for extended protocol here.
12205 (set_general_process): Likewise.
12206 (extended_remote_kill): Likewise.
12207 (remote_pid_to_str): Likewise.
12208 (remote_query_supported): Always query multiprocess mode.
12209
e714e1bf
UW
122102012-01-20 Pedro Alves <palves@redhat.com>
12211 Ulrich Weigand <ulrich.weigand@linaro.org>
12212
12213 * inferior.h (struct inferior): Add fake_pid_p.
12214 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12215 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12216 magic_null_ptid since the remote side doesn't provide a real PID.
12217
50897289
TT
122182012-01-19 Tom Tromey <tromey@redhat.com>
12219
12220 * NEWS: Combine the two Python sections.
12221
1afc2033
JK
122222012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12223
12224 * target.h (target_close): Update comment on the target's unpush state.
12225
305436e0
PA
122262012-01-19 Pedro Alves <palves@redhat.com>
12227
12228 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12229 linux_nat_async directly instead of going through the target
12230 vector.
12231 * target.c (unpush_target): Close target after unpushing it, not
12232 before.
12233
49323895
GB
122342012-01-19 Gary Benson <gbenson@redhat.com>
12235
12236 * mdebugread.c (sort_blocks): Replace integer constants with ones
12237 derived from FIRST_LOCAL_BLOCK.
12238
1db33378
PP
122392012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12240 Jan Kratochvil <jan.kratochvil@redhat.com>
12241
12242 PR gdb/9538
12243 * symfile.c (find_separate_debug_file): New function.
12244 (terminate_after_last_dir_separator): Likewise.
12245 (find_separate_debug_file_by_debuglink): Also try realpath.
12246 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12247 * configure: Regenerate.
12248 * config.in: Regenerate.
12249
f83d8a90
DE
122502012-01-18 Doug Evans <dje@google.com>
12251
12252 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12253 (main.o): Remove rule.
12254 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12255 (--with-sysroot): Rewrite.
12256 * configure: Regenerate.
12257 * config.in: Regenerate.
12258
2dbca4d6
SDJ
122592012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12260
12261 * parse.c (initialize_expout): New function.
12262 (reallocate_expout): Likewise.
12263 (parse_exp_in_context): Use `initialize_expout' and
12264 `reallocate_expout' when appropriate.
12265
0695b514
PA
122662012-01-18 Pedro Alves <palves@redhat.com>
12267
12268 * record.c (struct record_breakpoint, record_breakpoint_p)
12269 (record_breakpoints): New.
12270 (record_insert_breakpoint, record_remove_breakpoint): Manage
12271 record breakpoints list. Only remove breakpoints from the
12272 inferior if they had been inserted there in the first place.
12273
136e1c30
DE
122742012-01-17 Doug Evans <dje@google.com>
12275
12276 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12277 if we know we don't have a file name to look for.
12278
c0bf857d
PA
122792012-01-17 Pedro Alves <palves@redhat.com>
12280
12281 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12282 the frame's stop reason is UNWIND_UNAVAILABLE.
12283
b486de60
JK
122842012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12285
12286 Fix compilation error.
12287 * m2-exp.y (yyerror): Use ANSI C prototype.
12288
d04550a6
SDJ
122892012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12290
12291 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12292 (growbuf_by_size): Likewise.
12293 (yyerror): Likewise.
12294 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12295 (modblock): Remove variable (was #if 0'ed).
12296 (parse_number): Convert prototype from K&R to ANSI C.
12297 (yyerror): Likewise.
12298 * objc-exp.y (parse_number): Likewise.
12299 (yyerror): Likewise.
12300 (yylex): Remove #if 0'ed code.
12301 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12302 (yyerror): Likewise.
12303
4aac40c8
TT
123042012-01-16 Tom Tromey <tromey@redhat.com>
12305
12306 * NEWS: Add item.
12307 * symtab.h (compare_filenames_for_search): Declare.
12308 * symtab.c (compare_filenames_for_search): New function.
12309 (iterate_over_some_symtabs): Use it.
12310 * symfile.h (struct quick_symbol_functions)
12311 <map_symtabs_matching_filename>: Change spec.
12312 * psymtab.c (partial_map_symtabs_matching_filename): Use
12313 compare_filenames_for_search. Update for new spec.
12314 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12315 compare_filenames_for_search. Update for new spec.
12316 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12317
cafec441
TT
123182012-01-16 Tom Tromey <tromey@redhat.com>
12319
12320 PR python/13281:
12321 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12322 (struct main_type) <flag_flag_enum>: New field.
12323 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12324 * NEWS: Add entries.
12325 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12326 enums.
12327 * python/lib/gdb/printing.py (_EnumInstance): New class.
12328 (FlagEnumerationPrinter): Likewise.
12329
983af33b
SDJ
123302012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12331
12332 * breakpoint.c (create_sals_from_address_default): New function.
12333 (create_breakpoints_sal_default): Likewise.
12334 (decode_linespec_default): Likewise.
12335 (is_marker_spec): Removed.
12336 (strace_marker_p): New function.
12337 (init_breakpoint_sal): Using `strace_marker_p' instead of
12338 `is_marker_spec'.
12339 (create_breakpoint): Call method `create_sals_from_address' from
12340 breakpoint_ops, replacing code that created SALs conditionally
12341 on the type of the breakpoint. Call method `create_breakpoints_sal',
12342 replacing code that created breakpoints conditionally on the type
12343 wanted.
12344 (base_breakpoint_create_sals_from_address): New function.
12345 (base_breakpoint_create_breakpoints_sal): Likewise.
12346 (base_breakpoint_decode_linespec): Likewise.
12347 (base_breakpoint_ops): Add methods
12348 `base_breakpoint_create_sals_from_address',
12349 `base_breakpoint_create_breakpoints_sal' and
12350 `base_breakpoint_decode_linespec'.
12351 (bkpt_create_sals_from_address): New function.
12352 (bkpt_create_breakpoints_sal): Likewise.
12353 (bkpt_decode_linespec): Likewise.
12354 (tracepoint_create_sals_from_address): Likewise.
12355 (tracepoint_create_breakpoints_sal): Likewise.
12356 (tracepoint_decode_linespec): Likewise.
12357 (strace_marker_create_sals_from_address): Likewise.
12358 (strace_marker_create_breakpoints_sal): Likewise.
12359 (strace_marker_decode_linespec): Likewise.
12360 (strace_marker_breakpoint_ops): New variable.
12361 (addr_string_to_sals): Remove `marker_spec'. Call method
12362 `decode_linespec' from breakpoint_ops, replacing code that decoded
12363 an address string into a SAL. Use `strace_marker_p' instead of
12364 `marker_spec'.
12365 (strace_command): Decide whether we are dealing with a static
12366 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12367 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12368 * breakpoint.h (linespec_result, linespec_sals): New forward
12369 declarations.
12370 (breakpoint_ops) <create_sals_from_address>,
12371 <create_breakpoints_sal>, <decode_linespec>: New methods.
12372
4795f398
DE
123732012-01-14 Doug Evans <dje@google.com>
12374
12375 * NEWS: Update text for "maint set python print-stack".
12376 It is deprecated in gdb 7.4 and deleted in 7.5.
12377
ee5106fe
EZ
123782012-01-13 Eli Zaretskii <eliz@gnu.org>
12379
12380 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12381 including curses.h.
12382
b161e06f
JK
123832012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12384
12385 * configure: Regenerate.
12386 * config.in: Regenerate.
12387
85254831
KS
123882012-01-12 Keith Seitz <keiths@redhat.com>
12389
12390 PR mi/10586
12391 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12392 (ANONYMOUS_UNION_NAME): Define.
12393 (is_path_expr_parent): New function.
12394 (get_path_expr_parent): New function.
12395 (is_anonymous_child): New function.
12396 (create_child_with_value): If the child is anonymous and without
12397 a name, assign an object name to it.
12398 (c_describe_child): Use get_path_expr_parent to determine
12399 the parent expression.
12400 If there field represents an anonymous struct or union and
12401 has no name, set an appropriate display name and expression.
12402 (cplus_describe_child): Likewise.
12403
620fa63a
PA
124042012-01-12 Pedro Alves <palves@redhat.com>
12405
12406 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12407 available when %ebp is found to be zero (outermost).
12408
2efa2c79
AT
124092012-01-11 Andreas Tobler <andreast@fgznet.ch>
12410
12411 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12412 an internal gdb_static_assert.
12413 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12414
88e7d25d
TT
124152012-01-11 Tom Tromey <tromey@redhat.com>
12416
12417 PR gdb/9598:
12418 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12419 catch" and "catch throw".
12420
72384ba3
PH
124212012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12422
12423 * blockframe.c (block_innermost_frame): Start search from selected
12424 frame, if present, or otherwise the current frame.
12425
12426 * c-exp.y (variable): Update innermost_block for
12427 'block COLONCOLON NAME' clause.
12428 * m2-exp.y (variable): Ditto.
12429 * objc-exp.y (variable): Ditto.
12430
065a711f
TT
124312012-01-10 Tom Tromey <tromey@redhat.com>
12432
12433 PR python/13199:
12434 * python/python.c (finish_python_initialization): Set sys.argv.
12435
f3f5162e
DE
124362012-01-10 Doug Evans <dje@google.com>
12437
12438 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12439 "want_line_info". All callers updated.
12440 (dwarf_decode_lines_1): New function.
12441 (handle_DW_AT_stmt_list): Add function comment.
12442 New arg "want_line_info". All callers updated.
12443 (read_file_scope,read_type_unit_scope): Move comment from
12444 handle_DW_AT_stmt_list to here.
12445
9934703b
JK
124462012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12447
12448 Fix regression after libiberty/ update for GCC PR 6057 and others.
12449 * c-exp.y (operator) <OPERATOR DELETE>
12450 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12451 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12452 (make_builtin_type, make_name): New variable i, add gdb_assert.
12453 (operator) <OPERATOR NEW>: Update ARGS to 3.
12454 (operator) <OPERATOR DELETE>: Add trailing space.
12455 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12456 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12457 * cp-support.c (cp_canonicalize_string): Check NULL from
12458 cp_comp_to_string, call warning and return.
12459
06b9f45f
JK
124602012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12461
12462 Fix duplicate .o files after omitting libbfd.a.
12463 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12464 (SFILES): Add corelow.c.
12465 (COMMON_OBS): Add corelow.o.
12466 (ALLDEPFILES): Remove corelow.c.
12467 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12468 * config/alpha/alpha-osf3.mh: Likewise.
12469 * config/alpha/fbsd.mh: Likewise.
12470 * config/arm/nbsdaout.mh: Likewise.
12471 * config/arm/nbsdelf.mh: Likewise.
12472 * config/i386/i386gnu.mh: Likewise.
12473 * config/ia64/hpux.mh: Likewise.
12474 * config/ia64/linux.mh: Likewise.
12475 * config/m32r/linux.mh: Likewise.
12476 * config/m68k/linux.mh: Likewise.
12477 * config/mips/irix5.mh: Likewise.
12478 * config/mips/irix6.mh: Likewise.
12479 * config/pa/hpux.mh: Likewise.
12480 * config/pa/linux.mh: Likewise.
12481 * config/powerpc/aix.mh: Likewise.
12482 * config/sparc/linux.mh: Likewise.
12483 * config/sparc/linux64.mh: Likewise.
12484 * config/sparc/sol2.mh: Likewise.
12485 * config/vax/vax.mh: Likewise.
12486 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12487 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12488 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12489 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12490 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12491 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12492 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12493 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12494 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12495 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12496 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12497 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12498 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12499 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12500 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12501 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12502 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12503 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12504 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12505 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12506 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12507 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12508 corelow.o from gdb_target_obs.
12509 * corefile.c (core_target): Update the comment on NULL value.
12510 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12511 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12512 MATCHES. Drop YUMMY set on NULL.
12513 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12514 reclaim CORE_DATA if it is already NULL.
12515
34365054
DE
125162012-01-09 Doug Evans <dje@google.com>
12517
12518 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12519 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12520
696166a3
KS
125212012-01-09 Keith Seitz <keiths@redhat.com>
12522
12523 * breakpoint.c (wrapper.h): Don't include.
12524
8e7b59a5
KS
125252012-01-09 Keith Seitz <keiths@redhat.com>
12526
12527 * Makefile.in (SFILES): Remove wrapper.c.
12528 (HFILES_NO_SRCDIR): Remove wrapper.h.
12529 (COMMON_OBS): Remove wrapper.o.
12530 * cli/cli-interp.c: Don't inlude wrapper.h.
12531 * corelow.c: Likewise.
12532 (core_open): Replace gdb_target_find_new_threads with
12533 TRY_CATCH around target_find_new_threads.
12534 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12535 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12536 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12537 evaluate_expression.
12538 (varobj_set_value): Likewise for evaluate_expression and
12539 value_assign.
12540 (install_new_variable): Likewise for value_fetch_lazy.
12541 (adjust_value_for_child_access): Likewise for value_ind.
12542 (c_describe_child): Likewise for value_subscript and
12543 value_ind.
12544 (c_value_of_root): Likewise for evaluate_expression.
12545 * wrapper.c: Remove.
12546 * wrapper.h: Remove.
12547
1a4eeb98
DE
125482012-01-09 Doug Evans <dje@google.com>
12549
9ff913ba
DE
12550 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12551 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12552 "abfd" args with "section". All callers updated.
12553 Error checking code moved ...
12554 (error_check_comp_unit_head): ... here. New function.
12555 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12556 Delete arg "abfd". New arg "type_offset". All callers updated.
12557 (create_debug_types_hash_table): Simplify by using
12558 read_and_check_type_unit_head.
12559
1a4eeb98
DE
12560 * parser-defs.h (namecopy): Delete.
12561 * parse.c (namecopy, namecopy_size): Move into copy_name.
12562
2e6af8c0
JK
125632012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12564
12565 Partially fix duplicate .o files after omitting libbfd.a.
12566 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12567 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12568 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12569 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12570 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12571 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12572 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12573
9f2f828a
PA
125742012-01-09 Pedro Alves <palves@redhat.com>
12575
12576 * MAINTAINERS: Update my email address.
12577
4d72c0bc
DE
125782012-01-08 Doug Evans <dje@google.com>
12579
d467dd73
DE
12580 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12581 n_type_units. Rename type_comp_units to all_type_units.
12582 All uses updated.
12583 (add_signatured_type_cu_to_table): Renamed from
12584 add_signatured_type_cu_to_list. All callers updated.
12585
4d72c0bc
DE
12586 * gdbtypes.h (struct cplus_struct_type): Delete member
12587 nfn_fields_total. All uses removed.
12588
21b2bd31
DE
125892012-01-06 Doug Evans <dje@google.com>
12590
12591 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12592 to top of file.
12593 (dwarf2_find_comp_unit): Delete.
12594 (process_psymtab_comp_unit): Make result "void".
12595 Delete args buffer, info_ptr, buffer_size, and replace with
12596 "section". All callers updated.
12597 (dwarf2_build_psymtabs_hard): Simplify.
12598
bfd189b1
SDJ
125992012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12600 Thiago Jung Bauermann <bauerman@br.ibm.com>
12601
12602 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12603 before `struct gdb_exception'.
12604 * breakpoint.c (update_global_location_list_nothrow)
12605 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12606 * cp-abi.c (value_rtti_type): Likewise.
12607 * cp-support.c (cp_validate_operator): Likewise.
12608 * infrun.c (insert_exception_resume_breakpoint)
12609 (check_exception_resume, keep_going): Likewise.
12610 * mi-interp.c (mi_breakpoint_created)
12611 (mi_breakpoint_modified): Likewise.
12612 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12613 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12614 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12615
6b07635f
DE
126162012-01-05 Doug Evans <dje@google.com>
12617
0b30b85c
DE
12618 * dwarf2read.c (statement_prologue): Delete, unused.
12619
98714339
DE
12620 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12621 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12622
6b07635f
DE
12623 * dwarf2read.c (comp_unit_header): Delete, unused.
12624
761f4555
UW
126252012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12626
12627 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12628 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12629
2ca0b532
PA
126302012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12631
12632 * infrun.c (normal_stop): Don't skip calling the normal_stop
12633 observers if the thread was doing a multi-step, but stopped for
12634 some reason other than stepping.
12635
50aeff07
PA
126362012-01-05 Pedro Alves <alves.ped@gmail.com>
12637
12638 * cli/cli-decode.h: Add comments.
12639 (CMD_LIST_AMBIGUOUS): Moved to command.h
12640 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12641 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12642 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12643 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12644 (add_com, add_com_alias, add_info, add_info_alias)
12645 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12646 declarations.
12647 * command.h: Add and adjust comments.
12648 (CMD_LIST_AMBIGUOUS): Moved here.
12649 (help_cmd, help_cmd_list): Delete declarations.
12650
5953832c
DE
126512012-01-04 Doug Evans <dje@google.com>
12652
e5fe5e75
DE
12653 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12654 All callers updated.
12655 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12656 Replace all arguments with "per_cu". All callers updated.
12657
28dee7f5
DE
12658 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12659
23745b47
DE
12660 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12661 New arg "per_cu". All callers updated.
12662
5953832c
DE
12663 Delete #if 0'd out code.
12664 * language.c (binop_result_type): Delete.
12665 (simple_type, ordered_type, same_type, integral_type): Delete.
12666 (numeric_type, character_type, string_type, boolean_type): Delete.
12667 (float_type, structured_type): Delete.
12668 * language.h: Update.
12669
0f5b7562
TT
126702012-01-04 Tom Tromey <tromey@redhat.com>
12671
12672 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12673
78218f56
JB
126742012-01-04 Joel Brobecker <brobecker@adacore.com>
12675
12676 * corefile.c (close_exec_file): Delete.
12677 (reopen_exec_file): Remove commented out code that seems related
12678 to close_exec_file, which is being deleted here.
12679 * inferior.h (close_exec_file): Delete.
12680 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12681
0fcd72ba
JB
126822012-01-04 Joel Brobecker <brobecker@adacore.com>
12683
12684 * ada-lang.c: #include "cli/cli-utils.h".
12685 (get_selections): Use skip_spaces.
12686 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12687 (catch_ada_exception_command_split): Use skip_spaces.
12688 (ada_decode_assert_location): Likewise.
12689
1dabb4c4
JB
126902012-01-04 Joel Brobecker <brobecker@adacore.com>
12691
12692 * linespec.c (decode_line_internal): Check for C++ or Java
12693 compound constructs only if the current language is C, C++
12694 or Java.
12695
5931a2fa
JK
126962012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12697
12698 Revert:
12699 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12700 Joel Brobecker <brobecker@adacore.com>
12701 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12702 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12703 3 times.
12704 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12705 fall through into AT_ENTRY_POINT.
12706 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12707 DUMMY_ADDR with it.
12708 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12709 PPC_INSN_SIZE skip to 3 times.
12710
1a2da5ee
JB
127112012-01-04 Joel Brobecker <brobecker@adacore.com>
12712
12713 * linespec.c (add_minsym): Preserve function descriptors.
12714
8645ff69
UW
127152012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12716
12717 * breakpoint.c (all_locations_are_pending): Consider locations
12718 in program spaces executing during startup pending as well.
12719
0b302171
JB
127202012-01-04 Joel Brobecker <brobecker@adacore.com>
12721
12722 Copyright year update in most files of the GDB Project.
12723
8ba098ad
JB
127242012-01-04 Joel Brobecker <brobecker@adacore.com>
12725
12726 * copyright.sh: Delete.
12727 * copyright.py: Rewrite.
12728
09c01c30
JB
127292012-01-04 Joel Brobecker <brobecker@adacore.com>
12730
12731 * gnulib/extra/update-copyright: New file, imported from gnulib.
12732
3c36c0af
JB
127332012-01-04 Joel Brobecker <brobecker@adacore.com>
12734
12735 * README (Copyright and License Notices): New section.
12736
888fe1e1
TT
127372012-01-03 Tom Tromey <tromey@redhat.com>
12738
12739 PR python/12533:
12740 * python/py-value.c (valpy_dereference, valpy_get_address
12741 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12742 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12743 (valpy_absolute, valpy_richcompare): Free intermediate values.
12744
6e681866
JB
127452011-01-03 Joel Brobecker <brobecker@adacore.com>
12746
12747 * ada-lang.c: Reformat the copyright notice.
12748
0cd09acb
JK
127492012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12750
12751 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12752 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12753 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12754 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12755 Revert this part of:
12756 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12757 Build gdb directly from *.o files not using libgdb.a.
12758 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12759
12c3e59c
JB
127602012-01-02 Joel Brobecker <brobecker@adacore.com>
12761
12762 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12763 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12764 Reformat the copyright header.
12765
11bf1490
JK
127662012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12767
12768 Revert this part of:
12769 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12770 Remove the gdbtui binary.
12771 * gdb.c (main): Remove args.interpreter_p initialization.
12772 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12773 * main.h (struct captured_main_args): Remove interpreter_p.
12774
1fef196f
JB
127752012-01-02 Joel Brobecker <brobecker@adacore.com>
12776
12777 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12778
67827812
JB
127792012-01-02 Joel Brobecker <brobecker@adacore.com>
12780
12781 * top.c (print_gdb_version): Update copyright year.
12782
a4d0b831
YQ
127832012-01-02 Yao Qi <yao@codesourcery.com>
12784
12785 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12786
b5914469
JK
127872012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12788 Joel Brobecker <brobecker@adacore.com>
12789
12790 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12791 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12792 3 times.
12793 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12794 fall through into AT_ENTRY_POINT.
12795 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12796 DUMMY_ADDR with it.
12797 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12798 PPC_INSN_SIZE skip to 3 times.
12799
8da828f7
JK
128002012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12801
12802 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12803 the return value.
12804 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12805
8574e74b
JK
128062012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12807
12808 Build gdb directly from *.o files not using libgdb.a.
12809 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12810 (COMMON_OBS): Remove solib-target.o.
12811 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12812 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12813 (LIBGDB_OBS, libgdb.a): Move it above.
12814 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12815 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12816 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12817 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12818 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12819 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12820 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12821 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12822 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12823 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12824 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12825 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12826 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12827 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12828 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12829 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12830 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12831 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12832 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12833 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12834 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12835 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12836 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12837 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12838 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12839 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12840 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12841
217bff3e
JK
128422012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12843
12844 Remove the gdbtui binary.
12845 * .gitignore (/gdbtui): Remove.
12846 * Makefile.in (TUI): Remove.
12847 (SUBDIR_TUI_OBS): Remove tui-main.o.
12848 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12849 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12850 (tui-main.o): Remove.
12851 (all_object_files): Remove tui-main.o.
12852 * NEWS: New note for the gdbtui removal.
12853 * configure: Rebuilt.
12854 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12855 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12856 CONFIG_UNINSTALL respectively.
12857 * gdb.c (main): Remove args.interpreter_p initialization.
12858 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12859 * main.h (struct captured_main_args): Remove interpreter_p.
12860 * tui/tui-main.c: Remove.
12861
9cdd5dbd
DE
128622012-01-01 Doug Evans <dje@google.com>
12863
bb5ed363
DE
12864 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12865 (dwarf2_physname, read_import_statement): Ditto.
12866 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12867 (process_structure_scope read_subroutine_type): Ditto.
12868 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12869 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12870 (dwarf2_fetch_die_location_block): Ditto.
12871 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12872
a0f42c21
DE
12873 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12874 All callers updated.
12875 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12876 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12877 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12878
2dc860c0
DE
12879 * dwarf2read.c (load_cu): Move assert to more useful location.
12880
68dc6402
DE
12881 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12882 All callers updated.
12883
9cdd5dbd
DE
12884 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12885 (dwarf2_elf_names): Minor reformat.
12886 (dwarf2_per_cu_data): Tweak comment.
12887 (dwarf2_read_section): Fix comment.
12888 (create_all_comp_units): Fix comment.
12889 (load_full_comp_unit): Fix comment.
12890 (process_full_comp_unit): Fix comment.
12891 (read_signatured_type): Fix comment.
12892
0c10e53e 12893For older changes see ChangeLog-2011.
c906108c
SS
12894\f
12895Local Variables:
12896mode: change-log
12897left-margin: 8
12898fill-column: 74
12899version-control: never
57da7796 12900coding: utf-8
c906108c 12901End:
This page took 2.012183 seconds and 4 git commands to generate.