Fix copyright years in gdbarch.h and gdbarch.c.
[binutils-gdb.git] / gdb / ChangeLog
1 2012-12-19 Joel Brobecker <brobecker@adacore.com>
2
3 * gdbarch.sh (copyright): Update copyright years.
4 * gdbarch.h, gdbarch.c: Regenerate.
5 * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
6 (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
7
8 2012-12-19 Joel Brobecker <brobecker@adacore.com>
9
10 * acinclude.m4: Update contact info in copyright notice.
11
12 2012-12-19 Yao Qi <yao@codesourcery.com>
13
14 * maint.c (maintenance_print_statistics): Make it static.
15 * symtab.h (maintenance_print_statistics): Remove declaration.
16
17 2012-12-19 Joel Brobecker <brobecker@adacore.com>
18
19 * NEWS: Add entry announcing ppc-lynx178 support.
20
21 2012-12-19 Joel Brobecker <brobecker@adacore.com>
22
23 Revert the following change (compatibility issues with libiconv):
24 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
25 * gnulib/import/errno.in.h: Import.
26 * gnulib/import/m4/errno_h.m4: Import.
27 * gnulib/aclocal.m4: Regenerate.
28 * gnulib/configure: Regenerate.
29 * gnulib/import/Makefile.am: Update.
30 * gnulib/import/Makefile.in: Update.
31 * gnulib/import/m4/gnulib-cache.m4: Update.
32 * gnulib/import/m4/gnulib-comp.m4: Update.
33
34 2012-12-18 Tom Tromey <tromey@redhat.com>
35
36 * defs.h (directory_command): Don't declare.
37 * source.c (directory_command): Now static.
38
39 2012-12-18 Tom Tromey <tromey@redhat.com>
40
41 * infcmd.c (all_registers_info, nexti_command, stepi_command)
42 (continue_command, interrupt_target_command): Now static.
43 (registers_info): Remove declaration.
44 * inferior.h (all_registers_info, nexti_command, stepi_command)
45 (continue_command, interrupt_target_command): Don't declare.
46
47 2012-12-18 Tom Tromey <tromey@redhat.com>
48
49 * cli/cli-cmds.c (apropos_command): Now static.
50
51 2012-12-18 Tom Tromey <tromey@redhat.com>
52
53 * breakpoint.c (dprintf_command): Now static.
54
55 2012-12-18 Tom Tromey <tromey@redhat.com>
56
57 * Makefile.in (init.c): Declare initialize_all_files;
58 don't include call-cmds.h.
59 * call-cmds.h: Remove.
60 * symtab.c: Don't include call-cmds.h.
61 * top.c: Don't include call-cmds.h. Declare
62 initialize_all_files.
63
64 2012-12-18 Tom Tromey <tromey@redhat.com>
65
66 * symfile.c (list_overlays_command, map_overlay_command)
67 (unmap_overlay_command): Now static.
68
69 2012-12-18 Tom Tromey <tromey@redhat.com>
70
71 * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
72 "define", "while", and "if" commands.
73 * cli/cli-script.c (while_command, if_command, define_command)
74 (document_command): Now static.
75 (_initialize_cli_script): New function.
76 * cli/cli-script.h (while_command, if_command, define_command)
77 (document_command): Don't declare.
78
79 2012-12-18 Tom Tromey <tromey@redhat.com>
80
81 * cli/cli-cmds.c (_initialize_cli_cmds): New function.
82 (init_cli_cmds): Move most code into new function.
83
84 2012-12-18 Tom Tromey <tromey@redhat.com>
85
86 * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
87 * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
88 declare.
89
90 2012-12-18 Joel Brobecker <brobecker@adacore.com>
91
92 * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
93 * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
94 * xcoffread.c (xcoff_get_core_n_import_files): New function.
95 (xcoff_get_n_import_files): New function.
96 * xcoffread.h (xcoffread.h): Add declaration.
97 * rs6000-aix-tdep.c: #include "xcoffread.h".
98 (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
99 XCOFF executables that do not depend on any shared library.
100 * rs6000-lynx178-tdep.c: New file.
101 * configure.tgt: Add powerpc-*-lynx*178 handling.
102 * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
103 (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
104
105 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
106
107 * ui-file.c (ui_file): Add to_fseek.
108 (ui_file_new): Call set_ui_file_fseek.
109 (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
110 stdio_file_fseek): New functions.
111 (stdio_file_new): Call set_ui_file_fseek.
112 * ui-file.h (ui_file_fseek_ftype): New typedef.
113 (set_ui_file_fseek, ui_file_fseek): New externs.
114
115 2012-12-18 Hui Zhu <hui_zhu@mentor.com>
116
117 * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
118 (set_ui_file_isatty): Change isatty to isatty_ptr.
119 (set_ui_file_rewind): Change rewind to rewind_ptr.
120 (set_ui_file_put): Change put to put_ptr.
121 (set_ui_file_write): Change write to write_ptr.
122 (set_ui_file_write_async_safe): Change write_async_safe to
123 write_async_safe_ptr.
124 (set_ui_file_read): Change read to read_ptr.
125 (set_ui_file_fputs): Change fputs to fputs_ptr.
126 (set_ui_file_data): Change delete to delete_ptr.
127
128 2012-12-18 Joel Brobecker <brobecker@adacore.com>
129
130 * solib-darwin.c (darwin_current_sos): Fix indentation.
131 (darwin_read_exec_load_addr): New function.
132 (darwin_solib_create_inferior_hook): Rebase executable.
133 * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
134 * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
135
136 2012-12-18 Joel Brobecker <brobecker@adacore.com>
137
138 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
139 * gnulib/import/errno.in.h: Import.
140 * gnulib/import/m4/errno_h.m4: Import.
141 * gnulib/aclocal.m4: Regenerate.
142 * gnulib/configure: Regenerate.
143 * gnulib/import/Makefile.am: Update.
144 * gnulib/import/Makefile.in: Update.
145 * gnulib/import/m4/gnulib-cache.m4: Update.
146 * gnulib/import/m4/gnulib-comp.m4: Update.
147
148 2012-12-18 Joel Brobecker <brobecker@adacore.com>
149
150 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
151 8d5bd1402003bd0153984b138735adf537d960b0.
152 * gnulib/aclocal.m4, configure, config.in: Regenerate.
153 * gnulib/import/m4/extern-inline.m4: Import.
154 * gnulib/import/wctype-h.c: Import.
155 * gnulib/import/Makefile.am: Update.
156 * gnulib/import/Makefile.in: Update.
157 * gnulib/import/alloca.in.h: Update.
158 * gnulib/import/extra/snippet/warn-on-use.h: Update.
159 * gnulib/import/localcharset.c: Update.
160 * gnulib/import/m4/fcntl-o.m4: Update.
161 * gnulib/import/m4/gnulib-cache.m4: Update.
162 * gnulib/import/m4/gnulib-comp.m4: Update.
163 * gnulib/import/m4/wctype_h.m4: Update.
164 * gnulib/import/stdbool.in.h: Update.
165 * gnulib/import/verify.h: Update.
166 * gnulib/import/wctype.in.h: Update.
167
168 2012-12-18 Joel Brobecker <brobecker@adacore.com>
169
170 * gnulib/update-gnulib.sh: Add call to autoheader.
171
172 2012-12-17 Tom Tromey <tromey@redhat.com>
173
174 * top.c (xgdb_verbose): Remove.
175
176 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
177
178 Code cleanup.
179 * skip.c (skip_function_command, skip_file_command, skip_info): Remove
180 unused forward declarations.
181 (skip_file_command): Make variables symtab and filename targets const.
182 Use proper 0 vs. NULL constant everywhere.
183 (skip_function_command): Use proper 0 vs. NULL constant everywhere.
184 Include empty line after declarations. Use GNU spacing in a comment.
185 Do not use strlen for end of string check.
186 (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
187 comments.
188 (skip_enable_command, skip_disable_command, skip_delete_command)
189 (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
190 (function_pc_is_marked_for_skip): Make variable filename target const.
191 Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
192 comment formatting.
193 (skip_re_set): Add empty line after function comment. Use proper 0 vs.
194 NULL constant everywhere. Include empty line after declarations. Make
195 variable symtab target const. Do not use strlen for end of string
196 check.
197
198 2012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
199
200 Code cleanup.
201 * breakpoint.c (clear_command): Remove variable sal_name_len and its
202 initialization, remove it from the compare_filenames_for_search call.
203 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
204 name_len and its initialization, remove it from the
205 compare_filenames_for_search calls.
206 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
207 * symtab.c (compare_filenames_for_search): Remove the search_len
208 parameter, update the function comment, new variable search_len
209 initialized from SEARCH_NAME.
210 (iterate_over_some_symtabs): Remove variable name_len and its
211 initialization, remove it from the compare_filenames_for_search calls.
212 * symtab.h (compare_filenames_for_search): Remove the search_len
213 parameter,
214
215 2012-12-16 Joel Brobecker <brobecker@adacore.com>
216
217 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
218 (ALLDEPFILES): ... to there.
219
220 2012-12-15 Joel Brobecker <brobecker@adacore.com>
221
222 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
223
224 2012-12-15 Joel Brobecker <brobecker@adacore.com>
225
226 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
227 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
228 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
229 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
230 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
231 to gdb_target_obs for every target that uses rs6000-tdep.o.
232 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
233 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
234 or register_ppc_ravenscar_ops.
235
236 2012-12-15 Joel Brobecker <brobecker@adacore.com>
237
238 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
239 RAVENSCAR_SPARC_THREAD_H.
240 * sparc-ravenscar-thread.c: Rename all global entities
241 whose name is uses "ravenscar_sparc" as the prefix to use
242 "sparc_ravenscar" instead.
243
244 2012-12-15 Joel Brobecker <brobecker@adacore.com>
245
246 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
247 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
248 Adjust sparc-ravenscar-thread.h #include.
249 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
250 accordingly.
251 * Makefile.in: Replace ravenscar-sparc-thread with
252 sparc-ravenscar-thread throughout.
253 * configure.tgt: Likewise.
254
255 2012-12-15 Joel Brobecker <brobecker@adacore.com>
256
257 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
258 declaration.
259 (ravenscar_ops): New gdbarch variable.
260 * gdbarch.h, gdbarch.c: Regenerate.
261 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
262 * ravenscar-thread.c (current_arch_ops): Delete.
263 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
264 from the gdbarch.
265 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
266 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
267 (ravenscar_register_arch_ops): Delete.
268 * ravenscar-sparc-thread.h: New file.
269 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
270 (ravenscar_sparc_ops): Define value statically.
271 (_initialize_ravenscar_sparc): Delete.
272 (register_sparc_ravenscar_ops): New function.
273 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
274 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
275 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
276 ravenscar-sparc-thread.o.
277 (SFILES): Add ravenscar-thread.c.
278 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
279 (ALLDEPFILES): ravenscar-sparc-thread.c.
280 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
281 to gdb_target_obs
282 for all the targets that use sparc-tdep.o.
283
284 2012-12-15 Joel Brobecker <brobecker@adacore.com>
285
286 * ravenscar-thread.c (ravenscar_is_open): Delete.
287 (ravenscar_initialize): Move most of the code from here...
288 (ravenscar_inferior_created): ... to there. Invert logic.
289 (ravenscar_close): Delete.
290 (init_ravenscar_thread_ops): Remove setting of
291 ravenscar_ops.to_close.
292
293 2012-12-15 Joel Brobecker <brobecker@adacore.com>
294
295 * objfiles.c (init_entry_point_info): Move function from here...
296 * symfile.c (init_entry_point_info): ... to there. Make static.
297 * objfiles.h (objfiles.h): Delete declaration.
298
299 2012-12-15 Joel Brobecker <brobecker@adacore.com>
300
301 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
302 Remove call to init_entry_point_info. Add OBJFILE's
303 section_offsets and num_sections initialization. Add note
304 about entry info in the function documentation.
305 (syms_from_objfile): New function.
306 * coffread.c (coff_symfile_init): Remove call to
307 init_entry_point_info.
308 * machoread.c (macho_symfile_init): Likewise.
309 * xcoffread.c(xcoff_symfile_init): Likewise.
310
311 2012-12-15 Yao Qi <yao@codesourcery.com>
312
313 * remote-notif.c (_initialize_notif): Add new commands
314 'set debug notification' and 'show debug notification'.
315 * NEWS: Mention these new commands.
316
317 2012-12-15 Yao Qi <yao@codesourcery.com>
318
319 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
320 (SFILES): Add "remote-notif.c".
321 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
322 * remote-notif.c: New. Factored out from remote.c.
323 * remote-notif.h: New.
324 * remote.c: Include "remote-notif.h".
325 (stop_reply_xmalloc, do_stop_reply_xfree):
326 (remote_parse_stop_reply, remote_get_pending_stop_replies):
327 (remote_async_get_pending_events_handler): Remove declarations.
328 (remote_parse_stop_reply): Declare.
329 (pending_stop_reply): Remove.
330 (remote_async_get_pending_events_token): Move to
331 remote-notif.c.
332 (remote_close): Replace 'delete_async_event_handler' with
333 remote_notif_unregister_async_event_handler.
334 Don't call discard_pending_stop_replies.
335 (remote_start_remote): Replace code with remote_notif_parse
336 and remote_notif_get_pending_replies.
337 (remote_open_1): Replace 'create_async_event_handler' with
338 remote_notif_register_async_event_handler.
339 (extended_remote_attach_1): Call remote_notif_parse and
340 notif_stop_reply_push.
341 (struct stop_reply) <next>: Remove.
342 <base>: New field.
343 Callers update.
344 (stop_reply_queue): Change its type.
345 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
346 (remote_notif_remove_all): New.
347 (discard_pending_stop_replies): Update.
348 (remote_notif_stop_ack, stop_reply_dtr): New.
349 (remote_notif_stop_alloc_event): New.
350 (notif_client_stop): New variable.
351 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
352 (queued_stop_reply, peek_stop_reply): Adjust.
353 (remote_get_pending_stop_replies): Rename to
354 remote_notif_get_pending_events.
355 (handle_notification): Move to remote-notif.c.
356 (remote_async_get_pending_events_handler): Likewise.
357 (remote_wait_as): Adjust to call remote_notif_parse.
358 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
359 Return minus_one_ptid early if gets a notification.
360 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
361 (_initialize_remote): Call QUEUE_alloc. Update caller.
362 (remote_resume): Call 'remote_notif_process' in all-stop mode.
363 * remote.h: Include "remote-notif.h".
364 (remote_notif_get_pending_replies): Declare.
365
366 2012-12-15 Yao Qi <yao@codesourcery.com>
367
368 * remote.c (discard_pending_stop_replies): Update declaration.
369 (remote_detach_1, extended_remote_mourn_1): Likewise.
370 (discard_pending_stop_replies): Change parameter from PID to
371 INF.
372 (remote_close): Update caller.
373 (_initialize_remote): Attach discard_pending_stop_replies to
374 inferior_exit observer.
375
376 2012-12-15 Yao Qi <yao@codesourcery.com>
377
378 * remote.c (getpkt_or_notif_sane): Add one more argument in
379 its declaration.
380 (getpkt_or_notif_sane_1): Add one more argument.
381 (getpkt_sane): Update caller.
382 (getpkt_or_notif_sane): Likewise. Update call
383 togetpkt_or_notif_sane_1.
384 (remote_wait_ns): Update caller.
385
386 2012-12-15 Yao Qi <yao@codesourcery.com>
387 Doug Evans <dje@google.com>
388
389 * common/queue.h: New.
390
391 2012-12-15 Yao Qi <yao@codesourcery.com>
392
393 * breakpoint.c (print_one_breakpoint_location): Display the
394 state of 'installed' of each non-pending location of a tracepoint
395 in both CLI and MI.
396 (download_tracepoint_locations): Notify 'breakpoint-modified'
397 observer if any tracepoint location is downloaded.
398 * tracepoint.c (start_tracing): Likewise.
399 (merge_uploaded_tracepoints): Record all modified
400 tracepoints and notify 'breakpoint-modified' observer for them.
401
402 * NEWS: Mention the change for CLI and MI.
403
404 2012-12-15 Yao Qi <yao@codesourcery.com>
405
406 * breakpoint.c (download_tracepoint_locations): Iterate over
407 ALL_TRACEPOINTS first and then iterate over locations of
408 each tracepoint.
409
410 2012-12-14 Pierre Muller <muller@sourceware.org>
411 Pedro Alves <palves@redhat.com>
412
413 * solib-target.c (solib_target_current_sos): Remove 'const'
414 qualifier from type of library_document local variable to be
415 able to free it and avoid a memory leak.
416 Use cleanup chain to avoid leak even if exceptino is generated.
417
418 2012-12-14 Tom Tromey <tromey@redhat.com>
419
420 PR c++/8888:
421 * symtab.c (lookup_symbol_aux): If constructor is found, consider
422 returning the type instead.
423 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
424 found.
425
426 2012-12-14 Tom Tromey <tromey@redhat.com>
427
428 Partial fix for PR c++/14160:
429 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
430 * dwarf2read.c (dwarf2_is_constructor): New function.
431 (dwarf2_add_member_fn): Use it.
432 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
433 TYPE_FN_FIELD_CONSTRUCTOR.
434 * jv-typeprint.c (java_type_print_base): Use
435 TYPE_FN_FIELD_CONSTRUCTOR.
436 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
437 <dummy>: Shrink.
438 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
439
440 2012-12-14 Tom Tromey <tromey@redhat.com>
441
442 * c-exp.y (block, variable, name_not_typename, lex_one_token,
443 classify_name): Update.
444 * c-valprint.c (c_val_print): Update.
445 * f-exp.y (yylex): Update.
446 * go-exp.y (package_name_p, classify_packaged_name)
447 (classify_name): Update.
448 * jv-exp.y (push_variable): Update.
449 * m2-exp.y (variable): Update.
450 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
451 * p-exp.y (block, variable, yylex): Update.
452 * p-valprint.c (pascal_val_print): Update.
453 * parse.c (write_dollar_variable): Update.
454 * printcmd.c (address_info): Update.
455 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
456 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
457 (lookup_symbol): Change type of 'is_a_field_of_this'.
458 (check_field): Add 'is_a_field_of_this' argument.
459 * symtab.h (struct field_of_this_result): New.
460 (lookup_symbol, lookup_symbol_in_language): Update.
461
462 2012-12-14 Tom Tromey <tromey@redhat.com>
463
464 * symtab.c (check_field): Now static. Move from...
465 * valops.c (check_field): ... here. Remove.
466 * value.h (check_field): Don't declare.
467
468 2012-12-14 Tom Tromey <tromey@redhat.com>
469
470 * NEWS: Mention "info proc" and core files.
471 * corelow.c (core_info_proc): New function.
472 (init_core_ops): Set to_info_proc.
473 * gdbarch.c, gdbarch.h: Rebuild.
474 * gdbarch.sh (core_info_proc): New method.
475 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
476 * linux-tdep.c (linux_core_info_proc_mappings)
477 (linux_core_info_proc): New functions.
478 (linux_find_memory_region_ftype): New typedef.
479 (linux_find_memory_regions_full): New function, from
480 linux_find_memory_regions.
481 (struct linux_find_memory_regions_data): New.
482 (linux_find_memory_regions_thunk): New function.
483 (linux_find_memory_regions): Rewrite.
484 (struct linux_make_mappings_data): New.
485 (linux_make_mappings_callback)
486 (linux_make_mappings_corefile_notes): New functions.
487 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
488 (linux_init_abi): Call set_gdbarch_core_info_proc.
489 * target.c (target_info_proc): Return 'int'.
490 * target.h (target_info_proc): Update.
491
492 2012-12-14 Pierre Muller <muller@sourceware.org>
493
494 * windows-nat.c (windows_xfer_shared_libraries): Avoid
495 memory leak when OFFSET >= LEN_AVAIL.
496
497 2012-12-13 Tom Tromey <tromey@redhat.com>
498
499 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
500
501 2012-12-13 Tom Tromey <tromey@redhat.com>
502
503 * acinclude.m4 (CY_AC_C_WORKS): Remove.
504
505 2012-12-13 Pierre Muller <muller@sourceware.org>
506
507 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
508 local variable and zero terminate it to avoid possible problems
509 in strcmp.
510
511 2012-12-13 Pedro Alves <palves@redhat.com>
512
513 * coff-pe-read.c: Include coff/internal.h.
514 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
515 Null terminate buffer explicitly instead of memset the whole
516 buffer.
517
518 2012-12-13 Pierre Muller <muller@sourceware.org>
519
520 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
521 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
522 for already defined macros.
523
524 2012-12-13 Pierre Muller <muller@sourceware.org>
525
526 * coff-pe-read.h (pe_text_section_offset): Declare new function.
527 * coff-pe-read.c (debug_coff_pe_read): New static variable.
528 (struct read_pe_section_data): Add section_name field.
529 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
530 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
531 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
532 (get_pe_section_index): New function.
533 (struct pe_sections_info): New type.
534 (get_section_vmas): Use new struct pe_sections_info.
535 (add_pe_exported_sym): Handle unnamed exported function.
536 (add_pe_forwarded_sym): New function.
537 (read_pe_truncate_name): Truncate at last dot.
538 (pe_as16): New function.
539 (read_pe_exported_syms): Use ordinal of function to
540 retrieve correct RVA address of function and handle
541 forwarded symbol.
542 (pe_text_section_offset): New function.
543 (show_debug_coff_pe_read): New function.
544 (_initialize_coff_pe_read): New function adding
545 'set/show debug coff_pe_read' commands.
546
547 * windows-tdep.c (windows_xfer_shared_library): Use
548 pe_text_section_offset function instead of possibly wrong
549 0x1000 constant for .text sextion offset.
550
551 2012-12-13 Pedro Alves <palves@redhat.com>
552
553 * gdbarch.sh (do_read): Set IFS to blank.
554
555 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
556
557 * NEWS: Mention the -catch-load/-catch-unload MI commands.
558
559 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
560
561 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
562 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
563 * breakpoint.c (add_solib_catchpoint): New function that
564 can be used by both CLI and MI, factored out from
565 catch_load_or_unload.
566 (catch_load_or_unload): Strip it down and make it use the
567 new add_solib_catchpoint.
568 * breakpoint.h (add_solib_catchpoint): Declare it.
569 * mi/mi-cmd-break.h: New file.
570 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
571 (setup_breakpoint_reporting): New function used for both
572 catchpoints and breakpoints.
573 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
574 * mi/mi-cmd-catch.c: New file.
575 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
576 and -catch-unload.
577 * mi/mi-cmds.h: Declare the handlers for -catch-load and
578 -catch-unload.
579
580 2012-11-28 Tom Tromey <tromey@redhat.com>
581
582 * dbxread.c (read_dbx_symtab): Update.
583 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
584 (read_ofile_symtab): Add 'objfile' argument.
585 * dwarf2read.c (process_psymtab_comp_unit_reader)
586 (build_type_psymtabs_reader): Update.
587 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
588 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
589 argument.
590 (parse_procedure, parse_partial_symbols): Update.
591 (psymtab_to_symtab_1): Add 'objfile' argument.
592 * psympriv.h (struct partial_symtab) <objfile>: Remove.
593 <read_symtab>: Add 'objfile' argument.
594 (sort_pst_symbols, discard_psymtab): Update.
595 * psymtab.c (partial_map_expand_apply): Update.
596 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
597 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
598 (find_pc_sect_psymbol): Add 'objfile' argument.
599 (lookup_symbol_aux_psymtabs): Update.
600 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
601 Add 'objfile' argument.
602 (find_last_source_symtab_from_partial, dump_psymtab)
603 (dump_psymtabs_for_objfile, read_symtabs_for_function)
604 (expand_partial_symbol_tables, read_psymtabs_with_filename)
605 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
606 (expand_symtabs_matching_via_partial): Update.
607 (sort_pst_symbols): Add 'objfile' argument.
608 (allocate_psymtab): Update.
609 (discard_psymtab): Add 'objfile' argument.
610 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
611 * stabsread.h (end_psymtab): Update.
612 * xcoffread.c (this_symtab_objfile): New global.
613 (process_linenos, enter_line_range, xcoff_next_symbol_text):
614 Update.
615 (read_xcoff_symtab): Add 'objfile' argument.
616 (read_symbol, read_symbol_lineno): Update.
617 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
618 (xcoff_end_psymtab): Add 'objfile' argument.
619 (scan_xcoff_symtab): Update.
620
621 2012-12-12 Paul Koning <paul_koning@dell.com>
622
623 Add support for Python 3.
624 * NEWS: Mention Python 3 support.
625 * varobj.c (value_get_print_value): Use
626 python_string_to_target_string.
627 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
628 of type objects.
629 * python/py-breakpoint.c: Ditto.
630 * python/py-cmd.c: Ditto.
631 * python/py-event.c: Ditto.
632 * python/py-event.h: Ditto.
633 * python/py-evtregistry.c: Ditto.
634 * python/py-finishbreakpoint.c: Ditto.
635 * python/py-frame.c: Ditto.
636 * python/py-function.c: Ditto.
637 * python/py-infthread.c: Ditto.
638 * python/py-lazy-string.c: Ditto.
639 * python/py-progspace.c: Ditto.
640 * /python/py-symbol.c: Ditto.
641 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
642 initialization for Python 3.
643 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
644 of type objects.
645 (infpy_read_memory): Return memoryview object if Python 3.
646 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
647 (infpy_search_memory): Ditto.
648 (get_buffer): New function for Python 3.
649 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
650 of type objects.
651 (objfpy_dealloc): Use Py_TYPE to call tp_free.
652 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
653 of type objects.
654 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
655 (set_attr): Ditto.
656 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
657 instead of PyString methods if Python 3.
658 (print_children): Skip push_dummy_python_frame call if Python 3.
659 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
660 of type objects.
661 (salpy_dealloc): Use Py_TYPE to call tp_free.
662 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
663 of type objects.
664 (field_dealloc): Use Py_TYPE to call tp_free.
665 (typy_dealloc): Ditto.
666 (type_object_as_number): Adjust struct initializations for
667 differences in layout for Python 2 vs. Python 3.
668 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
669 string case for Python 3.
670 (unicode_to_encoded_python_string): Shorten code (no functional
671 change).
672 (python_string_to_target_python_string): Comment that in Python 3
673 returned value is a Python "bytes" type.
674 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
675 (gdb_py_object_from_longest): Omit non-long integer case in Python
676 3.
677 (gdb_py_object_from_ulongest): Ditto.
678 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
679 of type objects.
680 (valpy_dealloc): Use Py_TYPE to call tp_free.
681 (valpy_int): Omit function if Python 3.
682 (convert_value_from_python): Use "%S" format (Python object as a
683 string) if Python 3.
684 (value_object_as_number): Adjust struct initializations for
685 differences in layout for Python 2 vs. Python 3.
686 * python/python-config.py: Adjust syntax for Python 3
687 compatibility.
688 Include "sys.abiflags" string as part of python library name, if
689 that attribute exists (Python 3).
690 * python/python-internal.h (IS_PY3): Define if Python 3.
691 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
692 placeholder value if Python 3.
693 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
694 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
695 analogous Python 3 API function if Python 3.
696 (PyVarObject_HEAD_INIT): Define if not already defined.
697 (Py_TYPE): Ditto.
698 * python/python.c (eval_python_command): Omit Py_FlushLine call if
699 Python 3.
700 Check return values of all Python API calls for error.
701 Supply dummy "python" and "python-interactive" commands if Python
702 initialization failed.
703 (_initialize_python): Convert argc to wchar_t** if Python 3.
704 Add module initialization for Python 3.
705 (finish_python_initialization): Pass wchar_t * argument to
706 PySys_SetPath if Python 3.
707 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
708 (_GdbFile): New class for common output file behavior.
709 (GdbOutFile): Subclass from _GdbFile.
710 (GdbOutputErrorFile): Ditto.
711 (auto_load_packages): Adjust syntax for Python 3 compatibility.
712 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
713 * python/lib/gdb/prompt.py: Use sorted() function rather than
714 sort() method.
715 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
716 Adjust syntax for Python 3 compatibility.
717 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
718 rather than sort() method.
719 Adjust syntax for Python 3 compatibility.
720 * python/lib/gdb/command/type_printers.py: Ditto.
721 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
722 value is a memoryview object if Python 3.
723
724 2012-12-12 Tom Tromey <tromey@redhat.com>
725
726 * coffread.c (coff_objfile_data_key): New global.
727 (coff_symfile_init): Use set_objfile_data.
728 (coff_symfile_read): Use objfile_data.
729 (coff_symfile_finish): Don't free deprecated_sym_private.
730 (coff_free_info): New function.
731 (_initialize_coffread): Initialize coff_objfile_data_key.
732 * mdebugread.c (pending_list): Update comment.
733 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
734 * symfile.c (reread_symbols): Don't mention
735 deprecated_sym_private.
736 * xcoffread.c (xcoff_objfile_data_key): New global.
737 (XCOFF_DATA): New macro.
738 (process_linenos, enter_line_range, xcoff_next_symbol_text)
739 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
740 XCOFF_DATA.
741 (xcoff_new_init) Use set_objfile_data.
742 (xcoff_symfile_finish): Don't free deprecated_sym_private.
743 (init_stringtab, swap_sym, scan_xcoff_symtab)
744 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
745 (xcoff_free_info): New function.
746 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
747
748 2012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
749
750 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
751
752 2012-12-12 Tom Tromey <tromey@redhat.com>
753
754 * coffread.c (coff_symfile_init): Use set_objfile_data.
755 (coff_symfile_read): Use DBX_SYMFILE_INFO.
756 * dbxread.c (dbx_objfile_data_key): New global.
757 (dbx_symfile_init): Use set_objfile_data.
758 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
759 (dbx_free_symfile_info): New function.
760 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
761 DBX_SYMFILE_INFO.
762 (stabsect_build_psymtabs): Use set_objfile_data.
763 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
764 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
765 set_objfile_data.
766 (free_elfinfo): Use DBX_SYMFILE_INFO.
767 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
768 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
769 * gdb-stabs.h (dbx_objfile_data_key): Declare.
770 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
771 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
772 * somread.c (som_symfile_finish): Don't free
773 deprecated_sym_stab_info.
774
775 2012-12-12 Joel Brobecker <brobecker@adacore.com>
776
777 * gdbarch.sh (software_single_step): Remove trailing space in
778 comment (gdbarch.h is already correct).
779
780 2012-12-11 Tom Tromey <tromey@redhat.com>
781
782 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
783
784 2012-12-11 Tom Tromey <tromey@redhat.com>
785
786 * dsrec.c (report_transfer_performance): Don't declare.
787 (load_srec): Use gettimeofday, print_transfer_performance.
788 * symfile.c (report_transfer_performance): Remove.
789
790 2012-12-11 Pedro Alves <pedro@codesourcery.com>
791 Pedro Alves <palves@redhat.com>
792
793 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
794 NT_PSTATUS note.
795 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
796 differently from LWP IDs.
797
798 2012-12-11 Pedro Alves <palves@redhat.com>
799
800 * configure.ac (detect type of /proc): Remove Unixware handling.
801 * configure: Regenerate.
802 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
803 (ioctl_table) [PCRESET]: Remove entry.
804 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
805 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
806 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
807 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
808 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
809 Unixware in comments throughout.
810 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
811 and remove mention of Unixware.
812
813 2012-12-10 Doug Evans <dje@google.com>
814
815 * dwarf2read.c (dwarf2_cu): Enhance comment.
816 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
817 the DWO file.
818 (dwarf2_record_block_ranges): Ditto.
819
820 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
821
822 * symtab.c (find_pc_sect_symtab): Add comment.
823
824 2012-12-10 Tom Tromey <tromey@redhat.com>
825
826 * defs.h: Don't check for definition of LONGEST.
827 (min, max): Remove duplicates.
828
829 2012-12-10 Tom Tromey <tromey@redhat.com>
830
831 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
832 (dwarf2_fetch_die_loc_cu_off): Rename from
833 dwarf2_fetch_die_location_block. Rewrite to use
834 dwarf2_fetch_die_loc_sect_off.
835 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
836 (dwarf2_fetch_die_loc_cu_off): Rename.
837 * dwarf2loc.c (indirect_pieced_value): Use
838 dwarf2_fetch_die_loc_sect_off.
839 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
840 comment.
841 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
842 * dwarf2expr.c (add_piece): Update.
843 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
844
845 2012-12-10 Tom Tromey <tromey@redhat.com>
846
847 * buildsym.c (struct pending_block): Move from buildsym.h.
848 (pending_blocks): Likewise; now static.
849 (pending_block_obstack): New global.
850 (free_pending_blocks): Free blocks.
851 (record_pending_block): Use pending_block_obstack.
852 * buildsym.h (struct pending_block): Move definition to
853 buildsym.c.
854 (pending_blocks): Don't declare.
855
856 2012-12-10 Pedro Alves <palves@redhat.com>
857
858 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
859 dead SCO code, and adjust function description comment.
860
861 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
862
863 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
864 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
865 CC_HAS_LONG_LONG.
866 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
867 * dwarf2read.c (extract_cu_value): Remove the function.
868 (create_cus_from_index_list): Make the return type void, inline the
869 extract_cu_value caller, include new gdb_static_assert.
870 (create_cus_from_index): Make the return type void, update the function
871 comment, update the create_cus_from_index_list caller.
872 (create_signatured_type_table_from_index): Make the return type void,
873 inline the extract_cu_value caller, include new gdb_static_assert.
874 (dwarf2_read_index): Update the create_cus_from_index and
875 create_signatured_type_table_from_index caller.
876 * printcmd.c (ui_printf): Remove conditionalizations for
877 CC_HAS_LONG_LONG.
878 * config.in: Regenerate.
879 * configure: Regenerate.
880
881 2012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
882
883 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
884 Update the comment for checked_producer.
885 (check_producer): New forward declaration.
886 (producer_is_gcc_lt_4_3): New function.
887 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
888 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
889
890 2012-12-07 Tom Tromey <tromey@redhat.com>
891
892 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
893 argument, assertion.
894 * c-exp.y (typebase): Add completion productions.
895 * completer.c (expression_completer): Handle tag completion.
896 * expression.h (parse_expression_for_completion): Add argument.
897 * f-lang.c (f_make_symbol_completion_list): Add 'code'
898 argument.
899 * language.h (struct language_defn)
900 <la_make_symbol_completion_list>: Add 'code' argument.
901 * parse.c (expout_tag_completion_type, expout_completion_name):
902 New globals.
903 (mark_struct_expression): Add assertion.
904 (mark_completion_tag): New function.
905 (parse_exp_in_context): Initialize new globals.
906 (parse_expression_for_completion): Add 'code' argument. Handle
907 tag completion.
908 * parser-defs.h (mark_completion_tag): Declare.
909 * symtab.c (default_make_symbol_completion_list_break_on): Add
910 'code' argument. Update.
911 (default_make_symbol_completion_list): Add 'code' argument.
912 (make_symbol_completion_list): Update.
913 (make_symbol_completion_type): New function.
914 * symtab.h (default_make_symbol_completion_list_break_on)
915 (default_make_symbol_completion_list): Update.
916 (make_symbol_completion_type): Declare.
917
918 2012-12-07 Tom Tromey <tromey@redhat.com>
919
920 * expression.h (parse_expression_for_completion): Rename
921 from parse_field_expression.
922 (parse_completion): Rename from in_parse_field.
923 * c-exp.y (lex_one_token): Update.
924 * completer.c (expression_completer): Update.
925 * go-exp.y (lex_one_token): Update.
926 * p-exp.y (yylex): Update.
927 * parse.c (parse_completion): Rename from in_parse_field.
928 (parse_exp_in_context): Update.
929 (parse_expression_for_completion): Rename from
930 parse_field_expression. Update.
931
932 2012-12-07 Tom Tromey <tromey@redhat.com>
933
934 * typeprint.c (_initialize_typeprint): Set completer
935 for "whatis" and "ptype".
936
937 2012-12-07 Joel Brobecker <brobecker@adacore.com>
938
939 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
940 "sim/common/cgen-fpu.h". Remove invalid entries
941 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
942 which actually have an FSF copyright header.
943
944 2012-12-07 Joel Brobecker <brobecker@adacore.com>
945
946 * osf-share/AT386/cma_thread_io.h: Delete.
947 * osf-share/HP800/cma_thread_io.h: Delete.
948 * osf-share/README: Delete.
949 * osf-share/RIOS/cma_thread_io.h: Delete.
950 * osf-share/cma_attr.h: Delete.
951 * osf-share/cma_deb_core.h: Delete.
952 * osf-share/cma_debug_client.h: Delete.
953 * osf-share/cma_errors.h: Delete.
954 * osf-share/cma_handle.h: Delete.
955 * osf-share/cma_init.h: Delete.
956 * osf-share/cma_list.h: Delete.
957 * osf-share/cma_mutex.h: Delete.
958 * osf-share/cma_sched.h: Delete.
959 * osf-share/cma_semaphore_defs.h: Delete.
960 * osf-share/cma_sequence.h: Delete.
961 * osf-share/cma_stack.h: Delete.
962 * osf-share/cma_stack_int.h: Delete.
963 * osf-share/cma_tcb_defs.h: Delete.
964 * osf-share/cma_util.h: Delete.
965 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
966 in osf-share.
967 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
968 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
969 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
970
971 2012-12-06 Pedro Alves <palves@redhat.com>
972 Tom Tromey <tromey@redhat.com>
973
974 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
975
976 2012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
977
978 PR mi/14741:
979 * mi/mi-cmd-var.c (varobj_update_one): Take value of
980 attribute "dynamic" and "displayhint" from printed child,
981 not the root variable.
982
983 2012-12-06 Joel Brobecker <brobecker@adacore.com>
984
985 * aix-thread.c (getthrds): Fix type of 4th parameter.
986 (get_signaled_thread): Change type of variable ktid to tid_t.
987
988 2012-12-06 Hui Zhu <hui_zhu@mentor.com>
989
990 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
991 value of get_frame_block.
992
993 2012-12-05 Pierre Muller <muller@sourceware.org>
994
995 Avoid memory leaks on struct cmd_list_element.doc field.
996 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
997 if flags contains DOC_ALLOCATED.
998 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
999 flags.
1000 (delete_cmd): Handle DOC_ALLOCATED flag.
1001 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
1002 in flags filed of struct cmd_list_element.
1003 (struct cmd_list_element): Document new flag item.
1004
1005 2012-12-04 Doug Evans <dje@google.com>
1006
1007 * symmisc.c: Whitespace fixes.
1008
1009 2012-12-04 Karthik Bhat <kv.bhat@samsung.com>
1010
1011 * i386-tdep.c (i386_skip_prologue): Using symbol table
1012 to find the end of prologue for clang compiled binaries.
1013 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1014 to find the end of prologue for clang compiled binaries.
1015
1016 2012-12-03 Doug Evans <dje@google.com>
1017
1018 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
1019 (dw2_find_symbol_file): Delete unused local file_data.
1020
1021 2012-12-03 Tom Tromey <tromey@redhat.com>
1022
1023 * ada-exp.y (write_object_renaming, write_var_or_type)
1024 (write_ambiguous_var, write_var_from_sym): Make blocks const.
1025 * ada-lang.c (replace_operator_with_call)
1026 (find_old_style_renaming_symbol): Make blocks const.
1027 * ada-lang.h (ada_find_renaming_symbol): Update.
1028 (struct ada_symbol_info) <block>: Now const.
1029 * breakpoint.c (watch_command_1): Update.
1030 * breakpoint.h (struct watchpoint) <exp_valid_block,
1031 cond_exp_valid_block>: Now const.
1032 * c-exp.y (classify_inner_name, classify_name): Make block
1033 argument const.
1034 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
1035 const.
1036 * expression.h (innermost_block, parse_exp_1): Update.
1037 (union exp_element) <block>: Now const.
1038 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
1039 (lookup_struct): Make block argument const.
1040 * gdbtypes.h (lookup_template_type): Update.
1041 * go-exp.y (classify_name, classify_packaged_name)
1042 (package_name_p): Make block argument const.
1043 * objc-lang.c (lookup_struct_typedef): Make block argument const.
1044 * objc-lang.h (lookup_struct_typedef): Update.
1045 * parse.c (parse_exp_in_context, parse_exp_1)
1046 (write_exp_elt_block): Make block arguments const.
1047 (expression_context_block, innermost_block): Now const.
1048 * parser-defs.h (write_exp_elt_block): Update.
1049 (expression_context_block, innermost_block, block_found): Now
1050 const.
1051 * printcmd.c (struct display) <block>: Now const.
1052 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1053 * valops.c (address_of_variable): Make block argument const.
1054 * value.h (value_of_variable): Update.
1055 * varobj.c (struct varobj_root) <valid_block>: Now const.
1056
1057 2012-11-30 Yao Qi <yao@codesourcery.com>
1058
1059 * breakpoint.c (print_one_breakpoint_location): Indent code.
1060
1061 2012-11-30 Yao Qi <yao@codesourcery.com>
1062
1063 * breakpoint.c (print_one_breakpoint_location): Combine two
1064 blocks handling 'hit count' together.
1065
1066 2012-11-30 Yao Qi <yao@codesourcery.com>
1067
1068 * infrun.c (error_is_running, ensure_not_running): Move them
1069 to ...
1070 * infcmd.c (error_is_running, ensure_not_running): ... here.
1071 Make them 'static'.
1072 * inferior.h: Remove declarations of error_is_running and
1073 ensure_not_running.
1074
1075 2012-11-30 Yao Qi <yao@codesourcery.com>
1076
1077 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
1078 check REGNUM >= 0.
1079
1080 2012-11-30 Yao Qi <yao@codesourcery.com>
1081
1082 * infrun.c: Make the declaration of 'init_infwait_state'
1083 static.
1084 (init_infwait_state): Make it 'static'.
1085
1086 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1087
1088 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1089 return value to void to avoid compiler warning.
1090
1091 2012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1092
1093 * opencl-lang.c (opencl_print_type): New function.
1094 (opencl_language_arch_info): Install it.
1095
1096 2012-11-29 Tom Tromey <tromey@redhat.com>
1097
1098 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1099 xvasprintf.
1100 * common/common-utils.c (xasprintf, xvasprintf): Remove.
1101 * common/common-utils.h (xasprintf, xvasprintf): Remove.
1102
1103 2012-11-29 Jerome Guitton <guitton@adacore.com>
1104
1105 * ada-lang.c (ada_is_interface_tag): New function.
1106 (ada_is_ignored_field): Add interface tags to the list
1107 of ignored fields.
1108
1109 2012-11-29 Jerome Guitton <guitton@adacore.com>
1110
1111 * ada-lang.h (ada_tag_value_at_base_address): New function
1112 declaration.
1113 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1114 New functions.
1115 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1116 relocate the class-wide value if need be.
1117 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1118 Let ada_tag_value_at_base_address relocate the class-wide access/ref
1119 before dereferencing it.
1120 * ada-valprint.c (ada_val_print_1): Relocate to base address
1121 before displaying the content of an interface-wide ref.
1122
1123 2012-11-29 Jerome Guitton <guitton@adacore.com>
1124
1125 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1126
1127 2012-11-29 Joel Brobecker <brobecker@adacore.com>
1128
1129 GDB 7.5.1 released.
1130
1131 2012-11-29 Yao Qi <yao@codesourcery.com>
1132 Tom Tromey <tromey@redhat.com>
1133
1134 * eval.c (evaluate_subexp_standard): Get the correct pointer
1135 type for TYPE_CODE_MEMBERPTR.
1136
1137 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
1138
1139 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1140 since now it is being done by binutils' powerpc_init_dialect().
1141
1142 2012-11-28 Tom Tromey <tromey@redhat.com>
1143
1144 PR gdb/14290:
1145 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1146 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1147 Use it.
1148 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1149 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1150 (gdb_bfd_openr_next_archived_file): Use it.
1151
1152 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
1153
1154 * configure.ac: Check for linux/perf_event.h.
1155 * config.in: Regenerated.
1156 * configure: Regenerated.
1157
1158 2012-11-28 Yao Qi <yao@codesourcery.com>
1159
1160 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1161 abbreviate 'delete tracepoints' to 'delete tr'.
1162 * corefile.c (_initialize_core): Call add_alias_cmd to
1163 abbreviate 'set gnutarget' to 'set g'.
1164 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1165 'show convenience' to 'show conv'.
1166
1167 2012-11-27 Joel Brobecker <brobecker@adacore.com>
1168
1169 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1170 call to sparc_supply_fpregset.
1171 (fill_fpregset): Fix first parameter in call to
1172 sparc_collect_fpregset.
1173
1174 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1175 Kazu Hirata <kazu@codesourcery.com>
1176 Yao Qi <yao@codesourcery.com>
1177
1178 * objfiles.c (init_entry_point_info): Call
1179 gdbarch_convert_from_func_ptr_addr and
1180 gdbarch_addr_bits_remove here ...
1181 (entry_point_address_query): ... instead of here.
1182 * solib-svr4.c (exec_entry_point): Call
1183 gdbarch_addr_bits_remove.
1184 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1185 the entry address.
1186
1187 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1188 Yao Qi <yao@codesourcery.com>
1189
1190 * eval.c (evaluate_subexp_standard): Add handling of
1191 TYPE_CODE_MEMBERPTR when calling functions. Correct the
1192 result of ptype for calling a TYPE_CODE_METHODPTR.
1193
1194 2012-11-27 Yao Qi <yao@codesourcery.com>
1195
1196 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1197 warning.
1198 Add i18n markup.
1199
1200 2012-11-26 Alexander Larsson <alexl@redhat.com>
1201 Jan Kratochvil <jan.kratochvil@redhat.com>
1202 Tom Tromey <tromey@redhat.com>
1203
1204 * NEWS: Mention mini debuginfo feature.
1205 * minidebug.c: New file.
1206 * configure.ac: Check for lzma.
1207 * configure, config.in: Rebuild.
1208 * Makefile.in (LIBLZMA): New variable.
1209 (CLIBS): Include LIBLZMA.
1210 (SFILES): Mention minidebug.c.
1211 (COMMON_OBS): Mention minidebug.o.
1212 * symfile.c (read_symbols): New function.
1213 (syms_from_objfile, reread_symbols): Call it.
1214 * symfile.h (find_separate_debug_file_in_section): Declare.
1215
1216 2012-11-26 Keith Seitz <keiths@redhat.com>
1217
1218 * exec.c (exec_file_attach): Move cleanup after verifying that
1219 memory has in fact been allocated.
1220
1221 2012-11-26 Tom Tromey <tromey@redhat.com>
1222
1223 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1224 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1225 SYMBOL_SYMTAB.
1226 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1227
1228 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1229 Pedro Alves <palves@redhat.com>
1230
1231 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1232 size parameter passed to readlink by one byte.
1233 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1234 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1235 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1236 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1237 size by one byte.
1238
1239 2012-11-26 Yao Qi <yao@codesourcery.com>
1240
1241 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1242 extraneous parentheses.
1243
1244 2012-11-26 Yao Qi <yao@codesourcery.com>
1245
1246 * remote.c (remote_start_remote): Typo fix.
1247
1248 2012-11-23 David S. Miller <davem@davemloft.net>
1249
1250 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1251 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1252 sparc32_sol2_fpregset): Declare new globals.
1253 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1254 'fpregset' argument.
1255 * sparc64-tdep.h (sparc64_supply_fpregset,
1256 sparc64_collect_fpregset): Likewise.
1257 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1258 globals.
1259 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1260 (sparc_fpregset): Declare new global.
1261 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1262 'fpregset' argument.
1263 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1264 into handler.
1265 (fill_fpregset): Likewise.
1266 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1267 sparc32_bsd_fpregset.
1268 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1269 sparc32_bsd_fpregset down into handler.
1270 (sparc32_linux_collect_core_fpregset): Likewise.
1271 * sparc-nat.c (sparc_fpregset): Define.
1272 (sparc_supply_fpregset): Add 'fpregset' argument.
1273 (sparc_collect_fpregset): Likewise.
1274 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1275 into fpregset handler.
1276 (sparc_store_inferior_registers): Likewise.
1277 (_initialize_sparc_nat): Set sparc_fpregset to
1278 sparc32_sunos4_fpregset if NULL.
1279 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1280 down into handler.
1281 (fill_fpregset): Likewise.
1282 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1283 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1284 use it to compute offsets.
1285 (sparc32_collect_fpregset): Likewise.
1286 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1287 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1288 down into handler.
1289 (fill_fpregset): Likewise.
1290 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1291 Likewise.
1292 (sparc64_linux_collect_core_fpregset): Likewise.
1293 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1294 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1295 use it to compute offsets.
1296 (sparc64_collect_fpregset): Likewise.
1297 (sparc64_bsd_fpregset): Define.
1298 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1299 sparc64_bsd_fpregset down into handler.
1300 (sparc64fbsd_collect_fpregset): Likewise.
1301 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1302 and pass sparc{32,64}_bsd_fpregset down into handler.
1303 (sparc64nbsd_collect_fpregset): Likewise.
1304 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1305 sparc64_bsd_fpregset down into handler.
1306 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1307 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1308 to sparc32_bsd_fpregset.
1309 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1310 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1311 (sparc32nbsd_supply_fpregset): Likewise.
1312
1313 2012-11-21 Tom Tromey <tromey@redhat.com>
1314
1315 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1316 field.
1317 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1318 Remove.
1319 * c-typeprint.c (c_type_print_base): Update.
1320
1321 2012-11-21 Yao Qi <yao@codesourcery.com>
1322
1323 PR tdep/7438
1324 * gdbarch.sh (smash_text_address): Remove.
1325 * gdbarch.c, gdbarch.h: Regenerate.
1326 * arm-tdep.c (arm_smash_text_address): Remove.
1327 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1328 * hppa-tdep.c (hppa_smash_text_address): Remove.
1329 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1330 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1331 Caller update.
1332 * coffread.c (coff_symtab_read): Caller update.
1333 * dbxread.c (process_one_symbol): Likewise.
1334 * elfread.c (record_minimal_symbol): Likewise.
1335 * somread.c (som_symtab_read): Likewise.
1336
1337 2012-11-20 Pierre Muller <muller@sourceware.org>
1338
1339 ARI fixes: sprintf rule.
1340 Replace sprintf function calls for char arrays by
1341 calls to xsnprintf calls.
1342 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1343 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1344 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1345 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1346 * breakpoint.c (condition_completer): Ditto.
1347 (create_tracepoint_from_upload): Ditto.
1348 * dwarf2read.c (file_full_name): Ditto.
1349 * gcore.c (gcore_command): Ditto.
1350 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1351 * go32-nat.c (go32_sysinfo): Ditto.
1352 * interps.c (interp_set): Ditto.
1353 * m32c-tdep.c (make_types): Ditto.
1354 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1355 * remote-m32r-sdi.c (m32r_open): Ditto.
1356 * sol-thread.c (td_err_string): Ditto.
1357 (td_state_string, solaris_pid_to_str): Ditto.
1358 * symtab.c (gdb_mangle_name): Ditto.
1359 * cli/cli-script.c (execute_control_command): Ditto.
1360 (define_command, document_command): Ditto.
1361 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1362 * tui/tui-stack.c (tui_make_status_line): Ditto.
1363 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1364
1365 2012-11-20 Mike Frysinger <vapier@gentoo.org>
1366
1367 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1368 it when looking at ptr->func.
1369 * command.h (complete_on_cmdlist): Add a fourth arg.
1370 * completer.c (complete_line_internal): Add local ignore_help_classes,
1371 and set it to 1 when reason is not handle_help. Pass this down to
1372 lookup_cmd_1 and complete_on_cmdlist.
1373
1374 2012-11-20 Tom Tromey <tromey@redhat.com>
1375
1376 * completer.c (count_struct_fields): Remove.
1377 (expression_completer): Don't call count_struct_fields.
1378
1379 2012-11-20 Pedro Alves <palves@redhat.com>
1380
1381 * annotate.c (breakpoints_changed): Rename to ...
1382 (annotate_breakpoints_changed): ... this.
1383 (annotate_stopped, breakpoint_changed): Adjust caller.
1384 * annotate.h (breakpoints_changed): Rename to ...
1385 (annotate_breakpoints_changed): ... this.
1386 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1387 (do_map_commands_command, init_raw_breakpoint, clear_command)
1388 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1389
1390 2012-11-20 David S. Miller <davem@davemloft.net>
1391
1392 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1393 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1394 sysconf.
1395 (get_cores_used_by_process): Update comment.
1396
1397 2012-11-20 Yao Qi <yao@codesourcery.com>
1398
1399 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1400
1401 2012-11-20 Yao Qi <yao@codesourcery.com>
1402
1403 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1404 to deprecated_context_hook.
1405
1406 2012-11-19 Yao Qi <yao@codesourcery.com>
1407
1408 * infrun.c (infwait_state): Add static.
1409
1410 2012-11-16 Keith Seitz <keiths@redhat.com>
1411
1412 PR c++/13615
1413 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1414 parameter and pass it to lookup_symbol_file.
1415 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1416 to search base classes.
1417 (cp_lookup_symbol_namespace): Likewise.
1418 (lookup_namespace_scope): Likewise.
1419 (lookup_symbol_file): Add SEARCH parameter.
1420 If SEARCH is non-zero and no symbol is found, lookup the class
1421 and call cp_lookup_nested_symbol.
1422 (find_symbol_in_baseclass): New function.
1423 (cp_lookup_nested_symbol): Do not let
1424 cp_lookup_symbol_in_namespace search through base classes.
1425 Do that later when there is no global symbol match.
1426
1427 2012-11-16 Doug Evans <dje@google.com>
1428
1429 * main.c (gdb_datadir_provided): New static global.
1430 (get_init_files): If --data-directory is provided,
1431 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1432 * NEWS: Mention it.
1433
1434 2012-11-15 Pierre Muller <muller@sourceware.org>
1435
1436 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1437 * gdb_stat.h: Delete. Moved to common directory.
1438 * common/gdb_stat.h: New file.
1439 * gdb_wait.h: Delete. Moved to common directory.
1440 * common/gdb_wait.h: New file.
1441 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1442 location.
1443 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1444 location.
1445 (stat.h rule): Adapt to new gdb_stat.h location.
1446 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1447 <sys/stat.h> header.
1448 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1449 <sys/wait.h> header.
1450
1451 2012-11-15 Pierre Muller <muller@sourceware.org>
1452
1453 * configure.ac (AC_HEADER_STAT): Remove.
1454 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1455 and corresponding code.
1456 * configure: Regenerate.
1457 * config.in: Regenerate.
1458
1459 2012-11-15 Pierre Muller <muller@sourceware.org>
1460
1461 ARI xasprintf rule fixes.
1462 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1463 instead of xasprintf.
1464 (open_and_init_dwp_file): Ditto.
1465
1466 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
1467
1468 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1469 target types.
1470
1471 2012-11-14 Tom Tromey <tromey@redhat.com>
1472
1473 * configure, config.in: Rebuild.
1474 * configure.ac: Don't check for ctype.h, time.h.
1475 * expprint.c: Don't use HAVE_CTYPE_H.
1476
1477 2012-11-13 Tom Tromey <tromey@redhat.com>
1478
1479 * gdbarch.h, gdbarch.c: Rebuild.
1480 * gdbarch.sh (set_target_gdbarch): Rename from
1481 deprecated_target_gdbarch_select_hack.
1482 * arch-utils.c (gdbarch_update_p): Update.
1483 (set_gdbarch_from_file): Update.
1484
1485 2012-11-14 Pierre Muller <muller@sourceware.org>
1486
1487 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1488 as responsible of contrib/ari directory.
1489
1490 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1491 Yao Qi <yao@codesourcery.com>
1492
1493 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1494 bit of EXC_RETURN.
1495 (arm_m_exception_cache, arm_m_exception_this_id)
1496 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1497 (arm_m_exception_unwind): New.
1498 (arm_gdbarch_init): Register arm_m_exception_unwind.
1499
1500 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1501
1502 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1503 parameter COUNT, for pattern filling of memory regions.
1504 * NEWS: Mention it.
1505
1506 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1507
1508 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1509 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1510 to print_source_lines ().
1511 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1512 flag.
1513 * source.c (print_source_lines_base): Prefix source line with
1514 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1515
1516 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1517
1518 * symtab.h (print_source_lines_flags): New enum.
1519 * source.c (print_source_lines_base): Change noerror to flags.
1520 (print_source_lines): Change noerror to flags.
1521
1522 2012-11-13 Pierre Muller <muller@sourceware.org>
1523
1524 ARI fixes: Avoid sprintf function use rule.
1525 * charset.c (convert_between_encodings): Use xsnprintf.
1526 * cli-out.c (cli_field_int): Likewise.
1527 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1528 * expprint.c (op_name_standard): Likewise.
1529 * frv-tdep.c (set_variant_num_gprs): Likewise.
1530 (set_variant_num_fprs): Likewise.
1531 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1532 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1533 (nto_init_solib_absolute_prefix): Likewise.
1534 * source.c (init_source_path): Likewise.
1535 (print_source_lines_base): Likewise.
1536 * valprint.c (print_wchar): Likewise.
1537 * mi/mi-out.c (mi_field_int): Likewise.
1538 windows-nat.c (windows_pid_to_exec_file): Likewise.
1539 (windows_create_inferior): Likewise.
1540 (_initialize_check_for_gdb_ini): Likewise.
1541
1542 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1543
1544 * frame.h (deprecated_frame_register_read): Renames
1545 frame_register_read.
1546 * frame.c (deprecated_frame_register_read): Renames
1547 frame_register_read. Update all callers.
1548 * i386-tdep.c: Update all callers of frame_register_read.
1549 * infcmd.c: Likewise.
1550 * jit.c: Likewise.
1551 * mips-tdep.c: Likewise.
1552 * mt-tdep.c: Likewise.
1553 * sh64-tdep.c: Likewise.
1554
1555 2012-11-12 Joel Brobecker <brobecker@adacore.com>
1556
1557 * frame.h (frame_register_read): Remove FIXME comment.
1558 * frame.c (frame_register_read): Add suggestion explaining
1559 which function to use in place of this one.
1560
1561 2012-11-12 Tom Tromey <tromey@redhat.com>
1562
1563 * python/python.c (start_type_printers): Initialize 'result_obj'.
1564
1565 2012-11-12 Tom Tromey <tromey@redhat.com>
1566
1567 * NEWS: Update.
1568 * data-directory/Makefile.in (PYTHON_FILES): Add
1569 type_printers.py.
1570 * python/lib/gdb/command/type_printers.py: New file.
1571 * python/lib/gdb/command/types.py (TypePrinter): New class.
1572 (_get_some_type_recognizers, get_type_recognizers,
1573 apply_type_recognizers, register_type_printer): New
1574 functions.
1575 * python/py-objfile.c (objfile_object) <type_printers>: New
1576 field.
1577 (objfpy_dealloc): Decref new field.
1578 (objfpy_new): Set new field.
1579 (objfpy_get_type_printers, objfpy_set_type_printers): New
1580 functions.
1581 (objfile_to_objfile_object): Set new field.
1582 (objfile_getset): Add "type_printers".
1583 * python/py-progspace.c (pspace_object) <type_printers>: New
1584 field.
1585 (pspy_dealloc): Decref new field.
1586 (pspy_new): Set new field.
1587 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1588 (pspace_to_pspace_object): Set new field.
1589 (pspace_getset): Add "type_printers".
1590 * python/python.c (start_type_printers, apply_type_printers,
1591 free_type_printers): New functions.
1592 (_initialize_python): Set gdb.type_printers.
1593 * python/python.h (start_type_printers, apply_type_printers,
1594 free_type_printers): Declare.
1595 * typeprint.c (type_print_raw_options, default_ptype_flags):
1596 Update for new fields.
1597 (do_free_global_table, create_global_typedef_table,
1598 find_global_typedef): New functions.
1599 (find_typedef_in_hash): Use find_global_typedef.
1600 (whatis_exp): Use create_global_typedef_table. Change cleanup
1601 handling.
1602 * typeprint.h (struct type_print_options) <global_typedefs,
1603 global_printers>: New fields.
1604
1605 2012-11-12 Tom Tromey <tromey@redhat.com>
1606
1607 * c-typeprint.c (find_typedef_for_canonicalize,
1608 print_name_maybe_canonical): New functions.
1609 (c_print_type): Look up type name.
1610 (cp_type_print_derivation_info): Add flags argument. Use
1611 print_name_maybe_canonical.
1612 (cp_type_print_method_args): Add wrapping.
1613 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1614 (c_type_print_template_args): New function.
1615 (c_type_print_base): Change wrapping. Use
1616 print_name_maybe_canonical.
1617 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1618 type name lookups.
1619 * gdbtypes.c (types_equal): No longer static.
1620 * gdbtypes.h (types_equal): Declare.
1621 * typeprint.c (type_print_raw_options, default_ptype_flags):
1622 Update.
1623 (struct typedef_hash_table): New.
1624 (hash_typedef_field, eq_typedef_field,
1625 recursively_update_typedef_hash, add_template_parameters,
1626 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1627 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1628 copy_typedef_hash, find_typedef_in_hash): New functions.
1629 * typeprint.h (struct type_print_options) <local_typedefs>:
1630 New field.
1631 (recursively_update_typedef_hash, add_template_parameters,
1632 create_typedef_hash, free_typedef_hash,
1633 make_cleanup_free_typedef_hash, copy_typedef_hash,
1634 find_typedef_in_hash): Declare.
1635
1636 2012-11-12 Tom Tromey <tromey@redhat.com>
1637
1638 * cp-support.c (inspect_type,
1639 replace_typedefs_qualified_name, replace_typedefs): Add
1640 finder, data arguments. Call as needed.
1641 (cp_canonicalize_string_full): New function.
1642 (cp_canonicalize_string_no_typedefs): Rewrite.
1643 * cp-support.h (canonicalization_ftype): New typedef.
1644 (cp_canonicalize_string_full): Declare.
1645
1646 2012-11-12 Tom Tromey <tromey@redhat.com>
1647
1648 * NEWS: Update.
1649 * c-typeprint.c (c_type_print_base): Handle print_method and
1650 print_typedefs flags.
1651 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1652 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1653 options.
1654 * typeprint.c (type_print_raw_options, default_ptype_flags):
1655 Update for new field.s
1656 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1657 (setprinttypelist, showprinttypelist, print_methods,
1658 print_typedefs): New globals.
1659 (set_print_type, show_print_type, set_print_type_methods,
1660 show_print_type_methods, set_print_type_typedefs,
1661 show_print_type_typedefs): New functions.
1662 (_initialize_typeprint): Update documentation. Add "print
1663 type methods" and "print type typedefs" parameters.
1664 * typeprint.h (struct type_print_options) <print_methods,
1665 print_typedefs>: New fields.
1666
1667 2012-11-12 Tom Tromey <tromey@redhat.com>
1668
1669 * c-typeprint.c (cp_type_print_method_args): Add flags
1670 argument. Call c_print_type, not type_print.
1671 (c_type_print_base): Call c_print_type, not type_print.
1672 Update.
1673
1674 2012-11-12 Tom Tromey <tromey@redhat.com>
1675
1676 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1677 to type-printing functions.
1678 * ada-lang.h (ada_print_type): Add argument.
1679 * ada-typeprint.c (print_array_type, print_variant_clauses,
1680 print_variant_part, print_selected_record_field_types,
1681 print_record_field_types, print_unchecked_union_type,
1682 print_func_type, ada_print_type): Add flags argument.
1683 (ada_print_typedef): Update.
1684 * c-exp.y (OPERATOR conversion_type_id): Update.
1685 * c-lang.h (c_print_type, c_type_print_base): Update.
1686 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1687 c_type_print_modifier, c_type_print_args,
1688 c_type_print_varspec_suffix, c_type_print_base): Add flags
1689 argument.
1690 * cp-valprint.c (cp_print_class_member): Update.
1691 * dwarf2read.c (dwarf2_compute_name): Update.
1692 * f-lang.h (f_print_type): Add argument.
1693 * f-typeprint.c (f_print_type): Add flags argument.
1694 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1695 * go-lang.h (go_print_type): Add argument.
1696 * go-typeprint.c (go_print_type): Add flags argument.
1697 * jv-lang.h (java_print_type): Add argument.
1698 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1699 flags argument.
1700 * language.c (unk_lang_print_type): Add flags argument.
1701 * language.h (struct language_defn) <la_print_type>: Add flags
1702 argument.
1703 (LA_PRINT_TYPE): Likewise.
1704 * m2-lang.h (m2_print_type): Add argument.
1705 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1706 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1707 m2_unbounded_array, m2_record_fields): Add flags argument.
1708 * p-lang.h (pascal_print_type, pascal_type_print_base,
1709 pascal_type_print_varspec_prefix): Add argument.
1710 * p-typeprint.c (pascal_print_type,
1711 pascal_type_print_varspec_prefix, pascal_print_func_args,
1712 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1713 flags argument.
1714 * symmisc.c (print_symbol): Update.
1715 * typeprint.c (type_print_raw_options, default_ptype_flags):
1716 New globals.
1717 (type_print): Update.
1718 * typeprint.h (struct type_print_options): New.
1719 (type_print_raw_options): Declare.
1720 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1721
1722 2012-11-10 Keith Seitz <keiths@redhat.com>
1723
1724 * breakpoint.c (clear_command): Add cleanup for
1725 sals.sals if an argument is given.
1726
1727 * linespec.c (parse_linespec): Do cleanups after
1728 parsing a convenience variable.
1729
1730 2012-11-10 Keith Seitz <keiths@redhat.com>
1731
1732 PR gdb/14288
1733 * c-valprint.c (c_val_print): For character arrays
1734 with "print null" option on, print ellipses if
1735 the output is truncated and the next character is not \000.
1736 * valprint.c (MAX_WCHARS): Define.
1737 (WCHAR_BUFLEN): Likewise.
1738 (WCHAR_BUFLEN_MAX): Likewise.
1739 (struct converted_character): New structure.
1740 (count_next_character): New function.
1741 (print_converted_chars_to_obstack): New function.
1742 (generic_printstr): Rewrite using count_next_character
1743 and print_converted_chars_to_obstack.
1744
1745 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1746
1747 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1748 while executing the gdb command.
1749 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1750 are called from prompt_for_continue.
1751 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1752
1753 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1754
1755 PR tui/9584
1756
1757 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1758 but insert the command to execute in readline's buffer.
1759
1760 2012-11-09 Tom Tromey <tromey@redhat.com>
1761
1762 * gdbarch.sh (target_gdbarch): Remove macro.
1763 (get_target_gdbarch): Rename to target_gdbarch.
1764 * gdbarch.c, gdbarch.h: Rebuild.
1765 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1766 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1767 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1768 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1769 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1770 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1771 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1772 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1773 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1774 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1775 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1776 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1777 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1778 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1779 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1780 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1781 target-descriptions.c, target.c, target.h, tracepoint.c,
1782 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1783 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1784 python/py-inferior.c, python/python.c: Update.
1785
1786 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
1787
1788 * source.c (print_source_lines_base): Add fullname field giving
1789 full path to file in mi output.
1790 * NEWS: Mention the new fullname field.
1791
1792 2012-11-09 Yao Qi <yao@codesourcery.com>
1793
1794 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1795
1796 2012-11-09 Pedro Alves <palves@redhat.com>
1797
1798 PR gdb/14306
1799
1800 * infrun.c: Include target-descriptions.h.
1801 (follow_exec): Fetch new target description.
1802
1803 2012-11-09 Yao Qi <yao@codesourcery.com>
1804
1805 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1806 0x8d (lea).
1807
1808 2012-11-09 Yao Qi <yao@codesourcery.com>
1809
1810 * breakpoint.c: Declare set_tracepoint_count.
1811 (install_breakpoint): Call set_tracepoint_count if B is a
1812 tracepoint.
1813 (trace_command): Don't call set_tracepoint_count. Re-indent.
1814 (strace_command, ftrace_command):
1815 (create_tracepoint_from_upload): Likewise.
1816
1817 2012-11-09 Pedro Alves <palves@redhat.com>
1818
1819 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1820 (get_target_gdbarch) <gdbarch.h>: New function.
1821 (startup_gdbarch) <gdbarch.h>: Declare.
1822 <gdbarch.c> (target_gdbarch): Delete.
1823 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1824 current inferior's gdbarch.
1825 <gdbarch.c> (get_target_gdbarch): New function.
1826 * inferior.c: Include target-descriptions.h.
1827 (free_inferior): Free target description info.
1828 (add_inferior_with_spaces): Set the inferior's initial
1829 architecture.
1830 (clone_inferior_command): Copy the original inferior's target
1831 description if it was user specified.
1832 (initialize_inferiors): Add comment.
1833 * inferior.h (struct target_desc_info): Forward declare.
1834 (struct inferior) <gdbarch>: New field.
1835 * linux-nat.c: Include target-descriptions.h.
1836 (linux_child_follow_fork): Copy the parent's architecture and
1837 target description to the child.
1838 * target-descriptions.c: Include inferior.h.
1839 (struct target_desc_info): New structure, holding the equivalents
1840 of ...
1841 (target_desc_fetched, current_target_desc)
1842 (target_description_filename): ... these removed globals.
1843 (get_tdesc_info, target_desc_info_from_user_p)
1844 (copy_inferior_target_desc_info, target_desc_info_free): New.
1845 (target_desc_fetched, current_target_desc)
1846 (target_description_filename): Reimplemented as convenience
1847 macros.
1848 (tdesc_filename_cmd_string): New global.
1849 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1850 tdescs filename ..." commands to the per-inferior equivalent.
1851 (show_tdesc_filename_cmd): Get the value to show from the
1852 per-inferior description filename.
1853 (_initilize_target_descriptions): Change the "set/show tdesc
1854 filename" commands' variable.
1855 * target-descriptions.h (struct target_desc, struct target_desc_info)
1856 (struct inferior): Forward declare.
1857 (target_find_description, target_clear_description)
1858 (target_current_description): Adjust comments.
1859 (copy_inferior_target_desc_info, target_desc_info_free)
1860 (target_desc_info_from_user_p). Declare.
1861
1862 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1863
1864 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1865 (tui_target_wait_hook): Remove.
1866 (tui_install_hooks): Install the about_to_proceed observer.
1867 (tui_remove_hooks): And remove it here.
1868
1869 2012-11-08 Tom Tromey <tromey@redhat.com>
1870
1871 * linux-tdep.c (linux_make_siginfo_note): New function.
1872 (linux_make_corefile_notes): Use it.
1873 * corelow.c (get_core_siginfo): New function.
1874 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1875
1876 2012-11-08 Tom Tromey <tromey@redhat.com>
1877
1878 PR gdb/14704:
1879 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1880 (zlib_decompress_section): Remove.
1881 (gdb_bfd_map_section): Only check for compressed section
1882 in mmap case. Use bfd_get_full_section_contents.
1883 * osabi.c (check_note): Add 'sectsize' argument. Read
1884 section data.
1885 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1886 section data. Update for check_note change.
1887 * xcoffread.c (xcoff_initial_scan): Use
1888 bfd_get_full_section_contents.
1889 * py-auto-load.c (auto_load_section_scripts): Use
1890 bfd_get_full_section_contents.
1891 * contrib/cc-with-tweaks.sh: Add -Z option.
1892
1893 2012-11-08 Tom Tromey <tromey@redhat.com>
1894
1895 * python/py-bpevent.c: Include defs.h.
1896 * python/py-continueevent.c: Include defs.h.
1897 * python/py-event.c: Include defs.h.
1898 * python/py-event.h: Don't include defs.h.
1899 * python/py-events.h: Don't include defs.h.
1900 * python/py-evts.c: Include defs.h.
1901 * python/py-exitedevent.c: Include defs.h.
1902 * python/py-newobjfileevent.c: Include defs.h.
1903 * python/py-signalevent.c: Include defs.h.
1904 * python/py-stopevent.c: Include defs.h.
1905 * python/py-threadevent.c: Include defs.h.
1906
1907 2012-11-08 Pierre Muller <muller@sourceware.org>
1908
1909 * update-web-ari.sh (print_heading): Add number of files
1910 checked.
1911 (nb_files): New variable counting the number of sources
1912 files found by gdb_find.sh script.
1913 (debug_awk): New variable to allow extra debug output.
1914 (indexes): Add more information if DEBUG_AWK is set.
1915
1916 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1917
1918 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1919 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1920 following the change in PLT call stubs on linker.
1921
1922 2012-11-08 Pierre Muller <muller@sourceware.org>
1923
1924 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1925 as default language.
1926 (AWK): Use = instead of == for sh test to avoid warning.
1927 (Linux rule): Correct [:digit] into [[:digit:]].
1928 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1929 (vasprintf rule): Adapt to common subdirectory moves.
1930 (xasprintf rule): Idem.
1931 (xvasprintf rule): Idem.
1932 (var_boolean rule): Accept occurence in == or != test.
1933
1934 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1935
1936 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1937
1938 * tui/tui-hooks.c (tui_inferior_exit): New function.
1939 (tui_detach_hook): Remove.
1940 (tui_install_hooks): Install the inferior exit observer.
1941 (tui_remove_hooks): Remove it.
1942
1943 2012-11-08 Yao Qi <yao@codesourcery.com>
1944
1945 PR gdb/14777.
1946 * source.c (_initialize_source): Call add_com_alias to abbreviate
1947 'forward-search' as 'fo'.
1948
1949 2012-11-07 Pedro Alves <palves@redhat.com>
1950
1951 * arm-tdep.c: Make defs.h be the first include.
1952 * coff-pe-read.c: Ditto.
1953 * gnu-nat.c: Ditto.
1954 * go32-nat.c: Ditto.
1955 * i386-nat.c: Ditto.
1956 * ppcnbsd-nat.c: Ditto.
1957 * ada-varobj.h: Don't include defs.h.
1958 * i386-darwin-tdep.h: Ditto.
1959 * i386-nat.h: Ditto.
1960
1961 2012-11-07 Pedro Alves <palves@redhat.com>
1962
1963 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1964 Committee.
1965
1966 2012-11-07 Pierre Muller <muller@sourceware.org>
1967
1968 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1969 File already uses "gdb_dirent.h" header.
1970
1971 2012-11-07 Yao Qi <yao@codesourcery.com>
1972
1973 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1974 tracepoint_count'.
1975
1976 2012-11-06 Tom Tromey <tromey@redhat.com>
1977
1978 * target.h (inferior_has_forked, inferior_has_vforked)
1979 (inferior_has_execd, inferior_has_called_syscall): Remove
1980 declarations.
1981
1982 2012-11-06 Pierre Muller <muller@sourceware.org>
1983
1984 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1985 add missing internalization markup.
1986
1987 2012-11-06 Pedro Alves <palves@redhat.com>
1988
1989 PR gdb/14810
1990
1991 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1992
1993 2012-11-06 Pierre Muller <muller@sourceware.org>
1994
1995 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1996 is not executable.
1997
1998 2012-11-05 Joel Brobecker <brobecker@adacore.com>
1999
2000 * gnulib/update-gnulib.sh: New script.
2001
2002 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
2003
2004 * MAINTAINERS: Update my email address.
2005
2006 2012-11-05 Tom Tromey <tromey@redhat.com>
2007
2008 * frame.c (put_frame_register): Don't use temporary buffer.
2009
2010 2012-11-05 Pedro Alves <palves@redhat.com>
2011
2012 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
2013 child. Clear 'pending_detach'.
2014 * infrun.c (handle_vfork_child_exec_or_exit): Clear
2015 'pending_detach' in the vfork parent.
2016
2017 2012-11-05 Doug Evans <dje@google.com>
2018
2019 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
2020 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
2021 * dwarf2read.c: #include "elf-bfd.h".
2022 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
2023 (dwop_section_names): Renamed from dwo_section names. All uses
2024 updated. Add entries for .debug_cu_index, .debug_tu_index.
2025 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
2026 All uses updated.
2027 (struct dwp_sections): New type.
2028 (struct virtual_dwo_sections): New type.
2029 (struct dwp_hash_table): New type.
2030 (struct dwp_file): New type.
2031 (init_cutu_and_read_dies): Ensure DWO info/types section has been
2032 read in. Handle DWOs coming from DWP files.
2033 (lookup_dwo_file_slot): New function.
2034 (dwarf2_locate_dwo_sections): Move definition closer to use.
2035 (create_dwo_debug_info_hash_table_reader): Renamed from
2036 create_debug_info_hash_table_reader. All callers updated.
2037 (create_dwo_debug_info_hash_table): Renamed from
2038 create_debug_info_hash_table. All callers updated.
2039 (create_dwp_hash_table): New function.
2040 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
2041 (lookup_dwo_in_dwp): New function.
2042 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
2043 is_dwp. All callers updated.
2044 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
2045 (open_and_init_dwo_file): Renamed from init_dwo_file.
2046 All callers updated.
2047 (lookup_dwo_file): Delete.
2048 (dwarf2_locate_dwp_sections): New function.
2049 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
2050 (allocate_dwp_loaded_cutus_table): New function.
2051 (open_and_init_dwp_file): New function.
2052 (lookup_dwo_cutu): New function.
2053 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
2054
2055 2012-11-03 Yao Qi <yao@codesourcery.com>
2056
2057 Fix PR gdb/14617.
2058 * breakpoint.c (trace_pass_set_count): Call
2059 observer_notify_breakpoint_modified instead of
2060 observer_notify_tracepoint_modified.
2061 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
2062
2063 2012-11-02 Tom Tromey <tromey@redhat.com>
2064
2065 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
2066 argument to complete_on_enum.
2067
2068 2012-11-02 Tom Tromey <tromey@redhat.com>
2069
2070 * configure: Rebuild.
2071 * configure.ac (build_warnings): Add -Wempty-body.
2072 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
2073 * remote.c (handle_notification): Use braces for empty 'else' body.
2074 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
2075 'else' body.
2076 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
2077 'else' body.
2078 * solib-som.c (som_relocate_section_addresses): Use braces
2079 for empty 'else' body.
2080 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
2081 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
2082
2083 2012-11-02 Pedro Alves <palves@redhat.com>
2084
2085 PR gdb/14766
2086
2087 * infrun.c (handle_inferior_event)
2088 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2089 null_ptid before handling a vfork child exec or exit. Switch to
2090 the event ptid afterwards.
2091
2092 2012-11-02 Yao Qi <yao@codesourcery.com>
2093
2094 * std-operator.def: Remove OP_LABELED.
2095 * eval.c: Remove the declaration of 'get_label'.
2096 (get_label): Remove.
2097 (evaluate_struct_tuple): Remove code handling OP_LABELED.
2098 Update comment.
2099 Remove local variable 'variantno' and related code.
2100 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
2101 with 'fieldno'.
2102 * expprint.c (print_subexp_standard): Likewise.
2103 (dump_subexp_body_standard): Likewise.
2104 * parse.c (operator_length_standard): Likewise.
2105
2106 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
2107
2108 Incorporate ARI web page generator into GDB sources.
2109 * contrib/ari/create-web-ari-in-src.sh: New file.
2110 * contrib/ari/gdb_ari.sh: New file.
2111 * contrib/ari/gdb_find.sh: New file.
2112 * contrib/ari/update-web-ari.sh: New file.
2113
2114 2012-10-31 Tom Tromey <tromey@redhat.com>
2115
2116 * gdbarch.c: Rebuild.
2117 * gdbarch.sh: Remove references to gdbarch_swap.
2118 * corelow.c (core_open): Remove obsolete comment.
2119
2120 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
2121
2122 PR cli/14772
2123 * c-typeprint.c (c_print_type): Don't print a space for vector
2124 types, this is handled within the suffix.
2125 (c_type_print_varspec_suffix): Add a space to vector suffix.
2126
2127 2012-10-26 Pedro Alves <palves@redhat.com>
2128
2129 * amd64-tdep.c (amd64_relocate_instruction): Use
2130 store_unsigned_integer instead of memcpy.
2131 * i386-tdep.c (i386_relocate_instruction): Ditto.
2132
2133 2012-10-26 Pedro Alves <palves@redhat.com>
2134
2135 * infrun.c (handle_inferior_event): Merge handling of
2136 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2137 switch case.
2138
2139 2012-10-26 Pedro Alves <palves@redhat.com>
2140
2141 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2142 Remove comment.
2143
2144 2012-10-26 Pedro Alves <palves@redhat.com>
2145
2146 * target.c (target_waitstatus_to_string): Handle
2147 TARGET_WAITKIND_VFORK_DONE.
2148
2149 2012-10-26 Pedro Alves <palves@redhat.com>
2150
2151 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2152 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2153
2154 2012-10-24 Tristan Gingold <gingold@adacore.com>
2155
2156 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2157 Add comments.
2158
2159 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2160
2161 * ravenscar-thread.c (ravenscar_wait): Only update the list
2162 of threads and inferior_ptid if the inferior is still alive.
2163
2164 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2165
2166 * ada-lang.c (is_known_support_routine): Use lbasename when
2167 matching the symtab's filename against
2168 known_runtime_file_name_patterns.
2169
2170 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2171
2172 * ada-lang.c (ada_same_array_size_p): New function.
2173 (ada_promote_array_of_integrals): New function.
2174 (coerce_for_assign): Add handling of arrays where the elements
2175 are integrals of a smaller size than the size of the target
2176 array element type.
2177
2178 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2179
2180 * doublest.c (convert_doublest_to_floatformat): Fix comparison
2181 against maximum exponent value.
2182
2183 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2184
2185 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2186 "unwind-seh.c".
2187
2188 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2189
2190 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2191 strip typedef layer when computing the fixed type's field type,
2192 only when computing its size.
2193
2194 2012-10-24 Mark Kettenis <kettenis@gnu.org>
2195
2196 PR gdb/12783
2197 * i386-tdep.c (i386_return_value): Handle complex double and long
2198 double.
2199
2200 2012-10-24 Joel Brobecker <brobecker@adacore.com>
2201
2202 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2203 New local variable args_len.
2204 Quote the name of the executable when computing the command line.
2205
2206 2012-10-23 Mark Kettenis <kettenis@gnu.org>
2207
2208 PR gdb/12796
2209 PR gdb/12798
2210 PR gdb/12800
2211 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2212 AMD64_FTAG_REGNUM.
2213 * amd64-tdep.c (amd64_classify): Classify complex types.
2214 (amd64_return_value): Handle the COMPLEX_X87 class.
2215
2216 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2217
2218 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2219 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2220
2221 2012-10-23 Joel Brobecker <brobecker@adacore.com>
2222
2223 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2224 function.
2225 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2226 to amd64_windows_auto_wide_charset.
2227
2228 2012-10-23 Yao Qi <yao@codesourcery.com>
2229
2230 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2231 * event-top.h: Remove its declaration.
2232 (async_request_quit): Call mark_async_signal_handler instead of
2233 mark_async_signal_handler_wrapper.
2234 (async_do_nothing, async_disconnect): Likewise.
2235 (async_stop_sig): Likewise.
2236 * remote.c (handle_remote_sigint): Likewise.
2237 (handle_remote_sigint_twice): Likewise.
2238
2239 2012-10-23 Yao Qi <yao@codesourcery.com>
2240
2241 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2242 with 'static struct async_signal_handler *'.
2243 (sighup_token, sigquit_token, sigstp_token): Likewise.
2244
2245 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2246
2247 * gdbarch.sh (function_list): Use 'pstring' when printing
2248 a variable which could return NULL.
2249 * gdbarch.c: Regenerate.
2250
2251 2012-10-10 Joel Brobecker <brobecker@adacore.com>
2252 Tom Tromey <tromey@redhat.com>
2253
2254 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2255 inneffective if condition by gdb assertion. Add function
2256 description comment.
2257
2258 2012-10-19 Joel Brobecker <brobecker@adacore.com>
2259
2260 * parser-defs.h (struct exp_descriptor): Document constraint
2261 on return value for "op_name" callbacks.
2262
2263 2012-10-18 Tom Tromey <tromey@redhat.com>
2264
2265 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2266 * symtab.c (iterate_over_some_symtabs): Constify.
2267 * source.h (symtab_to_fullname): Return 'const char *'.
2268 * source.c (symtab_to_fullname): Return 'const char *'.
2269 * python/py-symtab.c (stpy_fullname): Constify.
2270 * cli/cli-cmds.c (edit_command): Constify.
2271 * breakpoint.c (print_breakpoint_location)
2272 (update_static_tracepoint): Constify.
2273
2274 2012-10-18 Tom Tromey <tromey@redhat.com>
2275
2276 * breakpoint.c (compare_breakpoints): Fix comparison.
2277
2278 2012-10-18 Tom Tromey <tromey@redhat.com>
2279
2280 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2281 gdb_wchar_t to convert_between_encodings.
2282
2283 2012-10-17 Yao Qi <yao@codesourcery.com>
2284
2285 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2286 more parameter 'inferior'.
2287 * corefile.c (write_memory_with_notification): Caller update.
2288
2289 * mi/mi-cmd-var.c: Include "mi-main.h".
2290 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2291 to 1 and restore it later.
2292 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2293 and "data-write-memory-bytes.
2294 * mi/mi-interp.c: Include objfiles.h.
2295 (mi_interpreter_init): Call observer_attach_memory_changed.
2296 (mi_memory_changed): New.
2297 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2298 New field.
2299
2300 * NEWS: Mention new MI notification "memory-changed".
2301
2302 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2303
2304 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2305
2306 2012-10-15 Doug Evans <dje@google.com>
2307
2308 New option -nh: inhibit loading of ~/.gdbinit.
2309 * NEWS: Mention -nh.
2310 * main.c (captured_main): Recognize and process -nh.
2311 (print_gdb_help): Mention -nh.
2312 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2313
2314 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2315
2316 PR backtrace/14646
2317 PR gdb/14647
2318 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2319 pc_regnum_from_eax.
2320 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2321 nor pc_regnum_from_eax.
2322 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2323 nor pc_regnum_from_eax.
2324
2325 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2326
2327 Fix entry values resolving in inlined frames.
2328 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2329 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2330 entries of FRAME.
2331
2332 2012-10-15 Joel Brobecker <brobecker@adacore.com>
2333
2334 * configure.ac: Build with -DMS_WIN64 if building with Python
2335 enabled using GCC on amd64-windows.
2336 * configure: Regenerate.
2337
2338 2012-10-15 Tom Tromey <tromey@redhat.com>
2339
2340 PR python/14635:
2341 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2342 to Py_None.
2343
2344 2012-10-15 Tom Tromey <tromey@redhat.com>
2345
2346 PR python/14634:
2347 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2348
2349 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
2350
2351 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2352 reset thread numbering back to 1.
2353
2354 2012-10-11 Doug Evans <dje@google.com>
2355
2356 PR breakpoints/14643.
2357 * linespec.c (struct ls_parser): New member keyword_ok.
2358 (linespec_lexer_lex_string): Add comment.
2359 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2360 for one.
2361 (parse_linespec): Set keyword_ok.
2362
2363 2012-10-10 Doug Evans <dje@google.com>
2364
2365 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2366 "0x" prefix on address in log message.
2367
2368 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2369 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2370 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2371 (lookup_dwo_file): Add const to dwo_name parameter.
2372 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2373
2374 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2375
2376 Fix crash during stepping on ppc32.
2377 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2378 SYM.
2379
2380 2012-10-03 Doug Evans <dje@google.com>
2381
2382 PR symtab/14601
2383 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2384
2385 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
2386
2387 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2388 output and use uint32_t not long to ensure 4 byte size.
2389
2390 2012-10-02 Joel Brobecker <brobecker@adacore.com>
2391
2392 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2393 unref'ed it.
2394
2395 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
2396
2397 * target.c (simple_search_memory): Include access length in
2398 warning message.
2399
2400 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2401 Edjunior Machado <emachado@linux.vnet.ibm.com>
2402
2403 PR gdb/13989
2404 * solib.c (solib_find): Prevent GDB from loading native libraries when
2405 debugging a cross-target corefile.
2406
2407 2012-09-28 selven <pcthegreat@gmail.com>
2408
2409 Make definition match declaration.
2410
2411 * regcache.c (regcache_register_status): Change return type to
2412 enum register_status.
2413
2414 2012-09-28 Yao Qi <yao@codesourcery.com>
2415
2416 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2417 write_memory_with_notification instead of write_memory.
2418 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2419 instead of target_write_memory.
2420
2421 2012-09-28 Yao Qi <yao@codesourcery.com>
2422
2423 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2424 when the length of content is not an even number.
2425
2426 2012-09-27 Tom Tromey <tromey@redhat.com>
2427
2428 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2429 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2430
2431 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2432
2433 * sol-thread.c (sol_thread_fetch_registers)
2434 (sol_thread_store_registers): Delete commented out code.
2435
2436 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2437
2438 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2439 Move these functions to sparc-sol-thread.c.
2440 * sparc-sol-thread.c: New file.
2441 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2442 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2443 configurations.
2444 * configure: Regenerate.
2445
2446 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2447
2448 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2449 Remove commented-out code.
2450
2451 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2452
2453 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2454 Enable this code for sparc hosts only.
2455
2456 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2457
2458 * procfs.h (procfs_find_LDT_entry): Add declaration.
2459 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2460 function procfs_find_LDT_entry.
2461
2462 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2463
2464 * procfs.c (proc_get_LDT_entry): Make static.
2465
2466 2012-09-27 Joel Brobecker <brobecker@adacore.com>
2467
2468 * procfs.c (proc_find_memory_regions): Fix declaration.
2469
2470 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2471
2472 * amd64-tdep.c (amd64_return_value): Revert previous change
2473 that used TYPE_LENGTH directly.
2474 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2475 (bfin_store_return_value): Likewise.
2476 * cris-tdep.c (cris_store_return_value): Likewise.
2477 (cris_extract_return_value): Likewise.
2478 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2479 * hppa-tdep.c (hppa64_return_value): Likewise.
2480 * lm32-tdep.c (lm32_store_return_value): Likewise.
2481 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2482 * spu-tdep.c (spu_value_from_register): Likewise.
2483 * vax-tdep.c (vax_return_value): Likewise.
2484
2485 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2486
2487 * gdbtypes.c (lookup_array_range_type): Expand parameters
2488 LOW_BOUND and HIGH_BOUND to LONGEST.
2489 (lookup_string_range_type): Likewise.
2490 * gdbtypes.h (lookup_array_range_type): Likewise.
2491 (lookup_string_range_type): Likewise.
2492 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2493 Expand HIGHBOUND to ssize_t.
2494 (value_string): Likewise.
2495 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2496 (value_string): Likewise.
2497
2498 2012-09-27 Yao Qi <yao@codesourcery.com>
2499
2500 PR breakpoints/13898
2501 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2502 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2503 per breakpoint type.
2504
2505 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2506
2507 * procfs.c: Add gdb_bfd header.
2508 * rs6000-nat.c: Likewise.
2509 * solib-pa64.c: Likewise.
2510 * spu-linux-nat.c: Likewise.
2511 * windows-nat.c: Likewise.
2512
2513 2012-09-26 Tom Tromey <tromey@redhat.com>
2514
2515 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2516
2517 2012-09-26 Tom Tromey <tromey@redhat.com>
2518
2519 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2520 (read_common_block): Handle child DIEs with
2521 DW_AT_data_member_location.
2522 (new_symbol_full): Add special case for common blocks.
2523
2524 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2525 Tom Tromey <tromey@redhat.com>
2526
2527 * dwarf2read.c (read_common_block): Rewrite.
2528 (new_symbol_full): Handle DW_TAG_common_block.
2529 * f-lang.c (head_common_list, find_common_for_function):
2530 Remove.
2531 * f-lang.h (struct common_entry, struct saved_f77_common,
2532 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2533 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2534 BLANK_COMMON_NAME_LOCAL): Remove.
2535 (struct common_block): New.
2536 * f-valprint.c (list_all_visible_commons): Remove.
2537 (info_common_command_for_block): New function.
2538 (info_common_command): Use it.
2539 * stack.c (iterate_over_block_locals): Special case for
2540 COMMON_BLOCK_DOMAIN.
2541 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2542 constant.
2543 (struct general_symbol_info) <value.common_block>: New field.
2544 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2545
2546 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2547 Tom Tromey <tromey@redhat.com>
2548
2549 * f-lang.c (allocate_saved_bf_node,
2550 allocate_saved_function_node, allocate_saved_f77_common_node,
2551 allocate_common_entry_node, tail_common_list, current_common,
2552 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2553 tmp_bf_ptr, add_common_block, add_common_entry,
2554 find_first_common_named, patch_common_entries,
2555 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2556 global_remote_debug, get_bf_for_fcn, saved_function_list,
2557 saved_function_list_end, clear_function_list, struct saved_fcn,
2558 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2559 SAVED_BF, SAVED_BF_PTR): Remove.
2560 * f-lang.h (tail_common_list, current_common,
2561 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2562 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2563 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2564 real_main_c_value): Remove.
2565 * f-valprint.c (there_is_a_visible_common_named): Remove.
2566
2567 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
2568
2569 * breakpoint.c (update_global_location_list): Ignore previous
2570 duplicate status of a breakpoint when starting a new scan for
2571 duplicate breakpoints.
2572
2573 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
2574 PR breakpoints/14419
2575 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2576 support LLVM compiler.
2577
2578 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2579
2580 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2581 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2582 (bfin_store_return_value): Likewise.
2583 * cris-tdep.c (cris_store_return_value): Likewise.
2584 (cris_extract_return_value): Likewise.
2585 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2586 * hppa-tdep.c (hppa64_return_value): Likewise.
2587 * lm32-tdep.c (lm32_store_return_value): Likewise.
2588 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2589 * spu-tdep.c (spu_value_from_register): Likewise.
2590 * vax-tdep.c (vax_return_value): Likewise.
2591
2592 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2593
2594 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2595 parameter LEN to ssize_t.
2596
2597 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2598
2599 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2600 variable LEN.
2601 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2602 directly.
2603 (alpha_store_return_value): Likewise.
2604 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2605 (amd64_push_arguments): Likewise.
2606 * ax-gdb.c (gen_trace_static_fields): Likewise.
2607 (gen_traced_pop): Likewise.
2608 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2609 * breakpoint.c (update_watchpoint): Likewise.
2610 * findcmd.c (parse_find_args): Use local variable for type
2611 instead of length.
2612 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2613 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2614 (h8300_store_return_value): Likewise.
2615 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2616 Use i386_darwin_arg_type_alignment directly.
2617 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2618 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2619 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2620 (m68hc11_extract_return_value): Likewise.
2621 * mep-tdep.c (mep_push_dummy_call): Likewise.
2622 * printcmd.c (float_type_from_length): Likewise.
2623 * s390-tdep.c (s390_value_from_register): Likewise.
2624 * stack.c (read_frame_arg): Likewise.
2625 * tracepoint.c (encode_actions_1): Likewise.
2626 * valops.c (value_fetch_lazy): Use local variable for type
2627 instead of length. Use TYPE_LENGTH directly.
2628 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2629
2630 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2631
2632 * symtab.c (skip_prologue_sal): Fix typo in comment.
2633
2634 2012-09-25 Joel Brobecker <brobecker@adacore.com>
2635
2636 * linespec.c (create_sals_line_offset): Fix typo in comment.
2637
2638 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2639
2640 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2641 use plongest to print the array size.
2642
2643 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2644
2645 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2646 * p-valprint.c (pascal_type_print_base): Likewise.
2647
2648 2012-09-22 Yao Qi <yao@codesourcery.com>
2649
2650 * remote.c (remote_get_trace_status): Remove setting default
2651 values of fields of 'ts'.
2652
2653 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2654
2655 Fix internal error on canonicalization of clang types.
2656 * cp-name-parser.y (operator): New comment at make_operator call for
2657 new, delete, new[] and delete[].
2658 (exp): Use "sizeof ". Add new comment at make_operator call.
2659
2660 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2661
2662 Fix disassemble without parameters in tailcall frame.
2663 * cli/cli-cmds.c (disassemble_current_function): Use
2664 get_frame_address_in_block.
2665
2666 2012-09-21 Tom Tromey <tromey@redhat.com>
2667
2668 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2669 TYPE_CODE_UNION>: Unify, removing a goto.
2670
2671 2012-09-21 Tom Tromey <tromey@redhat.com>
2672
2673 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2674
2675 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
2676
2677 * findvar.c (read_frame_register_value): Mark the result value as
2678 optimized out if any of the input registers have been optimized out.
2679
2680 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2681
2682 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2683
2684 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2685
2686 * eval.c (evaluate_subexp_standard): Eliminate single-use
2687 variable LOWER.
2688
2689 2012-09-21 Yao Qi <yao@codesourcery.com>
2690
2691 * mi/mi-interp.c: Declare mi_record_changed.
2692 (mi_interpreter_init): Call observer_attach_record_changed.
2693 (mi_record_changed): New.
2694 * record.c (record_open): Call observer_notify_record_changed.
2695 (cmd_record_stop): Call observer_notify_record_changed.
2696 * NEWS: Mention it.
2697
2698 2012-09-20 Tom Tromey <tromey@redhat.com>
2699
2700 * NEWS: Update.
2701 * python/python.c (finalize_python): New function.
2702 (_initialize_python): Make a final cleanup.
2703
2704 2012-09-19 Doug Evans <dje@google.com>
2705
2706 * buildsym.h (param_symbols): Delete, unused.
2707 (context_stack): Delete member "params", unused.
2708 * buildsym.c (push_context): Update.
2709 * dwarf2read.c (read_func_scope): Update.
2710
2711 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2712
2713 * sh-tdep.c (sh_register_convert_to_virtual)
2714 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2715 all callers. Just do a memcpy if not the little-endian case.
2716
2717 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2718 set_gdbarch_double_format and set_gdbarch_long_double_format.
2719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2720 set_gdbarch_double_format.
2721 * sh-tdep.c (sh_gdbarch_init): Likewise.
2722
2723 * NEWS: Document the removal of SH's 'regs' command.
2724 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2725 command.
2726
2727 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2728
2729 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2730 `jump'.
2731
2732 2012-09-18 Joel Brobecker <brobecker@adacore.com>
2733
2734 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2735 language when iterating over symbols.
2736
2737 2012-09-18 Yao Qi <yao@codesourcery.com>
2738
2739 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2740 (mi_interpreter_init): Call observer_attach_tsv_created and
2741 observer_attach_tsv_deleted.
2742 (mi_tsv_created, mi_tsv_deleted): New.
2743 * tracepoint.c (delete_trace_state_variable): Call
2744 observer_notify_tsv_deleted.
2745 (trace_variable_command): Call observer_notify_tsv_created.
2746 (delete_trace_variable_command): Call
2747 observer_notify_tsv_deleted.
2748 (create_tsv_from_upload): Call observer_notify_tsv_created.
2749 * NEWS: Mention it.
2750
2751 2012-09-18 Yao Qi <yao@codesourcery.com>
2752
2753 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2754 if traceframe changed.
2755 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2756 "trace-find".
2757 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2758 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2759 'traceframe_changed'.
2760 (mi_traceframe_changed): New.
2761 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2762 New field.
2763 * NEWS: Mention the new MI notification.
2764
2765 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2766
2767 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2768
2769 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2770
2771 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2772 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2773 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2774 Extend code also for PaX support. Convert all gdb_assert to warning
2775 calls.
2776
2777 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2778
2779 Implement auto-load user conveniences suggested by Doug Evans.
2780 * auto-load.c: Include top.h.
2781 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2782 (_initialize_auto_load): New variable scripts_directory_help. Mention
2783 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2784 scripts-directory. Document in online help one can use also files for
2785 set auto-load safe-path.
2786 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2787 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2788
2789 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2790
2791 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2792 of LEN.
2793
2794 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2795
2796 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2797 ELTLEN and use TYPE_LENGTH directly.
2798 (m2_val_print): Likewise.
2799 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2800 variable LEN and use TYPE_LENGTH directly.
2801 (m68k_svr4_store_return_value): Likewise.
2802 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2803 ARGLEN and use TYPE_LENGTH directly.
2804 (mips_o64_push_dummy_call): Likewise.
2805 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2806 variable LENGTH and use TYPE_LENGTH directly.
2807 (s390_function_arg_float): Likewise.
2808 (s390_function_arg_integer): Likewise.
2809 (s390_push_dummy_call): Likewise.
2810 (s390_return_value_convention): Likewise.
2811 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2812 TYPE_LENGTH directly.
2813
2814 2012-09-17 Yao Qi <yao@codesourcery.com>
2815
2816 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2817 Update comment to add_setshow_integer_cmd.
2818 * cli/cli-setshow.c (do_set_command): Handle case
2819 'var_zuinteger_unlimited'.
2820 (do_show_command): Likewise.
2821 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2822 for command 'remotetimeout'.
2823 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2824 to var_integer.
2825 * source.c (_initialize_source): Call
2826 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
2827
2828 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2829
2830 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2831 variable LEN.
2832
2833 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 PR 14119
2836 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2837 (frame_pop): Drop also TAILCALL_FRAME frames.
2838 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2839
2840 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2841 Pedro Alves <palves@redhat.com>
2842
2843 PR 14548
2844 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2845 function start if we are already at function start. Both for
2846 reverse-next and for reverse-step into function without line number
2847 info.
2848
2849 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2850
2851 Code cleanup - rename 'inline' depth to 'artificial' depth.
2852 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2853 frame_id_artificial_p, extend the comment.
2854 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2855 * frame.c (fprint_frame_id): Rename at a user, change debug output
2856 text to "artificial=".
2857 (skip_inlined_frames): Rename to ...
2858 (skip_artificial_frames): ... here. Extend the comment.
2859 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2860 (frame_id_inlined_p): Rename to ...
2861 (frame_id_artificial_p): ... here. Rename at a user.
2862 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2863 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2864 at a user.
2865 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2866 Extend the comment.
2867 (frame_id_inlined_p): Rename to ...
2868 (frame_id_artificial_p): ... here.
2869 * inline-frame.c (inline_frame_this_id): Rename at a user.
2870
2871 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
2872
2873 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2874 vector variables using vector_size syntax rather than array
2875 syntax.
2876
2877 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2878
2879 * valarith.c (value_concat): Replace unsafe ALLOCA with
2880 XMALLOC/XFREE.
2881
2882 2012-09-14 Pedro Alves <palves@redhat.com>
2883
2884 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2885
2886 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2887
2888 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2889 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2890 data-directory as appropriate.
2891
2892 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2893
2894 * printcmd.c (ui_printf): Eliminate single-use variable
2895 PARAM_LEN.
2896
2897 2012-09-14 Yao Qi <yao@codesourcery.com>
2898 Pedro Alves <palves@redhat.com>
2899
2900 * valops.c (value_assign): Move observer_notify_target_changed
2901 below to replace reinit_frame_cache.
2902
2903 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2904
2905 Refactor Python "gdb" module into a proper Python package, by
2906 introducing a new "_gdb" module for code implemented in C, and
2907 using reload/__import__ instead of exec.
2908 * python/lib/gdb/__init__.py: Import * from _gdb.
2909 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2910 prompt_hook, sys.argv): Moved from finish_python_initialization.
2911 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2912 (packages, auto_load_packages): New list and function replacing
2913 module_dict and auto-loading code, using __file__ instead of
2914 gdb.PYTHONDIR and reload/__import__ instead of exec.
2915 (GdbSetPythonDirectory): Replacing function of the same name
2916 from finish_python_initialization, using reload/__import__ instead
2917 of exec, as well as call auto_load_packages.
2918 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2919 gdb_python_module and not gdb_module.
2920 * python/python-internal.h (gdb_python_module): Declare.
2921 * python/python.c (gdb_python_module): New global.
2922 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2923 (_initialize_python): Rename gdb module to _gdb.
2924 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2925 (finish_python_initialization): Move Python code to
2926 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2927 __main__.
2928
2929 2012-09-13 Pedro Alves <palves@redhat.com>
2930
2931 * Makefile.in (COMMON_OBS): Add registry.o.
2932 * registry.c: New file.
2933 * registry.h (struct registry_container): Declare.
2934 (registry_data_callback): New typedef.
2935 (struct registry_data, struct registry_data_registration, struct
2936 registry_data_registry): New type.
2937 (register_data_with_cleanup, registry_alloc_data)
2938 (registry_callback_adaptor, registry_clear_data)
2939 (registry_container_free_data, registry_set_data, registry_data):
2940 Declare.
2941 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2942 the new common structures and functions.
2943 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2944 callback typedefs.
2945
2946 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2947
2948 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2949 there is an error inserting hardware breakpoints and use the
2950 error message from the target.
2951
2952 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
2953 Catch this exception and print the error message contained within.
2954 Do not print the default hardware error breakpoint message in this
2955 case.
2956
2957 2012-09-12 Doug Evans <dje@google.com>
2958
2959 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2960 cu == NULL.
2961
2962 2012-09-11 Doug Evans <dje@google.com>
2963
2964 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2965 .gdb_index symbol attributes if there are none.
2966
2967 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2968
2969 * symtab.h (struct minimal_symbol) [has_size]: New field.
2970 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2971 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2972 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2973 minimal symbols if the symbol's size is actually known.
2974 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2975 of msymbol's size field. Add comment.
2976 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2977 SET_MSYMBOL_SIZE to set the minimal symbol size.
2978
2979 2012-09-11 Joel Brobecker <brobecker@adacore.com>
2980
2981 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2982 minimal_symbol struct object, rather than setting some of its
2983 fields one by one.
2984
2985 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
2986
2987 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2988 passed_a_ptr flag when displaying typedef types.
2989
2990 2012-09-10 Joel Brobecker <brobecker@adacore.com>
2991
2992 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2993 the optimized_out flag is preserved.
2994
2995 2012-09-10 Anthony Green <green@moxielogic.com>
2996
2997 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2998 prologue changes in GCC.
2999
3000 2012-09-10 Keith Seitz <keiths@redhat.com>
3001
3002 PR gdb/13483
3003 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
3004 (BOOL_CONVERSION_BADNESS): ... this.
3005 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
3006 (rank_one_type): Allow all boolean conversions
3007 permitted by the standard.
3008
3009 2012-09-06 Tom Tromey <tromey@redhat.com>
3010
3011 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3012 Don't decref py_objfile.
3013
3014 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
3015
3016 Do not enable -lmcheck by default when Python is enabled with
3017 threading support.
3018 * configure.ac: (python_has_threads) New variable, by testing
3019 if WITH_THREAD is defined in Python.h.
3020 Move --enable-lmcheck after --with-python.
3021 Do not enable -lmcheck by default if python_has_threads=yes.
3022 Warn if --enable-lmcheck and python_has_threads=yes.
3023 * configure: Regenerate.
3024
3025 2012-08-31 Yao Qi <yao@codesourcery.com>
3026
3027 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
3028 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
3029 Update some commands.
3030 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
3031 * mi/mi-main.c (mi_cmd_execute): Set
3032 '*parse->cmd->suppress_notification' to 1.
3033
3034 2012-08-31 Yao Qi <yao@codesourcery.com>
3035
3036 * mi/mi-cmds.c (mi_cmds): Add 'static'.
3037
3038 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
3039
3040 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
3041
3042 2012-08-29 Doug Evans <dje@google.com>
3043
3044 * main.c (print_gdb_help): Remove reference to
3045 --use-deprecated-index-sections.
3046
3047 2012-08-28 Yao Qi <yao@codesourcery.com>
3048
3049 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
3050 (init_cmds): Call add_setshow_uinteger_cmd for command
3051 'max-user-call-depth'.
3052 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
3053 declaration of 'max_user_call_depth'.
3054 * frame.c (backtrace_limit): Add 'unsigned'.
3055 (_initialize_frame): Call add_setshow_uinteger_cmd for command
3056 'limit'.
3057 * remote.c (remoteaddresssize): Add 'unsigned'.
3058 (remote_address_masked): Change local var 'address_size' to
3059 'unsigned'.
3060 (_initialize_remote): Call add_setshow_uinteger_cmd for
3061 'remoteaddresssize'.
3062 * top.c (history_size): Add 'unsigned'.
3063 (show_commands): Change local variables to 'unsigned'.
3064 (set_history_size_command): Don't check history_size is negative.
3065 Adjust the condition to call unstifle_history and set history_size
3066 to UNIT_MAX.
3067
3068 2012-08-28 Pedro Alves <palves@redhat.com>
3069
3070 PR gdb/14428
3071
3072 * infcmd.c (default_print_one_register_info): New, factored out
3073 from default_print_registers_info.
3074 (default_print_registers_info): Use it. Mark value unavailable if
3075 necessary.
3076 (registers_info): Print user registers with
3077 default_print_one_register_info.
3078
3079 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
3080
3081 PR tui/14486
3082 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
3083 is not NULL before referencing it.
3084
3085 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3086
3087 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
3088 variable pc. Call find_pc_line instead of find_pc_overlay, restore
3089 original PC for it.
3090
3091 2012-08-27 Eli Zaretskii <eliz@gnu.org>
3092 Jan Kratochvil <jan.kratochvil@redhat.com>
3093
3094 * auto-load.c (auto_load_objfile_script): Rename to ...
3095 (auto_load_objfile_script_1): ... here, change variable realname to
3096 parameter realname, document it, add return value, add variable retval.
3097 (auto_load_objfile_script): New function.
3098
3099 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3100
3101 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3102 followed by a whitespace.
3103
3104 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3105
3106 PR gdb/14494.
3107 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3108 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3109 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3110 here.
3111
3112 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
3113
3114 * memattr.c (create_mem_region): Fix memory region overlapping
3115 checking.
3116
3117 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
3118
3119 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3120 with xmalloc/cleanup.
3121 * mt-tdep.c (mt_push_dummy_call): Likewise.
3122 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3123 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3124
3125 2012-08-24 Yao Qi <yao@codesourcery.com>
3126
3127 * jv-exp.y (push_expression_name): Add "." at the end of error
3128 message.
3129
3130 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
3131
3132 Document how to return from "python-interactive" to GDB.
3133 * python/python.c (_initialize_python): Update documentation.
3134
3135 2012-08-23 Pedro Alves <palves@redhat.com>
3136
3137 * infrun.c (_initialize_infrun) <handle command help text>:
3138 Mention that multiple signals are supported.
3139
3140 2012-08-23 Pedro Alves <palves@redhat.com>
3141
3142 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3143 string.
3144
3145 2012-08-23 Yao Qi <yao@codesourcery.com>
3146
3147 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3148 (tfind_1): Don't call registers_changed, set_traceframe_num,
3149 and clear_traceframe_info.
3150 Call set_current_traceframe.
3151 (set_current_traceframe): call set_traceframe_num.
3152
3153 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
3154
3155 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3156 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3157
3158 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3159
3160 Enable readline in Python in a GDB-specific way and block the
3161 standard Python readline module to prevent conflicts with GDB.
3162 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3163 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3164 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3165 * python/py-gdb-readline.c: New file.
3166 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3167 prototype.
3168 * python/python.c (_initialize_python): Call
3169 gdbpy_initialize_gdb_readline.
3170
3171 2012-08-22 Keith Seitz <keiths@redhat.com>
3172
3173 * defs.h: Include build-gnulib/config.h
3174
3175 2012-08-22 Joseph Myers <joseph@codesourcery.com>
3176
3177 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3178 and blx pc.
3179
3180 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3181
3182 Add a new "python-interactive" command that starts a standard
3183 Python interactive prompt with "pi" as alias, and add "py" as
3184 an alias to "python".
3185 * NEWS: Mention the new commands.
3186 * python/python.c (eval_python_command): New function.
3187 (python_interactive_command): For "python-interactive" with
3188 arguments, call eval_python_command. For "python-interactive"
3189 without arguments, call PyRun_InteractiveLoop.
3190 (_initialize_python): Add "python-interactive" command with
3191 "pi" as alias, and add "py" as an alias to "python".
3192
3193 2012-08-22 Tom Tromey <tromey@redhat.com>
3194
3195 * defs.h (quit_flag): Don't declare.
3196 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3197 (QUIT): Use new functions.
3198 * event-top.c (command_handler): Use clear_quit_flag.
3199 (handle_sigint): Use set_quit_flag.
3200 (async_request_quit): Use check_quit_flag. Don't check
3201 immediate_quit.
3202 * exceptions.c (throw_exception): Use clear_quit_flag.
3203 * main.c (captured_main): Use clear_quit_flag.
3204 * python/python.c (clear_quit_flag, set_quit_flag)
3205 (check_quit_flag): New functions.
3206 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3207 clear_quit_flag.
3208 * remote.c (remote_wait_as): Use check_quit_flag,
3209 clear_quit_flag.
3210 (remote_start_remote): Call QUIT.
3211 * symfile.c (load_progress): Use check_quit_flag.
3212 * top.c (command_loop): Use clear_quit_flag.
3213 (command_line_input): Call QUIT.
3214 * utils.c (quit_flag): Conditionally define.
3215 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3216 functions.
3217 (prompt_for_continue): Call QUIT. Use quit, not
3218 async_request_quit.
3219 * remote-mips.c (mips_expect_timeout): Call QUIT.
3220 * monitor.c (monitor_expect): Call QUIT.
3221
3222 2012-08-22 Tom Tromey <tromey@redhat.com>
3223
3224 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3225 (async_init_signals): Update.
3226 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3227 (SIGWINCH_HANDLER_BODY): Remove.
3228
3229 2012-08-22 Tom Tromey <tromey@redhat.com>
3230
3231 * jit.c (jit_object_close_impl): Don't malloc the objfile
3232 name.
3233 * objfiles.c (allocate_objfile): Don't malloc the objfile
3234 name.
3235 (free_objfile): Don't free the objfile name.
3236 * objfiles.h (struct objfile) <name>: Update comment.
3237 * symfile.c (reread_symbols): Fix reference counting. Don't
3238 malloc objfile name.
3239
3240 2012-08-22 Tom Tromey <tromey@redhat.com>
3241
3242 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3243 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3244 (symfile_bfd_open): Likewise.
3245 (generic_load): Likewise.
3246 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3247 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3248 gdb_bfd_open.
3249 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3250 Use gdb_bfd_open.
3251 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3252 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3253 (pmon_load_fast): Likewise.
3254 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3255 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3256 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3257 (macho_check_dsym): Likewise.
3258 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3259 (m32r_upload_command): Likewise.
3260 * gdb_bfd.h (gdb_bfd_cache): Declare.
3261 * gdb_bfd.c (struct gdb_bfd_data): New.
3262 (gdb_bfd_cache): New global.
3263 (struct gdb_bfd_cache_search): New.
3264 (hash_bfd): New function.
3265 (eq_bfd): Likewise.
3266 (gdb_bfd_open): Likewise.
3267 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3268 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3269 gdb_bfd_data.
3270 * exec.c (exec_file_attach): Use gdb_bfd_open.
3271 * dsrec.c (load_srec): Use gdb_bfd_open.
3272
3273 2012-08-22 Tom Tromey <tromey@redhat.com>
3274
3275 * dwarf2read.c (macro_start_file): Update.
3276 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3277 (free_objfile_per_bfd_storage): Destroy macro_cache.
3278 (allocate_objfile, free_objfile): Update.
3279 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3280 New field.
3281 (struct objfile) <macro_cache>: Remove.
3282 * symfile.c (reread_symbols): Update.
3283 * symmisc.c (print_symbol_bcache_statistics): Update.
3284 (print_objfile_statistics): Update.
3285
3286 2012-08-22 Tom Tromey <tromey@redhat.com>
3287
3288 * elfread.c (elf_symtab_read): Update.
3289 * objfiles.c (objfiles_bfd_data): New global.
3290 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3291 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3292 (allocate_objfile, free_objfile): Update.
3293 (_initialize_objfiles): Initialize objfiles_bfd_data.
3294 * objfiles.h (struct objfile_per_bfd_storage): New.
3295 (struct objfile) <per_bfd>: New field.
3296 <filename_cache>: Remove.
3297 (set_objfile_per_bfd): Declare.
3298 * symfile.c (reread_symbols): Update. Call
3299 set_objfile_per_bfd.
3300 (allocate_symtab): Update.
3301 * symmisc.c (print_symbol_bcache_statistics): Update.
3302 (print_objfile_statistics): Print the size of the BFD obstack.
3303
3304 2012-08-22 Tom Tromey <tromey@redhat.com>
3305
3306 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3307 * gdb_bfd.c: Use DEFINE_REGISTRY.
3308 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3309 (gdb_bfd_ref): Call bfd_alloc_data.
3310 (gdb_bfd_unref): Call bfd_free_data.
3311
3312 2012-08-22 Tom Tromey <tromey@redhat.com>
3313
3314 * registry.h (struct registry_fields): New.
3315 (REGISTRY_FIELDS): Redefine.
3316 (REGISTRY_ACCESS_FIELD): New macro.
3317 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3318 functions.
3319
3320 2012-08-22 Tom Tromey <tromey@redhat.com>
3321
3322 * auto-load.c (_initialize_auto_load): Update.
3323 * solib-svr4.c (_initialize_svr4_solib): Update
3324 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3325 * solib-darwin.c (_initialize_darwin_solib): Update.
3326 * registry.h: New file.
3327 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3328 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3329 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3330 (register_program_space_data_with_cleanup)
3331 (register_program_space_data, program_space_alloc_data)
3332 (clear_program_space_data, set_program_space_data)
3333 (program_space_data): Don't declare.
3334 * progspace.c: Use DEFINE_REGISTRY.
3335 (struct program_space_data, struct
3336 program_space_data_registration, struct
3337 program_space_data_registry, program_space_data_registry)
3338 (register_program_space_data_with_cleanup)
3339 (register_program_space_data, program_space_alloc_data)
3340 (program_space_free_data, clear_program_space_data)
3341 (set_program_space_data, program_space_data): Remove.
3342 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3343 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3344 (register_objfile_data_with_cleanup, register_objfile_data)
3345 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3346 declare.
3347 * objfiles.c: Use DEFINE_REGISTRY.
3348 (struct objfile_data, struct objfile_data_registration, struct
3349 objfile_data_registry, objfile_data_registry)
3350 (register_objfile_data_with_cleanup, register_objfile_data)
3351 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3352 (set_objfile_data, objfile_data): Remove.
3353 (_initialize_objfiles): Update.
3354 * jit.c (_initialize_jit): Update.
3355 * inflow.c (_initialize_inflow): Update.
3356 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3357 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3358 (register_inferior_data_with_cleanup, register_inferior_data)
3359 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3360 declare.
3361 * inferior.c: Use DEFINE_REGISTRY.
3362 (struct inferior_data, struct inferior_data_registration, struct
3363 inferior_data_registry, inferior_data_registry)
3364 (register_inferior_data_with_cleanup, register_inferior_data)
3365 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3366 (set_inferior_data, inferior_data): Remove.
3367 * auxv.c (_initialize_auxv): Update.
3368 * ada-lang.c (_initialize_ada_language): Update.
3369 * breakpoint.c (_initialize_breakpoint): Update.
3370 * i386-nat.c (i386_use_watchpoints): Update.
3371
3372 2012-08-22 Tom Tromey <tromey@redhat.com>
3373
3374 * exec.c (exec_close, exec_file_attach): Update.
3375 (add_to_section_table): Initialize 'key' field.
3376 (add_target_sections, remove_target_sections): Add 'key' argument.
3377 * exec.h (add_target_sections, remove_target_sections): Add
3378 'key' argument.
3379 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3380 (reload_shared_libraries_1): Update.
3381 * target.h (struct target_section) <key>: New field.
3382
3383 2012-08-22 Tom Tromey <tromey@redhat.com>
3384
3385 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3386
3387 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3388
3389 * symfile.c (allocate_symtab): Use host_address_to_string
3390 function instead of cast of pointer to long which is not
3391 compatible with x86_64-w64-mingw32 build.
3392
3393 2012-08-19 Andrew Pinski <apinski@cavium.com>
3394
3395 * mips-tdep.c (is_octeon): New function.
3396 (is_octeon_bbit_op): New function.
3397 (mips32_next_pc): Handle Octeon's bbit instructions.
3398 (mips32_instruction_has_delay_slot): Likewise.
3399
3400 2012-08-19 Andrew Pinski <apinski@cavium.com>
3401
3402 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3403 before the function.
3404
3405 2012-08-19 Andrew Pinski <apinski@cavium.com>
3406
3407 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3408
3409 2012-08-19 Keith Seitz <keiths@redhat.com>
3410
3411 PR c++/14365
3412 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3413 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3414
3415 2012-08-18 Eli Zaretskii <eliz@gnu.org>
3416
3417 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3418 The typo broke "make TAGS".
3419
3420 2012-08-17 Joel Brobecker <brobecker@adacore.com>
3421
3422 GDB 7.5 released.
3423
3424 2012-08-17 Keith Seitz <keiths@redhat.com>
3425
3426 PR c++/13356
3427 * gdbtypes.c (strict_type_checking): New variable.
3428 (show_strict_type_checking): New function.
3429 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3430 if strict type checking is disabled.
3431 (_initialize_gdbtypes): Add "check type" subcommand.
3432 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3433
3434 2012-08-17 Keith Seitz <keiths@redhat.com>
3435
3436 * language.h (type_mode): Remove.
3437 (type_check): Remove.
3438 (struct language_defn): Remove la_type_check.
3439 (STRICT_TYPE): Remove unused macro.
3440 (type_error): Remove.
3441 * language.c (set_type_range_case): Renamed to ...
3442 (set_range_case): ... this. Update all callers.
3443 Remove type_mode/type_check.
3444 (type_mode): Remove.
3445 (type_check): Remove.
3446 (show_type_command): Remove.
3447 (set_type_command): Remove.
3448 (language_info): Remove type checking output.
3449 (type_error): Remove unused function.
3450 (range_error): Update comment.
3451 (unknown_language_defn): Remove la_type_check.
3452 (auto_language_defn): Likewise.
3453 (local_language_defn): Likewise.
3454 (_initialize_language): Remove "check type" subcommand.
3455 * ada-lang.c (ada_language_defn): Remove la_type_check.
3456 * c-lang.c (c_language_defn): Likewise.
3457 (cplus_language_defn): Likewise.
3458 (asm_language_defn): Likewise.
3459 (minimal_language_defn): Likewise.
3460 * d-lang.c (d_language_defn): Likewise.
3461 * f-lang.c (f_language_defn): Likewise.
3462 * go-lang.c (go_language_defn): Likewise.
3463 * jv-lang.c (java_language_defn): Likewise.
3464 * m2-lang.c (m2_language_defn): Likewise.
3465 * objc-lang.c (objc_language_defn): Likewise.
3466 * opencl-lang.c (opencl_language_defn): Likewise.
3467 * p-lang.c (pascal_language_defn): Likewise.
3468
3469 2012-08-16 Mike Frysinger <vapier@gentoo.org>
3470
3471 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3472
3473 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3474
3475 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3476 New function.
3477 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3478 using the regache. Use ia64_hpux_get_register_from_save_state_t
3479 to access the bsp and bspstore registers if not.
3480
3481 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3482
3483 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3484 * breakpoint.c (detach_breakpoints): Change pid parameter into
3485 a ptid. Adjust code accordingly.
3486 * infrun.c (handle_inferior_event): Delete variable child_pid.
3487 Update call to detach_breakpoints to pass the child ptid for
3488 fork events.
3489 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3490 assert that inferior_ptid's lwp is zero.
3491 (linux_handle_extended_wait): Update call to detach_breakpoints.
3492 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3493 detach_breakpoints.
3494
3495 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3496
3497 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3498 parent, only call detach_breakpoints if tts.tts_event ==
3499 TTEVT_VFORK.
3500
3501 2012-08-16 Joel Brobecker <brobecker@adacore.com>
3502
3503 * dwarf2-frame.c (dwarf2_frame_cache): Use
3504 get_frame_address_in_block instead of get_frame_pc as
3505 the bound for executing the frame's FDE.
3506
3507 2012-08-16 Yao Qi <yao@codesourcery.com>
3508
3509 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3510 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3511 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3512 (c_type_print_varspec_suffix): Likewise.
3513 * eval.c (evaluate_subexp_standard): Likewise.
3514 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3515 (f_type_print_varspec_suffix): Likewise.
3516 * gdbtypes.c (is_scalar_type): Likewise.
3517 (recursive_dump_type): Likewise.
3518 * infcall.c (value_arg_coerce): Likewise.
3519 * m2-valprint.c (m2_val_print): Likewise.
3520 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3521 (pascal_type_print_varspec_suffix): Likewise.
3522 (pascal_type_print_base): Likewise.
3523 * p-valprint.c (pascal_val_print): Likewise.
3524 (pascal_val_print): Likewise.
3525 * valops.c (value_slice): Likewise.
3526 * valprint.c (scalar_type_p): Likewise.
3527 * valarith.c (value_bitstring_subscript): Remove.
3528 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3529 Remove comment on TYPE_CODE_BITSTRING.
3530
3531 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3532 TYPE_CODE_BITSTRING.
3533
3534 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3535 slot 0.
3536
3537 2012-08-16 Yao Qi <yao@codesourcery.com>
3538
3539 * tracepoint.c (trace_find_none_command): Remove.
3540 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3541
3542 2012-08-16 Yao Qi <yao@codesourcery.com>
3543
3544 * remote.c (handle_notification): Remove parameter 'length'.
3545 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3546
3547 2012-08-15 Keith Seitz <keiths@redhat.com>
3548
3549 * gdbtypes.c (opaque_type_resolution): Make static.
3550 Add missing comment.
3551 (overload_debug): Add missing comment.
3552 (show_opaque_type_resolution): Likewise.
3553 (show_overload_debug): Likewise.
3554 (print_bit_vector): Remove unnecessary forward declaration.
3555 (print_arg_types): Likewise.
3556 (dump_fn_fieldlists): Likewise.
3557 (print_cplus_stuff): Likewise.
3558
3559 2012-08-15 Tom Tromey <tromey@redhat.com>
3560
3561 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3562 (gdb_bfd_ref): Initialize new field.
3563 (gdb_bfd_unref): Unref the archive BFD.
3564 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3565 parent archive.
3566
3567 2012-08-15 Tom Tromey <tromey@redhat.com>
3568
3569 PR python/14387:
3570 * python/py-bpevent.c (create_breakpoint_event_object): Update
3571 comment.
3572 * python/py-event.c (evpy_add_attribute): Update comment.
3573 * python/py-exitedevent.c (create_exited_event_object): Fix
3574 reference counting and error handling.
3575 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3576 Fix reference counting.
3577 * python/py-signalevent.c (create_signal_event_object): Fix
3578 reference counting and error handling.
3579 * python/py-stopevent.c (emit_stop_event): Fix reference
3580 counting.
3581 * python/py-threadevent.c (get_event_thread): Return a
3582 borrowed reference.
3583 * python/py-type.c (convert_field): Fix reference counting.
3584
3585 2012-08-15 Tom Tromey <tromey@redhat.com>
3586
3587 * dwarf2read.c (dwarf_decode_macro_bytes)
3588 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3589 as hash key.
3590
3591 2012-08-14 Mike Frysinger <vapier@gentoo.org>
3592
3593 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3594 stepi, nexti, finish, next, step, jump, and continue commands.
3595 * infrun.c (_initialize_infrun): Update help text for the handle
3596 command.
3597
3598 2012-08-14 Doug Evans <dje@google.com>
3599
3600 * gdbtypes.c (struct extra): Delete, unused.
3601
3602 * gdbtypes.c: Whitespace cleanup.
3603 (address_space_name_to_int): Remove "extern" from definition.
3604 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3605
3606 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3607 TYPE_POINTER_TYPE (type).
3608
3609 2012-08-14 Gary Benson <gbenson@redhat.com>
3610
3611 * solib-svr4.c (svr4_free_library_list): Use free_so.
3612
3613 2012-08-13 Mike Frysinger <vapier@gentoo.org>
3614
3615 * .gitignore: Add go-exp.c.
3616
3617 2012-08-13 Doug Evans <dje@google.com>
3618
3619 * value.c (show_convenience): Tweak comment.
3620 (_initialize_values): Mention convenience functions in the help text
3621 for "show convenience".
3622
3623 2012-08-13 Yao Qi <yao@codesourcery.com>
3624
3625 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3626 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3627 TERNOP_SLICE_COUNT.
3628 * eval.c (evaluate_subexp_standard): Likewise.
3629 * expprint.c (print_subexp_standard): Likewise.
3630 (dump_subexp_body_standard): Likewise.
3631 * parse.c (operator_length_standard): Likewise.
3632
3633 2012-08-13 Yao Qi <yao@codesourcery.com>
3634
3635 * std-operator.def: Remove OP_BITSTRING.
3636 * breakpoint.c (watchpoint_exp_is_const): Update.
3637 * eval.c (evaluate_subexp_standard): Remove handling to
3638 OP_BITSTRING.
3639 * expprint.c (print_subexp_standard): Likewise.
3640 (dump_subexp_body_standard): Likewise.
3641 * parse.c (operator_length_standard): Likewise.
3642 * valops.c (value_bitstring): Remove.
3643 * value.h: Remove the declaration of 'value_bitstring'.
3644
3645 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3646
3647 * linespec.c (find_methods): Remove unused variables `i1' and
3648 `name_len'.
3649 (decode_line_full): Likewise for `arg_start'.
3650
3651 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3652
3653 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3654 (zlib_decompress_section): Likewise for `section_data'.
3655 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3656
3657 2012-08-10 Doug Evans <dje@google.com>
3658
3659 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3660 * NEWS: Document them.
3661 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3662 function/strfns.py.
3663 * python/py-type.c (typy_array_1): New function.
3664 (typy_array): Call it.
3665 (typy_vector): New function.
3666 (type_object_methods): Add "vector".
3667 * python/lib/gdb/function/__init__.py: New file.
3668 * python/lib/gdb/function/strfns.py: New file.
3669
3670 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3671
3672 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3673 for TYPE_FIELD_BITPOS.
3674 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3675
3676 2012-08-10 Mike Frysinger <vapier@gentoo.org>
3677
3678 PR cli/10436:
3679 * common/vec.h (VEC_merge): Define.
3680 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3681 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3682 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3683 * completer.c: Include gdb_signals.h.
3684 (signal_completer): Define.
3685 * completer.h (signal_completer): Add prototype.
3686 * infcmd.c (_initialize_infcmd): Assign the command
3687 completer for "signal" to handle_completer.
3688 * infrun.c: Include completer.h.
3689 (handle_completer): Define.
3690 (_initialize_infrun): Declare a new local variable c. Store the
3691 result of add_com("handle") to it. Assign the command
3692 completer for "handle" to handle_completer.
3693
3694 2012-08-09 Yao Qi <yao@codesourcery.com>
3695
3696 * cli/cli-decode.c (set_cmd_prefix): New.
3697 (lookup_cmd_for_prefixlist): New.
3698 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3699 of each cmd_list_element in *prefixlist.
3700 (add_setshow_cmd_full): set_cmd_prefix.
3701 (add_alias_cmd): Likewise.
3702 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3703 Declare 'auto_boolean_enums'.
3704 * cli/cli-setshow.c: Include "observer.h".
3705 (notify_command_param_changed_p): New.
3706 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3707 Remove 'static'.
3708 (do_setshow_command): Split it to ...
3709 (do_set_command, do_show_command): ... them. New.
3710 (do_set_command): Call observer_notify_command_param_changed if
3711 notify_command_param_changed_p returns true.
3712 (cmd_show_list): Caller update.
3713 * auto-load.c (set_auto_load_cmd): Likewise.
3714 * remote.c (show_remote_cmd): Likewise.
3715 * cli/cli-setshow.h: Update declarations.
3716 * top.c (execute_command): Call do_set_command and do_show_command.
3717
3718 * NEWS: Mention new MI notification.
3719 * mi/mi-interp.c: Declare mi_command_param_changed.
3720 (mi_interpreter_init): Attach mi_command_param_changed to
3721 observer command_param_changed.
3722 (mi_command_param_changed): New.
3723 Remove mi_suppress_breakpoint_notifications.
3724 Define global variable mi_suppress_notification.
3725 (mi_breakpoint_created): Update.
3726 (mi_breakpoint_deleted): Likewise.
3727 (mi_breakpoint_modified): Likewise.
3728 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3729 'gdb-set' and set mi_suppress_notification.
3730 * mi/mi-main.h: (mi_suppress_notification): New struct.
3731
3732 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
3733 Jan Kratochvil <jan.kratochvil@redhat.com>
3734
3735 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3736
3737 2012-08-09 Yao Qi <yao@codesourcery.com>
3738
3739 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3740 (skiplist): Move it to skip.c.
3741 (init_cmd_lists): Remove code setting enablebreaklist and
3742 skiplist to NULL.
3743 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3744 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3745 skiplist.
3746 * gdbcmd.h: Likewise.
3747 * skip.c (_initialize_step_skip): Move 'skiplist' from
3748 cli/cli-cmds.c.
3749
3750 2012-08-09 Yao Qi <yao@codesourcery.com>
3751
3752 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3753 * gnu-nat.c, symfile.c: Likewise.
3754
3755 2012-08-08 Aaron Gamble <agamble@google.com>
3756
3757 * utils.c (prompt_for_continue_wait_time): New static global.
3758 (make_command_stats_cleanup): Initialize it.
3759 (report_command_stats): Subtract time waiting for user.
3760 (prompt_for_continue): Track time waiting for user.
3761 (defaulted_query): Track time waiting for user.
3762
3763 2012-08-08 Doug Evans <dje@google.com>
3764
3765 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3766 UNOP_MEMVAL_TYPE.
3767 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3768 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3769 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3770 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3771 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3772 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3773 elt.
3774 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3775 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3776 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3777 (dump_prefix_expression): Handle OP_TYPE.
3778
3779 2012-08-08 Keith Seitz <keiths@redhat.com>
3780
3781 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3782 addr_start.
3783
3784 2012-08-08 Doug Evans <dje@google.com>
3785
3786 * linux-thread-db.c: #include "gdb_vecs.h".
3787 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3788 updated.
3789 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3790 (thread_db_load_search): Use a vector to iterate over path elements.
3791 Handle text appearing after "$pdir".
3792
3793 * gdb_string.h: Moved to ...
3794 * common/gdb_string.h: ... here.
3795 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3796 gdb_string.h and gdb_assert.h.
3797
3798 2012-08-08 Yao Qi <yao@codesourcery.com>
3799
3800 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3801 (tic6x_value_to_register): Likewise.
3802 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3803 and set_gdbarch_value_to_register.
3804
3805 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3806 Jean-Marc Saffroy <saffroy@gmail.com>
3807
3808 PR 11804
3809 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3810 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3811 * gcore.c (gcore_create_callback): New function comment. Add modified
3812 parameter. Only write modified regions. Set SEC_READONLY exactly
3813 according to MODIFIED.
3814 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3815 the passed modified value to FUNC.
3816 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3817 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3818 first. New variables modified and has_anonymous. Parse the lines of
3819 smaps file. Add the passed MODIFIED value to FUNC.
3820 * procfs.c (find_memory_regions_callback): Add the passed modified
3821 value.
3822
3823 2012-08-06 Tom Tromey <tromey@redhat.com>
3824
3825 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3826 (dwarf2_frame_cache): Use it.
3827 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3828 cache initialization constraint.
3829
3830 2012-08-06 Tom Tromey <tromey@redhat.com>
3831
3832 PR python/14386:
3833 * varobj.c (update_dynamic_varobj_children): Don't call
3834 PyIter_Check.
3835
3836 2012-08-06 Tom Tromey <tromey@redhat.com>
3837
3838 PR cli/14392:
3839 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3840
3841 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
3842
3843 * NEWS: New entry for 'cd' default parameters.
3844 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3845
3846 2012-08-03 Tom Tromey <tromey@redhat.com>
3847
3848 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3849 return.
3850
3851 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3852
3853 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3854 to attempting lseek/write.
3855 (inf_child_fileio_pread): Likewise for pread.
3856
3857 2012-08-02 Yao Qi <yao@codesourcery.com>
3858
3859 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3860 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3861 add_setshow_zinteger_cmd.
3862 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3863 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3864 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3865 instead of add_setshow_zinteger_cmd.
3866 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3867 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3868 instead of add_setshow_zinteger_cmd.
3869 * frame.c (frame_debug): Add 'unsigned'.
3870 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3871 add_setshow_zinteger_cmd.
3872 * frame.h: Update the declaration of 'frame_debug'.
3873 * gdbtypes.c (overload_debug): Add 'unsigned'.
3874 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3875 add_setshow_zinteger_cmd.
3876 * inferior.h: Update declaration of 'debug_infrun'.
3877 * infrun.c (debug_infrun): Add 'unsigned'.
3878 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3879 add_setshow_zinteger_cmd.
3880 * jit.c (jit_debug): Add 'unsigned'.
3881 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3882 add_setshow_zinteger_cmd.
3883 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3884 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3885 instead of add_setshow_zinteger_cmd.
3886 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3887 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3888 add_setshow_zinteger_cmd.
3889 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3890 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3891 instead of add_setshow_zinteger_cmd.
3892 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3893 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3894 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3895 intead of add_setshow_zinteger_cmd.
3896 * mips-tdep.c (mips_debug): Add 'unsigned'.
3897 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3898 instead of add_setshow_zinteger_cmd.
3899 * monitor.c (monitor_debug): Add 'unsigned'.
3900 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3901 add_setshow_zinteger_cmd.
3902 * observer.c (observer_debug): Add 'unsigned'.
3903 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3904 add_setshow_zinteger_cmd.
3905 * parse.c (expressiondebug): Add 'unsigned'.
3906 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3907 add_setshow_zinteger_cmd.
3908 * record.c (record_debug): Add 'unsigned'.
3909 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3910 add_setshow_zinteger_cmd.
3911 * record.h: Update the declaration of 'record_debug'.
3912 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3913 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3914 add_setshow_zinteger_cmd.
3915 * serial.c (global_serial_debug_p): Add 'unsigned'.
3916 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3917 add_setshow_zinteger_cmd.
3918 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3919 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3920 add_setshow_zinteger_cmd.
3921 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3922 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3923 add_setshow_zinteger_cmd.
3924 * target.c (targetdebug): Add 'unsigned'.
3925 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3926 add_setshow_zinteger_cmd.
3927 * valops.c (overload_debug): Add 'unsigned'.
3928 * varobj.c (varobjdebug): Add 'unsigned'.
3929 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3930 add_setshow_zinteger_cmd.
3931 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3932 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3933 instead of add_setshow_zinteger_cmd.
3934
3935 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3936 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3937 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3938 instead of add_setshow_zinteger_cmd.
3939 * gdbarch.c, gdbarch.h: Re-generated.
3940
3941 2012-08-02 Yao Qi <yao@codesourcery.com>
3942
3943 * nto-tdep.c: Don't include cli/cli-decode.h and
3944 cli/cli-cmds.h.
3945 (_initialize_nto_tdep): Remove.
3946 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3947 Remove field.
3948 Remove macro nto_internal_debugging.
3949
3950 2012-08-01 Richard Henderson <rth@redhat.com>
3951
3952 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3953 (mep-*-*) [gdb_target_obs]: Likewise.
3954
3955 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3956
3957 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3958 linux_get_siginfo_type.
3959
3960 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3961
3962 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3963 AT_ENTRY_POINT.
3964 (call_function_by_hand) <ON_STACK>: Call write_memory with
3965 gdbarch_breakpoint_from_pc, if possible.
3966 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3967 here.
3968
3969 2012-07-31 Yao Qi <yao@codesourcery.com>
3970
3971 * tracepoint.c: Add 'static' for some variables.
3972
3973 2012-07-31 Yao Qi <yao@codesourcery.com>
3974
3975 * go32-nat.c: Declare _initialize_go32_nat.
3976 * ser-go32.c: Declare _initialize_ser_dos.
3977 * top.c (do_chdir_cleanup): Add 'static'.
3978
3979 2012-07-30 Keith Seitz <keiths@redhat.com>
3980
3981 * linespec.c (linespec_lex_number): A number followed
3982 by quotes is a valid number, too.
3983
3984 2012-07-30 Tom Tromey <tromey@redhat.com>
3985
3986 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3987
3988 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3989
3990 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3991 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3992
3993 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
3994
3995 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3996 invalid or reevaluated to prevent prevent references to possibly
3997 delete'd type objects being left in the varobj.
3998
3999 2012-07-27 Tom Tromey <tromey@redhat.com>
4000 Jan Kratochvil <jan.kratochvil@redhat.com>
4001
4002 * copying.awk: Print buffer-read-only and vi ro markers.
4003 * copying.c: Rebuild.
4004 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
4005 * gdbarch.c, gdbarch.h: Rebuild.
4006 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
4007 buffer-read-only and vi ro markers.
4008 * features/arm-with-iwmmxt.c: Rebuild.
4009 * features/arm-with-m-fpa-layout.c: Rebuild.
4010 * features/arm-with-m-vfp-d16.c: Rebuild.
4011 * features/arm-with-m.c: Rebuild.
4012 * features/arm-with-neon.c: Rebuild.
4013 * features/arm-with-vfpv2.c: Rebuild.
4014 * features/arm-with-vfpv3.c: Rebuild.
4015 * features/i386/amd64-avx-linux.c: Rebuild.
4016 * features/i386/amd64-avx.c: Rebuild.
4017 * features/i386/amd64-linux.c: Rebuild.
4018 * features/i386/amd64.c: Rebuild.
4019 * features/i386/i386-avx-linux.c: Rebuild.
4020 * features/i386/i386-avx.c: Rebuild.
4021 * features/i386/i386-linux.c: Rebuild.
4022 * features/i386/i386-mmx-linux.c: Rebuild.
4023 * features/i386/i386-mmx.c: Rebuild.
4024 * features/i386/i386.c: Rebuild.
4025 * features/i386/x32-avx-linux.c: Rebuild.
4026 * features/i386/x32-avx.c: Rebuild.
4027 * features/i386/x32-linux.c: Rebuild.
4028 * features/i386/x32.c: Rebuild.
4029 * features/mips-dsp-linux.c: Rebuild.
4030 * features/mips-linux.c: Rebuild.
4031 * features/mips64-dsp-linux.c: Rebuild.
4032 * features/mips64-linux.c: Rebuild.
4033 * features/rs6000/powerpc-32.c: Rebuild.
4034 * features/rs6000/powerpc-32l.c: Rebuild.
4035 * features/rs6000/powerpc-403.c: Rebuild.
4036 * features/rs6000/powerpc-403gc.c: Rebuild.
4037 * features/rs6000/powerpc-405.c: Rebuild.
4038 * features/rs6000/powerpc-505.c: Rebuild.
4039 * features/rs6000/powerpc-601.c: Rebuild.
4040 * features/rs6000/powerpc-602.c: Rebuild.
4041 * features/rs6000/powerpc-603.c: Rebuild.
4042 * features/rs6000/powerpc-604.c: Rebuild.
4043 * features/rs6000/powerpc-64.c: Rebuild.
4044 * features/rs6000/powerpc-64l.c: Rebuild.
4045 * features/rs6000/powerpc-7400.c: Rebuild.
4046 * features/rs6000/powerpc-750.c: Rebuild.
4047 * features/rs6000/powerpc-860.c: Rebuild.
4048 * features/rs6000/powerpc-altivec32.c: Rebuild.
4049 * features/rs6000/powerpc-altivec32l.c: Rebuild.
4050 * features/rs6000/powerpc-altivec64.c: Rebuild.
4051 * features/rs6000/powerpc-altivec64l.c: Rebuild.
4052 * features/rs6000/powerpc-cell32l.c: Rebuild.
4053 * features/rs6000/powerpc-cell64l.c: Rebuild.
4054 * features/rs6000/powerpc-e500.c: Rebuild.
4055 * features/rs6000/powerpc-e500l.c: Rebuild.
4056 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
4057 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
4058 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
4059 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
4060 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
4061 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
4062 * features/rs6000/powerpc-vsx32.c: Rebuild.
4063 * features/rs6000/powerpc-vsx32l.c: Rebuild.
4064 * features/rs6000/powerpc-vsx64.c: Rebuild.
4065 * features/rs6000/powerpc-vsx64l.c: Rebuild.
4066 * features/rs6000/rs6000.c: Rebuild.
4067 * features/s390-linux32.c: Rebuild.
4068 * features/s390-linux32v1.c: Rebuild.
4069 * features/s390-linux32v2.c: Rebuild.
4070 * features/s390-linux64.c: Rebuild.
4071 * features/s390-linux64v1.c: Rebuild.
4072 * features/s390-linux64v2.c: Rebuild.
4073 * features/s390x-linux64.c: Rebuild.
4074 * features/s390x-linux64v1.c: Rebuild.
4075 * features/s390x-linux64v2.c: Rebuild.
4076 * features/tic6x-c62x-linux.c: Rebuild.
4077 * features/tic6x-c62x.c: Rebuild.
4078 * features/tic6x-c64x-linux.c: Rebuild.
4079 * features/tic6x-c64x.c: Rebuild.
4080 * features/tic6x-c64xp-linux.c: Rebuild.
4081 * features/tic6x-c64xp.c: Rebuild.
4082
4083 2012-07-27 Tom Tromey <tromey@redhat.com>
4084
4085 * c-exp.y (classify_name): Avoid assignment in condition.
4086
4087 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
4088
4089 * amd64-windows-tdep.c: Include "frame.h".
4090 (amd64_windows_skip_trampoline_code): New function.
4091 (amd64_windows_init_abi): Add trampoline registration.
4092
4093 2012-07-27 Yao Qi <yao@codesourcery.com>
4094
4095 * tracepoint.c (cur_traceframe_number): Remove.
4096 (set_tfile_traceframe): Remove.
4097 (tfile_trace_find, tfile_fetch_registers): Update callers.
4098 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4099 (tfile_open, tfile_trace_find): Likewise.
4100
4101 2012-07-27 Yao Qi <yao@codesourcery.com>
4102
4103 * thread.c (switch_to_thread): Don't call registers_changed.
4104
4105 2012-07-26 Tom Tromey <tromey@redhat.com>
4106
4107 * Makefile.in (SFILES): Remove objc-exp.y.
4108 (YYFILES): Remove objc-exp.c.
4109 (YYOBJ): Remove objc-exp.o.
4110 (local-maintainer-clean): Don't mention objc-exp.c.
4111 * c-exp.y: Include objc-lang.h.
4112 (%union) <class>: New field.
4113 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4114 (exp): Clone subscript production for OBJC_LBRAC. Add various
4115 Objective C productions.
4116 (msglist, msgarglist, msgarg): New productions.
4117 (array_mod, func_mod, operator): Clone productions for
4118 OBJC_LBRAC.
4119 (parse_string_or_char): Handle '@' strings.
4120 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
4121 (classify_name): Check la_name_of_this. Recognize ObjC class
4122 names.
4123 * objc-exp.y: Remove.
4124 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4125 * objc-lang.h (objc_parse, objc_error): Don't declare.
4126
4127 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
4128
4129 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4130
4131 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4132
4133 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4134 and decrement.
4135
4136 2012-07-26 Tom Tromey <tromey@redhat.com>
4137
4138 * copying.c: Rebuild.
4139 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
4140 'no_class'.
4141
4142 2012-07-26 Tom Tromey <tromey@redhat.com>
4143
4144 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4145 immediate_quit.
4146 (print_objfile_statistics): Likewise.
4147 (maintenance_print_symbols): Likewise.
4148 (maintenance_print_msymbols): Likewise.
4149 (maintenance_print_objfiles): Likewise.
4150 * psymtab.c (print_partial_symbols): Call QUIT.
4151 (maintenance_print_psymbols): Likewise. Don't modify
4152 immediate_quit.
4153 * copying.c (show_copying_command): Don't modify immediate_quit.
4154 (show_warranty_command): Likewise.
4155 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4156
4157 2012-07-26 Keith Seitz <keiths@redhat.com>
4158
4159 * linespec.c (linespec_lexer_lex_number): The input
4160 is also a valid number if the next character is a comma
4161 or colon.
4162
4163 2012-07-26 Joel Brobecker <brobecker@adacore.com>
4164
4165 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4166 configure options.
4167
4168 2012-07-26 Tristan Gingold <gingold@adacore.com>
4169
4170 * machoread.c: Include gdb_bfd.h.
4171
4172 2012-07-26 Tristan Gingold <gingold@adacore.com>
4173
4174 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4175 offset.
4176
4177 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
4178
4179 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4180 SIZE to size_t.
4181 (dwarf2_evaluate_loc_desc): Likewise.
4182 (dwarf2_loc_desc_needs_frame): Likewise.
4183 (locexpr_describe_location_1): Likewise.
4184 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4185 size_t.
4186 (struct dwarf2_loclist_baton): Likewise.
4187 * dwarf2read.c (struct dwarf_block): Likewise.
4188 (dump_die_shallow): Use pulongest to print dwarf_block.size.
4189 (decode_locdesc): Expand SIZE and I to size_t.
4190
4191 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4192
4193 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4194
4195 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4196
4197 * doublest.c (convert_doublest_to_floatformat): If the exponent
4198 is too small, treat the value as zero. If the exponent is too
4199 large, treat the value as infinity.
4200
4201 2012-07-25 Joel Brobecker <brobecker@adacore.com>
4202
4203 * configure.ac: Add --enable-lmcheck configure option.
4204 * configure: Regenerate.
4205
4206 2012-07-25 Tom Tromey <tromey@redhat.com>
4207
4208 * NEWS: Mention maint info bfds.
4209 * gdb_bfd.c (all_bfds): New global.
4210 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4211 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4212 New functions.
4213
4214 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
4215
4216 * configure.tgt: Add v850*-*-rtems*.
4217
4218 2012-07-25 Tom Tromey <tromey@redhat.com>
4219
4220 * macrotab.c (macro_bcache_str): Remove cast.
4221
4222 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
4223
4224 * linespec.c (linespec_lexer_lex_number): Update comments,
4225 change the return and add check to make sure the input is
4226 the decimal numbers.
4227 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4228 false, call linespec_lexer_lex_string.
4229
4230 2012-07-24 Tom Tromey <tromey@redhat.com>
4231
4232 * symfile.c (symbol_file_add): Don't open BFD twice.
4233
4234 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
4235
4236 * breakpoint.c (create_breakpoint): Store condition for pending
4237 breakpoints.
4238
4239 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4240
4241 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4242 (m68k_return_value): Handle complex types like structures.
4243 (m68k_svr4_return_value): Likewise.
4244
4245 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4246
4247 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4248 parameters to bfd_get_section_name.
4249
4250 2012-07-24 Yao Qi <yao@codesourcery.com>
4251
4252 * cli/cli-setshow.c: Handle case 'var_uinteger'
4253 and 'var_zuninteger' together. Handle case 'var_integer' and
4254 'var_zinteger' together.
4255
4256 2012-07-23 Keith Seitz <keiths@redhat.com>
4257
4258 * linespec.c (convert_linespec_to_sal): Don't add
4259 any symbols to the result vector if symbol_to_sal
4260 returns zero.
4261
4262 2012-07-23 Keith Seitz <keiths@redhat.com>
4263
4264 * linespec.c (decode_objc): Record the function name
4265 in the linespec.
4266
4267 2012-07-23 Tom Tromey <tromey@redhat.com>
4268
4269 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4270 counting.
4271 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4272 (map_vmap): Acquire a reference to the BFD.
4273
4274 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4275
4276 * p-valprint.c (pascal_object_print_value): Replace potentially
4277 unsafe alloca with xmalloc/xfree.
4278 * valops.c (search_struct_method): Likewise.
4279
4280 2012-07-23 Tom Tromey <tromey@redhat.com>
4281
4282 * solib-svr4.c (enable_break): Update.
4283 * bfd-target.h (target_bfd_reopen): Update documentation.
4284
4285 2012-07-23 Tom Tromey <tromey@redhat.com>
4286
4287 * symfile.c (separate_debug_file_exists): Update.
4288 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4289 (reread_symbols): Update.
4290 * elfread.c (build_id_verify): Update.
4291 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4292 bfd_open_maybe_remote.
4293
4294 2012-07-23 Tom Tromey <tromey@redhat.com>
4295
4296 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4297
4298 2012-07-23 Tom Tromey <tromey@redhat.com>
4299
4300 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4301 and 'abfd'.
4302 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4303 and 'abfd'.
4304 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4305 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4306 'abfd'.
4307 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4308 * objfiles.c (allocate_objfile): Acquire a new reference.
4309 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4310 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4311 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4312 a cleanup for 'nbfd'.
4313 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4314 for 'nbfd'.
4315 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4316 make a cleanup for 'abfd'.
4317 (symbol_file_add): Make a BFD cleanup.
4318
4319 2012-07-23 Tom Tromey <tromey@redhat.com>
4320
4321 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4322 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4323 * corelow.c (core_open): Use gdb_bfd_fopen.
4324 * dsrec.c (load_srec): Use gdb_bfd_openr.
4325 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4326 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4327 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4328 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4329 (gdb_bfd_fdopenr): New functions.
4330 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4331 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4332 (gdb_bfd_fdopenr): Declare.
4333 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4334 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4335 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4336 gdb_bfd_openr_next_archived_file.
4337 (macho_check_dsym): Use gdb_bfd_openr.
4338 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4339 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4340 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4341 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4342 gdb_bfd_openr.
4343 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4344 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4345 gdb_bfd_openr_next_archived_file.
4346 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4347 Use gdb_bfd_openr.
4348 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4349 gdb_bfd_openr.
4350 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4351 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4352 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4353 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4354 (symfile_bfd_open): Use gdb_bfd_fopen.
4355 (generic_load): Use gdb_bfd_openr.
4356 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4357
4358 2012-07-23 Tom Tromey <tromey@redhat.com>
4359
4360 * bfd-target.c (target_bfd_reopen): Update.
4361 * cli/cli-dump.c (bfd_openr_with_cleanup)
4362 (bfd_openw_with_cleanup): Update.
4363 * corelow.c (core_open): Update.
4364 * dsrec.c (load_srec): Update.
4365 * exec.c (exec_file_attach): Update.
4366 * gcore.c (create_gcore_bfd): Update.
4367 * gdb_bfd.c (gdb_bfd_ref): Return void.
4368 (gdb_bfd_open): Update.
4369 * gdb_bfd.h (gdb_bfd_ref): Return void.
4370 Update comments.
4371 * jit.c (jit_bfd_try_read_symtab): Update.
4372 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4373 * machoread.c (macho_symfile_read_all_oso): Update.
4374 (macho_check_dsym): Update.
4375 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4376 * remote-m32r-sdi.c (m32r_load): Update.
4377 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4378 * rs6000-nat.c (add_vmap): Update.
4379 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4380 Update.
4381 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4382 * solib-spu.c (spu_bfd_open): Update.
4383 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4384 * spu-linux-nat.c (spu_bfd_open): Update.
4385 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4386 (generic_load): Update.
4387 * windows-nat.c (windows_make_so): Update.
4388
4389 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4390
4391 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4392
4393 2012-07-20 Jeff Kenton <jkenton@tilera.com>
4394
4395 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4396 SIGTRAMP_FRAME unwinding.
4397
4398 2012-07-20 Doug Evans <dje@google.com>
4399
4400 * NEWS: Document new options "set/show use-deprecated-index-sections",
4401 and delete reference to --use-deprecated-index-sections.
4402 * symfile.h (use_deprecated_index_sections): Delete.
4403 * dwarf2read.c (use_deprecated_index_sections): Make static.
4404 (read_index_from_section): Update wording of how to load
4405 deprecated index sections.
4406 (_initialize_dwarf2_read): New options
4407 "set/show use-deprecated-index-sections".
4408 * main.c (captured_main): Delete --use-deprecated-index-sections.
4409
4410 2012-07-20 Pedro Alves <palves@redhat.com>
4411
4412 PR threads/11692
4413 PR gdb/12203
4414
4415 * infrun.c (handle_inferior_event) <new thread>: Don't special
4416 case minus_one_ptid.
4417 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4418 * linux-thread-db.c (thread_get_info_callback): Don't return early
4419 if the thread is zombie.
4420 (thread_from_lwp): Change return type to void. Rewrite stale
4421 comment.
4422 (attach_thread): Don't return early if the thread is zombie,
4423 instead set its "dying" flag.
4424 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4425 (find_new_threads_callback): Don't return early if the thread is
4426 zombie.
4427
4428 2012-07-20 Pedro Alves <palves@redhat.com>
4429
4430 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4431 * target.c (target_wait): Likewise.
4432 (str_comma_list_concat_elem, do_option, target_options_to_string):
4433 New functions.
4434 * target.h (target_options_to_string): Declare.
4435
4436 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4437 Tom Tromey <tromey@redhat.com>
4438
4439 * dwarf2read.c (dwarf_decode_macros)
4440 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4441 DW_MACRO_GNU_transparent_include_alt>: New cases.
4442 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4443 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4444
4445 2012-07-20 Tom Tromey <tromey@redhat.com>
4446
4447 * dwarf2read.c (try_open_dwo_file): Don't call
4448 gdb_bfd_stash_filename.
4449
4450 2012-07-20 Pedro Alves <palves@redhat.com>
4451
4452 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4453 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4454 (i386_process_record): Tweak description comments.
4455
4456 2012-07-20 Pedro Alves <palves@redhat.com>
4457
4458 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4459 (i386_process_record): Use record_read_memory.
4460 * record.c (record_read_memory): New function.
4461 (record_arch_list_add_mem, record_exec_insn): Use
4462 record_read_memory.
4463 * record.h (record_read_memory): Declare.
4464
4465 2012-07-20 Yao Qi <yao@codesourcery.com>
4466
4467 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4468 NULL for xfree.
4469
4470 2012-07-19 Pedro Alves <palves@redhat.com>
4471
4472 * record.c (record_resume): Ask the target beneath to report all
4473 signals.
4474
4475 2012-07-19 Doug Evans <dje@google.com>
4476
4477 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4478 there's no section at address zero.
4479 (dwarf2_record_block_ranges): Ditto.
4480
4481 2012-07-19 Yao Qi <yao@codesourcery.com>
4482
4483 * command.h, remote.c: Fix a typo in comment.
4484
4485 2012-07-19 Tom Tromey <tromey@redhat.com>
4486
4487 PR exp/13206:
4488 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4489 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4490 OP_DECLTYPE>: New cases.
4491 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4492 (type_exp): Add new productions.
4493 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4494 and decltype.
4495 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4496 New case.
4497 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4498 OP_DECLTYPE>: New case.
4499 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4500 New case.
4501 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4502 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4503
4504 2012-07-19 Tom Tromey <tromey@redhat.com>
4505
4506 * c-exp.y (enum token_flags): New.
4507 (struct token) <cxx_only>: Remove.
4508 <flags>: New field.
4509 (tokentab3, tokentab2, ident_tokens): Update.
4510 (lex_one_token): Update. Handle FLAG_SHADOW.
4511
4512 2012-07-19 Tom Tromey <tromey@redhat.com>
4513
4514 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4515 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4516 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4517 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4518 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4519 type_exp production where appropriate.
4520 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4521 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4522 <UNOP_MEMVAL_TYPE>: New case.
4523 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4524 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4525 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4526 <UNOP_MEMVAL_TYPE>: New case.
4527 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4528 UNOP_REINTERPRET_CAST>: Update.
4529 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4530 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4531 UNOP_REINTERPRET_CAST>: Update.
4532 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4533 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4534 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4535 constants.
4536
4537 2012-07-19 Yao Qi <yao@codesourcery.com>
4538 Jan Kratochvil <jan.kratochvil@redhat.com>
4539
4540 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4541 and case 'var_optional_filename' together.
4542 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4543 instead of add_setshow_optional_filename_cmd for setshow command
4544 'args'. Set completer for 'set args'.
4545
4546 2012-07-18 Doug Evans <dje@google.com>
4547
4548 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4549 * common/gdb_vecs.c: New file, contents from utils.c.
4550 * common/host-defs.h: New file, contents from defs.h.
4551 * utils.h: New file, contents from defs.h.
4552 * defs.h: Move all declarations of objects defined in utils.c
4553 to utils.h (except QUIT() and related).
4554 #include "utils.h", "host-defs.h".
4555 * probe.h (probe_p): Move here from gdb_vecs.h.
4556 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4557 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4558 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4559 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4560 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4561 (COMMON_OBS): Add gdb_vecs.o.
4562 (gdb_vecs.o): New rule.
4563
4564 2012-07-18 Keith Seitz <keiths@redhat.com>
4565
4566 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4567 parameter. If non-zero, use SYMNAME as the canonical name
4568 for the SaL.
4569 Update all callers.
4570 (convert_linespec_to_sals): Use add_sal_to_sals for
4571 expressions, too.
4572 (decode_line_full): No need to "fill in missing canonical names"
4573 anymore. Simply make cleanups for the allocated names.
4574
4575 2012-07-18 Keith Seitz <keiths@redhat.com>
4576
4577 * linespec.c (struct linespec): Constify expression,
4578 source_filename, function_name, and label_name.
4579 (symbol_not_found_error): Make all parameters const.
4580 (linespec_parser_delete): No need to check for NULL
4581 when using xfree. Cast const char * to char * for xfree.
4582
4583 2012-07-18 Keith Seitz <keiths@redhat.com>
4584
4585 * breakpoint.c (invalid_thread_id_error): New function.
4586 (find_condition_and_thread): Use invalid_thread_id_error.
4587 (watch_command_1): Likewise.
4588
4589 2012-07-18 Tom Tromey <tromey@redhat.com>
4590
4591 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4592 * contrib/cc-with-tweaks.sh: New file.
4593
4594 2012-07-18 Tom Tromey <tromey@redhat.com>
4595
4596 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4597 (locate_dwz_sections): Recognize .gdb_index.
4598 (create_cus_from_index_list): New function.
4599 (create_cus_from_index): Use it. Handle .dwz data.
4600 (read_index_from_section): New function, extracted from
4601 dwarf2_read_index.
4602 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4603 if needed.
4604
4605 2012-07-18 Tom Tromey <tromey@redhat.com>
4606
4607 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4608 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4609 <is_dwz>: New field.
4610 (struct dwz_file): New.
4611 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4612 (locate_dwz_sections, dwarf2_get_dwz_file)
4613 (get_abbrev_section_for_cu): New functions.
4614 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4615 (read_and_check_type_unit_head): Add abbrev_section argument.
4616 (create_debug_types_hash_table): Update.
4617 (init_cutu_and_read_dies): Use proper abbrev section.
4618 (init_cutu_and_read_dies_no_follow): Likewise.
4619 (set_partial_user): Do nothing if PST==NULL.
4620 (read_comp_units_from_section): New function.
4621 (create_all_comp_units): Use it.
4622 (scan_partial_symbols, partial_die_parent_scope): Update.
4623 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4624 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4625 (find_partial_die): Add offset_in_dwz argument. Update.
4626 (guess_partial_die_structure_name, fixup_partial_die): Update.
4627 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4628 DW_FORM_GNU_strp_alt.
4629 (read_indirect_string_from_dwz): New function.
4630 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4631 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4632 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4633 (follow_die_offset): Add offset_in_dwz argument.
4634 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4635 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4636 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4637 Handle new macro forms.
4638 (dwarf_decode_macros): Update.
4639 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4640 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4641 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4642 (create_debug_types_hash_table): Use correct abbrev section.
4643 (get_debug_line_section): New function.
4644 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4645 (process_full_comp_unit): Pass 'required' argument to
4646 end_symtab_get_static_block.
4647 * buildsym.h (end_symtab_get_static_block): Update.
4648 * buildsym.c (end_symtab_get_static_block): Add 'required'
4649 argument.
4650 (end_symtab, end_expandable_symtab): Update.
4651
4652 2012-07-18 Tom Tromey <tromey@redhat.com>
4653
4654 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4655 (pagesize): Remove.
4656 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4657 (zlib_decompress_section): Remove.
4658 (dwarf2_read_section): Use gdb_bfd_map_section.
4659 (munmap_section_buffer): Remove.
4660 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4661 munmap_section_buffer.
4662 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4663 (struct gdb_bfd_section_data): New.
4664 (free_one_bfd_section): New function.
4665 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4666 (get_section_descriptor, zlib_decompress_section)
4667 (gdb_bfd_map_section): New functions.
4668 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4669
4670 2012-07-18 Tom Tromey <tromey@redhat.com>
4671
4672 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4673
4674 2012-07-18 Tom Tromey <tromey@redhat.com>
4675
4676 * gdb_bfd.c (struct gdb_bfd_data): New.
4677 (gdb_bfd_cache): New global.
4678 (struct gdb_bfd_cache_search): New.
4679 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4680 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4681 * gdb_bfd.h (gdb_bfd_open): Declare.
4682
4683 2012-07-18 Tom Tromey <tromey@redhat.com>
4684
4685 * utils.c (make_cleanup_bfd_unref): Rename from
4686 make_cleanup_bfd_close.
4687 * defs.h (make_cleanup_bfd_unref): Rename from
4688 make_cleanup_bfd_close.
4689 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4690 (bfd_openw_with_cleanup): Update.
4691 * corelow.c (core_open): Update.
4692 * dsrec.c (load_srec): Update.
4693 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4694 * remote-m32r-sdi.c (m32r_load): Update.
4695 * remote-mips.c (mips_load_srec): Update.
4696 (pmon_load_fast): Update.
4697 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4698 Update.
4699 (darwin_bfd_open): Update.
4700 * solib.c (solib_bfd_fopen): Update.
4701 * symfile-mem.c (symbol_file_add_from_memory): Update.
4702 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4703 (symfile_bfd_open): Update.
4704 (generic_load): Update.
4705
4706 2012-07-18 Tom Tromey <tromey@redhat.com>
4707
4708 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4709 (pmon_load_fast): Likewise.
4710 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4711 (m32r_upload_command): Likewise.
4712 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4713 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4714 Use make_cleanup_bfd_close.
4715
4716 2012-07-18 Tom Tromey <tromey@redhat.com>
4717
4718 * symfile.c (symfile_bfd_open): Don't copy name. Call
4719 gdb_bfd_stash_filename.
4720 (load_command): Open the new BFD before freeing the old.
4721 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4722 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4723 Call gdb_bfd_stash_filename.
4724 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4725 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4726 gdb_bfd_stash_filename.
4727 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4728 Free found_pathname.
4729 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4730 gdb_bfd_stash_filename.
4731 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4732 * machoread.c (macho_add_oso_symfile): Call
4733 gdb_bfd_stash_filename.
4734 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4735 gdb_bfd_stash_filename.
4736 (macho_check_dsym): Don't copy filename. Call
4737 gdb_bfd_stash_filename.
4738 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4739 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4740 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4741 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4742 * exec.c (exec_close): Don't free the BFD's filename.
4743 (exec_file_attach): Don't copy the filename. Call
4744 gdb_bfd_stash_filename.
4745 * corelow.c (core_close): Don't free the BFD's filename.
4746 (core_open): Call gdb_bfd_stash_filename.
4747 * corefile.c (reopen_exec_file): Remove #if 0 code.
4748 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4749 pathname.
4750 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4751
4752 2012-07-18 Tom Tromey <tromey@redhat.com>
4753
4754 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4755 gdb_bfd_unref.
4756 (free_dwo_file): Use gdb_bfd_unref.
4757 * cli/cli-dump.c: Include gdb_bfd.h.
4758 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4759 (bfd_openr_with_cleanup): Likewise.
4760 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4761 gdb_bfd_unref.
4762 * utils.c: Include gdb_bfd.h.
4763 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4764 * symfile.c: Include gdb_bfd.h.
4765 (separate_debug_file_exists): Use gdb_bfd_unref.
4766 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4767 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4768 (generic_load): Use gdb_bfd_ref.
4769 (reread_symbols): Use gdb_bfd_unref.
4770 * symfile-mem.c: Include gdb_bfd.h.
4771 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4772 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4773 * solib.c: Include gdb_bfd.h.
4774 (solib_bfd_fopen): Use gdb_bfd_ref.
4775 (solib_bfd_open): Use gdb_bfd_unref.
4776 (free_so_symbols): Use gdb_bfd_unref.
4777 (reload_shared_libraries_1): Use gdb_bfd_unref.
4778 * solib-spu.c: Include gdb_bfd.h.
4779 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4780 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4781 gdb_bfd_unref.
4782 * solib-frv.c: Include gdb_bfd.h.
4783 (enable_break2): Use gdb_bfd_unref.
4784 * solib-dsbt.c: Include gdb_bfd.h.
4785 (enable_break2): Use gdb_bfd_unref.
4786 * solib-darwin.c: Include gdb_bfd.h.
4787 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4788 gdb_bfd_unref.
4789 (darwin_bfd_open): Use gdb_bfd_unref.
4790 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4791 * remote-mips.c: Include gdb_bfd.h.
4792 (mips_load_srec): Use gdb_bfd_ref.
4793 (pmon_load_fast): Use gdb_bfd_ref.
4794 * remote-m32r-sdi.c: Include gdb_bfd.h.
4795 (m32r_load): Use gdb_bfd_ref.
4796 * record.c: Include gdb_bfd.h.
4797 (record_save_cleanups): Use gdb_bfd_unref.
4798 (cmd_record_save): Use gdb_bfd_unref.
4799 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4800 gdb_bfd_unref.
4801 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4802 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4803 * objfiles.c: Include gdb_bfd.h.
4804 (free_objfile): Use gdb_bfd_unref.
4805 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4806 gdb_bfd.c.
4807 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4808 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4809 (macho_check_dsym): Likewise.
4810 * m32r-rom.c: Include gdb_bfd.h.
4811 (m32r_load): Use gdb_bfd_ref.
4812 (m32r_upload_command): Use gdb_bfd_ref.
4813 * jit.c: Include gdb_bfd.h.
4814 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4815 * gdb_bfd.h: New file.
4816 * gdb_bfd.c: New file.
4817 * gcore.c: Include gdb_bfd.h.
4818 (create_gcore_bfd): Use gdb_bfd_ref.
4819 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4820 (gcore_command): Use gdb_bfd_unref.
4821 * exec.c: Include gdb_bfd.h.
4822 (exec_close): Use gdb_bfd_unref.
4823 (exec_close_1): Use gdb_bfd_unref.
4824 (exec_file_attach): Use gdb_bfd_ref.
4825 * elfread.c: Include gdb_bfd.h.
4826 (build_id_verify): Use gdb_bfd_unref.
4827 * dsrec.c: Include gdb_bfd.h.
4828 (load_srec): Use gdb_bfd_ref.
4829 * corelow.c: Include gdb_bfd.h.
4830 (core_close): Use gdb_bfd_unref.
4831 (core_open): Use gdb_bfd_ref.
4832 * bfd-target.c: Include gdb_bfd.h.
4833 (target_bfd_xclose): Use gdb_bfd_unref.
4834 (target_bfd_reopen): Use gdb_bfd_ref.
4835 * Makefile.in (SFILES): Add gdb_bfd.c.
4836 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4837 (COMMON_OBS): Add gdb_bfd.o.
4838
4839 2012-07-18 Keith Seitz <keiths@redhat.com>
4840
4841 * breakpoint.c (find_condition_and_thread): Initialize
4842 TASK and REST.
4843 (create_breakpiont): find_condition_and_thread will now
4844 initialize COND_STRING, THREAD, and REST (and TASK).
4845 (addr_string_to_sals): Likewise.
4846
4847 2012-07-18 Pedro Alves <palves@redhat.com>
4848
4849 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4850 Pull the single step breakpoints out of the target.
4851
4852 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4853
4854 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4855 * stap-probe.c (compile_probe_arg): Likewise.
4856
4857 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4858
4859 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4860 (elf_compile_to_ax): Likewise.
4861 * infrun.c (insert_exception_resume_from_probe): Likewise.
4862 (check_exception_resume): Remove `objfile' variable.
4863 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4864 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4865 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4866 (compare_entries): Rename to...
4867 (compare_probes): ...this. Adjust function to work with
4868 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4869 respectively.
4870 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4871 `VEC (probe_p) *'.
4872 (print_ui_out_info): Adjust argument to be `struct probe *'.
4873 (info_probes_for_ops): Adjust internal computations to use
4874 `VEC (probe_p) *'.
4875 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4876 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4877 gen_info_probes_table_values>: Remove `objfile' argument.
4878 (struct probe) <objfile>: New field.
4879 (find_probe_by_pc): Remove `objfile' argument.
4880 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4881 (stap_get_probe_argument_count): Likewise.
4882 (stap_get_arg): Likewise.
4883 (stap_evaluate_probe_argument): Likewise.
4884 (stap_compile_to_ax): Likewise.
4885 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4886 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4887 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4888 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4889 sym_compile_to_ax>: Likewise.
4890
4891 2012-07-18 Terry Guo <terry.guo@arm.com>
4892
4893 PR 14329
4894 * defs.h (GDB_MI_MSG_WIDTH): New.
4895 * ser_base (ser_base_read_error_fd): New function.
4896 (do_ser_base_readchar): Poll error file descriptor as well as
4897 standard output.
4898 (generic_readchar): Refactor error handling.
4899
4900 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4901
4902 * NEWS: Create a new section for the next release branch.
4903 Rename the section of the current branch, now that it has
4904 been cut.
4905
4906 2012-07-18 Joel Brobecker <brobecker@adacore.com>
4907
4908 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4909 * version.in: Bump version to 7.5.50.20120718-cvs.
4910
4911 2012-07-17 Keith Seitz <keiths@redhat.com>
4912
4913 * linespec.c (linespec_parse_line_offset): Make parameter
4914 const.
4915
4916 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4917
4918 PR 11914
4919 * f-valprint.c (info_common_command): New variable frame_id.
4920 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4921 * printcmd.c (print_variable_and_value): Extend function comment.
4922 Add comment for invalidated FRAME.
4923 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4924 FI form FRAME_ID after each print_frame_local_vars.
4925 (struct print_variable_and_value_data): Change frame to frame_id.
4926 (do_print_variable_and_value): New variable frame, initialize it from
4927 p->frame_id. Add comment for invalidated FRAME.
4928 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4929 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4930 for invalidated FRAME.
4931
4932 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4933 Pedro Alves <palves@redhat.com>
4934
4935 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4936 loop.
4937
4938 2012-07-16 Tom Tromey <tromey@redhat.com>
4939
4940 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4941
4942 2012-07-15 Doug Evans <dje@google.com>
4943
4944 * dwarf2read.c (stmt_list_hash): New struct.
4945 (type_unit_group): Embed "per_cu" member, remove pointer.
4946 New union member "t", move member "tus" into it, all uses updated.
4947 New member "hash", replaces member "line_offset, all uses updated.
4948 (quick_file_names): Replace member "offset" with "hash", all uses
4949 updated.
4950 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4951 (hash_file_name_entry, eq_file_name_entry): Call them.
4952 (hash_type_unit_group, eq_type_unit_group): Ditto.
4953 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4954 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4955 (dw2_get_file_names): Update.
4956 (create_type_unit_group): Replace "per_cu" arg with "cu".
4957 All callers updated. Fix "quick" (.gdb_index) handling.
4958 (get_type_unit_group): Replace "per_cu" arg with "cu".
4959 All callers updated.
4960 (build_type_unit_groups): Don't reset tu_stats.
4961
4962 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4963 "tab_cur_size". Change member "tab" to be a htab_t.
4964 (create_filename_seen_cache): Update.
4965 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4966 (filename_seen): Update.
4967
4968 2012-07-13 Doug Evans <dje@google.com>
4969
4970 * symtab.c (filename_seen): Update comment.
4971
4972 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4973 Doug Evans <dje@google.com>
4974
4975 * buildsym.c (end_symtab_1): Split it to ...
4976 (end_symtab_get_static_block): ... this ...
4977 (end_symtab_from_static_block): ... and this function.
4978 (end_symtab, end_expandable_symtab): Call them.
4979 * buildsym.h (end_symtab_get_static_block)
4980 (end_symtab_from_static_block): New declarations.
4981 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4982 Set its valid CU ranges.
4983
4984 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4985
4986 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4987 DW_OP_GNU_parameter_ref.
4988
4989 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4990
4991 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4992 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4993
4994 2012-07-13 Doug Evans <dje@google.com>
4995
4996 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4997 (filename_seen_cache): New struct.
4998 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4999 (create_filename_seen_cache): New function.
5000 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
5001 (filename_seen): Delete arg "first". New arg "cache". All callers
5002 updated.
5003 (output_source_filename_data): New struct.
5004 (output_source_filename): Delete arg "first". New arg "data".
5005 All callers updated.
5006 (sources_info): Delete local "first". New locals "data", "cleanups".
5007 Rewrite to use filename_seen_cache.
5008 (add_partial_filename_data): Delete member "first". New member
5009 "filename_seen_cache". All uses updated.
5010 (make_source_files_completion_list): Rewrite to use
5011 filename_seen_cache.
5012
5013 2012-07-12 Doug Evans <dje@google.com>
5014
5015 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
5016
5017 2012-07-10 Doug Evans <dje@google.com>
5018
5019 PR gdb/13498
5020 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
5021 all_type_unit_groups, type_unit_groups, tu_stats.
5022 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
5023 All uses updated. Add type_unit_group to union "s".
5024 (type_unit_group): New struct.
5025 (IS_TYPE_UNIT_GROUP): New macro.
5026 (abbrev_table): Delete unused member "section".
5027 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
5028 (dw2_get_cu): Assert not used with type_unit_group.
5029 (dw2_get_primary_cu): New function.
5030 (dw2_build_type_unit_groups_reader): New function.
5031 (dw2_build_type_unit_groups): New function.
5032 (dw2_get_file_names): Assert not called on type units.
5033 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
5034 Redo loop to iterate over type unit groups instead of type units.
5035 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
5036 (read_abbrev_offset): New function.
5037 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
5038 updated.
5039 (create_partial_symtab): New function.
5040 (process_psymtab_comp_unit_reader): Assert not used with type units.
5041 Call create_partial_symtab.
5042 (process_psymtab_type_unit): Delete.
5043 (hash_type_unit_group, eq_type_unit_group): New functions.
5044 (allocate_type_unit_groups_table): New function.
5045 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
5046 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
5047 (create_type_unit_group, get_type_unit_group): New functions.
5048 (tu_abbrev_offset): New struct.
5049 (sort_tu_by_abbrev_offset): New function.
5050 (add_type_unit_group_to_table): New function.
5051 (build_type_unit_groups): New function.
5052 (build_type_psymtabs_reader): New function.
5053 (build_type_psymtab_dependencies): New function.
5054 (build_type_psymtabs): Rewrite.
5055 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
5056 is seen in a type unit.
5057 (process_queue): Move symtab expansion debugging printfs here.
5058 Call process_full_type_unit for type units.
5059 (compute_symtab_includes): Assert not called for type units.
5060 (process_cu_includes): Don't call compute_symtab_includes for
5061 type units.
5062 (process_full_type_unit): New function.
5063 (process_imported_unit_die): Flag an error if called for type units.
5064 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
5065 updated. Assert not called for type units.
5066 (read_file_scope): Call dwarf2_start_symtab.
5067 (setup_type_unit_groups): New function.
5068 (read_type_unit_scope): Rewrite.
5069 (abbrev_table_read_table): Initialize abbrev_table->offset.
5070 (abbrev_table_free_cleanup): New function.
5071 (dwarf2_start_symtab): New function.
5072 (load_full_type_unit): Assert not called for type unit groups.
5073 * buildsym.c (finish_block_internal): New arg "expandable".
5074 All callers updated.
5075 (start_symtab): Move most contents to ...
5076 (restart_symtab): ... here. New function.
5077 (reset_symtab_globals): New function.
5078 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
5079 Call reset_symtab_globals.
5080 (end_symtab, end_expandable_symtab): New functions.
5081 (set_missing_symtab, augment_type_symtab): New functions.
5082 * buildsym.h (end_expandable_symtab): Declare.
5083 (augment_type_symtab, restart_symtab): Declare.
5084 * psympriv.h (struct partial_symtab): New member "anonymous".
5085 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
5086 anonymous psymtabs.
5087 (read_psymtabs_with_filename): Ditto.
5088 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5089 (expand_symtabs_matching_via_partial): Ditto.
5090 (dump_psymtab): Update.
5091 * dictionary.c (dict_add_pending): New function.
5092 * dictionary.h (dict_add_pending): Declare.
5093
5094 2012-07-09 Doug Evans <dje@google.com>
5095
5096 * buildsym.c (start_subfile): Remove unnecessary check for
5097 name == NULL.
5098
5099 * psymtab.c (allocate_psymtab): Use host_address_to_string.
5100
5101 * dwarf2read.c (load_full_type_unit): Simplify.
5102
5103 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5104 to struct signatured_type **. All uses updated.
5105
5106 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5107 All callers updated.
5108
5109 2012-07-09 Tom Tromey <tromey@redhat.com>
5110
5111 * c-exp.y (check_parameter_typelist): New function.
5112 (parameter_typelist): Call it.
5113 * eval.c (make_params): Handle '(void)' case.
5114 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5115 '(void)' case.
5116
5117 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5118
5119 * common/linux-ptrace.c: Include gdb_assert.h.
5120 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5121 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5122 stdint.h.
5123 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5124 functions.
5125 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5126 * linux-nat.c (linux_child_post_attach)
5127 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5128
5129 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5130
5131 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5132 nptl <2.7 bug workaround for core files.
5133
5134 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5135
5136 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5137 clearing.
5138 (save_siginfo): Remove.
5139 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5140 call.
5141 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5142 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5143 * linux-nat.h (struct lwp_info): Remove field siginfo.
5144
5145 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5146
5147 Code cleanup for the next patch.
5148 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5149 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5150 call for it.
5151 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5152 (ia64_linux_stopped_data_address):
5153 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5154 the return value.
5155 * linux-nat.h (linux_nat_get_siginfo): Likewise.
5156 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5157 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5158 call for it.
5159
5160 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5161
5162 PR 14321
5163 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5164 Increase buffer sizes to 2x we need, not just 2x of the previous size.
5165
5166 2012-07-06 Tom Tromey <tromey@redhat.com>
5167
5168 * c-exp.y (DOTDOTDOT): New token.
5169 (func_mod, exp): Use parameter_typelist.
5170 (parameter_typelist): New production.
5171 (tokentab3): Add "..." token.
5172 * eval.c (make_params): Handle varargs.
5173 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5174 varargs.
5175
5176 2012-07-06 Tom Tromey <tromey@redhat.com>
5177
5178 PR exp/9608:
5179 * c-exp.y (%union) <tvec>: Change type.
5180 (func_mod): Now uses <tvec> type.
5181 (exp): Update for tvec change.
5182 (direct_abs_decl): Push the typelist.
5183 (func_mod): Return a typelist.
5184 (nonempty_typelist): Update for tvec change.
5185 * gdbtypes.c (lookup_function_type_with_arguments): New function.
5186 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5187 * parse.c (pop_type_list): New function.
5188 (push_typelist): New function.
5189 (follow_types): Handle tp_function_with_arguments.
5190 * parser-defs.h (type_ptr): New typedef. Define a VEC.
5191 (enum type_pieces) <tp_function_with_arguments>: New constant.
5192 (union type_stack_elt) <typelist_val>: New field.
5193 (push_typelist): Declare.
5194
5195 2012-07-06 Tom Tromey <tromey@redhat.com>
5196
5197 * c-exp.y (%union) <type_stack>: New field.
5198 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5199 (ptr_operator_ts): New production.
5200 (ptype): Update.
5201 * parse.c (type_stack_reserve): New function.
5202 (check_type_stack_depth): Use it.
5203 (pop_type_stack, append_type_stack, push_type_stack)
5204 (get_type_stack, type_stack_cleanup): New functions.
5205 (follow_types): Handle tp_type_stack.
5206 (_initialize_parse): Simplify initialization.
5207 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5208 constant.
5209 (union type_stack_elt) <stack_val>: New field.
5210 (get_type_stack, append_type_stack, push_type_stack)
5211 (type_stack_cleanup): Declare.
5212
5213 2012-07-06 Tom Tromey <tromey@redhat.com>
5214
5215 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5216 Remove.
5217 (struct type_stack): New.
5218 * parse.c (type_stack, type_stack_size, type_stack_depth):
5219 Remove.
5220 (type_stack): New global.
5221 (parse_exp_in_context, check_type_stack_depth)
5222 (insert_into_type_stack, insert_type, push_type, push_type_int)
5223 (insert_type_address_space, pop_type, pop_type_int)
5224 (_initialize_parse): Update.
5225
5226 2012-07-06 Tom Tromey <tromey@redhat.com>
5227
5228 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5229 Remove %type.
5230
5231 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5232
5233 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5234
5235 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5236 Jan Kratochvil <jan.kratochvil@redhat.com>
5237
5238 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5239 alloca with xmalloc/xfree.
5240
5241 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5242
5243 * MAINTAINERS (Write After Approval): Add myself to the list.
5244
5245 2012-07-05 Doug Evans <dje@google.com>
5246
5247 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5248
5249 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5250
5251 * ax-gdb.c (cli/cli-utils.h): New include.
5252 (linespec.h): Ditto.
5253 (agent_eval_command_one): New function.
5254 (agent_command_1): Ditto.
5255 (agent_command): Call function agent_command_1.
5256 (agent_eval_command): Ditto.
5257 (_initialize_ax_gdb): Change help for "maint agent"
5258 and "maint agent-eval".
5259
5260 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
5261
5262 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5263 * cli/cli-utils.c (check_for_argument): New function.
5264 * cli/cli-utils.h (check_for_argument): Ditto.
5265
5266 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5267
5268 * NEWS: Mention x32 ABI support.
5269
5270 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5271
5272 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5273 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5274
5275 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5276 and pc_regnum_from_eax to -1. Update SP regnum from
5277 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5278 needed.
5279
5280 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5281 pc_regnum_from_eax.
5282
5283 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5284
5285 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5286 * dwarf2expr.h: Include gdbtypes.h.
5287 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5288 these forward declarations.
5289 (cu_offset, sect_offset): Move these ...
5290 * gdbtypes.h: Remove include dwarf2expr.h.
5291 (cu_offset, sect_offset): ... here.
5292
5293 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5294
5295 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5296 (amd64_linux_sigtramp_code): This.
5297 (amd64_x32_linux_sigtramp_code): New.
5298 (LINUX_SIGTRAMP_LEN): Updated.
5299 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5300
5301 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5302
5303 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5304
5305 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5306
5307 * config.in: Regenerate.
5308 * configure: Regenerate.
5309 * configure.ac: Remove check for gnu/libc-version.h.
5310 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5311 gnu/libc-version.h.
5312 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5313 variables libc_version, libc_major and libc_minor. Replace sscanf by
5314 inferior_has_bug. Extend the comment.
5315
5316 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5317
5318 * linux-thread-db.c (inferior_has_bug): New function.
5319 (thread_db_find_new_threads_silently): Return boolean as checked by
5320 inferior_has_bug, describe it in the comments.
5321 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5322 earlier. Abort the initialization if it returned non-zero.
5323 (thread_db_new_objfile): Exclude debug files.
5324 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5325 if UNTIL_NO_NEW,
5326
5327 2012-07-02 Doug Evans <dje@google.com>
5328
5329 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5330 related to queue management.
5331
5332 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5333 instead of "debug dwarf2-die" in debugging printfs.
5334 (create_debug_info_hash_table_reader): Ditto.
5335 (create_debug_info_hash_table): Ditto.
5336 (init_dwo_file): Ditto.
5337 (init_cutu_and_read_dies): Add debugging printf.
5338 (init_cutu_and_read_dies_no_follow): Ditto.
5339 (process_psymtab_comp_unit_reader): Ditto.
5340
5341 2012-07-02 Stan Shebs <stan@codesourcery.com>
5342
5343 Add target-side support for dynamic printf.
5344 * NEWS: Mention the additional style.
5345 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5346 (struct bp_location): New field cmd_bytecode.
5347 * breakpoint.c: Include format.h.
5348 (disconnected_dprintf): New global.
5349 (parse_cmd_to_aexpr): New function.
5350 (build_target_command_list): New function.
5351 (insert_bp_location): Call it.
5352 (remove_breakpoints_pid): Skip dprintf breakpoints.
5353 (print_one_breakpoint_location): Ditto.
5354 (dprintf_style_agent): New global.
5355 (dprintf_style_enums): Add dprintf_style_agent.
5356 (update_dprintf_command_list): Add agent case.
5357 (agent_printf_command): New function.
5358 (_initialize_breakpoint): Add new commands.
5359 * common/ax.def (printf): New bytecode.
5360 * ax.h (ax_string): Declare.
5361 * ax-gdb.h (gen_printf): Declare.
5362 * ax-gdb.c: Include cli-utils.h, format.h.
5363 (gen_printf): New function.
5364 (maint_agent_print_command): New function.
5365 (_initialize_ax_gdb): Add maint agent-printf command.
5366 * ax-general.c (ax_string): New function.
5367 (ax_print): Add printf disassembly.
5368 * Makefile.in (SFILES): Add format.c
5369 (COMMON_OBS): Add format.o.
5370 * common/format.h: New file.
5371 * common/format.c: New file.
5372 * printcmd.c: Include format.h.
5373 (ui_printf): Call parse_format_string.
5374 * remote.c (remote_state): New field breakpoint_commands.
5375 (PACKET_BreakpointCommands): New enum.
5376 (remote_breakpoint_commands_feature): New function.
5377 (remote_protocol_features): Add new BreakpointCommands entry.
5378 (remote_can_run_breakpoint_commands): New function.
5379 (remote_add_target_side_commands): New function.
5380 (remote_insert_breakpoint): Call it.
5381 (remote_insert_hw_breakpoint): Ditto.
5382 (_initialize_remote): Add new packet configuration for
5383 target-side breakpoint commands.
5384 * target.h (struct target_ops): New field
5385 to_can_run_breakpoint_commands.
5386 (target_can_run_breakpoint_commands): New macro.
5387 * target.c (update_current_target): Handle
5388 to_can_run_breakpoint_commands.
5389
5390 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5391
5392 Execute -ix and -iex only after system and user gdbinit files.
5393 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5394 processing down after gdbinit files.
5395
5396 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5397
5398 Add fnmatch-gnu module.
5399 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5400 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5401 * gnulib/aclocal.m4: Regenerate.
5402 * gnulib/config.in: Regenerate.
5403 * gnulib/configure: Regenerate.
5404 * gnulib/import/dummy.c: Remove.
5405 * gnulib/import/Makefile.am: Regenerate.
5406 * gnulib/import/Makefile.in: Likewise.
5407 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5408 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5409 * gnulib/import/alloca.c: New file.
5410 * gnulib/import/alloca.in.h: Likewise.
5411 * gnulib/import/config.charset: Likewise.
5412 * gnulib/import/fnmatch.c: Likewise.
5413 * gnulib/import/fnmatch.in.h: Likewise.
5414 * gnulib/import/fnmatch_loop.c: Likewise.
5415 * gnulib/import/localcharset.c: Likewise.
5416 * gnulib/import/localcharset.h: Likewise.
5417 * gnulib/import/m4/alloca.m4: Likewise.
5418 * gnulib/import/m4/codeset.m4: Likewise.
5419 * gnulib/import/m4/configmake.m4: Likewise.
5420 * gnulib/import/m4/fcntl-o.m4: Likewise.
5421 * gnulib/import/m4/fnmatch.m4: Likewise.
5422 * gnulib/import/m4/glibc21.m4: Likewise.
5423 * gnulib/import/m4/localcharset.m4: Likewise.
5424 * gnulib/import/m4/locale-fr.m4: Likewise.
5425 * gnulib/import/m4/locale-ja.m4: Likewise.
5426 * gnulib/import/m4/locale-zh.m4: Likewise.
5427 * gnulib/import/m4/mbrtowc.m4: Likewise.
5428 * gnulib/import/m4/mbsinit.m4: Likewise.
5429 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5430 * gnulib/import/m4/mbstate_t.m4: Likewise.
5431 * gnulib/import/m4/stdbool.m4: Likewise.
5432 * gnulib/import/m4/wchar_h.m4: Likewise.
5433 * gnulib/import/m4/wctype_h.m4: Likewise.
5434 * gnulib/import/m4/wint_t.m4: Likewise.
5435 * gnulib/import/mbrtowc.c: Likewise.
5436 * gnulib/import/mbsinit.c: Likewise.
5437 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5438 * gnulib/import/mbsrtowcs-state.c: Likewise.
5439 * gnulib/import/mbsrtowcs.c: Likewise.
5440 * gnulib/import/ref-add.sin: Likewise.
5441 * gnulib/import/ref-del.sin: Likewise.
5442 * gnulib/import/stdbool.in.h: Likewise.
5443 * gnulib/import/streq.h: Likewise.
5444 * gnulib/import/strnlen1.c: Likewise.
5445 * gnulib/import/strnlen1.h: Likewise.
5446 * gnulib/import/verify.h: Likewise.
5447 * gnulib/import/wchar.in.h: Likewise.
5448 * gnulib/import/wctype.in.h: Likewise.
5449
5450 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5451
5452 Support shell wildcards for 'set auto-load safe-path'.
5453 * auto-load.c: Include fnmatch.h.
5454 (filename_is_in_dir): Rename to ...
5455 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5456 it. Update function comment. Rename dir_len to pattern_len. New
5457 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5458 messages. Use gdb_filename_fnmatch.
5459 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5460 pattern.
5461 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5462 * defs.h (gdb_filename_fnmatch): New declaration.
5463 * utils.c: Include fnmatch.h.
5464 (gdb_filename_fnmatch): New function.
5465
5466 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5467
5468 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5469 `-probe' and `-probe-stap' options.
5470
5471 2012-07-01 Yao Qi <yao@codesourcery.com>
5472
5473 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5474 always_inserted_off, and always_inserted_enums.
5475 Change always_inserted_mode's type to 'enum auto_boolean'.
5476 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5477 callers.
5478 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5479 of add_setshow_enum_cmd.
5480 * infrun.c: Remove can_use_displaced_stepping_auto,
5481 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5482 can_use_displaced_stepping_enum.
5483 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
5484 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5485 callers.
5486 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5487 add_setshow_enum_cmd.
5488
5489 2012-06-30 Doug Evans <dje@google.com>
5490
5491 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5492 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5493 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5494
5495 2012-06-29 Doug Evans <dje@google.com>
5496
5497 * linespec.c: #include "stack.h".
5498 (decode_line_with_current_source): Moved here from symtab.c and
5499 renamed from decode_line_spec. All callers updated.
5500 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5501 renamed from decode_line_spec_1. All callers updated.
5502 * linespec.h (decode_line_with_current_source): Move declaration here
5503 from symtab.h and renamed from decode_line_spec.
5504 (decode_line_with_last_displayed): Move declaration here from symtab.h
5505 and renamed from decode_line_spec_1.
5506 * macrocmd.c: #include "linespec.h".
5507 * symtab.c: Remove #include "linespec.h".
5508
5509 2012-06-28 Doug Evans <dje@google.com>
5510
5511 * dwarf2read.c (get_cu_length): New function.
5512 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5513 (create_debug_types_hash_table): Ditto.
5514 (init_cutu_and_read_dies): Ditto.
5515 (init_cutu_and_read_dies_no_follow): Ditto.
5516
5517 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5518
5519 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5520 (struct abbrev_table): Define.
5521 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5522 abbrev_table.
5523 (init_cutu_and_read_dies): Update.
5524 (abbrev_table_alloc_abbrev): New function. Replaces
5525 dwarf_alloc_abbrev. All callers updated.
5526 (abbrev_table_add_abbrev): New function.
5527 (abbrev_table_lookup_abbrev): New function. Replaces
5528 dwarf2_lookup_abbrev. All callers updated.
5529 (abbrev_table_read_table): New function. Contents moved here from
5530 dwarf2_read_abbrevs.
5531 (dwarf2_read_abbrevs): Call it.
5532 (abbrev_table_free): New function.
5533 (dwarf2_free_abbrev_table): Call it.
5534
5535 2012-06-28 Stan Shebs <stan@codesourcery.com>
5536
5537 * osdata.c (info_osdata_command): Filter out "Title" columns
5538 from non-MI uses.
5539 * common/linux-osdata.c (struct osdata_type): Add title field.
5540 (osdata_table): Add titles to each entry.
5541 (linux_command_xfer_osdata): Add a column for title data.
5542
5543 2012-06-28 Stan Shebs <stan@codesourcery.com>
5544
5545 Make logging work for MI.
5546 * NEWS: Mention it.
5547 * interps.h (interp_set_logging_ftype): New typedef.
5548 (struct interp_procs): New field set_logging_proc.
5549 (current_interp_set_logging): Declare.
5550 * interps.c (current_interp_set_logging): New function.
5551 * cli/cli-logging.c: Include interps.h.
5552 (set_logging_redirect): Call current_interp_set_logging.
5553 (pop_output_files): Ditto.
5554 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5555 * mi/mi-console.h (mi_console_set_raw): Declare.
5556 * mi/mi-console.c (mi_console_set_raw): New function.
5557 * mi/mi-interp.c (saved_raw_stdout): New global.
5558 (mi_set_logging): New function.
5559 (_initialize_mi_interp): Add it to interp procs.
5560
5561 2012-06-28 Doug Evans <dje@google.com>
5562
5563 * symtab.c (lookup_symbol_aux_objfile): Use
5564 ALL_OBJFILE_PRIMARY_SYMTABS.
5565
5566 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5567
5568 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5569
5570 * common/buffer.c: Include inttypes.h and stdint.h.
5571 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5572
5573 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5574 Pedro Alves <palves@redhat.com>
5575
5576 * gdbthread.h (ALL_THREADS): New macro.
5577 (thread_list): Declare.
5578 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5579 going, but instead fall through to the stepping handling.
5580 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5581 the passed in signal. Adjust debug output.
5582 (resume_callback): Rename to ...
5583 (linux_nat_resume_callback): ... this. Pass the thread's last
5584 stop signal, if in "pass" state.
5585 (linux_nat_resume): Adjust to rename.
5586 (stop_wait_callback): New assertion. Don't respawn signals;
5587 instead let the LWP remain with SIGNALLED set.
5588 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5589 * remote.c (append_pending_thread_resumptions): New.
5590 (remote_vcont_resume): Call it.
5591 * target.h (target_resume): Extend comment.
5592
5593 2012-06-28 Iain Sandoe <iain@codesourcery.com>
5594
5595 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5596
5597 2012-06-27 Doug Evans <dje@google.com>
5598
5599 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5600 Delete have_addr_base, unused. All uses updated.
5601 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5602 (dwarf2_get_pc_bounds): Add ranges_base.
5603 (dwarf2_record_block_ranges): Ditto.
5604
5605 2012-06-27 Tom Tromey <tromey@redhat.com>
5606
5607 PR macros/7961:
5608 * varobj.c (varobj_create): Update.
5609 (varobj_set_value): Update.
5610 * tracepoint.c (validate_actionline): Update.
5611 (encode_actions_1): Update.
5612 * parse.c (parse_exp_1): Add 'pc' argument.
5613 (parse_exp_in_context): Add 'pc' argument. Change how
5614 expression_context_pc is set.
5615 (parse_expression): Update.
5616 (parse_field_expression): Update.
5617 * expression.h (parse_exp_1): Update.
5618 * eval.c (parse_to_comma_and_eval): Update.
5619 * breakpoint.c (set_breakpoint_condition): Update.
5620 (update_watchpoint): Update.
5621 (init_breakpoint_sal): Update
5622 (find_condition_and_thread): Update.
5623 (watch_command_1): Update.
5624 (update_breakpoint_locations): Update.
5625 * ada-lang.c (ada_read_renaming_var_value): Update.
5626 (create_excep_cond_exprs): Update.
5627
5628 2012-06-27 Doug Evans <dje@google.com>
5629
5630 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5631 type units.
5632
5633 2012-06-26 Doug Evans <dje@google.com>
5634
5635 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5636 prototype.
5637 (error_check_comp_unit_head): New arg abbrev_section. All callers
5638 updated.
5639 (read_and_check_comp_unit_head): Ditto.
5640 (read_and_check_type_unit_head): Ditto.
5641
5642 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5643
5644 New attribute 'last' for gdb.Symtab_and_line.
5645 * NEWS (Python Scripting): Add entry about the new attribute.
5646 * python/py-symtab.c (salpy_get_last): New function which
5647 implements the get method for the 'last' attribute of
5648 gdb.Symtab_and_line.
5649 (sal_object_getset): Add entry for the 'last' attribute.
5650
5651 2012-06-26 Doug Evans <dje@google.com>
5652
5653 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5654 (dwo_sections): Add macinfo, macro.
5655 (dwarf2_locate_dwo_sections): Watch for macro sections.
5656 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5657 All callers updated. Handle DWO files.
5658
5659 * NEWS: Mention new options "set debug dwarf2-read" and
5660 "set debug symtab-create".
5661 * dwarf2read.c (dwarf2_read_debug): New static global.
5662 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5663 (process_queue): Ditto.
5664 (process_full_comp_unit): Ditto.
5665 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5666 * elfread.c (elf_symfile_read): Add debugging printf.
5667 * minsyms.c (install_minimal_symbols): Ditto.
5668 * psymtab.c (allocate_psymtab): Ditto.
5669 * symfile.c (allocate_symtab): Ditto.
5670 * symtab.c (symtab_create_debug): New global.
5671 (_initialize_symtab): Add new option "set debug symtab-create".
5672 * symtab.h (symtab_create_debug): Declare.
5673
5674 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5675 (lookup_dwo_type_unit): Ditto.
5676
5677 2012-06-26 Roland McGrath <roland@hack.frob.com>
5678 H.J. Lu <hongjiu.lu@intel.com>
5679
5680 * amd64-linux-nat.c: Include <sys/user.h>.
5681 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5682 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5683 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5684
5685 * configure.ac: Check if the fs_base and gs_base members of
5686 `struct user_regs_struct' exist.
5687 * config.in: Regenerated.
5688 * configure: Likewise.
5689
5690 2012-06-25 Michael Eager <eager@eagercon.com>
5691
5692 PR python/14291
5693 * python/python.c (gdbpy_write): Check for interrupted output.
5694
5695 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5696
5697 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5698 register as a stack alignment in ARM mode.
5699
5700 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5701
5702 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5703 * gnulib/config.in: Regenerate.
5704 * gnulib/configure: Likewise.
5705 * gnulib/import/m4/extensions.m4: Update it.
5706 * gnulib/import/m4/gnulib-common.m4: Likewise.
5707 * gnulib/import/m4/memmem.m4: Likewise.
5708 * gnulib/import/m4/mmap-anon.m4: Likewise.
5709 * gnulib/import/m4/multiarch.m4: Likewise.
5710 * gnulib/import/stdint.in.h: Likewise.
5711
5712 2012-06-24 Yao Qi <yao@codesourcery.com>
5713
5714 * corefile.c (write_memory_with_notification): New.
5715 * gdbcore.h: Declare write_memory_with_notification.
5716 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5717 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5718 * valops.c (value_assign): Likewise.
5719 * python/py-inferior.c (infpy_write_memory): Call
5720 'write_memory_with_notification'.
5721
5722 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5723
5724 * cc-with-index.sh: Use also -ex "set auto-load no".
5725
5726 2012-06-23 Doug Evans <dje@google.com>
5727
5728 PR 14125
5729 * NEWS: Document additions to .gdb_index.
5730 * dwarf2read.c: #include "gdb/gdb-index.h".
5731 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5732 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5733 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5734 (dwarf2_read_index): Recognize version 7.
5735 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5736 block_kind, domain): All callers updated.
5737 (dw2_find_symbol_file): Handle new index CU values.
5738 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5739 (add_index_entry): New args is_static, kind. All callers updated.
5740 (offset_type_compare, uniquify_cu_indices): New functions
5741 (symbol_kind): New function.
5742 (write_psymtabs_to_index): Remove duplicate CU values.
5743 (write_psymtabs_to_index): Write .gdb_index version 7.
5744
5745 2012-06-22 Joel Brobecker <brobecker@adacore.com>
5746
5747 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5748 * configure: Regenerate.
5749
5750 2012-06-20 Yao Qi <yao@codesourcery.com>
5751
5752 * python/py-inferior.c: Update comments of infpy_read_memory
5753 and infpy_write_memory.
5754
5755 2012-06-19 Tom Tromey <tromey@redhat.com>
5756
5757 PR exp/9514:
5758 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5759 (push_type_address_space): Remove.
5760 * parse.c (insert_into_type_stack): New function.
5761 (insert_type): Likewise.
5762 (insert_type_address_space): Rename from push_type_address_space.
5763 Insert tp_space_identifier.
5764 * c-exp.y (ptr_operator): New production.
5765 (abs_decl): Use ptr_operator.
5766 (space_identifier): Call insert_type_address_space.
5767 (ptype): Don't use const_or_volatile_or_space_identifier.
5768 (const_or_volatile_noopt): Call insert_type.
5769 (conversion_type_id, conversion_declarator): New productions.
5770 (operator): Use conversion_type_id.
5771
5772 2012-06-18 Doug Evans <dje@google.com>
5773
5774 * symtab.h (minimal_symbol): New member created_by_gdb.
5775 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5776 created by gdb.
5777 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5778 (search_symbols): Call it instead of lookup_symbol.
5779 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5780
5781 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5782 Adjust address for DW_OP_GNU_addr_index.
5783 * dwarf2expr.h (dwarf_expr_context): Update comment.
5784 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5785 all callers updated. Handle TLS vars described with
5786 DW_OP_GNU_const_index.
5787 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5788 and DW_OP_GNU_const_index.
5789 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5790
5791 * block.c (find_block_in_blockvector): Make explicit the fact that we
5792 ignore GLOBAL_BLOCK.
5793
5794 2012-06-18 Tom Tromey <tromey@redhat.com>
5795
5796 * c-exp.y (operator): Remove trailing space after "delete" and
5797 "delete[]".
5798
5799 2012-06-18 Mark Kettenis <kettenis@gnu.org>
5800 Jan Kratochvil <jan.kratochvil@redhat.com>
5801
5802 Switch i386 and derived targets to ON_STACK.
5803 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5804 (amd64_dicos_init_abi): Remove its installment.
5805 * dicos-tdep.c (dicos_init_abi): Remove the
5806 set_gdbarch_call_dummy_location call. Update the comment here.
5807 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5808 (i386_dicos_init_abi): Remove its installment.
5809 * i386-tdep.c (i386_push_dummy_code): New function.
5810 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5811 i386_push_dummy_code.
5812
5813 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5814
5815 Remove stale dummy frames.
5816 * breakpoint.c: Include dummy-frame.h.
5817 (longjmp_breakpoint_ops): New variable.
5818 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5819 bp_longjmp_call_dummy.
5820 (bpstat_what, bptype_string, print_one_breakpoint_location)
5821 (init_bp_location): Support bp_longjmp_call_dummy.
5822 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5823 (set_longjmp_breakpoint_for_call_dummy)
5824 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5825 functions.
5826 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5827 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5828 FIXME comment and extend the other comment for bp_call_dummy.
5829 (set_longjmp_breakpoint_for_call_dummy)
5830 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5831 * dummy-frame.c: Include gdbthread.h.
5832 (pop_dummy_frame_bpt): New function.
5833 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5834 (dummy_frame_discard): New function.
5835 (cleanup_dummy_frames): Update the comment about longjmps.
5836 * dummy-frame.h (dummy_frame_discard): New declaration.
5837 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5838 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5839 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5840 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5841 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5842 keep_going if IS_LONGJMP and there is no other reason to stop.
5843
5844 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5845
5846 * remote-sim.c (sim_command_completer): Initialize
5847 variable 'result'.
5848
5849 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5850
5851 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5852 * dwarf2loc.c (call_site_parameter_matches): Support
5853 CALL_SITE_PARAMETER_PARAM_OFFSET.
5854 (needs_dwarf_reg_entry_value): Push stub value.
5855 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5856 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5857 * gdbtypes.h (enum call_site_parameter_kind): New item
5858 CALL_SITE_PARAMETER_PARAM_OFFSET.
5859 (struct call_site.parameter.u): New field param_offset.
5860
5861 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5862
5863 Code cleanup: Generalize call_site.parameter key.
5864 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5865 variable dwarf_reg. New variable kind_u. Update parameters to
5866 push_dwarf_reg_entry_value.
5867 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5868 * dwarf2expr.h (enum call_site_parameter_kind)
5869 (union call_site_parameter_u): Forward declarations.
5870 (struct dwarf_expr_context_funcs): Update parameters and their
5871 description for push_dwarf_reg_entry_value.
5872 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5873 * dwarf2loc.c (call_site_parameter_matches): New function.
5874 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5875 description. Use call_site_parameter_matches.
5876 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5877 Update parameters and their description.
5878 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5879 New variable kind_u. Adjust the caller for updated parameters.
5880 (needs_dwarf_reg_entry_value): Update parameters.
5881 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5882 instead of attr. Update for the changed fields of struct
5883 call_site_parameter.
5884 * gdbtypes.h: Include dwarf2expr.h.
5885 (enum call_site_parameter_kind): New.
5886 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5887 fb_offset into new union u.
5888
5889 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5890
5891 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5892 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5893 for x32.
5894
5895 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5896
5897 * amd64-linux-nat.c (compat_x32_clock_t): New.
5898 (compat_x32_siginfo_t): Likewise.
5899 (compat_x32_siginfo_from_siginfo): Likewise.
5900 (siginfo_from_compat_x32_siginfo): Likewise.
5901 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5902 and siginfo_from_compat_x32_siginfo for x32.
5903
5904 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
5905
5906 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5907
5908 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5909
5910 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5911 instead of gdbarch_ptr_bit.
5912 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5913 (amd64_supply_native_gregset): Likewise.
5914 (amd64_collect_native_gregset): Likewise.
5915 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5916 (amd64_supply_xsave): Likewise.
5917 (amd64_collect_fxsave): Likewise.
5918 (amd64_collect_xsave): Likewise.
5919
5920 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5921
5922 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5923 (amd64_linux_read_description): Check DS segment register for
5924 x32 process.
5925
5926 2012-06-15 Tom Tromey <tromey@redhat.com>
5927
5928 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5929 init_cutu_and_read_dies.
5930
5931 2012-06-15 Iain Sandoe <iain@codesourcery.com>
5932
5933 * MAINTAINERS (Write After Approval): Add myself to the list.
5934
5935 2012-06-15 Tom Tromey <tromey@redhat.com>
5936
5937 * valops.c (value_find_oload_method_list): Now static.
5938 * value.h (value_find_oload_method_list): Don't declare.
5939
5940 2012-06-15 Tom Tromey <tromey@redhat.com>
5941
5942 * valops.c (find_overload_match): Use value_ind.
5943
5944 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5945
5946 * infrun.c (handle_inferior_event): Correct indentation.
5947
5948 2012-06-14 Doug Evans <dje@google.com>
5949
5950 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5951 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5952 All uses updated.
5953 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5954 updated. Handle DEBUG_LOC_START_LENGTH.
5955 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5956 (loclist_describe_location): Ditto.
5957
5958 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5959
5960 PR backtrace/13866
5961 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5962 after hiding inline functions.
5963
5964 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5965
5966 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5967 _initialize_inf_ttrace.
5968
5969 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5970
5971 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5972 _initialize_hppa_hpux_nat.
5973
5974 2012-06-13 Joel Brobecker <brobecker@adacore.com>
5975
5976 * remote-sim.c (sim_command_completer): Change type of return
5977 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5978
5979 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5980 Jan Kratochvil <jan.kratochvil@redhat.com>
5981
5982 PR tdep/14222
5983 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5984 stack on a 16-byte boundary.
5985
5986 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5987
5988 * jit.c (finalize_symtab): Set function's return type to 'void' by
5989 default.
5990
5991 2012-06-13 Mark Kettenis <kettenis@gnu.org>
5992 H.J. Lu <hongjiu.lu@intel.com>
5993
5994 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5995 Move bits common to both the classic LP64 and the new x32 ILP32
5996 ABI here.
5997 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5998 (amd64_x32_linux_init_abi): New function.
5999 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
6000 subtype.
6001
6002 * i386-tdep.h (i386_pseudo_register_name): New prototype.
6003 * i386-tdep.c (i386_pseudo_register_name): Make public.
6004 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
6005 * amd64-tdep.c (amd64_dword_names): Add "eip".
6006 (amd64_x32_pseudo_register_type): New function
6007 (amd64_x32_init_abi): New function.
6008
6009 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6010
6011 PR build/14003
6012 * inferior.h (struct inferior_suspend_state): Comment out.
6013 (struct inferior): Comment out the field suspend.
6014 * infrun.c (struct infcall_suspend_state): Comment out the field
6015 inferior_suspend.
6016 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
6017 out its assignment.
6018
6019 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6020
6021 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
6022 * c-exp.y (classify_inner_name): Remove caller assumptions in the
6023 function comment. Return ERROR for unresolved cases. Implement
6024 returning proper NAME.
6025 (yylex): Accept also NAME from classify_inner_name.
6026 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
6027 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
6028 LOC_TYPEDEF type.
6029 * cp-support.h (cp_lookup_nested_type): Update its declaration.
6030
6031 2012-06-13 Tom Tromey <tromey@redhat.com>
6032
6033 * breakpoint.c (condition_completer): New function.
6034 (_initialize_breakpoint): Use it.
6035 * value.c (complete_internalvar): New function.
6036 * value.h (complete_internalvar): Declare.
6037
6038 2012-06-13 Tom Tromey <tromey@redhat.com>
6039
6040 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
6041 * breakpoint.c (catch_syscall_completer): Return a VEC.
6042 * cli/cli-cmds.c (complete_command): Update.
6043 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
6044 (complete_on_enum): Likewise.
6045 * command.h: Include gdb_vecs.h.
6046 (completer_ftype): Change return type.
6047 (complete_on_cmdlist, complete_on_enum): Likewise.
6048 * completer.c (noop_completer, filename_completer)
6049 (location_completer): Return a VEC.
6050 (add_struct_fields): Remove 'nextp' argument. Change 'output'
6051 to a VEC.
6052 (expression_completer, complete_line_internal, complete_line)
6053 (command_completer): Return a VEC.
6054 (gdb_completion_word_break_characters, line_completion_function):
6055 Update.
6056 * completer.h: Include gdb_vecs.h.
6057 (complete_line, noop_completer, filename_completer)
6058 (expression_completer, location_completer, command_completer):
6059 Update.
6060 * f-lang.c (f_word_break_characters): Return a VEC.
6061 * interps.c (interpreter_completer): Return a VEC.
6062 * language.h (struct language_defn)
6063 <la_make_symbol_completion_list>: Return a VEC.
6064 * python/py-cmd.c (cmdpy_completer): Return a VEC.
6065 * symtab.c (free_completion_list): Take a VEC.
6066 (return_val_size, return_val_index): Remove.
6067 (return_val): Now a VEC.
6068 (completion_list_add_name): Update.
6069 (default_make_symbol_completion_list_break_on)
6070 (default_make_symbol_completion_list, make_symbol_completion_list)
6071 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
6072 Return a VEC.
6073 (add_filename_to_list): Update.
6074 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
6075 <list>: Now a VEC.
6076 (maybe_add_partial_symtab_filename): Update.
6077 (make_source_files_completion_list): Return a VEC.
6078 * symtab.h (default_make_symbol_completion_list_break_on)
6079 (default_make_symbol_completion_list, make_symbol_completion_list)
6080 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
6081 (make_source_files_completion_list): Update.
6082
6083 2012-06-13 Tom Tromey <tromey@redhat.com>
6084
6085 * breakpoint.c (add_catch_command): Use completer_ftype.
6086 * breakpoint.h: Include command.h.
6087 (add_catch_command): Use completer_ftype.
6088 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6089 * cli/cli-decode.h (struct cmd_list_element) <completer>:
6090 Use completer_ftype.
6091 * command.h (completer_ftype): New typedef.
6092 (set_cmd_completer): Use it.
6093 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6094 completer_ftype.
6095
6096 2012-06-13 Pedro Alves <palves@redhat.com>
6097
6098 Partial revert of previous change.
6099
6100 * serial.c (scb_base): New global.
6101 (serial_for_fd): New.
6102 (serial_open, serial_fdopen_ops): Link new serial in open serials
6103 chain.
6104 (do_serial_close): Unlink serial from the open serials chain.
6105
6106 2012-06-12 Pedro Alves <palves@redhat.com>
6107
6108 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6109 threads here.
6110 (prepare_for_detach): No longer context switch here in non-stop
6111 mode.
6112 (fetch_inferior_event): Ditto.
6113 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6114 to the event thread before removing breakpoints. Switch to the
6115 event thread before inserting breakpoints and resuming.
6116 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6117 event thread before resuming.
6118 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6119 Switch to the event thread before removing breakpoints.
6120
6121 2012-06-12 Eli Zaretskii <eliz@gnu.org>
6122
6123 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6124 special characters correctly for the Windows shells. See
6125 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6126 report.
6127 [!__MINGW32__]: Remove extra double quote character from special
6128 characters.
6129
6130 2012-06-11 Stan Shebs <stan@codesourcery.com>
6131
6132 * ui-out.h: Remove #if 0 declarations.
6133 * ui-out.c: Remove #if 0 functions.
6134
6135 2012-06-11 Pedro Alves <palves@redhat.com>
6136
6137 * ser-base.c (run_async_handler_and_reschedule): New.
6138 (fd_event, push_event): Use it.
6139 * serial.c (serial_open, serial_fdopen_ops): Set the initial
6140 reference count to 1.
6141 (do_serial_close): Set the bufp field to NULL. Use serial_unref
6142 instead of xfree.
6143 (serial_is_open, serial_ref, serial_unref): New.
6144 * serial.h (serial_open): Adjust comment.
6145 (serial_is_open): Declare.
6146 (serial_close): Adjust comment.
6147 (serial_ref, serial_unref) Declare.
6148 (struct serial): New field 'refcnt'.
6149
6150 2012-06-11 Pedro Alves <palves@redhat.com>
6151
6152 Remove #if 0'd "connect" command, and unnecessary associated
6153 refcounting and serial reuse bits.
6154
6155 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6156 * serial.c (last_serial_opened): Delete.
6157 (scb_base): Delete.
6158 (serial_open): Adjust.
6159 (serial_for_fd): Delete.
6160 (serial_fdopen_ops, do_serial_close): Adjust.
6161 (serial_fdopen_ops): Adjust.
6162
6163 2012-06-11 Pedro Alves <palves@redhat.com>
6164
6165 * serial.c (do_serial_close): Remove early return when SCB is
6166 null.
6167
6168 2012-06-11 Tom Tromey <tromey@redhat.com>
6169
6170 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6171
6172 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6173
6174 Fix regression by the "ambiguous linespec" series.
6175 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
6176 get_last_displayed_symtab and get_last_displayed_line and depending
6177 on CURSAL.
6178
6179 2012-06-11 Tom Tromey <tromey@redhat.com>
6180
6181 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6182 (dw2_find_symbol_file): Use it.
6183
6184 2012-06-11 Michael Eager <eager@eagercon.com>
6185
6186 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6187 * mips-linux-tdep.h (mips_signals): New
6188
6189 2012-06-11 Tom Tromey <tromey@redhat.com>
6190
6191 * infrun.c (handle_inferior_event)
6192 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6193 breakpoint.
6194 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6195 exception logic in all cases. Update comments.
6196 (insert_longjmp_resume_breakpoint): Set the exception resume
6197 breakpoint.
6198
6199 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
6200
6201 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6202
6203 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
6204
6205 * valarith.c (binop_types_user_defined_p): Fix a typo.
6206
6207 2012-06-08 Yao Qi <yao@codesourcery.com>
6208 Chung-Lin Tang <cltang@codesourcery.com>
6209
6210 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6211 * arch-utils.h: Declare.
6212 * gdbarch.sh: Add return_in_first_hidden_param_p.
6213 * gdbarch.c, gdbarch.h: Regenerated.
6214 * infcall.c (call_function_by_hand): Call
6215 gdbarch_return_in_first_hidden_param_p instead of
6216 language_pass_by_reference.
6217
6218 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6219 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6220 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6221 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6222 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6223 `cplus_return_struct_by_reference'.
6224 (tic6x_return_value): Handle language cplusplus.
6225 (tic6x_return_in_first_hidden_param_p): New.
6226 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6227
6228 2012-06-07 Doug Evans <dje@google.com>
6229
6230 * dwarf2read.c (dwarf2_cu): Add comment.
6231
6232 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6233
6234 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6235 variable.
6236 (mips_eabi_push_dummy_call): Likewise.
6237 (mips_n32n64_push_dummy_call): Likewise.
6238 (mips_o32_push_dummy_call): Likewise.
6239 (mips_o64_push_dummy_call): Likewise.
6240
6241 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6242
6243 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6244
6245 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6246
6247 * mips-tdep.c (mips_pseudo_register_type): Use
6248 mips_float_register_p.
6249
6250 2012-06-06 Pedro Alves <palves@redhat.com>
6251
6252 * infrun.c (handle_inferior_event): Remove calls to
6253 reinit_frame_cache that follow a context_switch call.
6254
6255 2012-06-06 Pedro Alves <palves@redhat.com>
6256
6257 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6258 context_switch and remove stale comment.
6259
6260 2012-06-06 Pedro Alves <palves@redhat.com>
6261
6262 * infrun.c (struct execution_control_state): Remove
6263 `new_thread_event' field.
6264 (handle_inferior_event): Simplify new threads handling; don't
6265 resume the inferior if we find a new thread.
6266
6267 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6268
6269 * NEWS: Document the deprecation of SH's 'regs' command.
6270 * inferior.h (all_registers_info): Add function declaration.
6271 * sh-tdep.c (sh_show_regs): Remove variable.
6272 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6273 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6274 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6275 (sh_show_regs_command): Remove functions.
6276 (sh_gdbarch_init): Don't set sh_show_regs.
6277 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6278 'info all-registers'.
6279 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6280 (sh64_show_regs): Remove functions.
6281 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6282
6283 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6284
6285 * configure.ac: Move development=true below AC_INIT.
6286 * configure: Regenerate.
6287
6288 2012-06-05 Stan Shebs <stan@codesourcery.com>
6289
6290 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6291 gdb_stdout.
6292
6293 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6294
6295 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6296 argument as ssize_t.
6297 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6298 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6299 * target.c (target_read_stack, target_write_memory)
6300 (target_write_raw_memory): Likewise.
6301 * target.h (target_read_stack, target_write_memory)
6302 (target_write_raw_memory): Likewise.
6303
6304 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6305
6306 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6307 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6308 * target.c (target_read_memory): Change LEN to ssize_t.
6309 * target.h (target_read_memory): Change LEN to ssize_t.
6310
6311 2012-06-05 Pedro Alves <palves@redhat.com>
6312
6313 PR backtrace/13866
6314
6315 * breakpoint.c (until_break_command): Only fetch the selected
6316 frame after decode_line_1.
6317
6318 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6319
6320 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6321 event breakpoint at _start, __start or main if a program
6322 interpreter is not found.
6323
6324 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6325
6326 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6327 Add declaration.
6328 * windows-tdep.c: #include "objfiles.h".
6329 (windows_iterate_over_objfiles_in_search_order): New function.
6330 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6331 iterate_over_objfiles_in_search_order gdbarch method to
6332 windows_iterate_over_objfiles_in_search_order.
6333 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6334
6335 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6336
6337 * gdbarch.sh: Add generation of
6338 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6339 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6340 (iterate_over_objfiles_in_search_order): New gdbarch method.
6341 * gdbarch.h, gdbarch.c: Regenerate.
6342 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6343 Add declaration.
6344 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6345 New function.
6346 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6347 out of lookup_symbol_aux_symtabs.
6348 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6349 call to lookup_symbol_aux_objfile.
6350 (struct global_sym_lookup_data): New type.
6351 (lookup_symbol_global_iterator_cb): New function.
6352 (lookup_symbol_global): Search for symbol using
6353 gdbarch_iterate_over_objfiles_in_search_order and
6354 lookup_symbol_global_iterator_cb.
6355 * findvar.c (struct minsym_lookup_data): New type.
6356 (minsym_lookup_iterator_cb): New function.
6357 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6358 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6359 and minsym_lookup_iterator_cb.
6360
6361 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6362
6363 Revert the following patch:
6364 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6365 try locating the symbol in the symbol's own objfile first, before
6366 extending the search to all objfiles.
6367 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6368 out of lookup_symbol_aux_symtabs.
6369 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6370 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6371 Do not search EXCLUDE_OBJFILE.
6372 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6373 (lookup_symbol_global): Search for matches in the block's objfile
6374 first, before searching all other objfiles.
6375
6376 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6377
6378 * breakpoint.c (find_condition_and_thread): Stop parsing
6379 as soon as the first invalid keyword is found.
6380
6381 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6382
6383 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6384
6385 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6386
6387 * config/djgpp/djcheck.sh: Add copyright header.
6388
6389 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6390
6391 * copyright.py (update_files, main): Fix path to update-copyright
6392 script.
6393
6394 2012-06-05 Joel Brobecker <brobecker@adacore.com>
6395
6396 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6397 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6398 for which a reminder to update by hand is printed.
6399
6400 2012-06-04 Doug Evans <dje@google.com>
6401
6402 * buildsym.c (make_blockvector): Add comment.
6403
6404 2012-06-04 Pedro Alves <palves@redhat.com>
6405
6406 * arch-utils.c (default_gdb_signal_from_target): Delete.
6407 * arch-utils.h (default_gdb_signal_from_target): Delete.
6408 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6409 gdbarch_gdb_signal_from_target_p.
6410 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6411 predicate).
6412 * gdbarch.h: Regenerate.
6413 * gdbarch.c: Regenerate.
6414
6415 2012-06-04 Pedro Alves <palves@redhat.com>
6416
6417 * gdbarch.sh (gdb_signal_from_target): Mention that the
6418 implementation of the method must be host independent.
6419 * gdbarch.h: Regenerate.
6420
6421 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6422
6423 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6424 parameters.
6425 (target_read_memory_bfd): New function.
6426 (symbol_file_add_from_memory): Use it.
6427
6428 2012-06-03 Doug Evans <dje@google.com>
6429
6430 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6431 of primary symtab.
6432 (basic_lookup_transparent_type): Ditto.
6433
6434 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6435 (ALL_PRIMARY_SYMTABS): Use it.
6436 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6437 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6438 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6439 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6440 (basic_lookup_transparent_type): Ditto.
6441
6442 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6443
6444 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6445 it to optimize resolution of demangled name.
6446
6447 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6448
6449 * configure.ac (development): Define new variable.
6450 Call AC_CHECK_LIB for mcheck if $development.
6451 (ERROR_ON_WARNING): Enable it by default only if $development.
6452 * config.in: Regenerate.
6453 * configure: Regenerate.
6454
6455 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6456
6457 * target.c (target_read_memory): Make LEN argument as size_t.
6458 * target.h (target_read_memory): Likewise.
6459
6460 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6461
6462 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6463
6464 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6465
6466 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6467 BookE interface for PowerPC server processors if not available
6468 in the Linux Kernel.
6469
6470 2012-05-31 Keith Seitz <keiths@redhat.com>
6471
6472 * linespec.c (decode_objc): Add cleanup to free
6473 INFO.FILE_SYMTABS.
6474 (find_linespec_symbols): Add cleanup to free CLASSES.
6475 * symfile.c (find_separate_debug_file_by_debuglink): Add
6476 cleanup to free DEBUGLINK.
6477 * ui-out.c (clear_header_list): No need to check if
6478 HEADER_NEXT.COLHDR is NULL.
6479 Free HEADER_NEXT.COL_NAME.
6480
6481 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6482
6483 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6484 warning.
6485
6486 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6487
6488 * configure.host (gdb_host_cpu): Handle tilegx*.
6489 (gdb_host): Handle tilegx-*-linux*.
6490 * tilegx-linux-nat.c: New file.
6491 * config/tilegx/linux.mh: New file.
6492
6493 2012-05-30 Jeff Kenton <jkenton@tilera.com>
6494
6495 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6496 tilegx-linux-tdep.o.
6497 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6498 tilegx-linux-tdep.c.
6499 * configure.tgt: Handle tilegx-*-linux*.
6500 * tilegx-tdep.h: New file.
6501 * tilegx-tdep.c: New file.
6502 * tilegx-linux-tdep.c: New file.
6503 * regformats/reg-tilegx.dat: New file.
6504
6505 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6506
6507 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6508 accounting of hw watchpoints on ppc.
6509
6510 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6511
6512 * source.c (openp): Expand tilde in path entries.
6513
6514 2012-05-29 Doug Evans <dje@google.com>
6515
6516 * buildsym.c (block_compar): Fix comment.
6517 (end_symtab): Fix and clarify some comments.
6518
6519 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6520 cleanup_undefined_types.
6521 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6522 All callers updated.
6523
6524 2012-05-29 Tom Tromey <tromey@redhat.com>
6525
6526 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6527 fails.
6528 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6529 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6530 fails.
6531 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6532 fails.
6533
6534 2012-05-29 Tristan Gingold <gingold@adacore.com>
6535
6536 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6537 (struct darwin_info): ... New struct.
6538 (solib_darwin_pspace_data): New variable.
6539 (darwin_pspace_data_cleanup): New function.
6540 (get_darwin_info): Likewise.
6541 (darwin_dyld_version_ok, darwin_load_image_infos)
6542 (darwin_solib_get_all_image_info_addr_at_init)
6543 (darwin_solib_read_all_image_info_addr): Add info argument.
6544 Adjust code.
6545 (darwin_current_sos): Use per pspace structure.
6546 (darwin_solib_create_inferior_hook): Likewise.
6547 (darwin_clear_solib): Likewise.
6548 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6549
6550 2012-05-28 Pedro Alves <palves@redhat.com>
6551
6552 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6553 block that uses them. Clear ecss before handling each event.
6554
6555 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6556
6557 * solib-svr4.c (svr4_current_sos): New comment on
6558 svr4_current_sos_via_xfer_libraries fall back.
6559
6560 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6561
6562 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6563 it as a fallback for TYPE_IS_OPAQUE.
6564 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6565 symbols for lookup_symbol.
6566
6567 2012-05-24 John Steele Scott <toojays@toojays.net>
6568
6569 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6570 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6571 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6572 (check_producer): ... this new function, which also checks for ICC
6573 and caches the result.
6574 (producer_is_icc): New function.
6575 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6576 producer was ICC.
6577
6578 2012-05-24 Pedro Alves <palves@redhat.com>
6579
6580 PR gdb/7205
6581
6582 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6583 (default_gdb_signal_to_target): ... this. Add comment.
6584 (default_gdb_signal_from_host): Rename to ...
6585 (default_gdb_signal_from_target): ... this. Add comment.
6586 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6587 (default_gdb_signal_to_target): ... this.
6588 (default_gdb_signal_from_host): Rename to ...
6589 (default_gdb_signal_from_target): ... this.
6590 * corelow.c (core_open): Adjust to naming change. Replace comment.
6591 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6592 (gdb_signal_from_target): ... this. Adjust to
6593 default_gdb_signal_from_host naming change. Extend comment.
6594 (gdb_signal_to_host): Rename to ...
6595 (gdb_signal_to_target): ... this. Adjust to
6596 default_gdb_signal_to_host naming change.
6597 * gdbarch.h, gdbarch.c: Renegerate.
6598
6599 2012-05-24 Pedro Alves <palves@redhat.com>
6600
6601 PR gdb/7205
6602
6603 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
6604
6605 2012-05-24 Pedro Alves <palves@redhat.com>
6606
6607 PR gdb/7205
6608
6609 Replace target_signal with gdb_signal throughout.
6610
6611 2012-05-24 Pedro Alves <palves@redhat.com>
6612
6613 PR tui/14159
6614
6615 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6616 string, instead of reusing the va_list argument.
6617
6618 2012-05-24 Tom Tromey <tromey@redhat.com>
6619
6620 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6621 Remove.
6622
6623 2012-05-23 Doug Evans <dje@google.com>
6624
6625 * symtab.c (search_symbols): Formatting fixes.
6626 (print_symbol_info): Formatting fixes.
6627
6628 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6629 int64_t change to leb128 API.
6630 (read_encoded_value, decode_frame_entry_1): Ditto.
6631 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6632 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6633 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6634 (execute_stack_op): Ditto.
6635 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6636 (safe_read_uleb128, safe_read_sleb128): Ditto.
6637 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6638 (dwarf2_compile_expr_to_ax): Ditto.
6639 (locexpr_describe_location_piece): Ditto.
6640 (disassemble_dwarf_expression): Ditto.
6641 (locexpr_describe_location_1): Ditto.
6642
6643 2012-05-23 Stan Shebs <stan@codesourcery.com>
6644 Kwok Cheung Yeung <kcy@codesourcery.com>
6645
6646 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6647 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6648 (mi-cmd-info.o): New rule.
6649 * osdata.h (info_osdata_command): New declaration.
6650 * osdata.c (info_osdata_command): Change to non-static.
6651 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6652 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6653 * mi/mi-cmd-info.c: New file.
6654
6655 2012-05-23 Doug Evans <dje@google.com>
6656
6657 * symtab.c (search_symbols): Pass NULL for file_matcher to
6658 expand_symtabs_matching if there are no files to match.
6659
6660 * gdbtypes.c (lookup_typename): Simplify.
6661
6662 2012-05-23 Pedro Alves <palves@redhat.com>
6663
6664 * arch-utils.h (default_target_signal_to_host): Delete.
6665 * arch-utils.c (default_target_signal_to_host): Delete.
6666 * gdbarch.sh (target_signal_to_host): Remove.
6667 * gdbarch.h, gdbarch.c: Regenerate.
6668
6669 2012-05-22 Doug Evans <dje@google.com>
6670
6671 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6672 "const gdb_byte *".
6673 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6674 (execute_cfa_program): Update to match API of leb128 functions.
6675 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6676 "const gdb_byte *".
6677 (read_unsigned_leb128, read_signed_leb128): Delete.
6678 (read_initial_length): Change type of buf argument to
6679 "const gdb_byte *".
6680 (read_encoded_value): Update to match API of leb128 functions.
6681 (decode_frame_entry): Change result to "const gdb_byte *", and
6682 similarly for "start" parameter.
6683 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6684 (dwarf2_build_frame_info): Change local frame_ptr to
6685 "const gdb_byte *".
6686 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6687 read_uleb128, read_sleb128. All callers updated.
6688 (safe_skip_leb128): New function.
6689 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6690 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6691 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6692 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6693 read_uleb128, read_sleb128.
6694 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6695 (execute_stack_op): Update to match API of leb128 functions.
6696 * dwarf2expr.h: #include "leb128.h".
6697 (read_uleb128, read_sleb128): Delete.
6698 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6699 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6700 * dwarf2loc.c (debug_loc_kind): New enum.
6701 (decode_debug_loc_addresses): New function.
6702 (decode_debug_loc_dwo_addresses): New function.
6703 (dwarf2_find_location_expression): Rewrite.
6704 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6705 (locexpr_describe_location_piece): Ditto.
6706 (disassemble_dwarf_expression): Ditto.
6707 (locexpr_describe_location_1): Ditto.
6708 (loclist_describe_location): Rewrite.
6709 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6710 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6711 (dwarf2_section_buffer_overflow_complaint): Renamed from
6712 dwarf2_macros_too_long_complaint. All callers updated.
6713 (skip_leb128): Delete.
6714 (init_cu_die_reader): Initialize reader->buffer_end.
6715 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6716 (skip_form_bytes): New arg buffer_end. All callers updated.
6717 Replace call to skip_leb128 with gdb_skip_leb128.
6718 (skip_unknown_opcode): New arg mac_end. All callers updated.
6719 (fill_in_loclist_baton): Initialize baton->from_dwo.
6720
6721 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6722
6723 * mips-linux-nat.c (mips_linux_read_description): Use a more
6724 verbose error message.
6725
6726 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6727
6728 * NEWS: Add MIPS/Linux DSP support.
6729 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6730 (SIGCONTEXT_DSPCTL): New macro.
6731 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6732 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6733 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6734 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6735 (N64_SIGCONTEXT_HI3): Likewise.
6736 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6737 (N64_SIGCONTEXT_LO3): Likewise.
6738 (N64_SIGCONTEXT_DSPCTL): Likewise.
6739 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6740 (mips_linux_o32_sigframe_init): Handle DSP registers.
6741 (mips_linux_n32n64_sigframe_init): Likewise.
6742
6743 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6744
6745 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6746 call to abort.
6747
6748 2012-05-22 Pedro Alves <palves@redhat.com>
6749
6750 * target.h (store_waitstatus): Move declaration ...
6751 * inf-child.h (store_waitstatus): ... here.
6752 * target.c: Move inclusion of gdb_wait.h, and ...
6753 (store_waitstatus): ... this ...
6754 * inf-child.c: ... here.
6755 * linux-nat.c: Include inf-child.h.
6756 * rs6000-nat.c: Include inf-child.h.
6757 * spu-linux-nat.c: Include inf-child.h.
6758
6759 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6760
6761 * tracepoint.c (start_tracing): Add missing i18n markup.
6762 (stop_tracing, set_trace_user): Ditto.
6763 (set_trace_notes, set_trace_stop_notes): Ditto.
6764
6765 2012-05-21 Tom Tromey <tromey@redhat.com>
6766
6767 PR c++/7173:
6768 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6769 types.
6770 * value.h (value_cast_pointers): Update.
6771 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6772 (value_cast): Update.
6773 (update_search_result): New function.
6774 (do_search_struct_field): New, from search_struct_field. Check
6775 for ambiguous results.
6776 (search_struct_field): Rewrite.
6777 * infcall.c (value_arg_coerce): Update.
6778 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6779 value_cast_pointers.
6780 * ada-lang.c (ada_convert_actual): Update.
6781
6782 2012-05-21 Tom Tromey <tromey@redhat.com>
6783
6784 * macroexp.c (macro_stringify): Terminate the string.
6785
6786 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6787
6788 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6789 Describe it.
6790 * auto-load.c (auto_load_expand_dir_vars): New function.
6791 (auto_load_safe_path_vec_update): Use it, remove the
6792 substitute_path_component call thanks to it.
6793 (auto_load_objfile_script): Remove the debug_file_directory processing.
6794 Use auto_load_expand_dir_vars, remove the substitute_path_component
6795 call thanks to it.
6796 * configure: Regenerate.
6797 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6798 path. Escape $ also for $debugdir.
6799 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6800 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6801
6802 2012-05-20 Doug Evans <dje@google.com>
6803
6804 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6805 before use. Check for symtab->includes == NULL before scanning it.
6806
6807 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6808
6809 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6810
6811 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6812
6813 * NEWS: Add microMIPS support and "set mips compression",
6814 "show mips compression" commands.
6815 * mips-tdep.h (mips_isa): New enum.
6816 (gdbarch_tdep): Add mips_isa.
6817 (mips_pc_is_mips16): Update prototype.
6818 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6819 * mips-tdep.c (mips_compression_mips16): New variable.
6820 (mips_compression_micromips): Likewise.
6821 (mips_compression_strings): Likewise.
6822 (mips_compression_string): Likewise.
6823 (is_mips16_isa, is_micromips_isa): New functions.
6824 (is_mips16_addr): Rename to...
6825 (is_compact_addr): ... this.
6826 (unmake_mips16_addr): Likewise to...
6827 (unmake_compact_addr): ... this.
6828 (make_mips16_addr): Likewise to...
6829 (make_compact_addr): ... this.
6830 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6831 functions.
6832 (mips_elf_make_msymbol_special): Handle microMIPS code.
6833 (msymbol_is_special): Rename to...
6834 (msymbol_is_mips16): ... this.
6835 (mips_make_symbol_special, mips_pc_is_mips16): Update
6836 accordingly.
6837 (msymbol_is_mips, msymbol_is_micromips): New functions.
6838 (mips16_to_32_reg): Rename to...
6839 (mips_reg3_to_reg): ... this.
6840 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6841 (mips_pc_isa): Likewise.
6842 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6843 code.
6844 (mips_fetch_instruction): Pass return status instead of printing
6845 an error message if requested. Handle microMIPS code. Bail out
6846 on an invalid ISA.
6847 (micromips_op): New macro.
6848 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6849 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6850 (b6s4_op, b7s3_reg): Likewise.
6851 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6852 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6853 (mips_insn_size): New function.
6854 (mips32_next_pc): Update mips_fetch_instruction call.
6855 (micromips_relative_offset7): New function.
6856 (micromips_relative_offset10): Likewise.
6857 (micromips_relative_offset16): Likewise.
6858 (micromips_pc_insn_size): Likewise.
6859 (micromips_bc1_pc): Likewise.
6860 (micromips_next_pc): Likewise.
6861 (unpack_mips16): Update mips_fetch_instruction call.
6862 (extended_mips16_next_pc): Update according to change to
6863 mips16_to_32_reg.
6864 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6865 code.
6866 (mips16_scan_prologue): Update mips_fetch_instruction call.
6867 Update according to change to mips16_to_32_reg.
6868 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6869 (mips_insn16_frame_base_sniffer): Likewise.
6870 (micromips_decode_imm9): New function.
6871 (micromips_scan_prologue): Likewise.
6872 (mips_micro_frame_cache): Likewise.
6873 (mips_micro_frame_this_id): Likewise.
6874 (mips_micro_frame_prev_register): Likewise.
6875 (mips_micro_frame_sniffer): Likewise.
6876 (mips_micro_frame_unwind): New variable.
6877 (mips_micro_frame_base_address): New function.
6878 (mips_micro_frame_base): New variable.
6879 (mips_micro_frame_base_sniffer): New function.
6880 (mips32_scan_prologue): Update mips_fetch_instruction call.
6881 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6882 rather than for MIPS16.
6883 (mips_insn32_frame_base_sniffer): Likewise.
6884 (mips_addr_bits_remove): Handle microMIPS code.
6885 (deal_with_atomic_sequence): Rename to...
6886 (mips_deal_with_atomic_sequence): ... this. Update the type
6887 of the variable used to hold an instruction. Remove the ISA bit
6888 check. Update mips_fetch_instruction call.
6889 (micromips_deal_with_atomic_sequence): New function.
6890 (deal_with_atomic_sequence): Likewise.
6891 (mips_about_to_return): Handle microMIPS code. Update
6892 mips_fetch_instruction call.
6893 (heuristic_proc_start): Check for the standard MIPS ISA rather
6894 than for MIPS16. Update mips_pc_is_mips16 and
6895 mips_fetch_instruction calls. Handle microMIPS code.
6896 (mips_push_dummy_code): Handle microMIPS code.
6897 (mips_eabi_push_dummy_call): Likewise.
6898 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6899 (mips_o64_push_dummy_call): Handle microMIPS code.
6900 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6901 (is_delayed): Remove function.
6902 (mips_single_step_through_delay): Replace the call to is_delayed
6903 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6904 Handle microMIPS code.
6905 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6906 microMIPS code.
6907 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6908 call.
6909 (micromips_in_function_epilogue_p): New function.
6910 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6911 call.
6912 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6913 Handle microMIPS.
6914 (gdb_print_insn_mips): Likewise.
6915 (mips_breakpoint_from_pc): Likewise.
6916 (mips_remote_breakpoint_from_pc): New function.
6917 (mips32_instruction_has_delay_slot): Simplify making use of the
6918 updated mips_fetch_instruction interface.
6919 (micromips_instruction_has_delay_slot): New function.
6920 (mips16_instruction_has_delay_slot): Simplify making use of the
6921 updated mips_fetch_instruction interface.
6922 (mips_adjust_breakpoint_address): Check for the standard MIPS
6923 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
6924 calls. Handle microMIPS code.
6925 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6926 (mips_skip_trampoline_code): Handle microMIPS code.
6927 (global_mips_compression): New function.
6928 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6929 file flags. Register the microMIPS remote breakpoint handler
6930 and heuristic frame unwinder.
6931 (show_mips_compression): New function.
6932 (_initialize_mips_tdep): Add the "set mips compression" and
6933 "show mips compression" commands.
6934
6935 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6936
6937 * ada-lang.c:
6938 * ada-tasks.c:
6939 * ada-varobj.c:
6940 * amd64-darwin-tdep.c:
6941 * arm-symbian-tdep.c:
6942 * arm-tdep.c:
6943 * avr-tdep.c:
6944 * ax-gdb.c:
6945 * bfin-linux-tdep.c:
6946 * breakpoint.c:
6947 * c-valprint.c:
6948 * cli/cli-cmds.c:
6949 * coffread.c:
6950 * cp-support.c:
6951 * cris-tdep.c:
6952 * dwarf2-frame-tailcall.c:
6953 * dwarf2-frame.c:
6954 * dwarf2expr.c:
6955 * dwarf2loc.c:
6956 * dwarf2read.c:
6957 * elfread.c:
6958 * eval.c:
6959 * expprint.c:
6960 * f-valprint.c:
6961 * frv-tdep.c:
6962 * h8300-tdep.c:
6963 * hppa-hpux-tdep.c:
6964 * hppa-tdep.c:
6965 * hppanbsd-tdep.c:
6966 * i386-nto-tdep.c:
6967 * i386-tdep.c:
6968 * i387-tdep.c:
6969 * ia64-tdep.c:
6970 * jit.c:
6971 * linespec.c:
6972 * linux-tdep.c:
6973 * lm32-tdep.c:
6974 * m2-valprint.c:
6975 * m32c-tdep.c:
6976 * m32r-rom.c:
6977 * m32r-tdep.c:
6978 * m68k-tdep.c:
6979 * m68klinux-tdep.c:
6980 * mi/mi-main.c:
6981 * microblaze-tdep.c:
6982 * mips-linux-tdep.c:
6983 * mips-tdep.c:
6984 * mn10300-tdep.c:
6985 * p-valprint.c:
6986 * parse.c:
6987 * ppc-linux-tdep.c:
6988 * ppc-sysv-tdep.c:
6989 * printcmd.c:
6990 * python/py-finishbreakpoint.c:
6991 * python/py-inferior.c:
6992 * python/py-infthread.c:
6993 * python/py-type.c:
6994 * python/python.c:
6995 * remote-fileio.c:
6996 * remote-m32r-sdi.c:
6997 * remote-mips.c:
6998 * reverse.c:
6999 * rl78-tdep.c:
7000 * rs6000-aix-tdep.c:
7001 * rs6000-tdep.c:
7002 * s390-tdep.c:
7003 * score-tdep.c:
7004 * sh64-tdep.c:
7005 * skip.c:
7006 * solib-darwin.c:
7007 * solib-dsbt.c:
7008 * solib-frv.c:
7009 * sparc-tdep.c:
7010 * spu-multiarch.c:
7011 * spu-tdep.c:
7012 * stack.c:
7013 * symfile.c:
7014 * symtab.c:
7015 * tic6x-tdep.c:
7016 * tracepoint.c:
7017 * v850-tdep.c:
7018 * valarith.c:
7019 * valprint.c:
7020 * value.c:
7021 * xcoffread.c:
7022 * xtensa-tdep.c:
7023 * ada-lang.c:
7024 * ada-tasks.c:
7025 * ada-varobj.c:
7026 * amd64-darwin-tdep.c:
7027 * arm-symbian-tdep.c:
7028 * arm-tdep.c: Delete unused variables.
7029
7030 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7031
7032 Rename $ddir to $datadir.
7033 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
7034 * auto-load.c (auto_load_safe_path_vec_update)
7035 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
7036 * configure: Regenerate.
7037 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
7038 Likewise. Remove the 'use $ddir' help string.
7039
7040 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7041
7042 * auto-load.c (show_auto_load_safe_path): Accept any combination of
7043 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
7044
7045 2012-05-18 Tom Tromey <tromey@redhat.com>
7046
7047 PR exp/13907:
7048 * valprint.h (struct value_print_options) <symbol_print>: New
7049 field.
7050 * valprint.c (user_print_options): Add default for symbol_print.
7051 (show_symbol_print): New function.
7052 (generic_val_print): Respect symbol_print.
7053 (_initialize_valprint): Add "print symbol" setting.
7054 * f-valprint.c (f_val_print): Respect symbol_print.
7055 * c-valprint.c (c_val_print): Respect symbol_print.
7056 * NEWS: Update.
7057 * printcmd.c (print_address_symbolic): Return int. Ignore some
7058 zero-size symbols.
7059 (print_address_demangle): Return int.
7060 * defs.h: (print_address_symbolic): Return int.
7061 * value.h (print_address_demangle): Return int.
7062
7063 2012-05-18 Tom Tromey <tromey@redhat.com>
7064
7065 * valprint.c (val_print_string): Don't print leading space.
7066 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
7067 print space before string or vtbl.
7068 * m2-valprint.c (print_unpacked_pointer): Optionally print space
7069 before string.
7070 * jv-valprint.c (java_value_print): Print space before string.
7071 * go-valprint.c (print_go_string): Print space before string.
7072 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
7073 space before string.
7074 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
7075 space before string or vtbl.
7076 * auxv.c (fprint_target_auxv): Print space after address.
7077
7078 2012-05-18 Tom Tromey <tromey@redhat.com>
7079
7080 * printcmd.c (print_address_demangle): Remove special case for 0.
7081
7082 2012-05-18 Tom Tromey <tromey@redhat.com>
7083
7084 * printcmd.c (print_address_demangle): Add 'opts' argument.
7085 * p-valprint.c (pascal_val_print): Update.
7086 * jv-valprint.c (java_val_print): Update.
7087 * value.h: Update.
7088 * valprint.c (generic_val_print): Update.
7089 (print_function_pointer_address): Add 'options' argument. Remove
7090 'addressprint' argument. Update.
7091 * m2-valprint.c (print_unpacked_pointer): Update.
7092 * gnu-v3-abi.c (print_one_vtable): Update.
7093 (gnuv3_print_method_ptr): Update.
7094 * f-valprint.c (f_val_print): Update.
7095 * cp-valprint.c (cp_print_value_fields): Update.
7096 * valprint.h (print_function_pointer_address): Update.
7097 * c-valprint.c (c_val_print): Update.
7098
7099 2012-05-18 Tom Tromey <tromey@redhat.com>
7100
7101 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7102 directly corresponding to the found psymtab.
7103 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7104 (dw2_find_pc_sect_symtab): Use it.
7105 * block.h (blockvector_contains_pc): Declare.
7106 * block.c (find_block_in_blockvector): New function.
7107 (blockvector_for_pc_sect): Use it.
7108 (blockvector_contains_pc): New function.
7109
7110 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7111
7112 * mips-tdep.h (mips_write_pc): New prototype.
7113 * mips-tdep.c (mips_write_pc): Make external, add description.
7114 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7115 add description.
7116
7117 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7118
7119 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7120 mips_regnum->pc.
7121 (mips_unwind_pc, mips_write_pc): Likewise.
7122 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7123 gdbarch_read_pc.
7124
7125 2012-05-17 Joel Brobecker <brobecker@adacore.com>
7126
7127 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7128 proc_warn, proc_error, proc_get_status, proc_flags,
7129 proc_why, proc_what, proc_nsysarg, proc_sysargs,
7130 proc_set_run_on_last_close, proc_unset_run_on_last_close,
7131 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7132 proc_stop_process, proc_wait_for_stop, proc_run_process,
7133 proc_set_traced_signals, proc_set_traced_faults,
7134 proc_set_traced_sysentry, proc_set_traced_sysexit,
7135 proc_set_held_signals, proc_get_held_signals,
7136 proc_get_traced_signals, proc_get_traced_faults,
7137 proc_get_traced_sysentry, proc_get_traced_sysexit,
7138 proc_clear_current_fault, proc_set_current_signal,
7139 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7140 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7141 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7142 proc_get_current_thread, proc_get_current_thread,
7143 proc_get_current_thread, proc_update_threads,
7144 proc_update_threads, proc_update_threads, proc_update_threads,
7145 proc_iterate_over_threads, procfs_find_new_threads,
7146 procfs_pid_to_str): Make static. Remove advance declaration.
7147 (proc_cursig): Make static. Conditionalized defintion on
7148 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7149 (proc_syscall, proc_set_kill_on_last_close,
7150 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7151 proc_get_pending_signals, proc_get_signal_actions,
7152 proc_trace_signal, proc_ignore_signal): Delete.
7153
7154 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7155
7156 * coffread.c (cs_section_address): Passing proper argument for
7157 `bfd_get_section_vma'.
7158 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7159 `bfd_get_section_flags'.
7160 * remote.c (remote_trace_set_readonly_regions): Likewise, for
7161 `bfd_get_section_vma'.
7162
7163 2012-05-16 Tom Tromey <tromey@redhat.com>
7164
7165 PR macros/13205:
7166 * macrotab.h: (macro_define_special): Declare.
7167 (enum macro_special_kind): New.
7168 (struct macro_definition) <argc, replacement>: Update comments.
7169 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7170 (macro_define_object_internal): New function.
7171 (macro_define_object): Use it.
7172 (macro_define_special): New function.
7173 (fixup_definition): New function.
7174 (macro_lookup_definition, foreach_macro_in_scope)
7175 (foreach_macro): Use fixup_definition.
7176 * macroexp.h (macro_stringify): Declare.
7177 * macroexp.c (free_buffer_return_text): New function.
7178 (stringify): Constify "arg".
7179 (macro_stringify): New function.
7180 * dwarf2read.c (macro_start_file): Call macro_define_special.
7181
7182 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
7183 Maciej W. Rozycki <macro@mips.com>
7184
7185 * breakpoint.h (bp_location): Add related_address member.
7186 * inferior.h (get_return_value): Take a pointer to struct value
7187 instead of struct type for the function requested.
7188 * value.h (using_struct_return): Likewise.
7189 * gdbarch.sh (return_value): Take a pointer to struct value
7190 instead of struct type for the function requested.
7191 * breakpoint.c (set_breakpoint_location_function): Initialize
7192 related_address for bp_gnu_ifunc_resolver breakpoints.
7193 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7194 requested function's address to gdbarch_return_value.
7195 * eval.c (evaluate_subexp_standard): Pass the requested
7196 function's address to using_struct_return.
7197 * infcall.c (call_function_by_hand): Pass the requested
7198 function's address to using_struct_return and
7199 gdbarch_return_value.
7200 * infcmd.c (get_return_value): Take a pointer to struct value
7201 instead of struct type for the function requested.
7202 (print_return_value): Update accordingly.
7203 (finish_command_continuation): Likewise.
7204 * stack.c (return_command): Pass the requested function's
7205 address to using_struct_return and gdbarch_return_value.
7206 * value.c (using_struct_return): Take a pointer to struct value
7207 instead of struct type for the function requested. Pass the
7208 requested function's address to gdbarch_return_value.
7209 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7210 New function_value member, replacing function_type.
7211 (bpfinishpy_dealloc): Update accordingly.
7212 (bpfinishpy_pre_stop_hook): Likewise.
7213 (bpfinishpy_init): Likewise. Record the requested function's
7214 address.
7215 * mips-tdep.c (mips_fval_reg): New enum.
7216 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7217 words put in GP registers.
7218 (mips_o64_push_dummy_call): Update a comment.
7219 (mips_o32_return_value): Take a pointer to struct value instead
7220 of struct type for the function requested and use it to check if
7221 using the MIPS16 calling convention. Return the designated
7222 general purpose registers for floating-point values returned in
7223 MIPS16 mode.
7224 (mips_o64_return_value): Likewise.
7225 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7226 (ppc_sysv_abi_broken_return_value): Likewise.
7227 (ppc64_sysv_abi_return_value): Likewise.
7228 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7229 value instead of struct type for the function requested.
7230 * amd64-tdep.c (amd64_return_value): Likewise.
7231 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7232 * arm-tdep.c (arm_return_value): Likewise.
7233 * avr-tdep.c (avr_return_value): Likewise.
7234 * bfin-tdep.c (bfin_return_value): Likewise.
7235 * cris-tdep.c (cris_return_value): Likewise.
7236 * frv-tdep.c (frv_return_value): Likewise.
7237 * h8300-tdep.c (h8300_return_value): Likewise.
7238 (h8300h_return_value): Likewise.
7239 * hppa-tdep.c (hppa32_return_value): Likewise.
7240 (hppa64_return_value): Likewise.
7241 * i386-tdep.c (i386_return_value): Likewise.
7242 * ia64-tdep.c (ia64_return_value): Likewise.
7243 * iq2000-tdep.c (iq2000_return_value): Likewise.
7244 * lm32-tdep.c (lm32_return_value): Likewise.
7245 * m32c-tdep.c (m32c_return_value): Likewise.
7246 * m32r-tdep.c (m32r_return_value): Likewise.
7247 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7248 * m68k-tdep.c (m68k_return_value): Likewise.
7249 (m68k_svr4_return_value): Likewise.
7250 * m88k-tdep.c (m88k_return_value): Likewise.
7251 * mep-tdep.c (mep_return_value): Likewise.
7252 * microblaze-tdep.c (microblaze_return_value): Likewise.
7253 * mn10300-tdep.c (mn10300_return_value): Likewise.
7254 * moxie-tdep.c (moxie_return_value): Likewise.
7255 * mt-tdep.c (mt_return_value): Likewise.
7256 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7257 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7258 (ppc_sysv_abi_broken_return_value): Likewise.
7259 (ppc64_sysv_abi_return_value): Likewise.
7260 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7261 * rl78-tdep.c (rl78_return_value): Likewise.
7262 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7263 * rx-tdep.c (rx_return_value): Likewise.
7264 * s390-tdep.c (s390_return_value): Likewise.
7265 * score-tdep.c (score_return_value): Likewise.
7266 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7267 (sh_return_value_fpu): Likewise.
7268 * sh64-tdep.c (sh64_return_value): Likewise.
7269 * sparc-tdep.c (sparc32_return_value): Likewise.
7270 * sparc64-tdep.c (sparc64_return_value): Likewise.
7271 * spu-tdep.c (spu_return_value): Likewise.
7272 * tic6x-tdep.c (tic6x_return_value): Likewise.
7273 * v850-tdep.c (v850_return_value): Likewise.
7274 * vax-tdep.c (vax_return_value): Likewise.
7275 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7276 * xtensa-tdep.c (xtensa_return_value): Likewise.
7277 * gdbarch.c: Regenerate.
7278 * gdbarch.h: Regenerate.
7279
7280 2012-05-15 Tom Tromey <tromey@redhat.com>
7281
7282 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7283
7284 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7285
7286 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7287 of command in two error message.
7288
7289 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7290
7291 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7292
7293 2012-05-15 Joel Brobecker <brobecker@adacore.com>
7294
7295 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7296
7297 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7298
7299 * NEWS (show auto-load scripts-directory): Add forgotten command.
7300
7301 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7302
7303 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7304 parameters.
7305
7306 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7307
7308 * amd64-tdep.c: Include features/i386/x32.c and
7309 features/i386/x32-avx.c.
7310 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7311 initialize_tdesc_x32_avx.
7312
7313 2012-05-14 Stan Shebs <stan@codesourcery.com>
7314
7315 Add dynamic printf.
7316 * breakpoint.h (enum bptype): New type bp_dprintf.
7317 (struct breakpoint): New field extra_string.
7318 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7319 (create_breakpoint): Add extra_string arg.
7320 * breakpoint.c (dprintf_breakpoint_ops): New.
7321 (is_breakpoint): Add bp_dprintf.
7322 (bpstat_what): Add dprintf case.
7323 (bptype_string): Ditto.
7324 (print_one_breakpoint_location): Ditto.
7325 (init_bp_location): Ditto.
7326 (bkpt_print_mention): Ditto.
7327 (dprintf_style_enums): New array.
7328 (dprintf_style): New global.
7329 (dprintf_function): New global.
7330 (dprintf_channel): New global.
7331 (update_dprintf_command_list): New function.
7332 (update_dprintf_commands): New function.
7333 (init_breakpoint_sal): Add extra_string argument, handle it.
7334 (create_breakpoint_sal): Add extra_string argument.
7335 (create_breakpoints_sal): Add extra_string argument, update callers.
7336 (find_condition_and_thread): Add extra argument.
7337 (create_breakpoint): Add extra_string argument, record it.
7338 (dprintf_command): New function.
7339 (break_command_1): Add arg to create_breakpoint call.
7340 (handle_gnu_v3_exceptions): Ditto.
7341 (trace_command): Ditto.
7342 (ftrace_command): Ditto.
7343 (strace_command): Ditto.
7344 (bkpt_print_mention): Add dprintf case.
7345 (create_breakpoint_sal_default): Add extra_string argument.
7346 (_initialize_breakpoint): Add new commands.
7347 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7348 * python/py-breakpoint.c (bppy_init): Ditto.
7349 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7350
7351 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7352
7353 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7354
7355 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7356
7357 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7358 unsigned long long.
7359
7360 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7361
7362 Add a new function gdb.find_pc_line to the Python API.
7363 * NEWS (Python Scripting): Add entry about the new function.
7364 * python/python.c (gdbpy_find_pc_line): New function which
7365 implements gdb.find_pc_line.
7366 (GdbMethods): Add entry for the new function.
7367
7368 2012-05-12 Pedro Alves <palves@redhat.com>
7369
7370 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7371 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7372
7373 2012-05-12 Eli Zaretskii <eliz@gnu.org>
7374
7375 * inferior.c: Include completer.h
7376 (initialize_inferiors): Set completer of add-inferior to
7377 filename_completer.
7378
7379 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7380
7381 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7382 gdbarch_ptr_bit for x32 core dump.
7383
7384 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7385
7386 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7387 and features/i386/x32-avx-linux.c.
7388
7389 2012-05-11 Stan Shebs <stan@codesourcery.com>
7390 Kwok Cheung Yeung <kcy@codesourcery.com>
7391
7392 * NEWS: Describe new info os commands.
7393 * common/linux-osdata.c (PID_T, TIME_T): Define.
7394 (MAX_PID_T_STRLEN): New.
7395 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7396 MAX_PID_T_STRLEN.
7397 (command_from_pid): Add comment. Change to use PID_T.
7398 (commandline_from_pid): Change to use PID_T.
7399 (user_from_pid): Add comment.
7400 (get_process_owner): Add comment. Change to use PID_T and
7401 MAX_PID_T_STRLEN.
7402 (get_number_of_cpu_cores): Add comment.
7403 (get_cores_used_by_process): Add comment. Change to use PID_T and
7404 MAX_PID_T_STRLEN.
7405 (linux_xfer_osdata_processes): Change to use PID_T and
7406 MAX_PID_T_STRLEN.
7407 (compare_processes): New function.
7408 (linux_xfer_osdata_processgroups): New function.
7409 (linux_xfer_osdata_threads): Change to use PID_T.
7410 (linux_xfer_osdata_fds): New function.
7411 (format_socket_state, print_sockets): New functions.
7412 (union socket_addr): New union.
7413 (linux_xfer_osdata_isockets): New function.
7414 (time_from_time_t, group_from_gid): New functions.
7415 (linux_xfer_osdata_shm): New function.
7416 (linux_xfer_osdata_sem): New function.
7417 (linux_xfer_osdata_msg): New function.
7418 (linux_xfer_osdata_modules): New function.
7419 (osdata_table): Add new entries.
7420 * common/buffer.c (buffer_xml_printf): Add support for long and
7421 long long format specifiers.
7422
7423 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7424
7425 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7426 (tdesc_x32_avx_linux): Likewise.
7427
7428 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7429
7430 Implement multi-component --with-auto-load-dir.
7431 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7432 entries.
7433 (--with-auto-load-safe-path): Update the default value description.
7434 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7435 New.
7436 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7437 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7438 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7439 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7440 "set auto-load scripts-directory".
7441 * config.in: Regenerate.
7442 * configure: Regenerate.
7443 * configure.ac (--with-auto-load-dir): New configure option.
7444 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7445
7446 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7447
7448 Provide $ddir substitution for --with-auto-load-safe-path.
7449 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7450 entries.
7451 * auto-load.c: Include observer.h.
7452 (auto_load_safe_path_vec_update): Call substitute_path_component for
7453 each component. New variable ddir_subst.
7454 (auto_load_gdb_datadir_changed): New function.
7455 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7456 AUTO_LOAD_SAFE_PATH. New comment.
7457 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7458 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7459 * config.in: Regenerate.
7460 * configure: Regenerate.
7461 * configure.ac (--auto-load-safe-path): Rename
7462 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7463 GDB_DATADIR/auto-load.
7464 * defs.h (substitute_path_component): New declaration.
7465 * top.c: Include observer.h.
7466 (set_gdb_datadir): New function.
7467 (init_main): Install it for "set data-directory".
7468 * utils.c (substitute_path_component): New function.
7469
7470 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7471
7472 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7473 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7474 DEBUG_FILE_DIRECTORY. Handle multiple components of
7475 DEBUG_FILE_DIRECTORY.
7476
7477 2012-05-10 Tom Tromey <tromey@redhat.com>
7478
7479 * dwarf2read.c (recursively_write_psymbols): New function.
7480 (write_psymtabs_to_index): Use it.
7481
7482 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7483 field.
7484 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7485 (load_partial_comp_unit): Update.
7486 (queue_comp_unit): Add argument 'pretend_language'.
7487 (process_queue): Update.
7488 (psymtab_to_symtab_1): Skip dependencies that have a user.
7489 (load_partial_comp_unit_reader): Give meaning to the 'data'
7490 argument.
7491 (load_full_comp_unit): Add 'pretend_language' argument.
7492 (process_full_comp_unit): Add 'pretend_language' argument. Set
7493 language on CU.
7494 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7495 Update.
7496 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7497 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7498 Update.
7499 (prepare_one_comp_unit): Add 'pretend_language' argument.
7500
7501 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7502 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7503 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7504 (dw2_do_instantiate_symtab): Check whether symtab was read in
7505 before queueing.
7506 (dw2_instantiate_symtab): Add assertion. Call
7507 process_cu_includes.
7508 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7509 (partial_symtab_p): New typedef.
7510 (set_partial_user): New function.
7511 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7512 (scan_partial_symbols): Add imported CU to imported_symtabs.
7513 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7514 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7515 (get_symtab, recursively_compute_inclusions)
7516 (compute_symtab_includes, process_cu_includes)
7517 (process_imported_unit_die): New functions.
7518 (process_die) <DW_TAG_imported_unit>: New case.
7519 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7520
7521 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7522 comment.
7523 (struct partial_die_info) <locdesc>: Remove.
7524 <d>: New field.
7525 (process_psymtab_comp_unit): Add 'read_partial' argument.
7526 Update.
7527 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7528 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7529 (add_partial_symbol): Update.
7530 (process_die): Handle DW_TAG_partial_unit.
7531 (read_file_scope): Update comment.
7532 (load_partial_dies): Handle DW_TAG_imported_unit.
7533 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7534 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7535
7536 2012-05-10 Tom Tromey <tromey@redhat.com>
7537
7538 * cc-with-dwz.sh: New file.
7539
7540 2012-05-10 Tom Tromey <tromey@redhat.com>
7541
7542 * symtab.h (struct symtab) <includes, user>: New fields.
7543 * block.h (struct block_iterator) <d, idx, which>: New fields.
7544 * block.c (initialize_block_iterator, find_iterator_symtab)
7545 (block_iterator_step, block_iter_name_step)
7546 (block_iter_match_step): New functions.
7547 (block_iterator_first, block_iterator_next)
7548 (block_iter_name_first, block_iter_name_next)
7549 (block_iter_match_first, block_iter_match_next): Rewrite.
7550 (get_block_symtab): New function.
7551
7552 2012-05-10 Tom Tromey <tromey@redhat.com>
7553
7554 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7555 set_block_symtab.
7556 * jit.c (finalize_symtab): Use allocate_global_block,
7557 set_block_symtab.
7558 * buildsym.c (finish_block_internal): New function, from old
7559 finish_block.
7560 (finish_block): Rewrite.
7561 (end_symtab): Use finish_block_internal, set_block_symtab.
7562 * block.h (struct global_block): New.
7563 (allocate_global_block, set_block_symtab): Declare.
7564 * block.c (allocate_global_block, set_block_symtab): New
7565 functions.
7566
7567 2012-05-10 Tom Tromey <tromey@redhat.com>
7568
7569 * psymtab.c (partial_map_expand_apply): Add assertion.
7570 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7571 (psymtab_to_symtab): Find unshared psymtab.
7572 (dump_psymtab): Print including psymtabs.
7573 (recursively_search_psymtabs): New function.
7574 (expand_symtabs_matching_via_partial): Use it.
7575 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7576 fields.
7577 (enum psymtab_search_status): New.
7578
7579 2012-05-10 Tom Tromey <tromey@redhat.com>
7580
7581 * tracepoint.c (scope_info): Update.
7582 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7583 (find_pc_sect_symtab, search_symbols)
7584 (default_make_symbol_completion_list_break_on)
7585 (make_file_symbol_completion_list): Update.
7586 * symmisc.c (dump_symtab_1): Update.
7587 * stack.c (print_frame_args, iterate_over_block_locals)
7588 (print_frame_labels, iterate_over_block_arg_vars): Update.
7589 * python/py-block.c (block_object) <dict>: Remove.
7590 <block>: New field.
7591 <iter>: Change type.
7592 (blpy_iter): Update.
7593 (blpy_block_syms_iternext): Update.
7594 * psymtab.c (map_block): Use block iterators.
7595 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7596 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7597 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7598 * infrun.c (check_exception_resume): Update.
7599 * cp-support.c (make_symbol_overload_list_block): Update.
7600 * coffread.c (patch_opaque_types): Update.
7601 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7602 * block.h (struct block_iterator): New.
7603 (block_iterator_first, block_iterator_next, block_iter_name_first)
7604 (block_iter_name_next, block_iter_match_first)
7605 (block_iter_match_next): Declare.
7606 (ALL_BLOCK_SYMBOLS): Redefine.
7607 * block.c (block_iterator_first, block_iterator_next)
7608 (block_iter_name_first, block_iter_name_next)
7609 (block_iter_match_first, block_iter_match_next): New functions.
7610 * ada-lang.c (ada_add_block_symbols)
7611 (ada_make_symbol_completion_list): Use block iterator.
7612
7613 2012-05-10 Tom Tromey <tromey@redhat.com>
7614
7615 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7616 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7617 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7618 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7619 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7620 Update.
7621
7622 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7623
7624 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7625 print-file-var-lib2.c, print-file-var-main.c and
7626 print-file-var.exp (located in gdb/testsuite/gdb.base).
7627
7628 2012-05-10 Joel Brobecker <brobecker@adacore.com>
7629
7630 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7631 try locating the symbol in the symbol's own objfile first, before
7632 extending the search to all objfiles.
7633 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7634 out of lookup_symbol_aux_symtabs.
7635 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7636 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7637 Do not search EXCLUDE_OBJFILE.
7638 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7639 (lookup_symbol_global): Search for matches in the block's objfile
7640 first, before searching all other objfiles.
7641
7642 2012-05-10 Tristan Gingold <gingold@adacore.com>
7643
7644 * printcmd.c (set_command): Add pre/post inc/dec.
7645
7646 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
7647
7648 * gdb.1: Document -ex option.
7649
7650 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7651
7652 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7653 * inferior.h (AT_SYMBOL): Delete.
7654
7655 2012-05-09 Joel Brobecker <brobecker@adacore.com>
7656
7657 * mips-tdep.c (mips_push_dummy_code): New function.
7658 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7659 ON_STACK and install mips_push_dummy_code as our gdbarch
7660 push_dummy_code routine.
7661
7662 2012-05-09 Pedro Alves <palves@redhat.com>
7663
7664 * target.c (set_maintenance_target_async_permitted): Rename to ...
7665 (set_target_async_command): ... this.
7666 (show_maintenance_target_async_permitted): Rename to ...
7667 (show_target_async_command): ... this.
7668 (initialize_targets): Adjust.
7669
7670 2012-05-08 Doug Evans <dje@google.com>
7671
7672 * go-exp.y (classify_name): Add missing assignment of fields of
7673 yylval.ssym.
7674
7675 2012-05-08 Eli Zaretskii <eliz@gnu.org>
7676
7677 Display the ">" prompt in interactive mode while reading canned
7678 commands, even when the current interpreter is MI.
7679
7680 * interps.c (interp_set_temp): New function.
7681
7682 * interps.h (interp_set_temp): Add prototype.
7683
7684 * cli/cli-script.c (restore_interp): New cleanup function.
7685 (read_command_lines): Temporarily override the current interpreter
7686 with CLI and arrange for restoring the original one.
7687
7688 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7689
7690 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7691
7692 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7693
7694 * probe.c (parse_probes): Move conditional to check for
7695 debuginfo files from here...
7696 * stap-probe.c (stap_get_probes): ... to here.
7697
7698 2012-05-07 Mark Kettenis <kettenis@gnu.org>
7699 H.J. Lu <hongjiu.lu@intel.com>
7700
7701 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7702 `movl %esp, %ebp' for the X32 ABI.
7703
7704 2012-05-07 Tom Tromey <tromey@redhat.com>
7705
7706 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7707 get_DW_TAG_name.
7708 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7709 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7710 (dwarf_stack_op_name): Remove.
7711 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7712 (decode_locdesc): Use get_DW_OP_name.
7713 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7714 (dwarf2_compile_expr_to_ax): Likewise.
7715 (disassemble_dwarf_expression): Likewise.
7716 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7717
7718 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7719
7720 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7721 (sh_linux_sigtramp_cache): New function.
7722 (sh_linux_sigreturn_init): New function.
7723 (sh_linux_rt_sigreturn_init): New function.
7724 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7725 patterns.
7726 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7727 syscall codes.
7728 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7729 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7730 (sh_linux_init_abi): Add init calls to register new tramp_frame
7731 definitions under 32-bit SH, update comments.
7732
7733 2012-05-07 Pedro Alves <palves@redhat.com>
7734
7735 PR gdb/10952
7736
7737 * amd64-linux-tdep.c: Include glibc-tdep.h.
7738 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7739 gdbarch_skip_solib_resolver callback.
7740
7741 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7742
7743 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7744 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7745 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7746 (add_auto_load_safe_path): Change the error message.
7747 (_initialize_auto_load): Change the "safe-path" help text.
7748 * configure: Regenerate
7749 * configure.ac (--without-auto-load-safe-path): Set
7750 WITH_AUTO_LOAD_SAFE_PATH to /.
7751
7752 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7753
7754 * stap-probe.h: Do not include unecessary `probe.h'.
7755
7756 2012-05-05 Alan Modra <amodra@gmail.com>
7757
7758 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7759 bfd_und_section_ptr.
7760 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7761 and bfd_com_section_ptr.
7762
7763 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7764
7765 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
7766
7767 2012-05-04 Joel Brobecker <brobecker@adacore.com>
7768
7769 * windows-nat.h (segment_register_p_ftype): New typedef.
7770 (windows_set_segment_register_p): Add declaration.
7771 * windows-nat.c (segment_register_p): New static global.
7772 (windows_set_segment_register_p): New function.
7773 (do_windows_fetch_inferior_registers): Add special handling
7774 for segment registers.
7775 * amd64-windows-nat.c: #include "amd64-tdep.h".
7776 (amd64_windows_segment_register_p): New function.
7777 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7778 * i386-windows-nat.c: #include "i386-tdep.h".
7779 (i386_windows_segment_register_p): New function.
7780 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7781
7782 2012-05-04 Tristan Gingold <gingold@adacore.com>
7783
7784 * printcmd.c (set_command): Emit a warning if the expression is not
7785 an assignment.
7786
7787 2012-05-03 Joel Brobecker <brobecker@adacore.com>
7788
7789 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7790 Make static.
7791
7792 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7793
7794 * stap-probe.c (stap_is_operator): Change declaration.
7795 (stap_get_opcode): Change return value.
7796 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7797 `stap_parse_argument_1'.
7798
7799 2012-05-03 Pedro Alves <pedro@codesourcery.com>
7800
7801 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7802 debug log.
7803
7804 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7805
7806 Add two new methods global_block and static_block to gdb.Symtab
7807 objects.
7808 * NEWS (Python scripting): Add entry about the new methods.
7809 * python/py-symtab.c (stpy_global_block): New function which
7810 implements the gdb.Symtab.global_block() method.
7811 (stpy_static_block): New function which implements the
7812 gdb.Symtab.static_block() method.
7813 (symtab_object_methods): Add entries for the two new methods.
7814
7815 2012-05-03 Doug Evans <dje@google.com>
7816
7817 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7818 files.
7819
7820 2012-05-03 Yao Qi <yao@codesourcery.com>
7821
7822 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7823 space.
7824 (i386_process_record): Ditto.
7825
7826 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7827
7828 * infcall.c (unwind_on_signal_p): Make static.
7829
7830 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7831
7832 * sol-thread.c (solaris_pid_to_str): Make static.
7833 (_initialize_sol_thread): Add prototype.
7834
7835 2012-05-02 Joel Brobecker <brobecker@adacore.com>
7836
7837 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7838
7839 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7840
7841 * MAINTAINERS: Remove myself.
7842
7843 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7844
7845 Fix --without-auto-load-safe-path for MS-Windows host platform.
7846 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7847
7848 2012-05-02 Eli Zaretskii <eliz@gnu.org>
7849
7850 * gdb_curses.h: Undefine KEY_EVENT before including curses
7851 headers. Move "#undef MOUSE_MOVED" before any curses header
7852 inclusion.
7853
7854 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7855
7856 * features/i386/i386-mmx-linux.c: Regenerate.
7857 * features/rs6000/powerpc-32.c: Likewise.
7858 * features/rs6000/powerpc-32l.c: Likewise.
7859 * features/rs6000/powerpc-403.c: Likewise.
7860 * features/rs6000/powerpc-403gc.c: Likewise.
7861 * features/rs6000/powerpc-405.c: Likewise.
7862 * features/rs6000/powerpc-505.c: Likewise.
7863 * features/rs6000/powerpc-601.c: Likewise.
7864 * features/rs6000/powerpc-602.c: Likewise.
7865 * features/rs6000/powerpc-603.c: Likewise.
7866 * features/rs6000/powerpc-604.c: Likewise.
7867 * features/rs6000/powerpc-64.c: Likewise.
7868 * features/rs6000/powerpc-64l.c: Likewise.
7869 * features/rs6000/powerpc-750.c: Likewise.
7870 * features/rs6000/powerpc-860.c: Likewise.
7871 * features/rs6000/powerpc-e500.c: Likewise.
7872 * features/rs6000/powerpc-e500l.c: Likewise.
7873 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7874 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7875 * features/rs6000/rs6000.c: Likewise.
7876
7877 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7878
7879 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7880 variable.
7881 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7882 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7883 (stap_parse_argument) <e>: Likewise.
7884 (handle_stap_probe) <byte_order>: Likewise.
7885
7886 2012-04-30 Doug Evans <dje@google.com>
7887
7888 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7889 init_and_read_dies_worker. All callers updated.
7890 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7891 replaced with init_cutu_and_read_dies.
7892 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7893 (find_partial_die): Remove FIXME. Don't free current CU.
7894
7895 2012-04-30 Sterling Augustine <saugustine@google.com>
7896
7897 * contrib: New directory.
7898 * contrib/test_pubnames_and_indexes.py: New file.
7899
7900 2012-04-30 Doug Evans <dje@google.com>
7901
7902 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7903 All callers updated.
7904 (init_cu_die_reader): Verify the section is non-empty.
7905 (dwarf_decode_line_header): Don't dereference section->asection
7906 until we know the section is present.
7907
7908 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7909
7910 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7911 probes.
7912
7913 2012-04-29 Yao Qi <yao@codesourcery.com>
7914
7915 * gdb-code-style.el: New hook gdb-markup-hook
7916 and gdb-comment-hook.
7917
7918 2012-04-28 Doug Evans <dje@google.com>
7919
7920 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7921 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7922 objfile->obfd.
7923 * symfile.h (dwarf2_debug_sections): New member addr.
7924 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7925 (ctx_no_get_addr_index): New function.
7926 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7927 (ctx_no_get_addr_index): Declare.
7928 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7929 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7930 (dwarf_expr_ctx_funcs): Update.
7931 (needs_get_addr_index): New function.
7932 (needs_frame_ctx_funcs): Update.
7933 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7934 * dwarf2read.c: #include "gdbcore.h".
7935 (dwarf2_per_objfile): New members addr, dwo_files.
7936 (dwarf2_elf_names): Add entry for addr.
7937 (struct dwo_section_names): New type.
7938 (dwo_section_names): New static global.
7939 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7940 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7941 old debug_types_section member updated to use this.
7942 Rename member debug_types_section to info_or_types_section,
7943 all uses updated.
7944 (signatured_type): Rename member type_offset to type_offset_in_tu,
7945 all uses updated. New member type_offset_in_section.
7946 (struct dwo_sections): New type.
7947 (struct dwo_unit): New type.
7948 (struct dwo_file): New type.
7949 (die_reader_specs): New member dwo_file.
7950 (dwarf2_locate_sections): Watch for .debug_addr.
7951 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7952 (dwarf2_read_section): Get bfd of section from bfd's asection,
7953 instead of objfile.
7954 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7955 (create_signatured_type_table_from_index): Initialize
7956 sig_type->info_or_types_section.
7957 (dw2_get_file_names): Statement lists for type units with DWO files
7958 live in the DWO file.
7959 (create_debug_types_hash_table): New function.
7960 (create_all_type_units): Rewrite.
7961 (init_cu_die_reader): New arg dwo_file, all callers updated.
7962 (init_and_read_dies_worker): Get section from
7963 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7964 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7965 continue reading the CU/TU from there.
7966 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7967 updated. Get section from this_cu->info_or_types_section.
7968 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7969 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7970 DW_FORM_GNU_str_index.
7971 (hash_dwo_file, eq_dwo_file): New functions.
7972 (allocate_dwo_file_hash_table): New function.
7973 (hash_dwo_unit, eq_dwo_unit): New functions.
7974 (allocate_dwo_unit_table): New function.
7975 (dwarf2_locate_dwo_sections): New function.
7976 (struct create_dwo_info_table_data): New type.
7977 (create_debug_info_hash_table_reader): New function.
7978 (create_debug_info_hash_table): New function.
7979 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7980 (lookup_dwo_file): New function.
7981 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7982 (free_dwo_file, free_dwo_file_cleanup): New functions.
7983 (free_dwo_file_from_slot, free_dwo_files): New functions.
7984 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7985 (dwarf2_record_block_ranges): Ditto.
7986 (read_partial_die): Ditto.
7987 (process_enumeration_scope): Update to use type_offset_in_section.
7988 (read_full_die_1): New function.
7989 (read_full_die): Rewrite.
7990 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7991 DW_FORM_GNU_str_index.
7992 (read_addr_index_1, read_addr_index): New functions.
7993 (read_addr_index_from_leb128): New function.
7994 (struct dwarf2_read_addr_index_data): New type.
7995 (dwarf2_read_addr_index_reader): New function.
7996 (dwarf2_read_addr_index): New function.
7997 (read_str_index): New function.
7998 (leb128_size): New function.
7999 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
8000 If processing a type unit from a DWO file, get the line section
8001 from the DWO file.
8002 (var_decode_location): Watch for DW_OP_GNU_addr_index.
8003 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
8004 DW_FORM_GNU_str_index.
8005 (lookup_die_type): Check whether section offset of type's die is
8006 known before looking it up. Remove assert. Condition can
8007 legimately happen for inter-cu type references.
8008 (dwarf_attr_name): Handle Fission attributes.
8009 (dwarf_form_name): Handle Fission forms.
8010 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
8011 DW_FORM_GNU_str_index.
8012 (follow_die_sig): Update to use type_offset_in_section.
8013 (decode_locdesc): New case DW_OP_GNU_addr_index.
8014 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
8015 DW_FORM_GNU_str_index.
8016 (cu_debug_loc_section): New function.
8017 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
8018 (dwarf2_per_objfile_free): Unmap .debug_addr section.
8019 Free DWO files if present.
8020 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
8021
8022 Refactor DIE reading.
8023 * dwarf2read.c (dwarf2_per_objfile): Replace members
8024 debug_info_type_hash and debug_types_type_hash with die_type_hash.
8025 (die_reader_specs): New member "die_section". Temporarily make
8026 member "buffer" non-const, pending constifying all info_ptr uses.
8027 (die_reader_func_ftype): New typedef.
8028 (dw2_get_file_names_reader): New function.
8029 (dw2_get_file_names): Rewrite.
8030 (read_and_check_type_unit_head): Rename arg type_offset to
8031 type_offset_in_tu.
8032 (create_all_type_units): Improve debugging message.
8033 Improve dummy type unit check.
8034 (init_cu_die_reader): New arg "section". All callers updated.
8035 (init_and_read_dies_worker): New function.
8036 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
8037 (init_cutu_and_read_dies_no_follow): New function.
8038 (init_cutu_and_read_dies_simple): New function.
8039 (process_psymtab_comp_unit_reader): New function.
8040 (process_psymtab_comp_unit): Delete args section,
8041 is_debug_types_section. Rewrite. All callers updated.
8042 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
8043 All callers updated. Rewrite.
8044 (load_partial_comp_unit_reader): New function.
8045 (load_partial_comp_unit): Rewrite.
8046 (skip_children): New arg reader. Delete args buffer, cu.
8047 All callers updated.
8048 (skip_one_die): New arg reader. Delete args buffer, cu.
8049 All callers updated.
8050 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
8051 All callers updated.
8052 (load_full_comp_unit_reader): New function.
8053 (load_full_comp_unit): Rewrite.
8054 (read_comp_unit): Delete.
8055 (read_die_and_children_1): Delete, contents moved ...
8056 (read_die_and_children): ... here.
8057 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
8058 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
8059 All callers updated.
8060 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
8061 All callers updated.
8062 (find_partial_die): Rewrite load_all_dies support.
8063 (read_attribute_value): New arg reader. Delete args abfd, cu.
8064 All callers updated.
8065 (read_attribute): New arg reader. Delete args abfd, cu.
8066 All callers updated.
8067 (load_full_type_unit): Add assert.
8068 (read_signatured_type_reader): New function.
8069 (read_signatured_type): Rewrite.
8070 (free_stack_comp_unit): Remove call to age_cached_comp_units.
8071 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
8072 All callers updated. Set per_cu->cu = NULL after freeing it.
8073 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
8074 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
8075 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
8076 (set_die_type): Update.
8077 (get_die_type_at_offset): Update.
8078 (read_file_scope): Call prepare_one_comp_unit.
8079 (read_type_unit_scope): Ditto.
8080 (prepare_one_comp_unit): Set producer if present.
8081
8082 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
8083
8084 * probe.c (compile_rx_or_error): Silence ARI warning about missing
8085 gettext function on `error'.
8086
8087 2012-04-27 Doug Evans <dje@google.com>
8088
8089 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8090 is empty.
8091
8092 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8093 Tom Tromey <tromey@redhat.com>
8094
8095 * breakpoint.c (struct breakpoint_objfile_data)
8096 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8097 <exception_probes>: New fields.
8098 (free_breakpoint_probes): New function.
8099 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8100 `_Unwind_DebugHook'.
8101 (create_exception_master_breakpoint): Likewise.
8102 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8103 * infrun.c: Including necessary header files for handling SystemTap
8104 probes.
8105 (handle_inferior_event): Handling longjmp breakpoint and exceptions
8106 via SystemTap probes.
8107 (check_exception_resume): Remove `func' argument. Handle exception
8108 unwinding breakpoint set via a SystemTap probe.
8109 (insert_exception_resume_from_probe): New function.
8110
8111 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8112 Tom Tromey <tromey@redhat.com>
8113 Jan Kratochvil <jan.kratochvil@redhat.com>
8114
8115 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8116 (COMMON_OBS): Likewise.
8117 (HFILES_NO_SRCDIR): Add `probe'.
8118 * NEWS: Mention support for static and SystemTap probes.
8119 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8120 SystemTap probes' arguments parser.
8121 * arm-linux-tdep.c: Including headers needed to perform the parsing
8122 of SystemTap probes' arguments.
8123 (arm_stap_is_single_operand): New function.
8124 (arm_stap_parse_special_token): Likewise.
8125 (arm_linux_init_abi): Initializing proper fields used by SystemTap
8126 probes' arguments parser.
8127 * ax-gdb.c (require_rvalue): Removing static declaration.
8128 (gen_expr): Likewise.
8129 * ax-gdb.h (gen_expr): Declaring function.
8130 (require_rvalue): Likewise.
8131 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8132 (bkpt_probe_breakpoint_ops): New variable.
8133 (momentary_breakpoint_from_master): Set the `probe' value.
8134 (add_location_to_breakpoint): Likewise.
8135 (break_command_1): Using proper breakpoint_ops according to the
8136 argument passed by the user in the command line.
8137 (bkpt_probe_insert_location): New function.
8138 (bkpt_probe_remove_location): Likewise.
8139 (bkpt_probe_create_sals_from_address): Likewise.
8140 (bkpt_probe_decode_linespec): Likewise.
8141 (tracepoint_probe_create_sals_from_address): Likewise.
8142 (tracepoint_probe_decode_linespec): Likewise.
8143 (tracepoint_probe_breakpoint_ops): New variable.
8144 (trace_command): Using proper breakpoint_ops according to the
8145 argument passed by the user in the command line.
8146 (initialize_breakpoint_ops): Initializing breakpoint_ops for
8147 static probes on breakpoints and tracepoints.
8148 * breakpoint.h (struct bp_location) <probe>: New field.
8149 * cli-utils.c (skip_spaces_const): New function.
8150 (extract_arg): Likewise.
8151 * cli-utils.h (skip_spaces_const): Likewise.
8152 (extract_arg): Likewise.
8153 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8154 * configure.ac: Append `stap-probe.o' to be generated when ELF
8155 support is present.
8156 * configure: Regenerate.
8157 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8158 * elfread.c: Include `probe.h' and `arch-utils.h'.
8159 (probe_key): New variable.
8160 (elf_get_probes): New function.
8161 (elf_get_probe_argument_count): Likewise.
8162 (elf_evaluate_probe_argument): Likewise.
8163 (elf_compile_to_ax): Likewise.
8164 (elf_symfile_relocate_probe): Likewise.
8165 (stap_probe_key_free): Likewise.
8166 (elf_probe_fns): New variable.
8167 (elf_sym_fns): Add `sym_probe_fns' value.
8168 (elf_sym_fns_lazy_psyms): Likewise.
8169 (elf_sym_fns_gdb_index): Likewise.
8170 (_initialize_elfread): Initialize objfile cache for static
8171 probes.
8172 * gdb_vecs.h (struct probe): New forward declaration.
8173 (probe_p): New VEC declaration.
8174 * gdbarch.c: Regenerate.
8175 * gdbarch.h: Regenerate.
8176 * gdbarch.sh (stap_integer_prefix): New variable.
8177 (stap_integer_suffix): Likewise.
8178 (stap_register_prefix): Likewise.
8179 (stap_register_suffix): Likewise.
8180 (stap_register_indirection_prefix): Likewise.
8181 (stap_register_indirection_suffix): Likewise.
8182 (stap_gdb_register_prefix): Likewise.
8183 (stap_gdb_register_suffix): Likewise.
8184 (stap_is_single_operand): New function.
8185 (stap_parse_special_token): Likewise.
8186 (struct stap_parse_info): Forward declaration.
8187 * i386-tdep.c: Including headers needed to perform the parsing
8188 of SystemTap probes' arguments.
8189 (i386_stap_is_single_operand): New function.
8190 (i386_stap_parse_special_token): Likewise.
8191 (i386_elf_init_abi): Initializing proper fields used by SystemTap
8192 probes' arguments parser.
8193 * i386-tdep.h (i386_stap_is_single_operand): New function.
8194 (i386_stap_parse_special_token): Likewise.
8195 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8196 * mipsread.c (ecoff_sym_fns): Likewise.
8197 * objfiles.c (objfile_relocate1): Support relocation for static
8198 probes.
8199 * parse.c (prefixify_expression): Remove static declaration.
8200 (initialize_expout): Likewise.
8201 (reallocate_expout): Likewise.
8202 * parser-defs.h (initialize_expout): Declare function.
8203 (reallocate_expout): Likewise.
8204 (prefixify_expression): Likewise.
8205 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8206 of SystemTap probes' arguments.
8207 (ppc_stap_is_single_operand): New function.
8208 (ppc_stap_parse_special_token): Likewise.
8209 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8210 probes' arguments parser.
8211 * probe.c: New file, for generic statically defined probe support.
8212 * probe.h: Likewise.
8213 * s390-tdep.c: Including headers needed to perform the parsing of
8214 SystemTap probes' arguments.
8215 (s390_stap_is_single_operand): New function.
8216 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8217 probes' arguments parser.
8218 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8219 * stap-probe.c: New file, for SystemTap probe support.
8220 * stap-probe.h: Likewise.
8221 * symfile.h: Include `gdb_vecs.h'.
8222 (struct sym_probe_fns): New struct.
8223 (struct sym_fns) <sym_probe_fns>: New field.
8224 * symtab.c (init_sal): Initialize `probe' field.
8225 * symtab.h (struct probe): Forward declaration.
8226 (struct symtab_and_line) <probe>: New field.
8227 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8228 locations.
8229 (stop_tracing): Likewise.
8230 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8231
8232 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8233 Tom Tromey <tromey@redhat.com>
8234
8235 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8236 and to compile agent expressions.
8237 * infrun.c (siginfo_make_value): New argument `ignore'.
8238 (siginfo_funcs): New struct.
8239 (_initialize_infrun): New argument when calling
8240 `create_internalvar_type_lazy'.
8241 * thread.c (thread_id_make_value): New argument `ignore'.
8242 (thread_funcs): New struct.
8243 (_initialize_thread): New argument when calling
8244 `create_internalvar_type_lazy'.
8245 * tracepoint.c (sdata_make_value): New argument `ignore'.
8246 (sdata_funcs): New struct.
8247 (_initialize_tracepoint): New argument when calling
8248 `create_internalvar_type_lazy'.
8249 * value.c (make_value): New struct.
8250 (create_internalvar_type_lazy): New argument `data'.
8251 (compile_internalvar_to_ax): New function.
8252 (value_of_internalvar): Properly handling `make_value' case.
8253 (clear_internalvar): Likewise.
8254 (show_convenience): Adding `TRY_CATCH' block.
8255 * value.h (internalvar_make_value): Delete, replace by...
8256 (struct internalvar_funcs): ... this.
8257 (create_internalvar_type_lazy) <fun>: Delete argument.
8258 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8259 (compile_internalvar_to_ax): New function.
8260 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8261 (tlb_funcs): New struct.
8262 (_initialize_windows_tdep): New argument when calling
8263 `create_internalvar_type_lazy'.
8264
8265 2012-04-27 Mark Wielaard <mjw@redhat.com>
8266
8267 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8268 see whether it is an address or a constant offset from DW_AT_low_pc.
8269 (dwarf2_record_block_ranges): Likewise.
8270 (read_partial_die): Likewise.
8271
8272 2012-04-26 Mark Wielaard <mjw@redhat.com>
8273
8274 * MAINTAINERS (Write After Approval): Add myself to the list.
8275
8276 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8277
8278 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8279 (proc_prettyprint_signal): Likewise.
8280 (proc_prettyprint_faultset): Likewise.
8281 (proc_prettyprint_fault): Likewise.
8282 (proc_prettyprint_actionset): Likewise.
8283 (proc_prettyprint_flags): Move to new proc-flags.c section.
8284 (proc_prettyfprint_flags): New prototype.
8285 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8286 (proc_syscall, proc_cursig): Likewise.
8287 (proc_set_kill_on_last_close): Likewise.
8288 (proc_unset_kill_on_last_close): Likewise.
8289 (proc_set_watchpoint): Make static.
8290 (proc_delete_dead_threads): Likewise.
8291 (procfs_set_watchpoint): Likewise.
8292 (_initialize_procfs): Add prototype.
8293 * proc-events.c: Include proc-utils.h.
8294 (init_syscall_table): Make static.
8295 * proc-api.c (_initialize_proc_api): Add prototype.
8296 * proc-flags.c: Include proc-utils.h.
8297
8298 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8299
8300 * configure.ac: Add AC_ARG_PROGRAM.
8301 * configure: Regenerate.
8302
8303 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8304
8305 Fix DW_AT_lower_bound defaults for DWARF-4+.
8306 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8307 high. New variable low_default_is_valid. Implement DWARF-4+
8308 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8309 no default by the DWARF standard.
8310
8311 2012-04-26 Maciej W. Rozycki <macro@mips.com>
8312 Maciej W. Rozycki <macro@codesourcery.com>
8313
8314 * infrun.c (handle_inferior_event): Move the check for return
8315 trampolines ahead of the check for function trampolines.
8316 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8317 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8318 (mips_str_mips16_ret_stub): Likewise.
8319 (mips_str_call_fp_stub): Likewise.
8320 (mips_str_call_stub): Likewise.
8321 (mips_str_fn_stub): Likewise.
8322 (mips_str_pic): Likewise.
8323 (mips_in_frame_stub): New function.
8324 (mips_unwind_pc): Return the return address rather than the PC
8325 if the PC of an intermediate frame is inside a call thunk.
8326 (mips_is_stub_suffix): New function.
8327 (mips_is_stub_mode): Likewise.
8328 (mips_get_mips16_fn_stub_pc): Likewise.
8329 (mips_skip_mips16_trampoline_code): Update to handle all the
8330 currently generated stub types. Don't recurse into __fn_stub
8331 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8332 Use cooked register accesses.
8333 (mips_in_return_stub): Reintroduce function.
8334 (mips_skip_trampoline_code): Traverse trampolines recursively.
8335 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8336
8337 2012-04-26 Joel Brobecker <brobecker@adacore.com>
8338
8339 GDB 7.4.1 released.
8340
8341 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8342
8343 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8344 * features/arm-with-m-vfp-d16.xml: New file. Describes
8345 Cortex-M with VFPv4-sp-d16 FPU register layout.
8346 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8347 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8348 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8349 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8350 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8351
8352 2012-04-25 Doug Evans <dje@google.com>
8353
8354 * cli/cli-decode.c (print_doc_line): Use stream instead of
8355 current_uiout.
8356
8357 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8358
8359 * features/arm-with-iwmmxt.c: Regenerate.
8360 * features/arm-with-m-fpa-layout.c: Likewise.
8361 * features/arm-with-m.c: Likewise.
8362 * features/arm-with-neon.c: Likewise.
8363 * features/arm-with-vfpv2.c: Likewise.
8364 * features/arm-with-vfpv3.c: Likewise.
8365 * features/mips-dsp-linux.c: Likewise.
8366 * features/mips-linux.c: Likewise.
8367 * features/mips64-dsp-linux.c: Likewise.
8368 * features/mips64-linux.c: Likewise.
8369 * features/s390-linux32.c: Likewise.
8370 * features/s390-linux32v1.c: Likewise.
8371 * features/s390-linux32v2.c: Likewise.
8372 * features/s390-linux64.c: Likewise.
8373 * features/s390-linux64v1.c: Likewise.
8374 * features/s390-linux64v2.c: Likewise.
8375 * features/s390x-linux64.c: Likewise.
8376 * features/s390x-linux64v1.c: Likewise.
8377 * features/s390x-linux64v2.c: Likewise.
8378 * features/tic6x-c62x-linux.c: Likewise.
8379 * features/tic6x-c62x.c: Likewise.
8380 * features/tic6x-c64x-linux.c: Likewise.
8381 * features/tic6x-c64x.c: Likewise.
8382 * features/tic6x-c64xp-linux.c: Likewise.
8383 * features/tic6x-c64xp.c: Likewise.
8384 * target-descriptions.c: Only generate `field_type' and `type'
8385 variables when needed.
8386
8387 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8388
8389 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8390
8391 2012-04-25 Doug Evans <dje@google.com>
8392
8393 Initial pass at Go language support.
8394 * NEWS: Mention Go.
8395 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8396 go-valprint.c.
8397 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8398 (YYFILES): Add go-exp.c.
8399 (YYOBJ): Add go-exp.o.
8400 (local-maintainer-clean): Delete go-exp.c.
8401 * defs.h (enum language): Add language_go.
8402 * dwarf2read.c: #include "go-lang.h".
8403 (fixup_go_packaging): New function.
8404 (process_full_comp_unit): Call it when processing Go CUs.
8405 (dwarf2_physname): Add Go support.
8406 (read_file_scope): Handle missing language spec for GNU Go.
8407 (set_cu_language): Handle DW_LANG_Go.
8408 * go-exp.y: New file.
8409 * go-lang.h: New file.
8410 * go-lang.c: New file.
8411 * go-typeprint.c: New file.
8412 * go-valprint.c: New file.
8413 * symtab.c: #include "go-lang.h".
8414 (symbol_set_language): Handle language_go.
8415 (symbol_find_demangled_name, symbol_set_names): Ditto.
8416 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8417
8418 2012-04-24 Jim Meyering <meyering@redhat.com>
8419
8420 avoid a few strncpy-induced buffer overruns
8421 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8422 fname and psargs before trying to concatenate.
8423 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8424 "name" before applying strchr.
8425
8426 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8427
8428 * CONTRIBUTE: Use unified diff instead of context diff when
8429 generating patches.
8430
8431 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8432
8433 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8434 code. Handle JR.HB correctly.
8435
8436 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8437
8438 * mips-tdep.c
8439 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8440 with the other MIPS16 helpers.
8441
8442 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8443
8444 * observer.sh: Conditionally declare `args', thus cleaning up
8445 unused instances of this variable.
8446
8447 2012-04-24 Yao Qi <yao@codesourcery.com>
8448
8449 Revert this patch to allow breakpoint always-inserted
8450 in record target.
8451 2011-12-05 Pedro Alves <pedro@codesourcery.com>
8452 * breakpoint.c: Include record.h.
8453 (breakpoints_always_inserted_mode): Return false when the record
8454 target is in use.
8455
8456 * breakpoint.c (iterate_over_bp_locations): New.
8457 * breakpoint.h: Declare.
8458 New typedef walk_bp_location_callback.
8459 * record.c (record_open): Call record_init_record_breakpoints.
8460 (record_sync_record_breakpoints): New.
8461 (record_init_record_breakpoints): New.
8462 * NEWS: Mention supporting breakpoint always-inserted mode in
8463 record target.
8464
8465 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8466
8467 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8468 any thread.
8469
8470 2012-04-24 Yao Qi <yao@codesourcery.com>
8471
8472 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8473 (is_catchpoint): ... it.
8474 (print_one_breakpoint_location): Caller update.
8475 * breakpoint.h: Update declaration.
8476
8477 2012-04-23 David S. Miller <davem@davemloft.net>
8478
8479 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8480
8481 2012-04-23 Tom Tromey <tromey@redhat.com>
8482
8483 * buildsym.c (add_free_pendings): Remove.
8484 * buildsym.h (add_free_pendings): Remove.
8485
8486 2012-04-23 Doug Evans <dje@google.com>
8487
8488 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8489 attr.u.unsnd instead of attr.u.addr.
8490 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8491 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8492 DW_FORM_ref_udata.
8493 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8494 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8495 DW_FORM_ref_udata.
8496 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8497
8498 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8499
8500 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8501 (mips_o32_return_value): Likewise.
8502 (mips_o64_return_value): Likewise.
8503
8504 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8505
8506 * ada-lang.c (ada_evaluate_subexp): Add cases for
8507 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8508 their treatment in eval.c.
8509
8510 2012-04-21 David S. Miller <davem@davemloft.net>
8511
8512 * sparc-tdep.c (X_DISP10): Define.
8513 (sparc_analyze_control_transfer): Handle compare-and-branch.
8514
8515 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8516
8517 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8518 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8519
8520 2012-04-20 Nigel Stephens <nigel@mips.com>
8521 Maciej W. Rozycki <macro@codesourcery.com>
8522
8523 * mips-tdep.c (mips_float_register_p): New function.
8524 (mips_convert_register_float_case_p): Use mips_float_register_p.
8525 (mips_register_type): Likewise.
8526 (mips_print_register): Likewise.
8527 (print_gp_register_row): Likewise.
8528 (mips_print_registers_info): Likewise.
8529
8530 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8531
8532 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8533 of mips16 symbols.
8534
8535 2012-04-20 Andrew Pinski <apinski@cavium.com>
8536
8537 * MAINTAINERS (Write After Approval): Add myself to the list.
8538
8539 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8540
8541 * MAINTAINERS: Update my e-mail address.
8542
8543 2012-04-20 Pedro Alves <palves@redhat.com>
8544
8545 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8546 $srcdir.
8547 * configure: Regenerate.
8548
8549 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8550
8551 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8552 declaration.
8553 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8554
8555 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8556
8557 Fix compilation compatibility with python-2.4
8558 * python/py-type.c (convert_field): Cast ADDRSTRING for
8559 PyObject_SetAttrString as non-const. New comment.
8560
8561 2012-04-19 Tom Tromey <tromey@redhat.com>
8562
8563 * top.c (quit_target): Use all_cleanups.
8564 * main.c (captured_command_loop): Use all_cleanups.
8565 * exceptions.c (throw_exception): Use all_cleanups.
8566
8567 2012-04-19 Pedro Alves <palves@redhat.com>
8568
8569 * Makefile.in (GNULIB_BUILDDIR): New.
8570 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8571 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8572 (CLEANDIRS). Remove gnulib/import.
8573 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8574 (all-lib): Ditto.
8575 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8576 (gnulib/import/Makefile): Replace gnulib/import with
8577 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8578 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8579 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8580 acx_configure_dir.m4.
8581 * acinclude.m4: Include acx_configure_dir.m4.
8582 * acx_configure_dir.m4: New file.
8583 * aclocal.m4: Regenerate.
8584 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8585 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8586 (GNULIB): New variable.
8587 (GNULIB_STDINT_H): Adjust.
8588 (AC_OUTPUT): Don't output gnulib/Makefile.
8589 * gdb/defs.h: Include build-gnulib/config.h.
8590 * aclocal.m4: Regenerate.
8591 * config.in: Regenerate.
8592 * configure: Regenerate.
8593
8594 * gnulib/Makefile.in: New file.
8595 * gnulib/configure.ac: New file.
8596 * gnulib/aclocal.m4: New file.
8597 * gnulib/config.in: New file.
8598 * gnulib/configure: New file.
8599 * gnulib/: Re-run gnulib-tool to adjust.
8600
8601 2012-04-19 Doug Evans <dje@google.com>
8602
8603 * cleanups.h (struct cleanup): Move to cleanups.c.
8604 (make_cleanup_dtor_ftype): New typedef.
8605 (make_cleanup_dtor): Use it.
8606 (ALL_CLEANUPS): Replace with ...
8607 (all_cleanups): ... this. Declare. All uses updated.
8608 * cleanups.c: #include "gdb_assert.h".
8609 (sentinel_cleanup): New static global.
8610 (SENTINEL_CLEANUP): Define.
8611 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8612 (make_my_cleanup2): Assert result is non-NULL.
8613 (all_cleanups): New function.
8614 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8615 of NULL.
8616
8617 2012-04-19 Pedro Alves <palves@redhat.com>
8618
8619 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8620 Adjust paths to gnulib imported files.
8621
8622 2012-04-19 Pedro Alves <palves@redhat.com>
8623
8624 * gnulib/: Move whole directory ...
8625 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8626 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8627 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8628 (aclocal_m4_deps): Adjust.
8629 * aclocal.m4: Regenerate.
8630 * configure: Regenerate.
8631 * configure.ac: Adjust AC_OUTPUT output.
8632
8633 2012-04-19 Yao Qi <yao@codesourcery.com>
8634
8635 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8636 (vec.o): New rule.
8637 * vec.c: Move it ...
8638 * common/vec.c: ... here.
8639 * vec.h: Move it ...
8640 * common/vec.h: ... here.
8641
8642 2012-04-19 Yao Qi <yao@codesourcery.com>
8643
8644 * gdb-code-style.el: New.
8645
8646 2012-04-18 Pedro Alves <palves@redhat.com>
8647
8648 Update gnulib from latest git.
8649 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8650
8651 * gnulib/Makefile.am: Update.
8652 * gnulib/dummy.c: Update.
8653 * gnulib/extra/arg-nonnull.h: Update.
8654 * gnulib/extra/c++defs.h: Update.
8655 * gnulib/extra/update-copyright: Update.
8656 * gnulib/extra/warn-on-use.h: Update.
8657 * gnulib/inttypes.in.h: Update.
8658 * gnulib/m4/00gnulib.m4: Update.
8659 * gnulib/m4/extensions.m4: Update.
8660 * gnulib/m4/gnulib-cache.m4: Update.
8661 * gnulib/m4/gnulib-common.m4: Update.
8662 * gnulib/m4/gnulib-comp.m4: Update.
8663 * gnulib/m4/gnulib-tool.m4: Update.
8664 * gnulib/m4/include_next.m4: Update.
8665 * gnulib/m4/inttypes-pri.m4: Update.
8666 * gnulib/m4/inttypes.m4: Update.
8667 * gnulib/m4/longlong.m4: Update.
8668 * gnulib/m4/memchr.m4: Update.
8669 * gnulib/m4/memmem.m4: Update.
8670 * gnulib/m4/mmap-anon.m4: Update.
8671 * gnulib/m4/multiarch.m4: Update.
8672 * gnulib/m4/onceonly.m4: Update.
8673 * gnulib/m4/stddef_h.m4: Update.
8674 * gnulib/m4/stdint.m4: Update.
8675 * gnulib/m4/string_h.m4: Update.
8676 * gnulib/m4/warn-on-use.m4: Update.
8677 * gnulib/m4/wchar_h.m4: Update.
8678 * gnulib/m4/wchar_t.m4: Update.
8679 * gnulib/m4/wint_t.m4: Update.
8680 * gnulib/memchr.c: Update.
8681 * gnulib/memmem.c: Update.
8682 * gnulib/stddef.in.h: Update.
8683 * gnulib/stdint.in.h: Update.
8684 * gnulib/str-two-way.h: Update.
8685 * gnulib/string.in.h: Update.
8686 * gnulib/wchar.in.h: Update.
8687
8688 * gnulib/extra/arg-nonnull.h: Delete.
8689 * gnulib/extra/c++defs.h: Delete.
8690 * gnulib/extra/warn-on-use.h: Delete.
8691 * gnulib/m4/wchar_h.m4: Delete.
8692 * gnulib/m4/wint_t.m4: Delete.
8693 * gnulib/wchar.in.h: Delete.
8694
8695 * gnulib/extra/snippets/arg-nonnull.h: New.
8696 * gnulib/extra/snippets/c++defs.h: New.
8697 * gnulib/extra/snippets/warn-on-use.h: New.
8698
8699 * aclocal.m4: Regenerate.
8700 * config.in: Regenerate.
8701 * configure: Regenerate.
8702 * gnulib/Makefile.in: Regenerate.
8703
8704 2012-04-18 Pedro Alves <palves@redhat.com>
8705
8706 Reimport the update-copyright module from gnulib
8707 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8708
8709 * configure: Regenerate.
8710 * gnulib/Makefile.am: Update.
8711 * gnulib/Makefile.in: Regenerate.
8712 * gnulib/extra/update-copyright: Update.
8713 * gnulib/m4/gnulib-cache.m4: Update.
8714 * gnulib/m4/gnulib-comp.m4: Update.
8715
8716 2012-04-18 Tristan Gingold <gingold@adacore.com>
8717
8718 * configure.ac (aix): Put -lpthread into libs.
8719 * configure: Regenerate.
8720
8721 2012-04-18 Tom Tromey <tromey@redhat.com>
8722
8723 * linespec.c (convert_linespec_to_sals): Don't use
8724 SYMBOL_OBJ_SECTION.
8725 (compare_msymbols): Arguments are minsym_and_objfile, not
8726 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8727
8728 2012-04-18 Pedro Alves <palves@redhat.com>
8729
8730 Revert gnulib/ part of:
8731 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8732 Copyright year update in most files (performed by copyright.sh).
8733
8734 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8735
8736 Fix 64-bit constants on 32-bit hosts.
8737 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8738 from unsigned long to ULONGEST.
8739 (read_signed_leb128): Change declaration return type from long to
8740 LONGEST.
8741 (dwarf2_const_value_attr): Change declaration parameter value from long
8742 to LONGEST.
8743 (dwarf2_compute_name): Change variable value from long to LONGEST.
8744 (read_unsigned_leb128): Change return type, variable result and some
8745 casts from unsigned long to ULONGEST.
8746 (read_signed_leb128): Change return type, variable result and some
8747 casts from long to LONGEST.
8748 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8749 value from long to LONGEST.
8750 (dwarf2_const_value): Change variable value from long to LONGEST.
8751 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8752 plongest and hex_string.
8753 * symtab.h (struct general_symbol_info): Change ivalue from long to
8754 LONGEST, remove the comment.
8755 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8756 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8757
8758 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8759
8760 PR symtab/7259:
8761 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8762 * ada-lang.c (ada_discrete_type_high_bound)
8763 (ada_discrete_type_low_bound): Fix function comment. Use
8764 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8765 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8766 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8767 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8768 Use TYPE_FIELD_ENUMVAL.
8769 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8770 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8771 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8772 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8773 TYPE_CODE_ENUM.
8774 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8775 * dwarf2read.c (process_enumeration_scope): Likewise.
8776 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8777 field.bitpos.
8778 (class StructMainTypePrettyPrinter): Support also
8779 FIELD_LOC_KIND_ENUMVAL.
8780 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8781 TYPE_CODE_ENUM.
8782 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8783 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8784 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8785 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8786 field enumval.
8787 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8788 accommodate enumval.
8789 (struct call_site): Adjust loc_kind to accommodate enumval.
8790 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8791 (TYPE_FIELD_ENUMVAL): New macros.
8792 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8793 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8794 TYPE_CODE_ENUM.
8795 * p-typeprint.c (pascal_type_print_base): Likewise.
8796 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8797 enumval.
8798 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8799 * python/py-type.c (convert_field): New variable addrstring. Use
8800 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8801 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8802 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8803 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8804 TYPE_CODE_ENUM.
8805 * valprint.c (generic_val_print): Likewise.
8806
8807 2012-04-17 Doug Evans <dje@google.com>
8808
8809 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8810
8811 * dwarf2read.c: Whitespace fixes.
8812 (lookup_signatured_type): Tweak comment.
8813 (get_die_type_at_offset): Fix comment.
8814
8815 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8816
8817 * xcoffread.c (xcoff_secnum_to_sections): New function.
8818 (secnum_to_section, secnum_to_bfd_section): Reimplement
8819 using xcoff_secnum_to_sections. Rename "secnum" parameter
8820 into "n_scnum".
8821 (RECORD_MINIMAL_SYMBOL): Delete.
8822 (record_minimal_symbol): New function.
8823 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8824 by call to record_minimal_symbol and set misc_func_recorded
8825 to 1. Set last_csect_sec to the XCOFF section index instead
8826 of GDB's section_offset index. Update calls to
8827 prim_record_minimal_symbol_and_info to pass the BFD section
8828 as well.
8829
8830 2012-04-17 Joel Brobecker <brobecker@adacore.com>
8831
8832 * xcoffread.c (read_xcoff_symtab): Delete variables
8833 last_csect_val and last_csect_sec and associated code.
8834
8835 2012-04-17 Doug Evans <dje@google.com>
8836
8837 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8838 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8839 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8840 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8841
8842 * cleanups.h: New file.
8843 * cleanups.c: New file.
8844 * Makefile.in (SFILES): Add cleanups.c.
8845 (HFILES_NO_SRCDIR): Add cleanups.h.
8846 (COMMON_OBS): Add cleanups.o.
8847 * defs.h (struct cleanup): Moved to cleanups.h.
8848 (do_cleanups,do_final_cleanups): Ditto.
8849 (discard_cleanups,discard_final_cleanups): Ditto
8850 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8851 (save_cleanups,save_final_cleanups): Ditto.
8852 (restore_cleanups,restore_final_cleanups): Ditto.
8853 (null_cleanup): Ditto.
8854 (make_my_cleanup,make_my_cleanup2): Ditto.
8855 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8856 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8857 (do_cleanups,do_final_cleanups): Ditto.
8858 (discard_cleanups,discard_final_cleanups): Ditto
8859 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8860 (save_cleanups,save_final_cleanups): Ditto.
8861 (restore_cleanups,restore_final_cleanups): Ditto.
8862 (null_cleanup): Ditto.
8863 (make_my_cleanup,make_my_cleanup2): Ditto.
8864 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8865
8866 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8867 make_my_cleanup.
8868 (make_cleanup_dyn_string_delete): Ditto.
8869 (make_cleanup_ui_file_delete): Ditto.
8870 (make_cleanup_ui_out_redirect_pop): Ditto.
8871 (make_cleanup_free_section_addr_info): Ditto.
8872 (make_cleanup_restore_integer): Ditto.
8873 (make_cleanup_unpush_target): Ditto.
8874 (make_cleanup_value_free_to_mark): Ditto.
8875 (make_cleanup_value_free): Ditto.
8876 (make_cleanup_free_so): Ditto.
8877
8878 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8879
8880 New option "set debug auto-load".
8881 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8882 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8883 (auto_load_safe_path_vec_update)
8884 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8885 if DEBUG_AUTO_LOAD.
8886 (file_is_auto_load_safe): New parameters debug_fmt and ....
8887 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8888 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8889 caller by explanatory string.
8890 (_initialize_auto_load): Register "set debug auto-load".
8891 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8892 and ....
8893 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8894 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8895 by explanatory string.
8896 * main.c (captured_main): Likewise.
8897 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8898 (source_section_scripts): Likewise.
8899
8900 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8901
8902 New option "set auto-load safe-path".
8903 * NEWS: New commands "set auto-load safe-path"
8904 and "show auto-load safe-path".
8905 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8906 (auto_load_safe_path, auto_load_safe_path_vec)
8907 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8908 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8909 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8910 (source_gdb_script_for_objfile): New variable is_safe. Call
8911 file_is_auto_load_safe. Return if it is not.
8912 (struct loaded_script): New field loaded.
8913 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8914 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8915 output "Missing" to "No".
8916 (_initialize_auto_load): New variable cmd. Initialize
8917 auto_load_safe_path. Register "set auto-load safe-path",
8918 "show auto-load safe-path" and "add-auto-load-safe-path".
8919 * auto-load.h (maybe_add_script): Add parameter loaded.
8920 (file_is_auto_load_safe): New declaration.
8921 * config.in: Regenerate.
8922 * configure: Regenerate.
8923 * configure.ac: New parameters --with-auto-load-safe-path
8924 and --without-auto-load-safe-path.
8925 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8926 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8927 * main.c (captured_main): Check file_is_auto_load_safe for
8928 LOCAL_GDBINIT.
8929 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8930 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8931 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8932 not.
8933
8934 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8935
8936 auto-load: Implementation.
8937 * NEWS: New descriptions for "info auto-load",
8938 "info auto-load gdb-scripts", "info auto-load python-scripts",
8939 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8940 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8941 and "show auto-load-scripts". New description for "set auto-load",
8942 "show auto-load", "set auto-load gdb-scripts",
8943 "show auto-load gdb-scripts", "set auto-load python-scripts",
8944 "show auto-load python-scripts", "set auto-load local-gdbinit",
8945 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8946 "show auto-load libthread-db".
8947 * auto-load.c: Remove include python/python-internal.h. Add includes
8948 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8949 cli/cli-setshow.h.
8950 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8951 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8952 (gdbpy_global_auto_load): Rename to ...
8953 (global_auto_load): ... here.
8954 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8955 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8956 (script_language_gdb, source_gdb_script_for_objfile): New.
8957 (struct loaded_script): New field language.
8958 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8959 LANGUAGE.
8960 (maybe_add_script): Add parameter language. Drop redundant
8961 entry.full_path initialization. Initialize entry.language and
8962 (*slot)->language.
8963 (auto_load_objfile_script): Change parameter suffix to language.
8964 Remove the call of maybe_add_script.
8965 Call language->source_script_for_objfile.
8966 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8967 New.
8968 (collect_matching_scripts): Adjust it for
8969 struct collect_matching_scripts_data.
8970 (auto_load_info_scripts_pattern_nl): New variable.
8971 (info_auto_load_scripts): Rename to ...
8972 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8973 for struct collect_matching_scripts_data.
8974 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8975 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8976 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8977 (auto_load_info_cmdlist_get): New.
8978 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8979 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8980 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8981 "info auto-load local-gdbinit".
8982 * auto-load.h (struct script_language): New.
8983 (gdbpy_global_auto_load): Rename to ...
8984 (global_auto_load): ... here.
8985 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8986 (auto_load_local_gdbinit_loaded): New declarations.
8987 (maybe_add_script): New parameter language.
8988 (auto_load_objfile_script): Change parameter suffix to language.
8989 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8990 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8991 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8992 declarations.
8993 * linux-thread-db.c: Include auto-load.h and ctype.h.
8994 (auto_load_thread_db, show_auto_load_thread_db): New.
8995 (struct thread_db_info): New field filename.
8996 (delete_thread_db_info): Call xfree for FILENAME.
8997 (try_thread_db_load): Initialize FILENAME.
8998 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8999 if !AUTO_LOAD_THREAD_DB.
9000 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
9001 (_initialize_thread_db): Install auto_load_thread_db
9002 as "set auto-load libthread-db" and install info_auto_load_libthread_db
9003 as "info auto-load libthread-db".
9004 * main.c (captured_main): Rename gdbpy_global_auto_load to
9005 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
9006 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
9007 (print_gdb_help): Extend the help for 'local init file'.
9008 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
9009 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
9010 (auto_load_scripts): Rename to ...
9011 (auto_load_python_scripts): ... here, update the comment.
9012 (gdbpy_load_auto_script_for_objfile): New declaration.
9013 (show_auto_load_python_scripts, script_language_python)
9014 (gdbpy_load_auto_script_for_objfile): New.
9015 (source_section_scripts): Refactor the code.
9016 (load_auto_scripts_for_objfile): Rename to ...
9017 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
9018 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
9019 (info_auto_load_python_scripts): New.
9020 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
9021 Rename "set auto-load-scripts" to "set auto-load python-scripts".
9022 Register "set auto-load-scripts" as its deprecated alias. Register
9023 "info auto-load python-scripts". Register "info auto-load-scripts" as
9024 its deprecated alias.
9025 (load_auto_scripts_for_objfile): Rename to ...
9026 (gdbpy_load_auto_scripts_for_objfile): ... here.
9027 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
9028 (gdbpy_load_auto_scripts_for_objfile): ... here.
9029
9030 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9031
9032 auto-load: Move files.
9033 * Makefile.in (SFILES): Add auto-load.c.
9034 (HFILES_NO_SRCDIR): Add auto-load.h.
9035 (COMMON_OBS): Add auto-load.o.
9036 (distclean): Change .gdbinit for gdb-gdb.gdb.
9037 * auto-load.c: New file, with parts from python/py-auto-load.c.
9038 * auto-load.h: New file, with parts from python/python.h.
9039 * configure: Regenerate.
9040 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
9041 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
9042 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
9043 * main.c: Include auto-load.h.
9044 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
9045 command.h, observer.h and progspace.h to auto-load.c. Add include
9046 auto-load.h.
9047 (gdbpy_global_auto_load, struct auto_load_pspace_info)
9048 (struct loaded_script, auto_load_pspace_data)
9049 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
9050 (hash_loaded_script_entry, eq_loaded_script_entry)
9051 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
9052 (maybe_add_script): Move to auto-load.c.
9053 (source_section_scripts): Change maybe_add_script parameters passing,
9054 use script_not_found_warning_print.
9055 (clear_section_scripts, auto_load_objfile_script)
9056 (auto_load_new_objfile, loaded_script_ptr)
9057 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
9058 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
9059 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
9060 auto_load_new_objfile and info_auto_load_scripts initizations to
9061 auto-load.c.
9062 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
9063
9064 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9065
9066 Code cleanup.
9067 * charset.c (find_charset_names): Remove variables ix and elt.
9068 Use free_char_ptr_vec.
9069 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
9070 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9071 debugdir_end. New variable debugdir_len.
9072 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
9073 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
9074 declarations.
9075 * progspace.c (clear_program_space_solib_cache): Remove variables ix
9076 and elt. Use free_char_ptr_vec.
9077 * source.c (add_path): Remove variables argv, arg and argv_index.
9078 New variables dir_vec, back_to, ix and name.
9079 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
9080 make_cleanup_freeargv. Remove variable separator. Simplify the code
9081 no longer expecting DIRNAME_SEPARATOR.
9082 (openp): Remove variable p, p1 and len. New variables dir_vec,
9083 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
9084 no longer expecting DIRNAME_SEPARATOR.
9085 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
9086 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9087 debugdir_end.
9088 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9089 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9090 (dirnames_to_char_ptr_vec): New functions.
9091
9092 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9093
9094 Code cleanup.
9095 * source.c (add_path): Remove always true conditional 'p == 0' and
9096 unindent its code block.
9097
9098 2012-04-17 Pedro Alves <palves@redhat.com>
9099
9100 * gdbtypes.h (FIELD_BITPOS): Rename to ...
9101 (FIELD_BITPOS_LVAL): ... this.
9102 (FIELD_BITPOS): New.
9103 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9104 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9105 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9106 SET_FIELD_BITPOS.
9107 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9108 SET_FIELD_BITPOS.
9109 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9110 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9111 * target-descriptions.c (tdesc_gdb_type): Adjust to use
9112 SET_FIELD_BITPOS.
9113
9114 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9115
9116 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9117 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9118 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9119 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9120 * jv-lang.c (java_link_class_type): Likewise, once.
9121 * stabsread.c (read_enum_type): Likewise.
9122
9123 2012-04-16 Yao Qi <yao@codesourcery.com>
9124
9125 * common/agent.c (agent_run_command): Add one more parameter `len'.
9126 Update callers.
9127 * common/agent.h: Update declaration.
9128 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9129 Update.
9130 (linux_child_static_tracepoint_markers_by_strid): Ditto.
9131
9132 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
9133
9134 PR mi/13393
9135 * value.c (value_actual_type): New function.
9136 * value.h (value_actual_type): New declaration.
9137 * varobj.c (update_type_if_necessary): New function.
9138 (varobj_create): Call value_actual_type instead of
9139 value_type.
9140 (install_dynamic_child): distinct changed and type changed MI variable
9141 objects.
9142 (update_dynamic_varobj_children): Updated for install_dynamic_child
9143 change. All callers updated.
9144 (varobj_update): Support for MI variable object type change if
9145 the value changed and RTTI is used to determine the type.
9146 (create_child_with_value): Call value_actual_type instead of
9147 value_type.
9148 (adjust_value_for_child_access): Extended with a new parameter which
9149 specify whether the given value should be casted to enclosing type.
9150 All callers updated.
9151
9152 2012-04-14 Yao Qi <yao@codesourcery.com>
9153
9154 Import gnulib module inttypes from git
9155 (250b80067c1e1d8faa0c42fb572f721975b929c5)
9156 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
9157 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9158 gnulib/m4/inttypes-pri.m4
9159 * aclocal.m4, config.in, configure: Regenerated.
9160 * gnulib/Makefile.am: Update.
9161 * gnulib/Makefile.in: Update.
9162 * gnulib/m4/gnulib-cache.m4: Update.
9163 * gnulib/m4/gnulib-comp.m4: Update.
9164 * gnulib/inttypes.in.h: New.
9165 * gnulib/m4/inttypes-pri.m4: New.
9166 * gnulib/m4/inttypes.m4: New.
9167
9168 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
9169
9170 * infrun.c (resume): Update PC address to the real PC after
9171 preparing to do displaced stepping.
9172
9173 2012-04-12 Doug Evans <dje@google.com>
9174
9175 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9176 All callers updated.
9177
9178 2012-04-12 Mark Kettenis <kettenis@gnu.org>
9179
9180 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9181
9182 2012-04-12 Doug Evans <dje@google.com>
9183
9184 * dwarf2read.c (create_all_type_units): Renamed from
9185 create_debug_types_hash_table. All callers updated.
9186
9187 * dwarf2read.c (create_signatured_type_table_from_index): Rename
9188 local type_sig to sig_type, type_offset to type_offset_in_tu.
9189 (hash_signatured_type): Renamed from hash_type_signature,
9190 all callers updated.
9191 (eq_signatured_type): Renamed from eq_type_signature,
9192 all callers updated.
9193 (create_debug_types_hash_table): Rename local type_sig to sig_type.
9194 (process_enumeration_scope): Ditto.
9195 (lookup_signatured_type_at_offset): Ditto.
9196 (load_full_type_unit, read_signatured_type): Ditto.
9197
9198 2012-04-12 Yao Qi <yao@codesourcery.com>
9199
9200 * remote.c (async_remote_interrupt): Correct function name in
9201 debug message.
9202 (async_remote_interrupt_twice): Ditto.
9203
9204 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
9205
9206 * source.c (find_and_open_source): Consistently pass resulting
9207 full path through xfullpath.
9208
9209 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9210
9211 Provide more specific displaced-stepping memory error message.
9212 * infrun.c (displaced_step_prepare): New variable status. Call
9213 target_read_memory instead of read_memory, provide more specific
9214 error message.
9215
9216 2012-04-11 Tristan Gingold <gingold@adacore.com>
9217
9218 PR gdb/13901
9219 * darwin-nat.c (darwin_execvp): Revert previous patch.
9220
9221 2012-04-11 Tristan Gingold <gingold@adacore.com>
9222
9223 PR gdb/13901
9224 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9225 in case of change.
9226
9227 2012-04-11 Tristan Gingold <gingold@adacore.com>
9228
9229 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9230 warning.
9231
9232 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9233
9234 New command 'explore' which helps explore values and types in
9235 scope.
9236 * NEWS: Add an entry about the new 'explore' command.
9237 * data-directory/Makefile.in: Add gdb/command/explore.py
9238 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
9239 command using the GDB Python API.
9240
9241 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9242
9243 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9244 extension in jump target calculation.
9245
9246 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9247
9248 * mips-tdep.c (mips32_next_pc): Handle JALX.
9249
9250 2012-04-10 Yao Qi <yao@codesourcery.com>
9251
9252 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9253
9254 2012-04-10 Yao Qi <yao@codesourcery.com>
9255
9256 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9257 and gnulib/m4/gnulib-tool.m4.
9258
9259 2012-04-10 Doug Evans <dje@google.com>
9260
9261 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9262 (load_partial_dies): Clarify comment.
9263 (find_partial_die): Support rereading type units.
9264 Clarify CU handling, if we know offset is in CU, don't search for the
9265 containing CU. Add comment regarding memory waste.
9266
9267 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9268
9269 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9270 i386/x32-avx and i386/x32-avx-linux.
9271 (i386/x32-expedite): New.
9272 (i386/x32-linux-expedite): Likewise.
9273 (i386/x32-avx-expedite): Likewise.
9274 (i386/x32-avx-linux-expedite): Likewise.
9275 ($(outdir)/i386/x32.dat): Likewise.
9276 ($(outdir)/i386/x32-linux.dat): Likewise.
9277 ($(outdir)/i386/x32-avx.dat): Likewise.
9278 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9279
9280 * features/i386/x32-avx-linux.xml: New file.
9281 * features/i386/x32-avx.xml: Likewise.
9282 * features/i386/x32-core.xml: Likewise.
9283 * features/i386/x32-linux.xml: Likewise.
9284 * features/i386/x32.xml: Likewise.
9285
9286 * features/i386/x32-avx-linux.c: New. Generated.
9287 * features/i386/x32-avx.c: Likewise.
9288 * features/i386/x32-linux.c: Likewise.
9289 * features/i386/x32.c: Likewise.
9290 * regformats/i386/x32-avx-linux.dat: Likewise.
9291 * regformats/i386/x32-avx.dat: Likewise.
9292 * regformats/i386/x32-linux.dat: Likewise.
9293 * regformats/i386/x32.dat: Likewise.
9294
9295 2012-04-10 Tristan Gingold <gingold@adacore.com>
9296
9297 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9298 code to kill the inferior.
9299
9300 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9301
9302 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9303 defines.
9304 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9305 defines.
9306 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
9307 (yyvsp): New defines.
9308 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9309 defines.
9310 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9311 defines.
9312 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9313 defines.
9314 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9315 defines.
9316 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9317 defines.
9318
9319 2012-04-09 Mark Kettenis <kettenis@gnu.org>
9320
9321 * sparc64-tdep.c (sparc64_store_arguments)
9322 (sparc64_store_arguments): Fix coding style.
9323
9324 2012-04-07 Mark Kettenis <kettenis@gnu.org>
9325
9326 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9327 complex floats, adjust some related comments and tighten a related
9328 assertion.
9329 (sparc64_extract_return_value): Handle complex floats.
9330
9331 2012-04-07 Doug Evans <dje@google.com>
9332
9333 * dwarf2read.c (load_partial_dies): Change condition to assert.
9334
9335 2012-04-06 Doug Evans <dje@google.com>
9336
9337 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9338 "mov %rsp,%rbp".
9339
9340 2012-04-05 Kevin Buettner <kevinb@redhat.com>
9341
9342 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9343 fencepost error.
9344 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9345 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9346 architecture.
9347
9348 2012-04-05 Keith Seitz <keiths@redhat.com>
9349
9350 * linespec.c (decode_compound): Remove.
9351 (enum offset_relative_sign): New enum.
9352 (struct line_offset): New struct.
9353 (struct linespec): New struct.
9354 (struct linespec_state): Move file_symtabs,
9355 user_filename, and user_function into struct linespec.
9356 Make result an anonymous struct holding vectors of
9357 symbolp and minsym_and_objfile_d.
9358 Add language member.
9359 (enum ls_token_type): New enum.
9360 (linespec_keywords): New array.
9361 (struct ls_token): New struct.
9362 (struct ls_parser): New struct.
9363 (linespec_lexer_lex_number): New function.
9364 (linespec_lexer_lex_keyword): New function.
9365 (is_ada_operator): New function.
9366 (skip_quote_char): New function.
9367 (copy_token_string): New function.
9368 (is_closing_quote_enclosed): New function.
9369 (find_parameter_list_end): New function.
9370 (linespec_lexer_lex_string): New function.
9371 (linespec_lexer_lex_one): New function.
9372 (linespec_lexer_consume_token): New function.
9373 (linespec_lexer_peek_token): New function.
9374 (cplusplus_error): Remove unused function.
9375 (find_methods): Update comment.
9376 (find_toplevel_char): Return const.
9377 (is_objc_method_format): Remove unused function.
9378 (find_toplevel_string): New function.
9379 (is_linespec_boundary): Remove.
9380 (symbol_not_found_error): New function.
9381 (find_method_overload_end): Remove function.
9382 (unexpected_linespec_error): New function.
9383 (keep_name_info): Remove.
9384 (linespec_parse_line_offset): New function.
9385 (linespec_parse_basic): New function.
9386 (canonicalize_linespec): New function.
9387 (decode_line_internal): Remove.
9388 (create_sals_line_offset): New function adapted from
9389 decode_all_digits.
9390 (convert_linespec_to_sals): New function.
9391 (parse_linespec): New function.
9392 (linespec_parser_new): New function.
9393 (linespec_state_destructor): Change parameter type to
9394 struct linespec_state *.
9395 Add language parameter.
9396 Remove freeing of moved members.
9397 (linespec_parser_delete): New function.
9398 (decode_line_full): Use parse_linespec and linespec_parser_new.
9399 (decode_line_1): Likewise.
9400 (decode_indirect): Rename to ...
9401 (linespec_expression_to_pc): ... this and rewrite
9402 to simply find CORE_ADDR, storing this result for later
9403 conversion to SALs.
9404 (locate_first_half): Remove.
9405 (deocde_objc): Add parameter LS.
9406 Initialize new struct collect_info members.
9407 Handle minimal symbols, too.
9408 (decode_compound): Delete.
9409 (lookup_prefix_sym): Rewrite.
9410 (compare_msymbols): New function.
9411 (find_method): Rewrite.
9412 Do not call cplusplus_error.
9413 (symtabs_from_filename): Rewrite.
9414 (collect_function_symbols): Delete.
9415 (find_function_symbols): Rewrite without ARGPTR-style
9416 processing.
9417 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9418 (decode_dollar): Adapted and renamed to ...
9419 (linespec_parse_variable): ... this.
9420 (find_linespec_symbols): New function.
9421 (decode_label): Adapted and renamed to ...
9422 (find_label_symbols): ... this.
9423 (decode_digits_list_mode): Add and use LS argument.
9424 (decode_digits_ordinary): Likewise.
9425 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9426 If in list mode, allow any symbol class. Otherwise, only
9427 permit LOC_BLOCK symbols.
9428 (minsym_found): Update comments.
9429 (search_minsyms_for_name): Do not convert the matching symbol
9430 into a SAL. Simply push the symbol and objfile into the
9431 result vector.
9432 (decode_variable): Delete. Contents adapted into
9433 find_linespec_symbols.
9434
9435 * cp-support.c (SKIP_SPACE): Remove.
9436 (operator_tokens): Remove unused global.
9437 (cp_validate_operator): Remove.
9438 * cp-support.h (cp_validate_operator): Remove declaration.
9439
9440 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9441
9442 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9443 for TYPE_VPTR_FIELDNO.
9444 * valprint.c (valprint_check_validity): Make it global, move the
9445 function comment ...
9446 * value.h (valprint_check_validity): ... to this new declaration.
9447
9448 2012-04-02 Tristan Gingold <gingold@adacore.com>
9449
9450 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9451 the STATE32 api for i386 state.
9452 (i386_darwin_store_inferior_registers): Likewise.
9453
9454 2012-04-02 Tristan Gingold <gingold@adacore.com>
9455
9456 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9457 SS offset.
9458 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9459 format_string.
9460
9461 2012-04-02 Tristan Gingold <gingold@adacore.com>
9462
9463 PR gdb/13901
9464 * darwin-nat.c (darwin_execvp): Set binary preference.
9465
9466 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9467
9468 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9469
9470 2012-03-30 Tom Tromey <tromey@redhat.com>
9471
9472 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9473 of TRY_CATCH. Fix error handling.
9474 * python/py-value.c (convert_value_from_python): Move 'old'
9475 declaration to innermost scope.
9476
9477 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9478 Andrey Smirnov <andrew.smirnov@gmail.com>
9479
9480 -Wshadow warning fix.
9481 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9482 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9483 Adjust code accordingly.
9484
9485 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9486
9487 * ada-lang.c (symbol_completion_add): Rename parameter
9488 "encoded" into "encoded_p". Ajust code and documentation
9489 accordingly.
9490
9491 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9492 Andrey Smirnov <andrew.smirnov@gmail.com>
9493
9494 -Wshadow warning fix.
9495 * ada-lang.c (symbol_completion_add): Rename parameter
9496 "wild_match" into wild_match_p. Update code and documentation
9497 accordingly.
9498
9499 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9500
9501 * ada-lang.c (symbol_completion_match): Rename parameter
9502 "encoded" into "encoded_p". Ajust code and documentation
9503 accordingly.
9504
9505 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9506 Andrey Smirnov <andrew.smirnov@gmail.com>
9507
9508 -Wshadow warning fix.
9509 * ada-lang.c (symbol_completion_match): Rename parameter
9510 "wild_match" into "wild_match_p". Adjust code and function
9511 documentation accordingly.
9512
9513 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9514 Andrey Smirnov <andrew.smirnov@gmail.com>
9515
9516 -Wshadow warning fix.
9517 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9518 "symbol_info" into "info". Adjust code accordingly.
9519 (ada_lookup_symbol): Likewise.
9520
9521 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9522
9523 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9524 of this function's documentation.
9525
9526 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9527 Andrey Smirnov <andrew.smirnov@gmail.com>
9528
9529 -Wshadow warning fix.
9530 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9531 variable into "wild_match_p". Adjust code accordingly.
9532
9533 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9534 Andrey Smirnov <andrew.smirnov@gmail.com>
9535
9536 -Wshadow warning fix.
9537 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9538 parameter into "wild_match_p". Adjust code accordingly.
9539 Document this parameter in the function description.
9540
9541 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9542 Andrey Smirnov <andrew.smirnov@gmail.com>
9543
9544 -Wshadow warning fix.
9545 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9546 "wild_match" parameter to "wild_match_p" (-Wshadow).
9547
9548 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9549
9550 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9551 in function documentation.
9552
9553 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9554 Andrey Smirnov <andrew.smirnov@gmail.com>
9555
9556 -Wshadow warning fix.
9557 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9558 variable into wild_match_p. Adjust code accordingly.
9559
9560 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9561 Andrey Smirnov <andrew.smirnov@gmail.com>
9562
9563 * ada-valprint.c (ada_val_print_1): Move the code handling
9564 TYPE_CODE_ENUM inside its own lexical block. Declare
9565 variables len and val there, instead of in the function's
9566 top level block. Avoid declaring deref_val again in a way
9567 that shadows another variable of the same name declared
9568 in one of the up-level blocks. Just re-use the up-level
9569 variable instead.
9570
9571 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9572
9573 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9574 Replace block_found argument by symbol_info. Adjust
9575 implementation accordingly. Add function documentation.
9576 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9577 Fix documentation.
9578 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9579 * ada-exp.y (write_object_renaming): Adjust to new
9580 ada_lookup_encoded_symbol API.
9581
9582 2012-03-29 Joel Brobecker <brobecker@adacore.com>
9583
9584 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9585 documentation.
9586
9587 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
9588
9589 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9590 (v850_register_name): Add the mpu and fpu register names.
9591 (v850e_register_name): Add the mpu and fpu register names.
9592 (v850e2_register_name): New function.
9593 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
9594 bfd_mach_v850e2v3.
9595
9596 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9597
9598 * NEWS: Add entry for Ada varobj support.
9599
9600 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9601
9602 * varobj.c (default_value_is_changeable_p): New function,
9603 extracted from varobj_value_is_changeable_p. Add declaration.
9604 (ada_value_is_changeable_p): New function, extracted from
9605 varobj_value_is_changeable_p. Add declaration.
9606 (struct language_specific): New field "value_is_changeable_p".
9607 (languages): Add entries for new field.
9608 (varobj_create): Set language before calling install_new_value.
9609 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9610 "value_is_changeable_p" language callback.
9611
9612 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9613
9614 * ada-varobj.h, ada-varobj.c: New files.
9615 * Makefile.in (SFILES): Add ada-varobj.c.
9616 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9617 (COMMON_OBS): Add ada-varobj.o.
9618
9619 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9620
9621 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9622 (struct language_specific): New field "value_has_mutated".
9623 (languages): Set field "value_has_mutated" in each entry of array.
9624 (varobj_value_has_mutated): New function.
9625 (varobj_udpdate): Add handling of type mutation.
9626 (value_of_root): Add handling of type mutation.
9627 (ada_value_has_mutated): New function.
9628
9629 2012-03-28 Pedro Alves <palves@redhat.com>
9630
9631 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9632 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9633
9634 2012-03-28 Tom Tromey <tromey@redhat.com>
9635
9636 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9637 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9638 before returning.
9639
9640 2012-03-28 Tom Tromey <tromey@redhat.com>
9641
9642 * .dir-locals.el: New file.
9643
9644 2012-03-28 Pedro Alves <palves@redhat.com>
9645
9646 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9647
9648 2012-03-28 Joel Brobecker <brobecker@adacore.com>
9649
9650 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9651 handling for r0.
9652
9653 2012-03-27 Pedro Alves <palves@redhat.com>
9654
9655 Eliminate struct ui_stream.
9656
9657 * ui-out.h (struct ui_stream): Delete.
9658 (ui_out_field_stream): Adjust prototype.
9659 (ui_out_stream_new, ui_out_stream_delete)
9660 (make_cleanup_ui_out_stream_delete): Delete declarations.
9661 * ui-out.c (ui_out_field_stream): Change prototype to take a
9662 ui_file instead of a ui_stream. Adjust.
9663 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9664 (make_cleanup_ui_out_stream_delete): Delete.
9665 * breakpoint.c (print_breakpoint_location)
9666 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9667 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9668 * disasm.c (dump_insns): Ditto.
9669 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9670 prototype.
9671 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9672 ui_stream/ui_out_stream_new.
9673 * infcmd.c (print_return_value): Ditto.
9674 * osdata.c (info_osdata_command): Don't allocate a local
9675 ui_stream.
9676 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9677 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9678 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9679 allocate a local ui_stream.
9680 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9681 instead of ui_stream/ui_out_stream_new.
9682 (list_args_or_locals): Don't allocate a local ui_stream.
9683 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9684 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9685 ui_stream/ui_out_stream_new.
9686 * cli/cli-setshow.c (do_setshow_command): Ditto.
9687
9688 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
9689
9690 * arm-linux-tdep.c (arm_linux_init_abi): Call
9691 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9692 * arm-tdep.c (arm_process_record): New function.
9693 (deallocate_reg_mem): New function.
9694 (decode_insn): New function.
9695 (thumb_record_branch): New function.
9696 (thumb_record_ldm_stm_swi(): New function.
9697 (thumb_record_misc): New function.
9698 (thumb_record_ld_st_stack): New function.
9699 (thumb_record_ld_st_imm_offset): New function.
9700 (thumb_record_ld_st_reg_offset(): New function.
9701 (thumb_record_add_sub_cmp_mov): New function.
9702 (thumb_record_shift_add_sub): New function.
9703 (arm_record_coproc_data_proc): New function.
9704 (arm_record_coproc): New function.
9705 (arm_record_b_bl): New function.
9706 (arm_record_ld_st_multiple): New function.
9707 (arm_record_ld_st_reg_offset): New function.
9708 (arm_record_ld_st_imm_offset): New function.
9709 (arm_record_data_proc_imm): New function.
9710 (arm_record_data_proc_misc_ld_str): New function.
9711 (arm_record_extension_space): New function.
9712 (arm_record_strx): New function.
9713 (sbo_sbz): New function.
9714 (struct insn_decode_record): New structure for arm insn record.
9715 (REG_ALLOC): New macro for reg allocations.
9716 (MEM_ALLOC): New macro for memory allocations.
9717 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
9718
9719 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9720
9721 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9722 (store_register): Likewise.
9723
9724 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
9725
9726 * MAINTAINERS (Write After Approval): Add myself to the list.
9727
9728 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9729
9730 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9731 Describe also the option "auto".
9732
9733 2012-03-22 Richard Henderson <rth@redhat.com>
9734
9735 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9736 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9737
9738 2012-03-22 Richard Henderson <rth@redhat.com>
9739
9740 * jit.c (jit_read_code_entry): Compute alignment and offset of
9741 int64_t member before computing entry_size.
9742
9743 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9744
9745 Python scripting: Add new method Value.referenced_value to
9746 gdb.Value which can dereference pointer as well as reference
9747 values.
9748 * NEWS: Add entry under 'Python scripting' about the new method
9749 Value.referenced_value on gdb.Value objects.
9750 * python/py-value.c (valpy_referenced_value): New function
9751 defining a new method on gdb.Value objects which can dereference
9752 pointer and reference values.
9753
9754 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9755
9756 * MAINTAINERS (Write After Approval): Add myself to the list.
9757
9758 2012-03-21 Kevin Buettner <kevinb@redhat.com>
9759
9760 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9761 in addition to "main".
9762
9763 2012-03-21 Joel Brobecker <brobecker@adacore.com>
9764
9765 * expression.h (op_name): Add declaration.
9766 * expprint.c (op_name): Remove declaration. Make non-static.
9767 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9768
9769 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9770
9771 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9772 of struct siginfo.
9773 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9774 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9775 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9776 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9777 (linux_nat_get_siginfo): Likewise.
9778 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9779 (linux_nat_get_siginfo): Likewise.
9780 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9781 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9782 * procfs.c (gdb_siginfo_t): Likewise.
9783
9784 2012-03-21 Mike Frysinger <vapier@gentoo.org>
9785
9786 * .gitignore: Ignore more files.
9787
9788 2012-03-20 Pedro Alves <palves@redhat.com>
9789
9790 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9791 returns.
9792
9793 2012-03-20 Yao Qi <yao@codesourcery.com>
9794
9795 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9796 comment.
9797
9798 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9799
9800 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9801 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9802 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9803 sect_offset.
9804 * dwarf2expr.h (cu_offset, sect_offset): New types.
9805 (struct dwarf_expr_context_funcs) <dwarf_call>
9806 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9807 sect_offset.
9808 (struct dwarf_expr_context) <len>: Improve the comment.
9809 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9810 cu_offset and sect_offset.
9811 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9812 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9813 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9814 * dwarf2loc.h: Include dwarf2expr.h.
9815 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9816 and sect_offset.
9817 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9818 Improve the comment.
9819 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9820 (struct signatured_type, struct line_header, struct partial_die_info)
9821 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9822 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9823 (get_die_type_at_offset, create_cus_from_index)
9824 (create_signatured_type_table_from_index, dw2_get_file_names)
9825 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9826 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9827 (create_debug_types_hash_table, process_psymtab_comp_unit)
9828 (load_partial_comp_unit, create_all_comp_units)
9829 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9830 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9831 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9832 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9833 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9834 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9835 (find_partial_die, read_attribute_value, lookup_die_type)
9836 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9837 (is_ref_attr): New function comment.
9838 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9839 Use cu_offset and sect_offset.
9840 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9841 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9842 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9843 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9844 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9845 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9846 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9847 sect_offset.
9848
9849 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9850
9851 Code cleanup.
9852 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9853 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9854 with xfree.
9855 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9856
9857 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9858
9859 * NEWS: Describe new options --init-command=FILE, -ix and
9860 --init-eval-command=COMMAND, -iex.
9861 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9862 CMDARG_INIT_COMMAND.
9863 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9864 "init-command", "init-eval-command", "ix" and "iex" to the variable
9865 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9866 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9867 (print_gdb_help): Describe --init-command=FILE, -ix and
9868 --init-eval-command=COMMAND, -iex.
9869
9870 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9871
9872 Code cleanup.
9873 * main.c (struct cmdarg): Move it here from main. Add more comments.
9874 (cmdarg_s, VEC (cmdarg_s)): New.
9875 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9876 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9877 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9878 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9879 of CMDARG.
9880
9881 2012-03-19 Tom Tromey <tromey@redhat.com>
9882
9883 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9884
9885 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9886
9887 PR symtab/13777
9888 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9889 GCC >=4.5.
9890
9891 2012-03-16 Chris January <chris.january@allinea.com>
9892
9893 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9894 of clear.
9895
9896 2012-03-16 Chris January <chris.january@allinea.com>
9897
9898 * source.c (add_path): Use memmove instead of strcpy because the
9899 strings overlap.
9900
9901 2012-03-16 Joel Brobecker <brobecker@adacore.com>
9902
9903 * value.h (set_value_parent): Add declaration.
9904 * value.c (set_value_parent): New function.
9905 (value_address): If VALUE->PARENT is not NULL, then use it as
9906 the base address instead of VALUE->LOCATION.address.
9907 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9908 the same as OBJ's address. Adjust V's offset accordingly.
9909 Set V's parent.
9910
9911 2012-03-16 Gary Benson <gbenson@redhat.com>
9912
9913 PR breakpoints/10738
9914 * dwarf2read.c (use_deprecated_index_sections): New global.
9915 (struct partial_die_info): New member may_be_inlined.
9916 (read_partial_die): Set may_be_inlined where appropriate.
9917 (add_partial_subprogram): Add partial symbols for partial
9918 DIEs that may be inlined.
9919 (new_symbol_full): Add inlined subroutines to the current
9920 scope.
9921 (write_psymtabs_to_index): Bump version number.
9922 (dwarf2_read_index): Read only version 6 indices unless
9923 use_deprecated_index_sections is set.
9924 * linespec.c (symbol_and_data_callback): New structure.
9925 (iterate_inline_only): New function.
9926 (iterate_over_all_matching_symtabs): New argument
9927 "include_inline". If nonzero, also call the callback for
9928 symbols representing inlined subroutines.
9929 (lookup_prefix_sym): Pass extra argument to the above.
9930 (find_function_symbols): Likewise.
9931 (add_matching_symbols_to_info): Likewise.
9932 * NEWS: Mention that GDB can now set breakpoints on inlined
9933 functions.
9934
9935 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9936
9937 * p-typeprint.c (pascal_type_print_method_args):
9938 Fix display of parameter of methods.
9939
9940 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9941
9942 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9943 Add missing prototype.
9944
9945 2012-03-16 Yao Qi <yao@codesourcery.com>
9946 Jan Kratochvil <jan.kratochvil@redhat.com>
9947
9948 Fix false compilation warning.
9949 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9950
9951 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9952 Pedro Alves <pedro@codesourcery.com>
9953
9954 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9955 (arm_register_g_packet_guesses): New function.
9956 (arm_gdbarch_init): Don't force a target description with
9957 registers when the executable is detected as M-profile. Instead
9958 set gdbarch->tdep->is_m. Register `g' packet guesses.
9959 (_initialize_arm_tdep): Initialize the new target description.
9960 * features/arm-with-m-fpa-layout.xml: New description.
9961 * features/arm-with-m-fpa-layout.c: New, generated.
9962
9963 2012-03-15 Joel Brobecker <brobecker@adacore.com>
9964
9965 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9966 Update function description.
9967 (insert_bp_location): Do not wipe bl->target_info out.
9968 * mem-break.c: #include "gdb_string.h".
9969 (default_memory_insert_breakpoint): Do not call target_read_memory
9970 with a pointer to the breakpoint's shadow_contents buffer. Use
9971 a local buffer instead.
9972 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9973
9974 2012-03-15 Tom Tromey <tromey@redhat.com>
9975
9976 * NEWS: Mention "info vtbl", not "info vtable".
9977 * cp-support.c (info_vtbl_command): Fix comment.
9978 (_initialize_cp_support): Fix text.
9979
9980 2012-03-15 Tom Tromey <tromey@redhat.com>
9981
9982 * cp-valprint.c (cp_print_value_fields): Use
9983 print_function_pointer_address for vtable slot.
9984
9985 2012-03-15 Tom Tromey <tromey@redhat.com>
9986
9987 * gnu-v3-abi.c (struct value_and_voffset): New.
9988 (hash_value_and_voffset, eq_value_and_voffset)
9989 (compare_value_and_voffset, compute_vtable_size)
9990 (print_one_vtable, gnuv3_print_vtable): New functions.
9991 (init_gnuv3_ops): Initialize 'print_vtable' field.
9992 * cp-support.c (info_vtbl_command): New function.
9993 (_initialize_cp_support): Add "info vtbl".
9994 * cp-abi.h (cplus_print_vtable): Declare.
9995 (struct cp_abi_ops) <print_vtable>: New field.
9996 * cp-abi.c (cplus_print_vtable): New function.
9997 * NEWS: Update.
9998
9999 2012-03-15 Tom Tromey <tromey@redhat.com>
10000
10001 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
10002 iterate_over_symbols.
10003
10004 2012-03-14 Doug Evans <dje@google.com>
10005
10006 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
10007 DW_OP_GNU_parameter_ref.
10008
10009 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10010
10011 Fix double prompt of 'interpreter-exec mi'.
10012 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
10013 (mi_interpreter_resume): use it.
10014 (mi_execute_command_input_handler): New function.
10015 * mi/mi-main.c (mi_execute_command): Move prompt printing to
10016 mi_execute_command_input_handler.
10017
10018 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
10019
10020 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
10021 prototype.
10022 (darwin_debug_port_info): Make static.
10023 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
10024 * machoread.c (_initialize_machoread): Add prototype.
10025 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
10026 (i386_darwin_set_control, i386_darwin_get_control)
10027 i386_darwin_dr_set_addr, i386_darwin_get_addr)
10028 i386_darwin_get_status, i386_darwin_get_control):
10029 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
10030
10031 2012-03-13 Joel Brobecker <brobecker@adacore.com>
10032
10033 * ax-gdb.c (gen_usual_unary): Remove special handling of
10034 enum and bool types.
10035
10036 2012-03-13 Joel Brobecker <brobecker@adacore.com>
10037
10038 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
10039
10040 2012-03-13 Joel Brobecker <brobecker@adacore.com>
10041
10042 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
10043
10044 2012-03-13 Chris January <chris.january@allinea.com>
10045
10046 * aix-thread.c (fill_sprs): Store the floating point registers
10047 at the correct offsets into vals.
10048
10049 2012-03-13 Doug Evans <dje@google.com>
10050
10051 * NEWS: Mention symbol-reloading has been deleted.
10052 * symfile.c (symbol_reloading): Delete.
10053 (show_symbol_reloading): Delete.
10054 (_initialize_symfile): Delete set/show symbol-reloading.
10055
10056 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
10057 read_in_chain until we have successfully read it in.
10058 (load_full_comp_unit): Ditto.
10059 (read_signatured_type): Add comment.
10060
10061 2012-03-13 Chris January <chris.january@allinea.com>
10062
10063 * stabsread.c (fix_common_block): Change type of valu argument
10064 to CORE_ADDR.
10065
10066 2012-03-13 Chris January <chris.january@allinea.com>
10067
10068 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
10069 instruction.
10070
10071 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10072
10073 * common/linux-procfs.c (linux_proc_get_int): New, from
10074 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
10075 field.
10076 (linux_proc_get_tgid): Only call linux_proc_get_int.
10077 (linux_proc_get_tracerpid): New.
10078 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
10079 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
10080 linux_proc_pid_has_state.
10081 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
10082 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
10083 (linux_ptrace_attach_warnings): New.
10084 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
10085 New declaration.
10086 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
10087 (linux_nat_attach): New variables ex, buffer, message and message_s.
10088 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10089
10090 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10091
10092 * Makefile.in (linux-ptrace.o): New.
10093 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10094 from linux-nat.c.
10095 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10096 * common/linux-ptrace.c: New file.
10097 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10098 * config/arm/linux.mh: Likewise.
10099 * config/i386/linux.mh: Likewise.
10100 * config/i386/linux64.mh: Likewise.
10101 * config/ia64/linux.mh: Likewise.
10102 * config/m32r/linux.mh: Likewise.
10103 * config/m68k/linux.mh: Likewise.
10104 * config/mips/linux.mh: Likewise.
10105 * config/pa/linux.mh: Likewise.
10106 * config/powerpc/linux.mh: Likewise.
10107 * config/powerpc/ppc64-linux.mh: Likewise.
10108 * config/powerpc/spu-linux.mh: Likewise.
10109 * config/s390/s390.mh: Likewise.
10110 * config/sparc/linux.mh: Likewise.
10111 * config/sparc/linux64.mh: Likewise.
10112 * config/xtensa/linux.mh: Likewise.
10113 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10114 common/linux-procfs.c.
10115 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10116
10117 2012-03-13 Hui Zhu <teawater@gmail.com>
10118 Pedro Alves <palves@redhat.com>
10119
10120 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
10121 CREATE_BREAKPOINT_FLAGS_INSERTED.
10122 (create_breakpoint_sal, create_breakpoints_sal)
10123 (base_breakpoint_create_breakpoints_sal)
10124 (tracepoint_create_breakpoints_sal)
10125 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
10126 down.
10127 (break_command_1, handle_gnu_v3_exceptions, trace_command)
10128 (ftrace_command, strace_command): Adjust.
10129 (create_tracepoint_from_upload): Pass
10130 CREATE_BREAKPOINT_FLAGS_INSERTED.
10131 * breakpoint.h (enum breakpoint_create_flags): New.
10132 (create_breakpoint): New flags parameter.
10133 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10134 * python/py-breakpoint.c (bppy_init): Adjust.
10135 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10136 * spu-tdep.c (spu_catch_start): Adjust.
10137
10138 2012-03-13 Pedro Alves <palves@redhat.com>
10139 Hui Zhu <teawater@gmail.com>
10140 Yao Qi <yao@codesourcery.com>
10141
10142 * remote.c (struct remote_state): New field `starting_up'.
10143 (remote_start_remote): Set and clear it.
10144 (remote_can_download_tracepoint): If starting up, return false.
10145
10146 2012-03-13 Yao Qi <yao@codesourcery.com>
10147
10148 * inferior.h (struct inferior): Remove fields any_syscall_count,
10149 syscalls_counts and total_syscalls_count. Move them to new
10150 struct catch_syscall_inferior_data in breakpoint.c.
10151 * breakpoint.c: Call DEF_VEC_I(int).
10152 (struct catch_syscall_inferior_data): New.
10153 (get_catch_syscall_inferior_data): New.
10154 (catch_syscall_inferior_data_cleanup): New.
10155 (insert_catch_syscall): Update to access data in
10156 struct catch_syscall_inferior_data.
10157 (insert_catch_syscall): Likewise.
10158 (remove_catch_syscall): Likewise.
10159 (remove_catch_syscall): Likewise.
10160 (is_syscall_catchpoint_enabled): Likewise.
10161 (add_catch_command): Likewise.
10162 (_initialize_breakpoint): Register cleanup.
10163 * breakpoint.h: Removed DEF_VEC_I(int).
10164 * dwarf2loc.c: Call DEF_VEC_I(int).
10165 * mi/mi-main.c: Likewise.
10166
10167 2012-03-12 Mark Kettenis <kettenis@gnu.org>
10168
10169 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10170
10171 2012-03-12 Chris January <chris.january@allinea.com>
10172
10173 * aix-thread.c (_initialize_aix_thread): Add prototype.
10174 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10175 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10176
10177 2012-03-12 Joel Brobecker <brobecker@adacore.com>
10178
10179 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10180 include of "amd64-nat.h".
10181
10182 2012-03-12 Tom Tromey <tromey@redhat.com>
10183
10184 * buildsym.c (record_pending_block): Now static.
10185 * buildsym.h: (record_pending_block): Remove.
10186
10187 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
10188
10189 * amd64bsd-nat.c: Include amd64bsd-nat.h.
10190
10191 2012-03-09 Tom Tromey <tromey@redhat.com>
10192
10193 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10194 producer_is_gxx_lt_4_6>: New fields.
10195 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10196
10197 2012-03-09 Tom Tromey <tromey@redhat.com>
10198
10199 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10200
10201 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10202
10203 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10204 prototype.
10205
10206 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10207
10208 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10209
10210 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10211
10212 Fix -Wmissing-prototypes build.
10213 * arm-linux-nat.c (get_thread_id): Make it static.
10214 * xtensa-linux-nat.c (get_thread_id): Likewise.
10215
10216 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10217
10218 * server.c (process_point_options): If a conditional expression
10219 is found, only print a message if remote_debug is nonzero.
10220
10221 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
10222
10223 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10224 of internal error for unknown/unsupported types.
10225
10226 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10227
10228 Fix CU relative vs. absolute DIE offsets.
10229 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10230 offset to offset_in_cu.
10231 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10232 TYPE_OFFSET.
10233 (dwarf2_fetch_die_location_block): Rename parameter offset to
10234 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10235
10236 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10237
10238 * libunwind-frame.c: Rename to ...
10239 * ia64-libunwind-tdep.c: ... here.
10240 * libunwind-frame.h: Rename to ...
10241 * ia64-libunwind-tdep.h: ... here.
10242 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10243 ia64-libunwind-tdep.h.
10244 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10245 * README (--with-libunwind): Rename to ...
10246 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10247 * config.in: Regenerate.
10248 * configure: Regenerate.
10249 * configure.ac: New option --with-libunwind-ia64, make the
10250 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10251 Remove AC_DEFINE for HAVE_LIBUNWIND.
10252 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10253 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10254 Rename libunwind-frame in the general comment.
10255 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10256 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10257 Move forward declarations inside #ifndef. Rename libunwind-frame in
10258 the general comment.
10259 * ia64-tdep.c: Rename libunwind-frame.h #include to
10260 ia64-libunwind-tdep.h.
10261 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10262 (ia64_libunwind_descr): Rename libunwind-frame to
10263 ia64-libunwind-tdep in these function comments.
10264 * ia64-tdep.h: Rename libunwind-frame.h #include to
10265 ia64-libunwind-tdep.h.
10266 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10267 ia64-libunwind-tdep in that data comment.
10268
10269 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10270
10271 * libunwind-frame.h (struct frame_unwind): New declaration.
10272
10273 2012-03-08 Joel Brobecker <brobecker@adacore.com>
10274
10275 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10276 "set breakpoint condition-evaluation" command.
10277
10278 2012-03-08 Tristan Gingold <gingold@adacore.com>
10279
10280 * sparc-stub.c: Move to stubs/
10281 * sh-stub.c: Likewise.
10282 * m68k-stub.c: Likewise.
10283 * m32r-stub.c: Likewise.
10284 * i386-stub.c: Likewise.
10285
10286 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10287
10288 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10289 linux_get_siginfo_type.
10290
10291 * m68klinux-nat.c: Include "gdb_proc_service.h".
10292 (PTRACE_GET_THREAD_AREA): Define.
10293 (ps_get_thread_area): New function.
10294
10295 2012-03-08 Yao Qi <yao@codesourcery.com>
10296
10297 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10298 `xsnprintf'.
10299 (remote_query_attached): Likewise.
10300 (remote_static_tracepoint_marker_at): Likewise.
10301 (remote_set_permissions): Likewise.
10302 (remote_detach_1, extended_remote_attach_1): Likewise.
10303 (send_g_packet, remote_vkill): Likewise.
10304 (extended_remote_disable_randomization): Likewise.
10305 (remote_add_target_side_condition): Likewise.
10306 (remote_insert_breakpoint): Likewise.
10307 (remote_remove_breakpoint): Likewise.
10308 (remote_insert_watchpoint): Likewise.
10309 (remote_remove_watchpoint): Likewise.
10310 (remote_insert_hw_breakpoint): Likewise.
10311 (remote_insert_hw_breakpoint): Likewise.
10312 (remote_remove_hw_breakpoint): Likewise.
10313 (remote_download_command_source): Likewise.
10314 (remote_download_tracepoint): Likewise.
10315 (remote_download_trace_state_variable): Likewise.
10316 (remote_disable_tracepoint): Likewise.
10317 (remote_trace_set_readonly_regions): Likewise.
10318 (remote_get_tracepoint_status): Likewise.
10319 (remote_trace_find): Likewise.
10320 (remote_get_trace_state_variable_value): Likewise.
10321 (remote_set_disconnected_tracing): Likewise.
10322 (remote_set_circular_trace_buffer): Likewise.
10323 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10324 (remote_use_agent): Likewise.
10325 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10326 Update callers.
10327
10328 2012-03-07 Pedro Alves <palves@redhat.com>
10329
10330 * NEWS: Mention QProgramSignals.
10331 * inferior.h (update_signals_program_target): Declare.
10332 * infrun.c: (update_signals_program_target): New.
10333 (handle_command): Update the target of the new program signals
10334 array changes.
10335 * remote.c (PACKET_QProgramSignals): New enum.
10336 (last_program_signals_packet): New global.
10337 (remote_program_signals): New.
10338 (remote_start_remote): Update the target with the program signals
10339 list.
10340 (remote_protocol_features): Add entry for QPassSignals.
10341 (remote_open_1): Free anc clear last_program_signals_packet.
10342 (init_remote_ops): Install remote_program_signals.
10343 * target.c (update_current_target): Adjust.
10344 (target_program_signals): New.
10345 * target.h (struct target_ops) <to_program_signals>: New field.
10346 (target_program_signals): Declare.
10347
10348 2012-03-07 Pedro Alves <palves@redhat.com>
10349
10350 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10351 extensions.
10352
10353 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10354
10355 * m68klinux-nat.c (getregs_supplies): Make static.
10356 (getfpregs_supplies): Likewise.
10357 (have_ptrace_getregs): Likewise.
10358
10359 2012-03-06 Joel Brobecker <brobecker@adacore.com>
10360
10361 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10362 in call to get_die_type_at_offset.
10363
10364 2012-03-06 Stan Shebs <stan@codesourcery.com>
10365
10366 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10367 * mi/mi-cmd-disas.c: Ditto.
10368 * mi/mi-cmd-env.c: Ditto.
10369 * mi/mi-cmd-file.c: Ditto.
10370 * mi/mi-cmd-stack.c: Ditto.
10371 * mi/mi-cmd-target.c: Ditto.
10372 * mi/mi-cmd-var.c: Ditto.
10373 * mi/mi-cmds.c: Ditto.
10374 * mi/mi-cmds.h: Ditto.
10375 * mi/mi-console.c: Ditto.
10376 * mi/mi-getopt.c: Ditto.
10377 * mi/mi-getopt.h: Ditto.
10378 * mi/mi-interp.c: Ditto.
10379 * mi/mi-main.c: Ditto.
10380 * mi/mi-out.c: Ditto.
10381 * mi/mi-parse.c: Ditto.
10382 * mi/mi-parse.h: Ditto.
10383 * mi/mi-symbol-cmds.c: Ditto.
10384
10385 * mi/mi-getopt.h: Move mi_opt struct up.
10386 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10387 return.
10388 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10389
10390 2012-03-06 Tom Tromey <tromey@redhat.com>
10391
10392 * proc-service.c (ps_pglobal_lookup): Set the current program
10393 space.
10394
10395 2012-03-06 Pedro Alves <palves@redhat.com>
10396
10397 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10398
10399 2012-03-05 Joel Brobecker <brobecker@adacore.com>
10400
10401 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10402
10403 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10404
10405 Code cleanup.
10406 * common/linux-osdata.c (linux_common_core_of_thread): New function
10407 comment.
10408 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10409 call by linux_common_core_of_thread.
10410 (linux_nat_core_of_thread_1): Remove.
10411 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10412 * linux-thread-db.c: Include linux-osdata.h.
10413 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10414 linux_common_core_of_thread.
10415
10416 2012-03-05 Tom Tromey <tromey@redhat.com>
10417
10418 * value.c (value_primitive_field): Don't fetch contents for
10419 non-virtual bases.
10420
10421 2012-03-05 Tom Tromey <tromey@redhat.com>
10422
10423 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10424
10425 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
10426
10427 * s390-nat.c: Include "gregset.h".
10428
10429 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10430
10431 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10432 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10433 (libunwind_load): New variable so_error, use it for dlerror. Try to
10434 load also LIBUNWIND_SO_7.
10435
10436 2012-03-05 Pedro Alves <palves@redhat.com>
10437
10438 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10439 is not NULL, and remove resulting dead code.
10440
10441 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10442
10443 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10444 prologue to sh_analyze_prologue.
10445 (sh_analyze_prologue): Make better use of such an upper limit, and
10446 generally be more cautious about accessing memory.
10447
10448 2012-03-05 Tom Tromey <tromey@redhat.com>
10449
10450 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10451 _initialize_ia64_hpux_tdep.
10452
10453 2012-03-05 Pedro Alves <palves@redhat.com>
10454
10455 PR gdb/13766
10456
10457 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10458 the register state is clear, supply explicit zero, instead of
10459 marking the register unavailable.
10460
10461 2012-03-05 Tristan Gingold <gingold@adacore.com>
10462
10463 * NEWS: Mention OpenVMS ia64 new target.
10464
10465 2012-03-05 Tristan Gingold <gingold@adacore.com>
10466
10467 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10468 (ia64_unw_accessors, ia64_unw_rse_accessors)
10469 (ia64_libunwind_descr): Declare.
10470 * ia64-vms-tdep.c: New file.
10471 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10472 (ia64_libunwind_descr): Make them public.
10473 * configure.tgt: Add ia64-*-*vms*.
10474 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10475 (ALLDEPFILES): Add ia64-vms-tdep.c
10476
10477 2012-03-05 Tristan Gingold <gingold@adacore.com>
10478
10479 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10480 * remote.c (PACKET_qXfer_uib): New enum value.
10481 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10482 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10483 (_initialize_remote): Call add_packet_config_cmd for
10484 xfer:uib packet.
10485
10486 2012-03-05 Tristan Gingold <gingold@adacore.com>
10487
10488 * osabi.c (gdb_osabi_names): Add OpenVMS.
10489 (generic_elf_osabi_sniffer): Likewise.
10490 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
10491
10492 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10493
10494 Removed unused code.
10495 * libunwind-frame.c (libunwind_frame_unwind)
10496 (libunwind_frame_base_address): Remove.
10497 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10498
10499 2012-03-04 Yao Qi <yao@codesourcery.com>
10500
10501 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10502 remove trailing new line.
10503 (agent_run_command, agent_run_command): Add _ markup.
10504 (agent_capability_check): Likewise.
10505
10506 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10507
10508 * breakpoint.c (set_condition_evaluation_mode): Set
10509 CONDITION_EVALUATION_MODE unconditionally.
10510
10511 2012-03-03 Yao Qi <yao@codesourcery.com>
10512
10513 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10514 * common/agent.h: Update declaration.
10515 * inf-child.c (inf_child_use_agent): New.
10516 (inf_child_can_use_agent): New.
10517 (inf_child_target): Initialize fields `to_use_agent'
10518 and `to_can_use_agent'.
10519 * agent.c (agent_new_objfile): New.
10520 (_initialize_agent): Add agent_new_objfile to new_objfile
10521 observer.
10522
10523 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10524 New.
10525 (linux_target_install_ops): Initialize field
10526 `to_static_tracepoint_markers_by_strid'.
10527 * remote.c (free_current_marker): Move it to ...
10528 * tracepoint.c (free_current_marker): ... here. New.
10529 (cleanup_target_stop): New.
10530 * tracepoint.h: Declare free_current_marker.
10531 * NEWS: Add one entry about `info static-tracepoint-marker'.
10532
10533 2012-03-03 Yao Qi <yao@codesourcery.com>
10534
10535 * common/agent.c (agent_loaded_p): New.
10536 (agent_look_up_symbols): New global.
10537 * common/agent.h: Declare agent_loaded_p.
10538
10539 2012-03-03 Yao Qi <yao@codesourcery.com>
10540
10541 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10542 (agent_capability_check, agent_capability_invalidate): New.
10543 (symbol_list): New array element.
10544 * common/agent.h (enum agent_capa): New.
10545 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10546
10547 2012-03-03 Yao Qi <yao@codesourcery.com>
10548
10549 * target.h (struct target_ops) <to_use_agent>: New field.
10550 (struct target_ops) <to_can_use_agent>: New field.
10551 (target_use_agent, target_can_use_agent): New macro.
10552 * target.c (update_current_target): Update.
10553 * remote.c: New enum `PACKET_QAgent'.
10554 (remote_protocol_features): Add a new element.
10555 (remote_use_agent, remote_can_use_agent): New.
10556 (init_remote_ops): Initialize field `can_use_agent' with
10557 remote_can_use_agent. Intiailize field `use_agent' with
10558 remote_use_agent.
10559 * common/agent.c (use_agent): New global.
10560 * common/agent.h: Declare it.
10561 * tracepoint.c (info_static_tracepoint_markers_command): Add
10562 comment.
10563 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10564 (COMMON_OBS): Add common/agent.o and agent.o
10565 (common-agent.o): New rule.
10566 * agent.c: New.
10567
10568 2012-03-03 Yao Qi <yao@codesourcery.com>
10569
10570 * common/agent.c: New.
10571 * common/agent.h: New.
10572 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10573 AC_CHECK_HEADERS.
10574 * configure, configh.in: Regenerated.
10575
10576 2012-03-02 Kevin Buettner <kevinb@redhat.com>
10577
10578 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10579 unless it exists for this architecture.
10580
10581 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10582
10583 * language.h (struct language_defn): New "method" la_read_var_value.
10584 * findvar.c: #include "language.h".
10585 (default_read_var_value): Renames read_var_value. Rewrite
10586 function description.
10587 (read_var_value): New function.
10588 * value.h (default_read_var_value): Add prototype.
10589 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10590 New functions.
10591 (ada_language_defn): Add entry for la_read_var_value.
10592 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10593 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10594 language_defn structures to add entry for new la_read_var_value
10595 field.
10596
10597 2012-03-02 Tom Tromey <tromey@redhat.com>
10598 Pedro Alves <palves@redhat.com>
10599
10600 PR breakpoints/13776:
10601 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10602 breakpoints.
10603 (delete_longjmp_breakpoint_at_next_stop): New.
10604 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10605 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10606 before deleting the inferior. Add comments.
10607 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10608 breakpoints immediately, but only on next stop. Move that code
10609 next to where we mark other breakpoints for deletion.
10610
10611 2012-03-02 Joel Brobecker <brobecker@adacore.com>
10612
10613 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10614 marker.
10615 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10616 violation.
10617
10618 2012-03-02 Pedro Alves <palves@redhat.com>
10619
10620 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10621
10622 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10623
10624 Fix -Wmissing-prototypes build.
10625 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10626 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10627 (gdbsim_has_memory): Likewise.
10628
10629 2012-03-02 Yao Qi <yao@codesourcery.com>
10630
10631 Fix -Wmissing-prototypes build.
10632 * charset.c (phony_iconv_open): Make static.
10633 (phony_iconv_close, phony_iconv): Likewise.
10634 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10635 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10636 prototype.
10637 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10638 * ser-mingw.c (create_select_thread): Make static.
10639 * windows-termcap.c (tgetent): New prototype.
10640 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10641
10642 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10643
10644 Fix -Wmissing-prototypes build.
10645 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10646 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10647 (_initialize_loadable): New prototypes.
10648
10649 2012-03-02 Doug Evans <dje@google.com>
10650
10651 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10652 abbrev table, read_comp_unit will do it.
10653
10654 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10655
10656 Fix -Wmissing-prototypes build.
10657 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10658 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10659 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10660 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10661 (_initialize_arm_symbian_tdep): New prototype.
10662 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10663 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10664 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10665 static.
10666 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10667 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10668 prototype.
10669 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10670 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10671 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10672 static.
10673 * moxie-tdep.c (moxie_process_record): Likewise.
10674 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10675 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10676 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10677 (_initialize_rl78_tdep): New prototype.
10678 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10679 (_initialize_rx_tdep): New prototype.
10680 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10681 (_initialize_darwin_solib): New prototype.
10682 * solib-spu.c: Include solib-spu.h.
10683 (_initialize_spu_solib): New prototype.
10684 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10685 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10686 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10687 (tic6x_software_single_step): Make it static.
10688 (_initialize_tic6x_tdep): New prototype.
10689
10690 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10691
10692 Fix -Wmissing-prototypes build.
10693 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10694 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10695
10696 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10697
10698 Fix -Wmissing-prototypes build.
10699 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10700 (frv_have_stopped_data_address): Remove.
10701
10702 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10703
10704 Fix -Wmissing-prototypes build.
10705 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10706 * sh-tdep.c: Include sh64-tdep.h.
10707 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10708 * sh64-tdep.c: Include sh64-tdep.h.
10709 * sh64-tdep.h: New file.
10710
10711 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10712
10713 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10714
10715 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10716
10717 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10718 sp_regnum once the gdbarch_init_osabi hook has been called.
10719
10720 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10721
10722 * mips-tdep.c (mips32_bc1_pc): New function.
10723 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10724 BPOSGE32 and BPOSGE64 instructions.
10725 (deal_with_atomic_sequence): Likewise.
10726 (mips32_instruction_has_delay_slot): Likewise.
10727
10728 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10729 Chris Dearman <chris@mips.com>
10730 Maciej W. Rozycki <macro@codesourcery.com>
10731 Joseph Myers <joseph@codesourcery.com>
10732
10733 * features/mips-dsp.xml: New file.
10734 * features/mips64-dsp.xml: New file.
10735 * features/mips-dsp-linux.xml: New file.
10736 * features/mips64-dsp-linux.xml: New file.
10737 * features/Makefile (WHICH): Add mips-dsp-linux and
10738 mips64-dsp-linux.
10739 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10740 * features/mips-dsp-linux.c: New file.
10741 * features/mips64-dsp-linux.c: New file.
10742 * regformats/mips-dsp-linux.dat: New file.
10743 * regformats/mips64-dsp-linux.dat: New file.
10744 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10745 registers.
10746 (mips64_linux_register_addr): Likewise.
10747 (mips64_linux_regsets_fetch_registers): Likewise.
10748 (mips64_linux_regsets_store_registers): Likewise.
10749 (mips64_linux_fetch_registers): Update call to
10750 mips64_linux_regsets_fetch_registers.
10751 (mips64_linux_store_registers): Update call to
10752 mips64_linux_regsets_store_registers.
10753 (mips_linux_read_description): Probe for DSP registers.
10754 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10755 and initialize_tdesc_mips64_dsp_linux.
10756 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10757 Remove padding of no longer used embedded register slots.
10758 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10759 (MIPS_RESTART_REGNUM): Redefine enum value.
10760 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10761 strings.
10762 (mips_tx39_reg_names): Likewise.
10763 (mips_linux_reg_names): New array of register names for Linux
10764 targets.
10765 (mips_register_name): Check for a null pointer in
10766 mips_processor_reg_names and return an empty string.
10767 (mips_register_type): Exclude embedded registers for the IRIX
10768 and Linux ABIs.
10769 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10770 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10771 DSP registers.
10772 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10773 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10774 (mips_gdbarch_init): Likewise. Initialize internal register
10775 indices for the Linux ABI. Use dynamic numbers to refer to
10776 registers, as applicable, while parsing the target description.
10777 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10778
10779 2012-03-01 Joel Brobecker <brobecker@adacore.com>
10780
10781 * frame.h (read_frame_register_unsigned): Fix typo in function
10782 description.
10783
10784 2012-03-01 Pedro Alves <palves@redhat.com>
10785
10786 * jit-reader.in [!__cplusplus]
10787 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10788
10789 2012-03-01 Pedro Alves <palves@redhat.com>
10790
10791 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10792 * configure: Regenerate.
10793
10794 2012-03-01 Pedro Alves <palves@redhat.com>
10795
10796 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10797 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10798 (ftrace_command, strace_command): Make static.
10799 * d-lang.c (_initialize_d_language): Declare.
10800 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10801 * dwarf2loc.c (_initialize_dwarf2loc):
10802 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10803 * exec.c (exec_get_section_table): Make static.
10804 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10805 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10806 * inferior.c (remove_inferior_command, add_inferior_command)
10807 (clone_inferior_command): Make static.
10808 * linux-nat.c (linux_nat_thread_address_space)
10809 (linux_nat_core_of_thread): Make static.
10810 * linux-tdep.c (_initialize_linux_tdep): Declare.
10811 * objc-lang.c (_initialize_objc_lang): Declare.
10812 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10813 Make static.
10814 (_initialize_opencl_language): Declare.
10815 * record.c (_initialize_record): Declare.
10816 * remote.c (demand_private_info, remote_get_tib_address)
10817 (remote_supports_cond_tracepoints)
10818 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10819 Make static.
10820 * skip.c (_initialize_step_skip): Declare.
10821 * symtab.c (skip_prologue_using_lineinfo): Make static.
10822 * tracepoint.c (delete_trace_state_variable)
10823 (trace_variable_command, delete_trace_variable_command)
10824 (get_uploaded_tsv, find_matching_tracepoint_location)
10825 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10826 Make static.
10827 * value.c (pack_unsigned_long): Make static.
10828 * varobj.c (varobj_ensure_python_env): Make static.
10829 * windows-tdep.c (_initialize_windows_tdep): Declare.
10830 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10831
10832 2012-03-01 Pedro Alves <palves@redhat.com>
10833
10834 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10835 gdbarch parameter.
10836 (linux_init_abi): Install it as has_shared_address_space gdbarch
10837 callback.
10838
10839 2012-03-01 Pedro Alves <palves@redhat.com>
10840
10841 * observer.c (observer_test_first_notification_function)
10842 (observer_test_second_notification_function)
10843 (observer_test_third_notification_function): Add declarations.
10844
10845 2012-03-01 Pedro Alves <palves@redhat.com>
10846
10847 * common/signals.c (default_target_signal_to_host)
10848 (default_target_signal_from_host): Move ...
10849 * arch-utils.c: ... here.
10850 * arch-utils.h (default_target_signal_to_host)
10851 (default_target_signal_from_host): Declare.
10852
10853 * common/signals.c (target_signal_from_command): Move ...
10854 * infrun.c: ... here.
10855 * inferior.h (target_signal_from_command): Declare.
10856 * target.h (target_signal_from_command)
10857 (default_target_signal_from_host, default_target_signal_to_host):
10858 Delete declarations.
10859
10860 * common/signals.c (_initialize_signals): Delete.
10861
10862 2012-03-01 Pedro Alves <palves@redhat.com>
10863
10864 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10865 both __cplusplus and !__cplusplus.
10866
10867 2012-03-01 Pedro Alves <palves@redhat.com>
10868
10869 * psymtab.c (find_and_open_source): Delete declaration.
10870 * source.c (find_and_open_source): Move comment ...
10871 * source.h (find_and_open_source): ... to this new declaration.
10872
10873 2012-03-01 Pedro Alves <palves@redhat.com>
10874
10875 * inline-frame.c: Include inline-frame.h.
10876
10877 2012-03-01 Pedro Alves <palves@redhat.com>
10878
10879 * tui/tui-data.c (set_gen_win_origin): Delete.
10880 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10881 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10882
10883 2012-03-01 Pedro Alves <palves@redhat.com>
10884
10885 * remote.c (encode_actions): Delete declaration.
10886 * tracepoint.c (encode_actions): Make extern.
10887 * tracepoint.h (encode_actions): Declare.
10888
10889 2012-03-01 Pedro Alves <palves@redhat.com>
10890
10891 * python/py-breakpoint.c: Include python.h.
10892 * python/py-continueevent.c (create_continue_event_object): Make
10893 static.
10894 * python/py-lazy-string.c (stpy_get_type): Make static.
10895 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10896 Make static.
10897 * python/py-utils.c (unicode_to_target_python_string): Make
10898 static.
10899 * python/py-value.c: Include python.h.
10900
10901 2012-03-01 Pedro Alves <palves@redhat.com>
10902
10903 * inferior.c (delete_threads_of_inferior): Delete.
10904
10905 2012-03-01 Pedro Alves <palves@redhat.com>
10906
10907 Import fallback definitions from glibc.
10908
10909 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10910 ps_prochandle): Forward declare.
10911 (ps_err_e): Use glibc's comments.
10912 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10913 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10914 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10915 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10916 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10917 (struct ps_prochandle): Adjust comment.
10918
10919 2012-03-01 Pedro Alves <palves@redhat.com>
10920
10921 * ada-lang.c (ada_modulus_from_name): Delete.
10922 * ada-lex.l (lexer_init): Make static.
10923
10924 2012-03-01 Pedro Alves <palves@redhat.com>
10925
10926 PR gdb/13767
10927
10928 * frame.c (read_frame_register_unsigned): New.
10929 * frame.h (read_frame_register_unsigned): Declare.
10930 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10931 Handle it.
10932 (print_i387_control_word): New parameter `control_p'. Handle it.
10933 (i387_print_float_info): Handle unavailable float registers.
10934
10935 2012-03-01 Keith Seitz <keiths@redhat.com>
10936
10937 * linespec.c (decode_line_2): Sort the list of methods
10938 alphabetically before presenting the user with a selection
10939 menu.
10940
10941 2012-03-01 Doug Evans <dje@google.com>
10942
10943 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10944 has_namespace_info.
10945 (dwarf2_read_abbrevs): Remove corresponding initialization.
10946
10947 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
10948
10949 * NEWS: Mention new python command class gdb.COMMAND_USER.
10950 * cli/cli-cmds.c (show_user): Print error when used on a python
10951 command.
10952 (init_cli_cmds): Update documentation strings for "show user" and
10953 "set/show max-user-call-depth" to clarify that it does not apply to
10954 python commands.
10955 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10956 error check.
10957 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10958 gdb python api.
10959 * top.c (execute_command): Only execute a user-defined command as a
10960 legacy macro if c->user_commands is set.
10961
10962 2012-03-01 Tom Tromey <tromey@redhat.com>
10963
10964 * valprint.h (struct generic_val_print_decorations): New.
10965 (generic_val_print): Declare.
10966 * valprint.c (generic_val_print): New function.
10967 * p-valprint.c (p_decorations): New global.
10968 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10969 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10970 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10971 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10972 * m2-valprint.c (m2_decorations): New global.
10973 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10974 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10975 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10976 TYPE_CODE_ERROR>: Call generic_val_print.
10977 * f-valprint.c (f_decorations): New global.
10978 (f_val_print): Use print_function_pointer_address.
10979 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10980 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10981 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10982 generic_val_print.
10983 * c-valprint.c (c_decorations): New global.
10984 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10985 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10986 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10987 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10988 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10989 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10990 case.
10991
10992 2012-03-01 Tom Tromey <tromey@redhat.com>
10993
10994 * valprint.c (val_print): Update.
10995 * p-valprint (pascal_val_print): Return void.
10996 * p-lang.h (pascal_val_print): Return void.
10997 * m2-valprint.c (m2_val_print): Return void.
10998 * m2-lang.h (m2_val_print): Return void.
10999 * language.h (struct language_defn) <la_val_print>: Return void.
11000 * language.c (unk_lang_val_print): Return void.
11001 * jv-valprint.c (java_val_print): Return void.
11002 * jv-lang.h (java_val_print): Return void.
11003 * f-valprint.c (f_val_print): Return void.
11004 * f-lang.h (f_val_print): Return void.
11005 * d-valprint.c (d_val_print): Return void.
11006 (dynamic_array_type): Update.
11007 * d-lang.h (d_val_print): Return void.
11008 * c-valprint.c (c_val_print): Return void.
11009 * c-lang.h (c_val_print): Return void.
11010 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
11011 void.
11012 * ada-lang.h (ada_val_print): Return void.
11013
11014 2012-03-01 Tom Tromey <tromey@redhat.com>
11015
11016 * value.h (val_print): Return void.
11017 * valprint.c (val_print): Return void.
11018
11019 2012-03-01 Tom Tromey <tromey@redhat.com>
11020
11021 * value.h (common_val_print): Return void.
11022 * valprint.c (common_val_print): Return void.
11023
11024 2012-03-01 Tom Tromey <tromey@redhat.com>
11025
11026 * value.h (value_print): Return void.
11027 * valprint.c (value_print): Return void.
11028 * p-valprint.c (pascal_value_print): Return void.
11029 * p-lang.h (pascal_value_print): Return void.
11030 * language.h (struct language_defn) <la_value_print>: Return
11031 void.
11032 * language.c (unk_lang_value_print): Return void.
11033 * jv-valprint.c (java_value_print): Return void.
11034 * jv-lang.h (java_value_print): Return void.
11035 * f-valprint.c (c_value_print): Don't declare.
11036 Include c-lang.h.
11037 * c-valprint.c (c_value_print): Return void.
11038 * c-lang.h (c_value_print): Return void.
11039 * ada-valprint.c (ada_value_print): Return void.
11040 * ada-lang.h (ada_value_print): Return void.
11041
11042 2012-03-01 Tom Tromey <tromey@redhat.com>
11043
11044 * value.c (value_primitive_field): Handle virtual base classes.
11045
11046 2012-03-01 Tom Tromey <tromey@redhat.com>
11047
11048 * gdbtypes.h (struct vbase): Remove.
11049
11050 2012-03-01 Tom Tromey <tromey@redhat.com>
11051
11052 * c-valprint.c (print_function_pointer_address): Move...
11053 * valprint.c: ... here. Make non-static.
11054 * m2-valprint.c (print_function_pointer_address): Remove.
11055 * valprint.h (print_function_pointer_address): Declare.
11056
11057 2012-03-01 Joel Brobecker <brobecker@adacore.com>
11058
11059 * NEWS: Document the fact that one can provide a condition when
11060 creating an Ada exception catchpoint.
11061
11062 2012-03-01 Tom Tromey <tromey@redhat.com>
11063
11064 * valprint.c (val_print_type_code_flags): Fix placement of
11065 trailing brace.
11066
11067 2012-03-01 Joel Brobecker <brobecker@adacore.com>
11068
11069 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
11070 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
11071 environment variable before calling update-copyright.
11072
11073 2012-03-01 Joel Brobecker <brobecker@adacore.com>
11074
11075 * gnulib/extra/update-copyright: Update to the latest from
11076 gnulib's git repository.
11077 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
11078 variable to 2 instead of 1.
11079
11080 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11081
11082 * varobj.c (c_value_of_variable): Remove dead code.
11083
11084 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11085
11086 * ada-lex.p (processId): Do not modify already encoded IDs.
11087 Update function documentation.
11088
11089 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11090
11091 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11092 "name" with "struct symbol *name_sym".
11093 * ada-exp.y (write_var_or_type): Update call to
11094 ada_find_renaming_symbol.
11095 "name" with "struct symbol *name_sym". Adjust Implementation
11096 accordingly. Adjust the function documentation.
11097
11098 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11099
11100 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11101 * ada-lang.c (ada_find_any_type): Add advance declaration.
11102 Make static. Replace ada_find_any_symbol by
11103 ada_find_any_type_symbol.
11104 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11105 Improve function description. Make static.
11106 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11107 Replace ada_find_any_symbol by ada_find_any_type_symbol.
11108
11109 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11110
11111 * ada-lang.c (struct tag_args): Delete.
11112 (ada_get_tsd_type): Function body moved up in source file.
11113 (ada_tag_name_1, ada_tag_name_2): Delete.
11114 (ada_get_tsd_from_tag): New function.
11115 (ada_tag_name_from_tsd): New function.
11116 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11117 to determine the tag name.
11118
11119 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11120
11121 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11122 declaration.
11123 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11124 function.
11125
11126 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11127
11128 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11129
11130 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11131
11132 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11133 full searches.
11134
11135 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11136
11137 * ada-lang.c (constrained_packed_array_type): If there is a
11138 parallel XA type, use it to determine the array index type.
11139
11140 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11141
11142 * ada-valprint.c (ada_val_print_1): If our value is a reference
11143 to an array descriptor, dereference it before converting it
11144 to a simple array.
11145
11146 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11147
11148 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11149 creating fixed value.
11150 (ada_value_ind, ada_coerce_ref, assign_component)
11151 (ada_evaluate_subexp): Remove call to unwrap_value before
11152 call to ada_to_fixed_value.
11153
11154 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11155
11156 * ada-lang.c (to_fixed_array_type): Set result's type name.
11157
11158 2012-02-29 Joel Brobecker <brobecker@adacore.com>
11159
11160 * ada-lang.c (catch_ada_exception_command_split): Add new
11161 argument cond_string. Add support for condition at end of
11162 "catch exception" commands.
11163 (ada_decode_exception_location): Add new argument cond_string.
11164 Update call to catch_ada_exception_command_split.
11165 (create_ada_exception_catchpoint): Add new argument cond_string.
11166 Set the breakpoint condition if needed.
11167 (catch_ada_exception_command): Update call to
11168 ada_decode_exception_location.
11169 (ada_decode_assert_location): Add function documentation.
11170 Add support for condition at end of "catch assert" command.
11171 (catch_assert_command): Update calls to ada_decode_assert_location
11172 and create_ada_exception_catchpoint.
11173
11174 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11175
11176 Fix disp-step-syscall.exp: fork: single step over fork.
11177 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11178 (i386_linux_get_syscall_number_from_regcache): ... here, new function
11179 comment, change parameters gdbarch and ptid to regcache. Remove
11180 parameter regcache, initialize gdbarch from regcache here.
11181 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11182 New functions.
11183 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11184 instead.
11185 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11186 'syscall'. Make the 'int' check more strict.
11187
11188 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11189
11190 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11191 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11192 (i386_linux_intx80_sysenter_syscall_record): ... here.
11193 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11194 Use the renamed function name.
11195
11196 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11197
11198 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11199 * breakpoint.c (until_break_command): Likewise.
11200 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11201 * infcall.c (call_function_by_hand): Likewise.
11202 * infcmd.c (finish_forward): Likewise.
11203 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11204
11205 2012-02-28 Tristan Gingold <gingold@adacore.com>
11206
11207 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11208 avoid variable assignments inside condition.
11209
11210 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11211
11212 Fix static analysis issue found by cppcheck.
11213 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11214 uninitialized BUF for size 2.
11215
11216 2012-02-27 Chris Dearman <chris@mips.com>
11217 Nathan Froyd <froydnj@codesourcery.com>
11218 Maciej W. Rozycki <macro@codesourcery.com>
11219
11220 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11221 (mips16_instruction_has_delay_slot): Likewise.
11222 (mips_segment_boundary): Likewise.
11223 (mips_adjust_breakpoint_address): Likewise.
11224 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11225
11226 2012-02-27 Maciej W. Rozycki <macro@mips.com>
11227 Maciej W. Rozycki <macro@codesourcery.com>
11228
11229 * infrun.c (handle_inferior_event): Don't proceed through
11230 shared library trampolines if stepping at the machine
11231 instruction level.
11232
11233 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11234
11235 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11236 too.
11237
11238 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11239
11240 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11241 (sh_stub_unwind_sniffer): New functions.
11242 (sh_stub_unwind): New variable.
11243 (sh_gdbarch_init): Wire everything.
11244
11245 2012-02-27 Pedro Alves <palves@redhat.com>
11246
11247 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11248 (linux_nat_post_attach_wait): Adjust to use
11249 linux_proc_pid_is_stopped.
11250 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11251 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11252 based on pid_is_stopped from both linux-nat.c and
11253 gdbserver/linux-low.c, and renamed.
11254
11255 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11256
11257 * remote.c (remote_watchpoint_addr_within_range): New function.
11258 (init_remote_ops): Use it.
11259
11260 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11261
11262 * target.h (target_watchpoint_addr_within_range): Document macro.
11263
11264 2012-02-24 Pedro Alves <palves@redhat.com>
11265
11266 * stack.c (set_last_displayed_sal): Issue internal_error instead
11267 of warning, and issue it after clearing the last displayed sal.
11268
11269 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11270 Pedro Alves <palves@redhat.com>
11271
11272 * breakpoint.c (until_break_command): Install breakpoints after
11273 all frame manipulations.
11274
11275 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11276
11277 * remote.c (remote_supports_cond_breakpoints): New forward
11278 declaration.
11279 (remote_add_target_side_condition): New function.
11280 (remote_insert_breakpoint): Add target-side breakpoint
11281 conditional if supported.
11282 (remote_insert_hw_breakpoint): Likewise.
11283 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11284 hook.
11285
11286 * target.c (update_current_target): Inherit
11287 to_supports_evaluation_of_breakpoint_conditions.
11288 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11289
11290 * target.h (struct target_ops)
11291 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11292 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11293
11294 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11295 (condition_evaluation_both, condition_evaluation_auto,
11296 condition_evaluation_host, condition_evaluation_target,
11297 condition_evaluation_enums, condition_evaluation_mode_1,
11298 condition_evaluation_mode): New static globals.
11299 (translate_condition_evaluation_mode): New function.
11300 (breakpoint_condition_evaluation_mode): New function.
11301 (gdb_evaluates_breakpoint_condition_p): New function.
11302 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11303 (mark_breakpoint_modified): New function.
11304 (mark_breakpoint_location_modified): New function.
11305 (set_condition_evaluation_mode): New function.
11306 (show_condition_evaluation_mode): New function.
11307 (bp_location_compare_addrs): New function.
11308 (get_first_location_gte_addr): New helper function.
11309 (set_breakpoint_condition): Free condition bytecode if locations
11310 has become unconditional. Call mark_breakpoint_modified (...).
11311 (condition_command): Call update_global_location_list (1) for
11312 breakpoints.
11313 (breakpoint_xfer_memory): Use is_breakpoint (...).
11314 (is_breakpoint): New function.
11315 (parse_cond_to_aexpr): New function.
11316 (build_target_condition_list): New function.
11317 (insert_bp_location): Handle target-side conditional
11318 breakpoints and call build_target_condition_list (...).
11319 (update_inserted_breakpoint_locations): New function.
11320 (insert_breakpoint_locations): Handle target-side conditional
11321 breakpoints.
11322 (bpstat_check_breakpoint_conditions): Add comment.
11323 (bp_condition_evaluator): New function.
11324 (bp_location_condition_evaluator): New function.
11325 (print_breakpoint_location): Print information on where the condition
11326 will be evaluated.
11327 (print_one_breakpoint_location): Likewise.
11328 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11329 breakpoint location.
11330 (force_breakpoint_reinsertion): New functions.
11331 (update_global_location_list): Handle target-side breakpoint
11332 conditions.
11333 Reinsert locations that are already inserted if conditions have
11334 changed.
11335 (bp_location_dtor): Free agent expression bytecode.
11336 (disable_breakpoint): Call mark_breakpoint_modified (...).
11337 Call update_global_location_list (...) with parameter 1 for breakpoints.
11338 (disable_command): Call mark_breakpoint_location_modified (...).
11339 Call update_global_location_list (...) with parameter 1 for breakpoints.
11340 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11341 (enable_command): mark_breakpoint_location_modified (...).
11342 (_initialize_breakpoint): Update documentation and add
11343 condition-evaluation breakpoint subcommand.
11344
11345 * breakpoint.h: Include ax.h.
11346 (condition_list): New data structure.
11347 (condition_status): New enum.
11348 (bp_target_info) <cond_list>: New field.
11349 (bp_location) <condition_changed, cond_bytecode>: New fields.
11350 (is_breakpoint): New prototype.
11351
11352 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11353
11354 * remote.c (remote_state) <cond_breakpoints>: New field.
11355 (PACKET_ConditionalBreakpoints): New enum.
11356 (remote_cond_breakpoint_feature): New function.
11357 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11358 (remote_supports_cond_breakpoints): New function.
11359 (_initialize_remote): Add new packet configuration for
11360 target-side conditional breakpoints.
11361
11362 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11363
11364 * NEWS: Mention target-side conditional breakpoint support,
11365 new condition-evaluation breakpoint subcommand and remote
11366 packet extensions.
11367
11368 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
11369
11370 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11371 number.
11372
11373 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11374
11375 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11376 (after_prologue): Remove.
11377
11378 2012-02-23 Tom Tromey <tromey@redhat.com>
11379
11380 * jv-valprint.c (java_val_print): Remove dead code.
11381
11382 2012-02-23 Tristan Gingold <gingold@adacore.com>
11383
11384 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11385 known_tasks_element and known_tasks_length fields.
11386 (read_known_tasks_array): Change argument type. Use pointer type
11387 and number of elements from DATA. Adjust.
11388 (read_known_tasks_list): Likewise.
11389 (get_known_tasks_addr): Remove.
11390 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11391 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11392 type and array length. Merge former get_known_tasks_addr code.
11393
11394 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11395
11396 PR backtrace/13716
11397 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11398 it after set_momentary_breakpoint.
11399
11400 2012-02-22 Sterling Augustine <saugustine@google.com>
11401
11402 PR 13689:
11403 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11404
11405 2012-02-22 Gary Benson <gbenson@redhat.com>
11406
11407 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11408 (find_slot_in_mapped_hash): Likewise.
11409
11410 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11411
11412 PR build/13638
11413 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11414 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11415 * configure: Regenerate.
11416
11417 2012-02-21 Tristan Gingold <gingold@adacore.com>
11418 Pedro Alves <palves@redhat.com>
11419
11420 * ia64-tdep.c: Do not include libunwind-ia64.h.
11421 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11422 Include libunwind-ia64.h instead of libunwind.h.
11423 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11424 for libunwind.h existence.
11425 * configure, config.in: Regenerate.
11426
11427 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11428
11429 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11430 instead of value_rtti_target_type.
11431 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11432 instead of value_rtti_target_type.
11433 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11434 value_rtti_target_type.
11435 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11436 (value_rtti_target_type): Rename to ...
11437 (value_rtti_indirect_type): ... here and make it indirect. Update
11438 function comment.
11439 * value.c (readjust_indirect_value_type): New function.
11440 (coerce_ref): Support for enclosing type setting for references
11441 with readjust_indirect_value_type.
11442 * value.h (readjust_value_type): New declaration.
11443 (value_rtti_target_type): Rename to ...
11444 (value_rtti_indirect_type): ... here.
11445
11446 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11447
11448 * MAINTAINERS (Write After Approval): Add myself to the list.
11449
11450 2012-02-20 Doug Evans <dje@google.com>
11451
11452 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11453 Rename objfile_p_char parameter to objfilep.
11454 (build_objfile_section_table): Result is now void. All callers
11455 updated.
11456 * objfiles.h (struct objfile): Tweak comments, whitespace.
11457 (build_objfile_section_table): Update.
11458
11459 * elfread.c (elf_symfile_segments): Fix warning text.
11460
11461 2012-02-20 Tom Tromey <tromey@redhat.com>
11462
11463 PR gdb/13498:
11464 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11465 particular set of file names once.
11466 (dw2_map_symbol_filenames): Likewise.
11467
11468 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11469
11470 Code cleanup.
11471 * main.c (write_files): Remove the declaration.
11472 (external_editor_command): Move the declaration ...
11473 [GDBTK] (external_editor_command): ... here. Fix the comment.
11474
11475 2012-02-20 Tom Tromey <tromey@redhat.com>
11476
11477 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11478 extraneous block.
11479
11480 2012-02-20 Tristan Gingold <gingold@adacore.com>
11481
11482 * darwin-nat.h (enum darwin_msg_state): Add comments.
11483
11484 2012-02-20 Tristan Gingold <gingold@adacore.com>
11485
11486 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11487 value.
11488
11489 2012-20-18 Joel Brobecker <brobecker@adacore.com>
11490
11491 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11492 between function description and implementation.
11493
11494 2012-02-17 Tom Tromey <tromey@redhat.com>
11495
11496 PR python/12070:
11497 * python/py-event.c (event_object_getset): New global.
11498 (event_object_type): Reference it.
11499 * python/py-type.c (field_object_getset): New global.
11500 (field_object_type): Reference it.
11501 * python/python-internal.h (gdb_py_generic_dict): Declare.
11502 * python/py-utils.c (gdb_py_generic_dict): New function.
11503
11504 2012-02-17 Tristan Gingold <gingold@adacore.com>
11505
11506 * solib-darwin.c (darwin_current_sos): Check magic and filetype
11507
11508 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11509
11510 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11511 TYPE_CALLING_CONVENTION annotation.
11512
11513 2012-02-16 Kevin Buettner <kevinb@redhat.com>
11514
11515 * MAINTAINERS: Add rx to target ISA section.
11516 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11517 (ALLDEPFILES): Add rx-tdep.c.
11518
11519 2012-02-16 Tom Tromey <tromey@redhat.com>
11520
11521 * symfile.c (symbol_file_add_main_1): Use inferior's
11522 symfile_flags.
11523 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11524 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11525 inferior.
11526 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11527 inferior.
11528 (follow_exec): Use inferior's symfile_flags.
11529 * inferior.h (struct inferior) <symfile_flags>: New field.
11530
11531 2012-02-16 Mike Frysinger <vapier@gentoo.org>
11532
11533 PR gdb/9734:
11534 * remote-sim.c (gdbsim_create_inferior): Call error() when
11535 sim_create_inferior() fails.
11536
11537 2012-02-16 Josh Matthews <josh@joshmatthews.net>
11538
11539 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11540
11541 2012-02-16 Tom Tromey <tromey@redhat.com>
11542
11543 PR c++/13653:
11544 * thread.c (struct current_thread_cleanup) <was_removable>: New
11545 field.
11546 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11547 (make_cleanup_restore_current_thread): Initialize new field.
11548
11549 2012-02-15 Kevin Buettner <kevinb@redhat.com>
11550
11551 * MAINTAINERS: Add rl78 to target ISA section.
11552 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11553 (ALLDEPFILES): Add rl78-tdep.c.
11554 * NEWS: Mention rl78 as a new target.
11555
11556 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11557
11558 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11559 data.
11560 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11561
11562 2012-02-15 Tom Tromey <tromey@redhat.com>
11563
11564 PR gdb/12659:
11565 * infcmd.c (registers_info): Print just the current register's
11566 name.
11567
11568 2012-02-15 Tom Tromey <tromey@redhat.com>
11569
11570 * python/py-symbol.c (sympy_value): Use _().
11571
11572 2012-02-15 Pedro Alves <palves@redhat.com>
11573
11574 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11575 output to be like native targets'.
11576 (remote_pid_to_str): Special case the null ptid.
11577
11578 2012-02-14 Stan Shebs <stan@codesourcery.com>
11579
11580 * NEWS: Mention enable count command.
11581 * breakpoint.h (struct breakpoint): New field enable_count.
11582 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11583 (enable_breakpoint): Add arg to call.
11584 (struct disp_data): New struct.
11585 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11586 (do_map_enable_once_breakpoint): Create a struct and pass it.
11587 (do_map_enable_delete_breakpoint): Ditto.
11588 (do_map_enable_count_breakpoint): New function.
11589 (enable_count_command): New function.
11590 (bpstat_stop_status): Decrement enable_count.
11591 (print_one_breakpoint_location): Report enable count.
11592 (_initialize_breakpoint): Add enable count command.
11593
11594 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11595
11596 * rl78-tdep.c (reggroups.h): Include.
11597 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11598 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11599 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11600 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11601 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11602 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11603 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11604 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11605 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11606 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11607 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11608 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11609 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11610 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11611 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11612 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11613 beginning of register list.
11614 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11615 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11616 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11617 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11618 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11619 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11620 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11621 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11622 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11623 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11624 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11625 the pseudo registers. Rearrange other pseudo registers too so
11626 that the bank registers appear at the end.
11627 (rl78_register_type): Account for the fact that the byte sized
11628 bank registers are now pseudo-registers.
11629 (rl78_register_name): Rearrange the register name array. Make
11630 initial set of raw banked registers inaccessible.
11631 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11632 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11633 case for copying bytes back and forth between raw and pseudo
11634 versions of the banked registers. Update other cases to reflect
11635 the changed names.
11636 (rl78_return_value): Update to account for changed names of
11637 raw registers.
11638 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11639 rl78_register_sim_regno().
11640
11641 2012-02-14 Kevin Buettner <kevinb@redhat.com>
11642
11643 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11644 the name parameter being passed to find_pc_partial_function().
11645
11646 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11647
11648 * MAINTAINERS: Step down from being ia64 target maintainer.
11649
11650 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11651
11652 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11653 compilation warning.
11654
11655 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11656
11657 Fix crash on loaded shlibs without loaded exec_bfd.
11658 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11659 (set_section_command): Replace exec_bfd by p->bfd.
11660
11661 2012-02-10 Tom Tromey <tromey@redhat.com>
11662
11663 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11664 when we have a C++ qualified name.
11665
11666 2012-02-10 Pedro Alves <palves@redhat.com>
11667
11668 * inferior.c (inferior_pid_to_str): New.
11669 (print_inferior, inferior_command): Use it.
11670
11671 2012-02-10 Pedro Alves <palves@redhat.com>
11672
11673 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11674 the test CFLAGS.
11675 * configure: Regenerate.
11676
11677 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11678
11679 * linespec.c (decode_line_internal): Fix comment correctness.
11680
11681 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
11682
11683 PR gdb/12953
11684 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11685 * amd64bsd-nat.c: Add support for debug registers (adapted from
11686 i386bsd-nat.c).
11687 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11688 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11689 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11690 (amd64bsd_dr_get_control): New functions.
11691 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11692 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11693 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11694 watchpoints initialization.
11695 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11696
11697 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11698
11699 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11700 flds_bnds.fields.
11701 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11702
11703 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11704
11705 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11706
11707 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11708
11709 * language.h (symbol_name_cmp_ftype): Renames
11710 symbol_name_match_p_ftype.
11711 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11712 la_get_symbol_name_match_p.
11713 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11714 ada_get_symbol_name_match_p. Update comment.
11715 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11716 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11717 Renames symbol_name_match_p. Update field type.
11718 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11719 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11720 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11721 "la_get_symbol_name_cmp" in comments.
11722 * language.c: Likewise.
11723
11724 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11725
11726 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11727 %eflags offset.
11728 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11729 (amd64_sol2_gregset32_reg_offs): Likewise.
11730
11731 2012-02-08 Joel Brobecker <brobecker@adacore.com>
11732
11733 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11734 of the returned BFD is allocated by GDB.
11735
11736 2012-02-07 Tom Tromey <tromey@redhat.com>
11737
11738 PR python/12027:
11739 * python/python-internal.h (frame_object_type): Declare.
11740 * python/py-symbol.c (sympy_needs_frame): New function.
11741 (sympy_value): New function.
11742 (symbol_object_getset): Add "needs_frame".
11743 (symbol_object_methods): Add "value".
11744 * python/py-frame.c (frame_object_type): No longer static.
11745
11746 2012-02-07 Tom Tromey <tromey@redhat.com>
11747
11748 PR python/13599:
11749 * python/py-symbol.c (sympy_line): New function.
11750 (symbol_object_getset): Add "line".
11751
11752 2012-02-07 Tom Tromey <tromey@redhat.com>
11753
11754 * charset.c (find_charset_names): Check 'in' against NULL.
11755
11756 2012-02-06 Doug Evans <dje@google.com>
11757
11758 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11759 and fields.name members from char * to const char *. All uses updated.
11760 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11761 from char * to const char *. All uses updated.
11762 (type_name_no_tag): Update.
11763 (lookup_unsigned_typename, lookup_signed_typename): Update.
11764 * gdbtypes.c (type_name_no_tag): Change result type
11765 from char * to const char *. All callers updated.
11766 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11767 name parameter from char * to const char *.
11768 * symtab.h (struct cplus_specific): Change type of demangled_name
11769 member from char * to const char *. All uses updated.
11770 (struct general_symbol_info): Change type of name and
11771 mangled_lang.demangled_name members from char * to const char *.
11772 All uses updated.
11773 (symbol_get_demangled_name, symbol_natural_name): Update.
11774 (symbol_demangled_name, symbol_search_name): Update.
11775 * symtab.c (symbol_get_demangled_name): Change result type
11776 from char * to const char *. All callers updated.
11777 (symbol_natural_name, symbol_demangled_name): Ditto.
11778 (symbol_search_name): Ditto.
11779 (completion_list_add_name): Change type of symname,sym_text,
11780 text,word parameters from char * to const char *.
11781 (completion_list_objc_symbol): Change type of sym_text,
11782 text,word parameters from char * to const char *.
11783 * ada-lang.c (find_struct_field): Change type of name parameter
11784 from char * to const char *.
11785 (encoded_ordered_before): Similarly for N0,N1 parameters.
11786 (old_renaming_is_invisible): Similarly for function_name parameter.
11787 (ada_type_name): Change result type from char * to const char *.
11788 All callers updated.
11789 * ada-lang.h (ada_type_name): Update.
11790 * buildsym.c (hashname): Change type of name parameter
11791 from char * to const char *.
11792 * buildsym.h (hashname): Update.
11793 * dbxread.c (end_psymtab): Change type of include_list parameter
11794 from char ** to const char **.
11795 * dwarf2read.c (determine_prefix): Change result type
11796 from char * to const char *. All callers updated.
11797 * f-lang.c (find_common_for_function): Change type of name, funcname
11798 parameters from char * to const char *.
11799 * f-lang.c (find_common_for_function): Update.
11800 * f-valprint.c (list_all_visible_commons): Change type of funcname
11801 parameters from char * to const char *.
11802 * gdbarch.sh (static_transform_name): Change type of name parameter
11803 and result from char * to const char *.
11804 * gdbarch.c: Regenerate.
11805 * gdbarch.h: Regenerate.
11806 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11807 of name parameter from char * to const char *.
11808 * jv-lang.c (java_primitive_type_from_name): Ditto.
11809 (java_demangled_signature_length): Similarly for signature parameter.
11810 (java_demangled_signature_copy): Ditto.
11811 (java_demangle_type_signature): Ditto.
11812 * jv-lang.h (java_primitive_type_from_name): Update.
11813 (java_demangle_type_signature): Update.
11814 * objc-lang.c (specialcmp): Change type of a,b parameters
11815 from char * to const char *.
11816 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11817 from char * to const char *. All callers updated.
11818 * p-lang.h (is_pascal_string_type): Update.
11819 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11820 of name parameter from char * to const char *.
11821 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11822 * utils.c (fprintf_symbol_filtered): Ditto.
11823 * defs.h (fprintf_symbol_filtered): Update.
11824 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11825 * stabsread.h (end_psymtab): Update.
11826 * stack.c (find_frame_funname): Change type of funname parameter
11827 from char ** to const char **.
11828 * stack.h (find_frame_funname): Update.
11829 * typeprint.c (type_print): Change type of varstring parameter
11830 from char * to const char *.
11831 * value.h (type_print): Update.
11832 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11833 from char * to const char *. All callers updated.
11834 (xcoff_end_psymtab): Change type of include_list parameter
11835 from char ** to const char **. All callers updated.
11836 (swap_sym): Similarly for name parameter. All callers updated.
11837 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11838 Use xstrdup.
11839 (process_coff_symbol): Use xstrdup.
11840 * stabsread.c (stabs_method_name_from_physname): Renamed from
11841 update_method_name_from_physname. Change result type from void
11842 to char *. All callers updated.
11843 (read_member_functions): In has_destructor case, store name in objfile
11844 obstack instead of malloc space. In !has_stub case, fix mem leak.
11845
11846 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11847
11848 * configure: Rebuild.
11849 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11850 LDFLAGS.
11851
11852 2012-02-03 Kevin Buettner <kevinb@redhat.com>
11853
11854 * configure.tgt (rl78-*-elf): New target.
11855 * rl78-tdep.c: New file.
11856
11857 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11858
11859 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11860 and continue the loop. Add QUIT statement.
11861
11862 2012-02-03 Tom Tromey <tromey@redhat.com>
11863
11864 PR gdb/13596:
11865 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11866 bfd_lookup_symbol_from_symtab.
11867 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11868 gdb_bfd_lookup_symbol_from_symtab.
11869
11870 2012-02-03 Joel Brobecker <brobecker@adacore.com>
11871
11872 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11873 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11874 symbol. Add assertion that sym2 is never NULL.
11875
11876 2012-02-02 Doug Evans <dje@google.com>
11877
11878 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11879 "name" parameter to const char ** from char **. All callers updated.
11880 (find_pc_partial_function): Ditto.
11881 (cache_pc_function_name): Change type to const char * from char *.
11882 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11883 (find_pc_partial_function): Update.
11884 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11885 type of "name" parameter to const char * from char *.
11886 All uses updated.
11887 * arch-utils.c (generic_in_solib_return_trampoline): Change
11888 type of "name" parameter to const char * from char *.
11889 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11890 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11891 type of "name" parameter to const char * from char *.
11892 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11893 * gdbarch.c: Regenerate.
11894 * gdbarch.h: Regenerate.
11895 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11896 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11897 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11898 type of "name" parameter to const char * from char *.
11899 * skip.c (skip_function_pc): Ditto.
11900 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11901 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11902 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11903 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11904 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11905 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11906 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11907 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11908 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11909
11910 2012-02-02 Pedro Alves <palves@redhat.com>
11911
11912 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11913 the current inferior has no execution. Make sure the current
11914 remote process matches gdb's current inferior.
11915
11916 2012-02-02 Tom Tromey <tromey@redhat.com>
11917
11918 PR gdb/13405:
11919 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11920 read-only memory.
11921
11922 2012-02-02 Tom Tromey <tromey@redhat.com>
11923
11924 PR gdb/9307:
11925 * symtab.c (lookup_language_this): Set block_found.
11926
11927 2012-02-01 Tom Tromey <tromey@redhat.com>
11928
11929 PR gdb/13431:
11930 * jit.c (struct jit_inferior_data): Rewrite.
11931 (struct jit_objfile_data): New.
11932 (get_jit_objfile_data): New function.
11933 (add_objfile_entry): Update.
11934 (jit_read_descriptor): Return int. Replace descriptor_addr
11935 argument with inf_data. Update. Don't call error.
11936 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11937 descriptor here.
11938 (jit_inferior_init): Don't look up descriptor. Don't call error.
11939 (jit_reset_inferior_data_and_breakpoints)
11940 (jit_inferior_created_observer): Remove.
11941 (jit_inferior_exit_hook): Update.
11942 (jit_executable_changed_observer): Remove.
11943 (jit_event_handler): Update.
11944 (free_objfile_data): Reset inferior data if needed.
11945 (_initialize_jit): Update.
11946
11947 2012-02-01 Tom Tromey <tromey@redhat.com>
11948
11949 * jit.c (bfd_open_from_target_memory): Move higher in file.
11950
11951 2012-02-01 Tristan Gingold <gingold@adacore.com>
11952
11953 * libunwind-frame.c (libunwind_load): Display message if dlopen
11954 failed.
11955
11956 2012-02-01 Gary Benson <gbenson@redhat.com>
11957
11958 * symtab.h (symbol_found_callback_ftype): New typedef.
11959 (iterate_over_symbols): Use the above.
11960 * symtab.c (iterate_over_symbols): Likewise.
11961 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11962 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11963 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11964 (iterate_name_matcher): Document return values.
11965 (collect_one_symbol): Likewise.
11966 (collect_function_symbols): Likewise.
11967 (collect_symbols): Likewise.
11968
11969 2012-02-01 Tom Tromey <tromey@redhat.com>
11970
11971 * ada-lang.c (resolve_subexp): Update.
11972 (ada_lookup_symbol_list): Add 'full_search' argument.
11973 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11974 ada_lookup_symbol_list.
11975 (ada_lookup_encoded_symbol): Update.
11976 (get_var_value): Update.
11977 * ada-exp.y (block_lookup): Update.
11978 (write_var_or_type): Update.
11979 (write_name_assoc): Update.
11980 * ada-lang.h (ada_lookup_symbol_list): Update.
11981
11982 2012-01-31 Tom Tromey <tromey@redhat.com>
11983
11984 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11985 comment.
11986
11987 2012-01-31 Doug Evans <dje@google.com>
11988
11989 * symtab.h: Remove outdated comment.
11990 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
11991
11992 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11993
11994 Fix build error in Darwin port.
11995 * i386-darwin-nat.c: Include i386-nat.h.
11996
11997 2012-01-30 Tom Tromey <tromey@redhat.com>
11998
11999 PR breakpoints/13568:
12000 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
12001 argument. Check for recursive includes.
12002 (dwarf_decode_macros): Create an include hash.
12003
12004 2012-01-30 Michael Eager <eager@eagercon.com>
12005
12006 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
12007 * ppc-linux-tdep.c: Include glibc-tdep.h.
12008 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
12009 (powerpc_linux_in_plt_stub): New function.
12010 (powerpc_linux_in_dynsym_resolve_code): New function.
12011 (ppc_skip_trampoline_code): New function.
12012 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
12013 Use glibc_skip_solib_resolver.
12014
12015 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12016
12017 Code cleanup: Make 1440 bytes of data segment read-only.
12018 * arch-utils.c (endian_enum): Make it const char *const [].
12019 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
12020 Likewise.
12021 * breakpoint.c (always_inserted_enums): Likewise.
12022 * cli/cli-cmds.c (script_ext_enums): Likewise.
12023 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
12024 enumlist parameter const char *const *.
12025 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
12026 const char *const *.
12027 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
12028 parameter const char *const *.
12029 * cris-tdep.c (cris_modes): Make it const char *const [].
12030 * filesystem.c (target_file_system_kinds): Likewise.
12031 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
12032 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
12033 (can_use_displaced_stepping_enum, scheduler_enums)
12034 (exec_direction_names): Likewise.
12035 * language.c (_initialize_language): Make the type_or_range_names and
12036 case_sensitive_names variables const char *const [].
12037 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
12038 * python/python.c (python_excp_enums): Likewise.
12039 * remote.c (interrupt_sequence_modes): Likewise.
12040 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
12041 * serial.c (logbase_enums): Likewise.
12042 * sh-tdep.c (sh_cc_enum): Likewise.
12043 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
12044 Likewise.
12045 * symtab.c (multiple_symbols_modes): Likewise.
12046 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
12047 Likewise.
12048 * utils.c (internal_problem_modes): Likewise.
12049
12050 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
12051
12052 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
12053 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
12054 result.
12055
12056 2012-01-27 Doug Evans <dje@google.com>
12057
12058 * configure.ac (with_python): Fix absolute path handling for win32.
12059 * configure: Regenerate.
12060
12061 2012-01-26 Doug Evans <dje@google.com>
12062
12063 * symtab.c: Whitespace cleanup, no code changes.
12064
12065 * symtab.c (lookup_symbol_in_language): Improve comment.
12066 (lookup_symbol_aux): Fix comment.
12067
12068 * psymtab.c (add_psymbol_to_list): Result is now "void".
12069 * psympriv.h (add_psymbol_to_list): Update.
12070
12071 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
12072
12073 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12074
12075 Do not open script filenames twice.
12076 * cli/cli-cmds.c (source_script_from_stream): Pass to
12077 source_python_script also STREAM.
12078 * python/py-auto-load.c (source_section_scripts): Pass to
12079 source_python_script_for_objfile also STREAM.
12080 (auto_load_objfile_script): Pass to source_python_script_for_objfile
12081 also INPUT.
12082 * python/python-internal.h (source_python_script_for_objfile): New
12083 parameter file, rename parameter file to filename.
12084 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
12085 instead if !_WIN32. Update the function comment.
12086 (source_python_script, source_python_script_for_objfile)
12087 (source_python_script): New parameter file, rename parameter file to
12088 filename. Pass FILENAME to python_run_simple_file.
12089 * python/python.h (source_python_script): New parameter file, rename
12090 parameter file to filename.
12091
12092 2012-01-26 Pedro Alves <palves@redhat.com>
12093
12094 * corelow.c (core_has_fake_pid): Delete.
12095 (core_close): Delete references to `core_has_fake_pid'.
12096 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12097 (core_open): Delete references to `core_has_fake_pid'.
12098 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12099 the removed global.
12100
12101 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12102
12103 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12104 Remove language parameter from name_matcher. Adjust the comment.
12105 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12106 Remove language parameter.
12107 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12108 * linespec.c (iterate_name_matcher): Likewise.
12109 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12110 name_matcher. Adjust call accordingly.
12111 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12112 (maintenance_check_symtabs): Adjust type of parameter "fun".
12113 * psymtab.h (maintenance_check_symtabs): Likewise.
12114
12115 2012-01-26 Joel Brobecker <brobecker@adacore.com>
12116
12117 * language.h (symbol_name_match_p_ftype): New typedef.
12118 (struct language_defn): Replace field la_symbol_name_compare
12119 by la_get_symbol_name_match_p.
12120 * ada-lang.c (ada_get_symbol_name_match_p): New function.
12121 (ada_language_defn): Use it.
12122 * linespec.c (struct symbol_matcher_data): New type.
12123 (iterate_name_matcher): Rewrite.
12124 (iterate_over_all_matching_symtabs): Pass a pointer to
12125 a symbol_matcher_data struct to expand_symtabs_matching
12126 instead of just the lookup name.
12127 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12128 opencl-lang.c, p-lang.c, language.c: Delete field
12129 la_symbol_name_compare, and replace by NULL for new field
12130 la_get_symbol_name_match_p.
12131 * symfile.h (struct quick_symbol_functions): Update comment.
12132
12133 2012-01-25 Tom Tromey <tromey@redhat.com>
12134
12135 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12136 dereferencing.
12137
12138 2012-01-24 Tom Tromey <tromey@redhat.com>
12139
12140 PR symtab/12406:
12141 * solib.c (update_solib_list): Update the program space's
12142 added_solibs and deleted_solibs fields.
12143 * progspace.h (struct program_space) <added_solibs,
12144 deleted_solibs>: New fields.
12145 (clear_program_space_solib_cache): Declare.
12146 * progspace.c (release_program_space): Call
12147 clear_program_space_solib_cache.
12148 (clear_program_space_solib_cache): New function.
12149 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12150 bpstat_stop_status. Use handle_solib_event.
12151 * breakpoint.c: Include gdb_regex.h.
12152 (print_solib_event): New function.
12153 (bpstat_print): Use print_solib_event.
12154 (bpstat_stop_status): Add special case for bp_shlib_event.
12155 (handle_solib_event): New function.
12156 (bpstat_what): Use handle_solib_event.
12157 (struct solib_catchpoint): New.
12158 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12159 (breakpoint_hit_catch_solib, check_status_catch_solib)
12160 (print_it_catch_solib, print_one_catch_solib)
12161 (print_mention_catch_solib, print_recreate_catch_solib): New
12162 functions.
12163 (catch_solib_breakpoint_ops): New global.
12164 (catch_load_or_unload, catch_load_command_1)
12165 (catch_unload_command_1): New functions.
12166 (internal_bkpt_check_status): Add special case for
12167 bp_shlib_event.
12168 (internal_bkpt_print_it): Use print_solib_event.
12169 (initialize_breakpoint_ops): Initialize
12170 catch_solib_breakpoint_ops.
12171 (_initialize_breakpoint): Register "catch load" and "catch
12172 unload".
12173 * breakpoint.h (handle_solib_event): Declare.
12174 * NEWS: Add entry for "catch load" and "catch unload".
12175
12176 2012-01-24 Tom Tromey <tromey@redhat.com>
12177
12178 * ada-lang.c: Include gdb_vecs.h.
12179 * charset.c: Include gdb_vecs.h.
12180 * tracepoint.h: Include gdb_vecs.h.
12181 * gdb_vecs.h: New file.
12182
12183 2012-01-24 Pedro Alves <pedro@codesourcery.com>
12184
12185 * breakpoint.c (breakpoint_hit_catch_fork)
12186 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12187 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12188 * infrun.c (inferior_has_forked, inferior_has_vforked)
12189 (inferior_has_execd, inferior_has_called_syscall): Delete.
12190 (handle_syscall_event): Get syscall_number from the execution
12191 control state's wait status.
12192 (wait_for_inferior): Don't clear syscall_number.
12193
12194 2012-01-24 Pedro Alves <palves@redhat.com>
12195
12196 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12197 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12198 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12199 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12200 `ws' parameter.
12201 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12202 false for events other than TARGET_SIGNAL_TRAP.
12203 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12204 Add `ws' parameter.
12205 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12206 events other than TARGET_SIGNAL_TRAP.
12207 (tracepoint_breakpoint_hit): Add `ws' parameter.
12208 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12209 parameter.
12210 (bpstat_stop_status): Same.
12211 (pc_at_non_inline_function): Same.
12212 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12213 to pass the current event's waitstatus to bpstat_stop_status
12214 and pc_at_non_inline_function.
12215
12216 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12217
12218 Code cleanup.
12219 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12220 Update the function comment for it.
12221 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12222 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12223 for STREAM.
12224
12225 2012-01-24 Pedro Alves <palves@redhat.com>
12226
12227 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12228 outside `bs->stop' block.
12229 (bpstat_what): Rework bp_shlib_event handling.
12230 (internal_bkpt_check_status): If the breakpoint is a
12231 bp_shlib_event, then set bs->stop and bs->print if
12232 stop_on_solib_events is set.
12233
12234 2012-01-24 Gary Benson <gbenson@redhat.com>
12235
12236 Delete #if 0'd out code.
12237 * stack.c (print_frame_label_vars): Remove.
12238 (catch_info): Likewise.
12239 (_initialize_stack): Remove "info catch" command.
12240 * NEWS: Mention the above.
12241
12242 2012-01-24 Pedro Alves <palves@redhat.com>
12243
12244 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12245 it.
12246 (remote_notice_new_inferior): If the remote end doesn't support
12247 the multiprocess extensions, then the PID is fake.
12248 (add_current_inferior_and_thread): New.
12249 (remote_start_remote): Use it.
12250 (extended_remote_attach_1): Adjust.
12251 (extended_remote_create_inferior_1): Use
12252 add_current_inferior_and_thread.
12253
12254 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12255
12256 Fix watchpoints to be specific for each inferior.
12257 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12258 current_program_space.
12259 * i386-nat.c (i386_inferior_data_cleanup): New.
12260 (i386_inferior_data_get): Replace variable inf_data_local by an
12261 inferior_data call.
12262 (i386_use_watchpoints): Initialize i386_inferior_data.
12263 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12264 specific iterate_over_lwps.
12265
12266 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12267
12268 Fix watchpoints across inferior fork.
12269 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12270 comment for linux_nat_iterate_watchpoint_lwps.
12271 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12272 linux_nat_iterate_watchpoint_lwps.
12273 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12274 * i386-linux-nat.c (update_debug_registers_callback): Update the
12275 comment for linux_nat_iterate_watchpoint_lwps.
12276 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12277 linux_nat_iterate_watchpoint_lwps.
12278 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12279 * i386-nat.c: Include inferior.h.
12280 (dr_mirror): Remove.
12281 (i386_inferior_data, struct i386_inferior_data)
12282 (i386_inferior_data_get): New.
12283 (i386_debug_reg_state): Use i386_inferior_data_get.
12284 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12285 (i386_insert_watchpoint, i386_remove_watchpoint)
12286 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12287 (i386_remove_hw_breakpoint): New variable state, use
12288 i386_debug_reg_state instead of DR_MIRROR.
12289 * linux-nat.c (delete_lwp): New declaration.
12290 (num_lwps): Move here from downwards.
12291 (delete_lwp_cleanup): New.
12292 (linux_child_follow_fork): Create new child_lp, call
12293 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12294 PTRACE_DETACH.
12295 (num_lwps): Move upwards.
12296 (linux_nat_iterate_watchpoint_lwps): New.
12297 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12298 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12299
12300 2012-01-24 Joel Brobecker <brobecker@adacore.com>
12301
12302 GDB 7.4 released.
12303
12304 2012-01-23 Pedro Alves <palves@redhat.com>
12305
12306 * top.c (caution): Rename to ...
12307 (confirm): ... this.
12308 (show_caution): Rename to ...
12309 (show_confirm): ... this.
12310 (quit_cover): Adjust.
12311 (init_main): Adjust.
12312 * top.h (caution): Rename to ...
12313 (confirm): ... this.
12314 * utils.c (internal_vproblem, defaulted_query): Adjust.
12315
12316 2012-01-23 Pedro Alves <palves@redhat.com>
12317
12318 * top.c (caution): Update comment.
12319 (execute_command): Don't consider the current value of `caution'.
12320
12321 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12322
12323 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12324
12325 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12326
12327 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12328 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12329 * target.c (target_fileio_pwrite): Remove buffer address from
12330 debug output.
12331 (target_fileio_pread): Likewise.
12332
12333 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12334
12335 * NEWS: Document remote "info proc" and "generate-core-file".
12336
12337 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12338
12339 * gdbarch.sh (find_memory_regions): New callback.
12340 * gdbarch.c, gdbarch.h: Regenerate.
12341
12342 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12343 callback before falling back to target method.
12344
12345 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12346 (linux_target_install_ops): No longer install it.
12347
12348 * linux-tdep.c (linux_find_memory_regions): New function.
12349 (linux_init_abi): Install it.
12350
12351 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12352
12353 * gdbarch.sh (make_corefile_notes): New architecture callback.
12354 * gdbarch.c: Regenerate.
12355 * gdbarch.h: Likewise.
12356
12357 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12358 before target_make_corefile_notes. If NULL is returned, the
12359 target does not support core file generation.
12360
12361 * linux-nat.c: Include "linux-tdep.h".
12362 (find_signalled_thread, find_stop_signal): Remove.
12363 (linux_nat_do_thread_registers): Likewise.
12364 (struct linux_nat_corefile_thread_data): Likewise.
12365 (linux_nat_corefile_thread_callback): Likewise.
12366 (iterate_over_spus): Likewise.
12367 (struct linux_spu_corefile_data): Likewise.
12368 (linux_spu_corefile_callback): Likewise.
12369 (linux_spu_make_corefile_notes): Likewise.
12370 (linux_nat_collect_thread_registers): New function.
12371 (linux_nat_make_corefile_notes): Replace contents by call to
12372 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12373 as native-only callback.
12374
12375 * linux-tdep.h: Include "bfd.h".
12376 (struct regcache): Add forward declaration.
12377 (linux_collect_thread_registers_ftype): New typedef.
12378 (linux_make_corefile_notes): Add prototype.
12379 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12380 "regset.h", and "elf-bfd.h".
12381 (find_signalled_thread, find_stop_signal): New functions.
12382 (linux_spu_make_corefile_notes): Likewise.
12383 (linux_collect_thread_registers): Likewise.
12384 (struct linux_corefile_thread_data): New data structure.
12385 (linux_corefile_thread_callback): New funcion.
12386 (linux_make_corefile_notes): Likewise.
12387 (linux_make_corefile_notes_1): Likewise.
12388 (linux_init_abi): Install it.
12389
12390 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12391
12392 * gdbarch.sh (info_proc): New callback.
12393 * gdbarch.c, gdbarch.h: Regenerate.
12394
12395 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12396 before falling back to the target info_proc callback.
12397
12398 * linux-nat.c: Do not include "cli/cli-utils.h".
12399 (linux_nat_info_proc): Remove.
12400 (linux_target_install_ops): No longer install it.
12401
12402 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12403 (read_mapping): New function.
12404 (linux_info_proc): Likewise.
12405 (linux_init_abi): Install it.
12406
12407 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12408
12409 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12410 * infcmd.c: (info_proc_cmd_1): New function.
12411 (info_proc_cmd): New function, moved here from equivalent routine
12412 orignally in linux-nat.c.
12413 (info_proc_cmd_mappings): Likewise.
12414 (info_proc_cmd_stat): Likewise.
12415 (info_proc_cmd_status): Likewise.
12416 (info_proc_cmd_cwd): Likewise.
12417 (info_proc_cmd_cmdline): Likewise.
12418 (info_proc_cmd_exe): Likewise.
12419 (info_proc_cmd_all): Likewise.
12420 (_initialize_infcmd): Install "info proc" command and subcommands.
12421
12422 * target.h (struct target_ops): Add to_info_proc.
12423 (target_info_proc): Add prototype.
12424 * target.c (target_info_proc): New function.
12425
12426 * procfs.c (procfs_info_proc): Add prototype.
12427 (info_proc_cmd): Rename into ...
12428 (procfs_info_proc): ... this. Update argument types as appropriate
12429 for a to_info_proc implementation. Handle "what" argument.
12430 (procfs_target): Install procfs_info_proc.
12431 (_initialize_procfs): No longer install "info proc" command.
12432
12433 * linux-nat.c: (enum info_proc_what): Remove.
12434 (linux_nat_info_proc_cmd_1): Rename into ...
12435 (linux_nat_info_proc): ... this. Update argument types as appropriate
12436 for a to_info_proc implementation.
12437 (linux_nat_info_proc_cmd): Remove.
12438 (linux_nat_info_proc_cmd_mappings): Likewise.
12439 (linux_nat_info_proc_cmd_stat): Likewise.
12440 (linux_nat_info_proc_cmd_status): Likewise.
12441 (linux_nat_info_proc_cmd_cwd): Likewise.
12442 (linux_nat_info_proc_cmd_cmdline): Likewise.
12443 (linux_nat_info_proc_cmd_exe): Likewise.
12444 (linux_nat_info_proc_cmd_all): Likewise.
12445 (linux_target_install_ops): Install linux_nat_info_proc.
12446 (_initialize_linux_nat): No longer install "info proc" command
12447 and subcommands.
12448
12449 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12450
12451 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12452 * config.in, configure: Regenerate.
12453
12454 * target.h (struct target_ops): Add to_fileio_readlink.
12455 (target_fileio_readlink): Add prototype.
12456 * target.c (target_fileio_readlink): New function.
12457
12458 * inf-child.c: Conditionally include <sys/param.h>.
12459 (inf_child_fileio_readlink): New function.
12460 (inf_child_target): Install it.
12461
12462 * remote.c (PACKET_vFile_readlink): New enum value.
12463 (remote_hostio_readlink): New function.
12464 (init_remote_ops): Install it.
12465 (_initialize_remote): Handle vFile:readlink packet type.
12466
12467 2012-01-20 Pedro Alves <palves@redhat.com>
12468 Ulrich Weigand <ulrich.weigand@linaro.org>
12469
12470 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12471 * config.in, configure: Regenerate.
12472
12473 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12474 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12475 (target_fileio_open): Add prototype.
12476 (target_fileio_pwrite): Likewise.
12477 (target_fileio_pread): Likewise.
12478 (target_fileio_close): Likewise.
12479 (target_fileio_unlink): Likewise.
12480 (target_fileio_read_alloc): Likewise.
12481 (target_fileio_read_stralloc): Likewise.
12482
12483 * target.c: Include "gdb/fileio.h".
12484 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12485 (default_fileio_target): New function.
12486 (target_fileio_open): Likewise.
12487 (target_fileio_pwrite): Likewise.
12488 (target_fileio_pread): Likewise.
12489 (target_fileio_close): Likewise.
12490 (target_fileio_unlink): Likewise.
12491 (target_fileio_close_cleanup): Likewise.
12492 (target_fileio_read_alloc_1): Likewise.
12493 (target_fileio_read_alloc): Likewise.
12494 (target_fileio_read_stralloc): Likewise.
12495
12496 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12497 <fcntl.h>, and <unistd.h>.
12498 (inf_child_fileio_open_flags_to_host): New function.
12499 (inf_child_errno_to_fileio_error): Likewise.
12500 (inf_child_fileio_open): Likewise.
12501 (inf_child_fileio_pwrite): Likewise.
12502 (inf_child_fileio_pread): Likewise.
12503 (inf_child_fileio_close): Likewise.
12504 (inf_child_fileio_unlink): Likewise.
12505 (inf_child_target): Install to_fileio routines.
12506
12507 * remote.c (init_remote_ops): Install to_fileio routines.
12508
12509 2012-01-20 Pedro Alves <palves@redhat.com>
12510 Ulrich Weigand <ulrich.weigand@linaro.org>
12511
12512 * remote.c (remote_multi_process_p): Only check for multi-process
12513 protocol feature, do not check for extended protocol.
12514 (remote_supports_multi_process): Check for extended protocol here.
12515 (set_general_process): Likewise.
12516 (extended_remote_kill): Likewise.
12517 (remote_pid_to_str): Likewise.
12518 (remote_query_supported): Always query multiprocess mode.
12519
12520 2012-01-20 Pedro Alves <palves@redhat.com>
12521 Ulrich Weigand <ulrich.weigand@linaro.org>
12522
12523 * inferior.h (struct inferior): Add fake_pid_p.
12524 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12525 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12526 magic_null_ptid since the remote side doesn't provide a real PID.
12527
12528 2012-01-19 Tom Tromey <tromey@redhat.com>
12529
12530 * NEWS: Combine the two Python sections.
12531
12532 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12533
12534 * target.h (target_close): Update comment on the target's unpush state.
12535
12536 2012-01-19 Pedro Alves <palves@redhat.com>
12537
12538 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12539 linux_nat_async directly instead of going through the target
12540 vector.
12541 * target.c (unpush_target): Close target after unpushing it, not
12542 before.
12543
12544 2012-01-19 Gary Benson <gbenson@redhat.com>
12545
12546 * mdebugread.c (sort_blocks): Replace integer constants with ones
12547 derived from FIRST_LOCAL_BLOCK.
12548
12549 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12550 Jan Kratochvil <jan.kratochvil@redhat.com>
12551
12552 PR gdb/9538
12553 * symfile.c (find_separate_debug_file): New function.
12554 (terminate_after_last_dir_separator): Likewise.
12555 (find_separate_debug_file_by_debuglink): Also try realpath.
12556 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12557 * configure: Regenerate.
12558 * config.in: Regenerate.
12559
12560 2012-01-18 Doug Evans <dje@google.com>
12561
12562 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12563 (main.o): Remove rule.
12564 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12565 (--with-sysroot): Rewrite.
12566 * configure: Regenerate.
12567 * config.in: Regenerate.
12568
12569 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12570
12571 * parse.c (initialize_expout): New function.
12572 (reallocate_expout): Likewise.
12573 (parse_exp_in_context): Use `initialize_expout' and
12574 `reallocate_expout' when appropriate.
12575
12576 2012-01-18 Pedro Alves <palves@redhat.com>
12577
12578 * record.c (struct record_breakpoint, record_breakpoint_p)
12579 (record_breakpoints): New.
12580 (record_insert_breakpoint, record_remove_breakpoint): Manage
12581 record breakpoints list. Only remove breakpoints from the
12582 inferior if they had been inserted there in the first place.
12583
12584 2012-01-17 Doug Evans <dje@google.com>
12585
12586 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12587 if we know we don't have a file name to look for.
12588
12589 2012-01-17 Pedro Alves <palves@redhat.com>
12590
12591 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12592 the frame's stop reason is UNWIND_UNAVAILABLE.
12593
12594 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12595
12596 Fix compilation error.
12597 * m2-exp.y (yyerror): Use ANSI C prototype.
12598
12599 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12600
12601 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12602 (growbuf_by_size): Likewise.
12603 (yyerror): Likewise.
12604 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12605 (modblock): Remove variable (was #if 0'ed).
12606 (parse_number): Convert prototype from K&R to ANSI C.
12607 (yyerror): Likewise.
12608 * objc-exp.y (parse_number): Likewise.
12609 (yyerror): Likewise.
12610 (yylex): Remove #if 0'ed code.
12611 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12612 (yyerror): Likewise.
12613
12614 2012-01-16 Tom Tromey <tromey@redhat.com>
12615
12616 * NEWS: Add item.
12617 * symtab.h (compare_filenames_for_search): Declare.
12618 * symtab.c (compare_filenames_for_search): New function.
12619 (iterate_over_some_symtabs): Use it.
12620 * symfile.h (struct quick_symbol_functions)
12621 <map_symtabs_matching_filename>: Change spec.
12622 * psymtab.c (partial_map_symtabs_matching_filename): Use
12623 compare_filenames_for_search. Update for new spec.
12624 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12625 compare_filenames_for_search. Update for new spec.
12626 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12627
12628 2012-01-16 Tom Tromey <tromey@redhat.com>
12629
12630 PR python/13281:
12631 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12632 (struct main_type) <flag_flag_enum>: New field.
12633 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12634 * NEWS: Add entries.
12635 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12636 enums.
12637 * python/lib/gdb/printing.py (_EnumInstance): New class.
12638 (FlagEnumerationPrinter): Likewise.
12639
12640 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12641
12642 * breakpoint.c (create_sals_from_address_default): New function.
12643 (create_breakpoints_sal_default): Likewise.
12644 (decode_linespec_default): Likewise.
12645 (is_marker_spec): Removed.
12646 (strace_marker_p): New function.
12647 (init_breakpoint_sal): Using `strace_marker_p' instead of
12648 `is_marker_spec'.
12649 (create_breakpoint): Call method `create_sals_from_address' from
12650 breakpoint_ops, replacing code that created SALs conditionally
12651 on the type of the breakpoint. Call method `create_breakpoints_sal',
12652 replacing code that created breakpoints conditionally on the type
12653 wanted.
12654 (base_breakpoint_create_sals_from_address): New function.
12655 (base_breakpoint_create_breakpoints_sal): Likewise.
12656 (base_breakpoint_decode_linespec): Likewise.
12657 (base_breakpoint_ops): Add methods
12658 `base_breakpoint_create_sals_from_address',
12659 `base_breakpoint_create_breakpoints_sal' and
12660 `base_breakpoint_decode_linespec'.
12661 (bkpt_create_sals_from_address): New function.
12662 (bkpt_create_breakpoints_sal): Likewise.
12663 (bkpt_decode_linespec): Likewise.
12664 (tracepoint_create_sals_from_address): Likewise.
12665 (tracepoint_create_breakpoints_sal): Likewise.
12666 (tracepoint_decode_linespec): Likewise.
12667 (strace_marker_create_sals_from_address): Likewise.
12668 (strace_marker_create_breakpoints_sal): Likewise.
12669 (strace_marker_decode_linespec): Likewise.
12670 (strace_marker_breakpoint_ops): New variable.
12671 (addr_string_to_sals): Remove `marker_spec'. Call method
12672 `decode_linespec' from breakpoint_ops, replacing code that decoded
12673 an address string into a SAL. Use `strace_marker_p' instead of
12674 `marker_spec'.
12675 (strace_command): Decide whether we are dealing with a static
12676 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12677 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12678 * breakpoint.h (linespec_result, linespec_sals): New forward
12679 declarations.
12680 (breakpoint_ops) <create_sals_from_address>,
12681 <create_breakpoints_sal>, <decode_linespec>: New methods.
12682
12683 2012-01-14 Doug Evans <dje@google.com>
12684
12685 * NEWS: Update text for "maint set python print-stack".
12686 It is deprecated in gdb 7.4 and deleted in 7.5.
12687
12688 2012-01-13 Eli Zaretskii <eliz@gnu.org>
12689
12690 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12691 including curses.h.
12692
12693 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12694
12695 * configure: Regenerate.
12696 * config.in: Regenerate.
12697
12698 2012-01-12 Keith Seitz <keiths@redhat.com>
12699
12700 PR mi/10586
12701 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12702 (ANONYMOUS_UNION_NAME): Define.
12703 (is_path_expr_parent): New function.
12704 (get_path_expr_parent): New function.
12705 (is_anonymous_child): New function.
12706 (create_child_with_value): If the child is anonymous and without
12707 a name, assign an object name to it.
12708 (c_describe_child): Use get_path_expr_parent to determine
12709 the parent expression.
12710 If there field represents an anonymous struct or union and
12711 has no name, set an appropriate display name and expression.
12712 (cplus_describe_child): Likewise.
12713
12714 2012-01-12 Pedro Alves <palves@redhat.com>
12715
12716 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12717 available when %ebp is found to be zero (outermost).
12718
12719 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
12720
12721 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12722 an internal gdb_static_assert.
12723 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12724
12725 2012-01-11 Tom Tromey <tromey@redhat.com>
12726
12727 PR gdb/9598:
12728 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12729 catch" and "catch throw".
12730
12731 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12732
12733 * blockframe.c (block_innermost_frame): Start search from selected
12734 frame, if present, or otherwise the current frame.
12735
12736 * c-exp.y (variable): Update innermost_block for
12737 'block COLONCOLON NAME' clause.
12738 * m2-exp.y (variable): Ditto.
12739 * objc-exp.y (variable): Ditto.
12740
12741 2012-01-10 Tom Tromey <tromey@redhat.com>
12742
12743 PR python/13199:
12744 * python/python.c (finish_python_initialization): Set sys.argv.
12745
12746 2012-01-10 Doug Evans <dje@google.com>
12747
12748 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12749 "want_line_info". All callers updated.
12750 (dwarf_decode_lines_1): New function.
12751 (handle_DW_AT_stmt_list): Add function comment.
12752 New arg "want_line_info". All callers updated.
12753 (read_file_scope,read_type_unit_scope): Move comment from
12754 handle_DW_AT_stmt_list to here.
12755
12756 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12757
12758 Fix regression after libiberty/ update for GCC PR 6057 and others.
12759 * c-exp.y (operator) <OPERATOR DELETE>
12760 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12761 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12762 (make_builtin_type, make_name): New variable i, add gdb_assert.
12763 (operator) <OPERATOR NEW>: Update ARGS to 3.
12764 (operator) <OPERATOR DELETE>: Add trailing space.
12765 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12766 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12767 * cp-support.c (cp_canonicalize_string): Check NULL from
12768 cp_comp_to_string, call warning and return.
12769
12770 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12771
12772 Fix duplicate .o files after omitting libbfd.a.
12773 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12774 (SFILES): Add corelow.c.
12775 (COMMON_OBS): Add corelow.o.
12776 (ALLDEPFILES): Remove corelow.c.
12777 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12778 * config/alpha/alpha-osf3.mh: Likewise.
12779 * config/alpha/fbsd.mh: Likewise.
12780 * config/arm/nbsdaout.mh: Likewise.
12781 * config/arm/nbsdelf.mh: Likewise.
12782 * config/i386/i386gnu.mh: Likewise.
12783 * config/ia64/hpux.mh: Likewise.
12784 * config/ia64/linux.mh: Likewise.
12785 * config/m32r/linux.mh: Likewise.
12786 * config/m68k/linux.mh: Likewise.
12787 * config/mips/irix5.mh: Likewise.
12788 * config/mips/irix6.mh: Likewise.
12789 * config/pa/hpux.mh: Likewise.
12790 * config/pa/linux.mh: Likewise.
12791 * config/powerpc/aix.mh: Likewise.
12792 * config/sparc/linux.mh: Likewise.
12793 * config/sparc/linux64.mh: Likewise.
12794 * config/sparc/sol2.mh: Likewise.
12795 * config/vax/vax.mh: Likewise.
12796 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12797 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12798 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12799 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12800 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12801 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12802 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12803 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12804 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12805 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12806 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12807 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12808 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12809 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12810 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12811 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12812 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12813 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12814 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12815 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12816 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12817 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12818 corelow.o from gdb_target_obs.
12819 * corefile.c (core_target): Update the comment on NULL value.
12820 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12821 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12822 MATCHES. Drop YUMMY set on NULL.
12823 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12824 reclaim CORE_DATA if it is already NULL.
12825
12826 2012-01-09 Doug Evans <dje@google.com>
12827
12828 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12829 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12830
12831 2012-01-09 Keith Seitz <keiths@redhat.com>
12832
12833 * breakpoint.c (wrapper.h): Don't include.
12834
12835 2012-01-09 Keith Seitz <keiths@redhat.com>
12836
12837 * Makefile.in (SFILES): Remove wrapper.c.
12838 (HFILES_NO_SRCDIR): Remove wrapper.h.
12839 (COMMON_OBS): Remove wrapper.o.
12840 * cli/cli-interp.c: Don't inlude wrapper.h.
12841 * corelow.c: Likewise.
12842 (core_open): Replace gdb_target_find_new_threads with
12843 TRY_CATCH around target_find_new_threads.
12844 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12845 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12846 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12847 evaluate_expression.
12848 (varobj_set_value): Likewise for evaluate_expression and
12849 value_assign.
12850 (install_new_variable): Likewise for value_fetch_lazy.
12851 (adjust_value_for_child_access): Likewise for value_ind.
12852 (c_describe_child): Likewise for value_subscript and
12853 value_ind.
12854 (c_value_of_root): Likewise for evaluate_expression.
12855 * wrapper.c: Remove.
12856 * wrapper.h: Remove.
12857
12858 2012-01-09 Doug Evans <dje@google.com>
12859
12860 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12861 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12862 "abfd" args with "section". All callers updated.
12863 Error checking code moved ...
12864 (error_check_comp_unit_head): ... here. New function.
12865 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12866 Delete arg "abfd". New arg "type_offset". All callers updated.
12867 (create_debug_types_hash_table): Simplify by using
12868 read_and_check_type_unit_head.
12869
12870 * parser-defs.h (namecopy): Delete.
12871 * parse.c (namecopy, namecopy_size): Move into copy_name.
12872
12873 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12874
12875 Partially fix duplicate .o files after omitting libbfd.a.
12876 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12877 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12878 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12879 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12880 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12881 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12882 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12883
12884 2012-01-09 Pedro Alves <palves@redhat.com>
12885
12886 * MAINTAINERS: Update my email address.
12887
12888 2012-01-08 Doug Evans <dje@google.com>
12889
12890 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12891 n_type_units. Rename type_comp_units to all_type_units.
12892 All uses updated.
12893 (add_signatured_type_cu_to_table): Renamed from
12894 add_signatured_type_cu_to_list. All callers updated.
12895
12896 * gdbtypes.h (struct cplus_struct_type): Delete member
12897 nfn_fields_total. All uses removed.
12898
12899 2012-01-06 Doug Evans <dje@google.com>
12900
12901 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12902 to top of file.
12903 (dwarf2_find_comp_unit): Delete.
12904 (process_psymtab_comp_unit): Make result "void".
12905 Delete args buffer, info_ptr, buffer_size, and replace with
12906 "section". All callers updated.
12907 (dwarf2_build_psymtabs_hard): Simplify.
12908
12909 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12910 Thiago Jung Bauermann <bauerman@br.ibm.com>
12911
12912 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12913 before `struct gdb_exception'.
12914 * breakpoint.c (update_global_location_list_nothrow)
12915 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12916 * cp-abi.c (value_rtti_type): Likewise.
12917 * cp-support.c (cp_validate_operator): Likewise.
12918 * infrun.c (insert_exception_resume_breakpoint)
12919 (check_exception_resume, keep_going): Likewise.
12920 * mi-interp.c (mi_breakpoint_created)
12921 (mi_breakpoint_modified): Likewise.
12922 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12923 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12924 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12925
12926 2012-01-05 Doug Evans <dje@google.com>
12927
12928 * dwarf2read.c (statement_prologue): Delete, unused.
12929
12930 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12931 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12932
12933 * dwarf2read.c (comp_unit_header): Delete, unused.
12934
12935 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12936
12937 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12938 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12939
12940 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12941
12942 * infrun.c (normal_stop): Don't skip calling the normal_stop
12943 observers if the thread was doing a multi-step, but stopped for
12944 some reason other than stepping.
12945
12946 2012-01-05 Pedro Alves <alves.ped@gmail.com>
12947
12948 * cli/cli-decode.h: Add comments.
12949 (CMD_LIST_AMBIGUOUS): Moved to command.h
12950 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12951 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12952 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12953 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12954 (add_com, add_com_alias, add_info, add_info_alias)
12955 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12956 declarations.
12957 * command.h: Add and adjust comments.
12958 (CMD_LIST_AMBIGUOUS): Moved here.
12959 (help_cmd, help_cmd_list): Delete declarations.
12960
12961 2012-01-04 Doug Evans <dje@google.com>
12962
12963 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12964 All callers updated.
12965 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12966 Replace all arguments with "per_cu". All callers updated.
12967
12968 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12969
12970 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12971 New arg "per_cu". All callers updated.
12972
12973 Delete #if 0'd out code.
12974 * language.c (binop_result_type): Delete.
12975 (simple_type, ordered_type, same_type, integral_type): Delete.
12976 (numeric_type, character_type, string_type, boolean_type): Delete.
12977 (float_type, structured_type): Delete.
12978 * language.h: Update.
12979
12980 2012-01-04 Tom Tromey <tromey@redhat.com>
12981
12982 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12983
12984 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12985
12986 * corefile.c (close_exec_file): Delete.
12987 (reopen_exec_file): Remove commented out code that seems related
12988 to close_exec_file, which is being deleted here.
12989 * inferior.h (close_exec_file): Delete.
12990 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12991
12992 2012-01-04 Joel Brobecker <brobecker@adacore.com>
12993
12994 * ada-lang.c: #include "cli/cli-utils.h".
12995 (get_selections): Use skip_spaces.
12996 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12997 (catch_ada_exception_command_split): Use skip_spaces.
12998 (ada_decode_assert_location): Likewise.
12999
13000 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13001
13002 * linespec.c (decode_line_internal): Check for C++ or Java
13003 compound constructs only if the current language is C, C++
13004 or Java.
13005
13006 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
13007
13008 Revert:
13009 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13010 Joel Brobecker <brobecker@adacore.com>
13011 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13012 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13013 3 times.
13014 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13015 fall through into AT_ENTRY_POINT.
13016 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13017 DUMMY_ADDR with it.
13018 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13019 PPC_INSN_SIZE skip to 3 times.
13020
13021 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13022
13023 * linespec.c (add_minsym): Preserve function descriptors.
13024
13025 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
13026
13027 * breakpoint.c (all_locations_are_pending): Consider locations
13028 in program spaces executing during startup pending as well.
13029
13030 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13031
13032 Copyright year update in most files of the GDB Project.
13033
13034 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13035
13036 * copyright.sh: Delete.
13037 * copyright.py: Rewrite.
13038
13039 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13040
13041 * gnulib/extra/update-copyright: New file, imported from gnulib.
13042
13043 2012-01-04 Joel Brobecker <brobecker@adacore.com>
13044
13045 * README (Copyright and License Notices): New section.
13046
13047 2012-01-03 Tom Tromey <tromey@redhat.com>
13048
13049 PR python/12533:
13050 * python/py-value.c (valpy_dereference, valpy_get_address
13051 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13052 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
13053 (valpy_absolute, valpy_richcompare): Free intermediate values.
13054
13055 2011-01-03 Joel Brobecker <brobecker@adacore.com>
13056
13057 * ada-lang.c: Reformat the copyright notice.
13058
13059 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13060
13061 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
13062 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
13063 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
13064 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
13065 Revert this part of:
13066 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13067 Build gdb directly from *.o files not using libgdb.a.
13068 * Makefile.in (COMMON_OBS): Remove solib-target.o.
13069
13070 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13071
13072 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
13073 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
13074 Reformat the copyright header.
13075
13076 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13077
13078 Revert this part of:
13079 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13080 Remove the gdbtui binary.
13081 * gdb.c (main): Remove args.interpreter_p initialization.
13082 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13083 * main.h (struct captured_main_args): Remove interpreter_p.
13084
13085 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13086
13087 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
13088
13089 2012-01-02 Joel Brobecker <brobecker@adacore.com>
13090
13091 * top.c (print_gdb_version): Update copyright year.
13092
13093 2012-01-02 Yao Qi <yao@codesourcery.com>
13094
13095 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13096
13097 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13098 Joel Brobecker <brobecker@adacore.com>
13099
13100 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13101 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13102 3 times.
13103 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13104 fall through into AT_ENTRY_POINT.
13105 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13106 DUMMY_ADDR with it.
13107 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13108 PPC_INSN_SIZE skip to 3 times.
13109
13110 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13111
13112 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13113 the return value.
13114 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13115
13116 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13117
13118 Build gdb directly from *.o files not using libgdb.a.
13119 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13120 (COMMON_OBS): Remove solib-target.o.
13121 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13122 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13123 (LIBGDB_OBS, libgdb.a): Move it above.
13124 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13125 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13126 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13127 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13128 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13129 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13130 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13131 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13132 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13133 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13134 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13135 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13136 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13137 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13138 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13139 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13140 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13141 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13142 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13143 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13144 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13145 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13146 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13147 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13148 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13149 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13150 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13151
13152 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13153
13154 Remove the gdbtui binary.
13155 * .gitignore (/gdbtui): Remove.
13156 * Makefile.in (TUI): Remove.
13157 (SUBDIR_TUI_OBS): Remove tui-main.o.
13158 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13159 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13160 (tui-main.o): Remove.
13161 (all_object_files): Remove tui-main.o.
13162 * NEWS: New note for the gdbtui removal.
13163 * configure: Rebuilt.
13164 * configure.ac: No longer add all-tui, clean-tui, install-tui and
13165 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13166 CONFIG_UNINSTALL respectively.
13167 * gdb.c (main): Remove args.interpreter_p initialization.
13168 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13169 * main.h (struct captured_main_args): Remove interpreter_p.
13170 * tui/tui-main.c: Remove.
13171
13172 2012-01-01 Doug Evans <dje@google.com>
13173
13174 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13175 (dwarf2_physname, read_import_statement): Ditto.
13176 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13177 (process_structure_scope read_subroutine_type): Ditto.
13178 (read_typedef, load_partial_dies, read_partial_die): Ditto.
13179 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13180 (dwarf2_fetch_die_location_block): Ditto.
13181 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13182
13183 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13184 All callers updated.
13185 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13186 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13187 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13188
13189 * dwarf2read.c (load_cu): Move assert to more useful location.
13190
13191 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13192 All callers updated.
13193
13194 * dwarf2read.c (dwarf2_per_objfile): Add comment.
13195 (dwarf2_elf_names): Minor reformat.
13196 (dwarf2_per_cu_data): Tweak comment.
13197 (dwarf2_read_section): Fix comment.
13198 (create_all_comp_units): Fix comment.
13199 (load_full_comp_unit): Fix comment.
13200 (process_full_comp_unit): Fix comment.
13201 (read_signatured_type): Fix comment.
13202
13203 For older changes see ChangeLog-2011.
13204 \f
13205 Local Variables:
13206 mode: change-log
13207 left-margin: 8
13208 fill-column: 74
13209 version-control: never
13210 coding: utf-8
13211 End: