]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb/
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Code cleanup.
4 * breakpoint.c (clear_command): Remove variable sal_name_len and its
5 initialization, remove it from the compare_filenames_for_search call.
6 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
7 name_len and its initialization, remove it from the
8 compare_filenames_for_search calls.
9 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10 * symtab.c (compare_filenames_for_search): Remove the search_len
11 parameter, update the function comment, new variable search_len
12 initialized from SEARCH_NAME.
13 (iterate_over_some_symtabs): Remove variable name_len and its
14 initialization, remove it from the compare_filenames_for_search calls.
15 * symtab.h (compare_filenames_for_search): Remove the search_len
16 parameter,
17
18 2012-12-16 Joel Brobecker <brobecker@adacore.com>
19
20 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
21 (ALLDEPFILES): ... to there.
22
23 2012-12-15 Joel Brobecker <brobecker@adacore.com>
24
25 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
26
27 2012-12-15 Joel Brobecker <brobecker@adacore.com>
28
29 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
30 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
31 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
32 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
33 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
34 to gdb_target_obs for every target that uses rs6000-tdep.o.
35 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
36 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
37 or register_ppc_ravenscar_ops.
38
39 2012-12-15 Joel Brobecker <brobecker@adacore.com>
40
41 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
42 RAVENSCAR_SPARC_THREAD_H.
43 * sparc-ravenscar-thread.c: Rename all global entities
44 whose name is uses "ravenscar_sparc" as the prefix to use
45 "sparc_ravenscar" instead.
46
47 2012-12-15 Joel Brobecker <brobecker@adacore.com>
48
49 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
50 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
51 Adjust sparc-ravenscar-thread.h #include.
52 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
53 accordingly.
54 * Makefile.in: Replace ravenscar-sparc-thread with
55 sparc-ravenscar-thread throughout.
56 * configure.tgt: Likewise.
57
58 2012-12-15 Joel Brobecker <brobecker@adacore.com>
59
60 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
61 declaration.
62 (ravenscar_ops): New gdbarch variable.
63 * gdbarch.h, gdbarch.c: Regenerate.
64 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
65 * ravenscar-thread.c (current_arch_ops): Delete.
66 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
67 from the gdbarch.
68 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
69 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
70 (ravenscar_register_arch_ops): Delete.
71 * ravenscar-sparc-thread.h: New file.
72 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
73 (ravenscar_sparc_ops): Define value statically.
74 (_initialize_ravenscar_sparc): Delete.
75 (register_sparc_ravenscar_ops): New function.
76 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
77 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
78 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
79 ravenscar-sparc-thread.o.
80 (SFILES): Add ravenscar-thread.c.
81 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
82 (ALLDEPFILES): ravenscar-sparc-thread.c.
83 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
84 to gdb_target_obs
85 for all the targets that use sparc-tdep.o.
86
87 2012-12-15 Joel Brobecker <brobecker@adacore.com>
88
89 * ravenscar-thread.c (ravenscar_is_open): Delete.
90 (ravenscar_initialize): Move most of the code from here...
91 (ravenscar_inferior_created): ... to there. Invert logic.
92 (ravenscar_close): Delete.
93 (init_ravenscar_thread_ops): Remove setting of
94 ravenscar_ops.to_close.
95
96 2012-12-15 Joel Brobecker <brobecker@adacore.com>
97
98 * objfiles.c (init_entry_point_info): Move function from here...
99 * symfile.c (init_entry_point_info): ... to there. Make static.
100 * objfiles.h (objfiles.h): Delete declaration.
101
102 2012-12-15 Joel Brobecker <brobecker@adacore.com>
103
104 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
105 Remove call to init_entry_point_info. Add OBJFILE's
106 section_offsets and num_sections initialization. Add note
107 about entry info in the function documentation.
108 (syms_from_objfile): New function.
109 * coffread.c (coff_symfile_init): Remove call to
110 init_entry_point_info.
111 * machoread.c (macho_symfile_init): Likewise.
112 * xcoffread.c(xcoff_symfile_init): Likewise.
113
114 2012-12-15 Yao Qi <yao@codesourcery.com>
115
116 * remote-notif.c (_initialize_notif): Add new commands
117 'set debug notification' and 'show debug notification'.
118 * NEWS: Mention these new commands.
119
120 2012-12-15 Yao Qi <yao@codesourcery.com>
121
122 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
123 (SFILES): Add "remote-notif.c".
124 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
125 * remote-notif.c: New. Factored out from remote.c.
126 * remote-notif.h: New.
127 * remote.c: Include "remote-notif.h".
128 (stop_reply_xmalloc, do_stop_reply_xfree):
129 (remote_parse_stop_reply, remote_get_pending_stop_replies):
130 (remote_async_get_pending_events_handler): Remove declarations.
131 (remote_parse_stop_reply): Declare.
132 (pending_stop_reply): Remove.
133 (remote_async_get_pending_events_token): Move to
134 remote-notif.c.
135 (remote_close): Replace 'delete_async_event_handler' with
136 remote_notif_unregister_async_event_handler.
137 Don't call discard_pending_stop_replies.
138 (remote_start_remote): Replace code with remote_notif_parse
139 and remote_notif_get_pending_replies.
140 (remote_open_1): Replace 'create_async_event_handler' with
141 remote_notif_register_async_event_handler.
142 (extended_remote_attach_1): Call remote_notif_parse and
143 notif_stop_reply_push.
144 (struct stop_reply) <next>: Remove.
145 <base>: New field.
146 Callers update.
147 (stop_reply_queue): Change its type.
148 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
149 (remote_notif_remove_all): New.
150 (discard_pending_stop_replies): Update.
151 (remote_notif_stop_ack, stop_reply_dtr): New.
152 (remote_notif_stop_alloc_event): New.
153 (notif_client_stop): New variable.
154 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
155 (queued_stop_reply, peek_stop_reply): Adjust.
156 (remote_get_pending_stop_replies): Rename to
157 remote_notif_get_pending_events.
158 (handle_notification): Move to remote-notif.c.
159 (remote_async_get_pending_events_handler): Likewise.
160 (remote_wait_as): Adjust to call remote_notif_parse.
161 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
162 Return minus_one_ptid early if gets a notification.
163 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
164 (_initialize_remote): Call QUEUE_alloc. Update caller.
165 (remote_resume): Call 'remote_notif_process' in all-stop mode.
166 * remote.h: Include "remote-notif.h".
167 (remote_notif_get_pending_replies): Declare.
168
169 2012-12-15 Yao Qi <yao@codesourcery.com>
170
171 * remote.c (discard_pending_stop_replies): Update declaration.
172 (remote_detach_1, extended_remote_mourn_1): Likewise.
173 (discard_pending_stop_replies): Change parameter from PID to
174 INF.
175 (remote_close): Update caller.
176 (_initialize_remote): Attach discard_pending_stop_replies to
177 inferior_exit observer.
178
179 2012-12-15 Yao Qi <yao@codesourcery.com>
180
181 * remote.c (getpkt_or_notif_sane): Add one more argument in
182 its declaration.
183 (getpkt_or_notif_sane_1): Add one more argument.
184 (getpkt_sane): Update caller.
185 (getpkt_or_notif_sane): Likewise. Update call
186 togetpkt_or_notif_sane_1.
187 (remote_wait_ns): Update caller.
188
189 2012-12-15 Yao Qi <yao@codesourcery.com>
190 Doug Evans <dje@google.com>
191
192 * common/queue.h: New.
193
194 2012-12-15 Yao Qi <yao@codesourcery.com>
195
196 * breakpoint.c (print_one_breakpoint_location): Display the
197 state of 'installed' of each non-pending location of a tracepoint
198 in both CLI and MI.
199 (download_tracepoint_locations): Notify 'breakpoint-modified'
200 observer if any tracepoint location is downloaded.
201 * tracepoint.c (start_tracing): Likewise.
202 (merge_uploaded_tracepoints): Record all modified
203 tracepoints and notify 'breakpoint-modified' observer for them.
204
205 * NEWS: Mention the change for CLI and MI.
206
207 2012-12-15 Yao Qi <yao@codesourcery.com>
208
209 * breakpoint.c (download_tracepoint_locations): Iterate over
210 ALL_TRACEPOINTS first and then iterate over locations of
211 each tracepoint.
212
213 2012-12-14 Pierre Muller <muller@sourceware.org>
214 Pedro Alves <palves@redhat.com>
215
216 * solib-target.c (solib_target_current_sos): Remove 'const'
217 qualifier from type of library_document local variable to be
218 able to free it and avoid a memory leak.
219 Use cleanup chain to avoid leak even if exceptino is generated.
220
221 2012-12-14 Tom Tromey <tromey@redhat.com>
222
223 PR c++/8888:
224 * symtab.c (lookup_symbol_aux): If constructor is found, consider
225 returning the type instead.
226 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
227 found.
228
229 2012-12-14 Tom Tromey <tromey@redhat.com>
230
231 Partial fix for PR c++/14160:
232 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
233 * dwarf2read.c (dwarf2_is_constructor): New function.
234 (dwarf2_add_member_fn): Use it.
235 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
236 TYPE_FN_FIELD_CONSTRUCTOR.
237 * jv-typeprint.c (java_type_print_base): Use
238 TYPE_FN_FIELD_CONSTRUCTOR.
239 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
240 <dummy>: Shrink.
241 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
242
243 2012-12-14 Tom Tromey <tromey@redhat.com>
244
245 * c-exp.y (block, variable, name_not_typename, lex_one_token,
246 classify_name): Update.
247 * c-valprint.c (c_val_print): Update.
248 * f-exp.y (yylex): Update.
249 * go-exp.y (package_name_p, classify_packaged_name)
250 (classify_name): Update.
251 * jv-exp.y (push_variable): Update.
252 * m2-exp.y (variable): Update.
253 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
254 * p-exp.y (block, variable, yylex): Update.
255 * p-valprint.c (pascal_val_print): Update.
256 * parse.c (write_dollar_variable): Update.
257 * printcmd.c (address_info): Update.
258 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
259 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
260 (lookup_symbol): Change type of 'is_a_field_of_this'.
261 (check_field): Add 'is_a_field_of_this' argument.
262 * symtab.h (struct field_of_this_result): New.
263 (lookup_symbol, lookup_symbol_in_language): Update.
264
265 2012-12-14 Tom Tromey <tromey@redhat.com>
266
267 * symtab.c (check_field): Now static. Move from...
268 * valops.c (check_field): ... here. Remove.
269 * value.h (check_field): Don't declare.
270
271 2012-12-14 Tom Tromey <tromey@redhat.com>
272
273 * NEWS: Mention "info proc" and core files.
274 * corelow.c (core_info_proc): New function.
275 (init_core_ops): Set to_info_proc.
276 * gdbarch.c, gdbarch.h: Rebuild.
277 * gdbarch.sh (core_info_proc): New method.
278 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
279 * linux-tdep.c (linux_core_info_proc_mappings)
280 (linux_core_info_proc): New functions.
281 (linux_find_memory_region_ftype): New typedef.
282 (linux_find_memory_regions_full): New function, from
283 linux_find_memory_regions.
284 (struct linux_find_memory_regions_data): New.
285 (linux_find_memory_regions_thunk): New function.
286 (linux_find_memory_regions): Rewrite.
287 (struct linux_make_mappings_data): New.
288 (linux_make_mappings_callback)
289 (linux_make_mappings_corefile_notes): New functions.
290 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
291 (linux_init_abi): Call set_gdbarch_core_info_proc.
292 * target.c (target_info_proc): Return 'int'.
293 * target.h (target_info_proc): Update.
294
295 2012-12-14 Pierre Muller <muller@sourceware.org>
296
297 * windows-nat.c (windows_xfer_shared_libraries): Avoid
298 memory leak when OFFSET >= LEN_AVAIL.
299
300 2012-12-13 Tom Tromey <tromey@redhat.com>
301
302 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
303
304 2012-12-13 Tom Tromey <tromey@redhat.com>
305
306 * acinclude.m4 (CY_AC_C_WORKS): Remove.
307
308 2012-12-13 Pierre Muller <muller@sourceware.org>
309
310 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
311 local variable and zero terminate it to avoid possible problems
312 in strcmp.
313
314 2012-12-13 Pedro Alves <palves@redhat.com>
315
316 * coff-pe-read.c: Include coff/internal.h.
317 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
318 Null terminate buffer explicitly instead of memset the whole
319 buffer.
320
321 2012-12-13 Pierre Muller <muller@sourceware.org>
322
323 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
324 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
325 for already defined macros.
326
327 2012-12-13 Pierre Muller <muller@sourceware.org>
328
329 * coff-pe-read.h (pe_text_section_offset): Declare new function.
330 * coff-pe-read.c (debug_coff_pe_read): New static variable.
331 (struct read_pe_section_data): Add section_name field.
332 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
333 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
334 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
335 (get_pe_section_index): New function.
336 (struct pe_sections_info): New type.
337 (get_section_vmas): Use new struct pe_sections_info.
338 (add_pe_exported_sym): Handle unnamed exported function.
339 (add_pe_forwarded_sym): New function.
340 (read_pe_truncate_name): Truncate at last dot.
341 (pe_as16): New function.
342 (read_pe_exported_syms): Use ordinal of function to
343 retrieve correct RVA address of function and handle
344 forwarded symbol.
345 (pe_text_section_offset): New function.
346 (show_debug_coff_pe_read): New function.
347 (_initialize_coff_pe_read): New function adding
348 'set/show debug coff_pe_read' commands.
349
350 * windows-tdep.c (windows_xfer_shared_library): Use
351 pe_text_section_offset function instead of possibly wrong
352 0x1000 constant for .text sextion offset.
353
354 2012-12-13 Pedro Alves <palves@redhat.com>
355
356 * gdbarch.sh (do_read): Set IFS to blank.
357
358 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
359
360 * NEWS: Mention the -catch-load/-catch-unload MI commands.
361
362 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
363
364 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
365 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
366 * breakpoint.c (add_solib_catchpoint): New function that
367 can be used by both CLI and MI, factored out from
368 catch_load_or_unload.
369 (catch_load_or_unload): Strip it down and make it use the
370 new add_solib_catchpoint.
371 * breakpoint.h (add_solib_catchpoint): Declare it.
372 * mi/mi-cmd-break.h: New file.
373 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
374 (setup_breakpoint_reporting): New function used for both
375 catchpoints and breakpoints.
376 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
377 * mi/mi-cmd-catch.c: New file.
378 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
379 and -catch-unload.
380 * mi/mi-cmds.h: Declare the handlers for -catch-load and
381 -catch-unload.
382
383 2012-11-28 Tom Tromey <tromey@redhat.com>
384
385 * dbxread.c (read_dbx_symtab): Update.
386 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
387 (read_ofile_symtab): Add 'objfile' argument.
388 * dwarf2read.c (process_psymtab_comp_unit_reader)
389 (build_type_psymtabs_reader): Update.
390 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
391 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
392 argument.
393 (parse_procedure, parse_partial_symbols): Update.
394 (psymtab_to_symtab_1): Add 'objfile' argument.
395 * psympriv.h (struct partial_symtab) <objfile>: Remove.
396 <read_symtab>: Add 'objfile' argument.
397 (sort_pst_symbols, discard_psymtab): Update.
398 * psymtab.c (partial_map_expand_apply): Update.
399 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
400 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
401 (find_pc_sect_psymbol): Add 'objfile' argument.
402 (lookup_symbol_aux_psymtabs): Update.
403 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
404 Add 'objfile' argument.
405 (find_last_source_symtab_from_partial, dump_psymtab)
406 (dump_psymtabs_for_objfile, read_symtabs_for_function)
407 (expand_partial_symbol_tables, read_psymtabs_with_filename)
408 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
409 (expand_symtabs_matching_via_partial): Update.
410 (sort_pst_symbols): Add 'objfile' argument.
411 (allocate_psymtab): Update.
412 (discard_psymtab): Add 'objfile' argument.
413 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
414 * stabsread.h (end_psymtab): Update.
415 * xcoffread.c (this_symtab_objfile): New global.
416 (process_linenos, enter_line_range, xcoff_next_symbol_text):
417 Update.
418 (read_xcoff_symtab): Add 'objfile' argument.
419 (read_symbol, read_symbol_lineno): Update.
420 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
421 (xcoff_end_psymtab): Add 'objfile' argument.
422 (scan_xcoff_symtab): Update.
423
424 2012-12-12 Paul Koning <paul_koning@dell.com>
425
426 Add support for Python 3.
427 * NEWS: Mention Python 3 support.
428 * varobj.c (value_get_print_value): Use
429 python_string_to_target_string.
430 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
431 of type objects.
432 * python/py-breakpoint.c: Ditto.
433 * python/py-cmd.c: Ditto.
434 * python/py-event.c: Ditto.
435 * python/py-event.h: Ditto.
436 * python/py-evtregistry.c: Ditto.
437 * python/py-finishbreakpoint.c: Ditto.
438 * python/py-frame.c: Ditto.
439 * python/py-function.c: Ditto.
440 * python/py-infthread.c: Ditto.
441 * python/py-lazy-string.c: Ditto.
442 * python/py-progspace.c: Ditto.
443 * /python/py-symbol.c: Ditto.
444 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
445 initialization for Python 3.
446 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
447 of type objects.
448 (infpy_read_memory): Return memoryview object if Python 3.
449 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
450 (infpy_search_memory): Ditto.
451 (get_buffer): New function for Python 3.
452 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
453 of type objects.
454 (objfpy_dealloc): Use Py_TYPE to call tp_free.
455 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
456 of type objects.
457 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
458 (set_attr): Ditto.
459 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
460 instead of PyString methods if Python 3.
461 (print_children): Skip push_dummy_python_frame call if Python 3.
462 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
463 of type objects.
464 (salpy_dealloc): Use Py_TYPE to call tp_free.
465 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
466 of type objects.
467 (field_dealloc): Use Py_TYPE to call tp_free.
468 (typy_dealloc): Ditto.
469 (type_object_as_number): Adjust struct initializations for
470 differences in layout for Python 2 vs. Python 3.
471 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
472 string case for Python 3.
473 (unicode_to_encoded_python_string): Shorten code (no functional
474 change).
475 (python_string_to_target_python_string): Comment that in Python 3
476 returned value is a Python "bytes" type.
477 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
478 (gdb_py_object_from_longest): Omit non-long integer case in Python
479 3.
480 (gdb_py_object_from_ulongest): Ditto.
481 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
482 of type objects.
483 (valpy_dealloc): Use Py_TYPE to call tp_free.
484 (valpy_int): Omit function if Python 3.
485 (convert_value_from_python): Use "%S" format (Python object as a
486 string) if Python 3.
487 (value_object_as_number): Adjust struct initializations for
488 differences in layout for Python 2 vs. Python 3.
489 * python/python-config.py: Adjust syntax for Python 3
490 compatibility.
491 Include "sys.abiflags" string as part of python library name, if
492 that attribute exists (Python 3).
493 * python/python-internal.h (IS_PY3): Define if Python 3.
494 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
495 placeholder value if Python 3.
496 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
497 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
498 analogous Python 3 API function if Python 3.
499 (PyVarObject_HEAD_INIT): Define if not already defined.
500 (Py_TYPE): Ditto.
501 * python/python.c (eval_python_command): Omit Py_FlushLine call if
502 Python 3.
503 Check return values of all Python API calls for error.
504 Supply dummy "python" and "python-interactive" commands if Python
505 initialization failed.
506 (_initialize_python): Convert argc to wchar_t** if Python 3.
507 Add module initialization for Python 3.
508 (finish_python_initialization): Pass wchar_t * argument to
509 PySys_SetPath if Python 3.
510 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
511 (_GdbFile): New class for common output file behavior.
512 (GdbOutFile): Subclass from _GdbFile.
513 (GdbOutputErrorFile): Ditto.
514 (auto_load_packages): Adjust syntax for Python 3 compatibility.
515 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
516 * python/lib/gdb/prompt.py: Use sorted() function rather than
517 sort() method.
518 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
519 Adjust syntax for Python 3 compatibility.
520 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
521 rather than sort() method.
522 Adjust syntax for Python 3 compatibility.
523 * python/lib/gdb/command/type_printers.py: Ditto.
524 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
525 value is a memoryview object if Python 3.
526
527 2012-12-12 Tom Tromey <tromey@redhat.com>
528
529 * coffread.c (coff_objfile_data_key): New global.
530 (coff_symfile_init): Use set_objfile_data.
531 (coff_symfile_read): Use objfile_data.
532 (coff_symfile_finish): Don't free deprecated_sym_private.
533 (coff_free_info): New function.
534 (_initialize_coffread): Initialize coff_objfile_data_key.
535 * mdebugread.c (pending_list): Update comment.
536 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
537 * symfile.c (reread_symbols): Don't mention
538 deprecated_sym_private.
539 * xcoffread.c (xcoff_objfile_data_key): New global.
540 (XCOFF_DATA): New macro.
541 (process_linenos, enter_line_range, xcoff_next_symbol_text)
542 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
543 XCOFF_DATA.
544 (xcoff_new_init) Use set_objfile_data.
545 (xcoff_symfile_finish): Don't free deprecated_sym_private.
546 (init_stringtab, swap_sym, scan_xcoff_symtab)
547 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
548 (xcoff_free_info): New function.
549 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
550
551 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
552
553 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
554
555 2012-12-12 Tom Tromey <tromey@redhat.com>
556
557 * coffread.c (coff_symfile_init): Use set_objfile_data.
558 (coff_symfile_read): Use DBX_SYMFILE_INFO.
559 * dbxread.c (dbx_objfile_data_key): New global.
560 (dbx_symfile_init): Use set_objfile_data.
561 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
562 (dbx_free_symfile_info): New function.
563 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
564 DBX_SYMFILE_INFO.
565 (stabsect_build_psymtabs): Use set_objfile_data.
566 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
567 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
568 set_objfile_data.
569 (free_elfinfo): Use DBX_SYMFILE_INFO.
570 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
571 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
572 * gdb-stabs.h (dbx_objfile_data_key): Declare.
573 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
574 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
575 * somread.c (som_symfile_finish): Don't free
576 deprecated_sym_stab_info.
577
578 2012-12-12 Joel Brobecker <brobecker@adacore.com>
579
580 * gdbarch.sh (software_single_step): Remove trailing space in
581 comment (gdbarch.h is already correct).
582
583 2012-12-11 Tom Tromey <tromey@redhat.com>
584
585 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
586
587 2012-12-11 Tom Tromey <tromey@redhat.com>
588
589 * dsrec.c (report_transfer_performance): Don't declare.
590 (load_srec): Use gettimeofday, print_transfer_performance.
591 * symfile.c (report_transfer_performance): Remove.
592
593 2012-12-11 Pedro Alves <pedro@codesourcery.com>
594 Pedro Alves <palves@redhat.com>
595
596 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
597 NT_PSTATUS note.
598 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
599 differently from LWP IDs.
600
601 2012-12-11 Pedro Alves <palves@redhat.com>
602
603 * configure.ac (detect type of /proc): Remove Unixware handling.
604 * configure: Regenerate.
605 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
606 (ioctl_table) [PCRESET]: Remove entry.
607 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
608 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
609 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
610 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
611 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
612 Unixware in comments throughout.
613 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
614 and remove mention of Unixware.
615
616 2012-12-10 Doug Evans <dje@google.com>
617
618 * dwarf2read.c (dwarf2_cu): Enhance comment.
619 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
620 the DWO file.
621 (dwarf2_record_block_ranges): Ditto.
622
623 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
624
625 * symtab.c (find_pc_sect_symtab): Add comment.
626
627 2012-12-10 Tom Tromey <tromey@redhat.com>
628
629 * defs.h: Don't check for definition of LONGEST.
630 (min, max): Remove duplicates.
631
632 2012-12-10 Tom Tromey <tromey@redhat.com>
633
634 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
635 (dwarf2_fetch_die_loc_cu_off): Rename from
636 dwarf2_fetch_die_location_block. Rewrite to use
637 dwarf2_fetch_die_loc_sect_off.
638 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
639 (dwarf2_fetch_die_loc_cu_off): Rename.
640 * dwarf2loc.c (indirect_pieced_value): Use
641 dwarf2_fetch_die_loc_sect_off.
642 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
643 comment.
644 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
645 * dwarf2expr.c (add_piece): Update.
646 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
647
648 2012-12-10 Tom Tromey <tromey@redhat.com>
649
650 * buildsym.c (struct pending_block): Move from buildsym.h.
651 (pending_blocks): Likewise; now static.
652 (pending_block_obstack): New global.
653 (free_pending_blocks): Free blocks.
654 (record_pending_block): Use pending_block_obstack.
655 * buildsym.h (struct pending_block): Move definition to
656 buildsym.c.
657 (pending_blocks): Don't declare.
658
659 2012-12-10 Pedro Alves <palves@redhat.com>
660
661 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
662 dead SCO code, and adjust function description comment.
663
664 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
665
666 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
667 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
668 CC_HAS_LONG_LONG.
669 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
670 * dwarf2read.c (extract_cu_value): Remove the function.
671 (create_cus_from_index_list): Make the return type void, inline the
672 extract_cu_value caller, include new gdb_static_assert.
673 (create_cus_from_index): Make the return type void, update the function
674 comment, update the create_cus_from_index_list caller.
675 (create_signatured_type_table_from_index): Make the return type void,
676 inline the extract_cu_value caller, include new gdb_static_assert.
677 (dwarf2_read_index): Update the create_cus_from_index and
678 create_signatured_type_table_from_index caller.
679 * printcmd.c (ui_printf): Remove conditionalizations for
680 CC_HAS_LONG_LONG.
681 * config.in: Regenerate.
682 * configure: Regenerate.
683
684 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
685
686 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
687 Update the comment for checked_producer.
688 (check_producer): New forward declaration.
689 (producer_is_gcc_lt_4_3): New function.
690 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
691 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
692
693 2012-12-07 Tom Tromey <tromey@redhat.com>
694
695 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
696 argument, assertion.
697 * c-exp.y (typebase): Add completion productions.
698 * completer.c (expression_completer): Handle tag completion.
699 * expression.h (parse_expression_for_completion): Add argument.
700 * f-lang.c (f_make_symbol_completion_list): Add 'code'
701 argument.
702 * language.h (struct language_defn)
703 <la_make_symbol_completion_list>: Add 'code' argument.
704 * parse.c (expout_tag_completion_type, expout_completion_name):
705 New globals.
706 (mark_struct_expression): Add assertion.
707 (mark_completion_tag): New function.
708 (parse_exp_in_context): Initialize new globals.
709 (parse_expression_for_completion): Add 'code' argument. Handle
710 tag completion.
711 * parser-defs.h (mark_completion_tag): Declare.
712 * symtab.c (default_make_symbol_completion_list_break_on): Add
713 'code' argument. Update.
714 (default_make_symbol_completion_list): Add 'code' argument.
715 (make_symbol_completion_list): Update.
716 (make_symbol_completion_type): New function.
717 * symtab.h (default_make_symbol_completion_list_break_on)
718 (default_make_symbol_completion_list): Update.
719 (make_symbol_completion_type): Declare.
720
721 2012-12-07 Tom Tromey <tromey@redhat.com>
722
723 * expression.h (parse_expression_for_completion): Rename
724 from parse_field_expression.
725 (parse_completion): Rename from in_parse_field.
726 * c-exp.y (lex_one_token): Update.
727 * completer.c (expression_completer): Update.
728 * go-exp.y (lex_one_token): Update.
729 * p-exp.y (yylex): Update.
730 * parse.c (parse_completion): Rename from in_parse_field.
731 (parse_exp_in_context): Update.
732 (parse_expression_for_completion): Rename from
733 parse_field_expression. Update.
734
735 2012-12-07 Tom Tromey <tromey@redhat.com>
736
737 * typeprint.c (_initialize_typeprint): Set completer
738 for "whatis" and "ptype".
739
740 2012-12-07 Joel Brobecker <brobecker@adacore.com>
741
742 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
743 "sim/common/cgen-fpu.h". Remove invalid entries
744 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
745 which actually have an FSF copyright header.
746
747 2012-12-07 Joel Brobecker <brobecker@adacore.com>
748
749 * osf-share/AT386/cma_thread_io.h: Delete.
750 * osf-share/HP800/cma_thread_io.h: Delete.
751 * osf-share/README: Delete.
752 * osf-share/RIOS/cma_thread_io.h: Delete.
753 * osf-share/cma_attr.h: Delete.
754 * osf-share/cma_deb_core.h: Delete.
755 * osf-share/cma_debug_client.h: Delete.
756 * osf-share/cma_errors.h: Delete.
757 * osf-share/cma_handle.h: Delete.
758 * osf-share/cma_init.h: Delete.
759 * osf-share/cma_list.h: Delete.
760 * osf-share/cma_mutex.h: Delete.
761 * osf-share/cma_sched.h: Delete.
762 * osf-share/cma_semaphore_defs.h: Delete.
763 * osf-share/cma_sequence.h: Delete.
764 * osf-share/cma_stack.h: Delete.
765 * osf-share/cma_stack_int.h: Delete.
766 * osf-share/cma_tcb_defs.h: Delete.
767 * osf-share/cma_util.h: Delete.
768 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
769 in osf-share.
770 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
771 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
772 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
773
774 2012-12-06 Pedro Alves <palves@redhat.com>
775 Tom Tromey <tromey@redhat.com>
776
777 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
778
779 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
780
781 PR mi/14741:
782 * mi/mi-cmd-var.c (varobj_update_one): Take value of
783 attribute "dynamic" and "displayhint" from printed child,
784 not the root variable.
785
786 2012-12-06 Joel Brobecker <brobecker@adacore.com>
787
788 * aix-thread.c (getthrds): Fix type of 4th parameter.
789 (get_signaled_thread): Change type of variable ktid to tid_t.
790
791 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
792
793 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
794 value of get_frame_block.
795
796 2012-12-05 Pierre Muller <muller@sourceware.org>
797
798 Avoid memory leaks on struct cmd_list_element.doc field.
799 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
800 if flags contains DOC_ALLOCATED.
801 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
802 flags.
803 (delete_cmd): Handle DOC_ALLOCATED flag.
804 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
805 in flags filed of struct cmd_list_element.
806 (struct cmd_list_element): Document new flag item.
807
808 2012-12-04 Doug Evans <dje@google.com>
809
810 * symmisc.c: Whitespace fixes.
811
812 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
813
814 * i386-tdep.c (i386_skip_prologue): Using symbol table
815 to find the end of prologue for clang compiled binaries.
816 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
817 to find the end of prologue for clang compiled binaries.
818
819 2012-12-03 Doug Evans <dje@google.com>
820
821 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
822 (dw2_find_symbol_file): Delete unused local file_data.
823
824 2012-12-03 Tom Tromey <tromey@redhat.com>
825
826 * ada-exp.y (write_object_renaming, write_var_or_type)
827 (write_ambiguous_var, write_var_from_sym): Make blocks const.
828 * ada-lang.c (replace_operator_with_call)
829 (find_old_style_renaming_symbol): Make blocks const.
830 * ada-lang.h (ada_find_renaming_symbol): Update.
831 (struct ada_symbol_info) <block>: Now const.
832 * breakpoint.c (watch_command_1): Update.
833 * breakpoint.h (struct watchpoint) <exp_valid_block,
834 cond_exp_valid_block>: Now const.
835 * c-exp.y (classify_inner_name, classify_name): Make block
836 argument const.
837 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
838 const.
839 * expression.h (innermost_block, parse_exp_1): Update.
840 (union exp_element) <block>: Now const.
841 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
842 (lookup_struct): Make block argument const.
843 * gdbtypes.h (lookup_template_type): Update.
844 * go-exp.y (classify_name, classify_packaged_name)
845 (package_name_p): Make block argument const.
846 * objc-lang.c (lookup_struct_typedef): Make block argument const.
847 * objc-lang.h (lookup_struct_typedef): Update.
848 * parse.c (parse_exp_in_context, parse_exp_1)
849 (write_exp_elt_block): Make block arguments const.
850 (expression_context_block, innermost_block): Now const.
851 * parser-defs.h (write_exp_elt_block): Update.
852 (expression_context_block, innermost_block, block_found): Now
853 const.
854 * printcmd.c (struct display) <block>: Now const.
855 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
856 * valops.c (address_of_variable): Make block argument const.
857 * value.h (value_of_variable): Update.
858 * varobj.c (struct varobj_root) <valid_block>: Now const.
859
860 2012-11-30 Yao Qi <yao@codesourcery.com>
861
862 * breakpoint.c (print_one_breakpoint_location): Indent code.
863
864 2012-11-30 Yao Qi <yao@codesourcery.com>
865
866 * breakpoint.c (print_one_breakpoint_location): Combine two
867 blocks handling 'hit count' together.
868
869 2012-11-30 Yao Qi <yao@codesourcery.com>
870
871 * infrun.c (error_is_running, ensure_not_running): Move them
872 to ...
873 * infcmd.c (error_is_running, ensure_not_running): ... here.
874 Make them 'static'.
875 * inferior.h: Remove declarations of error_is_running and
876 ensure_not_running.
877
878 2012-11-30 Yao Qi <yao@codesourcery.com>
879
880 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
881 check REGNUM >= 0.
882
883 2012-11-30 Yao Qi <yao@codesourcery.com>
884
885 * infrun.c: Make the declaration of 'init_infwait_state'
886 static.
887 (init_infwait_state): Make it 'static'.
888
889 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
890
891 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
892 return value to void to avoid compiler warning.
893
894 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
895
896 * opencl-lang.c (opencl_print_type): New function.
897 (opencl_language_arch_info): Install it.
898
899 2012-11-29 Tom Tromey <tromey@redhat.com>
900
901 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
902 xvasprintf.
903 * common/common-utils.c (xasprintf, xvasprintf): Remove.
904 * common/common-utils.h (xasprintf, xvasprintf): Remove.
905
906 2012-11-29 Jerome Guitton <guitton@adacore.com>
907
908 * ada-lang.c (ada_is_interface_tag): New function.
909 (ada_is_ignored_field): Add interface tags to the list
910 of ignored fields.
911
912 2012-11-29 Jerome Guitton <guitton@adacore.com>
913
914 * ada-lang.h (ada_tag_value_at_base_address): New function
915 declaration.
916 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
917 New functions.
918 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
919 relocate the class-wide value if need be.
920 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
921 Let ada_tag_value_at_base_address relocate the class-wide access/ref
922 before dereferencing it.
923 * ada-valprint.c (ada_val_print_1): Relocate to base address
924 before displaying the content of an interface-wide ref.
925
926 2012-11-29 Jerome Guitton <guitton@adacore.com>
927
928 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
929
930 2012-11-29 Joel Brobecker <brobecker@adacore.com>
931
932 GDB 7.5.1 released.
933
934 2012-11-29 Yao Qi <yao@codesourcery.com>
935 Tom Tromey <tromey@redhat.com>
936
937 * eval.c (evaluate_subexp_standard): Get the correct pointer
938 type for TYPE_CODE_MEMBERPTR.
939
940 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
941
942 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
943 since now it is being done by binutils' powerpc_init_dialect().
944
945 2012-11-28 Tom Tromey <tromey@redhat.com>
946
947 PR gdb/14290:
948 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
949 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
950 Use it.
951 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
952 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
953 (gdb_bfd_openr_next_archived_file): Use it.
954
955 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
956
957 * configure.ac: Check for linux/perf_event.h.
958 * config.in: Regenerated.
959 * configure: Regenerated.
960
961 2012-11-28 Yao Qi <yao@codesourcery.com>
962
963 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
964 abbreviate 'delete tracepoints' to 'delete tr'.
965 * corefile.c (_initialize_core): Call add_alias_cmd to
966 abbreviate 'set gnutarget' to 'set g'.
967 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
968 'show convenience' to 'show conv'.
969
970 2012-11-27 Joel Brobecker <brobecker@adacore.com>
971
972 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
973 call to sparc_supply_fpregset.
974 (fill_fpregset): Fix first parameter in call to
975 sparc_collect_fpregset.
976
977 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
978 Kazu Hirata <kazu@codesourcery.com>
979 Yao Qi <yao@codesourcery.com>
980
981 * objfiles.c (init_entry_point_info): Call
982 gdbarch_convert_from_func_ptr_addr and
983 gdbarch_addr_bits_remove here ...
984 (entry_point_address_query): ... instead of here.
985 * solib-svr4.c (exec_entry_point): Call
986 gdbarch_addr_bits_remove.
987 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
988 the entry address.
989
990 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
991 Yao Qi <yao@codesourcery.com>
992
993 * eval.c (evaluate_subexp_standard): Add handling of
994 TYPE_CODE_MEMBERPTR when calling functions. Correct the
995 result of ptype for calling a TYPE_CODE_METHODPTR.
996
997 2012-11-27 Yao Qi <yao@codesourcery.com>
998
999 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1000 warning.
1001 Add i18n markup.
1002
1003 2012-11-26 Alexander Larsson <alexl@redhat.com>
1004 Jan Kratochvil <jan.kratochvil@redhat.com>
1005 Tom Tromey <tromey@redhat.com>
1006
1007 * NEWS: Mention mini debuginfo feature.
1008 * minidebug.c: New file.
1009 * configure.ac: Check for lzma.
1010 * configure, config.in: Rebuild.
1011 * Makefile.in (LIBLZMA): New variable.
1012 (CLIBS): Include LIBLZMA.
1013 (SFILES): Mention minidebug.c.
1014 (COMMON_OBS): Mention minidebug.o.
1015 * symfile.c (read_symbols): New function.
1016 (syms_from_objfile, reread_symbols): Call it.
1017 * symfile.h (find_separate_debug_file_in_section): Declare.
1018
1019 2012-11-26 Keith Seitz <keiths@redhat.com>
1020
1021 * exec.c (exec_file_attach): Move cleanup after verifying that
1022 memory has in fact been allocated.
1023
1024 2012-11-26 Tom Tromey <tromey@redhat.com>
1025
1026 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1027 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1028 SYMBOL_SYMTAB.
1029 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1030
1031 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1032 Pedro Alves <palves@redhat.com>
1033
1034 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1035 size parameter passed to readlink by one byte.
1036 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1037 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1038 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1039 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1040 size by one byte.
1041
1042 2012-11-26 Yao Qi <yao@codesourcery.com>
1043
1044 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1045 extraneous parentheses.
1046
1047 2012-11-26 Yao Qi <yao@codesourcery.com>
1048
1049 * remote.c (remote_start_remote): Typo fix.
1050
1051 2012-11-23 David S. Miller <davem@davemloft.net>
1052
1053 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1054 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1055 sparc32_sol2_fpregset): Declare new globals.
1056 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1057 'fpregset' argument.
1058 * sparc64-tdep.h (sparc64_supply_fpregset,
1059 sparc64_collect_fpregset): Likewise.
1060 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1061 globals.
1062 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1063 (sparc_fpregset): Declare new global.
1064 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1065 'fpregset' argument.
1066 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1067 into handler.
1068 (fill_fpregset): Likewise.
1069 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1070 sparc32_bsd_fpregset.
1071 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1072 sparc32_bsd_fpregset down into handler.
1073 (sparc32_linux_collect_core_fpregset): Likewise.
1074 * sparc-nat.c (sparc_fpregset): Define.
1075 (sparc_supply_fpregset): Add 'fpregset' argument.
1076 (sparc_collect_fpregset): Likewise.
1077 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1078 into fpregset handler.
1079 (sparc_store_inferior_registers): Likewise.
1080 (_initialize_sparc_nat): Set sparc_fpregset to
1081 sparc32_sunos4_fpregset if NULL.
1082 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1083 down into handler.
1084 (fill_fpregset): Likewise.
1085 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1086 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1087 use it to compute offsets.
1088 (sparc32_collect_fpregset): Likewise.
1089 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1090 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1091 down into handler.
1092 (fill_fpregset): Likewise.
1093 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1094 Likewise.
1095 (sparc64_linux_collect_core_fpregset): Likewise.
1096 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1097 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1098 use it to compute offsets.
1099 (sparc64_collect_fpregset): Likewise.
1100 (sparc64_bsd_fpregset): Define.
1101 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1102 sparc64_bsd_fpregset down into handler.
1103 (sparc64fbsd_collect_fpregset): Likewise.
1104 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1105 and pass sparc{32,64}_bsd_fpregset down into handler.
1106 (sparc64nbsd_collect_fpregset): Likewise.
1107 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1108 sparc64_bsd_fpregset down into handler.
1109 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1110 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1111 to sparc32_bsd_fpregset.
1112 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1113 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1114 (sparc32nbsd_supply_fpregset): Likewise.
1115
1116 2012-11-21 Tom Tromey <tromey@redhat.com>
1117
1118 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1119 field.
1120 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1121 Remove.
1122 * c-typeprint.c (c_type_print_base): Update.
1123
1124 2012-11-21 Yao Qi <yao@codesourcery.com>
1125
1126 PR tdep/7438
1127 * gdbarch.sh (smash_text_address): Remove.
1128 * gdbarch.c, gdbarch.h: Regenerate.
1129 * arm-tdep.c (arm_smash_text_address): Remove.
1130 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1131 * hppa-tdep.c (hppa_smash_text_address): Remove.
1132 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1133 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1134 Caller update.
1135 * coffread.c (coff_symtab_read): Caller update.
1136 * dbxread.c (process_one_symbol): Likewise.
1137 * elfread.c (record_minimal_symbol): Likewise.
1138 * somread.c (som_symtab_read): Likewise.
1139
1140 2012-11-20 Pierre Muller <muller@sourceware.org>
1141
1142 ARI fixes: sprintf rule.
1143 Replace sprintf function calls for char arrays by
1144 calls to xsnprintf calls.
1145 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1146 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1147 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1148 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1149 * breakpoint.c (condition_completer): Ditto.
1150 (create_tracepoint_from_upload): Ditto.
1151 * dwarf2read.c (file_full_name): Ditto.
1152 * gcore.c (gcore_command): Ditto.
1153 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1154 * go32-nat.c (go32_sysinfo): Ditto.
1155 * interps.c (interp_set): Ditto.
1156 * m32c-tdep.c (make_types): Ditto.
1157 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1158 * remote-m32r-sdi.c (m32r_open): Ditto.
1159 * sol-thread.c (td_err_string): Ditto.
1160 (td_state_string, solaris_pid_to_str): Ditto.
1161 * symtab.c (gdb_mangle_name): Ditto.
1162 * cli/cli-script.c (execute_control_command): Ditto.
1163 (define_command, document_command): Ditto.
1164 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1165 * tui/tui-stack.c (tui_make_status_line): Ditto.
1166 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1167
1168 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1169
1170 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1171 it when looking at ptr->func.
1172 * command.h (complete_on_cmdlist): Add a fourth arg.
1173 * completer.c (complete_line_internal): Add local ignore_help_classes,
1174 and set it to 1 when reason is not handle_help. Pass this down to
1175 lookup_cmd_1 and complete_on_cmdlist.
1176
1177 2012-11-20 Tom Tromey <tromey@redhat.com>
1178
1179 * completer.c (count_struct_fields): Remove.
1180 (expression_completer): Don't call count_struct_fields.
1181
1182 2012-11-20 Pedro Alves <palves@redhat.com>
1183
1184 * annotate.c (breakpoints_changed): Rename to ...
1185 (annotate_breakpoints_changed): ... this.
1186 (annotate_stopped, breakpoint_changed): Adjust caller.
1187 * annotate.h (breakpoints_changed): Rename to ...
1188 (annotate_breakpoints_changed): ... this.
1189 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1190 (do_map_commands_command, init_raw_breakpoint, clear_command)
1191 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1192
1193 2012-11-20 David S. Miller <davem@davemloft.net>
1194
1195 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1196 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1197 sysconf.
1198 (get_cores_used_by_process): Update comment.
1199
1200 2012-11-20 Yao Qi <yao@codesourcery.com>
1201
1202 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1203
1204 2012-11-20 Yao Qi <yao@codesourcery.com>
1205
1206 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1207 to deprecated_context_hook.
1208
1209 2012-11-19 Yao Qi <yao@codesourcery.com>
1210
1211 * infrun.c (infwait_state): Add static.
1212
1213 2012-11-16 Keith Seitz <keiths@redhat.com>
1214
1215 PR c++/13615
1216 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1217 parameter and pass it to lookup_symbol_file.
1218 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1219 to search base classes.
1220 (cp_lookup_symbol_namespace): Likewise.
1221 (lookup_namespace_scope): Likewise.
1222 (lookup_symbol_file): Add SEARCH parameter.
1223 If SEARCH is non-zero and no symbol is found, lookup the class
1224 and call cp_lookup_nested_symbol.
1225 (find_symbol_in_baseclass): New function.
1226 (cp_lookup_nested_symbol): Do not let
1227 cp_lookup_symbol_in_namespace search through base classes.
1228 Do that later when there is no global symbol match.
1229
1230 2012-11-16 Doug Evans <dje@google.com>
1231
1232 * main.c (gdb_datadir_provided): New static global.
1233 (get_init_files): If --data-directory is provided,
1234 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1235 * NEWS: Mention it.
1236
1237 2012-11-15 Pierre Muller <muller@sourceware.org>
1238
1239 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1240 * gdb_stat.h: Delete. Moved to common directory.
1241 * common/gdb_stat.h: New file.
1242 * gdb_wait.h: Delete. Moved to common directory.
1243 * common/gdb_wait.h: New file.
1244 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1245 location.
1246 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1247 location.
1248 (stat.h rule): Adapt to new gdb_stat.h location.
1249 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1250 <sys/stat.h> header.
1251 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1252 <sys/wait.h> header.
1253
1254 2012-11-15 Pierre Muller <muller@sourceware.org>
1255
1256 * configure.ac (AC_HEADER_STAT): Remove.
1257 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1258 and corresponding code.
1259 * configure: Regenerate.
1260 * config.in: Regenerate.
1261
1262 2012-11-15 Pierre Muller <muller@sourceware.org>
1263
1264 ARI xasprintf rule fixes.
1265 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1266 instead of xasprintf.
1267 (open_and_init_dwp_file): Ditto.
1268
1269 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1270
1271 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1272 target types.
1273
1274 2012-11-14 Tom Tromey <tromey@redhat.com>
1275
1276 * configure, config.in: Rebuild.
1277 * configure.ac: Don't check for ctype.h, time.h.
1278 * expprint.c: Don't use HAVE_CTYPE_H.
1279
1280 2012-11-13 Tom Tromey <tromey@redhat.com>
1281
1282 * gdbarch.h, gdbarch.c: Rebuild.
1283 * gdbarch.sh (set_target_gdbarch): Rename from
1284 deprecated_target_gdbarch_select_hack.
1285 * arch-utils.c (gdbarch_update_p): Update.
1286 (set_gdbarch_from_file): Update.
1287
1288 2012-11-14 Pierre Muller <muller@sourceware.org>
1289
1290 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1291 as responsible of contrib/ari directory.
1292
1293 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1294 Yao Qi <yao@codesourcery.com>
1295
1296 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1297 bit of EXC_RETURN.
1298 (arm_m_exception_cache, arm_m_exception_this_id)
1299 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1300 (arm_m_exception_unwind): New.
1301 (arm_gdbarch_init): Register arm_m_exception_unwind.
1302
1303 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1304
1305 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1306 parameter COUNT, for pattern filling of memory regions.
1307 * NEWS: Mention it.
1308
1309 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1310
1311 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1312 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1313 to print_source_lines ().
1314 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1315 flag.
1316 * source.c (print_source_lines_base): Prefix source line with
1317 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1318
1319 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1320
1321 * symtab.h (print_source_lines_flags): New enum.
1322 * source.c (print_source_lines_base): Change noerror to flags.
1323 (print_source_lines): Change noerror to flags.
1324
1325 2012-11-13 Pierre Muller <muller@sourceware.org>
1326
1327 ARI fixes: Avoid sprintf function use rule.
1328 * charset.c (convert_between_encodings): Use xsnprintf.
1329 * cli-out.c (cli_field_int): Likewise.
1330 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1331 * expprint.c (op_name_standard): Likewise.
1332 * frv-tdep.c (set_variant_num_gprs): Likewise.
1333 (set_variant_num_fprs): Likewise.
1334 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1335 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1336 (nto_init_solib_absolute_prefix): Likewise.
1337 * source.c (init_source_path): Likewise.
1338 (print_source_lines_base): Likewise.
1339 * valprint.c (print_wchar): Likewise.
1340 * mi/mi-out.c (mi_field_int): Likewise.
1341 windows-nat.c (windows_pid_to_exec_file): Likewise.
1342 (windows_create_inferior): Likewise.
1343 (_initialize_check_for_gdb_ini): Likewise.
1344
1345 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1346
1347 * frame.h (deprecated_frame_register_read): Renames
1348 frame_register_read.
1349 * frame.c (deprecated_frame_register_read): Renames
1350 frame_register_read. Update all callers.
1351 * i386-tdep.c: Update all callers of frame_register_read.
1352 * infcmd.c: Likewise.
1353 * jit.c: Likewise.
1354 * mips-tdep.c: Likewise.
1355 * mt-tdep.c: Likewise.
1356 * sh64-tdep.c: Likewise.
1357
1358 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1359
1360 * frame.h (frame_register_read): Remove FIXME comment.
1361 * frame.c (frame_register_read): Add suggestion explaining
1362 which function to use in place of this one.
1363
1364 2012-11-12 Tom Tromey <tromey@redhat.com>
1365
1366 * python/python.c (start_type_printers): Initialize 'result_obj'.
1367
1368 2012-11-12 Tom Tromey <tromey@redhat.com>
1369
1370 * NEWS: Update.
1371 * data-directory/Makefile.in (PYTHON_FILES): Add
1372 type_printers.py.
1373 * python/lib/gdb/command/type_printers.py: New file.
1374 * python/lib/gdb/command/types.py (TypePrinter): New class.
1375 (_get_some_type_recognizers, get_type_recognizers,
1376 apply_type_recognizers, register_type_printer): New
1377 functions.
1378 * python/py-objfile.c (objfile_object) <type_printers>: New
1379 field.
1380 (objfpy_dealloc): Decref new field.
1381 (objfpy_new): Set new field.
1382 (objfpy_get_type_printers, objfpy_set_type_printers): New
1383 functions.
1384 (objfile_to_objfile_object): Set new field.
1385 (objfile_getset): Add "type_printers".
1386 * python/py-progspace.c (pspace_object) <type_printers>: New
1387 field.
1388 (pspy_dealloc): Decref new field.
1389 (pspy_new): Set new field.
1390 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1391 (pspace_to_pspace_object): Set new field.
1392 (pspace_getset): Add "type_printers".
1393 * python/python.c (start_type_printers, apply_type_printers,
1394 free_type_printers): New functions.
1395 (_initialize_python): Set gdb.type_printers.
1396 * python/python.h (start_type_printers, apply_type_printers,
1397 free_type_printers): Declare.
1398 * typeprint.c (type_print_raw_options, default_ptype_flags):
1399 Update for new fields.
1400 (do_free_global_table, create_global_typedef_table,
1401 find_global_typedef): New functions.
1402 (find_typedef_in_hash): Use find_global_typedef.
1403 (whatis_exp): Use create_global_typedef_table. Change cleanup
1404 handling.
1405 * typeprint.h (struct type_print_options) <global_typedefs,
1406 global_printers>: New fields.
1407
1408 2012-11-12 Tom Tromey <tromey@redhat.com>
1409
1410 * c-typeprint.c (find_typedef_for_canonicalize,
1411 print_name_maybe_canonical): New functions.
1412 (c_print_type): Look up type name.
1413 (cp_type_print_derivation_info): Add flags argument. Use
1414 print_name_maybe_canonical.
1415 (cp_type_print_method_args): Add wrapping.
1416 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1417 (c_type_print_template_args): New function.
1418 (c_type_print_base): Change wrapping. Use
1419 print_name_maybe_canonical.
1420 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1421 type name lookups.
1422 * gdbtypes.c (types_equal): No longer static.
1423 * gdbtypes.h (types_equal): Declare.
1424 * typeprint.c (type_print_raw_options, default_ptype_flags):
1425 Update.
1426 (struct typedef_hash_table): New.
1427 (hash_typedef_field, eq_typedef_field,
1428 recursively_update_typedef_hash, add_template_parameters,
1429 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1430 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1431 copy_typedef_hash, find_typedef_in_hash): New functions.
1432 * typeprint.h (struct type_print_options) <local_typedefs>:
1433 New field.
1434 (recursively_update_typedef_hash, add_template_parameters,
1435 create_typedef_hash, free_typedef_hash,
1436 make_cleanup_free_typedef_hash, copy_typedef_hash,
1437 find_typedef_in_hash): Declare.
1438
1439 2012-11-12 Tom Tromey <tromey@redhat.com>
1440
1441 * cp-support.c (inspect_type,
1442 replace_typedefs_qualified_name, replace_typedefs): Add
1443 finder, data arguments. Call as needed.
1444 (cp_canonicalize_string_full): New function.
1445 (cp_canonicalize_string_no_typedefs): Rewrite.
1446 * cp-support.h (canonicalization_ftype): New typedef.
1447 (cp_canonicalize_string_full): Declare.
1448
1449 2012-11-12 Tom Tromey <tromey@redhat.com>
1450
1451 * NEWS: Update.
1452 * c-typeprint.c (c_type_print_base): Handle print_method and
1453 print_typedefs flags.
1454 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1455 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1456 options.
1457 * typeprint.c (type_print_raw_options, default_ptype_flags):
1458 Update for new field.s
1459 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1460 (setprinttypelist, showprinttypelist, print_methods,
1461 print_typedefs): New globals.
1462 (set_print_type, show_print_type, set_print_type_methods,
1463 show_print_type_methods, set_print_type_typedefs,
1464 show_print_type_typedefs): New functions.
1465 (_initialize_typeprint): Update documentation. Add "print
1466 type methods" and "print type typedefs" parameters.
1467 * typeprint.h (struct type_print_options) <print_methods,
1468 print_typedefs>: New fields.
1469
1470 2012-11-12 Tom Tromey <tromey@redhat.com>
1471
1472 * c-typeprint.c (cp_type_print_method_args): Add flags
1473 argument. Call c_print_type, not type_print.
1474 (c_type_print_base): Call c_print_type, not type_print.
1475 Update.
1476
1477 2012-11-12 Tom Tromey <tromey@redhat.com>
1478
1479 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1480 to type-printing functions.
1481 * ada-lang.h (ada_print_type): Add argument.
1482 * ada-typeprint.c (print_array_type, print_variant_clauses,
1483 print_variant_part, print_selected_record_field_types,
1484 print_record_field_types, print_unchecked_union_type,
1485 print_func_type, ada_print_type): Add flags argument.
1486 (ada_print_typedef): Update.
1487 * c-exp.y (OPERATOR conversion_type_id): Update.
1488 * c-lang.h (c_print_type, c_type_print_base): Update.
1489 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1490 c_type_print_modifier, c_type_print_args,
1491 c_type_print_varspec_suffix, c_type_print_base): Add flags
1492 argument.
1493 * cp-valprint.c (cp_print_class_member): Update.
1494 * dwarf2read.c (dwarf2_compute_name): Update.
1495 * f-lang.h (f_print_type): Add argument.
1496 * f-typeprint.c (f_print_type): Add flags argument.
1497 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1498 * go-lang.h (go_print_type): Add argument.
1499 * go-typeprint.c (go_print_type): Add flags argument.
1500 * jv-lang.h (java_print_type): Add argument.
1501 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1502 flags argument.
1503 * language.c (unk_lang_print_type): Add flags argument.
1504 * language.h (struct language_defn) <la_print_type>: Add flags
1505 argument.
1506 (LA_PRINT_TYPE): Likewise.
1507 * m2-lang.h (m2_print_type): Add argument.
1508 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1509 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1510 m2_unbounded_array, m2_record_fields): Add flags argument.
1511 * p-lang.h (pascal_print_type, pascal_type_print_base,
1512 pascal_type_print_varspec_prefix): Add argument.
1513 * p-typeprint.c (pascal_print_type,
1514 pascal_type_print_varspec_prefix, pascal_print_func_args,
1515 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1516 flags argument.
1517 * symmisc.c (print_symbol): Update.
1518 * typeprint.c (type_print_raw_options, default_ptype_flags):
1519 New globals.
1520 (type_print): Update.
1521 * typeprint.h (struct type_print_options): New.
1522 (type_print_raw_options): Declare.
1523 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1524
1525 2012-11-10 Keith Seitz <keiths@redhat.com>
1526
1527 * breakpoint.c (clear_command): Add cleanup for
1528 sals.sals if an argument is given.
1529
1530 * linespec.c (parse_linespec): Do cleanups after
1531 parsing a convenience variable.
1532
1533 2012-11-10 Keith Seitz <keiths@redhat.com>
1534
1535 PR gdb/14288
1536 * c-valprint.c (c_val_print): For character arrays
1537 with "print null" option on, print ellipses if
1538 the output is truncated and the next character is not \000.
1539 * valprint.c (MAX_WCHARS): Define.
1540 (WCHAR_BUFLEN): Likewise.
1541 (WCHAR_BUFLEN_MAX): Likewise.
1542 (struct converted_character): New structure.
1543 (count_next_character): New function.
1544 (print_converted_chars_to_obstack): New function.
1545 (generic_printstr): Rewrite using count_next_character
1546 and print_converted_chars_to_obstack.
1547
1548 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1549
1550 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1551 while executing the gdb command.
1552 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1553 are called from prompt_for_continue.
1554 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1555
1556 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1557
1558 PR tui/9584
1559
1560 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1561 but insert the command to execute in readline's buffer.
1562
1563 2012-11-09 Tom Tromey <tromey@redhat.com>
1564
1565 * gdbarch.sh (target_gdbarch): Remove macro.
1566 (get_target_gdbarch): Rename to target_gdbarch.
1567 * gdbarch.c, gdbarch.h: Rebuild.
1568 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1569 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1570 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1571 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1572 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1573 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1574 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1575 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1576 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1577 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1578 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1579 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1580 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1581 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1582 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1583 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1584 target-descriptions.c, target.c, target.h, tracepoint.c,
1585 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1586 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1587 python/py-inferior.c, python/python.c: Update.
1588
1589 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1590
1591 * source.c (print_source_lines_base): Add fullname field giving
1592 full path to file in mi output.
1593 * NEWS: Mention the new fullname field.
1594
1595 2012-11-09 Yao Qi <yao@codesourcery.com>
1596
1597 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1598
1599 2012-11-09 Pedro Alves <palves@redhat.com>
1600
1601 PR gdb/14306
1602
1603 * infrun.c: Include target-descriptions.h.
1604 (follow_exec): Fetch new target description.
1605
1606 2012-11-09 Yao Qi <yao@codesourcery.com>
1607
1608 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1609 0x8d (lea).
1610
1611 2012-11-09 Yao Qi <yao@codesourcery.com>
1612
1613 * breakpoint.c: Declare set_tracepoint_count.
1614 (install_breakpoint): Call set_tracepoint_count if B is a
1615 tracepoint.
1616 (trace_command): Don't call set_tracepoint_count. Re-indent.
1617 (strace_command, ftrace_command):
1618 (create_tracepoint_from_upload): Likewise.
1619
1620 2012-11-09 Pedro Alves <palves@redhat.com>
1621
1622 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1623 (get_target_gdbarch) <gdbarch.h>: New function.
1624 (startup_gdbarch) <gdbarch.h>: Declare.
1625 <gdbarch.c> (target_gdbarch): Delete.
1626 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1627 current inferior's gdbarch.
1628 <gdbarch.c> (get_target_gdbarch): New function.
1629 * inferior.c: Include target-descriptions.h.
1630 (free_inferior): Free target description info.
1631 (add_inferior_with_spaces): Set the inferior's initial
1632 architecture.
1633 (clone_inferior_command): Copy the original inferior's target
1634 description if it was user specified.
1635 (initialize_inferiors): Add comment.
1636 * inferior.h (struct target_desc_info): Forward declare.
1637 (struct inferior) <gdbarch>: New field.
1638 * linux-nat.c: Include target-descriptions.h.
1639 (linux_child_follow_fork): Copy the parent's architecture and
1640 target description to the child.
1641 * target-descriptions.c: Include inferior.h.
1642 (struct target_desc_info): New structure, holding the equivalents
1643 of ...
1644 (target_desc_fetched, current_target_desc)
1645 (target_description_filename): ... these removed globals.
1646 (get_tdesc_info, target_desc_info_from_user_p)
1647 (copy_inferior_target_desc_info, target_desc_info_free): New.
1648 (target_desc_fetched, current_target_desc)
1649 (target_description_filename): Reimplemented as convenience
1650 macros.
1651 (tdesc_filename_cmd_string): New global.
1652 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1653 tdescs filename ..." commands to the per-inferior equivalent.
1654 (show_tdesc_filename_cmd): Get the value to show from the
1655 per-inferior description filename.
1656 (_initilize_target_descriptions): Change the "set/show tdesc
1657 filename" commands' variable.
1658 * target-descriptions.h (struct target_desc, struct target_desc_info)
1659 (struct inferior): Forward declare.
1660 (target_find_description, target_clear_description)
1661 (target_current_description): Adjust comments.
1662 (copy_inferior_target_desc_info, target_desc_info_free)
1663 (target_desc_info_from_user_p). Declare.
1664
1665 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1666
1667 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1668 (tui_target_wait_hook): Remove.
1669 (tui_install_hooks): Install the about_to_proceed observer.
1670 (tui_remove_hooks): And remove it here.
1671
1672 2012-11-08 Tom Tromey <tromey@redhat.com>
1673
1674 * linux-tdep.c (linux_make_siginfo_note): New function.
1675 (linux_make_corefile_notes): Use it.
1676 * corelow.c (get_core_siginfo): New function.
1677 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1678
1679 2012-11-08 Tom Tromey <tromey@redhat.com>
1680
1681 PR gdb/14704:
1682 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1683 (zlib_decompress_section): Remove.
1684 (gdb_bfd_map_section): Only check for compressed section
1685 in mmap case. Use bfd_get_full_section_contents.
1686 * osabi.c (check_note): Add 'sectsize' argument. Read
1687 section data.
1688 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1689 section data. Update for check_note change.
1690 * xcoffread.c (xcoff_initial_scan): Use
1691 bfd_get_full_section_contents.
1692 * py-auto-load.c (auto_load_section_scripts): Use
1693 bfd_get_full_section_contents.
1694 * contrib/cc-with-tweaks.sh: Add -Z option.
1695
1696 2012-11-08 Tom Tromey <tromey@redhat.com>
1697
1698 * python/py-bpevent.c: Include defs.h.
1699 * python/py-continueevent.c: Include defs.h.
1700 * python/py-event.c: Include defs.h.
1701 * python/py-event.h: Don't include defs.h.
1702 * python/py-events.h: Don't include defs.h.
1703 * python/py-evts.c: Include defs.h.
1704 * python/py-exitedevent.c: Include defs.h.
1705 * python/py-newobjfileevent.c: Include defs.h.
1706 * python/py-signalevent.c: Include defs.h.
1707 * python/py-stopevent.c: Include defs.h.
1708 * python/py-threadevent.c: Include defs.h.
1709
1710 2012-11-08 Pierre Muller <muller@sourceware.org>
1711
1712 * update-web-ari.sh (print_heading): Add number of files
1713 checked.
1714 (nb_files): New variable counting the number of sources
1715 files found by gdb_find.sh script.
1716 (debug_awk): New variable to allow extra debug output.
1717 (indexes): Add more information if DEBUG_AWK is set.
1718
1719 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1720
1721 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1722 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1723 following the change in PLT call stubs on linker.
1724
1725 2012-11-08 Pierre Muller <muller@sourceware.org>
1726
1727 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1728 as default language.
1729 (AWK): Use = instead of == for sh test to avoid warning.
1730 (Linux rule): Correct [:digit] into [[:digit:]].
1731 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1732 (vasprintf rule): Adapt to common subdirectory moves.
1733 (xasprintf rule): Idem.
1734 (xvasprintf rule): Idem.
1735 (var_boolean rule): Accept occurence in == or != test.
1736
1737 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1738
1739 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1740
1741 * tui/tui-hooks.c (tui_inferior_exit): New function.
1742 (tui_detach_hook): Remove.
1743 (tui_install_hooks): Install the inferior exit observer.
1744 (tui_remove_hooks): Remove it.
1745
1746 2012-11-08 Yao Qi <yao@codesourcery.com>
1747
1748 PR gdb/14777.
1749 * source.c (_initialize_source): Call add_com_alias to abbreviate
1750 'forward-search' as 'fo'.
1751
1752 2012-11-07 Pedro Alves <palves@redhat.com>
1753
1754 * arm-tdep.c: Make defs.h be the first include.
1755 * coff-pe-read.c: Ditto.
1756 * gnu-nat.c: Ditto.
1757 * go32-nat.c: Ditto.
1758 * i386-nat.c: Ditto.
1759 * ppcnbsd-nat.c: Ditto.
1760 * ada-varobj.h: Don't include defs.h.
1761 * i386-darwin-tdep.h: Ditto.
1762 * i386-nat.h: Ditto.
1763
1764 2012-11-07 Pedro Alves <palves@redhat.com>
1765
1766 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1767 Committee.
1768
1769 2012-11-07 Pierre Muller <muller@sourceware.org>
1770
1771 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1772 File already uses "gdb_dirent.h" header.
1773
1774 2012-11-07 Yao Qi <yao@codesourcery.com>
1775
1776 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1777 tracepoint_count'.
1778
1779 2012-11-06 Tom Tromey <tromey@redhat.com>
1780
1781 * target.h (inferior_has_forked, inferior_has_vforked)
1782 (inferior_has_execd, inferior_has_called_syscall): Remove
1783 declarations.
1784
1785 2012-11-06 Pierre Muller <muller@sourceware.org>
1786
1787 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1788 add missing internalization markup.
1789
1790 2012-11-06 Pedro Alves <palves@redhat.com>
1791
1792 PR gdb/14810
1793
1794 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1795
1796 2012-11-06 Pierre Muller <muller@sourceware.org>
1797
1798 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1799 is not executable.
1800
1801 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1802
1803 * gnulib/update-gnulib.sh: New script.
1804
1805 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1806
1807 * MAINTAINERS: Update my email address.
1808
1809 2012-11-05 Tom Tromey <tromey@redhat.com>
1810
1811 * frame.c (put_frame_register): Don't use temporary buffer.
1812
1813 2012-11-05 Pedro Alves <palves@redhat.com>
1814
1815 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1816 child. Clear 'pending_detach'.
1817 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1818 'pending_detach' in the vfork parent.
1819
1820 2012-11-05 Doug Evans <dje@google.com>
1821
1822 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1823 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1824 * dwarf2read.c: #include "elf-bfd.h".
1825 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1826 (dwop_section_names): Renamed from dwo_section names. All uses
1827 updated. Add entries for .debug_cu_index, .debug_tu_index.
1828 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1829 All uses updated.
1830 (struct dwp_sections): New type.
1831 (struct virtual_dwo_sections): New type.
1832 (struct dwp_hash_table): New type.
1833 (struct dwp_file): New type.
1834 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1835 read in. Handle DWOs coming from DWP files.
1836 (lookup_dwo_file_slot): New function.
1837 (dwarf2_locate_dwo_sections): Move definition closer to use.
1838 (create_dwo_debug_info_hash_table_reader): Renamed from
1839 create_debug_info_hash_table_reader. All callers updated.
1840 (create_dwo_debug_info_hash_table): Renamed from
1841 create_debug_info_hash_table. All callers updated.
1842 (create_dwp_hash_table): New function.
1843 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1844 (lookup_dwo_in_dwp): New function.
1845 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1846 is_dwp. All callers updated.
1847 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1848 (open_and_init_dwo_file): Renamed from init_dwo_file.
1849 All callers updated.
1850 (lookup_dwo_file): Delete.
1851 (dwarf2_locate_dwp_sections): New function.
1852 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1853 (allocate_dwp_loaded_cutus_table): New function.
1854 (open_and_init_dwp_file): New function.
1855 (lookup_dwo_cutu): New function.
1856 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1857
1858 2012-11-03 Yao Qi <yao@codesourcery.com>
1859
1860 Fix PR gdb/14617.
1861 * breakpoint.c (trace_pass_set_count): Call
1862 observer_notify_breakpoint_modified instead of
1863 observer_notify_tracepoint_modified.
1864 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1865
1866 2012-11-02 Tom Tromey <tromey@redhat.com>
1867
1868 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1869 argument to complete_on_enum.
1870
1871 2012-11-02 Tom Tromey <tromey@redhat.com>
1872
1873 * configure: Rebuild.
1874 * configure.ac (build_warnings): Add -Wempty-body.
1875 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1876 * remote.c (handle_notification): Use braces for empty 'else' body.
1877 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1878 'else' body.
1879 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1880 'else' body.
1881 * solib-som.c (som_relocate_section_addresses): Use braces
1882 for empty 'else' body.
1883 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1884 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1885
1886 2012-11-02 Pedro Alves <palves@redhat.com>
1887
1888 PR gdb/14766
1889
1890 * infrun.c (handle_inferior_event)
1891 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1892 null_ptid before handling a vfork child exec or exit. Switch to
1893 the event ptid afterwards.
1894
1895 2012-11-02 Yao Qi <yao@codesourcery.com>
1896
1897 * std-operator.def: Remove OP_LABELED.
1898 * eval.c: Remove the declaration of 'get_label'.
1899 (get_label): Remove.
1900 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1901 Update comment.
1902 Remove local variable 'variantno' and related code.
1903 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1904 with 'fieldno'.
1905 * expprint.c (print_subexp_standard): Likewise.
1906 (dump_subexp_body_standard): Likewise.
1907 * parse.c (operator_length_standard): Likewise.
1908
1909 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1910
1911 Incorporate ARI web page generator into GDB sources.
1912 * contrib/ari/create-web-ari-in-src.sh: New file.
1913 * contrib/ari/gdb_ari.sh: New file.
1914 * contrib/ari/gdb_find.sh: New file.
1915 * contrib/ari/update-web-ari.sh: New file.
1916
1917 2012-10-31 Tom Tromey <tromey@redhat.com>
1918
1919 * gdbarch.c: Rebuild.
1920 * gdbarch.sh: Remove references to gdbarch_swap.
1921 * corelow.c (core_open): Remove obsolete comment.
1922
1923 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1924
1925 PR cli/14772
1926 * c-typeprint.c (c_print_type): Don't print a space for vector
1927 types, this is handled within the suffix.
1928 (c_type_print_varspec_suffix): Add a space to vector suffix.
1929
1930 2012-10-26 Pedro Alves <palves@redhat.com>
1931
1932 * amd64-tdep.c (amd64_relocate_instruction): Use
1933 store_unsigned_integer instead of memcpy.
1934 * i386-tdep.c (i386_relocate_instruction): Ditto.
1935
1936 2012-10-26 Pedro Alves <palves@redhat.com>
1937
1938 * infrun.c (handle_inferior_event): Merge handling of
1939 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1940 switch case.
1941
1942 2012-10-26 Pedro Alves <palves@redhat.com>
1943
1944 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1945 Remove comment.
1946
1947 2012-10-26 Pedro Alves <palves@redhat.com>
1948
1949 * target.c (target_waitstatus_to_string): Handle
1950 TARGET_WAITKIND_VFORK_DONE.
1951
1952 2012-10-26 Pedro Alves <palves@redhat.com>
1953
1954 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1955 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1956
1957 2012-10-24 Tristan Gingold <gingold@adacore.com>
1958
1959 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1960 Add comments.
1961
1962 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1963
1964 * ravenscar-thread.c (ravenscar_wait): Only update the list
1965 of threads and inferior_ptid if the inferior is still alive.
1966
1967 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1968
1969 * ada-lang.c (is_known_support_routine): Use lbasename when
1970 matching the symtab's filename against
1971 known_runtime_file_name_patterns.
1972
1973 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1974
1975 * ada-lang.c (ada_same_array_size_p): New function.
1976 (ada_promote_array_of_integrals): New function.
1977 (coerce_for_assign): Add handling of arrays where the elements
1978 are integrals of a smaller size than the size of the target
1979 array element type.
1980
1981 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1982
1983 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1984 against maximum exponent value.
1985
1986 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1987
1988 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1989 "unwind-seh.c".
1990
1991 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1992
1993 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1994 strip typedef layer when computing the fixed type's field type,
1995 only when computing its size.
1996
1997 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1998
1999 PR gdb/12783
2000 * i386-tdep.c (i386_return_value): Handle complex double and long
2001 double.
2002
2003 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2004
2005 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2006 New local variable args_len.
2007 Quote the name of the executable when computing the command line.
2008
2009 2012-10-23 Mark Kettenis <kettenis@gnu.org>
2010
2011 PR gdb/12796
2012 PR gdb/12798
2013 PR gdb/12800
2014 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2015 AMD64_FTAG_REGNUM.
2016 * amd64-tdep.c (amd64_classify): Classify complex types.
2017 (amd64_return_value): Handle the COMPLEX_X87 class.
2018
2019 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2020
2021 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2022 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2023
2024 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2025
2026 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2027 function.
2028 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2029 to amd64_windows_auto_wide_charset.
2030
2031 2012-10-23 Yao Qi <yao@codesourcery.com>
2032
2033 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2034 * event-top.h: Remove its declaration.
2035 (async_request_quit): Call mark_async_signal_handler instead of
2036 mark_async_signal_handler_wrapper.
2037 (async_do_nothing, async_disconnect): Likewise.
2038 (async_stop_sig): Likewise.
2039 * remote.c (handle_remote_sigint): Likewise.
2040 (handle_remote_sigint_twice): Likewise.
2041
2042 2012-10-23 Yao Qi <yao@codesourcery.com>
2043
2044 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2045 with 'static struct async_signal_handler *'.
2046 (sighup_token, sigquit_token, sigstp_token): Likewise.
2047
2048 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2049
2050 * gdbarch.sh (function_list): Use 'pstring' when printing
2051 a variable which could return NULL.
2052 * gdbarch.c: Regenerate.
2053
2054 2012-10-10 Joel Brobecker <brobecker@adacore.com>
2055 Tom Tromey <tromey@redhat.com>
2056
2057 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2058 inneffective if condition by gdb assertion. Add function
2059 description comment.
2060
2061 2012-10-19 Joel Brobecker <brobecker@adacore.com>
2062
2063 * parser-defs.h (struct exp_descriptor): Document constraint
2064 on return value for "op_name" callbacks.
2065
2066 2012-10-18 Tom Tromey <tromey@redhat.com>
2067
2068 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2069 * symtab.c (iterate_over_some_symtabs): Constify.
2070 * source.h (symtab_to_fullname): Return 'const char *'.
2071 * source.c (symtab_to_fullname): Return 'const char *'.
2072 * python/py-symtab.c (stpy_fullname): Constify.
2073 * cli/cli-cmds.c (edit_command): Constify.
2074 * breakpoint.c (print_breakpoint_location)
2075 (update_static_tracepoint): Constify.
2076
2077 2012-10-18 Tom Tromey <tromey@redhat.com>
2078
2079 * breakpoint.c (compare_breakpoints): Fix comparison.
2080
2081 2012-10-18 Tom Tromey <tromey@redhat.com>
2082
2083 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2084 gdb_wchar_t to convert_between_encodings.
2085
2086 2012-10-17 Yao Qi <yao@codesourcery.com>
2087
2088 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2089 more parameter 'inferior'.
2090 * corefile.c (write_memory_with_notification): Caller update.
2091
2092 * mi/mi-cmd-var.c: Include "mi-main.h".
2093 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2094 to 1 and restore it later.
2095 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2096 and "data-write-memory-bytes.
2097 * mi/mi-interp.c: Include objfiles.h.
2098 (mi_interpreter_init): Call observer_attach_memory_changed.
2099 (mi_memory_changed): New.
2100 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2101 New field.
2102
2103 * NEWS: Mention new MI notification "memory-changed".
2104
2105 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2106
2107 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2108
2109 2012-10-15 Doug Evans <dje@google.com>
2110
2111 New option -nh: inhibit loading of ~/.gdbinit.
2112 * NEWS: Mention -nh.
2113 * main.c (captured_main): Recognize and process -nh.
2114 (print_gdb_help): Mention -nh.
2115 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2116
2117 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2118
2119 PR backtrace/14646
2120 PR gdb/14647
2121 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2122 pc_regnum_from_eax.
2123 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2124 nor pc_regnum_from_eax.
2125 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2126 nor pc_regnum_from_eax.
2127
2128 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2129
2130 Fix entry values resolving in inlined frames.
2131 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2132 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2133 entries of FRAME.
2134
2135 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2136
2137 * configure.ac: Build with -DMS_WIN64 if building with Python
2138 enabled using GCC on amd64-windows.
2139 * configure: Regenerate.
2140
2141 2012-10-15 Tom Tromey <tromey@redhat.com>
2142
2143 PR python/14635:
2144 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2145 to Py_None.
2146
2147 2012-10-15 Tom Tromey <tromey@redhat.com>
2148
2149 PR python/14634:
2150 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2151
2152 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2153
2154 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2155 reset thread numbering back to 1.
2156
2157 2012-10-11 Doug Evans <dje@google.com>
2158
2159 PR breakpoints/14643.
2160 * linespec.c (struct ls_parser): New member keyword_ok.
2161 (linespec_lexer_lex_string): Add comment.
2162 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2163 for one.
2164 (parse_linespec): Set keyword_ok.
2165
2166 2012-10-10 Doug Evans <dje@google.com>
2167
2168 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2169 "0x" prefix on address in log message.
2170
2171 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2172 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2173 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2174 (lookup_dwo_file): Add const to dwo_name parameter.
2175 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2176
2177 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2178
2179 Fix crash during stepping on ppc32.
2180 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2181 SYM.
2182
2183 2012-10-03 Doug Evans <dje@google.com>
2184
2185 PR symtab/14601
2186 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2187
2188 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2189
2190 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2191 output and use uint32_t not long to ensure 4 byte size.
2192
2193 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2194
2195 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2196 unref'ed it.
2197
2198 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2199
2200 * target.c (simple_search_memory): Include access length in
2201 warning message.
2202
2203 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2204 Edjunior Machado <emachado@linux.vnet.ibm.com>
2205
2206 PR gdb/13989
2207 * solib.c (solib_find): Prevent GDB from loading native libraries when
2208 debugging a cross-target corefile.
2209
2210 2012-09-28 selven <pcthegreat@gmail.com>
2211
2212 Make definition match declaration.
2213
2214 * regcache.c (regcache_register_status): Change return type to
2215 enum register_status.
2216
2217 2012-09-28 Yao Qi <yao@codesourcery.com>
2218
2219 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2220 write_memory_with_notification instead of write_memory.
2221 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2222 instead of target_write_memory.
2223
2224 2012-09-28 Yao Qi <yao@codesourcery.com>
2225
2226 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2227 when the length of content is not an even number.
2228
2229 2012-09-27 Tom Tromey <tromey@redhat.com>
2230
2231 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2232 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2233
2234 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2235
2236 * sol-thread.c (sol_thread_fetch_registers)
2237 (sol_thread_store_registers): Delete commented out code.
2238
2239 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2240
2241 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2242 Move these functions to sparc-sol-thread.c.
2243 * sparc-sol-thread.c: New file.
2244 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2245 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2246 configurations.
2247 * configure: Regenerate.
2248
2249 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2250
2251 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2252 Remove commented-out code.
2253
2254 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2255
2256 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2257 Enable this code for sparc hosts only.
2258
2259 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2260
2261 * procfs.h (procfs_find_LDT_entry): Add declaration.
2262 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2263 function procfs_find_LDT_entry.
2264
2265 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2266
2267 * procfs.c (proc_get_LDT_entry): Make static.
2268
2269 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2270
2271 * procfs.c (proc_find_memory_regions): Fix declaration.
2272
2273 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2274
2275 * amd64-tdep.c (amd64_return_value): Revert previous change
2276 that used TYPE_LENGTH directly.
2277 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2278 (bfin_store_return_value): Likewise.
2279 * cris-tdep.c (cris_store_return_value): Likewise.
2280 (cris_extract_return_value): Likewise.
2281 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2282 * hppa-tdep.c (hppa64_return_value): Likewise.
2283 * lm32-tdep.c (lm32_store_return_value): Likewise.
2284 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2285 * spu-tdep.c (spu_value_from_register): Likewise.
2286 * vax-tdep.c (vax_return_value): Likewise.
2287
2288 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2289
2290 * gdbtypes.c (lookup_array_range_type): Expand parameters
2291 LOW_BOUND and HIGH_BOUND to LONGEST.
2292 (lookup_string_range_type): Likewise.
2293 * gdbtypes.h (lookup_array_range_type): Likewise.
2294 (lookup_string_range_type): Likewise.
2295 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2296 Expand HIGHBOUND to ssize_t.
2297 (value_string): Likewise.
2298 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2299 (value_string): Likewise.
2300
2301 2012-09-27 Yao Qi <yao@codesourcery.com>
2302
2303 PR breakpoints/13898
2304 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2305 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2306 per breakpoint type.
2307
2308 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2309
2310 * procfs.c: Add gdb_bfd header.
2311 * rs6000-nat.c: Likewise.
2312 * solib-pa64.c: Likewise.
2313 * spu-linux-nat.c: Likewise.
2314 * windows-nat.c: Likewise.
2315
2316 2012-09-26 Tom Tromey <tromey@redhat.com>
2317
2318 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2319
2320 2012-09-26 Tom Tromey <tromey@redhat.com>
2321
2322 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2323 (read_common_block): Handle child DIEs with
2324 DW_AT_data_member_location.
2325 (new_symbol_full): Add special case for common blocks.
2326
2327 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2328 Tom Tromey <tromey@redhat.com>
2329
2330 * dwarf2read.c (read_common_block): Rewrite.
2331 (new_symbol_full): Handle DW_TAG_common_block.
2332 * f-lang.c (head_common_list, find_common_for_function):
2333 Remove.
2334 * f-lang.h (struct common_entry, struct saved_f77_common,
2335 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2336 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2337 BLANK_COMMON_NAME_LOCAL): Remove.
2338 (struct common_block): New.
2339 * f-valprint.c (list_all_visible_commons): Remove.
2340 (info_common_command_for_block): New function.
2341 (info_common_command): Use it.
2342 * stack.c (iterate_over_block_locals): Special case for
2343 COMMON_BLOCK_DOMAIN.
2344 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2345 constant.
2346 (struct general_symbol_info) <value.common_block>: New field.
2347 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2348
2349 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2350 Tom Tromey <tromey@redhat.com>
2351
2352 * f-lang.c (allocate_saved_bf_node,
2353 allocate_saved_function_node, allocate_saved_f77_common_node,
2354 allocate_common_entry_node, tail_common_list, current_common,
2355 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2356 tmp_bf_ptr, add_common_block, add_common_entry,
2357 find_first_common_named, patch_common_entries,
2358 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2359 global_remote_debug, get_bf_for_fcn, saved_function_list,
2360 saved_function_list_end, clear_function_list, struct saved_fcn,
2361 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2362 SAVED_BF, SAVED_BF_PTR): Remove.
2363 * f-lang.h (tail_common_list, current_common,
2364 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2365 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2366 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2367 real_main_c_value): Remove.
2368 * f-valprint.c (there_is_a_visible_common_named): Remove.
2369
2370 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2371
2372 * breakpoint.c (update_global_location_list): Ignore previous
2373 duplicate status of a breakpoint when starting a new scan for
2374 duplicate breakpoints.
2375
2376 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2377 PR breakpoints/14419
2378 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2379 support LLVM compiler.
2380
2381 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2382
2383 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2384 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2385 (bfin_store_return_value): Likewise.
2386 * cris-tdep.c (cris_store_return_value): Likewise.
2387 (cris_extract_return_value): Likewise.
2388 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2389 * hppa-tdep.c (hppa64_return_value): Likewise.
2390 * lm32-tdep.c (lm32_store_return_value): Likewise.
2391 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2392 * spu-tdep.c (spu_value_from_register): Likewise.
2393 * vax-tdep.c (vax_return_value): Likewise.
2394
2395 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2396
2397 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2398 parameter LEN to ssize_t.
2399
2400 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2401
2402 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2403 variable LEN.
2404 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2405 directly.
2406 (alpha_store_return_value): Likewise.
2407 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2408 (amd64_push_arguments): Likewise.
2409 * ax-gdb.c (gen_trace_static_fields): Likewise.
2410 (gen_traced_pop): Likewise.
2411 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2412 * breakpoint.c (update_watchpoint): Likewise.
2413 * findcmd.c (parse_find_args): Use local variable for type
2414 instead of length.
2415 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2416 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2417 (h8300_store_return_value): Likewise.
2418 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2419 Use i386_darwin_arg_type_alignment directly.
2420 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2421 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2422 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2423 (m68hc11_extract_return_value): Likewise.
2424 * mep-tdep.c (mep_push_dummy_call): Likewise.
2425 * printcmd.c (float_type_from_length): Likewise.
2426 * s390-tdep.c (s390_value_from_register): Likewise.
2427 * stack.c (read_frame_arg): Likewise.
2428 * tracepoint.c (encode_actions_1): Likewise.
2429 * valops.c (value_fetch_lazy): Use local variable for type
2430 instead of length. Use TYPE_LENGTH directly.
2431 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2432
2433 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2434
2435 * symtab.c (skip_prologue_sal): Fix typo in comment.
2436
2437 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2438
2439 * linespec.c (create_sals_line_offset): Fix typo in comment.
2440
2441 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2442
2443 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2444 use plongest to print the array size.
2445
2446 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2447
2448 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2449 * p-valprint.c (pascal_type_print_base): Likewise.
2450
2451 2012-09-22 Yao Qi <yao@codesourcery.com>
2452
2453 * remote.c (remote_get_trace_status): Remove setting default
2454 values of fields of 'ts'.
2455
2456 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2457
2458 Fix internal error on canonicalization of clang types.
2459 * cp-name-parser.y (operator): New comment at make_operator call for
2460 new, delete, new[] and delete[].
2461 (exp): Use "sizeof ". Add new comment at make_operator call.
2462
2463 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2464
2465 Fix disassemble without parameters in tailcall frame.
2466 * cli/cli-cmds.c (disassemble_current_function): Use
2467 get_frame_address_in_block.
2468
2469 2012-09-21 Tom Tromey <tromey@redhat.com>
2470
2471 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2472 TYPE_CODE_UNION>: Unify, removing a goto.
2473
2474 2012-09-21 Tom Tromey <tromey@redhat.com>
2475
2476 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2477
2478 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2479
2480 * findvar.c (read_frame_register_value): Mark the result value as
2481 optimized out if any of the input registers have been optimized out.
2482
2483 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2484
2485 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2486
2487 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2488
2489 * eval.c (evaluate_subexp_standard): Eliminate single-use
2490 variable LOWER.
2491
2492 2012-09-21 Yao Qi <yao@codesourcery.com>
2493
2494 * mi/mi-interp.c: Declare mi_record_changed.
2495 (mi_interpreter_init): Call observer_attach_record_changed.
2496 (mi_record_changed): New.
2497 * record.c (record_open): Call observer_notify_record_changed.
2498 (cmd_record_stop): Call observer_notify_record_changed.
2499 * NEWS: Mention it.
2500
2501 2012-09-20 Tom Tromey <tromey@redhat.com>
2502
2503 * NEWS: Update.
2504 * python/python.c (finalize_python): New function.
2505 (_initialize_python): Make a final cleanup.
2506
2507 2012-09-19 Doug Evans <dje@google.com>
2508
2509 * buildsym.h (param_symbols): Delete, unused.
2510 (context_stack): Delete member "params", unused.
2511 * buildsym.c (push_context): Update.
2512 * dwarf2read.c (read_func_scope): Update.
2513
2514 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2515
2516 * sh-tdep.c (sh_register_convert_to_virtual)
2517 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2518 all callers. Just do a memcpy if not the little-endian case.
2519
2520 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2521 set_gdbarch_double_format and set_gdbarch_long_double_format.
2522 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2523 set_gdbarch_double_format.
2524 * sh-tdep.c (sh_gdbarch_init): Likewise.
2525
2526 * NEWS: Document the removal of SH's 'regs' command.
2527 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2528 command.
2529
2530 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2531
2532 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2533 `jump'.
2534
2535 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2536
2537 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2538 language when iterating over symbols.
2539
2540 2012-09-18 Yao Qi <yao@codesourcery.com>
2541
2542 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2543 (mi_interpreter_init): Call observer_attach_tsv_created and
2544 observer_attach_tsv_deleted.
2545 (mi_tsv_created, mi_tsv_deleted): New.
2546 * tracepoint.c (delete_trace_state_variable): Call
2547 observer_notify_tsv_deleted.
2548 (trace_variable_command): Call observer_notify_tsv_created.
2549 (delete_trace_variable_command): Call
2550 observer_notify_tsv_deleted.
2551 (create_tsv_from_upload): Call observer_notify_tsv_created.
2552 * NEWS: Mention it.
2553
2554 2012-09-18 Yao Qi <yao@codesourcery.com>
2555
2556 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2557 if traceframe changed.
2558 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2559 "trace-find".
2560 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2561 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2562 'traceframe_changed'.
2563 (mi_traceframe_changed): New.
2564 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2565 New field.
2566 * NEWS: Mention the new MI notification.
2567
2568 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2569
2570 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2571
2572 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2573
2574 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2575 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2576 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2577 Extend code also for PaX support. Convert all gdb_assert to warning
2578 calls.
2579
2580 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2581
2582 Implement auto-load user conveniences suggested by Doug Evans.
2583 * auto-load.c: Include top.h.
2584 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2585 (_initialize_auto_load): New variable scripts_directory_help. Mention
2586 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2587 scripts-directory. Document in online help one can use also files for
2588 set auto-load safe-path.
2589 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2590 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2591
2592 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2593
2594 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2595 of LEN.
2596
2597 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2598
2599 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2600 ELTLEN and use TYPE_LENGTH directly.
2601 (m2_val_print): Likewise.
2602 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2603 variable LEN and use TYPE_LENGTH directly.
2604 (m68k_svr4_store_return_value): Likewise.
2605 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2606 ARGLEN and use TYPE_LENGTH directly.
2607 (mips_o64_push_dummy_call): Likewise.
2608 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2609 variable LENGTH and use TYPE_LENGTH directly.
2610 (s390_function_arg_float): Likewise.
2611 (s390_function_arg_integer): Likewise.
2612 (s390_push_dummy_call): Likewise.
2613 (s390_return_value_convention): Likewise.
2614 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2615 TYPE_LENGTH directly.
2616
2617 2012-09-17 Yao Qi <yao@codesourcery.com>
2618
2619 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2620 Update comment to add_setshow_integer_cmd.
2621 * cli/cli-setshow.c (do_set_command): Handle case
2622 'var_zuinteger_unlimited'.
2623 (do_show_command): Likewise.
2624 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2625 for command 'remotetimeout'.
2626 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2627 to var_integer.
2628 * source.c (_initialize_source): Call
2629 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2630
2631 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2632
2633 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2634 variable LEN.
2635
2636 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2637
2638 PR 14119
2639 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2640 (frame_pop): Drop also TAILCALL_FRAME frames.
2641 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2642
2643 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2644 Pedro Alves <palves@redhat.com>
2645
2646 PR 14548
2647 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2648 function start if we are already at function start. Both for
2649 reverse-next and for reverse-step into function without line number
2650 info.
2651
2652 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2653
2654 Code cleanup - rename 'inline' depth to 'artificial' depth.
2655 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2656 frame_id_artificial_p, extend the comment.
2657 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2658 * frame.c (fprint_frame_id): Rename at a user, change debug output
2659 text to "artificial=".
2660 (skip_inlined_frames): Rename to ...
2661 (skip_artificial_frames): ... here. Extend the comment.
2662 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2663 (frame_id_inlined_p): Rename to ...
2664 (frame_id_artificial_p): ... here. Rename at a user.
2665 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2666 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2667 at a user.
2668 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2669 Extend the comment.
2670 (frame_id_inlined_p): Rename to ...
2671 (frame_id_artificial_p): ... here.
2672 * inline-frame.c (inline_frame_this_id): Rename at a user.
2673
2674 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2675
2676 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2677 vector variables using vector_size syntax rather than array
2678 syntax.
2679
2680 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2681
2682 * valarith.c (value_concat): Replace unsafe ALLOCA with
2683 XMALLOC/XFREE.
2684
2685 2012-09-14 Pedro Alves <palves@redhat.com>
2686
2687 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2688
2689 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2690
2691 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2692 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2693 data-directory as appropriate.
2694
2695 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2696
2697 * printcmd.c (ui_printf): Eliminate single-use variable
2698 PARAM_LEN.
2699
2700 2012-09-14 Yao Qi <yao@codesourcery.com>
2701 Pedro Alves <palves@redhat.com>
2702
2703 * valops.c (value_assign): Move observer_notify_target_changed
2704 below to replace reinit_frame_cache.
2705
2706 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2707
2708 Refactor Python "gdb" module into a proper Python package, by
2709 introducing a new "_gdb" module for code implemented in C, and
2710 using reload/__import__ instead of exec.
2711 * python/lib/gdb/__init__.py: Import * from _gdb.
2712 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2713 prompt_hook, sys.argv): Moved from finish_python_initialization.
2714 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2715 (packages, auto_load_packages): New list and function replacing
2716 module_dict and auto-loading code, using __file__ instead of
2717 gdb.PYTHONDIR and reload/__import__ instead of exec.
2718 (GdbSetPythonDirectory): Replacing function of the same name
2719 from finish_python_initialization, using reload/__import__ instead
2720 of exec, as well as call auto_load_packages.
2721 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2722 gdb_python_module and not gdb_module.
2723 * python/python-internal.h (gdb_python_module): Declare.
2724 * python/python.c (gdb_python_module): New global.
2725 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2726 (_initialize_python): Rename gdb module to _gdb.
2727 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2728 (finish_python_initialization): Move Python code to
2729 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2730 __main__.
2731
2732 2012-09-13 Pedro Alves <palves@redhat.com>
2733
2734 * Makefile.in (COMMON_OBS): Add registry.o.
2735 * registry.c: New file.
2736 * registry.h (struct registry_container): Declare.
2737 (registry_data_callback): New typedef.
2738 (struct registry_data, struct registry_data_registration, struct
2739 registry_data_registry): New type.
2740 (register_data_with_cleanup, registry_alloc_data)
2741 (registry_callback_adaptor, registry_clear_data)
2742 (registry_container_free_data, registry_set_data, registry_data):
2743 Declare.
2744 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2745 the new common structures and functions.
2746 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2747 callback typedefs.
2748
2749 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2750
2751 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2752 there is an error inserting hardware breakpoints and use the
2753 error message from the target.
2754
2755 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2756 Catch this exception and print the error message contained within.
2757 Do not print the default hardware error breakpoint message in this
2758 case.
2759
2760 2012-09-12 Doug Evans <dje@google.com>
2761
2762 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2763 cu == NULL.
2764
2765 2012-09-11 Doug Evans <dje@google.com>
2766
2767 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2768 .gdb_index symbol attributes if there are none.
2769
2770 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2771
2772 * symtab.h (struct minimal_symbol) [has_size]: New field.
2773 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2774 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2775 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2776 minimal symbols if the symbol's size is actually known.
2777 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2778 of msymbol's size field. Add comment.
2779 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2780 SET_MSYMBOL_SIZE to set the minimal symbol size.
2781
2782 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2783
2784 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2785 minimal_symbol struct object, rather than setting some of its
2786 fields one by one.
2787
2788 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2789
2790 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2791 passed_a_ptr flag when displaying typedef types.
2792
2793 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2794
2795 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2796 the optimized_out flag is preserved.
2797
2798 2012-09-10 Anthony Green <green@moxielogic.com>
2799
2800 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2801 prologue changes in GCC.
2802
2803 2012-09-10 Keith Seitz <keiths@redhat.com>
2804
2805 PR gdb/13483
2806 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2807 (BOOL_CONVERSION_BADNESS): ... this.
2808 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2809 (rank_one_type): Allow all boolean conversions
2810 permitted by the standard.
2811
2812 2012-09-06 Tom Tromey <tromey@redhat.com>
2813
2814 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2815 Don't decref py_objfile.
2816
2817 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2818
2819 Do not enable -lmcheck by default when Python is enabled with
2820 threading support.
2821 * configure.ac: (python_has_threads) New variable, by testing
2822 if WITH_THREAD is defined in Python.h.
2823 Move --enable-lmcheck after --with-python.
2824 Do not enable -lmcheck by default if python_has_threads=yes.
2825 Warn if --enable-lmcheck and python_has_threads=yes.
2826 * configure: Regenerate.
2827
2828 2012-08-31 Yao Qi <yao@codesourcery.com>
2829
2830 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2831 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2832 Update some commands.
2833 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2834 * mi/mi-main.c (mi_cmd_execute): Set
2835 '*parse->cmd->suppress_notification' to 1.
2836
2837 2012-08-31 Yao Qi <yao@codesourcery.com>
2838
2839 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2840
2841 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2842
2843 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2844
2845 2012-08-29 Doug Evans <dje@google.com>
2846
2847 * main.c (print_gdb_help): Remove reference to
2848 --use-deprecated-index-sections.
2849
2850 2012-08-28 Yao Qi <yao@codesourcery.com>
2851
2852 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2853 (init_cmds): Call add_setshow_uinteger_cmd for command
2854 'max-user-call-depth'.
2855 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2856 declaration of 'max_user_call_depth'.
2857 * frame.c (backtrace_limit): Add 'unsigned'.
2858 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2859 'limit'.
2860 * remote.c (remoteaddresssize): Add 'unsigned'.
2861 (remote_address_masked): Change local var 'address_size' to
2862 'unsigned'.
2863 (_initialize_remote): Call add_setshow_uinteger_cmd for
2864 'remoteaddresssize'.
2865 * top.c (history_size): Add 'unsigned'.
2866 (show_commands): Change local variables to 'unsigned'.
2867 (set_history_size_command): Don't check history_size is negative.
2868 Adjust the condition to call unstifle_history and set history_size
2869 to UNIT_MAX.
2870
2871 2012-08-28 Pedro Alves <palves@redhat.com>
2872
2873 PR gdb/14428
2874
2875 * infcmd.c (default_print_one_register_info): New, factored out
2876 from default_print_registers_info.
2877 (default_print_registers_info): Use it. Mark value unavailable if
2878 necessary.
2879 (registers_info): Print user registers with
2880 default_print_one_register_info.
2881
2882 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2883
2884 PR tui/14486
2885 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2886 is not NULL before referencing it.
2887
2888 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2889
2890 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2891 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2892 original PC for it.
2893
2894 2012-08-27 Eli Zaretskii <eliz@gnu.org>
2895 Jan Kratochvil <jan.kratochvil@redhat.com>
2896
2897 * auto-load.c (auto_load_objfile_script): Rename to ...
2898 (auto_load_objfile_script_1): ... here, change variable realname to
2899 parameter realname, document it, add return value, add variable retval.
2900 (auto_load_objfile_script): New function.
2901
2902 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2903
2904 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2905 followed by a whitespace.
2906
2907 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2908
2909 PR gdb/14494.
2910 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2911 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2912 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2913 here.
2914
2915 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2916
2917 * memattr.c (create_mem_region): Fix memory region overlapping
2918 checking.
2919
2920 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2921
2922 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2923 with xmalloc/cleanup.
2924 * mt-tdep.c (mt_push_dummy_call): Likewise.
2925 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2926 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2927
2928 2012-08-24 Yao Qi <yao@codesourcery.com>
2929
2930 * jv-exp.y (push_expression_name): Add "." at the end of error
2931 message.
2932
2933 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2934
2935 Document how to return from "python-interactive" to GDB.
2936 * python/python.c (_initialize_python): Update documentation.
2937
2938 2012-08-23 Pedro Alves <palves@redhat.com>
2939
2940 * infrun.c (_initialize_infrun) <handle command help text>:
2941 Mention that multiple signals are supported.
2942
2943 2012-08-23 Pedro Alves <palves@redhat.com>
2944
2945 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2946 string.
2947
2948 2012-08-23 Yao Qi <yao@codesourcery.com>
2949
2950 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2951 (tfind_1): Don't call registers_changed, set_traceframe_num,
2952 and clear_traceframe_info.
2953 Call set_current_traceframe.
2954 (set_current_traceframe): call set_traceframe_num.
2955
2956 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2957
2958 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2959 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2960
2961 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2962
2963 Enable readline in Python in a GDB-specific way and block the
2964 standard Python readline module to prevent conflicts with GDB.
2965 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2966 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2967 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2968 * python/py-gdb-readline.c: New file.
2969 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2970 prototype.
2971 * python/python.c (_initialize_python): Call
2972 gdbpy_initialize_gdb_readline.
2973
2974 2012-08-22 Keith Seitz <keiths@redhat.com>
2975
2976 * defs.h: Include build-gnulib/config.h
2977
2978 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2979
2980 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2981 and blx pc.
2982
2983 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2984
2985 Add a new "python-interactive" command that starts a standard
2986 Python interactive prompt with "pi" as alias, and add "py" as
2987 an alias to "python".
2988 * NEWS: Mention the new commands.
2989 * python/python.c (eval_python_command): New function.
2990 (python_interactive_command): For "python-interactive" with
2991 arguments, call eval_python_command. For "python-interactive"
2992 without arguments, call PyRun_InteractiveLoop.
2993 (_initialize_python): Add "python-interactive" command with
2994 "pi" as alias, and add "py" as an alias to "python".
2995
2996 2012-08-22 Tom Tromey <tromey@redhat.com>
2997
2998 * defs.h (quit_flag): Don't declare.
2999 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3000 (QUIT): Use new functions.
3001 * event-top.c (command_handler): Use clear_quit_flag.
3002 (handle_sigint): Use set_quit_flag.
3003 (async_request_quit): Use check_quit_flag. Don't check
3004 immediate_quit.
3005 * exceptions.c (throw_exception): Use clear_quit_flag.
3006 * main.c (captured_main): Use clear_quit_flag.
3007 * python/python.c (clear_quit_flag, set_quit_flag)
3008 (check_quit_flag): New functions.
3009 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3010 clear_quit_flag.
3011 * remote.c (remote_wait_as): Use check_quit_flag,
3012 clear_quit_flag.
3013 (remote_start_remote): Call QUIT.
3014 * symfile.c (load_progress): Use check_quit_flag.
3015 * top.c (command_loop): Use clear_quit_flag.
3016 (command_line_input): Call QUIT.
3017 * utils.c (quit_flag): Conditionally define.
3018 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3019 functions.
3020 (prompt_for_continue): Call QUIT. Use quit, not
3021 async_request_quit.
3022 * remote-mips.c (mips_expect_timeout): Call QUIT.
3023 * monitor.c (monitor_expect): Call QUIT.
3024
3025 2012-08-22 Tom Tromey <tromey@redhat.com>
3026
3027 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3028 (async_init_signals): Update.
3029 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3030 (SIGWINCH_HANDLER_BODY): Remove.
3031
3032 2012-08-22 Tom Tromey <tromey@redhat.com>
3033
3034 * jit.c (jit_object_close_impl): Don't malloc the objfile
3035 name.
3036 * objfiles.c (allocate_objfile): Don't malloc the objfile
3037 name.
3038 (free_objfile): Don't free the objfile name.
3039 * objfiles.h (struct objfile) <name>: Update comment.
3040 * symfile.c (reread_symbols): Fix reference counting. Don't
3041 malloc objfile name.
3042
3043 2012-08-22 Tom Tromey <tromey@redhat.com>
3044
3045 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3046 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3047 (symfile_bfd_open): Likewise.
3048 (generic_load): Likewise.
3049 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3050 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3051 gdb_bfd_open.
3052 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3053 Use gdb_bfd_open.
3054 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3055 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3056 (pmon_load_fast): Likewise.
3057 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3058 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3059 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3060 (macho_check_dsym): Likewise.
3061 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3062 (m32r_upload_command): Likewise.
3063 * gdb_bfd.h (gdb_bfd_cache): Declare.
3064 * gdb_bfd.c (struct gdb_bfd_data): New.
3065 (gdb_bfd_cache): New global.
3066 (struct gdb_bfd_cache_search): New.
3067 (hash_bfd): New function.
3068 (eq_bfd): Likewise.
3069 (gdb_bfd_open): Likewise.
3070 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3071 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3072 gdb_bfd_data.
3073 * exec.c (exec_file_attach): Use gdb_bfd_open.
3074 * dsrec.c (load_srec): Use gdb_bfd_open.
3075
3076 2012-08-22 Tom Tromey <tromey@redhat.com>
3077
3078 * dwarf2read.c (macro_start_file): Update.
3079 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3080 (free_objfile_per_bfd_storage): Destroy macro_cache.
3081 (allocate_objfile, free_objfile): Update.
3082 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3083 New field.
3084 (struct objfile) <macro_cache>: Remove.
3085 * symfile.c (reread_symbols): Update.
3086 * symmisc.c (print_symbol_bcache_statistics): Update.
3087 (print_objfile_statistics): Update.
3088
3089 2012-08-22 Tom Tromey <tromey@redhat.com>
3090
3091 * elfread.c (elf_symtab_read): Update.
3092 * objfiles.c (objfiles_bfd_data): New global.
3093 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3094 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3095 (allocate_objfile, free_objfile): Update.
3096 (_initialize_objfiles): Initialize objfiles_bfd_data.
3097 * objfiles.h (struct objfile_per_bfd_storage): New.
3098 (struct objfile) <per_bfd>: New field.
3099 <filename_cache>: Remove.
3100 (set_objfile_per_bfd): Declare.
3101 * symfile.c (reread_symbols): Update. Call
3102 set_objfile_per_bfd.
3103 (allocate_symtab): Update.
3104 * symmisc.c (print_symbol_bcache_statistics): Update.
3105 (print_objfile_statistics): Print the size of the BFD obstack.
3106
3107 2012-08-22 Tom Tromey <tromey@redhat.com>
3108
3109 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3110 * gdb_bfd.c: Use DEFINE_REGISTRY.
3111 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3112 (gdb_bfd_ref): Call bfd_alloc_data.
3113 (gdb_bfd_unref): Call bfd_free_data.
3114
3115 2012-08-22 Tom Tromey <tromey@redhat.com>
3116
3117 * registry.h (struct registry_fields): New.
3118 (REGISTRY_FIELDS): Redefine.
3119 (REGISTRY_ACCESS_FIELD): New macro.
3120 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3121 functions.
3122
3123 2012-08-22 Tom Tromey <tromey@redhat.com>
3124
3125 * auto-load.c (_initialize_auto_load): Update.
3126 * solib-svr4.c (_initialize_svr4_solib): Update
3127 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3128 * solib-darwin.c (_initialize_darwin_solib): Update.
3129 * registry.h: New file.
3130 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3131 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3132 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3133 (register_program_space_data_with_cleanup)
3134 (register_program_space_data, program_space_alloc_data)
3135 (clear_program_space_data, set_program_space_data)
3136 (program_space_data): Don't declare.
3137 * progspace.c: Use DEFINE_REGISTRY.
3138 (struct program_space_data, struct
3139 program_space_data_registration, struct
3140 program_space_data_registry, program_space_data_registry)
3141 (register_program_space_data_with_cleanup)
3142 (register_program_space_data, program_space_alloc_data)
3143 (program_space_free_data, clear_program_space_data)
3144 (set_program_space_data, program_space_data): Remove.
3145 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3146 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3147 (register_objfile_data_with_cleanup, register_objfile_data)
3148 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3149 declare.
3150 * objfiles.c: Use DEFINE_REGISTRY.
3151 (struct objfile_data, struct objfile_data_registration, struct
3152 objfile_data_registry, objfile_data_registry)
3153 (register_objfile_data_with_cleanup, register_objfile_data)
3154 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3155 (set_objfile_data, objfile_data): Remove.
3156 (_initialize_objfiles): Update.
3157 * jit.c (_initialize_jit): Update.
3158 * inflow.c (_initialize_inflow): Update.
3159 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3160 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3161 (register_inferior_data_with_cleanup, register_inferior_data)
3162 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3163 declare.
3164 * inferior.c: Use DEFINE_REGISTRY.
3165 (struct inferior_data, struct inferior_data_registration, struct
3166 inferior_data_registry, inferior_data_registry)
3167 (register_inferior_data_with_cleanup, register_inferior_data)
3168 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3169 (set_inferior_data, inferior_data): Remove.
3170 * auxv.c (_initialize_auxv): Update.
3171 * ada-lang.c (_initialize_ada_language): Update.
3172 * breakpoint.c (_initialize_breakpoint): Update.
3173 * i386-nat.c (i386_use_watchpoints): Update.
3174
3175 2012-08-22 Tom Tromey <tromey@redhat.com>
3176
3177 * exec.c (exec_close, exec_file_attach): Update.
3178 (add_to_section_table): Initialize 'key' field.
3179 (add_target_sections, remove_target_sections): Add 'key' argument.
3180 * exec.h (add_target_sections, remove_target_sections): Add
3181 'key' argument.
3182 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3183 (reload_shared_libraries_1): Update.
3184 * target.h (struct target_section) <key>: New field.
3185
3186 2012-08-22 Tom Tromey <tromey@redhat.com>
3187
3188 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3189
3190 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3191
3192 * symfile.c (allocate_symtab): Use host_address_to_string
3193 function instead of cast of pointer to long which is not
3194 compatible with x86_64-w64-mingw32 build.
3195
3196 2012-08-19 Andrew Pinski <apinski@cavium.com>
3197
3198 * mips-tdep.c (is_octeon): New function.
3199 (is_octeon_bbit_op): New function.
3200 (mips32_next_pc): Handle Octeon's bbit instructions.
3201 (mips32_instruction_has_delay_slot): Likewise.
3202
3203 2012-08-19 Andrew Pinski <apinski@cavium.com>
3204
3205 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3206 before the function.
3207
3208 2012-08-19 Andrew Pinski <apinski@cavium.com>
3209
3210 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3211
3212 2012-08-19 Keith Seitz <keiths@redhat.com>
3213
3214 PR c++/14365
3215 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3216 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3217
3218 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3219
3220 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3221 The typo broke "make TAGS".
3222
3223 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3224
3225 GDB 7.5 released.
3226
3227 2012-08-17 Keith Seitz <keiths@redhat.com>
3228
3229 PR c++/13356
3230 * gdbtypes.c (strict_type_checking): New variable.
3231 (show_strict_type_checking): New function.
3232 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3233 if strict type checking is disabled.
3234 (_initialize_gdbtypes): Add "check type" subcommand.
3235 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3236
3237 2012-08-17 Keith Seitz <keiths@redhat.com>
3238
3239 * language.h (type_mode): Remove.
3240 (type_check): Remove.
3241 (struct language_defn): Remove la_type_check.
3242 (STRICT_TYPE): Remove unused macro.
3243 (type_error): Remove.
3244 * language.c (set_type_range_case): Renamed to ...
3245 (set_range_case): ... this. Update all callers.
3246 Remove type_mode/type_check.
3247 (type_mode): Remove.
3248 (type_check): Remove.
3249 (show_type_command): Remove.
3250 (set_type_command): Remove.
3251 (language_info): Remove type checking output.
3252 (type_error): Remove unused function.
3253 (range_error): Update comment.
3254 (unknown_language_defn): Remove la_type_check.
3255 (auto_language_defn): Likewise.
3256 (local_language_defn): Likewise.
3257 (_initialize_language): Remove "check type" subcommand.
3258 * ada-lang.c (ada_language_defn): Remove la_type_check.
3259 * c-lang.c (c_language_defn): Likewise.
3260 (cplus_language_defn): Likewise.
3261 (asm_language_defn): Likewise.
3262 (minimal_language_defn): Likewise.
3263 * d-lang.c (d_language_defn): Likewise.
3264 * f-lang.c (f_language_defn): Likewise.
3265 * go-lang.c (go_language_defn): Likewise.
3266 * jv-lang.c (java_language_defn): Likewise.
3267 * m2-lang.c (m2_language_defn): Likewise.
3268 * objc-lang.c (objc_language_defn): Likewise.
3269 * opencl-lang.c (opencl_language_defn): Likewise.
3270 * p-lang.c (pascal_language_defn): Likewise.
3271
3272 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3273
3274 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3275
3276 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3277
3278 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3279 New function.
3280 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3281 using the regache. Use ia64_hpux_get_register_from_save_state_t
3282 to access the bsp and bspstore registers if not.
3283
3284 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3285
3286 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3287 * breakpoint.c (detach_breakpoints): Change pid parameter into
3288 a ptid. Adjust code accordingly.
3289 * infrun.c (handle_inferior_event): Delete variable child_pid.
3290 Update call to detach_breakpoints to pass the child ptid for
3291 fork events.
3292 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3293 assert that inferior_ptid's lwp is zero.
3294 (linux_handle_extended_wait): Update call to detach_breakpoints.
3295 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3296 detach_breakpoints.
3297
3298 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3299
3300 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3301 parent, only call detach_breakpoints if tts.tts_event ==
3302 TTEVT_VFORK.
3303
3304 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3305
3306 * dwarf2-frame.c (dwarf2_frame_cache): Use
3307 get_frame_address_in_block instead of get_frame_pc as
3308 the bound for executing the frame's FDE.
3309
3310 2012-08-16 Yao Qi <yao@codesourcery.com>
3311
3312 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3313 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3314 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3315 (c_type_print_varspec_suffix): Likewise.
3316 * eval.c (evaluate_subexp_standard): Likewise.
3317 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3318 (f_type_print_varspec_suffix): Likewise.
3319 * gdbtypes.c (is_scalar_type): Likewise.
3320 (recursive_dump_type): Likewise.
3321 * infcall.c (value_arg_coerce): Likewise.
3322 * m2-valprint.c (m2_val_print): Likewise.
3323 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3324 (pascal_type_print_varspec_suffix): Likewise.
3325 (pascal_type_print_base): Likewise.
3326 * p-valprint.c (pascal_val_print): Likewise.
3327 (pascal_val_print): Likewise.
3328 * valops.c (value_slice): Likewise.
3329 * valprint.c (scalar_type_p): Likewise.
3330 * valarith.c (value_bitstring_subscript): Remove.
3331 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3332 Remove comment on TYPE_CODE_BITSTRING.
3333
3334 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3335 TYPE_CODE_BITSTRING.
3336
3337 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3338 slot 0.
3339
3340 2012-08-16 Yao Qi <yao@codesourcery.com>
3341
3342 * tracepoint.c (trace_find_none_command): Remove.
3343 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3344
3345 2012-08-16 Yao Qi <yao@codesourcery.com>
3346
3347 * remote.c (handle_notification): Remove parameter 'length'.
3348 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3349
3350 2012-08-15 Keith Seitz <keiths@redhat.com>
3351
3352 * gdbtypes.c (opaque_type_resolution): Make static.
3353 Add missing comment.
3354 (overload_debug): Add missing comment.
3355 (show_opaque_type_resolution): Likewise.
3356 (show_overload_debug): Likewise.
3357 (print_bit_vector): Remove unnecessary forward declaration.
3358 (print_arg_types): Likewise.
3359 (dump_fn_fieldlists): Likewise.
3360 (print_cplus_stuff): Likewise.
3361
3362 2012-08-15 Tom Tromey <tromey@redhat.com>
3363
3364 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3365 (gdb_bfd_ref): Initialize new field.
3366 (gdb_bfd_unref): Unref the archive BFD.
3367 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3368 parent archive.
3369
3370 2012-08-15 Tom Tromey <tromey@redhat.com>
3371
3372 PR python/14387:
3373 * python/py-bpevent.c (create_breakpoint_event_object): Update
3374 comment.
3375 * python/py-event.c (evpy_add_attribute): Update comment.
3376 * python/py-exitedevent.c (create_exited_event_object): Fix
3377 reference counting and error handling.
3378 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3379 Fix reference counting.
3380 * python/py-signalevent.c (create_signal_event_object): Fix
3381 reference counting and error handling.
3382 * python/py-stopevent.c (emit_stop_event): Fix reference
3383 counting.
3384 * python/py-threadevent.c (get_event_thread): Return a
3385 borrowed reference.
3386 * python/py-type.c (convert_field): Fix reference counting.
3387
3388 2012-08-15 Tom Tromey <tromey@redhat.com>
3389
3390 * dwarf2read.c (dwarf_decode_macro_bytes)
3391 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3392 as hash key.
3393
3394 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3395
3396 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3397 stepi, nexti, finish, next, step, jump, and continue commands.
3398 * infrun.c (_initialize_infrun): Update help text for the handle
3399 command.
3400
3401 2012-08-14 Doug Evans <dje@google.com>
3402
3403 * gdbtypes.c (struct extra): Delete, unused.
3404
3405 * gdbtypes.c: Whitespace cleanup.
3406 (address_space_name_to_int): Remove "extern" from definition.
3407 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3408
3409 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3410 TYPE_POINTER_TYPE (type).
3411
3412 2012-08-14 Gary Benson <gbenson@redhat.com>
3413
3414 * solib-svr4.c (svr4_free_library_list): Use free_so.
3415
3416 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3417
3418 * .gitignore: Add go-exp.c.
3419
3420 2012-08-13 Doug Evans <dje@google.com>
3421
3422 * value.c (show_convenience): Tweak comment.
3423 (_initialize_values): Mention convenience functions in the help text
3424 for "show convenience".
3425
3426 2012-08-13 Yao Qi <yao@codesourcery.com>
3427
3428 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3429 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3430 TERNOP_SLICE_COUNT.
3431 * eval.c (evaluate_subexp_standard): Likewise.
3432 * expprint.c (print_subexp_standard): Likewise.
3433 (dump_subexp_body_standard): Likewise.
3434 * parse.c (operator_length_standard): Likewise.
3435
3436 2012-08-13 Yao Qi <yao@codesourcery.com>
3437
3438 * std-operator.def: Remove OP_BITSTRING.
3439 * breakpoint.c (watchpoint_exp_is_const): Update.
3440 * eval.c (evaluate_subexp_standard): Remove handling to
3441 OP_BITSTRING.
3442 * expprint.c (print_subexp_standard): Likewise.
3443 (dump_subexp_body_standard): Likewise.
3444 * parse.c (operator_length_standard): Likewise.
3445 * valops.c (value_bitstring): Remove.
3446 * value.h: Remove the declaration of 'value_bitstring'.
3447
3448 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3449
3450 * linespec.c (find_methods): Remove unused variables `i1' and
3451 `name_len'.
3452 (decode_line_full): Likewise for `arg_start'.
3453
3454 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3455
3456 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3457 (zlib_decompress_section): Likewise for `section_data'.
3458 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3459
3460 2012-08-10 Doug Evans <dje@google.com>
3461
3462 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3463 * NEWS: Document them.
3464 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3465 function/strfns.py.
3466 * python/py-type.c (typy_array_1): New function.
3467 (typy_array): Call it.
3468 (typy_vector): New function.
3469 (type_object_methods): Add "vector".
3470 * python/lib/gdb/function/__init__.py: New file.
3471 * python/lib/gdb/function/strfns.py: New file.
3472
3473 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3474
3475 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3476 for TYPE_FIELD_BITPOS.
3477 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3478
3479 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3480
3481 PR cli/10436:
3482 * common/vec.h (VEC_merge): Define.
3483 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3484 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3485 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3486 * completer.c: Include gdb_signals.h.
3487 (signal_completer): Define.
3488 * completer.h (signal_completer): Add prototype.
3489 * infcmd.c (_initialize_infcmd): Assign the command
3490 completer for "signal" to handle_completer.
3491 * infrun.c: Include completer.h.
3492 (handle_completer): Define.
3493 (_initialize_infrun): Declare a new local variable c. Store the
3494 result of add_com("handle") to it. Assign the command
3495 completer for "handle" to handle_completer.
3496
3497 2012-08-09 Yao Qi <yao@codesourcery.com>
3498
3499 * cli/cli-decode.c (set_cmd_prefix): New.
3500 (lookup_cmd_for_prefixlist): New.
3501 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3502 of each cmd_list_element in *prefixlist.
3503 (add_setshow_cmd_full): set_cmd_prefix.
3504 (add_alias_cmd): Likewise.
3505 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3506 Declare 'auto_boolean_enums'.
3507 * cli/cli-setshow.c: Include "observer.h".
3508 (notify_command_param_changed_p): New.
3509 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3510 Remove 'static'.
3511 (do_setshow_command): Split it to ...
3512 (do_set_command, do_show_command): ... them. New.
3513 (do_set_command): Call observer_notify_command_param_changed if
3514 notify_command_param_changed_p returns true.
3515 (cmd_show_list): Caller update.
3516 * auto-load.c (set_auto_load_cmd): Likewise.
3517 * remote.c (show_remote_cmd): Likewise.
3518 * cli/cli-setshow.h: Update declarations.
3519 * top.c (execute_command): Call do_set_command and do_show_command.
3520
3521 * NEWS: Mention new MI notification.
3522 * mi/mi-interp.c: Declare mi_command_param_changed.
3523 (mi_interpreter_init): Attach mi_command_param_changed to
3524 observer command_param_changed.
3525 (mi_command_param_changed): New.
3526 Remove mi_suppress_breakpoint_notifications.
3527 Define global variable mi_suppress_notification.
3528 (mi_breakpoint_created): Update.
3529 (mi_breakpoint_deleted): Likewise.
3530 (mi_breakpoint_modified): Likewise.
3531 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3532 'gdb-set' and set mi_suppress_notification.
3533 * mi/mi-main.h: (mi_suppress_notification): New struct.
3534
3535 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3536 Jan Kratochvil <jan.kratochvil@redhat.com>
3537
3538 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3539
3540 2012-08-09 Yao Qi <yao@codesourcery.com>
3541
3542 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3543 (skiplist): Move it to skip.c.
3544 (init_cmd_lists): Remove code setting enablebreaklist and
3545 skiplist to NULL.
3546 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3547 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3548 skiplist.
3549 * gdbcmd.h: Likewise.
3550 * skip.c (_initialize_step_skip): Move 'skiplist' from
3551 cli/cli-cmds.c.
3552
3553 2012-08-09 Yao Qi <yao@codesourcery.com>
3554
3555 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3556 * gnu-nat.c, symfile.c: Likewise.
3557
3558 2012-08-08 Aaron Gamble <agamble@google.com>
3559
3560 * utils.c (prompt_for_continue_wait_time): New static global.
3561 (make_command_stats_cleanup): Initialize it.
3562 (report_command_stats): Subtract time waiting for user.
3563 (prompt_for_continue): Track time waiting for user.
3564 (defaulted_query): Track time waiting for user.
3565
3566 2012-08-08 Doug Evans <dje@google.com>
3567
3568 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3569 UNOP_MEMVAL_TYPE.
3570 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3571 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3572 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3573 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3574 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3575 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3576 elt.
3577 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3578 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3579 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3580 (dump_prefix_expression): Handle OP_TYPE.
3581
3582 2012-08-08 Keith Seitz <keiths@redhat.com>
3583
3584 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3585 addr_start.
3586
3587 2012-08-08 Doug Evans <dje@google.com>
3588
3589 * linux-thread-db.c: #include "gdb_vecs.h".
3590 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3591 updated.
3592 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3593 (thread_db_load_search): Use a vector to iterate over path elements.
3594 Handle text appearing after "$pdir".
3595
3596 * gdb_string.h: Moved to ...
3597 * common/gdb_string.h: ... here.
3598 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3599 gdb_string.h and gdb_assert.h.
3600
3601 2012-08-08 Yao Qi <yao@codesourcery.com>
3602
3603 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3604 (tic6x_value_to_register): Likewise.
3605 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3606 and set_gdbarch_value_to_register.
3607
3608 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3609 Jean-Marc Saffroy <saffroy@gmail.com>
3610
3611 PR 11804
3612 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3613 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3614 * gcore.c (gcore_create_callback): New function comment. Add modified
3615 parameter. Only write modified regions. Set SEC_READONLY exactly
3616 according to MODIFIED.
3617 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3618 the passed modified value to FUNC.
3619 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3620 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3621 first. New variables modified and has_anonymous. Parse the lines of
3622 smaps file. Add the passed MODIFIED value to FUNC.
3623 * procfs.c (find_memory_regions_callback): Add the passed modified
3624 value.
3625
3626 2012-08-06 Tom Tromey <tromey@redhat.com>
3627
3628 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3629 (dwarf2_frame_cache): Use it.
3630 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3631 cache initialization constraint.
3632
3633 2012-08-06 Tom Tromey <tromey@redhat.com>
3634
3635 PR python/14386:
3636 * varobj.c (update_dynamic_varobj_children): Don't call
3637 PyIter_Check.
3638
3639 2012-08-06 Tom Tromey <tromey@redhat.com>
3640
3641 PR cli/14392:
3642 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3643
3644 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3645
3646 * NEWS: New entry for 'cd' default parameters.
3647 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3648
3649 2012-08-03 Tom Tromey <tromey@redhat.com>
3650
3651 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3652 return.
3653
3654 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3655
3656 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3657 to attempting lseek/write.
3658 (inf_child_fileio_pread): Likewise for pread.
3659
3660 2012-08-02 Yao Qi <yao@codesourcery.com>
3661
3662 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3663 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3664 add_setshow_zinteger_cmd.
3665 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3666 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3667 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3668 instead of add_setshow_zinteger_cmd.
3669 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3670 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3671 instead of add_setshow_zinteger_cmd.
3672 * frame.c (frame_debug): Add 'unsigned'.
3673 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3674 add_setshow_zinteger_cmd.
3675 * frame.h: Update the declaration of 'frame_debug'.
3676 * gdbtypes.c (overload_debug): Add 'unsigned'.
3677 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3678 add_setshow_zinteger_cmd.
3679 * inferior.h: Update declaration of 'debug_infrun'.
3680 * infrun.c (debug_infrun): Add 'unsigned'.
3681 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3682 add_setshow_zinteger_cmd.
3683 * jit.c (jit_debug): Add 'unsigned'.
3684 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3685 add_setshow_zinteger_cmd.
3686 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3687 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3688 instead of add_setshow_zinteger_cmd.
3689 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3690 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3691 add_setshow_zinteger_cmd.
3692 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3693 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3694 instead of add_setshow_zinteger_cmd.
3695 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3696 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3697 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3698 intead of add_setshow_zinteger_cmd.
3699 * mips-tdep.c (mips_debug): Add 'unsigned'.
3700 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3701 instead of add_setshow_zinteger_cmd.
3702 * monitor.c (monitor_debug): Add 'unsigned'.
3703 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3704 add_setshow_zinteger_cmd.
3705 * observer.c (observer_debug): Add 'unsigned'.
3706 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3707 add_setshow_zinteger_cmd.
3708 * parse.c (expressiondebug): Add 'unsigned'.
3709 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3710 add_setshow_zinteger_cmd.
3711 * record.c (record_debug): Add 'unsigned'.
3712 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3713 add_setshow_zinteger_cmd.
3714 * record.h: Update the declaration of 'record_debug'.
3715 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3716 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3717 add_setshow_zinteger_cmd.
3718 * serial.c (global_serial_debug_p): Add 'unsigned'.
3719 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3720 add_setshow_zinteger_cmd.
3721 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3722 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3723 add_setshow_zinteger_cmd.
3724 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3725 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3726 add_setshow_zinteger_cmd.
3727 * target.c (targetdebug): Add 'unsigned'.
3728 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3729 add_setshow_zinteger_cmd.
3730 * valops.c (overload_debug): Add 'unsigned'.
3731 * varobj.c (varobjdebug): Add 'unsigned'.
3732 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3733 add_setshow_zinteger_cmd.
3734 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3735 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3736 instead of add_setshow_zinteger_cmd.
3737
3738 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3739 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3740 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3741 instead of add_setshow_zinteger_cmd.
3742 * gdbarch.c, gdbarch.h: Re-generated.
3743
3744 2012-08-02 Yao Qi <yao@codesourcery.com>
3745
3746 * nto-tdep.c: Don't include cli/cli-decode.h and
3747 cli/cli-cmds.h.
3748 (_initialize_nto_tdep): Remove.
3749 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3750 Remove field.
3751 Remove macro nto_internal_debugging.
3752
3753 2012-08-01 Richard Henderson <rth@redhat.com>
3754
3755 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3756 (mep-*-*) [gdb_target_obs]: Likewise.
3757
3758 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3759
3760 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3761 linux_get_siginfo_type.
3762
3763 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3764
3765 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3766 AT_ENTRY_POINT.
3767 (call_function_by_hand) <ON_STACK>: Call write_memory with
3768 gdbarch_breakpoint_from_pc, if possible.
3769 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3770 here.
3771
3772 2012-07-31 Yao Qi <yao@codesourcery.com>
3773
3774 * tracepoint.c: Add 'static' for some variables.
3775
3776 2012-07-31 Yao Qi <yao@codesourcery.com>
3777
3778 * go32-nat.c: Declare _initialize_go32_nat.
3779 * ser-go32.c: Declare _initialize_ser_dos.
3780 * top.c (do_chdir_cleanup): Add 'static'.
3781
3782 2012-07-30 Keith Seitz <keiths@redhat.com>
3783
3784 * linespec.c (linespec_lex_number): A number followed
3785 by quotes is a valid number, too.
3786
3787 2012-07-30 Tom Tromey <tromey@redhat.com>
3788
3789 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3790
3791 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3792
3793 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3794 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3795
3796 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3797
3798 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3799 invalid or reevaluated to prevent prevent references to possibly
3800 delete'd type objects being left in the varobj.
3801
3802 2012-07-27 Tom Tromey <tromey@redhat.com>
3803 Jan Kratochvil <jan.kratochvil@redhat.com>
3804
3805 * copying.awk: Print buffer-read-only and vi ro markers.
3806 * copying.c: Rebuild.
3807 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3808 * gdbarch.c, gdbarch.h: Rebuild.
3809 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3810 buffer-read-only and vi ro markers.
3811 * features/arm-with-iwmmxt.c: Rebuild.
3812 * features/arm-with-m-fpa-layout.c: Rebuild.
3813 * features/arm-with-m-vfp-d16.c: Rebuild.
3814 * features/arm-with-m.c: Rebuild.
3815 * features/arm-with-neon.c: Rebuild.
3816 * features/arm-with-vfpv2.c: Rebuild.
3817 * features/arm-with-vfpv3.c: Rebuild.
3818 * features/i386/amd64-avx-linux.c: Rebuild.
3819 * features/i386/amd64-avx.c: Rebuild.
3820 * features/i386/amd64-linux.c: Rebuild.
3821 * features/i386/amd64.c: Rebuild.
3822 * features/i386/i386-avx-linux.c: Rebuild.
3823 * features/i386/i386-avx.c: Rebuild.
3824 * features/i386/i386-linux.c: Rebuild.
3825 * features/i386/i386-mmx-linux.c: Rebuild.
3826 * features/i386/i386-mmx.c: Rebuild.
3827 * features/i386/i386.c: Rebuild.
3828 * features/i386/x32-avx-linux.c: Rebuild.
3829 * features/i386/x32-avx.c: Rebuild.
3830 * features/i386/x32-linux.c: Rebuild.
3831 * features/i386/x32.c: Rebuild.
3832 * features/mips-dsp-linux.c: Rebuild.
3833 * features/mips-linux.c: Rebuild.
3834 * features/mips64-dsp-linux.c: Rebuild.
3835 * features/mips64-linux.c: Rebuild.
3836 * features/rs6000/powerpc-32.c: Rebuild.
3837 * features/rs6000/powerpc-32l.c: Rebuild.
3838 * features/rs6000/powerpc-403.c: Rebuild.
3839 * features/rs6000/powerpc-403gc.c: Rebuild.
3840 * features/rs6000/powerpc-405.c: Rebuild.
3841 * features/rs6000/powerpc-505.c: Rebuild.
3842 * features/rs6000/powerpc-601.c: Rebuild.
3843 * features/rs6000/powerpc-602.c: Rebuild.
3844 * features/rs6000/powerpc-603.c: Rebuild.
3845 * features/rs6000/powerpc-604.c: Rebuild.
3846 * features/rs6000/powerpc-64.c: Rebuild.
3847 * features/rs6000/powerpc-64l.c: Rebuild.
3848 * features/rs6000/powerpc-7400.c: Rebuild.
3849 * features/rs6000/powerpc-750.c: Rebuild.
3850 * features/rs6000/powerpc-860.c: Rebuild.
3851 * features/rs6000/powerpc-altivec32.c: Rebuild.
3852 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3853 * features/rs6000/powerpc-altivec64.c: Rebuild.
3854 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3855 * features/rs6000/powerpc-cell32l.c: Rebuild.
3856 * features/rs6000/powerpc-cell64l.c: Rebuild.
3857 * features/rs6000/powerpc-e500.c: Rebuild.
3858 * features/rs6000/powerpc-e500l.c: Rebuild.
3859 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3860 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3861 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3862 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3863 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3864 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3865 * features/rs6000/powerpc-vsx32.c: Rebuild.
3866 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3867 * features/rs6000/powerpc-vsx64.c: Rebuild.
3868 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3869 * features/rs6000/rs6000.c: Rebuild.
3870 * features/s390-linux32.c: Rebuild.
3871 * features/s390-linux32v1.c: Rebuild.
3872 * features/s390-linux32v2.c: Rebuild.
3873 * features/s390-linux64.c: Rebuild.
3874 * features/s390-linux64v1.c: Rebuild.
3875 * features/s390-linux64v2.c: Rebuild.
3876 * features/s390x-linux64.c: Rebuild.
3877 * features/s390x-linux64v1.c: Rebuild.
3878 * features/s390x-linux64v2.c: Rebuild.
3879 * features/tic6x-c62x-linux.c: Rebuild.
3880 * features/tic6x-c62x.c: Rebuild.
3881 * features/tic6x-c64x-linux.c: Rebuild.
3882 * features/tic6x-c64x.c: Rebuild.
3883 * features/tic6x-c64xp-linux.c: Rebuild.
3884 * features/tic6x-c64xp.c: Rebuild.
3885
3886 2012-07-27 Tom Tromey <tromey@redhat.com>
3887
3888 * c-exp.y (classify_name): Avoid assignment in condition.
3889
3890 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3891
3892 * amd64-windows-tdep.c: Include "frame.h".
3893 (amd64_windows_skip_trampoline_code): New function.
3894 (amd64_windows_init_abi): Add trampoline registration.
3895
3896 2012-07-27 Yao Qi <yao@codesourcery.com>
3897
3898 * tracepoint.c (cur_traceframe_number): Remove.
3899 (set_tfile_traceframe): Remove.
3900 (tfile_trace_find, tfile_fetch_registers): Update callers.
3901 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3902 (tfile_open, tfile_trace_find): Likewise.
3903
3904 2012-07-27 Yao Qi <yao@codesourcery.com>
3905
3906 * thread.c (switch_to_thread): Don't call registers_changed.
3907
3908 2012-07-26 Tom Tromey <tromey@redhat.com>
3909
3910 * Makefile.in (SFILES): Remove objc-exp.y.
3911 (YYFILES): Remove objc-exp.c.
3912 (YYOBJ): Remove objc-exp.o.
3913 (local-maintainer-clean): Don't mention objc-exp.c.
3914 * c-exp.y: Include objc-lang.h.
3915 (%union) <class>: New field.
3916 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3917 (exp): Clone subscript production for OBJC_LBRAC. Add various
3918 Objective C productions.
3919 (msglist, msgarglist, msgarg): New productions.
3920 (array_mod, func_mod, operator): Clone productions for
3921 OBJC_LBRAC.
3922 (parse_string_or_char): Handle '@' strings.
3923 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3924 (classify_name): Check la_name_of_this. Recognize ObjC class
3925 names.
3926 * objc-exp.y: Remove.
3927 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3928 * objc-lang.h (objc_parse, objc_error): Don't declare.
3929
3930 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3931
3932 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3933
3934 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3935
3936 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3937 and decrement.
3938
3939 2012-07-26 Tom Tromey <tromey@redhat.com>
3940
3941 * copying.c: Rebuild.
3942 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3943 'no_class'.
3944
3945 2012-07-26 Tom Tromey <tromey@redhat.com>
3946
3947 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3948 immediate_quit.
3949 (print_objfile_statistics): Likewise.
3950 (maintenance_print_symbols): Likewise.
3951 (maintenance_print_msymbols): Likewise.
3952 (maintenance_print_objfiles): Likewise.
3953 * psymtab.c (print_partial_symbols): Call QUIT.
3954 (maintenance_print_psymbols): Likewise. Don't modify
3955 immediate_quit.
3956 * copying.c (show_copying_command): Don't modify immediate_quit.
3957 (show_warranty_command): Likewise.
3958 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3959
3960 2012-07-26 Keith Seitz <keiths@redhat.com>
3961
3962 * linespec.c (linespec_lexer_lex_number): The input
3963 is also a valid number if the next character is a comma
3964 or colon.
3965
3966 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3967
3968 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3969 configure options.
3970
3971 2012-07-26 Tristan Gingold <gingold@adacore.com>
3972
3973 * machoread.c: Include gdb_bfd.h.
3974
3975 2012-07-26 Tristan Gingold <gingold@adacore.com>
3976
3977 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3978 offset.
3979
3980 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3981
3982 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3983 SIZE to size_t.
3984 (dwarf2_evaluate_loc_desc): Likewise.
3985 (dwarf2_loc_desc_needs_frame): Likewise.
3986 (locexpr_describe_location_1): Likewise.
3987 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3988 size_t.
3989 (struct dwarf2_loclist_baton): Likewise.
3990 * dwarf2read.c (struct dwarf_block): Likewise.
3991 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3992 (decode_locdesc): Expand SIZE and I to size_t.
3993
3994 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3995
3996 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3997
3998 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3999
4000 * doublest.c (convert_doublest_to_floatformat): If the exponent
4001 is too small, treat the value as zero. If the exponent is too
4002 large, treat the value as infinity.
4003
4004 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4005
4006 * configure.ac: Add --enable-lmcheck configure option.
4007 * configure: Regenerate.
4008
4009 2012-07-25 Tom Tromey <tromey@redhat.com>
4010
4011 * NEWS: Mention maint info bfds.
4012 * gdb_bfd.c (all_bfds): New global.
4013 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4014 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4015 New functions.
4016
4017 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
4018
4019 * configure.tgt: Add v850*-*-rtems*.
4020
4021 2012-07-25 Tom Tromey <tromey@redhat.com>
4022
4023 * macrotab.c (macro_bcache_str): Remove cast.
4024
4025 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
4026
4027 * linespec.c (linespec_lexer_lex_number): Update comments,
4028 change the return and add check to make sure the input is
4029 the decimal numbers.
4030 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4031 false, call linespec_lexer_lex_string.
4032
4033 2012-07-24 Tom Tromey <tromey@redhat.com>
4034
4035 * symfile.c (symbol_file_add): Don't open BFD twice.
4036
4037 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
4038
4039 * breakpoint.c (create_breakpoint): Store condition for pending
4040 breakpoints.
4041
4042 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4043
4044 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4045 (m68k_return_value): Handle complex types like structures.
4046 (m68k_svr4_return_value): Likewise.
4047
4048 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4049
4050 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4051 parameters to bfd_get_section_name.
4052
4053 2012-07-24 Yao Qi <yao@codesourcery.com>
4054
4055 * cli/cli-setshow.c: Handle case 'var_uinteger'
4056 and 'var_zuninteger' together. Handle case 'var_integer' and
4057 'var_zinteger' together.
4058
4059 2012-07-23 Keith Seitz <keiths@redhat.com>
4060
4061 * linespec.c (convert_linespec_to_sal): Don't add
4062 any symbols to the result vector if symbol_to_sal
4063 returns zero.
4064
4065 2012-07-23 Keith Seitz <keiths@redhat.com>
4066
4067 * linespec.c (decode_objc): Record the function name
4068 in the linespec.
4069
4070 2012-07-23 Tom Tromey <tromey@redhat.com>
4071
4072 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4073 counting.
4074 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4075 (map_vmap): Acquire a reference to the BFD.
4076
4077 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4078
4079 * p-valprint.c (pascal_object_print_value): Replace potentially
4080 unsafe alloca with xmalloc/xfree.
4081 * valops.c (search_struct_method): Likewise.
4082
4083 2012-07-23 Tom Tromey <tromey@redhat.com>
4084
4085 * solib-svr4.c (enable_break): Update.
4086 * bfd-target.h (target_bfd_reopen): Update documentation.
4087
4088 2012-07-23 Tom Tromey <tromey@redhat.com>
4089
4090 * symfile.c (separate_debug_file_exists): Update.
4091 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4092 (reread_symbols): Update.
4093 * elfread.c (build_id_verify): Update.
4094 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4095 bfd_open_maybe_remote.
4096
4097 2012-07-23 Tom Tromey <tromey@redhat.com>
4098
4099 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4100
4101 2012-07-23 Tom Tromey <tromey@redhat.com>
4102
4103 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4104 and 'abfd'.
4105 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4106 and 'abfd'.
4107 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4108 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4109 'abfd'.
4110 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4111 * objfiles.c (allocate_objfile): Acquire a new reference.
4112 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4113 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4114 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4115 a cleanup for 'nbfd'.
4116 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4117 for 'nbfd'.
4118 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4119 make a cleanup for 'abfd'.
4120 (symbol_file_add): Make a BFD cleanup.
4121
4122 2012-07-23 Tom Tromey <tromey@redhat.com>
4123
4124 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4125 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4126 * corelow.c (core_open): Use gdb_bfd_fopen.
4127 * dsrec.c (load_srec): Use gdb_bfd_openr.
4128 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4129 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4130 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4131 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4132 (gdb_bfd_fdopenr): New functions.
4133 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4134 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4135 (gdb_bfd_fdopenr): Declare.
4136 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4137 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4138 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4139 gdb_bfd_openr_next_archived_file.
4140 (macho_check_dsym): Use gdb_bfd_openr.
4141 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4142 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4143 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4144 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4145 gdb_bfd_openr.
4146 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4147 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4148 gdb_bfd_openr_next_archived_file.
4149 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4150 Use gdb_bfd_openr.
4151 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4152 gdb_bfd_openr.
4153 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4154 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4155 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4156 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4157 (symfile_bfd_open): Use gdb_bfd_fopen.
4158 (generic_load): Use gdb_bfd_openr.
4159 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4160
4161 2012-07-23 Tom Tromey <tromey@redhat.com>
4162
4163 * bfd-target.c (target_bfd_reopen): Update.
4164 * cli/cli-dump.c (bfd_openr_with_cleanup)
4165 (bfd_openw_with_cleanup): Update.
4166 * corelow.c (core_open): Update.
4167 * dsrec.c (load_srec): Update.
4168 * exec.c (exec_file_attach): Update.
4169 * gcore.c (create_gcore_bfd): Update.
4170 * gdb_bfd.c (gdb_bfd_ref): Return void.
4171 (gdb_bfd_open): Update.
4172 * gdb_bfd.h (gdb_bfd_ref): Return void.
4173 Update comments.
4174 * jit.c (jit_bfd_try_read_symtab): Update.
4175 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4176 * machoread.c (macho_symfile_read_all_oso): Update.
4177 (macho_check_dsym): Update.
4178 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4179 * remote-m32r-sdi.c (m32r_load): Update.
4180 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4181 * rs6000-nat.c (add_vmap): Update.
4182 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4183 Update.
4184 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4185 * solib-spu.c (spu_bfd_open): Update.
4186 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4187 * spu-linux-nat.c (spu_bfd_open): Update.
4188 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4189 (generic_load): Update.
4190 * windows-nat.c (windows_make_so): Update.
4191
4192 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4193
4194 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4195
4196 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4197
4198 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4199 SIGTRAMP_FRAME unwinding.
4200
4201 2012-07-20 Doug Evans <dje@google.com>
4202
4203 * NEWS: Document new options "set/show use-deprecated-index-sections",
4204 and delete reference to --use-deprecated-index-sections.
4205 * symfile.h (use_deprecated_index_sections): Delete.
4206 * dwarf2read.c (use_deprecated_index_sections): Make static.
4207 (read_index_from_section): Update wording of how to load
4208 deprecated index sections.
4209 (_initialize_dwarf2_read): New options
4210 "set/show use-deprecated-index-sections".
4211 * main.c (captured_main): Delete --use-deprecated-index-sections.
4212
4213 2012-07-20 Pedro Alves <palves@redhat.com>
4214
4215 PR threads/11692
4216 PR gdb/12203
4217
4218 * infrun.c (handle_inferior_event) <new thread>: Don't special
4219 case minus_one_ptid.
4220 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4221 * linux-thread-db.c (thread_get_info_callback): Don't return early
4222 if the thread is zombie.
4223 (thread_from_lwp): Change return type to void. Rewrite stale
4224 comment.
4225 (attach_thread): Don't return early if the thread is zombie,
4226 instead set its "dying" flag.
4227 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4228 (find_new_threads_callback): Don't return early if the thread is
4229 zombie.
4230
4231 2012-07-20 Pedro Alves <palves@redhat.com>
4232
4233 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4234 * target.c (target_wait): Likewise.
4235 (str_comma_list_concat_elem, do_option, target_options_to_string):
4236 New functions.
4237 * target.h (target_options_to_string): Declare.
4238
4239 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4240 Tom Tromey <tromey@redhat.com>
4241
4242 * dwarf2read.c (dwarf_decode_macros)
4243 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4244 DW_MACRO_GNU_transparent_include_alt>: New cases.
4245 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4246 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4247
4248 2012-07-20 Tom Tromey <tromey@redhat.com>
4249
4250 * dwarf2read.c (try_open_dwo_file): Don't call
4251 gdb_bfd_stash_filename.
4252
4253 2012-07-20 Pedro Alves <palves@redhat.com>
4254
4255 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4256 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4257 (i386_process_record): Tweak description comments.
4258
4259 2012-07-20 Pedro Alves <palves@redhat.com>
4260
4261 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4262 (i386_process_record): Use record_read_memory.
4263 * record.c (record_read_memory): New function.
4264 (record_arch_list_add_mem, record_exec_insn): Use
4265 record_read_memory.
4266 * record.h (record_read_memory): Declare.
4267
4268 2012-07-20 Yao Qi <yao@codesourcery.com>
4269
4270 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4271 NULL for xfree.
4272
4273 2012-07-19 Pedro Alves <palves@redhat.com>
4274
4275 * record.c (record_resume): Ask the target beneath to report all
4276 signals.
4277
4278 2012-07-19 Doug Evans <dje@google.com>
4279
4280 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4281 there's no section at address zero.
4282 (dwarf2_record_block_ranges): Ditto.
4283
4284 2012-07-19 Yao Qi <yao@codesourcery.com>
4285
4286 * command.h, remote.c: Fix a typo in comment.
4287
4288 2012-07-19 Tom Tromey <tromey@redhat.com>
4289
4290 PR exp/13206:
4291 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4292 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4293 OP_DECLTYPE>: New cases.
4294 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4295 (type_exp): Add new productions.
4296 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4297 and decltype.
4298 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4299 New case.
4300 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4301 OP_DECLTYPE>: New case.
4302 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4303 New case.
4304 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4305 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4306
4307 2012-07-19 Tom Tromey <tromey@redhat.com>
4308
4309 * c-exp.y (enum token_flags): New.
4310 (struct token) <cxx_only>: Remove.
4311 <flags>: New field.
4312 (tokentab3, tokentab2, ident_tokens): Update.
4313 (lex_one_token): Update. Handle FLAG_SHADOW.
4314
4315 2012-07-19 Tom Tromey <tromey@redhat.com>
4316
4317 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4318 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4319 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4320 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4321 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4322 type_exp production where appropriate.
4323 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4324 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4325 <UNOP_MEMVAL_TYPE>: New case.
4326 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4327 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4328 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4329 <UNOP_MEMVAL_TYPE>: New case.
4330 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4331 UNOP_REINTERPRET_CAST>: Update.
4332 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4333 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4334 UNOP_REINTERPRET_CAST>: Update.
4335 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4336 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4337 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4338 constants.
4339
4340 2012-07-19 Yao Qi <yao@codesourcery.com>
4341 Jan Kratochvil <jan.kratochvil@redhat.com>
4342
4343 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4344 and case 'var_optional_filename' together.
4345 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4346 instead of add_setshow_optional_filename_cmd for setshow command
4347 'args'. Set completer for 'set args'.
4348
4349 2012-07-18 Doug Evans <dje@google.com>
4350
4351 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4352 * common/gdb_vecs.c: New file, contents from utils.c.
4353 * common/host-defs.h: New file, contents from defs.h.
4354 * utils.h: New file, contents from defs.h.
4355 * defs.h: Move all declarations of objects defined in utils.c
4356 to utils.h (except QUIT() and related).
4357 #include "utils.h", "host-defs.h".
4358 * probe.h (probe_p): Move here from gdb_vecs.h.
4359 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4360 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4361 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4362 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4363 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4364 (COMMON_OBS): Add gdb_vecs.o.
4365 (gdb_vecs.o): New rule.
4366
4367 2012-07-18 Keith Seitz <keiths@redhat.com>
4368
4369 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4370 parameter. If non-zero, use SYMNAME as the canonical name
4371 for the SaL.
4372 Update all callers.
4373 (convert_linespec_to_sals): Use add_sal_to_sals for
4374 expressions, too.
4375 (decode_line_full): No need to "fill in missing canonical names"
4376 anymore. Simply make cleanups for the allocated names.
4377
4378 2012-07-18 Keith Seitz <keiths@redhat.com>
4379
4380 * linespec.c (struct linespec): Constify expression,
4381 source_filename, function_name, and label_name.
4382 (symbol_not_found_error): Make all parameters const.
4383 (linespec_parser_delete): No need to check for NULL
4384 when using xfree. Cast const char * to char * for xfree.
4385
4386 2012-07-18 Keith Seitz <keiths@redhat.com>
4387
4388 * breakpoint.c (invalid_thread_id_error): New function.
4389 (find_condition_and_thread): Use invalid_thread_id_error.
4390 (watch_command_1): Likewise.
4391
4392 2012-07-18 Tom Tromey <tromey@redhat.com>
4393
4394 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4395 * contrib/cc-with-tweaks.sh: New file.
4396
4397 2012-07-18 Tom Tromey <tromey@redhat.com>
4398
4399 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4400 (locate_dwz_sections): Recognize .gdb_index.
4401 (create_cus_from_index_list): New function.
4402 (create_cus_from_index): Use it. Handle .dwz data.
4403 (read_index_from_section): New function, extracted from
4404 dwarf2_read_index.
4405 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4406 if needed.
4407
4408 2012-07-18 Tom Tromey <tromey@redhat.com>
4409
4410 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4411 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4412 <is_dwz>: New field.
4413 (struct dwz_file): New.
4414 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4415 (locate_dwz_sections, dwarf2_get_dwz_file)
4416 (get_abbrev_section_for_cu): New functions.
4417 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4418 (read_and_check_type_unit_head): Add abbrev_section argument.
4419 (create_debug_types_hash_table): Update.
4420 (init_cutu_and_read_dies): Use proper abbrev section.
4421 (init_cutu_and_read_dies_no_follow): Likewise.
4422 (set_partial_user): Do nothing if PST==NULL.
4423 (read_comp_units_from_section): New function.
4424 (create_all_comp_units): Use it.
4425 (scan_partial_symbols, partial_die_parent_scope): Update.
4426 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4427 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4428 (find_partial_die): Add offset_in_dwz argument. Update.
4429 (guess_partial_die_structure_name, fixup_partial_die): Update.
4430 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4431 DW_FORM_GNU_strp_alt.
4432 (read_indirect_string_from_dwz): New function.
4433 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4434 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4435 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4436 (follow_die_offset): Add offset_in_dwz argument.
4437 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4438 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4439 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4440 Handle new macro forms.
4441 (dwarf_decode_macros): Update.
4442 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4443 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4444 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4445 (create_debug_types_hash_table): Use correct abbrev section.
4446 (get_debug_line_section): New function.
4447 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4448 (process_full_comp_unit): Pass 'required' argument to
4449 end_symtab_get_static_block.
4450 * buildsym.h (end_symtab_get_static_block): Update.
4451 * buildsym.c (end_symtab_get_static_block): Add 'required'
4452 argument.
4453 (end_symtab, end_expandable_symtab): Update.
4454
4455 2012-07-18 Tom Tromey <tromey@redhat.com>
4456
4457 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4458 (pagesize): Remove.
4459 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4460 (zlib_decompress_section): Remove.
4461 (dwarf2_read_section): Use gdb_bfd_map_section.
4462 (munmap_section_buffer): Remove.
4463 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4464 munmap_section_buffer.
4465 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4466 (struct gdb_bfd_section_data): New.
4467 (free_one_bfd_section): New function.
4468 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4469 (get_section_descriptor, zlib_decompress_section)
4470 (gdb_bfd_map_section): New functions.
4471 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4472
4473 2012-07-18 Tom Tromey <tromey@redhat.com>
4474
4475 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4476
4477 2012-07-18 Tom Tromey <tromey@redhat.com>
4478
4479 * gdb_bfd.c (struct gdb_bfd_data): New.
4480 (gdb_bfd_cache): New global.
4481 (struct gdb_bfd_cache_search): New.
4482 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4483 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4484 * gdb_bfd.h (gdb_bfd_open): Declare.
4485
4486 2012-07-18 Tom Tromey <tromey@redhat.com>
4487
4488 * utils.c (make_cleanup_bfd_unref): Rename from
4489 make_cleanup_bfd_close.
4490 * defs.h (make_cleanup_bfd_unref): Rename from
4491 make_cleanup_bfd_close.
4492 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4493 (bfd_openw_with_cleanup): Update.
4494 * corelow.c (core_open): Update.
4495 * dsrec.c (load_srec): Update.
4496 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4497 * remote-m32r-sdi.c (m32r_load): Update.
4498 * remote-mips.c (mips_load_srec): Update.
4499 (pmon_load_fast): Update.
4500 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4501 Update.
4502 (darwin_bfd_open): Update.
4503 * solib.c (solib_bfd_fopen): Update.
4504 * symfile-mem.c (symbol_file_add_from_memory): Update.
4505 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4506 (symfile_bfd_open): Update.
4507 (generic_load): Update.
4508
4509 2012-07-18 Tom Tromey <tromey@redhat.com>
4510
4511 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4512 (pmon_load_fast): Likewise.
4513 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4514 (m32r_upload_command): Likewise.
4515 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4516 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4517 Use make_cleanup_bfd_close.
4518
4519 2012-07-18 Tom Tromey <tromey@redhat.com>
4520
4521 * symfile.c (symfile_bfd_open): Don't copy name. Call
4522 gdb_bfd_stash_filename.
4523 (load_command): Open the new BFD before freeing the old.
4524 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4525 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4526 Call gdb_bfd_stash_filename.
4527 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4528 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4529 gdb_bfd_stash_filename.
4530 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4531 Free found_pathname.
4532 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4533 gdb_bfd_stash_filename.
4534 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4535 * machoread.c (macho_add_oso_symfile): Call
4536 gdb_bfd_stash_filename.
4537 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4538 gdb_bfd_stash_filename.
4539 (macho_check_dsym): Don't copy filename. Call
4540 gdb_bfd_stash_filename.
4541 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4542 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4543 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4544 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4545 * exec.c (exec_close): Don't free the BFD's filename.
4546 (exec_file_attach): Don't copy the filename. Call
4547 gdb_bfd_stash_filename.
4548 * corelow.c (core_close): Don't free the BFD's filename.
4549 (core_open): Call gdb_bfd_stash_filename.
4550 * corefile.c (reopen_exec_file): Remove #if 0 code.
4551 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4552 pathname.
4553 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4554
4555 2012-07-18 Tom Tromey <tromey@redhat.com>
4556
4557 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4558 gdb_bfd_unref.
4559 (free_dwo_file): Use gdb_bfd_unref.
4560 * cli/cli-dump.c: Include gdb_bfd.h.
4561 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4562 (bfd_openr_with_cleanup): Likewise.
4563 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4564 gdb_bfd_unref.
4565 * utils.c: Include gdb_bfd.h.
4566 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4567 * symfile.c: Include gdb_bfd.h.
4568 (separate_debug_file_exists): Use gdb_bfd_unref.
4569 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4570 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4571 (generic_load): Use gdb_bfd_ref.
4572 (reread_symbols): Use gdb_bfd_unref.
4573 * symfile-mem.c: Include gdb_bfd.h.
4574 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4575 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4576 * solib.c: Include gdb_bfd.h.
4577 (solib_bfd_fopen): Use gdb_bfd_ref.
4578 (solib_bfd_open): Use gdb_bfd_unref.
4579 (free_so_symbols): Use gdb_bfd_unref.
4580 (reload_shared_libraries_1): Use gdb_bfd_unref.
4581 * solib-spu.c: Include gdb_bfd.h.
4582 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4583 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4584 gdb_bfd_unref.
4585 * solib-frv.c: Include gdb_bfd.h.
4586 (enable_break2): Use gdb_bfd_unref.
4587 * solib-dsbt.c: Include gdb_bfd.h.
4588 (enable_break2): Use gdb_bfd_unref.
4589 * solib-darwin.c: Include gdb_bfd.h.
4590 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4591 gdb_bfd_unref.
4592 (darwin_bfd_open): Use gdb_bfd_unref.
4593 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4594 * remote-mips.c: Include gdb_bfd.h.
4595 (mips_load_srec): Use gdb_bfd_ref.
4596 (pmon_load_fast): Use gdb_bfd_ref.
4597 * remote-m32r-sdi.c: Include gdb_bfd.h.
4598 (m32r_load): Use gdb_bfd_ref.
4599 * record.c: Include gdb_bfd.h.
4600 (record_save_cleanups): Use gdb_bfd_unref.
4601 (cmd_record_save): Use gdb_bfd_unref.
4602 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4603 gdb_bfd_unref.
4604 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4605 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4606 * objfiles.c: Include gdb_bfd.h.
4607 (free_objfile): Use gdb_bfd_unref.
4608 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4609 gdb_bfd.c.
4610 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4611 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4612 (macho_check_dsym): Likewise.
4613 * m32r-rom.c: Include gdb_bfd.h.
4614 (m32r_load): Use gdb_bfd_ref.
4615 (m32r_upload_command): Use gdb_bfd_ref.
4616 * jit.c: Include gdb_bfd.h.
4617 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4618 * gdb_bfd.h: New file.
4619 * gdb_bfd.c: New file.
4620 * gcore.c: Include gdb_bfd.h.
4621 (create_gcore_bfd): Use gdb_bfd_ref.
4622 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4623 (gcore_command): Use gdb_bfd_unref.
4624 * exec.c: Include gdb_bfd.h.
4625 (exec_close): Use gdb_bfd_unref.
4626 (exec_close_1): Use gdb_bfd_unref.
4627 (exec_file_attach): Use gdb_bfd_ref.
4628 * elfread.c: Include gdb_bfd.h.
4629 (build_id_verify): Use gdb_bfd_unref.
4630 * dsrec.c: Include gdb_bfd.h.
4631 (load_srec): Use gdb_bfd_ref.
4632 * corelow.c: Include gdb_bfd.h.
4633 (core_close): Use gdb_bfd_unref.
4634 (core_open): Use gdb_bfd_ref.
4635 * bfd-target.c: Include gdb_bfd.h.
4636 (target_bfd_xclose): Use gdb_bfd_unref.
4637 (target_bfd_reopen): Use gdb_bfd_ref.
4638 * Makefile.in (SFILES): Add gdb_bfd.c.
4639 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4640 (COMMON_OBS): Add gdb_bfd.o.
4641
4642 2012-07-18 Keith Seitz <keiths@redhat.com>
4643
4644 * breakpoint.c (find_condition_and_thread): Initialize
4645 TASK and REST.
4646 (create_breakpiont): find_condition_and_thread will now
4647 initialize COND_STRING, THREAD, and REST (and TASK).
4648 (addr_string_to_sals): Likewise.
4649
4650 2012-07-18 Pedro Alves <palves@redhat.com>
4651
4652 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4653 Pull the single step breakpoints out of the target.
4654
4655 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4656
4657 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4658 * stap-probe.c (compile_probe_arg): Likewise.
4659
4660 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4661
4662 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4663 (elf_compile_to_ax): Likewise.
4664 * infrun.c (insert_exception_resume_from_probe): Likewise.
4665 (check_exception_resume): Remove `objfile' variable.
4666 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4667 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4668 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4669 (compare_entries): Rename to...
4670 (compare_probes): ...this. Adjust function to work with
4671 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4672 respectively.
4673 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4674 `VEC (probe_p) *'.
4675 (print_ui_out_info): Adjust argument to be `struct probe *'.
4676 (info_probes_for_ops): Adjust internal computations to use
4677 `VEC (probe_p) *'.
4678 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4679 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4680 gen_info_probes_table_values>: Remove `objfile' argument.
4681 (struct probe) <objfile>: New field.
4682 (find_probe_by_pc): Remove `objfile' argument.
4683 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4684 (stap_get_probe_argument_count): Likewise.
4685 (stap_get_arg): Likewise.
4686 (stap_evaluate_probe_argument): Likewise.
4687 (stap_compile_to_ax): Likewise.
4688 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4689 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4690 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4691 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4692 sym_compile_to_ax>: Likewise.
4693
4694 2012-07-18 Terry Guo <terry.guo@arm.com>
4695
4696 PR 14329
4697 * defs.h (GDB_MI_MSG_WIDTH): New.
4698 * ser_base (ser_base_read_error_fd): New function.
4699 (do_ser_base_readchar): Poll error file descriptor as well as
4700 standard output.
4701 (generic_readchar): Refactor error handling.
4702
4703 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4704
4705 * NEWS: Create a new section for the next release branch.
4706 Rename the section of the current branch, now that it has
4707 been cut.
4708
4709 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4710
4711 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4712 * version.in: Bump version to 7.5.50.20120718-cvs.
4713
4714 2012-07-17 Keith Seitz <keiths@redhat.com>
4715
4716 * linespec.c (linespec_parse_line_offset): Make parameter
4717 const.
4718
4719 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4720
4721 PR 11914
4722 * f-valprint.c (info_common_command): New variable frame_id.
4723 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4724 * printcmd.c (print_variable_and_value): Extend function comment.
4725 Add comment for invalidated FRAME.
4726 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4727 FI form FRAME_ID after each print_frame_local_vars.
4728 (struct print_variable_and_value_data): Change frame to frame_id.
4729 (do_print_variable_and_value): New variable frame, initialize it from
4730 p->frame_id. Add comment for invalidated FRAME.
4731 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4732 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4733 for invalidated FRAME.
4734
4735 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4736 Pedro Alves <palves@redhat.com>
4737
4738 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4739 loop.
4740
4741 2012-07-16 Tom Tromey <tromey@redhat.com>
4742
4743 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4744
4745 2012-07-15 Doug Evans <dje@google.com>
4746
4747 * dwarf2read.c (stmt_list_hash): New struct.
4748 (type_unit_group): Embed "per_cu" member, remove pointer.
4749 New union member "t", move member "tus" into it, all uses updated.
4750 New member "hash", replaces member "line_offset, all uses updated.
4751 (quick_file_names): Replace member "offset" with "hash", all uses
4752 updated.
4753 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4754 (hash_file_name_entry, eq_file_name_entry): Call them.
4755 (hash_type_unit_group, eq_type_unit_group): Ditto.
4756 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4757 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4758 (dw2_get_file_names): Update.
4759 (create_type_unit_group): Replace "per_cu" arg with "cu".
4760 All callers updated. Fix "quick" (.gdb_index) handling.
4761 (get_type_unit_group): Replace "per_cu" arg with "cu".
4762 All callers updated.
4763 (build_type_unit_groups): Don't reset tu_stats.
4764
4765 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4766 "tab_cur_size". Change member "tab" to be a htab_t.
4767 (create_filename_seen_cache): Update.
4768 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4769 (filename_seen): Update.
4770
4771 2012-07-13 Doug Evans <dje@google.com>
4772
4773 * symtab.c (filename_seen): Update comment.
4774
4775 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4776 Doug Evans <dje@google.com>
4777
4778 * buildsym.c (end_symtab_1): Split it to ...
4779 (end_symtab_get_static_block): ... this ...
4780 (end_symtab_from_static_block): ... and this function.
4781 (end_symtab, end_expandable_symtab): Call them.
4782 * buildsym.h (end_symtab_get_static_block)
4783 (end_symtab_from_static_block): New declarations.
4784 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4785 Set its valid CU ranges.
4786
4787 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4788
4789 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4790 DW_OP_GNU_parameter_ref.
4791
4792 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4793
4794 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4795 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4796
4797 2012-07-13 Doug Evans <dje@google.com>
4798
4799 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4800 (filename_seen_cache): New struct.
4801 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4802 (create_filename_seen_cache): New function.
4803 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4804 (filename_seen): Delete arg "first". New arg "cache". All callers
4805 updated.
4806 (output_source_filename_data): New struct.
4807 (output_source_filename): Delete arg "first". New arg "data".
4808 All callers updated.
4809 (sources_info): Delete local "first". New locals "data", "cleanups".
4810 Rewrite to use filename_seen_cache.
4811 (add_partial_filename_data): Delete member "first". New member
4812 "filename_seen_cache". All uses updated.
4813 (make_source_files_completion_list): Rewrite to use
4814 filename_seen_cache.
4815
4816 2012-07-12 Doug Evans <dje@google.com>
4817
4818 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4819
4820 2012-07-10 Doug Evans <dje@google.com>
4821
4822 PR gdb/13498
4823 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4824 all_type_unit_groups, type_unit_groups, tu_stats.
4825 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4826 All uses updated. Add type_unit_group to union "s".
4827 (type_unit_group): New struct.
4828 (IS_TYPE_UNIT_GROUP): New macro.
4829 (abbrev_table): Delete unused member "section".
4830 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4831 (dw2_get_cu): Assert not used with type_unit_group.
4832 (dw2_get_primary_cu): New function.
4833 (dw2_build_type_unit_groups_reader): New function.
4834 (dw2_build_type_unit_groups): New function.
4835 (dw2_get_file_names): Assert not called on type units.
4836 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4837 Redo loop to iterate over type unit groups instead of type units.
4838 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4839 (read_abbrev_offset): New function.
4840 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4841 updated.
4842 (create_partial_symtab): New function.
4843 (process_psymtab_comp_unit_reader): Assert not used with type units.
4844 Call create_partial_symtab.
4845 (process_psymtab_type_unit): Delete.
4846 (hash_type_unit_group, eq_type_unit_group): New functions.
4847 (allocate_type_unit_groups_table): New function.
4848 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4849 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4850 (create_type_unit_group, get_type_unit_group): New functions.
4851 (tu_abbrev_offset): New struct.
4852 (sort_tu_by_abbrev_offset): New function.
4853 (add_type_unit_group_to_table): New function.
4854 (build_type_unit_groups): New function.
4855 (build_type_psymtabs_reader): New function.
4856 (build_type_psymtab_dependencies): New function.
4857 (build_type_psymtabs): Rewrite.
4858 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4859 is seen in a type unit.
4860 (process_queue): Move symtab expansion debugging printfs here.
4861 Call process_full_type_unit for type units.
4862 (compute_symtab_includes): Assert not called for type units.
4863 (process_cu_includes): Don't call compute_symtab_includes for
4864 type units.
4865 (process_full_type_unit): New function.
4866 (process_imported_unit_die): Flag an error if called for type units.
4867 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4868 updated. Assert not called for type units.
4869 (read_file_scope): Call dwarf2_start_symtab.
4870 (setup_type_unit_groups): New function.
4871 (read_type_unit_scope): Rewrite.
4872 (abbrev_table_read_table): Initialize abbrev_table->offset.
4873 (abbrev_table_free_cleanup): New function.
4874 (dwarf2_start_symtab): New function.
4875 (load_full_type_unit): Assert not called for type unit groups.
4876 * buildsym.c (finish_block_internal): New arg "expandable".
4877 All callers updated.
4878 (start_symtab): Move most contents to ...
4879 (restart_symtab): ... here. New function.
4880 (reset_symtab_globals): New function.
4881 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4882 Call reset_symtab_globals.
4883 (end_symtab, end_expandable_symtab): New functions.
4884 (set_missing_symtab, augment_type_symtab): New functions.
4885 * buildsym.h (end_expandable_symtab): Declare.
4886 (augment_type_symtab, restart_symtab): Declare.
4887 * psympriv.h (struct partial_symtab): New member "anonymous".
4888 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4889 anonymous psymtabs.
4890 (read_psymtabs_with_filename): Ditto.
4891 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4892 (expand_symtabs_matching_via_partial): Ditto.
4893 (dump_psymtab): Update.
4894 * dictionary.c (dict_add_pending): New function.
4895 * dictionary.h (dict_add_pending): Declare.
4896
4897 2012-07-09 Doug Evans <dje@google.com>
4898
4899 * buildsym.c (start_subfile): Remove unnecessary check for
4900 name == NULL.
4901
4902 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4903
4904 * dwarf2read.c (load_full_type_unit): Simplify.
4905
4906 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4907 to struct signatured_type **. All uses updated.
4908
4909 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4910 All callers updated.
4911
4912 2012-07-09 Tom Tromey <tromey@redhat.com>
4913
4914 * c-exp.y (check_parameter_typelist): New function.
4915 (parameter_typelist): Call it.
4916 * eval.c (make_params): Handle '(void)' case.
4917 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4918 '(void)' case.
4919
4920 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4921
4922 * common/linux-ptrace.c: Include gdb_assert.h.
4923 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4924 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4925 stdint.h.
4926 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4927 functions.
4928 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4929 * linux-nat.c (linux_child_post_attach)
4930 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4931
4932 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4933
4934 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4935 nptl <2.7 bug workaround for core files.
4936
4937 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4938
4939 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4940 clearing.
4941 (save_siginfo): Remove.
4942 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4943 call.
4944 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4945 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4946 * linux-nat.h (struct lwp_info): Remove field siginfo.
4947
4948 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4949
4950 Code cleanup for the next patch.
4951 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4952 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4953 call for it.
4954 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4955 (ia64_linux_stopped_data_address):
4956 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4957 the return value.
4958 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4959 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4960 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4961 call for it.
4962
4963 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4964
4965 PR 14321
4966 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4967 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4968
4969 2012-07-06 Tom Tromey <tromey@redhat.com>
4970
4971 * c-exp.y (DOTDOTDOT): New token.
4972 (func_mod, exp): Use parameter_typelist.
4973 (parameter_typelist): New production.
4974 (tokentab3): Add "..." token.
4975 * eval.c (make_params): Handle varargs.
4976 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4977 varargs.
4978
4979 2012-07-06 Tom Tromey <tromey@redhat.com>
4980
4981 PR exp/9608:
4982 * c-exp.y (%union) <tvec>: Change type.
4983 (func_mod): Now uses <tvec> type.
4984 (exp): Update for tvec change.
4985 (direct_abs_decl): Push the typelist.
4986 (func_mod): Return a typelist.
4987 (nonempty_typelist): Update for tvec change.
4988 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4989 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4990 * parse.c (pop_type_list): New function.
4991 (push_typelist): New function.
4992 (follow_types): Handle tp_function_with_arguments.
4993 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4994 (enum type_pieces) <tp_function_with_arguments>: New constant.
4995 (union type_stack_elt) <typelist_val>: New field.
4996 (push_typelist): Declare.
4997
4998 2012-07-06 Tom Tromey <tromey@redhat.com>
4999
5000 * c-exp.y (%union) <type_stack>: New field.
5001 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5002 (ptr_operator_ts): New production.
5003 (ptype): Update.
5004 * parse.c (type_stack_reserve): New function.
5005 (check_type_stack_depth): Use it.
5006 (pop_type_stack, append_type_stack, push_type_stack)
5007 (get_type_stack, type_stack_cleanup): New functions.
5008 (follow_types): Handle tp_type_stack.
5009 (_initialize_parse): Simplify initialization.
5010 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5011 constant.
5012 (union type_stack_elt) <stack_val>: New field.
5013 (get_type_stack, append_type_stack, push_type_stack)
5014 (type_stack_cleanup): Declare.
5015
5016 2012-07-06 Tom Tromey <tromey@redhat.com>
5017
5018 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5019 Remove.
5020 (struct type_stack): New.
5021 * parse.c (type_stack, type_stack_size, type_stack_depth):
5022 Remove.
5023 (type_stack): New global.
5024 (parse_exp_in_context, check_type_stack_depth)
5025 (insert_into_type_stack, insert_type, push_type, push_type_int)
5026 (insert_type_address_space, pop_type, pop_type_int)
5027 (_initialize_parse): Update.
5028
5029 2012-07-06 Tom Tromey <tromey@redhat.com>
5030
5031 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5032 Remove %type.
5033
5034 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5035
5036 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5037
5038 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5039 Jan Kratochvil <jan.kratochvil@redhat.com>
5040
5041 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5042 alloca with xmalloc/xfree.
5043
5044 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5045
5046 * MAINTAINERS (Write After Approval): Add myself to the list.
5047
5048 2012-07-05 Doug Evans <dje@google.com>
5049
5050 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5051
5052 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5053
5054 * ax-gdb.c (cli/cli-utils.h): New include.
5055 (linespec.h): Ditto.
5056 (agent_eval_command_one): New function.
5057 (agent_command_1): Ditto.
5058 (agent_command): Call function agent_command_1.
5059 (agent_eval_command): Ditto.
5060 (_initialize_ax_gdb): Change help for "maint agent"
5061 and "maint agent-eval".
5062
5063 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5064
5065 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5066 * cli/cli-utils.c (check_for_argument): New function.
5067 * cli/cli-utils.h (check_for_argument): Ditto.
5068
5069 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5070
5071 * NEWS: Mention x32 ABI support.
5072
5073 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5074
5075 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5076 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5077
5078 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5079 and pc_regnum_from_eax to -1. Update SP regnum from
5080 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5081 needed.
5082
5083 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5084 pc_regnum_from_eax.
5085
5086 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5087
5088 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5089 * dwarf2expr.h: Include gdbtypes.h.
5090 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5091 these forward declarations.
5092 (cu_offset, sect_offset): Move these ...
5093 * gdbtypes.h: Remove include dwarf2expr.h.
5094 (cu_offset, sect_offset): ... here.
5095
5096 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5097
5098 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5099 (amd64_linux_sigtramp_code): This.
5100 (amd64_x32_linux_sigtramp_code): New.
5101 (LINUX_SIGTRAMP_LEN): Updated.
5102 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5103
5104 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5105
5106 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5107
5108 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5109
5110 * config.in: Regenerate.
5111 * configure: Regenerate.
5112 * configure.ac: Remove check for gnu/libc-version.h.
5113 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5114 gnu/libc-version.h.
5115 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5116 variables libc_version, libc_major and libc_minor. Replace sscanf by
5117 inferior_has_bug. Extend the comment.
5118
5119 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5120
5121 * linux-thread-db.c (inferior_has_bug): New function.
5122 (thread_db_find_new_threads_silently): Return boolean as checked by
5123 inferior_has_bug, describe it in the comments.
5124 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5125 earlier. Abort the initialization if it returned non-zero.
5126 (thread_db_new_objfile): Exclude debug files.
5127 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5128 if UNTIL_NO_NEW,
5129
5130 2012-07-02 Doug Evans <dje@google.com>
5131
5132 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5133 related to queue management.
5134
5135 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5136 instead of "debug dwarf2-die" in debugging printfs.
5137 (create_debug_info_hash_table_reader): Ditto.
5138 (create_debug_info_hash_table): Ditto.
5139 (init_dwo_file): Ditto.
5140 (init_cutu_and_read_dies): Add debugging printf.
5141 (init_cutu_and_read_dies_no_follow): Ditto.
5142 (process_psymtab_comp_unit_reader): Ditto.
5143
5144 2012-07-02 Stan Shebs <stan@codesourcery.com>
5145
5146 Add target-side support for dynamic printf.
5147 * NEWS: Mention the additional style.
5148 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5149 (struct bp_location): New field cmd_bytecode.
5150 * breakpoint.c: Include format.h.
5151 (disconnected_dprintf): New global.
5152 (parse_cmd_to_aexpr): New function.
5153 (build_target_command_list): New function.
5154 (insert_bp_location): Call it.
5155 (remove_breakpoints_pid): Skip dprintf breakpoints.
5156 (print_one_breakpoint_location): Ditto.
5157 (dprintf_style_agent): New global.
5158 (dprintf_style_enums): Add dprintf_style_agent.
5159 (update_dprintf_command_list): Add agent case.
5160 (agent_printf_command): New function.
5161 (_initialize_breakpoint): Add new commands.
5162 * common/ax.def (printf): New bytecode.
5163 * ax.h (ax_string): Declare.
5164 * ax-gdb.h (gen_printf): Declare.
5165 * ax-gdb.c: Include cli-utils.h, format.h.
5166 (gen_printf): New function.
5167 (maint_agent_print_command): New function.
5168 (_initialize_ax_gdb): Add maint agent-printf command.
5169 * ax-general.c (ax_string): New function.
5170 (ax_print): Add printf disassembly.
5171 * Makefile.in (SFILES): Add format.c
5172 (COMMON_OBS): Add format.o.
5173 * common/format.h: New file.
5174 * common/format.c: New file.
5175 * printcmd.c: Include format.h.
5176 (ui_printf): Call parse_format_string.
5177 * remote.c (remote_state): New field breakpoint_commands.
5178 (PACKET_BreakpointCommands): New enum.
5179 (remote_breakpoint_commands_feature): New function.
5180 (remote_protocol_features): Add new BreakpointCommands entry.
5181 (remote_can_run_breakpoint_commands): New function.
5182 (remote_add_target_side_commands): New function.
5183 (remote_insert_breakpoint): Call it.
5184 (remote_insert_hw_breakpoint): Ditto.
5185 (_initialize_remote): Add new packet configuration for
5186 target-side breakpoint commands.
5187 * target.h (struct target_ops): New field
5188 to_can_run_breakpoint_commands.
5189 (target_can_run_breakpoint_commands): New macro.
5190 * target.c (update_current_target): Handle
5191 to_can_run_breakpoint_commands.
5192
5193 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5194
5195 Execute -ix and -iex only after system and user gdbinit files.
5196 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5197 processing down after gdbinit files.
5198
5199 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5200
5201 Add fnmatch-gnu module.
5202 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5203 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5204 * gnulib/aclocal.m4: Regenerate.
5205 * gnulib/config.in: Regenerate.
5206 * gnulib/configure: Regenerate.
5207 * gnulib/import/dummy.c: Remove.
5208 * gnulib/import/Makefile.am: Regenerate.
5209 * gnulib/import/Makefile.in: Likewise.
5210 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5211 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5212 * gnulib/import/alloca.c: New file.
5213 * gnulib/import/alloca.in.h: Likewise.
5214 * gnulib/import/config.charset: Likewise.
5215 * gnulib/import/fnmatch.c: Likewise.
5216 * gnulib/import/fnmatch.in.h: Likewise.
5217 * gnulib/import/fnmatch_loop.c: Likewise.
5218 * gnulib/import/localcharset.c: Likewise.
5219 * gnulib/import/localcharset.h: Likewise.
5220 * gnulib/import/m4/alloca.m4: Likewise.
5221 * gnulib/import/m4/codeset.m4: Likewise.
5222 * gnulib/import/m4/configmake.m4: Likewise.
5223 * gnulib/import/m4/fcntl-o.m4: Likewise.
5224 * gnulib/import/m4/fnmatch.m4: Likewise.
5225 * gnulib/import/m4/glibc21.m4: Likewise.
5226 * gnulib/import/m4/localcharset.m4: Likewise.
5227 * gnulib/import/m4/locale-fr.m4: Likewise.
5228 * gnulib/import/m4/locale-ja.m4: Likewise.
5229 * gnulib/import/m4/locale-zh.m4: Likewise.
5230 * gnulib/import/m4/mbrtowc.m4: Likewise.
5231 * gnulib/import/m4/mbsinit.m4: Likewise.
5232 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5233 * gnulib/import/m4/mbstate_t.m4: Likewise.
5234 * gnulib/import/m4/stdbool.m4: Likewise.
5235 * gnulib/import/m4/wchar_h.m4: Likewise.
5236 * gnulib/import/m4/wctype_h.m4: Likewise.
5237 * gnulib/import/m4/wint_t.m4: Likewise.
5238 * gnulib/import/mbrtowc.c: Likewise.
5239 * gnulib/import/mbsinit.c: Likewise.
5240 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5241 * gnulib/import/mbsrtowcs-state.c: Likewise.
5242 * gnulib/import/mbsrtowcs.c: Likewise.
5243 * gnulib/import/ref-add.sin: Likewise.
5244 * gnulib/import/ref-del.sin: Likewise.
5245 * gnulib/import/stdbool.in.h: Likewise.
5246 * gnulib/import/streq.h: Likewise.
5247 * gnulib/import/strnlen1.c: Likewise.
5248 * gnulib/import/strnlen1.h: Likewise.
5249 * gnulib/import/verify.h: Likewise.
5250 * gnulib/import/wchar.in.h: Likewise.
5251 * gnulib/import/wctype.in.h: Likewise.
5252
5253 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5254
5255 Support shell wildcards for 'set auto-load safe-path'.
5256 * auto-load.c: Include fnmatch.h.
5257 (filename_is_in_dir): Rename to ...
5258 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5259 it. Update function comment. Rename dir_len to pattern_len. New
5260 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5261 messages. Use gdb_filename_fnmatch.
5262 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5263 pattern.
5264 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5265 * defs.h (gdb_filename_fnmatch): New declaration.
5266 * utils.c: Include fnmatch.h.
5267 (gdb_filename_fnmatch): New function.
5268
5269 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5270
5271 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5272 `-probe' and `-probe-stap' options.
5273
5274 2012-07-01 Yao Qi <yao@codesourcery.com>
5275
5276 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5277 always_inserted_off, and always_inserted_enums.
5278 Change always_inserted_mode's type to 'enum auto_boolean'.
5279 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5280 callers.
5281 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5282 of add_setshow_enum_cmd.
5283 * infrun.c: Remove can_use_displaced_stepping_auto,
5284 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5285 can_use_displaced_stepping_enum.
5286 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5287 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5288 callers.
5289 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5290 add_setshow_enum_cmd.
5291
5292 2012-06-30 Doug Evans <dje@google.com>
5293
5294 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5295 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5296 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5297
5298 2012-06-29 Doug Evans <dje@google.com>
5299
5300 * linespec.c: #include "stack.h".
5301 (decode_line_with_current_source): Moved here from symtab.c and
5302 renamed from decode_line_spec. All callers updated.
5303 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5304 renamed from decode_line_spec_1. All callers updated.
5305 * linespec.h (decode_line_with_current_source): Move declaration here
5306 from symtab.h and renamed from decode_line_spec.
5307 (decode_line_with_last_displayed): Move declaration here from symtab.h
5308 and renamed from decode_line_spec_1.
5309 * macrocmd.c: #include "linespec.h".
5310 * symtab.c: Remove #include "linespec.h".
5311
5312 2012-06-28 Doug Evans <dje@google.com>
5313
5314 * dwarf2read.c (get_cu_length): New function.
5315 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5316 (create_debug_types_hash_table): Ditto.
5317 (init_cutu_and_read_dies): Ditto.
5318 (init_cutu_and_read_dies_no_follow): Ditto.
5319
5320 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5321
5322 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5323 (struct abbrev_table): Define.
5324 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5325 abbrev_table.
5326 (init_cutu_and_read_dies): Update.
5327 (abbrev_table_alloc_abbrev): New function. Replaces
5328 dwarf_alloc_abbrev. All callers updated.
5329 (abbrev_table_add_abbrev): New function.
5330 (abbrev_table_lookup_abbrev): New function. Replaces
5331 dwarf2_lookup_abbrev. All callers updated.
5332 (abbrev_table_read_table): New function. Contents moved here from
5333 dwarf2_read_abbrevs.
5334 (dwarf2_read_abbrevs): Call it.
5335 (abbrev_table_free): New function.
5336 (dwarf2_free_abbrev_table): Call it.
5337
5338 2012-06-28 Stan Shebs <stan@codesourcery.com>
5339
5340 * osdata.c (info_osdata_command): Filter out "Title" columns
5341 from non-MI uses.
5342 * common/linux-osdata.c (struct osdata_type): Add title field.
5343 (osdata_table): Add titles to each entry.
5344 (linux_command_xfer_osdata): Add a column for title data.
5345
5346 2012-06-28 Stan Shebs <stan@codesourcery.com>
5347
5348 Make logging work for MI.
5349 * NEWS: Mention it.
5350 * interps.h (interp_set_logging_ftype): New typedef.
5351 (struct interp_procs): New field set_logging_proc.
5352 (current_interp_set_logging): Declare.
5353 * interps.c (current_interp_set_logging): New function.
5354 * cli/cli-logging.c: Include interps.h.
5355 (set_logging_redirect): Call current_interp_set_logging.
5356 (pop_output_files): Ditto.
5357 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5358 * mi/mi-console.h (mi_console_set_raw): Declare.
5359 * mi/mi-console.c (mi_console_set_raw): New function.
5360 * mi/mi-interp.c (saved_raw_stdout): New global.
5361 (mi_set_logging): New function.
5362 (_initialize_mi_interp): Add it to interp procs.
5363
5364 2012-06-28 Doug Evans <dje@google.com>
5365
5366 * symtab.c (lookup_symbol_aux_objfile): Use
5367 ALL_OBJFILE_PRIMARY_SYMTABS.
5368
5369 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5370
5371 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5372
5373 * common/buffer.c: Include inttypes.h and stdint.h.
5374 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5375
5376 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5377 Pedro Alves <palves@redhat.com>
5378
5379 * gdbthread.h (ALL_THREADS): New macro.
5380 (thread_list): Declare.
5381 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5382 going, but instead fall through to the stepping handling.
5383 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5384 the passed in signal. Adjust debug output.
5385 (resume_callback): Rename to ...
5386 (linux_nat_resume_callback): ... this. Pass the thread's last
5387 stop signal, if in "pass" state.
5388 (linux_nat_resume): Adjust to rename.
5389 (stop_wait_callback): New assertion. Don't respawn signals;
5390 instead let the LWP remain with SIGNALLED set.
5391 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5392 * remote.c (append_pending_thread_resumptions): New.
5393 (remote_vcont_resume): Call it.
5394 * target.h (target_resume): Extend comment.
5395
5396 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5397
5398 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5399
5400 2012-06-27 Doug Evans <dje@google.com>
5401
5402 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5403 Delete have_addr_base, unused. All uses updated.
5404 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5405 (dwarf2_get_pc_bounds): Add ranges_base.
5406 (dwarf2_record_block_ranges): Ditto.
5407
5408 2012-06-27 Tom Tromey <tromey@redhat.com>
5409
5410 PR macros/7961:
5411 * varobj.c (varobj_create): Update.
5412 (varobj_set_value): Update.
5413 * tracepoint.c (validate_actionline): Update.
5414 (encode_actions_1): Update.
5415 * parse.c (parse_exp_1): Add 'pc' argument.
5416 (parse_exp_in_context): Add 'pc' argument. Change how
5417 expression_context_pc is set.
5418 (parse_expression): Update.
5419 (parse_field_expression): Update.
5420 * expression.h (parse_exp_1): Update.
5421 * eval.c (parse_to_comma_and_eval): Update.
5422 * breakpoint.c (set_breakpoint_condition): Update.
5423 (update_watchpoint): Update.
5424 (init_breakpoint_sal): Update
5425 (find_condition_and_thread): Update.
5426 (watch_command_1): Update.
5427 (update_breakpoint_locations): Update.
5428 * ada-lang.c (ada_read_renaming_var_value): Update.
5429 (create_excep_cond_exprs): Update.
5430
5431 2012-06-27 Doug Evans <dje@google.com>
5432
5433 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5434 type units.
5435
5436 2012-06-26 Doug Evans <dje@google.com>
5437
5438 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5439 prototype.
5440 (error_check_comp_unit_head): New arg abbrev_section. All callers
5441 updated.
5442 (read_and_check_comp_unit_head): Ditto.
5443 (read_and_check_type_unit_head): Ditto.
5444
5445 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5446
5447 New attribute 'last' for gdb.Symtab_and_line.
5448 * NEWS (Python Scripting): Add entry about the new attribute.
5449 * python/py-symtab.c (salpy_get_last): New function which
5450 implements the get method for the 'last' attribute of
5451 gdb.Symtab_and_line.
5452 (sal_object_getset): Add entry for the 'last' attribute.
5453
5454 2012-06-26 Doug Evans <dje@google.com>
5455
5456 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5457 (dwo_sections): Add macinfo, macro.
5458 (dwarf2_locate_dwo_sections): Watch for macro sections.
5459 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5460 All callers updated. Handle DWO files.
5461
5462 * NEWS: Mention new options "set debug dwarf2-read" and
5463 "set debug symtab-create".
5464 * dwarf2read.c (dwarf2_read_debug): New static global.
5465 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5466 (process_queue): Ditto.
5467 (process_full_comp_unit): Ditto.
5468 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5469 * elfread.c (elf_symfile_read): Add debugging printf.
5470 * minsyms.c (install_minimal_symbols): Ditto.
5471 * psymtab.c (allocate_psymtab): Ditto.
5472 * symfile.c (allocate_symtab): Ditto.
5473 * symtab.c (symtab_create_debug): New global.
5474 (_initialize_symtab): Add new option "set debug symtab-create".
5475 * symtab.h (symtab_create_debug): Declare.
5476
5477 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5478 (lookup_dwo_type_unit): Ditto.
5479
5480 2012-06-26 Roland McGrath <roland@hack.frob.com>
5481 H.J. Lu <hongjiu.lu@intel.com>
5482
5483 * amd64-linux-nat.c: Include <sys/user.h>.
5484 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5485 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5486 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5487
5488 * configure.ac: Check if the fs_base and gs_base members of
5489 `struct user_regs_struct' exist.
5490 * config.in: Regenerated.
5491 * configure: Likewise.
5492
5493 2012-06-25 Michael Eager <eager@eagercon.com>
5494
5495 PR python/14291
5496 * python/python.c (gdbpy_write): Check for interrupted output.
5497
5498 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5499
5500 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5501 register as a stack alignment in ARM mode.
5502
5503 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5504
5505 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5506 * gnulib/config.in: Regenerate.
5507 * gnulib/configure: Likewise.
5508 * gnulib/import/m4/extensions.m4: Update it.
5509 * gnulib/import/m4/gnulib-common.m4: Likewise.
5510 * gnulib/import/m4/memmem.m4: Likewise.
5511 * gnulib/import/m4/mmap-anon.m4: Likewise.
5512 * gnulib/import/m4/multiarch.m4: Likewise.
5513 * gnulib/import/stdint.in.h: Likewise.
5514
5515 2012-06-24 Yao Qi <yao@codesourcery.com>
5516
5517 * corefile.c (write_memory_with_notification): New.
5518 * gdbcore.h: Declare write_memory_with_notification.
5519 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5520 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5521 * valops.c (value_assign): Likewise.
5522 * python/py-inferior.c (infpy_write_memory): Call
5523 'write_memory_with_notification'.
5524
5525 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5526
5527 * cc-with-index.sh: Use also -ex "set auto-load no".
5528
5529 2012-06-23 Doug Evans <dje@google.com>
5530
5531 PR 14125
5532 * NEWS: Document additions to .gdb_index.
5533 * dwarf2read.c: #include "gdb/gdb-index.h".
5534 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5535 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5536 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5537 (dwarf2_read_index): Recognize version 7.
5538 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5539 block_kind, domain): All callers updated.
5540 (dw2_find_symbol_file): Handle new index CU values.
5541 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5542 (add_index_entry): New args is_static, kind. All callers updated.
5543 (offset_type_compare, uniquify_cu_indices): New functions
5544 (symbol_kind): New function.
5545 (write_psymtabs_to_index): Remove duplicate CU values.
5546 (write_psymtabs_to_index): Write .gdb_index version 7.
5547
5548 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5549
5550 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5551 * configure: Regenerate.
5552
5553 2012-06-20 Yao Qi <yao@codesourcery.com>
5554
5555 * python/py-inferior.c: Update comments of infpy_read_memory
5556 and infpy_write_memory.
5557
5558 2012-06-19 Tom Tromey <tromey@redhat.com>
5559
5560 PR exp/9514:
5561 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5562 (push_type_address_space): Remove.
5563 * parse.c (insert_into_type_stack): New function.
5564 (insert_type): Likewise.
5565 (insert_type_address_space): Rename from push_type_address_space.
5566 Insert tp_space_identifier.
5567 * c-exp.y (ptr_operator): New production.
5568 (abs_decl): Use ptr_operator.
5569 (space_identifier): Call insert_type_address_space.
5570 (ptype): Don't use const_or_volatile_or_space_identifier.
5571 (const_or_volatile_noopt): Call insert_type.
5572 (conversion_type_id, conversion_declarator): New productions.
5573 (operator): Use conversion_type_id.
5574
5575 2012-06-18 Doug Evans <dje@google.com>
5576
5577 * symtab.h (minimal_symbol): New member created_by_gdb.
5578 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5579 created by gdb.
5580 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5581 (search_symbols): Call it instead of lookup_symbol.
5582 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5583
5584 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5585 Adjust address for DW_OP_GNU_addr_index.
5586 * dwarf2expr.h (dwarf_expr_context): Update comment.
5587 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5588 all callers updated. Handle TLS vars described with
5589 DW_OP_GNU_const_index.
5590 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5591 and DW_OP_GNU_const_index.
5592 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5593
5594 * block.c (find_block_in_blockvector): Make explicit the fact that we
5595 ignore GLOBAL_BLOCK.
5596
5597 2012-06-18 Tom Tromey <tromey@redhat.com>
5598
5599 * c-exp.y (operator): Remove trailing space after "delete" and
5600 "delete[]".
5601
5602 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5603 Jan Kratochvil <jan.kratochvil@redhat.com>
5604
5605 Switch i386 and derived targets to ON_STACK.
5606 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5607 (amd64_dicos_init_abi): Remove its installment.
5608 * dicos-tdep.c (dicos_init_abi): Remove the
5609 set_gdbarch_call_dummy_location call. Update the comment here.
5610 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5611 (i386_dicos_init_abi): Remove its installment.
5612 * i386-tdep.c (i386_push_dummy_code): New function.
5613 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5614 i386_push_dummy_code.
5615
5616 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5617
5618 Remove stale dummy frames.
5619 * breakpoint.c: Include dummy-frame.h.
5620 (longjmp_breakpoint_ops): New variable.
5621 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5622 bp_longjmp_call_dummy.
5623 (bpstat_what, bptype_string, print_one_breakpoint_location)
5624 (init_bp_location): Support bp_longjmp_call_dummy.
5625 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5626 (set_longjmp_breakpoint_for_call_dummy)
5627 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5628 functions.
5629 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5630 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5631 FIXME comment and extend the other comment for bp_call_dummy.
5632 (set_longjmp_breakpoint_for_call_dummy)
5633 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5634 * dummy-frame.c: Include gdbthread.h.
5635 (pop_dummy_frame_bpt): New function.
5636 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5637 (dummy_frame_discard): New function.
5638 (cleanup_dummy_frames): Update the comment about longjmps.
5639 * dummy-frame.h (dummy_frame_discard): New declaration.
5640 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5641 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5642 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5643 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5644 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5645 keep_going if IS_LONGJMP and there is no other reason to stop.
5646
5647 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5648
5649 * remote-sim.c (sim_command_completer): Initialize
5650 variable 'result'.
5651
5652 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5653
5654 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5655 * dwarf2loc.c (call_site_parameter_matches): Support
5656 CALL_SITE_PARAMETER_PARAM_OFFSET.
5657 (needs_dwarf_reg_entry_value): Push stub value.
5658 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5659 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5660 * gdbtypes.h (enum call_site_parameter_kind): New item
5661 CALL_SITE_PARAMETER_PARAM_OFFSET.
5662 (struct call_site.parameter.u): New field param_offset.
5663
5664 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5665
5666 Code cleanup: Generalize call_site.parameter key.
5667 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5668 variable dwarf_reg. New variable kind_u. Update parameters to
5669 push_dwarf_reg_entry_value.
5670 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5671 * dwarf2expr.h (enum call_site_parameter_kind)
5672 (union call_site_parameter_u): Forward declarations.
5673 (struct dwarf_expr_context_funcs): Update parameters and their
5674 description for push_dwarf_reg_entry_value.
5675 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5676 * dwarf2loc.c (call_site_parameter_matches): New function.
5677 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5678 description. Use call_site_parameter_matches.
5679 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5680 Update parameters and their description.
5681 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5682 New variable kind_u. Adjust the caller for updated parameters.
5683 (needs_dwarf_reg_entry_value): Update parameters.
5684 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5685 instead of attr. Update for the changed fields of struct
5686 call_site_parameter.
5687 * gdbtypes.h: Include dwarf2expr.h.
5688 (enum call_site_parameter_kind): New.
5689 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5690 fb_offset into new union u.
5691
5692 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5693
5694 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5695 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5696 for x32.
5697
5698 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5699
5700 * amd64-linux-nat.c (compat_x32_clock_t): New.
5701 (compat_x32_siginfo_t): Likewise.
5702 (compat_x32_siginfo_from_siginfo): Likewise.
5703 (siginfo_from_compat_x32_siginfo): Likewise.
5704 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5705 and siginfo_from_compat_x32_siginfo for x32.
5706
5707 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5708
5709 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5710
5711 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5712
5713 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5714 instead of gdbarch_ptr_bit.
5715 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5716 (amd64_supply_native_gregset): Likewise.
5717 (amd64_collect_native_gregset): Likewise.
5718 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5719 (amd64_supply_xsave): Likewise.
5720 (amd64_collect_fxsave): Likewise.
5721 (amd64_collect_xsave): Likewise.
5722
5723 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5724
5725 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5726 (amd64_linux_read_description): Check DS segment register for
5727 x32 process.
5728
5729 2012-06-15 Tom Tromey <tromey@redhat.com>
5730
5731 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5732 init_cutu_and_read_dies.
5733
5734 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5735
5736 * MAINTAINERS (Write After Approval): Add myself to the list.
5737
5738 2012-06-15 Tom Tromey <tromey@redhat.com>
5739
5740 * valops.c (value_find_oload_method_list): Now static.
5741 * value.h (value_find_oload_method_list): Don't declare.
5742
5743 2012-06-15 Tom Tromey <tromey@redhat.com>
5744
5745 * valops.c (find_overload_match): Use value_ind.
5746
5747 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5748
5749 * infrun.c (handle_inferior_event): Correct indentation.
5750
5751 2012-06-14 Doug Evans <dje@google.com>
5752
5753 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5754 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5755 All uses updated.
5756 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5757 updated. Handle DEBUG_LOC_START_LENGTH.
5758 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5759 (loclist_describe_location): Ditto.
5760
5761 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5762
5763 PR backtrace/13866
5764 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5765 after hiding inline functions.
5766
5767 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5768
5769 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5770 _initialize_inf_ttrace.
5771
5772 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5773
5774 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5775 _initialize_hppa_hpux_nat.
5776
5777 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5778
5779 * remote-sim.c (sim_command_completer): Change type of return
5780 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5781
5782 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5783 Jan Kratochvil <jan.kratochvil@redhat.com>
5784
5785 PR tdep/14222
5786 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5787 stack on a 16-byte boundary.
5788
5789 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5790
5791 * jit.c (finalize_symtab): Set function's return type to 'void' by
5792 default.
5793
5794 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5795 H.J. Lu <hongjiu.lu@intel.com>
5796
5797 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5798 Move bits common to both the classic LP64 and the new x32 ILP32
5799 ABI here.
5800 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5801 (amd64_x32_linux_init_abi): New function.
5802 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5803 subtype.
5804
5805 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5806 * i386-tdep.c (i386_pseudo_register_name): Make public.
5807 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5808 * amd64-tdep.c (amd64_dword_names): Add "eip".
5809 (amd64_x32_pseudo_register_type): New function
5810 (amd64_x32_init_abi): New function.
5811
5812 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5813
5814 PR build/14003
5815 * inferior.h (struct inferior_suspend_state): Comment out.
5816 (struct inferior): Comment out the field suspend.
5817 * infrun.c (struct infcall_suspend_state): Comment out the field
5818 inferior_suspend.
5819 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5820 out its assignment.
5821
5822 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5823
5824 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5825 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5826 function comment. Return ERROR for unresolved cases. Implement
5827 returning proper NAME.
5828 (yylex): Accept also NAME from classify_inner_name.
5829 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5830 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5831 LOC_TYPEDEF type.
5832 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5833
5834 2012-06-13 Tom Tromey <tromey@redhat.com>
5835
5836 * breakpoint.c (condition_completer): New function.
5837 (_initialize_breakpoint): Use it.
5838 * value.c (complete_internalvar): New function.
5839 * value.h (complete_internalvar): Declare.
5840
5841 2012-06-13 Tom Tromey <tromey@redhat.com>
5842
5843 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5844 * breakpoint.c (catch_syscall_completer): Return a VEC.
5845 * cli/cli-cmds.c (complete_command): Update.
5846 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5847 (complete_on_enum): Likewise.
5848 * command.h: Include gdb_vecs.h.
5849 (completer_ftype): Change return type.
5850 (complete_on_cmdlist, complete_on_enum): Likewise.
5851 * completer.c (noop_completer, filename_completer)
5852 (location_completer): Return a VEC.
5853 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5854 to a VEC.
5855 (expression_completer, complete_line_internal, complete_line)
5856 (command_completer): Return a VEC.
5857 (gdb_completion_word_break_characters, line_completion_function):
5858 Update.
5859 * completer.h: Include gdb_vecs.h.
5860 (complete_line, noop_completer, filename_completer)
5861 (expression_completer, location_completer, command_completer):
5862 Update.
5863 * f-lang.c (f_word_break_characters): Return a VEC.
5864 * interps.c (interpreter_completer): Return a VEC.
5865 * language.h (struct language_defn)
5866 <la_make_symbol_completion_list>: Return a VEC.
5867 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5868 * symtab.c (free_completion_list): Take a VEC.
5869 (return_val_size, return_val_index): Remove.
5870 (return_val): Now a VEC.
5871 (completion_list_add_name): Update.
5872 (default_make_symbol_completion_list_break_on)
5873 (default_make_symbol_completion_list, make_symbol_completion_list)
5874 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5875 Return a VEC.
5876 (add_filename_to_list): Update.
5877 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5878 <list>: Now a VEC.
5879 (maybe_add_partial_symtab_filename): Update.
5880 (make_source_files_completion_list): Return a VEC.
5881 * symtab.h (default_make_symbol_completion_list_break_on)
5882 (default_make_symbol_completion_list, make_symbol_completion_list)
5883 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5884 (make_source_files_completion_list): Update.
5885
5886 2012-06-13 Tom Tromey <tromey@redhat.com>
5887
5888 * breakpoint.c (add_catch_command): Use completer_ftype.
5889 * breakpoint.h: Include command.h.
5890 (add_catch_command): Use completer_ftype.
5891 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5892 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5893 Use completer_ftype.
5894 * command.h (completer_ftype): New typedef.
5895 (set_cmd_completer): Use it.
5896 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5897 completer_ftype.
5898
5899 2012-06-13 Pedro Alves <palves@redhat.com>
5900
5901 Partial revert of previous change.
5902
5903 * serial.c (scb_base): New global.
5904 (serial_for_fd): New.
5905 (serial_open, serial_fdopen_ops): Link new serial in open serials
5906 chain.
5907 (do_serial_close): Unlink serial from the open serials chain.
5908
5909 2012-06-12 Pedro Alves <palves@redhat.com>
5910
5911 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5912 threads here.
5913 (prepare_for_detach): No longer context switch here in non-stop
5914 mode.
5915 (fetch_inferior_event): Ditto.
5916 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5917 to the event thread before removing breakpoints. Switch to the
5918 event thread before inserting breakpoints and resuming.
5919 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5920 event thread before resuming.
5921 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5922 Switch to the event thread before removing breakpoints.
5923
5924 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5925
5926 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5927 special characters correctly for the Windows shells. See
5928 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5929 report.
5930 [!__MINGW32__]: Remove extra double quote character from special
5931 characters.
5932
5933 2012-06-11 Stan Shebs <stan@codesourcery.com>
5934
5935 * ui-out.h: Remove #if 0 declarations.
5936 * ui-out.c: Remove #if 0 functions.
5937
5938 2012-06-11 Pedro Alves <palves@redhat.com>
5939
5940 * ser-base.c (run_async_handler_and_reschedule): New.
5941 (fd_event, push_event): Use it.
5942 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5943 reference count to 1.
5944 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5945 instead of xfree.
5946 (serial_is_open, serial_ref, serial_unref): New.
5947 * serial.h (serial_open): Adjust comment.
5948 (serial_is_open): Declare.
5949 (serial_close): Adjust comment.
5950 (serial_ref, serial_unref) Declare.
5951 (struct serial): New field 'refcnt'.
5952
5953 2012-06-11 Pedro Alves <palves@redhat.com>
5954
5955 Remove #if 0'd "connect" command, and unnecessary associated
5956 refcounting and serial reuse bits.
5957
5958 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5959 * serial.c (last_serial_opened): Delete.
5960 (scb_base): Delete.
5961 (serial_open): Adjust.
5962 (serial_for_fd): Delete.
5963 (serial_fdopen_ops, do_serial_close): Adjust.
5964 (serial_fdopen_ops): Adjust.
5965
5966 2012-06-11 Pedro Alves <palves@redhat.com>
5967
5968 * serial.c (do_serial_close): Remove early return when SCB is
5969 null.
5970
5971 2012-06-11 Tom Tromey <tromey@redhat.com>
5972
5973 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5974
5975 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5976
5977 Fix regression by the "ambiguous linespec" series.
5978 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5979 get_last_displayed_symtab and get_last_displayed_line and depending
5980 on CURSAL.
5981
5982 2012-06-11 Tom Tromey <tromey@redhat.com>
5983
5984 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5985 (dw2_find_symbol_file): Use it.
5986
5987 2012-06-11 Michael Eager <eager@eagercon.com>
5988
5989 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5990 * mips-linux-tdep.h (mips_signals): New
5991
5992 2012-06-11 Tom Tromey <tromey@redhat.com>
5993
5994 * infrun.c (handle_inferior_event)
5995 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5996 breakpoint.
5997 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5998 exception logic in all cases. Update comments.
5999 (insert_longjmp_resume_breakpoint): Set the exception resume
6000 breakpoint.
6001
6002 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
6003
6004 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6005
6006 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
6007
6008 * valarith.c (binop_types_user_defined_p): Fix a typo.
6009
6010 2012-06-08 Yao Qi <yao@codesourcery.com>
6011 Chung-Lin Tang <cltang@codesourcery.com>
6012
6013 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6014 * arch-utils.h: Declare.
6015 * gdbarch.sh: Add return_in_first_hidden_param_p.
6016 * gdbarch.c, gdbarch.h: Regenerated.
6017 * infcall.c (call_function_by_hand): Call
6018 gdbarch_return_in_first_hidden_param_p instead of
6019 language_pass_by_reference.
6020
6021 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6022 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6023 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6024 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6025 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6026 `cplus_return_struct_by_reference'.
6027 (tic6x_return_value): Handle language cplusplus.
6028 (tic6x_return_in_first_hidden_param_p): New.
6029 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6030
6031 2012-06-07 Doug Evans <dje@google.com>
6032
6033 * dwarf2read.c (dwarf2_cu): Add comment.
6034
6035 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6036
6037 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6038 variable.
6039 (mips_eabi_push_dummy_call): Likewise.
6040 (mips_n32n64_push_dummy_call): Likewise.
6041 (mips_o32_push_dummy_call): Likewise.
6042 (mips_o64_push_dummy_call): Likewise.
6043
6044 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6045
6046 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6047
6048 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6049
6050 * mips-tdep.c (mips_pseudo_register_type): Use
6051 mips_float_register_p.
6052
6053 2012-06-06 Pedro Alves <palves@redhat.com>
6054
6055 * infrun.c (handle_inferior_event): Remove calls to
6056 reinit_frame_cache that follow a context_switch call.
6057
6058 2012-06-06 Pedro Alves <palves@redhat.com>
6059
6060 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6061 context_switch and remove stale comment.
6062
6063 2012-06-06 Pedro Alves <palves@redhat.com>
6064
6065 * infrun.c (struct execution_control_state): Remove
6066 `new_thread_event' field.
6067 (handle_inferior_event): Simplify new threads handling; don't
6068 resume the inferior if we find a new thread.
6069
6070 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6071
6072 * NEWS: Document the deprecation of SH's 'regs' command.
6073 * inferior.h (all_registers_info): Add function declaration.
6074 * sh-tdep.c (sh_show_regs): Remove variable.
6075 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6076 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6077 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6078 (sh_show_regs_command): Remove functions.
6079 (sh_gdbarch_init): Don't set sh_show_regs.
6080 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6081 'info all-registers'.
6082 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6083 (sh64_show_regs): Remove functions.
6084 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6085
6086 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6087
6088 * configure.ac: Move development=true below AC_INIT.
6089 * configure: Regenerate.
6090
6091 2012-06-05 Stan Shebs <stan@codesourcery.com>
6092
6093 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6094 gdb_stdout.
6095
6096 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6097
6098 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6099 argument as ssize_t.
6100 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6101 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6102 * target.c (target_read_stack, target_write_memory)
6103 (target_write_raw_memory): Likewise.
6104 * target.h (target_read_stack, target_write_memory)
6105 (target_write_raw_memory): Likewise.
6106
6107 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6108
6109 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6110 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6111 * target.c (target_read_memory): Change LEN to ssize_t.
6112 * target.h (target_read_memory): Change LEN to ssize_t.
6113
6114 2012-06-05 Pedro Alves <palves@redhat.com>
6115
6116 PR backtrace/13866
6117
6118 * breakpoint.c (until_break_command): Only fetch the selected
6119 frame after decode_line_1.
6120
6121 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6122
6123 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6124 event breakpoint at _start, __start or main if a program
6125 interpreter is not found.
6126
6127 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6128
6129 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6130 Add declaration.
6131 * windows-tdep.c: #include "objfiles.h".
6132 (windows_iterate_over_objfiles_in_search_order): New function.
6133 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6134 iterate_over_objfiles_in_search_order gdbarch method to
6135 windows_iterate_over_objfiles_in_search_order.
6136 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6137
6138 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6139
6140 * gdbarch.sh: Add generation of
6141 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6142 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6143 (iterate_over_objfiles_in_search_order): New gdbarch method.
6144 * gdbarch.h, gdbarch.c: Regenerate.
6145 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6146 Add declaration.
6147 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6148 New function.
6149 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6150 out of lookup_symbol_aux_symtabs.
6151 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6152 call to lookup_symbol_aux_objfile.
6153 (struct global_sym_lookup_data): New type.
6154 (lookup_symbol_global_iterator_cb): New function.
6155 (lookup_symbol_global): Search for symbol using
6156 gdbarch_iterate_over_objfiles_in_search_order and
6157 lookup_symbol_global_iterator_cb.
6158 * findvar.c (struct minsym_lookup_data): New type.
6159 (minsym_lookup_iterator_cb): New function.
6160 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6161 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6162 and minsym_lookup_iterator_cb.
6163
6164 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6165
6166 Revert the following patch:
6167 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6168 try locating the symbol in the symbol's own objfile first, before
6169 extending the search to all objfiles.
6170 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6171 out of lookup_symbol_aux_symtabs.
6172 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6173 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6174 Do not search EXCLUDE_OBJFILE.
6175 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6176 (lookup_symbol_global): Search for matches in the block's objfile
6177 first, before searching all other objfiles.
6178
6179 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6180
6181 * breakpoint.c (find_condition_and_thread): Stop parsing
6182 as soon as the first invalid keyword is found.
6183
6184 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6185
6186 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6187
6188 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6189
6190 * config/djgpp/djcheck.sh: Add copyright header.
6191
6192 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6193
6194 * copyright.py (update_files, main): Fix path to update-copyright
6195 script.
6196
6197 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6198
6199 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6200 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6201 for which a reminder to update by hand is printed.
6202
6203 2012-06-04 Doug Evans <dje@google.com>
6204
6205 * buildsym.c (make_blockvector): Add comment.
6206
6207 2012-06-04 Pedro Alves <palves@redhat.com>
6208
6209 * arch-utils.c (default_gdb_signal_from_target): Delete.
6210 * arch-utils.h (default_gdb_signal_from_target): Delete.
6211 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6212 gdbarch_gdb_signal_from_target_p.
6213 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6214 predicate).
6215 * gdbarch.h: Regenerate.
6216 * gdbarch.c: Regenerate.
6217
6218 2012-06-04 Pedro Alves <palves@redhat.com>
6219
6220 * gdbarch.sh (gdb_signal_from_target): Mention that the
6221 implementation of the method must be host independent.
6222 * gdbarch.h: Regenerate.
6223
6224 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6225
6226 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6227 parameters.
6228 (target_read_memory_bfd): New function.
6229 (symbol_file_add_from_memory): Use it.
6230
6231 2012-06-03 Doug Evans <dje@google.com>
6232
6233 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6234 of primary symtab.
6235 (basic_lookup_transparent_type): Ditto.
6236
6237 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6238 (ALL_PRIMARY_SYMTABS): Use it.
6239 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6240 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6241 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6242 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6243 (basic_lookup_transparent_type): Ditto.
6244
6245 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6246
6247 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6248 it to optimize resolution of demangled name.
6249
6250 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6251
6252 * configure.ac (development): Define new variable.
6253 Call AC_CHECK_LIB for mcheck if $development.
6254 (ERROR_ON_WARNING): Enable it by default only if $development.
6255 * config.in: Regenerate.
6256 * configure: Regenerate.
6257
6258 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6259
6260 * target.c (target_read_memory): Make LEN argument as size_t.
6261 * target.h (target_read_memory): Likewise.
6262
6263 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6264
6265 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6266
6267 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6268
6269 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6270 BookE interface for PowerPC server processors if not available
6271 in the Linux Kernel.
6272
6273 2012-05-31 Keith Seitz <keiths@redhat.com>
6274
6275 * linespec.c (decode_objc): Add cleanup to free
6276 INFO.FILE_SYMTABS.
6277 (find_linespec_symbols): Add cleanup to free CLASSES.
6278 * symfile.c (find_separate_debug_file_by_debuglink): Add
6279 cleanup to free DEBUGLINK.
6280 * ui-out.c (clear_header_list): No need to check if
6281 HEADER_NEXT.COLHDR is NULL.
6282 Free HEADER_NEXT.COL_NAME.
6283
6284 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6285
6286 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6287 warning.
6288
6289 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6290
6291 * configure.host (gdb_host_cpu): Handle tilegx*.
6292 (gdb_host): Handle tilegx-*-linux*.
6293 * tilegx-linux-nat.c: New file.
6294 * config/tilegx/linux.mh: New file.
6295
6296 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6297
6298 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6299 tilegx-linux-tdep.o.
6300 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6301 tilegx-linux-tdep.c.
6302 * configure.tgt: Handle tilegx-*-linux*.
6303 * tilegx-tdep.h: New file.
6304 * tilegx-tdep.c: New file.
6305 * tilegx-linux-tdep.c: New file.
6306 * regformats/reg-tilegx.dat: New file.
6307
6308 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6309
6310 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6311 accounting of hw watchpoints on ppc.
6312
6313 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6314
6315 * source.c (openp): Expand tilde in path entries.
6316
6317 2012-05-29 Doug Evans <dje@google.com>
6318
6319 * buildsym.c (block_compar): Fix comment.
6320 (end_symtab): Fix and clarify some comments.
6321
6322 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6323 cleanup_undefined_types.
6324 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6325 All callers updated.
6326
6327 2012-05-29 Tom Tromey <tromey@redhat.com>
6328
6329 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6330 fails.
6331 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6332 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6333 fails.
6334 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6335 fails.
6336
6337 2012-05-29 Tristan Gingold <gingold@adacore.com>
6338
6339 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6340 (struct darwin_info): ... New struct.
6341 (solib_darwin_pspace_data): New variable.
6342 (darwin_pspace_data_cleanup): New function.
6343 (get_darwin_info): Likewise.
6344 (darwin_dyld_version_ok, darwin_load_image_infos)
6345 (darwin_solib_get_all_image_info_addr_at_init)
6346 (darwin_solib_read_all_image_info_addr): Add info argument.
6347 Adjust code.
6348 (darwin_current_sos): Use per pspace structure.
6349 (darwin_solib_create_inferior_hook): Likewise.
6350 (darwin_clear_solib): Likewise.
6351 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6352
6353 2012-05-28 Pedro Alves <palves@redhat.com>
6354
6355 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6356 block that uses them. Clear ecss before handling each event.
6357
6358 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6359
6360 * solib-svr4.c (svr4_current_sos): New comment on
6361 svr4_current_sos_via_xfer_libraries fall back.
6362
6363 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6364
6365 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6366 it as a fallback for TYPE_IS_OPAQUE.
6367 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6368 symbols for lookup_symbol.
6369
6370 2012-05-24 John Steele Scott <toojays@toojays.net>
6371
6372 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6373 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6374 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6375 (check_producer): ... this new function, which also checks for ICC
6376 and caches the result.
6377 (producer_is_icc): New function.
6378 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6379 producer was ICC.
6380
6381 2012-05-24 Pedro Alves <palves@redhat.com>
6382
6383 PR gdb/7205
6384
6385 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6386 (default_gdb_signal_to_target): ... this. Add comment.
6387 (default_gdb_signal_from_host): Rename to ...
6388 (default_gdb_signal_from_target): ... this. Add comment.
6389 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6390 (default_gdb_signal_to_target): ... this.
6391 (default_gdb_signal_from_host): Rename to ...
6392 (default_gdb_signal_from_target): ... this.
6393 * corelow.c (core_open): Adjust to naming change. Replace comment.
6394 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6395 (gdb_signal_from_target): ... this. Adjust to
6396 default_gdb_signal_from_host naming change. Extend comment.
6397 (gdb_signal_to_host): Rename to ...
6398 (gdb_signal_to_target): ... this. Adjust to
6399 default_gdb_signal_to_host naming change.
6400 * gdbarch.h, gdbarch.c: Renegerate.
6401
6402 2012-05-24 Pedro Alves <palves@redhat.com>
6403
6404 PR gdb/7205
6405
6406 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6407
6408 2012-05-24 Pedro Alves <palves@redhat.com>
6409
6410 PR gdb/7205
6411
6412 Replace target_signal with gdb_signal throughout.
6413
6414 2012-05-24 Pedro Alves <palves@redhat.com>
6415
6416 PR tui/14159
6417
6418 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6419 string, instead of reusing the va_list argument.
6420
6421 2012-05-24 Tom Tromey <tromey@redhat.com>
6422
6423 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6424 Remove.
6425
6426 2012-05-23 Doug Evans <dje@google.com>
6427
6428 * symtab.c (search_symbols): Formatting fixes.
6429 (print_symbol_info): Formatting fixes.
6430
6431 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6432 int64_t change to leb128 API.
6433 (read_encoded_value, decode_frame_entry_1): Ditto.
6434 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6435 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6436 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6437 (execute_stack_op): Ditto.
6438 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6439 (safe_read_uleb128, safe_read_sleb128): Ditto.
6440 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6441 (dwarf2_compile_expr_to_ax): Ditto.
6442 (locexpr_describe_location_piece): Ditto.
6443 (disassemble_dwarf_expression): Ditto.
6444 (locexpr_describe_location_1): Ditto.
6445
6446 2012-05-23 Stan Shebs <stan@codesourcery.com>
6447 Kwok Cheung Yeung <kcy@codesourcery.com>
6448
6449 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6450 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6451 (mi-cmd-info.o): New rule.
6452 * osdata.h (info_osdata_command): New declaration.
6453 * osdata.c (info_osdata_command): Change to non-static.
6454 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6455 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6456 * mi/mi-cmd-info.c: New file.
6457
6458 2012-05-23 Doug Evans <dje@google.com>
6459
6460 * symtab.c (search_symbols): Pass NULL for file_matcher to
6461 expand_symtabs_matching if there are no files to match.
6462
6463 * gdbtypes.c (lookup_typename): Simplify.
6464
6465 2012-05-23 Pedro Alves <palves@redhat.com>
6466
6467 * arch-utils.h (default_target_signal_to_host): Delete.
6468 * arch-utils.c (default_target_signal_to_host): Delete.
6469 * gdbarch.sh (target_signal_to_host): Remove.
6470 * gdbarch.h, gdbarch.c: Regenerate.
6471
6472 2012-05-22 Doug Evans <dje@google.com>
6473
6474 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6475 "const gdb_byte *".
6476 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6477 (execute_cfa_program): Update to match API of leb128 functions.
6478 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6479 "const gdb_byte *".
6480 (read_unsigned_leb128, read_signed_leb128): Delete.
6481 (read_initial_length): Change type of buf argument to
6482 "const gdb_byte *".
6483 (read_encoded_value): Update to match API of leb128 functions.
6484 (decode_frame_entry): Change result to "const gdb_byte *", and
6485 similarly for "start" parameter.
6486 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6487 (dwarf2_build_frame_info): Change local frame_ptr to
6488 "const gdb_byte *".
6489 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6490 read_uleb128, read_sleb128. All callers updated.
6491 (safe_skip_leb128): New function.
6492 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6493 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6494 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6495 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6496 read_uleb128, read_sleb128.
6497 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6498 (execute_stack_op): Update to match API of leb128 functions.
6499 * dwarf2expr.h: #include "leb128.h".
6500 (read_uleb128, read_sleb128): Delete.
6501 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6502 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6503 * dwarf2loc.c (debug_loc_kind): New enum.
6504 (decode_debug_loc_addresses): New function.
6505 (decode_debug_loc_dwo_addresses): New function.
6506 (dwarf2_find_location_expression): Rewrite.
6507 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6508 (locexpr_describe_location_piece): Ditto.
6509 (disassemble_dwarf_expression): Ditto.
6510 (locexpr_describe_location_1): Ditto.
6511 (loclist_describe_location): Rewrite.
6512 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6513 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6514 (dwarf2_section_buffer_overflow_complaint): Renamed from
6515 dwarf2_macros_too_long_complaint. All callers updated.
6516 (skip_leb128): Delete.
6517 (init_cu_die_reader): Initialize reader->buffer_end.
6518 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6519 (skip_form_bytes): New arg buffer_end. All callers updated.
6520 Replace call to skip_leb128 with gdb_skip_leb128.
6521 (skip_unknown_opcode): New arg mac_end. All callers updated.
6522 (fill_in_loclist_baton): Initialize baton->from_dwo.
6523
6524 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6525
6526 * mips-linux-nat.c (mips_linux_read_description): Use a more
6527 verbose error message.
6528
6529 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6530
6531 * NEWS: Add MIPS/Linux DSP support.
6532 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6533 (SIGCONTEXT_DSPCTL): New macro.
6534 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6535 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6536 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6537 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6538 (N64_SIGCONTEXT_HI3): Likewise.
6539 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6540 (N64_SIGCONTEXT_LO3): Likewise.
6541 (N64_SIGCONTEXT_DSPCTL): Likewise.
6542 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6543 (mips_linux_o32_sigframe_init): Handle DSP registers.
6544 (mips_linux_n32n64_sigframe_init): Likewise.
6545
6546 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6547
6548 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6549 call to abort.
6550
6551 2012-05-22 Pedro Alves <palves@redhat.com>
6552
6553 * target.h (store_waitstatus): Move declaration ...
6554 * inf-child.h (store_waitstatus): ... here.
6555 * target.c: Move inclusion of gdb_wait.h, and ...
6556 (store_waitstatus): ... this ...
6557 * inf-child.c: ... here.
6558 * linux-nat.c: Include inf-child.h.
6559 * rs6000-nat.c: Include inf-child.h.
6560 * spu-linux-nat.c: Include inf-child.h.
6561
6562 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6563
6564 * tracepoint.c (start_tracing): Add missing i18n markup.
6565 (stop_tracing, set_trace_user): Ditto.
6566 (set_trace_notes, set_trace_stop_notes): Ditto.
6567
6568 2012-05-21 Tom Tromey <tromey@redhat.com>
6569
6570 PR c++/7173:
6571 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6572 types.
6573 * value.h (value_cast_pointers): Update.
6574 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6575 (value_cast): Update.
6576 (update_search_result): New function.
6577 (do_search_struct_field): New, from search_struct_field. Check
6578 for ambiguous results.
6579 (search_struct_field): Rewrite.
6580 * infcall.c (value_arg_coerce): Update.
6581 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6582 value_cast_pointers.
6583 * ada-lang.c (ada_convert_actual): Update.
6584
6585 2012-05-21 Tom Tromey <tromey@redhat.com>
6586
6587 * macroexp.c (macro_stringify): Terminate the string.
6588
6589 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6590
6591 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6592 Describe it.
6593 * auto-load.c (auto_load_expand_dir_vars): New function.
6594 (auto_load_safe_path_vec_update): Use it, remove the
6595 substitute_path_component call thanks to it.
6596 (auto_load_objfile_script): Remove the debug_file_directory processing.
6597 Use auto_load_expand_dir_vars, remove the substitute_path_component
6598 call thanks to it.
6599 * configure: Regenerate.
6600 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6601 path. Escape $ also for $debugdir.
6602 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6603 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6604
6605 2012-05-20 Doug Evans <dje@google.com>
6606
6607 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6608 before use. Check for symtab->includes == NULL before scanning it.
6609
6610 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6611
6612 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6613
6614 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6615
6616 * NEWS: Add microMIPS support and "set mips compression",
6617 "show mips compression" commands.
6618 * mips-tdep.h (mips_isa): New enum.
6619 (gdbarch_tdep): Add mips_isa.
6620 (mips_pc_is_mips16): Update prototype.
6621 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6622 * mips-tdep.c (mips_compression_mips16): New variable.
6623 (mips_compression_micromips): Likewise.
6624 (mips_compression_strings): Likewise.
6625 (mips_compression_string): Likewise.
6626 (is_mips16_isa, is_micromips_isa): New functions.
6627 (is_mips16_addr): Rename to...
6628 (is_compact_addr): ... this.
6629 (unmake_mips16_addr): Likewise to...
6630 (unmake_compact_addr): ... this.
6631 (make_mips16_addr): Likewise to...
6632 (make_compact_addr): ... this.
6633 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6634 functions.
6635 (mips_elf_make_msymbol_special): Handle microMIPS code.
6636 (msymbol_is_special): Rename to...
6637 (msymbol_is_mips16): ... this.
6638 (mips_make_symbol_special, mips_pc_is_mips16): Update
6639 accordingly.
6640 (msymbol_is_mips, msymbol_is_micromips): New functions.
6641 (mips16_to_32_reg): Rename to...
6642 (mips_reg3_to_reg): ... this.
6643 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6644 (mips_pc_isa): Likewise.
6645 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6646 code.
6647 (mips_fetch_instruction): Pass return status instead of printing
6648 an error message if requested. Handle microMIPS code. Bail out
6649 on an invalid ISA.
6650 (micromips_op): New macro.
6651 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6652 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6653 (b6s4_op, b7s3_reg): Likewise.
6654 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6655 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6656 (mips_insn_size): New function.
6657 (mips32_next_pc): Update mips_fetch_instruction call.
6658 (micromips_relative_offset7): New function.
6659 (micromips_relative_offset10): Likewise.
6660 (micromips_relative_offset16): Likewise.
6661 (micromips_pc_insn_size): Likewise.
6662 (micromips_bc1_pc): Likewise.
6663 (micromips_next_pc): Likewise.
6664 (unpack_mips16): Update mips_fetch_instruction call.
6665 (extended_mips16_next_pc): Update according to change to
6666 mips16_to_32_reg.
6667 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6668 code.
6669 (mips16_scan_prologue): Update mips_fetch_instruction call.
6670 Update according to change to mips16_to_32_reg.
6671 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6672 (mips_insn16_frame_base_sniffer): Likewise.
6673 (micromips_decode_imm9): New function.
6674 (micromips_scan_prologue): Likewise.
6675 (mips_micro_frame_cache): Likewise.
6676 (mips_micro_frame_this_id): Likewise.
6677 (mips_micro_frame_prev_register): Likewise.
6678 (mips_micro_frame_sniffer): Likewise.
6679 (mips_micro_frame_unwind): New variable.
6680 (mips_micro_frame_base_address): New function.
6681 (mips_micro_frame_base): New variable.
6682 (mips_micro_frame_base_sniffer): New function.
6683 (mips32_scan_prologue): Update mips_fetch_instruction call.
6684 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6685 rather than for MIPS16.
6686 (mips_insn32_frame_base_sniffer): Likewise.
6687 (mips_addr_bits_remove): Handle microMIPS code.
6688 (deal_with_atomic_sequence): Rename to...
6689 (mips_deal_with_atomic_sequence): ... this. Update the type
6690 of the variable used to hold an instruction. Remove the ISA bit
6691 check. Update mips_fetch_instruction call.
6692 (micromips_deal_with_atomic_sequence): New function.
6693 (deal_with_atomic_sequence): Likewise.
6694 (mips_about_to_return): Handle microMIPS code. Update
6695 mips_fetch_instruction call.
6696 (heuristic_proc_start): Check for the standard MIPS ISA rather
6697 than for MIPS16. Update mips_pc_is_mips16 and
6698 mips_fetch_instruction calls. Handle microMIPS code.
6699 (mips_push_dummy_code): Handle microMIPS code.
6700 (mips_eabi_push_dummy_call): Likewise.
6701 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6702 (mips_o64_push_dummy_call): Handle microMIPS code.
6703 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6704 (is_delayed): Remove function.
6705 (mips_single_step_through_delay): Replace the call to is_delayed
6706 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6707 Handle microMIPS code.
6708 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6709 microMIPS code.
6710 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6711 call.
6712 (micromips_in_function_epilogue_p): New function.
6713 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6714 call.
6715 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6716 Handle microMIPS.
6717 (gdb_print_insn_mips): Likewise.
6718 (mips_breakpoint_from_pc): Likewise.
6719 (mips_remote_breakpoint_from_pc): New function.
6720 (mips32_instruction_has_delay_slot): Simplify making use of the
6721 updated mips_fetch_instruction interface.
6722 (micromips_instruction_has_delay_slot): New function.
6723 (mips16_instruction_has_delay_slot): Simplify making use of the
6724 updated mips_fetch_instruction interface.
6725 (mips_adjust_breakpoint_address): Check for the standard MIPS
6726 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6727 calls. Handle microMIPS code.
6728 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6729 (mips_skip_trampoline_code): Handle microMIPS code.
6730 (global_mips_compression): New function.
6731 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6732 file flags. Register the microMIPS remote breakpoint handler
6733 and heuristic frame unwinder.
6734 (show_mips_compression): New function.
6735 (_initialize_mips_tdep): Add the "set mips compression" and
6736 "show mips compression" commands.
6737
6738 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6739
6740 * ada-lang.c:
6741 * ada-tasks.c:
6742 * ada-varobj.c:
6743 * amd64-darwin-tdep.c:
6744 * arm-symbian-tdep.c:
6745 * arm-tdep.c:
6746 * avr-tdep.c:
6747 * ax-gdb.c:
6748 * bfin-linux-tdep.c:
6749 * breakpoint.c:
6750 * c-valprint.c:
6751 * cli/cli-cmds.c:
6752 * coffread.c:
6753 * cp-support.c:
6754 * cris-tdep.c:
6755 * dwarf2-frame-tailcall.c:
6756 * dwarf2-frame.c:
6757 * dwarf2expr.c:
6758 * dwarf2loc.c:
6759 * dwarf2read.c:
6760 * elfread.c:
6761 * eval.c:
6762 * expprint.c:
6763 * f-valprint.c:
6764 * frv-tdep.c:
6765 * h8300-tdep.c:
6766 * hppa-hpux-tdep.c:
6767 * hppa-tdep.c:
6768 * hppanbsd-tdep.c:
6769 * i386-nto-tdep.c:
6770 * i386-tdep.c:
6771 * i387-tdep.c:
6772 * ia64-tdep.c:
6773 * jit.c:
6774 * linespec.c:
6775 * linux-tdep.c:
6776 * lm32-tdep.c:
6777 * m2-valprint.c:
6778 * m32c-tdep.c:
6779 * m32r-rom.c:
6780 * m32r-tdep.c:
6781 * m68k-tdep.c:
6782 * m68klinux-tdep.c:
6783 * mi/mi-main.c:
6784 * microblaze-tdep.c:
6785 * mips-linux-tdep.c:
6786 * mips-tdep.c:
6787 * mn10300-tdep.c:
6788 * p-valprint.c:
6789 * parse.c:
6790 * ppc-linux-tdep.c:
6791 * ppc-sysv-tdep.c:
6792 * printcmd.c:
6793 * python/py-finishbreakpoint.c:
6794 * python/py-inferior.c:
6795 * python/py-infthread.c:
6796 * python/py-type.c:
6797 * python/python.c:
6798 * remote-fileio.c:
6799 * remote-m32r-sdi.c:
6800 * remote-mips.c:
6801 * reverse.c:
6802 * rl78-tdep.c:
6803 * rs6000-aix-tdep.c:
6804 * rs6000-tdep.c:
6805 * s390-tdep.c:
6806 * score-tdep.c:
6807 * sh64-tdep.c:
6808 * skip.c:
6809 * solib-darwin.c:
6810 * solib-dsbt.c:
6811 * solib-frv.c:
6812 * sparc-tdep.c:
6813 * spu-multiarch.c:
6814 * spu-tdep.c:
6815 * stack.c:
6816 * symfile.c:
6817 * symtab.c:
6818 * tic6x-tdep.c:
6819 * tracepoint.c:
6820 * v850-tdep.c:
6821 * valarith.c:
6822 * valprint.c:
6823 * value.c:
6824 * xcoffread.c:
6825 * xtensa-tdep.c:
6826 * ada-lang.c:
6827 * ada-tasks.c:
6828 * ada-varobj.c:
6829 * amd64-darwin-tdep.c:
6830 * arm-symbian-tdep.c:
6831 * arm-tdep.c: Delete unused variables.
6832
6833 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6834
6835 Rename $ddir to $datadir.
6836 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6837 * auto-load.c (auto_load_safe_path_vec_update)
6838 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6839 * configure: Regenerate.
6840 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6841 Likewise. Remove the 'use $ddir' help string.
6842
6843 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6844
6845 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6846 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6847
6848 2012-05-18 Tom Tromey <tromey@redhat.com>
6849
6850 PR exp/13907:
6851 * valprint.h (struct value_print_options) <symbol_print>: New
6852 field.
6853 * valprint.c (user_print_options): Add default for symbol_print.
6854 (show_symbol_print): New function.
6855 (generic_val_print): Respect symbol_print.
6856 (_initialize_valprint): Add "print symbol" setting.
6857 * f-valprint.c (f_val_print): Respect symbol_print.
6858 * c-valprint.c (c_val_print): Respect symbol_print.
6859 * NEWS: Update.
6860 * printcmd.c (print_address_symbolic): Return int. Ignore some
6861 zero-size symbols.
6862 (print_address_demangle): Return int.
6863 * defs.h: (print_address_symbolic): Return int.
6864 * value.h (print_address_demangle): Return int.
6865
6866 2012-05-18 Tom Tromey <tromey@redhat.com>
6867
6868 * valprint.c (val_print_string): Don't print leading space.
6869 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6870 print space before string or vtbl.
6871 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6872 before string.
6873 * jv-valprint.c (java_value_print): Print space before string.
6874 * go-valprint.c (print_go_string): Print space before string.
6875 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6876 space before string.
6877 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6878 space before string or vtbl.
6879 * auxv.c (fprint_target_auxv): Print space after address.
6880
6881 2012-05-18 Tom Tromey <tromey@redhat.com>
6882
6883 * printcmd.c (print_address_demangle): Remove special case for 0.
6884
6885 2012-05-18 Tom Tromey <tromey@redhat.com>
6886
6887 * printcmd.c (print_address_demangle): Add 'opts' argument.
6888 * p-valprint.c (pascal_val_print): Update.
6889 * jv-valprint.c (java_val_print): Update.
6890 * value.h: Update.
6891 * valprint.c (generic_val_print): Update.
6892 (print_function_pointer_address): Add 'options' argument. Remove
6893 'addressprint' argument. Update.
6894 * m2-valprint.c (print_unpacked_pointer): Update.
6895 * gnu-v3-abi.c (print_one_vtable): Update.
6896 (gnuv3_print_method_ptr): Update.
6897 * f-valprint.c (f_val_print): Update.
6898 * cp-valprint.c (cp_print_value_fields): Update.
6899 * valprint.h (print_function_pointer_address): Update.
6900 * c-valprint.c (c_val_print): Update.
6901
6902 2012-05-18 Tom Tromey <tromey@redhat.com>
6903
6904 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6905 directly corresponding to the found psymtab.
6906 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6907 (dw2_find_pc_sect_symtab): Use it.
6908 * block.h (blockvector_contains_pc): Declare.
6909 * block.c (find_block_in_blockvector): New function.
6910 (blockvector_for_pc_sect): Use it.
6911 (blockvector_contains_pc): New function.
6912
6913 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6914
6915 * mips-tdep.h (mips_write_pc): New prototype.
6916 * mips-tdep.c (mips_write_pc): Make external, add description.
6917 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6918 add description.
6919
6920 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6921
6922 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6923 mips_regnum->pc.
6924 (mips_unwind_pc, mips_write_pc): Likewise.
6925 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6926 gdbarch_read_pc.
6927
6928 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6929
6930 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6931 proc_warn, proc_error, proc_get_status, proc_flags,
6932 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6933 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6934 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6935 proc_stop_process, proc_wait_for_stop, proc_run_process,
6936 proc_set_traced_signals, proc_set_traced_faults,
6937 proc_set_traced_sysentry, proc_set_traced_sysexit,
6938 proc_set_held_signals, proc_get_held_signals,
6939 proc_get_traced_signals, proc_get_traced_faults,
6940 proc_get_traced_sysentry, proc_get_traced_sysexit,
6941 proc_clear_current_fault, proc_set_current_signal,
6942 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6943 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6944 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6945 proc_get_current_thread, proc_get_current_thread,
6946 proc_get_current_thread, proc_update_threads,
6947 proc_update_threads, proc_update_threads, proc_update_threads,
6948 proc_iterate_over_threads, procfs_find_new_threads,
6949 procfs_pid_to_str): Make static. Remove advance declaration.
6950 (proc_cursig): Make static. Conditionalized defintion on
6951 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6952 (proc_syscall, proc_set_kill_on_last_close,
6953 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6954 proc_get_pending_signals, proc_get_signal_actions,
6955 proc_trace_signal, proc_ignore_signal): Delete.
6956
6957 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6958
6959 * coffread.c (cs_section_address): Passing proper argument for
6960 `bfd_get_section_vma'.
6961 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6962 `bfd_get_section_flags'.
6963 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6964 `bfd_get_section_vma'.
6965
6966 2012-05-16 Tom Tromey <tromey@redhat.com>
6967
6968 PR macros/13205:
6969 * macrotab.h: (macro_define_special): Declare.
6970 (enum macro_special_kind): New.
6971 (struct macro_definition) <argc, replacement>: Update comments.
6972 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6973 (macro_define_object_internal): New function.
6974 (macro_define_object): Use it.
6975 (macro_define_special): New function.
6976 (fixup_definition): New function.
6977 (macro_lookup_definition, foreach_macro_in_scope)
6978 (foreach_macro): Use fixup_definition.
6979 * macroexp.h (macro_stringify): Declare.
6980 * macroexp.c (free_buffer_return_text): New function.
6981 (stringify): Constify "arg".
6982 (macro_stringify): New function.
6983 * dwarf2read.c (macro_start_file): Call macro_define_special.
6984
6985 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6986 Maciej W. Rozycki <macro@mips.com>
6987
6988 * breakpoint.h (bp_location): Add related_address member.
6989 * inferior.h (get_return_value): Take a pointer to struct value
6990 instead of struct type for the function requested.
6991 * value.h (using_struct_return): Likewise.
6992 * gdbarch.sh (return_value): Take a pointer to struct value
6993 instead of struct type for the function requested.
6994 * breakpoint.c (set_breakpoint_location_function): Initialize
6995 related_address for bp_gnu_ifunc_resolver breakpoints.
6996 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6997 requested function's address to gdbarch_return_value.
6998 * eval.c (evaluate_subexp_standard): Pass the requested
6999 function's address to using_struct_return.
7000 * infcall.c (call_function_by_hand): Pass the requested
7001 function's address to using_struct_return and
7002 gdbarch_return_value.
7003 * infcmd.c (get_return_value): Take a pointer to struct value
7004 instead of struct type for the function requested.
7005 (print_return_value): Update accordingly.
7006 (finish_command_continuation): Likewise.
7007 * stack.c (return_command): Pass the requested function's
7008 address to using_struct_return and gdbarch_return_value.
7009 * value.c (using_struct_return): Take a pointer to struct value
7010 instead of struct type for the function requested. Pass the
7011 requested function's address to gdbarch_return_value.
7012 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7013 New function_value member, replacing function_type.
7014 (bpfinishpy_dealloc): Update accordingly.
7015 (bpfinishpy_pre_stop_hook): Likewise.
7016 (bpfinishpy_init): Likewise. Record the requested function's
7017 address.
7018 * mips-tdep.c (mips_fval_reg): New enum.
7019 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7020 words put in GP registers.
7021 (mips_o64_push_dummy_call): Update a comment.
7022 (mips_o32_return_value): Take a pointer to struct value instead
7023 of struct type for the function requested and use it to check if
7024 using the MIPS16 calling convention. Return the designated
7025 general purpose registers for floating-point values returned in
7026 MIPS16 mode.
7027 (mips_o64_return_value): Likewise.
7028 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7029 (ppc_sysv_abi_broken_return_value): Likewise.
7030 (ppc64_sysv_abi_return_value): Likewise.
7031 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7032 value instead of struct type for the function requested.
7033 * amd64-tdep.c (amd64_return_value): Likewise.
7034 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7035 * arm-tdep.c (arm_return_value): Likewise.
7036 * avr-tdep.c (avr_return_value): Likewise.
7037 * bfin-tdep.c (bfin_return_value): Likewise.
7038 * cris-tdep.c (cris_return_value): Likewise.
7039 * frv-tdep.c (frv_return_value): Likewise.
7040 * h8300-tdep.c (h8300_return_value): Likewise.
7041 (h8300h_return_value): Likewise.
7042 * hppa-tdep.c (hppa32_return_value): Likewise.
7043 (hppa64_return_value): Likewise.
7044 * i386-tdep.c (i386_return_value): Likewise.
7045 * ia64-tdep.c (ia64_return_value): Likewise.
7046 * iq2000-tdep.c (iq2000_return_value): Likewise.
7047 * lm32-tdep.c (lm32_return_value): Likewise.
7048 * m32c-tdep.c (m32c_return_value): Likewise.
7049 * m32r-tdep.c (m32r_return_value): Likewise.
7050 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7051 * m68k-tdep.c (m68k_return_value): Likewise.
7052 (m68k_svr4_return_value): Likewise.
7053 * m88k-tdep.c (m88k_return_value): Likewise.
7054 * mep-tdep.c (mep_return_value): Likewise.
7055 * microblaze-tdep.c (microblaze_return_value): Likewise.
7056 * mn10300-tdep.c (mn10300_return_value): Likewise.
7057 * moxie-tdep.c (moxie_return_value): Likewise.
7058 * mt-tdep.c (mt_return_value): Likewise.
7059 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7060 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7061 (ppc_sysv_abi_broken_return_value): Likewise.
7062 (ppc64_sysv_abi_return_value): Likewise.
7063 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7064 * rl78-tdep.c (rl78_return_value): Likewise.
7065 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7066 * rx-tdep.c (rx_return_value): Likewise.
7067 * s390-tdep.c (s390_return_value): Likewise.
7068 * score-tdep.c (score_return_value): Likewise.
7069 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7070 (sh_return_value_fpu): Likewise.
7071 * sh64-tdep.c (sh64_return_value): Likewise.
7072 * sparc-tdep.c (sparc32_return_value): Likewise.
7073 * sparc64-tdep.c (sparc64_return_value): Likewise.
7074 * spu-tdep.c (spu_return_value): Likewise.
7075 * tic6x-tdep.c (tic6x_return_value): Likewise.
7076 * v850-tdep.c (v850_return_value): Likewise.
7077 * vax-tdep.c (vax_return_value): Likewise.
7078 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7079 * xtensa-tdep.c (xtensa_return_value): Likewise.
7080 * gdbarch.c: Regenerate.
7081 * gdbarch.h: Regenerate.
7082
7083 2012-05-15 Tom Tromey <tromey@redhat.com>
7084
7085 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7086
7087 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7088
7089 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7090 of command in two error message.
7091
7092 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7093
7094 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7095
7096 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7097
7098 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7099
7100 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7101
7102 * NEWS (show auto-load scripts-directory): Add forgotten command.
7103
7104 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7105
7106 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7107 parameters.
7108
7109 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7110
7111 * amd64-tdep.c: Include features/i386/x32.c and
7112 features/i386/x32-avx.c.
7113 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7114 initialize_tdesc_x32_avx.
7115
7116 2012-05-14 Stan Shebs <stan@codesourcery.com>
7117
7118 Add dynamic printf.
7119 * breakpoint.h (enum bptype): New type bp_dprintf.
7120 (struct breakpoint): New field extra_string.
7121 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7122 (create_breakpoint): Add extra_string arg.
7123 * breakpoint.c (dprintf_breakpoint_ops): New.
7124 (is_breakpoint): Add bp_dprintf.
7125 (bpstat_what): Add dprintf case.
7126 (bptype_string): Ditto.
7127 (print_one_breakpoint_location): Ditto.
7128 (init_bp_location): Ditto.
7129 (bkpt_print_mention): Ditto.
7130 (dprintf_style_enums): New array.
7131 (dprintf_style): New global.
7132 (dprintf_function): New global.
7133 (dprintf_channel): New global.
7134 (update_dprintf_command_list): New function.
7135 (update_dprintf_commands): New function.
7136 (init_breakpoint_sal): Add extra_string argument, handle it.
7137 (create_breakpoint_sal): Add extra_string argument.
7138 (create_breakpoints_sal): Add extra_string argument, update callers.
7139 (find_condition_and_thread): Add extra argument.
7140 (create_breakpoint): Add extra_string argument, record it.
7141 (dprintf_command): New function.
7142 (break_command_1): Add arg to create_breakpoint call.
7143 (handle_gnu_v3_exceptions): Ditto.
7144 (trace_command): Ditto.
7145 (ftrace_command): Ditto.
7146 (strace_command): Ditto.
7147 (bkpt_print_mention): Add dprintf case.
7148 (create_breakpoint_sal_default): Add extra_string argument.
7149 (_initialize_breakpoint): Add new commands.
7150 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7151 * python/py-breakpoint.c (bppy_init): Ditto.
7152 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7153
7154 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7155
7156 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7157
7158 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7159
7160 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7161 unsigned long long.
7162
7163 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7164
7165 Add a new function gdb.find_pc_line to the Python API.
7166 * NEWS (Python Scripting): Add entry about the new function.
7167 * python/python.c (gdbpy_find_pc_line): New function which
7168 implements gdb.find_pc_line.
7169 (GdbMethods): Add entry for the new function.
7170
7171 2012-05-12 Pedro Alves <palves@redhat.com>
7172
7173 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7174 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7175
7176 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7177
7178 * inferior.c: Include completer.h
7179 (initialize_inferiors): Set completer of add-inferior to
7180 filename_completer.
7181
7182 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7183
7184 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7185 gdbarch_ptr_bit for x32 core dump.
7186
7187 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7188
7189 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7190 and features/i386/x32-avx-linux.c.
7191
7192 2012-05-11 Stan Shebs <stan@codesourcery.com>
7193 Kwok Cheung Yeung <kcy@codesourcery.com>
7194
7195 * NEWS: Describe new info os commands.
7196 * common/linux-osdata.c (PID_T, TIME_T): Define.
7197 (MAX_PID_T_STRLEN): New.
7198 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7199 MAX_PID_T_STRLEN.
7200 (command_from_pid): Add comment. Change to use PID_T.
7201 (commandline_from_pid): Change to use PID_T.
7202 (user_from_pid): Add comment.
7203 (get_process_owner): Add comment. Change to use PID_T and
7204 MAX_PID_T_STRLEN.
7205 (get_number_of_cpu_cores): Add comment.
7206 (get_cores_used_by_process): Add comment. Change to use PID_T and
7207 MAX_PID_T_STRLEN.
7208 (linux_xfer_osdata_processes): Change to use PID_T and
7209 MAX_PID_T_STRLEN.
7210 (compare_processes): New function.
7211 (linux_xfer_osdata_processgroups): New function.
7212 (linux_xfer_osdata_threads): Change to use PID_T.
7213 (linux_xfer_osdata_fds): New function.
7214 (format_socket_state, print_sockets): New functions.
7215 (union socket_addr): New union.
7216 (linux_xfer_osdata_isockets): New function.
7217 (time_from_time_t, group_from_gid): New functions.
7218 (linux_xfer_osdata_shm): New function.
7219 (linux_xfer_osdata_sem): New function.
7220 (linux_xfer_osdata_msg): New function.
7221 (linux_xfer_osdata_modules): New function.
7222 (osdata_table): Add new entries.
7223 * common/buffer.c (buffer_xml_printf): Add support for long and
7224 long long format specifiers.
7225
7226 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7227
7228 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7229 (tdesc_x32_avx_linux): Likewise.
7230
7231 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7232
7233 Implement multi-component --with-auto-load-dir.
7234 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7235 entries.
7236 (--with-auto-load-safe-path): Update the default value description.
7237 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7238 New.
7239 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7240 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7241 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7242 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7243 "set auto-load scripts-directory".
7244 * config.in: Regenerate.
7245 * configure: Regenerate.
7246 * configure.ac (--with-auto-load-dir): New configure option.
7247 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7248
7249 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7250
7251 Provide $ddir substitution for --with-auto-load-safe-path.
7252 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7253 entries.
7254 * auto-load.c: Include observer.h.
7255 (auto_load_safe_path_vec_update): Call substitute_path_component for
7256 each component. New variable ddir_subst.
7257 (auto_load_gdb_datadir_changed): New function.
7258 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7259 AUTO_LOAD_SAFE_PATH. New comment.
7260 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7261 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7262 * config.in: Regenerate.
7263 * configure: Regenerate.
7264 * configure.ac (--auto-load-safe-path): Rename
7265 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7266 GDB_DATADIR/auto-load.
7267 * defs.h (substitute_path_component): New declaration.
7268 * top.c: Include observer.h.
7269 (set_gdb_datadir): New function.
7270 (init_main): Install it for "set data-directory".
7271 * utils.c (substitute_path_component): New function.
7272
7273 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7274
7275 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7276 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7277 DEBUG_FILE_DIRECTORY. Handle multiple components of
7278 DEBUG_FILE_DIRECTORY.
7279
7280 2012-05-10 Tom Tromey <tromey@redhat.com>
7281
7282 * dwarf2read.c (recursively_write_psymbols): New function.
7283 (write_psymtabs_to_index): Use it.
7284
7285 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7286 field.
7287 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7288 (load_partial_comp_unit): Update.
7289 (queue_comp_unit): Add argument 'pretend_language'.
7290 (process_queue): Update.
7291 (psymtab_to_symtab_1): Skip dependencies that have a user.
7292 (load_partial_comp_unit_reader): Give meaning to the 'data'
7293 argument.
7294 (load_full_comp_unit): Add 'pretend_language' argument.
7295 (process_full_comp_unit): Add 'pretend_language' argument. Set
7296 language on CU.
7297 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7298 Update.
7299 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7300 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7301 Update.
7302 (prepare_one_comp_unit): Add 'pretend_language' argument.
7303
7304 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7305 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7306 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7307 (dw2_do_instantiate_symtab): Check whether symtab was read in
7308 before queueing.
7309 (dw2_instantiate_symtab): Add assertion. Call
7310 process_cu_includes.
7311 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7312 (partial_symtab_p): New typedef.
7313 (set_partial_user): New function.
7314 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7315 (scan_partial_symbols): Add imported CU to imported_symtabs.
7316 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7317 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7318 (get_symtab, recursively_compute_inclusions)
7319 (compute_symtab_includes, process_cu_includes)
7320 (process_imported_unit_die): New functions.
7321 (process_die) <DW_TAG_imported_unit>: New case.
7322 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7323
7324 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7325 comment.
7326 (struct partial_die_info) <locdesc>: Remove.
7327 <d>: New field.
7328 (process_psymtab_comp_unit): Add 'read_partial' argument.
7329 Update.
7330 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7331 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7332 (add_partial_symbol): Update.
7333 (process_die): Handle DW_TAG_partial_unit.
7334 (read_file_scope): Update comment.
7335 (load_partial_dies): Handle DW_TAG_imported_unit.
7336 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7337 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7338
7339 2012-05-10 Tom Tromey <tromey@redhat.com>
7340
7341 * cc-with-dwz.sh: New file.
7342
7343 2012-05-10 Tom Tromey <tromey@redhat.com>
7344
7345 * symtab.h (struct symtab) <includes, user>: New fields.
7346 * block.h (struct block_iterator) <d, idx, which>: New fields.
7347 * block.c (initialize_block_iterator, find_iterator_symtab)
7348 (block_iterator_step, block_iter_name_step)
7349 (block_iter_match_step): New functions.
7350 (block_iterator_first, block_iterator_next)
7351 (block_iter_name_first, block_iter_name_next)
7352 (block_iter_match_first, block_iter_match_next): Rewrite.
7353 (get_block_symtab): New function.
7354
7355 2012-05-10 Tom Tromey <tromey@redhat.com>
7356
7357 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7358 set_block_symtab.
7359 * jit.c (finalize_symtab): Use allocate_global_block,
7360 set_block_symtab.
7361 * buildsym.c (finish_block_internal): New function, from old
7362 finish_block.
7363 (finish_block): Rewrite.
7364 (end_symtab): Use finish_block_internal, set_block_symtab.
7365 * block.h (struct global_block): New.
7366 (allocate_global_block, set_block_symtab): Declare.
7367 * block.c (allocate_global_block, set_block_symtab): New
7368 functions.
7369
7370 2012-05-10 Tom Tromey <tromey@redhat.com>
7371
7372 * psymtab.c (partial_map_expand_apply): Add assertion.
7373 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7374 (psymtab_to_symtab): Find unshared psymtab.
7375 (dump_psymtab): Print including psymtabs.
7376 (recursively_search_psymtabs): New function.
7377 (expand_symtabs_matching_via_partial): Use it.
7378 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7379 fields.
7380 (enum psymtab_search_status): New.
7381
7382 2012-05-10 Tom Tromey <tromey@redhat.com>
7383
7384 * tracepoint.c (scope_info): Update.
7385 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7386 (find_pc_sect_symtab, search_symbols)
7387 (default_make_symbol_completion_list_break_on)
7388 (make_file_symbol_completion_list): Update.
7389 * symmisc.c (dump_symtab_1): Update.
7390 * stack.c (print_frame_args, iterate_over_block_locals)
7391 (print_frame_labels, iterate_over_block_arg_vars): Update.
7392 * python/py-block.c (block_object) <dict>: Remove.
7393 <block>: New field.
7394 <iter>: Change type.
7395 (blpy_iter): Update.
7396 (blpy_block_syms_iternext): Update.
7397 * psymtab.c (map_block): Use block iterators.
7398 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7399 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7400 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7401 * infrun.c (check_exception_resume): Update.
7402 * cp-support.c (make_symbol_overload_list_block): Update.
7403 * coffread.c (patch_opaque_types): Update.
7404 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7405 * block.h (struct block_iterator): New.
7406 (block_iterator_first, block_iterator_next, block_iter_name_first)
7407 (block_iter_name_next, block_iter_match_first)
7408 (block_iter_match_next): Declare.
7409 (ALL_BLOCK_SYMBOLS): Redefine.
7410 * block.c (block_iterator_first, block_iterator_next)
7411 (block_iter_name_first, block_iter_name_next)
7412 (block_iter_match_first, block_iter_match_next): New functions.
7413 * ada-lang.c (ada_add_block_symbols)
7414 (ada_make_symbol_completion_list): Use block iterator.
7415
7416 2012-05-10 Tom Tromey <tromey@redhat.com>
7417
7418 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7419 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7420 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7421 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7422 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7423 Update.
7424
7425 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7426
7427 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7428 print-file-var-lib2.c, print-file-var-main.c and
7429 print-file-var.exp (located in gdb/testsuite/gdb.base).
7430
7431 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7432
7433 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7434 try locating the symbol in the symbol's own objfile first, before
7435 extending the search to all objfiles.
7436 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7437 out of lookup_symbol_aux_symtabs.
7438 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7439 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7440 Do not search EXCLUDE_OBJFILE.
7441 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7442 (lookup_symbol_global): Search for matches in the block's objfile
7443 first, before searching all other objfiles.
7444
7445 2012-05-10 Tristan Gingold <gingold@adacore.com>
7446
7447 * printcmd.c (set_command): Add pre/post inc/dec.
7448
7449 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7450
7451 * gdb.1: Document -ex option.
7452
7453 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7454
7455 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7456 * inferior.h (AT_SYMBOL): Delete.
7457
7458 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7459
7460 * mips-tdep.c (mips_push_dummy_code): New function.
7461 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7462 ON_STACK and install mips_push_dummy_code as our gdbarch
7463 push_dummy_code routine.
7464
7465 2012-05-09 Pedro Alves <palves@redhat.com>
7466
7467 * target.c (set_maintenance_target_async_permitted): Rename to ...
7468 (set_target_async_command): ... this.
7469 (show_maintenance_target_async_permitted): Rename to ...
7470 (show_target_async_command): ... this.
7471 (initialize_targets): Adjust.
7472
7473 2012-05-08 Doug Evans <dje@google.com>
7474
7475 * go-exp.y (classify_name): Add missing assignment of fields of
7476 yylval.ssym.
7477
7478 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7479
7480 Display the ">" prompt in interactive mode while reading canned
7481 commands, even when the current interpreter is MI.
7482
7483 * interps.c (interp_set_temp): New function.
7484
7485 * interps.h (interp_set_temp): Add prototype.
7486
7487 * cli/cli-script.c (restore_interp): New cleanup function.
7488 (read_command_lines): Temporarily override the current interpreter
7489 with CLI and arrange for restoring the original one.
7490
7491 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7492
7493 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7494
7495 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7496
7497 * probe.c (parse_probes): Move conditional to check for
7498 debuginfo files from here...
7499 * stap-probe.c (stap_get_probes): ... to here.
7500
7501 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7502 H.J. Lu <hongjiu.lu@intel.com>
7503
7504 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7505 `movl %esp, %ebp' for the X32 ABI.
7506
7507 2012-05-07 Tom Tromey <tromey@redhat.com>
7508
7509 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7510 get_DW_TAG_name.
7511 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7512 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7513 (dwarf_stack_op_name): Remove.
7514 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7515 (decode_locdesc): Use get_DW_OP_name.
7516 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7517 (dwarf2_compile_expr_to_ax): Likewise.
7518 (disassemble_dwarf_expression): Likewise.
7519 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7520
7521 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7522
7523 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7524 (sh_linux_sigtramp_cache): New function.
7525 (sh_linux_sigreturn_init): New function.
7526 (sh_linux_rt_sigreturn_init): New function.
7527 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7528 patterns.
7529 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7530 syscall codes.
7531 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7532 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7533 (sh_linux_init_abi): Add init calls to register new tramp_frame
7534 definitions under 32-bit SH, update comments.
7535
7536 2012-05-07 Pedro Alves <palves@redhat.com>
7537
7538 PR gdb/10952
7539
7540 * amd64-linux-tdep.c: Include glibc-tdep.h.
7541 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7542 gdbarch_skip_solib_resolver callback.
7543
7544 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7545
7546 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7547 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7548 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7549 (add_auto_load_safe_path): Change the error message.
7550 (_initialize_auto_load): Change the "safe-path" help text.
7551 * configure: Regenerate
7552 * configure.ac (--without-auto-load-safe-path): Set
7553 WITH_AUTO_LOAD_SAFE_PATH to /.
7554
7555 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7556
7557 * stap-probe.h: Do not include unecessary `probe.h'.
7558
7559 2012-05-05 Alan Modra <amodra@gmail.com>
7560
7561 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7562 bfd_und_section_ptr.
7563 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7564 and bfd_com_section_ptr.
7565
7566 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7567
7568 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7569
7570 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7571
7572 * windows-nat.h (segment_register_p_ftype): New typedef.
7573 (windows_set_segment_register_p): Add declaration.
7574 * windows-nat.c (segment_register_p): New static global.
7575 (windows_set_segment_register_p): New function.
7576 (do_windows_fetch_inferior_registers): Add special handling
7577 for segment registers.
7578 * amd64-windows-nat.c: #include "amd64-tdep.h".
7579 (amd64_windows_segment_register_p): New function.
7580 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7581 * i386-windows-nat.c: #include "i386-tdep.h".
7582 (i386_windows_segment_register_p): New function.
7583 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7584
7585 2012-05-04 Tristan Gingold <gingold@adacore.com>
7586
7587 * printcmd.c (set_command): Emit a warning if the expression is not
7588 an assignment.
7589
7590 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7591
7592 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7593 Make static.
7594
7595 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7596
7597 * stap-probe.c (stap_is_operator): Change declaration.
7598 (stap_get_opcode): Change return value.
7599 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7600 `stap_parse_argument_1'.
7601
7602 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7603
7604 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7605 debug log.
7606
7607 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7608
7609 Add two new methods global_block and static_block to gdb.Symtab
7610 objects.
7611 * NEWS (Python scripting): Add entry about the new methods.
7612 * python/py-symtab.c (stpy_global_block): New function which
7613 implements the gdb.Symtab.global_block() method.
7614 (stpy_static_block): New function which implements the
7615 gdb.Symtab.static_block() method.
7616 (symtab_object_methods): Add entries for the two new methods.
7617
7618 2012-05-03 Doug Evans <dje@google.com>
7619
7620 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7621 files.
7622
7623 2012-05-03 Yao Qi <yao@codesourcery.com>
7624
7625 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7626 space.
7627 (i386_process_record): Ditto.
7628
7629 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7630
7631 * infcall.c (unwind_on_signal_p): Make static.
7632
7633 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7634
7635 * sol-thread.c (solaris_pid_to_str): Make static.
7636 (_initialize_sol_thread): Add prototype.
7637
7638 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7639
7640 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7641
7642 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7643
7644 * MAINTAINERS: Remove myself.
7645
7646 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7647
7648 Fix --without-auto-load-safe-path for MS-Windows host platform.
7649 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7650
7651 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7652
7653 * gdb_curses.h: Undefine KEY_EVENT before including curses
7654 headers. Move "#undef MOUSE_MOVED" before any curses header
7655 inclusion.
7656
7657 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7658
7659 * features/i386/i386-mmx-linux.c: Regenerate.
7660 * features/rs6000/powerpc-32.c: Likewise.
7661 * features/rs6000/powerpc-32l.c: Likewise.
7662 * features/rs6000/powerpc-403.c: Likewise.
7663 * features/rs6000/powerpc-403gc.c: Likewise.
7664 * features/rs6000/powerpc-405.c: Likewise.
7665 * features/rs6000/powerpc-505.c: Likewise.
7666 * features/rs6000/powerpc-601.c: Likewise.
7667 * features/rs6000/powerpc-602.c: Likewise.
7668 * features/rs6000/powerpc-603.c: Likewise.
7669 * features/rs6000/powerpc-604.c: Likewise.
7670 * features/rs6000/powerpc-64.c: Likewise.
7671 * features/rs6000/powerpc-64l.c: Likewise.
7672 * features/rs6000/powerpc-750.c: Likewise.
7673 * features/rs6000/powerpc-860.c: Likewise.
7674 * features/rs6000/powerpc-e500.c: Likewise.
7675 * features/rs6000/powerpc-e500l.c: Likewise.
7676 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7677 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7678 * features/rs6000/rs6000.c: Likewise.
7679
7680 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7681
7682 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7683 variable.
7684 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7685 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7686 (stap_parse_argument) <e>: Likewise.
7687 (handle_stap_probe) <byte_order>: Likewise.
7688
7689 2012-04-30 Doug Evans <dje@google.com>
7690
7691 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7692 init_and_read_dies_worker. All callers updated.
7693 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7694 replaced with init_cutu_and_read_dies.
7695 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7696 (find_partial_die): Remove FIXME. Don't free current CU.
7697
7698 2012-04-30 Sterling Augustine <saugustine@google.com>
7699
7700 * contrib: New directory.
7701 * contrib/test_pubnames_and_indexes.py: New file.
7702
7703 2012-04-30 Doug Evans <dje@google.com>
7704
7705 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7706 All callers updated.
7707 (init_cu_die_reader): Verify the section is non-empty.
7708 (dwarf_decode_line_header): Don't dereference section->asection
7709 until we know the section is present.
7710
7711 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7712
7713 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7714 probes.
7715
7716 2012-04-29 Yao Qi <yao@codesourcery.com>
7717
7718 * gdb-code-style.el: New hook gdb-markup-hook
7719 and gdb-comment-hook.
7720
7721 2012-04-28 Doug Evans <dje@google.com>
7722
7723 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7724 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7725 objfile->obfd.
7726 * symfile.h (dwarf2_debug_sections): New member addr.
7727 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7728 (ctx_no_get_addr_index): New function.
7729 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7730 (ctx_no_get_addr_index): Declare.
7731 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7732 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7733 (dwarf_expr_ctx_funcs): Update.
7734 (needs_get_addr_index): New function.
7735 (needs_frame_ctx_funcs): Update.
7736 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7737 * dwarf2read.c: #include "gdbcore.h".
7738 (dwarf2_per_objfile): New members addr, dwo_files.
7739 (dwarf2_elf_names): Add entry for addr.
7740 (struct dwo_section_names): New type.
7741 (dwo_section_names): New static global.
7742 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7743 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7744 old debug_types_section member updated to use this.
7745 Rename member debug_types_section to info_or_types_section,
7746 all uses updated.
7747 (signatured_type): Rename member type_offset to type_offset_in_tu,
7748 all uses updated. New member type_offset_in_section.
7749 (struct dwo_sections): New type.
7750 (struct dwo_unit): New type.
7751 (struct dwo_file): New type.
7752 (die_reader_specs): New member dwo_file.
7753 (dwarf2_locate_sections): Watch for .debug_addr.
7754 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7755 (dwarf2_read_section): Get bfd of section from bfd's asection,
7756 instead of objfile.
7757 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7758 (create_signatured_type_table_from_index): Initialize
7759 sig_type->info_or_types_section.
7760 (dw2_get_file_names): Statement lists for type units with DWO files
7761 live in the DWO file.
7762 (create_debug_types_hash_table): New function.
7763 (create_all_type_units): Rewrite.
7764 (init_cu_die_reader): New arg dwo_file, all callers updated.
7765 (init_and_read_dies_worker): Get section from
7766 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7767 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7768 continue reading the CU/TU from there.
7769 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7770 updated. Get section from this_cu->info_or_types_section.
7771 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7772 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7773 DW_FORM_GNU_str_index.
7774 (hash_dwo_file, eq_dwo_file): New functions.
7775 (allocate_dwo_file_hash_table): New function.
7776 (hash_dwo_unit, eq_dwo_unit): New functions.
7777 (allocate_dwo_unit_table): New function.
7778 (dwarf2_locate_dwo_sections): New function.
7779 (struct create_dwo_info_table_data): New type.
7780 (create_debug_info_hash_table_reader): New function.
7781 (create_debug_info_hash_table): New function.
7782 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7783 (lookup_dwo_file): New function.
7784 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7785 (free_dwo_file, free_dwo_file_cleanup): New functions.
7786 (free_dwo_file_from_slot, free_dwo_files): New functions.
7787 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7788 (dwarf2_record_block_ranges): Ditto.
7789 (read_partial_die): Ditto.
7790 (process_enumeration_scope): Update to use type_offset_in_section.
7791 (read_full_die_1): New function.
7792 (read_full_die): Rewrite.
7793 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7794 DW_FORM_GNU_str_index.
7795 (read_addr_index_1, read_addr_index): New functions.
7796 (read_addr_index_from_leb128): New function.
7797 (struct dwarf2_read_addr_index_data): New type.
7798 (dwarf2_read_addr_index_reader): New function.
7799 (dwarf2_read_addr_index): New function.
7800 (read_str_index): New function.
7801 (leb128_size): New function.
7802 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7803 If processing a type unit from a DWO file, get the line section
7804 from the DWO file.
7805 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7806 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7807 DW_FORM_GNU_str_index.
7808 (lookup_die_type): Check whether section offset of type's die is
7809 known before looking it up. Remove assert. Condition can
7810 legimately happen for inter-cu type references.
7811 (dwarf_attr_name): Handle Fission attributes.
7812 (dwarf_form_name): Handle Fission forms.
7813 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7814 DW_FORM_GNU_str_index.
7815 (follow_die_sig): Update to use type_offset_in_section.
7816 (decode_locdesc): New case DW_OP_GNU_addr_index.
7817 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7818 DW_FORM_GNU_str_index.
7819 (cu_debug_loc_section): New function.
7820 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7821 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7822 Free DWO files if present.
7823 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7824
7825 Refactor DIE reading.
7826 * dwarf2read.c (dwarf2_per_objfile): Replace members
7827 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7828 (die_reader_specs): New member "die_section". Temporarily make
7829 member "buffer" non-const, pending constifying all info_ptr uses.
7830 (die_reader_func_ftype): New typedef.
7831 (dw2_get_file_names_reader): New function.
7832 (dw2_get_file_names): Rewrite.
7833 (read_and_check_type_unit_head): Rename arg type_offset to
7834 type_offset_in_tu.
7835 (create_all_type_units): Improve debugging message.
7836 Improve dummy type unit check.
7837 (init_cu_die_reader): New arg "section". All callers updated.
7838 (init_and_read_dies_worker): New function.
7839 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7840 (init_cutu_and_read_dies_no_follow): New function.
7841 (init_cutu_and_read_dies_simple): New function.
7842 (process_psymtab_comp_unit_reader): New function.
7843 (process_psymtab_comp_unit): Delete args section,
7844 is_debug_types_section. Rewrite. All callers updated.
7845 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7846 All callers updated. Rewrite.
7847 (load_partial_comp_unit_reader): New function.
7848 (load_partial_comp_unit): Rewrite.
7849 (skip_children): New arg reader. Delete args buffer, cu.
7850 All callers updated.
7851 (skip_one_die): New arg reader. Delete args buffer, cu.
7852 All callers updated.
7853 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7854 All callers updated.
7855 (load_full_comp_unit_reader): New function.
7856 (load_full_comp_unit): Rewrite.
7857 (read_comp_unit): Delete.
7858 (read_die_and_children_1): Delete, contents moved ...
7859 (read_die_and_children): ... here.
7860 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7861 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7862 All callers updated.
7863 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7864 All callers updated.
7865 (find_partial_die): Rewrite load_all_dies support.
7866 (read_attribute_value): New arg reader. Delete args abfd, cu.
7867 All callers updated.
7868 (read_attribute): New arg reader. Delete args abfd, cu.
7869 All callers updated.
7870 (load_full_type_unit): Add assert.
7871 (read_signatured_type_reader): New function.
7872 (read_signatured_type): Rewrite.
7873 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7874 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7875 All callers updated. Set per_cu->cu = NULL after freeing it.
7876 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7877 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7878 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7879 (set_die_type): Update.
7880 (get_die_type_at_offset): Update.
7881 (read_file_scope): Call prepare_one_comp_unit.
7882 (read_type_unit_scope): Ditto.
7883 (prepare_one_comp_unit): Set producer if present.
7884
7885 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7886
7887 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7888 gettext function on `error'.
7889
7890 2012-04-27 Doug Evans <dje@google.com>
7891
7892 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7893 is empty.
7894
7895 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7896 Tom Tromey <tromey@redhat.com>
7897
7898 * breakpoint.c (struct breakpoint_objfile_data)
7899 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7900 <exception_probes>: New fields.
7901 (free_breakpoint_probes): New function.
7902 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7903 `_Unwind_DebugHook'.
7904 (create_exception_master_breakpoint): Likewise.
7905 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7906 * infrun.c: Including necessary header files for handling SystemTap
7907 probes.
7908 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7909 via SystemTap probes.
7910 (check_exception_resume): Remove `func' argument. Handle exception
7911 unwinding breakpoint set via a SystemTap probe.
7912 (insert_exception_resume_from_probe): New function.
7913
7914 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7915 Tom Tromey <tromey@redhat.com>
7916 Jan Kratochvil <jan.kratochvil@redhat.com>
7917
7918 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7919 (COMMON_OBS): Likewise.
7920 (HFILES_NO_SRCDIR): Add `probe'.
7921 * NEWS: Mention support for static and SystemTap probes.
7922 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7923 SystemTap probes' arguments parser.
7924 * arm-linux-tdep.c: Including headers needed to perform the parsing
7925 of SystemTap probes' arguments.
7926 (arm_stap_is_single_operand): New function.
7927 (arm_stap_parse_special_token): Likewise.
7928 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7929 probes' arguments parser.
7930 * ax-gdb.c (require_rvalue): Removing static declaration.
7931 (gen_expr): Likewise.
7932 * ax-gdb.h (gen_expr): Declaring function.
7933 (require_rvalue): Likewise.
7934 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7935 (bkpt_probe_breakpoint_ops): New variable.
7936 (momentary_breakpoint_from_master): Set the `probe' value.
7937 (add_location_to_breakpoint): Likewise.
7938 (break_command_1): Using proper breakpoint_ops according to the
7939 argument passed by the user in the command line.
7940 (bkpt_probe_insert_location): New function.
7941 (bkpt_probe_remove_location): Likewise.
7942 (bkpt_probe_create_sals_from_address): Likewise.
7943 (bkpt_probe_decode_linespec): Likewise.
7944 (tracepoint_probe_create_sals_from_address): Likewise.
7945 (tracepoint_probe_decode_linespec): Likewise.
7946 (tracepoint_probe_breakpoint_ops): New variable.
7947 (trace_command): Using proper breakpoint_ops according to the
7948 argument passed by the user in the command line.
7949 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7950 static probes on breakpoints and tracepoints.
7951 * breakpoint.h (struct bp_location) <probe>: New field.
7952 * cli-utils.c (skip_spaces_const): New function.
7953 (extract_arg): Likewise.
7954 * cli-utils.h (skip_spaces_const): Likewise.
7955 (extract_arg): Likewise.
7956 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7957 * configure.ac: Append `stap-probe.o' to be generated when ELF
7958 support is present.
7959 * configure: Regenerate.
7960 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7961 * elfread.c: Include `probe.h' and `arch-utils.h'.
7962 (probe_key): New variable.
7963 (elf_get_probes): New function.
7964 (elf_get_probe_argument_count): Likewise.
7965 (elf_evaluate_probe_argument): Likewise.
7966 (elf_compile_to_ax): Likewise.
7967 (elf_symfile_relocate_probe): Likewise.
7968 (stap_probe_key_free): Likewise.
7969 (elf_probe_fns): New variable.
7970 (elf_sym_fns): Add `sym_probe_fns' value.
7971 (elf_sym_fns_lazy_psyms): Likewise.
7972 (elf_sym_fns_gdb_index): Likewise.
7973 (_initialize_elfread): Initialize objfile cache for static
7974 probes.
7975 * gdb_vecs.h (struct probe): New forward declaration.
7976 (probe_p): New VEC declaration.
7977 * gdbarch.c: Regenerate.
7978 * gdbarch.h: Regenerate.
7979 * gdbarch.sh (stap_integer_prefix): New variable.
7980 (stap_integer_suffix): Likewise.
7981 (stap_register_prefix): Likewise.
7982 (stap_register_suffix): Likewise.
7983 (stap_register_indirection_prefix): Likewise.
7984 (stap_register_indirection_suffix): Likewise.
7985 (stap_gdb_register_prefix): Likewise.
7986 (stap_gdb_register_suffix): Likewise.
7987 (stap_is_single_operand): New function.
7988 (stap_parse_special_token): Likewise.
7989 (struct stap_parse_info): Forward declaration.
7990 * i386-tdep.c: Including headers needed to perform the parsing
7991 of SystemTap probes' arguments.
7992 (i386_stap_is_single_operand): New function.
7993 (i386_stap_parse_special_token): Likewise.
7994 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7995 probes' arguments parser.
7996 * i386-tdep.h (i386_stap_is_single_operand): New function.
7997 (i386_stap_parse_special_token): Likewise.
7998 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7999 * mipsread.c (ecoff_sym_fns): Likewise.
8000 * objfiles.c (objfile_relocate1): Support relocation for static
8001 probes.
8002 * parse.c (prefixify_expression): Remove static declaration.
8003 (initialize_expout): Likewise.
8004 (reallocate_expout): Likewise.
8005 * parser-defs.h (initialize_expout): Declare function.
8006 (reallocate_expout): Likewise.
8007 (prefixify_expression): Likewise.
8008 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8009 of SystemTap probes' arguments.
8010 (ppc_stap_is_single_operand): New function.
8011 (ppc_stap_parse_special_token): Likewise.
8012 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8013 probes' arguments parser.
8014 * probe.c: New file, for generic statically defined probe support.
8015 * probe.h: Likewise.
8016 * s390-tdep.c: Including headers needed to perform the parsing of
8017 SystemTap probes' arguments.
8018 (s390_stap_is_single_operand): New function.
8019 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8020 probes' arguments parser.
8021 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8022 * stap-probe.c: New file, for SystemTap probe support.
8023 * stap-probe.h: Likewise.
8024 * symfile.h: Include `gdb_vecs.h'.
8025 (struct sym_probe_fns): New struct.
8026 (struct sym_fns) <sym_probe_fns>: New field.
8027 * symtab.c (init_sal): Initialize `probe' field.
8028 * symtab.h (struct probe): Forward declaration.
8029 (struct symtab_and_line) <probe>: New field.
8030 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8031 locations.
8032 (stop_tracing): Likewise.
8033 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8034
8035 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8036 Tom Tromey <tromey@redhat.com>
8037
8038 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8039 and to compile agent expressions.
8040 * infrun.c (siginfo_make_value): New argument `ignore'.
8041 (siginfo_funcs): New struct.
8042 (_initialize_infrun): New argument when calling
8043 `create_internalvar_type_lazy'.
8044 * thread.c (thread_id_make_value): New argument `ignore'.
8045 (thread_funcs): New struct.
8046 (_initialize_thread): New argument when calling
8047 `create_internalvar_type_lazy'.
8048 * tracepoint.c (sdata_make_value): New argument `ignore'.
8049 (sdata_funcs): New struct.
8050 (_initialize_tracepoint): New argument when calling
8051 `create_internalvar_type_lazy'.
8052 * value.c (make_value): New struct.
8053 (create_internalvar_type_lazy): New argument `data'.
8054 (compile_internalvar_to_ax): New function.
8055 (value_of_internalvar): Properly handling `make_value' case.
8056 (clear_internalvar): Likewise.
8057 (show_convenience): Adding `TRY_CATCH' block.
8058 * value.h (internalvar_make_value): Delete, replace by...
8059 (struct internalvar_funcs): ... this.
8060 (create_internalvar_type_lazy) <fun>: Delete argument.
8061 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8062 (compile_internalvar_to_ax): New function.
8063 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8064 (tlb_funcs): New struct.
8065 (_initialize_windows_tdep): New argument when calling
8066 `create_internalvar_type_lazy'.
8067
8068 2012-04-27 Mark Wielaard <mjw@redhat.com>
8069
8070 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8071 see whether it is an address or a constant offset from DW_AT_low_pc.
8072 (dwarf2_record_block_ranges): Likewise.
8073 (read_partial_die): Likewise.
8074
8075 2012-04-26 Mark Wielaard <mjw@redhat.com>
8076
8077 * MAINTAINERS (Write After Approval): Add myself to the list.
8078
8079 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8080
8081 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8082 (proc_prettyprint_signal): Likewise.
8083 (proc_prettyprint_faultset): Likewise.
8084 (proc_prettyprint_fault): Likewise.
8085 (proc_prettyprint_actionset): Likewise.
8086 (proc_prettyprint_flags): Move to new proc-flags.c section.
8087 (proc_prettyfprint_flags): New prototype.
8088 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8089 (proc_syscall, proc_cursig): Likewise.
8090 (proc_set_kill_on_last_close): Likewise.
8091 (proc_unset_kill_on_last_close): Likewise.
8092 (proc_set_watchpoint): Make static.
8093 (proc_delete_dead_threads): Likewise.
8094 (procfs_set_watchpoint): Likewise.
8095 (_initialize_procfs): Add prototype.
8096 * proc-events.c: Include proc-utils.h.
8097 (init_syscall_table): Make static.
8098 * proc-api.c (_initialize_proc_api): Add prototype.
8099 * proc-flags.c: Include proc-utils.h.
8100
8101 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8102
8103 * configure.ac: Add AC_ARG_PROGRAM.
8104 * configure: Regenerate.
8105
8106 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8107
8108 Fix DW_AT_lower_bound defaults for DWARF-4+.
8109 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8110 high. New variable low_default_is_valid. Implement DWARF-4+
8111 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8112 no default by the DWARF standard.
8113
8114 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8115 Maciej W. Rozycki <macro@codesourcery.com>
8116
8117 * infrun.c (handle_inferior_event): Move the check for return
8118 trampolines ahead of the check for function trampolines.
8119 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8120 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8121 (mips_str_mips16_ret_stub): Likewise.
8122 (mips_str_call_fp_stub): Likewise.
8123 (mips_str_call_stub): Likewise.
8124 (mips_str_fn_stub): Likewise.
8125 (mips_str_pic): Likewise.
8126 (mips_in_frame_stub): New function.
8127 (mips_unwind_pc): Return the return address rather than the PC
8128 if the PC of an intermediate frame is inside a call thunk.
8129 (mips_is_stub_suffix): New function.
8130 (mips_is_stub_mode): Likewise.
8131 (mips_get_mips16_fn_stub_pc): Likewise.
8132 (mips_skip_mips16_trampoline_code): Update to handle all the
8133 currently generated stub types. Don't recurse into __fn_stub
8134 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8135 Use cooked register accesses.
8136 (mips_in_return_stub): Reintroduce function.
8137 (mips_skip_trampoline_code): Traverse trampolines recursively.
8138 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8139
8140 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8141
8142 GDB 7.4.1 released.
8143
8144 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8145
8146 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8147 * features/arm-with-m-vfp-d16.xml: New file. Describes
8148 Cortex-M with VFPv4-sp-d16 FPU register layout.
8149 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8150 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8151 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8152 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8153 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8154
8155 2012-04-25 Doug Evans <dje@google.com>
8156
8157 * cli/cli-decode.c (print_doc_line): Use stream instead of
8158 current_uiout.
8159
8160 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8161
8162 * features/arm-with-iwmmxt.c: Regenerate.
8163 * features/arm-with-m-fpa-layout.c: Likewise.
8164 * features/arm-with-m.c: Likewise.
8165 * features/arm-with-neon.c: Likewise.
8166 * features/arm-with-vfpv2.c: Likewise.
8167 * features/arm-with-vfpv3.c: Likewise.
8168 * features/mips-dsp-linux.c: Likewise.
8169 * features/mips-linux.c: Likewise.
8170 * features/mips64-dsp-linux.c: Likewise.
8171 * features/mips64-linux.c: Likewise.
8172 * features/s390-linux32.c: Likewise.
8173 * features/s390-linux32v1.c: Likewise.
8174 * features/s390-linux32v2.c: Likewise.
8175 * features/s390-linux64.c: Likewise.
8176 * features/s390-linux64v1.c: Likewise.
8177 * features/s390-linux64v2.c: Likewise.
8178 * features/s390x-linux64.c: Likewise.
8179 * features/s390x-linux64v1.c: Likewise.
8180 * features/s390x-linux64v2.c: Likewise.
8181 * features/tic6x-c62x-linux.c: Likewise.
8182 * features/tic6x-c62x.c: Likewise.
8183 * features/tic6x-c64x-linux.c: Likewise.
8184 * features/tic6x-c64x.c: Likewise.
8185 * features/tic6x-c64xp-linux.c: Likewise.
8186 * features/tic6x-c64xp.c: Likewise.
8187 * target-descriptions.c: Only generate `field_type' and `type'
8188 variables when needed.
8189
8190 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8191
8192 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8193
8194 2012-04-25 Doug Evans <dje@google.com>
8195
8196 Initial pass at Go language support.
8197 * NEWS: Mention Go.
8198 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8199 go-valprint.c.
8200 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8201 (YYFILES): Add go-exp.c.
8202 (YYOBJ): Add go-exp.o.
8203 (local-maintainer-clean): Delete go-exp.c.
8204 * defs.h (enum language): Add language_go.
8205 * dwarf2read.c: #include "go-lang.h".
8206 (fixup_go_packaging): New function.
8207 (process_full_comp_unit): Call it when processing Go CUs.
8208 (dwarf2_physname): Add Go support.
8209 (read_file_scope): Handle missing language spec for GNU Go.
8210 (set_cu_language): Handle DW_LANG_Go.
8211 * go-exp.y: New file.
8212 * go-lang.h: New file.
8213 * go-lang.c: New file.
8214 * go-typeprint.c: New file.
8215 * go-valprint.c: New file.
8216 * symtab.c: #include "go-lang.h".
8217 (symbol_set_language): Handle language_go.
8218 (symbol_find_demangled_name, symbol_set_names): Ditto.
8219 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8220
8221 2012-04-24 Jim Meyering <meyering@redhat.com>
8222
8223 avoid a few strncpy-induced buffer overruns
8224 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8225 fname and psargs before trying to concatenate.
8226 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8227 "name" before applying strchr.
8228
8229 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8230
8231 * CONTRIBUTE: Use unified diff instead of context diff when
8232 generating patches.
8233
8234 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8235
8236 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8237 code. Handle JR.HB correctly.
8238
8239 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8240
8241 * mips-tdep.c
8242 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8243 with the other MIPS16 helpers.
8244
8245 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8246
8247 * observer.sh: Conditionally declare `args', thus cleaning up
8248 unused instances of this variable.
8249
8250 2012-04-24 Yao Qi <yao@codesourcery.com>
8251
8252 Revert this patch to allow breakpoint always-inserted
8253 in record target.
8254 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8255 * breakpoint.c: Include record.h.
8256 (breakpoints_always_inserted_mode): Return false when the record
8257 target is in use.
8258
8259 * breakpoint.c (iterate_over_bp_locations): New.
8260 * breakpoint.h: Declare.
8261 New typedef walk_bp_location_callback.
8262 * record.c (record_open): Call record_init_record_breakpoints.
8263 (record_sync_record_breakpoints): New.
8264 (record_init_record_breakpoints): New.
8265 * NEWS: Mention supporting breakpoint always-inserted mode in
8266 record target.
8267
8268 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8269
8270 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8271 any thread.
8272
8273 2012-04-24 Yao Qi <yao@codesourcery.com>
8274
8275 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8276 (is_catchpoint): ... it.
8277 (print_one_breakpoint_location): Caller update.
8278 * breakpoint.h: Update declaration.
8279
8280 2012-04-23 David S. Miller <davem@davemloft.net>
8281
8282 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8283
8284 2012-04-23 Tom Tromey <tromey@redhat.com>
8285
8286 * buildsym.c (add_free_pendings): Remove.
8287 * buildsym.h (add_free_pendings): Remove.
8288
8289 2012-04-23 Doug Evans <dje@google.com>
8290
8291 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8292 attr.u.unsnd instead of attr.u.addr.
8293 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8294 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8295 DW_FORM_ref_udata.
8296 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8297 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8298 DW_FORM_ref_udata.
8299 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8300
8301 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8302
8303 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8304 (mips_o32_return_value): Likewise.
8305 (mips_o64_return_value): Likewise.
8306
8307 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8308
8309 * ada-lang.c (ada_evaluate_subexp): Add cases for
8310 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8311 their treatment in eval.c.
8312
8313 2012-04-21 David S. Miller <davem@davemloft.net>
8314
8315 * sparc-tdep.c (X_DISP10): Define.
8316 (sparc_analyze_control_transfer): Handle compare-and-branch.
8317
8318 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8319
8320 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8321 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8322
8323 2012-04-20 Nigel Stephens <nigel@mips.com>
8324 Maciej W. Rozycki <macro@codesourcery.com>
8325
8326 * mips-tdep.c (mips_float_register_p): New function.
8327 (mips_convert_register_float_case_p): Use mips_float_register_p.
8328 (mips_register_type): Likewise.
8329 (mips_print_register): Likewise.
8330 (print_gp_register_row): Likewise.
8331 (mips_print_registers_info): Likewise.
8332
8333 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8334
8335 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8336 of mips16 symbols.
8337
8338 2012-04-20 Andrew Pinski <apinski@cavium.com>
8339
8340 * MAINTAINERS (Write After Approval): Add myself to the list.
8341
8342 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8343
8344 * MAINTAINERS: Update my e-mail address.
8345
8346 2012-04-20 Pedro Alves <palves@redhat.com>
8347
8348 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8349 $srcdir.
8350 * configure: Regenerate.
8351
8352 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8353
8354 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8355 declaration.
8356 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8357
8358 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8359
8360 Fix compilation compatibility with python-2.4
8361 * python/py-type.c (convert_field): Cast ADDRSTRING for
8362 PyObject_SetAttrString as non-const. New comment.
8363
8364 2012-04-19 Tom Tromey <tromey@redhat.com>
8365
8366 * top.c (quit_target): Use all_cleanups.
8367 * main.c (captured_command_loop): Use all_cleanups.
8368 * exceptions.c (throw_exception): Use all_cleanups.
8369
8370 2012-04-19 Pedro Alves <palves@redhat.com>
8371
8372 * Makefile.in (GNULIB_BUILDDIR): New.
8373 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8374 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8375 (CLEANDIRS). Remove gnulib/import.
8376 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8377 (all-lib): Ditto.
8378 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8379 (gnulib/import/Makefile): Replace gnulib/import with
8380 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8381 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8382 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8383 acx_configure_dir.m4.
8384 * acinclude.m4: Include acx_configure_dir.m4.
8385 * acx_configure_dir.m4: New file.
8386 * aclocal.m4: Regenerate.
8387 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8388 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8389 (GNULIB): New variable.
8390 (GNULIB_STDINT_H): Adjust.
8391 (AC_OUTPUT): Don't output gnulib/Makefile.
8392 * gdb/defs.h: Include build-gnulib/config.h.
8393 * aclocal.m4: Regenerate.
8394 * config.in: Regenerate.
8395 * configure: Regenerate.
8396
8397 * gnulib/Makefile.in: New file.
8398 * gnulib/configure.ac: New file.
8399 * gnulib/aclocal.m4: New file.
8400 * gnulib/config.in: New file.
8401 * gnulib/configure: New file.
8402 * gnulib/: Re-run gnulib-tool to adjust.
8403
8404 2012-04-19 Doug Evans <dje@google.com>
8405
8406 * cleanups.h (struct cleanup): Move to cleanups.c.
8407 (make_cleanup_dtor_ftype): New typedef.
8408 (make_cleanup_dtor): Use it.
8409 (ALL_CLEANUPS): Replace with ...
8410 (all_cleanups): ... this. Declare. All uses updated.
8411 * cleanups.c: #include "gdb_assert.h".
8412 (sentinel_cleanup): New static global.
8413 (SENTINEL_CLEANUP): Define.
8414 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8415 (make_my_cleanup2): Assert result is non-NULL.
8416 (all_cleanups): New function.
8417 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8418 of NULL.
8419
8420 2012-04-19 Pedro Alves <palves@redhat.com>
8421
8422 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8423 Adjust paths to gnulib imported files.
8424
8425 2012-04-19 Pedro Alves <palves@redhat.com>
8426
8427 * gnulib/: Move whole directory ...
8428 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8429 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8430 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8431 (aclocal_m4_deps): Adjust.
8432 * aclocal.m4: Regenerate.
8433 * configure: Regenerate.
8434 * configure.ac: Adjust AC_OUTPUT output.
8435
8436 2012-04-19 Yao Qi <yao@codesourcery.com>
8437
8438 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8439 (vec.o): New rule.
8440 * vec.c: Move it ...
8441 * common/vec.c: ... here.
8442 * vec.h: Move it ...
8443 * common/vec.h: ... here.
8444
8445 2012-04-19 Yao Qi <yao@codesourcery.com>
8446
8447 * gdb-code-style.el: New.
8448
8449 2012-04-18 Pedro Alves <palves@redhat.com>
8450
8451 Update gnulib from latest git.
8452 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8453
8454 * gnulib/Makefile.am: Update.
8455 * gnulib/dummy.c: Update.
8456 * gnulib/extra/arg-nonnull.h: Update.
8457 * gnulib/extra/c++defs.h: Update.
8458 * gnulib/extra/update-copyright: Update.
8459 * gnulib/extra/warn-on-use.h: Update.
8460 * gnulib/inttypes.in.h: Update.
8461 * gnulib/m4/00gnulib.m4: Update.
8462 * gnulib/m4/extensions.m4: Update.
8463 * gnulib/m4/gnulib-cache.m4: Update.
8464 * gnulib/m4/gnulib-common.m4: Update.
8465 * gnulib/m4/gnulib-comp.m4: Update.
8466 * gnulib/m4/gnulib-tool.m4: Update.
8467 * gnulib/m4/include_next.m4: Update.
8468 * gnulib/m4/inttypes-pri.m4: Update.
8469 * gnulib/m4/inttypes.m4: Update.
8470 * gnulib/m4/longlong.m4: Update.
8471 * gnulib/m4/memchr.m4: Update.
8472 * gnulib/m4/memmem.m4: Update.
8473 * gnulib/m4/mmap-anon.m4: Update.
8474 * gnulib/m4/multiarch.m4: Update.
8475 * gnulib/m4/onceonly.m4: Update.
8476 * gnulib/m4/stddef_h.m4: Update.
8477 * gnulib/m4/stdint.m4: Update.
8478 * gnulib/m4/string_h.m4: Update.
8479 * gnulib/m4/warn-on-use.m4: Update.
8480 * gnulib/m4/wchar_h.m4: Update.
8481 * gnulib/m4/wchar_t.m4: Update.
8482 * gnulib/m4/wint_t.m4: Update.
8483 * gnulib/memchr.c: Update.
8484 * gnulib/memmem.c: Update.
8485 * gnulib/stddef.in.h: Update.
8486 * gnulib/stdint.in.h: Update.
8487 * gnulib/str-two-way.h: Update.
8488 * gnulib/string.in.h: Update.
8489 * gnulib/wchar.in.h: Update.
8490
8491 * gnulib/extra/arg-nonnull.h: Delete.
8492 * gnulib/extra/c++defs.h: Delete.
8493 * gnulib/extra/warn-on-use.h: Delete.
8494 * gnulib/m4/wchar_h.m4: Delete.
8495 * gnulib/m4/wint_t.m4: Delete.
8496 * gnulib/wchar.in.h: Delete.
8497
8498 * gnulib/extra/snippets/arg-nonnull.h: New.
8499 * gnulib/extra/snippets/c++defs.h: New.
8500 * gnulib/extra/snippets/warn-on-use.h: New.
8501
8502 * aclocal.m4: Regenerate.
8503 * config.in: Regenerate.
8504 * configure: Regenerate.
8505 * gnulib/Makefile.in: Regenerate.
8506
8507 2012-04-18 Pedro Alves <palves@redhat.com>
8508
8509 Reimport the update-copyright module from gnulib
8510 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8511
8512 * configure: Regenerate.
8513 * gnulib/Makefile.am: Update.
8514 * gnulib/Makefile.in: Regenerate.
8515 * gnulib/extra/update-copyright: Update.
8516 * gnulib/m4/gnulib-cache.m4: Update.
8517 * gnulib/m4/gnulib-comp.m4: Update.
8518
8519 2012-04-18 Tristan Gingold <gingold@adacore.com>
8520
8521 * configure.ac (aix): Put -lpthread into libs.
8522 * configure: Regenerate.
8523
8524 2012-04-18 Tom Tromey <tromey@redhat.com>
8525
8526 * linespec.c (convert_linespec_to_sals): Don't use
8527 SYMBOL_OBJ_SECTION.
8528 (compare_msymbols): Arguments are minsym_and_objfile, not
8529 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8530
8531 2012-04-18 Pedro Alves <palves@redhat.com>
8532
8533 Revert gnulib/ part of:
8534 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8535 Copyright year update in most files (performed by copyright.sh).
8536
8537 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8538
8539 Fix 64-bit constants on 32-bit hosts.
8540 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8541 from unsigned long to ULONGEST.
8542 (read_signed_leb128): Change declaration return type from long to
8543 LONGEST.
8544 (dwarf2_const_value_attr): Change declaration parameter value from long
8545 to LONGEST.
8546 (dwarf2_compute_name): Change variable value from long to LONGEST.
8547 (read_unsigned_leb128): Change return type, variable result and some
8548 casts from unsigned long to ULONGEST.
8549 (read_signed_leb128): Change return type, variable result and some
8550 casts from long to LONGEST.
8551 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8552 value from long to LONGEST.
8553 (dwarf2_const_value): Change variable value from long to LONGEST.
8554 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8555 plongest and hex_string.
8556 * symtab.h (struct general_symbol_info): Change ivalue from long to
8557 LONGEST, remove the comment.
8558 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8559 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8560
8561 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8562
8563 PR symtab/7259:
8564 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8565 * ada-lang.c (ada_discrete_type_high_bound)
8566 (ada_discrete_type_low_bound): Fix function comment. Use
8567 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8568 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8569 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8570 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8571 Use TYPE_FIELD_ENUMVAL.
8572 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8573 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8574 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8575 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8576 TYPE_CODE_ENUM.
8577 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8578 * dwarf2read.c (process_enumeration_scope): Likewise.
8579 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8580 field.bitpos.
8581 (class StructMainTypePrettyPrinter): Support also
8582 FIELD_LOC_KIND_ENUMVAL.
8583 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8584 TYPE_CODE_ENUM.
8585 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8586 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8587 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8588 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8589 field enumval.
8590 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8591 accommodate enumval.
8592 (struct call_site): Adjust loc_kind to accommodate enumval.
8593 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8594 (TYPE_FIELD_ENUMVAL): New macros.
8595 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8596 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8597 TYPE_CODE_ENUM.
8598 * p-typeprint.c (pascal_type_print_base): Likewise.
8599 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8600 enumval.
8601 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8602 * python/py-type.c (convert_field): New variable addrstring. Use
8603 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8604 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8605 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8606 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8607 TYPE_CODE_ENUM.
8608 * valprint.c (generic_val_print): Likewise.
8609
8610 2012-04-17 Doug Evans <dje@google.com>
8611
8612 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8613
8614 * dwarf2read.c: Whitespace fixes.
8615 (lookup_signatured_type): Tweak comment.
8616 (get_die_type_at_offset): Fix comment.
8617
8618 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8619
8620 * xcoffread.c (xcoff_secnum_to_sections): New function.
8621 (secnum_to_section, secnum_to_bfd_section): Reimplement
8622 using xcoff_secnum_to_sections. Rename "secnum" parameter
8623 into "n_scnum".
8624 (RECORD_MINIMAL_SYMBOL): Delete.
8625 (record_minimal_symbol): New function.
8626 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8627 by call to record_minimal_symbol and set misc_func_recorded
8628 to 1. Set last_csect_sec to the XCOFF section index instead
8629 of GDB's section_offset index. Update calls to
8630 prim_record_minimal_symbol_and_info to pass the BFD section
8631 as well.
8632
8633 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8634
8635 * xcoffread.c (read_xcoff_symtab): Delete variables
8636 last_csect_val and last_csect_sec and associated code.
8637
8638 2012-04-17 Doug Evans <dje@google.com>
8639
8640 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8641 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8642 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8643 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8644
8645 * cleanups.h: New file.
8646 * cleanups.c: New file.
8647 * Makefile.in (SFILES): Add cleanups.c.
8648 (HFILES_NO_SRCDIR): Add cleanups.h.
8649 (COMMON_OBS): Add cleanups.o.
8650 * defs.h (struct cleanup): Moved to cleanups.h.
8651 (do_cleanups,do_final_cleanups): Ditto.
8652 (discard_cleanups,discard_final_cleanups): Ditto
8653 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8654 (save_cleanups,save_final_cleanups): Ditto.
8655 (restore_cleanups,restore_final_cleanups): Ditto.
8656 (null_cleanup): Ditto.
8657 (make_my_cleanup,make_my_cleanup2): Ditto.
8658 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8659 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8660 (do_cleanups,do_final_cleanups): Ditto.
8661 (discard_cleanups,discard_final_cleanups): Ditto
8662 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8663 (save_cleanups,save_final_cleanups): Ditto.
8664 (restore_cleanups,restore_final_cleanups): Ditto.
8665 (null_cleanup): Ditto.
8666 (make_my_cleanup,make_my_cleanup2): Ditto.
8667 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8668
8669 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8670 make_my_cleanup.
8671 (make_cleanup_dyn_string_delete): Ditto.
8672 (make_cleanup_ui_file_delete): Ditto.
8673 (make_cleanup_ui_out_redirect_pop): Ditto.
8674 (make_cleanup_free_section_addr_info): Ditto.
8675 (make_cleanup_restore_integer): Ditto.
8676 (make_cleanup_unpush_target): Ditto.
8677 (make_cleanup_value_free_to_mark): Ditto.
8678 (make_cleanup_value_free): Ditto.
8679 (make_cleanup_free_so): Ditto.
8680
8681 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8682
8683 New option "set debug auto-load".
8684 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8685 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8686 (auto_load_safe_path_vec_update)
8687 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8688 if DEBUG_AUTO_LOAD.
8689 (file_is_auto_load_safe): New parameters debug_fmt and ....
8690 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8691 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8692 caller by explanatory string.
8693 (_initialize_auto_load): Register "set debug auto-load".
8694 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8695 and ....
8696 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8697 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8698 by explanatory string.
8699 * main.c (captured_main): Likewise.
8700 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8701 (source_section_scripts): Likewise.
8702
8703 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8704
8705 New option "set auto-load safe-path".
8706 * NEWS: New commands "set auto-load safe-path"
8707 and "show auto-load safe-path".
8708 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8709 (auto_load_safe_path, auto_load_safe_path_vec)
8710 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8711 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8712 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8713 (source_gdb_script_for_objfile): New variable is_safe. Call
8714 file_is_auto_load_safe. Return if it is not.
8715 (struct loaded_script): New field loaded.
8716 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8717 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8718 output "Missing" to "No".
8719 (_initialize_auto_load): New variable cmd. Initialize
8720 auto_load_safe_path. Register "set auto-load safe-path",
8721 "show auto-load safe-path" and "add-auto-load-safe-path".
8722 * auto-load.h (maybe_add_script): Add parameter loaded.
8723 (file_is_auto_load_safe): New declaration.
8724 * config.in: Regenerate.
8725 * configure: Regenerate.
8726 * configure.ac: New parameters --with-auto-load-safe-path
8727 and --without-auto-load-safe-path.
8728 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8729 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8730 * main.c (captured_main): Check file_is_auto_load_safe for
8731 LOCAL_GDBINIT.
8732 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8733 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8734 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8735 not.
8736
8737 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8738
8739 auto-load: Implementation.
8740 * NEWS: New descriptions for "info auto-load",
8741 "info auto-load gdb-scripts", "info auto-load python-scripts",
8742 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8743 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8744 and "show auto-load-scripts". New description for "set auto-load",
8745 "show auto-load", "set auto-load gdb-scripts",
8746 "show auto-load gdb-scripts", "set auto-load python-scripts",
8747 "show auto-load python-scripts", "set auto-load local-gdbinit",
8748 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8749 "show auto-load libthread-db".
8750 * auto-load.c: Remove include python/python-internal.h. Add includes
8751 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8752 cli/cli-setshow.h.
8753 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8754 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8755 (gdbpy_global_auto_load): Rename to ...
8756 (global_auto_load): ... here.
8757 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8758 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8759 (script_language_gdb, source_gdb_script_for_objfile): New.
8760 (struct loaded_script): New field language.
8761 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8762 LANGUAGE.
8763 (maybe_add_script): Add parameter language. Drop redundant
8764 entry.full_path initialization. Initialize entry.language and
8765 (*slot)->language.
8766 (auto_load_objfile_script): Change parameter suffix to language.
8767 Remove the call of maybe_add_script.
8768 Call language->source_script_for_objfile.
8769 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8770 New.
8771 (collect_matching_scripts): Adjust it for
8772 struct collect_matching_scripts_data.
8773 (auto_load_info_scripts_pattern_nl): New variable.
8774 (info_auto_load_scripts): Rename to ...
8775 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8776 for struct collect_matching_scripts_data.
8777 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8778 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8779 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8780 (auto_load_info_cmdlist_get): New.
8781 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8782 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8783 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8784 "info auto-load local-gdbinit".
8785 * auto-load.h (struct script_language): New.
8786 (gdbpy_global_auto_load): Rename to ...
8787 (global_auto_load): ... here.
8788 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8789 (auto_load_local_gdbinit_loaded): New declarations.
8790 (maybe_add_script): New parameter language.
8791 (auto_load_objfile_script): Change parameter suffix to language.
8792 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8793 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8794 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8795 declarations.
8796 * linux-thread-db.c: Include auto-load.h and ctype.h.
8797 (auto_load_thread_db, show_auto_load_thread_db): New.
8798 (struct thread_db_info): New field filename.
8799 (delete_thread_db_info): Call xfree for FILENAME.
8800 (try_thread_db_load): Initialize FILENAME.
8801 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8802 if !AUTO_LOAD_THREAD_DB.
8803 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8804 (_initialize_thread_db): Install auto_load_thread_db
8805 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8806 as "info auto-load libthread-db".
8807 * main.c (captured_main): Rename gdbpy_global_auto_load to
8808 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8809 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8810 (print_gdb_help): Extend the help for 'local init file'.
8811 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8812 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8813 (auto_load_scripts): Rename to ...
8814 (auto_load_python_scripts): ... here, update the comment.
8815 (gdbpy_load_auto_script_for_objfile): New declaration.
8816 (show_auto_load_python_scripts, script_language_python)
8817 (gdbpy_load_auto_script_for_objfile): New.
8818 (source_section_scripts): Refactor the code.
8819 (load_auto_scripts_for_objfile): Rename to ...
8820 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8821 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8822 (info_auto_load_python_scripts): New.
8823 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8824 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8825 Register "set auto-load-scripts" as its deprecated alias. Register
8826 "info auto-load python-scripts". Register "info auto-load-scripts" as
8827 its deprecated alias.
8828 (load_auto_scripts_for_objfile): Rename to ...
8829 (gdbpy_load_auto_scripts_for_objfile): ... here.
8830 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8831 (gdbpy_load_auto_scripts_for_objfile): ... here.
8832
8833 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8834
8835 auto-load: Move files.
8836 * Makefile.in (SFILES): Add auto-load.c.
8837 (HFILES_NO_SRCDIR): Add auto-load.h.
8838 (COMMON_OBS): Add auto-load.o.
8839 (distclean): Change .gdbinit for gdb-gdb.gdb.
8840 * auto-load.c: New file, with parts from python/py-auto-load.c.
8841 * auto-load.h: New file, with parts from python/python.h.
8842 * configure: Regenerate.
8843 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8844 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8845 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8846 * main.c: Include auto-load.h.
8847 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8848 command.h, observer.h and progspace.h to auto-load.c. Add include
8849 auto-load.h.
8850 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8851 (struct loaded_script, auto_load_pspace_data)
8852 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8853 (hash_loaded_script_entry, eq_loaded_script_entry)
8854 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8855 (maybe_add_script): Move to auto-load.c.
8856 (source_section_scripts): Change maybe_add_script parameters passing,
8857 use script_not_found_warning_print.
8858 (clear_section_scripts, auto_load_objfile_script)
8859 (auto_load_new_objfile, loaded_script_ptr)
8860 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8861 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8862 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8863 auto_load_new_objfile and info_auto_load_scripts initizations to
8864 auto-load.c.
8865 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8866
8867 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8868
8869 Code cleanup.
8870 * charset.c (find_charset_names): Remove variables ix and elt.
8871 Use free_char_ptr_vec.
8872 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8873 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8874 debugdir_end. New variable debugdir_len.
8875 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8876 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8877 declarations.
8878 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8879 and elt. Use free_char_ptr_vec.
8880 * source.c (add_path): Remove variables argv, arg and argv_index.
8881 New variables dir_vec, back_to, ix and name.
8882 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8883 make_cleanup_freeargv. Remove variable separator. Simplify the code
8884 no longer expecting DIRNAME_SEPARATOR.
8885 (openp): Remove variable p, p1 and len. New variables dir_vec,
8886 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8887 no longer expecting DIRNAME_SEPARATOR.
8888 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8889 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8890 debugdir_end.
8891 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8892 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8893 (dirnames_to_char_ptr_vec): New functions.
8894
8895 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8896
8897 Code cleanup.
8898 * source.c (add_path): Remove always true conditional 'p == 0' and
8899 unindent its code block.
8900
8901 2012-04-17 Pedro Alves <palves@redhat.com>
8902
8903 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8904 (FIELD_BITPOS_LVAL): ... this.
8905 (FIELD_BITPOS): New.
8906 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8907 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8908 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8909 SET_FIELD_BITPOS.
8910 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8911 SET_FIELD_BITPOS.
8912 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8913 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8914 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8915 SET_FIELD_BITPOS.
8916
8917 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8918
8919 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8920 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8921 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8922 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8923 * jv-lang.c (java_link_class_type): Likewise, once.
8924 * stabsread.c (read_enum_type): Likewise.
8925
8926 2012-04-16 Yao Qi <yao@codesourcery.com>
8927
8928 * common/agent.c (agent_run_command): Add one more parameter `len'.
8929 Update callers.
8930 * common/agent.h: Update declaration.
8931 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8932 Update.
8933 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8934
8935 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8936
8937 PR mi/13393
8938 * value.c (value_actual_type): New function.
8939 * value.h (value_actual_type): New declaration.
8940 * varobj.c (update_type_if_necessary): New function.
8941 (varobj_create): Call value_actual_type instead of
8942 value_type.
8943 (install_dynamic_child): distinct changed and type changed MI variable
8944 objects.
8945 (update_dynamic_varobj_children): Updated for install_dynamic_child
8946 change. All callers updated.
8947 (varobj_update): Support for MI variable object type change if
8948 the value changed and RTTI is used to determine the type.
8949 (create_child_with_value): Call value_actual_type instead of
8950 value_type.
8951 (adjust_value_for_child_access): Extended with a new parameter which
8952 specify whether the given value should be casted to enclosing type.
8953 All callers updated.
8954
8955 2012-04-14 Yao Qi <yao@codesourcery.com>
8956
8957 Import gnulib module inttypes from git
8958 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8959 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8960 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8961 gnulib/m4/inttypes-pri.m4
8962 * aclocal.m4, config.in, configure: Regenerated.
8963 * gnulib/Makefile.am: Update.
8964 * gnulib/Makefile.in: Update.
8965 * gnulib/m4/gnulib-cache.m4: Update.
8966 * gnulib/m4/gnulib-comp.m4: Update.
8967 * gnulib/inttypes.in.h: New.
8968 * gnulib/m4/inttypes-pri.m4: New.
8969 * gnulib/m4/inttypes.m4: New.
8970
8971 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8972
8973 * infrun.c (resume): Update PC address to the real PC after
8974 preparing to do displaced stepping.
8975
8976 2012-04-12 Doug Evans <dje@google.com>
8977
8978 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8979 All callers updated.
8980
8981 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8982
8983 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8984
8985 2012-04-12 Doug Evans <dje@google.com>
8986
8987 * dwarf2read.c (create_all_type_units): Renamed from
8988 create_debug_types_hash_table. All callers updated.
8989
8990 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8991 local type_sig to sig_type, type_offset to type_offset_in_tu.
8992 (hash_signatured_type): Renamed from hash_type_signature,
8993 all callers updated.
8994 (eq_signatured_type): Renamed from eq_type_signature,
8995 all callers updated.
8996 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8997 (process_enumeration_scope): Ditto.
8998 (lookup_signatured_type_at_offset): Ditto.
8999 (load_full_type_unit, read_signatured_type): Ditto.
9000
9001 2012-04-12 Yao Qi <yao@codesourcery.com>
9002
9003 * remote.c (async_remote_interrupt): Correct function name in
9004 debug message.
9005 (async_remote_interrupt_twice): Ditto.
9006
9007 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
9008
9009 * source.c (find_and_open_source): Consistently pass resulting
9010 full path through xfullpath.
9011
9012 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9013
9014 Provide more specific displaced-stepping memory error message.
9015 * infrun.c (displaced_step_prepare): New variable status. Call
9016 target_read_memory instead of read_memory, provide more specific
9017 error message.
9018
9019 2012-04-11 Tristan Gingold <gingold@adacore.com>
9020
9021 PR gdb/13901
9022 * darwin-nat.c (darwin_execvp): Revert previous patch.
9023
9024 2012-04-11 Tristan Gingold <gingold@adacore.com>
9025
9026 PR gdb/13901
9027 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9028 in case of change.
9029
9030 2012-04-11 Tristan Gingold <gingold@adacore.com>
9031
9032 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9033 warning.
9034
9035 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9036
9037 New command 'explore' which helps explore values and types in
9038 scope.
9039 * NEWS: Add an entry about the new 'explore' command.
9040 * data-directory/Makefile.in: Add gdb/command/explore.py
9041 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9042 command using the GDB Python API.
9043
9044 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9045
9046 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9047 extension in jump target calculation.
9048
9049 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9050
9051 * mips-tdep.c (mips32_next_pc): Handle JALX.
9052
9053 2012-04-10 Yao Qi <yao@codesourcery.com>
9054
9055 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9056
9057 2012-04-10 Yao Qi <yao@codesourcery.com>
9058
9059 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9060 and gnulib/m4/gnulib-tool.m4.
9061
9062 2012-04-10 Doug Evans <dje@google.com>
9063
9064 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9065 (load_partial_dies): Clarify comment.
9066 (find_partial_die): Support rereading type units.
9067 Clarify CU handling, if we know offset is in CU, don't search for the
9068 containing CU. Add comment regarding memory waste.
9069
9070 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9071
9072 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9073 i386/x32-avx and i386/x32-avx-linux.
9074 (i386/x32-expedite): New.
9075 (i386/x32-linux-expedite): Likewise.
9076 (i386/x32-avx-expedite): Likewise.
9077 (i386/x32-avx-linux-expedite): Likewise.
9078 ($(outdir)/i386/x32.dat): Likewise.
9079 ($(outdir)/i386/x32-linux.dat): Likewise.
9080 ($(outdir)/i386/x32-avx.dat): Likewise.
9081 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9082
9083 * features/i386/x32-avx-linux.xml: New file.
9084 * features/i386/x32-avx.xml: Likewise.
9085 * features/i386/x32-core.xml: Likewise.
9086 * features/i386/x32-linux.xml: Likewise.
9087 * features/i386/x32.xml: Likewise.
9088
9089 * features/i386/x32-avx-linux.c: New. Generated.
9090 * features/i386/x32-avx.c: Likewise.
9091 * features/i386/x32-linux.c: Likewise.
9092 * features/i386/x32.c: Likewise.
9093 * regformats/i386/x32-avx-linux.dat: Likewise.
9094 * regformats/i386/x32-avx.dat: Likewise.
9095 * regformats/i386/x32-linux.dat: Likewise.
9096 * regformats/i386/x32.dat: Likewise.
9097
9098 2012-04-10 Tristan Gingold <gingold@adacore.com>
9099
9100 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9101 code to kill the inferior.
9102
9103 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9104
9105 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9106 defines.
9107 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9108 defines.
9109 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9110 (yyvsp): New defines.
9111 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9112 defines.
9113 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9114 defines.
9115 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9116 defines.
9117 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9118 defines.
9119 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9120 defines.
9121
9122 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9123
9124 * sparc64-tdep.c (sparc64_store_arguments)
9125 (sparc64_store_arguments): Fix coding style.
9126
9127 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9128
9129 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9130 complex floats, adjust some related comments and tighten a related
9131 assertion.
9132 (sparc64_extract_return_value): Handle complex floats.
9133
9134 2012-04-07 Doug Evans <dje@google.com>
9135
9136 * dwarf2read.c (load_partial_dies): Change condition to assert.
9137
9138 2012-04-06 Doug Evans <dje@google.com>
9139
9140 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9141 "mov %rsp,%rbp".
9142
9143 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9144
9145 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9146 fencepost error.
9147 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9148 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9149 architecture.
9150
9151 2012-04-05 Keith Seitz <keiths@redhat.com>
9152
9153 * linespec.c (decode_compound): Remove.
9154 (enum offset_relative_sign): New enum.
9155 (struct line_offset): New struct.
9156 (struct linespec): New struct.
9157 (struct linespec_state): Move file_symtabs,
9158 user_filename, and user_function into struct linespec.
9159 Make result an anonymous struct holding vectors of
9160 symbolp and minsym_and_objfile_d.
9161 Add language member.
9162 (enum ls_token_type): New enum.
9163 (linespec_keywords): New array.
9164 (struct ls_token): New struct.
9165 (struct ls_parser): New struct.
9166 (linespec_lexer_lex_number): New function.
9167 (linespec_lexer_lex_keyword): New function.
9168 (is_ada_operator): New function.
9169 (skip_quote_char): New function.
9170 (copy_token_string): New function.
9171 (is_closing_quote_enclosed): New function.
9172 (find_parameter_list_end): New function.
9173 (linespec_lexer_lex_string): New function.
9174 (linespec_lexer_lex_one): New function.
9175 (linespec_lexer_consume_token): New function.
9176 (linespec_lexer_peek_token): New function.
9177 (cplusplus_error): Remove unused function.
9178 (find_methods): Update comment.
9179 (find_toplevel_char): Return const.
9180 (is_objc_method_format): Remove unused function.
9181 (find_toplevel_string): New function.
9182 (is_linespec_boundary): Remove.
9183 (symbol_not_found_error): New function.
9184 (find_method_overload_end): Remove function.
9185 (unexpected_linespec_error): New function.
9186 (keep_name_info): Remove.
9187 (linespec_parse_line_offset): New function.
9188 (linespec_parse_basic): New function.
9189 (canonicalize_linespec): New function.
9190 (decode_line_internal): Remove.
9191 (create_sals_line_offset): New function adapted from
9192 decode_all_digits.
9193 (convert_linespec_to_sals): New function.
9194 (parse_linespec): New function.
9195 (linespec_parser_new): New function.
9196 (linespec_state_destructor): Change parameter type to
9197 struct linespec_state *.
9198 Add language parameter.
9199 Remove freeing of moved members.
9200 (linespec_parser_delete): New function.
9201 (decode_line_full): Use parse_linespec and linespec_parser_new.
9202 (decode_line_1): Likewise.
9203 (decode_indirect): Rename to ...
9204 (linespec_expression_to_pc): ... this and rewrite
9205 to simply find CORE_ADDR, storing this result for later
9206 conversion to SALs.
9207 (locate_first_half): Remove.
9208 (deocde_objc): Add parameter LS.
9209 Initialize new struct collect_info members.
9210 Handle minimal symbols, too.
9211 (decode_compound): Delete.
9212 (lookup_prefix_sym): Rewrite.
9213 (compare_msymbols): New function.
9214 (find_method): Rewrite.
9215 Do not call cplusplus_error.
9216 (symtabs_from_filename): Rewrite.
9217 (collect_function_symbols): Delete.
9218 (find_function_symbols): Rewrite without ARGPTR-style
9219 processing.
9220 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9221 (decode_dollar): Adapted and renamed to ...
9222 (linespec_parse_variable): ... this.
9223 (find_linespec_symbols): New function.
9224 (decode_label): Adapted and renamed to ...
9225 (find_label_symbols): ... this.
9226 (decode_digits_list_mode): Add and use LS argument.
9227 (decode_digits_ordinary): Likewise.
9228 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9229 If in list mode, allow any symbol class. Otherwise, only
9230 permit LOC_BLOCK symbols.
9231 (minsym_found): Update comments.
9232 (search_minsyms_for_name): Do not convert the matching symbol
9233 into a SAL. Simply push the symbol and objfile into the
9234 result vector.
9235 (decode_variable): Delete. Contents adapted into
9236 find_linespec_symbols.
9237
9238 * cp-support.c (SKIP_SPACE): Remove.
9239 (operator_tokens): Remove unused global.
9240 (cp_validate_operator): Remove.
9241 * cp-support.h (cp_validate_operator): Remove declaration.
9242
9243 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9244
9245 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9246 for TYPE_VPTR_FIELDNO.
9247 * valprint.c (valprint_check_validity): Make it global, move the
9248 function comment ...
9249 * value.h (valprint_check_validity): ... to this new declaration.
9250
9251 2012-04-02 Tristan Gingold <gingold@adacore.com>
9252
9253 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9254 the STATE32 api for i386 state.
9255 (i386_darwin_store_inferior_registers): Likewise.
9256
9257 2012-04-02 Tristan Gingold <gingold@adacore.com>
9258
9259 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9260 SS offset.
9261 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9262 format_string.
9263
9264 2012-04-02 Tristan Gingold <gingold@adacore.com>
9265
9266 PR gdb/13901
9267 * darwin-nat.c (darwin_execvp): Set binary preference.
9268
9269 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9270
9271 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9272
9273 2012-03-30 Tom Tromey <tromey@redhat.com>
9274
9275 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9276 of TRY_CATCH. Fix error handling.
9277 * python/py-value.c (convert_value_from_python): Move 'old'
9278 declaration to innermost scope.
9279
9280 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9281 Andrey Smirnov <andrew.smirnov@gmail.com>
9282
9283 -Wshadow warning fix.
9284 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9285 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9286 Adjust code accordingly.
9287
9288 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9289
9290 * ada-lang.c (symbol_completion_add): Rename parameter
9291 "encoded" into "encoded_p". Ajust code and documentation
9292 accordingly.
9293
9294 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9295 Andrey Smirnov <andrew.smirnov@gmail.com>
9296
9297 -Wshadow warning fix.
9298 * ada-lang.c (symbol_completion_add): Rename parameter
9299 "wild_match" into wild_match_p. Update code and documentation
9300 accordingly.
9301
9302 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9303
9304 * ada-lang.c (symbol_completion_match): Rename parameter
9305 "encoded" into "encoded_p". Ajust code and documentation
9306 accordingly.
9307
9308 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9309 Andrey Smirnov <andrew.smirnov@gmail.com>
9310
9311 -Wshadow warning fix.
9312 * ada-lang.c (symbol_completion_match): Rename parameter
9313 "wild_match" into "wild_match_p". Adjust code and function
9314 documentation accordingly.
9315
9316 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9317 Andrey Smirnov <andrew.smirnov@gmail.com>
9318
9319 -Wshadow warning fix.
9320 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9321 "symbol_info" into "info". Adjust code accordingly.
9322 (ada_lookup_symbol): Likewise.
9323
9324 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9325
9326 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9327 of this function's documentation.
9328
9329 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9330 Andrey Smirnov <andrew.smirnov@gmail.com>
9331
9332 -Wshadow warning fix.
9333 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9334 variable into "wild_match_p". Adjust code accordingly.
9335
9336 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9337 Andrey Smirnov <andrew.smirnov@gmail.com>
9338
9339 -Wshadow warning fix.
9340 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9341 parameter into "wild_match_p". Adjust code accordingly.
9342 Document this parameter in the function description.
9343
9344 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9345 Andrey Smirnov <andrew.smirnov@gmail.com>
9346
9347 -Wshadow warning fix.
9348 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9349 "wild_match" parameter to "wild_match_p" (-Wshadow).
9350
9351 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9352
9353 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9354 in function documentation.
9355
9356 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9357 Andrey Smirnov <andrew.smirnov@gmail.com>
9358
9359 -Wshadow warning fix.
9360 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9361 variable into wild_match_p. Adjust code accordingly.
9362
9363 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9364 Andrey Smirnov <andrew.smirnov@gmail.com>
9365
9366 * ada-valprint.c (ada_val_print_1): Move the code handling
9367 TYPE_CODE_ENUM inside its own lexical block. Declare
9368 variables len and val there, instead of in the function's
9369 top level block. Avoid declaring deref_val again in a way
9370 that shadows another variable of the same name declared
9371 in one of the up-level blocks. Just re-use the up-level
9372 variable instead.
9373
9374 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9375
9376 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9377 Replace block_found argument by symbol_info. Adjust
9378 implementation accordingly. Add function documentation.
9379 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9380 Fix documentation.
9381 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9382 * ada-exp.y (write_object_renaming): Adjust to new
9383 ada_lookup_encoded_symbol API.
9384
9385 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9386
9387 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9388 documentation.
9389
9390 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9391
9392 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9393 (v850_register_name): Add the mpu and fpu register names.
9394 (v850e_register_name): Add the mpu and fpu register names.
9395 (v850e2_register_name): New function.
9396 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9397 bfd_mach_v850e2v3.
9398
9399 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9400
9401 * NEWS: Add entry for Ada varobj support.
9402
9403 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9404
9405 * varobj.c (default_value_is_changeable_p): New function,
9406 extracted from varobj_value_is_changeable_p. Add declaration.
9407 (ada_value_is_changeable_p): New function, extracted from
9408 varobj_value_is_changeable_p. Add declaration.
9409 (struct language_specific): New field "value_is_changeable_p".
9410 (languages): Add entries for new field.
9411 (varobj_create): Set language before calling install_new_value.
9412 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9413 "value_is_changeable_p" language callback.
9414
9415 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9416
9417 * ada-varobj.h, ada-varobj.c: New files.
9418 * Makefile.in (SFILES): Add ada-varobj.c.
9419 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9420 (COMMON_OBS): Add ada-varobj.o.
9421
9422 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9423
9424 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9425 (struct language_specific): New field "value_has_mutated".
9426 (languages): Set field "value_has_mutated" in each entry of array.
9427 (varobj_value_has_mutated): New function.
9428 (varobj_udpdate): Add handling of type mutation.
9429 (value_of_root): Add handling of type mutation.
9430 (ada_value_has_mutated): New function.
9431
9432 2012-03-28 Pedro Alves <palves@redhat.com>
9433
9434 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9435 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9436
9437 2012-03-28 Tom Tromey <tromey@redhat.com>
9438
9439 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9440 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9441 before returning.
9442
9443 2012-03-28 Tom Tromey <tromey@redhat.com>
9444
9445 * .dir-locals.el: New file.
9446
9447 2012-03-28 Pedro Alves <palves@redhat.com>
9448
9449 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9450
9451 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9452
9453 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9454 handling for r0.
9455
9456 2012-03-27 Pedro Alves <palves@redhat.com>
9457
9458 Eliminate struct ui_stream.
9459
9460 * ui-out.h (struct ui_stream): Delete.
9461 (ui_out_field_stream): Adjust prototype.
9462 (ui_out_stream_new, ui_out_stream_delete)
9463 (make_cleanup_ui_out_stream_delete): Delete declarations.
9464 * ui-out.c (ui_out_field_stream): Change prototype to take a
9465 ui_file instead of a ui_stream. Adjust.
9466 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9467 (make_cleanup_ui_out_stream_delete): Delete.
9468 * breakpoint.c (print_breakpoint_location)
9469 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9470 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9471 * disasm.c (dump_insns): Ditto.
9472 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9473 prototype.
9474 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9475 ui_stream/ui_out_stream_new.
9476 * infcmd.c (print_return_value): Ditto.
9477 * osdata.c (info_osdata_command): Don't allocate a local
9478 ui_stream.
9479 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9480 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9481 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9482 allocate a local ui_stream.
9483 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9484 instead of ui_stream/ui_out_stream_new.
9485 (list_args_or_locals): Don't allocate a local ui_stream.
9486 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9487 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9488 ui_stream/ui_out_stream_new.
9489 * cli/cli-setshow.c (do_setshow_command): Ditto.
9490
9491 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9492
9493 * arm-linux-tdep.c (arm_linux_init_abi): Call
9494 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9495 * arm-tdep.c (arm_process_record): New function.
9496 (deallocate_reg_mem): New function.
9497 (decode_insn): New function.
9498 (thumb_record_branch): New function.
9499 (thumb_record_ldm_stm_swi(): New function.
9500 (thumb_record_misc): New function.
9501 (thumb_record_ld_st_stack): New function.
9502 (thumb_record_ld_st_imm_offset): New function.
9503 (thumb_record_ld_st_reg_offset(): New function.
9504 (thumb_record_add_sub_cmp_mov): New function.
9505 (thumb_record_shift_add_sub): New function.
9506 (arm_record_coproc_data_proc): New function.
9507 (arm_record_coproc): New function.
9508 (arm_record_b_bl): New function.
9509 (arm_record_ld_st_multiple): New function.
9510 (arm_record_ld_st_reg_offset): New function.
9511 (arm_record_ld_st_imm_offset): New function.
9512 (arm_record_data_proc_imm): New function.
9513 (arm_record_data_proc_misc_ld_str): New function.
9514 (arm_record_extension_space): New function.
9515 (arm_record_strx): New function.
9516 (sbo_sbz): New function.
9517 (struct insn_decode_record): New structure for arm insn record.
9518 (REG_ALLOC): New macro for reg allocations.
9519 (MEM_ALLOC): New macro for memory allocations.
9520 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9521
9522 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9523
9524 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9525 (store_register): Likewise.
9526
9527 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9528
9529 * MAINTAINERS (Write After Approval): Add myself to the list.
9530
9531 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9532
9533 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9534 Describe also the option "auto".
9535
9536 2012-03-22 Richard Henderson <rth@redhat.com>
9537
9538 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9539 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9540
9541 2012-03-22 Richard Henderson <rth@redhat.com>
9542
9543 * jit.c (jit_read_code_entry): Compute alignment and offset of
9544 int64_t member before computing entry_size.
9545
9546 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9547
9548 Python scripting: Add new method Value.referenced_value to
9549 gdb.Value which can dereference pointer as well as reference
9550 values.
9551 * NEWS: Add entry under 'Python scripting' about the new method
9552 Value.referenced_value on gdb.Value objects.
9553 * python/py-value.c (valpy_referenced_value): New function
9554 defining a new method on gdb.Value objects which can dereference
9555 pointer and reference values.
9556
9557 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9558
9559 * MAINTAINERS (Write After Approval): Add myself to the list.
9560
9561 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9562
9563 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9564 in addition to "main".
9565
9566 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9567
9568 * expression.h (op_name): Add declaration.
9569 * expprint.c (op_name): Remove declaration. Make non-static.
9570 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9571
9572 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9573
9574 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9575 of struct siginfo.
9576 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9577 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9578 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9579 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9580 (linux_nat_get_siginfo): Likewise.
9581 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9582 (linux_nat_get_siginfo): Likewise.
9583 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9584 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9585 * procfs.c (gdb_siginfo_t): Likewise.
9586
9587 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9588
9589 * .gitignore: Ignore more files.
9590
9591 2012-03-20 Pedro Alves <palves@redhat.com>
9592
9593 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9594 returns.
9595
9596 2012-03-20 Yao Qi <yao@codesourcery.com>
9597
9598 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9599 comment.
9600
9601 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9602
9603 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9604 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9605 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9606 sect_offset.
9607 * dwarf2expr.h (cu_offset, sect_offset): New types.
9608 (struct dwarf_expr_context_funcs) <dwarf_call>
9609 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9610 sect_offset.
9611 (struct dwarf_expr_context) <len>: Improve the comment.
9612 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9613 cu_offset and sect_offset.
9614 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9615 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9616 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9617 * dwarf2loc.h: Include dwarf2expr.h.
9618 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9619 and sect_offset.
9620 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9621 Improve the comment.
9622 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9623 (struct signatured_type, struct line_header, struct partial_die_info)
9624 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9625 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9626 (get_die_type_at_offset, create_cus_from_index)
9627 (create_signatured_type_table_from_index, dw2_get_file_names)
9628 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9629 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9630 (create_debug_types_hash_table, process_psymtab_comp_unit)
9631 (load_partial_comp_unit, create_all_comp_units)
9632 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9633 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9634 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9635 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9636 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9637 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9638 (find_partial_die, read_attribute_value, lookup_die_type)
9639 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9640 (is_ref_attr): New function comment.
9641 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9642 Use cu_offset and sect_offset.
9643 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9644 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9645 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9646 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9647 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9648 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9649 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9650 sect_offset.
9651
9652 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9653
9654 Code cleanup.
9655 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9656 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9657 with xfree.
9658 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9659
9660 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9661
9662 * NEWS: Describe new options --init-command=FILE, -ix and
9663 --init-eval-command=COMMAND, -iex.
9664 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9665 CMDARG_INIT_COMMAND.
9666 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9667 "init-command", "init-eval-command", "ix" and "iex" to the variable
9668 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9669 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9670 (print_gdb_help): Describe --init-command=FILE, -ix and
9671 --init-eval-command=COMMAND, -iex.
9672
9673 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9674
9675 Code cleanup.
9676 * main.c (struct cmdarg): Move it here from main. Add more comments.
9677 (cmdarg_s, VEC (cmdarg_s)): New.
9678 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9679 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9680 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9681 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9682 of CMDARG.
9683
9684 2012-03-19 Tom Tromey <tromey@redhat.com>
9685
9686 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9687
9688 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9689
9690 PR symtab/13777
9691 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9692 GCC >=4.5.
9693
9694 2012-03-16 Chris January <chris.january@allinea.com>
9695
9696 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9697 of clear.
9698
9699 2012-03-16 Chris January <chris.january@allinea.com>
9700
9701 * source.c (add_path): Use memmove instead of strcpy because the
9702 strings overlap.
9703
9704 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9705
9706 * value.h (set_value_parent): Add declaration.
9707 * value.c (set_value_parent): New function.
9708 (value_address): If VALUE->PARENT is not NULL, then use it as
9709 the base address instead of VALUE->LOCATION.address.
9710 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9711 the same as OBJ's address. Adjust V's offset accordingly.
9712 Set V's parent.
9713
9714 2012-03-16 Gary Benson <gbenson@redhat.com>
9715
9716 PR breakpoints/10738
9717 * dwarf2read.c (use_deprecated_index_sections): New global.
9718 (struct partial_die_info): New member may_be_inlined.
9719 (read_partial_die): Set may_be_inlined where appropriate.
9720 (add_partial_subprogram): Add partial symbols for partial
9721 DIEs that may be inlined.
9722 (new_symbol_full): Add inlined subroutines to the current
9723 scope.
9724 (write_psymtabs_to_index): Bump version number.
9725 (dwarf2_read_index): Read only version 6 indices unless
9726 use_deprecated_index_sections is set.
9727 * linespec.c (symbol_and_data_callback): New structure.
9728 (iterate_inline_only): New function.
9729 (iterate_over_all_matching_symtabs): New argument
9730 "include_inline". If nonzero, also call the callback for
9731 symbols representing inlined subroutines.
9732 (lookup_prefix_sym): Pass extra argument to the above.
9733 (find_function_symbols): Likewise.
9734 (add_matching_symbols_to_info): Likewise.
9735 * NEWS: Mention that GDB can now set breakpoints on inlined
9736 functions.
9737
9738 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9739
9740 * p-typeprint.c (pascal_type_print_method_args):
9741 Fix display of parameter of methods.
9742
9743 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9744
9745 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9746 Add missing prototype.
9747
9748 2012-03-16 Yao Qi <yao@codesourcery.com>
9749 Jan Kratochvil <jan.kratochvil@redhat.com>
9750
9751 Fix false compilation warning.
9752 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9753
9754 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9755 Pedro Alves <pedro@codesourcery.com>
9756
9757 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9758 (arm_register_g_packet_guesses): New function.
9759 (arm_gdbarch_init): Don't force a target description with
9760 registers when the executable is detected as M-profile. Instead
9761 set gdbarch->tdep->is_m. Register `g' packet guesses.
9762 (_initialize_arm_tdep): Initialize the new target description.
9763 * features/arm-with-m-fpa-layout.xml: New description.
9764 * features/arm-with-m-fpa-layout.c: New, generated.
9765
9766 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9767
9768 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9769 Update function description.
9770 (insert_bp_location): Do not wipe bl->target_info out.
9771 * mem-break.c: #include "gdb_string.h".
9772 (default_memory_insert_breakpoint): Do not call target_read_memory
9773 with a pointer to the breakpoint's shadow_contents buffer. Use
9774 a local buffer instead.
9775 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9776
9777 2012-03-15 Tom Tromey <tromey@redhat.com>
9778
9779 * NEWS: Mention "info vtbl", not "info vtable".
9780 * cp-support.c (info_vtbl_command): Fix comment.
9781 (_initialize_cp_support): Fix text.
9782
9783 2012-03-15 Tom Tromey <tromey@redhat.com>
9784
9785 * cp-valprint.c (cp_print_value_fields): Use
9786 print_function_pointer_address for vtable slot.
9787
9788 2012-03-15 Tom Tromey <tromey@redhat.com>
9789
9790 * gnu-v3-abi.c (struct value_and_voffset): New.
9791 (hash_value_and_voffset, eq_value_and_voffset)
9792 (compare_value_and_voffset, compute_vtable_size)
9793 (print_one_vtable, gnuv3_print_vtable): New functions.
9794 (init_gnuv3_ops): Initialize 'print_vtable' field.
9795 * cp-support.c (info_vtbl_command): New function.
9796 (_initialize_cp_support): Add "info vtbl".
9797 * cp-abi.h (cplus_print_vtable): Declare.
9798 (struct cp_abi_ops) <print_vtable>: New field.
9799 * cp-abi.c (cplus_print_vtable): New function.
9800 * NEWS: Update.
9801
9802 2012-03-15 Tom Tromey <tromey@redhat.com>
9803
9804 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9805 iterate_over_symbols.
9806
9807 2012-03-14 Doug Evans <dje@google.com>
9808
9809 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9810 DW_OP_GNU_parameter_ref.
9811
9812 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9813
9814 Fix double prompt of 'interpreter-exec mi'.
9815 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9816 (mi_interpreter_resume): use it.
9817 (mi_execute_command_input_handler): New function.
9818 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9819 mi_execute_command_input_handler.
9820
9821 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
9822
9823 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9824 prototype.
9825 (darwin_debug_port_info): Make static.
9826 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9827 * machoread.c (_initialize_machoread): Add prototype.
9828 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9829 (i386_darwin_set_control, i386_darwin_get_control)
9830 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9831 i386_darwin_get_status, i386_darwin_get_control):
9832 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9833
9834 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9835
9836 * ax-gdb.c (gen_usual_unary): Remove special handling of
9837 enum and bool types.
9838
9839 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9840
9841 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9842
9843 2012-03-13 Joel Brobecker <brobecker@adacore.com>
9844
9845 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9846
9847 2012-03-13 Chris January <chris.january@allinea.com>
9848
9849 * aix-thread.c (fill_sprs): Store the floating point registers
9850 at the correct offsets into vals.
9851
9852 2012-03-13 Doug Evans <dje@google.com>
9853
9854 * NEWS: Mention symbol-reloading has been deleted.
9855 * symfile.c (symbol_reloading): Delete.
9856 (show_symbol_reloading): Delete.
9857 (_initialize_symfile): Delete set/show symbol-reloading.
9858
9859 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9860 read_in_chain until we have successfully read it in.
9861 (load_full_comp_unit): Ditto.
9862 (read_signatured_type): Add comment.
9863
9864 2012-03-13 Chris January <chris.january@allinea.com>
9865
9866 * stabsread.c (fix_common_block): Change type of valu argument
9867 to CORE_ADDR.
9868
9869 2012-03-13 Chris January <chris.january@allinea.com>
9870
9871 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9872 instruction.
9873
9874 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9875
9876 * common/linux-procfs.c (linux_proc_get_int): New, from
9877 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9878 field.
9879 (linux_proc_get_tgid): Only call linux_proc_get_int.
9880 (linux_proc_get_tracerpid): New.
9881 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9882 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9883 linux_proc_pid_has_state.
9884 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9885 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9886 (linux_ptrace_attach_warnings): New.
9887 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9888 New declaration.
9889 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9890 (linux_nat_attach): New variables ex, buffer, message and message_s.
9891 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9892
9893 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9894
9895 * Makefile.in (linux-ptrace.o): New.
9896 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9897 from linux-nat.c.
9898 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9899 * common/linux-ptrace.c: New file.
9900 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9901 * config/arm/linux.mh: Likewise.
9902 * config/i386/linux.mh: Likewise.
9903 * config/i386/linux64.mh: Likewise.
9904 * config/ia64/linux.mh: Likewise.
9905 * config/m32r/linux.mh: Likewise.
9906 * config/m68k/linux.mh: Likewise.
9907 * config/mips/linux.mh: Likewise.
9908 * config/pa/linux.mh: Likewise.
9909 * config/powerpc/linux.mh: Likewise.
9910 * config/powerpc/ppc64-linux.mh: Likewise.
9911 * config/powerpc/spu-linux.mh: Likewise.
9912 * config/s390/s390.mh: Likewise.
9913 * config/sparc/linux.mh: Likewise.
9914 * config/sparc/linux64.mh: Likewise.
9915 * config/xtensa/linux.mh: Likewise.
9916 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9917 common/linux-procfs.c.
9918 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9919
9920 2012-03-13 Hui Zhu <teawater@gmail.com>
9921 Pedro Alves <palves@redhat.com>
9922
9923 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9924 CREATE_BREAKPOINT_FLAGS_INSERTED.
9925 (create_breakpoint_sal, create_breakpoints_sal)
9926 (base_breakpoint_create_breakpoints_sal)
9927 (tracepoint_create_breakpoints_sal)
9928 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9929 down.
9930 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9931 (ftrace_command, strace_command): Adjust.
9932 (create_tracepoint_from_upload): Pass
9933 CREATE_BREAKPOINT_FLAGS_INSERTED.
9934 * breakpoint.h (enum breakpoint_create_flags): New.
9935 (create_breakpoint): New flags parameter.
9936 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9937 * python/py-breakpoint.c (bppy_init): Adjust.
9938 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9939 * spu-tdep.c (spu_catch_start): Adjust.
9940
9941 2012-03-13 Pedro Alves <palves@redhat.com>
9942 Hui Zhu <teawater@gmail.com>
9943 Yao Qi <yao@codesourcery.com>
9944
9945 * remote.c (struct remote_state): New field `starting_up'.
9946 (remote_start_remote): Set and clear it.
9947 (remote_can_download_tracepoint): If starting up, return false.
9948
9949 2012-03-13 Yao Qi <yao@codesourcery.com>
9950
9951 * inferior.h (struct inferior): Remove fields any_syscall_count,
9952 syscalls_counts and total_syscalls_count. Move them to new
9953 struct catch_syscall_inferior_data in breakpoint.c.
9954 * breakpoint.c: Call DEF_VEC_I(int).
9955 (struct catch_syscall_inferior_data): New.
9956 (get_catch_syscall_inferior_data): New.
9957 (catch_syscall_inferior_data_cleanup): New.
9958 (insert_catch_syscall): Update to access data in
9959 struct catch_syscall_inferior_data.
9960 (insert_catch_syscall): Likewise.
9961 (remove_catch_syscall): Likewise.
9962 (remove_catch_syscall): Likewise.
9963 (is_syscall_catchpoint_enabled): Likewise.
9964 (add_catch_command): Likewise.
9965 (_initialize_breakpoint): Register cleanup.
9966 * breakpoint.h: Removed DEF_VEC_I(int).
9967 * dwarf2loc.c: Call DEF_VEC_I(int).
9968 * mi/mi-main.c: Likewise.
9969
9970 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9971
9972 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9973
9974 2012-03-12 Chris January <chris.january@allinea.com>
9975
9976 * aix-thread.c (_initialize_aix_thread): Add prototype.
9977 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9978 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9979
9980 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9981
9982 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9983 include of "amd64-nat.h".
9984
9985 2012-03-12 Tom Tromey <tromey@redhat.com>
9986
9987 * buildsym.c (record_pending_block): Now static.
9988 * buildsym.h: (record_pending_block): Remove.
9989
9990 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9991
9992 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9993
9994 2012-03-09 Tom Tromey <tromey@redhat.com>
9995
9996 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9997 producer_is_gxx_lt_4_6>: New fields.
9998 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9999
10000 2012-03-09 Tom Tromey <tromey@redhat.com>
10001
10002 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10003
10004 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10005
10006 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10007 prototype.
10008
10009 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10010
10011 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10012
10013 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10014
10015 Fix -Wmissing-prototypes build.
10016 * arm-linux-nat.c (get_thread_id): Make it static.
10017 * xtensa-linux-nat.c (get_thread_id): Likewise.
10018
10019 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10020
10021 * server.c (process_point_options): If a conditional expression
10022 is found, only print a message if remote_debug is nonzero.
10023
10024 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
10025
10026 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10027 of internal error for unknown/unsupported types.
10028
10029 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10030
10031 Fix CU relative vs. absolute DIE offsets.
10032 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10033 offset to offset_in_cu.
10034 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10035 TYPE_OFFSET.
10036 (dwarf2_fetch_die_location_block): Rename parameter offset to
10037 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10038
10039 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10040
10041 * libunwind-frame.c: Rename to ...
10042 * ia64-libunwind-tdep.c: ... here.
10043 * libunwind-frame.h: Rename to ...
10044 * ia64-libunwind-tdep.h: ... here.
10045 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10046 ia64-libunwind-tdep.h.
10047 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10048 * README (--with-libunwind): Rename to ...
10049 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10050 * config.in: Regenerate.
10051 * configure: Regenerate.
10052 * configure.ac: New option --with-libunwind-ia64, make the
10053 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10054 Remove AC_DEFINE for HAVE_LIBUNWIND.
10055 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10056 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10057 Rename libunwind-frame in the general comment.
10058 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10059 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10060 Move forward declarations inside #ifndef. Rename libunwind-frame in
10061 the general comment.
10062 * ia64-tdep.c: Rename libunwind-frame.h #include to
10063 ia64-libunwind-tdep.h.
10064 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10065 (ia64_libunwind_descr): Rename libunwind-frame to
10066 ia64-libunwind-tdep in these function comments.
10067 * ia64-tdep.h: Rename libunwind-frame.h #include to
10068 ia64-libunwind-tdep.h.
10069 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10070 ia64-libunwind-tdep in that data comment.
10071
10072 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10073
10074 * libunwind-frame.h (struct frame_unwind): New declaration.
10075
10076 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10077
10078 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10079 "set breakpoint condition-evaluation" command.
10080
10081 2012-03-08 Tristan Gingold <gingold@adacore.com>
10082
10083 * sparc-stub.c: Move to stubs/
10084 * sh-stub.c: Likewise.
10085 * m68k-stub.c: Likewise.
10086 * m32r-stub.c: Likewise.
10087 * i386-stub.c: Likewise.
10088
10089 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10090
10091 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10092 linux_get_siginfo_type.
10093
10094 * m68klinux-nat.c: Include "gdb_proc_service.h".
10095 (PTRACE_GET_THREAD_AREA): Define.
10096 (ps_get_thread_area): New function.
10097
10098 2012-03-08 Yao Qi <yao@codesourcery.com>
10099
10100 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10101 `xsnprintf'.
10102 (remote_query_attached): Likewise.
10103 (remote_static_tracepoint_marker_at): Likewise.
10104 (remote_set_permissions): Likewise.
10105 (remote_detach_1, extended_remote_attach_1): Likewise.
10106 (send_g_packet, remote_vkill): Likewise.
10107 (extended_remote_disable_randomization): Likewise.
10108 (remote_add_target_side_condition): Likewise.
10109 (remote_insert_breakpoint): Likewise.
10110 (remote_remove_breakpoint): Likewise.
10111 (remote_insert_watchpoint): Likewise.
10112 (remote_remove_watchpoint): Likewise.
10113 (remote_insert_hw_breakpoint): Likewise.
10114 (remote_insert_hw_breakpoint): Likewise.
10115 (remote_remove_hw_breakpoint): Likewise.
10116 (remote_download_command_source): Likewise.
10117 (remote_download_tracepoint): Likewise.
10118 (remote_download_trace_state_variable): Likewise.
10119 (remote_disable_tracepoint): Likewise.
10120 (remote_trace_set_readonly_regions): Likewise.
10121 (remote_get_tracepoint_status): Likewise.
10122 (remote_trace_find): Likewise.
10123 (remote_get_trace_state_variable_value): Likewise.
10124 (remote_set_disconnected_tracing): Likewise.
10125 (remote_set_circular_trace_buffer): Likewise.
10126 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10127 (remote_use_agent): Likewise.
10128 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10129 Update callers.
10130
10131 2012-03-07 Pedro Alves <palves@redhat.com>
10132
10133 * NEWS: Mention QProgramSignals.
10134 * inferior.h (update_signals_program_target): Declare.
10135 * infrun.c: (update_signals_program_target): New.
10136 (handle_command): Update the target of the new program signals
10137 array changes.
10138 * remote.c (PACKET_QProgramSignals): New enum.
10139 (last_program_signals_packet): New global.
10140 (remote_program_signals): New.
10141 (remote_start_remote): Update the target with the program signals
10142 list.
10143 (remote_protocol_features): Add entry for QPassSignals.
10144 (remote_open_1): Free anc clear last_program_signals_packet.
10145 (init_remote_ops): Install remote_program_signals.
10146 * target.c (update_current_target): Adjust.
10147 (target_program_signals): New.
10148 * target.h (struct target_ops) <to_program_signals>: New field.
10149 (target_program_signals): Declare.
10150
10151 2012-03-07 Pedro Alves <palves@redhat.com>
10152
10153 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10154 extensions.
10155
10156 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10157
10158 * m68klinux-nat.c (getregs_supplies): Make static.
10159 (getfpregs_supplies): Likewise.
10160 (have_ptrace_getregs): Likewise.
10161
10162 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10163
10164 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10165 in call to get_die_type_at_offset.
10166
10167 2012-03-06 Stan Shebs <stan@codesourcery.com>
10168
10169 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10170 * mi/mi-cmd-disas.c: Ditto.
10171 * mi/mi-cmd-env.c: Ditto.
10172 * mi/mi-cmd-file.c: Ditto.
10173 * mi/mi-cmd-stack.c: Ditto.
10174 * mi/mi-cmd-target.c: Ditto.
10175 * mi/mi-cmd-var.c: Ditto.
10176 * mi/mi-cmds.c: Ditto.
10177 * mi/mi-cmds.h: Ditto.
10178 * mi/mi-console.c: Ditto.
10179 * mi/mi-getopt.c: Ditto.
10180 * mi/mi-getopt.h: Ditto.
10181 * mi/mi-interp.c: Ditto.
10182 * mi/mi-main.c: Ditto.
10183 * mi/mi-out.c: Ditto.
10184 * mi/mi-parse.c: Ditto.
10185 * mi/mi-parse.h: Ditto.
10186 * mi/mi-symbol-cmds.c: Ditto.
10187
10188 * mi/mi-getopt.h: Move mi_opt struct up.
10189 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10190 return.
10191 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10192
10193 2012-03-06 Tom Tromey <tromey@redhat.com>
10194
10195 * proc-service.c (ps_pglobal_lookup): Set the current program
10196 space.
10197
10198 2012-03-06 Pedro Alves <palves@redhat.com>
10199
10200 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10201
10202 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10203
10204 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10205
10206 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10207
10208 Code cleanup.
10209 * common/linux-osdata.c (linux_common_core_of_thread): New function
10210 comment.
10211 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10212 call by linux_common_core_of_thread.
10213 (linux_nat_core_of_thread_1): Remove.
10214 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10215 * linux-thread-db.c: Include linux-osdata.h.
10216 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10217 linux_common_core_of_thread.
10218
10219 2012-03-05 Tom Tromey <tromey@redhat.com>
10220
10221 * value.c (value_primitive_field): Don't fetch contents for
10222 non-virtual bases.
10223
10224 2012-03-05 Tom Tromey <tromey@redhat.com>
10225
10226 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10227
10228 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10229
10230 * s390-nat.c: Include "gregset.h".
10231
10232 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10233
10234 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10235 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10236 (libunwind_load): New variable so_error, use it for dlerror. Try to
10237 load also LIBUNWIND_SO_7.
10238
10239 2012-03-05 Pedro Alves <palves@redhat.com>
10240
10241 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10242 is not NULL, and remove resulting dead code.
10243
10244 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10245
10246 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10247 prologue to sh_analyze_prologue.
10248 (sh_analyze_prologue): Make better use of such an upper limit, and
10249 generally be more cautious about accessing memory.
10250
10251 2012-03-05 Tom Tromey <tromey@redhat.com>
10252
10253 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10254 _initialize_ia64_hpux_tdep.
10255
10256 2012-03-05 Pedro Alves <palves@redhat.com>
10257
10258 PR gdb/13766
10259
10260 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10261 the register state is clear, supply explicit zero, instead of
10262 marking the register unavailable.
10263
10264 2012-03-05 Tristan Gingold <gingold@adacore.com>
10265
10266 * NEWS: Mention OpenVMS ia64 new target.
10267
10268 2012-03-05 Tristan Gingold <gingold@adacore.com>
10269
10270 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10271 (ia64_unw_accessors, ia64_unw_rse_accessors)
10272 (ia64_libunwind_descr): Declare.
10273 * ia64-vms-tdep.c: New file.
10274 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10275 (ia64_libunwind_descr): Make them public.
10276 * configure.tgt: Add ia64-*-*vms*.
10277 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10278 (ALLDEPFILES): Add ia64-vms-tdep.c
10279
10280 2012-03-05 Tristan Gingold <gingold@adacore.com>
10281
10282 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10283 * remote.c (PACKET_qXfer_uib): New enum value.
10284 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10285 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10286 (_initialize_remote): Call add_packet_config_cmd for
10287 xfer:uib packet.
10288
10289 2012-03-05 Tristan Gingold <gingold@adacore.com>
10290
10291 * osabi.c (gdb_osabi_names): Add OpenVMS.
10292 (generic_elf_osabi_sniffer): Likewise.
10293 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10294
10295 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10296
10297 Removed unused code.
10298 * libunwind-frame.c (libunwind_frame_unwind)
10299 (libunwind_frame_base_address): Remove.
10300 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10301
10302 2012-03-04 Yao Qi <yao@codesourcery.com>
10303
10304 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10305 remove trailing new line.
10306 (agent_run_command, agent_run_command): Add _ markup.
10307 (agent_capability_check): Likewise.
10308
10309 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10310
10311 * breakpoint.c (set_condition_evaluation_mode): Set
10312 CONDITION_EVALUATION_MODE unconditionally.
10313
10314 2012-03-03 Yao Qi <yao@codesourcery.com>
10315
10316 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10317 * common/agent.h: Update declaration.
10318 * inf-child.c (inf_child_use_agent): New.
10319 (inf_child_can_use_agent): New.
10320 (inf_child_target): Initialize fields `to_use_agent'
10321 and `to_can_use_agent'.
10322 * agent.c (agent_new_objfile): New.
10323 (_initialize_agent): Add agent_new_objfile to new_objfile
10324 observer.
10325
10326 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10327 New.
10328 (linux_target_install_ops): Initialize field
10329 `to_static_tracepoint_markers_by_strid'.
10330 * remote.c (free_current_marker): Move it to ...
10331 * tracepoint.c (free_current_marker): ... here. New.
10332 (cleanup_target_stop): New.
10333 * tracepoint.h: Declare free_current_marker.
10334 * NEWS: Add one entry about `info static-tracepoint-marker'.
10335
10336 2012-03-03 Yao Qi <yao@codesourcery.com>
10337
10338 * common/agent.c (agent_loaded_p): New.
10339 (agent_look_up_symbols): New global.
10340 * common/agent.h: Declare agent_loaded_p.
10341
10342 2012-03-03 Yao Qi <yao@codesourcery.com>
10343
10344 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10345 (agent_capability_check, agent_capability_invalidate): New.
10346 (symbol_list): New array element.
10347 * common/agent.h (enum agent_capa): New.
10348 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10349
10350 2012-03-03 Yao Qi <yao@codesourcery.com>
10351
10352 * target.h (struct target_ops) <to_use_agent>: New field.
10353 (struct target_ops) <to_can_use_agent>: New field.
10354 (target_use_agent, target_can_use_agent): New macro.
10355 * target.c (update_current_target): Update.
10356 * remote.c: New enum `PACKET_QAgent'.
10357 (remote_protocol_features): Add a new element.
10358 (remote_use_agent, remote_can_use_agent): New.
10359 (init_remote_ops): Initialize field `can_use_agent' with
10360 remote_can_use_agent. Intiailize field `use_agent' with
10361 remote_use_agent.
10362 * common/agent.c (use_agent): New global.
10363 * common/agent.h: Declare it.
10364 * tracepoint.c (info_static_tracepoint_markers_command): Add
10365 comment.
10366 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10367 (COMMON_OBS): Add common/agent.o and agent.o
10368 (common-agent.o): New rule.
10369 * agent.c: New.
10370
10371 2012-03-03 Yao Qi <yao@codesourcery.com>
10372
10373 * common/agent.c: New.
10374 * common/agent.h: New.
10375 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10376 AC_CHECK_HEADERS.
10377 * configure, configh.in: Regenerated.
10378
10379 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10380
10381 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10382 unless it exists for this architecture.
10383
10384 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10385
10386 * language.h (struct language_defn): New "method" la_read_var_value.
10387 * findvar.c: #include "language.h".
10388 (default_read_var_value): Renames read_var_value. Rewrite
10389 function description.
10390 (read_var_value): New function.
10391 * value.h (default_read_var_value): Add prototype.
10392 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10393 New functions.
10394 (ada_language_defn): Add entry for la_read_var_value.
10395 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10396 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10397 language_defn structures to add entry for new la_read_var_value
10398 field.
10399
10400 2012-03-02 Tom Tromey <tromey@redhat.com>
10401 Pedro Alves <palves@redhat.com>
10402
10403 PR breakpoints/13776:
10404 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10405 breakpoints.
10406 (delete_longjmp_breakpoint_at_next_stop): New.
10407 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10408 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10409 before deleting the inferior. Add comments.
10410 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10411 breakpoints immediately, but only on next stop. Move that code
10412 next to where we mark other breakpoints for deletion.
10413
10414 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10415
10416 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10417 marker.
10418 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10419 violation.
10420
10421 2012-03-02 Pedro Alves <palves@redhat.com>
10422
10423 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10424
10425 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10426
10427 Fix -Wmissing-prototypes build.
10428 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10429 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10430 (gdbsim_has_memory): Likewise.
10431
10432 2012-03-02 Yao Qi <yao@codesourcery.com>
10433
10434 Fix -Wmissing-prototypes build.
10435 * charset.c (phony_iconv_open): Make static.
10436 (phony_iconv_close, phony_iconv): Likewise.
10437 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10438 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10439 prototype.
10440 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10441 * ser-mingw.c (create_select_thread): Make static.
10442 * windows-termcap.c (tgetent): New prototype.
10443 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10444
10445 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10446
10447 Fix -Wmissing-prototypes build.
10448 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10449 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10450 (_initialize_loadable): New prototypes.
10451
10452 2012-03-02 Doug Evans <dje@google.com>
10453
10454 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10455 abbrev table, read_comp_unit will do it.
10456
10457 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10458
10459 Fix -Wmissing-prototypes build.
10460 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10461 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10462 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10463 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10464 (_initialize_arm_symbian_tdep): New prototype.
10465 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10466 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10467 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10468 static.
10469 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10470 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10471 prototype.
10472 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10473 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10474 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10475 static.
10476 * moxie-tdep.c (moxie_process_record): Likewise.
10477 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10478 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10479 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10480 (_initialize_rl78_tdep): New prototype.
10481 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10482 (_initialize_rx_tdep): New prototype.
10483 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10484 (_initialize_darwin_solib): New prototype.
10485 * solib-spu.c: Include solib-spu.h.
10486 (_initialize_spu_solib): New prototype.
10487 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10488 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10489 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10490 (tic6x_software_single_step): Make it static.
10491 (_initialize_tic6x_tdep): New prototype.
10492
10493 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10494
10495 Fix -Wmissing-prototypes build.
10496 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10497 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10498
10499 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10500
10501 Fix -Wmissing-prototypes build.
10502 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10503 (frv_have_stopped_data_address): Remove.
10504
10505 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10506
10507 Fix -Wmissing-prototypes build.
10508 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10509 * sh-tdep.c: Include sh64-tdep.h.
10510 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10511 * sh64-tdep.c: Include sh64-tdep.h.
10512 * sh64-tdep.h: New file.
10513
10514 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10515
10516 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10517
10518 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10519
10520 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10521 sp_regnum once the gdbarch_init_osabi hook has been called.
10522
10523 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10524
10525 * mips-tdep.c (mips32_bc1_pc): New function.
10526 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10527 BPOSGE32 and BPOSGE64 instructions.
10528 (deal_with_atomic_sequence): Likewise.
10529 (mips32_instruction_has_delay_slot): Likewise.
10530
10531 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10532 Chris Dearman <chris@mips.com>
10533 Maciej W. Rozycki <macro@codesourcery.com>
10534 Joseph Myers <joseph@codesourcery.com>
10535
10536 * features/mips-dsp.xml: New file.
10537 * features/mips64-dsp.xml: New file.
10538 * features/mips-dsp-linux.xml: New file.
10539 * features/mips64-dsp-linux.xml: New file.
10540 * features/Makefile (WHICH): Add mips-dsp-linux and
10541 mips64-dsp-linux.
10542 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10543 * features/mips-dsp-linux.c: New file.
10544 * features/mips64-dsp-linux.c: New file.
10545 * regformats/mips-dsp-linux.dat: New file.
10546 * regformats/mips64-dsp-linux.dat: New file.
10547 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10548 registers.
10549 (mips64_linux_register_addr): Likewise.
10550 (mips64_linux_regsets_fetch_registers): Likewise.
10551 (mips64_linux_regsets_store_registers): Likewise.
10552 (mips64_linux_fetch_registers): Update call to
10553 mips64_linux_regsets_fetch_registers.
10554 (mips64_linux_store_registers): Update call to
10555 mips64_linux_regsets_store_registers.
10556 (mips_linux_read_description): Probe for DSP registers.
10557 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10558 and initialize_tdesc_mips64_dsp_linux.
10559 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10560 Remove padding of no longer used embedded register slots.
10561 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10562 (MIPS_RESTART_REGNUM): Redefine enum value.
10563 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10564 strings.
10565 (mips_tx39_reg_names): Likewise.
10566 (mips_linux_reg_names): New array of register names for Linux
10567 targets.
10568 (mips_register_name): Check for a null pointer in
10569 mips_processor_reg_names and return an empty string.
10570 (mips_register_type): Exclude embedded registers for the IRIX
10571 and Linux ABIs.
10572 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10573 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10574 DSP registers.
10575 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10576 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10577 (mips_gdbarch_init): Likewise. Initialize internal register
10578 indices for the Linux ABI. Use dynamic numbers to refer to
10579 registers, as applicable, while parsing the target description.
10580 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10581
10582 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10583
10584 * frame.h (read_frame_register_unsigned): Fix typo in function
10585 description.
10586
10587 2012-03-01 Pedro Alves <palves@redhat.com>
10588
10589 * jit-reader.in [!__cplusplus]
10590 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10591
10592 2012-03-01 Pedro Alves <palves@redhat.com>
10593
10594 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10595 * configure: Regenerate.
10596
10597 2012-03-01 Pedro Alves <palves@redhat.com>
10598
10599 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10600 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10601 (ftrace_command, strace_command): Make static.
10602 * d-lang.c (_initialize_d_language): Declare.
10603 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10604 * dwarf2loc.c (_initialize_dwarf2loc):
10605 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10606 * exec.c (exec_get_section_table): Make static.
10607 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10608 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10609 * inferior.c (remove_inferior_command, add_inferior_command)
10610 (clone_inferior_command): Make static.
10611 * linux-nat.c (linux_nat_thread_address_space)
10612 (linux_nat_core_of_thread): Make static.
10613 * linux-tdep.c (_initialize_linux_tdep): Declare.
10614 * objc-lang.c (_initialize_objc_lang): Declare.
10615 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10616 Make static.
10617 (_initialize_opencl_language): Declare.
10618 * record.c (_initialize_record): Declare.
10619 * remote.c (demand_private_info, remote_get_tib_address)
10620 (remote_supports_cond_tracepoints)
10621 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10622 Make static.
10623 * skip.c (_initialize_step_skip): Declare.
10624 * symtab.c (skip_prologue_using_lineinfo): Make static.
10625 * tracepoint.c (delete_trace_state_variable)
10626 (trace_variable_command, delete_trace_variable_command)
10627 (get_uploaded_tsv, find_matching_tracepoint_location)
10628 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10629 Make static.
10630 * value.c (pack_unsigned_long): Make static.
10631 * varobj.c (varobj_ensure_python_env): Make static.
10632 * windows-tdep.c (_initialize_windows_tdep): Declare.
10633 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10634
10635 2012-03-01 Pedro Alves <palves@redhat.com>
10636
10637 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10638 gdbarch parameter.
10639 (linux_init_abi): Install it as has_shared_address_space gdbarch
10640 callback.
10641
10642 2012-03-01 Pedro Alves <palves@redhat.com>
10643
10644 * observer.c (observer_test_first_notification_function)
10645 (observer_test_second_notification_function)
10646 (observer_test_third_notification_function): Add declarations.
10647
10648 2012-03-01 Pedro Alves <palves@redhat.com>
10649
10650 * common/signals.c (default_target_signal_to_host)
10651 (default_target_signal_from_host): Move ...
10652 * arch-utils.c: ... here.
10653 * arch-utils.h (default_target_signal_to_host)
10654 (default_target_signal_from_host): Declare.
10655
10656 * common/signals.c (target_signal_from_command): Move ...
10657 * infrun.c: ... here.
10658 * inferior.h (target_signal_from_command): Declare.
10659 * target.h (target_signal_from_command)
10660 (default_target_signal_from_host, default_target_signal_to_host):
10661 Delete declarations.
10662
10663 * common/signals.c (_initialize_signals): Delete.
10664
10665 2012-03-01 Pedro Alves <palves@redhat.com>
10666
10667 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10668 both __cplusplus and !__cplusplus.
10669
10670 2012-03-01 Pedro Alves <palves@redhat.com>
10671
10672 * psymtab.c (find_and_open_source): Delete declaration.
10673 * source.c (find_and_open_source): Move comment ...
10674 * source.h (find_and_open_source): ... to this new declaration.
10675
10676 2012-03-01 Pedro Alves <palves@redhat.com>
10677
10678 * inline-frame.c: Include inline-frame.h.
10679
10680 2012-03-01 Pedro Alves <palves@redhat.com>
10681
10682 * tui/tui-data.c (set_gen_win_origin): Delete.
10683 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10684 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10685
10686 2012-03-01 Pedro Alves <palves@redhat.com>
10687
10688 * remote.c (encode_actions): Delete declaration.
10689 * tracepoint.c (encode_actions): Make extern.
10690 * tracepoint.h (encode_actions): Declare.
10691
10692 2012-03-01 Pedro Alves <palves@redhat.com>
10693
10694 * python/py-breakpoint.c: Include python.h.
10695 * python/py-continueevent.c (create_continue_event_object): Make
10696 static.
10697 * python/py-lazy-string.c (stpy_get_type): Make static.
10698 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10699 Make static.
10700 * python/py-utils.c (unicode_to_target_python_string): Make
10701 static.
10702 * python/py-value.c: Include python.h.
10703
10704 2012-03-01 Pedro Alves <palves@redhat.com>
10705
10706 * inferior.c (delete_threads_of_inferior): Delete.
10707
10708 2012-03-01 Pedro Alves <palves@redhat.com>
10709
10710 Import fallback definitions from glibc.
10711
10712 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10713 ps_prochandle): Forward declare.
10714 (ps_err_e): Use glibc's comments.
10715 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10716 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10717 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10718 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10719 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10720 (struct ps_prochandle): Adjust comment.
10721
10722 2012-03-01 Pedro Alves <palves@redhat.com>
10723
10724 * ada-lang.c (ada_modulus_from_name): Delete.
10725 * ada-lex.l (lexer_init): Make static.
10726
10727 2012-03-01 Pedro Alves <palves@redhat.com>
10728
10729 PR gdb/13767
10730
10731 * frame.c (read_frame_register_unsigned): New.
10732 * frame.h (read_frame_register_unsigned): Declare.
10733 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10734 Handle it.
10735 (print_i387_control_word): New parameter `control_p'. Handle it.
10736 (i387_print_float_info): Handle unavailable float registers.
10737
10738 2012-03-01 Keith Seitz <keiths@redhat.com>
10739
10740 * linespec.c (decode_line_2): Sort the list of methods
10741 alphabetically before presenting the user with a selection
10742 menu.
10743
10744 2012-03-01 Doug Evans <dje@google.com>
10745
10746 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10747 has_namespace_info.
10748 (dwarf2_read_abbrevs): Remove corresponding initialization.
10749
10750 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10751
10752 * NEWS: Mention new python command class gdb.COMMAND_USER.
10753 * cli/cli-cmds.c (show_user): Print error when used on a python
10754 command.
10755 (init_cli_cmds): Update documentation strings for "show user" and
10756 "set/show max-user-call-depth" to clarify that it does not apply to
10757 python commands.
10758 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10759 error check.
10760 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10761 gdb python api.
10762 * top.c (execute_command): Only execute a user-defined command as a
10763 legacy macro if c->user_commands is set.
10764
10765 2012-03-01 Tom Tromey <tromey@redhat.com>
10766
10767 * valprint.h (struct generic_val_print_decorations): New.
10768 (generic_val_print): Declare.
10769 * valprint.c (generic_val_print): New function.
10770 * p-valprint.c (p_decorations): New global.
10771 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10772 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10773 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10774 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10775 * m2-valprint.c (m2_decorations): New global.
10776 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10777 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10778 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10779 TYPE_CODE_ERROR>: Call generic_val_print.
10780 * f-valprint.c (f_decorations): New global.
10781 (f_val_print): Use print_function_pointer_address.
10782 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10783 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10784 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10785 generic_val_print.
10786 * c-valprint.c (c_decorations): New global.
10787 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10788 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10789 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10790 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10791 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10792 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10793 case.
10794
10795 2012-03-01 Tom Tromey <tromey@redhat.com>
10796
10797 * valprint.c (val_print): Update.
10798 * p-valprint (pascal_val_print): Return void.
10799 * p-lang.h (pascal_val_print): Return void.
10800 * m2-valprint.c (m2_val_print): Return void.
10801 * m2-lang.h (m2_val_print): Return void.
10802 * language.h (struct language_defn) <la_val_print>: Return void.
10803 * language.c (unk_lang_val_print): Return void.
10804 * jv-valprint.c (java_val_print): Return void.
10805 * jv-lang.h (java_val_print): Return void.
10806 * f-valprint.c (f_val_print): Return void.
10807 * f-lang.h (f_val_print): Return void.
10808 * d-valprint.c (d_val_print): Return void.
10809 (dynamic_array_type): Update.
10810 * d-lang.h (d_val_print): Return void.
10811 * c-valprint.c (c_val_print): Return void.
10812 * c-lang.h (c_val_print): Return void.
10813 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10814 void.
10815 * ada-lang.h (ada_val_print): Return void.
10816
10817 2012-03-01 Tom Tromey <tromey@redhat.com>
10818
10819 * value.h (val_print): Return void.
10820 * valprint.c (val_print): Return void.
10821
10822 2012-03-01 Tom Tromey <tromey@redhat.com>
10823
10824 * value.h (common_val_print): Return void.
10825 * valprint.c (common_val_print): Return void.
10826
10827 2012-03-01 Tom Tromey <tromey@redhat.com>
10828
10829 * value.h (value_print): Return void.
10830 * valprint.c (value_print): Return void.
10831 * p-valprint.c (pascal_value_print): Return void.
10832 * p-lang.h (pascal_value_print): Return void.
10833 * language.h (struct language_defn) <la_value_print>: Return
10834 void.
10835 * language.c (unk_lang_value_print): Return void.
10836 * jv-valprint.c (java_value_print): Return void.
10837 * jv-lang.h (java_value_print): Return void.
10838 * f-valprint.c (c_value_print): Don't declare.
10839 Include c-lang.h.
10840 * c-valprint.c (c_value_print): Return void.
10841 * c-lang.h (c_value_print): Return void.
10842 * ada-valprint.c (ada_value_print): Return void.
10843 * ada-lang.h (ada_value_print): Return void.
10844
10845 2012-03-01 Tom Tromey <tromey@redhat.com>
10846
10847 * value.c (value_primitive_field): Handle virtual base classes.
10848
10849 2012-03-01 Tom Tromey <tromey@redhat.com>
10850
10851 * gdbtypes.h (struct vbase): Remove.
10852
10853 2012-03-01 Tom Tromey <tromey@redhat.com>
10854
10855 * c-valprint.c (print_function_pointer_address): Move...
10856 * valprint.c: ... here. Make non-static.
10857 * m2-valprint.c (print_function_pointer_address): Remove.
10858 * valprint.h (print_function_pointer_address): Declare.
10859
10860 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10861
10862 * NEWS: Document the fact that one can provide a condition when
10863 creating an Ada exception catchpoint.
10864
10865 2012-03-01 Tom Tromey <tromey@redhat.com>
10866
10867 * valprint.c (val_print_type_code_flags): Fix placement of
10868 trailing brace.
10869
10870 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10871
10872 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10873 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10874 environment variable before calling update-copyright.
10875
10876 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10877
10878 * gnulib/extra/update-copyright: Update to the latest from
10879 gnulib's git repository.
10880 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10881 variable to 2 instead of 1.
10882
10883 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10884
10885 * varobj.c (c_value_of_variable): Remove dead code.
10886
10887 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10888
10889 * ada-lex.p (processId): Do not modify already encoded IDs.
10890 Update function documentation.
10891
10892 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10893
10894 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10895 "name" with "struct symbol *name_sym".
10896 * ada-exp.y (write_var_or_type): Update call to
10897 ada_find_renaming_symbol.
10898 "name" with "struct symbol *name_sym". Adjust Implementation
10899 accordingly. Adjust the function documentation.
10900
10901 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10902
10903 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10904 * ada-lang.c (ada_find_any_type): Add advance declaration.
10905 Make static. Replace ada_find_any_symbol by
10906 ada_find_any_type_symbol.
10907 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10908 Improve function description. Make static.
10909 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10910 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10911
10912 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10913
10914 * ada-lang.c (struct tag_args): Delete.
10915 (ada_get_tsd_type): Function body moved up in source file.
10916 (ada_tag_name_1, ada_tag_name_2): Delete.
10917 (ada_get_tsd_from_tag): New function.
10918 (ada_tag_name_from_tsd): New function.
10919 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10920 to determine the tag name.
10921
10922 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10923
10924 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10925 declaration.
10926 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10927 function.
10928
10929 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10930
10931 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10932
10933 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10934
10935 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10936 full searches.
10937
10938 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10939
10940 * ada-lang.c (constrained_packed_array_type): If there is a
10941 parallel XA type, use it to determine the array index type.
10942
10943 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10944
10945 * ada-valprint.c (ada_val_print_1): If our value is a reference
10946 to an array descriptor, dereference it before converting it
10947 to a simple array.
10948
10949 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10950
10951 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10952 creating fixed value.
10953 (ada_value_ind, ada_coerce_ref, assign_component)
10954 (ada_evaluate_subexp): Remove call to unwrap_value before
10955 call to ada_to_fixed_value.
10956
10957 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10958
10959 * ada-lang.c (to_fixed_array_type): Set result's type name.
10960
10961 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10962
10963 * ada-lang.c (catch_ada_exception_command_split): Add new
10964 argument cond_string. Add support for condition at end of
10965 "catch exception" commands.
10966 (ada_decode_exception_location): Add new argument cond_string.
10967 Update call to catch_ada_exception_command_split.
10968 (create_ada_exception_catchpoint): Add new argument cond_string.
10969 Set the breakpoint condition if needed.
10970 (catch_ada_exception_command): Update call to
10971 ada_decode_exception_location.
10972 (ada_decode_assert_location): Add function documentation.
10973 Add support for condition at end of "catch assert" command.
10974 (catch_assert_command): Update calls to ada_decode_assert_location
10975 and create_ada_exception_catchpoint.
10976
10977 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10978
10979 Fix disp-step-syscall.exp: fork: single step over fork.
10980 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10981 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10982 comment, change parameters gdbarch and ptid to regcache. Remove
10983 parameter regcache, initialize gdbarch from regcache here.
10984 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10985 New functions.
10986 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10987 instead.
10988 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10989 'syscall'. Make the 'int' check more strict.
10990
10991 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10992
10993 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10994 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10995 (i386_linux_intx80_sysenter_syscall_record): ... here.
10996 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10997 Use the renamed function name.
10998
10999 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11000
11001 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11002 * breakpoint.c (until_break_command): Likewise.
11003 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11004 * infcall.c (call_function_by_hand): Likewise.
11005 * infcmd.c (finish_forward): Likewise.
11006 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11007
11008 2012-02-28 Tristan Gingold <gingold@adacore.com>
11009
11010 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11011 avoid variable assignments inside condition.
11012
11013 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11014
11015 Fix static analysis issue found by cppcheck.
11016 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11017 uninitialized BUF for size 2.
11018
11019 2012-02-27 Chris Dearman <chris@mips.com>
11020 Nathan Froyd <froydnj@codesourcery.com>
11021 Maciej W. Rozycki <macro@codesourcery.com>
11022
11023 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11024 (mips16_instruction_has_delay_slot): Likewise.
11025 (mips_segment_boundary): Likewise.
11026 (mips_adjust_breakpoint_address): Likewise.
11027 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11028
11029 2012-02-27 Maciej W. Rozycki <macro@mips.com>
11030 Maciej W. Rozycki <macro@codesourcery.com>
11031
11032 * infrun.c (handle_inferior_event): Don't proceed through
11033 shared library trampolines if stepping at the machine
11034 instruction level.
11035
11036 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11037
11038 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11039 too.
11040
11041 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11042
11043 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11044 (sh_stub_unwind_sniffer): New functions.
11045 (sh_stub_unwind): New variable.
11046 (sh_gdbarch_init): Wire everything.
11047
11048 2012-02-27 Pedro Alves <palves@redhat.com>
11049
11050 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11051 (linux_nat_post_attach_wait): Adjust to use
11052 linux_proc_pid_is_stopped.
11053 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11054 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11055 based on pid_is_stopped from both linux-nat.c and
11056 gdbserver/linux-low.c, and renamed.
11057
11058 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11059
11060 * remote.c (remote_watchpoint_addr_within_range): New function.
11061 (init_remote_ops): Use it.
11062
11063 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11064
11065 * target.h (target_watchpoint_addr_within_range): Document macro.
11066
11067 2012-02-24 Pedro Alves <palves@redhat.com>
11068
11069 * stack.c (set_last_displayed_sal): Issue internal_error instead
11070 of warning, and issue it after clearing the last displayed sal.
11071
11072 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11073 Pedro Alves <palves@redhat.com>
11074
11075 * breakpoint.c (until_break_command): Install breakpoints after
11076 all frame manipulations.
11077
11078 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11079
11080 * remote.c (remote_supports_cond_breakpoints): New forward
11081 declaration.
11082 (remote_add_target_side_condition): New function.
11083 (remote_insert_breakpoint): Add target-side breakpoint
11084 conditional if supported.
11085 (remote_insert_hw_breakpoint): Likewise.
11086 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11087 hook.
11088
11089 * target.c (update_current_target): Inherit
11090 to_supports_evaluation_of_breakpoint_conditions.
11091 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11092
11093 * target.h (struct target_ops)
11094 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11095 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11096
11097 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11098 (condition_evaluation_both, condition_evaluation_auto,
11099 condition_evaluation_host, condition_evaluation_target,
11100 condition_evaluation_enums, condition_evaluation_mode_1,
11101 condition_evaluation_mode): New static globals.
11102 (translate_condition_evaluation_mode): New function.
11103 (breakpoint_condition_evaluation_mode): New function.
11104 (gdb_evaluates_breakpoint_condition_p): New function.
11105 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11106 (mark_breakpoint_modified): New function.
11107 (mark_breakpoint_location_modified): New function.
11108 (set_condition_evaluation_mode): New function.
11109 (show_condition_evaluation_mode): New function.
11110 (bp_location_compare_addrs): New function.
11111 (get_first_location_gte_addr): New helper function.
11112 (set_breakpoint_condition): Free condition bytecode if locations
11113 has become unconditional. Call mark_breakpoint_modified (...).
11114 (condition_command): Call update_global_location_list (1) for
11115 breakpoints.
11116 (breakpoint_xfer_memory): Use is_breakpoint (...).
11117 (is_breakpoint): New function.
11118 (parse_cond_to_aexpr): New function.
11119 (build_target_condition_list): New function.
11120 (insert_bp_location): Handle target-side conditional
11121 breakpoints and call build_target_condition_list (...).
11122 (update_inserted_breakpoint_locations): New function.
11123 (insert_breakpoint_locations): Handle target-side conditional
11124 breakpoints.
11125 (bpstat_check_breakpoint_conditions): Add comment.
11126 (bp_condition_evaluator): New function.
11127 (bp_location_condition_evaluator): New function.
11128 (print_breakpoint_location): Print information on where the condition
11129 will be evaluated.
11130 (print_one_breakpoint_location): Likewise.
11131 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11132 breakpoint location.
11133 (force_breakpoint_reinsertion): New functions.
11134 (update_global_location_list): Handle target-side breakpoint
11135 conditions.
11136 Reinsert locations that are already inserted if conditions have
11137 changed.
11138 (bp_location_dtor): Free agent expression bytecode.
11139 (disable_breakpoint): Call mark_breakpoint_modified (...).
11140 Call update_global_location_list (...) with parameter 1 for breakpoints.
11141 (disable_command): Call mark_breakpoint_location_modified (...).
11142 Call update_global_location_list (...) with parameter 1 for breakpoints.
11143 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11144 (enable_command): mark_breakpoint_location_modified (...).
11145 (_initialize_breakpoint): Update documentation and add
11146 condition-evaluation breakpoint subcommand.
11147
11148 * breakpoint.h: Include ax.h.
11149 (condition_list): New data structure.
11150 (condition_status): New enum.
11151 (bp_target_info) <cond_list>: New field.
11152 (bp_location) <condition_changed, cond_bytecode>: New fields.
11153 (is_breakpoint): New prototype.
11154
11155 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11156
11157 * remote.c (remote_state) <cond_breakpoints>: New field.
11158 (PACKET_ConditionalBreakpoints): New enum.
11159 (remote_cond_breakpoint_feature): New function.
11160 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11161 (remote_supports_cond_breakpoints): New function.
11162 (_initialize_remote): Add new packet configuration for
11163 target-side conditional breakpoints.
11164
11165 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11166
11167 * NEWS: Mention target-side conditional breakpoint support,
11168 new condition-evaluation breakpoint subcommand and remote
11169 packet extensions.
11170
11171 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11172
11173 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11174 number.
11175
11176 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11177
11178 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11179 (after_prologue): Remove.
11180
11181 2012-02-23 Tom Tromey <tromey@redhat.com>
11182
11183 * jv-valprint.c (java_val_print): Remove dead code.
11184
11185 2012-02-23 Tristan Gingold <gingold@adacore.com>
11186
11187 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11188 known_tasks_element and known_tasks_length fields.
11189 (read_known_tasks_array): Change argument type. Use pointer type
11190 and number of elements from DATA. Adjust.
11191 (read_known_tasks_list): Likewise.
11192 (get_known_tasks_addr): Remove.
11193 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11194 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11195 type and array length. Merge former get_known_tasks_addr code.
11196
11197 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11198
11199 PR backtrace/13716
11200 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11201 it after set_momentary_breakpoint.
11202
11203 2012-02-22 Sterling Augustine <saugustine@google.com>
11204
11205 PR 13689:
11206 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11207
11208 2012-02-22 Gary Benson <gbenson@redhat.com>
11209
11210 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11211 (find_slot_in_mapped_hash): Likewise.
11212
11213 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11214
11215 PR build/13638
11216 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11217 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11218 * configure: Regenerate.
11219
11220 2012-02-21 Tristan Gingold <gingold@adacore.com>
11221 Pedro Alves <palves@redhat.com>
11222
11223 * ia64-tdep.c: Do not include libunwind-ia64.h.
11224 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11225 Include libunwind-ia64.h instead of libunwind.h.
11226 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11227 for libunwind.h existence.
11228 * configure, config.in: Regenerate.
11229
11230 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11231
11232 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11233 instead of value_rtti_target_type.
11234 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11235 instead of value_rtti_target_type.
11236 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11237 value_rtti_target_type.
11238 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11239 (value_rtti_target_type): Rename to ...
11240 (value_rtti_indirect_type): ... here and make it indirect. Update
11241 function comment.
11242 * value.c (readjust_indirect_value_type): New function.
11243 (coerce_ref): Support for enclosing type setting for references
11244 with readjust_indirect_value_type.
11245 * value.h (readjust_value_type): New declaration.
11246 (value_rtti_target_type): Rename to ...
11247 (value_rtti_indirect_type): ... here.
11248
11249 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11250
11251 * MAINTAINERS (Write After Approval): Add myself to the list.
11252
11253 2012-02-20 Doug Evans <dje@google.com>
11254
11255 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11256 Rename objfile_p_char parameter to objfilep.
11257 (build_objfile_section_table): Result is now void. All callers
11258 updated.
11259 * objfiles.h (struct objfile): Tweak comments, whitespace.
11260 (build_objfile_section_table): Update.
11261
11262 * elfread.c (elf_symfile_segments): Fix warning text.
11263
11264 2012-02-20 Tom Tromey <tromey@redhat.com>
11265
11266 PR gdb/13498:
11267 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11268 particular set of file names once.
11269 (dw2_map_symbol_filenames): Likewise.
11270
11271 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11272
11273 Code cleanup.
11274 * main.c (write_files): Remove the declaration.
11275 (external_editor_command): Move the declaration ...
11276 [GDBTK] (external_editor_command): ... here. Fix the comment.
11277
11278 2012-02-20 Tom Tromey <tromey@redhat.com>
11279
11280 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11281 extraneous block.
11282
11283 2012-02-20 Tristan Gingold <gingold@adacore.com>
11284
11285 * darwin-nat.h (enum darwin_msg_state): Add comments.
11286
11287 2012-02-20 Tristan Gingold <gingold@adacore.com>
11288
11289 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11290 value.
11291
11292 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11293
11294 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11295 between function description and implementation.
11296
11297 2012-02-17 Tom Tromey <tromey@redhat.com>
11298
11299 PR python/12070:
11300 * python/py-event.c (event_object_getset): New global.
11301 (event_object_type): Reference it.
11302 * python/py-type.c (field_object_getset): New global.
11303 (field_object_type): Reference it.
11304 * python/python-internal.h (gdb_py_generic_dict): Declare.
11305 * python/py-utils.c (gdb_py_generic_dict): New function.
11306
11307 2012-02-17 Tristan Gingold <gingold@adacore.com>
11308
11309 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11310
11311 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11312
11313 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11314 TYPE_CALLING_CONVENTION annotation.
11315
11316 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11317
11318 * MAINTAINERS: Add rx to target ISA section.
11319 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11320 (ALLDEPFILES): Add rx-tdep.c.
11321
11322 2012-02-16 Tom Tromey <tromey@redhat.com>
11323
11324 * symfile.c (symbol_file_add_main_1): Use inferior's
11325 symfile_flags.
11326 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11327 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11328 inferior.
11329 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11330 inferior.
11331 (follow_exec): Use inferior's symfile_flags.
11332 * inferior.h (struct inferior) <symfile_flags>: New field.
11333
11334 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11335
11336 PR gdb/9734:
11337 * remote-sim.c (gdbsim_create_inferior): Call error() when
11338 sim_create_inferior() fails.
11339
11340 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11341
11342 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11343
11344 2012-02-16 Tom Tromey <tromey@redhat.com>
11345
11346 PR c++/13653:
11347 * thread.c (struct current_thread_cleanup) <was_removable>: New
11348 field.
11349 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11350 (make_cleanup_restore_current_thread): Initialize new field.
11351
11352 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11353
11354 * MAINTAINERS: Add rl78 to target ISA section.
11355 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11356 (ALLDEPFILES): Add rl78-tdep.c.
11357 * NEWS: Mention rl78 as a new target.
11358
11359 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11360
11361 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11362 data.
11363 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11364
11365 2012-02-15 Tom Tromey <tromey@redhat.com>
11366
11367 PR gdb/12659:
11368 * infcmd.c (registers_info): Print just the current register's
11369 name.
11370
11371 2012-02-15 Tom Tromey <tromey@redhat.com>
11372
11373 * python/py-symbol.c (sympy_value): Use _().
11374
11375 2012-02-15 Pedro Alves <palves@redhat.com>
11376
11377 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11378 output to be like native targets'.
11379 (remote_pid_to_str): Special case the null ptid.
11380
11381 2012-02-14 Stan Shebs <stan@codesourcery.com>
11382
11383 * NEWS: Mention enable count command.
11384 * breakpoint.h (struct breakpoint): New field enable_count.
11385 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11386 (enable_breakpoint): Add arg to call.
11387 (struct disp_data): New struct.
11388 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11389 (do_map_enable_once_breakpoint): Create a struct and pass it.
11390 (do_map_enable_delete_breakpoint): Ditto.
11391 (do_map_enable_count_breakpoint): New function.
11392 (enable_count_command): New function.
11393 (bpstat_stop_status): Decrement enable_count.
11394 (print_one_breakpoint_location): Report enable count.
11395 (_initialize_breakpoint): Add enable count command.
11396
11397 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11398
11399 * rl78-tdep.c (reggroups.h): Include.
11400 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11401 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11402 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11403 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11404 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11405 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11406 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11407 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11408 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11409 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11410 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11411 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11412 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11413 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11414 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11415 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11416 beginning of register list.
11417 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11418 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11419 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11420 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11421 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11422 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11423 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11424 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11425 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11426 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11427 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11428 the pseudo registers. Rearrange other pseudo registers too so
11429 that the bank registers appear at the end.
11430 (rl78_register_type): Account for the fact that the byte sized
11431 bank registers are now pseudo-registers.
11432 (rl78_register_name): Rearrange the register name array. Make
11433 initial set of raw banked registers inaccessible.
11434 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11435 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11436 case for copying bytes back and forth between raw and pseudo
11437 versions of the banked registers. Update other cases to reflect
11438 the changed names.
11439 (rl78_return_value): Update to account for changed names of
11440 raw registers.
11441 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11442 rl78_register_sim_regno().
11443
11444 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11445
11446 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11447 the name parameter being passed to find_pc_partial_function().
11448
11449 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11450
11451 * MAINTAINERS: Step down from being ia64 target maintainer.
11452
11453 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11454
11455 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11456 compilation warning.
11457
11458 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11459
11460 Fix crash on loaded shlibs without loaded exec_bfd.
11461 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11462 (set_section_command): Replace exec_bfd by p->bfd.
11463
11464 2012-02-10 Tom Tromey <tromey@redhat.com>
11465
11466 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11467 when we have a C++ qualified name.
11468
11469 2012-02-10 Pedro Alves <palves@redhat.com>
11470
11471 * inferior.c (inferior_pid_to_str): New.
11472 (print_inferior, inferior_command): Use it.
11473
11474 2012-02-10 Pedro Alves <palves@redhat.com>
11475
11476 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11477 the test CFLAGS.
11478 * configure: Regenerate.
11479
11480 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11481
11482 * linespec.c (decode_line_internal): Fix comment correctness.
11483
11484 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11485
11486 PR gdb/12953
11487 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11488 * amd64bsd-nat.c: Add support for debug registers (adapted from
11489 i386bsd-nat.c).
11490 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11491 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11492 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11493 (amd64bsd_dr_get_control): New functions.
11494 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11495 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11496 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11497 watchpoints initialization.
11498 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11499
11500 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11501
11502 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11503 flds_bnds.fields.
11504 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11505
11506 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11507
11508 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11509
11510 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11511
11512 * language.h (symbol_name_cmp_ftype): Renames
11513 symbol_name_match_p_ftype.
11514 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11515 la_get_symbol_name_match_p.
11516 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11517 ada_get_symbol_name_match_p. Update comment.
11518 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11519 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11520 Renames symbol_name_match_p. Update field type.
11521 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11522 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11523 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11524 "la_get_symbol_name_cmp" in comments.
11525 * language.c: Likewise.
11526
11527 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11528
11529 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11530 %eflags offset.
11531 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11532 (amd64_sol2_gregset32_reg_offs): Likewise.
11533
11534 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11535
11536 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11537 of the returned BFD is allocated by GDB.
11538
11539 2012-02-07 Tom Tromey <tromey@redhat.com>
11540
11541 PR python/12027:
11542 * python/python-internal.h (frame_object_type): Declare.
11543 * python/py-symbol.c (sympy_needs_frame): New function.
11544 (sympy_value): New function.
11545 (symbol_object_getset): Add "needs_frame".
11546 (symbol_object_methods): Add "value".
11547 * python/py-frame.c (frame_object_type): No longer static.
11548
11549 2012-02-07 Tom Tromey <tromey@redhat.com>
11550
11551 PR python/13599:
11552 * python/py-symbol.c (sympy_line): New function.
11553 (symbol_object_getset): Add "line".
11554
11555 2012-02-07 Tom Tromey <tromey@redhat.com>
11556
11557 * charset.c (find_charset_names): Check 'in' against NULL.
11558
11559 2012-02-06 Doug Evans <dje@google.com>
11560
11561 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11562 and fields.name members from char * to const char *. All uses updated.
11563 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11564 from char * to const char *. All uses updated.
11565 (type_name_no_tag): Update.
11566 (lookup_unsigned_typename, lookup_signed_typename): Update.
11567 * gdbtypes.c (type_name_no_tag): Change result type
11568 from char * to const char *. All callers updated.
11569 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11570 name parameter from char * to const char *.
11571 * symtab.h (struct cplus_specific): Change type of demangled_name
11572 member from char * to const char *. All uses updated.
11573 (struct general_symbol_info): Change type of name and
11574 mangled_lang.demangled_name members from char * to const char *.
11575 All uses updated.
11576 (symbol_get_demangled_name, symbol_natural_name): Update.
11577 (symbol_demangled_name, symbol_search_name): Update.
11578 * symtab.c (symbol_get_demangled_name): Change result type
11579 from char * to const char *. All callers updated.
11580 (symbol_natural_name, symbol_demangled_name): Ditto.
11581 (symbol_search_name): Ditto.
11582 (completion_list_add_name): Change type of symname,sym_text,
11583 text,word parameters from char * to const char *.
11584 (completion_list_objc_symbol): Change type of sym_text,
11585 text,word parameters from char * to const char *.
11586 * ada-lang.c (find_struct_field): Change type of name parameter
11587 from char * to const char *.
11588 (encoded_ordered_before): Similarly for N0,N1 parameters.
11589 (old_renaming_is_invisible): Similarly for function_name parameter.
11590 (ada_type_name): Change result type from char * to const char *.
11591 All callers updated.
11592 * ada-lang.h (ada_type_name): Update.
11593 * buildsym.c (hashname): Change type of name parameter
11594 from char * to const char *.
11595 * buildsym.h (hashname): Update.
11596 * dbxread.c (end_psymtab): Change type of include_list parameter
11597 from char ** to const char **.
11598 * dwarf2read.c (determine_prefix): Change result type
11599 from char * to const char *. All callers updated.
11600 * f-lang.c (find_common_for_function): Change type of name, funcname
11601 parameters from char * to const char *.
11602 * f-lang.c (find_common_for_function): Update.
11603 * f-valprint.c (list_all_visible_commons): Change type of funcname
11604 parameters from char * to const char *.
11605 * gdbarch.sh (static_transform_name): Change type of name parameter
11606 and result from char * to const char *.
11607 * gdbarch.c: Regenerate.
11608 * gdbarch.h: Regenerate.
11609 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11610 of name parameter from char * to const char *.
11611 * jv-lang.c (java_primitive_type_from_name): Ditto.
11612 (java_demangled_signature_length): Similarly for signature parameter.
11613 (java_demangled_signature_copy): Ditto.
11614 (java_demangle_type_signature): Ditto.
11615 * jv-lang.h (java_primitive_type_from_name): Update.
11616 (java_demangle_type_signature): Update.
11617 * objc-lang.c (specialcmp): Change type of a,b parameters
11618 from char * to const char *.
11619 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11620 from char * to const char *. All callers updated.
11621 * p-lang.h (is_pascal_string_type): Update.
11622 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11623 of name parameter from char * to const char *.
11624 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11625 * utils.c (fprintf_symbol_filtered): Ditto.
11626 * defs.h (fprintf_symbol_filtered): Update.
11627 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11628 * stabsread.h (end_psymtab): Update.
11629 * stack.c (find_frame_funname): Change type of funname parameter
11630 from char ** to const char **.
11631 * stack.h (find_frame_funname): Update.
11632 * typeprint.c (type_print): Change type of varstring parameter
11633 from char * to const char *.
11634 * value.h (type_print): Update.
11635 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11636 from char * to const char *. All callers updated.
11637 (xcoff_end_psymtab): Change type of include_list parameter
11638 from char ** to const char **. All callers updated.
11639 (swap_sym): Similarly for name parameter. All callers updated.
11640 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11641 Use xstrdup.
11642 (process_coff_symbol): Use xstrdup.
11643 * stabsread.c (stabs_method_name_from_physname): Renamed from
11644 update_method_name_from_physname. Change result type from void
11645 to char *. All callers updated.
11646 (read_member_functions): In has_destructor case, store name in objfile
11647 obstack instead of malloc space. In !has_stub case, fix mem leak.
11648
11649 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11650
11651 * configure: Rebuild.
11652 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11653 LDFLAGS.
11654
11655 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11656
11657 * configure.tgt (rl78-*-elf): New target.
11658 * rl78-tdep.c: New file.
11659
11660 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11661
11662 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11663 and continue the loop. Add QUIT statement.
11664
11665 2012-02-03 Tom Tromey <tromey@redhat.com>
11666
11667 PR gdb/13596:
11668 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11669 bfd_lookup_symbol_from_symtab.
11670 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11671 gdb_bfd_lookup_symbol_from_symtab.
11672
11673 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11674
11675 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11676 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11677 symbol. Add assertion that sym2 is never NULL.
11678
11679 2012-02-02 Doug Evans <dje@google.com>
11680
11681 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11682 "name" parameter to const char ** from char **. All callers updated.
11683 (find_pc_partial_function): Ditto.
11684 (cache_pc_function_name): Change type to const char * from char *.
11685 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11686 (find_pc_partial_function): Update.
11687 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11688 type of "name" parameter to const char * from char *.
11689 All uses updated.
11690 * arch-utils.c (generic_in_solib_return_trampoline): Change
11691 type of "name" parameter to const char * from char *.
11692 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11693 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11694 type of "name" parameter to const char * from char *.
11695 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11696 * gdbarch.c: Regenerate.
11697 * gdbarch.h: Regenerate.
11698 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11699 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11700 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11701 type of "name" parameter to const char * from char *.
11702 * skip.c (skip_function_pc): Ditto.
11703 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11704 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11705 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11706 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11707 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11708 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11709 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11710 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11711 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11712
11713 2012-02-02 Pedro Alves <palves@redhat.com>
11714
11715 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11716 the current inferior has no execution. Make sure the current
11717 remote process matches gdb's current inferior.
11718
11719 2012-02-02 Tom Tromey <tromey@redhat.com>
11720
11721 PR gdb/13405:
11722 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11723 read-only memory.
11724
11725 2012-02-02 Tom Tromey <tromey@redhat.com>
11726
11727 PR gdb/9307:
11728 * symtab.c (lookup_language_this): Set block_found.
11729
11730 2012-02-01 Tom Tromey <tromey@redhat.com>
11731
11732 PR gdb/13431:
11733 * jit.c (struct jit_inferior_data): Rewrite.
11734 (struct jit_objfile_data): New.
11735 (get_jit_objfile_data): New function.
11736 (add_objfile_entry): Update.
11737 (jit_read_descriptor): Return int. Replace descriptor_addr
11738 argument with inf_data. Update. Don't call error.
11739 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11740 descriptor here.
11741 (jit_inferior_init): Don't look up descriptor. Don't call error.
11742 (jit_reset_inferior_data_and_breakpoints)
11743 (jit_inferior_created_observer): Remove.
11744 (jit_inferior_exit_hook): Update.
11745 (jit_executable_changed_observer): Remove.
11746 (jit_event_handler): Update.
11747 (free_objfile_data): Reset inferior data if needed.
11748 (_initialize_jit): Update.
11749
11750 2012-02-01 Tom Tromey <tromey@redhat.com>
11751
11752 * jit.c (bfd_open_from_target_memory): Move higher in file.
11753
11754 2012-02-01 Tristan Gingold <gingold@adacore.com>
11755
11756 * libunwind-frame.c (libunwind_load): Display message if dlopen
11757 failed.
11758
11759 2012-02-01 Gary Benson <gbenson@redhat.com>
11760
11761 * symtab.h (symbol_found_callback_ftype): New typedef.
11762 (iterate_over_symbols): Use the above.
11763 * symtab.c (iterate_over_symbols): Likewise.
11764 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11765 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11766 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11767 (iterate_name_matcher): Document return values.
11768 (collect_one_symbol): Likewise.
11769 (collect_function_symbols): Likewise.
11770 (collect_symbols): Likewise.
11771
11772 2012-02-01 Tom Tromey <tromey@redhat.com>
11773
11774 * ada-lang.c (resolve_subexp): Update.
11775 (ada_lookup_symbol_list): Add 'full_search' argument.
11776 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11777 ada_lookup_symbol_list.
11778 (ada_lookup_encoded_symbol): Update.
11779 (get_var_value): Update.
11780 * ada-exp.y (block_lookup): Update.
11781 (write_var_or_type): Update.
11782 (write_name_assoc): Update.
11783 * ada-lang.h (ada_lookup_symbol_list): Update.
11784
11785 2012-01-31 Tom Tromey <tromey@redhat.com>
11786
11787 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11788 comment.
11789
11790 2012-01-31 Doug Evans <dje@google.com>
11791
11792 * symtab.h: Remove outdated comment.
11793 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11794
11795 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11796
11797 Fix build error in Darwin port.
11798 * i386-darwin-nat.c: Include i386-nat.h.
11799
11800 2012-01-30 Tom Tromey <tromey@redhat.com>
11801
11802 PR breakpoints/13568:
11803 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11804 argument. Check for recursive includes.
11805 (dwarf_decode_macros): Create an include hash.
11806
11807 2012-01-30 Michael Eager <eager@eagercon.com>
11808
11809 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11810 * ppc-linux-tdep.c: Include glibc-tdep.h.
11811 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
11812 (powerpc_linux_in_plt_stub): New function.
11813 (powerpc_linux_in_dynsym_resolve_code): New function.
11814 (ppc_skip_trampoline_code): New function.
11815 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11816 Use glibc_skip_solib_resolver.
11817
11818 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11819
11820 Code cleanup: Make 1440 bytes of data segment read-only.
11821 * arch-utils.c (endian_enum): Make it const char *const [].
11822 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11823 Likewise.
11824 * breakpoint.c (always_inserted_enums): Likewise.
11825 * cli/cli-cmds.c (script_ext_enums): Likewise.
11826 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11827 enumlist parameter const char *const *.
11828 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11829 const char *const *.
11830 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11831 parameter const char *const *.
11832 * cris-tdep.c (cris_modes): Make it const char *const [].
11833 * filesystem.c (target_file_system_kinds): Likewise.
11834 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11835 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11836 (can_use_displaced_stepping_enum, scheduler_enums)
11837 (exec_direction_names): Likewise.
11838 * language.c (_initialize_language): Make the type_or_range_names and
11839 case_sensitive_names variables const char *const [].
11840 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11841 * python/python.c (python_excp_enums): Likewise.
11842 * remote.c (interrupt_sequence_modes): Likewise.
11843 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11844 * serial.c (logbase_enums): Likewise.
11845 * sh-tdep.c (sh_cc_enum): Likewise.
11846 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11847 Likewise.
11848 * symtab.c (multiple_symbols_modes): Likewise.
11849 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11850 Likewise.
11851 * utils.c (internal_problem_modes): Likewise.
11852
11853 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11854
11855 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11856 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11857 result.
11858
11859 2012-01-27 Doug Evans <dje@google.com>
11860
11861 * configure.ac (with_python): Fix absolute path handling for win32.
11862 * configure: Regenerate.
11863
11864 2012-01-26 Doug Evans <dje@google.com>
11865
11866 * symtab.c: Whitespace cleanup, no code changes.
11867
11868 * symtab.c (lookup_symbol_in_language): Improve comment.
11869 (lookup_symbol_aux): Fix comment.
11870
11871 * psymtab.c (add_psymbol_to_list): Result is now "void".
11872 * psympriv.h (add_psymbol_to_list): Update.
11873
11874 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11875
11876 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11877
11878 Do not open script filenames twice.
11879 * cli/cli-cmds.c (source_script_from_stream): Pass to
11880 source_python_script also STREAM.
11881 * python/py-auto-load.c (source_section_scripts): Pass to
11882 source_python_script_for_objfile also STREAM.
11883 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11884 also INPUT.
11885 * python/python-internal.h (source_python_script_for_objfile): New
11886 parameter file, rename parameter file to filename.
11887 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11888 instead if !_WIN32. Update the function comment.
11889 (source_python_script, source_python_script_for_objfile)
11890 (source_python_script): New parameter file, rename parameter file to
11891 filename. Pass FILENAME to python_run_simple_file.
11892 * python/python.h (source_python_script): New parameter file, rename
11893 parameter file to filename.
11894
11895 2012-01-26 Pedro Alves <palves@redhat.com>
11896
11897 * corelow.c (core_has_fake_pid): Delete.
11898 (core_close): Delete references to `core_has_fake_pid'.
11899 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11900 (core_open): Delete references to `core_has_fake_pid'.
11901 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11902 the removed global.
11903
11904 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11905
11906 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11907 Remove language parameter from name_matcher. Adjust the comment.
11908 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11909 Remove language parameter.
11910 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11911 * linespec.c (iterate_name_matcher): Likewise.
11912 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11913 name_matcher. Adjust call accordingly.
11914 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11915 (maintenance_check_symtabs): Adjust type of parameter "fun".
11916 * psymtab.h (maintenance_check_symtabs): Likewise.
11917
11918 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11919
11920 * language.h (symbol_name_match_p_ftype): New typedef.
11921 (struct language_defn): Replace field la_symbol_name_compare
11922 by la_get_symbol_name_match_p.
11923 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11924 (ada_language_defn): Use it.
11925 * linespec.c (struct symbol_matcher_data): New type.
11926 (iterate_name_matcher): Rewrite.
11927 (iterate_over_all_matching_symtabs): Pass a pointer to
11928 a symbol_matcher_data struct to expand_symtabs_matching
11929 instead of just the lookup name.
11930 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11931 opencl-lang.c, p-lang.c, language.c: Delete field
11932 la_symbol_name_compare, and replace by NULL for new field
11933 la_get_symbol_name_match_p.
11934 * symfile.h (struct quick_symbol_functions): Update comment.
11935
11936 2012-01-25 Tom Tromey <tromey@redhat.com>
11937
11938 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11939 dereferencing.
11940
11941 2012-01-24 Tom Tromey <tromey@redhat.com>
11942
11943 PR symtab/12406:
11944 * solib.c (update_solib_list): Update the program space's
11945 added_solibs and deleted_solibs fields.
11946 * progspace.h (struct program_space) <added_solibs,
11947 deleted_solibs>: New fields.
11948 (clear_program_space_solib_cache): Declare.
11949 * progspace.c (release_program_space): Call
11950 clear_program_space_solib_cache.
11951 (clear_program_space_solib_cache): New function.
11952 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11953 bpstat_stop_status. Use handle_solib_event.
11954 * breakpoint.c: Include gdb_regex.h.
11955 (print_solib_event): New function.
11956 (bpstat_print): Use print_solib_event.
11957 (bpstat_stop_status): Add special case for bp_shlib_event.
11958 (handle_solib_event): New function.
11959 (bpstat_what): Use handle_solib_event.
11960 (struct solib_catchpoint): New.
11961 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11962 (breakpoint_hit_catch_solib, check_status_catch_solib)
11963 (print_it_catch_solib, print_one_catch_solib)
11964 (print_mention_catch_solib, print_recreate_catch_solib): New
11965 functions.
11966 (catch_solib_breakpoint_ops): New global.
11967 (catch_load_or_unload, catch_load_command_1)
11968 (catch_unload_command_1): New functions.
11969 (internal_bkpt_check_status): Add special case for
11970 bp_shlib_event.
11971 (internal_bkpt_print_it): Use print_solib_event.
11972 (initialize_breakpoint_ops): Initialize
11973 catch_solib_breakpoint_ops.
11974 (_initialize_breakpoint): Register "catch load" and "catch
11975 unload".
11976 * breakpoint.h (handle_solib_event): Declare.
11977 * NEWS: Add entry for "catch load" and "catch unload".
11978
11979 2012-01-24 Tom Tromey <tromey@redhat.com>
11980
11981 * ada-lang.c: Include gdb_vecs.h.
11982 * charset.c: Include gdb_vecs.h.
11983 * tracepoint.h: Include gdb_vecs.h.
11984 * gdb_vecs.h: New file.
11985
11986 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11987
11988 * breakpoint.c (breakpoint_hit_catch_fork)
11989 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11990 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11991 * infrun.c (inferior_has_forked, inferior_has_vforked)
11992 (inferior_has_execd, inferior_has_called_syscall): Delete.
11993 (handle_syscall_event): Get syscall_number from the execution
11994 control state's wait status.
11995 (wait_for_inferior): Don't clear syscall_number.
11996
11997 2012-01-24 Pedro Alves <palves@redhat.com>
11998
11999 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12000 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12001 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12002 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12003 `ws' parameter.
12004 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12005 false for events other than TARGET_SIGNAL_TRAP.
12006 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12007 Add `ws' parameter.
12008 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12009 events other than TARGET_SIGNAL_TRAP.
12010 (tracepoint_breakpoint_hit): Add `ws' parameter.
12011 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12012 parameter.
12013 (bpstat_stop_status): Same.
12014 (pc_at_non_inline_function): Same.
12015 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12016 to pass the current event's waitstatus to bpstat_stop_status
12017 and pc_at_non_inline_function.
12018
12019 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12020
12021 Code cleanup.
12022 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12023 Update the function comment for it.
12024 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12025 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12026 for STREAM.
12027
12028 2012-01-24 Pedro Alves <palves@redhat.com>
12029
12030 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12031 outside `bs->stop' block.
12032 (bpstat_what): Rework bp_shlib_event handling.
12033 (internal_bkpt_check_status): If the breakpoint is a
12034 bp_shlib_event, then set bs->stop and bs->print if
12035 stop_on_solib_events is set.
12036
12037 2012-01-24 Gary Benson <gbenson@redhat.com>
12038
12039 Delete #if 0'd out code.
12040 * stack.c (print_frame_label_vars): Remove.
12041 (catch_info): Likewise.
12042 (_initialize_stack): Remove "info catch" command.
12043 * NEWS: Mention the above.
12044
12045 2012-01-24 Pedro Alves <palves@redhat.com>
12046
12047 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12048 it.
12049 (remote_notice_new_inferior): If the remote end doesn't support
12050 the multiprocess extensions, then the PID is fake.
12051 (add_current_inferior_and_thread): New.
12052 (remote_start_remote): Use it.
12053 (extended_remote_attach_1): Adjust.
12054 (extended_remote_create_inferior_1): Use
12055 add_current_inferior_and_thread.
12056
12057 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12058
12059 Fix watchpoints to be specific for each inferior.
12060 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12061 current_program_space.
12062 * i386-nat.c (i386_inferior_data_cleanup): New.
12063 (i386_inferior_data_get): Replace variable inf_data_local by an
12064 inferior_data call.
12065 (i386_use_watchpoints): Initialize i386_inferior_data.
12066 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12067 specific iterate_over_lwps.
12068
12069 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12070
12071 Fix watchpoints across inferior fork.
12072 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12073 comment for linux_nat_iterate_watchpoint_lwps.
12074 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12075 linux_nat_iterate_watchpoint_lwps.
12076 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12077 * i386-linux-nat.c (update_debug_registers_callback): Update the
12078 comment for linux_nat_iterate_watchpoint_lwps.
12079 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12080 linux_nat_iterate_watchpoint_lwps.
12081 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12082 * i386-nat.c: Include inferior.h.
12083 (dr_mirror): Remove.
12084 (i386_inferior_data, struct i386_inferior_data)
12085 (i386_inferior_data_get): New.
12086 (i386_debug_reg_state): Use i386_inferior_data_get.
12087 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12088 (i386_insert_watchpoint, i386_remove_watchpoint)
12089 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12090 (i386_remove_hw_breakpoint): New variable state, use
12091 i386_debug_reg_state instead of DR_MIRROR.
12092 * linux-nat.c (delete_lwp): New declaration.
12093 (num_lwps): Move here from downwards.
12094 (delete_lwp_cleanup): New.
12095 (linux_child_follow_fork): Create new child_lp, call
12096 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12097 PTRACE_DETACH.
12098 (num_lwps): Move upwards.
12099 (linux_nat_iterate_watchpoint_lwps): New.
12100 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12101 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12102
12103 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12104
12105 GDB 7.4 released.
12106
12107 2012-01-23 Pedro Alves <palves@redhat.com>
12108
12109 * top.c (caution): Rename to ...
12110 (confirm): ... this.
12111 (show_caution): Rename to ...
12112 (show_confirm): ... this.
12113 (quit_cover): Adjust.
12114 (init_main): Adjust.
12115 * top.h (caution): Rename to ...
12116 (confirm): ... this.
12117 * utils.c (internal_vproblem, defaulted_query): Adjust.
12118
12119 2012-01-23 Pedro Alves <palves@redhat.com>
12120
12121 * top.c (caution): Update comment.
12122 (execute_command): Don't consider the current value of `caution'.
12123
12124 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12125
12126 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12127
12128 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12129
12130 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12131 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12132 * target.c (target_fileio_pwrite): Remove buffer address from
12133 debug output.
12134 (target_fileio_pread): Likewise.
12135
12136 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12137
12138 * NEWS: Document remote "info proc" and "generate-core-file".
12139
12140 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12141
12142 * gdbarch.sh (find_memory_regions): New callback.
12143 * gdbarch.c, gdbarch.h: Regenerate.
12144
12145 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12146 callback before falling back to target method.
12147
12148 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12149 (linux_target_install_ops): No longer install it.
12150
12151 * linux-tdep.c (linux_find_memory_regions): New function.
12152 (linux_init_abi): Install it.
12153
12154 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12155
12156 * gdbarch.sh (make_corefile_notes): New architecture callback.
12157 * gdbarch.c: Regenerate.
12158 * gdbarch.h: Likewise.
12159
12160 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12161 before target_make_corefile_notes. If NULL is returned, the
12162 target does not support core file generation.
12163
12164 * linux-nat.c: Include "linux-tdep.h".
12165 (find_signalled_thread, find_stop_signal): Remove.
12166 (linux_nat_do_thread_registers): Likewise.
12167 (struct linux_nat_corefile_thread_data): Likewise.
12168 (linux_nat_corefile_thread_callback): Likewise.
12169 (iterate_over_spus): Likewise.
12170 (struct linux_spu_corefile_data): Likewise.
12171 (linux_spu_corefile_callback): Likewise.
12172 (linux_spu_make_corefile_notes): Likewise.
12173 (linux_nat_collect_thread_registers): New function.
12174 (linux_nat_make_corefile_notes): Replace contents by call to
12175 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12176 as native-only callback.
12177
12178 * linux-tdep.h: Include "bfd.h".
12179 (struct regcache): Add forward declaration.
12180 (linux_collect_thread_registers_ftype): New typedef.
12181 (linux_make_corefile_notes): Add prototype.
12182 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12183 "regset.h", and "elf-bfd.h".
12184 (find_signalled_thread, find_stop_signal): New functions.
12185 (linux_spu_make_corefile_notes): Likewise.
12186 (linux_collect_thread_registers): Likewise.
12187 (struct linux_corefile_thread_data): New data structure.
12188 (linux_corefile_thread_callback): New funcion.
12189 (linux_make_corefile_notes): Likewise.
12190 (linux_make_corefile_notes_1): Likewise.
12191 (linux_init_abi): Install it.
12192
12193 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12194
12195 * gdbarch.sh (info_proc): New callback.
12196 * gdbarch.c, gdbarch.h: Regenerate.
12197
12198 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12199 before falling back to the target info_proc callback.
12200
12201 * linux-nat.c: Do not include "cli/cli-utils.h".
12202 (linux_nat_info_proc): Remove.
12203 (linux_target_install_ops): No longer install it.
12204
12205 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12206 (read_mapping): New function.
12207 (linux_info_proc): Likewise.
12208 (linux_init_abi): Install it.
12209
12210 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12211
12212 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12213 * infcmd.c: (info_proc_cmd_1): New function.
12214 (info_proc_cmd): New function, moved here from equivalent routine
12215 orignally in linux-nat.c.
12216 (info_proc_cmd_mappings): Likewise.
12217 (info_proc_cmd_stat): Likewise.
12218 (info_proc_cmd_status): Likewise.
12219 (info_proc_cmd_cwd): Likewise.
12220 (info_proc_cmd_cmdline): Likewise.
12221 (info_proc_cmd_exe): Likewise.
12222 (info_proc_cmd_all): Likewise.
12223 (_initialize_infcmd): Install "info proc" command and subcommands.
12224
12225 * target.h (struct target_ops): Add to_info_proc.
12226 (target_info_proc): Add prototype.
12227 * target.c (target_info_proc): New function.
12228
12229 * procfs.c (procfs_info_proc): Add prototype.
12230 (info_proc_cmd): Rename into ...
12231 (procfs_info_proc): ... this. Update argument types as appropriate
12232 for a to_info_proc implementation. Handle "what" argument.
12233 (procfs_target): Install procfs_info_proc.
12234 (_initialize_procfs): No longer install "info proc" command.
12235
12236 * linux-nat.c: (enum info_proc_what): Remove.
12237 (linux_nat_info_proc_cmd_1): Rename into ...
12238 (linux_nat_info_proc): ... this. Update argument types as appropriate
12239 for a to_info_proc implementation.
12240 (linux_nat_info_proc_cmd): Remove.
12241 (linux_nat_info_proc_cmd_mappings): Likewise.
12242 (linux_nat_info_proc_cmd_stat): Likewise.
12243 (linux_nat_info_proc_cmd_status): Likewise.
12244 (linux_nat_info_proc_cmd_cwd): Likewise.
12245 (linux_nat_info_proc_cmd_cmdline): Likewise.
12246 (linux_nat_info_proc_cmd_exe): Likewise.
12247 (linux_nat_info_proc_cmd_all): Likewise.
12248 (linux_target_install_ops): Install linux_nat_info_proc.
12249 (_initialize_linux_nat): No longer install "info proc" command
12250 and subcommands.
12251
12252 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12253
12254 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12255 * config.in, configure: Regenerate.
12256
12257 * target.h (struct target_ops): Add to_fileio_readlink.
12258 (target_fileio_readlink): Add prototype.
12259 * target.c (target_fileio_readlink): New function.
12260
12261 * inf-child.c: Conditionally include <sys/param.h>.
12262 (inf_child_fileio_readlink): New function.
12263 (inf_child_target): Install it.
12264
12265 * remote.c (PACKET_vFile_readlink): New enum value.
12266 (remote_hostio_readlink): New function.
12267 (init_remote_ops): Install it.
12268 (_initialize_remote): Handle vFile:readlink packet type.
12269
12270 2012-01-20 Pedro Alves <palves@redhat.com>
12271 Ulrich Weigand <ulrich.weigand@linaro.org>
12272
12273 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12274 * config.in, configure: Regenerate.
12275
12276 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12277 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12278 (target_fileio_open): Add prototype.
12279 (target_fileio_pwrite): Likewise.
12280 (target_fileio_pread): Likewise.
12281 (target_fileio_close): Likewise.
12282 (target_fileio_unlink): Likewise.
12283 (target_fileio_read_alloc): Likewise.
12284 (target_fileio_read_stralloc): Likewise.
12285
12286 * target.c: Include "gdb/fileio.h".
12287 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12288 (default_fileio_target): New function.
12289 (target_fileio_open): Likewise.
12290 (target_fileio_pwrite): Likewise.
12291 (target_fileio_pread): Likewise.
12292 (target_fileio_close): Likewise.
12293 (target_fileio_unlink): Likewise.
12294 (target_fileio_close_cleanup): Likewise.
12295 (target_fileio_read_alloc_1): Likewise.
12296 (target_fileio_read_alloc): Likewise.
12297 (target_fileio_read_stralloc): Likewise.
12298
12299 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12300 <fcntl.h>, and <unistd.h>.
12301 (inf_child_fileio_open_flags_to_host): New function.
12302 (inf_child_errno_to_fileio_error): Likewise.
12303 (inf_child_fileio_open): Likewise.
12304 (inf_child_fileio_pwrite): Likewise.
12305 (inf_child_fileio_pread): Likewise.
12306 (inf_child_fileio_close): Likewise.
12307 (inf_child_fileio_unlink): Likewise.
12308 (inf_child_target): Install to_fileio routines.
12309
12310 * remote.c (init_remote_ops): Install to_fileio routines.
12311
12312 2012-01-20 Pedro Alves <palves@redhat.com>
12313 Ulrich Weigand <ulrich.weigand@linaro.org>
12314
12315 * remote.c (remote_multi_process_p): Only check for multi-process
12316 protocol feature, do not check for extended protocol.
12317 (remote_supports_multi_process): Check for extended protocol here.
12318 (set_general_process): Likewise.
12319 (extended_remote_kill): Likewise.
12320 (remote_pid_to_str): Likewise.
12321 (remote_query_supported): Always query multiprocess mode.
12322
12323 2012-01-20 Pedro Alves <palves@redhat.com>
12324 Ulrich Weigand <ulrich.weigand@linaro.org>
12325
12326 * inferior.h (struct inferior): Add fake_pid_p.
12327 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12328 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12329 magic_null_ptid since the remote side doesn't provide a real PID.
12330
12331 2012-01-19 Tom Tromey <tromey@redhat.com>
12332
12333 * NEWS: Combine the two Python sections.
12334
12335 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12336
12337 * target.h (target_close): Update comment on the target's unpush state.
12338
12339 2012-01-19 Pedro Alves <palves@redhat.com>
12340
12341 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12342 linux_nat_async directly instead of going through the target
12343 vector.
12344 * target.c (unpush_target): Close target after unpushing it, not
12345 before.
12346
12347 2012-01-19 Gary Benson <gbenson@redhat.com>
12348
12349 * mdebugread.c (sort_blocks): Replace integer constants with ones
12350 derived from FIRST_LOCAL_BLOCK.
12351
12352 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12353 Jan Kratochvil <jan.kratochvil@redhat.com>
12354
12355 PR gdb/9538
12356 * symfile.c (find_separate_debug_file): New function.
12357 (terminate_after_last_dir_separator): Likewise.
12358 (find_separate_debug_file_by_debuglink): Also try realpath.
12359 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12360 * configure: Regenerate.
12361 * config.in: Regenerate.
12362
12363 2012-01-18 Doug Evans <dje@google.com>
12364
12365 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12366 (main.o): Remove rule.
12367 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12368 (--with-sysroot): Rewrite.
12369 * configure: Regenerate.
12370 * config.in: Regenerate.
12371
12372 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12373
12374 * parse.c (initialize_expout): New function.
12375 (reallocate_expout): Likewise.
12376 (parse_exp_in_context): Use `initialize_expout' and
12377 `reallocate_expout' when appropriate.
12378
12379 2012-01-18 Pedro Alves <palves@redhat.com>
12380
12381 * record.c (struct record_breakpoint, record_breakpoint_p)
12382 (record_breakpoints): New.
12383 (record_insert_breakpoint, record_remove_breakpoint): Manage
12384 record breakpoints list. Only remove breakpoints from the
12385 inferior if they had been inserted there in the first place.
12386
12387 2012-01-17 Doug Evans <dje@google.com>
12388
12389 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12390 if we know we don't have a file name to look for.
12391
12392 2012-01-17 Pedro Alves <palves@redhat.com>
12393
12394 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12395 the frame's stop reason is UNWIND_UNAVAILABLE.
12396
12397 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12398
12399 Fix compilation error.
12400 * m2-exp.y (yyerror): Use ANSI C prototype.
12401
12402 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12403
12404 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12405 (growbuf_by_size): Likewise.
12406 (yyerror): Likewise.
12407 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12408 (modblock): Remove variable (was #if 0'ed).
12409 (parse_number): Convert prototype from K&R to ANSI C.
12410 (yyerror): Likewise.
12411 * objc-exp.y (parse_number): Likewise.
12412 (yyerror): Likewise.
12413 (yylex): Remove #if 0'ed code.
12414 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12415 (yyerror): Likewise.
12416
12417 2012-01-16 Tom Tromey <tromey@redhat.com>
12418
12419 * NEWS: Add item.
12420 * symtab.h (compare_filenames_for_search): Declare.
12421 * symtab.c (compare_filenames_for_search): New function.
12422 (iterate_over_some_symtabs): Use it.
12423 * symfile.h (struct quick_symbol_functions)
12424 <map_symtabs_matching_filename>: Change spec.
12425 * psymtab.c (partial_map_symtabs_matching_filename): Use
12426 compare_filenames_for_search. Update for new spec.
12427 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12428 compare_filenames_for_search. Update for new spec.
12429 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12430
12431 2012-01-16 Tom Tromey <tromey@redhat.com>
12432
12433 PR python/13281:
12434 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12435 (struct main_type) <flag_flag_enum>: New field.
12436 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12437 * NEWS: Add entries.
12438 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12439 enums.
12440 * python/lib/gdb/printing.py (_EnumInstance): New class.
12441 (FlagEnumerationPrinter): Likewise.
12442
12443 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12444
12445 * breakpoint.c (create_sals_from_address_default): New function.
12446 (create_breakpoints_sal_default): Likewise.
12447 (decode_linespec_default): Likewise.
12448 (is_marker_spec): Removed.
12449 (strace_marker_p): New function.
12450 (init_breakpoint_sal): Using `strace_marker_p' instead of
12451 `is_marker_spec'.
12452 (create_breakpoint): Call method `create_sals_from_address' from
12453 breakpoint_ops, replacing code that created SALs conditionally
12454 on the type of the breakpoint. Call method `create_breakpoints_sal',
12455 replacing code that created breakpoints conditionally on the type
12456 wanted.
12457 (base_breakpoint_create_sals_from_address): New function.
12458 (base_breakpoint_create_breakpoints_sal): Likewise.
12459 (base_breakpoint_decode_linespec): Likewise.
12460 (base_breakpoint_ops): Add methods
12461 `base_breakpoint_create_sals_from_address',
12462 `base_breakpoint_create_breakpoints_sal' and
12463 `base_breakpoint_decode_linespec'.
12464 (bkpt_create_sals_from_address): New function.
12465 (bkpt_create_breakpoints_sal): Likewise.
12466 (bkpt_decode_linespec): Likewise.
12467 (tracepoint_create_sals_from_address): Likewise.
12468 (tracepoint_create_breakpoints_sal): Likewise.
12469 (tracepoint_decode_linespec): Likewise.
12470 (strace_marker_create_sals_from_address): Likewise.
12471 (strace_marker_create_breakpoints_sal): Likewise.
12472 (strace_marker_decode_linespec): Likewise.
12473 (strace_marker_breakpoint_ops): New variable.
12474 (addr_string_to_sals): Remove `marker_spec'. Call method
12475 `decode_linespec' from breakpoint_ops, replacing code that decoded
12476 an address string into a SAL. Use `strace_marker_p' instead of
12477 `marker_spec'.
12478 (strace_command): Decide whether we are dealing with a static
12479 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12480 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12481 * breakpoint.h (linespec_result, linespec_sals): New forward
12482 declarations.
12483 (breakpoint_ops) <create_sals_from_address>,
12484 <create_breakpoints_sal>, <decode_linespec>: New methods.
12485
12486 2012-01-14 Doug Evans <dje@google.com>
12487
12488 * NEWS: Update text for "maint set python print-stack".
12489 It is deprecated in gdb 7.4 and deleted in 7.5.
12490
12491 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12492
12493 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12494 including curses.h.
12495
12496 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12497
12498 * configure: Regenerate.
12499 * config.in: Regenerate.
12500
12501 2012-01-12 Keith Seitz <keiths@redhat.com>
12502
12503 PR mi/10586
12504 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12505 (ANONYMOUS_UNION_NAME): Define.
12506 (is_path_expr_parent): New function.
12507 (get_path_expr_parent): New function.
12508 (is_anonymous_child): New function.
12509 (create_child_with_value): If the child is anonymous and without
12510 a name, assign an object name to it.
12511 (c_describe_child): Use get_path_expr_parent to determine
12512 the parent expression.
12513 If there field represents an anonymous struct or union and
12514 has no name, set an appropriate display name and expression.
12515 (cplus_describe_child): Likewise.
12516
12517 2012-01-12 Pedro Alves <palves@redhat.com>
12518
12519 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12520 available when %ebp is found to be zero (outermost).
12521
12522 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12523
12524 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12525 an internal gdb_static_assert.
12526 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12527
12528 2012-01-11 Tom Tromey <tromey@redhat.com>
12529
12530 PR gdb/9598:
12531 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12532 catch" and "catch throw".
12533
12534 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12535
12536 * blockframe.c (block_innermost_frame): Start search from selected
12537 frame, if present, or otherwise the current frame.
12538
12539 * c-exp.y (variable): Update innermost_block for
12540 'block COLONCOLON NAME' clause.
12541 * m2-exp.y (variable): Ditto.
12542 * objc-exp.y (variable): Ditto.
12543
12544 2012-01-10 Tom Tromey <tromey@redhat.com>
12545
12546 PR python/13199:
12547 * python/python.c (finish_python_initialization): Set sys.argv.
12548
12549 2012-01-10 Doug Evans <dje@google.com>
12550
12551 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12552 "want_line_info". All callers updated.
12553 (dwarf_decode_lines_1): New function.
12554 (handle_DW_AT_stmt_list): Add function comment.
12555 New arg "want_line_info". All callers updated.
12556 (read_file_scope,read_type_unit_scope): Move comment from
12557 handle_DW_AT_stmt_list to here.
12558
12559 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12560
12561 Fix regression after libiberty/ update for GCC PR 6057 and others.
12562 * c-exp.y (operator) <OPERATOR DELETE>
12563 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12564 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12565 (make_builtin_type, make_name): New variable i, add gdb_assert.
12566 (operator) <OPERATOR NEW>: Update ARGS to 3.
12567 (operator) <OPERATOR DELETE>: Add trailing space.
12568 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12569 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12570 * cp-support.c (cp_canonicalize_string): Check NULL from
12571 cp_comp_to_string, call warning and return.
12572
12573 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12574
12575 Fix duplicate .o files after omitting libbfd.a.
12576 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12577 (SFILES): Add corelow.c.
12578 (COMMON_OBS): Add corelow.o.
12579 (ALLDEPFILES): Remove corelow.c.
12580 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12581 * config/alpha/alpha-osf3.mh: Likewise.
12582 * config/alpha/fbsd.mh: Likewise.
12583 * config/arm/nbsdaout.mh: Likewise.
12584 * config/arm/nbsdelf.mh: Likewise.
12585 * config/i386/i386gnu.mh: Likewise.
12586 * config/ia64/hpux.mh: Likewise.
12587 * config/ia64/linux.mh: Likewise.
12588 * config/m32r/linux.mh: Likewise.
12589 * config/m68k/linux.mh: Likewise.
12590 * config/mips/irix5.mh: Likewise.
12591 * config/mips/irix6.mh: Likewise.
12592 * config/pa/hpux.mh: Likewise.
12593 * config/pa/linux.mh: Likewise.
12594 * config/powerpc/aix.mh: Likewise.
12595 * config/sparc/linux.mh: Likewise.
12596 * config/sparc/linux64.mh: Likewise.
12597 * config/sparc/sol2.mh: Likewise.
12598 * config/vax/vax.mh: Likewise.
12599 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12600 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12601 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12602 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12603 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12604 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12605 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12606 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12607 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12608 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12609 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12610 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12611 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12612 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12613 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12614 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12615 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12616 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12617 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12618 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12619 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12620 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12621 corelow.o from gdb_target_obs.
12622 * corefile.c (core_target): Update the comment on NULL value.
12623 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12624 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12625 MATCHES. Drop YUMMY set on NULL.
12626 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12627 reclaim CORE_DATA if it is already NULL.
12628
12629 2012-01-09 Doug Evans <dje@google.com>
12630
12631 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12632 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12633
12634 2012-01-09 Keith Seitz <keiths@redhat.com>
12635
12636 * breakpoint.c (wrapper.h): Don't include.
12637
12638 2012-01-09 Keith Seitz <keiths@redhat.com>
12639
12640 * Makefile.in (SFILES): Remove wrapper.c.
12641 (HFILES_NO_SRCDIR): Remove wrapper.h.
12642 (COMMON_OBS): Remove wrapper.o.
12643 * cli/cli-interp.c: Don't inlude wrapper.h.
12644 * corelow.c: Likewise.
12645 (core_open): Replace gdb_target_find_new_threads with
12646 TRY_CATCH around target_find_new_threads.
12647 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12648 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12649 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12650 evaluate_expression.
12651 (varobj_set_value): Likewise for evaluate_expression and
12652 value_assign.
12653 (install_new_variable): Likewise for value_fetch_lazy.
12654 (adjust_value_for_child_access): Likewise for value_ind.
12655 (c_describe_child): Likewise for value_subscript and
12656 value_ind.
12657 (c_value_of_root): Likewise for evaluate_expression.
12658 * wrapper.c: Remove.
12659 * wrapper.h: Remove.
12660
12661 2012-01-09 Doug Evans <dje@google.com>
12662
12663 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12664 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12665 "abfd" args with "section". All callers updated.
12666 Error checking code moved ...
12667 (error_check_comp_unit_head): ... here. New function.
12668 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12669 Delete arg "abfd". New arg "type_offset". All callers updated.
12670 (create_debug_types_hash_table): Simplify by using
12671 read_and_check_type_unit_head.
12672
12673 * parser-defs.h (namecopy): Delete.
12674 * parse.c (namecopy, namecopy_size): Move into copy_name.
12675
12676 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12677
12678 Partially fix duplicate .o files after omitting libbfd.a.
12679 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12680 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12681 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12682 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12683 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12684 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12685 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12686
12687 2012-01-09 Pedro Alves <palves@redhat.com>
12688
12689 * MAINTAINERS: Update my email address.
12690
12691 2012-01-08 Doug Evans <dje@google.com>
12692
12693 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12694 n_type_units. Rename type_comp_units to all_type_units.
12695 All uses updated.
12696 (add_signatured_type_cu_to_table): Renamed from
12697 add_signatured_type_cu_to_list. All callers updated.
12698
12699 * gdbtypes.h (struct cplus_struct_type): Delete member
12700 nfn_fields_total. All uses removed.
12701
12702 2012-01-06 Doug Evans <dje@google.com>
12703
12704 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12705 to top of file.
12706 (dwarf2_find_comp_unit): Delete.
12707 (process_psymtab_comp_unit): Make result "void".
12708 Delete args buffer, info_ptr, buffer_size, and replace with
12709 "section". All callers updated.
12710 (dwarf2_build_psymtabs_hard): Simplify.
12711
12712 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12713 Thiago Jung Bauermann <bauerman@br.ibm.com>
12714
12715 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12716 before `struct gdb_exception'.
12717 * breakpoint.c (update_global_location_list_nothrow)
12718 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12719 * cp-abi.c (value_rtti_type): Likewise.
12720 * cp-support.c (cp_validate_operator): Likewise.
12721 * infrun.c (insert_exception_resume_breakpoint)
12722 (check_exception_resume, keep_going): Likewise.
12723 * mi-interp.c (mi_breakpoint_created)
12724 (mi_breakpoint_modified): Likewise.
12725 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12726 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12727 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12728
12729 2012-01-05 Doug Evans <dje@google.com>
12730
12731 * dwarf2read.c (statement_prologue): Delete, unused.
12732
12733 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12734 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12735
12736 * dwarf2read.c (comp_unit_header): Delete, unused.
12737
12738 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12739
12740 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12741 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12742
12743 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12744
12745 * infrun.c (normal_stop): Don't skip calling the normal_stop
12746 observers if the thread was doing a multi-step, but stopped for
12747 some reason other than stepping.
12748
12749 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12750
12751 * cli/cli-decode.h: Add comments.
12752 (CMD_LIST_AMBIGUOUS): Moved to command.h
12753 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12754 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12755 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12756 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12757 (add_com, add_com_alias, add_info, add_info_alias)
12758 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12759 declarations.
12760 * command.h: Add and adjust comments.
12761 (CMD_LIST_AMBIGUOUS): Moved here.
12762 (help_cmd, help_cmd_list): Delete declarations.
12763
12764 2012-01-04 Doug Evans <dje@google.com>
12765
12766 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12767 All callers updated.
12768 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12769 Replace all arguments with "per_cu". All callers updated.
12770
12771 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12772
12773 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12774 New arg "per_cu". All callers updated.
12775
12776 Delete #if 0'd out code.
12777 * language.c (binop_result_type): Delete.
12778 (simple_type, ordered_type, same_type, integral_type): Delete.
12779 (numeric_type, character_type, string_type, boolean_type): Delete.
12780 (float_type, structured_type): Delete.
12781 * language.h: Update.
12782
12783 2012-01-04 Tom Tromey <tromey@redhat.com>
12784
12785 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12786
12787 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12788
12789 * corefile.c (close_exec_file): Delete.
12790 (reopen_exec_file): Remove commented out code that seems related
12791 to close_exec_file, which is being deleted here.
12792 * inferior.h (close_exec_file): Delete.
12793 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12794
12795 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12796
12797 * ada-lang.c: #include "cli/cli-utils.h".
12798 (get_selections): Use skip_spaces.
12799 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12800 (catch_ada_exception_command_split): Use skip_spaces.
12801 (ada_decode_assert_location): Likewise.
12802
12803 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12804
12805 * linespec.c (decode_line_internal): Check for C++ or Java
12806 compound constructs only if the current language is C, C++
12807 or Java.
12808
12809 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12810
12811 Revert:
12812 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12813 Joel Brobecker <brobecker@adacore.com>
12814 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12815 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12816 3 times.
12817 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12818 fall through into AT_ENTRY_POINT.
12819 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12820 DUMMY_ADDR with it.
12821 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12822 PPC_INSN_SIZE skip to 3 times.
12823
12824 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12825
12826 * linespec.c (add_minsym): Preserve function descriptors.
12827
12828 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12829
12830 * breakpoint.c (all_locations_are_pending): Consider locations
12831 in program spaces executing during startup pending as well.
12832
12833 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12834
12835 Copyright year update in most files of the GDB Project.
12836
12837 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12838
12839 * copyright.sh: Delete.
12840 * copyright.py: Rewrite.
12841
12842 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12843
12844 * gnulib/extra/update-copyright: New file, imported from gnulib.
12845
12846 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12847
12848 * README (Copyright and License Notices): New section.
12849
12850 2012-01-03 Tom Tromey <tromey@redhat.com>
12851
12852 PR python/12533:
12853 * python/py-value.c (valpy_dereference, valpy_get_address
12854 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12855 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12856 (valpy_absolute, valpy_richcompare): Free intermediate values.
12857
12858 2011-01-03 Joel Brobecker <brobecker@adacore.com>
12859
12860 * ada-lang.c: Reformat the copyright notice.
12861
12862 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12863
12864 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12865 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12866 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12867 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12868 Revert this part of:
12869 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12870 Build gdb directly from *.o files not using libgdb.a.
12871 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12872
12873 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12874
12875 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12876 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12877 Reformat the copyright header.
12878
12879 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12880
12881 Revert this part of:
12882 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12883 Remove the gdbtui binary.
12884 * gdb.c (main): Remove args.interpreter_p initialization.
12885 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12886 * main.h (struct captured_main_args): Remove interpreter_p.
12887
12888 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12889
12890 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12891
12892 2012-01-02 Joel Brobecker <brobecker@adacore.com>
12893
12894 * top.c (print_gdb_version): Update copyright year.
12895
12896 2012-01-02 Yao Qi <yao@codesourcery.com>
12897
12898 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12899
12900 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12901 Joel Brobecker <brobecker@adacore.com>
12902
12903 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12904 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12905 3 times.
12906 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12907 fall through into AT_ENTRY_POINT.
12908 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12909 DUMMY_ADDR with it.
12910 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12911 PPC_INSN_SIZE skip to 3 times.
12912
12913 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12914
12915 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12916 the return value.
12917 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12918
12919 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12920
12921 Build gdb directly from *.o files not using libgdb.a.
12922 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12923 (COMMON_OBS): Remove solib-target.o.
12924 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12925 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12926 (LIBGDB_OBS, libgdb.a): Move it above.
12927 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12928 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12929 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12930 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12931 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12932 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12933 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12934 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12935 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12936 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12937 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12938 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12939 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12940 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12941 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12942 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12943 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12944 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12945 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12946 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12947 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12948 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12949 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12950 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12951 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12952 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12953 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12954
12955 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12956
12957 Remove the gdbtui binary.
12958 * .gitignore (/gdbtui): Remove.
12959 * Makefile.in (TUI): Remove.
12960 (SUBDIR_TUI_OBS): Remove tui-main.o.
12961 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12962 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12963 (tui-main.o): Remove.
12964 (all_object_files): Remove tui-main.o.
12965 * NEWS: New note for the gdbtui removal.
12966 * configure: Rebuilt.
12967 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12968 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12969 CONFIG_UNINSTALL respectively.
12970 * gdb.c (main): Remove args.interpreter_p initialization.
12971 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12972 * main.h (struct captured_main_args): Remove interpreter_p.
12973 * tui/tui-main.c: Remove.
12974
12975 2012-01-01 Doug Evans <dje@google.com>
12976
12977 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12978 (dwarf2_physname, read_import_statement): Ditto.
12979 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12980 (process_structure_scope read_subroutine_type): Ditto.
12981 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12982 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12983 (dwarf2_fetch_die_location_block): Ditto.
12984 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12985
12986 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12987 All callers updated.
12988 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12989 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12990 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12991
12992 * dwarf2read.c (load_cu): Move assert to more useful location.
12993
12994 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12995 All callers updated.
12996
12997 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12998 (dwarf2_elf_names): Minor reformat.
12999 (dwarf2_per_cu_data): Tweak comment.
13000 (dwarf2_read_section): Fix comment.
13001 (create_all_comp_units): Fix comment.
13002 (load_full_comp_unit): Fix comment.
13003 (process_full_comp_unit): Fix comment.
13004 (read_signatured_type): Fix comment.
13005
13006 For older changes see ChangeLog-2011.
13007 \f
13008 Local Variables:
13009 mode: change-log
13010 left-margin: 8
13011 fill-column: 74
13012 version-control: never
13013 coding: utf-8
13014 End: